infrun.c:normal_stop: Fix typo in comment
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-10 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (normal_stop): Fix typo in comment.
4
5 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
6
7 PR tdep/9390
8 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
9 typo when using logical AND to determine instruction type.
10
11 2014-10-09 Yao Qi <yao@codesourcery.com>
12
13 * infrun.c (handle_signal_stop): Remove local variable
14 'printed'.
15
16 2014-10-08 Stan Shebs <stan@codesourcery.com>
17
18 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
19
20 2014-10-08 Gary Benson <gbenson@redhat.com>
21
22 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
23
24 2014-10-08 Gary Benson <gbenson@redhat.com>
25
26 * common/common-defs.h: Include common-exceptions.h.
27 * exceptions.h: Do not include common-exceptions.h.
28
29 2014-10-08 Gary Benson <gbenson@redhat.com>
30
31 * common/common-defs.h: Include cleanups.h.
32 * common/common-exceptions.c: Do not include cleanups.h.
33 * utils.h: Likewise.
34
35 2014-10-08 Gary Benson <gbenson@redhat.com>
36
37 * ada-lang.c: Do not include exceptions.h.
38 * ada-valprint.c: Likewise.
39 * amd64-tdep.c: Likewise.
40 * auto-load.c: Likewise.
41 * block.c: Likewise.
42 * break-catch-throw.c: Likewise.
43 * breakpoint.c: Likewise.
44 * btrace.c: Likewise.
45 * c-lang.c: Likewise.
46 * cli/cli-cmds.c: Likewise.
47 * cli/cli-interp.c: Likewise.
48 * cli/cli-script.c: Likewise.
49 * completer.c: Likewise.
50 * corefile.c: Likewise.
51 * corelow.c: Likewise.
52 * cp-abi.c: Likewise.
53 * cp-support.c: Likewise.
54 * cp-valprint.c: Likewise.
55 * darwin-nat.c: Likewise.
56 * dwarf2-frame-tailcall.c: Likewise.
57 * dwarf2-frame.c: Likewise.
58 * dwarf2loc.c: Likewise.
59 * dwarf2read.c: Likewise.
60 * eval.c: Likewise.
61 * event-loop.c: Likewise.
62 * event-top.c: Likewise.
63 * f-valprint.c: Likewise.
64 * frame-unwind.c: Likewise.
65 * frame.c: Likewise.
66 * gdbtypes.c: Likewise.
67 * gnu-v2-abi.c: Likewise.
68 * gnu-v3-abi.c: Likewise.
69 * guile/scm-auto-load.c: Likewise.
70 * guile/scm-breakpoint.c: Likewise.
71 * guile/scm-cmd.c: Likewise.
72 * guile/scm-frame.c: Likewise.
73 * guile/scm-lazy-string.c: Likewise.
74 * guile/scm-param.c: Likewise.
75 * guile/scm-symbol.c: Likewise.
76 * guile/scm-type.c: Likewise.
77 * hppa-hpux-tdep.c: Likewise.
78 * i386-tdep.c: Likewise.
79 * inf-loop.c: Likewise.
80 * infcall.c: Likewise.
81 * infcmd.c: Likewise.
82 * infrun.c: Likewise.
83 * interps.c: Likewise.
84 * interps.h: Likewise.
85 * jit.c: Likewise.
86 * linespec.c: Likewise.
87 * linux-nat.c: Likewise.
88 * linux-thread-db.c: Likewise.
89 * m32r-rom.c: Likewise.
90 * main.c: Likewise.
91 * memory-map.c: Likewise.
92 * mi/mi-cmd-break.c: Likewise.
93 * mi/mi-cmd-stack.c: Likewise.
94 * mi/mi-interp.c: Likewise.
95 * mi/mi-main.c: Likewise.
96 * monitor.c: Likewise.
97 * nto-procfs.c: Likewise.
98 * objc-lang.c: Likewise.
99 * p-valprint.c: Likewise.
100 * parse.c: Likewise.
101 * ppc-linux-tdep.c: Likewise.
102 * printcmd.c: Likewise.
103 * probe.c: Likewise.
104 * python/py-auto-load.c: Likewise.
105 * python/py-breakpoint.c: Likewise.
106 * python/py-cmd.c: Likewise.
107 * python/py-finishbreakpoint.c: Likewise.
108 * python/py-frame.c: Likewise.
109 * python/py-framefilter.c: Likewise.
110 * python/py-function.c: Likewise.
111 * python/py-gdb-readline.c: Likewise.
112 * python/py-inferior.c: Likewise.
113 * python/py-infthread.c: Likewise.
114 * python/py-lazy-string.c: Likewise.
115 * python/py-linetable.c: Likewise.
116 * python/py-param.c: Likewise.
117 * python/py-prettyprint.c: Likewise.
118 * python/py-symbol.c: Likewise.
119 * python/py-type.c: Likewise.
120 * python/py-value.c: Likewise.
121 * python/python-internal.h: Likewise.
122 * python/python.c: Likewise.
123 * record-btrace.c: Likewise.
124 * record-full.c: Likewise.
125 * regcache.c: Likewise.
126 * remote-fileio.c: Likewise.
127 * remote-mips.c: Likewise.
128 * remote.c: Likewise.
129 * rs6000-aix-tdep.c: Likewise.
130 * rs6000-nat.c: Likewise.
131 * skip.c: Likewise.
132 * solib-darwin.c: Likewise.
133 * solib-dsbt.c: Likewise.
134 * solib-frv.c: Likewise.
135 * solib-ia64-hpux.c: Likewise.
136 * solib-spu.c: Likewise.
137 * solib-svr4.c: Likewise.
138 * solib.c: Likewise.
139 * spu-tdep.c: Likewise.
140 * stack.c: Likewise.
141 * stap-probe.c: Likewise.
142 * symfile-mem.c: Likewise.
143 * symmisc.c: Likewise.
144 * target.c: Likewise.
145 * thread.c: Likewise.
146 * top.c: Likewise.
147 * tracepoint.c: Likewise.
148 * tui/tui-interp.c: Likewise.
149 * typeprint.c: Likewise.
150 * utils.c: Likewise.
151 * valarith.c: Likewise.
152 * valops.c: Likewise.
153 * valprint.c: Likewise.
154 * value.c: Likewise.
155 * varobj.c: Likewise.
156 * windows-nat.c: Likewise.
157 * xml-support.c: Likewise.
158
159 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
160
161 * mips-tdep.c (add_offset_16): Rewrite to implement what the
162 name implies.
163 (extended_mips16_next_pc): Update accordingly.
164
165 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
166
167 * mips-tdep.c (mips16_instruction_is_compact_branch): New
168 function.
169 (micromips_instruction_is_compact_branch): Likewise.
170 (mips16_scan_prologue): Terminate scanning upon seeing a branch
171 or a compact jump, reaching a jump delay slot, or seeing a
172 second non-prologue instruction.
173 (micromips_scan_prologue): Also terminate scanning upon seeing a
174 compact branch or jump, or reaching a branch or jump delay slot.
175 (mips32_scan_prologue): Terminate scanning upon reaching a branch
176 or jump delay slot, or seeing a second non-prologue instruction.
177 (mips32_instruction_has_delay_slot): Retain instruction
178 examination code only, update arguments accordingly and move
179 instruction fetch pieces to...
180 (mips32_insn_at_pc_has_delay_slot): ... this new function.
181 (micromips_instruction_has_delay_slot): Likewise and to...
182 (micromips_insn_at_pc_has_delay_slot): ... this new function.
183 (mips16_instruction_has_delay_slot): Likewise and to...
184 (mips16_insn_at_pc_has_delay_slot): ... this new function.
185 (mips_single_step_through_delay): Update accordingly.
186 (mips_adjust_breakpoint_address): Likewise.
187
188 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
189
190 * mips-tdep.c (micromips_instruction_has_delay_slot): When
191 !mustbe32 also return 1 for 32-bit instructions.
192 (mips16_instruction_has_delay_slot): Likewise. Add an
193 explanatory comment.
194
195 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
196
197 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
198 symbols special.
199
200 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
201
202 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
203 update comments.
204 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
205 for the breakpoint's address. Don't preinitialize `placed_size'.
206 (insert_bp_location): Set `reqstd_address' rather than
207 `placed_address'.
208 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
209 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
210 address.
211 (bkpt_remove_location): Likewise.
212 (deprecated_insert_raw_breakpoint): Likewise.
213 (deprecated_remove_raw_breakpoint): Likewise.
214 (find_single_step_breakpoint): Likewise.
215 * mem-break.c (default_memory_insert_breakpoint): Use
216 `reqstd_address' for the breakpoint's address. Don't set
217 `placed_address' or `placed_size' if breakpoint contents couldn't
218 have been determined.
219 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
220 the breakpoint's address.
221 (remote_insert_hw_breakpoint): Likewise. Don't set
222 `placed_address' or `placed_size' if breakpoint couldn't have been
223 set.
224 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
225 `reqstd_address' for the breakpoint's address.
226 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
227 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
228 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
229 * microblaze-linux-tdep.c
230 (microblaze_linux_memory_remove_breakpoint): Likewise.
231 * monitor.c (monitor_insert_breakpoint): Likewise.
232 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
233 (procfs_insert_hw_breakpoint): Likewise.
234 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
235 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
236 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
237 * remote-mips.c (mips_insert_breakpoint): Likewise.
238 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
239
240 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
241
242 * valops.c (value_assign): Check for bit field assignments
243 before calling architecture-specific register value
244 conversion functions.
245
246 2014-10-03 Pierre Muller <muller@sourceware.org>
247
248 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
249
250 2014-10-02 Pedro Alves <palves@redhat.com>
251
252 * breakpoint.c (breakpoints_should_be_inserted_now): Use
253 threads_are_executing.
254 * breakpoint.h (breakpoints_should_be_inserted_now): Add
255 describing comment.
256 * gdbthread.h (threads_are_executing): Declare.
257 (handle_signal_stop) <random signals>: Don't print about the
258 signal here if stopping.
259 (end_stepping_range): Don't notify observers here.
260 (normal_stop): Update the thread list. If stopped by a random
261 signal or a stepping range ended, notify observers.
262 * thread.c (threads_executing): New global.
263 (init_thread_list): Clear 'threads_executing'.
264 (set_executing): Set or clear 'threads_executing'.
265 (threads_are_executing): New function.
266 (update_threads_executing): New function.
267 (update_thread_list): Use it.
268
269 2014-10-02 Pedro Alves <palves@redhat.com>
270
271 PR breakpoints/17431
272 * breakpoint.c (update_breakpoints_after_exec): Don't create
273 overlay, longjmp, std terminate nor exception breakpoints here.
274
275 2014-10-02 Pedro Alves <palves@redhat.com>
276
277 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
278 Adjust comments.
279 * inferior.c (find_inferior_for_program_space): Give preference to
280 the current inferior.
281 * inferior.h (find_inferior_for_program_space): Update comment.
282 * progspace.c (switch_to_program_space_and_thread): Prefer the
283 current inferior if it's bound to the program space requested. If
284 the inferior found doesn't have a PID yet, don't bother looking up
285 a thread.
286 * progspace.h (switch_to_program_space_and_thread): Adjust
287 comment.
288 * thread.c (any_thread_of_process, any_live_thread_of_process):
289 Give preference to the current thread.
290
291 2014-10-01 Pedro Alves <palves@redhat.com>
292
293 * breakpoint.c (insert_bp_location): Error out if inserting a
294 software breakpoint at a read-only address.
295 * target.c (memory_xfer_check_region): New function, factored out
296 from ...
297 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
298 ULONGEST.
299 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
300 against the memory region attributes.
301
302 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
303
304 * NEWS: Announce new exit-code field in -list-thread-groups
305 output.
306 * inferior.c (exit_inferior_1): Don't clear exit code.
307 (inferior_appeared): Clear exit code.
308 * mi/mi-main.c (print_one_inferior): Add printing of the exit
309 code.
310
311 2014-10-01 Pedro Alves <palves@redhat.com>
312
313 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
314 GENERATED" along with emacs/vi read-only markers.
315 * regformats/aarch64.dat: Regenerate.
316 * regformats/arm-with-iwmmxt.dat: Regenerate.
317 * regformats/arm-with-neon.dat: Regenerate.
318 * regformats/arm-with-vfpv2.dat: Regenerate.
319 * regformats/arm-with-vfpv3.dat: Regenerate.
320 * regformats/i386/amd64-avx-linux.dat: Regenerate.
321 * regformats/i386/amd64-avx.dat: Regenerate.
322 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
323 * regformats/i386/amd64-avx512.dat: Regenerate.
324 * regformats/i386/amd64-linux.dat: Regenerate.
325 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
326 * regformats/i386/amd64-mpx.dat: Regenerate.
327 * regformats/i386/amd64.dat: Regenerate.
328 * regformats/i386/i386-avx-linux.dat: Regenerate.
329 * regformats/i386/i386-avx.dat: Regenerate.
330 * regformats/i386/i386-avx512-linux.dat: Regenerate.
331 * regformats/i386/i386-avx512.dat: Regenerate.
332 * regformats/i386/i386-linux.dat: Regenerate.
333 * regformats/i386/i386-mmx-linux.dat: Regenerate.
334 * regformats/i386/i386-mmx.dat: Regenerate.
335 * regformats/i386/i386-mpx-linux.dat: Regenerate.
336 * regformats/i386/i386-mpx.dat: Regenerate.
337 * regformats/i386/i386.dat: Regenerate.
338 * regformats/i386/x32-avx-linux.dat: Regenerate.
339 * regformats/i386/x32-avx.dat: Regenerate.
340 * regformats/i386/x32-avx512-linux.dat: Regenerate.
341 * regformats/i386/x32-avx512.dat: Regenerate.
342 * regformats/i386/x32-linux.dat: Regenerate.
343 * regformats/i386/x32.dat: Regenerate.
344 * regformats/microblaze-with-stack-protect.dat: Regenerate.
345 * regformats/mips-dsp-linux.dat: Regenerate.
346 * regformats/mips-linux.dat: Regenerate.
347 * regformats/mips64-dsp-linux.dat: Regenerate.
348 * regformats/mips64-linux.dat: Regenerate.
349 * regformats/nios2-linux.dat: Regenerate.
350 * regformats/rs6000/powerpc-32.dat: Regenerate.
351 * regformats/rs6000/powerpc-32l.dat: Regenerate.
352 * regformats/rs6000/powerpc-64l.dat: Regenerate.
353 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
354 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
355 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
356 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
357 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
358 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
359 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
360 * regformats/s390-linux32.dat: Regenerate.
361 * regformats/s390-linux32v1.dat: Regenerate.
362 * regformats/s390-linux32v2.dat: Regenerate.
363 * regformats/s390-linux64.dat: Regenerate.
364 * regformats/s390-linux64v1.dat: Regenerate.
365 * regformats/s390-linux64v2.dat: Regenerate.
366 * regformats/s390-te-linux64.dat: Regenerate.
367 * regformats/s390x-linux64.dat: Regenerate.
368 * regformats/s390x-linux64v1.dat: Regenerate.
369 * regformats/s390x-linux64v2.dat: Regenerate.
370 * regformats/s390x-te-linux64.dat: Regenerate.
371 * regformats/tic6x-c62x-linux.dat: Regenerate.
372 * regformats/tic6x-c62x.dat: Regenerate.
373 * regformats/tic6x-c64x-linux.dat: Regenerate.
374 * regformats/tic6x-c64x.dat: Regenerate.
375 * regformats/tic6x-c64xp-linux.dat: Regenerate.
376 * regformats/tic6x-c64xp.dat: Regenerate.
377
378 2014-10-01 Pedro Alves <palves@redhat.com>
379
380 * features/Makefile: Update comments.
381 (XMLTOC): List all xml files we build C files from.
382 (clean-cfiles): New rule.
383
384 2014-10-01 Pedro Alves <palves@redhat.com>
385
386 * features/i386/amd64-avx512-linux.c: Regenerate.
387 * features/i386/amd64-avx512.c: Regenerate.
388 * features/i386/x32-avx512-linux.c: Regenerate.
389 * features/i386/x32-avx512.c: Regenerate.
390
391 2014-10-01 Pedro Alves <palves@redhat.com>
392
393 * features/Makefile (WHICH): Remove arm-with-m,
394 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
395
396 2014-10-01 Pedro Alves <palves@redhat.com>
397
398 * features/Makefile (clean): New rule.
399
400 2014-10-01 Pedro Alves <palves@redhat.com>
401
402 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
403 (zmm14h): Add missing end quotes.
404
405 2014-10-01 Pedro Alves <palves@redhat.com>
406
407 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
408 * features/aarch64.c: Regenerate.
409
410 2014-09-30 Don Breazeal <donb@codesourcery.com>
411
412 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
413 code so as to work with follow_fork_inferior.
414 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
415 (inf_ttrace_create_inferior): Remove reference to
416 inf_ttrace_vfork_ppid.
417 (inf_ttrace_attach): Ditto.
418 (inf_ttrace_detach): Ditto.
419 (inf_ttrace_kill): Use current_inferior instead of
420 inf_ttrace_vfork_ppid.
421 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
422 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
423 inferior away from the parent.
424 * infrun.c (follow_fork): Call follow_fork_inferior instead of
425 target_follow_fork.
426 (follow_fork_inferior): New function.
427 (follow_inferior_reset_breakpoints): Make function static.
428 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
429 * linux-nat.c (linux_child_follow_fork): Move target-independent
430 code to infrun.c:follow_fork_inferior.
431
432 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
433
434 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
435 * gdbarch.c: Regenerate.
436 * gdbarch.h: Likewise.
437 * corelow.c (sniff_core_bfd): Drop presence check for deleted
438 gdbarch method 'regset_from_core_section'.
439 (get_core_register_section): Remove handling for the case that
440 regset == NULL and regset_from_core_section is defined.
441 (get_core_registers): Drop check for deleted method.
442 * procfs.c (procfs_do_thread_registers): Adjust comment.
443
444 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
445
446 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
447 (linux_nat_make_corefile_notes): Remove.
448 (linux_target_install_ops): Do not set target method
449 'make_corefile_notes'.
450 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
451 Remove field.
452 (linux_corefile_thread_callback): Instead of args->collect, call
453 linux_collect_thread_registers.
454 (linux_make_corefile_notes): Remove 'collect' parameter. Return
455 NULL unless there is a regset iterator.
456 (linux_make_corefile_notes_1): Remove.
457 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
458 by linux_make_corefile_notes.
459 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
460
461 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
462
463 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
464 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
465 Remove.
466 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
467
468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
469
470 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
471 (xtensa_iterate_over_regset_sections): New.
472 (xtensa_gdbarch_init): Adjust gdbarch initialization.
473
474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
475
476 * vax-tdep.c (vax_regset_from_core_section): Remove.
477 (vax_iterate_over_regset_sections): New.
478 (vax_gdbarch_init): Adjust gdbarch initialization.
479
480 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
481
482 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
483 (tilegx_regset_from_core_section): Remove.
484 (tilegx_iterate_over_regset_sections): New.
485 (tilegx_linux_init_abi): Adjust gdbarch initialization.
486
487 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
488
489 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
490 (sparc_iterate_over_regset_sections): New.
491 (sparc32_gdbarch_init): Adjust gdbarch initialization.
492 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
493 targets.
494 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
495 (sparc64fbsd_init_abi): Call fbsd_init_abi.
496 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
497 target method 'make_corefile_notes'.
498
499 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
500
501 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
502 'sizeof_gregset' and 'sizeof_fpregset'.
503 * sh-tdep.c (sh_regset_from_core_section): Remove.
504 (sh_iterate_over_regset_sections): New.
505 (sh_gdbarch_init): Adjust gdbarch initialization.
506 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
507 sizeof_fpregset.
508 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
509 'sizeof_gregset'.
510
511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
512
513 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
514 (score7_linux_iterate_over_regset_sections): New.
515 (score_gdbarch_init): Adjust gdbarch initialization.
516
517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
518
519 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
520 FreeBSD targets.
521 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
522 method 'make_corefile_notes'.
523 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
524 (ppcfbsd_regset_from_core_section): Remove.
525 (ppcfbsd_iterate_over_regset_sections): New.
526 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
527 initialization.
528 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
529 (ppcnbsd_iterate_over_regset_sections): New.
530 (ppcnbsd_init_abi): Adjust.
531 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
532 (ppcobsd_iterate_over_regset_sections): New.
533 (ppcobsd_init_abi): Adjust.
534 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
535 (rs6000_aix_iterate_over_regset_sections): New.
536 (rs6000_aix_init_osabi): Adjust.
537
538 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
539
540 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
541 (nios2_regset_from_core_section): Remove.
542 (nios2_iterate_over_regset_sections): New.
543 (nios2_linux_init_abi): Adjust gdbarch initialization.
544
545 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
546
547 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
548 (am33_iterate_over_regset_sections): New.
549 (am33_linux_init_osabi): Adjust gdbarch initialization.
550
551 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
552
553 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
554 (mips_linux_iterate_over_regset_sections): New.
555 (mips_linux_init_abi): Adjust gdbarch initialization.
556 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
557 (mips64obsd_iterate_over_regset_sections): New.
558 (mips64obsd_init_abi): Adjust.
559 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
560 (mipsnbsd_iterate_over_regset_sections): New.
561 (mipsnbsd_init_abi): Adjust.
562
563 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
564
565 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
566 (m88k_iterate_over_regset_sections): New.
567 (m88k_gdbarch_init): Adjust gdbarch initialization.
568
569 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
570
571 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
572 (ia64_linux_iterate_over_regset_sections): New.
573 (ia64_linux_init_abi): Adjust gdbarch initialization.
574
575 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
576
577 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
578 (m68kbsd_iterate_over_regset_sections): New.
579 (m68kbsd_init_abi): Adjust gdbarch initialization.
580 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
581 (m68k_linux_iterate_over_regset_sections): New.
582 (m68k_linux_init_abi): Adjust gdbarch initialization.
583
584 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
585
586 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
587 (m32r_linux_regset_from_core_section): Remove.
588 (m32r_linux_iterate_over_regset_sections): New.
589 (m32r_linux_init_abi): Adjust gdbarch initialization.
590
591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
592
593 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
594 (amd64obsd_iterate_over_regset_sections): New.
595 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
596 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
597 Remove.
598 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
599 regset_from_core_section initialization.
600 * i386-tdep.c (i386_regset_from_core_section): Remove.
601 (i386_iterate_over_regset_sections): New.
602 (i386_gdbarch_init): Adjust gdbarch initialization.
603 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
604 (i386_iterate_over_regset_sections): New prototype.
605 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
606 Remove.
607 (i386obsd_aout_iterate_over_regset_sections): New.
608 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
609 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
610 targets.
611 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
612 (amd64fbsd_init_abi): Call fbsd_init_abi.
613 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
614 (i386fbsd4_init_abi): Call fbsd_init_abi.
615 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
616 target method 'make_corefile_notes'.
617 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
618
619 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
620
621 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
622 (hppa_hpux_iterate_over_regset_sections): New.
623 (hppa_hpux_init_abi): Adjust gdbarch initialization.
624 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
625 (hppa_linux_iterate_over_regset_sections): New.
626 (hppa_linux_init_abi): Adjust.
627 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
628 (hppanbsd_iterate_over_regset_sections): New.
629 (hppanbsd_init_abi): Adjust.
630 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
631 (hppaobsd_iterate_over_regset_sections): New.
632 (hppaobsd_init_abi): Adjust.
633
634 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
635
636 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
637 (frv_linux_iterate_over_regset_sections): New.
638 (frv_linux_init_abi): Adjust gdbarch initialization.
639
640 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
641
642 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
643 (armbsd_iterate_over_regset_sections): New prototype.
644 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
645 (armbsd_iterate_over_regset_sections): New.
646 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
647 initialization.
648
649 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
650
651 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
652 (alpha_linux_iterate_over_regset_sections): New.
653 (alpha_linux_init_abi): Adjust gdbarch initialization.
654 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
655 prototype.
656 (alphanbsd_iterate_over_regset_sections): New prototype.
657
658 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
659
660 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
661 Remove.
662 (aarch64_linux_iterate_over_regset_sections): New.
663 (aarch64_linux_init_abi): Adjust gdbarch initialization.
664
665 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
666
667 * fbsd-tdep.c: New file.
668 * fbsd-tdep.h: New file.
669 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
670 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
671 (ALLDEPFILES): Add fbsd-tdep.c.
672
673 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
674
675 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
676 parameter.
677 * gdbarch.h: Regenerate.
678 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
679 iterator.
680 (get_core_register_section): Add parameter 'regset' and use it, if
681 set. Add parameter 'min_size' and verify the bfd section size
682 against it.
683 (get_core_registers_cb): Add parameter 'regset' and pass it to
684 get_core_register section. For the "standard" register sections
685 ".reg" and ".reg2", set an appropriate default for human_name.
686 (get_core_registers): Don't abort when the gdbarch has an iterator
687 but no regset_from_core_section. Add NULL/0 for parameters
688 'regset'/'min_size' in calls to get_core_register_section.
689 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
690 'regset' and use it instead of calling the
691 regset_from_core_section gdbarch method.
692 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
693 * i386-tdep.c (i386_supply_xstateregset)
694 (i386_collect_xstateregset, i386_xstateregset): Moved to
695 i386-linux-tdep.c.
696 (i386_regset_from_core_section): Drop handling for .reg-xfp and
697 .reg-xstate.
698 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
699 core file support only if the regset iterator hasn't been set.
700 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
701 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
702 Moved from i386-tdep.c and renamed to *_linux*.
703 (i386_linux_iterate_over_regset_sections): Add regset parameter to
704 each callback invocation. Allow any .reg-xstate size when reading
705 from a core file.
706 * amd64-tdep.c (amd64_supply_xstateregset)
707 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
708 amd64-linux-tdep.c.
709 (amd64_regset_from_core_section): Remove.
710 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
711 install an amd64-specific regset_from_core_section gdbarch method.
712 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
713 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
714 Moved from amd64-tdep.c and renamed to *_linux*.
715 (amd64_linux_iterate_over_regset_sections): Add regset parameter
716 to each callback invocation. Allow any .reg-xstate size when
717 reading from a core file.
718 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
719 (arm_linux_iterate_over_regset_sections): Add regset parameter to
720 each callback invocation.
721 (arm_linux_init_abi): No longer set the regset_from_core_section
722 gdbarch method.
723 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
724 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
725 each callback invocation.
726 (ppc_linux_init_abi): No longer set the regset_from_core_section
727 gdbarch method.
728 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
729 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
730 (s390_regset_from_core_section): Remove.
731 (s390_iterate_over_regset_sections): Add regset parameter to each
732 callback invocation.
733 (s390_gdbarch_init): No longer set the regset_from_core_section
734 gdbarch method. Drop initialization of deleted tdep fields.
735
736 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
737
738 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
739 (amd64_linux_iterate_over_regset_sections): New.
740 (amd64_linux_init_abi_common): Don't install the regset section
741 list, but the new iterator in gdbarch.
742 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
743 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
744 (arm_linux_iterate_over_regset_sections): ...here. New function.
745 (arm_linux_init_abi): Set iterator instead of section list.
746 * corelow.c (get_core_registers_cb): New function, logic moved
747 from...
748 (get_core_registers): ...loop body here. Use new iterator method
749 instead of walking through the regset section list.
750 * gdbarch.sh: Remove 'core_regset_sections'. New method
751 'iterate_over_regset_sections'. New typedef
752 'iterate_over_regset_sections_cb'.
753 * gdbarch.c: Regenerate.
754 * gdbarch.h: Likewise.
755 * i386-linux-tdep.c (i386_linux_regset_sections)
756 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
757 Remove.
758 (i386_linux_iterate_over_regset_sections): New.
759 (i386_linux_init_abi): Don't choose a regset section list, but
760 install new iterator in gdbarch.
761 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
762 (linux_collect_regset_section_cb): New function, logic moved
763 from...
764 (linux_collect_thread_registers): ...loop body here. Use iterator
765 method instead of walking through list.
766 (linux_make_corefile_notes_1): Check for presence of iterator
767 method instead of regset section list.
768 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
769 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
770 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
771 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
772 (ppc_linux_iterate_over_regset_sections): ...here. New function.
773 (ppc_linux_init_abi): Don't choose from above regset section
774 lists, but install new iterator in gdbarch.
775 * regset.h (struct core_regset_section): Remove.
776 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
777 have_linux_v1, have_linux_v2, and have_tdb.
778 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
779 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
780 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
781 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
782 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
783 (s390_iterate_over_regset_sections): ...here. New function. Use
784 new tdep fields.
785 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
786 regset section lists, but install new iterator.
787
788 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
789
790 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
791
792 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
793
794 * progspace.c (print_program_space): Don't prune program spaces
795 before printing them.
796
797 2014-09-25 Pedro Alves <palves@redhat.com>
798
799 * infrun.c (user_visible_resume_ptid): Don't check
800 singlestep_breakpoints_inserted_p.
801
802 2014-09-25 Pedro Alves <palves@redhat.com>
803
804 * breakpoint.c (should_be_inserted): Add debug output.
805
806 2014-09-25 Pedro Alves <palves@redhat.com>
807
808 * infrun.c (stepping_past_instruction_at)
809 (clear_exit_convenience_vars): Point at infrun.h instead of
810 inferior.h.
811 (handle_signal_stop): Fix typo.
812
813 2014-09-24 Yao Qi <yao@codesourcery.com>
814
815 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
816 bitmask.
817
818 2014-09-22 Gary Benson <gbenson@redhat.com>
819
820 * target.c (target_stop): Updated comment.
821
822 2014-09-22 Gary Benson <gbenson@redhat.com>
823
824 * target/target.h (target_stop_ptid): Renamed as...
825 (target_stop_and_wait): New function. Updated comment.
826 All uses updated.
827 (target_continue_ptid): Renamed as...
828 (target_continue_no_signal): New function. Updated comment.
829 All uses updated.
830
831 2014-09-22 Pedro Alves <palves@redhat.com>
832
833 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
834 and "auto" merged.
835 * breakpoint.c (enum ugll_insert_mode): New enum.
836 (always_inserted_mode): Now a plain boolean.
837 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
838 (breakpoints_always_inserted_mode): Delete.
839 (breakpoints_should_be_inserted_now): New function.
840 (insert_breakpoints): Pass UGLL_INSERT to
841 update_global_location_list instead of calling
842 insert_breakpoint_locations manually.
843 (create_solib_event_breakpoint_1): New, factored out from ...
844 (create_solib_event_breakpoint): ... this.
845 (create_and_insert_solib_event_breakpoint): Use
846 create_solib_event_breakpoint_1 instead of calling
847 insert_breakpoint_locations manually.
848 (update_global_location_list): Change parameter type from boolean
849 to enum ugll_insert_mode. All callers adjusted. Adjust to use
850 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
851 (update_global_location_list_nothrow): Change parameter type from
852 boolean to enum ugll_insert_mode.
853 (_initialize_breakpoint): "breakpoint always-inserted" option is
854 now a boolean command. Update help text.
855 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
856 (breakpoints_should_be_inserted_now): New declaration.
857 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
858 Remove breakpoints_always_inserted_mode check.
859 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
860 * remote.c (remote_start_remote): Likewise.
861
862 2014-09-22 Pedro Alves <palves@redhat.com>
863
864 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
865 (insert_breakpoints): Don't call insert_breakpoint_locations here.
866 Instead, pass UGLL_INSERT to update_global_location_list.
867 (update_global_location_list): Change parameter type from boolean
868 to enum ugll_insert_mode. All callers adjusted. Adjust to use
869 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
870 (create_solib_event_breakpoint_1): New, factored out from ...
871 (create_solib_event_breakpoint): ... this.
872 (create_and_insert_solib_event_breakpoint): Use
873 create_solib_event_breakpoint_1 instead of calling
874 insert_breakpoint_locations manually.
875 (update_global_location_list): Handle UGLL_INSERT.
876
877 2014-09-22 Pedro Alves <palves@redhat.com>
878
879 * breakpoint.c (enum ugll_insert_mode): New enum.
880 (update_global_location_list)
881 (update_global_location_list_nothrow): Change parameter type from
882 boolean to enum ugll_insert_mode. All callers adjusted.
883
884 2014-09-19 Joel Brobecker <brobecker@adacore.com>
885
886 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
887 SystemTap support in GDB.
888
889 2014-09-19 Don Breazeal <donb@codesourcery.com>
890
891 * linux-nat.c (linux_handle_extended_wait): Call
892 linux_ptrace_get_extended_event.
893 (wait_lwp): Call linux_is_extended_waitstatus.
894 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
895 and linux_is_extended_waitstatus.
896 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
897 linux_ptrace_get_extended_event.
898 (linux_ptrace_get_extended_event): New function.
899 (linux_is_extended_waitstatus): New function.
900 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
901 (linux_is_extended_waitstatus): New declarations.
902
903 2014-09-19 Yao Qi <yao@codesourcery.com>
904
905 * dwarf2read.c (dwarf_decode_lines): Update declaration.
906 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
907 comments. Callers update.
908 (dwarf_decode_lines): Likewise.
909 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
910 comments. Skip the line table if 'lowpc' is greater than
911 'address'. Don't check
912 dwarf2_per_objfile->has_section_at_zero.
913
914 2014-09-18 Doug Evans <dje@google.com>
915
916 * NEWS: Mention new "producer" attribute of gdb.Symtab.
917 * python/py-symtab.c (stpy_get_producer): New function.
918 (symtab_object_getset): Add "producer" attribute.
919
920 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
921
922 PR gdb/17384
923 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
924 (do_captured_read_memory_integer): Remove.
925 (safe_read_memory_integer): Use target_read_memory directly instead
926 of catching errors in do_captured_read_memory_integer.
927
928 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
929
930 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
931 not gdb/doc.
932
933 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
934
935 * objc-lang.c (find_implementation_from_class): Remove dead code.
936
937 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
938
939 PR cli/7233
940 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
941 "fprintf_unfiltered (gdb_stdlog...)".
942
943 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
944
945 PR breakpoints/12526
946 * breakpoint.h (struct watchpoint): New fields val_bitpos and
947 val_bitsize.
948 * breakpoint.c (watch_command_1): Use these fields to retain
949 bitfield information.
950 (extract_bitfield_from_watchpoint_value): New function.
951 (watchpoint_check): Use it.
952 (update_watchpoint): Use it. Optimize the address and length of a
953 HW watchpoint pointing to a bitfield.
954 * value.h (unpack_value_bitfield): New prototype.
955 * value.c (unpack_value_bitfield): Make extern.
956
957 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
958
959 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
960 x86-dregs.o.
961 * gnu-nat.c (inf_threads): New function.
962 * gnu-nat.h (inf_threads_ftype): New typedef.
963 (inf_threads): New declaration.
964 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
965 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
966 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
967 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
968 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
969 (i386_gnu_dr_get_control): New functions.
970 (reg_addr): New structure.
971 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
972 i386 debugging register hooks.
973 * NEWS: Mention this.
974
975 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
976
977 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
978 vector data transfer instructions.
979 (arm_record_coproc_data_proc): Updated.
980
981 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
982
983 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
984 arm_record_exreg_ld_st_insn.
985 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
986 load/store insns.
987
988 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
989
990 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
991 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
992 processing instructions.
993
994 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
995
996 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
997 for advance SIMD struct ld/st insn.
998 (thumb2_record_decode_insn_handler): Replace stub handler with
999 thumb2_record_asimd_struct_ld_st.
1000
1001 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1002
1003 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1004 for asimd, vfp and coprocessor insns.
1005 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1006 and coprocessor insns.
1007 (thumb2_record_coproc_insn): New function.
1008 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1009 handlers.
1010 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1011 opcode 110 insns.
1012
1013 2014-09-13 Doug Evans <xdje42@gmail.com>
1014
1015 * NEWS: Mention new "queue-signal" command.
1016 * infcmd.c (queue_signal_command): New function.
1017 (_initialize_infcmd): Add new queue-signal command.
1018
1019 2014-09-13 Doug Evans <xdje42@gmail.com>
1020
1021 * linux-nat.c (wait_lwp): Add debugging printf.
1022 (linux_nat_wait_1): Ditto.
1023
1024 2014-09-12 Pedro Alves <palves@redhat.com>
1025
1026 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1027 (create_and_insert_solib_event_breakpoint): New functions.
1028 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1029 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1030 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1031 (remove_dbx_link_breakpoint): Delete function.
1032 (insert_dbx_link_bpt_in_file): Use
1033 create_and_insert_solib_event_breakpoint instead of
1034 deprecated_insert_raw_breakpoint.
1035 (procfs_wait): Don't check whether we hit __dbx_link here.
1036 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1037 here.
1038 * solib-irix.c (base_breakpoint): Delete global.
1039 (disable_break): Delete function.
1040 (enable_break): Use create_solib_event_breakpoint
1041 instead of deprecated_insert_raw_breakpoint.
1042 (irix_solib_handle_event): New function.
1043 (irix_solib_create_inferior_hook): Don't run the target or disable
1044 the mapping-complete breakpoint here.
1045 (_initialize_irix_solib): Install irix_solib_handle_event as
1046 so_ops->handle_event hook.
1047
1048 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1049 Ulrich Weigand  <uweigand@de.ibm.com>
1050
1051 PR tdep/17379
1052 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1053 instead of read_memory_unsigned_integer.
1054
1055 2014-09-12 Gary Benson <gbenson@redhat.com>
1056
1057 * nat/linux-waitpid.c: Include common-defs.h.
1058 [GDBSERVER]: Add FIXME comment.
1059 [!GDBSERVER]: Don't include defs.h or signal.h.
1060 (linux_debug) [!GDBSERVER]: Remove empty block.
1061
1062 2014-09-12 Gary Benson <gbenson@redhat.com>
1063
1064 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1065 Don't include defs.h or server.h.
1066
1067 2014-09-12 Gary Benson <gbenson@redhat.com>
1068
1069 * nat/linux-btrace.c: Include common-defs.h.
1070 Don't include defs.h, server.h or gdbthread.h.
1071 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1072
1073 2014-09-12 Gary Benson <gbenson@redhat.com>
1074
1075 * common/agent.c: Include common-defs.h.
1076 Don't include defs.h or server.h.
1077 * common/buffer.c: Likewise.
1078 * common/common-debug.c: Likewise.
1079 * common/common-utils.c: Likewise.
1080 * common/errors.c: Likewise.
1081 * common/filestuff.c: Likewise.
1082 * common/format.c: Likewise.
1083 * common/gdb_vecs.c: Likewise.
1084 * common/print-utils.c: Likewise.
1085 * common/ptid.c: Likewise.
1086 * common/rsp-low.c: Likewise.
1087 * common/signals.c: Likewise.
1088 * common/vec.c: Likewise.
1089 * common/xml-utils.c: Likewise.
1090 * nat/linux-osdata.c: Likewise.
1091 * nat/linux-procfs.c: Likewise.
1092 * nat/linux-ptrace.c: Likewise.
1093 * nat/mips-linux-watch.c: Likewise.
1094 * target/waitstatus.c: Likewise.
1095
1096 2014-09-12 Tom Tromey <tromey@redhat.com>
1097 Gary Benson <gbenson@redhat.com>
1098
1099 * common/common-regcache.h: New file.
1100 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1101 * regcache.h: Include common-regcache.h.
1102 (regcache_read_pc): Don't declare.
1103 * regcache.c (get_thread_regcache_for_ptid): New function.
1104 * nat/linux-btrace.c: Don't include regcache.h.
1105 Include common-regcache.h.
1106 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1107
1108 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1109
1110 * regcache.h (struct regset): Declare.
1111
1112 2014-09-11 Pedro Alves <palves@redhat.com>
1113
1114 PR gdb/17347
1115 * main.c: Include "infrun.h".
1116 (catch_command_errors, catch_command_errors_const): Wait for the
1117 foreground command to complete.
1118 * top.c (maybe_wait_sync_command_done): New function, factored out
1119 from ...
1120 (maybe_wait_sync_command_done): ... here.
1121 * top.h (maybe_wait_sync_command_done): New declaration.
1122
1123 2014-09-11 Tom Tromey <tromey@redhat.com>
1124 Gary Benson <gbenson@redhat.com>
1125
1126 * common/symbol.h: New file.
1127 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1128 * minsyms.c (find_minimal_symbol_address): New function.
1129 * common/agent.c: Include common/symbol.h.
1130 [!GDBSERVER]: Don't include objfiles.h.
1131 (agent_look_up_symbols): Use find_minimal_symbol_address.
1132
1133 2014-09-11 Gary Benson <gbenson@redhat.com>
1134
1135 * target/target.h (target_stop_ptid, target_continue_ptid):
1136 Declare.
1137 * target.c (target_stop_ptid, target_continue_ptid): New
1138 functions.
1139 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1140 (agent_run_command): Always use target_stop_ptid and
1141 target_continue_ptid.
1142
1143 2014-09-11 Tom Tromey <tromey@redhat.com>
1144 Gary Benson <gbenson@redhat.com>
1145
1146 * target/target.h: New file.
1147 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1148 * target.h: Include target/target.h.
1149 (target_read_memory, target_write_memory): Don't declare.
1150 * target.c (target_read_uint32): New function.
1151 * common/agent.c: Include target/target.h.
1152 [!GDBSERVER]: Don't include target.h.
1153 (helper_thread_id): Type changed to uint32_t.
1154 (agent_get_helper_thread_id): Use target_read_uint32.
1155 (agent_run_command): Always use target_read_memory and
1156 target_write_memory.
1157 (agent_capability): Type changed to uint32_t.
1158 (agent_capability_check): Use target_read_uint32.
1159
1160 2014-09-11 Gary Benson <gbenson@redhat.com>
1161
1162 * common/common-debug.h (show_debug_regs): Declare.
1163 * common/common-debug.c (show_debug_regs): Define.
1164 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1165 all uses with show_debug_regs. Replace all uses that considered
1166 debug_hw_points as a multi-value integer with straight boolean
1167 uses.
1168 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1169 with show_debug_regs.
1170 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1171 all uses with show_debug_regs.
1172 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1173 uses with show_debug_regs.
1174
1175 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1176
1177 * findvar.c (address_from_register): Handle targets requiring
1178 a special conversion routine even for plain pointer types.
1179
1180 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1181
1182 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1183 (store_register): Do not call exec_one_dummy_insn.
1184
1185 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1186
1187 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1188 dereference it first. Use value_enclosing_type instead of
1189 value_type.
1190 (ada_array_length): Likewise.
1191
1192 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1193
1194 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1195 Adjust function implementation and documentation accordingly.
1196 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1197 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1198 Update call to ada_value_ptr_subscript.
1199
1200 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1201
1202 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1203 instead of VAL's type.
1204
1205 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1206
1207 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1208
1209 2014-09-09 Doug Evans <xdje42@gmail.com>
1210
1211 PR guile/17367
1212 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1213 last parameter to pkg-config, not first.
1214 * configure.ac: Pass --with-guile provided pkg-config path to
1215 GDB_GUILE_PROGRAM_NAMES.
1216 * configure: Regenerate.
1217
1218 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1219
1220 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1221 Bertazi".
1222
1223 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1224
1225 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1226 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1227 the list of sections determining GDB_OSABI_IRIX.
1228
1229 2014-09-09 James Hogan <james.hogan@imgtec.com>
1230
1231 * MAINTAINERS (Write After Approval): Add "James Hogan".
1232
1233 2014-09-09 James Hogan <james.hogan@imgtec.com>
1234
1235 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1236
1237 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1238
1239 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1240
1241 2014-09-08 Doug Evans <xdje42@gmail.com>
1242
1243 PR 17247
1244 * guile.c: #include <signal.h>.
1245 (_initialize_guile): Block SIGCHLD while initializing Guile.
1246
1247 Replaces the following, which is reverted.
1248
1249 2014-07-26 Doug Evans <xdje42@gmail.com>
1250
1251 PR 17185
1252 * configure.ac: Add check for header gc/gc.h.
1253 Add check for function setenv.
1254 * configure: Regenerate.
1255 * config.in: Regenerate.
1256 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1257
1258 2014-09-08 Doug Evans <xdje42@gmail.com>
1259
1260 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1261 with named constant. Fix style of pointer comparison.
1262 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1263
1264 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1265
1266 PR gdb/17035
1267 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1268 decide whether we display the command on "show user".
1269 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1270 printing command name.
1271 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1272 * cli/cli-decode.c (cli_user_command_p): Create helper function
1273 to verify whether cmd_list_element is a user-defined command.
1274
1275 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1276
1277 PR python/17355
1278 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1279 Fix goto out of TRY_CATCH.
1280
1281 2014-09-06 Doug Evans <xdje42@gmail.com>
1282 Tom Tromey <tromey@redhat.com>
1283
1284 PR 15276
1285 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1286 $_any_caller_matches.
1287 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1288 * python/lib/gdb/function/caller_is.py: New file.
1289
1290 2014-09-06 Doug Evans <xdje42@gmail.com>
1291
1292 * infcmd.c (program_info): Fix typo.
1293
1294 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1295
1296 PR gdb/17235
1297 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1298 'number'. New variable 'has_digit'. Rewrite code to deal with
1299 subexpressions on SDT probes.
1300
1301 2014-09-04 Pedro Alves <palves@redhat.com>
1302
1303 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1304 the input is only one character long.
1305
1306 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1307
1308 PR fortran/17237
1309 * f-valprint.c (f_val_print): Specify the correct print option to
1310 use when printing integer values.
1311
1312 2014-09-04 Gary Benson <gbenson@redhat.com>
1313
1314 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1315 Remove code to cope with LWPs wrapped as PIDs.
1316 Add assertions to ensure no wrapped LWPs are passed.
1317
1318 2014-09-04 Pedro Alves <palves@redhat.com>
1319
1320 * value.c (value_ranges_copy_adjusted): New function, factored out
1321 from ...
1322 (value_contents_copy_raw): ... here.
1323 (unpack_value_bits_as_long_1): Rename back to ...
1324 (unpack_bits_as_long): ... this. Remove 'original_value' and
1325 'result' parameters. Change return type to LONGEST.
1326 (unpack_value_bits_as_long): Delete.
1327 (unpack_value_field_as_long_1): Delete.
1328 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1329 (unpack_value_bitfield): New function.
1330 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1331 (value_fetch_lazy): Use unpack_value_bitfield.
1332 * value.h (unpack_value_bits_as_long): Delete declaration.
1333
1334 2014-09-03 Sasha Smundak <asmundak@google.com>
1335
1336 * python/py-frame.c (frapy_read_register): New function.
1337
1338 2014-09-03 James Hogan <james.hogan@imgtec.com>
1339
1340 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1341 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1342
1343 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1344
1345 PR python/16699
1346 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1347 function.
1348 (add_cmd): Set "completer_handle_brkchars" to NULL.
1349 * cli/cli-decode.h (struct cmd_list_element)
1350 <completer_handle_brkchars>: New field.
1351 * command.h (completer_ftype_void): New typedef.
1352 (set_cmd_completer_handle_brkchars): New prototype.
1353 * completer.c (set_gdb_completion_word_break_characters): New
1354 function.
1355 (complete_line_internal): Call "completer_handle_brkchars"
1356 callback from command.
1357 * completer.h: Include "command.h".
1358 (set_gdb_completion_word_break_characters): New prototype.
1359 * python/py-cmd.c (cmdpy_completer_helper): New function.
1360 (cmdpy_completer_handle_brkchars): New function.
1361 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1362 (cmdpy_init): Set completer_handle_brkchars to
1363 cmdpy_completer_handle_brkchars.
1364
1365 2014-09-03 Gary Benson <gbenson@redhat.com>
1366
1367 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1368 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1369 Loop conditions changed to equivalent form.
1370 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1371 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1372 ALL_DEBUG_ADDRESS_REGISTERS.
1373
1374 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1375
1376 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1377 description fix.
1378
1379 2014-09-02 Doug Evans <dje@google.com>
1380
1381 * typeprint.c (find_global_typedef): Fix comment.
1382
1383 2014-09-02 Gary Benson <gbenson@redhat.com>
1384
1385 * i386-nat.h: Renamed as...
1386 * x86-nat.h: New file. All type, function and variable name
1387 prefixes changed from "i386_" to "x86_". All references updated.
1388 * i386-nat.c: Renamed as...
1389 * x86-nat.c: New file. All type, function and variable name
1390 prefixes changed from "i386_" to "x86_". All references updated.
1391 * common/i386-xstate.h: Renamed as...
1392 * common/x86-xstate.h: New file. All type, function and variable
1393 name prefixes changed from "i386_" to "x86_". All references
1394 updated.
1395 * nat/i386-cpuid.h: Renamed as...
1396 * nat/x86-cpuid.h: New file. All type, function and variable name
1397 prefixes changed from "i386_" to "x86_". All references updated.
1398 * nat/i386-gcc-cpuid.h: Renamed as...
1399 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1400 name prefixes changed from "i386_" to "x86_". All references
1401 updated.
1402 * nat/i386-dregs.h: Renamed as...
1403 * nat/x86-dregs.h: New file. All type, function and variable name
1404 prefixes changed from "i386_" to "x86_". All references updated.
1405 * nat/i386-dregs.c: Renamed as...
1406 * nat/x86-dregs.c: New file. All type, function and variable name
1407 prefixes changed from "i386_" to "x86_". All references updated.
1408
1409 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1410
1411 * varobj.c (_initialize_varobj): Move to the end of file.
1412
1413 2014-08-29 Gary Benson <gbenson@redhat.com>
1414
1415 * common/common-exceptions.h: New file.
1416 * common/common-exceptions.c: Likewise.
1417 * Makefile.in (SFILES): Add common/common-exceptions.c.
1418 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1419 (COMMON_OBS): Add common-exceptions.o.
1420 (common-exceptions.o): New rule.
1421 * exceptions.h (common-exceptions.h): Include.
1422 (gdb_setjmp.h): Do not include.
1423 (return_reason): Moved to common-exceptions.h.
1424 (enum return_reason): Likewise.
1425 (RETURN_MASK): Likewise.
1426 (typedef return_mask): Likewise.
1427 (enum errors): Likewise.
1428 (struct gdb_exception): Likewise.
1429 (exceptions_state_mc_init): Likewise.
1430 (exceptions_state_mc_action_iter): Likewise.
1431 (exceptions_state_mc_action_iter_1): Likewise.
1432 (TRY_CATCH): Likewise.
1433 (throw_exception): Likewise.
1434 (throw_verror): Likewise.
1435 (throw_vquit): Likewise.
1436 (throw_error): Likewise.
1437 (throw_quit): Likewise.
1438 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1439 (enum catcher_action): Likewise.
1440 (struct catcher): Likewise.
1441 (current_catcher): Likewise.
1442 (catcher_list_size): Likewise.
1443 (exceptions_state_mc_init): Likewise.
1444 (catcher_pop): Likewise.
1445 (exceptions_state_mc): Likewise.
1446 (exceptions_state_mc_action_iter): Likewise.
1447 (exceptions_state_mc_action_iter_1): Likewise.
1448 (throw_exception): Likewise.
1449 (exception_messages): Likewise.
1450 (exception_messages_size): Likewise.
1451 (throw_it): Likewise.
1452 (throw_verror): Likewise.
1453 (throw_vquit): Likewise.
1454 (throw_error): Likewise.
1455 (throw_quit): Likewise.
1456 (prepare_to_throw_exception): New function.
1457
1458 2014-08-29 Gary Benson <gbenson@redhat.com>
1459
1460 * common/gdb_setjmp.h: New file.
1461 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1462 * configure.ac: Move sigsetjmp check...
1463 * common/common.m4: ...here.
1464 * configure: Regenerate.
1465 * cp-support.c (SIGJMP_BUF): Delete.
1466 (SIGSETJMP): Likewise.
1467 (SIGLONGJMP): Likewise.
1468 * exceptions.h (gdb_setjmp.h): Include.
1469 (setjmp.h): Do not include.
1470 (EXCEPTIONS_SIGJMP_BUF): Delete.
1471 (EXCEPTIONS_SIGSETJMP): Likewise.
1472 (EXCEPTIONS_SIGLONGJMP): Likewise.
1473 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1474 from gdb_setjmp.h.
1475 * exceptions.c: Likewise.
1476
1477 2014-08-29 Gary Benson <gbenson@redhat.com>
1478
1479 * cleanups.h: Moved to...
1480 * common/cleanups.h: New file.
1481 * cleanups.c: Moved to...
1482 * common/cleanups.c: New file. Include common-defs.h and
1483 cleanups.h. Do not include defs.h.
1484 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1485 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1486 (cleanups.o): New rule.
1487
1488 2014-08-29 Gary Benson <gbenson@redhat.com>
1489
1490 * common/errors.h (internal_warning): New declaration.
1491 (internal_vwarning): Likewise.
1492 * common/errors.c (internal_warning): New function.
1493 * utils.h (internal_warning): Don't declare.
1494 (internal_vwarning): Likewise.
1495 * utils.c (internal_warning): Removed.
1496
1497 2014-08-29 Gary Benson <gbenson@redhat.com>
1498
1499 * main.c (captured_main): Use warning during startup.
1500 Prefix startup warning messages with command name.
1501
1502 2014-08-29 Gary Benson <gbenson@redhat.com>
1503
1504 * main.c (captured_main): Handle usage errors with error.
1505
1506 2014-08-29 Gary Benson <gbenson@redhat.com>
1507
1508 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1509 exit pair with a call to error. Wrap the message with _().
1510
1511 2014-08-29 Gary Benson <gbenson@redhat.com>
1512
1513 * main.c (captured_main): Replace a fprintf/exit
1514 pair with a call to error. Wrap the message with _().
1515
1516 2014-08-29 Gary Benson <gbenson@redhat.com>
1517
1518 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1519 pairs with calls to error. Wrap the message with _().
1520
1521 2014-08-29 Gary Benson <gbenson@redhat.com>
1522
1523 * utils.c (vwarning): Protect calls to target_terminal_ours
1524 and wrap_here.
1525
1526 2014-08-29 Gary Benson <gbenson@redhat.com>
1527
1528 * exceptions.c (print_flush): Protect calls to
1529 target_terminal_ours and wrap_here.
1530
1531 2014-08-29 Gary Benson <gbenson@redhat.com>
1532
1533 * utils.h (filtered_printing_initialized): New declaration.
1534 * utils.c (abort_with_message): New function.
1535 (internal_vproblem): Use abort_with_message for first level
1536 recursive internal problems, and if gdb_stderr is not set up.
1537 Protect calls to target_terminal_ours, begin_line and query.
1538
1539 2014-08-28 Doug Evans <dje@google.com>
1540
1541 * symtab.c (in_prologue): Move definition to better spot.
1542 (skip_prologue_using_sal): Ditto.
1543
1544 2014-08-28 Doug Evans <dje@google.com>
1545
1546 * symtab.c (find_function_start_sal): Move definition to better spot.
1547
1548 2014-08-28 Yao Qi <yao@codesourcery.com>
1549
1550 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1551 found_stack_adjust in forward scan. Remove condition check
1552 on found_stack_adjust which is always true. Indent the code.
1553
1554 2014-08-28 Yao Qi <yao@codesourcery.com>
1555
1556 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1557 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1558 (dwarf_decode_lines): Remove argument
1559 want_line_info. Remove condition check on want_line_info.
1560 Callers update.
1561
1562 2014-08-27 Doug Evans <dje@google.com>
1563
1564 * dwarf2read.c (dwarf_record_line): Fix typo.
1565
1566 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1567
1568 * target.h (struct target_ops::to_terminal_save_ours): Remove
1569 declaration.
1570 (target_terminal_save_ours): Remove macro.
1571 * target-delegates.c: Regenerate.
1572 * inf-child.c (inf_child_target): Don't set the nonexistent
1573 field to_terminal_save_ours.
1574 * inferior.h (child_terminal_save_ours): Remove declaration.
1575 * terminal.h (gdb_save_tty_state): New declaration.
1576 * inflow.c (child_terminal_save_ours): Rename to ...
1577 (gdb_save_tty_state): ... this.
1578 * tui/tui.c: Include terminal.h.
1579 (tui_enable): Use gdb_save_tty_state instead of
1580 target_terminal_save_ours.
1581 (tui_disable): Likewise.
1582
1583 2014-08-25 Doug Evans <dje@google.com>
1584
1585 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1586 Pass NULL instead of 0 for context pointer.
1587
1588 2014-08-25 Yao Qi <yao@codesourcery.com>
1589
1590 * dwarf2read.c: Fix grammatical error.
1591
1592 2014-08-24 Yao Qi <yao@codesourcery.com>
1593
1594 * dwarf2read.c (scan_partial_symbols): Update comments.
1595 Rename argument 'need_pc' with 'set_addrmap'.
1596 (add_partial_namespace): Rename argument 'need_pc' with
1597 'set_addrmap'.
1598 (add_partial_module): Likewise.
1599 (add_partial_subprogram): Likewise. Update comments.
1600 (dwarf2_name): Fix typo.
1601
1602 2014-08-22 Doug Evans <dje@google.com>
1603
1604 PR 17276
1605 * dwarf2read.c (dwarf_record_line_p): New function.
1606 (dwarf_decode_lines_1): Ignore subsequent line number entries
1607 for the same line if any entry had a non-zero discriminator.
1608
1609 2014-08-22 Doug Evans <dje@google.com>
1610
1611 * buildsym.h (record_line_ftype): New typedef.
1612 (record_line): Use it.
1613 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1614 (dwarf_decode_lines_1): Call them.
1615
1616 2014-08-22 Yao Qi <yao@codesourcery.com>
1617
1618 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1619 (ctf_end): Remove code.
1620
1621 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1622
1623 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1624 (linux_make_corefile_notes): call update_thread_list, protected against
1625 exceptions.
1626
1627 2014-08-21 Pedro Alves <palves@redhat.com>
1628
1629 * infcmd.c (attach_command): Remove comment.
1630
1631 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1632
1633 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1634 unsigned LONGEST to ULONGEST.
1635
1636 2014-08-20 Pedro Alves <palves@redhat.com>
1637
1638 * Makefile.in (check-read1): New rule.
1639
1640 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1641
1642 * value.c (value_from_contents_and_address): Strip resolved_type's
1643 typedef layers before checking its TYPE_DATA_LOCATION.
1644
1645 2014-08-20 Pedro Alves <palves@redhat.com>
1646
1647 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1648
1649 2014-08-20 Yao Qi <yao@codesourcery.com>
1650
1651 * amd64-tdep.c (amd64_classify): Add a blank line after the
1652 example. Move "*/" to a new line.
1653 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1654 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1655 * dwarf2read.c (psymtab_include_file_name): Likewise.
1656
1657 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1658 Pedro Alves <palves@redhat.com>
1659
1660 PR symtab/14604
1661 PR symtab/14605
1662 * ada-lang.c (coerce_unspec_val_to_type): Use
1663 value_contents_copy_raw.
1664 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1665 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1666 * cp-valprint.c (cp_print_value_fields): Let the common printing
1667 code handle optimized out values.
1668 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1669 * d-valprint.c (dynamic_array_type): Use
1670 value_bits_any_optimized_out.
1671 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1672 check_any_valid fields.
1673 (check_pieced_value_bits): Delete and inline ...
1674 (check_pieced_synthetic_pointer): ... here.
1675 (check_pieced_value_validity): Delete.
1676 (check_pieced_value_invalid): Delete.
1677 (pieced_value_funcs): Remove check_validity and check_any_valid
1678 fields.
1679 (read_pieced_value): Use mark_value_bits_optimized_out.
1680 (write_pieced_value): Switch to use
1681 mark_value_bytes_optimized_out.
1682 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1683 of assuming the whole value is optimized out.
1684 * findvar.c (read_frame_register_value): Remove special handling
1685 of optimized out registers.
1686 (value_from_register): Use mark_value_bytes_optimized_out.
1687 * frame-unwind.c (frame_unwind_got_optimized): Use
1688 mark_value_bytes_optimized_out.
1689 * jv-valprint.c (java_value_print): Adjust.
1690 (java_print_value_fields): Let the common printing code handle
1691 optimized out values.
1692 * mips-tdep.c (mips_print_register): Remove special handling of
1693 optimized out registers.
1694 * opencl-lang.c (lval_func_check_validity): Delete.
1695 (lval_func_check_any_valid): Delete.
1696 (opencl_value_funcs): Remove check_validity and check_any_valid
1697 fields.
1698 * p-valprint.c (pascal_object_print_value_fields): Let the common
1699 printing code handle optimized out values.
1700 * stack.c (read_frame_arg): Remove special handling of optimized
1701 out values. Fetch both VAL and ENTRYVAL before comparing
1702 contents. Adjust to value_available_contents_eq rename.
1703 * valprint.c (valprint_check_validity)
1704 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1705 (val_print_array_elements): Adjust.
1706 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1707 (value_bits_any_optimized_out): New function.
1708 (value_entirely_covered_by_range_vector): New function, factored
1709 out from value_entirely_unavailable.
1710 (value_entirely_unavailable): Reimplement.
1711 (value_entirely_optimized_out): New function.
1712 (insert_into_bit_range_vector): New function, factored out from
1713 mark_value_bits_unavailable.
1714 (mark_value_bits_unavailable): Reimplement.
1715 (struct ranges_and_idx): New struct.
1716 (find_first_range_overlap_and_match): New function, factored out
1717 from value_available_contents_bits_eq.
1718 (value_available_contents_bits_eq): Rename to ...
1719 (value_contents_bits_eq): ... this. Check both unavailable
1720 contents and optimized out contents.
1721 (value_available_contents_eq): Rename to ...
1722 (value_contents_eq): ... this.
1723 (allocate_value_lazy): Remove reference to the old optimized_out
1724 boolean.
1725 (allocate_optimized_out_value): Use
1726 mark_value_bytes_optimized_out.
1727 (require_not_optimized_out): Adjust to check whether the
1728 optimized_out vec is empty.
1729 (ranges_copy_adjusted): New function, factored out from
1730 value_contents_copy_raw.
1731 (value_contents_copy_raw): Also copy the optimized out ranges.
1732 Assert the destination ranges aren't optimized out.
1733 (value_contents_copy): Update comment, remove call to
1734 require_not_optimized_out.
1735 (value_contents_equal): Adjust to check whether the optimized_out
1736 vec is empty.
1737 (set_value_optimized_out, value_optimized_out_const): Delete.
1738 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1739 New functions.
1740 (value_entirely_optimized_out, value_bits_valid): Delete.
1741 (value_copy): Take a VEC copy of the 'optimized_out' field.
1742 (value_primitive_field): Remove special handling of optimized out.
1743 (value_fetch_lazy): Assert that lazy values have no unavailable
1744 regions. Use value_bits_any_optimized_out. Remove some special
1745 handling for optimized out values.
1746 * value.h: Add intro comment about <optimized out> and
1747 <unavailable>.
1748 (struct lval_funcs): Remove check_validity and check_any_valid
1749 fields.
1750 (set_value_optimized_out, value_optimized_out_const): Remove.
1751 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1752 New declarations.
1753 (value_bits_any_optimized_out): New declaration.
1754 (value_bits_valid): Delete declaration.
1755 (value_available_contents_eq): Rename to ...
1756 (value_contents_eq): ... this, and extend comments.
1757
1758 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1759
1760 Fix -fsanitize=address on unreadable inferior strings.
1761 * valprint.c (val_print_string): Fix access before BUFFER.
1762
1763 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1764
1765 * target.c (target_struct_size): Remove.
1766 (target_struct_allocsize): Remove.
1767 (DEFAULT_ALLOCSIZE): Remove.
1768 (target_ops_p): New typedef.
1769 (DEF_VEC_P (target_ops_p)): New vector type.
1770 (target_structs): Change type to VEC (target_ops_p).
1771 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1772 (find_default_run_target): Rewrite for loop following changes to
1773 target_structs.
1774
1775 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1776
1777 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1778 Adjust code accordingly. Adjust function description comment.
1779
1780 2014-08-19 Yao Qi <yao@codesourcery.com>
1781
1782 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1783 types.
1784
1785 2014-08-19 Alan Modra <amodra@gmail.com>
1786
1787 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1788 * config.in: Regenerate.
1789 * configure: Regenerate.
1790
1791 2014-08-19 Tom Tromey <tromey@redhat.com>
1792 Gary Benson <gbenson@redhat.com>
1793
1794 * common/common-debug.h: New file.
1795 * common/common-debug.c: Likewise.
1796 * debug.c: Likewise.
1797 * Makefile.in (SFILES): Add common/common-debug.c.
1798 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1799 (COMMON_OBS): Add common-debug.o and debug.o.
1800 (common-debug.o): New rule.
1801 * common/common-defs.h: Include common-debug.h.
1802 * common/agent.c (debug_agent_printf): New function.
1803 (DEBUG_AGENT): Redefine.
1804 * nat/i386-dregs.c (debug_printf): Undefine.
1805
1806 2014-08-19 Gary Benson <gbenson@redhat.com>
1807
1808 * common/common-defs.h: Include print-utils.h.
1809 * utils.h: Do not include print-utils.h.
1810
1811 2014-08-19 Tom Tromey <tromey@redhat.com>
1812 Gary Benson <gbenson@redhat.com>
1813
1814 * common/common-types.h: New file.
1815 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1816 * common/common-defs.h: Include common-types.h.
1817 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1818 (ULONGEST): Remove.
1819
1820 2014-08-19 Tom Tromey <tromey@redhat.com>
1821 Gary Benson <gbenson@redhat.com>
1822
1823 * common/errors.h: New file.
1824 * common/errors.c: Likewise.
1825 * Makefile.in (SFILES): Add common/errors.c.
1826 (HFILES_NO_SRCDIR): Add common/errors.h.
1827 (COMMON_OBS): Add errors.o.
1828 (errors.o): New rule.
1829 * common/common-defs.h: Include errors.h.
1830 * utils.h (perror_with_name, error, verror, warning, vwarning):
1831 Don't declare.
1832 * common/common-utils.h: (malloc_failure, internal_error):
1833 Likewise.
1834
1835 2014-08-19 Gary Benson <gbenson@redhat.com>
1836
1837 * utils.c (internal_vproblem): Always print the message.
1838
1839 2014-08-18 Doug Evans <dje@google.com>
1840
1841 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1842
1843 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1844
1845 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1846 Return 0 if TYPE is dynamic.
1847 (print_range): Add handling of dynamic ranges.
1848
1849 2014-08-18 Keven Boell <keven.boell@intel.com>
1850 Joel Brobecker <brobecker@adacore.com>
1851
1852 * gdbtypes.h (struct main_type): Add field "data_location".
1853 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1854 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1855 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1856 a dynamic data location.
1857 (resolve_dynamic_type): Add DW_AT_data_location handling.
1858 (copy_recursive, copy_type): Copy the data_location information
1859 when present.
1860 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1861 * value.c (value_from_contents_and_address): Add
1862 DW_AT_data_location handling.
1863
1864 2014-08-18 Keven Boell <keven.boell@intel.com>
1865 Joel Brobecker <brobecker@adacore.com>
1866
1867 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1868 field "get_object_address".
1869 * dwarf2expr.c (execute_stack_op): Add handling for
1870 DW_OP_push_object_address.
1871 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1872 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1873 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1874 (dwarf_expr_get_obj_addr): New function.
1875 (dwarf_expr_ctx_funcs): Add get_object_address field.
1876 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1877 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1878 (dwarf2_evaluate_property): Add parameter "address". Use it.
1879 (needs_get_obj_addr): New function.
1880 (needs_frame_ctx_funcs): Add get_object_address field.
1881 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1882 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1883 (resolve_dynamic_array): Likewise.
1884
1885 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1886
1887 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1888 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1889 fixed value for records and unions for which some GNAT encodings
1890 are present.
1891
1892 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1893
1894 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1895 rewrite to avoid "else if" and "else" constructs. Should be
1896 a no-op in practice.
1897
1898 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1899
1900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1901 of lexical block.
1902
1903 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1904
1905 PR c++/17132
1906 * eval.c: Update all calls to find_overload_match.
1907 * valarith.c: Likewise.
1908 (value_user_defined_cpp_op, value_user_defined_op): New
1909 argument NOSIDE. Update all callers.
1910 * valops.c (find_overload_match): New argument NOSIDE.
1911 * value.h (find_overload_match): Update signature.
1912
1913 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1914
1915 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1916 'items' methods instead of 'iteritems' method on dictionaries.
1917
1918 2014-08-15 Doug Evans <dje@google.com>
1919
1920 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1921 closer to use.
1922
1923 2014-08-15 Doug Evans <dje@google.com>
1924
1925 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1926
1927 2014-08-15 Doug Evans <dje@google.com>
1928
1929 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1930
1931 2014-08-15 Doug Evans <dje@google.com>
1932
1933 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1934 unused.
1935
1936 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1937
1938 * dcache.h: Include target.h, to avoid compile time warnings.
1939
1940 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1941
1942 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1943 frame_info" partial declaration.
1944 * gdbarch.h: Regenerate.
1945
1946 2014-08-15 Yao Qi <yao@codesourcery.com>
1947
1948 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1949 Add parameter 'decode_for_pst_p'. Callers update.
1950
1951 2014-08-13 Yao Qi <yao@codesourcery.com>
1952
1953 PR build/17104
1954 * configure.ac: Use local variable 'pos'.
1955 * configure: Regenerated.
1956
1957 2014-08-11 Doug Evans <dje@google.com>
1958
1959 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1960 message, it is redundant with "Reading symbols from ..." message.
1961
1962 2014-08-10 Doug Evans <xdje42@gmail.com>
1963
1964 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1965
1966 2014-08-09 Yao Qi <yao@codesourcery.com>
1967
1968 PR remote/9053
1969 * remote.c (remote_xfer_partial): Remove dead code.
1970
1971 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1972
1973 * ia64-linux-tdep.c: Include "regset.h".
1974 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1975 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1976 (ia64_linux_supply_fpregset): New function.
1977 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1978 (ia64_linux_regset_from_core_section): New function.
1979 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1980 method.
1981
1982 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1983
1984 * m68klinux-tdep.c: Include "regset.h".
1985 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1986 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1987 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1988 (m68k_linux_regset_from_core_section): New function.
1989 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1990 method.
1991
1992 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1993
1994 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1995 function. Move logic to...
1996 (tilegx_linux_regmap): ... this new register map.
1997 (tilegx_linux_regset): Refer to register map, replace supply
1998 method by regcache_supply_regset, and add collect method.
1999 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2000 TILEGX_FIRST_EASY_REGNUM.
2001
2002 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2003
2004 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2005 that calls regcache_supply_regset and handles the EPC register
2006 separately. Move main logic to...
2007 (score7_linux_gregmap): ... this new register map.
2008 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2009 (score7_linux_gregset): Refer to register map. Add collect method.
2010 (score7_linux_regset_from_core_section): Replace
2011 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2012 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2013 (struct regset): Delete unused forward declaraction.
2014 (struct pt_regs): Delete structure definition.
2015 (elf_gregset_t): Delete typedef.
2016
2017 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2018
2019 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2020 (nios2_core_regset): Add collect method.
2021
2022 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2023
2024 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2025 platform-independent and don't write to read-only input buffer.
2026 (m32r_linux_collect_gregset): New function.
2027 (m32r_linux_gregset): Add collect method.
2028
2029 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2030
2031 * hppa-linux-tdep.c (greg_map): Rename to...
2032 (hppa_linux_gregmap): ... this. Also convert to
2033 regcache_map_entry format.
2034 (hppa_linux_supply_regset): Delete function.
2035 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2036 (hppa_linux_fpregmap): ... this new register map.
2037 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2038 register map, replace supply method by regcache_supply_regset, and
2039 add collect method regcache_collect_regset.
2040
2041 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2042
2043 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2044 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2045 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2046 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2047 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2048 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2049 (frv_linux_supply_gregset): Replace main logic by call to
2050 regcache_supply_regset, but keep clearing gr32-gr63.
2051 (frv_linux_supply_fpregset): Delete function.
2052 (frv_linux_gregset): Refer to appropriate register map and add
2053 regcache_collect_regset as the collect method.
2054 (frv_linux_fpregset): Likewise. Also exchange the supply method
2055 by regcache_supply_regset.
2056
2057 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2058
2059 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2060 by call to alpha_supply_int_regs.
2061 (alpha_linux_collect_gregset): New function.
2062 (alpha_linux_supply_fpregset): Replace logic by call to
2063 alpha_supply_fp_regs.
2064 (alpha_linux_collect_fpregset): New function.
2065 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2066
2067 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2068
2069 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2070 by call to regcache_collect_regset.
2071 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2072 instead of aarch64_linux_supply_gregset/_fpregset.
2073 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2074 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2075 header file instead.
2076 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2077 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2078 functions. Move logic to ...
2079 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2080 register maps.
2081 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2082 refer to new register maps, replace *_regset_from_core by
2083 regcache_supply_regset, and also use regcache_collect_regset.
2084 * aarch64-linux-tdep.h: Include "regset.h".
2085 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2086 Delete prototypes.
2087 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2088 macros, moved from C source file.
2089 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2090 variable declarations.
2091
2092 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2093
2094 * s390-linux-nat.c: Include "regset.h".
2095 (regmap_gregset): Delete macro.
2096 (s390_64_regmap_gregset): New register map for
2097 regcache_supply/_collect_regset.
2098 (s390_64_gregset): New regset.
2099 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2100 (regmap_fpregset): Delete macro.
2101 (s390_native_supply, s390_native_collect): Delete functions.
2102 (supply_gregset, fill_gregset): Replace s390-specific regmap
2103 handling by a call to regcache_supply/_collect_regset.
2104 (supply_fpregset, fill_fpregset): Call regcache_supply/
2105 _collect_regset instead of s390_native_supply/_collect.
2106 (fetch_regset, store_regset): Likewise. Also change the last
2107 parameter to a regset instead of a regmap.
2108 (s390_linux_fetch_inferior_registers)
2109 (390_linux_store_inferior_registers): Adjust last parameter in
2110 calls to fetch_regset and store_regset.
2111 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2112 (s390_gregmap): ... this. Also make static const and convert to
2113 regcache_map_entry format.
2114 (s390x_regmap_gregset): Delete.
2115 (s390_regmap_fpregset): Rename to...
2116 (s390_fpregmap): ... this. Make static const and convert to
2117 regcache_map_entry format.
2118 (s390_regmap_upper, s390_regmap_last_break)
2119 (s390x_regmap_last_break, s390_regmap_system_call)
2120 (s390_regmap_tdb): Likewise.
2121 (s390_supply_regset, s390_collect_regset): Remove functions.
2122 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2123 s390_supply_regset.
2124 (s390_gregset, s390_fpregset, s390_upper_regset)
2125 (s390_last_break_regset, s390x_last_break_regset)
2126 (s390_system_call_regset, s390_tdb_regset): Make global and
2127 replace s390_supply/_collect_regset by regcache_supply/
2128 _collect_regset.
2129 (s390x_gregset): Delete.
2130 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2131 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2132 (s390_regmap_fpregset, s390_regmap_last_break)
2133 (s390x_regmap_last_break, s390_regmap_system_call)
2134 (s390_regmap_tdb): Delete global variable declarations.
2135 (s390_gregset, s390_fpregset, s390_last_break_regset)
2136 (s390x_last_break_regset, s390_system_call_regset)
2137 (s390_tdb_regset): New global variable declarations.
2138
2139 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2140
2141 * regcache.c: Include "regset.h".
2142 (regcache_transfer_regset): New local function.
2143 (regcache_supply_regset, regcache_collect_regset): New functions.
2144 * regcache.h (struct regcache_map_entry): New structure.
2145 (REGCACHE_MAP_SKIP): New enum value.
2146 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2147
2148 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2149
2150 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2151 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2152 (ppc_linux_collect_gregset ): Likewise.
2153 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2154 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2155 (ppc_collect_vrregset): Likewise.
2156 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2157 Likewise.
2158
2159 2014-08-07 Yao Qi <yao@codesourcery.com>
2160
2161 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2162 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2163 * remote.c (remote_read_bytes): Likewise.
2164
2165 2014-08-07 Yao Qi <yao@codesourcery.com>
2166
2167 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2168
2169 2014-08-07 Yao Qi <yao@codesourcery.com>
2170
2171 PR remote/17230
2172 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2173 TARGET_XFER_OK instead of 0.
2174
2175 2014-08-07 Gary Benson <gbenson@redhat.com>
2176
2177 * common/common-defs.h: Include errno.h.
2178 * defs.h: Do not include errno.h.
2179 * ada-typeprint.c: Likewise.
2180 * c-typeprint.c: Likewise.
2181 * core-regset.c: Likewise.
2182 * corefile.c: Likewise.
2183 * corelow.c: Likewise.
2184 * event-loop.c: Likewise.
2185 * f-typeprint.c: Likewise.
2186 * gnu-nat.c: Likewise.
2187 * go32-nat.c: Likewise.
2188 * i386gnu-nat.c: Likewise.
2189 * m2-typeprint.c: Likewise.
2190 * nat/linux-btrace.c: Likewise.
2191 * p-typeprint.c: Likewise.
2192 * procfs.c: Likewise.
2193 * remote-sim.c: Likewise.
2194 * rs6000-nat.c: Likewise.
2195 * target.c: Likewise.
2196 * typeprint.c: Likewise.
2197 * ui-file.c: Likewise.
2198 * valops.c: Likewise.
2199 * valprint.c: Likewise.
2200
2201 2014-08-07 Gary Benson <gbenson@redhat.com>
2202
2203 * common/common-defs.h: Include string.h.
2204 * aarch64-tdep.c: Do not include string.h.
2205 * ada-exp.y: Likewise.
2206 * ada-lang.c: Likewise.
2207 * ada-lex.l: Likewise.
2208 * ada-typeprint.c: Likewise.
2209 * ada-valprint.c: Likewise.
2210 * aix-thread.c: Likewise.
2211 * alpha-linux-tdep.c: Likewise.
2212 * alpha-mdebug-tdep.c: Likewise.
2213 * alpha-nat.c: Likewise.
2214 * alpha-osf1-tdep.c: Likewise.
2215 * alpha-tdep.c: Likewise.
2216 * alphanbsd-tdep.c: Likewise.
2217 * amd64-dicos-tdep.c: Likewise.
2218 * amd64-linux-tdep.c: Likewise.
2219 * amd64-nat.c: Likewise.
2220 * amd64-sol2-tdep.c: Likewise.
2221 * amd64fbsd-tdep.c: Likewise.
2222 * amd64obsd-tdep.c: Likewise.
2223 * arch-utils.c: Likewise.
2224 * arm-linux-nat.c: Likewise.
2225 * arm-linux-tdep.c: Likewise.
2226 * arm-tdep.c: Likewise.
2227 * arm-wince-tdep.c: Likewise.
2228 * armbsd-tdep.c: Likewise.
2229 * armnbsd-nat.c: Likewise.
2230 * armnbsd-tdep.c: Likewise.
2231 * armobsd-tdep.c: Likewise.
2232 * avr-tdep.c: Likewise.
2233 * ax-gdb.c: Likewise.
2234 * ax-general.c: Likewise.
2235 * bcache.c: Likewise.
2236 * bfin-tdep.c: Likewise.
2237 * breakpoint.c: Likewise.
2238 * build-id.c: Likewise.
2239 * buildsym.c: Likewise.
2240 * c-exp.y: Likewise.
2241 * c-lang.c: Likewise.
2242 * c-typeprint.c: Likewise.
2243 * c-valprint.c: Likewise.
2244 * charset.c: Likewise.
2245 * cli-out.c: Likewise.
2246 * cli/cli-cmds.c: Likewise.
2247 * cli/cli-decode.c: Likewise.
2248 * cli/cli-dump.c: Likewise.
2249 * cli/cli-interp.c: Likewise.
2250 * cli/cli-logging.c: Likewise.
2251 * cli/cli-script.c: Likewise.
2252 * cli/cli-setshow.c: Likewise.
2253 * cli/cli-utils.c: Likewise.
2254 * coffread.c: Likewise.
2255 * common/agent.c: Likewise.
2256 * common/buffer.c: Likewise.
2257 * common/buffer.h: Likewise.
2258 * common/common-utils.c: Likewise.
2259 * common/filestuff.c: Likewise.
2260 * common/filestuff.c: Likewise.
2261 * common/format.c: Likewise.
2262 * common/print-utils.c: Likewise.
2263 * common/rsp-low.c: Likewise.
2264 * common/signals.c: Likewise.
2265 * common/vec.h: Likewise.
2266 * common/xml-utils.c: Likewise.
2267 * core-regset.c: Likewise.
2268 * corefile.c: Likewise.
2269 * corelow.c: Likewise.
2270 * cp-abi.c: Likewise.
2271 * cp-name-parser.y: Likewise.
2272 * cp-support.c: Likewise.
2273 * cp-valprint.c: Likewise.
2274 * cris-tdep.c: Likewise.
2275 * d-exp.y: Likewise.
2276 * darwin-nat.c: Likewise.
2277 * dbxread.c: Likewise.
2278 * dcache.c: Likewise.
2279 * demangle.c: Likewise.
2280 * dicos-tdep.c: Likewise.
2281 * disasm.c: Likewise.
2282 * doublest.c: Likewise.
2283 * dsrec.c: Likewise.
2284 * dummy-frame.c: Likewise.
2285 * dwarf2-frame.c: Likewise.
2286 * dwarf2loc.c: Likewise.
2287 * dwarf2read.c: Likewise.
2288 * elfread.c: Likewise.
2289 * environ.c: Likewise.
2290 * eval.c: Likewise.
2291 * event-loop.c: Likewise.
2292 * exceptions.c: Likewise.
2293 * exec.c: Likewise.
2294 * expprint.c: Likewise.
2295 * f-exp.y: Likewise.
2296 * f-lang.c: Likewise.
2297 * f-typeprint.c: Likewise.
2298 * f-valprint.c: Likewise.
2299 * fbsd-nat.c: Likewise.
2300 * findcmd.c: Likewise.
2301 * findvar.c: Likewise.
2302 * fork-child.c: Likewise.
2303 * frame.c: Likewise.
2304 * frv-linux-tdep.c: Likewise.
2305 * frv-tdep.c: Likewise.
2306 * gdb.c: Likewise.
2307 * gdb_bfd.c: Likewise.
2308 * gdbarch.c: Likewise.
2309 * gdbarch.sh: Likewise.
2310 * gdbtypes.c: Likewise.
2311 * gnu-nat.c: Likewise.
2312 * gnu-v2-abi.c: Likewise.
2313 * gnu-v3-abi.c: Likewise.
2314 * go-exp.y: Likewise.
2315 * go-lang.c: Likewise.
2316 * go32-nat.c: Likewise.
2317 * guile/guile.c: Likewise.
2318 * guile/scm-auto-load.c: Likewise.
2319 * hppa-hpux-tdep.c: Likewise.
2320 * hppa-linux-nat.c: Likewise.
2321 * hppanbsd-tdep.c: Likewise.
2322 * hppaobsd-tdep.c: Likewise.
2323 * i386-cygwin-tdep.c: Likewise.
2324 * i386-dicos-tdep.c: Likewise.
2325 * i386-linux-tdep.c: Likewise.
2326 * i386-nto-tdep.c: Likewise.
2327 * i386-sol2-tdep.c: Likewise.
2328 * i386-tdep.c: Likewise.
2329 * i386bsd-tdep.c: Likewise.
2330 * i386gnu-nat.c: Likewise.
2331 * i386nbsd-tdep.c: Likewise.
2332 * i386obsd-tdep.c: Likewise.
2333 * i387-tdep.c: Likewise.
2334 * ia64-libunwind-tdep.c: Likewise.
2335 * ia64-linux-nat.c: Likewise.
2336 * inf-child.c: Likewise.
2337 * inf-ptrace.c: Likewise.
2338 * inf-ttrace.c: Likewise.
2339 * infcall.c: Likewise.
2340 * infcmd.c: Likewise.
2341 * inflow.c: Likewise.
2342 * infrun.c: Likewise.
2343 * interps.c: Likewise.
2344 * iq2000-tdep.c: Likewise.
2345 * irix5-nat.c: Likewise.
2346 * jv-exp.y: Likewise.
2347 * jv-lang.c: Likewise.
2348 * jv-typeprint.c: Likewise.
2349 * jv-valprint.c: Likewise.
2350 * language.c: Likewise.
2351 * linux-fork.c: Likewise.
2352 * linux-nat.c: Likewise.
2353 * lm32-tdep.c: Likewise.
2354 * m2-exp.y: Likewise.
2355 * m2-typeprint.c: Likewise.
2356 * m32c-tdep.c: Likewise.
2357 * m32r-linux-nat.c: Likewise.
2358 * m32r-linux-tdep.c: Likewise.
2359 * m32r-rom.c: Likewise.
2360 * m32r-tdep.c: Likewise.
2361 * m68hc11-tdep.c: Likewise.
2362 * m68k-tdep.c: Likewise.
2363 * m68kbsd-tdep.c: Likewise.
2364 * m68klinux-nat.c: Likewise.
2365 * m68klinux-tdep.c: Likewise.
2366 * m88k-tdep.c: Likewise.
2367 * machoread.c: Likewise.
2368 * macrocmd.c: Likewise.
2369 * main.c: Likewise.
2370 * mdebugread.c: Likewise.
2371 * mem-break.c: Likewise.
2372 * memattr.c: Likewise.
2373 * memory-map.c: Likewise.
2374 * mep-tdep.c: Likewise.
2375 * mi/mi-cmd-break.c: Likewise.
2376 * mi/mi-cmd-disas.c: Likewise.
2377 * mi/mi-cmd-env.c: Likewise.
2378 * mi/mi-cmd-stack.c: Likewise.
2379 * mi/mi-cmd-var.c: Likewise.
2380 * mi/mi-cmds.c: Likewise.
2381 * mi/mi-console.c: Likewise.
2382 * mi/mi-getopt.c: Likewise.
2383 * mi/mi-interp.c: Likewise.
2384 * mi/mi-main.c: Likewise.
2385 * mi/mi-parse.c: Likewise.
2386 * microblaze-rom.c: Likewise.
2387 * microblaze-tdep.c: Likewise.
2388 * mingw-hdep.c: Likewise.
2389 * minidebug.c: Likewise.
2390 * minsyms.c: Likewise.
2391 * mips-irix-tdep.c: Likewise.
2392 * mips-linux-tdep.c: Likewise.
2393 * mips-tdep.c: Likewise.
2394 * mips64obsd-tdep.c: Likewise.
2395 * mipsnbsd-tdep.c: Likewise.
2396 * mipsread.c: Likewise.
2397 * mn10300-linux-tdep.c: Likewise.
2398 * mn10300-tdep.c: Likewise.
2399 * monitor.c: Likewise.
2400 * moxie-tdep.c: Likewise.
2401 * mt-tdep.c: Likewise.
2402 * nat/linux-btrace.c: Likewise.
2403 * nat/linux-osdata.c: Likewise.
2404 * nat/linux-procfs.c: Likewise.
2405 * nat/linux-ptrace.c: Likewise.
2406 * nat/linux-waitpid.c: Likewise.
2407 * nbsd-tdep.c: Likewise.
2408 * nios2-linux-tdep.c: Likewise.
2409 * nto-procfs.c: Likewise.
2410 * nto-tdep.c: Likewise.
2411 * objc-lang.c: Likewise.
2412 * objfiles.c: Likewise.
2413 * opencl-lang.c: Likewise.
2414 * osabi.c: Likewise.
2415 * osdata.c: Likewise.
2416 * p-exp.y: Likewise.
2417 * p-lang.c: Likewise.
2418 * p-typeprint.c: Likewise.
2419 * parse.c: Likewise.
2420 * posix-hdep.c: Likewise.
2421 * ppc-linux-nat.c: Likewise.
2422 * ppc-sysv-tdep.c: Likewise.
2423 * ppcfbsd-tdep.c: Likewise.
2424 * ppcnbsd-tdep.c: Likewise.
2425 * ppcobsd-tdep.c: Likewise.
2426 * printcmd.c: Likewise.
2427 * procfs.c: Likewise.
2428 * prologue-value.c: Likewise.
2429 * python/py-auto-load.c: Likewise.
2430 * python/py-gdb-readline.c: Likewise.
2431 * ravenscar-thread.c: Likewise.
2432 * regcache.c: Likewise.
2433 * registry.c: Likewise.
2434 * remote-fileio.c: Likewise.
2435 * remote-m32r-sdi.c: Likewise.
2436 * remote-mips.c: Likewise.
2437 * remote-notif.c: Likewise.
2438 * remote-sim.c: Likewise.
2439 * remote.c: Likewise.
2440 * reverse.c: Likewise.
2441 * rs6000-aix-tdep.c: Likewise.
2442 * ser-base.c: Likewise.
2443 * ser-go32.c: Likewise.
2444 * ser-mingw.c: Likewise.
2445 * ser-pipe.c: Likewise.
2446 * ser-tcp.c: Likewise.
2447 * ser-unix.c: Likewise.
2448 * serial.c: Likewise.
2449 * sh-tdep.c: Likewise.
2450 * sh64-tdep.c: Likewise.
2451 * shnbsd-tdep.c: Likewise.
2452 * skip.c: Likewise.
2453 * sol-thread.c: Likewise.
2454 * solib-dsbt.c: Likewise.
2455 * solib-frv.c: Likewise.
2456 * solib-osf.c: Likewise.
2457 * solib-som.c: Likewise.
2458 * solib-spu.c: Likewise.
2459 * solib-target.c: Likewise.
2460 * solib.c: Likewise.
2461 * somread.c: Likewise.
2462 * source.c: Likewise.
2463 * sparc-nat.c: Likewise.
2464 * sparc-sol2-tdep.c: Likewise.
2465 * sparc-tdep.c: Likewise.
2466 * sparc64-tdep.c: Likewise.
2467 * sparc64fbsd-tdep.c: Likewise.
2468 * sparc64nbsd-tdep.c: Likewise.
2469 * sparcnbsd-tdep.c: Likewise.
2470 * spu-linux-nat.c: Likewise.
2471 * spu-multiarch.c: Likewise.
2472 * spu-tdep.c: Likewise.
2473 * stabsread.c: Likewise.
2474 * stack.c: Likewise.
2475 * std-regs.c: Likewise.
2476 * symfile.c: Likewise.
2477 * symmisc.c: Likewise.
2478 * symtab.c: Likewise.
2479 * target.c: Likewise.
2480 * thread.c: Likewise.
2481 * tilegx-linux-nat.c: Likewise.
2482 * tilegx-tdep.c: Likewise.
2483 * top.c: Likewise.
2484 * tracepoint.c: Likewise.
2485 * tui/tui-command.c: Likewise.
2486 * tui/tui-data.c: Likewise.
2487 * tui/tui-disasm.c: Likewise.
2488 * tui/tui-file.c: Likewise.
2489 * tui/tui-layout.c: Likewise.
2490 * tui/tui-out.c: Likewise.
2491 * tui/tui-regs.c: Likewise.
2492 * tui/tui-source.c: Likewise.
2493 * tui/tui-stack.c: Likewise.
2494 * tui/tui-win.c: Likewise.
2495 * tui/tui-windata.c: Likewise.
2496 * tui/tui-winsource.c: Likewise.
2497 * typeprint.c: Likewise.
2498 * ui-file.c: Likewise.
2499 * ui-out.c: Likewise.
2500 * user-regs.c: Likewise.
2501 * utils.c: Likewise.
2502 * v850-tdep.c: Likewise.
2503 * valarith.c: Likewise.
2504 * valops.c: Likewise.
2505 * valprint.c: Likewise.
2506 * value.c: Likewise.
2507 * varobj.c: Likewise.
2508 * vax-tdep.c: Likewise.
2509 * vaxnbsd-tdep.c: Likewise.
2510 * vaxobsd-tdep.c: Likewise.
2511 * windows-nat.c: Likewise.
2512 * xcoffread.c: Likewise.
2513 * xml-support.c: Likewise.
2514 * xstormy16-tdep.c: Likewise.
2515 * xtensa-linux-nat.c: Likewise.
2516
2517 2014-08-07 Gary Benson <gbenson@redhat.com>
2518
2519 * common/common-defs.h: Include gdb_assert.h.
2520 * aarch64-tdep.c: Do not include gdb_assert.h.
2521 * addrmap.c: Likewise.
2522 * aix-thread.c: Likewise.
2523 * alpha-linux-tdep.c: Likewise.
2524 * alpha-mdebug-tdep.c: Likewise.
2525 * alphanbsd-tdep.c: Likewise.
2526 * amd64-nat.c: Likewise.
2527 * amd64-tdep.c: Likewise.
2528 * amd64bsd-nat.c: Likewise.
2529 * amd64fbsd-nat.c: Likewise.
2530 * amd64fbsd-tdep.c: Likewise.
2531 * amd64nbsd-nat.c: Likewise.
2532 * amd64nbsd-tdep.c: Likewise.
2533 * amd64obsd-nat.c: Likewise.
2534 * amd64obsd-tdep.c: Likewise.
2535 * arch-utils.c: Likewise.
2536 * arm-tdep.c: Likewise.
2537 * armbsd-tdep.c: Likewise.
2538 * auxv.c: Likewise.
2539 * bcache.c: Likewise.
2540 * bfin-tdep.c: Likewise.
2541 * blockframe.c: Likewise.
2542 * breakpoint.c: Likewise.
2543 * bsd-kvm.c: Likewise.
2544 * bsd-uthread.c: Likewise.
2545 * buildsym.c: Likewise.
2546 * c-exp.y: Likewise.
2547 * c-lang.c: Likewise.
2548 * charset.c: Likewise.
2549 * cleanups.c: Likewise.
2550 * cli-out.c: Likewise.
2551 * cli/cli-decode.c: Likewise.
2552 * cli/cli-dump.c: Likewise.
2553 * cli/cli-logging.c: Likewise.
2554 * cli/cli-script.c: Likewise.
2555 * cli/cli-utils.c: Likewise.
2556 * coffread.c: Likewise.
2557 * common/common-utils.c: Likewise.
2558 * common/queue.h: Likewise.
2559 * common/signals.c: Likewise.
2560 * common/vec.h: Likewise.
2561 * complaints.c: Likewise.
2562 * completer.c: Likewise.
2563 * corelow.c: Likewise.
2564 * cp-abi.c: Likewise.
2565 * cp-name-parser.y: Likewise.
2566 * cp-namespace.c: Likewise.
2567 * cp-support.c: Likewise.
2568 * cris-tdep.c: Likewise.
2569 * dbxread.c: Likewise.
2570 * dictionary.c: Likewise.
2571 * doublest.c: Likewise.
2572 * dsrec.c: Likewise.
2573 * dummy-frame.c: Likewise.
2574 * dwarf2-frame-tailcall.c: Likewise.
2575 * dwarf2-frame.c: Likewise.
2576 * dwarf2expr.c: Likewise.
2577 * dwarf2loc.c: Likewise.
2578 * dwarf2read.c: Likewise.
2579 * eval.c: Likewise.
2580 * event-loop.c: Likewise.
2581 * exceptions.c: Likewise.
2582 * expprint.c: Likewise.
2583 * f-valprint.c: Likewise.
2584 * fbsd-nat.c: Likewise.
2585 * findvar.c: Likewise.
2586 * frame-unwind.c: Likewise.
2587 * frame.c: Likewise.
2588 * frv-tdep.c: Likewise.
2589 * gcore.c: Likewise.
2590 * gdb-dlfcn.c: Likewise.
2591 * gdb_bfd.c: Likewise.
2592 * gdbarch.c: Likewise.
2593 * gdbarch.sh: Likewise.
2594 * gdbtypes.c: Likewise.
2595 * gnu-nat.c: Likewise.
2596 * gnu-v3-abi.c: Likewise.
2597 * go-lang.c: Likewise.
2598 * guile/scm-exception.c: Likewise.
2599 * guile/scm-gsmob.c: Likewise.
2600 * guile/scm-lazy-string.c: Likewise.
2601 * guile/scm-math.c: Likewise.
2602 * guile/scm-pretty-print.c: Likewise.
2603 * guile/scm-safe-call.c: Likewise.
2604 * guile/scm-utils.c: Likewise.
2605 * guile/scm-value.c: Likewise.
2606 * h8300-tdep.c: Likewise.
2607 * hppa-hpux-nat.c: Likewise.
2608 * hppa-tdep.c: Likewise.
2609 * hppanbsd-tdep.c: Likewise.
2610 * hppaobsd-tdep.c: Likewise.
2611 * i386-darwin-nat.c: Likewise.
2612 * i386-darwin-tdep.c: Likewise.
2613 * i386-nto-tdep.c: Likewise.
2614 * i386-tdep.c: Likewise.
2615 * i386bsd-nat.c: Likewise.
2616 * i386fbsd-tdep.c: Likewise.
2617 * i386gnu-nat.c: Likewise.
2618 * i386nbsd-tdep.c: Likewise.
2619 * i386obsd-tdep.c: Likewise.
2620 * i387-tdep.c: Likewise.
2621 * ia64-libunwind-tdep.c: Likewise.
2622 * ia64-tdep.c: Likewise.
2623 * inf-ptrace.c: Likewise.
2624 * inf-ttrace.c: Likewise.
2625 * infcall.c: Likewise.
2626 * infcmd.c: Likewise.
2627 * infrun.c: Likewise.
2628 * inline-frame.c: Likewise.
2629 * interps.c: Likewise.
2630 * jv-lang.c: Likewise.
2631 * jv-typeprint.c: Likewise.
2632 * linux-fork.c: Likewise.
2633 * linux-nat.c: Likewise.
2634 * linux-thread-db.c: Likewise.
2635 * m32c-tdep.c: Likewise.
2636 * m32r-linux-nat.c: Likewise.
2637 * m32r-tdep.c: Likewise.
2638 * m68k-tdep.c: Likewise.
2639 * m68kbsd-nat.c: Likewise.
2640 * m68kbsd-tdep.c: Likewise.
2641 * m88k-tdep.c: Likewise.
2642 * machoread.c: Likewise.
2643 * macroexp.c: Likewise.
2644 * macrotab.c: Likewise.
2645 * maint.c: Likewise.
2646 * mdebugread.c: Likewise.
2647 * memory-map.c: Likewise.
2648 * mep-tdep.c: Likewise.
2649 * mi/mi-common.c: Likewise.
2650 * microblaze-tdep.c: Likewise.
2651 * mingw-hdep.c: Likewise.
2652 * mips-linux-nat.c: Likewise.
2653 * mips-linux-tdep.c: Likewise.
2654 * mips-tdep.c: Likewise.
2655 * mips64obsd-tdep.c: Likewise.
2656 * mipsnbsd-tdep.c: Likewise.
2657 * mn10300-linux-tdep.c: Likewise.
2658 * mn10300-tdep.c: Likewise.
2659 * moxie-tdep.c: Likewise.
2660 * mt-tdep.c: Likewise.
2661 * nat/linux-btrace.c: Likewise.
2662 * nat/linux-osdata.c: Likewise.
2663 * nat/linux-ptrace.c: Likewise.
2664 * nat/mips-linux-watch.c: Likewise.
2665 * nios2-linux-tdep.c: Likewise.
2666 * nios2-tdep.c: Likewise.
2667 * objc-lang.c: Likewise.
2668 * objfiles.c: Likewise.
2669 * obsd-nat.c: Likewise.
2670 * opencl-lang.c: Likewise.
2671 * osabi.c: Likewise.
2672 * parse.c: Likewise.
2673 * ppc-linux-nat.c: Likewise.
2674 * ppc-sysv-tdep.c: Likewise.
2675 * ppcfbsd-nat.c: Likewise.
2676 * ppcfbsd-tdep.c: Likewise.
2677 * ppcnbsd-nat.c: Likewise.
2678 * ppcnbsd-tdep.c: Likewise.
2679 * ppcobsd-nat.c: Likewise.
2680 * ppcobsd-tdep.c: Likewise.
2681 * printcmd.c: Likewise.
2682 * procfs.c: Likewise.
2683 * prologue-value.c: Likewise.
2684 * psymtab.c: Likewise.
2685 * python/py-lazy-string.c: Likewise.
2686 * python/py-value.c: Likewise.
2687 * regcache.c: Likewise.
2688 * reggroups.c: Likewise.
2689 * registry.c: Likewise.
2690 * remote-sim.c: Likewise.
2691 * remote.c: Likewise.
2692 * rs6000-aix-tdep.c: Likewise.
2693 * rs6000-tdep.c: Likewise.
2694 * s390-linux-tdep.c: Likewise.
2695 * score-tdep.c: Likewise.
2696 * ser-base.c: Likewise.
2697 * ser-mingw.c: Likewise.
2698 * sh-tdep.c: Likewise.
2699 * sh64-tdep.c: Likewise.
2700 * solib-darwin.c: Likewise.
2701 * solib-spu.c: Likewise.
2702 * solib-svr4.c: Likewise.
2703 * source.c: Likewise.
2704 * sparc-nat.c: Likewise.
2705 * sparc-sol2-tdep.c: Likewise.
2706 * sparc-tdep.c: Likewise.
2707 * sparc64-sol2-tdep.c: Likewise.
2708 * sparc64-tdep.c: Likewise.
2709 * sparc64fbsd-tdep.c: Likewise.
2710 * sparc64nbsd-tdep.c: Likewise.
2711 * sparc64obsd-tdep.c: Likewise.
2712 * sparcnbsd-tdep.c: Likewise.
2713 * sparcobsd-tdep.c: Likewise.
2714 * spu-multiarch.c: Likewise.
2715 * spu-tdep.c: Likewise.
2716 * stabsread.c: Likewise.
2717 * stack.c: Likewise.
2718 * symfile.c: Likewise.
2719 * symtab.c: Likewise.
2720 * target-descriptions.c: Likewise.
2721 * target-memory.c: Likewise.
2722 * target.c: Likewise.
2723 * tic6x-linux-tdep.c: Likewise.
2724 * tic6x-tdep.c: Likewise.
2725 * tilegx-linux-nat.c: Likewise.
2726 * tilegx-tdep.c: Likewise.
2727 * top.c: Likewise.
2728 * tramp-frame.c: Likewise.
2729 * tui/tui-out.c: Likewise.
2730 * tui/tui-winsource.c: Likewise.
2731 * ui-out.c: Likewise.
2732 * user-regs.c: Likewise.
2733 * utils.c: Likewise.
2734 * v850-tdep.c: Likewise.
2735 * valops.c: Likewise.
2736 * value.c: Likewise.
2737 * varobj.c: Likewise.
2738 * vax-nat.c: Likewise.
2739 * xml-syscall.c: Likewise.
2740 * xml-tdesc.c: Likewise.
2741 * xstormy16-tdep.c: Likewise.
2742 * xtensa-linux-nat.c: Likewise.
2743 * xtensa-tdep.c: Likewise.
2744
2745 2014-08-07 Gary Benson <gbenson@redhat.com>
2746
2747 * common/common-defs.h: Include common-utils.h.
2748 * defs.h: Do not include common-utils.h.
2749 * common/gdb_assert.h: Likewise.
2750 * darwin-nat.h: Likewise.
2751 * nat/linux-btrace.c: Likewise.
2752 * target/waitstatus.h: Likewise.
2753
2754 2014-08-07 Gary Benson <gbenson@redhat.com>
2755
2756 * common/common-defs.h: Include ptid.h.
2757 * defs.h: Do not include ptid.h.
2758 * inferior.h: Likewise.
2759 * infrun.h: Likewise.
2760 * nat/linux-btrace.h: Likewise.
2761 * nat/linux-osdata.h: Likewise.
2762 * target/waitstatus.h: Likewise.
2763
2764 2014-08-07 Gary Benson <gbenson@redhat.com>
2765
2766 * common/common-defs.h: Include gdb_locale.h.
2767 * defs.h: Do not include gdb_locale.h.
2768
2769 2014-08-07 Gary Benson <gbenson@redhat.com>
2770
2771 * common/common-defs.h: Include gdb/signals.h.
2772 * defs.h: Do not include gdb/signals.h.
2773
2774 2014-08-07 Gary Benson <gbenson@redhat.com>
2775
2776 * common/common-defs.h: Include pathmax.h.
2777 * defs.h: Do not include pathmax.h.
2778
2779 2014-08-07 Gary Benson <gbenson@redhat.com>
2780
2781 * common/common-defs.h: Include libiberty.h.
2782 * defs.h: Do not include libiberty.h.
2783 * common/queue.h: Likewise.
2784 * cp-name-parser.y: Likewise.
2785 * mi/mi-cmd-catch.c: Likewise.
2786 * python/python.c: Likewise.
2787
2788 2014-08-07 Gary Benson <gbenson@redhat.com>
2789
2790 * common/common-defs.h: Include ansidecl.h.
2791 * defs.h: Do not include ansidecl.h.
2792 * common/buffer.h: Likewise.
2793 * common/common-utils.h: Likewise.
2794
2795 2014-08-07 Gary Benson <gbenson@redhat.com>
2796
2797 * common/common-defs.h: Include stddef.h.
2798 * defs.h: Do not include stddef.h.
2799 * common/common-utils.h: Likewise.
2800 * amd64fbsd-nat.c: Likewise.
2801 * bcache.c: Likewise.
2802 * charset.c: Likewise.
2803 * common/buffer.h: Likewise.
2804 * common/vec.h: Likewise.
2805 * i386bsd-nat.c: Likewise.
2806 * nat/linux-btrace.h: Likewise.
2807 * ppcfbsd-nat.c: Likewise.
2808 * ppcnbsd-tdep.h: Likewise.
2809 * ppcobsd-nat.c: Likewise.
2810 * ppcobsd-tdep.h: Likewise.
2811 * python/py-gdb-readline.c: Likewise.
2812
2813 2014-08-07 Gary Benson <gbenson@redhat.com>
2814
2815 * common/common-defs.h: Include stdarg.h.
2816 * defs.h: Do not include stdarg.h.
2817 * ada-lang.c: Likewise.
2818 * common/common-utils.h: Likewise.
2819 * guile/scm-string.c: Likewise.
2820 * guile/scm-utils.c: Likewise.
2821 * m32c-tdep.c: Likewise.
2822
2823 2014-08-07 Gary Benson <gbenson@redhat.com>
2824
2825 * common/common-defs.h: Include stdlib.h.
2826 * defs.h: Do not include stdlib.h.
2827 * addrmap.c: Likewise.
2828 * bcache.c: Likewise.
2829 * common/buffer.c: Likewise.
2830 * common/common-utils.c: Likewise.
2831 * cp-name-parser.y: Likewise.
2832 * go32-nat.c: Likewise.
2833 * mn10300-linux-tdep.c: Likewise.
2834 * nat/linux-osdata.c: Likewise.
2835 * tui/tui.c: Likewise.
2836 * windows-nat.c: Likewise.
2837
2838 2014-08-07 Gary Benson <gbenson@redhat.com>
2839
2840 * common/common-defs.h: Include stdio.h.
2841 * defs.h: Do not include stdio.h.
2842 * ada-lang.c: Likewise.
2843 * common/buffer.c: Likewise.
2844 * common/common-utils.c: Likewise.
2845 * cp-name-parser.y: Likewise.
2846 * gnu-nat.c: Likewise.
2847 * go32-nat.c: Likewise.
2848 * i386gnu-nat.c: Likewise.
2849 * proc-api.c: Likewise.
2850 * proc-events.c: Likewise.
2851 * proc-flags.c: Likewise.
2852 * proc-why.c: Likewise.
2853 * python/python-internal.h: Likewise.
2854 * target-memory.c: Likewise.
2855 * tui/tui-io.c: Likewise.
2856 * tui/tui.c: Likewise.
2857
2858 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2859
2860 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2861 (scan_dyntag_auxv): Same.
2862
2863 2014-08-06 Yao Qi <yao@codesourcery.com>
2864
2865 * amd64-linux-nat.c: Remove duplicated include
2866 "x86-linux-nat.h".
2867 * i386-linux-nat.c: Likewise.
2868
2869 2014-08-06 Yao Qi <yao@codesourcery.com>
2870
2871 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2872 operand" with "Special opcode" in comments.
2873
2874 2014-08-05 Gary Benson <gbenson@redhat.com>
2875
2876 * interps.c (initialize_interps): Remove prototype.
2877 (interpreter_initialized): Remove static global.
2878 (interp_add): Do not call initialize_interps.
2879 (initialize_interps): Remove function.
2880
2881 2014-08-05 Gary Benson <gbenson@redhat.com>
2882
2883 * utils.c (vwarning): Remove spurious va_end.
2884
2885 2014-08-05 Alan Modra <amodra@gmail.com>
2886
2887 * charset.c (convert_between_encodings): Cast result of obstack_base.
2888 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2889 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2890 (read_unwind_info): Use size_t for some locals.
2891 * jit.c (finalize_symtab): Likewise.
2892 * utils.c (hashtab_obstack_allocate): Likewise.
2893 * symmisc.c (print_objfile_statistics): Update format strings.
2894
2895 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2896
2897 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2898 (Changes in GDB 7.8): ... here.
2899
2900 2014-08-04 Tom Tromey <tromey@redhat.com>
2901
2902 * target.c (set_targetdebug): New function.
2903 (initialize_targets): Pass set_targetdebug when creating "set
2904 debug target".
2905
2906 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2907
2908 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2909 if detecting a variable-sized field that is not the last field.
2910 Fix struct type length computation.
2911
2912 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2913
2914 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2915 Add debug trace.
2916
2917 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2918
2919 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2920 Remove "+ 8" offset in computation of CHAIN_VMA.
2921
2922 2014-07-31 Doug Evans <dje@google.com>
2923
2924 * inflow.c (child_terminal_inferior): Add comment.
2925 (child_terminal_ours_for_output): Add comment.
2926 (child_terminal_ours): Add comment.
2927 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2928 (linux_nat_terminal_ours): Add comment.
2929
2930 2014-07-31 Gary Benson <gbenson@redhat.com>
2931
2932 * common/btrace-common.h: Do not include defs.h or server.h.
2933 * nat/mips-linux-watch.h: Likewise.
2934 * gdb-dlfcn.h: Do not include defs.h.
2935 * tracefile.h: Likewise.
2936
2937 2014-07-30 Roland McGrath <mcgrathr@google.com>
2938
2939 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2940
2941 2014-07-30 Tom Tromey <tromey@redhat.com>
2942
2943 * bsd-kvm.c (bsd_kvm_open): Constify.
2944 * corelow.c (core_open): Constify.
2945 * ctf.c (ctf_open): Constify.
2946 * dbug-rom.c (dbug_open): Constify.
2947 * exec.c (exec_open): Constify.
2948 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2949 * microblaze-rom.c (picobug_open): Constify.
2950 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2951 Constify.
2952 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2953 * record-btrace.c (record_btrace_open): Constify.
2954 * record-full.c (record_full_core_open_1, record_full_open_1)
2955 (record_full_open): Constify.
2956 * remote-m32r-sdi.c (m32r_open): Constify.
2957 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2958 (rockhopper_open, lsi_open): Constify.
2959 * remote-sim.c (gdbsim_open): Constify.
2960 * remote.c (remote_open, extended_remote_open, remote_open_1):
2961 Constify.
2962 * target.h (struct target_ops) <to_open>: Make "arg" const.
2963 * tracefile-tfile.c (tfile_open): Constify.
2964
2965 2014-07-30 Tom Tromey <tromey@redhat.com>
2966
2967 * breakpoint.c (map_breakpoint_numbers): Update.
2968 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2969 (get_number_const): New function.
2970 (get_number): Rewrite using get_number_const.
2971 (init_number_or_range): Make "string" const.
2972 (number_is_in_list): Make "list" const.
2973 * cli/cli-utils.h (get_number_const): Declare.
2974 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2975 (init_number_or_range, number_is_in_list): Update.
2976 * printcmd.c (map_display_numbers): Update.
2977 * value.c (value_from_history_ref): Constify.
2978 * value.h (value_from_history_ref): Update.
2979
2980 2014-07-30 Tom Tromey <tromey@redhat.com>
2981
2982 * corefile.c (hook_type, call_extra_exec_file_hooks)
2983 (specify_exec_file_hook): Constify.
2984 * exec.c (exec_file_attach): Make "filename" const.
2985 * gdbcore.h (deprecated_exec_file_display_hook)
2986 (specify_exec_file_hook, exec_file_attach): Constify.
2987 * main.c (captured_main): Use catch_command_errors_const.
2988
2989 2014-07-30 Tom Tromey <tromey@redhat.com>
2990
2991 * target.c (open_target): New function.
2992 (add_target_with_completer, add_deprecated_target_alias): Use
2993 set_cmd_sfunc, set_cmd_context.
2994 (debug_to_open): Remove.
2995 (setup_target_debug): Update.
2996
2997 2014-07-30 Yao Qi <yao@codesourcery.com>
2998
2999 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3000 comments.
3001 * parse.c (exp_iterate): Update comments.
3002
3003 2014-07-30 Gary Benson <gbenson@redhat.com>
3004
3005 * common/common-defs.h: New file.
3006 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3007 * defs.h: Include common-defs.h.
3008 Do not include config.h or build-gnulib/config.h.
3009
3010 2014-07-30 Gary Benson <gbenson@redhat.com>
3011
3012 * common/common-utils.h: Do not include config.h.
3013 * nat/linux-btrace.h: Likewise.
3014
3015 2014-07-30 Gary Benson <gbenson@redhat.com>
3016
3017 * btrace.c: Include defs.h.
3018 * common/ptid.c: Include defs.h or server.h as appropriate.
3019 * nat/mips-linux-watch.c: Likewise.
3020
3021 2014-07-29 Tom Tromey <tromey@redhat.com>
3022
3023 * target.c (target_is_pushed): Simplify.
3024
3025 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3026
3027 GDB 7.8 released.
3028
3029 2014-07-29 Yao Qi <yao@codesourcery.com>
3030
3031 PR gdb/17206
3032 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3033
3034 2014-07-28 Doug Evans <xdje42@gmail.com>
3035
3036 PR guile/17203
3037 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3038 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3039 parameters.
3040
3041 2014-07-28 Will Newton <will.newton@linaro.org>
3042
3043 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3044 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3045 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3046 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3047 (THUMB2_EABI_SYSCALL): Likewise.
3048 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3049 struct tramp_frame.
3050 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3051 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3052
3053 2014-07-27 Doug Evans <xdje42@gmail.com>
3054
3055 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3056
3057 2014-07-27 Doug Evans <xdje42@gmail.com>
3058
3059 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3060
3061 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3062 Doug Evans <xdje42@gmail.com>
3063
3064 PR guile/17146
3065 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3066 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3067 * configure.ac: Try to use guild to compile an scm file, if it fails
3068 then disable guile support.
3069 * configure: Regenerate.
3070 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3071 GUILE_FILE_LIST.
3072 (GUILE_COMPILED_FILES): New variable.
3073 (GUILE_FILES) Update.
3074 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3075 (stamp-guile): Compile scm files.
3076 * guile/guile.c (boot_guile_support): New function.
3077 (standard_throw_args_p): New function.
3078 (print_standard_throw_error, print_throw_error): New functions.
3079 (handle_boot_error): New function.
3080 (initialize_scheme_side): Rewrite to call boot_guile_support.
3081 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3082 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3083
3084 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3085 Doug Evans <xdje42@gmail.com>
3086
3087 PR guile/17146
3088 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3089 * guile/lib/gdb/support.scm: New file.
3090 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3091 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3092 All uses updated.
3093 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3094 All uses updated.
3095 (%assert-type): Ditto, and renamed to assert-type.
3096 (%exception-print-style): Delete.
3097
3098 2014-07-26 Doug Evans <xdje42@gmail.com>
3099
3100 PR build/17105
3101 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3102 * configure: Regenerate.
3103 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3104 PYTHON_FILES.
3105 (PYTHON_FILES): New variable.
3106 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3107 (GUILE_FILES): New variable.
3108 (stamp-python, install-python, uninstall-python): Handle empty
3109 file list.
3110 (stamp-guile, install-guile, uninstall-guile): Ditto.
3111
3112 2014-07-26 Doug Evans <xdje42@gmail.com>
3113
3114 PR guile/17177
3115 * guile/lib/gdb.scm (pretty-printers): Export.
3116 (set-pretty-printers!): Export.
3117 * guile/lib/gdb/printing.scm (gdb module): Update.
3118 (prepend-pretty-printer!, append-pretty-printer!): Update.
3119 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3120 (pretty_printer_list_var): Delete.
3121 (pretty_printer_list): New static global.
3122 (gdbscm_pretty_printers): New function.
3123 (gdbscm_set_pretty_printers_x): New function.
3124 (ppscm_find_pretty_printer_from_gdb): Update.
3125 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3126 (gdbscm_initialize_pretty_printers): Update.
3127
3128 2014-07-26 Doug Evans <xdje42@gmail.com>
3129
3130 PR 17185
3131 * configure.ac: Add check for header gc/gc.h.
3132 Add check for function setenv.
3133 * configure: Regenerate.
3134 * config.in: Regenerate.
3135 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3136
3137 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3138
3139 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3140 variation in gdbarch matching.
3141
3142 2014-07-25 Tom Tromey <tromey@redhat.com>
3143
3144 * exec.c (using_exec_ops): Remove.
3145 (exec_close_1): Update. Remove extraneous block, reindent.
3146 (add_target_sections): Use target_is_pushed.
3147
3148 2014-07-25 Pedro Alves <palves@redhat.com>
3149
3150 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3151 * monitor.c (monitor_create_inferior): Likewise.
3152 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3153 * remote-sim.c (gdbsim_create_inferior): Likewise.
3154 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3155 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3156 * windows-nat.c (do_initial_windows_stuff): Likewise.
3157
3158 2014-07-25 Pedro Alves <palves@redhat.com>
3159
3160 * NEWS: Mention signal passing and "signal" command changes.
3161 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3162 comment.
3163 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3164 call.
3165 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3166 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3167 (jump_command): Adjust clear_proceed_status call.
3168 (signal_command): Warn if other thread that are resumed have
3169 signals that will be delivered. Adjust clear_proceed_status call.
3170 (until_next_command, finish_command)
3171 (proceed_after_attach_callback, attach_command_post_wait)
3172 (attach_command): Adjust clear_proceed_status call.
3173 * infrun.c (proceed_after_vfork_done): Likewise.
3174 (proceed_after_attach_callback): Adjust comment.
3175 (clear_proceed_status_thread): Clear stop_signal if not in pass
3176 state.
3177 (clear_proceed_status_callback): Delete.
3178 (clear_proceed_status): New 'step' parameter. Only clear the
3179 proceed status of threads the command being prepared is about to
3180 resume.
3181 (proceed): If passed in an explicit signal, override stop_signal
3182 with it. Don't pass the last stop signal to the thread we're
3183 resuming.
3184 (init_wait_for_inferior): Adjust clear_proceed_status call.
3185 (switch_back_to_stepped_thread): Clear the signal if it should not
3186 be passed.
3187 * infrun.h (clear_proceed_status): New 'step' parameter.
3188 (user_visible_resume_ptid): Add comment.
3189 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3190 signal is in pass state.
3191 * remote.c (append_pending_thread_resumptions): Likewise.
3192 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3193
3194 2014-07-25 Tom Tromey <tromey@redhat.com>
3195
3196 * target.h (target_stopped_data_address)
3197 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3198 parentheses.
3199
3200 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3201
3202 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3203 comments.
3204 (avr_pointer_to_address): Likewise.
3205
3206 2014-07-24 Tom Tromey <tromey@redhat.com>
3207
3208 * monitor.c (compile_pattern): Update.
3209 * target.h (struct target_ops) <to_shortname, to_longname,
3210 to_doc>: Now const.
3211
3212 2014-07-24 Tom Tromey <tromey@redhat.com>
3213
3214 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3215 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3216 (add_info_alias, add_com): Make "doc" const.
3217 (print_doc_line): Make "str" const.
3218 (delete_cmd): Update.
3219 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3220 (print_doc_line): Update.
3221 * cli/cli-script.c (document_command): Update.
3222 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3223 (add_com, add_info, add_info_alias): Update.
3224 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3225 * python/py-cmd.c (cmdpy_destroyer): Update.
3226
3227 2014-07-24 Tom Tromey <tromey@redhat.com>
3228
3229 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3230 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3231 (help_cmd_list): Constify.
3232 (lookup_cmd): Update.
3233 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3234 const.
3235 (help_cmd_list, apropos_cmd): Update.
3236 * cli/cli-script.c (show_user): Update.
3237 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3238 * cli/cli-setshow.h (cmd_show_list): Update.
3239 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3240 (cmd_show_list): Update.
3241 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3242 * python/py-cmd.c (cmdpy_destroyer): Update.
3243
3244 2014-07-24 Tom Tromey <tromey@redhat.com>
3245
3246 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3247 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3248 const.
3249 * command.h (deprecate_cmd): Update.
3250 * maint.c (maintenance_do_deprecate): Add casts.
3251
3252 2014-07-24 Tom Tromey <tromey@redhat.com>
3253
3254 * cli/cli-decode.c (help_cmd): Make parameter "const".
3255 * cli/cli-decode.h (help_cmd): Update.
3256
3257 2014-07-24 Tom Tromey <tromey@redhat.com>
3258
3259 * stack.c (up_silently_base, down_silently_base): Make argument
3260 const.
3261
3262 2014-07-24 Tom Tromey <tromey@redhat.com>
3263
3264 * solib.c (solib_add): Make "pattern" const.
3265 * solib.h (solib_add): Update.
3266
3267 2014-07-24 Tom Tromey <tromey@redhat.com>
3268
3269 * remote.c (remote_serial_open, print_packet, putpkt)
3270 (putpkt_binary): Constify.
3271 * remote.h (putpkt): Update.
3272
3273 2014-07-24 Tom Tromey <tromey@redhat.com>
3274
3275 * monitor.c (monitor_open): Make "args" const.
3276 * monitor.h (monitor_open): Update.
3277
3278 2014-07-24 Tom Tromey <tromey@redhat.com>
3279
3280 * maint.c (match_bfd_flags): Make "string" const.
3281 (print_bfd_section_info): Remove casts.
3282 (print_objfile_section_info): Make "string" const.
3283
3284 2014-07-24 Tom Tromey <tromey@redhat.com>
3285
3286 * inf-child.c (inf_child_open_target): Make "arg" const.
3287 * inf-child.h (inf_child_open_target): Update.
3288
3289 2014-07-24 Tom Tromey <tromey@redhat.com>
3290
3291 * environ.c (unset_in_environ): Make "var" const.
3292 * environ.h (unset_in_environ): Update.
3293
3294 2014-07-24 Tom Tromey <tromey@redhat.com>
3295
3296 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3297 Make "cmd" const.
3298 (scan_filename_with_cleanup): Likewise.
3299 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3300 Make arguments const.
3301 (restore_command): Update.
3302
3303 2014-07-24 Pedro Alves <palves@redhat.com>
3304
3305 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3306
3307 2014-07-24 Tom Tromey <tromey@redhat.com>
3308 Gary Benson <gbenson@redhat.com>
3309
3310 * nat/linux-ptrace.c (additional_flags): New global.
3311 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3312 additional_flags; don't check GDBSERVER.
3313 (linux_ptrace_set_additional_flags): New function.
3314 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3315 Declare.
3316 * linux-nat.c (_initialize_linux_nat): Call
3317 linux_ptrace_set_additional_flags.
3318
3319 2014-07-24 Tom Tromey <tromey@redhat.com>
3320
3321 * make-target-delegates (munge_type, write_debugmethod): New
3322 functions.
3323 (debug_names): New global.
3324 ($TARGET_DEBUG_PRINTER): New global.
3325 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3326 name.
3327 Write debug methods. Generate init_debug_target.
3328 * target-debug.h: New file.
3329 * target-delegates.c: Rebuild.
3330 * target.c: Include target-debug.h.
3331 (debug_target): Hoist definition.
3332 (target_kill, target_get_section_table, target_memory_map)
3333 (target_flash_erase, target_flash_done, target_detach)
3334 (target_disconnect, target_wait, target_resume)
3335 (target_pass_signals, target_program_signals, target_follow_fork)
3336 (target_mourn_inferior, target_search_memory)
3337 (target_thread_address_space, target_close)
3338 (target_find_new_threads, target_core_of_thread)
3339 (target_verify_memory, target_insert_mask_watchpoint)
3340 (target_remove_mask_watchpoint): Remove targetdebug code.
3341 (debug_to_post_attach, debug_to_prepare_to_store)
3342 (debug_to_files_info, debug_to_insert_breakpoint)
3343 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3344 (debug_to_region_ok_for_hw_watchpoint)
3345 (debug_to_can_accel_watchpoint_condition)
3346 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3347 (debug_to_watchpoint_addr_within_range)
3348 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3349 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3350 (debug_to_terminal_init, debug_to_terminal_inferior)
3351 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3352 (debug_to_terminal_save_ours, debug_to_terminal_info)
3353 (debug_to_load, debug_to_post_startup_inferior)
3354 (debug_to_insert_fork_catchpoint)
3355 (debug_to_remove_fork_catchpoint)
3356 (debug_to_insert_vfork_catchpoint)
3357 (debug_to_remove_vfork_catchpoint)
3358 (debug_to_insert_exec_catchpoint)
3359 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3360 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3361 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3362 (setup_target_debug): Call init_debug_target.
3363 * target.h (TARGET_DEBUG_PRINTER): New macro.
3364 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3365 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3366
3367 2014-07-24 Gary Benson <gbenson@redhat.com>
3368
3369 * exceptions.h (throw_vfatal): Renamed to...
3370 (throw_vquit): New declaration.
3371 (throw_quit): Likewise.
3372 * exceptions.c (throw_vfatal): Renamed to...
3373 (throw_vquit): New function.
3374 (throw_quit): Likewise.
3375 (throw_error): Call throw_verror rather than throw_it.
3376 * utils.h (vfatal): Removed.
3377 (fatal): Likewise.
3378 * utils.c (vfatal): Removed.
3379 (fatal): Likewise.
3380 (internal_verror): Replaced call to fatal with call to throw_quit.
3381 (quit): Replaced calls to fatal with calls to throw_quit.
3382
3383 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3384
3385 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3386 target_read_code.
3387
3388 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3389
3390 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3391 less than zero in conditional expression.
3392
3393 2014-07-23 Tom Tromey <tromey@redhat.com>
3394
3395 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3396 ($INTRO_PART): Don't match whitespace.
3397 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3398 argument matching.
3399 ($METHOD): Add $METHOD_TRAILER.
3400 (trim): Rewrite.
3401 (scan_target_h): New sub.
3402 Change main loop not to collect state.
3403 * target-delegates.c: Rebuild.
3404
3405 2014-07-23 Gary Benson <gbenson@redhat.com>
3406
3407 * cp-support.c (gdb_demangle): Fix build on systems without
3408 sigaltstack.
3409
3410 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3411
3412 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3413 for reference entry value target data value.
3414
3415 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3418 value_available_contents_eq.
3419
3420 2014-07-22 Pedro Alves <palves@redhat.com>
3421
3422 * value.c (allocate_optimized_out_value): Don't mark value as
3423 non-lazy.
3424
3425 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3426
3427 * MAINTAINERS (Write After Approval): Update my email address.
3428
3429 2014-07-20 Doug Evans <dje@google.com>
3430
3431 PR server/17147
3432 * remote.c (putpkt_binary): Add text to error message.
3433
3434 2014-07-20 Yao Qi <yao@codesourcery.com>
3435
3436 * eval.c: Remove "Chill" from comments.
3437 * gdbtypes.h: Likewise.
3438 * symtab.h: Likewise.
3439
3440 2014-07-20 Yao Qi <yao@codesourcery.com>
3441
3442 * std-operator.def: Update comments to TERNOP_SLICE.
3443
3444 2014-07-20 Yao Qi <yao@codesourcery.com>
3445
3446 * std-operator.def: Remove BINOP_RANGE.
3447 * breakpoint.c (watchpoint_exp_is_const): Update.
3448 * expprint.c (dump_subexp_body_standard): Likewise.
3449 * eval.c (init_array_element): Remove dead code.
3450 (evaluate_subexp_standard): Likewise.
3451
3452 2014-07-20 Yao Qi <yao@codesourcery.com>
3453
3454 * std-operator.def: Remove BINOP_IN.
3455 * breakpoint.c (watchpoint_exp_is_const): Update.
3456 * eval.c (evaluate_subexp_standard): Likewise.
3457 * expprint.c (dump_subexp_body_standard): Likewise.
3458
3459 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3460
3461 * microblaze-tdep.c (microblaze_register_names): Add
3462 the rshr and rslr register names.
3463 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3464 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3465 Use of tdesc_numbered_register. Use of
3466 microblaze_register_g_packet_guesses. Use of
3467 tdesc_use_registers. Use of set_gdbarch_register_type.
3468 (microblaze_register_g_packet_guesses): New.
3469 * microblaze-tdep.h (microblaze_reg_num): Add
3470 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3471 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3472 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3473 * features/microblaze-core.xml: New file.
3474 * features/microblaze-stack-protect.xml: New file.
3475 * features/microblaze-with-stack-protect.c: New file.
3476 * features/microblaze-with-stack-protect.xml: New file.
3477 * features/microblaze.xml: New file.
3478 * features/microblaze.c: New file.
3479 * features/Makefile (microblaze-with-stack-protect): Add
3480 microblaze-with-stack-protect microblaze and microblaze-expedite.
3481 * regformats/microblaze-with-stack-protect.dat: New file.
3482 * regformats/microblaze.dat: New file.
3483 * doc/gdb.texinfo (MicroBlaze Features): Added.
3484
3485 2014-07-18 Tom Tromey <tromey@redhat.com>
3486
3487 * exec.c (exec_ops): Now static.
3488 * exec.h (exec_ops): Don't declare.
3489
3490 2014-07-18 Tom Tromey <tromey@redhat.com>
3491
3492 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3493 to find_target_beneath.
3494 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3495 find_target_beneath.
3496 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3497
3498 2014-07-18 Tom Tromey <tromey@redhat.com>
3499
3500 PR gdb/17130:
3501 * utils.c (quit): Use target_supports_terminal_ours.
3502 * target.h (target_supports_terminal_ours): Declare.
3503 * target.c (target_supports_delete_record): Don't check
3504 to_delete_record against NULL.
3505 (target_supports_terminal_ours): New function.
3506
3507 2014-07-18 Tom Tromey <tromey@redhat.com>
3508
3509 PR gdb/17130:
3510 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3511 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3512 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3513 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3514 * windows-nat.c (windows_xfer_partial): Always delegate.
3515 * record-btrace.c (record_btrace_xfer_partial): Simplify
3516 delegation.
3517 (record_btrace_fetch_registers, record_btrace_store_registers)
3518 (record_btrace_prepare_to_store, record_btrace_resume)
3519 (record_btrace_wait, record_btrace_find_new_threads)
3520 (record_btrace_thread_alive): Likewise.
3521 * procfs.c (procfs_xfer_partial): Always delegate.
3522 * corelow.c (core_xfer_partial): Always delegate.
3523 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3524
3525 2014-07-18 Tom Tromey <tromey@redhat.com>
3526
3527 * exec.c (exec_make_note_section): Move earlier.
3528
3529 2014-07-17 Doug Evans <dje@google.com>
3530
3531 PR gdb/17170
3532 * maint.c (count_symtabs_and_blocks): Handle NULL
3533 current_program_space.
3534 (report_command_stats): Check global enabled flag in addition to
3535 recorded enabled flag.
3536 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3537
3538 2014-07-16 Pedro Alves <palves@redhat.com>
3539
3540 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3541
3542 2014-07-16 Tom Tromey <tromey@redhat.com>
3543
3544 * target.h (struct target_ops) <to_delete_record>: Reformat
3545 comment.
3546
3547 2014-07-16 Tom Tromey <tromey@redhat.com>
3548
3549 * target-delegates.c: Rebuild.
3550
3551 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3552
3553 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3554 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3555 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3556 (avr_pointer_to_address): Likewise.
3557 (avr_address_class_type_flags): New function.
3558 (avr_address_class_type_flags_to_name): Likewise.
3559 (avr_address_class_name_to_type_flags): Likewise.
3560 (avr_gdbarch_init): Set address_class_type_flags,
3561 address_class_type_flags_to_name and
3562 address_class_name_to_type_flags.
3563
3564 2014-07-15 Pedro Alves <palves@redhat.com>
3565
3566 * linux-nat.c (kill_callback): Save errno and work with saved
3567 copy.
3568
3569 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3570
3571 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3572
3573 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3574
3575 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3576 breakpoint support correctly.
3577
3578 2014-07-14 Pedro Alves <palves@redhat.com>
3579
3580 * utils.c (prompt_for_continue): Call target_terminal_ours.
3581
3582 2014-07-14 Pedro Alves <palves@redhat.com>
3583
3584 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3585 catch_errors. Don't re-enable stdin or notify observers where,
3586 and rethrow error.
3587 (fetch_inferior_event_wrapper): Delete.
3588
3589 2014-07-14 Pedro Alves <palves@redhat.com>
3590
3591 PR gdb/17072
3592 * top.c: Include "inf-loop.h".
3593 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3594 field.
3595 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3596 was async before.
3597 (gdb_readline_wrapper): Store whether the target is async, and
3598 make it sync.
3599
3600 2014-07-14 Pedro Alves <palves@redhat.com>
3601
3602 PR gdb/17072
3603 * top.c (gdb_readline_wrapper_line): Tweak comment.
3604 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3605 the input handler callback.
3606
3607 2014-07-14 Pedro Alves <palves@redhat.com>
3608
3609 PR gdb/17072
3610 * main.c: Include event-top.h.
3611 (handle_command_errors): New function.
3612 (catch_command_errors, catch_command_errors_const): Use it.
3613
3614 2014-07-14 Pedro Alves <palves@redhat.com>
3615
3616 * exceptions.c (catch_command_errors, catch_command_errors_const):
3617 Moved to main.c.
3618 * exceptions.h (catch_command_errors_ftype)
3619 (catch_command_errors_const_ftype): Moved to main.c.
3620 (catch_command_errors, catch_command_errors_const): Delete
3621 declarations.
3622 * main.c (catch_command_errors_ftype)
3623 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3624 (catch_command_errors, catch_command_errors_const)): Moved here
3625 from exceptions.c and make static.
3626
3627 2014-07-14 Pedro Alves <palves@redhat.com>
3628
3629 * exceptions.c (print_any_exception): Delete.
3630 (catch_exceptions_with_msg): Use exception_print instead of
3631 print_any_exception.
3632 (catch_errors): Use exception_fprintf instead of
3633 print_any_exception.
3634 (catch_command_errors, catch_command_errors_const): Use
3635 exception_print instead of print_any_exception.
3636
3637 2014-07-14 Pedro Alves <palves@redhat.com>
3638
3639 * infcall.c (run_inferior_call): Set 'sync_execution' while
3640 running the inferior call.
3641
3642 2014-07-14 Pedro Alves <palves@redhat.com>
3643
3644 * value.c (value_contents_equal): Delete function.
3645 * value.h (value_contents_equal): Delete declaration.
3646
3647 2014-07-14 Tom Tromey <tromey@redhat.com>
3648
3649 PR exp/17106:
3650 * gdbtypes.c (is_dynamic_type_internal): New function, from
3651 is_dynamic_type.
3652 (is_dynamic_type): Rewrite.
3653 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3654 (resolve_dynamic_struct): Likewise.
3655 (resolve_dynamic_type_internal): New function, from
3656 resolve_dynamic_type.
3657 (resolve_dynamic_type): Rewrite.
3658
3659 2014-07-14 Tom Tromey <tromey@redhat.com>
3660
3661 * target.c (target_require_runnable): Also check record_stratum.
3662 Update comment.
3663
3664 2014-07-11 Yao Qi <yao@codesourcery.com>
3665
3666 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3667 thumb_instruction_restores_sp return true.
3668
3669 2014-07-11 Yao Qi <yao@codesourcery.com>
3670
3671 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3672 (thumb_in_function_epilogue_p): Call
3673 thumb_instruction_restores_sp.
3674
3675 2014-07-11 Yao Qi <yao@codesourcery.com>
3676
3677 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3678 'add sp, #imm'.
3679 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3680
3681 2014-07-11 Gary Benson <gbenson@redhat.com>
3682
3683 * amd64-linux-nat.c (gdbcore.h): Remove include.
3684 (regset.h): Likewise.
3685 (nat/linux-btrace.h): Likewise.
3686 (btrace.h): Likewise.
3687 (gdb_assert.h): Likewise.
3688 (string.h): Likewise.
3689 (sys/uio.h): Likewise.
3690 (sys/debugreg.h): Likewise.
3691 (sys/syscall.h): Likewise.
3692 (sys/procfs.h): Likewise.
3693 (sys/user.h): Likewise.
3694 (asm/ptrace.h): Likewise.
3695 (i386-nat.h): Likewise.
3696 * i386-linux-nat.c (i386-nat.h): Likewise.
3697 (regset.h): Likewise.
3698 (target.h): Likewise.
3699 (linux-nat.h): Likewise.
3700 (nat/linux-btrace.h): Likewise.
3701 (btrace.h): Likewise.
3702 (gdb_assert.h): Likewise.
3703 (string.h): Likewise.
3704 (sys/uio.h): Likewise.
3705 (sys/user.h): Likewise.
3706 (sys/procfs.h): Likewise.
3707 (sys/reg.h): Likewise.
3708 (sys/debugreg.h): Likewise.
3709 (ORIG_EAX): Remove definition.
3710
3711 2014-07-11 Gary Benson <gbenson@redhat.com>
3712
3713 * i386-linux-nat.h: New file.
3714 * x86-linux-nat.h: Likewise.
3715 * x86-linux-nat.c: Likewise.
3716 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3717 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3718 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3719 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3720 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3721 (PTRACE_SETREGSET): Likewise.
3722 (arch_lwp_info): Now in x86-linux-nat.c.
3723 (have_ptrace_getregset): Now in x86-linux-nat.h.
3724 (x86_linux_dr_get): Now in x86-linux-nat.c.
3725 (x86_linux_dr_set): Likewise.
3726 (x86_linux_dr_get_addr): Likewise.
3727 (x86_linux_dr_get_control): Likewise.
3728 (x86_linux_dr_get_status): Likewise.
3729 (update_debug_registers_callback): Likewise.
3730 (x86_linux_dr_set_control): Likewise.
3731 (x86_linux_dr_set_addr): Likewise.
3732 (x86_linux_prepare_to_resume): Likewise.
3733 (x86_linux_new_thread): Likewise.
3734 (x86_linux_new_fork): Likewise.
3735 (x86_linux_get_thread_area): Likewise.
3736 (super_post_startup_inferior): Likewise.
3737 (x86_linux_child_post_startup_inferior): Likewise.
3738 (AMD64_LINUX_USER64_CS): Likewise.
3739 (AMD64_LINUX_X32_DS): Likewise.
3740 (x86_linux_read_description): Likewise.
3741 (x86_linux_enable_btrace): Likewise.
3742 (x86_linux_disable_btrace): Likewise.
3743 (x86_linux_teardown_btrace): Likewise.
3744 (x86_linux_read_btrace): Likewise.
3745 (x86_linux_create_target): Likewise.
3746 (x86_linux_add_target): Likewise.
3747 * i386-linux-nat.c (x86-linux-nat.h): New include.
3748 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3749 (PTRACE_SETREGSET): Likewise.
3750 (arch_lwp_info): Now in x86-linux-nat.c.
3751 (have_ptrace_getregset): Now in x86-linux-nat.h.
3752 (x86_linux_dr_get): Now in x86-linux-nat.c.
3753 (x86_linux_dr_set): Likewise.
3754 (x86_linux_dr_get_addr): Likewise.
3755 (x86_linux_dr_get_control): Likewise.
3756 (x86_linux_dr_get_status): Likewise.
3757 (update_debug_registers_callback): Likewise.
3758 (x86_linux_dr_set_control): Likewise.
3759 (x86_linux_dr_set_addr): Likewise.
3760 (x86_linux_prepare_to_resume): Likewise.
3761 (x86_linux_new_thread): Likewise.
3762 (x86_linux_new_fork): Likewise.
3763 (x86_linux_get_thread_area): Likewise.
3764 (super_post_startup_inferior): Likewise.
3765 (x86_linux_child_post_startup_inferior): Likewise.
3766 (AMD64_LINUX_USER64_CS): Likewise.
3767 (AMD64_LINUX_X32_DS): Likewise.
3768 (x86_linux_read_description): Likewise.
3769 (x86_linux_enable_btrace): Likewise.
3770 (x86_linux_disable_btrace): Likewise.
3771 (x86_linux_teardown_btrace): Likewise.
3772 (x86_linux_read_btrace): Likewise.
3773 (x86_linux_create_target): Likewise.
3774 (x86_linux_add_target): Likewise.
3775
3776 2014-07-11 Gary Benson <gbenson@redhat.com>
3777
3778 * amd64-linux-nat.c: Comment and whitespace changes.
3779 * i386-linux-nat.c: Comment and whitespace changes.
3780
3781 2014-07-11 Gary Benson <gbenson@redhat.com>
3782
3783 * amd64-linux-nat.c (x86_linux_create_target): New function.
3784 (x86_linux_add_target): Likewise.
3785 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3786 * i386-linux-nat.c (x86_linux_create_target): New function.
3787 (x86_linux_add_target): Likewise.
3788 (_initialize_i386_linux_nat): Delegate to the above new functions.
3789
3790 2014-07-11 Gary Benson <gbenson@redhat.com>
3791
3792 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3793 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3794 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3795 (ps_get_thread_area): Delegate to the above.
3796
3797 2014-07-11 Gary Benson <gbenson@redhat.com>
3798
3799 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3800 x86_linux_read_description. All uses updated. amd64-specific
3801 code conditionalized. Conditionalized i386-specific code added.
3802 Redundant cast removed.
3803 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3804 x86_linux_read_description. All uses updated. i386-specific
3805 code conditionalized. Conditionalized amd64-specific code added.
3806 One sizeof replaced with the actual type it is describing.
3807
3808 2014-07-11 Gary Benson <gbenson@redhat.com>
3809
3810 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3811 x86_linux_dr_get. All uses updated.
3812 (amd64_linux_dr_set): Renamed to
3813 x86_linux_dr_set. All uses updated.
3814 (amd64_linux_dr_get_addr): Renamed to
3815 x86_linux_dr_get_addr. All uses updated.
3816 (amd64_linux_dr_get_control): Renamed to
3817 x86_linux_dr_get_control. All uses updated.
3818 (amd64_linux_dr_get_status): Renamed to
3819 x86_linux_dr_get_status. All uses updated.
3820 (amd64_linux_dr_set_control): Renamed to
3821 x86_linux_dr_set_control. All uses updated.
3822 (amd64_linux_dr_set_addr): Renamed to
3823 x86_linux_dr_set_addr. All uses updated.
3824 (amd64_linux_prepare_to_resume): Renamed to
3825 x86_linux_prepare_to_resume. All uses updated.
3826 (amd64_linux_new_thread): Renamed to
3827 x86_linux_new_thread. All uses updated.
3828 (amd64_linux_new_fork): Renamed to
3829 x86_linux_new_fork. All uses updated.
3830 (amd64_linux_child_post_startup_inferior): Renamed to
3831 x86_linux_child_post_startup_inferior. All uses updated.
3832 (amd64_linux_enable_btrace): Renamed to
3833 x86_linux_enable_btrace. All uses updated.
3834 (amd64_linux_disable_btrace): Renamed to
3835 x86_linux_disable_btrace. All uses updated.
3836 (amd64_linux_teardown_btrace): Renamed to
3837 x86_linux_teardown_btrace. All uses updated.
3838 (amd64_linux_read_btrace): Renamed to
3839 x86_linux_read_btrace. All uses updated.
3840 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3841 x86_linux_dr_get. All uses updated.
3842 (i386_linux_dr_set): Renamed to
3843 x86_linux_dr_set. All uses updated.
3844 (i386_linux_dr_get_addr): Renamed to
3845 x86_linux_dr_get_addr. All uses updated.
3846 (i386_linux_dr_get_control): Renamed to
3847 x86_linux_dr_get_control. All uses updated.
3848 (i386_linux_dr_get_status): Renamed to
3849 x86_linux_dr_get_status. All uses updated.
3850 (i386_linux_dr_set_control): Renamed to
3851 x86_linux_dr_set_control. All uses updated.
3852 (i386_linux_dr_set_addr): Renamed to
3853 x86_linux_dr_set_addr. All uses updated.
3854 (i386_linux_prepare_to_resume): Renamed to
3855 x86_linux_prepare_to_resume. All uses updated.
3856 (i386_linux_new_thread): Renamed to
3857 x86_linux_new_thread. All uses updated.
3858 (i386_linux_new_fork): Renamed to
3859 x86_linux_new_fork. All uses updated.
3860 (i386_linux_child_post_startup_inferior): Renamed to
3861 x86_linux_child_post_startup_inferior. All uses updated.
3862 (i386_linux_enable_btrace): Renamed to
3863 x86_linux_enable_btrace. All uses updated.
3864 (i386_linux_disable_btrace): Renamed to
3865 x86_linux_disable_btrace. All uses updated.
3866 (i386_linux_teardown_btrace): Renamed to
3867 x86_linux_teardown_btrace. All uses updated.
3868 (i386_linux_read_btrace): Renamed to
3869 x86_linux_read_btrace. All uses updated.
3870
3871 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3872
3873 * remote.c (extended_remote_post_attach): New function.
3874 (init_extended_remote_ops): Install it as to_post_attach method.
3875
3876 2014-07-09 Pedro Alves <palves@redhat.com>
3877
3878 * infcmd.c (attach_command_post_wait): Don't call
3879 target_terminal_inferior here.
3880 (attach_command): Call it here instead.
3881
3882 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3883
3884 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3885 field.
3886 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3887 from varobj.c, with additional checks.
3888 (c_varobj_ops): Fill in is_path_expr_parent field.
3889 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3890 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3891 field.
3892 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3893 ops method.
3894 (varobj_default_is_path_expr_parent): New function.
3895 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3896 (varobj_default_is_path_expr_parent): Declare new function.
3897
3898 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3899
3900 * infcmd.c (finish_backward): Turn internal error into normal error.
3901
3902 2014-07-07 Pedro Alves <palves@redhat.com>
3903
3904 PR gdb/17096
3905 * remote.c (async_handle_remote_sigint)
3906 (async_handle_remote_sigint_twice): Call
3907 gdb_call_async_signal_handler instead of
3908 mark_async_signal_handler.
3909
3910 2014-07-07 Tom Tromey <tromey@redhat.com>
3911
3912 * target-delegates.c: Rebuild.
3913 * target.c (target_info_record): Remove.
3914 * record.c (info_record_command): Unconditionally call
3915 to_info_record.
3916 * target.h (struct target_ops) <to_info_record>: Use
3917 TARGET_DEFAULT_IGNORE.
3918 (target_info_record): Remove.
3919
3920 2014-07-07 Tom Tromey <tromey@redhat.com>
3921
3922 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3923 TARGET_DEFAULT_NORETURN.
3924 * target.c (generic_tls_error): New function.
3925 (target_translate_tls_address): Don't search target stack.
3926 * target-delegates.c: Rebuild.
3927 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3928 stack.
3929 * linux-thread-db.c (thread_db_get_thread_local_address):
3930 Unconditionally call beneath target.
3931
3932 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3933
3934 * cli/cli-logging.c (pop_output_files): Assign targerr to
3935 gdb_stdtargerr.
3936
3937 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3938
3939 * MAINTAINERS (Write After Approval): Update my email address.
3940
3941 2014-07-02 Gary Benson <gbenson@redhat.com>
3942
3943 * proc-service.c (ps_xfer_memory): Update comment.
3944 (ps_pstop): Remove unused function.
3945 (ps_pcontinue): Likewise.
3946 (ps_lstop): Likewise.
3947 (ps_lcontinue): Likewise.
3948 (ps_lgetxregsize): Likewise.
3949 (ps_lgetxregs): Likewise.
3950 (ps_lsetxregs): Likewise.
3951 (ps_plog): Likewise.
3952 (ps_ptread): Likewise.
3953 (ps_ptwrite): Likewise.
3954
3955 2014-07-01 Mark Wielaard <mjw@redhat.com>
3956
3957 * dwarf2read.c (add_array_cv_type): New function.
3958 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3959 (read_tag_volatile_type): Likewise.
3960
3961 2014-07-01 Tom Tromey <tromey@redhat.com>
3962
3963 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3964 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3965 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3966 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3967 * command.h (cmd_cfunc_ftype): Move earlier.
3968 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3969 (add_com, add_info): Use cmd_cfunc_ftype.
3970
3971 2014-06-30 Tom Tromey <tromey@redhat.com>
3972
3973 * symtab.c (operator_chars): Make parameters and return type
3974 const.
3975 (file_matches): Make "files" const.
3976 (struct search_symbols_data) <files>: Now const.
3977 (search_symbols): Make "regexp" and "files" parameters const.
3978 Update.
3979 (symtab_symbol_info): Remove cast.
3980 (rbreak_command): Update.
3981 * symtab.h (search_symbols): Update.
3982
3983 2014-06-27 Yao Qi <yao@codesourcery.com>
3984
3985 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3986 Change parameter type to 'struct thread_info *'. Caller
3987 updated.
3988 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3989 Update declaration.
3990 * dummy-frame.c (struct dummy_frame_id): New.
3991 (dummy_frame_id_eq): New function.
3992 (struct dummy_frame) <id>: Change its type to 'struct
3993 dummy_frame_id'.
3994 (dummy_frame_push): Add parameter ptid and save it in
3995 dummy_frame_id.
3996 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3997 inferior_ptid.
3998 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3999 to inferior_ptid.
4000 (lookup_dummy_frame): Change parameter type to 'struct
4001 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4002 instead of frame_id_eq.
4003 (dummy_frame_pop): Add parameter ptid. Callers updated.
4004 Update comments. Compose dummy_frame_id and pass it to
4005 lookup_dummy_frame.
4006 (dummy_frame_discard): Add parameter ptid.
4007 (dummy_frame_sniffer): Compose dummy_frame_id and call
4008 dummy_frame_id_eq instead of frame_id_eq.
4009 (fprint_dummy_frames): Print ptid.
4010 * dummy-frame.h: Remove comments.
4011 (dummy_frame_push): Add ptid in declaration.
4012 (dummy_frame_pop, dummy_frame_discard): Likewise.
4013
4014 2014-06-26 Tom Tromey <tromey@redhat.com>
4015
4016 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4017 * command.h (error_no_arg): Update.
4018
4019 2014-06-26 Tom Tromey <tromey@redhat.com>
4020
4021 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4022 (do_show_command): Make "arg" const.
4023 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4024
4025 2014-06-26 Tom Tromey <tromey@redhat.com>
4026
4027 * record-full.c (record_full_get_bookmark): Make "args" const.
4028 (record_full_goto_bookmark): Make "raw_bookmark" const.
4029 * record.c (record_goto): New function.
4030 (cmd_record_goto): Use it. Now static.
4031 * record.h (record_goto): Declare.
4032 (cmd_record_goto): Remove declaration.
4033 * target-delegates.c: Rebuild.
4034 * target.h (struct target_ops) <to_get_bookmark,
4035 to_goto_bookmark>: Make parameter const.
4036
4037 2014-06-26 Tom Tromey <tromey@redhat.com>
4038
4039 * defs.h (generic_load): Update.
4040 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4041 * monitor.c (monitor_load): Make "args" const.
4042 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4043 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4044 const.
4045 (mips_load): Make "file" const.
4046 * remote-sim.c (gdbsim_load): Make "args" const.
4047 * remote.c (remote_load): Make "name" const.
4048 * symfile.c (generic_load): Make "args" const.
4049 * target-delegates.c: Rebuild.
4050 * target.c (target_load): Make "arg" const.
4051 (debug_to_load): Make "args" const.
4052 * target.h (struct target_ops) <to_load>: Make parameter const.
4053 (target_load): Update.
4054
4055 2014-06-26 Tom Tromey <tromey@redhat.com>
4056
4057 PR symtab/16902:
4058 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4059 (dwarf2_physname, read_partial_die)
4060 (guess_partial_die_structure_name, fixup_partial_die)
4061 (guess_full_die_structure_name, anonymous_struct_prefix)
4062 (dwarf2_name): Use per-BFD obstack.
4063
4064 2014-06-26 Yao Qi <yao@codesourcery.com>
4065
4066 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4067 dummyframe and this_id into inner block below.
4068
4069 2014-06-26 Yao Qi <yao@codesourcery.com>
4070
4071 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4072 with "signal_pass[0]" in the initialization of signal_pass.
4073
4074 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4075
4076 * record-btrace.c (record_btrace_generating_corefile)
4077 (record_btrace_prepare_to_generate_core)
4078 (record_btrace_done_generating_core): New.
4079 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4080 (record_btrace_store_registers, record_btrace_prepare_to_store):
4081 Forward request when generating a core file.
4082 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4083 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4084 to_done_generating_core.
4085
4086 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4087
4088 * target.h (target_ops) <to_prepare_to_generate_core>
4089 <to_done_generating_core>: New.
4090 (target_prepare_to_generate_core, target_done_generating_core): New.
4091 * target.c (target_prepare_to_generate_core)
4092 (target_done_generating_core): New.
4093 * target-delegates.c: Regenerate.
4094 * gcore.c: (write_gcore_file): Rename to ...
4095 (write_gcore_file_1): ...this.
4096 (write_gcore_file): Call target_prepare_to_generate_core
4097 and target_done_generating_core.
4098
4099 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4100
4101 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4102 * gcore.c (write_gcore_file): Free memory returned from
4103 make_corefile_notes.
4104 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4105 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4106
4107 2014-06-24 Yao Qi <yao@codesourcery.com>
4108
4109 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4110 (arm_linux_init_abi): Set skip_trampoline_code with
4111 gdbarch_skip_trampoline_code instead of
4112 find_solib_trampoline_target.
4113
4114 2014-06-24 Yao Qi <yao@codesourcery.com>
4115
4116 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4117 arm_skip_bx_reg returns non-zero.
4118
4119 2014-06-24 Yao Qi <yao@codesourcery.com>
4120
4121 * arm-tdep.c (arm_skip_bx_reg): New function.
4122 (arm_skip_stub): Call arm_skip_bx_reg.
4123
4124 2014-06-23 Don Breazeal <donb@codesourcery.com>
4125
4126 * MAINTAINERS: Add myself as write-after-approval maintainer.
4127
4128 2014-06-23 Pedro Alves <palves@redhat.com>
4129
4130 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4131 DR_CONTROL before setting DR0..DR3.
4132 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4133 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4134 bits of DR_CONTROL related to the debug register slot being
4135 disabled. If all slots are vacant, clear local slowdown as well,
4136 and assert DR_CONTROL is 0.
4137
4138 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4139
4140 * python/lib/gdb/command/xmethods.py
4141 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4142 current progspace only if the string "progspace" matches LOCUS_RE.
4143
4144 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4145
4146 Fix --with-system-readline with readline-6.3 patch 5.
4147 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4148 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4149 types.
4150
4151 2014-06-20 Tom Tromey <tromey@redhat.com>
4152
4153 * dwarf2read.c (dw2_get_real_path): Use correct type in
4154 OBSTACK_CALLOC.
4155 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4156
4157 2014-06-20 Gary Benson <gbenson@redhat.com>
4158
4159 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4160 * common/glibc_thread_db.h: Likewise.
4161 * common/i386-cpuid.h: Likewise.
4162 * common/i386-gcc-cpuid.h: Likewise.
4163 * common/linux-btrace.h: Likewise.
4164 * common/linux-osdata.h: Likewise.
4165 * common/linux-procfs.h: Likewise.
4166 * common/linux-ptrace.h: Likewise.
4167 * common/mips-linux-watch.h: Likewise.
4168 * common/linux-btrace.c: Moved to nat.
4169 * common/linux-osdata.c: Likewise.
4170 * common/linux-procfs.c: Likewise.
4171 * common/linux-ptrace.c: Likewise.
4172 * common/mips-linux-watch.c: Likewise.
4173 * nat/gdb_thread_db.h: Moved from common.
4174 * nat/glibc_thread_db.h: Likewise.
4175 * nat/i386-cpuid.h: Likewise.
4176 * nat/i386-gcc-cpuid.h: Likewise.
4177 * nat/linux-btrace.c: Likewise.
4178 * nat/linux-btrace.h: Likewise.
4179 * nat/linux-osdata.c: Likewise.
4180 * nat/linux-osdata.h: Likewise.
4181 * nat/linux-procfs.c: Likewise.
4182 * nat/linux-procfs.h: Likewise.
4183 * nat/linux-ptrace.c: Likewise.
4184 * nat/linux-ptrace.h: Likewise.
4185 * nat/mips-linux-watch.c: Likewise.
4186 * nat/mips-linux-watch.h: Likewise.
4187 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4188 (object file files): Reordered.
4189 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4190 of glibc_thread_db.h.
4191
4192 2014-06-20 Gary Benson <gbenson@redhat.com>
4193
4194 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4195 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4196 (i386_dr_low): Likewise.
4197 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4198 (i386_dr_low_set_addr): Likewise.
4199 (i386_dr_low_get_addr): Likewise.
4200 (i386_dr_low_can_set_control): Likewise.
4201 (i386_dr_low_set_control): Likewise.
4202 (i386_dr_low_get_control): Likewise.
4203 (i386_dr_low_get_status): Likewise.
4204 (i386_get_debug_register_length): Likewise.
4205 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4206 (i386_dr_low): Likewise.
4207 * nat/i386-dregs.c (i386-low.h): Remove include.
4208 (i386-nat.h): Likewise.
4209 (nat/i386-dregs.h): New include.
4210 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4211 (i386_dr_low_set_addr): Likewise.
4212 (i386_dr_low_get_addr): Likewise.
4213 (i386_dr_low_can_set_control): Likewise.
4214 (i386_dr_low_set_control): Likewise.
4215 (i386_dr_low_get_control): Likewise.
4216 (i386_dr_low_get_status): Likewise.
4217 (i386_get_debug_register_length): Likewise.
4218 (debug_hw_points): Likewise.
4219
4220 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4221
4222 * Makefile.in (SFILES): Add d-exp.y.
4223 (YYFILES): Add d-exp.c.
4224 (YYOBJ): Add d-exp.o.
4225 (local-maintainer-clean): Delete d-exp.c.
4226 * d-exp.y: New file.
4227 * d-lang.h (d_parse): New declaration.
4228 (d_error): New declaration.
4229 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4230 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4231 PREC_ORDER operators.
4232 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4233
4234 2014-06-19 Yao Qi <yao@codesourcery.com>
4235
4236 * gdbthread.h (any_running): Remove the declaration.
4237 * thread.c (any_running): Remove.
4238
4239 2014-06-19 Yao Qi <yao@codesourcery.com>
4240
4241 * gdbthread.h (struct thread_info) <state>: Change its type to
4242 'enum thread_state'. Update comments.
4243
4244 2014-06-19 Pedro Alves <palves@redhat.com>
4245
4246 * gdbthread.h (ALL_THREADS): Delete.
4247 (ALL_NON_EXITED_THREADS): New macro.
4248 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4249 instead of ALL_THREADS.
4250 * infrun.c (find_thread_needs_step_over)
4251 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4252 instead of ALL_THREADS.
4253 * record-btrace.c (record_btrace_open)
4254 (record_btrace_stop_recording, record_btrace_close)
4255 (record_btrace_is_replaying, record_btrace_resume)
4256 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4257 * remote.c (append_pending_thread_resumptions): Likewise.
4258 * thread.c (thread_apply_all_command): Likewise.
4259
4260 2014-06-19 Gary Benson <gbenson@redhat.com>
4261
4262 * i386-nat.c (i386_stopped_by_watchpoint):
4263 Use i386_dr_stopped_by_watchpoint.
4264 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4265 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4266
4267 2014-06-19 Gary Benson <gbenson@redhat.com>
4268
4269 * nat/i386-dregs.c: New file.
4270 * Makefile.in (i386-dregs.o): New rule.
4271 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4272 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4273 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4274 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4275 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4276 * config/i386/go32.mh (NATDEPFILES): Likewise.
4277 * config/i386/linux.mh (NATDEPFILES): Likewise.
4278 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4279 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4280 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4281 * i386-nat.h (debug_hw_points): New declaration.
4282 * i386-nat.c (breakpoint.h): Remove include.
4283 (command.h): Likewise.
4284 (target.h): Likewise.
4285 (gdb_assert.h): Likewise.
4286 (debug_hw_points): Made nonstatic.
4287 (debug_printf): Now in i386-dregs.c.
4288 (TARGET_HAS_DR_LEN_8): Likewise.
4289 (DR_CONTROL_SHIFT): Likewise.
4290 (DR_CONTROL_SIZE): Likewise.
4291 (DR_RW_EXECUTE): Likewise.
4292 (DR_RW_WRITE): Likewise.
4293 (DR_RW_READ): Likewise.
4294 (DR_RW_IORW): Likewise.
4295 (DR_LEN_1): Likewise.
4296 (DR_LEN_2): Likewise.
4297 (DR_LEN_4): Likewise.
4298 (DR_LEN_8): Likewise.
4299 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4300 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4301 (DR_ENABLE_SIZE): Likewise.
4302 (DR_LOCAL_SLOWDOWN): Likewise.
4303 (DR_GLOBAL_SLOWDOWN): Likewise.
4304 (DR_CONTROL_RESERVED): Likewise.
4305 (I386_DR_CONTROL_MASK): Likewise.
4306 (I386_DR_VACANT): Likewise.
4307 (I386_DR_LOCAL_ENABLE): Likewise.
4308 (I386_DR_GLOBAL_ENABLE): Likewise.
4309 (I386_DR_DISABLE): Likewise.
4310 (I386_DR_SET_RW_LEN): Likewise.
4311 (I386_DR_GET_RW_LEN): Likewise.
4312 (I386_DR_WATCH_HIT): Likewise.
4313 (i386_wp_op_t): Likewise.
4314 (i386_show_dr): Likewise.
4315 (i386_length_and_rw_bits): Likewise.
4316 (i386_insert_aligned_watchpoint): Likewise.
4317 (i386_remove_aligned_watchpoint): Likewise.
4318 (i386_handle_nonaligned_watchpoint): Likewise.
4319 (i386_update_inferior_debug_regs): Likewise.
4320 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4321 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4322 (i386_region_ok_for_watchpoint):
4323 Use i386_dr_region_ok_for_watchpoint.
4324 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4325
4326 2014-06-19 Gary Benson <gbenson@redhat.com>
4327
4328 * i386-nat.c (i386_insert_hw_breakpoint): Use
4329 i386_insert_watchpoint.
4330 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4331
4332 2014-06-19 Gary Benson <gbenson@redhat.com>
4333
4334 * i386-nat.c (i386_dr_show): Renamed to
4335 i386_show_dr and made static. All uses updated.
4336 (i386_dr_length_and_rw_bits): Renamed to
4337 i386_length_and_rw_bits and made static.
4338 All uses updated.
4339 (i386_dr_insert_aligned_watchpoint): Renamed to
4340 i386_insert_aligned_watchpoint and made static.
4341 All uses updated.
4342 (i386_dr_remove_aligned_watchpoint): Renamed to
4343 i386_remove_aligned_watchpoint and made static.
4344 All uses updated.
4345 (i386_dr_update_inferior_debug_regs): Renamed to
4346 i386_update_inferior_debug_regs and made static.
4347 All uses updated.
4348 * nat/i386-dregs.h (i386_dr_show): Removed.
4349 (i386_dr_length_and_rw_bits): Likewise.
4350 (i386_dr_insert_aligned_watchpoint): Likewise.
4351 (i386_dr_remove_aligned_watchpoint): Likewise.
4352 (i386_dr_update_inferior_debug_regs): Likewise.
4353
4354 2014-06-19 Gary Benson <gbenson@redhat.com>
4355
4356 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4357 * configure: Regenerate.
4358 * config.in: Likewise.
4359 * main.c (signal.h): New include.
4360 (setup_alternate_signal_stack): New function.
4361 (captured_main): Call the above.
4362 * cp-support.c (signal.h): New include.
4363 (catch_demangler_crashes): New flag.
4364 (SIGJMP_BUF): New define.
4365 (SIGSETJMP): Likewise.
4366 (SIGLONGJMP): Likewise.
4367 (gdb_demangle_jmp_buf): New static global.
4368 (gdb_demangle_attempt_core_dump): Likewise.
4369 (gdb_demangle_signal_handler): New function.
4370 (gdb_demangle): If catch_demangler_crashes is set, install the
4371 above signal handler before calling bfd_demangle, and restore
4372 the original signal handler afterwards. Display the offending
4373 symbol and call demangler_warning the first time a segmentation
4374 fault is caught.
4375 (_initialize_cp_support): New maint set/show command.
4376
4377 2014-06-19 Gary Benson <gbenson@redhat.com>
4378
4379 * utils.h (resource_limit_kind): New enum.
4380 (can_dump_core): New declaration.
4381 (warn_cant_dump_core): Likewise.
4382 (dump_core): Likewise.
4383 * utils.c (dump_core): Made nonstatic. Added new
4384 parameter "limit_kind".
4385 (can_dump_core): Made nonstatic. Moved printing code to...
4386 (warn_cant_dump_core): New function.
4387 (can_dump_core_warn): Likewise.
4388 (internal_vproblem): Replace calls to can_dump_core with
4389 calls to can_dump_core_warn. Supply new argument to each.
4390
4391 2014-06-19 Gary Benson <gbenson@redhat.com>
4392
4393 * utils.h (demangler_vwarning): New declaration.
4394 (demangler_warning): Likewise.
4395 * utils.c (struct internal_problem)
4396 <user_settable_should_quit>: New field.
4397 <user_settable_should_dump_core>: Likewise
4398 (internal_error_problem): Add values for above new fields.
4399 (internal_warning_problem): Likewise.
4400 (demangler_warning_problem): New static global.
4401 (demangler_vwarning): New function.
4402 (demangler_warning): Likewise.
4403 (add_internal_problem_command): Selectively add commands.
4404 (_initialize_utils): New internal problem command.
4405 * maint.c (maintenance_demangler_warning): New function.
4406 (_initialize_maint_cmds): New command.
4407
4408 2014-06-18 Tom Tromey <tromey@redhat.com>
4409
4410 * f-valprint.c (info_common_command_for_block): Update.
4411 * symtab.h (struct general_symbol_info) <common_block>: Now
4412 const.
4413
4414 2014-06-18 Tom Tromey <tromey@redhat.com>
4415
4416 * symtab.h (struct symtab) <blockvector>: Now const.
4417 * ada-lang.c (ada_add_global_exceptions): Update.
4418 * buildsym.c (augment_type_symtab): Update.
4419 * dwarf2read.c (dw2_lookup_symbol): Update.
4420 * jit.c (finalize_symtab): Update.
4421 * jv-lang.c (add_class_symtab_symbol): Update.
4422 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4423 Update.
4424 * objfiles.c (objfile_relocate1): Update.
4425 * psymtab.c (lookup_symbol_aux_psymtabs)
4426 (maintenance_check_psymtabs): Update.
4427 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4428 Update.
4429 * spu-tdep.c (spu_catch_start): Update.
4430 * symmisc.c (dump_symtab_1): Update.
4431 * symtab.c (lookup_global_symbol_from_objfile)
4432 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4433 (basic_lookup_transparent_type_quick)
4434 (basic_lookup_transparent_type, find_pc_sect_symtab)
4435 (find_pc_sect_line, search_symbols): Update.
4436 * block.c (find_block_in_blockvector): Make "bl" const.
4437 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4438 const.
4439 (blockvector_contains_pc): Make "bv" const.
4440 (block_for_pc_sect): Update.
4441 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4442 (blockvector_contains_pc): Update.
4443 * breakpoint.c (resolve_sal_pc): Update.
4444 * inline-frame.c (block_starting_point_at): Update.
4445
4446 2014-06-18 Tom Tromey <tromey@redhat.com>
4447
4448 * completer.c (complete_line): Make "line_buffer" const.
4449 * completer.h (complete_line): Update.
4450
4451 2014-06-18 Tom Tromey <tromey@redhat.com>
4452
4453 * symtab.c (add_macro_name): Remove unneeded cast.
4454
4455 2014-06-18 Tom Tromey <tromey@redhat.com>
4456
4457 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4458 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4459
4460 2014-06-18 Tom Tromey <tromey@redhat.com>
4461
4462 * probe.c (info_probes_for_ops): Make "arg" const.
4463 * probe.h (info_probes_for_ops): Update.
4464
4465 2014-06-18 Tom Tromey <tromey@redhat.com>
4466
4467 * varobj.c (varobj_create): Update.
4468 * valops.c (value_of_this): Update.
4469 * tracepoint.c (add_local_symbols, scope_info): Update.
4470 * symtab.h (struct general_symbol_info) <block>: Now const.
4471 * symtab.c (skip_prologue_sal)
4472 (default_make_symbol_completion_list_break_on)
4473 (skip_prologue_using_sal): Update.
4474 * stack.h (iterate_over_block_locals)
4475 (iterate_over_block_local_vars): Update.
4476 * stack.c (print_frame_args): Update.
4477 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4478 parameter const.
4479 (get_selected_block): Make return type const.
4480 * python/py-frame.c (frapy_block): Update.
4481 * python/py-block.c (gdbpy_block_for_pc): Update.
4482 * p-exp.y (%union) <bval>: Now const.
4483 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4484 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4485 * m2-exp.y (%union) <bval>: Now const.
4486 * linespec.c (get_current_search_block): Make return type const.
4487 (create_sals_line_offset, find_label_symbols): Update.
4488 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4489 Update.
4490 (block_starting_point_at): Make "block" const.
4491 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4492 (check_exception_resume): Update.
4493 * guile/scm-frame.c (gdbscm_frame_block): Update.
4494 * guile/scm-block.c (gdbscm_lookup_block): Update.
4495 * frame.h (get_frame_block): Update.
4496 (get_selected_block): Make return type const.
4497 * frame.c (frame_id_inner): Update.
4498 * f-valprint.c (info_common_command_for_block)
4499 (info_common_command): Update.
4500 * dwarf2loc.c (dwarf2_find_location_expression)
4501 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4502 (locexpr_describe_location_piece): Update.
4503 * c-exp.y (%union) <bval>: Now const.
4504 * breakpoint.c (resolve_sal_pc): Update.
4505 * blockframe.c (get_frame_block):Make return type const.
4506 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4507 (block_innermost_frame): Update.
4508 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4509 (block_for_pc, block_for_pc_sect): Update.
4510 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4511 'pblock' const.
4512 (block_for_pc_sect, block_for_pc): Make return type const.
4513 * ax-gdb.c (gen_expr): Update.
4514 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4515 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4516 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4517 (ada_read_var_value): Update.
4518 * ada-exp.y (struct name_info) <block>: Now const.
4519 (%union): Likewise.
4520 (block_lookup): Constify.
4521
4522 2014-06-18 Gary Benson <gbenson@redhat.com>
4523
4524 * nat/i386-dregs.h: New file.
4525 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4526 * i386-nat.h (i386-dregs.h): New include.
4527 (DR_FIRSTADDR): Now in i386-dregs.h.
4528 (DR_LASTADDR): Likewise.
4529 (DR_NADDR): Likewise.
4530 (DR_STATUS): Likewise.
4531 (DR_CONTROL): Likewise.
4532 (i386_debug_reg_state): Likewise.
4533 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4534
4535 2014-06-18 Don Breazeal <donb@codesourcery.com>
4536
4537 * breakpoint.c (set_longjmp_breakpoint): Call
4538 momentary_breakpoint_from_master with additional argument.
4539 (set_longjmp_breakpoint_for_call_dummy): Call
4540 momentary_breakpoint_from_master with additional argument.
4541 (set_std_terminate_breakpoint): Call
4542 momentary_breakpoint_from_master with additional argument.
4543 (momentary_breakpoint_from_master): Add argument to function
4544 definition and use it to initialize structure member flag.
4545 (clone_momentary_breakpoint): Call
4546 momentary_breakpoint_from_master with additional argument.
4547 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4548 member flags set in momentary_breakpoint_from_master.
4549
4550 2014-06-18 Gary Benson <gbenson@redhat.com>
4551
4552 * i386-nat.c (i386_show_dr): Renamed to
4553 i386_dr_show and made nonstatic. All uses updated.
4554 (i386_length_and_rw_bits): Renamed to
4555 i386_dr_length_and_rw_bits and made nonstatic.
4556 All uses updated.
4557 (i386_insert_aligned_watchpoint): Renamed to
4558 i386_dr_insert_aligned_watchpoint and made nonstatic.
4559 All uses updated.
4560 (i386_remove_aligned_watchpoint): Renamed to
4561 i386_dr_remove_aligned_watchpoint and made nonstatic.
4562 All uses updated.
4563 (i386_update_inferior_debug_regs): Renamed to
4564 i386_dr_update_inferior_debug_regs and made nonstatic.
4565 All uses updated.
4566
4567 2014-06-18 Gary Benson <gbenson@redhat.com>
4568
4569 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4570 (i386_dr_low_can_set_control): Likewise.
4571 (i386_dr_low_set_addr): Likewise.
4572 (i386_dr_low_set_control): Likewise.
4573 (i386_dr_low_get_addr): Likewise.
4574 (i386_dr_low_get_status): Likewise.
4575 (i386_dr_low_get_control): Likewise.
4576 (i386_insert_aligned_watchpoint): Use new macros.
4577 (i386_update_inferior_debug_regs): Likewise.
4578 (i386_stopped_data_address): Likewise.
4579
4580 2014-06-18 Gary Benson <gbenson@redhat.com>
4581
4582 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4583 New parameter. All uses updated.
4584
4585 2014-06-18 Gary Benson <gbenson@redhat.com>
4586
4587 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4588 All uses updated.
4589
4590 2014-06-18 Gary Benson <gbenson@redhat.com>
4591
4592 * i386-nat.c (debug_printf): New macro.
4593 (i386_get_debug_register_length): Likewise.
4594 (TARGET_HAS_DR_LEN_8): Use above macro.
4595 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4596 and printf_unfiltered. Use phex to format values.
4597
4598 2014-06-18 Gary Benson <gbenson@redhat.com>
4599
4600 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4601 Make const.
4602
4603 2014-06-18 Gary Benson <gbenson@redhat.com>
4604
4605 * i386-nat.c: Comment changes.
4606
4607 2014-06-18 Gary Benson <gbenson@redhat.com>
4608
4609 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4610
4611 2014-06-18 Gary Benson <gbenson@redhat.com>
4612
4613 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4614 (i386_insert_aligned_watchpoint): Likewise.
4615 (i386_remove_aligned_watchpoint): Likewise.
4616 (i386_handle_nonaligned_watchpoint): Likewise.
4617
4618 2014-06-18 Gary Benson <gbenson@redhat.com>
4619
4620 * i386-nat.c: Whitespace changes.
4621
4622 2014-06-17 Samuel Bronson <naesten@gmail.com>
4623
4624 * MAINTAINERS: Update Roland McGrath's email address.
4625 Thanks to Sergio Durigan Junior for pointing out that he left
4626 Red Hat a while ago, and giving me a current address.
4627
4628 2014-06-17 Tom Tromey <tromey@redhat.com>
4629
4630 * utils.h (savestring): Remove declaration.
4631
4632 2014-06-17 Tom Tromey <tromey@redhat.com>
4633
4634 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4635
4636 2014-06-16 Keith Seitz <keiths@redhat.com>
4637
4638 PR mi/15863
4639 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4640 to update the varobj if inferior_ptid is null_ptid.
4641
4642 2014-06-16 Tom Tromey <tromey@redhat.com>
4643
4644 * target.h (struct target_ops) <to_info_proc>: Make parameter
4645 const.
4646 (target_info_proc): Update.
4647 * target.c (target_info_proc): Make "args" const.
4648 * procfs.c (procfs_info_proc): Update.
4649 * linux-tdep.c (linux_info_proc): Update.
4650 (linux_core_info_proc_mappings): Make "args" const.
4651 (linux_core_info_proc): Update.
4652 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4653 * gdbarch.c: Rebuild.
4654 * gdbarch.h: Rebuild.
4655 * corelow.c (core_info_proc): Update.
4656
4657 2014-06-16 Tom Tromey <tromey@redhat.com>
4658
4659 * target.h (struct target_ops) <to_disconnect>: Make parameter
4660 const.
4661 (target_disconnect): Update.
4662 * target.c (target_disconnect): Make "args" const.
4663 * target-delegates.c: Rebuild.
4664 * remote.c (remote_disconnect): Update.
4665 * record.h (record_disconnect): Update.
4666 * record.c (record_disconnect): Update.
4667 * inf-child.c (inf_child_disconnect): Update.
4668
4669 2014-06-16 Tom Tromey <tromey@redhat.com>
4670
4671 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4672 * target.c (debug_to_rcmd, default_rcmd): Update.
4673 * target-delegates.c: Rebuild.
4674 * remote.c (remote_rcmd): Update.
4675 * monitor.c (monitor_rcmd): Update.
4676
4677 2014-06-16 Pedro Alves <palves@redhat.com>
4678
4679 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4680 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4681 have OBJF_SHARED set.
4682 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4683 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4684 instead of OBJF_USERLOADED.
4685 * objfiles.h (OBJF_SHARED): Update comment.
4686 (userloaded_objfile_contains_address_p): Rename to ...
4687 (shared_objfile_contains_address_p): ... this, and update
4688 comments.
4689 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4690 new objfile.
4691 (remove_symbol_file_command): Skip objfiles that don't have
4692 OBJF_SHARED set.
4693
4694 2014-06-16 Tom Tromey <tromey@redhat.com>
4695
4696 * minsyms.h (prim_record_minimal_symbol)
4697 (prim_record_minimal_symbol_and_info): Update comments.
4698
4699 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4700
4701 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4702 or --without-guile, according to how GDB was built.
4703
4704 2014-06-13 Tom Tromey <tromey@redhat.com>
4705
4706 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4707 to help_list.
4708 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4709 to help_list.
4710 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4711 help_list.
4712 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4713 help_list.Pass all_commands, not -1, to help_list.
4714 * cli/cli-dump.c (dump_command, append_command)
4715 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4716 (binary_dump_command, binary_append_command): Pass all_commands,
4717 not -1, to help_list.
4718 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4719 -1, to help_list.
4720 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4721 -1, to help_list.
4722 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4723 help_list.
4724 * top.c (set_history): Pass all_commands, not -1, to help_list.
4725 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4726 all_commands, not -1, to help_list.
4727 * symfile.c (overlay_command): Pass all_commands, not -1, to
4728 help_list.
4729 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4730 help_list.
4731 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4732 help_list.
4733 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4734 -1, to help_list.
4735 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4736 not -1, to help_list.
4737 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4738 not -1, to help_list.
4739 * maint.c (maintenance_command, maintenance_info_command)
4740 (maintenance_print_command, maintenance_set_cmd): Pass
4741 all_commands, not -1, to help_list.
4742 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4743 help_list.
4744 * language.c (set_check): Pass all_commands, not -1, to help_list.
4745 * infcmd.c (unset_command): Pass all_commands, not -1, to
4746 help_list.
4747 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4748 help_list.
4749 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4750 help_list.
4751 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4752 help_list.
4753 * breakpoint.c (save_command): Pass all_commands, not -1, to
4754 help_list.
4755 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4756 all_commands, not -1, to help_list.
4757
4758 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4759
4760 * regcache.c (struct register_to_invalidate): New structure.
4761 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4762 functions.
4763 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4764
4765 2014-06-12 Yao Qi <yao@codesourcery.com>
4766
4767 * varobj.c (varobj_get_num_children): Call
4768 varobj_is_dynamic_p.
4769 (varobj_list_children): Likewise.
4770 (varobj_update): Likewise. Update comments.
4771
4772 2014-06-12 Yao Qi <yao@codesourcery.com>
4773
4774 * varobj.c (varobj_pretty_printed_p): Rename to ...
4775 (varobj_is_dynamic_p): ... this. New function.
4776 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4777 (varobj_is_dynamic_p): Declare.
4778 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4779 (mi_print_value_p, varobj_update_one): Likewise.
4780
4781 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4782 Yao Qi <yao@codesourcery.com>
4783
4784 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4785 (varobj_get_iterator): Wrap up code for pretty-printer by
4786 "#if HAVE_PYTHON" and "#endif".
4787 (update_dynamic_varobj_children): Likewise.
4788
4789 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4790 Yao Qi <yao@codesourcery.com>
4791
4792 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4793 gdb_python_initialized is false. Move some code from varobj.c.
4794 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4795 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4796 (struct varobj_item): Moved to varobj-iter.h".
4797 (varobj_clear_saved_item): New function.
4798 (update_dynamic_varobj_children): Move python-related code to
4799 py-varobj.c.
4800 (free_variable): Call varobj_clear_saved_item and
4801 varobj_iter_delete.
4802
4803 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4804 Yao Qi <yao@codesourcery.com>
4805
4806 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4807 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4808 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4809 (py-varobj.o): New rule.
4810 * python/py-varobj.c: New file.
4811 * python/python-internal.h (py_varobj_get_iterator): Declare.
4812 * varobj-iter.h: New file.
4813 * varobj.c: Include "varobj-iter.h"
4814 (struct varobj) <child_iter>: Change its type from "PyObject *"
4815 to "struct varobj_iter *".
4816 <saved_item>: Likewise.
4817 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4818 [HAVE_PYTHON] (varobj_get_iterator): New function.
4819 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4820 python-specific code to python/py-varobj.c.
4821 (install_visualizer): Call varobj_iter_delete instead of
4822 Py_XDECREF.
4823 * varobj.h (varobj_ensure_python_env): Declare.
4824
4825 2014-06-12 Yao Qi <yao@codesourcery.com>
4826
4827 * varobj.c (struct varobj_item): New structure.
4828 (create_child_with_value): Update declaration.
4829 (varobj_add_child): Replace arguments 'name' and 'value' with
4830 'item'. All callers updated.
4831 (install_dynamic_child): Likewise.
4832 (update_dynamic_varobj_children): Likewise.
4833 (varobj_add_child): Likewise.
4834 (create_child_with_value): Likewise.
4835
4836 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4837
4838 * NEWS: Create a new section for the next release branch.
4839 Rename the section of the current branch, now that it has
4840 been cut.
4841
4842 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4843
4844 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4845 * version.in: Bump version to 7.8.50.DATE-cvs.
4846
4847 2014-06-11 Pedro Alves <palves@redhat.com>
4848
4849 PR remote/17028
4850 * ser-mingw.c (net_windows_socket_check_pending): New function.
4851 (net_windows_select_thread): Ignore spurious wakeups. Use
4852 net_windows_socket_check_pending.
4853 (net_windows_wait_handle): Check for pending events with
4854 ioctlsocket, through net_windows_socket_check_pending, instead of
4855 checking the socket's event.
4856
4857 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4858
4859 * python/python-internal.h (gdb_PyObject_GetAttrString)
4860 (gdb_PyObject_HasAttrString): New inline function definitions.
4861 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4862 char * of the second argument to PyObject_GetAttrString.
4863
4864 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4865
4866 * serial.c (serial_write): Fix index of character to be printed
4867 in call to serial_logchar when serial debug traces are enabled.
4868
4869 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4870
4871 * gdbtypes (resolve_dynamic_range): Add function description.
4872
4873 2014-06-09 Pedro Alves <palves@redhat.com>
4874
4875 * linux-nat.c (linux_child_follow_fork): Initialize status with
4876 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4877 inner block. Only pass the signal to PTRACE_DETACH if in pass
4878 state.
4879
4880 2014-06-09 Gary Benson <gbenson@redhat.com>
4881
4882 * common/signals.c (gdb_signal_from_host): Reorder to separate
4883 the always-available ANSI-standard signals from the signals that
4884 require checking.
4885 (do_gdb_signal_to_host): Likewise.
4886 * proc-events.c (signal_table): Likewise.
4887
4888 2014-06-08 Hui Zhu <hui@codesourcery.com>
4889
4890 * common/linux-ptrace.c (linux_disable_event_reporting): New
4891 function.
4892 * common/linux-ptrace.h (linux_disable_event_reporting): New
4893 declaration.
4894 * linux-nat.c (linux_child_follow_fork): Do a single step before
4895 detach.
4896
4897 2014-06-07 Keith Seitz <keiths@redhat.com>
4898
4899 Revert:
4900 PR c++/16253
4901 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4902 from symbol_matches_domain in symtab.c. All local callers
4903 of symbol_matches_domain updated.
4904 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4905 search STRUCT_DOMAIN.
4906 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4907 independently. standard_lookup will do that automatically.
4908 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4909 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4910 (cp_lookup_symbol_in_namespace): Likewise.
4911 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4912 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4913 may return a STRUCT_DOMAIN match.
4914 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4915 * cp-support.c: Include language.h.
4916 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4917 VAR_DOMAIN.
4918 * psymtab.c (match_partial_symbol): Compare the requested
4919 domain with the symbol's domain directly.
4920 (lookup_partial_symbol): Likewise.
4921 * symtab.c (lookup_symbol_in_language): Explain when/why
4922 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4923 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4924 appropriate languages.
4925 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4926 and moved to ada-lang.c
4927 (lookup_block_symbol): Explain that this function only returns
4928 symbol matching the requested DOMAIN.
4929 Compare the requested domain with the symbol's domain directly.
4930 (iterate_over_symbols): Compare the requested domain with the
4931 symbol's domain directly.
4932 * symtab.h (symbol_matches_domain): Remove.
4933
4934 2014-06-06 Doug Evans <xdje42@gmail.com>
4935
4936 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4937 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4938 (gdbscm_guile_version_is_at_least): Declare.
4939 (gdbscm_scm_string_to_int): Declare.
4940 * guile/guile.c (gdbscm_guile_major_version): New global.
4941 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4942 (guile_datadir): New static global.
4943 (gdbscm_guile_data_directory): New function.
4944 (initialize_scheme_side): Update.
4945 (misc_guile_functions): Add guile-data-directory.
4946 (initialize_gdb_module): Fetch guile version number.
4947 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4948 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4949 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4950 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4951 comments.
4952 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4953 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4954 * guile/scm-value.c (gdbscm_value_to_string): Only call
4955 scm_port_conversion_strategy if Guile version >= 2.0.6.
4956
4957 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4958
4959 * main.c (print_gdb_help): Add -q and --silent.
4960
4961 2014-06-06 Gary Benson <gbenson@redhat.com>
4962
4963 * common/signals.c: Remove preprocessor conditionals for
4964 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4965 SIGSEGV and SIGTERM.
4966 * proc-events.c: Likewise.
4967
4968 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4969
4970 * symfile.c (symfile_free_objfile): Remove restriction to
4971 OBJF_USERLOADED.
4972 * symfile-mem.c (symbol_file_add_from_memory): Call
4973 add_target_sections_of_objfile.
4974
4975 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4976
4977 * guile/scm-value.c (gdbscm_history_append_x): Use
4978 'vlscm_get_value_smob_arg_unsafe' instead of
4979 'vlscm_scm_to_value'.
4980
4981 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4982
4983 PR mi/15806
4984 * utils.c (printchar): Don't escape at all if quoter is NUL.
4985 Update function documentation to clarify effect of parameter
4986 QUOTER.
4987 * remote.c (escape_buffer): Pass '\\' as the quoter to
4988 fputstrn_unfiltered.
4989 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4990 generate the output.
4991 (mi_solib_unloaded): Same.
4992
4993 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4994
4995 * development.sh: Delete.
4996 * Makefile.in (config.status): Adjust dependency on development.sh.
4997 * configure.ac: Adjust development.sh source call.
4998 * configure: Regenerate.
4999
5000 2014-06-04 Doug Evans <xdje42@gmail.com>
5001
5002 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5003 is_scheme_bkpt, spec.
5004 (bpscm_make_breakpoint_smob): Initialize new members.
5005 (gdbscm_create_breakpoint_x): Split into two ...
5006 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5007 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5008 (scheme_function breakpoint_functions): Update.
5009 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5010 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5011 register-breakpoint!.
5012
5013 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5014
5015 PR server/17023
5016 * mem-break.c (z_type_supported): Return zero if
5017 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5018
5019 2014-06-04 Tom Tromey <tromey@redhat.com>
5020
5021 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5022 value_from_contents_and_address_unresolved.
5023 (ada_template_to_fixed_record_type_1): Likewise.
5024 (ada_which_variant_applies): Likewise.
5025 * value.h (value_from_contents_and_address_unresolved): Declare.
5026 * value.c (value_from_contents_and_address_unresolved): New
5027 function.
5028 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5029 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5030 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5031
5032 2014-06-04 Tom Tromey <tromey@redhat.com>
5033
5034 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5035
5036 2014-06-04 Tom Tromey <tromey@redhat.com>
5037
5038 * procfs.c (procfs_attach): Make "args" const.
5039 * windows-nat.c (windows_attach): Make "args" const.
5040 * nto-procfs.c (procfs_attach): Make "args" const.
5041 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5042 * go32-nat.c (go32_attach): Make "args" const.
5043 * gnu-nat.c (gnu_attach): Make "args" const.
5044 * darwin-nat.c (darwin_attach): Make "args" const.
5045 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5046 * linux-nat.c (linux_nat_attach): Make "args" const.
5047 * remote.c (extended_remote_attach_1, extended_remote_attach):
5048 Make "args" const.
5049 * target.h (struct target_ops) <to_attach>: Make "args" const.
5050 (find_default_attach): Likewise.
5051 * utils.c (parse_pid_to_attach): Make "args" const.
5052 * utils.h (parse_pid_to_attach): Update.
5053
5054 2014-06-04 Tom Tromey <tromey@redhat.com>
5055
5056 * target-delegates.c: Rebuild.
5057 * target.c (default_thread_address_space): New function.
5058 (target_thread_address_space): Simplify.
5059 * target.h (struct target_ops) <to_thread_address_space>: Add
5060 TARGET_DEFAULT_FUNC.
5061
5062 2014-06-04 Doug Evans <xdje42@gmail.com>
5063
5064 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5065
5066 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5067
5068 * record-btrace.c: Include event-loop.h and inf-loop.h.
5069 (record_btrace_resume_exec_dir)
5070 (record_btrace_async_inferior_event_handler)
5071 (record_btrace_handle_async_inferior_event): New.
5072 (record_btrace_open): Create async event handler.
5073 (record_btrace_close): Delete async event handler.
5074 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5075 Mark async event handler.
5076 (record_btrace_execution_direction): New.
5077 (init_record_btrace_ops): Initialize to_execution_direction.
5078
5079 2014-06-03 Doug Evans <xdje42@gmail.com>
5080
5081 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5082 (gdbscm_make_parameter): Ditto.
5083
5084 2014-06-03 Doug Evans <dje@google.com>
5085
5086 * exec.c (exec_close_1): Call clear_section_table instead of
5087 resize_section_table.
5088 (clear_section_table): New function.
5089 (resize_section_table): Make static. Rename arg num_added to
5090 adjustment.
5091 * exec.h (clear_section_table): Declare.
5092 (resize_section_table): Delete.
5093 * progspace.c (release_program_space): Call clear_section_table
5094 instead of resize_section_table.
5095
5096 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5097
5098 * NEWS (Python Scripting): Add entry about the new xmethods
5099 feature.
5100
5101 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5102
5103 * python/py-xmethods.c: New file.
5104 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5105 (objfpy_dealloc): XDECREF on the new xmethods field.
5106 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5107 field.
5108 (objfpy_get_xmethods): New function.
5109 (objfile_getset): New entry 'xmethods'.
5110 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5111 (pspy_dealloc): XDECREF on the new xmethods field.
5112 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5113 field.
5114 (pspy_get_xmethods): New function.
5115 (pspace_getset): New entry 'xmethods'.
5116 * python/python-internal.h: Add declarations for new functions.
5117 * python/python.c (_initialize_python): Invoke
5118 gdbpy_initialize_xmethods.
5119 * python/lib/gdb/__init__.py (xmethods): New
5120 attribute.
5121 * python/lib/gdb/xmethod.py: New file.
5122 * python/lib/gdb/command/xmethods.py: New file.
5123
5124 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5125
5126 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5127 best match method returned by find_overload_match is an xmethod.
5128 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5129 the best matching operator returned by find_overload_match is an
5130 xmethod.
5131 * valops.c: #include "extension.h".
5132 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5133 Return void. The list of matching source methods is returned in
5134 "fn_list" and a vector of matching debug method workers is
5135 returned in "xm_worker_vec". Update all callers.
5136 (value_find_oload_method_list): Likewise.
5137 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5138 non-NULL, then the index of the best matching method in this
5139 vector is returned. Update all callers.
5140 (find_overload_match): Include xmethods while performing overload
5141 resolution.
5142
5143 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5144
5145 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5146 * extension-priv.h (struct extension_language_ops): Add the
5147 xmethod interface.
5148 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5149 get_matching_xmethod_workers, get_xmethod_argtypes,
5150 invoke_xmethod, free_xmethod_worker,
5151 free_xmethod_worker_vec): New functions.
5152 * extension.h: #include "common/vec.h".
5153 New function declarations.
5154 (struct xmethod_worker): New struct.
5155 (VEC (xmethod_worker_ptr)): New vector type.
5156 (xmethod_worker_ptr): New typedef.
5157 (xmethod_worker_vec): Likewise.
5158 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5159 builtin_type.
5160 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5161 (struct builtin_type): New field "xmethod".
5162 * valarith.c (value_ptradd): Assert that the value argument is not
5163 lval_xcallable.
5164 * valops.c (value_must_coerce_to_target): Return 0 for
5165 lval_xcallable values.
5166 * value.c (struct value): New field XM_WORKER in the field
5167 LOCATION.
5168 (value_address, value_raw_address): Return 0 for lval_xcallable
5169 values.
5170 (set_value_address): Assert that the value is not an
5171 lval_xcallable.
5172 (value_free): Free the associated xmethod worker when freeing
5173 lval_xcallable values.
5174 (set_value_component_location): Assert that the WHOLE value is not
5175 lval_xcallable.
5176 (value_of_xmethod, call_xmethod): New functions.
5177 * value.h: Declare "struct xmethod_worker".
5178 Declare new functions value_of_xmethod, call_xmethod.
5179
5180 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5181 Pedro Alves <palves@redhat.com>
5182
5183 PR breakpoints/17000
5184 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5185 New function, extracted from software_breakpoint_inserted_here_p.
5186 (software_breakpoint_inserted_here_p): Replace factored out code
5187 by call to find_non_raw_software_breakpoint_inserted_here.
5188 (bp_target_info_copy_insertion_state): New function.
5189 (bkpt_insert_location): Handle the case of a single-step
5190 breakpoint already inserted at the same address.
5191 (bkpt_remove_location): Handle the case of a single-step
5192 breakpoint still inserted at the same address.
5193 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5194 breakpoint already inserted at the same address.
5195 (deprecated_remove_raw_breakpoint): Handle the case of a
5196 non-raw breakpoint still inserted at the same address.
5197 (find_single_step_breakpoint): New function, extracted from
5198 single_step_breakpoint_inserted_here_p.
5199 (find_single_step_breakpoint): New function,
5200 factored out from single_step_breakpoint_inserted_here_p.
5201 (single_step_breakpoint_inserted_here_p): Reimplement.
5202
5203 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5204
5205 Pushed by Joel Brobecker <brobecker@adacore.com>
5206 * source.c (show_substitute_path_command): Fix display of matching
5207 substitution rules.
5208
5209 2014-06-03 Gary Benson <gbenson@redhat.com>
5210
5211 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5212
5213 2014-06-02 Doug Evans <xdje42@gmail.com>
5214
5215 Add parameter support for Guile.
5216 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5217 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5218 (scm-param.o): New rule.
5219 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5220 (gdbscm_misc_error): Declare.
5221 (gdbscm_canonicalize_command_name): Declare.
5222 (gdbscm_scm_to_host_string): Declare.
5223 (gdbscm_scm_from_host_string): Declare.
5224 (gdbscm_initialize_parameters): Declare.
5225 * guile/guile.c (initialize_gdb_module): Call
5226 gdbscm_initialize_parameters.
5227 * guile/lib/gdb.scm: Export parameter symbols.
5228 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5229 cmdscm_canonicalize_name and made public. All callers updated.
5230 * guile/scm-exception.c (gdbscm_misc_error): New function.
5231 * guile/scm-param.c: New file.
5232 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5233 (gdbscm_scm_to_host_string): New function.
5234 (gdbscm_scm_from_host_string): New function.
5235 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5236
5237 2014-06-02 Doug Evans <xdje42@gmail.com>
5238
5239 Add command support for Guile.
5240 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5241 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5242 (scm-cmd.o): New rule.
5243 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5244 (gdbscm_user_error_p): Declare.
5245 (gdbscm_parse_command_name): Declare.
5246 (gdbscm_valid_command_class_p): Declare.
5247 (gdbscm_initialize_commands): Declare.
5248 * guile/guile.c (initialize_gdb_module): Call
5249 gdbscm_initialize_commands.
5250 * guile/lib/gdb.scm: Export command symbols.
5251 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5252 (throw-user-error): New function.
5253 * guile/scm-cmd.c: New file.
5254 * guile/scm-exception.c (user_error_symbol): New static global.
5255 (gdbscm_user_error_p): New function.
5256 (gdbscm_initialize_exceptions): Set user_error_symbol.
5257 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5258
5259 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5260
5261 * top.c (command_loop): Handle comments here...
5262 (command_line_input): ... not here.
5263
5264 2014-06-02 Doug Evans <xdje42@gmail.com>
5265
5266 Add progspace support for Guile.
5267 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5268 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5269 (scm-progspace.o): New rule.
5270 * guile/guile-internal.h (pspace_smob): New typedef.
5271 (psscm_pspace_smob_pretty_printers): Declare.
5272 (psscm_pspace_smob_from_pspace): Declare.
5273 (psscm_scm_from_pspace): Declare.
5274 * guile/guile.c (initialize_gdb_module): Call
5275 gdbscm_initialize_pspaces.
5276 * guile/lib/gdb.scm: Export progspace symbols.
5277 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5278 support.
5279 (append-pretty-printer!): Ditto.
5280 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5281 Implement.
5282 * guile/scm-progspace.c: New file.
5283
5284 2014-06-03 Alan Modra <amodra@gmail.com>
5285
5286 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5287 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5288
5289 2014-06-02 Doug Evans <dje@google.com>
5290
5291 Add support for skeletonless type units.
5292 * dwarf2read.c (struct dwarf2_per_objfile): New member
5293 n_allocated_type_units.
5294 (struct dwarf2_per_objfile) <tu_stats>: New member
5295 nr_all_type_units_reallocs.
5296 (create_signatured_type_table_from_index): Initialize
5297 n_allocated_type_units
5298 (create_all_type_units): Ditto.
5299 (add_type_unit): Move up in file. New arg slot.
5300 All callers updated. Increase space for all_type_units more
5301 efficiently.
5302 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5303 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5304 (lookup_dwp_signatured_type): Ditto.
5305 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5306 All callers updated.
5307 (build_type_psymtabs_1): Leave type_unit_groups as
5308 NULL if no TUs present.
5309 (print_tu_stats): New function.
5310 (process_skeletonless_type_unit): New function.
5311 (process_dwo_file_for_skeletonless_type_units): New
5312 function.
5313 (process_skeletonless_type_units): New function.
5314 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5315 Call print tu_stats if debugging enabled.
5316
5317 2014-06-02 Pedro Alves <palves@redhat.com>
5318
5319 * breakpoint.c (build_target_command_list): Don't build a command
5320 list if we have any duplicate location that isn't a dprintf.
5321
5322 2014-06-02 Pedro Alves <palves@redhat.com>
5323
5324 * breakpoint.c (dprintf_breakpoint_hit): New function.
5325 (initialize_breakpoint_ops): Install it as dprintf's
5326 breakpoint_hit method.
5327
5328 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5329
5330 * source.c (substitute_path_rule_matches): Simplify using
5331 filename_ncmp instead of FILENAME_CMP.
5332
5333 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5334
5335 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5336
5337 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5338
5339 * configure.ac: When Guile is available, check for the
5340 availability of 'scm_new_smob'.
5341 * configure, config.h.in: Regenerate.
5342 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5343 function.
5344
5345 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5346
5347 * frame.c (struct frame_info): Add stop_string field.
5348 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5349 (get_prev_frame_always): Old content moved into
5350 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5351 TRY_CATCH, handle MEMORY_ERROR exceptions.
5352 (frame_stop_reason_string): New function definition.
5353 * frame.h (unwind_stop_reason_to_string): Extend comment to
5354 mention frame_stop_reason_string.
5355 (frame_stop_reason_string): New function declaration.
5356 * stack.c (frame_info): Switch to frame_stop_reason_string.
5357 (backtrace_command_1): Switch to frame_stop_reason_string.
5358 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5359 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5360 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5361
5362 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5363
5364 * frame.c (frame_stop_reason_string): Rename to ...
5365 (unwind_stop_reason_to_string): this.
5366 * frame.h (frame_stop_reason_string): Rename to ...
5367 (unwind_stop_reason_to_string): this.
5368 * stack.c (frame_info): Update call to frame_stop_reason_string.
5369 (backtrace_command_1): Likewise.
5370 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5371 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5372
5373 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5374
5375 * frame.c (remove_prev_frame): New function.
5376 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5377 remove_prev_frame.
5378
5379 2014-05-29 Pedro Alves <palves@redhat.com>
5380
5381 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5382 and make it const. When a single-step decays to a continue,
5383 clear 'step', not 'hw_step'. Pass whether the caller wanted
5384 to step to user_visible_resume_ptid, not what we ask the
5385 target to do.
5386
5387 2014-05-29 Pedro Alves <palves@redhat.com>
5388
5389 * infrun.c (process_event_stop_test, handle_step_into_function)
5390 (handle_step_into_function_backward): Adjust.
5391 Don't set the even thread's stop_step and call stop_waiting before
5392 calling end_stepping_range. Instead do that ...
5393 (end_stepping_range): ... here. Take an ecs pointer parameter.
5394
5395 2014-05-29 Pedro Alves <palves@redhat.com>
5396
5397 * infrun.c (stop_stepping): Rename to ...
5398 (stop_waiting): ... this.
5399 (proceed): Update comment.
5400 (process_event_stop_test, handle_inferior_event)
5401 (handle_signal_stop, handle_step_into_function)
5402 (handle_step_into_function_backward): Update.
5403
5404 2014-05-29 Pedro Alves <palves@redhat.com>
5405
5406 * infcall.c (run_inferior_call): Don't check whether the current
5407 thread is running after the proceed call.
5408
5409 2014-05-29 Pedro Alves <palves@redhat.com>
5410 Tom Tromey <tromey@redhat.com>
5411
5412 * NEWS: Mention "maint set target-async", "set mi-async", and that
5413 background execution commands are now always available.
5414 * target.h (target_async_permitted): Update comment.
5415 * target.c (target_async_permitted, target_async_permitted_1):
5416 Default to 1.
5417 (set_target_async_command): Rename to ...
5418 (maint_set_target_async_command): ... this.
5419 (show_target_async_command): Rename to ...
5420 (maint_show_target_async_command): ... this.
5421 (_initialize_target): Adjust.
5422 * infcmd.c (prepare_execution_command): Make extern.
5423 * inferior.h (prepare_execution_command): Declare.
5424 * infrun.c (set_observer_mode): Leave target async alone.
5425 * mi/mi-interp.c (mi_interpreter_init): Install
5426 mi_on_sync_execution_done as sync_execution_done observer.
5427 (mi_on_sync_execution_done): New function.
5428 (mi_execute_command_input_handler): Don't print the prompt if we
5429 just started a synchronous command with an async target.
5430 (mi_on_resume): Check sync_execution before printing prompt.
5431 * mi/mi-main.h (mi_async_p): Declare.
5432 * mi/mi-main.c: Include gdbcmd.h.
5433 (mi_async_p): New function.
5434 (mi_async, mi_async_1): New globals.
5435 (set_mi_async_command, show_mi_async_command, mi_async): New
5436 functions.
5437 (exec_continue): Call prepare_execution_command.
5438 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5439 (mi_execute_async_cli_command): Use mi_async_p.
5440 (_initialize_mi_main): Install "set mi-async". Make
5441 "target-async" a deprecated alias.
5442
5443 2014-05-29 Pedro Alves <palves@redhat.com>
5444
5445 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5446 (_initialize_cli_interp): Adjust.
5447 * event-loop.c: Include "observer.h".
5448 (start_event_loop): Notify 'command_error' observers instead of
5449 calling display_gdb_prompt. Remove FIXME comment.
5450 * event-top.c (display_gdb_prompt): Remove call into the
5451 interpreters.
5452 * inf-loop.c: Include "observer.h".
5453 (inferior_event_handler): Notify 'command_error' observers instead
5454 of calling display_gdb_prompt.
5455 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5456 observers instead of calling display_gdb_prompt.
5457 * interps.c (interp_set): Don't call display_gdb_prompt.
5458 (current_interp_display_prompt_p): Delete.
5459 * interps.h (interp_prompt_p): Delete declaration.
5460 (interp_prompt_p_ftype): Delete.
5461 (struct interp_procs) <prompt_proc_p>: Delete field.
5462 (current_interp_display_prompt_p): Delete declaration.
5463 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5464 (_initialize_mi_interp): Adjust.
5465 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5466 'command_error' observers.
5467 (tui_on_sync_execution_done, tui_on_command_error): New
5468 functions.
5469 (tui_display_prompt_p): Delete.
5470 (_initialize_tui_interp): Adjust.
5471
5472 2014-05-29 Pedro Alves <palves@redhat.com>
5473
5474 PR gdb/13860
5475 * cli/cli-interp.c: Include infrun.h and observer.h.
5476 (cli_uiout, cli_interp): New globals.
5477 (cli_on_signal_received, cli_on_end_stepping_range)
5478 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5479 functions.
5480 (cli_interpreter_init): Install them as 'end_stepping_range',
5481 'signal_received' 'signal_exited', 'exited' and 'no_history'
5482 observers.
5483 (_initialize_cli_interp): Remove cli_interp local.
5484 * infrun.c (handle_inferior_event): Call the several stop reason
5485 observers instead of printing the stop reason directly.
5486 (end_stepping_range): New function.
5487 (print_end_stepping_range_reason, print_signal_exited_reason)
5488 (print_exited_reason, print_signal_received_reason)
5489 (print_no_history_reason): Make static, and add an uiout
5490 parameter. Print to that instead of to CURRENT_UIOUT.
5491 * infrun.h (print_end_stepping_range_reason)
5492 (print_signal_exited_reason, print_exited_reason)
5493 (print_signal_received_reason print_no_history_reason): New
5494 declarations.
5495 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5496 'mi_uiout'.
5497 <cli_uiout>: New field.
5498 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5499 uiout for CLI output. Install 'signal_received',
5500 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5501 observers.
5502 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5503 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5504 (mi_on_no_history): New functions.
5505 (ui_out_free_cleanup): Delete function.
5506 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5507 instead use the one already stored in the MI interpreter data.
5508 (mi_ui_out): Adjust.
5509 * tui/tui-interp.c: Include infrun.h and observer.h.
5510 (tui_interp): New global.
5511 (tui_on_signal_received, tui_on_end_stepping_range)
5512 (tui_on_signal_exited, tui_on_exited)
5513 (tui_on_no_history): New functions.
5514 (tui_init): Install them as 'end_stepping_range',
5515 'signal_received' 'signal_exited', 'exited' and 'no_history'
5516 observers.
5517 (_initialize_tui_interp): Delete tui_interp local.
5518
5519 2014-05-29 Pedro Alves <palves@redhat.com>
5520
5521 PR gdb/15713
5522 * linux-nat.c (linux_nat_resume_callback): Rename the second
5523 parameter to 'except'. Skip LP if it points to EXCEPT.
5524 (linux_nat_resume): Don't mark the event lwp as not stopped
5525 before resuming sibling lwps. Instead ask
5526 linux_nat_resume_callback to skip the event lwp. Mark it as not
5527 stopped after actually resuming it.
5528 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5529 resuming it.
5530 (wait_lwp): Mark the lwp as stopped here.
5531 (stop_wait_callback): Mark the lwp as not stopped right after
5532 resuming it. Don't mark lwps as stopped here.
5533 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5534 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5535
5536 2014-05-29 Pedro Alves <palves@redhat.com>
5537
5538 PR PR15693
5539 * infrun.c (resume): Determine how much to resume depending on
5540 whether the caller wanted a step, not whether we can hardware step
5541 the target. Mark all threads that we intend to run as running,
5542 unless we're calling an inferior function.
5543 (normal_stop): If the thread is running an infcall, don't finish
5544 thread state.
5545 * target.c (target_resume): Don't mark threads as running here.
5546
5547 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5548
5549 * serial.c (_initialize_serial): Remove support for
5550 the "set remotebaud" and "show remotebaud" commands.
5551 * NEWS: Add entry documenting the removal of that command.
5552
5553 2014-05-28 Yao Qi <yao@codesourcery.com>
5554
5555 * charset.c: Fix typo in comments.
5556
5557 2014-05-27 Gary Benson <gbenson@redhat.com>
5558
5559 * utils.c (internal_vproblem): Prompt for a bug report.
5560
5561 2014-05-26 Andy Wingo <wingo@igalia.com>
5562
5563 * guile/scm-arch.c (arscm_mark_arch_smob):
5564 * guile/scm-block.c (bkscm_mark_block_smob)
5565 (bkscm_mark_block_syms_progress_smob):
5566 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5567 * guile/scm-exception.c (exscm_mark_exception_smob):
5568 * guile/scm-frame.c (frscm_mark_frame_smob):
5569 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5570 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5571 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5572 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5573 (ppscm_mark_pretty_printer_worker_smob):
5574 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5575 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5576 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5577 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5578 mark functions.
5579 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5580 function.
5581
5582 2014-05-26 Andy Wingo <wingo@igalia.com>
5583 Doug Evans <xdje42@gmail.com>
5584
5585 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5586 empty_base_class. All uses updated.
5587 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5588 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5589 Adapt all callers.
5590 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5591 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5592 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5593 (gdbscm_gsmob_has_property_p, add_property_name)
5594 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5595 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5596 (gdb-object-has-property?, gdb-object-properties): Remove.
5597 (gdb-object-kind): Renamed from gsmob-kind.
5598
5599 2014-05-26 Andy Wingo <wingo@igalia.com>
5600
5601 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5602 * configure: Regenerate.
5603
5604 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5605
5606 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5607
5608 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5609
5610 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5611 (replay_memory_access_read_only, replay_memory_access_read_write)
5612 (replay_memory_access_types, replay_memory_access)
5613 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5614 (cmd_set_record_btrace, cmd_show_record_btrace)
5615 (cmd_show_replay_memory_access): New.
5616 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5617 (record_btrace_remove_breakpoint): Replace
5618 record_btrace_allow_memory_access with replay_memory_access.
5619 (_initialize_record_btrace): Add commands.
5620 * NEWS: Announce it.
5621
5622 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5623
5624 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5625
5626 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5627
5628 * MAINTAINERS (Write After Approval): Move self back from
5629 paper trail.
5630
5631 2014-05-22 Pedro Alves <palves@redhat.com>
5632
5633 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5634 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5635 (disable_randomization, enum exec_direction_kind)
5636 (execution_direction, stop_registers, start_remote)
5637 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5638 (wait_for_inferior, normal_stop, get_last_target_status)
5639 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5640 (insert_step_resume_breakpoint_at_sal)
5641 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5642 (set_step_info, print_stop_event, signal_stop_state)
5643 (signal_print_state, signal_pass_state, signal_stop_update)
5644 (signal_print_update, signal_pass_update)
5645 (update_signals_program_target, clear_exit_convenience_vars)
5646 (displaced_step_dump_bytes, update_observer_mode)
5647 (signal_catch_update, gdb_signal_from_command): Move
5648 declarations ...
5649 * infrun.h: ... to this new file.
5650 * amd64-tdep.c: Include infrun.h.
5651 * annotate.c: Include infrun.h.
5652 * arch-utils.c: Include infrun.h.
5653 * arm-linux-tdep.c: Include infrun.h.
5654 * arm-tdep.c: Include infrun.h.
5655 * break-catch-sig.c: Include infrun.h.
5656 * breakpoint.c: Include infrun.h.
5657 * common/agent.c: Include infrun.h instead of inferior.h.
5658 * corelow.c: Include infrun.h.
5659 * event-top.c: Include infrun.h.
5660 * go32-nat.c: Include infrun.h.
5661 * i386-tdep.c: Include infrun.h.
5662 * inf-loop.c: Include infrun.h.
5663 * infcall.c: Include infrun.h.
5664 * infcmd.c: Include infrun.h.
5665 * infrun.c: Include infrun.h.
5666 * linux-fork.c: Include infrun.h.
5667 * linux-nat.c: Include infrun.h.
5668 * linux-thread-db.c: Include infrun.h.
5669 * monitor.c: Include infrun.h.
5670 * nto-tdep.c: Include infrun.h.
5671 * procfs.c: Include infrun.h.
5672 * record-btrace.c: Include infrun.h.
5673 * record-full.c: Include infrun.h.
5674 * remote-m32r-sdi.c: Include infrun.h.
5675 * remote-mips.c: Include infrun.h.
5676 * remote-notif.c: Include infrun.h.
5677 * remote-sim.c: Include infrun.h.
5678 * remote.c: Include infrun.h.
5679 * reverse.c: Include infrun.h.
5680 * rs6000-tdep.c: Include infrun.h.
5681 * s390-linux-tdep.c: Include infrun.h.
5682 * solib-irix.c: Include infrun.h.
5683 * solib-osf.c: Include infrun.h.
5684 * solib-svr4.c: Include infrun.h.
5685 * target.c: Include infrun.h.
5686 * top.c: Include infrun.h.
5687 * windows-nat.c: Include infrun.h.
5688 * mi/mi-interp.c: Include infrun.h.
5689 * mi/mi-main.c: Include infrun.h.
5690 * python/py-threadevent.c: Include infrun.h.
5691
5692 2014-05-22 Pedro Alves <palves@redhat.com>
5693
5694 * infrun.c (handle_inferior_event): Store the exit code for
5695 --return-child-result here, instead of ...
5696 (print_exited_reason): ... here.
5697
5698 2014-05-21 Pedro Alves <palves@redhat.com>
5699
5700 PR gdb/13860
5701 * gdbthread.h (struct thread_control_state): New field
5702 `command_interp'.
5703 * infrun.c (follow_fork): Copy the new thread control field to the
5704 child fork thread.
5705 (clear_proceed_status_thread): Clear the new thread control field.
5706 (proceed): Set the new thread control field.
5707 * interps.h (command_interp): Declare.
5708 * interps.c (command_interpreter): New global.
5709 (command_interp): New function.
5710 (interp_exec): Set `command_interpreter' while here.
5711 * cli-out.c (cli_uiout_dtor): New function.
5712 (cli_ui_out_impl): Install it.
5713 * mi/mi-interp.c: Include cli-out.h.
5714 (mi_cmd_interpreter_exec): Add comment.
5715 (restore_current_uiout_cleanup): New function.
5716 (ui_out_free_cleanup): New function.
5717 (mi_on_normal_stop): If finishing an execution command started by
5718 a CLI command, or any kind of breakpoint-like event triggered,
5719 print the stop event to the output (CLI) stream.
5720 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5721
5722 2014-05-21 Pedro Alves <palves@redhat.com>
5723
5724 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5725 current source line having changed.
5726 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5727 * infrun.c (normal_stop): Adjust call to
5728 set_current_sal_from_frame.
5729 * source.c (clear_lines_listed_range): New function.
5730 (set_current_source_symtab_and_line, identify_source_line): Clear
5731 the lines listed range.
5732 (line_info): Handle the first "info line" after the current source
5733 line having changed.
5734 * stack.c (print_stack_frame): Remove center handling.
5735 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5736 center sal.line.
5737
5738 2014-05-21 Pedro Alves <palves@redhat.com>
5739
5740 * inf-child.c (inf_child_mourn_inferior): New function.
5741 * inf-child.h (inf_child_mourn_inferior): New declaration.
5742 * darwin-nat.c (darwin_mourn_inferior): Use
5743 inf_child_mourn_inferior.
5744 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5745 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5746 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5747 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5748 * windows-nat.c (windows_mourn_inferior): Likewise.
5749
5750 2014-05-21 Doug Evans <xdje42@gmail.com>
5751
5752 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5753
5754 2014-05-21 Doug Evans <xdje42@gmail.com>
5755
5756 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5757 (gdbscm_out_of_range_error): Ditto.
5758 (gdbscm_memory_error): Ditto.
5759 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5760 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5761 (gdbscm_out_of_range_error): Update.
5762 (gdbscm_memory_error): Update.
5763 (gdbscm_scm_to_target_string_unsafe): Delete.
5764
5765 2014-05-21 Pedro Alves <palves@redhat.com>
5766
5767 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5768 globals.
5769 (inf_child_open_target): New function.
5770 (inf_child_open): Use inf_child_open_target to push the target
5771 instead of erroring out.
5772 (inf_child_disconnect, inf_child_close)
5773 (inf_child_maybe_unpush_target): New functions.
5774 (inf_child_target): Install inf_child_disconnect and
5775 inf_child_close. Store a pointer to the returned object.
5776 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5777 declarations.
5778 * target.c (auto_connect_native_target): New global.
5779 (show_default_run_target): New function.
5780 (find_default_run_target): Return NULL if automatically connecting
5781 to the native target is disabled.
5782 (_initialize_target): Install set/show auto-connect-native-target.
5783 * NEWS: Mention "set auto-connect-native-target", and "target
5784 native".
5785 * linux-nat.c (super_close): New global.
5786 (linux_nat_close): Call super_close.
5787 (linux_nat_add_target): Store a pointer to the base class's
5788 to_close method.
5789 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5790 inf_child_maybe_unpush.
5791 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5792 already pushed.
5793 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5794 the inferior. Use inf_child_maybe_unpush_target.
5795 (inf_ttrace_attach): Don't push the target if it is already
5796 pushed.
5797 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5798 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5799 after mourning the inferior. Use inf_child_maybe_unpush_target.
5800 (darwin_attach_pid): Don't push the target if it is already
5801 pushed.
5802 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5803 mourning the inferior. Use inf_child_maybe_unpush_target.
5804 (gnu_detach): Use inf_child_maybe_unpush_target.
5805 * go32-nat.c (go32_create_inferior): Don't push the target if it
5806 is already pushed.
5807 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5808 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5809 (procfs_open): Rename to ...
5810 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5811 comments. Can target_preopen before changing node. Call
5812 inf_child_open_target to push the target explicitly.
5813 (procfs_attach): Don't push the target if it is already pushed.
5814 (procfs_detach): Use inf_child_maybe_unpush_target.
5815 (procfs_create_inferior): Don't push the target if it is already
5816 pushed.
5817 (nto_native_ops): New global.
5818 (procfs_open): Reimplement.
5819 (procfs_native_open): New function.
5820 (init_procfs_targets): Install procfs_native_open as to_open of
5821 "target native". Store a pointer to the "native" target in
5822 nto_native_ops.
5823 * procfs.c (procfs_attach): Don't push the target if it is already
5824 pushed.
5825 (procfs_detach): Use inf_child_maybe_unpush_target.
5826 (procfs_mourn_inferior): Only unpush the target after mourning the
5827 inferior. Use inf_child_maybe_unpush_target.
5828 (procfs_init_inferior): Don't push the target if it is already
5829 pushed.
5830 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5831 if it is already pushed.
5832
5833 2014-05-21 Pedro Alves <palves@redhat.com>
5834
5835 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5836 and "procfs" targets are now called "native" instead.
5837
5838 2014-05-21 Pedro Alves <palves@redhat.com>
5839
5840 * go32-nat.c (go32_open): Delete.
5841 (go32_target): Don't override the to_open method.
5842
5843 2014-05-21 Pedro Alves <palves@redhat.com>
5844
5845 * nto-procfs.c (procfs_can_run): New function.
5846 (nto_procfs_ops): New global.
5847 (init_procfs_targets): New, based on procfs_target. Install
5848 "target native" in addition to "target procfs".
5849 (_initialize_procfs): Call init_procfs_targets instead of adding
5850 the target here.
5851
5852 2014-05-21 Pedro Alves <palves@redhat.com>
5853
5854 * windows-nat.c (windows_target): Don't override to_shortname,
5855 to_longname or to_doc.
5856
5857 2014-05-21 Pedro Alves <palves@redhat.com>
5858
5859 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5860 to_doc.
5861
5862 2014-05-21 Pedro Alves <palves@redhat.com>
5863
5864 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5865 to_shortname, to_longname or to_doc.
5866
5867 2014-05-21 Pedro Alves <palves@redhat.com>
5868
5869 * go32-nat.c (go32_target): Don't override to_shortname,
5870 to_longname or to_doc.
5871
5872 2014-05-21 Pedro Alves <palves@redhat.com>
5873
5874 * inf-child.c (inf_child_open): Remove mention of "child".
5875 (inf_child_target): Rename target to "native" instead of "child".
5876
5877 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5878
5879 * Makefile.in (SFILES): Delete "regset.c".
5880 (COMMON_OBS): Delete "regset.o".
5881 * regset.c: Remove.
5882 * regset.h (regset_alloc): Delete prototype.
5883
5884 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5885
5886 * sparc-linux-tdep.c (sparc32_linux_gregset)
5887 (sparc32_linux_fpregset): New static regset structures.
5888 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5889 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5890 'fpregset' fields.
5891 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5892 (sparc64_linux_fpregset): New static regset structures.
5893 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5894 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5895 New static regset structures.
5896 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5897 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5898 New static regset structures.
5899 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5900 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5901 New static regset structures.
5902 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5903 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5904 New static regset structures.
5905 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5906
5907 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5908
5909 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5910 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5911 register maps ("regmaps") from "*regset" to "*regmap". Do this
5912 for all regmap types and variables.
5913 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5914 (sparc32_linux_supply_core_gregset)
5915 (sparc32_linux_collect_core_gregset)
5916 (sparc32_linux_supply_core_fpregset)
5917 (sparc32_linux_collect_core_fpregset): Likewise.
5918 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5919 (sparc_gregmap, sparc_fpregmap): ... these.
5920 (sparc_supply_gregset, sparc_collect_gregset)
5921 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5922 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5923 (_initialize_sparc_nat): Rename regmaps.
5924 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5925 (sparc_gregmap, sparc_fpregmap): ... these.
5926 (sparc_supply_gregset, sparc_collect_gregset)
5927 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5928 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5929 Rename macros to...
5930 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5931 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5932 Likewise.
5933 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5934 Rename to...
5935 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5936 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5937 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5938 regmaps.
5939 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5940 (sparc32_bsd_fpregset): Rename to...
5941 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5942 (sparc32_bsd_fpregmap): ... these.
5943 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5944 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5945 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5946 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5947 (struct sparc_gregmap, struct sparc_fpregmap)
5948 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5949 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5950 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5951 (sparc32_supply_regset, sparc32_collect_gregset)
5952 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5953 prototypes.
5954 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5955 (sparc64_linux_ptrace_gregmap): ... this.
5956 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5957 (_initialize_sparc64_linux_nat): Rename regmaps.
5958 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5959 (sparc64_linux_core_gregmap): ... this.
5960 (sparc64_linux_supply_core_gregset)
5961 (sparc64_linux_collect_core_gregset)
5962 (sparc64_linux_supply_core_fpregset)
5963 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5964 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5965 (sparc64_sol2_fpregset): Rename to...
5966 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5967 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5968 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5969 regmaps.
5970 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5971 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5972 (sparc64_bsd_fpregset): Rename to...
5973 (struct sparc_gregmap, sparc64_sol2_gregmap)
5974 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5975 (sparc64_bsd_fpregmap): ... these.
5976 (sparc64_supply_gregset, sparc64_collect_gregset)
5977 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5978 prototypes.
5979 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5980 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5981 (sparc64fbsd_gregmap): ... this.
5982 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5983 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5984 Rename regmaps.
5985 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5986 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5987 (sparc64nbsd_collect_fpregset): Likewise.
5988 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5989 (sparc64nbsd_gregmap): ... this.
5990 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5991 regmaps.
5992 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5993 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5994 (sparc64obsd_gregmap): ... this.
5995 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5996 regmaps.
5997 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5998 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5999 (sparc32nbsd_gregmap): ... this.
6000 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6001 regmaps.
6002
6003 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6004
6005 * score-tdep.c (score7_linux_gregset): New static regset
6006 structure.
6007 (score7_linux_regset_from_core_section): Remove dynamic regset
6008 allocation.
6009 (score_gdbarch_init): Drop allocation of tdep structure.
6010 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6011
6012 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6013
6014 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6015 regset structures.
6016 (am33_regset_from_core_section): Remove dynamic regset
6017 allocations.
6018
6019 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6020
6021 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6022 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6023 structures.
6024 (mips_linux_regset_from_core_section): Remove dynamic regset
6025 allocations.
6026 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6027 'gregset64', 'fpregset', and 'fpregset64'.
6028 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6029 deleted tdep fields.
6030
6031 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6032
6033 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6034 regset structures.
6035 (amd64_regset_from_core_section): Remove dynamic regset
6036 allocations.
6037 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6038 structure.
6039 (amd64obsd_regset_from_core_section): Remove dynamic regset
6040 allocation.
6041 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6042 Likewise.
6043 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6044 x86-common regset supply function.
6045 * i386-tdep.c (i386_collect_gregset): Make static.
6046 (i386_gregset): New global regset structure.
6047 (i386_fpregset, i386_xstateregset): New static regset structures.
6048 (i386_regset_from_core_section): Remove dynamic regset
6049 allocations.
6050 (i386_gdbarch_init): Remove initialization of tdep fields
6051 'gregset', 'fpregset', and 'xstateregset'.
6052 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6053 'fpregset', and 'xstateregset'.
6054 (i386_collect_gregset): Remove prototype.
6055 (i386_gregset): New declaration.
6056 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6057 structure.
6058 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6059 allocation.
6060
6061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6062
6063 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6064 (arm_linux_vfpregset): New static regset structures.
6065 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6066 regset structures.
6067 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6068 and 'vfpregset' fields.
6069
6070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6071
6072 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6073 (aarch64_linux_fpregset): New static regset structures.
6074 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6075 of regset structures.
6076 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6077 'fpregset' fields.
6078
6079 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6080
6081 * regset.h (struct regset): Remove gdbarch field.
6082 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6083 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6084 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6085 Likewise.
6086 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6087 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6088 (ppc32_linux_vsxregset): Likewise.
6089 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6090 via the regcache instead of the regset.
6091 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6092 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6093 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6094 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6095 Likewise.
6096
6097 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6098
6099 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6100 Constify structures.
6101 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6102 (alphanbsd_aout_gregset): Likewise.
6103 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6104 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6105 Likewise.
6106 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6107 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6108 Likewise.
6109 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6110 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6111 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6112 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6113 * m88k-tdep.c (m88k_gregset): Likewise.
6114 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6115 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6116 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6117 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6118 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6119 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6120 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6121 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6122 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6123 Likewise.
6124 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6125 * sh-tdep.h (sh_corefile_gregset): Likewise.
6126 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6127 * vax-tdep.c (vax_gregset): Likewise.
6128
6129 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6130
6131 Fix TLS access for -static -pthread.
6132 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6133 (try_thread_db_load_1): Initialize it.
6134 (thread_db_get_thread_local_address): Call it if LM is zero.
6135 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6136 * target.h (struct target_ops) (to_get_thread_local_address): Add
6137 load_module_addr comment.
6138
6139 2014-05-21 Pedro Alves <palves@redhat.com>
6140
6141 * dcache.c (dcache_read_memory_partial): If reading the cache line
6142 fails, fallback to reading just the memory the caller wanted.
6143
6144 2014-05-20 Doug Evans <dje@google.com>
6145
6146 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6147 instead of get_current_arch.
6148
6149 2014-05-20 Pedro Alves <palves@redhat.com>
6150
6151 * NEWS: Mention that compare-sections now works with all targets.
6152
6153 * remote.c (PACKET_qCRC): New enum value.
6154 (remote_verify_memory): Don't send qCRC if the target has no
6155 execution. Use packet_support/packet_ok. If the target doesn't
6156 support the qCRC packet, fallback to a deep memory copy.
6157 (compare_sections_command): Say "target image" instead of "remote
6158 executable".
6159 (_initialize_remote): Add PACKET_qCRC to the list of config
6160 packets that have no associated command. Extend comment.
6161 * target.c (simple_verify_memory, default_verify_memory): New
6162 function.
6163 * target.h (struct target_ops) <to_verify_memory>: Default to
6164 default_verify_memory.
6165 (simple_verify_memory): New declaration.
6166 * target-delegates.c: Regenerate.
6167
6168 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6169
6170 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6171
6172 2014-05-20 Hui Zhu <hui@codesourcery.com>
6173 Yao Qi <yao@codesourcery.com>
6174
6175 PR backtrace/16558
6176 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6177 and change address of sp and pc.
6178
6179 2014-05-19 Tom Tromey <tromey@redhat.com>
6180
6181 * gdbtypes.c (rank_function): Use XNEWVEC.
6182 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6183
6184 2014-05-19 Doug Evans <dje@google.com>
6185
6186 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6187 build_type_unit_groups and moved closer to only caller. Remove
6188 arguments. All references updated. Remove outdated .gdb_index
6189 comment.
6190 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6191 build_type_psymtabs_1.
6192
6193 2014-05-19 Doug Evans <dje@google.com>
6194
6195 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6196 n_type_unit_groups, all_type_unit_groups. All uses removed.
6197 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6198 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6199 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6200 (add_type_unit_group_to_table): Delete.
6201
6202 2014-05-19 Doug Evans <dje@google.com>
6203
6204 * eval.c (evaluate_subexp_standard): Add some comments.
6205
6206 2014-05-17 Doug Evans <xdje42@gmail.com>
6207
6208 * progspace.c (remove_program_space): Delete, unused.
6209 * progspace.h (remove_program_space): Ditto.
6210
6211 2014-05-17 Doug Evans <xdje42@gmail.com>
6212
6213 * inferior.c (prune_inferiors): Fix comment.
6214 (remove_inferior_command): Call prune_program_spaces.
6215
6216 2014-05-16 Doug Evans <dje@google.com>
6217
6218 New command line option -D.
6219 * NEWS: Mention it.
6220 * main.c (set_gdb_data_directory): New function.
6221 (captured_main): Recognize -D. Flag error for --data-directory "".
6222 Call set_gdb_data_directory.
6223 (print_gdb_help): Print --data-directory, -D.
6224 * main.h (set_gdb_data_directory): Declare.
6225 * top.c (staged_gdb_datadir): New static global.
6226 (set_gdb_datadir): Call set_gdb_data_directory
6227 (show_gdb_datadir): New function.
6228 (init_main): Update init of data-directory parameter.
6229
6230 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6231
6232 Import the "dirfd" gnulib module.
6233 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6234 * gnulib/aclocal.m4: Update.
6235 * gnulib/config.in: Update.
6236 * gnulib/configure: Update.
6237 * gnulib/import/Makefile.am: Update.
6238 * gnulib/import/Makefile.in: Update.
6239 * gnulib/import/dirfd.c: New.
6240 * gnulib/import/m4/dirfd.m4: New.
6241 * gnulib/import/m4/gnulib-cache.m4: Update.
6242 * gnulib/import/m4/gnulib-comp.m4: Update.
6243
6244 2014-05-16 Pierre Muller <muller@sourceware.org>
6245 Yao Qi <yao@codesourcery.com>
6246
6247 * valprint.c (print_wchar): Move the code on checking whether
6248 W is a printable wide char to the default branch of switch
6249 statement below. Call wchar_printable instead of gdb_iswprint.
6250
6251 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6252
6253 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6254 ldr.w and ldrd instructions.
6255
6256 2014-05-15 Doug Evans <dje@google.com>
6257
6258 * dwarf2read.c (read_structure_type): Delete outdated comments.
6259
6260 2014-05-14 Tom Tromey <tromey@redhat.com>
6261
6262 * macrocmd.c (print_macro_definition): Reindent.
6263
6264 2014-05-13 Doug Evans <xdje42@gmail.com>
6265
6266 * python/py-cmd.c (cmdpy_completer): Add comment.
6267 (completers): Make const.
6268
6269 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6270
6271 * infrun.c (resume): Remove should_resume (unused). Move up
6272 declaration of resume_ptid.
6273
6274 2014-05-13 Tom Tromey <tromey@redhat.com>
6275
6276 * language.h (unop_type_check): Remove.
6277 (binop_type_check): Don't declare.
6278
6279 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6280
6281 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6282 call to regcache_raw_collect.
6283
6284 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6285
6286 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6287 mi_console->quote as the quoting character.
6288
6289 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6290
6291 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6292
6293 2014-04-29 Tom Tromey <tromey@redhat.com>
6294
6295 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6296 "show debug varobj".
6297
6298 2014-05-07 Kyle McMartin <kyle@redhat.com>
6299
6300 Pushed by Joel Brobecker <brobecker@adacore.com>.
6301 * aarch64-tdep.c (aarch64_software_single_step): New function.
6302 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6303 with aarch64_software_single_step.
6304
6305 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6306
6307 GDB 7.7.1 released.
6308
6309 2014-05-05 Keith Seitz <keiths@redhat.com>
6310
6311 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6312 variable or history value is successfully parsed.
6313
6314 2014-05-05 Yao Qi <yao@codesourcery.com>
6315 Pedro Alves <palves@redhat.com>
6316
6317 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6318 address of blocks that intersects the requested range. Trim
6319 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6320 sections.
6321 * ctf.c (ctf_xfer_partial): Likewise.
6322
6323 2014-05-05 Yao Qi <yao@codesourcery.com>
6324
6325 * printcmd.c (display_command): Remove the check to
6326 target_has_execution.
6327
6328 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6329
6330 * ppcobsd-nat.c: Include "obsd-nat.h".
6331 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6332 add_target.
6333 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6334
6335 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6336
6337 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6338 and 16-bit signed and unsigned arguments. Update comment.
6339 (stap_parse_probe_arguments): Extend code to handle such
6340 arguments. Use warning instead of complaint to notify about
6341 unrecognized bitness.
6342
6343 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6344
6345 PR breakpoints/16889
6346 * stap-probe.c (stap_parse_probe_arguments): Simplify
6347 check for non-prefixed probes (i.e., probes whose
6348 arguments do not start with "N@"). Always set the
6349 argument type to a sane value.
6350
6351 2014-05-01 David Taylor <dtaylor@emc.com>
6352
6353 * remote.c (compare_sections_command): Add -r option to compare
6354 all loadable read-only sections.
6355
6356 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6357
6358 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6359 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6360 Update all callers.
6361 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6362 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6363 Remove unused CORE_ADDR argument. Update all callers.
6364
6365 2014-04-29 Pedro Alves <palves@redhat.com>
6366
6367 * remote.c (struct packet_config) <detect>: Extend comment.
6368 (add_packet_config_cmd): Don't set the config's detect or support
6369 fields here.
6370 (init_all_packet_configs): Also initialize the config's 'detect'
6371 field.
6372 (reset_all_packet_configs_support): New function.
6373 (remote_open_1): Call reset_all_packet_configs_support instead of
6374 init_all_packet_configs.
6375 (_initialize_remote): Initialize all packet configs. Assert that
6376 all packets have an associated command, except a few known
6377 outliers.
6378
6379 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6380
6381 * dwarf2read.c (read_subrange_type): Handle dynamic
6382 DW_AT_lower_bound attributes.
6383
6384 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6385
6386 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6387 dynamic bounds before computing its upper bound.
6388 (ada_discrete_type_low_bound): Same as above with the lower bound.
6389
6390 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6391
6392 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6393 range types. Adjust the array handling implementation to
6394 take advantage of this change.
6395 (resolve_dynamic_range): New function, mostly extracted from
6396 resolve_dynamic_bounds.
6397 (resolve_dynamic_array): New function, mostly extracted from
6398 resolve_dynamic_bounds.
6399 (resolve_dynamic_bounds): Delete.
6400 (resolve_dynamic_type): Reimplement. Add handling of
6401 TYPE_CODE_RANGE types.
6402
6403 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6404
6405 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6406 handling of parallel ___XA types.
6407
6408 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6409
6410 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6411 unnecessary second call to static_unwrap_type.
6412
6413 2014-04-27 Hui Zhu <hui@codesourcery.com>
6414
6415 * stack.c (print_frame_info): Call do_gdb_disassembly with
6416 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6417
6418 2014-04-26 Doug Evans <xdje42@gmail.com>
6419
6420 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6421
6422 2014-04-25 Pedro Alves <palves@redhat.com>
6423
6424 PR server/16255
6425 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6426 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6427 and newline from built string.
6428 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6429 (linux_ptrace_attach_fail_reason): ... this.
6430 * linux-nat.c (linux_nat_attach): Adjust to use
6431 linux_ptrace_attach_fail_reason.
6432
6433 2014-04-25 Pedro Alves <palves@redhat.com>
6434
6435 * remote.c (struct remote_state): Remove multi_process_aware,
6436 non_stop_aware, cond_tracepoints, cond_breakpoints,
6437 breakpoint_commands, fast_tracepoints, static_tracepoints,
6438 install_in_trace, disconnected_tracing,
6439 enable_disable_tracepoints, string_tracing, and
6440 augmented_libraries_svr4_read fields.
6441 (remote_multi_process_p): Move further below in the file.
6442 (struct packet_config): Add comments.
6443 (update_packet_config): Delete function.
6444 (show_packet_config_cmd): Use packet_config_support.
6445 (add_packet_config_cmd): Use NULL as set callback.
6446 (packet_ok): "set remote foo-packet"-style commands no longer
6447 change config->supported -- adjust.
6448 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6449 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6450 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6451 (PACKET_QNonStop, PACKET_multiprocess_feature)
6452 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6453 (PACKET_DisconnectedTracing_feature)
6454 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6455 (set_remote_protocol_packet_cmd): Delete function.
6456 (packet_config_support, packet_support): New functions.
6457 (set_remote_protocol_Z_packet_cmd): Don't call
6458 update_packet_config.
6459 (remote_query_attached, remote_pass_signals)
6460 (remote_program_signals, remote_threads_info)
6461 (remote_threads_extra_info, remote_start_remote): Use
6462 packet_support.
6463 (remote_start_remote): Use packet_config_support and
6464 packet_support.
6465 (init_all_packet_configs): Set all packets to unknown support,
6466 instead of calling update_packet_config.
6467 (remote_check_symbols): Use packet_support.
6468 (remote_supported_packet): Unconditionally set the packet config's
6469 support status.
6470 (remote_multi_process_feature, remote_non_stop_feature)
6471 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6472 (remote_breakpoint_commands_feature)
6473 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6474 (remote_install_in_trace_feature)
6475 (remote_disconnected_tracing_feature)
6476 (remote_enable_disable_tracepoint_feature)
6477 (remote_string_tracing_feature)
6478 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6479 (remote_protocol_features): Adjust to use remote_supported_packet
6480 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6481 "ConditionalTracepoints", "ConditionalBreakpoints",
6482 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6483 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6484 "EnableDisableTracepoints", and "tracenz".
6485 (remote_query_supported): Use packet_support.
6486 (remote_open_1): Adjust.
6487 (extended_remote_attach_1): Use packet_support. Switch on the
6488 result of packet_ok instead of checking whether the packet ended
6489 up disabled.
6490 (remote_vcont_resume): Use packet_support.
6491 (remote_resume, remote_stop_ns, fetch_register_using_p)
6492 (remote_prepare_to_store, store_register_using_P)
6493 (check_binary_download, remote_write_bytes): Use packet_support.
6494 (remote_vkill): Use packet_support. Switch on the result of
6495 packet_ok instead of checking whether the packet ended up
6496 disabled.
6497 (extended_remote_supports_disable_randomization): Use
6498 packet_support.
6499 (extended_remote_run): Switch on the result of packet_ok instead
6500 of checking whether the packet ended up disabled.
6501 (remote_insert_breakpoint, remote_remove_breakpoint)
6502 (remote_insert_watchpoint, remote_remove_watchpoint)
6503 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6504 packet_support.
6505 (remote_search_memory): Use packet_config_support.
6506 (remote_get_thread_local_address, remote_get_tib_address)
6507 (remote_hostio_send_command, remote_can_execute_reverse): Use
6508 packet_support.
6509 (remote_supports_cond_tracepoints)
6510 (remote_supports_cond_breakpoints)
6511 (remote_supports_fast_tracepoints)
6512 (remote_supports_static_tracepoints)
6513 (remote_supports_install_in_trace)
6514 (remote_supports_enable_disable_tracepoint)
6515 (remote_supports_string_tracing)
6516 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6517 the packet config says the feature is enabled or disabled.
6518 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6519 (remote_get_trace_status): Use packet_support.
6520 (remote_set_disconnected_tracing): Adjust to check whether the
6521 feature is enabled with packet_support.
6522 (remote_set_trace_buffer_size, remote_use_agent)
6523 (remote_can_use_agent, remote_supports_btrace): Use
6524 packet_support.
6525 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6526 Use packet_config_support.
6527 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6528 the packet config says the feature is enabled or disabled.
6529 (set_range_stepping): Use packet_support.
6530
6531 2014-04-25 Tom Tromey <tromey@redhat.com>
6532
6533 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6534 argument.
6535
6536 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6537
6538 * NEWS: Mention support for C99 variable length arrays.
6539
6540 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6541
6542 * ada-lang.c (standard_exc): Expand introductory comment.
6543
6544 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6545 Walfred Tedeschi <walfred.tedeschi@intel.com>
6546
6547 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6548 AVX512 registers.
6549 (amd64_linux_read_description): Add code to handle AVX512 xstate
6550 mask and return respective tdesc.
6551 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6552 and features/i386/x32-avx512-linux.c.
6553 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6554 (amd64_linux_core_read_description): Add code to handle AVX512
6555 xstate mask and return respective tdesc.
6556 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6557 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6558 calculation.
6559 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6560 (tdesc_amd64_avx512_linux): New prototype.
6561 (tdesc_x32_avx512_linux): Likewise.
6562 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6563 features/i386/x32-avx512.c.
6564 (amd64_ymm_avx512_names): New register names for pseudo
6565 registers YMM16-31.
6566 (amd64_ymmh_avx512_names): New register names for raw registers
6567 YMMH16-31.
6568 (amd64_k_names): New register names for K registers.
6569 (amd64_zmmh_names): New register names for ZMM raw registers.
6570 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6571 (amd64_xmm_avx512_names): New register names for XMM16-31
6572 registers.
6573 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6574 registers.
6575 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6576 if feature is present.
6577 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6578 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6579 (AMD64_NUM_REGS): Adjust to new number of registers.
6580 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6581 registers supplied via XSTATE by AVX512 registers.
6582 (i386_linux_read_description): Add case for AVX512.
6583 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6584 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6585 (i386_linux_core_read_description): Add case for AVX512.
6586 (i386_linux_init_abi): Install supported register note section
6587 for AVX512.
6588 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6589 AVX512.
6590 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6591 registers to be number of zmm7h + 1.
6592 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6593 * i386-tdep.c: Include features/i386/i386-avx512.c.
6594 (i386_zmm_names): Add ZMM pseudo register names array.
6595 (i386_zmmh_names): Add ZMM raw register names array.
6596 (i386_k_names): Add K raw register names array.
6597 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6598 registers. AVX512 has 16 more ZMM registers than there are YMM
6599 registers.
6600 (i386_zmmh_regnum_p): Add function to look up register number of
6601 ZMM raw registers.
6602 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6603 (i386_k_regnum_p): Likewise for K raw registers.
6604 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6605 registers added by AVX512.
6606 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6607 registers added by AVX512.
6608 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6609 added by AVX512.
6610 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6611 (i386_pseudo_register_name): Add ZMM pseudo registers.
6612 (i386_zmm_type): Construct and return vector registers type for ZMM
6613 registers.
6614 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6615 ZMM0-31 pseudo registers and K registers.
6616 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6617 and YMM16-31 registers from register cache.
6618 (i386_pseudo_register_write): Add code to write K, ZMM and
6619 YMM16-31 registers.
6620 (i386_register_reggroup_p): Add code to include/exclude AVX512
6621 registers in/from respective register groups.
6622 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6623 registers if feature is present in xcr0.
6624 (i386_gdbarch_init): Add code to initialize AVX512 feature
6625 variables in tdep structure, wire in pseudo registers and call
6626 initialize_tdesc_i386_avx512.
6627 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6628 variables.
6629 (i386_regnum): Add AVX512 registers.
6630 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6631 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6632 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6633 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6634 512 bits wide.
6635 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6636 (i386_ymm_avx512_regnum_p): Likewise.
6637 (i386_k_regnum_p): Likewise.
6638 (i386_zmm_regnum_p): Likewise.
6639 (i386_zmmh_regnum_p): Likewise.
6640 * i387-tdep.c : Update year in copyright notice.
6641 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6642 XSAVE buffer.
6643 (XSAVE_YMM_AVX512_ADDR): New macro.
6644 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6645 XSAVE buffer.
6646 (XSAVE_XMM_AVX512_ADDR): New macro.
6647 (xsave_avx512_k_offset): New table for K register offsets in
6648 XSAVE buffer.
6649 (XSAVE_AVX512_K_ADDR): New macro.
6650 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6651 in XSAVE buffer.
6652 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6653 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6654 buffer.
6655 (i387_collect_xsave): Add code to collect AVX512 registers from
6656 XSAVE buffer.
6657 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6658 of XMM16-31 registers.
6659 (I387_NUM_K_REGS): New define for number of K registers.
6660 (I387_K0_REGNUM): New define for K0 register number.
6661 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6662 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6663 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6664 registers.
6665 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6666 (I387_XMM16_REGNUM): New define for XMM16 register number.
6667 (I387_YMM0_REGNUM): New define for YMM0 register number.
6668 (I387_KEND_REGNUM): New define for last K register number.
6669 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6670 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6671 number.
6672 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6673 number.
6674 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6675 size.
6676 * features/Makefile: Add AVX512 related files.
6677 * features/i386/32bit-avx512.xml: New file.
6678 * features/i386/64bit-avx512.xml: Likewise.
6679 * features/i386/amd64-avx512-linux.c: Likewise.
6680 * features/i386/amd64-avx512-linux.xml: Likewise.
6681 * features/i386/amd64-avx512.c: Likewise.
6682 * features/i386/amd64-avx512.xml: Likewise.
6683 * features/i386/i386-avx512-linux.c: Likewise.
6684 * features/i386/i386-avx512-linux.xml: Likewise.
6685 * features/i386/i386-avx512.c: Likewise.
6686 * features/i386/i386-avx512.xml: Likewise.
6687 * features/i386/x32-avx512-linux.c: Likewise.
6688 * features/i386/x32-avx512-linux.xml: Likewise.
6689 * features/i386/x32-avx512.c: Likewise.
6690 * features/i386/x32-avx512.xml: Likewise.
6691 * regformats/i386/amd64-avx512-linux.dat: New file.
6692 * regformats/i386/amd64-avx512.dat: Likewise.
6693 * regformats/i386/i386-avx512-linux.dat: Likewise.
6694 * regformats/i386/i386-avx512.dat: Likewise.
6695 * regformats/i386/x32-avx512-linux.dat: Likewise.
6696 * regformats/i386/x32-avx512.dat: Likewise.
6697 * NEWS: Add note about new support for AVX512.
6698
6699
6700 2014-04-23 Pedro Alves <palves@redhat.com>
6701
6702 * breakpoint.c (insert_bp_location): Tolerate errors if the
6703 breakpoint is set in a user-loaded objfile.
6704 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6705 location is marked shlib_disabled. If the breakpoint is set in a
6706 user-loaded objfile is a GDB-side memory breakpoint, validate it
6707 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6708 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6709 flag.
6710 * mem-break.c (memory_validate_breakpoint): New function.
6711 * objfiles.c (userloaded_objfile_contains_address_p): New
6712 function.
6713 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6714 * target.h (memory_validate_breakpoint): New declaration.
6715
6716 2014-04-23 Pedro Alves <palves@redhat.com>
6717
6718 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6719 the breakpoint is set in a shared library, only suppress
6720 errors for software breakpoints, not hardware breakpoints.
6721
6722 2014-04-22 Pedro Alves <palves@redhat.com>
6723
6724 * infrun.c (schedlock_applies): New function, factored out from
6725 find_thread_needs_step_over.
6726 (find_thread_needs_step_over): Use it.
6727 (switch_back_to_stepped_thread): Always clear trap_expected if the
6728 step over is finished. Return early if scheduler locking applies.
6729 Look for the stepping thread and a potential step-over thread with
6730 a single loop.
6731 (currently_stepping_or_nexting_callback): Delete.
6732
6733 2014-04-22 Nick Clifton <nickc@redhat.com>
6734
6735 * NEWS: Mention that ARM sim now supports tracing.
6736
6737 2014-04-22 Yao Qi <yao@codesourcery.com>
6738
6739 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6740 to ...
6741 * tracefile.c (tracefile_fetch_registers): ... it. New
6742 function.
6743 * tracefile.h (tracefile_fetch_registers): Declare.
6744 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6745 tracefile_fetch_registers.
6746
6747 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6748
6749 PR gdb/14018
6750 * windows-nat.c (thread_rec): Don't display a warning when
6751 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6752 fails for any reason, set th->suspended to -1, so that we don't
6753 try to resume such a thread. Also, don't return NULL in these
6754 cases, to avoid completely ruin the session due to "PC register is
6755 not available" error.
6756 (do_windows_fetch_inferior_registers): Check errors in
6757 GetThreadContext call.
6758 (windows_continue): Accept an additional argument KILLED; if not
6759 zero, ignore errors in the SetThreadContext call, since the
6760 inferior was killed and is shutting down.
6761 (windows_resume, get_windows_debug_event)
6762 (windows_create_inferior, windows_mourn_inferior)
6763 (windows_kill_inferior): All callers of windows_continue changed
6764 to adjust to its new calling sequence.
6765
6766 2014-04-19 Yao Qi <yao@codesourcery.com>
6767
6768 * ctf.c (ctf_open): Call post_create_inferior.
6769
6770 2014-04-19 Yao Qi <yao@codesourcery.com>
6771
6772 * ctf.c (handle_id): New static variable.
6773 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6774 value. Get the declaration of event "register" and get length
6775 of field "contents".
6776
6777 2014-04-19 Yao Qi <yao@codesourcery.com>
6778
6779 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6780
6781 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6782
6783 * valops.c (oload_method_static): Remove unnecessary argument
6784 METHOD. Update all callers.
6785
6786 2014-04-18 Pedro alves <palves@redhat.com>
6787 Tom Tromey <tromey@redhat.com>
6788
6789 PR backtrace/15558
6790 * frame.c (get_prev_frame_1): Rename to ...
6791 (get_prev_frame_always): ... this, and make extern. Adjust.
6792 (skip_artificial_frames): Use get_prev_frame_always.
6793 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6794 (get_frame_unwind_stop_reason): Adjust to rename.
6795 * frame.h (get_prev_frame_always): Declare.
6796 * inline-frame.c: Include frame.h.
6797 (inline_frame_this_id): Use get_prev_frame_always.
6798
6799 2014-04-18 Tristan Gingold <gingold@adacore.com>
6800
6801 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6802 code by using bfd_mach_o_get_base_address.
6803
6804 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6805
6806 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6807 (spu_ax_pseudo_register_collect): New function.
6808 (spu_ax_pseudo_register_push_stack): Likewise.
6809 (spu_dwarf_reg_to_regnum): Likewise.
6810 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6811
6812 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6813
6814 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6815 Replace FRAME argument with FRAME_ID.
6816 * gdbarch.c, gdbarch.h: Regenerate.
6817 * findvar.c (default_value_from_register): Add GDBARCH argument;
6818 replace FRAME by FRAME_ID. No longer call get_frame_id.
6819 (value_from_register): Update call to gdbarch_value_from_register.
6820 * value.h (default_value_from_register): Update prototype.
6821 * s390-linux-tdep.c (s390_value_from_register): Update interface
6822 and call to default_value_from_register.
6823 * spu-tdep.c (spu_value_from_register): Likewise.
6824
6825 * findvar.c (address_from_register): Remove TYPE argument.
6826 Do not call value_from_register; use gdbarch_value_from_register
6827 with null_frame_id instead.
6828 * value.h (address_from_register): Update prototype.
6829 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6830 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6831 address_from_register interface change.
6832
6833 2014-04-17 Yao Qi <yao@codesourcery.com>
6834
6835 * gdbtypes.h: Update comments to link to types and macros'
6836 definitions.
6837
6838 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6839
6840 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6841
6842 2014-04-16 Keith Seitz <keiths@redhat.com>
6843
6844 PR gdb/15827
6845 * dwarf2read.c (skip_one_die): Check that all relative-offset
6846 sibling DIEs fall within range of the current reader's buffer.
6847 (read_partial_die): Likewise.
6848
6849 2014-04-16 Keith Seitz <keiths@redhat.com>
6850
6851 PR c++/16597
6852 * cp-namespace.c (lookup_symbol_file): If the type name of
6853 `this' is NULL, return immediately.
6854
6855 2014-04-14 Keith Seitz <keiths@redhat.com>
6856
6857 PR c++/16253
6858 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6859 from symbol_matches_domain in symtab.c. All local callers
6860 of symbol_matches_domain updated.
6861 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6862 search STRUCT_DOMAIN.
6863 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6864 independently. standard_lookup will do that automatically.
6865 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6866 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6867 (cp_lookup_symbol_in_namespace): Likewise.
6868 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6869 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6870 may return a STRUCT_DOMAIN match.
6871 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6872 * cp-support.c: Include language.h.
6873 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6874 VAR_DOMAIN.
6875 * psymtab.c (match_partial_symbol): Compare the requested
6876 domain with the symbol's domain directly.
6877 (lookup_partial_symbol): Likewise.
6878 * symtab.c (lookup_symbol_in_language): Explain when/why
6879 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6880 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6881 appropriate languages.
6882 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6883 and moved to ada-lang.c
6884 (lookup_block_symbol): Explain that this function only returns
6885 symbol matching the requested DOMAIN.
6886 Compare the requested domain with the symbol's domain directly.
6887 (iterate_over_symbols): Compare the requested domain with the
6888 symbol's domain directly.
6889 * symtab.h (symbol_matches_domain): Remove.
6890
6891 2014-04-14 Tom Tromey <tromey@redhat.com>
6892
6893 PR c++/15246:
6894 * c-exp.y (type_aggregate_p): New function.
6895 (qualified_name, classify_inner_name): Use it.
6896 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6897 and TYPE_TARGET_TYPE of an enum type.
6898 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6899 an enum type.
6900 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6901 handle TYPE_DECLARED_CLASS.
6902 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6903 types.
6904 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6905 * valops.c (enum_constant_from_type): New function.
6906 (value_aggregate_elt): Use it.
6907 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6908 TYPE_CODE_ENUM.
6909
6910 2014-04-14 Tom Tromey <tromey@redhat.com>
6911
6912 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6913 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6914 const.
6915 * value.h (value_aggregate_elt): Update.
6916
6917 2014-04-14 Tom Tromey <tromey@redhat.com>
6918
6919 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6920
6921 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6922
6923 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6924 (evaluate_subexp_standard): Pass noside argument.
6925 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6926 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6927 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6928 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6929 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6930
6931 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6932
6933 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6934 points to a constant blob.
6935
6936 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6937
6938 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6939 property and store it as the high bound and flag the range accordingly.
6940 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6941 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6942 * gdbtypes.h (enum range_flags): New enum.
6943 (struct range_bounds): Add flags member.
6944
6945 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6946
6947 * c-typeprint.c (c_type_print_varspec_suffix): Added
6948 check for not yet resolved high bound. If unresolved, print
6949 "variable length" string to the console instead of random
6950 length.
6951
6952 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6953
6954 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6955 value.
6956 (ada_template_to_fixed_record_type_1): Likewise.
6957 (ada_to_fixed_type_1): Likewise.
6958 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6959 (cp_print_value): Likewise.
6960 * d-valprint.c (dynamic_array_type): Likewise.
6961 * findvar.c (address_of_variable): Likewise.
6962 * jv-valprint.c (java_value_print): Likewise.
6963 * valops.c (value_ind): Likewise.
6964 * value.c (coerce_ref): Likewise.
6965
6966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6967
6968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6969 value and retrieve the dynamic type size.
6970
6971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6972
6973 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6974 passed to sizeof is dynamic evaluate the argument to compute the length.
6975
6976 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6977 Joel Brobecker <brobecker@adacore.com>
6978
6979 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6980 (dwarf2_evaluate_property): New function.
6981 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6982 * dwarf2read.c (attr_to_dynamic_prop): New function.
6983 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6984 attribute.
6985 * gdbtypes.c: Include dwarf2loc.h.
6986 (is_dynamic_type): New function.
6987 (resolve_dynamic_type): New function.
6988 (resolve_dynamic_bounds): New function.
6989 (get_type_length): New function.
6990 (check_typedef): Use get_type_length to compute type length.
6991 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6992 (TYPE_LOW_BOUND_KIND): New macro.
6993 (is_dynamic_type): New function prototype.
6994 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6995 to resolve dynamic properties of the type. Update comment.
6996 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6997
6998 2014-04-14 Richard Henderson <rth@redhat.com>
6999
7000 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7001
7002 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7003 Doug Evans <xdje42@gmail.com>
7004
7005 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7006 dereference TYPE_CODE_REF values.
7007
7008 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7009
7010 Revert the following changes due to regressions:
7011
7012 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7013 (dwarf2_evaluate_property): New function.
7014 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7015 * dwarf2read.c (attr_to_dynamic_prop): New function.
7016 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7017 attribute.
7018 * gdbtypes.c: Include dwarf2loc.h.
7019 (is_dynamic_type): New function.
7020 (resolve_dynamic_type): New function.
7021 (resolve_dynamic_bounds): New function.
7022 (get_type_length): New function.
7023 (check_typedef): Use get_type_length to compute type length.
7024 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7025 (TYPE_LOW_BOUND_KIND): New macro.
7026 (is_dynamic_type): New function prototype.
7027 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7028 to resolve dynamic properties of the type. Update comment.
7029 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7030
7031 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7032 passed to sizeof is dynamic evaluate the argument to compute the length.
7033
7034 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7035 value and retrieve the dynamic type size.
7036
7037 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7038 (ada_template_to_fixed_record_type_1): Likewise.
7039 (ada_to_fixed_type_1): Likewise.
7040 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7041 (cp_print_value): Likewise.
7042 * d-valprint.c (dynamic_array_type): Likewise.
7043 * eval.c (evaluate_subexp_with_coercion): Likewise.
7044 * findvar.c (address_of_variable): Likewise.
7045 * jv-valprint.c (java_value_print): Likewise.
7046 * valops.c (value_ind): Likewise.
7047 * value.c (coerce_ref): Likewise.
7048
7049 * c-typeprint.c (c_type_print_varspec_suffix): Added
7050 check for not yet resolved high bound. If unresolved, print
7051 "variable length" string to the console instead of random
7052 length.
7053
7054 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7055 property and store it as the high bound and flag the range accordingly.
7056 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7057 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7058 * gdbtypes.h (enum range_flags): New enum.
7059 (struct range_bounds): Add flags member.
7060
7061 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7062 points to a constant blob.
7063
7064 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7065 (evaluate_subexp_standard): Pass noside argument.
7066 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7067 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7068 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7069 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7070 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7071
7072 2014-04-11 Keith Seitz <keiths@redhat.com>
7073
7074 PR c++/16675
7075 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7076 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7077 reference types.
7078
7079 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7080
7081 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7082 (evaluate_subexp_standard): Pass noside argument.
7083 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7084 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7085 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7086 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7087 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7088
7089 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7090
7091 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7092 points to a constant blob.
7093
7094 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7095
7096 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7097 property and store it as the high bound and flag the range accordingly.
7098 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7099 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7100 * gdbtypes.h (enum range_flags): New enum.
7101 (struct range_bounds): Add flags member.
7102
7103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7104
7105 * c-typeprint.c (c_type_print_varspec_suffix): Added
7106 check for not yet resolved high bound. If unresolved, print
7107 "variable length" string to the console instead of random
7108 length.
7109
7110 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7111
7112 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7113 (ada_template_to_fixed_record_type_1): Likewise.
7114 (ada_to_fixed_type_1): Likewise.
7115 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7116 (cp_print_value): Likewise.
7117 * d-valprint.c (dynamic_array_type): Likewise.
7118 * eval.c (evaluate_subexp_with_coercion): Likewise.
7119 * findvar.c (address_of_variable): Likewise.
7120 * jv-valprint.c (java_value_print): Likewise.
7121 * valops.c (value_ind): Likewise.
7122 * value.c (coerce_ref): Likewise.
7123
7124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7125
7126 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7127 value and retrieve the dynamic type size.
7128
7129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7130
7131 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7132 passed to sizeof is dynamic evaluate the argument to compute the length.
7133
7134 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7135
7136 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7137 (dwarf2_evaluate_property): New function.
7138 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7139 * dwarf2read.c (attr_to_dynamic_prop): New function.
7140 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7141 attribute.
7142 * gdbtypes.c: Include dwarf2loc.h.
7143 (is_dynamic_type): New function.
7144 (resolve_dynamic_type): New function.
7145 (resolve_dynamic_bounds): New function.
7146 (get_type_length): New function.
7147 (check_typedef): Use get_type_length to compute type length.
7148 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7149 (TYPE_LOW_BOUND_KIND): New macro.
7150 (is_dynamic_type): New function prototype.
7151 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7152 to resolve dynamic properties of the type. Update comment.
7153 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7154
7155 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7156
7157 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7158 declaring high/low bounds and change uses accordingly. Call
7159 create_range_type instead of create_static_range_type.
7160 * gdbtypes.c (create_range_type): New function.
7161 (create_range_type): Convert bounds into struct bound_prop and pass
7162 them to create_range_type.
7163 * gdbtypes.h (struct bound_prop): New struct.
7164 (create_range_type): New function prototype.
7165 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7166 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7167 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7168 part of the bound.
7169 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7170
7171 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7172
7173 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7174 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7175 * ada-lang.c: All uses of create_range_type updated.
7176 * coffread.c: All uses of create_range_type updated.
7177 * dwarf2read.c: All uses of create_range_type updated.
7178 * f-exp.y: All uses of create_range_type updated.
7179 * m2-valprint.c: All uses of create_range_type updated.
7180 * mdebugread.c: All uses of create_range_type updated.
7181 * stabsread.c: All uses of create_range_type updated.
7182 * valops.c: All uses of create_range_type updated.
7183 * valprint.c: All uses of create_range_type updated.
7184
7185 2014-04-10 Pedro Alves <palves@redhat.com>
7186
7187 * breakpoint.c (single_step_breakpoints)
7188 (single_step_gdbarch): Move up in the file.
7189 (one_breakpoint_xfer_memory): New function, factored out from ...
7190 (breakpoint_xfer_memory): ... here. Also process single-step
7191 breakpoints.
7192
7193 2014-04-09 Tristan Gingold <gingold@adacore.com>
7194
7195 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7196 comments.
7197 (darwin_decode_exception_message): Free port only after use.
7198
7199 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7200
7201 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7202 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7203 when setting the size of call_length.
7204
7205 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7206
7207 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7208 dereference TYPE_CODE_REF values.
7209
7210 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7211
7212 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7213 end of warning message.
7214
7215 2014-04-03 Doug Evans <dje@google.com>
7216
7217 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7218 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7219
7220 2014-04-02 Alan Modra <amodra@gmail.com>
7221
7222 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7223 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7224 (struct symbol_file_add_from_memory_args): Add size field.
7225 (find_vdso_size): New function.
7226 (add_vsyscall_page): Attempt to find vdso size.
7227
7228 2014-04-01 Doug Evans <dje@google.com>
7229
7230 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7231
7232 2014-04-01 Tristan Gingold <gingold@adacore.com>
7233
7234 * darwin-nat.c (darwin_encode_reply): Add prototype.
7235 (darwin_decode_exception_message): Reply to unknown inferiors.
7236 (darwin_decode_message): Handle message by id. Ignore message
7237 to unknown inferior.
7238 (darwin_wait): Discard unknown messages, add debug trace.
7239
7240 2014-03-31 Doug Evans <dje@google.com>
7241
7242 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7243 comp_dir_string.
7244
7245 2014-03-31 Doug Evans <dje@google.com>
7246
7247 New option "set print symbol-loading".
7248 * NEWS: Mention it.
7249 * solib.c (solib_read_symbols): Only print symbol loading messages
7250 if requested.
7251 (solib_add): If symbol loading is in "brief" mode, notify user
7252 symbols are being loaded.
7253 (reload_shared_libraries_1): Ditto.
7254 * symfile.c (print_symbol_loading_off): New static global.
7255 (print_symbol_loading_brief): New static global.
7256 (print_symbol_loading_full): New static global.
7257 (print_symbol_loading_enums): New static global.
7258 (print_symbol_loading): New static global.
7259 (print_symbol_loading_p): New function.
7260 (symbol_file_add_with_addrs): Only print symbol loading messages
7261 if requested.
7262 (_initialize_symfile): Register "print symbol-loading" set/show
7263 command.
7264 * symfile.h (print_symbol_loading_p): Declare.
7265
7266 2014-03-30 Doug Evans <xdje42@gmail.com>
7267
7268 * infrun.c (set_last_target_status): New function.
7269 (handle_inferior_event): Call it.
7270
7271 2014-03-30 Doug Evans <xdje42@gmail.com>
7272
7273 * inferior.h (enum stop_kind): Improve comment.
7274
7275 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7276
7277 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7278 a reference, strip the reference layer before calling
7279 the lang_ops value_has_mutated callback.
7280
7281 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7282
7283 Remove some globals from our parser.
7284 * language.c (unk_lang_parser): Add "struct parser_state"
7285 argument.
7286 * language.h (struct language_defn) <la_parser>: Likewise.
7287 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7288 (initialize_expout): Add "struct parser_state" argument.
7289 Rewrite function to use the parser state.
7290 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7291 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7292 write_exp_elt_longcst, write_exp_elt_dblcst,
7293 write_exp_elt_decfloatcst, write_exp_elt_type,
7294 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7295 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7296 write_dollar_variable): Likewise.
7297 (parse_exp_in_context_1): Use parser state.
7298 (insert_type_address_space): Add "struct parser_state" argument.
7299 Use parser state.
7300 (increase_expout_size): New function.
7301 * parser-defs.h: Forward declare "struct language_defn" and
7302 "struct parser_state".
7303 (expout, expout_size, expout_ptr): Remove extern declarations.
7304 (parse_gdbarch, parse_language): Rewrite macro declarations to
7305 accept the parser state.
7306 (struct parser_state): New struct.
7307 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7308 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7309 write_exp_elt_decfloatcst, write_exp_elt_type,
7310 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7311 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7312 write_exp_msymbol, write_dollar_variable,
7313 mark_struct_expression, insert_type_address_space): Add "struct
7314 parser_state" argument.
7315 (increase_expout_size): New function.
7316 * utils.c (do_clear_parser_state): New function.
7317 (make_cleanup_clear_parser_state): Likewise.
7318 * utils.h (make_cleanup_clear_parser_state): New function
7319 prototype.
7320 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7321 Update calls to write_exp* in order to pass the parser state.
7322 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7323 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7324 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7325 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7326 * stap-probe.c (stap_parse_register_operand): Likewise.
7327 (stap_parse_single_operand): Likewise.
7328 (stap_parse_argument_1): Likewise.
7329 (stap_parse_argument): Use parser state.
7330 * stap-probe.h: Include "parser-defs.h".
7331 (struct stap_parse_info) <pstate>: New field.
7332 * c-exp.y (parse_type): Rewrite to use parser state.
7333 (yyparse): Redefine to c_parse_internal.
7334 (pstate): New global variable.
7335 (parse_number): Add "struct parser_state" argument.
7336 (write_destructor_name): Likewise.
7337 (type_exp): Update calls to write_exp* and similars in order to
7338 use parser state.
7339 (exp1, exp, variable, qualified_name, space_identifier,
7340 typename, typebase): Likewise.
7341 (write_destructor_name, parse_number, lex_one_token,
7342 classify_name, classify_inner_name, c_parse): Add "struct
7343 parser_state" argument. Update function to use parser state.
7344 * c-lang.h: Forward declare "struct parser_state".
7345 (c_parse): Add "struct parser_state" argument.
7346 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7347 (yyparse): Redefine macro to ada_parse_internal.
7348 (pstate): New variable.
7349 (write_int, write_object_renaming, write_var_or_type,
7350 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7351 type_int, type_long, type_long_long, type_float, type_double,
7352 type_long_double, type_char, type_boolean, type_system_address):
7353 Add "struct parser_state" argument.
7354 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7355 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7356 var_or_type, aggregate, aggregate_component_list,
7357 positional_list, others, component_group,
7358 component_associations): Update calls to write_exp* and similar
7359 functions in order to use parser state.
7360 (ada_parse, write_var_from_sym, write_int,
7361 write_exp_op_with_string, write_object_renaming,
7362 find_primitive_type, write_selectors, write_ambiguous_var,
7363 write_var_or_type, write_name_assoc, type_int, type_long,
7364 type_long_long, type_float, type_double, type_long_double,
7365 type_char, type_boolean, type_system_address): Add "struct
7366 parser_state" argument. Adjust function to use parser state.
7367 * ada-lang.c (parse): Likewise.
7368 * ada-lang.h: Forward declare "struct parser_state".
7369 (ada_parse): Add "struct parser_state" argument.
7370 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7371 calls to both functions.
7372 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7373 parser state.
7374 (yyparse): Redefine macro to f_parse_internal.
7375 (pstate): New variable.
7376 (parse_number): Add "struct parser_state" argument.
7377 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7378 and similars in order to use parser state.
7379 (parse_number): Adjust code to use parser state.
7380 (yylex): Likewise.
7381 (f_parse): New function.
7382 * f-lang.h: Forward declare "struct parser_state".
7383 (f_parse): Add "struct parser_state" argument.
7384 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7385 parser state.
7386 (yyparse): Redefine macro for java_parse_internal.
7387 (pstate): New variable.
7388 (push_expression_name, push_expression_name, insert_exp): Add
7389 "struct parser_state" argument.
7390 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7391 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7392 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7393 PostIncrementExpression, PostDecrementExpression,
7394 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7395 UnaryExpressionNotPlusMinus, CastExpression,
7396 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7397 RelationalExpression, EqualityExpression, AndExpression,
7398 ExclusiveOrExpression, InclusiveOrExpression,
7399 ConditionalAndExpression, ConditionalOrExpression,
7400 ConditionalExpression, Assignment, LeftHandSide): Update
7401 calls to write_exp* and similars in order to use parser state.
7402 (parse_number): Ajust code to use parser state.
7403 (yylex): Likewise.
7404 (java_parse): New function.
7405 (push_variable): Add "struct parser_state" argument. Adjust
7406 code to user parser state.
7407 (push_fieldnames, push_qualified_expression_name,
7408 push_expression_name, insert_exp): Likewise.
7409 * jv-lang.h: Forward declare "struct parser_state".
7410 (java_parse): Add "struct parser_state" argument.
7411 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7412 parser state.
7413 (yyparse): Redefine macro to m2_parse_internal.
7414 (pstate): New variable.
7415 (type_exp, exp, fblock, variable, type): Update calls to
7416 write_exp* and similars to use parser state.
7417 (yylex): Likewise.
7418 (m2_parse): New function.
7419 * m2-lang.h: Forward declare "struct parser_state".
7420 (m2_parse): Add "struct parser_state" argument.
7421 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7422 * objc-lang.h: Forward declare "struct parser_state".
7423 (end_msglist): Add "struct parser_state" argument.
7424 * p-exp.y (parse_type): Rewrite macro to use parser state.
7425 (yyparse): Redefine macro to pascal_parse_internal.
7426 (pstate): New variable.
7427 (parse_number): Add "struct parser_state" argument.
7428 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7429 write_exp* and similars in order to use parser state.
7430 (parse_number, yylex): Adjust code to use parser state.
7431 (pascal_parse): New function.
7432 * p-lang.h: Forward declare "struct parser_state".
7433 (pascal_parse): Add "struct parser_state" argument.
7434 * go-exp.y (parse_type): Rewrite macro to use parser state.
7435 (yyparse): Redefine macro to go_parse_internal.
7436 (pstate): New variable.
7437 (parse_number): Add "struct parser_state" argument.
7438 (type_exp, exp1, exp, variable, type): Update calls to
7439 write_exp* and similars in order to use parser state.
7440 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7441 to use parser state.
7442 (go_parse): Likewise.
7443 * go-lang.h: Forward declare "struct parser_state".
7444 (go_parse): Add "struct parser_state" argument.
7445
7446 2014-03-27 Doug Evans <dje@google.com>
7447
7448 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7449
7450 2014-03-27 Doug Evans <dje@google.com>
7451
7452 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7453 Remove argument abbrev_section. All callers updated.
7454
7455 2014-03-27 Doug Evans <dje@google.com>
7456
7457 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7458 addr_base, ranges_base.
7459
7460 2014-03-26 Keith Seitz <keiths@redhat.com>
7461
7462 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7463 types, not VAR_DOMAIN.
7464
7465 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7466
7467 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7468 "ra" registers.
7469 * features/nios2-linux.c: Regenerated.
7470 * features/nios2.c: Regenerated.
7471
7472 2014-03-25 Pedro Alves <palves@redhat.com>
7473
7474 * cli/cli-script.c (script_from_file): Force the interpreter to
7475 sync mode.
7476
7477 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7478
7479 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7480 small stack allocation.
7481
7482 2014-03-24 Tristan Gingold <gingold@adacore.com>
7483
7484 * darwin-nat.c (exc_server): Remove unused prototype.
7485 (darwin_dump_message): Correctly display data on x86_64.
7486 (darwin_encode_reply): Fix style.
7487 Add comments and fix indentation.
7488
7489 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7490
7491 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7492
7493 2014-03-22 Doug Evans <xdje42@gmail.com>
7494
7495 * infcmd.c: Whitespace fixes.
7496 (interrupt_command): Merge two function comments into one.
7497
7498 2014-03-22 Doug Evans <xdje42@gmail.com>
7499
7500 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7501 All uses updated.
7502
7503 2014-03-22 Yao Qi <yao@codesourcery.com>
7504
7505 * remote.c (target_read_live_memory): Remove.
7506 (memory_xfer_live_readonly_partial): Rename it to
7507 remote_xfer_live_readonly_partial. Remove argument 'object'.
7508 All callers updated. Call remote_read_bytes_1
7509 instead of target_read_live_memory.
7510 * tracepoint.c (set_traceframe_number): Remove.
7511 (make_cleanup_restore_traceframe_number): Likewise .
7512 * tracepoint.h (set_traceframe_number): Remove declaration.
7513 (make_cleanup_restore_traceframe_number): Likewise.
7514
7515 2014-03-22 Yao Qi <yao@codesourcery.com>
7516
7517 * remote.c (remote_read_bytes): Move code on reading from the
7518 remote stub to ...
7519 (remote_read_bytes_1): ... here. New function.
7520
7521 2014-03-22 Yao Qi <yao@codesourcery.com>
7522
7523 * ctf.c (ctf_xfer_partial): Check the return value of
7524 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7525 return TARGET_XFER_UNAVAILABLE.
7526 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7527 * target.c (target_read_live_memory): Move it to remote.c.
7528 (memory_xfer_live_readonly_partial): Likewise.
7529 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7530 * remote.c (target_read_live_memory): Moved from target.c.
7531 (memory_xfer_live_readonly_partial): Likewise.
7532 (remote_read_bytes): Factored out from
7533 memory_xfer_partial_1.
7534
7535 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7536
7537 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7538 NULL pointer.
7539
7540 2014-03-21 Pedro Alves <palves@redhat.com>
7541
7542 * infrun.c (normal_stop): Extend comment.
7543
7544 2014-03-21 Hui Zhu <hui@codesourcery.com>
7545 Pedro Alves <palves@redhat.com>
7546
7547 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7548 static buffer.
7549 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7550 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7551 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7552
7553 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7554
7555 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7556 `z' formatted output modifier.
7557
7558 2014-03-20 Tom Tromey <tromey@redhat.com>
7559 Sergio Durigan Junior <sergiodj@redhat.com>
7560
7561 * probe.c (parse_probes): Turn assert into an ordinary error.
7562 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7563 exceptions when parsing probes. Rearrange the code for clarity.
7564
7565 2014-03-20 Tom Tromey <tromey@redhat.com>
7566
7567 PR gdb/14135
7568 * top.c (execute_command): Only dispatch events if the command
7569 started the target.
7570
7571 2014-03-20 Tom Tromey <tromey@redhat.com>
7572
7573 PR cli/15718
7574 * infcall.c: Include event-top.h.
7575 (run_inferior_call): Call async_disable_stdin if needed.
7576
7577 2014-03-20 Pedro Alves <palves@redhat.com>
7578
7579 * infrun.c (prepare_to_proceed): Delete.
7580 (thread_still_needs_step_over): New function.
7581 (find_thread_needs_step_over): New function.
7582 (proceed): If the current thread needs a step-over, set its
7583 steping_over_breakpoint flag. Adjust to use
7584 find_thread_needs_step_over instead of prepare_to_proceed.
7585 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7586 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7587 breakpoint.
7588 (switch_back_to_stepped_thread): Step over breakpoints of all
7589 threads not the stepping thread, before switching back to the
7590 stepping thread.
7591
7592 2014-03-20 Pedro Alves <palves@redhat.com>
7593
7594 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7595 extern.
7596 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7597 * infrun.c (saved_singlestep_ptid)
7598 (stepping_past_singlestep_breakpoint): Delete.
7599 (resume): Remove stepping_past_singlestep_breakpoint handling.
7600 (proceed): Store the prev_pc of the stepping thread too.
7601 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7602 singlestep_pc.
7603 (enum infwait_states): Delete infwait_thread_hop_state.
7604 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7605 field.
7606 (handle_inferior_event): Adjust.
7607 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7608 handling and the thread-hop code. Before removing single-step
7609 breakpoints, check whether the thread hit a single-step breakpoint
7610 of another thread. If it did, the trap is not a random signal.
7611 (switch_back_to_stepped_thread): If the event thread hit a
7612 single-step breakpoint, unblock it before switching to the
7613 stepping thread. Handle the case of the stepped thread having
7614 advanced already.
7615 (keep_going): Handle the case of the current thread moving past a
7616 single-step breakpoint.
7617
7618 2014-03-20 Pedro Alves <palves@redhat.com>
7619
7620 PR breakpoints/7143
7621 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7622 are being stepped over.
7623 (breakpoint_address_match): Make extern.
7624 * breakpoint.h (breakpoint_address_match): New declaration.
7625 * inferior.h (stepping_past_instruction_at): New declaration.
7626 * infrun.c (struct step_over_info): New type.
7627 (step_over_info): New global.
7628 (set_step_over_info, clear_step_over_info)
7629 (stepping_past_instruction_at): New functions.
7630 (handle_inferior_event): Clear the step-over info when
7631 trap_expected is cleared.
7632 (resume): Remove now stale comment.
7633 (clear_proceed_status): Clear step-over info.
7634 (proceed): Adjust step-over handling to set or clear the step-over
7635 info instead of removing all breakpoints.
7636 (handle_signal_stop): When setting up a thread-hop, don't remove
7637 breakpoints here.
7638 (stop_stepping): Clear step-over info.
7639 (keep_going): Adjust step-over handling to set or clear step-over
7640 info and then always inserting breakpoints, instead of removing
7641 all breakpoints when stepping over one.
7642
7643 2014-03-20 Pedro Alves <palves@redhat.com>
7644
7645 * infrun.c (previous_inferior_ptid): Adjust comment.
7646 (deferred_step_ptid): Delete.
7647 (infrun_thread_ptid_changed, prepare_to_proceed)
7648 (init_wait_for_inferior): Adjust.
7649 (handle_signal_stop): Delete deferred_step_ptid handling.
7650
7651 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7652
7653 PR gdb/15358
7654 * defs.h (sync_quit_force_run): New declaration.
7655 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7656 * event-top.c (async_sigterm_handler): New declaration.
7657 (async_sigterm_token): New variable.
7658 (async_init_signals): Create also async_sigterm_token.
7659 (async_sigterm_handler): New function.
7660 (sync_quit_force_run): New variable.
7661 (handle_sigterm): Replace quit_force call by other calls.
7662 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7663
7664 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7665
7666 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7667 offset into SPE pseudo registers.
7668
7669 2014-03-18 Pedro Alves <palves@redhat.com>
7670
7671 PR gdb/13860
7672 * inferior.h (print_stop_event): Declare.
7673 * infrun.c (print_stop_event): New, factored out from ...
7674 (normal_stop): ... this.
7675 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7676 of bpstat_print/print_stack_frame.
7677
7678 2014-03-17 Tom Tromey <tromey@redhat.com>
7679
7680 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7681
7682 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7683
7684 * ada-lang.c (decode_constrained_packed_array): Perform a
7685 minimal coercion for reference with coerce_ref instead of
7686 ada_coerce_ref.
7687
7688 2014-03-17 Tristan Gingold <gingold@adacore.com>
7689
7690 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7691 (darwin_solib_create_inferior_hook): Emit a warning if version
7692 is unhandled.
7693
7694 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7695
7696 * python/py-value.c (get_field_flag): Cast flag_name argument to
7697 PyObject_GetAttrString to support Python 2.4.
7698
7699 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7700
7701 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7702 (Global Maintainers): Remove Jan Kratochvil.
7703
7704 2014-03-14 Pedro Alves <palves@redhat.com>
7705
7706 * inferior.h (terminal_ours_for_output): Rename to ...
7707 (child_terminal_ours_for_output): ... this.
7708 (terminal_save_ours): Rename to ...
7709 (child_terminal_save_ours): ... this.
7710 (terminal_ours): Rename to ...
7711 (child_terminal_ours): ... this.
7712 (terminal_inferior): Rename to ...
7713 (child_terminal_inferior): ... this.
7714 (terminal_init_inferior): Rename to ...
7715 (child_terminal_init_inferior): ... this.
7716 (terminal_init_inferior_with_pgrp): Rename to ...
7717 (child_terminal_init_inferior_with_pgrp): ... this.
7718 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7719 (child_terminal_init_with_pgrp): ... this.
7720 (terminal_save_ours): Rename to ...
7721 (child_terminal_save_ours): ... this.
7722 (terminal_init_inferior): Rename to ...
7723 (child_terminal_init): ... this. Adjust.
7724 (terminal_inferior): Rename to ...
7725 (child_terminal_inferior): ... this.
7726 (terminal_ours_for_output): Rename to ...
7727 (child_terminal_ours_for_output): ... this. Adjust.
7728 (terminal_ours): Rename to ...
7729 (child_terminal_ours): ... this.
7730 (terminal_ours_1): Rename to ...
7731 (child_terminal_ours_1): ... this. Adjust.
7732 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7733 * windows-nat.c (do_initial_windows_stuff): Adjust.
7734 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7735 (gnu_terminal_init): ... this. Adjust.
7736 (gnu_target): Adjust.
7737 * inf-child.c (inf_child_target): Adjust.
7738
7739 2014-03-13 Doug Evans <xdje42@gmail.com>
7740
7741 PR guile/16612
7742 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7743 new eq?-hashtab.
7744
7745 2014-03-13 Doug Evans <xdje42@gmail.com>
7746
7747 * value.c (record_latest_value): Call release_value_or_incref
7748 instead of release_value.
7749
7750 2014-03-13 Pedro Alves <palves@redhat.com>
7751
7752 * procfs.c (procfs_target): Don't override to_shortname,
7753 to_longname or to_doc.
7754
7755 2014-03-13 Pedro Alves <palves@redhat.com>
7756
7757 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7758 Unix in user visible strings.
7759
7760 2014-03-12 Stan Shebs <stan@codesourcery.com>
7761
7762 * gdbtypes.h: Annotate comments for Doxygen, add a page
7763 block comment with some general info.
7764
7765 2014-03-12 Pedro Alves <palves@redhat.com>
7766
7767 * infcmd.c (prepare_execution_command): New function, factored out
7768 from several execution commands.
7769 (run_command_1, continue_command, step_1, jump_command)
7770 (signal_command, until_command, advance_command, finish_command)
7771 (attach_command): Use prepare_execution_command.
7772
7773 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7774
7775 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7776 (MAX_BPTS): Define.
7777 (MAX_WPTS): Define.
7778 (struct arm_linux_thread_points): Removed.
7779 (struct arm_linux_process_info): New.
7780 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7781 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7782 (arm_linux_find_breakpoints_by_tid): Removed.
7783 (struct arch_lwp_info): New.
7784 (arm_linux_find_process_pid): New functions.
7785 (arm_linux_add_process): New functions.
7786 (arm_linux_process_info_get): New functions.
7787 (arm_linux_forget_process): New function.
7788 (arm_linux_get_debug_reg_state): New function.
7789 (struct update_registers_data): New.
7790 (update_registers_callback): New function.
7791 (arm_linux_insert_hw_breakpoint1): Updated.
7792 (arm_linux_remove_hw_breakpoint1): Updated.
7793 (arm_linux_insert_hw_breakpoint): Updated.
7794 (arm_linux_remove_hw_breakpoint): Updated.
7795 (arm_linux_insert_watchpoint): Updated.
7796 (arm_linux_remove_watchpoint): Updated.
7797 (arm_linux_new_thread): Updated.
7798 (arm_linux_prepare_to_resume): New function.
7799 (arm_linux_new_fork): New function.
7800 (_initialize_arm_linux_nat): Updated.
7801
7802 2014-03-12 Pedro Alves <palves@redhat.com>
7803
7804 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7805
7806 2014-03-12 Tom Tromey <tromey@redhat.com>
7807
7808 * inf-child.c (return_zero): New function.
7809 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7810 * aix-thread.c (aix_thread_inferior_created): New function.
7811 (aix_thread_attach): Remove.
7812 (init_aix_thread_ops): Don't set to_attach.
7813 (_initialize_aix_thread): Register inferior_created observer.
7814 * corelow.c (init_core_ops): Don't set to_attach or
7815 to_create_inferior.
7816 * exec.c (init_exec_ops): Don't set to_attach or
7817 to_create_inferior.
7818 * infcmd.c (run_command_1): Use find_run_target. Make direct
7819 target calls.
7820 (attach_command): Use find_attach_target. Make direct target
7821 calls.
7822 * record-btrace.c (init_record_btrace_ops): Don't set
7823 to_create_inferior.
7824 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7825 Remove.
7826 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7827 set to_create_inferior.
7828 * target.c (complete_target_initialization): Add assertion.
7829 (target_create_inferior): Remove.
7830 (find_default_attach, find_default_create_inferior): Remove.
7831 (find_attach_target, find_run_target): New functions.
7832 (find_default_is_async_p, find_default_can_async_p)
7833 (target_supports_non_stop, target_attach): Remove.
7834 (init_dummy_target): Don't set to_create_inferior or
7835 to_supports_non_stop.
7836 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7837 TARGET_DEFAULT_FUNC.
7838 <to_create_inferior>: Add comment.
7839 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7840 TARGET_DEFAULT_RETURN.
7841 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7842 (find_attach_target, find_run_target): Declare.
7843 (target_create_inferior): Remove.
7844 (target_has_execution_1): Update comment.
7845 (target_supports_non_stop): Remove.
7846 * target-delegates.c: Rebuild.
7847
7848 2014-03-12 Pedro Alves <palves@redhat.com>
7849
7850 * inf-child.h: Update comment to not mention Unix.
7851
7852 2014-03-12 Pedro Alves <palves@redhat.com>
7853
7854 * inf-child.c: Update top comment to not mention Unix. Add
7855 generic comment describing how this target is meant to be used.
7856 (inf_child_post_attach, inf_child_post_startup_inferior)
7857 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7858 Unix in comment.
7859
7860 2014-03-12 Pedro Alves <palves@redhat.com>
7861
7862 * nto-procfs.c: Include inf-child.h.
7863 (procfs_ops): Delete global.
7864 (procfs_can_run): Delete method.
7865 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7866 target pointer instead of referencing procfs_ops.
7867 (procfs_prepare_to_store): Delete.
7868 (init_procfs_ops): Delete function.
7869 (procfs_target): New function, based on init_procfs_ops, but
7870 inherit inf_child_target.
7871 (_initialize_procfs): Use procfs_target.
7872
7873 2014-03-12 Pedro Alves <palves@redhat.com>
7874
7875 * windows-nat.c: Include inf-child.h.
7876 (windows_ops): Delete global.
7877 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7878 methods.
7879 (init_windows_ops): Delete function.
7880 (windows_target): New function, based on init_windows_ops, but
7881 inherit inf_child_target.
7882 (_initialize_windows_nat): Use windows_target. Install x86
7883 specific target methods here.
7884
7885 2014-03-10 Doug Evans <xdje42@gmail.com>
7886
7887 * guile/guile.c (call_initialize_gdb_module): New function.
7888 (initialize_guile): Replace call to scm_init_guile with call to
7889 scm_with_guile.
7890
7891 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7892
7893 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7894 in call to TYPE_CODE macro.
7895
7896 2014-03-10 Jerome Guitton <guitton@adacore.com>
7897
7898 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7899 Resolve tagged types to full view.
7900
7901 2014-03-10 Hui Zhu <hui@codesourcery.com>
7902
7903 * target.h (target_insert_breakpoint): Remove "hardware" from its
7904 comments.
7905
7906 2014-03-07 Doug Evans <dje@google.com>
7907
7908 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7909
7910 2014-03-07 Doug Evans <dje@google.com>
7911
7912 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7913 Remove unused local comp_dir_attr. Assert exactly one of
7914 stub_comp_unit_die, stub_comp_dir is non-NULL.
7915
7916 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7917
7918 * target.h (complete_target_initialization, add_target):
7919 Add comment.
7920
7921 2014-03-07 Pedro Alves <palves@redhat.com>
7922
7923 * go32-nat.c: Include inf-child.h.
7924 (go32_ops): Delete global.
7925 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7926 Delete methods.
7927 (go32_create_inferior): Push the passed in target pointer instead
7928 of referencing go32_ops.
7929 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7930 (go32_target): New function, based on init_go32_ops, but inherit
7931 inf_child_target.
7932 (_initialize_go32_nat): Use go32_target. Move parts of
7933 init_go32_ops here.
7934
7935 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7936
7937 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7938 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7939 SYMBOL_VALUE_ADDRESS.
7940 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7941
7942 2014-03-06 Yao Qi <yao@codesourcery.com>
7943
7944 * breakpoint.c (get_tracepoint_by_number): Remove argument
7945 optional_p. All callers updated. Adjust comments. Update
7946 output message.
7947 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7948
7949 2014-03-06 Yao Qi <yao@codesourcery.com>
7950
7951 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7952 early if get_number returns zero. Use 'p' instead of 'args'.
7953
7954 2014-03-06 Yao Qi <yao@codesourcery.com>
7955
7956 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7957 message.
7958
7959 2014-03-06 Yao Qi <yao@codesourcery.com>
7960
7961 PR breakpoints/16508
7962 * tracepoint.c (check_trace_running): New function.
7963 (trace_find_command): Move code to check_trace_running and
7964 call check_trace_running.
7965 (trace_find_pc_command): Likewise.
7966 (trace_find_tracepoint_command): Likewise.
7967 (trace_find_line_command): Likewise.
7968 (trace_find_range_command): Likewise.
7969 * tracepoint.h (check_trace_running): Likewise.
7970 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7971
7972 2014-03-06 Yao Qi <yao@codesourcery.com>
7973
7974 * target.h (struct target_ops) <to_traceframe_info>: Use
7975 TARGET_DEFAULT_NORETURN (tcomplain ()).
7976 * target-delegates.c: Regenerated.
7977
7978 2014-03-05 Pedro Alves <palves@redhat.com>
7979
7980 PR gdb/16575
7981 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7982 void. Update comment.
7983 (dcache_xfer_memory): Delete.
7984 (dcache_read_memory_partial): New, based on the read bits of
7985 dcache_xfer_memory.
7986 (dcache_update): Add status parameter. Use ULONGEST for len, and
7987 adjust. Discard cache lines if the reason for the update was
7988 error.
7989 * dcache.h (dcache_xfer_memory): Delete declaration.
7990 (dcache_read_memory_partial): New declaration.
7991 (dcache_update): Update prototype.
7992 * target.c (raw_memory_xfer_partial): Update the dcache here.
7993 (memory_xfer_partial_1): Don't handle dcache writes here.
7994
7995 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7996
7997 * remote-sim.c (gdbsim_load): Add const to prog.
7998
7999 2014-03-03 Tom Tromey <tromey@redhat.com>
8000
8001 * elfread.c (probe_key): Change to bfd_data.
8002 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8003 now per-BFD, not per-objfile.
8004 * stap-probe.c (stap_probe_destroy): Update comment.
8005 (handle_stap_probe): Allocate on the per-BFD obstack.
8006
8007 2014-03-03 Tom Tromey <tromey@redhat.com>
8008
8009 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8010 * breakpoint.c (create_longjmp_master_breakpoint): Use
8011 get_probe_address.
8012 (add_location_to_breakpoint, bkpt_probe_insert_location)
8013 (bkpt_probe_remove_location): Update.
8014 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8015 * elfread.c (elf_symfile_relocate_probe): Remove.
8016 (elf_probe_fns): Update.
8017 (insert_exception_resume_breakpoint): Change type of "probe"
8018 parameter to bound_probe.
8019 (check_exception_resume): Update.
8020 * objfiles.c (objfile_relocate1): Don't relocate probes.
8021 * probe.c (bound_probe_s): New typedef.
8022 (parse_probes): Use get_probe_address. Set sal's objfile.
8023 (find_probe_by_pc): Return a bound_probe.
8024 (collect_probes): Return a VEC(bound_probe_s).
8025 (compare_probes): Update.
8026 (gen_ui_out_table_header_info): Change type of "probes"
8027 parameter. Update.
8028 (info_probes_for_ops): Update.
8029 (get_probe_address): New function.
8030 (probe_safe_evaluate_at_pc): Update.
8031 * probe.h (struct probe_ops) <get_probe_address>: New field.
8032 <set_semaphore, clear_semaphore>: Add objfile parameter.
8033 (struct probe) <objfile>: Remove field.
8034 <arch>: New field.
8035 <address>: Update comment.
8036 (struct bound_probe): New.
8037 (find_probe_by_pc): Return a bound_probe.
8038 (get_probe_address): Declare.
8039 * solib-svr4.c (struct probe_and_action) <address>: New field.
8040 (hash_probe_and_action, equal_probe_and_action): Update.
8041 (register_solib_event_probe): Add address parameter.
8042 (solib_event_probe_at): Update.
8043 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8044 get_probe_address.
8045 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8046 (stap_get_probe_address): New function.
8047 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8048 (compile_probe_arg): Update.
8049 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8050 address.
8051 (handle_stap_probe): Don't relocate the probe.
8052 (stap_relocate): Remove.
8053 (stap_gen_info_probes_table_values): Update.
8054 (stap_probe_ops): Remove stap_relocate.
8055 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8056 (debug_sym_probe_fns): Update.
8057 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8058 * symtab.c (init_sal): Use memset.
8059 * symtab.h (struct symtab_and_line) <objfile>: New field.
8060 * tracepoint.c (start_tracing, stop_tracing): Update.
8061
8062 2014-03-03 Tom Tromey <tromey@redhat.com>
8063
8064 * probe.h (parse_probes, find_probe_by_pc)
8065 (find_probes_in_objfile): Fix comments.
8066
8067 2014-03-02 Doug Evans <xdje42@gmail.com>
8068
8069 * infrun.c (handle_signal_stop): Replace test for
8070 TARGET_WAITKIND_STOPPED with an assert.
8071
8072 2014-03-02 Doug Evans <xdje42@gmail.com>
8073
8074 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8075
8076 2014-03-02 Doug Evans <xdje42@gmail.com>
8077
8078 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8079
8080 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8081
8082 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8083
8084 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8085
8086 * i386obsd-nat.c: Include "obsd-nat.h".
8087 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8088 add_target.
8089 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8090
8091 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8092
8093 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8094
8095 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8096
8097 * mips64obsd-nat.c: Include "obsd-nath".
8098 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8099 add_target
8100 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8101
8102 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8103
8104 * amd64obsd-nat.c: Include "obsd-nat,h.
8105 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8106 add_target.
8107 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8108
8109 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8110
8111 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8112 (find_overload_match): Update call to find_oload_champ.
8113 (find_oload_champ_namespace_loop): Likewise
8114
8115 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8116
8117 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8118
8119 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8120 * config/sparc/obsd64.mh: New file.
8121 * sparc64obsd-nat.c: New file.
8122
8123 * obsd-nat.h: New file.
8124 * obsd-nat.c: New file.
8125 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8126 (ALLDEPFILES): Add obsd-nat.c.
8127
8128 2014-02-28 Tom Tromey <tromey@redhat.com>
8129
8130 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8131 * cli-out.h (cli_ui_out_impl): Now const.
8132 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8133 * ui-out.c (struct ui_out) <impl>: Now const.
8134 (default_ui_out_impl): Now const.
8135 (ui_out_new): Make 'impl' parameter const.
8136 * ui-out.h (ui_out_new): Update.
8137
8138 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8139
8140 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8141
8142 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8143
8144 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8145
8146 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8147
8148 Additional PR 8882 fix.
8149 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8150
8151 2014-02-27 Pedro Alves <palves@redhat.com>
8152
8153 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8154 isn't set.
8155
8156 2014-02-27 Pedro Alves <palves@redhat.com>
8157
8158 PR 12702
8159 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8160 * nat/linux-waitpid.c: Include string.h.
8161 (status_to_str): Moved here and made extern.
8162 * nat/linux-waitpid.h (status_to_str): New declaration.
8163
8164 2014-02-27 Hui Zhu <hui@codesourcery.com>
8165
8166 PR 12702
8167 * infrun.c (ptid_match): Move ...
8168 * common/ptid.c (ptid_match): ... here.
8169 * inferior.h (ptid_match): Move ...
8170 * common/ptid.h (ptid_match): ... here.
8171
8172 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8173
8174 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8175 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8176 gdb_target_obs.
8177
8178 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8179
8180 * obsd-tdep.c (obsd_auxv_parse): New function.
8181 (obsd_init_abi): Set auxv_parse.
8182
8183 * gdbarch.sh (auxv_parse): New.
8184 * gdbarch.h: Regenerated.
8185 * gdbarch.c: Regenerated.
8186 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8187
8188 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8189
8190 * guile/scm-value.c (gdbscm_history_append_x): New function.
8191 (value_functions): Add it.
8192
8193 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8194
8195 * dwarf2read.c (attr_value_as_address): New function.
8196 (dwarf2_find_base_address, read_call_site_scope): Use
8197 attr_value_as_address in place of DW_ADDR.
8198 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8199 the low and high addresses. Slight rework of the handling
8200 of the high pc being a constant form, and limit it to
8201 DWARF verson 4 or higher.
8202 (dwarf2_record_block_ranges): Likewise.
8203 (read_partial_die): Likewise.
8204 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8205
8206 2014-02-26 Tom Tromey <tromey@redhat.com>
8207
8208 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8209
8210 2014-02-26 Tom Tromey <tromey@redhat.com>
8211
8212 * elfread.c (elf_read_minimal_symbols): Return early if
8213 minimal symbols have already been read. Add "ei" parameter.
8214 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8215 * minsyms.c (prim_record_minimal_symbol_full): Update.
8216 * objfiles.h (struct objstats) <n_minsyms>: Move...
8217 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8218 * symmisc.c (print_objfile_statistics): Update.
8219
8220 2014-02-26 Tom Tromey <tromey@redhat.com>
8221
8222 * elfread.c (elf_read_minimal_symbols): New function, from
8223 elf_symfile_read.
8224 (elf_symfile_read): Call it.
8225
8226 2014-02-26 Tom Tromey <tromey@redhat.com>
8227
8228 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8229 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8230 (lookup_minimal_symbol_solib_trampoline)
8231 (lookup_minimal_symbol_by_pc_section_1)
8232 (lookup_minimal_symbol_and_objfile): Update.
8233 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8234 Don't allocate a minimal symbol if minsyms have already been read.
8235 (build_minimal_symbol_hash_tables): Update.
8236 (install_minimal_symbols): Do nothing if minsyms already read.
8237 Use the per-BFD obstack.
8238 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8239 * objfiles.c (allocate_objfile): Call
8240 terminate_minimal_symbol_table later.
8241 (have_minimal_symbols): Update.
8242 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8243 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8244 Move from struct objfile.
8245 <minsyms_read>: New field.
8246 (struct objfile) <msymbols, minimal_symbol_count,
8247 msymbol_hash, msymbol_demangled_hash>: Move.
8248 (ALL_OBJFILE_MSYMBOLS): Update.
8249 * symfile.c (read_symbols): Set minsyms_read.
8250 (reread_symbols): Update.
8251 * symmisc.c (dump_objfile, dump_msymbols): Update.
8252
8253 2014-02-26 Tom Tromey <tromey@redhat.com>
8254
8255 * minsyms.c (msymbols_sort): Remove.
8256 * minsyms.h (msymbols_sort): Remove.
8257 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8258 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8259 * elfread.c (elf_symtab_read): Don't add section offsets.
8260 * xcoffread.c (record_minimal_symbol): Don't add section offset
8261 to minimal symbol address.
8262 * somread.c (text_offset, data_offset): Remove.
8263 (som_symtab_read): Don't add section offsets to minimal symbol
8264 addresses.
8265 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8266 Don't add section offsets to minimal symbols.
8267 * coffread.c (coff_symtab_read): Don't add section offsets
8268 to minimal symbol addresses.
8269 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8270 to minimal symbol addresses.
8271 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8272 section offset to minimal symbol addresses.
8273 * mdebugread.c (parse_partial_symbols): Don't add section
8274 offset to minimal symbol addresses.
8275 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8276 offset to minimal symbol addresses.
8277
8278 2014-02-26 Tom Tromey <tromey@redhat.com>
8279
8280 * ada-lang.c (ada_main_name): Update.
8281 (ada_add_standard_exceptions): Update.
8282 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8283 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8284 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8285 * auxv.c (ld_so_xfer_auxv): Update.
8286 * avr-tdep.c (avr_scan_prologue): Update.
8287 * ax-gdb.c (gen_var_ref): Update.
8288 * blockframe.c (get_pc_function_start)
8289 (find_pc_partial_function_gnu_ifunc): Update.
8290 * breakpoint.c (create_overlay_event_breakpoint)
8291 (create_longjmp_master_breakpoint)
8292 (create_std_terminate_master_breakpoint)
8293 (create_exception_master_breakpoint): Update.
8294 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8295 * c-valprint.c (c_val_print): Update.
8296 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8297 * common/agent.c (agent_look_up_symbols): Update.
8298 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8299 * dwarf2loc.c (call_site_to_target_addr): Update.
8300 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8301 * elfread.c (elf_gnu_ifunc_record_cache)
8302 (elf_gnu_ifunc_resolve_by_got): Update.
8303 * findvar.c (default_read_var_value): Update.
8304 * frame.c (inside_main_func): Update.
8305 * frv-tdep.c (frv_frame_this_id): Update.
8306 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8307 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8308 Update.
8309 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8310 (hppa_hpux_find_dummy_bpaddr): Update.
8311 * hppa-tdep.c (hppa_symbol_address): Update.
8312 * infcmd.c (until_next_command): Update.
8313 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8314 Update.
8315 * linespec.c (minsym_found, add_minsym): Update.
8316 * linux-nat.c (get_signo): Update.
8317 * linux-thread-db.c (inferior_has_bug): Update.
8318 * m32c-tdep.c (m32c_return_value)
8319 (m32c_m16c_address_to_pointer): Update.
8320 * m32r-tdep.c (m32r_frame_this_id): Update.
8321 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8322 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8323 * maint.c (maintenance_translate_address): Update.
8324 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8325 (frob_address): New function.
8326 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8327 frob_address. Rename parameter to "pc_in".
8328 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8329 addresses.
8330 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8331 Update.
8332 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8333 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8334 * objc-lang.c (find_objc_msgsend): Update.
8335 * objfiles.c (objfile_relocate1): Update.
8336 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8337 * p-valprint.c (pascal_val_print): Update.
8338 * parse.c (write_exp_msymbol): Update.
8339 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8340 (ppc_elfv2_skip_entrypoint): Update.
8341 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8342 * printcmd.c (build_address_symbolic, msym_info)
8343 (address_info): Update.
8344 * proc-service.c (ps_pglobal_lookup): Update.
8345 * psymtab.c (find_pc_sect_psymtab_closer)
8346 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8347 Change msymbol parameter to bound_minimal_symbol.
8348 * ravenscar-thread.c (get_running_thread_id): Update.
8349 * remote.c (remote_check_symbols): Update.
8350 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8351 address.
8352 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8353 * solib-dsbt.c (lm_base): Update.
8354 * solib-frv.c (lm_base, main_got): Update.
8355 * solib-irix.c (locate_base): Update.
8356 * solib-som.c (som_solib_create_inferior_hook)
8357 (link_map_start): Update.
8358 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8359 * solib-svr4.c (elf_locate_base, enable_break): Update.
8360 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8361 (flush_ea_cache): Update.
8362 * stabsread.c (define_symbol, scan_file_globals): Update.
8363 * stack.c (find_frame_funname): Update.
8364 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8365 (debug_qf_find_pc_sect_symtab): Update.
8366 * symfile.c (simple_read_overlay_table)
8367 (simple_overlay_update): Update.
8368 * symfile.h (struct quick_symbol_functions)
8369 <find_pc_sect_symtab>: Change type of msymbol to
8370 bound_minimal_symbol.
8371 * symmisc.c (dump_msymbols): Update.
8372 * symtab.c (find_pc_sect_symtab_via_partial)
8373 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8374 (search_symbols, print_msymbol_info): Update.
8375 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8376 (MSYMBOL_VALUE_ADDRESS): Redefine.
8377 (BMSYMBOL_VALUE_ADDRESS): New macro.
8378 * tracepoint.c (scope_info): Update.
8379 * tui/tui-disasm.c (tui_find_disassembly_address)
8380 (tui_get_begin_asm_address): Update.
8381 * valops.c (find_function_in_inferior): Update.
8382 * value.c (value_static_field, value_fn_field): Update.
8383
8384 2014-02-26 Tom Tromey <tromey@redhat.com>
8385
8386 * ada-lang.c (ada_update_initial_language): Update.
8387 (ada_main_name, ada_has_this_exception_support): Update.
8388 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8389 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8390 * arm-tdep.c (arm_skip_stub): Update.
8391 * auxv.c (ld_so_xfer_auxv): Update.
8392 * avr-tdep.c (avr_scan_prologue): Update.
8393 * ax-gdb.c (gen_var_ref): Update.
8394 * breakpoint.c (struct breakpoint_objfile_data)
8395 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8396 type to bound_minimal_symbol.
8397 (create_overlay_event_breakpoint)
8398 (create_longjmp_master_breakpoint)
8399 (create_std_terminate_master_breakpoint)
8400 (create_exception_master_breakpoint): Update.
8401 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8402 * c-exp.y (classify_name): Update.
8403 * coffread.c (coff_symfile_read): Update.
8404 * common/agent.c (agent_look_up_symbols): Update.
8405 * d-lang.c (d_main_name): Update.
8406 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8407 * dec-thread.c (enable_dec_thread): Update.
8408 * dwarf2loc.c (call_site_to_target_addr): Update.
8409 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8410 * eval.c (evaluate_subexp_standard): Update.
8411 * findvar.c (struct minsym_lookup_data) <result>: Change type
8412 to bound_minimal_symbol.
8413 <objfile>: Remove.
8414 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8415 * frame.c (inside_main_func): Update.
8416 * frv-tdep.c (frv_frame_this_id): Update.
8417 * gcore.c (call_target_sbrk): Update.
8418 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8419 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8420 Update.
8421 * go-lang.c (go_main_name): Update.
8422 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8423 (hppa_hpux_find_import_stub_for_addr): Update.
8424 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8425 Update. Change return type.
8426 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8427 type.
8428 * jit.c (jit_breakpoint_re_set_internal): Update.
8429 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8430 Update.
8431 * linux-nat.c (get_signo): Update.
8432 * linux-thread-db.c (inferior_has_bug): Update
8433 * m32c-tdep.c (m32c_return_value)
8434 (m32c_m16c_address_to_pointer): Update.
8435 * m32r-tdep.c (m32r_frame_this_id): Update.
8436 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8437 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8438 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8439 lookup_minimal_symbol. Change return type.
8440 (lookup_minimal_symbol): Remove.
8441 (lookup_bound_minimal_symbol): Update.
8442 (lookup_minimal_symbol_text): Change return type.
8443 (lookup_minimal_symbol_solib_trampoline): Change return type.
8444 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8445 (lookup_minimal_symbol_solib_trampoline): Change return type.
8446 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8447 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8448 (value_nsstring, find_imps): Update.
8449 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8450 * p-lang.c (pascal_main_name): Update.
8451 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8452 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8453 * proc-service.c (ps_pglobal_lookup): Update.
8454 * ravenscar-thread.c (get_running_thread_msymbol): Change
8455 return type.
8456 (has_ravenscar_runtime, get_running_thread_id): Update.
8457 * remote.c (remote_check_symbols): Update.
8458 * sol-thread.c (ps_pglobal_lookup): Update.
8459 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8460 * solib-dsbt.c (lm_base): Update.
8461 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8462 Update.
8463 * solib-irix.c (locate_base): Update.
8464 * solib-som.c (som_solib_create_inferior_hook)
8465 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8466 Update.
8467 * solib-spu.c (spu_enable_break): Update.
8468 * solib-svr4.c (elf_locate_base, enable_break): Update.
8469 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8470 (flush_ea_cache): Update.
8471 * stabsread.c (define_symbol): Update.
8472 * symfile.c (simple_read_overlay_table): Update.
8473 * symtab.c (find_pc_sect_line): Update.
8474 * tracepoint.c (scope_info): Update.
8475 * tui-disasm.c (tui_get_begin_asm_address): Update.
8476 * value.c (value_static_field): Update.
8477
8478 2014-02-26 Tom Tromey <tromey@redhat.com>
8479
8480 * minsyms.c (prim_record_minimal_symbol_full): Use
8481 SET_MSYMBOL_VALUE_ADDRESS.
8482 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8483 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8484 SET_MSYMBOL_VALUE_ADDRESS.
8485 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8486 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8487
8488 2014-02-26 Tom Tromey <tromey@redhat.com>
8489
8490 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8491 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8492 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8493 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8494 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8495 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8496 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8497 * ada-lang.c (ada_main_name): Update.
8498 (ada_lookup_simple_minsym): Update.
8499 (ada_make_symbol_completion_list): Update.
8500 (ada_add_standard_exceptions): Update.
8501 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8502 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8503 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8504 * arm-tdep.c (skip_prologue_function): Update.
8505 (arm_skip_stack_protector, arm_skip_stub): Update.
8506 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8507 (arm_wince_skip_main_prologue): Update.
8508 * auxv.c (ld_so_xfer_auxv): Update.
8509 * avr-tdep.c (avr_scan_prologue): Update.
8510 * ax-gdb.c (gen_var_ref): Update.
8511 * block.c (call_site_for_pc): Update.
8512 * blockframe.c (get_pc_function_start): Update.
8513 (find_pc_partial_function_gnu_ifunc): Update.
8514 * breakpoint.c (create_overlay_event_breakpoint): Update.
8515 (create_longjmp_master_breakpoint): Update.
8516 (create_std_terminate_master_breakpoint): Update.
8517 (create_exception_master_breakpoint): Update.
8518 (resolve_sal_pc): Update.
8519 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8520 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8521 Update.
8522 * c-valprint.c (c_val_print): Update.
8523 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8524 * coffread.c (coff_symfile_read): Update.
8525 * common/agent.c (agent_look_up_symbols): Update.
8526 * dbxread.c (find_stab_function_addr): Update.
8527 (end_psymtab): Update.
8528 * dwarf2loc.c (call_site_to_target_addr): Update.
8529 (func_verify_no_selftailcall): Update.
8530 (tailcall_dump): Update.
8531 (call_site_find_chain_1): Update.
8532 (dwarf_expr_reg_to_entry_parameter): Update.
8533 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8534 (elf_gnu_ifunc_resolve_by_got): Update.
8535 * f-valprint.c (info_common_command): Update.
8536 * findvar.c (read_var_value): Update.
8537 * frame.c (get_prev_frame_1): Update.
8538 (inside_main_func): Update.
8539 * frv-tdep.c (frv_skip_main_prologue): Update.
8540 (frv_frame_this_id): Update.
8541 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8542 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8543 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8544 (gnuv3_skip_trampoline): Update.
8545 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8546 (hppa64_hpux_in_solib_call_trampoline): Update.
8547 (hppa_hpux_skip_trampoline_code): Update.
8548 (hppa64_hpux_search_dummy_call_sequence): Update.
8549 (hppa_hpux_find_import_stub_for_addr): Update.
8550 (hppa_hpux_find_dummy_bpaddr): Update.
8551 * hppa-tdep.c (hppa_symbol_address)
8552 (hppa_lookup_stub_minimal_symbol): Update.
8553 * i386-tdep.c (i386_skip_main_prologue): Update.
8554 (i386_pe_skip_trampoline_code): Update.
8555 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8556 * infcall.c (get_function_name): Update.
8557 * infcmd.c (until_next_command): Update.
8558 * jit.c (jit_breakpoint_re_set_internal): Update.
8559 (jit_inferior_init): Update.
8560 * linespec.c (minsym_found): Update.
8561 (add_minsym): Update.
8562 * linux-fork.c (info_checkpoints_command): Update.
8563 * linux-nat.c (get_signo): Update.
8564 * linux-thread-db.c (inferior_has_bug): Update.
8565 * m32c-tdep.c (m32c_return_value): Update.
8566 (m32c_m16c_address_to_pointer): Update.
8567 (m32c_m16c_pointer_to_address): Update.
8568 * m32r-tdep.c (m32r_frame_this_id): Update.
8569 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8570 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8571 * maint.c (maintenance_translate_address): Update.
8572 * minsyms.c (add_minsym_to_hash_table): Update.
8573 (add_minsym_to_demangled_hash_table): Update.
8574 (msymbol_objfile): Update.
8575 (lookup_minimal_symbol): Update.
8576 (iterate_over_minimal_symbols): Update.
8577 (lookup_minimal_symbol_text): Update.
8578 (lookup_minimal_symbol_by_pc_name): Update.
8579 (lookup_minimal_symbol_solib_trampoline): Update.
8580 (lookup_minimal_symbol_by_pc_section_1): Update.
8581 (lookup_minimal_symbol_and_objfile): Update.
8582 (prim_record_minimal_symbol_full): Update.
8583 (compare_minimal_symbols): Update.
8584 (compact_minimal_symbols): Update.
8585 (build_minimal_symbol_hash_tables): Update.
8586 (install_minimal_symbols): Update.
8587 (terminate_minimal_symbol_table): Update.
8588 (find_solib_trampoline_target): Update.
8589 (minimal_symbol_upper_bound): Update.
8590 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8591 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8592 (mips_skip_pic_trampoline_code): Update.
8593 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8594 * objc-lang.c (selectors_info): Update.
8595 (classes_info): Update.
8596 (find_methods): Update.
8597 (find_imps): Update.
8598 (find_objc_msgsend): Update.
8599 * objfiles.c (objfile_relocate1): Update.
8600 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8601 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8602 * p-valprint.c (pascal_val_print): Update.
8603 * parse.c (write_exp_msymbol): Update.
8604 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8605 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8606 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8607 * printcmd.c (build_address_symbolic): Update.
8608 (sym_info): Update.
8609 (address_info): Update.
8610 * proc-service.c (ps_pglobal_lookup): Update.
8611 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8612 (find_pc_sect_psymtab): Update.
8613 * python/py-framefilter.c (py_print_frame): Update.
8614 * ravenscar-thread.c (get_running_thread_id): Update.
8615 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8616 Update.
8617 * remote.c (remote_check_symbols): Update.
8618 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8619 (rs6000_skip_trampoline_code): Update.
8620 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8621 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8622 * solib-dsbt.c (lm_base): Update.
8623 * solib-frv.c (lm_base): Update.
8624 (main_got): Update.
8625 * solib-irix.c (locate_base): Update.
8626 * solib-som.c (som_solib_create_inferior_hook): Update.
8627 (som_solib_desire_dynamic_linker_symbols): Update.
8628 (link_map_start): Update.
8629 * solib-spu.c (spu_enable_break): Update.
8630 (ocl_enable_break): Update.
8631 * solib-svr4.c (elf_locate_base): Update.
8632 (enable_break): Update.
8633 * spu-tdep.c (spu_get_overlay_table): Update.
8634 (spu_catch_start): Update.
8635 (flush_ea_cache): Update.
8636 * stabsread.c (define_symbol): Update.
8637 (scan_file_globals): Update.
8638 * stack.c (find_frame_funname): Update.
8639 (frame_info): Update.
8640 * symfile.c (simple_read_overlay_table): Update.
8641 (simple_overlay_update): Update.
8642 * symmisc.c (dump_msymbols): Update.
8643 * symtab.c (fixup_section): Update.
8644 (find_pc_sect_line): Update.
8645 (skip_prologue_sal): Update.
8646 (search_symbols): Update.
8647 (print_msymbol_info): Update.
8648 (rbreak_command): Update.
8649 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8650 (completion_list_objc_symbol): Update.
8651 (default_make_symbol_completion_list_break_on): Update.
8652 * tracepoint.c (scope_info): Update.
8653 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8654 (tui_get_begin_asm_address): Update.
8655 * valops.c (find_function_in_inferior): Update.
8656 * value.c (value_static_field): Update.
8657 (value_fn_field): Update.
8658
8659 2014-02-26 Tom Tromey <tromey@redhat.com>
8660
8661 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8662 bound minimal symbols. Move code that knows about minsym
8663 table layout...
8664 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8665 function.
8666 * minsyms.h (minimal_symbol_upper_bound): Declare.
8667 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8668 minimal_symbol_upper_bound.
8669
8670 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8671
8672 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8673 Use the type's name if its basic type does not have a tag.
8674
8675 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8676
8677 * dwarf2read.c (read_subrange_type): Add comment.
8678
8679 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8680
8681 * dwarf2read.c (update_enumeration_type_from_children): New
8682 function, mostly extracted from process_structure_scope.
8683 (read_enumeration_type): Call update_enumeration_type_from_children.
8684 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8685 and flag_flag_enum fields.
8686
8687 2014-02-26 Pedro Alves <palves@redhat.com>
8688
8689 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8690 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8691 to_xfer_partial method.
8692
8693 2014-02-26 Pedro Alves <palves@redhat.com>
8694
8695 * target.c (complete_target_initialization): Don't install
8696 default_xfer_partial as to_xfer_partial hook.
8697 (nomemory): Delete.
8698 (update_current_target): Don't INHERIT nor de_fault
8699 deprecated_xfer_memory. Delete de_fault macro.
8700 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8701 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8702 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8703 field.
8704
8705 2014-02-26 Pedro Alves <palves@redhat.com>
8706
8707 * go32-nat.c (my_write_child): New function.
8708 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8709 (go32_xfer_partial): New function.
8710 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8711 Instead install a to_xfer_partial hook.
8712
8713 2014-02-26 Pedro Alves <palves@redhat.com>
8714
8715 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8716 to_xfer_partial helper. Rewrite.
8717 (procfs_xfer_partial): New function.
8718 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8719 Install a to_xfer_partial hook.
8720
8721 2014-02-26 Pedro Alves <palves@redhat.com>
8722
8723 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8724 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8725 (m32r_xfer_partial): New function.
8726 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8727 Install a to_xfer_partial hook.
8728
8729 2014-02-26 Pedro Alves <palves@redhat.com>
8730
8731 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8732 helper.
8733 (mips_xfer_partial): New function.
8734 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8735 hook. Install a to_xfer_partial hook.
8736
8737 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8738
8739 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8740 * gdbtypes.c (create_array_type_with_stride): New function,
8741 renaming create_array_type, but with an added parameter
8742 called "bit_stride".
8743 (create_array_type): Re-implement using
8744 create_array_type_with_stride.
8745 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8746 and DW_AT_bit_stride attributes.
8747
8748 2014-02-26 Pedro Alves <palves@redhat.com>
8749
8750 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8751 task-specific breakpoints.
8752
8753 2014-02-25 Pedro Alves <palves@redhat.com>
8754
8755 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8756 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8757
8758 2014-02-25 Stan Shebs <stan@codesourcery.com>
8759
8760 * defs.h: Annotate comments for Doxygen.
8761
8762 2014-02-25 Tom Tromey <tromey@redhat.com>
8763
8764 * target.h (target_ignore): Don't declare.
8765 * target.c (target_ignore): Remove.
8766
8767 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8768
8769 PR gdb/16626
8770 * auto-load.c (auto_load_objfile_script_1): Change filename to
8771 debugfile.
8772
8773 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8774
8775 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8776 documentation. Adjust prototype to match the target_ops
8777 to_xfer_partial method. Adjust implementation accordingly.
8778
8779 2014-02-25 Hui Zhu <hui@codesourcery.com>
8780
8781 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8782 to_traceframe_info.
8783
8784 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8785
8786 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8787 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8788 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8789 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8790 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8791 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8792 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8793 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8794 New constants.
8795 (rl78_register_type): Use a data pointer type for SP and
8796 new pseudo registers mentioned above. Use a 16 bit integer
8797 type for all other register pairs.
8798 (rl78_register_name, rl78_g10_register_name): Update for
8799 new pseudo registers.
8800 (rl78_pseudo_register_read): Likewise.
8801 (rl78_pseudo_register_write): Likewise.
8802 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8803 to the newly added pseudo registers.
8804
8805 2014-02-24 Doug Evans <dje@google.com>
8806
8807 * value.c (record_latest_value): Fix comment.
8808 * printcmd.c (print_command_1): Remove code to handle -1 return from
8809 record_latest_value.
8810
8811 2014-02-24 Pedro Alves <palves@redhat.com>
8812
8813 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8814 deprecated_xfer_memory hook.
8815 (procfs_xfer_partial): Call procfs_xfer_memory instead
8816 of the deprecated_xfer_memory target hook.
8817 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8818 helper.
8819
8820 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8821
8822 * windows-nat.c (windows_xfer_shared_libraries): Return
8823 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8824 requested object is TARGET_OBJECT_LIBRARIES.
8825
8826 2014-02-24 Yao Qi <yao@codesourcery.com>
8827
8828 * target.h (enum target_xfer_status)
8829 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8830 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8831 explicitly. New.
8832 * corefile.c (memory_error_message): User updated.
8833 * exec.c (section_table_read_available_memory): Likewise.
8834 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8835 * target.c (target_xfer_status_to_string): Likewise.
8836 (raw_memory_xfer_partial): Likewise.
8837 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8838 * valops.c (read_value_memory): Likewise.
8839 * exec.h: Update comments.
8840
8841 2014-02-24 Yao Qi <yao@codesourcery.com>
8842
8843 * target.c (target_xfer_status_to_string): Rename argument err
8844 to status.
8845 * target.h (target_xfer_status_to_string): Update declaration.
8846 Replace target_xfer_error_to_string with
8847 target_xfer_status_to_string in comment.
8848
8849 2014-02-24 Yao Qi <yao@codesourcery.com>
8850
8851 * mips-linux-nat.c (super_close): Update its type.
8852 (mips_linux_close): Pass 'self' to super_close.
8853
8854 2014-02-24 Yao Qi <yao@codesourcery.com>
8855
8856 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8857 * corefile.c (read_memory): Adjusted.
8858 * target.c (target_write_with_progress): Adjusted.
8859
8860 2014-02-23 Yao Qi <yao@codesourcery.com>
8861
8862 Revert two patches:
8863
8864 2013-10-25 Yao Qi <yao@codesourcery.com>
8865
8866 * remote.c (remote_traceframe_info): Return early if
8867 traceframe is not selected.
8868
8869 2013-07-19 Yao Qi <yao@codesourcery.com>
8870
8871 * target.c (update_current_target): Change the default action
8872 of 'to_traceframe_info' from tcomplain to return_zero.
8873 * target.h (struct target_ops) <to_traceframe_info>: Add more
8874 comments.
8875
8876 2014-02-23 Yao Qi <yao@codesourcery.com>
8877
8878 * valops.c (read_value_memory): Rewrite it. Call
8879 target_xfer_partial in a loop.
8880 * exec.h (section_table_available_memory): Remove declaration.
8881 Move comments to ...
8882 * exec.c (section_table_available_memory): ... here. Make it
8883 static.
8884
8885 2014-02-23 Yao Qi <yao@codesourcery.com>
8886
8887 * exec.c (section_table_read_available_memory): New function.
8888 * exec.h (section_table_read_available_memory): Declare.
8889 * ctf.c (ctf_xfer_partial): Call
8890 section_table_read_available_memory.
8891 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8892
8893 2014-02-23 Yao Qi <yao@codesourcery.com>
8894
8895 * ctf.c (ctf_xfer_partial): Move code to ...
8896 * exec.c (exec_read_partial_read_only): ... it. New function.
8897 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8898 * tracefile.c: Include "exec.h".
8899 * exec.h (exec_read_partial_read_only): Declare.
8900
8901 2014-02-23 Yao Qi <yao@codesourcery.com>
8902
8903 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8904 (tfile_has_memory): Remove.
8905 (init_tfile_ops): Don't set fields to_has_all_memory and
8906 to_has_memory of tfile_ops.
8907 * tracefile.c (tracefile_has_all_memory): New function.
8908 (tracefile_has_memory): New function.
8909 (init_tracefile_ops): Initialize fields to_has_all_memory and
8910 to_has_memory of 'ops'.
8911
8912 2014-02-23 Yao Qi <yao@codesourcery.com>
8913
8914 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8915 (ctf_thread_alive, ctf_get_trace_status): Remove.
8916 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8917 init_tracefile_ops.
8918 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8919 (tfile_has_stack, tfile_has_registers): Remove.
8920 (tfile_thread_alive): Remove.
8921 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8922 init_tracefile_ops.
8923 * tracefile.c (tracefile_has_stack): New function.
8924 (tracefile_has_registers): New function.
8925 (tracefile_thread_alive): New function.
8926 (tracefile_get_trace_status): New function.
8927 (init_tracefile_ops): New function.
8928 * tracefile.h (init_tracefile_ops): Declare.
8929
8930 2014-02-23 Yao Qi <yao@codesourcery.com>
8931
8932 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8933 (O_LARGEFILE): Likewise.
8934 (tfile_ops): Likewise.
8935 (TRACE_HEADER_SIZE): Likewise.
8936 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8937 (cur_data_size): Likewise.
8938 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8939 (tfile_close, tfile_files_info): Likewise.
8940 (tfile_get_trace_status): Likewise.
8941 (tfile_get_tracepoint_status): Likewise.
8942 (tfile_get_traceframe_address): Likewise.
8943 (tfile_trace_find, match_blocktype): Likewise.
8944 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8945 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8946 (tfile_get_trace_state_variable_value): Likewise.
8947 (tfile_has_all_memory, tfile_has_memory): Likewise.
8948 (tfile_has_stack, tfile_has_registers): Likewise.
8949 (tfile_thread_alive, build_traceframe_info): Likewise.
8950 (tfile_traceframe_info, init_tfile_ops): Likewise.
8951 (_initialize_tracepoint): Don't call init_tfile_ops
8952 and add_target_with_completer.
8953 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8954 exec.h, completer.h and filenames.h.
8955 (_initialize_tracefile_tfile): New function.
8956
8957 2014-02-23 Yao Qi <yao@codesourcery.com>
8958
8959 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8960 tracefile-tfile.o.
8961 (HFILES_NO_SRCDIR): Add tracefile.h.
8962 * ctf.c: Include "tracefile.h".
8963 * tracefile.h: New file.
8964 * tracefile.c: New file
8965 * tracefile-tfile.c: New file.
8966 * tracepoint.c: Include "tracefile.h".
8967 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8968 (stop_reason_names): Add const.
8969 (trace_file_writer_xfree): Move it to tracefile.c.
8970 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8971 (trace_save_ctf): Likewise.
8972 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8973 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8974 (tfile_write_header, tfile_write_regblock_type): Likewise.
8975 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8976 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8977 (tfile_write_raw_data, tfile_end): Likewise.
8978 (tfile_trace_file_writer_new): Likewise.
8979 (free_uploaded_tp): Make it extern.
8980 (free_uploaded_tsv): Make it extern.
8981 (_initialize_tracepoint): Move code to register command 'tsave'
8982 to tracefile.c.
8983 * tracepoint.h (stop_reason_names): Declare.
8984 (struct trace_frame_write_ops): Move it to tracefile.h.
8985 (struct trace_file_write_ops): Likewise.
8986 (struct trace_file_writer): Likewise.
8987 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8988
8989 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8990
8991 PR gdb/16594
8992 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8993 process name.
8994 (get_cores_used_by_process): New parameter num_cores, use it.
8995 (linux_xfer_osdata_processes): Pass num_cores to it.
8996 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8997 process name.
8998
8999 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9000
9001 * target.c (memory_xfer_partial): Fix length arg in call to
9002 breakpoint_xfer_memory.
9003
9004 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9005
9006 PR tdep/16397
9007 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9008 number comes after the + or - signs. Adjust length of register
9009 name to be extracted.
9010
9011 2014-02-20 Tom Tromey <tromey@redhat.com>
9012
9013 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9014 (ada_varobj_ops): Mark "extern".
9015
9016 2014-02-20 Tom Tromey <tromey@redhat.com>
9017
9018 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9019
9020 2014-02-20 Doug Evans <xdje42@gmail.com>
9021
9022 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9023 All callers updated.
9024 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9025 All callers updated.
9026 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9027 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9028
9029 2014-02-20 lin zuojian <manjian2006@gmail.com>
9030 Joel Brobecker <brobecker@adacore.com>
9031 Doug Evans <xdje42@gmail.com>
9032
9033 PR symtab/16581
9034 * dwarf2read.c (struct die_info): New member in_process.
9035 (reset_die_in_process): New function.
9036 (process_die): Set it at the start, reset when returning.
9037 (inherit_abstract_dies): Only call process_die if origin_child_die
9038 not already being processed.
9039
9040 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9041
9042 * windows-nat.c (handle_unload_dll): Add function documentation.
9043 (do_initial_windows_stuff): Add comment explaining why we wait
9044 until after inferior initialization has finished before
9045 processing all DLLs.
9046
9047 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9048
9049 * windows-nat.c (get_module_name): Delete.
9050 (windows_get_exec_module_filename): New function, mostly
9051 inspired from get_module_name.
9052 (windows_pid_to_exec_file): Replace call to get_module_name
9053 by call to windows_get_exec_module_filename.
9054
9055 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9056
9057 * windows-nat.c (handle_load_dll): Rewrite this function's
9058 introductory comment. Remove code using get_module_name
9059 to get the DLL's name.
9060
9061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9062
9063 * windows-nat.c (get_windows_debug_event): Ignore
9064 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9065 if windows_initialization_done == 0.
9066 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9067 Adjust implementation to always load all DLLs.
9068 (do_initial_windows_stuff): Replace call to
9069 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9070
9071 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9072
9073 * windows-nat.c (_initialize_windows_nat): Deprecate the
9074 "dll-symbols" command. Turn the "add-shared-symbol-files"
9075 and "assf" aliases into commands, and deprecate them as well.
9076 * NEWS: Add entry explaining that "dll-symbols" and its two
9077 aliases are now deprecated.
9078
9079 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9080
9081 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9082 new-line in debug string. Remove trailing spaces.
9083
9084 2014-02-19 Stan Shebs <stan@codesourcery.com>
9085
9086 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9087
9088 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9089
9090 * NEWS: Add entry for the new feature
9091 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9092 and class values.
9093
9094 2014-02-19 Stan Shebs <stan@codesourcery.com>
9095
9096 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9097
9098 2014-02-19 Pedro Alves <palves@redhat.com>
9099
9100 * common/ptid.h (struct ptid): Mention that process_stratum
9101 targets should prefer ptid.lwp.
9102
9103 2014-02-19 Pedro Alves <palves@redhat.com>
9104
9105 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9106 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9107 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9108 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9109 store remote thread ids rather than ptid.tid.
9110 (_initialize_remote): Adjust.
9111
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target.c (target_get_unwinder): Rewrite.
9115 (target_get_tailcall_unwinder): Rewrite.
9116 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9117 (record_btrace_to_get_tailcall_unwinder): New function.
9118 (init_record_btrace_ops): Update.
9119 * target.h (struct target_ops) <to_get_unwinder,
9120 to_get_tailcall_unwinder>: Now function pointers. Use
9121 TARGET_DEFAULT_RETURN.
9122
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9126 argument.
9127 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9128
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9132 directly.
9133 * target-delegates.c: Rebuild.
9134 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9135 TARGET_DEFAULT_FUNC.
9136 * target.c (default_target_decr_pc_after_break): Rename from
9137 forward_target_decr_pc_after_break. Simplify.
9138 (target_decr_pc_after_break): Rely on delegation.
9139
9140 2014-02-19 Tom Tromey <tromey@redhat.com>
9141
9142 * target.c (update_current_target): Do not INHERIT to_doc or
9143 to_magic. Do not de_fault to_open or to_close.
9144
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * gcore.h (objfile_find_memory_regions): Declare.
9148 * gcore.c (objfile_find_memory_regions): No longer static. Add
9149 "self" argument.
9150 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9151 * exec.c: Include gcore.h.
9152 (exec_set_find_memory_regions): Remove.
9153 (exec_find_memory_regions): Remove.
9154 (exec_do_find_memory_regions): Remove.
9155 (init_exec_ops): Update.
9156 * defs.h (exec_set_find_memory_regions): Remove.
9157
9158 2014-02-19 Tom Tromey <tromey@redhat.com>
9159
9160 * target-delegates.c: Rebuild.
9161 * target.h (struct target_ops) <to_extra_thread_info,
9162 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9163 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9164 not 0, in TARGET_DEFAULT_RETURN.
9165
9166 2014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * target.c (complete_target_initialization): Remove casts. Use
9169 return_zero_has_execution.
9170 (return_zero): Add "ignore" argument.
9171 (return_zero_has_execution): New function.
9172 (init_dummy_target): Remove casts. Use
9173 return_zero_has_execution.
9174
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.c (update_current_target): Update comments. Do not
9178 INHERIT to_stratum.
9179
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9183 needed.
9184 * corelow.c (core_read_description): Delegate when needed.
9185 * remote.c (remote_read_description): Delegate when needed.
9186 * target-delegates.c: Rebuild.
9187 * target.c (target_read_description): Rewrite.
9188 * target.h (struct target_ops) <to_read_description>: Update
9189 comment. Use TARGET_DEFAULT_RETURN.
9190
9191 2014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target-delegates.c: Rebuild.
9194 * target.c (update_current_target): Don't inherit or default
9195 to_can_run.
9196 (find_default_run_target): Check against delegate_can_run.
9197 * target.h (struct target_ops) <to_can_run>: Use
9198 TARGET_DEFAULT_RETURN.
9199
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9201
9202 * target-delegates.c: Rebuild.
9203 * target.c (target_disconnect): Unconditionally delegate.
9204 * target.h (struct target_ops) <to_disconnect>: Use
9205 TARGET_DEFAULT_NORETURN.
9206
9207 2014-02-19 Tom Tromey <tromey@redhat.com>
9208
9209 * record.c (record_stop): Unconditionally delegate.
9210 * target-delegates.c: Rebuild.
9211 * target.c (target_stop_recording): Unconditionally delegate.
9212 * target.h (struct target_ops) <to_stop_recording>: Use
9213 TARGET_DEFAULT_IGNORE.
9214
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * target-delegates.c: Rebuild.
9218 * target.c (target_enable_btrace): Unconditionally delegate.
9219 * target.h (struct target_ops) <to_enable_btrace>: Use
9220 TARGET_DEFAULT_NORETURN.
9221
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9223
9224 * target-delegates.c: Rebuild.
9225 * target.c (target_read_btrace): Unconditionally delegate.
9226 * target.h (struct target_ops) <to_read_btrace>: Use
9227 TARGET_DEFAULT_NORETURN.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target-delegates.c: Rebuild.
9232 * target.c (target_teardown_btrace): Unconditionally delegate.
9233 * target.h (struct target_ops) <to_teardown_btrace>: Use
9234 TARGET_DEFAULT_NORETURN.
9235
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target-delegates.c: Rebuild.
9239 * target.c (target_disable_btrace): Unconditionally delegate.
9240 * target.h (struct target_ops) <to_disable_btrace>: Use
9241 TARGET_DEFAULT_NORETURN.
9242
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target-delegates.c: Rebuild.
9246 * target.c (default_search_memory): New function.
9247 (simple_search_memory): Update comment.
9248 (target_search_memory): Unconditionally delegate.
9249 * target.h (struct target_ops) <to_search_memory>: Use
9250 TARGET_DEFAULT_FUNC.
9251
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * auxv.c (default_auxv_parse): No longer static.
9255 (target_auxv_parse): Unconditionally delegate.
9256 * auxv.h (default_auxv_parse): Declare.
9257 * target-delegates.c: Rebuild.
9258 * target.c: Include auxv.h.
9259 * target.h (struct target_ops) <to_auxv_parse>: Use
9260 TARGET_DEFAULT_FUNC.
9261
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_memory_map): Unconditionally delegate.
9266 * target.h (struct target_ops) <to_memory_map>: Use
9267 TARGET_DEFAULT_RETURN.
9268
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target-delegates.c: Rebuild.
9272 * target.c (target_thread_alive): Unconditionally delegate.
9273 * target.h (struct target_ops) <to_thread_alive>: Use
9274 TARGET_DEFAULT_RETURN.
9275
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * target-delegates.c: Rebuild.
9279 * target.c (target_save_record): Unconditionally delegate.
9280 * target.h (struct target_ops) <to_save_record>: Use
9281 TARGET_DEFAULT_NORETURN.
9282
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target-delegates.c: Rebuild.
9286 * target.c (target_delete_record): Unconditionally delegate.
9287 * target.h (struct target_ops) <to_delete_record>: Use
9288 TARGET_DEFAULT_NORETURN.
9289
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9291
9292 * target-delegates.c: Rebuild.
9293 * target.c (target_record_is_replaying): Unconditionally
9294 delegate.
9295 * target.h (struct target_ops) <to_record_is_replaying>: Use
9296 TARGET_DEFAULT_RETURN.
9297
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9299
9300 * target-delegates.c: Rebuild.
9301 * target.c (target_goto_record_begin): Unconditionally delegate.
9302 * target.h (struct target_ops) <to_goto_record_begin>: Use
9303 TARGET_DEFAULT_NORETURN.
9304
9305 2014-02-19 Tom Tromey <tromey@redhat.com>
9306
9307 * target-delegates.c: Rebuild.
9308 * target.c (target_goto_record_end): Unconditionally delegate.
9309 * target.h (struct target_ops) <to_goto_record_end>: Use
9310 TARGET_DEFAULT_NORETURN.
9311
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target-delegates.c: Rebuild.
9315 * target.c (target_goto_record): Unconditionally delegate.
9316 * target.h (struct target_ops) <to_goto_record>: Use
9317 TARGET_DEFAULT_NORETURN.
9318
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target-delegates.c: Rebuild.
9322 * target.c (target_insn_history): Unconditionally delegate.
9323 * target.h (struct target_ops) <to_insn_history>: Use
9324 TARGET_DEFAULT_NORETURN.
9325
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9327
9328 * target-delegates.c: Rebuild.
9329 * target.c (target_insn_history_from): Unconditionally delegate.
9330 * target.h (struct target_ops) <to_insn_history_from>: Use
9331 TARGET_DEFAULT_NORETURN.
9332
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target-delegates.c: Rebuild.
9336 * target.c (target_insn_history_range): Unconditionally delegate.
9337 * target.h (struct target_ops) <to_insn_history_range>: 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_call_history): Unconditionally delegate.
9344 * target.h (struct target_ops) <to_call_history>: 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_call_history_from): Unconditionally delegate.
9351 * target.h (struct target_ops) <to_call_history_from>: Use
9352 TARGET_DEFAULT_NORETURN.
9353
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * target-delegates.c: Rebuild.
9357 * target.c (target_call_history_range): Unconditionally delegate.
9358 * target.h (struct target_ops) <to_call_history_range>: 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_verify_memory): Unconditionally delegate.
9365 * target.h (struct target_ops) <to_verify_memory>: 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_core_of_thread): Unconditionally delegate.
9372 * target.h (struct target_ops) <to_core_of_thread>: Use
9373 TARGET_DEFAULT_RETURN.
9374
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target-delegates.c: Rebuild.
9378 * target.c (target_flash_done): Unconditionally delegate.
9379 * target.h (struct target_ops) <to_flash_done>: 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_flash_erase): Unconditionally delegate.
9386 * target.h (struct target_ops) <to_flash_erase>: 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_get_section_table): Unconditionally delegate.
9393 * target.h (struct target_ops) <to_get_section_table>: Use
9394 TARGET_DEFAULT_RETURN.
9395
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9397
9398 * target-delegates.c: Rebuild.
9399 * target.c (target_pid_to_str): Unconditionally delegate.
9400 (init_dummy_target): Don't initialize to_pid_to_str.
9401 (default_pid_to_str): Rename from dummy_pid_to_str.
9402 * target.h (struct target_ops) <to_pid_to_str>: Use
9403 TARGET_DEFAULT_FUNC.
9404
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target-delegates.c: Rebuild.
9408 * target.c (target_find_new_threads): Unconditionally delegate.
9409 * target.h (struct target_ops) <to_find_new_threads>: Use
9410 TARGET_DEFAULT_RETURN.
9411
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9413
9414 * target-delegates.c: Rebuild.
9415 * target.c (target_program_signals): Unconditionally delegate.
9416 * target.h (struct target_ops) <to_program_signals>: Use
9417 TARGET_DEFAULT_IGNORE.
9418
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * target-delegates.c: Rebuild.
9422 * target.c (target_pass_signals): Unconditionally delegate.
9423 * target.h (struct target_ops) <to_pass_signals>: Use
9424 TARGET_DEFAULT_IGNORE.
9425
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target-delegates.c: Rebuild.
9429 * target.c (default_mourn_inferior): New function.
9430 (target_mourn_inferior): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_mourn_inferior>: Use
9432 TARGET_DEFAULT_FUNC.
9433
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target-delegates.c: Rebuild.
9437 * target.c (default_follow_fork): New function.
9438 (target_follow_fork): Unconditionally delegate.
9439 * target.h (struct target_ops) <to_follow_fork>: Use
9440 TARGET_DEFAULT_FUNC.
9441
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9443
9444 * target-delegates.c: Rebuild.
9445 * target.c (target_kill): Unconditionally delegate.
9446 * target.h (struct target_ops) <to_kill>: Use
9447 TARGET_DEFAULT_NORETURN.
9448
9449 2014-02-19 Tom Tromey <tromey@redhat.com>
9450
9451 * target-delegates.c: Rebuild.
9452 * target.c (target_masked_watch_num_registers): Unconditionally
9453 delegate.
9454 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9455 Use TARGET_DEFAULT_RETURN.
9456
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target-delegates.c: Rebuild.
9460 * target.c (target_remove_mask_watchpoint): Unconditionally
9461 delegate.
9462 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9463 TARGET_DEFAULT_RETURN.
9464
9465 2014-02-19 Tom Tromey <tromey@redhat.com>
9466
9467 * target-delegates.c: Rebuild.
9468 * target.c (target_insert_mask_watchpoint): Unconditionally
9469 delegate.
9470 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9471 TARGET_DEFAULT_RETURN.
9472
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * target-delegates.c: Rebuild.
9476 * target.c (target_ranged_break_num_registers): Unconditionally
9477 delegate.
9478 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9479 Use TARGET_DEFAULT_RETURN.
9480
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9482
9483 * target-delegates.c: Rebuild.
9484 * target.c (target_fetch_registers): Unconditionally delegate.
9485 * target.h (struct target_ops) <to_fetch_registers>: Use
9486 TARGET_DEFAULT_NORETURN.
9487
9488 2014-02-19 Tom Tromey <tromey@redhat.com>
9489
9490 * target-delegates.c: Rebuild.
9491 * target.c (update_current_target): Don't inherit or default
9492 to_stop.
9493 * target.h (struct target_ops) <to_stop>: Use
9494 TARGET_DEFAULT_IGNORE.
9495
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target-delegates.c: Rebuild.
9499 * target.c (update_current_target): Don't inherit or default
9500 to_can_run_breakpoint_commands.
9501 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9502 Use TARGET_DEFAULT_RETURN.
9503
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9505
9506 * target-delegates.c: Rebuild.
9507 * target.c (update_current_target): Don't inherit or default
9508 to_supports_evaluation_of_breakpoint_conditions.
9509 * target.h (struct target_ops)
9510 <to_supports_evaluation_of_breakpoint_conditions>: Use
9511 TARGET_DEFAULT_RETURN.
9512
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9514
9515 * target-delegates.c: Rebuild.
9516 * target.c (update_current_target): Don't inherit or default
9517 to_augmented_libraries_svr4_read.
9518 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9519 Use TARGET_DEFAULT_RETURN.
9520
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * target-delegates.c: Rebuild.
9524 * target.c (update_current_target): Don't inherit or default
9525 to_can_use_agent.
9526 * target.h (struct target_ops) <to_can_use_agent>: Use
9527 TARGET_DEFAULT_RETURN.
9528
9529 2014-02-19 Tom Tromey <tromey@redhat.com>
9530
9531 * target-delegates.c: Rebuild.
9532 * target.c (update_current_target): Don't inherit or default
9533 to_use_agent.
9534 * target.h (struct target_ops) <to_use_agent>: Use
9535 TARGET_DEFAULT_NORETURN.
9536
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target-delegates.c: Rebuild.
9540 * target.c (update_current_target): Don't inherit or default
9541 to_traceframe_info.
9542 (return_null): Remove.
9543 * target.h (struct target_ops) <to_traceframe_info>: Use
9544 TARGET_DEFAULT_RETURN.
9545
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9547
9548 * target-delegates.c: Rebuild.
9549 * target.c (update_current_target): Don't inherit or default
9550 to_static_tracepoint_markers_by_strid.
9551 * target.h (struct target_ops)
9552 <to_static_tracepoint_markers_by_strid>: Use
9553 TARGET_DEFAULT_NORETURN.
9554
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9556
9557 * target-delegates.c: Rebuild.
9558 * target.c (update_current_target): Don't inherit or default
9559 to_static_tracepoint_marker_at.
9560 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9561 Use TARGET_DEFAULT_RETURN.
9562
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9564
9565 * target-delegates.c: Rebuild.
9566 * target.c (update_current_target): Don't inherit or default
9567 to_set_permissions.
9568 * target.h (struct target_ops) <to_set_permissions>: Use
9569 TARGET_DEFAULT_IGNORE.
9570
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9572
9573 * target-delegates.c: Rebuild.
9574 * target.c (update_current_target): Don't inherit or default
9575 to_get_tib_address.
9576 * target.h (struct target_ops) <to_get_tib_address>: Use
9577 TARGET_DEFAULT_NORETURN.
9578
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9580
9581 * target-delegates.c: Rebuild.
9582 * target.c (update_current_target): Don't inherit or default
9583 to_set_trace_notes.
9584 * target.h (struct target_ops) <to_set_trace_notes>: Use
9585 TARGET_DEFAULT_RETURN.
9586
9587 2014-02-19 Tom Tromey <tromey@redhat.com>
9588
9589 * target-delegates.c: Rebuild.
9590 * target.c (update_current_target): Don't initialize
9591 to_set_trace_buffer_size.
9592 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9593 TARGET_DEFAULT_IGNORE.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target-delegates.c: Rebuild.
9598 * target.c (update_current_target): Don't inherit or default
9599 to_set_circular_trace_buffer.
9600 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9601 TARGET_DEFAULT_IGNORE.
9602
9603 2014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target-delegates.c: Rebuild.
9606 * target.c (update_current_target): Don't inherit or default
9607 to_set_disconnected_tracing.
9608 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9609 TARGET_DEFAULT_IGNORE.
9610
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target-delegates.c: Rebuild.
9614 * target.c (update_current_target): Don't inherit or default
9615 to_get_min_fast_tracepoint_insn_len.
9616 (return_minus_one): Remove.
9617 * target.h (struct target_ops)
9618 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9619
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * target-delegates.c: Rebuild.
9623 * target.c (update_current_target): Don't inherit or default
9624 to_get_raw_trace_data.
9625 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9626 TARGET_DEFAULT_NORETURN.
9627
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target-delegates.c: Rebuild.
9631 * target.c (update_current_target): Don't inherit or default
9632 to_upload_trace_state_variables.
9633 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9634 Use TARGET_DEFAULT_RETURN.
9635
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9637
9638 * target-delegates.c: Rebuild.
9639 * target.c (update_current_target): Don't inherit or default
9640 to_upload_tracepoints.
9641 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9642 TARGET_DEFAULT_RETURN.
9643
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9645
9646 * target-delegates.c: Rebuild.
9647 * target.c (update_current_target): Don't inherit or default
9648 to_save_trace_data.
9649 * target.h (struct target_ops) <to_save_trace_data>: Use
9650 TARGET_DEFAULT_NORETURN.
9651
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * target-delegates.c: Rebuild.
9655 * target.c (update_current_target): Don't inherit or default
9656 to_get_trace_state_variable_value.
9657 * target.h (struct target_ops)
9658 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9659
9660 2014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target-delegates.c: Rebuild.
9663 * target.c (update_current_target): Don't inherit or default
9664 to_trace_find.
9665 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9666
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9668
9669 * target-delegates.c: Rebuild.
9670 * target.c (update_current_target): Don't inherit or default
9671 to_trace_stop.
9672 * target.h (struct target_ops) <to_trace_stop>: Use
9673 TARGET_DEFAULT_NORETURN.
9674
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9676
9677 * target-delegates.c: Rebuild.
9678 * target.c (update_current_target): Don't inherit or default
9679 to_get_tracepoint_status.
9680 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9681 TARGET_DEFAULT_NORETURN.
9682
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target-delegates.c: Rebuild.
9686 * target.c (update_current_target): Don't inherit or default
9687 to_get_trace_status.
9688 * target.h (struct target_ops) <to_get_trace_status>: Use
9689 TARGET_DEFAULT_RETURN.
9690
9691 2014-02-19 Tom Tromey <tromey@redhat.com>
9692
9693 * target-delegates.c: Rebuild.
9694 * target.c (update_current_target): Don't inherit or default
9695 to_trace_start.
9696 * target.h (struct target_ops) <to_trace_start>: Use
9697 TARGET_DEFAULT_NORETURN.
9698
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target-delegates.c: Rebuild.
9702 * target.c (update_current_target): Don't inherit or default
9703 to_trace_set_readonly_regions.
9704 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9705 Use TARGET_DEFAULT_NORETURN.
9706
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9708
9709 * target-delegates.c: Rebuild.
9710 * target.c (update_current_target): Don't inherit or default
9711 to_disable_tracepoint.
9712 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9713 TARGET_DEFAULT_NORETURN.
9714
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9719 to_enable_tracepoint.
9720 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9721 TARGET_DEFAULT_NORETURN.
9722
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9724
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9727 to_download_trace_state_variable.
9728 * target.h (struct target_ops) <to_download_trace_state_variable>:
9729 Use TARGET_DEFAULT_NORETURN.
9730
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9732
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't inherit or default
9735 to_can_download_tracepoint.
9736 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9737 TARGET_DEFAULT_RETURN.
9738
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9743 to_download_tracepoint.
9744 * target.h (struct target_ops) <to_download_tracepoint>: Use
9745 TARGET_DEFAULT_NORETURN.
9746
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9748
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9751 to_trace_init.
9752 * target.h (struct target_ops) <to_trace_init>: Use
9753 TARGET_DEFAULT_RETURN.
9754
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9759 to_supports_string_tracing.
9760 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9761 TARGET_DEFAULT_RETURN.
9762
9763 2014-02-19 Tom Tromey <tromey@redhat.com>
9764
9765 * target-delegates.c: Rebuild.
9766 * target.c (update_current_target): Don't inherit or default
9767 to_supports_enable_disable_tracepoint.
9768 * target.h (struct target_ops)
9769 <to_supports_enable_disable_tracepoint>: Use
9770 TARGET_DEFAULT_RETURN.
9771
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9773
9774 * target-delegates.c: Rebuild.
9775 * target.c (update_current_target): Don't inherit or default
9776 to_supports_multi_process.
9777 * target.h (struct target_ops) <to_supports_multi_process>: Use
9778 TARGET_DEFAULT_RETURN.
9779
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target-delegates.c: Rebuild.
9783 * target.c (update_current_target): Don't inherit or default
9784 to_get_ada_task_ptid.
9785 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9786 TARGET_DEFAULT_FUNC.
9787
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9789
9790 * target-delegates.c: Rebuild.
9791 * target.c (update_current_target): Don't inherit or default
9792 to_thread_architecture.
9793 * target.h (struct target_ops) <to_thread_architecture>: Use
9794 TARGET_DEFAULT_FUNC.
9795
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target-delegates.c: Rebuild.
9799 * target.c (update_current_target): Don't inherit or default
9800 to_execution_direction.
9801 * target.h (struct target_ops) <to_execution_direction>: Use
9802 TARGET_DEFAULT_FUNC.
9803
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9808 to_can_execute_reverse.
9809 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9810 TARGET_DEFAULT_RETURN.
9811 (target_can_execute_reverse): Unconditionally delegate.
9812
9813 2014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target-delegates.c: Rebuild.
9816 * target.c (update_current_target): Don't inherit or default
9817 to_goto_bookmark.
9818 (dummy_goto_bookmark): Remove.
9819 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9820 * target.h (struct target_ops) <to_goto_bookmark>: Use
9821 TARGET_DEFAULT_NORETURN.
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_get_bookmark.
9828 (dummy_get_bookmark): Remove.
9829 (init_dummy_target): Don't inherit or default to_get_bookmark.
9830 * target.h (struct target_ops) <to_get_bookmark>: Use
9831 TARGET_DEFAULT_NORETURN
9832
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * target-delegates.c: Rebuild.
9836 * target.c (update_current_target): Don't inherit or default
9837 to_make_corefile_notes.
9838 (init_dummy_target): Don't initialize to_make_corefile_notes.
9839 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9840 TARGET_DEFAULT_FUNC.
9841
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target-delegates.c: Rebuild.
9845 * target.c (update_current_target): Don't inherit or default
9846 to_find_memory_regions.
9847 (init_dummy_target): Don't initialize to_find_memory_regions.
9848 * target.h (struct target_ops) <to_find_memory_regions>: Use
9849 TARGET_DEFAULT_FUNC.
9850
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9852
9853 * target-delegates.c: Rebuild.
9854 * target.c (update_current_target): Don't inherit or default
9855 to_log_command.
9856 * target.h (struct target_ops) <to_log_command>: Use
9857 TARGET_DEFAULT_IGNORE.
9858 (target_log_command): Unconditionally delegate.
9859
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9861
9862 * target-delegates.c: Rebuild.
9863 * target.c (update_current_target): Don't inherit or default
9864 to_pid_to_exec_file.
9865 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9866 TARGET_DEFAULT_RETURN.
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_thread_name.
9873 (target_thread_name): Unconditionally delegate.
9874 * target.h (struct target_ops) <to_thread_name>: Use
9875 TARGET_DEFAULT_RETURN.
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_extra_thread_info.
9882 * target.h (struct target_ops) <to_extra_thread_info>: Use
9883 TARGET_DEFAULT_RETURN.
9884
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9886
9887 * target-delegates.c: Rebuild.
9888 * target.c (update_current_target): Don't inherit or default
9889 to_has_exited.
9890 * target.h (struct target_ops) <to_has_exited>: Use
9891 TARGET_DEFAULT_RETURN..
9892
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * target-delegates.c: Rebuild.
9896 * target.c (update_current_target): Don't inherit or default
9897 to_set_syscall_catchpoint.
9898 (return_one): Remove.
9899 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9900 TARGET_DEFAULT_RETURN.
9901
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9903
9904 * target-delegates.c: Rebuild.
9905 * target.c (update_current_target): Don't inherit or default
9906 to_insert_exec_catchpoint.
9907 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9908 TARGET_DEFAULT_RETURN.
9909
9910 2014-01-08 Tom Tromey <tromey@redhat.com>
9911
9912 * target-delegates.c: Rebuild.
9913 * target.c (update_current_target): Don't inherit or default
9914 to_insert_exec_catchpoint.
9915 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9916 TARGET_DEFAULT_RETURN.
9917
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target-delegates.c: Rebuild.
9921 * target.c (update_current_target): Don't inherit or default
9922 to_remove_vfork_catchpoint.
9923 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9924 TARGET_DEFAULT_RETURN.
9925
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9927
9928 * target-delegates.c: Rebuild.
9929 * target.c (update_current_target): Don't inherit or default
9930 to_insert_vfork_catchpoint.
9931 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9932 TARGET_DEFAULT_RETURN.
9933
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9935
9936 * target-delegates.c: Rebuild.
9937 * target.c (update_current_target): Don't inherit or default
9938 to_remove_fork_catchpoint.
9939 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9940 TARGET_DEFAULT_RETURN.
9941
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9943
9944 * target-delegates.c: Rebuild.
9945 * target.c (update_current_target): Don't inherit or default
9946 to_insert_fork_catchpoint.
9947 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9948 TARGET_DEFAULT_RETURN.
9949
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * target-delegates.c: Rebuild.
9953 * target.c (update_current_target): Don't inherit or default
9954 to_post_startup_inferior.
9955 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9956 TARGET_DEFAULT_IGNORE.
9957
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target-delegates.c: Rebuild.
9961 * target.c (update_current_target): Don't inherit or default
9962 to_load.
9963 * target.h (struct target_ops) <to_load>: Use
9964 TARGET_DEFAULT_NORETURN.
9965
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9967
9968 * target-delegates.c: Rebuild.
9969 * target.c (update_current_target): Don't inherit or default
9970 to_terminal_info.
9971 * target.h (struct target_ops) <to_terminal_info>: Use
9972 TARGET_DEFAULT_FUNC.
9973
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target-delegates.c: Rebuild.
9977 * target.c (update_current_target): Don't inherit or default
9978 to_terminal_save_ours.
9979 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9980 TARGET_DEFAULT_IGNORE.
9981
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * target-delegates.c: Rebuild.
9985 * target.c (update_current_target): Don't inherit or default
9986 to_terminal_ours.
9987 * target.h (struct target_ops) <to_terminal_ours>: Use
9988 TARGET_DEFAULT_IGNORE.
9989
9990 2014-02-19 Tom Tromey <tromey@redhat.com>
9991
9992 * target-delegates.c: Rebuild.
9993 * target.c (update_current_target): Don't inherit or default
9994 to_terminal_ours_for_output.
9995 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9996 TARGET_DEFAULT_IGNORE.
9997
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target-delegates.c: Rebuild.
10001 * target.c (update_current_target): Don't inherit or default
10002 to_terminal_inferior.
10003 * target.h (struct target_ops) <to_terminal_inferior>: Use
10004 TARGET_DEFAULT_IGNORE.
10005
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't inherit or default
10010 to_terminal_init.
10011 * target.h (struct target_ops) <to_terminal_init>: Use
10012 TARGET_DEFAULT_IGNORE.
10013
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10015
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_can_accel_watchpoint_condition.
10019 * target.h (struct target_ops)
10020 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10021
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * target-delegates.c: Rebuild.
10025 * target.c (update_current_target): Don't inherit or default
10026 to_region_ok_for_hw_watchpoint.
10027 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10028 Use TARGET_DEFAULT_FUNC.
10029
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * target-delegates.c: Rebuild.
10033 * target.c (update_current_target): Don't inherit or default
10034 to_watchpoint_addr_within_range.
10035 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10036 Use TARGET_DEFAULT_FUNC.
10037
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * target-delegates.c: Rebuild.
10041 * target.c (update_current_target): Don't inherit or default
10042 to_remove_watchpoint.
10043 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10044 TARGET_DEFAULT_NORETURN.
10045
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target-delegates.c: Rebuild.
10049 * target.c (update_current_target): Don't inherit or default
10050 to_insert_watchpoint.
10051 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10052 TARGET_DEFAULT_RETURN.
10053
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10055
10056 * target-delegates.c: Rebuild.
10057 * target.c (update_current_target): Don't inherit or default
10058 to_remove_hw_breakpoint.
10059 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10060 TARGET_DEFAULT_RETURN.
10061
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target-delegates.c: Rebuild.
10065 * target.c (update_current_target): Don't inherit or default
10066 to_insert_hw_breakpoint.
10067 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10068 TARGET_DEFAULT_RETURN.
10069
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_can_use_hw_breakpoint.
10075 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10076 TARGET_DEFAULT_RETURN.
10077
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10079
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_files_info.
10083 * target.h (struct target_ops) <to_files_info>: Use
10084 TARGET_DEFAULT_IGNORE.
10085
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10087
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10090 to_store.
10091 * target.h (struct target_ops) <to_store>: Use
10092 TARGET_DEFAULT_NORETURN.
10093
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_post_attach.
10099 * target.h (struct target_ops) <to_post_attach>: Use
10100 TARGET_DEFAULT_IGNORE.
10101
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10106 to_rcmd.
10107 (default_rcmd): New function.
10108 (do_monitor_command): Unconditionally delegate.
10109 * target.h (struct target_ops) <to_rmcd>: Use
10110 TARGET_DEFAULT_FUNC.
10111
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10113
10114 * target-delegates.c: Rebuild.
10115 * target.c (init_dummy_target): Don't initialize to_attach.
10116 (target_attach): Unconditionally delegate.
10117 * target.h (struct target_ops) <to_attach>: Use
10118 TARGET_DEFAULT_FUNC.
10119
10120 2014-02-19 Tom Tromey <tromey@redhat.com>
10121
10122 * target-delegates.c: Rebuild.
10123 * target.c (target_detach): Unconditionally delegate.
10124 (init_dummy_target): Don't initialize to_detach.
10125 * target.h (struct target_ops) <to_detach>: Use
10126 TARGET_DEFAULT_IGNORE.
10127
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10129
10130 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10131 Add argument.
10132 (target_augmented_libraries_svr4_read): Add argument.
10133 * target.c (update_current_target): Update.
10134 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10135 argument.
10136
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10138
10139 * target.h (struct target_ops) <to_call_history_range>: Add
10140 argument.
10141 * target.c (target_call_history_range): Add argument.
10142 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10143 argument.
10144 (record_btrace_call_history_from): Update.
10145
10146 2014-02-19 Tom Tromey <tromey@redhat.com>
10147
10148 * target.h (struct target_ops) <to_call_history_from>: Add
10149 argument.
10150 * target.c (target_call_history_from): Add argument.
10151 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10152 argument.
10153
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10155
10156 * target.h (struct target_ops) <to_call_history>: Add argument.
10157 * target.c (target_call_history): Add argument.
10158 * record-btrace.c (record_btrace_call_history): Add 'self'
10159 argument.
10160
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10162
10163 * target.h (struct target_ops) <to_insn_history_range>: Add
10164 argument.
10165 * target.c (target_insn_history_range): Add argument.
10166 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10167 argument.
10168 (record_btrace_insn_history_from): Update.
10169
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10171
10172 * target.h (struct target_ops) <to_insn_history_from>: Add
10173 argument.
10174 * target.c (target_insn_history_from): Add argument.
10175 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10176 argument.
10177
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10179
10180 * target.h (struct target_ops) <to_insn_history>: Add argument.
10181 * target.c (target_insn_history): Add argument.
10182 * record-btrace.c (record_btrace_insn_history): Add 'self'
10183 argument.
10184
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10186
10187 * target.h (struct target_ops) <to_goto_record>: Add argument.
10188 * target.c (target_goto_record): Add argument.
10189 * record-full.c (record_full_goto): Add 'self' argument.
10190 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10191
10192 2014-02-19 Tom Tromey <tromey@redhat.com>
10193
10194 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10195 * target.c (target_goto_record_end): Add argument.
10196 * record-full.c (record_full_goto_end): Add 'self' argument.
10197 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10198
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target.h (struct target_ops) <to_goto_record_begin>: Add
10202 argument.
10203 * target.c (target_goto_record_begin): Add argument.
10204 * record-full.c (record_full_goto_begin): Add 'self' argument.
10205 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10206 argument.
10207
10208 2014-02-19 Tom Tromey <tromey@redhat.com>
10209
10210 * target.h (struct target_ops) <to_record_is_replaying>: Add
10211 argument.
10212 * target.c (target_record_is_replaying): Add argument.
10213 * record-full.c (record_full_is_replaying): Add 'self' argument.
10214 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10215 argument.
10216 (record_btrace_xfer_partial, record_btrace_store_registers)
10217 (record_btrace_prepare_to_store, record_btrace_resume)
10218 (record_btrace_wait, record_btrace_decr_pc_after_break)
10219 (record_btrace_find_new_threads, record_btrace_thread_alive):
10220 Update.
10221
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10223
10224 * target.h (struct target_ops) <to_delete_record>: Add argument.
10225 * target.c (target_delete_record): Add argument.
10226 * record-full.c (record_full_delete): Add 'self' argument.
10227
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10229
10230 * target.h (struct target_ops) <to_save_record>: Add argument.
10231 * target.c (target_save_record): Add argument.
10232 * record-full.c (record_full_save): Add 'self' argument.
10233 (record_full_save): Add 'self' argument.
10234
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target.h (struct target_ops) <to_info_record>: Add argument.
10238 * target.c (target_info_record): Add argument.
10239 * record.c (info_record_command): Add argument.
10240 * record-full.c (record_full_info): Add 'self' argument.
10241 * record-btrace.c (record_btrace_info): Add 'self' argument.
10242
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10246 * target.c (target_stop_recording): Add argument.
10247 * record.c (record_stop): Add argument.
10248 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10249 argument.
10250
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10254 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10255 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10256 argument.
10257 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10258 (_initialize_amd64_linux_nat): Use it.
10259 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10260 (_initialize_i386_linux_nat): Use it.
10261
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10265 * target.c (target_teardown_btrace): Add argument.
10266 * remote.c (remote_teardown_btrace): Add 'self' argument.
10267 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10268 argument.
10269 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10270 argument.
10271
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10273
10274 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10275 * target.c (target_disable_btrace): Add argument.
10276 * remote.c (remote_disable_btrace): Add 'self' argument.
10277 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10278 argument.
10279 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10280 argument.
10281
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10283
10284 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10285 * target.c (target_enable_btrace): Add argument.
10286 * remote.c (remote_enable_btrace): Add 'self' argument.
10287 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10288 argument.
10289 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10290 argument.
10291
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10295 (target_can_use_agent): Add argument.
10296 * target.c (update_current_target): Update.
10297 * remote.c (remote_can_use_agent): Add 'self' argument.
10298 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10299
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target.h (struct target_ops) <to_use_agent>: Add argument.
10303 (target_use_agent): Add argument.
10304 * target.c (update_current_target): Update.
10305 * remote.c (remote_use_agent): Add 'self' argument.
10306 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10307
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10309
10310 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10311 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10312 (target_traceframe_info): Add argument.
10313 * target.c (update_current_target): Update.
10314 * remote.c (remote_traceframe_info): Add 'self' argument.
10315 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10316
10317 2014-02-19 Tom Tromey <tromey@redhat.com>
10318
10319 * target.h (target_static_tracepoint_markers_by_strid): Add
10320 argument.
10321 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10322 'self' argument.
10323 * target.c (update_current_target): Update.
10324 * remote.c (struct target_ops)
10325 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10326 * linux-nat.c (struct target_ops)
10327 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10328
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10332 Add argument.
10333 (target_static_tracepoint_marker_at): Add argument.
10334 * target.c (update_current_target): Update.
10335 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10336 argument.
10337
10338 2014-02-19 Tom Tromey <tromey@redhat.com>
10339
10340 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10341 (target_set_permissions): Add argument.
10342 * target.c (update_current_target): Update.
10343 * remote.c (remote_set_permissions): Add 'self' argument.
10344 (remote_start_remote): Update.
10345
10346 2014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10349 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10350 (target_get_tib_address): Add argument.
10351 * target.c (update_current_target): Update.
10352 * remote.c (remote_get_tib_address): Add 'self' argument.
10353
10354 2014-02-19 Tom Tromey <tromey@redhat.com>
10355
10356 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10357 (target_set_trace_notes): Add argument.
10358 * target.c (update_current_target): Update.
10359 * remote.c (remote_set_trace_notes): Add 'self' argument.
10360
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10362
10363 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10364 argument.
10365 (target_set_trace_buffer_size): Add argument.
10366 * target.c (update_current_target): Update.
10367 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10368
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10372 argument.
10373 (target_set_circular_trace_buffer): Add argument.
10374 * target.c (update_current_target): Update.
10375 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10376 argument.
10377
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10379
10380 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10381 argument.
10382 (target_set_disconnected_tracing): Add argument.
10383 * target.c (update_current_target): Update.
10384 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10385
10386 2014-02-19 Tom Tromey <tromey@redhat.com>
10387
10388 * target.h (struct target_ops)
10389 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10390 (target_get_min_fast_tracepoint_insn_len): Add argument.
10391 * target.c (update_current_target): Update.
10392 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10393 argument.
10394
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10396
10397 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10398 argument.
10399 (target_get_raw_trace_data): Add argument.
10400 * target.c (update_current_target): Update.
10401 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10402
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10404
10405 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10406 Add argument.
10407 (target_upload_trace_state_variables): Add argument.
10408 * target.c (update_current_target): Update.
10409 * remote.c (remote_upload_trace_state_variables): Add 'self'
10410 argument.
10411 (remote_start_remote): Update.
10412
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10416 argument.
10417 (target_upload_tracepoints): Add argument.
10418 * target.c (update_current_target): Update.
10419 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10420 (remote_start_remote): Update.
10421
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10425 (target_save_trace_data): Add argument.
10426 * target.c (update_current_target): Update.
10427 * remote.c (remote_save_trace_data): Add 'self' argument.
10428
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10432 argument.
10433 * target.h (struct target_ops)
10434 <to_get_trace_state_variable_value>: Add argument.
10435 (target_get_trace_state_variable_value): Add argument.
10436 * target.c (update_current_target): Update.
10437 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10438 argument.
10439 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10440
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10442
10443 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10444 * target.h (struct target_ops) <to_trace_find>: Add argument.
10445 (target_trace_find): Add argument.
10446 * target.c (update_current_target): Update.
10447 * remote.c (remote_trace_find): Add 'self' argument.
10448 * ctf.c (ctf_trace_find): Add 'self' argument.
10449
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10453 (target_trace_stop): Add argument.
10454 * target.c (update_current_target): Update.
10455 * remote.c (remote_trace_stop): Add 'self' argument.
10456
10457 2014-02-19 Tom Tromey <tromey@redhat.com>
10458
10459 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10460 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10461 argument.
10462 (target_get_tracepoint_status): Add argument.
10463 * target.c (update_current_target): Update.
10464 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10465
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10469 * target.h (struct target_ops) <to_get_trace_status>: Add
10470 argument.
10471 (target_get_trace_status): Add argument.
10472 * target.c (update_current_target): Update.
10473 * remote.c (remote_get_trace_status): Add 'self' argument.
10474 (remote_start_remote, remote_can_download_tracepoint): Update.
10475 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10476
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10478
10479 * target.h (struct target_ops) <to_trace_start>: Add argument.
10480 (target_trace_start): Add argument.
10481 * target.c (update_current_target): Update.
10482 * remote.c (remote_trace_start): Add 'self' argument.
10483
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10485
10486 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10487 Add argument.
10488 (target_trace_set_readonly_regions): Add argument.
10489 * target.c (update_current_target): Update.
10490 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10491 argument.
10492
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10496 argument.
10497 (target_disable_tracepoint): Add argument.
10498 * target.c (update_current_target): Update.
10499 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10500
10501 2014-02-19 Tom Tromey <tromey@redhat.com>
10502
10503 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10504 argument.
10505 (target_enable_tracepoint): Add argument.
10506 * target.c (update_current_target): Update.
10507 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10508
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10510
10511 * target.h (struct target_ops) <to_download_trace_state_variable>:
10512 Add argument.
10513 (target_download_trace_state_variable): Add argument.
10514 * target.c (update_current_target): Update.
10515 * remote.c (remote_download_trace_state_variable): Add 'self'
10516 argument.
10517
10518 2014-02-19 Tom Tromey <tromey@redhat.com>
10519
10520 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10521 argument.
10522 (target_can_download_tracepoint): Add argument.
10523 * target.c (update_current_target): Update.
10524 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10525
10526 2014-02-19 Tom Tromey <tromey@redhat.com>
10527
10528 * target.h (struct target_ops) <to_download_tracepoint>: Add
10529 argument.
10530 (target_download_tracepoint): Add argument.
10531 * target.c (update_current_target): Update.
10532 * remote.c (remote_download_tracepoint): Add 'self' argument.
10533
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10535
10536 * target.h (struct target_ops) <to_trace_init>: Add argument.
10537 (target_trace_init): Add argument.
10538 * target.c (update_current_target): Update.
10539 * remote.c (remote_trace_init): Add 'self' argument.
10540
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10542
10543 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10544 * target.c (target_fileio_readlink): Add argument.
10545 * remote.c (remote_hostio_readlink): Add 'self' argument.
10546 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10547
10548 2014-02-19 Tom Tromey <tromey@redhat.com>
10549
10550 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10551 * target.c (target_fileio_unlink): Add argument.
10552 * remote.c (remote_hostio_unlink): Add 'self' argument.
10553 (remote_file_delete): Update.
10554 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10555
10556 2014-02-19 Tom Tromey <tromey@redhat.com>
10557
10558 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10559 * target.c (target_fileio_close): Add argument.
10560 * remote.c (remote_hostio_close): Add 'self' argument.
10561 (remote_hostio_close_cleanup): Update.
10562 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10563 Update.
10564 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10565
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10569 * target.c (target_fileio_pread): Add argument.
10570 * remote.c (remote_hostio_pread): Add 'self' argument.
10571 (remote_bfd_iovec_pread, remote_file_get): Update.
10572 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10573
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10575
10576 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10577 * target.c (target_fileio_pwrite): Add argument.
10578 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10579 (remote_file_put): Update.
10580 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10581
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10583
10584 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10585 * target.c (target_fileio_open): Add argument.
10586 * remote.c (remote_hostio_open): Add 'self' argument.
10587 (remote_bfd_iovec_open): Add 'self' argument.
10588 (remote_file_put): Add 'self' argument.
10589 (remote_file_get): Add 'self' argument.
10590 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10591
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10593
10594 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10595 Add argument.
10596 (target_can_run_breakpoint_commands): Add argument.
10597 * target.c (update_current_target): Update.
10598 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10599 argument.
10600 (remote_insert_breakpoint): Add 'self' argument.
10601 (remote_insert_hw_breakpoint): Add 'self' argument.
10602 (remote_can_run_breakpoint_commands): Add 'self' argument.
10603
10604 2014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target.h (struct target_ops)
10607 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10608 (target_supports_evaluation_of_breakpoint_conditions): Add
10609 argument.
10610 * target.c (update_current_target): Update.
10611 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10612 argument.
10613 (remote_insert_breakpoint): Add 'self' argument.
10614 (remote_insert_hw_breakpoint): Add 'self' argument.
10615 (remote_supports_cond_breakpoints): Add 'self' argument.
10616
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10618
10619 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10620 argument.
10621 (target_supports_string_tracing): Add argument.
10622 * target.c (update_current_target): Update.
10623 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10624
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10626
10627 * target.h (struct target_ops)
10628 <to_supports_disable_randomization>: Add argument.
10629 * target.c (find_default_supports_disable_randomization): Add
10630 argument.
10631 (target_supports_disable_randomization): Add argument.
10632 (find_default_supports_disable_randomization): Add 'self'
10633 argument.
10634 * remote.c (extended_remote_supports_disable_randomization): Add
10635 'self' argument.
10636 (remote_supports_disable_randomization): Add 'self' argument.
10637 (extended_remote_create_inferior): Update.
10638 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10639 'self' argument.
10640
10641 2014-02-19 Tom Tromey <tromey@redhat.com>
10642
10643 * target.h (struct target_ops)
10644 <to_supports_enable_disable_tracepoint>: Add argument.
10645 (target_supports_enable_disable_tracepoint): Add argument.
10646 * target.c (update_current_target): Update.
10647 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10648 argument.
10649
10650 2014-02-19 Tom Tromey <tromey@redhat.com>
10651
10652 * target.h (struct target_ops) <to_supports_multi_process>: Add
10653 argument.
10654 (target_supports_multi_process): Add argument.
10655 * target.c (update_current_target): Update.
10656 * remote.c (remote_supports_multi_process): Add 'self' argument.
10657 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10658 argument.
10659 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10660 argument.
10661
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10663
10664 * target.h (struct target_ops) <to_execution_direction>: Add
10665 argument.
10666 (target_execution_direction): Add argument.
10667 * target.c (default_execution_direction): Add 'self' argument.
10668 * record-full.c (record_full_execution_direction): Add 'self'
10669 argument.
10670
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10672
10673 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10674 argument.
10675 (target_can_execute_reverse): Add argument.
10676 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10677 * record-full.c (record_full_can_execute_reverse): Add 'self'
10678 argument.
10679 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10680 argument.
10681
10682 2014-02-19 Tom Tromey <tromey@redhat.com>
10683
10684 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10685 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10686 argument.
10687 (target_get_ada_task_ptid): Add argument.
10688 * target.c (update_current_target): Update.
10689 (default_get_ada_task_ptid): Add 'self' argument.
10690 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10691 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10692 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10693 argument.
10694 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10695 argument.
10696 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10697 argument.
10698 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10699 argument.
10700 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10701 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10702 argument.
10703
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10705
10706 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10707 (target_goto_bookmark): Add argument.
10708 * target.c (dummy_goto_bookmark): Add 'self' argument.
10709 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10710
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10714 (target_get_bookmark): Add argument.
10715 * target.c (dummy_get_bookmark): Add 'self' argument.
10716 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10717
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10719
10720 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10721 argument.
10722 (target_make_corefile_notes): Add argument.
10723 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10724 * procfs.c (procfs_make_note_section): Add 'self' argument.
10725 (procfs_make_note_section): Add 'self' argument.
10726 (procfs_make_note_section): Add 'self' argument.
10727 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10728 argument.
10729 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10730 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10731 * exec.c (exec_make_note_section): Add 'self' argument.
10732 (exec_make_note_section): Add 'self' argument.
10733
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10735
10736 * target.h (struct target_ops) <to_find_memory_regions>: Add
10737 argument.
10738 (target_find_memory_regions): Add argument.
10739 * target.c (dummy_find_memory_regions): Add 'self' argument.
10740 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10741 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10742 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10743 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10744 * exec. (exec_do_find_memory_regions): New global.
10745 (exec_set_find_memory_regions): Rewrite.
10746 (exec_find_memory_regions): New function.
10747 (init_exec_ops): Use exec_find_memory_regions.
10748
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10750
10751 * target.h (struct target_ops) <to_supports_non_stop>: Add
10752 argument.
10753 * target.c (find_default_supports_non_stop): Add argument.
10754 (target_supports_non_stop): Add argument.
10755 (find_default_supports_non_stop): Add 'self' argument.
10756 * remote.c (remote_supports_non_stop): Add 'self' argument.
10757 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10758
10759 2014-02-19 Tom Tromey <tromey@redhat.com>
10760
10761 * target.h (struct target_ops) <to_log_command>: Add argument.
10762 (target_log_command): Add argument.
10763 * serial.h (serial_log_command): Add 'self' argument.
10764 * serial.c (serial_log_command): Add 'self' argument.
10765
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10767
10768 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10769 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10770 argument.
10771 (target_pid_to_exec_file): Add argument.
10772 * target.c (debug_to_pid_to_exec_file): Add argument.
10773 (update_current_target): Update.
10774 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10775 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10776 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10777 (linux_handle_extended_wait): Update.
10778 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10779 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10780 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10781 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10782
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10784
10785 * target.h (struct target_ops) <to_rcmd>: Add argument.
10786 (target_rcmd): Add argument.
10787 * target.c (debug_to_rcmd): Add argument.
10788 (update_current_target, do_monitor_command): Update.
10789 * remote.c (remote_rcmd): Add 'self' argument.
10790 * monitor.c (monitor_rcmd): Add 'self' argument.
10791
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10793
10794 * windows-nat.c (windows_stop): Add 'self' argument.
10795 * target.h (struct target_ops) <to_stop>: Add argument.
10796 * target.c (target_stop): Add argument.
10797 (debug_to_stop): Add argument.
10798 (update_current_target): Update.
10799 * remote.c (remote_stop): Add 'self' argument.
10800 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10801 (gdbsim_cntrl_c): Update.
10802 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10803 * procfs.c (procfs_stop): Add 'self' argument.
10804 * nto-procfs.c (procfs_stop): Add 'self' argument.
10805 * monitor.c (monitor_stop): Add 'self' argument.
10806 (monitor_open): Update.
10807 * linux-nat.c (linux_nat_stop): Add argument.
10808 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10809 * gnu-nat.c (gnu_stop): Add 'self' argument.
10810 * darwin-nat.c (darwin_stop): Add 'self' argument.
10811
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target.h (struct target_ops) <to_thread_name>: Add argument.
10815 * target.c (target_thread_name): Add argument.
10816 (update_current_target): Update.
10817 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10818
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10820
10821 * target.h (struct target_ops) <to_extra_thread_info>: Add
10822 argument.
10823 (target_extra_thread_info): Add argument.
10824 * target.c (update_current_target): Update.
10825 * remote.c (remote_threads_extra_info): Add 'self' argument.
10826 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10827 argument.
10828 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10829 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10830 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10831 argument.
10832 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10833 argument.
10834 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10835 argument.
10836 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10837 argument.
10838
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10840
10841 * target.h (struct target_ops) <to_program_signals>: Add argument.
10842 * target.c (target_program_signals): Add argument.
10843 * remote.c (remote_program_signals): Add 'self' argument.
10844
10845 2014-02-19 Tom Tromey <tromey@redhat.com>
10846
10847 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10848 * target.c (target_pass_signals): Add argument.
10849 * remote.c (remote_pass_signals): Add 'self' argument.
10850 (remote_start_remote): Update.
10851 * procfs.c (procfs_pass_signals): Add 'self' argument.
10852 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10853 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10854 (linux_nat_create_inferior, linux_nat_attach): Update.
10855
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * windows-nat.c (windows_can_run): Add 'self' argument.
10859 * target.h (struct target_ops) <to_can_run>: Add argument.
10860 (target_can_run): Add argument.
10861 * target.c (debug_to_can_run): Add argument.
10862 (update_current_target): Update.
10863 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10864 * inf-child.c (inf_child_can_run): Add 'self' argument.
10865 * go32-nat.c (go32_can_run): Add 'self' argument.
10866
10867 2014-02-19 Tom Tromey <tromey@redhat.com>
10868
10869 * target.h (struct target_ops) <to_has_exited>: Add argument.
10870 (target_has_exited): Add argument.
10871 * target.c (debug_to_has_exited): Add argument.
10872 (update_current_target): Update.
10873
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10875
10876 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10877 argument.
10878 (target_set_syscall_catchpoint): Add argument.
10879 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10880 argument.
10881 * target.c (update_current_target): Update.
10882
10883 2014-02-19 Tom Tromey <tromey@redhat.com>
10884
10885 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10886 argument.
10887 (target_remove_exec_catchpoint): Add argument.
10888 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10889 (update_current_target): Update.
10890 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10891 argument.
10892
10893 2014-02-19 Tom Tromey <tromey@redhat.com>
10894
10895 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10896 argument.
10897 (target_insert_exec_catchpoint): Add argument.
10898 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10899 (update_current_target): Update.
10900 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10901 argument.
10902
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10904
10905 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10906 argument.
10907 (target_remove_vfork_catchpoint): Add argument.
10908 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10909 (update_current_target): Update.
10910 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10911 argument.
10912
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10914
10915 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10916 argument.
10917 (target_insert_vfork_catchpoint): Add argument.
10918 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10919 (update_current_target): Update.
10920 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10921 argument.
10922
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10926 argument.
10927 (target_remove_fork_catchpoint): Add argument.
10928 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10929 (update_current_target): Update.
10930 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10931 argument.
10932
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10936 argument.
10937 (target_insert_fork_catchpoint): Add argument.
10938 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10939 (update_current_target): Update.
10940 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10941 argument.
10942
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10944
10945 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10946 argument.
10947 (target_post_startup_inferior): Add argument.
10948 * target.c (debug_to_post_startup_inferior): Add argument.
10949 (update_current_target): Update.
10950 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10951 argument.
10952 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10953 argument.
10954 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10955 argument.
10956 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10957 argument.
10958 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10959 'self' argument.
10960 (super_post_startup_inferior): Likewise.
10961 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10962 'self' argument.
10963 (super_post_startup_inferior): Likewise.
10964 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10965 Add 'self' argument.
10966 (super_post_startup_inferior): Likewise.
10967
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10969
10970 * target.h (struct target_ops) <to_load>: Add argument.
10971 * target.c (target_load): Add argument.
10972 (debug_to_load): Add argument.
10973 (update_current_target): Update.
10974 * remote.c (remote_load): Add 'self' argument.
10975 * remote-sim.c (gdbsim_load): Add 'self' argument.
10976 * remote-mips.c (mips_load): Add 'self' argument.
10977 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10978 * monitor.c (monitor_load): Add 'self' argument.
10979 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10980
10981 2014-02-19 Tom Tromey <tromey@redhat.com>
10982
10983 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10984 (target_terminal_info): Add argument.
10985 * target.c (debug_to_terminal_info): Add argument.
10986 (default_terminal_info): Likewise.
10987 * inflow.c (child_terminal_info): Add 'self' argument.
10988 * inferior.h (child_terminal_info): Add 'self' argument.
10989 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10990
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10994 argument.
10995 (target_terminal_save_ours): Add argument.
10996 * target.c (debug_to_terminal_save_ours): Add argument.
10997 (update_current_target): Update.
10998 * inflow.c (terminal_save_ours): Add 'self' argument.
10999 * inferior.h (terminal_save_ours): Add 'self' argument.
11000
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11002
11003 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11004 (target_terminal_ours): Add argument.
11005 * target.c (debug_to_terminal_ours): Add argument.
11006 (update_current_target): Update.
11007 * remote.c (remote_terminal_ours): Add 'self' argument.
11008 (remote_close): Update.
11009 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11010 * inflow.c (terminal_ours): Add 'self' argument.
11011 * inferior.h (terminal_ours): Add 'self' argument.
11012 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11013
11014 2014-02-19 Pedro Alves <palves@redhat.com>
11015 Tom Tromey <tromey@redhat.com>
11016
11017 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11018 argument.
11019 (target_terminal_ours_for_output): Add argument.
11020 * target.c (debug_to_terminal_ours_for_output): Add argument.
11021 (update_current_target): Update.
11022 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11023 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11024 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11025
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11027
11028 * target.h (struct target_ops) <to_terminal_inferior>: Add
11029 argument.
11030 * target.c (target_terminal_inferior): Add argument.
11031 (update_current_target): Update.
11032 * remote.c (remote_terminal_inferior): Add 'self' argument.
11033 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11034 * inflow.c (terminal_inferior): Add 'self' argument.
11035 * inferior.h (terminal_inferior): Add 'self' argument.
11036 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11037 (go32_terminal_inferior): Add 'self' argument.
11038
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11042 (target_terminal_init): Add argument.
11043 * target.c (debug_to_terminal_init): Add argument.
11044 (update_current_target): Update.
11045 * inflow.c (terminal_init_inferior): Add 'self' argument.
11046 * inferior.h (terminal_init_inferior): Add 'self' argument.
11047 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11048 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11049
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11051
11052 * target.h (struct target_ops)
11053 <to_can_accel_watchpoint_condition>: Add argument.
11054 (target_can_accel_watchpoint_condition): Add argument.
11055 * target.c (debug_to_can_accel_watchpoint_condition): Add
11056 argument.
11057 (update_current_target): Update.
11058 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11059 'self' argument.
11060
11061 2014-02-19 Tom Tromey <tromey@redhat.com>
11062
11063 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11064 Add argument.
11065 (target_region_ok_for_hw_watchpoint): Add argument.
11066 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11067 (default_region_ok_for_hw_watchpoint): Add argument.
11068 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11069 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11070 argument.
11071 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11072 argument.
11073 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11074 argument.
11075 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11076 'self' argument.
11077 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11078 'self' argument.
11079 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11080 'self' argument.
11081 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11082 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11083 'self' argument.
11084 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11085 Add 'self' argument.
11086
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11090 argument.
11091 (target_insert_watchpoint): Add argument.
11092 * target.c (debug_to_insert_watchpoint): Add argument.
11093 (update_current_target): Update.
11094 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11095 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11096 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11097 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11098 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11099 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11100 argument.
11101 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11102 (procfs_insert_hw_watchpoint): Add 'self' argument.
11103 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11104 argument.
11105 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11106 argument.
11107 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11108 argument.
11109 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11110 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11111 argument.
11112 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11113 'self' argument.
11114
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11116
11117 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11118 argument.
11119 (target_remove_watchpoint): Add argument.
11120 * target.c (debug_to_remove_watchpoint): Add argument.
11121 (update_current_target): Update.
11122 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11123 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11124 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11125 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11126 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11127 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11128 argument.
11129 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11130 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11131 argument.
11132 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11133 argument.
11134 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11135 argument.
11136 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11137 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11138 argument.
11139 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11140 'self' argument.
11141
11142 2014-02-19 Tom Tromey <tromey@redhat.com>
11143
11144 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11145 argument.
11146 (target_remove_hw_breakpoint): Add argument.
11147 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11148 (update_current_target): Update.
11149 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11150 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11151 argument.
11152 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11153 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11154 argument.
11155 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11156 'self' argument.
11157
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11159
11160 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11161 argument.
11162 (target_insert_hw_breakpoint): Add argument.
11163 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11164 (update_current_target): Update.
11165 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11166 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11167 argument.
11168 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11169 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11170 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11171 argument.
11172 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11173 'self' argument.
11174
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11176
11177 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11178 argument.
11179 (target_can_use_hardware_watchpoint): Add argument.
11180 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11181 (update_current_target): Update.
11182 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11183 argument.
11184 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11185 argument.
11186 * remote.c (remote_check_watch_resources): Add 'self' argument.
11187 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11188 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11189 argument.
11190 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11191 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11192 argument.
11193 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11194 argument.
11195 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11196 argument.
11197 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11198 argument.
11199 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11200 argument.
11201 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11202 argument.
11203 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11204 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11205 argument.
11206 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11207 'self' argument.
11208
11209 2014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target.h (struct target_ops) <to_post_attach>: Add argument.
11212 (target_post_attach): Add argument.
11213 * target.c (debug_to_post_attach): Add argument.
11214 (update_current_target): Update.
11215 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11216 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11217 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11218 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11219 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11220
11221 2014-02-19 Tom Tromey <tromey@redhat.com>
11222
11223 * windows-nat.c (windows_close): Add 'self' argument.
11224 * tracepoint.c (tfile_close): Add 'self' argument.
11225 * target.h (struct target_ops) <to_close>: Add argument.
11226 * target.c (target_close): Add argument.
11227 (update_current_target): Update.
11228 * remote.c (remote_close): Add 'self' argument.
11229 * remote-sim.c (gdbsim_close): Add 'self' argument.
11230 * remote-mips.c (mips_close): Add 'self' argument.
11231 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11232 * record-full.c (record_full_close): Add 'self' argument.
11233 * record-btrace.c (record_btrace_close): Add 'self' argument.
11234 * monitor.h (monitor_close): Add 'self' argument.
11235 * monitor.c (monitor_close): Add 'self' argument.
11236 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11237 * linux-nat.c (linux_nat_close): Add argument.
11238 * go32-nat.c (go32_close): Add 'self' argument.
11239 * exec.c (exec_close_1): Add 'self' argument.
11240 * ctf.c (ctf_close): Add 'self' argument.
11241 * corelow.c (core_close): Add 'self' argument.
11242 (core_close_cleanup): Update.
11243 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11244 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11245
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * remote.c (remote_load): New function.
11249 (init_remote_ops): Use it.
11250
11251 2014-02-19 Tom Tromey <tromey@redhat.com>
11252
11253 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11254 argument.
11255 * common/linux-btrace.h (linux_supports_btrace): Update.
11256 * remote.c (remote_supports_btrace): Add "self" argument.
11257 * target-delegates.c: Rebuild.
11258 * target.c (target_supports_btrace): Remove.
11259 * target.h (struct target_ops) <to_supports_btrace>: Add
11260 target_ops argument.
11261 (target_supports_btrace): New define.
11262
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * record-full.c (record_full_beneath_to_resume_ops)
11266 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11267 (record_full_beneath_to_wait)
11268 (record_full_beneath_to_store_registers_ops)
11269 (record_full_beneath_to_store_registers)
11270 (record_full_beneath_to_xfer_partial_ops)
11271 (record_full_beneath_to_xfer_partial)
11272 (record_full_beneath_to_insert_breakpoint_ops)
11273 (record_full_beneath_to_insert_breakpoint)
11274 (record_full_beneath_to_remove_breakpoint_ops)
11275 (record_full_beneath_to_remove_breakpoint)
11276 (record_full_beneath_to_stopped_by_watchpoint)
11277 (record_full_beneath_to_stopped_data_address)
11278 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11279 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11280 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11281 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11282 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11283 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11284 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11285 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11286 (record_full_resume, record_full_wait_1)
11287 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11288 (record_full_store_registers, record_full_xfer_partial)
11289 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11290 (record_full_async, record_full_core_xfer_partial): Use target
11291 delegation.
11292 * target-delegates.c: Rebuild.
11293 * target.c (current_xfer_partial): Remove.
11294 (update_current_target): Do not INHERIT or de_fault
11295 to_insert_breakpoint, to_remove_breakpoint,
11296 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11297 to_is_async_p, to_async. Do not set to_xfer_partial field.
11298 (default_xfer_partial): Simplify.
11299 (current_xfer_partial): Remove.
11300 (target_wait, target_resume): Simplify.
11301 (find_default_can_async_p, find_default_is_async_p): Update.
11302 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11303 to_xfer_partial, to_stopped_by_watchpoint,
11304 to_stopped_data_address.
11305 (target_store_registers): Simplify.
11306 (forward_target_remove_breakpoint)
11307 (forward_target_insert_breakpoint): Remove.
11308 (target_remove_breakpoint, target_insert_breakpoint)
11309 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11310 * target.h (struct target_ops) <to_resume, to_wait,
11311 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11312 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11313 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11314 markup.
11315 (forward_target_remove_breakpoint)
11316 (forward_target_insert_breakpoint): Remove.
11317 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11318 directly.
11319 (record_btrace_insert_breakpoint): Delegate directly.
11320
11321 2014-02-19 Tom Tromey <tromey@redhat.com>
11322
11323 PR build/7701:
11324 * target-delegates.c: New file.
11325 * target.c: Include target-delegates.c.
11326 (init_dummy_target): Call install_dummy_methods.
11327 (complete_target_initialization): Call install_delegators.
11328 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11329 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11330 * make-target-delegates: New file.
11331
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * record.c (find_record_target): Use find_target_at.
11335 * target.c (find_target_at): New function.
11336 * target.h (find_target_at): Declare.
11337
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11341 Add 'ops' argument.
11342 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11343 'ops' argument.
11344 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11345 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11346 'ops' argument.
11347 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11348 argument.
11349 * linux-nat.c (save_sigtrap): Update.
11350 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11351 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11352 (linux_nat_close): Update.
11353 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11354 argument.
11355 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11356 argument.
11357 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11358 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11359 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11360 (tmp_to_async): Add 'ops' argument.
11361 (record_full_stopped_by_watchpoint, record_full_async)
11362 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11363 argument.
11364 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11365 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11366 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11367 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11368 (remote_is_async_p, remote_async): Add 'ops' argument.
11369 (remote_stopped_data_address): Update.
11370 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11371 * target.c (update_current_target)
11372 (find_default_can_async_p, find_default_is_async_p): Update.
11373 (init_dummy_target): Update.
11374 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11375 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11376 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11377 (target_can_async_p, target_is_async_p, target_async)
11378 (target_stopped_by_watchpoint): Update.
11379
11380 2014-02-19 Yao Qi <yao@codesourcery.com>
11381
11382 PR gdb/16220
11383 * gdbarch.sh: Remove startup_gdbarch.
11384 * gdbarch.c: Regenerated.
11385 * gdbarch.h: Likewise.
11386
11387 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11388
11389 * rl78-tdep.c (rl78_g10_register_name): New function.
11390 (rl78_return_value): Add g10 support.
11391 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11392 g10.
11393
11394 2014-02-17 Doug Evans <xdje42@gmail.com>
11395
11396 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11397 (SUBDIR_GUILE_SRCS): Ditto.
11398 (scm-gsmob.o): Ditto.
11399
11400 2014-02-17 Yao Qi <yao@codesourcery.com>
11401
11402 * gnu-nat.c (ILL_RPC): Declare defined function.
11403
11404 2014-02-17 Yao Qi <yao@codesourcery.com>
11405
11406 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11407 mach_msg_type_number_t.
11408 (gnu_write_inferior): Likewise.
11409
11410 2014-02-17 Yao Qi <yao@codesourcery.com>
11411
11412 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11413 in format string.
11414 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11415 (inf_validate_procs, inf_signal): Likewise.
11416 (S_exception_raise_request): Likewise.
11417 (do_mach_notify_dead_name): Likewise.
11418 (steal_exc_port): Likewise.
11419 (gnu_read_inferior): Change 'copy_count''s type to
11420 mach_msg_type_number_t.
11421 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11422 format string.
11423
11424 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11425
11426 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11427 flag. Adjust all users; in particular...
11428 (gnu_wait): ..., don't decrement its value in here...
11429 (gnu_create_inferior): ..., and instead set the flag in here,
11430 around the startup_inferior call, and call that one with
11431 START_INFERIOR_TRAPS_EXPECTED.
11432
11433 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11434 (ILL_RPC): ... new macro.
11435 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11436 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11437 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11438 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11439 functions with ILL_RPC macro.
11440 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11441 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11442 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11443 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11444 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11445 (S_proc_getlogin_reply, S_proc_getsid_reply)
11446 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11447 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11448 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11449 (S_proc_getnports_reply, S_proc_is_important_reply)
11450 (S_proc_get_code_reply): New stub functions, generated with
11451 ILL_RPC macro.
11452
11453 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11454 collected the type check structures.
11455
11456 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11457
11458 2014-02-14 Doug Evans <dje@google.com>
11459
11460 * target.c (target_write_partial): Fix result type.
11461
11462 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11463
11464 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11465 the proper offsets to access fpregset_t.
11466
11467 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11468
11469 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11470 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11471 * h8300-tdep.c (setmachinelist): Remove global.
11472 * hppa-tdep.c (hppa_sigtramp): Remove global.
11473 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11474 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11475 * ravenscar-thread.c (update_target_observer): Remove global.
11476 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11477
11478 2014-02-12 Tom Tromey <tromey@redhat.com>
11479
11480 * common/rsp-low.c: Update comments.
11481 * common/rsp-low.h: Update comments.
11482
11483 2014-02-12 Tom Tromey <tromey@redhat.com>
11484
11485 * common/rsp-low.c (convert_ascii_to_int): Remove.
11486 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11487
11488 2014-02-12 Tom Tromey <tromey@redhat.com>
11489
11490 * common/rsp-low.h (unhexify): Don't declare.
11491 * common/rsp-low.c (unhexify): Remove.
11492
11493 2014-02-12 Tom Tromey <tromey@redhat.com>
11494
11495 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11496 * common/rsp-low.c (convert_int_to_ascii): Remove.
11497
11498 2014-02-12 Tom Tromey <tromey@redhat.com>
11499
11500 * common/rsp-low.h (hexify): Don't declare.
11501 * common/rsp-low.c (hexify): Remove.
11502
11503 2014-02-12 Tom Tromey <tromey@redhat.com>
11504
11505 * common/rsp-low.c (hexify): Never take strlen of argument.
11506
11507 2014-02-12 Tom Tromey <tromey@redhat.com>
11508
11509 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11510 * remote.c (extended_remote_run, remote_rcmd)
11511 (remote_download_trace_state_variable, remote_save_trace_data)
11512 (remote_set_trace_notes): Update.
11513 * tracepoint.c (encode_source_string, tfile_write_status)
11514 (tfile_write_uploaded_tsv): Update.
11515
11516 2014-02-12 Tom Tromey <tromey@redhat.com>
11517
11518 * tracepoint.c: Include rsp-low.h.
11519 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11520 * remote.c: Include rsp-low.h.
11521 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11522 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11523 (remote_unescape_input): Move to common/rsp-low.c.
11524 * common/rsp-low.h: New file.
11525 * common/rsp-low.c: New file.
11526 * Makefile.in (SFILES): Add common/rsp-low.c.
11527 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11528 (COMMON_OBS): Add rsp-low.o.
11529 (rsp-low.o): New target.
11530
11531 2014-02-12 Tom Tromey <tromey@redhat.com>
11532
11533 * utils.h: Include print-utils.h.
11534 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11535 (int_string, core_addr_to_string, core_addr_to_string_nz)
11536 (hex_string, hex_string_custom): Don't declare.
11537 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11538 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11539 (hex_string_custom, int_string, core_addr_to_string)
11540 (core_addr_to_string_nz, host_address_to_string): Move to
11541 common/print-utils.c.
11542 * common/print-utils.h: New file.
11543 * common/print-utils.c: New file
11544 * Makefile.in (SFILES): Add common/print-utils.c.
11545 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11546 (COMMON_OBS): Add print-utils.o.
11547 (print-utils.o): New target.
11548
11549 2014-02-12 Tom Tromey <tromey@redhat.com>
11550
11551 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11552
11553 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11554
11555 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11556
11557 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11558
11559 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11560 if a PT_IO ptrace request returns sucessfully but indicates that 0
11561 bytes were transferred.
11562
11563 2014-02-12 Pedro Alves <palves@redhat.com>
11564 Kevin Buettner <kevinb@redhat.com>
11565
11566 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11567 TYPE_INSTANCE_FLAG_CODE_SPACE.
11568
11569 2014-02-12 Pedro Alves <palves@redhat.com>
11570
11571 * h8300-tdep.c (pseudo_from_raw_register)
11572 (raw_from_pseudo_register): New functions.
11573 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11574 them.
11575
11576 2014-02-12 Pedro Alves <palves@redhat.com>
11577
11578 * h8300-tdep.c (h8300_register_sim_regno): New function.
11579 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11580 gdbarch_register_sim_regno hook.
11581
11582 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11583
11584 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11585
11586 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11587
11588 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11589
11590 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11591
11592 * obsd-tdep.h (obsd_init_abi): New prototype.
11593 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11594 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11595 (obsd_init_abi): New functions.
11596 * i386obsd-tdep.c: Include "obsd-tdep.h".
11597 (i386obsd_init_abi): Call obsd_init_abi.
11598 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11599 (amd64obsd_init_abi): Call obsd_init_abi.
11600 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11601 obsd-tdep.c to gdb_target_obs.
11602
11603 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11604
11605 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11606 double float arguments to 16-byte in the argument slots.
11607
11608 2014-02-11 Doug Evans <xdje42@gmail.com>
11609
11610 * configure.ac: Don't crash if pkg-config is not found and guile
11611 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11612 in guile checks.
11613 * configure: Regenerate.
11614
11615 2014-02-11 Yao Qi <yao@codesourcery.com>
11616
11617 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11618 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11619 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11620 * gnu-nat.c (gnu_xfer_memory): Likewise.
11621 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11622 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11623 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11624 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11625
11626 2014-02-11 Yao Qi <yao@codesourcery.com>
11627
11628 * target.h (enum target_xfer_error): Rename to ...
11629 (enum target_xfer_status): ... it. New. All users updated.
11630 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11631 New.
11632 (TARGET_XFER_STATUS_ERROR_P): New macro.
11633 (target_xfer_error_to_string): Remove declaration.
11634 (target_xfer_status_to_string): Declare.
11635 (target_xfer_partial_ftype): Adjust it.
11636 (struct target_ops) <to_xfer_partial>: Return
11637 target_xfer_status. Add argument xfered_len. Update
11638 comments.
11639 * target.c (target_xfer_error_to_string): Rename to ...
11640 (target_xfer_status_to_string): ... it. New. All callers
11641 updated.
11642 (target_read_live_memory): Likewise. Call target_xfer_partial
11643 instead of target_read.
11644 (memory_xfer_live_readonly_partial): Return
11645 target_xfer_status. Add argument xfered_len.
11646 (raw_memory_xfer_partial): Likewise.
11647 (memory_xfer_partial_1): Likewise.
11648 (memory_xfer_partial): Likewise.
11649 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11650 properly. Update debug message.
11651 (default_xfer_partial, current_xfer_partial): Likewise.
11652 (target_write_partial): Likewise.
11653 (target_read_partial): Likewise. All callers updated.
11654 (read_whatever_is_readable): Likewise.
11655 (target_write_with_progress): Likewise.
11656 (target_read_alloc_1): Likewise.
11657
11658 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11659 * auxv.c (procfs_xfer_auxv): Likewise.
11660 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11661 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11662 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11663 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11664 * corefile.c (read_memory): Adjust.
11665 * corelow.c (core_xfer_partial): Likewise.
11666 * ctf.c (ctf_xfer_partial): Likewise.
11667 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11668 updated.
11669 (darwin_xfer_partial): Likewise.
11670 * exec.c (section_table_xfer_memory_partial): Likewise. All
11671 callers updated.
11672 (exec_xfer_partial): Likewise.
11673 * exec.h (section_table_xfer_memory_partial): Update
11674 declaration.
11675 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11676 negative.
11677 (gnu_xfer_partial): Likewise.
11678 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11679 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11680 (ia64_hpux_xfer_solib_got): Likewise.
11681 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11682 type of 'partial_len' to ULONGEST.
11683 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11684 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11685 (linux_nat_xfer_partial): Likewise.
11686 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11687 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11688 * monitor.c (monitor_xfer_memory): Likewise.
11689 (monitor_xfer_partial): Likewise.
11690 * procfs.c (procfs_xfer_partial): Likewise.
11691 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11692 * record-full.c (record_full_xfer_partial): Likewise.
11693 (record_full_core_xfer_partial): Likewise.
11694 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11695 (gdbsim_xfer_partial): Likewise.
11696 * remote.c (remote_write_bytes_aux): Likewise. All callers
11697 updated.
11698 (remote_write_bytes, remote_read_bytes): Likewise. All
11699 callers updated.
11700 (remote_flash_erase): Likewise. All callers updated.
11701 (remote_write_qxfer): Likewise. All callers updated.
11702 (remote_read_qxfer): Likewise. All callers updated.
11703 (remote_xfer_partial): Likewise.
11704 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11705 (rs6000_xfer_shared_libraries): Likewise.
11706 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11707 (sol_thread_xfer_partial): Likewise.
11708 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11709 (sparc_xfer_partial): Likewise.
11710 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11711 updated.
11712 (spu_xfer_partial): Likewise.
11713 * spu-multiarch.c (spu_xfer_partial): Likewise.
11714 * tracepoint.c (tfile_xfer_partial): Likewise.
11715 * windows-nat.c (windows_xfer_memory): Likewise.
11716 (windows_xfer_shared_libraries): Likewise.
11717 (windows_xfer_partial): Likewise.
11718 * valprint.c: Replace 'target_xfer_error' with
11719 'target_xfer_status' in comments.
11720
11721 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11722
11723 Checked in by Joel Brobecker <brobecker@adacore.com>.
11724 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11725
11726 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11727
11728 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11729 function parameters.
11730
11731 2014-02-10 Will Newton <will.newton@linaro.org>
11732
11733 * elfread.c (elf_rel_plt_read): Look for a .got section if
11734 looking up .got.plt fails.
11735 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11736 on address passed to elf_gnu_ifunc_record_cache.
11737 (elf_gnu_ifunc_resolve_addr): Likewise.
11738 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11739
11740 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11741
11742 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11743 (X_RETTURN): New macro.
11744 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11745
11746 * sparc64-tdep.c (sparc64_init_abi): Hook
11747 sparc_in_function_epilogue_p.
11748
11749 2014-02-10 Gary Benson <gbenson@redhat.com>
11750
11751 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11752 Rename name_matcher to symbol_matcher.
11753
11754 2014-02-10 Gary Benson <gbenson@redhat.com>
11755
11756 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11757 Use expand_symtabs_file_matcher_ftype and
11758 expand_symtabs_symbol_matcher_ftype.
11759
11760 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11761
11762 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11763 (struct ada_symbol_cache): New.
11764 (ada_free_symbol_cache): Forward declare.
11765 (struct ada_pspace_data): New.
11766 (ada_pspace_data_handle): New static global.
11767 (get_ada_pspace_data, ada_pspace_data_cleanup)
11768 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11769 (cache_space, cache): Delete, now folded inside struct
11770 ada_pspace_data.
11771 (ada_get_symbol_cache): New function.
11772 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11773 implementation.
11774 (_initialize_ada_language): Remove initialization of cache_space.
11775 Move call to observer_attach_inferior_exit up, grouping it
11776 with the other observer registrations inside this function.
11777 Rename command to be more general. Add call to
11778 register_program_space_data_with_cleanup.
11779
11780 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11781
11782 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11783 ada_new_objfile_observer.
11784 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11785 (_initialize_tasks): Update uses of ada_new_objfile_observer
11786 and ada_tasks_normal_stop_observer.
11787
11788 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11789
11790 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11791 returned by the 'Length attribute to integer.
11792
11793 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11794
11795 * ada-lang.c (_initialize_ada_language): Initialize
11796 cache_space obstack.
11797
11798 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11799
11800 * ada-lang.c (HASH_SIZE): New macro.
11801 (struct cache_entry): New type.
11802 (cache_space, cache): New static globals.
11803 (ada_clear_symbol_cache, find_entry): New functions.
11804 (lookup_cached_symbol, cache_symbol): Implement.
11805 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11806 (_initialize_ada_language): Attach ada_new_objfile_observer
11807 and ada_free_objfile_observer.
11808
11809 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11810
11811 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11812 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11813 struct block * parameter.
11814 (ada_lookup_symbol_list_worker): Constify local variable "block".
11815 Remove cast which is no longer necessary.
11816
11817 2014-02-10 Doug Evans <xdje42@gmail.com>
11818
11819 Add Guile as an extension language.
11820 * NEWS: Mention Guile scripting.
11821 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11822 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11823 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11824 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11825 (CLIBS): Add GUILE_LIBS.
11826 (install-guile): New rule.
11827 (guile.o): New rule.
11828 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11829 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11830 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11831 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11832 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11833 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11834 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11835 * configure.ac: New option --with-guile.
11836 * configure: Regenerate.
11837 * config.in: Regenerate.
11838 * auto-load.c: Remove #include "python/python.h". Add #include
11839 "gdb/section-scripts.h".
11840 (source_section_scripts): Handle Guile scripts.
11841 (_initialize_auto_load): Add name of Guile objfile script to
11842 scripts-directory help text.
11843 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11844 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11845 (struct breakpoint): New member scm_bp_object.
11846 * defs.h (enum command_control_type): New value guile_control.
11847 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11848 "extension.h".
11849 (show_user): Update comment.
11850 (_initialize_cli_cmds): Update help text for "show user". Update help
11851 text for max-user-call-depth.
11852 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11853 "extension.h".
11854 (multi_line_command_p): Add guile_control.
11855 (print_command_lines): Handle guile_control.
11856 (execute_control_command, recurse_read_control_structure): Ditto.
11857 (process_next_line): Recognize "guile" commands.
11858 * disasm.c (gdb_disassemble_info): Make non-static.
11859 * disasm.h: #include "dis-asm.h".
11860 (struct gdbarch): Add forward decl.
11861 (gdb_disassemble_info): Declare.
11862 * extension.c: #include "guile/guile.h".
11863 (extension_languages): Add guile.
11864 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11865 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11866 * gdbtypes.c (get_unsigned_type_max): New function.
11867 (get_signed_type_minmax): New function.
11868 * gdbtypes.h (get_unsigned_type_max): Declare.
11869 (get_signed_type_minmax): Declare.
11870 * guile/README: New file.
11871 * guile/guile-internal.h: New file.
11872 * guile/guile.c: New file.
11873 * guile/guile.h: New file.
11874 * guile/scm-arch.c: New file.
11875 * guile/scm-auto-load.c: New file.
11876 * guile/scm-block.c: New file.
11877 * guile/scm-breakpoint.c: New file.
11878 * guile/scm-disasm.c: New file.
11879 * guile/scm-exception.c: New file.
11880 * guile/scm-frame.c: New file.
11881 * guile/scm-gsmob.c: New file.
11882 * guile/scm-iterator.c: New file.
11883 * guile/scm-lazy-string.c: New file.
11884 * guile/scm-math.c: New file.
11885 * guile/scm-objfile.c: New file.
11886 * guile/scm-ports.c: New file.
11887 * guile/scm-pretty-print.c: New file.
11888 * guile/scm-safe-call.c: New file.
11889 * guile/scm-string.c: New file.
11890 * guile/scm-symbol.c: New file.
11891 * guile/scm-symtab.c: New file.
11892 * guile/scm-type.c: New file.
11893 * guile/scm-utils.c: New file.
11894 * guile/scm-value.c: New file.
11895 * guile/lib/gdb.scm: New file.
11896 * guile/lib/gdb/boot.scm: New file.
11897 * guile/lib/gdb/experimental.scm: New file.
11898 * guile/lib/gdb/init.scm: New file.
11899 * guile/lib/gdb/iterator.scm: New file.
11900 * guile/lib/gdb/printing.scm: New file.
11901 * guile/lib/gdb/types.scm: New file.
11902 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11903 (VPATH): Add $(GUILE_SRCDIR).
11904 (GUILE_DIR): New variable.
11905 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11906 (all): Add stamp-guile dependency.
11907 (stamp-guile): New rule.
11908 (clean-guile, install-guile, uninstall-guile): New rules.
11909 (install-only): Add install-guile dependency.
11910 (uninstall): Add uninstall-guile dependency.
11911 (clean): Add clean-guile dependency.
11912
11913 2014-02-09 Doug Evans <xdje42@gmail.com>
11914
11915 Revert this patch (which I approved, mea culpa).
11916
11917 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11918
11919 * Makefile.in (all-lib): Remove.
11920 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11921
11922 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11923
11924 Fix Python stack corruption.
11925 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11926 gdb_py_longest.
11927
11928 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11929
11930 * Makefile.in (all-lib): Remove.
11931 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11932
11933 2014-02-07 Doug Evans <dje@google.com>
11934
11935 * extension-priv.h (extension_language_script_ops): Add comment.
11936 (extension_language_ops): Add comment.
11937 (active_ext_lang_state): Fix typo in comment.
11938
11939 2014-02-07 Pedro Alves <palves@redhat.com>
11940
11941 PR breakpoints/16292
11942 * infrun.c (handle_signal_stop) <signal arrives while stepping
11943 over a breakpoint>: Switch back to the stepping thread.
11944
11945 2014-02-07 Yao Qi <yao@codesourcery.com>
11946
11947 * target.c (target_xfer_partial): Return zero if LEN is zero.
11948
11949 2014-02-07 Yao Qi <yao@codesourcery.com>
11950
11951 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11952 (ld_so_xfer_auxv): Likewise.
11953 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11954 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11955 * corelow.c (core_xfer_partial): Likewise.
11956 * ctf.c (ctf_xfer_partial): Likewise.
11957 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11958 (darwin_xfer_partial): Likewise.
11959 * exec.c (exec_xfer_partial): Likewise.
11960 * gnu-nat.c (gnu_xfer_partial): Likewise.
11961 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11962 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11963 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11964 * linux-nat.c (linux_xfer_siginfo): Likewise.
11965 (linux_proc_xfer_spu): Likewise.
11966 * procfs.c (procfs_xfer_partial): Likewise.
11967 * record-full.c (record_full_xfer_partial): Likewise.
11968 (record_full_core_xfer_partial): Likewise.
11969 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11970 * remote.c (remote_write_qxfer): Likewise.
11971 (remote_write_qxfer, remote_read_qxfer): Likewise.
11972 (remote_xfer_partial): Likewise.
11973 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11974 (rs6000_xfer_shared_libraries): Likewise.
11975 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11976 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11977 (spu_xfer_partial): Likewise.
11978 * target.c (memory_xfer_partial_1): Likewise.
11979 * tracepoint.c (tfile_xfer_partial): Likewise.
11980 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11981 (windows_xfer_partial): Likewise.
11982
11983 2014-02-07 Yao Qi <yao@codesourcery.com>
11984
11985 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11986 comments.
11987 (core_xfer_shared_libraries_aix): Likewise.
11988 * gdbarch.c, gdbarch.h: Regenerated.
11989 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11990 ULONGEST. Change 'len_avail' type to ULONGEST.
11991 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11992 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11993 declaration.
11994 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11995
11996 2014-02-07 Yao Qi <yao@codesourcery.com>
11997
11998 * corefile.c (memory_error): Get 'exception' from ERR and pass
11999 'exception' to throw_error.
12000
12001 2014-02-06 Doug Evans <xdje42@gmail.com>
12002
12003 * configure.ac (libpython checking): Remove all but python.o from
12004 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12005 * configure: Regenerate.
12006
12007 * Makefile.in (SFILES): Add extension.c.
12008 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12009 (COMMON_OBS): Add extension.o.
12010 * extension.h: New file.
12011 * extension-priv.h: New file.
12012 * extension.c: New file.
12013
12014 * python/python-internal.h: #include "extension.h".
12015 (gdbpy_auto_load_enabled): Declare.
12016 (gdbpy_apply_val_pretty_printer): Declare.
12017 (gdbpy_apply_frame_filter): Declare.
12018 (gdbpy_preserve_values): Declare.
12019 (gdbpy_breakpoint_cond_says_stop): Declare.
12020 (gdbpy_breakpoint_has_cond): Declare.
12021 (void source_python_script_for_objfile): Delete.
12022 * python/python.c: #include "extension-priv.h".
12023 Delete inclusion of "observer.h".
12024 (extension_language_python): Moved here and renamed from
12025 script_language_python in py-auto-load.c.
12026 Redefined to be of type extension_language_defn.
12027 (python_extension_script_ops): New global.
12028 (python_extension_ops): New global.
12029 (struct python_env): New member previous_active.
12030 (restore_python_env): Call restore_active_ext_lang.
12031 (ensure_python_env): Call set_active_ext_lang.
12032 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12033 New arg extlang.
12034 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12035 New arg extlang.
12036 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12037 New arg extlang.
12038 (gdbpy_eval_from_control_command): Renamed from
12039 eval_python_from_control_command, made static. New arg extlang.
12040 (gdbpy_source_script) Renamed from source_python_script, made static.
12041 New arg extlang.
12042 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12043 result to int. New arg extlang.
12044 (gdbpy_source_objfile_script): Renamed from
12045 source_python_script_for_objfile, made static. New arg extlang.
12046 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12047 static. New args extlang, extlang_printers. Change result type to
12048 "void".
12049 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12050 static. New arg extlang. Rename arg printers to extlang_printers
12051 and change type to ext_lang_type_printers *.
12052 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12053 static. Replace argument arg with extlang, extlang_printers.
12054 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12055 (!HAVE_PYTHON, source_python_script): Delete.
12056 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12057 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12058 (!HAVE_PYTHON, start_type_printers): Delete.
12059 (!HAVE_PYTHON, apply_type_printers): Delete.
12060 (!HAVE_PYTHON, free_type_printers): Delete.
12061 (_initialize_python): Delete call to observer_attach_before_prompt.
12062 (finalize_python): Set/restore active extension language.
12063 (gdbpy_finish_initialization) Renamed from
12064 finish_python_initialization, made static. New arg extlang.
12065 (gdbpy_initialized): New function.
12066 * python/python.h: #include "extension.h". Delete #include
12067 "value.h", "mi/mi-cmds.h".
12068 (extension_language_python): Declare.
12069 (GDBPY_AUTO_FILE_NAME): Delete.
12070 (enum py_bt_status): Moved to extension.h and renamed to
12071 ext_lang_bt_status.
12072 (enum frame_filter_flags): Moved to extension.h.
12073 (enum py_frame_args): Moved to extension.h and renamed to
12074 ext_lang_frame_args.
12075 (finish_python_initialization): Delete.
12076 (eval_python_from_control_command): Delete.
12077 (source_python_script): Delete.
12078 (apply_val_pretty_printer): Delete.
12079 (apply_frame_filter): Delete.
12080 (preserve_python_values): Delete.
12081 (gdbpy_script_language_defn): Delete.
12082 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12083 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12084
12085 * auto-load.c: #include "extension.h".
12086 (GDB_AUTO_FILE_NAME): Delete.
12087 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12088 (script_language_gdb): Delete, moved to extension.c and renamed to
12089 extension_language_gdb.
12090 (source_gdb_script_for_objfile): Delete.
12091 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12092 (loaded_script): Change type of language member to
12093 struct extension_language_defn *.
12094 (init_loaded_scripts_info): Initialize
12095 unsupported_script_warning_printed.
12096 (maybe_add_script): Make static. Change type of language arg to
12097 struct extension_language_defn *.
12098 (clear_section_scripts): Reset unsupported_script_warning_printed.
12099 (auto_load_objfile_script_1): Rewrite to use extension language API.
12100 (auto_load_objfile_script): Make public. Remove support-compiled-in
12101 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12102 (source_section_scripts): Rewrite to use extension language API.
12103 (load_auto_scripts_for_objfile): Rewrite to use
12104 auto_load_scripts_for_objfile.
12105 (collect_matching_scripts_data): Change type of language member to
12106 struct extension_language_defn *.
12107 (auto_load_info_scripts): Change type of language arg to
12108 struct extension_language_defn *.
12109 (unsupported_script_warning_print): New function.
12110 (script_not_found_warning_print): Make static.
12111 (_initialize_auto_load): Rewrite construction of scripts-directory
12112 help.
12113 * auto-load.h (struct objfile): Add forward decl.
12114 (struct script_language): Delete.
12115 (struct auto_load_pspace_info): Add forward decl.
12116 (struct extension_language_defn): Add forward decl.
12117 (maybe_add_script): Delete.
12118 (auto_load_objfile_script): Declare.
12119 (script_not_found_warning_print): Delete.
12120 (auto_load_info_scripts): Update prototype.
12121 (auto_load_gdb_scripts_enabled): Declare.
12122 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12123 auto_load_python_scripts_enabled and made public.
12124 (script_language_python): Delete, moved to python.c.
12125 (gdbpy_script_language_defn): Delete.
12126 (info_auto_load_python_scripts): Update to use
12127 extension_language_python.
12128
12129 * breakpoint.c (condition_command): Replace call to
12130 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12131 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12132 with call to breakpoint_ext_lang_cond_says_stop.
12133 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12134 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12135 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12136 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12137 New arg slang.
12138 (local_setattro): Print name of extension language with existing
12139 stop condition.
12140
12141 * valprint.c (val_print, value_print): Update to call
12142 apply_ext_lang_val_pretty_printer.
12143 * cp-valprint.c (cp_print_value): Update call to
12144 apply_ext_lang_val_pretty_printer.
12145 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12146 (gdbpy_apply_val_pretty_printer): Renamed from
12147 apply_val_pretty_printer. New arg extlang.
12148 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12149
12150 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12151 extension language API.
12152 * cli/cli-script.c (execute_control_command): Update to call
12153 eval_ext_lang_from_control_command.
12154
12155 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12156 enum ext_lang_bt_status values. Update call to
12157 apply_ext_lang_frame_filter.
12158 (mi_cmd_stack_list_locals): Ditto.
12159 (mi_cmd_stack_list_args): Ditto.
12160 (mi_cmd_stack_list_variables): Ditto.
12161 * mi/mi-main.c: Delete #include "python/python-internal.h".
12162 Add #include "extension.h".
12163 (mi_cmd_list_features): Replace reference to python internal variable
12164 gdb_python_initialized with call to ext_lang_initialized_p.
12165
12166 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12167 Update to use enum ext_lang_frame_args. Update to call
12168 apply_ext_lang_frame_filter.
12169 * python/py-framefilter.c (extract_sym): Update to use enum
12170 ext_lang_bt_status.
12171 (extract_value, py_print_type, py_print_value): Ditto.
12172 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12173 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12174 (py_print_frame): Ditto.
12175 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12176 New arg extlang. Update to use enum ext_lang_bt_status.
12177
12178 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12179 finish_python_initialization. Replace with call to
12180 finish_ext_lang_initialization.
12181
12182 * typeprint.c (do_free_global_table): Update to call
12183 free_ext_lang_type_printers.
12184 (create_global_typedef_table): Update to call
12185 start_ext_lang_type_printers.
12186 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12187 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12188 (type_print_options): Change type of global_printers from "void *"
12189 to "struct ext_lang_type_printers *".
12190
12191 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12192 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12193 (gdbpy_preserve_values): Renamed from preserve_python_values.
12194 New arg extlang.
12195 (!HAVE_PYTHON, preserve_python_values): Delete.
12196
12197 * utils.c (quit_flag): Delete, moved to extension.c.
12198 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12199 extension.c.
12200
12201 * eval.c: Delete #include "python/python.h".
12202 * main.c: Delete #include "python/python.h".
12203
12204 * defs.h: Update comment.
12205
12206 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12207
12208 GDB 7.7 released.
12209
12210 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12211
12212 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12213 defined.
12214
12215 2014-02-05 Yao Qi <yao@codesourcery.com>
12216
12217 * remote.c (remote_pass_signals): Remove local 'buf' and use
12218 rs->buf.
12219 (remote_program_signals): Likewise.
12220
12221 2014-02-05 Yao Qi <yao@codesourcery.com>
12222
12223 * ctf.c: Include "inferior.h" and "gdbthread.h".
12224 (CTF_PID): A new macro.
12225 (ctf_open): Call inferior_appeared and add_thread_silent.
12226 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12227 (ctf_thread_alive): New function.
12228 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12229
12230 2014-02-05 Yao Qi <yao@codesourcery.com>
12231
12232 Revert this patch:
12233
12234 2013-05-24 Yao Qi <yao@codesourcery.com>
12235
12236 * tracepoint.c (TFILE_PID): Remove.
12237 (tfile_open): Don't add thread and inferior.
12238 (tfile_close): Don't set 'inferior_ptid'. Don't call
12239 exit_inferior_silent.
12240 (tfile_thread_alive): Remove.
12241 (init_tfile_ops): Don't set field 'to_thread_alive' of
12242 tfile_ops.
12243
12244 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12245
12246 * remote.c (remote_start_remote): Call remote_check_symbols even
12247 if only symbol-file (not file) has been given.
12248
12249 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12250
12251 * gdbarch.sh (skip_entrypoint): New callback.
12252 * gdbarch.c, gdbarch.h: Regenerate.
12253 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12254 * infrun.c (fill_in_stop_func): Likewise.
12255 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12256 (ppc_elfv2_elf_make_msymbol_special): New function.
12257 (ppc_elfv2_skip_entrypoint): Likewise.
12258 (ppc_linux_init_abi): Install them for ELFv2.
12259
12260 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12261
12262 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12263 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12264 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12265 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12266 structures returned in GPRs.
12267
12268 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12269
12270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12271 offset to the stack parameter list for the ELFv2 ABI.
12272
12273 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12274
12275 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12276 set_gdbarch_convert_from_func_ptr_addr and
12277 set_gdbarch_elf_make_msymbol_special for ELFv1.
12278 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12279 function descriptors on ELFv1.
12280 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12281 set up r12 at function entry.
12282
12283 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12284
12285 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12286 (struct gdbarch_tdep): New member elf_abi.
12287
12288 * rs6000-tdep.c: Include "elf/ppc64.h".
12289 (rs6000_gdbarch_init): Detect ELF ABI version.
12290
12291 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12292
12293 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12294 within a register pair holding a DFP 128-bit value on little-endian.
12295 (ppc64_sysv_abi_return_value_base): Likewise.
12296 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12297 (dfp_pseudo_register_write): Likewise.
12298
12299 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12300
12301 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12302 offset on little-endian when passing _Decimal32.
12303 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12304
12305 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12306
12307 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12308 of the overlapped FP register within the VSX register on little-
12309 endian platforms.
12310 (efpr_pseudo_register_write): Likewise.
12311
12312 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12313
12314 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12315 offset on little-endian when passing small structures.
12316
12317 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12318
12319 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12320 (struct ppc64_sysv_argpos): New data structure.
12321 (ppc64_sysv_abi_push_float): Remove.
12322 (ppc64_sysv_abi_push_val): New function.
12323 (ppc64_sysv_abi_push_integer): Likewise.
12324 (ppc64_sysv_abi_push_freg): Likewise.
12325 (ppc64_sysv_abi_push_vreg): Likewise.
12326 (ppc64_sysv_abi_push_param): Likewise.
12327 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12328 (ppc64_sysv_abi_return_value_base): New function.
12329 (ppc64_sysv_abi_return_value): Refactor to use it.
12330
12331 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12332
12333 * NEWS: Document new target powerpc64le-*-linux*.
12334
12335 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12336
12337 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12338 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12339 core dumps.
12340 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12341 register set used in ELF core dumps. Add floating-point register set.
12342
12343 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12344
12345 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12346 dwarf2_to_gdb[] table using symbolic constants. Adjust
12347 penultimate entry from number representing the PC register
12348 to symbolic constant representing the MDR register. Add
12349 constant for the PC register to the end of the table.
12350
12351 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12352
12353 * bsd-kvm.c: Include <sys/param.h>
12354
12355 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12356
12357 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12358
12359 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12360
12361 * ada-lang.h (clear_ada_sym_cache): Delete.
12362
12363 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12364
12365 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12366
12367 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12368
12369 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12370 the sigreturn register save area only if the syscall is
12371 sigreturn.
12372
12373 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12374
12375 * valops.c (value_slice): Minor reformatting.
12376
12377 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12378
12379 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12380
12381 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12382
12383 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12384 New static globals.
12385 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12386 (ada_ignore_descriptive_types_p): New static global.
12387 (find_parallel_type_by_descriptive_type): Return immediately
12388 if ada_ignore_descriptive_types_p is set.
12389 (_initialize_ada_language): Register new commands "maintenance
12390 set ada", "maintenance show ada", "maintenance set ada
12391 ignore-descriptive-types" and "maintenance show ada
12392 ignore-descriptive-types".
12393 * NEWS: Add entry for new "maint ada set/show
12394 ignore-descriptive-types" commands.
12395
12396 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12397
12398 * record-btrace.c (record_btrace_close): Call btrace_teardown
12399 for all threads.
12400
12401 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12402
12403 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12404 "ui-out.h".
12405
12406 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12407
12408 * ada-typeprint (type_is_full_subrange_of_target_type):
12409 New function.
12410 (print_range): Add parameter bounds_prefered_p. If not set,
12411 try printing range types using the name of their base type.
12412 (print_range_type): Add parameter bounds_prefered_p.
12413 Use it in call to print_range.
12414 (print_array_type, ada_print_type): Update calls to print_range
12415 and print_range_type.
12416
12417 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12418
12419 * ada-typeprint.c (print_array_type, print_choices, print_range)
12420 (print_range_bound, print_dynamic_range_bound, print_range_type):
12421 Remove declaration.
12422
12423 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12424
12425 * ada-typeprint.c (print_range): Add missing empty line
12426 after local declaration.
12427
12428 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12429
12430 * ada-valprint.c (print_optional_low_bound): Get index_type's
12431 target type for as long as it is a TYPE_CODE_RANGE.
12432
12433 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12434
12435 * procfs.c (procfs_make_note_section): Remove assertion and
12436 associated comment.
12437
12438 2014-01-24 Yao Qi <yao@codesourcery.com>
12439
12440 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12441 * corelow.c (get_core_siginfo): Likewise.
12442
12443 2014-01-24 Yao Qi <yao@codesourcery.com>
12444
12445 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12446 ULONGEST. Don't check 'len' is negative.
12447 (remote_write_bytes): Change type of 'len' to ULONGEST.
12448
12449 2014-01-23 Tom Tromey <tromey@redhat.com>
12450
12451 PR python/16485:
12452 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12453 Handle exception from frame.block.
12454 (FrameVars.fetch_frame_locals): Likewise.
12455
12456 2014-01-23 Tom Tromey <tromey@redhat.com>
12457
12458 PR python/16487:
12459 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12460 on a NULL pointer. Move "goto error" to correct place.
12461
12462 2014-01-23 Tom Tromey <tromey@redhat.com>
12463
12464 PR python/16491:
12465 * python/py-framefilter.c (apply_frame_filter): Call
12466 ensure_python_env after computing gdbarch.
12467
12468 2014-01-23 Yao Qi <yao@codesourcery.com>
12469
12470 * target.c (raw_memory_xfer_partial): Change argument type
12471 from void * to gdb_byte *.
12472 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12473
12474 2014-01-22 Doug Evans <dje@google.com>
12475
12476 New gdbserver option --debug-format=timestamp.
12477 * NEWS: Mention it.
12478
12479 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12480
12481 * syscalls/s390x-linux.xml: New file.
12482 * syscalls/s390-linux.xml: New file.
12483 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12484 (XML_SYSCALL_FILENAME_S390X): Likewise.
12485 (op_svc): New enum value for SVC opcode.
12486 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12487 (s390_linux_get_syscall_number): New function.
12488 (s390_gdbarch_init): Register '*get_syscall_number' and the
12489 syscall xml file name.
12490 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12491 "s390-linux.xml" and "s390x-linux.xml".
12492 * NEWS: Announce new feature.
12493
12494 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12495
12496 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12497
12498 2014-01-22 Pedro Alves <palves@redhat.com>
12499
12500 * xtensa-config.c: Include defs.h.
12501
12502 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12503
12504 * common/common-utils.h: Add "ARI:" comment beside __func__
12505 reference.
12506
12507 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12508
12509 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12510 documentation a bit.
12511
12512 2014-01-21 Roland McGrath <mcgrathr@google.com>
12513
12514 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12515 * configure: Regenerate.
12516 * aclocal.m4: Regenerate.
12517 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12518 New substituted variables.
12519 (install-strip): New target.
12520 (INSTALL_SCRIPT): New substituted variable.
12521 (FLAGS_TO_PASS): Add it.
12522 (install-only): Use $(INSTALL_SCRIPT) rather than
12523 $(INSTALL_PROGRAM) for gcore.
12524
12525 2014-01-20 Tom Tromey <tromey@redhat.com>
12526
12527 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12528 together.
12529
12530 2014-01-20 Tom Tromey <tromey@redhat.com>
12531
12532 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12533 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12534 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12535 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12536 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12537 (struct cmd_list_element) <flags>: Remove.
12538 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12539 doc_allocated>: New fields.
12540 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12541 bitfields.
12542 * maint.c (maintenance_do_deprecate): Update.
12543 * top.c (execute_command): Update.
12544
12545 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12546
12547 * xtensa-linux-nat.c: Include asm/ptrace.h.
12548
12549 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12550
12551 * Makefile.in (SFILES): Add d-support.c.
12552 (COMMON_OBS): Add d-support.o.
12553 * d-lang.h (d_parse_symbol): Add comment, now defined in
12554 d-support.c.
12555 * d-lang.c (parse_call_convention)
12556 (parse_attributes, parse_function_types)
12557 (parse_function_args, parse_type, parse_identifier)
12558 (call_convention_p, d_parse_symbol): Move functions to ...
12559 * d-support.c: ... New file.
12560
12561 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12562
12563 * d-lang.h (d_parse_symbol): Add declaration.
12564 * d-lang.c (extract_identifiers)
12565 (extract_type_info): Remove functions.
12566 (parse_call_convention, parse_attributes)
12567 (parse_function_types, parse_function_args)
12568 (parse_type, parse_identifier, call_convention_p)
12569 (d_parse_symbol): New functions.
12570 (d_demangle): Use d_parse_symbol to demangle D symbols.
12571
12572 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12573
12574 * d-lang.h (struct builtin_d_type): New data type.
12575 (builtin_d_type): Add declaration.
12576 * d-lang.c (d_language_arch_info, build_d_types)
12577 (builtin_d_type): New functions.
12578 (enum d_primitive_types): New data type.
12579 (d_language_defn): Change c_language_arch_info to
12580 d_language_arch_info.
12581 (d_type_data): New static variable.
12582 (_initialize_d_language): Initialize d_type_data.
12583
12584 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12585
12586 * d-lang.h (d_main_name): Add declaration.
12587 * d-lang.c (d_main_name): New function.
12588 * symtab.c (find_main_name): Add call to d_main_name.
12589
12590 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12591
12592 * d-lang.c (d_language_defn): Change macro_expansion_c to
12593 macro_expansion_no.
12594
12595 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12596
12597 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12598
12599 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12600
12601 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12602 gdb_exception" declaration.
12603 * remote.c (getpkt_or_notif_sane): Likewise.
12604
12605 2014-01-17 Doug Evans <dje@google.com>
12606
12607 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12608 function, contents of dirnames_to_char_ptr_vec_append moved here.
12609 (delim_string_to_char_ptr_vec): New function.
12610 (dirnames_to_char_ptr_vec_append): Rewrite.
12611 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12612
12613 2014-01-17 Doug Evans <dje@google.com>
12614
12615 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12616 and moved here ...
12617 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12618 #include "common-utils.h".
12619 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12620 * common/vec.h (VEC_ASSERT_PASS): Update.
12621 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12622 (MACH_CHECK_ERROR): Update.
12623
12624 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12625
12626 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12627 comments.
12628 * gdbarch.h: Regenerate.
12629
12630 2014-01-16 Tom Tromey <tromey@redhat.com>
12631
12632 * value.c (struct value) <regnum>: Move earlier.
12633
12634 2014-01-16 Tom Tromey <tromey@redhat.com>
12635
12636 * remote.c (extended_remote_create_inferior): Rename from
12637 extended_remote_create_inferior_1. Add "ops" argument. Remove
12638 old implementation.
12639
12640 2014-01-16 Pedro Alves <palves@redhat.com>
12641
12642 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12643 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12644 the backchain.
12645
12646 2014-01-16 Doug Evans <dje@google.com>
12647
12648 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12649
12650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12651
12652 * btrace.h (btrace_thread_flag): New.
12653 (struct btrace_thread_info) <flags>: New.
12654 * record-btrace.c (record_btrace_resume_thread)
12655 (record_btrace_find_thread_to_move, btrace_step_no_history)
12656 (btrace_step_stopped, record_btrace_start_replaying)
12657 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12658 (record_btrace_find_resume_thread): New.
12659 (record_btrace_resume, record_btrace_wait): Extend.
12660 (record_btrace_can_execute_reverse): New.
12661 (record_btrace_open): Fail in non-stop mode.
12662 (record_btrace_set_replay): Split into this, ...
12663 (record_btrace_stop_replaying): ... this, ...
12664 (record_btrace_clear_histories): ... and this.
12665 (init_record_btrace_ops): Init to_can_execute_reverse.
12666 * NEWS: Announce it.
12667
12668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12669
12670 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12671 (forward_target_decr_pc_after_break)
12672 (target_decr_pc_after_break): New.
12673 * target.c (forward_target_decr_pc_after_break)
12674 (target_decr_pc_after_break): New.
12675 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12676 instead of gdbarch_decr_pc_after_break.
12677 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12678 instead of gdbarch_decr_pc_after_break.
12679 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12680 instead of gdbarch_decr_pc_after_break.
12681 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12682 instead of gdbarch_decr_pc_after_break.
12683 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12684 instead of gdbarch_decr_pc_after_break.
12685 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12686 instead of gdbarch_decr_pc_after_break.
12687
12688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12689
12690 * btrace.c: Include regcache.h.
12691 (btrace_add_pc): New.
12692 (btrace_enable): Call btrace_add_pc.
12693 (btrace_is_empty): New.
12694 * btrace.h (btrace_is_empty): New.
12695 * record-btrace.c (require_btrace, record_btrace_info): Call
12696 btrace_is_empty.
12697
12698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12699
12700 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12701 Support delta reads.
12702 (linux_disable_btrace): Change return type.
12703 * common/linux-btrace.h (linux_read_btrace): Change parameters
12704 and return type to allow error reporting. Update users.
12705 (linux_disable_btrace): Change return type. Update users.
12706 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12707 New.
12708 (btrace_error): New.
12709 (btrace_block) <begin>: Comment on BEGIN == 0.
12710 * btrace.c (btrace_compute_ftrace): Start from the end of
12711 the current trace.
12712 (btrace_stitch_trace, btrace_clear_history): New.
12713 (btrace_fetch): Read delta trace, return if replaying.
12714 (btrace_clear): Move clear history code to btrace_clear_history.
12715 (parse_xml_btrace): Throw an error if parsing failed.
12716 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12717 and return type to allow error reporting.
12718 (target_read_btrace): Change parameters and return type to allow
12719 error reporting.
12720 * target.c (target_read_btrace): Update.
12721 * remote.c (remote_read_btrace): Support delta reads. Pass
12722 errors on.
12723 * NEWS: Announce it.
12724
12725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12726
12727 * record.h (record_btrace_frame_unwind)
12728 (record_btrace_tailcall_frame_unwind): New declarations.
12729 * dwarf2-frame: Include record.h
12730 (dwarf2_frame_cfa): Throw an error for btrace frames.
12731 * record-btrace.c: Include hashtab.h.
12732 (btrace_get_bfun_name): New.
12733 (btrace_call_history): Call btrace_get_bfun_name.
12734 (struct btrace_frame_cache): New.
12735 (bfcache): New.
12736 (bfcache_hash, bfcache_eq, bfcache_new): New.
12737 (btrace_get_frame_function): New.
12738 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12739 (record_btrace_frame_this_id): Compute own id.
12740 (record_btrace_frame_prev_register): Provide PC, throw_error
12741 for all other registers.
12742 (record_btrace_frame_sniffer): Detect btrace frames.
12743 (record_btrace_tailcall_frame_sniffer): New.
12744 (record_btrace_frame_dealloc_cache): New.
12745 (record_btrace_frame_unwind): Add new functions.
12746 (record_btrace_tailcall_frame_unwind): New.
12747 (_initialize_record_btrace): Allocate cache.
12748 * btrace.c (btrace_clear): Call reinit_frame_cache.
12749 * NEWS: Announce it.
12750
12751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12752
12753 * record-btrace.c (record_btrace_set_replay)
12754 (record_btrace_goto_begin, record_btrace_goto_end)
12755 (record_btrace_goto): New.
12756 (init_record_btrace_ops): Initialize them.
12757 * NEWS: Announce it.
12758
12759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12760
12761 * record-btrace.c (record_btrace_find_new_threads)
12762 (record_btrace_thread_alive): New.
12763 (init_record_btrace_ops): Initialize to_find_new_threads and
12764 to_thread_alive.
12765
12766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12767
12768 * record-btrace.c (record_btrace_resume): New.
12769 (record_btrace_wait): New.
12770 (init_record_btrace_ops): Initialize to_wait and to_resume.
12771
12772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12773
12774 * record-btrace.c (record_btrace_xfer_partial)
12775 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12776 (record_btrace_allow_memory_access): New.
12777 (init_record_btrace_ops): Initialize new methods.
12778 * target.c (raw_memory_xfer_partial): Bail out if target reports
12779 that this memory is not available.
12780
12781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12782
12783 * target.h (target_ops) <to_insert_breakpoint>
12784 <to_remove_breakpoint>: Add target_ops parameter.
12785 (forward_target_insert_breakpoint): New.
12786 (forward_target_remove_breakpoint): New.
12787 (memory_remove_breakpoint, memory_insert_breakpoint):
12788 Add target_ops parameter.
12789 * target.c (target_insert_breakpoint): Split into this and ...
12790 (forward_target_insert_breakpoint): ... this.
12791 (target_remove_breakpoint): Split into this and ...
12792 (forward_target_remove_breakpoint): ... this.
12793 (debug_to_insert_breakpoint): Add target_ops parameter.
12794 Call forward_target_insert_breakpoint.
12795 (debug_to_remove_breakpoint): Add target_ops parameter.
12796 Call forward_target_remove_breakpoint.
12797 (update_current_target): Do not inherit or default to_insert_breakpoint
12798 and to_remove_breakpoint.
12799 * corelow.c (ignore): Add target_ops parameter.
12800 * exec.c (ignore): Add target_ops parameter.
12801 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12802 Add target_ops parameter.
12803 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12804 Add target_ops parameter.
12805 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12806 Add target_ops parameter.
12807 * record-full.c (record_full_beneath_to_insert_breakpoint)
12808 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12809 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12810 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12811 (record_full_core_remove_breakpoint): Add target_ops parameter.
12812 Update users.
12813 (record_full_beneath_to_insert_breakpoint_ops)
12814 (record_full_beneath_to_remove_breakpoint_ops)
12815 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12816 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12817 tmp_to_remove_breakpoint_ops,
12818 record_full_beneath_to_insert_breakpoint_ops, and
12819 record_full_beneath_to_remove_breakpoint_ops.
12820 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12821 (m32r_remove_breakpoint): Add target_ops parameter.
12822 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12823 Add target_ops parameter.
12824 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12825 Add target_ops parameter.
12826
12827 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12828 Markus Metzger <markus.t.metzger@intel.com>
12829
12830 * record-btrace.c: Include frame-unwind.h.
12831 (record_btrace_frame_unwind_stop_reason)
12832 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12833 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12834 New.
12835 (init_record_btrace_ops): Install it.
12836
12837 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12838
12839 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12840 get_prev_frame_1.
12841
12842 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12843
12844 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12845 earlier.
12846
12847 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12848
12849 * frame-unwind.c: Include target.h.
12850 (frame_unwind_try_unwinder): New function with code from ...
12851 (frame_unwind_find_by_frame): ... here. New variable
12852 unwinder_from_target, call also target_get_unwinder)
12853 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12854 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12855 * target.h (struct target_ops): New fields to_get_unwinder and
12856 to_get_tailcall_unwinder.
12857 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12858
12859 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12860
12861 * record-btrace.c (record_btrace_fetch_registers)
12862 (record_btrace_store_registers)
12863 (record_btrace_to_prepare_to_store): New.
12864 (init_record_btrace_ops): Add the above.
12865
12866 2014-01-16 Tom Tromey <tromey@redhat.com>
12867
12868 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12869 * target.h (struct target_ops) <to_prepare_to_store>: Add
12870 argument.
12871 (target_prepare_to_store): Add argument.
12872 * target.c (debug_to_prepare_to_store): Add argument.
12873 (update_current_target): Update.
12874 * remote.c (remote_prepare_to_store): Add 'self' argument.
12875 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12876 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12877 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12878 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12879 argument.
12880 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12881 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12882 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12883 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12884 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12885
12886 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12887
12888 * btrace.h (replay) <replay>: New.
12889 (btrace_is_replaying): New.
12890 * btrace.c (btrace_clear): Free replay iterator.
12891 (btrace_is_replaying): New.
12892 * record-btrace.c (record_btrace_is_replaying): New.
12893 (record_btrace_info): Print insn number if replaying.
12894 (record_btrace_insn_history): Start at replay position.
12895 (record_btrace_call_history): Start at replay position.
12896 (init_record_btrace_ops): Init to_record_is_replaying.
12897
12898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12899
12900 * record-btrace.c (record_btrace_insn_history_range): Include
12901 end.
12902 (record_btrace_insn_history_from): Adjust range.
12903 (record_btrace_call_history_range): Include
12904 end.
12905 (record_btrace_call_history_from): Adjust range.
12906 * NEWS: Announce changes.
12907
12908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12909
12910 * record.h (enum record_print_flag)
12911 <record_print_indent_calls>: New.
12912 * record.c (get_call_history_modifiers): Recognize /c modifier.
12913 (_initialize_record): Document /c modifier.
12914 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12915 Reorder fields. Optionally indent the function name. Update
12916 all users.
12917 * NEWS: Announce changes.
12918
12919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12920
12921 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12922
12923 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12924
12925 * btrace.c (ftrace_new_function): Start counting at one.
12926 * record-btrace.c (record_btrace_info): Adjust number of calls
12927 and insns.
12928 * NEWS: Announce it.
12929
12930 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12931
12932 * record-btrace.c (btrace_call_history_insn_range): Print
12933 insn range as [begin, end].
12934
12935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12936
12937 * btrace.h (struct btrace_func_link): New.
12938 (enum btrace_function_flag): New.
12939 (struct btrace_inst): Rename to ...
12940 (struct btrace_insn): ...this. Update all users.
12941 (struct btrace_func) <ibegin, iend>: Remove.
12942 (struct btrace_func_link): New.
12943 (struct btrace_func): Rename to ...
12944 (struct btrace_function): ...this. Update all users.
12945 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12946 (number, level, flags>: New.
12947 (struct btrace_insn_iterator): Rename to ...
12948 (struct btrace_insn_history): ...this.
12949 Update all users.
12950 (struct btrace_insn_iterator, btrace_call_iterator): New.
12951 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12952 (struct btrace_target_info) <begin, end, level>
12953 <insn_history, call_history>: New.
12954 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12955 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12956 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12957 (btrace_call_number, btrace_call_begin, btrace_call_end)
12958 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12959 (btrace_find_function_by_number, btrace_set_insn_history)
12960 (btrace_set_call_history): New.
12961 * btrace.c (btrace_init_insn_iterator)
12962 (btrace_init_func_iterator, compute_itrace): Remove.
12963 (ftrace_print_function_name, ftrace_print_filename)
12964 (ftrace_skip_file): Change
12965 parameter to const.
12966 (ftrace_init_func): Remove.
12967 (ftrace_debug): Use new btrace_function fields.
12968 (ftrace_function_switched): Also consider gaining and
12969 losing symbol information).
12970 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12971 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12972 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12973 New.
12974 (ftrace_new_function): Move. Remove debug print.
12975 (ftrace_update_lines, ftrace_update_insns): New.
12976 (ftrace_update_function): Check for call, ret, and jump.
12977 (compute_ftrace): Renamed to ...
12978 (btrace_compute_ftrace): ...this. Rewritten to compute call
12979 stack.
12980 (btrace_fetch, btrace_clear): Updated.
12981 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12982 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12983 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12984 (btrace_call_number, btrace_call_begin, btrace_call_end)
12985 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12986 (btrace_find_function_by_number, btrace_set_insn_history)
12987 (btrace_set_call_history): New.
12988 * record-btrace.c (require_btrace): Use new btrace thread
12989 info fields.
12990 (record_btrace_info, btrace_insn_history)
12991 (record_btrace_insn_history, record_btrace_insn_history_range):
12992 Use new btrace thread info fields and new iterator.
12993 (btrace_func_history_src_line): Rename to ...
12994 (btrace_call_history_src_line): ...this. Use new btrace
12995 thread info fields.
12996 (btrace_func_history): Rename to ...
12997 (btrace_call_history): ...this. Use new btrace thread info
12998 fields and new iterator.
12999 (record_btrace_call_history, record_btrace_call_history_range):
13000 Use new btrace thread info fields and new iterator.
13001
13002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13003
13004 * frame.h (frame_id_build_unavailable_stack_special): New.
13005 * frame.c (frame_id_build_unavailable_stack_special): New.
13006
13007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13008
13009 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13010 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13011 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13012 to gdbarch.
13013 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13014 (i386_insn_is_jump, i386_jmp_p): New.
13015 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13016 insn_is_jump to gdbarch.
13017 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13018 * gdbarch.h: Regenerated.
13019 * gdbarch.c: Regenerated.
13020 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13021 (default_insn_is_jump): New.
13022 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13023 (default_insn_is_jump): New.
13024
13025 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13026
13027 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13028 Change to ...
13029 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13030 (btrace_read_type) <btrace_read_new>: Change to ...
13031 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13032
13033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13034
13035 * common/linux-btrace.c (linux_read_btrace): Free trace from
13036 previous iteration.
13037
13038 2014-01-15 Doug Evans <dje@google.com>
13039
13040 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13041 uint32_t.
13042
13043 2014-01-15 Tom Tromey <tromey@redhat.com>
13044
13045 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13046 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13047 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13048 (set_objfile_main_name): New function.
13049 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13050 language_of_main>: New fields.
13051 (set_objfile_main_name): Declare.
13052 * symtab.c (find_main_name): Loop over objfiles to find the main
13053 name and language.
13054 (set_main_name): Now static.
13055 (get_main_info): Add comment.
13056 * symtab.h (set_main_name): Don't declare.
13057
13058 2014-01-15 Tom Tromey <tromey@redhat.com>
13059
13060 * symtab.c (main_progspace_key): New global.
13061 (struct main_info): New.
13062 (name_of_main, language_of_main): Remove.
13063 (get_main_info, main_info_cleanup): New function.
13064 (set_main_name, main_name, main_language): Use get_main_info.
13065 (_initialize_symtab): Initialize main_progspace_key.
13066
13067 2014-01-15 Tom Tromey <tromey@redhat.com>
13068
13069 * dbxread.c (process_one_symbol): Update.
13070 * dwarf2read.c (read_partial_die): Update.
13071 * symfile.c (set_initial_language): Call main_language.
13072 * symtab.c (language_of_main): Now static.
13073 (set_main_name): Add 'lang' parameter.
13074 (find_main_name): Update.
13075 (main_language): New function.
13076 (symtab_observer_executable_changed): Update.
13077 * symtab.h (set_main_name): Update.
13078 (language_of_main): Remove.
13079 (main_language): Declare.
13080
13081 2014-01-15 Tom Tromey <tromey@redhat.com>
13082
13083 * symfile.c (init_entry_point_info): Use new "initialized" field.
13084 Update.
13085 * objfiles.h (struct entry_point) <initialized>: New field.
13086 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13087 (struct objfile) <ei>: ...here. Remove.
13088 * objfiles.c (entry_point_address_query): Update.
13089
13090 2014-01-15 Tom Tromey <tromey@redhat.com>
13091
13092 * objfiles.c (entry_point_address_query): Relocate entry point
13093 address.
13094 (objfile_relocate1): Do not relocate entry point address.
13095 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13096 <the_bfd_section_index>: New field.
13097 * symfile.c (init_entry_point_info): Find the entry point's
13098 section.
13099
13100 2014-01-15 Tom Tromey <tromey@redhat.com>
13101
13102 * solib-frv.c (enable_break): Use entry_point_address_query.
13103
13104 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13105
13106 * NEWS: Add note on improved process record-replay on
13107 arm*-linux* targets.
13108
13109 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13110
13111 * arm-tdep.c (enum arm_record_result): New enum.
13112 (arm_record_unsupported_insn): New function.
13113 (arm_record_coproc_data_proc): Removed.
13114 (thumb2_record_ld_st_multiple): New function.
13115 (thumb2_record_ld_st_dual_ex_tbb): New function.
13116 (thumb2_record_data_proc_sreg_mimm): New function.
13117 (thumb2_record_ps_dest_generic): New function.
13118 (thumb2_record_branch_misc_cntrl): New function.
13119 (thumb2_record_str_single_data): New function.
13120 (thumb2_record_ld_mem_hints): New function.
13121 (thumb2_record_ld_word): New function.
13122 (thumb2_record_lmul_lmla_div): New function.
13123 (thumb2_record_decode_insn_handler): New function.
13124 (decode_insn): Add thumb32 instruction handlers.
13125
13126 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13127
13128 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13129 (struct arm_linux_record_tdep): Declare.
13130 (arm_canonicalize_syscall): New function.
13131 (arm_all_but_pc_registers_record): New function.
13132 (arm_linux_syscall_record): New function.
13133 (arm_linux_init_abi): Add syscall recording constructs.
13134 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13135 decoding. (arm_record_coproc_data_proc): Update arm syscall
13136 decoding.
13137 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13138 <arm_syscall_record>: New field.
13139 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13140 gdb_target_obs.
13141
13142 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13143
13144 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13145 register for push instruction recording.
13146
13147 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13148
13149 * arm-tdep.c (thumb_record_misc): Update to correct logical
13150 error while recording ldm, ldmia and pop instructions.
13151
13152 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13153
13154 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13155
13156 2014-01-15 Pedro Alves <palves@redhat.com>
13157
13158 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13159 (go32_resume, go32_fetch_registers, store_register)
13160 (go32_store_registers, go32_prepare_to_store)
13161 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13162 (go32_create_inferior, go32_can_run, go32_terminal_init)
13163 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13164 declarations.
13165
13166 2014-01-15 Tom Tromey <tromey@redhat.com>
13167
13168 * target.h (async_callback_ftype): New typedef.
13169 (struct target_ops) <to_async>: Use it.
13170
13171 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13172
13173 * python/py-value.c (get_field_type): Remove unnecessary curly
13174 braces for single-statement if block.
13175
13176 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13177
13178 * python/py-type.c (convert_field): Add missing empty line
13179 after declarations.
13180
13181 2014-01-14 Doug Evans <dje@google.com>
13182
13183 * symfile.h (expand_symtabs_matching): Renamed from
13184 expand_partial_symbol_names. Update prototype.
13185 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13186 * symfile.c (expand_symtabs_matching): Renamed from
13187 expand_partial_symbol_names. New args file_matcher, kind.
13188 Rename arg fun to symbol_matcher.
13189 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13190 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13191 ada_expand_partial_symbol_name.
13192 (ada_make_symbol_completion_list): Update to call
13193 expand_symtabs_matching.
13194 (ada_add_global_exceptions): Call expand_symtabs_matching.
13195 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13196 call map_symbol_filenames.
13197 * symtab.c (sources_info): Update to call map_symbol_filenames.
13198 (search_symbols): Call expand_symtabs_matching.
13199 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13200 (default_make_symbol_completion_list_break_on): Update to call
13201 expand_symtabs_matching.
13202 (make_source_files_completion_list): Update to call
13203 map_symbol_filenames.
13204
13205 2014-01-14 Doug Evans <dje@google.com>
13206
13207 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13208 (expand_symtabs_symbol_matcher_ftype): New typedef.
13209 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13210 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13211 * symfile.c (expand_partial_symbol_names): Update to use
13212 expand_symtabs_symbol_matcher_ftype.
13213 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13214 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13215 Arg name_matcher renamed to symbol_matcher.
13216 * psymtab.c (recursively_search_psymtabs): Update to use
13217 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13218 sym_matcher.
13219 (expand_symtabs_matching_via_partial): Update to use
13220 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13221 Arg name_matcher renamed to symbol_matcher.
13222
13223 2014-01-14 Doug Evans <dje@google.com>
13224
13225 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13226 (map_partial_symbol_filenames): Ditto.
13227 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13228 (map_partial_symbol_filenames): Ditto.
13229 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13230 (map_partial_symbol_filenames): Ditto.
13231 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13232 (map_partial_symbol_filenames): Ditto.
13233 * symtab.c: Delete #include "psymtab.h".
13234
13235 2014-01-14 Pedro Alves <palves@redhat.com>
13236 Tom Tromey <tromey@redhat.com>
13237
13238 * infrun.c (use_displaced_stepping): Use find_record_target
13239 instead of RECORD_IS_USED.
13240 (adjust_pc_after_break): Use record_full_is_used instead of
13241 RECORD_IS_USED.
13242 * record-btrace.c (record_btrace_open): Call record_preopen
13243 instead of checking RECORD_IS_USED.
13244 * record-full.c (record_full_shortname)
13245 (record_full_core_shortname): New globals.
13246 (record_full_is_used): New function.
13247 (find_full_open): Call record_preopen instead of checking
13248 RECORD_IS_USED.
13249 (init_record_full_ops): Set the target's shortname to
13250 record_full_shortname.
13251 (init_record_full_core_ops): Set the target's shortname to
13252 record_full_core_shortname.
13253 * record-full.h (record_full_is_used): Declare.
13254 * record.c (find_record_target): Make extern.
13255 (record_preopen): New function.
13256 * record.h (RECORD_IS_USED): Delete macro.
13257 (find_record_target, record_preopen): Declare functions.
13258
13259 2014-01-14 Yao Qi <yao@codesourcery.com>
13260
13261 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13262 'len''s type to ULONGEST.
13263 (core_xfer_shared_libraries_aix): Likewise.
13264 * gdbarch.c, gdbarch.h: Regenerated.
13265 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13266 Change type of 'len' to ULONGEST.
13267 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13268 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13269
13270 2014-01-14 Yao Qi <yao@codesourcery.com>
13271
13272 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13273 type of 'len' to ULONGEST.
13274 (linux_xfer_osdata_processgroups): Likewise.
13275 (linux_xfer_osdata_threads): Likewise.
13276 (linux_xfer_osdata_fds): Likewise.
13277 (linux_xfer_osdata_isockets): Likewise.
13278 (linux_xfer_osdata_shm): Likewise.
13279 (linux_xfer_osdata_sem): Likewise.
13280 (linux_xfer_osdata_msg): Likewise.
13281 (linux_common_xfer_osdata): Likewise.
13282 (struct osdata_type) <getter>: Likewise.
13283 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13284 the declaration.
13285
13286 2014-01-14 Yao Qi <yao@codesourcery.com>
13287
13288 * target.h (target_xfer_partial_ftype): Update.
13289 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13290 ULONGEST.
13291 * aix-thread.c (aix_thread_xfer_partial): Change type of
13292 argument 'len' to ULONGEST.
13293 * auxv.c (procfs_xfer_auxv): Likewise.
13294 (ld_so_xfer_auxv): Likewise.
13295 (memory_xfer_auxv): Likewise.
13296 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13297 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13298 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13299 * corelow.c (core_xfer_partial): Likewise.
13300 * ctf.c (ctf_xfer_partial): Likewise.
13301 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13302 '%u'.
13303 (darwin_read_dyld_info): Likewise.
13304 (darwin_xfer_partial): Likewise.
13305 * exec.c (section_table_xfer_memory_partial): Likewise.
13306 (exec_xfer_partial): Likewise.
13307 * exec.h (section_table_xfer_memory_partial): Update
13308 declaration.
13309 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13310 instead of plongest.
13311 (gnu_xfer_partial): Likewise.
13312 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13313 (ia64_hpux_xfer_solib_got): Likewise.
13314 (ia64_hpux_xfer_partial): Likewise.
13315 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13316 * inf-ptrace.c (inf_ptrace_xfer_partial):
13317 * inf-ttrace.c (inf_ttrace_xfer_partial):
13318 * linux-nat.c (linux_xfer_siginfo): Likewise.
13319 (linux_nat_xfer_partial): Likewise.
13320 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13321 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13322 * monitor.c (monitor_xfer_memory): Likewise.
13323 (monitor_xfer_partial): Likewise.
13324 * procfs.c (procfs_xfer_partial): Likewise.
13325 * record-full.c (record_full_xfer_partial): Likewise.
13326 (record_full_core_xfer_partial): Likewise.
13327 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13328 instead of plongest.
13329 (gdbsim_xfer_partial): Likewise.
13330 * remote.c (remote_xfer_partial): Likewise.
13331 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13332 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13333 declaration.
13334 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13335 (rs6000_xfer_shared_libraries): Likewise.
13336 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13337 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13338 (sparc_xfer_partial): Likewise.
13339 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13340 (spu_xfer_partial): Likewise.
13341 * spu-multiarch.c (spu_xfer_partial): Likewise.
13342 * target.c (target_read_live_memory): Likewise.
13343 (memory_xfer_live_readonly_partial): Likewise.
13344 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13345 (target_xfer_partial, default_xfer_partial): Likewise.
13346 (current_xfer_partial): Likewise.
13347 * tracepoint.c (tfile_xfer_partial): Likewise.
13348 * windows-nat.c (windows_xfer_memory): Likewise. Call
13349 pulongest instead of plongest.
13350 (windows_xfer_partial): Likewise.
13351 (windows_xfer_shared_libraries): Likewise.
13352
13353 2014-01-14 Yao Qi <yao@codesourcery.com>
13354
13355 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13356 target_xfer_partial_ftype.
13357
13358 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13359
13360 PR python/15464
13361 PR python/16113
13362 * valops.c (value_struct_elt_bitpos): New function
13363 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13364 object to 'None' if the field name is an empty string ("").
13365 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13366 attribute to look for a field when 'name' is 'None'.
13367 (get_field_type): New function
13368
13369 2014-01-13 Doug Evans <dje@google.com>
13370
13371 PR symtab/16426
13372 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13373 (try_open_dwop_file): Ditto.
13374 * gdb_bfd.c: #include "vec.h".
13375 (bfdp): New typedef.
13376 (struct gdb_bfd_data): New member included_bfds.
13377 (gdb_bfd_unref): Unref all included bfds.
13378 (gdb_bfd_record_inclusion): New function.
13379 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13380
13381 2014-01-13 Tom Tromey <tromey@redhat.com>
13382
13383 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13384
13385 2014-01-13 Tom Tromey <tromey@redhat.com>
13386
13387 * defs.h (use_windows): Remove.
13388 * gdb.c (main): Update.
13389 * main.c (captured_main, gdb_main): Update.
13390 * main.h (struct captured_main_args) <use_windows>: Remove.
13391 * top.c (use_windows): Remove.
13392
13393 2014-01-13 Tom Tromey <tromey@redhat.com>
13394
13395 * defs.h (deprecated_flush_hook): Remove.
13396
13397 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13398
13399 PR threads/16216
13400 * linux-thread-db.c (try_thread_db_load): Add parameter
13401 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13402 (try_thread_db_load_from_pdir_1): Move it there from here.
13403 (try_thread_db_load_from_sdir): Update caller.
13404 (try_thread_db_load_from_dir): Move it there from here.
13405
13406 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13407
13408 * regformats/regdat.sh: Always rewrite the register file.
13409
13410 2014-01-13 Pedro Alves <palves@redhat.com>
13411
13412 * Makefile.in (CHECK_HEADERS): New variable.
13413 (check-headers:): New rule.
13414
13415 2014-01-13 Tom Tromey <tromey@redhat.com>
13416
13417 * cli/cli-setshow.c (do_set_command): Update.
13418 * defs.h (deprecated_set_hook): Remove.
13419 * top.c (deprecated_set_hook): Remove.
13420
13421 2014-01-13 Pedro Alves <palves@redhat.com>
13422
13423 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13424 the tracepoint if the PC is a pseudo-register.
13425
13426 2014-01-13 Tom Tromey <tromey@redhat.com>
13427
13428 * defs.h (XCALLOC): Remove.
13429 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13430 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13431 * dwarf2loc.c (allocate_piece_closure): Likewise.
13432 * elfread.c (elf_symfile_segments): Likewise.
13433 (elf_symfile_segments): Likewise.
13434 * gdbtypes.c (copy_type_recursive): Likewise.
13435 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13436 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13437 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13438 XCALLOC.
13439 * mt-tdep.c (mt_gdbarch_init): Likewise.
13440 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13441 XCALLOC.
13442 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13443 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13444 * registry.c (registry_alloc_data): Likewise.
13445 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13446 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13447 * serial.c (serial_fdopen_ops): Likewise.
13448 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13449 XCALLOC.
13450 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13451 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13452 not XCALLOC.
13453
13454 2014-01-13 Tom Tromey <tromey@redhat.com>
13455
13456 * defs.h (XMALLOC): Remove.
13457 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13458 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13459 * cli-out.c (struct ui_out *): Likewise.
13460 * cli/cli-dump.c (add_dump_command): Likewise.
13461 (add_dump_command): Likewise.
13462 * complaints.c (get_complaints): Likewise.
13463 (find_complaint): Likewise.
13464 * dwarf2-frame.c (execute_cfa_program): Likewise.
13465 * dwarf2read.c (abbrev_table_read_table): Likewise.
13466 * gdbarch.sh: Likewise.
13467 * gdbarch.c: Rebuild.
13468 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13469 * interps.c (interp_new): Likewise.
13470 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13471 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13472 * mi/mi-console.c (mi_console_file_new): Likewise.
13473 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13474 * mi/mi-out.c (mi_out_new): Likewise.
13475 * mi/mi-parse.c (mi_parse): Likewise.
13476 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13477 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13478 * observer.c (xalloc_observer_list_node): Likewise.
13479 * regcache.c (regcache_xmalloc_1): Likewise.
13480 * reggroups.c (reggroup_new): Likewise.
13481 (_initialize_reggroup): Likewise.
13482 * registry.c (register_data_with_cleanup): Likewise.
13483 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13484 * ser-base.c (serial_ttystate): Likewise.
13485 * ser-mingw.c (make_pipe_state): Likewise.
13486 * ser-pipe.c (pipe_open): Likewise.
13487 * serial.c (serial_open): Likewise.
13488 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13489 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13490 (tui_alloc_win_info): Likewise.
13491 (tui_add_content_elements): Likewise.
13492 * tui/tui-file.c (tui_file_new): Likewise.
13493 * tui/tui-out.c (tui_out_new): Likewise.
13494 * ui-file.c (mem_file_new): Likewise.
13495 * ui-out.c (push_level): Likewise.
13496 (make_cleanup_ui_out_end): Likewise.
13497 (append_header_to_list): Likewise.
13498 (ui_out_new): Likewise.
13499 * user-regs.c (user_reg_add_builtin): Likewise.
13500
13501 2014-01-13 Tom Tromey <tromey@redhat.com>
13502
13503 * defs.h (XZALLOC): Remove.
13504 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13505 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13506 (get_ada_tasks_inferior_data): Likewise.
13507 * auto-load.c (get_auto_load_pspace_data): Likewise.
13508 * auxv.c (get_auxv_inferior_data): Likewise.
13509 * bfd-target.c (target_bfd_reopen): Likewise.
13510 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13511 (deprecated_insert_raw_breakpoint): Likewise.
13512 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13513 * corelow.c (core_open): Likewise.
13514 * darwin-nat.c (darwin_check_new_threads): Likewise.
13515 (darwin_attach_pid): Likewise.
13516 * dummy-frame.c (dummy_frame_push): Likewise.
13517 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13518 * dwarf2loc.c (allocate_piece_closure): Likewise.
13519 * elfread.c (elf_symfile_segments): Likewise.
13520 * eval.c (ptrmath_type_p): Likewise.
13521 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13522 * gdbtypes.c (alloc_type_arch): Likewise.
13523 (alloc_type_instance): Likewise.
13524 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13525 * inf-child.c (inf_child_can_use_agent): Likewise.
13526 * inflow.c (get_inflow_inferior_data): Likewise.
13527 * infrun.c (save_infcall_suspend_state): Likewise.
13528 * jit.c (jit_reader_load): Likewise.
13529 (get_jit_objfile_data): Likewise.
13530 (get_jit_program_space_data): Likewise.
13531 (jit_object_open_impl): Likewise.
13532 (jit_symtab_open_impl): Likewise.
13533 (jit_block_open_impl): Likewise.
13534 (jit_frame_sniffer): Likewise.
13535 * linux-fork.c (add_fork): Likewise.
13536 * maint.c (make_command_stats_cleanup): Likewise.
13537 * objfiles.c (get_objfile_pspace_data): Likewise.
13538 * opencl-lang.c (struct lval_closure): Likewise.
13539 * osdata.c (osdata_start_osdata): Likewise.
13540 * progspace.c (new_address_space): Likewise.
13541 (add_program_space): Likewise.
13542 * remote-sim.c (get_sim_inferior_data): Likewise.
13543 * sh-tdep.c (sh_gdbarch_init): Likewise.
13544 * skip.c (Ignore): Likewise.
13545 (skip_delete_command): Likewise.
13546 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13547 (library_list_start_library): Likewise.
13548 (solib_aix_current_sos): Likewise.
13549 * solib-darwin.c (get_darwin_info): Likewise.
13550 (darwin_current_sos): Likewise.
13551 * solib-dsbt.c (get_dsbt_info): Likewise.
13552 * solib-ia64-hpux.c (new_so_list): Likewise.
13553 (ia64_hpux_get_solib_linkage_addr): Likewise.
13554 * solib-spu.c (append_ocl_sos): Likewise.
13555 (spu_current_sos): Likewise.
13556 * solib-svr4.c (get_svr4_info): Likewise.
13557 (svr4_keep_data_in_core): Likewise.
13558 (library_list_start_library): Likewise.
13559 (svr4_default_sos): Likewise.
13560 (svr4_read_so_list): Likewise.
13561 * solib-target.c (library_list_start_library): Likewise.
13562 (solib_target_current_sos): Likewise.
13563 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13564 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13565 * symfile.c (default_symfile_segments): Likewise.
13566 * target-descriptions.c (tdesc_data_init): Likewise.
13567 (tdesc_create_reg): Likewise.
13568 (struct tdesc_type *): Likewise.
13569 (tdesc_create_vector): Likewise.
13570 (tdesc_set_struct_size): Likewise.
13571 (struct tdesc_type *): Likewise.
13572 (tdesc_free_feature): Likewise.
13573 (tdesc_create_feature): Likewise.
13574 * windows-nat.c (windows_add_thread): Likewise.
13575 (windows_make_so): Likewise.
13576 * xml-support.c (gdb_xml_body_text): Likewise.
13577 (gdb_xml_create_parser_and_cleanup): Likewise.
13578 (xml_process_xincludes): Likewise.
13579 * xml-syscall.c (allocate_syscalls_info): Likewise.
13580 (syscall_create_syscall_desc): Likewise.
13581
13582 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13583
13584 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13585 function, with code from i386_stap_parse_special_token.
13586 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13587 (i386_stap_parse_special_token): Move code to the two functions
13588 above; simplify it.
13589
13590 2014-01-09 Pedro Alves <palves@redhat.com>
13591 Hui Zhu <hui@codesourcery.com>
13592
13593 PR gdb/16101
13594 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13595 bp_err_string. Don't mark the location shlib_disabled if the
13596 error thrown wasn't a generic or memory error. Catch errors
13597 thrown while inserting breakpoints in overlayed code. Output
13598 error message of software breakpoints.
13599 * remote.c (remote_insert_breakpoint): If this breakpoint has
13600 target-side commands but this stub doesn't support Z0 packets,
13601 throw NOT_SUPPORTED_ERROR error.
13602 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13603 * target.h (target_insert_breakpoint): Extend comment.
13604 (target_insert_hw_breakpoint): Add comment.
13605
13606 2014-01-08 Pedro Alves <palves@redhat.com>
13607
13608 * remote.c (remote_add_thread): Add threads silently if starting
13609 up.
13610 (remote_notice_new_inferior): If in all-stop, and starting up,
13611 don't call notice_new_inferior.
13612 (get_current_thread): New function, factored out from ...
13613 (add_current_inferior_and_thread): ... this. Adjust.
13614 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13615 found any thread, then select the remote's current thread as GDB's
13616 current thread too.
13617
13618 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13619
13620 * NEWS: Create a new section for the next release branch.
13621 Rename the section of the current branch, now that it has
13622 been cut.
13623
13624 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13625
13626 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13627 * version.in: Bump version to 7.7.50.DATE-cvs.
13628
13629 2014-01-08 Yao Qi <yao@codesourcery.com>
13630
13631 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13632 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13633 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13634
13635 2014-01-08 Yao Qi <yao@codesourcery.com>
13636
13637 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13638 return value of bfd_get_filename to symbol_file_add_from_bfd.
13639
13640 2014-01-08 Pierre Muller <muller@sourceware.org>
13641
13642 Fix PR16201.
13643 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13644 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13645 to prim_record_mininal_symbol_and_info.
13646 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13647 in call to prim_record_minimal_symbol_and_info.
13648 (read_pe_exported_syms): Set index field of section_data.
13649
13650 2014-01-07 Andrew Pinski <apinski@cavium.com>
13651
13652 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13653 * features/aarch64.c: Regenerate.
13654
13655 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13656
13657 * target.c (return_null): Define.
13658 (update_current_target): Use it instead of return_zero for
13659 functions that return a pointer.
13660
13661 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13662
13663 * source.c (add_path): Fix check for duplicated paths in the previously
13664 included paths.
13665
13666 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13667
13668 * ada-lang.c: Remove duplicated include statements.
13669 * alphabsd-nat.c: Ditto.
13670 * amd64-darwin-tdep.c: Ditto.
13671 * amd64fbsd-nat.c: Ditto.
13672 * auto-load.c: Ditto.
13673 * ax-gdb.c: Ditto.
13674 * breakpoint.c: Ditto.
13675 * dbxread.c: Ditto.
13676 * fork-child.c: Ditto.
13677 * gdb_usleep.c: Ditto.
13678 * i386-darwin-tdep.c: Ditto.
13679 * i386fbsd-nat.c: Ditto.
13680 * infcmd.c: Ditto.
13681 * inferior.c: Ditto.
13682 * jv-lang.c: Ditto.
13683 * linux-nat.c: Ditto.
13684 * linux-tdep.c: Ditto.
13685 * m68kbsd-nat.c: Ditto.
13686 * m68klinux-nat.c: Ditto.
13687 * microblaze-tdep.c: Ditto.
13688 * mips-linux-tdep.c: Ditto.
13689 * mn10300-tdep.c: Ditto.
13690 * nto-tdep.c: Ditto.
13691 * opencl-lang.c: Ditto.
13692 * osdata.c: Ditto.
13693 * printcmd.c: Ditto.
13694 * regcache.c: Ditto.
13695 * remote-m32r-sdi.c: Ditto.
13696 * remote.c: Ditto.
13697 * symfile.c: Ditto.
13698 * symtab.c: Ditto.
13699 * tilegx-linux-nat.c: Ditto.
13700 * tilegx-tdep.c: Ditto.
13701 * tracepoint.c: Ditto.
13702 * valops.c: Ditto.
13703 * vaxbsd-nat.c: Ditto.
13704 * windows-nat.c: Ditto.
13705 * xtensa-tdep.c: Ditto.
13706
13707 2014-01-07 Yao Qi <yao@codesourcery.com>
13708
13709 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13710
13711 2014-01-07 Yao Qi <yao@codesourcery.com>
13712 Joel Brobecker <brobecker@adacore.com>
13713
13714 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13715 (pdc_write_regs): Likewise.
13716 (fetch_regs_kernel_thread): Likewise.
13717 (store_regs_kernel_thread): Likewise.
13718
13719 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13720
13721 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13722 tagged type objects to their actual type.
13723
13724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13725
13726 * ada-valprint.c (print_field_values): Add "language" parameter.
13727 Update calls to print_field_values and print_variant_part.
13728 Pass new parameter "language" in call to val_print instead
13729 of "current_language". Replace call to ada_val_print by call
13730 to val_print.
13731 (print_variant_part): Add "language" parameter.
13732 (ada_val_print_struct_union): Update call to print_field_values.
13733
13734 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13735
13736 * ada-valprint.c (ui_memcpy): Delete.
13737 (ada_print_floating): Update documentation. Add empty line
13738 between between function documentation and implementation.
13739 Delete variable "buffer". Use ui_file_xstrdup in place of
13740 ui_file_put. Minor adjustments following this change.
13741
13742 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13743
13744 * ada-valprint.c (ada_val_print_string): New function,
13745 extracted from ada_val_print_array.
13746 (ada_val_print_array): Replace extracted code by call
13747 to ada_val_print_string followed by a return. Move
13748 "else" branch to the function's top block.
13749
13750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13751
13752 * ada-valprint.c (ada_val_print_array): Move implementation
13753 down. Rename parameter "offset" and "val" into "offset_aligned"
13754 and "original_value" respectively. Add parameter "offset".
13755
13756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13757
13758 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13759 re-organizing the code. Change the "???" message printed
13760 when target type is a TYPE_CODE_UNDEF into
13761 "<ref to undefined type>".
13762
13763 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13764
13765 * ada-valprint.c (print_record): Delete, implementation inlined...
13766 (ada_val_print_struct_union): ... here. Remove call to
13767 ada_check_typedef in inlined implementation.
13768
13769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13770
13771 * ada-valprint.c (ada_val_print_gnat_array): New function,
13772 extracted from ada_val_print_1;
13773 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13774 (ada_val_print_flt, ada_val_print_struct_union)
13775 (ada_val_print_ref): Likewise.
13776 (ada_val_print_1): Delete variables i and elttype.
13777 Replace extracted-out code by call to corresponding
13778 new functions.
13779
13780 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13781
13782 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13783
13784 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13785
13786 * ada-valprint.c (ada_val_print_1): Replace calls to
13787 ada_val_print_1 by calls to val_print.
13788
13789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13790
13791 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13792 Update calls to self accordingly. Replace calls to c_val_print
13793 by calls to val_print.
13794
13795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13796
13797 * ada-valprint.c (print_record): Delete declaration.
13798 (adjust_type_signedness, ada_val_print_1): Likewise.
13799 (ada_val_print): Move function implementation down.
13800 (print_variant_part, print_field_values, print_record):
13801 Move function implementation up.
13802
13803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13804
13805 * python/py-type.c (typy_get_name): New function.
13806 (type_object_getset): Add entry for attribute "name".
13807 * NEWS: Add entry mentioning this new attribute.
13808
13809 2014-01-07 Yao Qi <yao@codesourcery.com>
13810
13811 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13812 statement.
13813
13814 2014-01-07 Yao Qi <yao@codesourcery.com>
13815
13816 * gnu-nat.c (info_port_rights): Add qualifier const to
13817 argument args.
13818
13819 2014-01-07 Yao Qi <yao@codesourcery.com>
13820
13821 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13822
13823 2014-01-07 Yao Qi <yao@codesourcery.com>
13824
13825 * gnu-nat.c (make_inf) Update declaration.
13826 (make_inf): Make it static.
13827 (inf_set_traced): Likewise.
13828 (inf_port_to_thread, inf_task_died_status): Likewise.
13829
13830 2014-01-07 Yao Qi <yao@codesourcery.com>
13831
13832 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13833
13834 2014-01-07 Yao Qi <yao@codesourcery.com>
13835
13836 * gnu-nat.c (_initialize_gnu_nat): Declare.
13837
13838 2014-01-07 Yao Qi <yao@codesourcery.com>
13839
13840 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13841 'enum bfd_endian'.
13842 (struct gdbarch_info) <byte_order>: Change type to
13843 'enum bfd_endian'.
13844 <byte_order_for_code>: Likewise.
13845 * gdbarch.c, gdbarch.h: Regenerated.
13846
13847 2014-01-06 Sasha Smundak <asmundak@google.com>
13848
13849 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13850
13851 2014-01-06 Tom Tromey <tromey@redhat.com>
13852
13853 * doublest.c (convert_doublest_to_floatformat): Use const, not
13854 CONST.
13855 * somread.c (som_symtab_read): Likewise.
13856
13857 2014-01-07 Hui Zhu <hui@codesourcery.com>
13858
13859 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13860 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13861 (gdb_bfd_fopen): Ditto.
13862 (gdb_bfd_openr): Ditto.
13863 (gdb_bfd_openw): Ditto.
13864 (gdb_bfd_openr_iovec): Ditto.
13865 (gdb_bfd_fdopenr): Ditto.
13866 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13867 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13868 with xstrdup.
13869 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13870 with xstrdup.
13871 * symfile-mem.c (symbol_file_add_from_memory): Removed
13872 gdb_bfd_stash_filename.
13873
13874 2014-01-03 Doug Evans <dje@google.com>
13875
13876 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13877 output.
13878
13879 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13880
13881 Update year range in copyright notice of all files.
13882
13883 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13884
13885 * top.c (print_gdb_version): Set copyright year to 2014.
13886
13887 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13888
13889 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13890
13891 For older changes see ChangeLog-2013.
13892 \f
13893 Local Variables:
13894 mode: change-log
13895 left-margin: 8
13896 fill-column: 74
13897 version-control: never
13898 coding: utf-8
13899 End:
This page took 0.324532 seconds and 5 git commands to generate.