Microblaze: Reject invalid target descriptions
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2
3 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
4 isn't valid, release the tdesc arch data and return NULL.
5
6 2014-10-10 Pedro Alves <palves@redhat.com>
7
8 * linux-tdep.c: Include observer.h.
9 (linux_inferior_data): New global.
10 (struct linux_info): New structure.
11 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
12 (get_linux_inferior_data): New functions.
13 (linux_vsyscall_range): Rename to ...
14 (linux_vsyscall_range_raw): ... this.
15 (linux_vsyscall_range): New function; handles caching.
16 (_initialize_linux_tdep): Register linux_inferior_data. Install
17 inferior_exit and inferior_appeared observers.
18
19 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
20 Pedro Alves <palves@redhat.com>
21
22 PR symtab/14466
23 * solib-svr4.c (svr4_read_so_list): Rename to ...
24 (svr4_current_sos_1): ... this and change the function comment.
25 (svr4_current_sos): New function.
26
27 2014-10-10 Pedro Alves <palves@redhat.com>
28
29 * arch-utils.c (default_vsyscall_range): New function.
30 * arch-utils.h (default_vsyscall_range): New declaration.
31 * gdbarch.sh (vsyscall_range): New hook.
32 * gdbarch.h, gdbarch.c: Regenerate.
33 * linux-tdep.c (linux_vsyscall_range): New function.
34 (linux_init_abi): Install linux_vsyscall_range as
35 vsyscall_range gdbarch hook.
36 * memrange.c (address_in_mem_range): New function.
37 * memrange.h (address_in_mem_range): New declaration.
38 * symfile-mem.c (find_vdso_size): Delete function.
39 (add_vsyscall_page): Use gdbarch_vsyscall_range.
40
41 2014-10-10 Pedro Alves <palves@redhat.com>
42
43 * infrun.c (normal_stop): Fix typo in comment.
44
45 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
46
47 PR tdep/9390
48 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
49 typo when using logical AND to determine instruction type.
50
51 2014-10-09 Yao Qi <yao@codesourcery.com>
52
53 * infrun.c (handle_signal_stop): Remove local variable
54 'printed'.
55
56 2014-10-08 Stan Shebs <stan@codesourcery.com>
57
58 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
59
60 2014-10-08 Gary Benson <gbenson@redhat.com>
61
62 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
63
64 2014-10-08 Gary Benson <gbenson@redhat.com>
65
66 * common/common-defs.h: Include common-exceptions.h.
67 * exceptions.h: Do not include common-exceptions.h.
68
69 2014-10-08 Gary Benson <gbenson@redhat.com>
70
71 * common/common-defs.h: Include cleanups.h.
72 * common/common-exceptions.c: Do not include cleanups.h.
73 * utils.h: Likewise.
74
75 2014-10-08 Gary Benson <gbenson@redhat.com>
76
77 * ada-lang.c: Do not include exceptions.h.
78 * ada-valprint.c: Likewise.
79 * amd64-tdep.c: Likewise.
80 * auto-load.c: Likewise.
81 * block.c: Likewise.
82 * break-catch-throw.c: Likewise.
83 * breakpoint.c: Likewise.
84 * btrace.c: Likewise.
85 * c-lang.c: Likewise.
86 * cli/cli-cmds.c: Likewise.
87 * cli/cli-interp.c: Likewise.
88 * cli/cli-script.c: Likewise.
89 * completer.c: Likewise.
90 * corefile.c: Likewise.
91 * corelow.c: Likewise.
92 * cp-abi.c: Likewise.
93 * cp-support.c: Likewise.
94 * cp-valprint.c: Likewise.
95 * darwin-nat.c: Likewise.
96 * dwarf2-frame-tailcall.c: Likewise.
97 * dwarf2-frame.c: Likewise.
98 * dwarf2loc.c: Likewise.
99 * dwarf2read.c: Likewise.
100 * eval.c: Likewise.
101 * event-loop.c: Likewise.
102 * event-top.c: Likewise.
103 * f-valprint.c: Likewise.
104 * frame-unwind.c: Likewise.
105 * frame.c: Likewise.
106 * gdbtypes.c: Likewise.
107 * gnu-v2-abi.c: Likewise.
108 * gnu-v3-abi.c: Likewise.
109 * guile/scm-auto-load.c: Likewise.
110 * guile/scm-breakpoint.c: Likewise.
111 * guile/scm-cmd.c: Likewise.
112 * guile/scm-frame.c: Likewise.
113 * guile/scm-lazy-string.c: Likewise.
114 * guile/scm-param.c: Likewise.
115 * guile/scm-symbol.c: Likewise.
116 * guile/scm-type.c: Likewise.
117 * hppa-hpux-tdep.c: Likewise.
118 * i386-tdep.c: Likewise.
119 * inf-loop.c: Likewise.
120 * infcall.c: Likewise.
121 * infcmd.c: Likewise.
122 * infrun.c: Likewise.
123 * interps.c: Likewise.
124 * interps.h: Likewise.
125 * jit.c: Likewise.
126 * linespec.c: Likewise.
127 * linux-nat.c: Likewise.
128 * linux-thread-db.c: Likewise.
129 * m32r-rom.c: Likewise.
130 * main.c: Likewise.
131 * memory-map.c: Likewise.
132 * mi/mi-cmd-break.c: Likewise.
133 * mi/mi-cmd-stack.c: Likewise.
134 * mi/mi-interp.c: Likewise.
135 * mi/mi-main.c: Likewise.
136 * monitor.c: Likewise.
137 * nto-procfs.c: Likewise.
138 * objc-lang.c: Likewise.
139 * p-valprint.c: Likewise.
140 * parse.c: Likewise.
141 * ppc-linux-tdep.c: Likewise.
142 * printcmd.c: Likewise.
143 * probe.c: Likewise.
144 * python/py-auto-load.c: Likewise.
145 * python/py-breakpoint.c: Likewise.
146 * python/py-cmd.c: Likewise.
147 * python/py-finishbreakpoint.c: Likewise.
148 * python/py-frame.c: Likewise.
149 * python/py-framefilter.c: Likewise.
150 * python/py-function.c: Likewise.
151 * python/py-gdb-readline.c: Likewise.
152 * python/py-inferior.c: Likewise.
153 * python/py-infthread.c: Likewise.
154 * python/py-lazy-string.c: Likewise.
155 * python/py-linetable.c: Likewise.
156 * python/py-param.c: Likewise.
157 * python/py-prettyprint.c: Likewise.
158 * python/py-symbol.c: Likewise.
159 * python/py-type.c: Likewise.
160 * python/py-value.c: Likewise.
161 * python/python-internal.h: Likewise.
162 * python/python.c: Likewise.
163 * record-btrace.c: Likewise.
164 * record-full.c: Likewise.
165 * regcache.c: Likewise.
166 * remote-fileio.c: Likewise.
167 * remote-mips.c: Likewise.
168 * remote.c: Likewise.
169 * rs6000-aix-tdep.c: Likewise.
170 * rs6000-nat.c: Likewise.
171 * skip.c: Likewise.
172 * solib-darwin.c: Likewise.
173 * solib-dsbt.c: Likewise.
174 * solib-frv.c: Likewise.
175 * solib-ia64-hpux.c: Likewise.
176 * solib-spu.c: Likewise.
177 * solib-svr4.c: Likewise.
178 * solib.c: Likewise.
179 * spu-tdep.c: Likewise.
180 * stack.c: Likewise.
181 * stap-probe.c: Likewise.
182 * symfile-mem.c: Likewise.
183 * symmisc.c: Likewise.
184 * target.c: Likewise.
185 * thread.c: Likewise.
186 * top.c: Likewise.
187 * tracepoint.c: Likewise.
188 * tui/tui-interp.c: Likewise.
189 * typeprint.c: Likewise.
190 * utils.c: Likewise.
191 * valarith.c: Likewise.
192 * valops.c: Likewise.
193 * valprint.c: Likewise.
194 * value.c: Likewise.
195 * varobj.c: Likewise.
196 * windows-nat.c: Likewise.
197 * xml-support.c: Likewise.
198
199 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
200
201 * mips-tdep.c (add_offset_16): Rewrite to implement what the
202 name implies.
203 (extended_mips16_next_pc): Update accordingly.
204
205 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
206
207 * mips-tdep.c (mips16_instruction_is_compact_branch): New
208 function.
209 (micromips_instruction_is_compact_branch): Likewise.
210 (mips16_scan_prologue): Terminate scanning upon seeing a branch
211 or a compact jump, reaching a jump delay slot, or seeing a
212 second non-prologue instruction.
213 (micromips_scan_prologue): Also terminate scanning upon seeing a
214 compact branch or jump, or reaching a branch or jump delay slot.
215 (mips32_scan_prologue): Terminate scanning upon reaching a branch
216 or jump delay slot, or seeing a second non-prologue instruction.
217 (mips32_instruction_has_delay_slot): Retain instruction
218 examination code only, update arguments accordingly and move
219 instruction fetch pieces to...
220 (mips32_insn_at_pc_has_delay_slot): ... this new function.
221 (micromips_instruction_has_delay_slot): Likewise and to...
222 (micromips_insn_at_pc_has_delay_slot): ... this new function.
223 (mips16_instruction_has_delay_slot): Likewise and to...
224 (mips16_insn_at_pc_has_delay_slot): ... this new function.
225 (mips_single_step_through_delay): Update accordingly.
226 (mips_adjust_breakpoint_address): Likewise.
227
228 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
229
230 * mips-tdep.c (micromips_instruction_has_delay_slot): When
231 !mustbe32 also return 1 for 32-bit instructions.
232 (mips16_instruction_has_delay_slot): Likewise. Add an
233 explanatory comment.
234
235 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
236
237 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
238 symbols special.
239
240 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
241
242 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
243 update comments.
244 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
245 for the breakpoint's address. Don't preinitialize `placed_size'.
246 (insert_bp_location): Set `reqstd_address' rather than
247 `placed_address'.
248 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
249 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
250 address.
251 (bkpt_remove_location): Likewise.
252 (deprecated_insert_raw_breakpoint): Likewise.
253 (deprecated_remove_raw_breakpoint): Likewise.
254 (find_single_step_breakpoint): Likewise.
255 * mem-break.c (default_memory_insert_breakpoint): Use
256 `reqstd_address' for the breakpoint's address. Don't set
257 `placed_address' or `placed_size' if breakpoint contents couldn't
258 have been determined.
259 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
260 the breakpoint's address.
261 (remote_insert_hw_breakpoint): Likewise. Don't set
262 `placed_address' or `placed_size' if breakpoint couldn't have been
263 set.
264 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
265 `reqstd_address' for the breakpoint's address.
266 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
267 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
268 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
269 * microblaze-linux-tdep.c
270 (microblaze_linux_memory_remove_breakpoint): Likewise.
271 * monitor.c (monitor_insert_breakpoint): Likewise.
272 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
273 (procfs_insert_hw_breakpoint): Likewise.
274 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
275 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
276 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
277 * remote-mips.c (mips_insert_breakpoint): Likewise.
278 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
279
280 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
281
282 * valops.c (value_assign): Check for bit field assignments
283 before calling architecture-specific register value
284 conversion functions.
285
286 2014-10-03 Pierre Muller <muller@sourceware.org>
287
288 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
289
290 2014-10-02 Pedro Alves <palves@redhat.com>
291
292 * breakpoint.c (breakpoints_should_be_inserted_now): Use
293 threads_are_executing.
294 * breakpoint.h (breakpoints_should_be_inserted_now): Add
295 describing comment.
296 * gdbthread.h (threads_are_executing): Declare.
297 (handle_signal_stop) <random signals>: Don't print about the
298 signal here if stopping.
299 (end_stepping_range): Don't notify observers here.
300 (normal_stop): Update the thread list. If stopped by a random
301 signal or a stepping range ended, notify observers.
302 * thread.c (threads_executing): New global.
303 (init_thread_list): Clear 'threads_executing'.
304 (set_executing): Set or clear 'threads_executing'.
305 (threads_are_executing): New function.
306 (update_threads_executing): New function.
307 (update_thread_list): Use it.
308
309 2014-10-02 Pedro Alves <palves@redhat.com>
310
311 PR breakpoints/17431
312 * breakpoint.c (update_breakpoints_after_exec): Don't create
313 overlay, longjmp, std terminate nor exception breakpoints here.
314
315 2014-10-02 Pedro Alves <palves@redhat.com>
316
317 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
318 Adjust comments.
319 * inferior.c (find_inferior_for_program_space): Give preference to
320 the current inferior.
321 * inferior.h (find_inferior_for_program_space): Update comment.
322 * progspace.c (switch_to_program_space_and_thread): Prefer the
323 current inferior if it's bound to the program space requested. If
324 the inferior found doesn't have a PID yet, don't bother looking up
325 a thread.
326 * progspace.h (switch_to_program_space_and_thread): Adjust
327 comment.
328 * thread.c (any_thread_of_process, any_live_thread_of_process):
329 Give preference to the current thread.
330
331 2014-10-01 Pedro Alves <palves@redhat.com>
332
333 * breakpoint.c (insert_bp_location): Error out if inserting a
334 software breakpoint at a read-only address.
335 * target.c (memory_xfer_check_region): New function, factored out
336 from ...
337 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
338 ULONGEST.
339 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
340 against the memory region attributes.
341
342 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
343
344 * NEWS: Announce new exit-code field in -list-thread-groups
345 output.
346 * inferior.c (exit_inferior_1): Don't clear exit code.
347 (inferior_appeared): Clear exit code.
348 * mi/mi-main.c (print_one_inferior): Add printing of the exit
349 code.
350
351 2014-10-01 Pedro Alves <palves@redhat.com>
352
353 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
354 GENERATED" along with emacs/vi read-only markers.
355 * regformats/aarch64.dat: Regenerate.
356 * regformats/arm-with-iwmmxt.dat: Regenerate.
357 * regformats/arm-with-neon.dat: Regenerate.
358 * regformats/arm-with-vfpv2.dat: Regenerate.
359 * regformats/arm-with-vfpv3.dat: Regenerate.
360 * regformats/i386/amd64-avx-linux.dat: Regenerate.
361 * regformats/i386/amd64-avx.dat: Regenerate.
362 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
363 * regformats/i386/amd64-avx512.dat: Regenerate.
364 * regformats/i386/amd64-linux.dat: Regenerate.
365 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
366 * regformats/i386/amd64-mpx.dat: Regenerate.
367 * regformats/i386/amd64.dat: Regenerate.
368 * regformats/i386/i386-avx-linux.dat: Regenerate.
369 * regformats/i386/i386-avx.dat: Regenerate.
370 * regformats/i386/i386-avx512-linux.dat: Regenerate.
371 * regformats/i386/i386-avx512.dat: Regenerate.
372 * regformats/i386/i386-linux.dat: Regenerate.
373 * regformats/i386/i386-mmx-linux.dat: Regenerate.
374 * regformats/i386/i386-mmx.dat: Regenerate.
375 * regformats/i386/i386-mpx-linux.dat: Regenerate.
376 * regformats/i386/i386-mpx.dat: Regenerate.
377 * regformats/i386/i386.dat: Regenerate.
378 * regformats/i386/x32-avx-linux.dat: Regenerate.
379 * regformats/i386/x32-avx.dat: Regenerate.
380 * regformats/i386/x32-avx512-linux.dat: Regenerate.
381 * regformats/i386/x32-avx512.dat: Regenerate.
382 * regformats/i386/x32-linux.dat: Regenerate.
383 * regformats/i386/x32.dat: Regenerate.
384 * regformats/microblaze-with-stack-protect.dat: Regenerate.
385 * regformats/mips-dsp-linux.dat: Regenerate.
386 * regformats/mips-linux.dat: Regenerate.
387 * regformats/mips64-dsp-linux.dat: Regenerate.
388 * regformats/mips64-linux.dat: Regenerate.
389 * regformats/nios2-linux.dat: Regenerate.
390 * regformats/rs6000/powerpc-32.dat: Regenerate.
391 * regformats/rs6000/powerpc-32l.dat: Regenerate.
392 * regformats/rs6000/powerpc-64l.dat: Regenerate.
393 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
394 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
395 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
396 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
397 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
398 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
399 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
400 * regformats/s390-linux32.dat: Regenerate.
401 * regformats/s390-linux32v1.dat: Regenerate.
402 * regformats/s390-linux32v2.dat: Regenerate.
403 * regformats/s390-linux64.dat: Regenerate.
404 * regformats/s390-linux64v1.dat: Regenerate.
405 * regformats/s390-linux64v2.dat: Regenerate.
406 * regformats/s390-te-linux64.dat: Regenerate.
407 * regformats/s390x-linux64.dat: Regenerate.
408 * regformats/s390x-linux64v1.dat: Regenerate.
409 * regformats/s390x-linux64v2.dat: Regenerate.
410 * regformats/s390x-te-linux64.dat: Regenerate.
411 * regformats/tic6x-c62x-linux.dat: Regenerate.
412 * regformats/tic6x-c62x.dat: Regenerate.
413 * regformats/tic6x-c64x-linux.dat: Regenerate.
414 * regformats/tic6x-c64x.dat: Regenerate.
415 * regformats/tic6x-c64xp-linux.dat: Regenerate.
416 * regformats/tic6x-c64xp.dat: Regenerate.
417
418 2014-10-01 Pedro Alves <palves@redhat.com>
419
420 * features/Makefile: Update comments.
421 (XMLTOC): List all xml files we build C files from.
422 (clean-cfiles): New rule.
423
424 2014-10-01 Pedro Alves <palves@redhat.com>
425
426 * features/i386/amd64-avx512-linux.c: Regenerate.
427 * features/i386/amd64-avx512.c: Regenerate.
428 * features/i386/x32-avx512-linux.c: Regenerate.
429 * features/i386/x32-avx512.c: Regenerate.
430
431 2014-10-01 Pedro Alves <palves@redhat.com>
432
433 * features/Makefile (WHICH): Remove arm-with-m,
434 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
435
436 2014-10-01 Pedro Alves <palves@redhat.com>
437
438 * features/Makefile (clean): New rule.
439
440 2014-10-01 Pedro Alves <palves@redhat.com>
441
442 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
443 (zmm14h): Add missing end quotes.
444
445 2014-10-01 Pedro Alves <palves@redhat.com>
446
447 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
448 * features/aarch64.c: Regenerate.
449
450 2014-09-30 Don Breazeal <donb@codesourcery.com>
451
452 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
453 code so as to work with follow_fork_inferior.
454 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
455 (inf_ttrace_create_inferior): Remove reference to
456 inf_ttrace_vfork_ppid.
457 (inf_ttrace_attach): Ditto.
458 (inf_ttrace_detach): Ditto.
459 (inf_ttrace_kill): Use current_inferior instead of
460 inf_ttrace_vfork_ppid.
461 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
462 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
463 inferior away from the parent.
464 * infrun.c (follow_fork): Call follow_fork_inferior instead of
465 target_follow_fork.
466 (follow_fork_inferior): New function.
467 (follow_inferior_reset_breakpoints): Make function static.
468 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
469 * linux-nat.c (linux_child_follow_fork): Move target-independent
470 code to infrun.c:follow_fork_inferior.
471
472 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
473
474 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
475 * gdbarch.c: Regenerate.
476 * gdbarch.h: Likewise.
477 * corelow.c (sniff_core_bfd): Drop presence check for deleted
478 gdbarch method 'regset_from_core_section'.
479 (get_core_register_section): Remove handling for the case that
480 regset == NULL and regset_from_core_section is defined.
481 (get_core_registers): Drop check for deleted method.
482 * procfs.c (procfs_do_thread_registers): Adjust comment.
483
484 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
485
486 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
487 (linux_nat_make_corefile_notes): Remove.
488 (linux_target_install_ops): Do not set target method
489 'make_corefile_notes'.
490 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
491 Remove field.
492 (linux_corefile_thread_callback): Instead of args->collect, call
493 linux_collect_thread_registers.
494 (linux_make_corefile_notes): Remove 'collect' parameter. Return
495 NULL unless there is a regset iterator.
496 (linux_make_corefile_notes_1): Remove.
497 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
498 by linux_make_corefile_notes.
499 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
500
501 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
502
503 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
504 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
505 Remove.
506 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
507
508 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
509
510 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
511 (xtensa_iterate_over_regset_sections): New.
512 (xtensa_gdbarch_init): Adjust gdbarch initialization.
513
514 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
515
516 * vax-tdep.c (vax_regset_from_core_section): Remove.
517 (vax_iterate_over_regset_sections): New.
518 (vax_gdbarch_init): Adjust gdbarch initialization.
519
520 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
521
522 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
523 (tilegx_regset_from_core_section): Remove.
524 (tilegx_iterate_over_regset_sections): New.
525 (tilegx_linux_init_abi): Adjust gdbarch initialization.
526
527 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
528
529 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
530 (sparc_iterate_over_regset_sections): New.
531 (sparc32_gdbarch_init): Adjust gdbarch initialization.
532 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
533 targets.
534 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
535 (sparc64fbsd_init_abi): Call fbsd_init_abi.
536 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
537 target method 'make_corefile_notes'.
538
539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
540
541 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
542 'sizeof_gregset' and 'sizeof_fpregset'.
543 * sh-tdep.c (sh_regset_from_core_section): Remove.
544 (sh_iterate_over_regset_sections): New.
545 (sh_gdbarch_init): Adjust gdbarch initialization.
546 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
547 sizeof_fpregset.
548 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
549 'sizeof_gregset'.
550
551 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
552
553 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
554 (score7_linux_iterate_over_regset_sections): New.
555 (score_gdbarch_init): Adjust gdbarch initialization.
556
557 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
558
559 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
560 FreeBSD targets.
561 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
562 method 'make_corefile_notes'.
563 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
564 (ppcfbsd_regset_from_core_section): Remove.
565 (ppcfbsd_iterate_over_regset_sections): New.
566 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
567 initialization.
568 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
569 (ppcnbsd_iterate_over_regset_sections): New.
570 (ppcnbsd_init_abi): Adjust.
571 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
572 (ppcobsd_iterate_over_regset_sections): New.
573 (ppcobsd_init_abi): Adjust.
574 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
575 (rs6000_aix_iterate_over_regset_sections): New.
576 (rs6000_aix_init_osabi): Adjust.
577
578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
579
580 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
581 (nios2_regset_from_core_section): Remove.
582 (nios2_iterate_over_regset_sections): New.
583 (nios2_linux_init_abi): Adjust gdbarch initialization.
584
585 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
586
587 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
588 (am33_iterate_over_regset_sections): New.
589 (am33_linux_init_osabi): Adjust gdbarch initialization.
590
591 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
592
593 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
594 (mips_linux_iterate_over_regset_sections): New.
595 (mips_linux_init_abi): Adjust gdbarch initialization.
596 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
597 (mips64obsd_iterate_over_regset_sections): New.
598 (mips64obsd_init_abi): Adjust.
599 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
600 (mipsnbsd_iterate_over_regset_sections): New.
601 (mipsnbsd_init_abi): Adjust.
602
603 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
604
605 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
606 (m88k_iterate_over_regset_sections): New.
607 (m88k_gdbarch_init): Adjust gdbarch initialization.
608
609 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
610
611 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
612 (ia64_linux_iterate_over_regset_sections): New.
613 (ia64_linux_init_abi): Adjust gdbarch initialization.
614
615 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
616
617 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
618 (m68kbsd_iterate_over_regset_sections): New.
619 (m68kbsd_init_abi): Adjust gdbarch initialization.
620 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
621 (m68k_linux_iterate_over_regset_sections): New.
622 (m68k_linux_init_abi): Adjust gdbarch initialization.
623
624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
625
626 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
627 (m32r_linux_regset_from_core_section): Remove.
628 (m32r_linux_iterate_over_regset_sections): New.
629 (m32r_linux_init_abi): Adjust gdbarch initialization.
630
631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
632
633 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
634 (amd64obsd_iterate_over_regset_sections): New.
635 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
636 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
637 Remove.
638 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
639 regset_from_core_section initialization.
640 * i386-tdep.c (i386_regset_from_core_section): Remove.
641 (i386_iterate_over_regset_sections): New.
642 (i386_gdbarch_init): Adjust gdbarch initialization.
643 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
644 (i386_iterate_over_regset_sections): New prototype.
645 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
646 Remove.
647 (i386obsd_aout_iterate_over_regset_sections): New.
648 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
649 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
650 targets.
651 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
652 (amd64fbsd_init_abi): Call fbsd_init_abi.
653 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
654 (i386fbsd4_init_abi): Call fbsd_init_abi.
655 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
656 target method 'make_corefile_notes'.
657 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
658
659 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
660
661 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
662 (hppa_hpux_iterate_over_regset_sections): New.
663 (hppa_hpux_init_abi): Adjust gdbarch initialization.
664 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
665 (hppa_linux_iterate_over_regset_sections): New.
666 (hppa_linux_init_abi): Adjust.
667 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
668 (hppanbsd_iterate_over_regset_sections): New.
669 (hppanbsd_init_abi): Adjust.
670 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
671 (hppaobsd_iterate_over_regset_sections): New.
672 (hppaobsd_init_abi): Adjust.
673
674 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
675
676 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
677 (frv_linux_iterate_over_regset_sections): New.
678 (frv_linux_init_abi): Adjust gdbarch initialization.
679
680 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
681
682 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
683 (armbsd_iterate_over_regset_sections): New prototype.
684 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
685 (armbsd_iterate_over_regset_sections): New.
686 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
687 initialization.
688
689 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
690
691 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
692 (alpha_linux_iterate_over_regset_sections): New.
693 (alpha_linux_init_abi): Adjust gdbarch initialization.
694 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
695 prototype.
696 (alphanbsd_iterate_over_regset_sections): New prototype.
697
698 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
699
700 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
701 Remove.
702 (aarch64_linux_iterate_over_regset_sections): New.
703 (aarch64_linux_init_abi): Adjust gdbarch initialization.
704
705 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
706
707 * fbsd-tdep.c: New file.
708 * fbsd-tdep.h: New file.
709 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
710 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
711 (ALLDEPFILES): Add fbsd-tdep.c.
712
713 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
714
715 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
716 parameter.
717 * gdbarch.h: Regenerate.
718 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
719 iterator.
720 (get_core_register_section): Add parameter 'regset' and use it, if
721 set. Add parameter 'min_size' and verify the bfd section size
722 against it.
723 (get_core_registers_cb): Add parameter 'regset' and pass it to
724 get_core_register section. For the "standard" register sections
725 ".reg" and ".reg2", set an appropriate default for human_name.
726 (get_core_registers): Don't abort when the gdbarch has an iterator
727 but no regset_from_core_section. Add NULL/0 for parameters
728 'regset'/'min_size' in calls to get_core_register_section.
729 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
730 'regset' and use it instead of calling the
731 regset_from_core_section gdbarch method.
732 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
733 * i386-tdep.c (i386_supply_xstateregset)
734 (i386_collect_xstateregset, i386_xstateregset): Moved to
735 i386-linux-tdep.c.
736 (i386_regset_from_core_section): Drop handling for .reg-xfp and
737 .reg-xstate.
738 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
739 core file support only if the regset iterator hasn't been set.
740 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
741 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
742 Moved from i386-tdep.c and renamed to *_linux*.
743 (i386_linux_iterate_over_regset_sections): Add regset parameter to
744 each callback invocation. Allow any .reg-xstate size when reading
745 from a core file.
746 * amd64-tdep.c (amd64_supply_xstateregset)
747 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
748 amd64-linux-tdep.c.
749 (amd64_regset_from_core_section): Remove.
750 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
751 install an amd64-specific regset_from_core_section gdbarch method.
752 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
753 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
754 Moved from amd64-tdep.c and renamed to *_linux*.
755 (amd64_linux_iterate_over_regset_sections): Add regset parameter
756 to each callback invocation. Allow any .reg-xstate size when
757 reading from a core file.
758 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
759 (arm_linux_iterate_over_regset_sections): Add regset parameter to
760 each callback invocation.
761 (arm_linux_init_abi): No longer set the regset_from_core_section
762 gdbarch method.
763 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
764 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
765 each callback invocation.
766 (ppc_linux_init_abi): No longer set the regset_from_core_section
767 gdbarch method.
768 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
769 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
770 (s390_regset_from_core_section): Remove.
771 (s390_iterate_over_regset_sections): Add regset parameter to each
772 callback invocation.
773 (s390_gdbarch_init): No longer set the regset_from_core_section
774 gdbarch method. Drop initialization of deleted tdep fields.
775
776 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
777
778 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
779 (amd64_linux_iterate_over_regset_sections): New.
780 (amd64_linux_init_abi_common): Don't install the regset section
781 list, but the new iterator in gdbarch.
782 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
783 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
784 (arm_linux_iterate_over_regset_sections): ...here. New function.
785 (arm_linux_init_abi): Set iterator instead of section list.
786 * corelow.c (get_core_registers_cb): New function, logic moved
787 from...
788 (get_core_registers): ...loop body here. Use new iterator method
789 instead of walking through the regset section list.
790 * gdbarch.sh: Remove 'core_regset_sections'. New method
791 'iterate_over_regset_sections'. New typedef
792 'iterate_over_regset_sections_cb'.
793 * gdbarch.c: Regenerate.
794 * gdbarch.h: Likewise.
795 * i386-linux-tdep.c (i386_linux_regset_sections)
796 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
797 Remove.
798 (i386_linux_iterate_over_regset_sections): New.
799 (i386_linux_init_abi): Don't choose a regset section list, but
800 install new iterator in gdbarch.
801 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
802 (linux_collect_regset_section_cb): New function, logic moved
803 from...
804 (linux_collect_thread_registers): ...loop body here. Use iterator
805 method instead of walking through list.
806 (linux_make_corefile_notes_1): Check for presence of iterator
807 method instead of regset section list.
808 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
809 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
810 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
811 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
812 (ppc_linux_iterate_over_regset_sections): ...here. New function.
813 (ppc_linux_init_abi): Don't choose from above regset section
814 lists, but install new iterator in gdbarch.
815 * regset.h (struct core_regset_section): Remove.
816 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
817 have_linux_v1, have_linux_v2, and have_tdb.
818 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
819 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
820 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
821 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
822 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
823 (s390_iterate_over_regset_sections): ...here. New function. Use
824 new tdep fields.
825 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
826 regset section lists, but install new iterator.
827
828 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
829
830 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
831
832 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
833
834 * progspace.c (print_program_space): Don't prune program spaces
835 before printing them.
836
837 2014-09-25 Pedro Alves <palves@redhat.com>
838
839 * infrun.c (user_visible_resume_ptid): Don't check
840 singlestep_breakpoints_inserted_p.
841
842 2014-09-25 Pedro Alves <palves@redhat.com>
843
844 * breakpoint.c (should_be_inserted): Add debug output.
845
846 2014-09-25 Pedro Alves <palves@redhat.com>
847
848 * infrun.c (stepping_past_instruction_at)
849 (clear_exit_convenience_vars): Point at infrun.h instead of
850 inferior.h.
851 (handle_signal_stop): Fix typo.
852
853 2014-09-24 Yao Qi <yao@codesourcery.com>
854
855 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
856 bitmask.
857
858 2014-09-22 Gary Benson <gbenson@redhat.com>
859
860 * target.c (target_stop): Updated comment.
861
862 2014-09-22 Gary Benson <gbenson@redhat.com>
863
864 * target/target.h (target_stop_ptid): Renamed as...
865 (target_stop_and_wait): New function. Updated comment.
866 All uses updated.
867 (target_continue_ptid): Renamed as...
868 (target_continue_no_signal): New function. Updated comment.
869 All uses updated.
870
871 2014-09-22 Pedro Alves <palves@redhat.com>
872
873 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
874 and "auto" merged.
875 * breakpoint.c (enum ugll_insert_mode): New enum.
876 (always_inserted_mode): Now a plain boolean.
877 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
878 (breakpoints_always_inserted_mode): Delete.
879 (breakpoints_should_be_inserted_now): New function.
880 (insert_breakpoints): Pass UGLL_INSERT to
881 update_global_location_list instead of calling
882 insert_breakpoint_locations manually.
883 (create_solib_event_breakpoint_1): New, factored out from ...
884 (create_solib_event_breakpoint): ... this.
885 (create_and_insert_solib_event_breakpoint): Use
886 create_solib_event_breakpoint_1 instead of calling
887 insert_breakpoint_locations manually.
888 (update_global_location_list): Change parameter type from boolean
889 to enum ugll_insert_mode. All callers adjusted. Adjust to use
890 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
891 (update_global_location_list_nothrow): Change parameter type from
892 boolean to enum ugll_insert_mode.
893 (_initialize_breakpoint): "breakpoint always-inserted" option is
894 now a boolean command. Update help text.
895 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
896 (breakpoints_should_be_inserted_now): New declaration.
897 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
898 Remove breakpoints_always_inserted_mode check.
899 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
900 * remote.c (remote_start_remote): Likewise.
901
902 2014-09-22 Pedro Alves <palves@redhat.com>
903
904 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
905 (insert_breakpoints): Don't call insert_breakpoint_locations here.
906 Instead, pass UGLL_INSERT to update_global_location_list.
907 (update_global_location_list): Change parameter type from boolean
908 to enum ugll_insert_mode. All callers adjusted. Adjust to use
909 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
910 (create_solib_event_breakpoint_1): New, factored out from ...
911 (create_solib_event_breakpoint): ... this.
912 (create_and_insert_solib_event_breakpoint): Use
913 create_solib_event_breakpoint_1 instead of calling
914 insert_breakpoint_locations manually.
915 (update_global_location_list): Handle UGLL_INSERT.
916
917 2014-09-22 Pedro Alves <palves@redhat.com>
918
919 * breakpoint.c (enum ugll_insert_mode): New enum.
920 (update_global_location_list)
921 (update_global_location_list_nothrow): Change parameter type from
922 boolean to enum ugll_insert_mode. All callers adjusted.
923
924 2014-09-19 Joel Brobecker <brobecker@adacore.com>
925
926 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
927 SystemTap support in GDB.
928
929 2014-09-19 Don Breazeal <donb@codesourcery.com>
930
931 * linux-nat.c (linux_handle_extended_wait): Call
932 linux_ptrace_get_extended_event.
933 (wait_lwp): Call linux_is_extended_waitstatus.
934 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
935 and linux_is_extended_waitstatus.
936 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
937 linux_ptrace_get_extended_event.
938 (linux_ptrace_get_extended_event): New function.
939 (linux_is_extended_waitstatus): New function.
940 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
941 (linux_is_extended_waitstatus): New declarations.
942
943 2014-09-19 Yao Qi <yao@codesourcery.com>
944
945 * dwarf2read.c (dwarf_decode_lines): Update declaration.
946 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
947 comments. Callers update.
948 (dwarf_decode_lines): Likewise.
949 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
950 comments. Skip the line table if 'lowpc' is greater than
951 'address'. Don't check
952 dwarf2_per_objfile->has_section_at_zero.
953
954 2014-09-18 Doug Evans <dje@google.com>
955
956 * NEWS: Mention new "producer" attribute of gdb.Symtab.
957 * python/py-symtab.c (stpy_get_producer): New function.
958 (symtab_object_getset): Add "producer" attribute.
959
960 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
961
962 PR gdb/17384
963 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
964 (do_captured_read_memory_integer): Remove.
965 (safe_read_memory_integer): Use target_read_memory directly instead
966 of catching errors in do_captured_read_memory_integer.
967
968 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
969
970 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
971 not gdb/doc.
972
973 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
974
975 * objc-lang.c (find_implementation_from_class): Remove dead code.
976
977 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
978
979 PR cli/7233
980 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
981 "fprintf_unfiltered (gdb_stdlog...)".
982
983 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
984
985 PR breakpoints/12526
986 * breakpoint.h (struct watchpoint): New fields val_bitpos and
987 val_bitsize.
988 * breakpoint.c (watch_command_1): Use these fields to retain
989 bitfield information.
990 (extract_bitfield_from_watchpoint_value): New function.
991 (watchpoint_check): Use it.
992 (update_watchpoint): Use it. Optimize the address and length of a
993 HW watchpoint pointing to a bitfield.
994 * value.h (unpack_value_bitfield): New prototype.
995 * value.c (unpack_value_bitfield): Make extern.
996
997 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
998
999 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1000 x86-dregs.o.
1001 * gnu-nat.c (inf_threads): New function.
1002 * gnu-nat.h (inf_threads_ftype): New typedef.
1003 (inf_threads): New declaration.
1004 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1005 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1006 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1007 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1008 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1009 (i386_gnu_dr_get_control): New functions.
1010 (reg_addr): New structure.
1011 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1012 i386 debugging register hooks.
1013 * NEWS: Mention this.
1014
1015 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1016
1017 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1018 vector data transfer instructions.
1019 (arm_record_coproc_data_proc): Updated.
1020
1021 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1022
1023 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1024 arm_record_exreg_ld_st_insn.
1025 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1026 load/store insns.
1027
1028 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1029
1030 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1031 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1032 processing instructions.
1033
1034 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1035
1036 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1037 for advance SIMD struct ld/st insn.
1038 (thumb2_record_decode_insn_handler): Replace stub handler with
1039 thumb2_record_asimd_struct_ld_st.
1040
1041 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1042
1043 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1044 for asimd, vfp and coprocessor insns.
1045 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1046 and coprocessor insns.
1047 (thumb2_record_coproc_insn): New function.
1048 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1049 handlers.
1050 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1051 opcode 110 insns.
1052
1053 2014-09-13 Doug Evans <xdje42@gmail.com>
1054
1055 * NEWS: Mention new "queue-signal" command.
1056 * infcmd.c (queue_signal_command): New function.
1057 (_initialize_infcmd): Add new queue-signal command.
1058
1059 2014-09-13 Doug Evans <xdje42@gmail.com>
1060
1061 * linux-nat.c (wait_lwp): Add debugging printf.
1062 (linux_nat_wait_1): Ditto.
1063
1064 2014-09-12 Pedro Alves <palves@redhat.com>
1065
1066 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1067 (create_and_insert_solib_event_breakpoint): New functions.
1068 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1069 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1070 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1071 (remove_dbx_link_breakpoint): Delete function.
1072 (insert_dbx_link_bpt_in_file): Use
1073 create_and_insert_solib_event_breakpoint instead of
1074 deprecated_insert_raw_breakpoint.
1075 (procfs_wait): Don't check whether we hit __dbx_link here.
1076 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1077 here.
1078 * solib-irix.c (base_breakpoint): Delete global.
1079 (disable_break): Delete function.
1080 (enable_break): Use create_solib_event_breakpoint
1081 instead of deprecated_insert_raw_breakpoint.
1082 (irix_solib_handle_event): New function.
1083 (irix_solib_create_inferior_hook): Don't run the target or disable
1084 the mapping-complete breakpoint here.
1085 (_initialize_irix_solib): Install irix_solib_handle_event as
1086 so_ops->handle_event hook.
1087
1088 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1089 Ulrich Weigand  <uweigand@de.ibm.com>
1090
1091 PR tdep/17379
1092 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1093 instead of read_memory_unsigned_integer.
1094
1095 2014-09-12 Gary Benson <gbenson@redhat.com>
1096
1097 * nat/linux-waitpid.c: Include common-defs.h.
1098 [GDBSERVER]: Add FIXME comment.
1099 [!GDBSERVER]: Don't include defs.h or signal.h.
1100 (linux_debug) [!GDBSERVER]: Remove empty block.
1101
1102 2014-09-12 Gary Benson <gbenson@redhat.com>
1103
1104 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1105 Don't include defs.h or server.h.
1106
1107 2014-09-12 Gary Benson <gbenson@redhat.com>
1108
1109 * nat/linux-btrace.c: Include common-defs.h.
1110 Don't include defs.h, server.h or gdbthread.h.
1111 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1112
1113 2014-09-12 Gary Benson <gbenson@redhat.com>
1114
1115 * common/agent.c: Include common-defs.h.
1116 Don't include defs.h or server.h.
1117 * common/buffer.c: Likewise.
1118 * common/common-debug.c: Likewise.
1119 * common/common-utils.c: Likewise.
1120 * common/errors.c: Likewise.
1121 * common/filestuff.c: Likewise.
1122 * common/format.c: Likewise.
1123 * common/gdb_vecs.c: Likewise.
1124 * common/print-utils.c: Likewise.
1125 * common/ptid.c: Likewise.
1126 * common/rsp-low.c: Likewise.
1127 * common/signals.c: Likewise.
1128 * common/vec.c: Likewise.
1129 * common/xml-utils.c: Likewise.
1130 * nat/linux-osdata.c: Likewise.
1131 * nat/linux-procfs.c: Likewise.
1132 * nat/linux-ptrace.c: Likewise.
1133 * nat/mips-linux-watch.c: Likewise.
1134 * target/waitstatus.c: Likewise.
1135
1136 2014-09-12 Tom Tromey <tromey@redhat.com>
1137 Gary Benson <gbenson@redhat.com>
1138
1139 * common/common-regcache.h: New file.
1140 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1141 * regcache.h: Include common-regcache.h.
1142 (regcache_read_pc): Don't declare.
1143 * regcache.c (get_thread_regcache_for_ptid): New function.
1144 * nat/linux-btrace.c: Don't include regcache.h.
1145 Include common-regcache.h.
1146 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1147
1148 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1149
1150 * regcache.h (struct regset): Declare.
1151
1152 2014-09-11 Pedro Alves <palves@redhat.com>
1153
1154 PR gdb/17347
1155 * main.c: Include "infrun.h".
1156 (catch_command_errors, catch_command_errors_const): Wait for the
1157 foreground command to complete.
1158 * top.c (maybe_wait_sync_command_done): New function, factored out
1159 from ...
1160 (maybe_wait_sync_command_done): ... here.
1161 * top.h (maybe_wait_sync_command_done): New declaration.
1162
1163 2014-09-11 Tom Tromey <tromey@redhat.com>
1164 Gary Benson <gbenson@redhat.com>
1165
1166 * common/symbol.h: New file.
1167 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1168 * minsyms.c (find_minimal_symbol_address): New function.
1169 * common/agent.c: Include common/symbol.h.
1170 [!GDBSERVER]: Don't include objfiles.h.
1171 (agent_look_up_symbols): Use find_minimal_symbol_address.
1172
1173 2014-09-11 Gary Benson <gbenson@redhat.com>
1174
1175 * target/target.h (target_stop_ptid, target_continue_ptid):
1176 Declare.
1177 * target.c (target_stop_ptid, target_continue_ptid): New
1178 functions.
1179 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1180 (agent_run_command): Always use target_stop_ptid and
1181 target_continue_ptid.
1182
1183 2014-09-11 Tom Tromey <tromey@redhat.com>
1184 Gary Benson <gbenson@redhat.com>
1185
1186 * target/target.h: New file.
1187 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1188 * target.h: Include target/target.h.
1189 (target_read_memory, target_write_memory): Don't declare.
1190 * target.c (target_read_uint32): New function.
1191 * common/agent.c: Include target/target.h.
1192 [!GDBSERVER]: Don't include target.h.
1193 (helper_thread_id): Type changed to uint32_t.
1194 (agent_get_helper_thread_id): Use target_read_uint32.
1195 (agent_run_command): Always use target_read_memory and
1196 target_write_memory.
1197 (agent_capability): Type changed to uint32_t.
1198 (agent_capability_check): Use target_read_uint32.
1199
1200 2014-09-11 Gary Benson <gbenson@redhat.com>
1201
1202 * common/common-debug.h (show_debug_regs): Declare.
1203 * common/common-debug.c (show_debug_regs): Define.
1204 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1205 all uses with show_debug_regs. Replace all uses that considered
1206 debug_hw_points as a multi-value integer with straight boolean
1207 uses.
1208 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1209 with show_debug_regs.
1210 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1211 all uses with show_debug_regs.
1212 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1213 uses with show_debug_regs.
1214
1215 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1216
1217 * findvar.c (address_from_register): Handle targets requiring
1218 a special conversion routine even for plain pointer types.
1219
1220 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1221
1222 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1223 (store_register): Do not call exec_one_dummy_insn.
1224
1225 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1226
1227 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1228 dereference it first. Use value_enclosing_type instead of
1229 value_type.
1230 (ada_array_length): Likewise.
1231
1232 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1233
1234 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1235 Adjust function implementation and documentation accordingly.
1236 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1237 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1238 Update call to ada_value_ptr_subscript.
1239
1240 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1241
1242 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1243 instead of VAL's type.
1244
1245 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1246
1247 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1248
1249 2014-09-09 Doug Evans <xdje42@gmail.com>
1250
1251 PR guile/17367
1252 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1253 last parameter to pkg-config, not first.
1254 * configure.ac: Pass --with-guile provided pkg-config path to
1255 GDB_GUILE_PROGRAM_NAMES.
1256 * configure: Regenerate.
1257
1258 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1259
1260 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1261 Bertazi".
1262
1263 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1264
1265 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1266 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1267 the list of sections determining GDB_OSABI_IRIX.
1268
1269 2014-09-09 James Hogan <james.hogan@imgtec.com>
1270
1271 * MAINTAINERS (Write After Approval): Add "James Hogan".
1272
1273 2014-09-09 James Hogan <james.hogan@imgtec.com>
1274
1275 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1276
1277 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1278
1279 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1280
1281 2014-09-08 Doug Evans <xdje42@gmail.com>
1282
1283 PR 17247
1284 * guile.c: #include <signal.h>.
1285 (_initialize_guile): Block SIGCHLD while initializing Guile.
1286
1287 Replaces the following, which is reverted.
1288
1289 2014-07-26 Doug Evans <xdje42@gmail.com>
1290
1291 PR 17185
1292 * configure.ac: Add check for header gc/gc.h.
1293 Add check for function setenv.
1294 * configure: Regenerate.
1295 * config.in: Regenerate.
1296 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1297
1298 2014-09-08 Doug Evans <xdje42@gmail.com>
1299
1300 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1301 with named constant. Fix style of pointer comparison.
1302 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1303
1304 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1305
1306 PR gdb/17035
1307 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1308 decide whether we display the command on "show user".
1309 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1310 printing command name.
1311 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1312 * cli/cli-decode.c (cli_user_command_p): Create helper function
1313 to verify whether cmd_list_element is a user-defined command.
1314
1315 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1316
1317 PR python/17355
1318 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1319 Fix goto out of TRY_CATCH.
1320
1321 2014-09-06 Doug Evans <xdje42@gmail.com>
1322 Tom Tromey <tromey@redhat.com>
1323
1324 PR 15276
1325 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1326 $_any_caller_matches.
1327 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1328 * python/lib/gdb/function/caller_is.py: New file.
1329
1330 2014-09-06 Doug Evans <xdje42@gmail.com>
1331
1332 * infcmd.c (program_info): Fix typo.
1333
1334 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1335
1336 PR gdb/17235
1337 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1338 'number'. New variable 'has_digit'. Rewrite code to deal with
1339 subexpressions on SDT probes.
1340
1341 2014-09-04 Pedro Alves <palves@redhat.com>
1342
1343 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1344 the input is only one character long.
1345
1346 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1347
1348 PR fortran/17237
1349 * f-valprint.c (f_val_print): Specify the correct print option to
1350 use when printing integer values.
1351
1352 2014-09-04 Gary Benson <gbenson@redhat.com>
1353
1354 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1355 Remove code to cope with LWPs wrapped as PIDs.
1356 Add assertions to ensure no wrapped LWPs are passed.
1357
1358 2014-09-04 Pedro Alves <palves@redhat.com>
1359
1360 * value.c (value_ranges_copy_adjusted): New function, factored out
1361 from ...
1362 (value_contents_copy_raw): ... here.
1363 (unpack_value_bits_as_long_1): Rename back to ...
1364 (unpack_bits_as_long): ... this. Remove 'original_value' and
1365 'result' parameters. Change return type to LONGEST.
1366 (unpack_value_bits_as_long): Delete.
1367 (unpack_value_field_as_long_1): Delete.
1368 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1369 (unpack_value_bitfield): New function.
1370 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1371 (value_fetch_lazy): Use unpack_value_bitfield.
1372 * value.h (unpack_value_bits_as_long): Delete declaration.
1373
1374 2014-09-03 Sasha Smundak <asmundak@google.com>
1375
1376 * python/py-frame.c (frapy_read_register): New function.
1377
1378 2014-09-03 James Hogan <james.hogan@imgtec.com>
1379
1380 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1381 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1382
1383 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1384
1385 PR python/16699
1386 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1387 function.
1388 (add_cmd): Set "completer_handle_brkchars" to NULL.
1389 * cli/cli-decode.h (struct cmd_list_element)
1390 <completer_handle_brkchars>: New field.
1391 * command.h (completer_ftype_void): New typedef.
1392 (set_cmd_completer_handle_brkchars): New prototype.
1393 * completer.c (set_gdb_completion_word_break_characters): New
1394 function.
1395 (complete_line_internal): Call "completer_handle_brkchars"
1396 callback from command.
1397 * completer.h: Include "command.h".
1398 (set_gdb_completion_word_break_characters): New prototype.
1399 * python/py-cmd.c (cmdpy_completer_helper): New function.
1400 (cmdpy_completer_handle_brkchars): New function.
1401 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1402 (cmdpy_init): Set completer_handle_brkchars to
1403 cmdpy_completer_handle_brkchars.
1404
1405 2014-09-03 Gary Benson <gbenson@redhat.com>
1406
1407 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1408 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1409 Loop conditions changed to equivalent form.
1410 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1411 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1412 ALL_DEBUG_ADDRESS_REGISTERS.
1413
1414 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1415
1416 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1417 description fix.
1418
1419 2014-09-02 Doug Evans <dje@google.com>
1420
1421 * typeprint.c (find_global_typedef): Fix comment.
1422
1423 2014-09-02 Gary Benson <gbenson@redhat.com>
1424
1425 * i386-nat.h: Renamed as...
1426 * x86-nat.h: New file. All type, function and variable name
1427 prefixes changed from "i386_" to "x86_". All references updated.
1428 * i386-nat.c: Renamed as...
1429 * x86-nat.c: New file. All type, function and variable name
1430 prefixes changed from "i386_" to "x86_". All references updated.
1431 * common/i386-xstate.h: Renamed as...
1432 * common/x86-xstate.h: New file. All type, function and variable
1433 name prefixes changed from "i386_" to "x86_". All references
1434 updated.
1435 * nat/i386-cpuid.h: Renamed as...
1436 * nat/x86-cpuid.h: New file. All type, function and variable name
1437 prefixes changed from "i386_" to "x86_". All references updated.
1438 * nat/i386-gcc-cpuid.h: Renamed as...
1439 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1440 name prefixes changed from "i386_" to "x86_". All references
1441 updated.
1442 * nat/i386-dregs.h: Renamed as...
1443 * nat/x86-dregs.h: New file. All type, function and variable name
1444 prefixes changed from "i386_" to "x86_". All references updated.
1445 * nat/i386-dregs.c: Renamed as...
1446 * nat/x86-dregs.c: New file. All type, function and variable name
1447 prefixes changed from "i386_" to "x86_". All references updated.
1448
1449 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1450
1451 * varobj.c (_initialize_varobj): Move to the end of file.
1452
1453 2014-08-29 Gary Benson <gbenson@redhat.com>
1454
1455 * common/common-exceptions.h: New file.
1456 * common/common-exceptions.c: Likewise.
1457 * Makefile.in (SFILES): Add common/common-exceptions.c.
1458 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1459 (COMMON_OBS): Add common-exceptions.o.
1460 (common-exceptions.o): New rule.
1461 * exceptions.h (common-exceptions.h): Include.
1462 (gdb_setjmp.h): Do not include.
1463 (return_reason): Moved to common-exceptions.h.
1464 (enum return_reason): Likewise.
1465 (RETURN_MASK): Likewise.
1466 (typedef return_mask): Likewise.
1467 (enum errors): Likewise.
1468 (struct gdb_exception): Likewise.
1469 (exceptions_state_mc_init): Likewise.
1470 (exceptions_state_mc_action_iter): Likewise.
1471 (exceptions_state_mc_action_iter_1): Likewise.
1472 (TRY_CATCH): Likewise.
1473 (throw_exception): Likewise.
1474 (throw_verror): Likewise.
1475 (throw_vquit): Likewise.
1476 (throw_error): Likewise.
1477 (throw_quit): Likewise.
1478 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1479 (enum catcher_action): Likewise.
1480 (struct catcher): Likewise.
1481 (current_catcher): Likewise.
1482 (catcher_list_size): Likewise.
1483 (exceptions_state_mc_init): Likewise.
1484 (catcher_pop): Likewise.
1485 (exceptions_state_mc): Likewise.
1486 (exceptions_state_mc_action_iter): Likewise.
1487 (exceptions_state_mc_action_iter_1): Likewise.
1488 (throw_exception): Likewise.
1489 (exception_messages): Likewise.
1490 (exception_messages_size): Likewise.
1491 (throw_it): Likewise.
1492 (throw_verror): Likewise.
1493 (throw_vquit): Likewise.
1494 (throw_error): Likewise.
1495 (throw_quit): Likewise.
1496 (prepare_to_throw_exception): New function.
1497
1498 2014-08-29 Gary Benson <gbenson@redhat.com>
1499
1500 * common/gdb_setjmp.h: New file.
1501 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1502 * configure.ac: Move sigsetjmp check...
1503 * common/common.m4: ...here.
1504 * configure: Regenerate.
1505 * cp-support.c (SIGJMP_BUF): Delete.
1506 (SIGSETJMP): Likewise.
1507 (SIGLONGJMP): Likewise.
1508 * exceptions.h (gdb_setjmp.h): Include.
1509 (setjmp.h): Do not include.
1510 (EXCEPTIONS_SIGJMP_BUF): Delete.
1511 (EXCEPTIONS_SIGSETJMP): Likewise.
1512 (EXCEPTIONS_SIGLONGJMP): Likewise.
1513 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1514 from gdb_setjmp.h.
1515 * exceptions.c: Likewise.
1516
1517 2014-08-29 Gary Benson <gbenson@redhat.com>
1518
1519 * cleanups.h: Moved to...
1520 * common/cleanups.h: New file.
1521 * cleanups.c: Moved to...
1522 * common/cleanups.c: New file. Include common-defs.h and
1523 cleanups.h. Do not include defs.h.
1524 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1525 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1526 (cleanups.o): New rule.
1527
1528 2014-08-29 Gary Benson <gbenson@redhat.com>
1529
1530 * common/errors.h (internal_warning): New declaration.
1531 (internal_vwarning): Likewise.
1532 * common/errors.c (internal_warning): New function.
1533 * utils.h (internal_warning): Don't declare.
1534 (internal_vwarning): Likewise.
1535 * utils.c (internal_warning): Removed.
1536
1537 2014-08-29 Gary Benson <gbenson@redhat.com>
1538
1539 * main.c (captured_main): Use warning during startup.
1540 Prefix startup warning messages with command name.
1541
1542 2014-08-29 Gary Benson <gbenson@redhat.com>
1543
1544 * main.c (captured_main): Handle usage errors with error.
1545
1546 2014-08-29 Gary Benson <gbenson@redhat.com>
1547
1548 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1549 exit pair with a call to error. Wrap the message with _().
1550
1551 2014-08-29 Gary Benson <gbenson@redhat.com>
1552
1553 * main.c (captured_main): Replace a fprintf/exit
1554 pair with a call to error. Wrap the message with _().
1555
1556 2014-08-29 Gary Benson <gbenson@redhat.com>
1557
1558 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1559 pairs with calls to error. Wrap the message with _().
1560
1561 2014-08-29 Gary Benson <gbenson@redhat.com>
1562
1563 * utils.c (vwarning): Protect calls to target_terminal_ours
1564 and wrap_here.
1565
1566 2014-08-29 Gary Benson <gbenson@redhat.com>
1567
1568 * exceptions.c (print_flush): Protect calls to
1569 target_terminal_ours and wrap_here.
1570
1571 2014-08-29 Gary Benson <gbenson@redhat.com>
1572
1573 * utils.h (filtered_printing_initialized): New declaration.
1574 * utils.c (abort_with_message): New function.
1575 (internal_vproblem): Use abort_with_message for first level
1576 recursive internal problems, and if gdb_stderr is not set up.
1577 Protect calls to target_terminal_ours, begin_line and query.
1578
1579 2014-08-28 Doug Evans <dje@google.com>
1580
1581 * symtab.c (in_prologue): Move definition to better spot.
1582 (skip_prologue_using_sal): Ditto.
1583
1584 2014-08-28 Doug Evans <dje@google.com>
1585
1586 * symtab.c (find_function_start_sal): Move definition to better spot.
1587
1588 2014-08-28 Yao Qi <yao@codesourcery.com>
1589
1590 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1591 found_stack_adjust in forward scan. Remove condition check
1592 on found_stack_adjust which is always true. Indent the code.
1593
1594 2014-08-28 Yao Qi <yao@codesourcery.com>
1595
1596 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1597 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1598 (dwarf_decode_lines): Remove argument
1599 want_line_info. Remove condition check on want_line_info.
1600 Callers update.
1601
1602 2014-08-27 Doug Evans <dje@google.com>
1603
1604 * dwarf2read.c (dwarf_record_line): Fix typo.
1605
1606 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1607
1608 * target.h (struct target_ops::to_terminal_save_ours): Remove
1609 declaration.
1610 (target_terminal_save_ours): Remove macro.
1611 * target-delegates.c: Regenerate.
1612 * inf-child.c (inf_child_target): Don't set the nonexistent
1613 field to_terminal_save_ours.
1614 * inferior.h (child_terminal_save_ours): Remove declaration.
1615 * terminal.h (gdb_save_tty_state): New declaration.
1616 * inflow.c (child_terminal_save_ours): Rename to ...
1617 (gdb_save_tty_state): ... this.
1618 * tui/tui.c: Include terminal.h.
1619 (tui_enable): Use gdb_save_tty_state instead of
1620 target_terminal_save_ours.
1621 (tui_disable): Likewise.
1622
1623 2014-08-25 Doug Evans <dje@google.com>
1624
1625 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1626 Pass NULL instead of 0 for context pointer.
1627
1628 2014-08-25 Yao Qi <yao@codesourcery.com>
1629
1630 * dwarf2read.c: Fix grammatical error.
1631
1632 2014-08-24 Yao Qi <yao@codesourcery.com>
1633
1634 * dwarf2read.c (scan_partial_symbols): Update comments.
1635 Rename argument 'need_pc' with 'set_addrmap'.
1636 (add_partial_namespace): Rename argument 'need_pc' with
1637 'set_addrmap'.
1638 (add_partial_module): Likewise.
1639 (add_partial_subprogram): Likewise. Update comments.
1640 (dwarf2_name): Fix typo.
1641
1642 2014-08-22 Doug Evans <dje@google.com>
1643
1644 PR 17276
1645 * dwarf2read.c (dwarf_record_line_p): New function.
1646 (dwarf_decode_lines_1): Ignore subsequent line number entries
1647 for the same line if any entry had a non-zero discriminator.
1648
1649 2014-08-22 Doug Evans <dje@google.com>
1650
1651 * buildsym.h (record_line_ftype): New typedef.
1652 (record_line): Use it.
1653 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1654 (dwarf_decode_lines_1): Call them.
1655
1656 2014-08-22 Yao Qi <yao@codesourcery.com>
1657
1658 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1659 (ctf_end): Remove code.
1660
1661 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1662
1663 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1664 (linux_make_corefile_notes): call update_thread_list, protected against
1665 exceptions.
1666
1667 2014-08-21 Pedro Alves <palves@redhat.com>
1668
1669 * infcmd.c (attach_command): Remove comment.
1670
1671 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1672
1673 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1674 unsigned LONGEST to ULONGEST.
1675
1676 2014-08-20 Pedro Alves <palves@redhat.com>
1677
1678 * Makefile.in (check-read1): New rule.
1679
1680 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1681
1682 * value.c (value_from_contents_and_address): Strip resolved_type's
1683 typedef layers before checking its TYPE_DATA_LOCATION.
1684
1685 2014-08-20 Pedro Alves <palves@redhat.com>
1686
1687 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1688
1689 2014-08-20 Yao Qi <yao@codesourcery.com>
1690
1691 * amd64-tdep.c (amd64_classify): Add a blank line after the
1692 example. Move "*/" to a new line.
1693 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1694 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1695 * dwarf2read.c (psymtab_include_file_name): Likewise.
1696
1697 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1698 Pedro Alves <palves@redhat.com>
1699
1700 PR symtab/14604
1701 PR symtab/14605
1702 * ada-lang.c (coerce_unspec_val_to_type): Use
1703 value_contents_copy_raw.
1704 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1705 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1706 * cp-valprint.c (cp_print_value_fields): Let the common printing
1707 code handle optimized out values.
1708 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1709 * d-valprint.c (dynamic_array_type): Use
1710 value_bits_any_optimized_out.
1711 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1712 check_any_valid fields.
1713 (check_pieced_value_bits): Delete and inline ...
1714 (check_pieced_synthetic_pointer): ... here.
1715 (check_pieced_value_validity): Delete.
1716 (check_pieced_value_invalid): Delete.
1717 (pieced_value_funcs): Remove check_validity and check_any_valid
1718 fields.
1719 (read_pieced_value): Use mark_value_bits_optimized_out.
1720 (write_pieced_value): Switch to use
1721 mark_value_bytes_optimized_out.
1722 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1723 of assuming the whole value is optimized out.
1724 * findvar.c (read_frame_register_value): Remove special handling
1725 of optimized out registers.
1726 (value_from_register): Use mark_value_bytes_optimized_out.
1727 * frame-unwind.c (frame_unwind_got_optimized): Use
1728 mark_value_bytes_optimized_out.
1729 * jv-valprint.c (java_value_print): Adjust.
1730 (java_print_value_fields): Let the common printing code handle
1731 optimized out values.
1732 * mips-tdep.c (mips_print_register): Remove special handling of
1733 optimized out registers.
1734 * opencl-lang.c (lval_func_check_validity): Delete.
1735 (lval_func_check_any_valid): Delete.
1736 (opencl_value_funcs): Remove check_validity and check_any_valid
1737 fields.
1738 * p-valprint.c (pascal_object_print_value_fields): Let the common
1739 printing code handle optimized out values.
1740 * stack.c (read_frame_arg): Remove special handling of optimized
1741 out values. Fetch both VAL and ENTRYVAL before comparing
1742 contents. Adjust to value_available_contents_eq rename.
1743 * valprint.c (valprint_check_validity)
1744 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1745 (val_print_array_elements): Adjust.
1746 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1747 (value_bits_any_optimized_out): New function.
1748 (value_entirely_covered_by_range_vector): New function, factored
1749 out from value_entirely_unavailable.
1750 (value_entirely_unavailable): Reimplement.
1751 (value_entirely_optimized_out): New function.
1752 (insert_into_bit_range_vector): New function, factored out from
1753 mark_value_bits_unavailable.
1754 (mark_value_bits_unavailable): Reimplement.
1755 (struct ranges_and_idx): New struct.
1756 (find_first_range_overlap_and_match): New function, factored out
1757 from value_available_contents_bits_eq.
1758 (value_available_contents_bits_eq): Rename to ...
1759 (value_contents_bits_eq): ... this. Check both unavailable
1760 contents and optimized out contents.
1761 (value_available_contents_eq): Rename to ...
1762 (value_contents_eq): ... this.
1763 (allocate_value_lazy): Remove reference to the old optimized_out
1764 boolean.
1765 (allocate_optimized_out_value): Use
1766 mark_value_bytes_optimized_out.
1767 (require_not_optimized_out): Adjust to check whether the
1768 optimized_out vec is empty.
1769 (ranges_copy_adjusted): New function, factored out from
1770 value_contents_copy_raw.
1771 (value_contents_copy_raw): Also copy the optimized out ranges.
1772 Assert the destination ranges aren't optimized out.
1773 (value_contents_copy): Update comment, remove call to
1774 require_not_optimized_out.
1775 (value_contents_equal): Adjust to check whether the optimized_out
1776 vec is empty.
1777 (set_value_optimized_out, value_optimized_out_const): Delete.
1778 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1779 New functions.
1780 (value_entirely_optimized_out, value_bits_valid): Delete.
1781 (value_copy): Take a VEC copy of the 'optimized_out' field.
1782 (value_primitive_field): Remove special handling of optimized out.
1783 (value_fetch_lazy): Assert that lazy values have no unavailable
1784 regions. Use value_bits_any_optimized_out. Remove some special
1785 handling for optimized out values.
1786 * value.h: Add intro comment about <optimized out> and
1787 <unavailable>.
1788 (struct lval_funcs): Remove check_validity and check_any_valid
1789 fields.
1790 (set_value_optimized_out, value_optimized_out_const): Remove.
1791 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1792 New declarations.
1793 (value_bits_any_optimized_out): New declaration.
1794 (value_bits_valid): Delete declaration.
1795 (value_available_contents_eq): Rename to ...
1796 (value_contents_eq): ... this, and extend comments.
1797
1798 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1799
1800 Fix -fsanitize=address on unreadable inferior strings.
1801 * valprint.c (val_print_string): Fix access before BUFFER.
1802
1803 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1804
1805 * target.c (target_struct_size): Remove.
1806 (target_struct_allocsize): Remove.
1807 (DEFAULT_ALLOCSIZE): Remove.
1808 (target_ops_p): New typedef.
1809 (DEF_VEC_P (target_ops_p)): New vector type.
1810 (target_structs): Change type to VEC (target_ops_p).
1811 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1812 (find_default_run_target): Rewrite for loop following changes to
1813 target_structs.
1814
1815 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1816
1817 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1818 Adjust code accordingly. Adjust function description comment.
1819
1820 2014-08-19 Yao Qi <yao@codesourcery.com>
1821
1822 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1823 types.
1824
1825 2014-08-19 Alan Modra <amodra@gmail.com>
1826
1827 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1828 * config.in: Regenerate.
1829 * configure: Regenerate.
1830
1831 2014-08-19 Tom Tromey <tromey@redhat.com>
1832 Gary Benson <gbenson@redhat.com>
1833
1834 * common/common-debug.h: New file.
1835 * common/common-debug.c: Likewise.
1836 * debug.c: Likewise.
1837 * Makefile.in (SFILES): Add common/common-debug.c.
1838 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1839 (COMMON_OBS): Add common-debug.o and debug.o.
1840 (common-debug.o): New rule.
1841 * common/common-defs.h: Include common-debug.h.
1842 * common/agent.c (debug_agent_printf): New function.
1843 (DEBUG_AGENT): Redefine.
1844 * nat/i386-dregs.c (debug_printf): Undefine.
1845
1846 2014-08-19 Gary Benson <gbenson@redhat.com>
1847
1848 * common/common-defs.h: Include print-utils.h.
1849 * utils.h: Do not include print-utils.h.
1850
1851 2014-08-19 Tom Tromey <tromey@redhat.com>
1852 Gary Benson <gbenson@redhat.com>
1853
1854 * common/common-types.h: New file.
1855 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1856 * common/common-defs.h: Include common-types.h.
1857 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1858 (ULONGEST): Remove.
1859
1860 2014-08-19 Tom Tromey <tromey@redhat.com>
1861 Gary Benson <gbenson@redhat.com>
1862
1863 * common/errors.h: New file.
1864 * common/errors.c: Likewise.
1865 * Makefile.in (SFILES): Add common/errors.c.
1866 (HFILES_NO_SRCDIR): Add common/errors.h.
1867 (COMMON_OBS): Add errors.o.
1868 (errors.o): New rule.
1869 * common/common-defs.h: Include errors.h.
1870 * utils.h (perror_with_name, error, verror, warning, vwarning):
1871 Don't declare.
1872 * common/common-utils.h: (malloc_failure, internal_error):
1873 Likewise.
1874
1875 2014-08-19 Gary Benson <gbenson@redhat.com>
1876
1877 * utils.c (internal_vproblem): Always print the message.
1878
1879 2014-08-18 Doug Evans <dje@google.com>
1880
1881 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1882
1883 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1884
1885 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1886 Return 0 if TYPE is dynamic.
1887 (print_range): Add handling of dynamic ranges.
1888
1889 2014-08-18 Keven Boell <keven.boell@intel.com>
1890 Joel Brobecker <brobecker@adacore.com>
1891
1892 * gdbtypes.h (struct main_type): Add field "data_location".
1893 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1894 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1895 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1896 a dynamic data location.
1897 (resolve_dynamic_type): Add DW_AT_data_location handling.
1898 (copy_recursive, copy_type): Copy the data_location information
1899 when present.
1900 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1901 * value.c (value_from_contents_and_address): Add
1902 DW_AT_data_location handling.
1903
1904 2014-08-18 Keven Boell <keven.boell@intel.com>
1905 Joel Brobecker <brobecker@adacore.com>
1906
1907 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1908 field "get_object_address".
1909 * dwarf2expr.c (execute_stack_op): Add handling for
1910 DW_OP_push_object_address.
1911 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1912 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1913 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1914 (dwarf_expr_get_obj_addr): New function.
1915 (dwarf_expr_ctx_funcs): Add get_object_address field.
1916 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1917 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1918 (dwarf2_evaluate_property): Add parameter "address". Use it.
1919 (needs_get_obj_addr): New function.
1920 (needs_frame_ctx_funcs): Add get_object_address field.
1921 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1922 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1923 (resolve_dynamic_array): Likewise.
1924
1925 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1926
1927 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1928 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1929 fixed value for records and unions for which some GNAT encodings
1930 are present.
1931
1932 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1933
1934 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1935 rewrite to avoid "else if" and "else" constructs. Should be
1936 a no-op in practice.
1937
1938 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1939
1940 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1941 of lexical block.
1942
1943 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1944
1945 PR c++/17132
1946 * eval.c: Update all calls to find_overload_match.
1947 * valarith.c: Likewise.
1948 (value_user_defined_cpp_op, value_user_defined_op): New
1949 argument NOSIDE. Update all callers.
1950 * valops.c (find_overload_match): New argument NOSIDE.
1951 * value.h (find_overload_match): Update signature.
1952
1953 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1954
1955 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1956 'items' methods instead of 'iteritems' method on dictionaries.
1957
1958 2014-08-15 Doug Evans <dje@google.com>
1959
1960 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1961 closer to use.
1962
1963 2014-08-15 Doug Evans <dje@google.com>
1964
1965 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1966
1967 2014-08-15 Doug Evans <dje@google.com>
1968
1969 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1970
1971 2014-08-15 Doug Evans <dje@google.com>
1972
1973 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1974 unused.
1975
1976 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1977
1978 * dcache.h: Include target.h, to avoid compile time warnings.
1979
1980 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1981
1982 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1983 frame_info" partial declaration.
1984 * gdbarch.h: Regenerate.
1985
1986 2014-08-15 Yao Qi <yao@codesourcery.com>
1987
1988 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1989 Add parameter 'decode_for_pst_p'. Callers update.
1990
1991 2014-08-13 Yao Qi <yao@codesourcery.com>
1992
1993 PR build/17104
1994 * configure.ac: Use local variable 'pos'.
1995 * configure: Regenerated.
1996
1997 2014-08-11 Doug Evans <dje@google.com>
1998
1999 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2000 message, it is redundant with "Reading symbols from ..." message.
2001
2002 2014-08-10 Doug Evans <xdje42@gmail.com>
2003
2004 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2005
2006 2014-08-09 Yao Qi <yao@codesourcery.com>
2007
2008 PR remote/9053
2009 * remote.c (remote_xfer_partial): Remove dead code.
2010
2011 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2012
2013 * ia64-linux-tdep.c: Include "regset.h".
2014 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2015 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2016 (ia64_linux_supply_fpregset): New function.
2017 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2018 (ia64_linux_regset_from_core_section): New function.
2019 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2020 method.
2021
2022 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2023
2024 * m68klinux-tdep.c: Include "regset.h".
2025 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2026 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2027 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2028 (m68k_linux_regset_from_core_section): New function.
2029 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2030 method.
2031
2032 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2033
2034 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2035 function. Move logic to...
2036 (tilegx_linux_regmap): ... this new register map.
2037 (tilegx_linux_regset): Refer to register map, replace supply
2038 method by regcache_supply_regset, and add collect method.
2039 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2040 TILEGX_FIRST_EASY_REGNUM.
2041
2042 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2043
2044 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2045 that calls regcache_supply_regset and handles the EPC register
2046 separately. Move main logic to...
2047 (score7_linux_gregmap): ... this new register map.
2048 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2049 (score7_linux_gregset): Refer to register map. Add collect method.
2050 (score7_linux_regset_from_core_section): Replace
2051 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2052 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2053 (struct regset): Delete unused forward declaraction.
2054 (struct pt_regs): Delete structure definition.
2055 (elf_gregset_t): Delete typedef.
2056
2057 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2058
2059 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2060 (nios2_core_regset): Add collect method.
2061
2062 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2063
2064 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2065 platform-independent and don't write to read-only input buffer.
2066 (m32r_linux_collect_gregset): New function.
2067 (m32r_linux_gregset): Add collect method.
2068
2069 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2070
2071 * hppa-linux-tdep.c (greg_map): Rename to...
2072 (hppa_linux_gregmap): ... this. Also convert to
2073 regcache_map_entry format.
2074 (hppa_linux_supply_regset): Delete function.
2075 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2076 (hppa_linux_fpregmap): ... this new register map.
2077 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2078 register map, replace supply method by regcache_supply_regset, and
2079 add collect method regcache_collect_regset.
2080
2081 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2082
2083 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2084 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2085 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2086 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2087 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2088 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2089 (frv_linux_supply_gregset): Replace main logic by call to
2090 regcache_supply_regset, but keep clearing gr32-gr63.
2091 (frv_linux_supply_fpregset): Delete function.
2092 (frv_linux_gregset): Refer to appropriate register map and add
2093 regcache_collect_regset as the collect method.
2094 (frv_linux_fpregset): Likewise. Also exchange the supply method
2095 by regcache_supply_regset.
2096
2097 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2098
2099 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2100 by call to alpha_supply_int_regs.
2101 (alpha_linux_collect_gregset): New function.
2102 (alpha_linux_supply_fpregset): Replace logic by call to
2103 alpha_supply_fp_regs.
2104 (alpha_linux_collect_fpregset): New function.
2105 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2106
2107 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2108
2109 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2110 by call to regcache_collect_regset.
2111 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2112 instead of aarch64_linux_supply_gregset/_fpregset.
2113 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2114 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2115 header file instead.
2116 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2117 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2118 functions. Move logic to ...
2119 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2120 register maps.
2121 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2122 refer to new register maps, replace *_regset_from_core by
2123 regcache_supply_regset, and also use regcache_collect_regset.
2124 * aarch64-linux-tdep.h: Include "regset.h".
2125 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2126 Delete prototypes.
2127 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2128 macros, moved from C source file.
2129 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2130 variable declarations.
2131
2132 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2133
2134 * s390-linux-nat.c: Include "regset.h".
2135 (regmap_gregset): Delete macro.
2136 (s390_64_regmap_gregset): New register map for
2137 regcache_supply/_collect_regset.
2138 (s390_64_gregset): New regset.
2139 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2140 (regmap_fpregset): Delete macro.
2141 (s390_native_supply, s390_native_collect): Delete functions.
2142 (supply_gregset, fill_gregset): Replace s390-specific regmap
2143 handling by a call to regcache_supply/_collect_regset.
2144 (supply_fpregset, fill_fpregset): Call regcache_supply/
2145 _collect_regset instead of s390_native_supply/_collect.
2146 (fetch_regset, store_regset): Likewise. Also change the last
2147 parameter to a regset instead of a regmap.
2148 (s390_linux_fetch_inferior_registers)
2149 (390_linux_store_inferior_registers): Adjust last parameter in
2150 calls to fetch_regset and store_regset.
2151 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2152 (s390_gregmap): ... this. Also make static const and convert to
2153 regcache_map_entry format.
2154 (s390x_regmap_gregset): Delete.
2155 (s390_regmap_fpregset): Rename to...
2156 (s390_fpregmap): ... this. Make static const and convert to
2157 regcache_map_entry format.
2158 (s390_regmap_upper, s390_regmap_last_break)
2159 (s390x_regmap_last_break, s390_regmap_system_call)
2160 (s390_regmap_tdb): Likewise.
2161 (s390_supply_regset, s390_collect_regset): Remove functions.
2162 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2163 s390_supply_regset.
2164 (s390_gregset, s390_fpregset, s390_upper_regset)
2165 (s390_last_break_regset, s390x_last_break_regset)
2166 (s390_system_call_regset, s390_tdb_regset): Make global and
2167 replace s390_supply/_collect_regset by regcache_supply/
2168 _collect_regset.
2169 (s390x_gregset): Delete.
2170 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2171 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2172 (s390_regmap_fpregset, s390_regmap_last_break)
2173 (s390x_regmap_last_break, s390_regmap_system_call)
2174 (s390_regmap_tdb): Delete global variable declarations.
2175 (s390_gregset, s390_fpregset, s390_last_break_regset)
2176 (s390x_last_break_regset, s390_system_call_regset)
2177 (s390_tdb_regset): New global variable declarations.
2178
2179 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2180
2181 * regcache.c: Include "regset.h".
2182 (regcache_transfer_regset): New local function.
2183 (regcache_supply_regset, regcache_collect_regset): New functions.
2184 * regcache.h (struct regcache_map_entry): New structure.
2185 (REGCACHE_MAP_SKIP): New enum value.
2186 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2187
2188 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2189
2190 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2191 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2192 (ppc_linux_collect_gregset ): Likewise.
2193 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2194 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2195 (ppc_collect_vrregset): Likewise.
2196 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2197 Likewise.
2198
2199 2014-08-07 Yao Qi <yao@codesourcery.com>
2200
2201 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2202 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2203 * remote.c (remote_read_bytes): Likewise.
2204
2205 2014-08-07 Yao Qi <yao@codesourcery.com>
2206
2207 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2208
2209 2014-08-07 Yao Qi <yao@codesourcery.com>
2210
2211 PR remote/17230
2212 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2213 TARGET_XFER_OK instead of 0.
2214
2215 2014-08-07 Gary Benson <gbenson@redhat.com>
2216
2217 * common/common-defs.h: Include errno.h.
2218 * defs.h: Do not include errno.h.
2219 * ada-typeprint.c: Likewise.
2220 * c-typeprint.c: Likewise.
2221 * core-regset.c: Likewise.
2222 * corefile.c: Likewise.
2223 * corelow.c: Likewise.
2224 * event-loop.c: Likewise.
2225 * f-typeprint.c: Likewise.
2226 * gnu-nat.c: Likewise.
2227 * go32-nat.c: Likewise.
2228 * i386gnu-nat.c: Likewise.
2229 * m2-typeprint.c: Likewise.
2230 * nat/linux-btrace.c: Likewise.
2231 * p-typeprint.c: Likewise.
2232 * procfs.c: Likewise.
2233 * remote-sim.c: Likewise.
2234 * rs6000-nat.c: Likewise.
2235 * target.c: Likewise.
2236 * typeprint.c: Likewise.
2237 * ui-file.c: Likewise.
2238 * valops.c: Likewise.
2239 * valprint.c: Likewise.
2240
2241 2014-08-07 Gary Benson <gbenson@redhat.com>
2242
2243 * common/common-defs.h: Include string.h.
2244 * aarch64-tdep.c: Do not include string.h.
2245 * ada-exp.y: Likewise.
2246 * ada-lang.c: Likewise.
2247 * ada-lex.l: Likewise.
2248 * ada-typeprint.c: Likewise.
2249 * ada-valprint.c: Likewise.
2250 * aix-thread.c: Likewise.
2251 * alpha-linux-tdep.c: Likewise.
2252 * alpha-mdebug-tdep.c: Likewise.
2253 * alpha-nat.c: Likewise.
2254 * alpha-osf1-tdep.c: Likewise.
2255 * alpha-tdep.c: Likewise.
2256 * alphanbsd-tdep.c: Likewise.
2257 * amd64-dicos-tdep.c: Likewise.
2258 * amd64-linux-tdep.c: Likewise.
2259 * amd64-nat.c: Likewise.
2260 * amd64-sol2-tdep.c: Likewise.
2261 * amd64fbsd-tdep.c: Likewise.
2262 * amd64obsd-tdep.c: Likewise.
2263 * arch-utils.c: Likewise.
2264 * arm-linux-nat.c: Likewise.
2265 * arm-linux-tdep.c: Likewise.
2266 * arm-tdep.c: Likewise.
2267 * arm-wince-tdep.c: Likewise.
2268 * armbsd-tdep.c: Likewise.
2269 * armnbsd-nat.c: Likewise.
2270 * armnbsd-tdep.c: Likewise.
2271 * armobsd-tdep.c: Likewise.
2272 * avr-tdep.c: Likewise.
2273 * ax-gdb.c: Likewise.
2274 * ax-general.c: Likewise.
2275 * bcache.c: Likewise.
2276 * bfin-tdep.c: Likewise.
2277 * breakpoint.c: Likewise.
2278 * build-id.c: Likewise.
2279 * buildsym.c: Likewise.
2280 * c-exp.y: Likewise.
2281 * c-lang.c: Likewise.
2282 * c-typeprint.c: Likewise.
2283 * c-valprint.c: Likewise.
2284 * charset.c: Likewise.
2285 * cli-out.c: Likewise.
2286 * cli/cli-cmds.c: Likewise.
2287 * cli/cli-decode.c: Likewise.
2288 * cli/cli-dump.c: Likewise.
2289 * cli/cli-interp.c: Likewise.
2290 * cli/cli-logging.c: Likewise.
2291 * cli/cli-script.c: Likewise.
2292 * cli/cli-setshow.c: Likewise.
2293 * cli/cli-utils.c: Likewise.
2294 * coffread.c: Likewise.
2295 * common/agent.c: Likewise.
2296 * common/buffer.c: Likewise.
2297 * common/buffer.h: Likewise.
2298 * common/common-utils.c: Likewise.
2299 * common/filestuff.c: Likewise.
2300 * common/filestuff.c: Likewise.
2301 * common/format.c: Likewise.
2302 * common/print-utils.c: Likewise.
2303 * common/rsp-low.c: Likewise.
2304 * common/signals.c: Likewise.
2305 * common/vec.h: Likewise.
2306 * common/xml-utils.c: Likewise.
2307 * core-regset.c: Likewise.
2308 * corefile.c: Likewise.
2309 * corelow.c: Likewise.
2310 * cp-abi.c: Likewise.
2311 * cp-name-parser.y: Likewise.
2312 * cp-support.c: Likewise.
2313 * cp-valprint.c: Likewise.
2314 * cris-tdep.c: Likewise.
2315 * d-exp.y: Likewise.
2316 * darwin-nat.c: Likewise.
2317 * dbxread.c: Likewise.
2318 * dcache.c: Likewise.
2319 * demangle.c: Likewise.
2320 * dicos-tdep.c: Likewise.
2321 * disasm.c: Likewise.
2322 * doublest.c: Likewise.
2323 * dsrec.c: Likewise.
2324 * dummy-frame.c: Likewise.
2325 * dwarf2-frame.c: Likewise.
2326 * dwarf2loc.c: Likewise.
2327 * dwarf2read.c: Likewise.
2328 * elfread.c: Likewise.
2329 * environ.c: Likewise.
2330 * eval.c: Likewise.
2331 * event-loop.c: Likewise.
2332 * exceptions.c: Likewise.
2333 * exec.c: Likewise.
2334 * expprint.c: Likewise.
2335 * f-exp.y: Likewise.
2336 * f-lang.c: Likewise.
2337 * f-typeprint.c: Likewise.
2338 * f-valprint.c: Likewise.
2339 * fbsd-nat.c: Likewise.
2340 * findcmd.c: Likewise.
2341 * findvar.c: Likewise.
2342 * fork-child.c: Likewise.
2343 * frame.c: Likewise.
2344 * frv-linux-tdep.c: Likewise.
2345 * frv-tdep.c: Likewise.
2346 * gdb.c: Likewise.
2347 * gdb_bfd.c: Likewise.
2348 * gdbarch.c: Likewise.
2349 * gdbarch.sh: Likewise.
2350 * gdbtypes.c: Likewise.
2351 * gnu-nat.c: Likewise.
2352 * gnu-v2-abi.c: Likewise.
2353 * gnu-v3-abi.c: Likewise.
2354 * go-exp.y: Likewise.
2355 * go-lang.c: Likewise.
2356 * go32-nat.c: Likewise.
2357 * guile/guile.c: Likewise.
2358 * guile/scm-auto-load.c: Likewise.
2359 * hppa-hpux-tdep.c: Likewise.
2360 * hppa-linux-nat.c: Likewise.
2361 * hppanbsd-tdep.c: Likewise.
2362 * hppaobsd-tdep.c: Likewise.
2363 * i386-cygwin-tdep.c: Likewise.
2364 * i386-dicos-tdep.c: Likewise.
2365 * i386-linux-tdep.c: Likewise.
2366 * i386-nto-tdep.c: Likewise.
2367 * i386-sol2-tdep.c: Likewise.
2368 * i386-tdep.c: Likewise.
2369 * i386bsd-tdep.c: Likewise.
2370 * i386gnu-nat.c: Likewise.
2371 * i386nbsd-tdep.c: Likewise.
2372 * i386obsd-tdep.c: Likewise.
2373 * i387-tdep.c: Likewise.
2374 * ia64-libunwind-tdep.c: Likewise.
2375 * ia64-linux-nat.c: Likewise.
2376 * inf-child.c: Likewise.
2377 * inf-ptrace.c: Likewise.
2378 * inf-ttrace.c: Likewise.
2379 * infcall.c: Likewise.
2380 * infcmd.c: Likewise.
2381 * inflow.c: Likewise.
2382 * infrun.c: Likewise.
2383 * interps.c: Likewise.
2384 * iq2000-tdep.c: Likewise.
2385 * irix5-nat.c: Likewise.
2386 * jv-exp.y: Likewise.
2387 * jv-lang.c: Likewise.
2388 * jv-typeprint.c: Likewise.
2389 * jv-valprint.c: Likewise.
2390 * language.c: Likewise.
2391 * linux-fork.c: Likewise.
2392 * linux-nat.c: Likewise.
2393 * lm32-tdep.c: Likewise.
2394 * m2-exp.y: Likewise.
2395 * m2-typeprint.c: Likewise.
2396 * m32c-tdep.c: Likewise.
2397 * m32r-linux-nat.c: Likewise.
2398 * m32r-linux-tdep.c: Likewise.
2399 * m32r-rom.c: Likewise.
2400 * m32r-tdep.c: Likewise.
2401 * m68hc11-tdep.c: Likewise.
2402 * m68k-tdep.c: Likewise.
2403 * m68kbsd-tdep.c: Likewise.
2404 * m68klinux-nat.c: Likewise.
2405 * m68klinux-tdep.c: Likewise.
2406 * m88k-tdep.c: Likewise.
2407 * machoread.c: Likewise.
2408 * macrocmd.c: Likewise.
2409 * main.c: Likewise.
2410 * mdebugread.c: Likewise.
2411 * mem-break.c: Likewise.
2412 * memattr.c: Likewise.
2413 * memory-map.c: Likewise.
2414 * mep-tdep.c: Likewise.
2415 * mi/mi-cmd-break.c: Likewise.
2416 * mi/mi-cmd-disas.c: Likewise.
2417 * mi/mi-cmd-env.c: Likewise.
2418 * mi/mi-cmd-stack.c: Likewise.
2419 * mi/mi-cmd-var.c: Likewise.
2420 * mi/mi-cmds.c: Likewise.
2421 * mi/mi-console.c: Likewise.
2422 * mi/mi-getopt.c: Likewise.
2423 * mi/mi-interp.c: Likewise.
2424 * mi/mi-main.c: Likewise.
2425 * mi/mi-parse.c: Likewise.
2426 * microblaze-rom.c: Likewise.
2427 * microblaze-tdep.c: Likewise.
2428 * mingw-hdep.c: Likewise.
2429 * minidebug.c: Likewise.
2430 * minsyms.c: Likewise.
2431 * mips-irix-tdep.c: Likewise.
2432 * mips-linux-tdep.c: Likewise.
2433 * mips-tdep.c: Likewise.
2434 * mips64obsd-tdep.c: Likewise.
2435 * mipsnbsd-tdep.c: Likewise.
2436 * mipsread.c: Likewise.
2437 * mn10300-linux-tdep.c: Likewise.
2438 * mn10300-tdep.c: Likewise.
2439 * monitor.c: Likewise.
2440 * moxie-tdep.c: Likewise.
2441 * mt-tdep.c: Likewise.
2442 * nat/linux-btrace.c: Likewise.
2443 * nat/linux-osdata.c: Likewise.
2444 * nat/linux-procfs.c: Likewise.
2445 * nat/linux-ptrace.c: Likewise.
2446 * nat/linux-waitpid.c: Likewise.
2447 * nbsd-tdep.c: Likewise.
2448 * nios2-linux-tdep.c: Likewise.
2449 * nto-procfs.c: Likewise.
2450 * nto-tdep.c: Likewise.
2451 * objc-lang.c: Likewise.
2452 * objfiles.c: Likewise.
2453 * opencl-lang.c: Likewise.
2454 * osabi.c: Likewise.
2455 * osdata.c: Likewise.
2456 * p-exp.y: Likewise.
2457 * p-lang.c: Likewise.
2458 * p-typeprint.c: Likewise.
2459 * parse.c: Likewise.
2460 * posix-hdep.c: Likewise.
2461 * ppc-linux-nat.c: Likewise.
2462 * ppc-sysv-tdep.c: Likewise.
2463 * ppcfbsd-tdep.c: Likewise.
2464 * ppcnbsd-tdep.c: Likewise.
2465 * ppcobsd-tdep.c: Likewise.
2466 * printcmd.c: Likewise.
2467 * procfs.c: Likewise.
2468 * prologue-value.c: Likewise.
2469 * python/py-auto-load.c: Likewise.
2470 * python/py-gdb-readline.c: Likewise.
2471 * ravenscar-thread.c: Likewise.
2472 * regcache.c: Likewise.
2473 * registry.c: Likewise.
2474 * remote-fileio.c: Likewise.
2475 * remote-m32r-sdi.c: Likewise.
2476 * remote-mips.c: Likewise.
2477 * remote-notif.c: Likewise.
2478 * remote-sim.c: Likewise.
2479 * remote.c: Likewise.
2480 * reverse.c: Likewise.
2481 * rs6000-aix-tdep.c: Likewise.
2482 * ser-base.c: Likewise.
2483 * ser-go32.c: Likewise.
2484 * ser-mingw.c: Likewise.
2485 * ser-pipe.c: Likewise.
2486 * ser-tcp.c: Likewise.
2487 * ser-unix.c: Likewise.
2488 * serial.c: Likewise.
2489 * sh-tdep.c: Likewise.
2490 * sh64-tdep.c: Likewise.
2491 * shnbsd-tdep.c: Likewise.
2492 * skip.c: Likewise.
2493 * sol-thread.c: Likewise.
2494 * solib-dsbt.c: Likewise.
2495 * solib-frv.c: Likewise.
2496 * solib-osf.c: Likewise.
2497 * solib-som.c: Likewise.
2498 * solib-spu.c: Likewise.
2499 * solib-target.c: Likewise.
2500 * solib.c: Likewise.
2501 * somread.c: Likewise.
2502 * source.c: Likewise.
2503 * sparc-nat.c: Likewise.
2504 * sparc-sol2-tdep.c: Likewise.
2505 * sparc-tdep.c: Likewise.
2506 * sparc64-tdep.c: Likewise.
2507 * sparc64fbsd-tdep.c: Likewise.
2508 * sparc64nbsd-tdep.c: Likewise.
2509 * sparcnbsd-tdep.c: Likewise.
2510 * spu-linux-nat.c: Likewise.
2511 * spu-multiarch.c: Likewise.
2512 * spu-tdep.c: Likewise.
2513 * stabsread.c: Likewise.
2514 * stack.c: Likewise.
2515 * std-regs.c: Likewise.
2516 * symfile.c: Likewise.
2517 * symmisc.c: Likewise.
2518 * symtab.c: Likewise.
2519 * target.c: Likewise.
2520 * thread.c: Likewise.
2521 * tilegx-linux-nat.c: Likewise.
2522 * tilegx-tdep.c: Likewise.
2523 * top.c: Likewise.
2524 * tracepoint.c: Likewise.
2525 * tui/tui-command.c: Likewise.
2526 * tui/tui-data.c: Likewise.
2527 * tui/tui-disasm.c: Likewise.
2528 * tui/tui-file.c: Likewise.
2529 * tui/tui-layout.c: Likewise.
2530 * tui/tui-out.c: Likewise.
2531 * tui/tui-regs.c: Likewise.
2532 * tui/tui-source.c: Likewise.
2533 * tui/tui-stack.c: Likewise.
2534 * tui/tui-win.c: Likewise.
2535 * tui/tui-windata.c: Likewise.
2536 * tui/tui-winsource.c: Likewise.
2537 * typeprint.c: Likewise.
2538 * ui-file.c: Likewise.
2539 * ui-out.c: Likewise.
2540 * user-regs.c: Likewise.
2541 * utils.c: Likewise.
2542 * v850-tdep.c: Likewise.
2543 * valarith.c: Likewise.
2544 * valops.c: Likewise.
2545 * valprint.c: Likewise.
2546 * value.c: Likewise.
2547 * varobj.c: Likewise.
2548 * vax-tdep.c: Likewise.
2549 * vaxnbsd-tdep.c: Likewise.
2550 * vaxobsd-tdep.c: Likewise.
2551 * windows-nat.c: Likewise.
2552 * xcoffread.c: Likewise.
2553 * xml-support.c: Likewise.
2554 * xstormy16-tdep.c: Likewise.
2555 * xtensa-linux-nat.c: Likewise.
2556
2557 2014-08-07 Gary Benson <gbenson@redhat.com>
2558
2559 * common/common-defs.h: Include gdb_assert.h.
2560 * aarch64-tdep.c: Do not include gdb_assert.h.
2561 * addrmap.c: Likewise.
2562 * aix-thread.c: Likewise.
2563 * alpha-linux-tdep.c: Likewise.
2564 * alpha-mdebug-tdep.c: Likewise.
2565 * alphanbsd-tdep.c: Likewise.
2566 * amd64-nat.c: Likewise.
2567 * amd64-tdep.c: Likewise.
2568 * amd64bsd-nat.c: Likewise.
2569 * amd64fbsd-nat.c: Likewise.
2570 * amd64fbsd-tdep.c: Likewise.
2571 * amd64nbsd-nat.c: Likewise.
2572 * amd64nbsd-tdep.c: Likewise.
2573 * amd64obsd-nat.c: Likewise.
2574 * amd64obsd-tdep.c: Likewise.
2575 * arch-utils.c: Likewise.
2576 * arm-tdep.c: Likewise.
2577 * armbsd-tdep.c: Likewise.
2578 * auxv.c: Likewise.
2579 * bcache.c: Likewise.
2580 * bfin-tdep.c: Likewise.
2581 * blockframe.c: Likewise.
2582 * breakpoint.c: Likewise.
2583 * bsd-kvm.c: Likewise.
2584 * bsd-uthread.c: Likewise.
2585 * buildsym.c: Likewise.
2586 * c-exp.y: Likewise.
2587 * c-lang.c: Likewise.
2588 * charset.c: Likewise.
2589 * cleanups.c: Likewise.
2590 * cli-out.c: Likewise.
2591 * cli/cli-decode.c: Likewise.
2592 * cli/cli-dump.c: Likewise.
2593 * cli/cli-logging.c: Likewise.
2594 * cli/cli-script.c: Likewise.
2595 * cli/cli-utils.c: Likewise.
2596 * coffread.c: Likewise.
2597 * common/common-utils.c: Likewise.
2598 * common/queue.h: Likewise.
2599 * common/signals.c: Likewise.
2600 * common/vec.h: Likewise.
2601 * complaints.c: Likewise.
2602 * completer.c: Likewise.
2603 * corelow.c: Likewise.
2604 * cp-abi.c: Likewise.
2605 * cp-name-parser.y: Likewise.
2606 * cp-namespace.c: Likewise.
2607 * cp-support.c: Likewise.
2608 * cris-tdep.c: Likewise.
2609 * dbxread.c: Likewise.
2610 * dictionary.c: Likewise.
2611 * doublest.c: Likewise.
2612 * dsrec.c: Likewise.
2613 * dummy-frame.c: Likewise.
2614 * dwarf2-frame-tailcall.c: Likewise.
2615 * dwarf2-frame.c: Likewise.
2616 * dwarf2expr.c: Likewise.
2617 * dwarf2loc.c: Likewise.
2618 * dwarf2read.c: Likewise.
2619 * eval.c: Likewise.
2620 * event-loop.c: Likewise.
2621 * exceptions.c: Likewise.
2622 * expprint.c: Likewise.
2623 * f-valprint.c: Likewise.
2624 * fbsd-nat.c: Likewise.
2625 * findvar.c: Likewise.
2626 * frame-unwind.c: Likewise.
2627 * frame.c: Likewise.
2628 * frv-tdep.c: Likewise.
2629 * gcore.c: Likewise.
2630 * gdb-dlfcn.c: Likewise.
2631 * gdb_bfd.c: Likewise.
2632 * gdbarch.c: Likewise.
2633 * gdbarch.sh: Likewise.
2634 * gdbtypes.c: Likewise.
2635 * gnu-nat.c: Likewise.
2636 * gnu-v3-abi.c: Likewise.
2637 * go-lang.c: Likewise.
2638 * guile/scm-exception.c: Likewise.
2639 * guile/scm-gsmob.c: Likewise.
2640 * guile/scm-lazy-string.c: Likewise.
2641 * guile/scm-math.c: Likewise.
2642 * guile/scm-pretty-print.c: Likewise.
2643 * guile/scm-safe-call.c: Likewise.
2644 * guile/scm-utils.c: Likewise.
2645 * guile/scm-value.c: Likewise.
2646 * h8300-tdep.c: Likewise.
2647 * hppa-hpux-nat.c: Likewise.
2648 * hppa-tdep.c: Likewise.
2649 * hppanbsd-tdep.c: Likewise.
2650 * hppaobsd-tdep.c: Likewise.
2651 * i386-darwin-nat.c: Likewise.
2652 * i386-darwin-tdep.c: Likewise.
2653 * i386-nto-tdep.c: Likewise.
2654 * i386-tdep.c: Likewise.
2655 * i386bsd-nat.c: Likewise.
2656 * i386fbsd-tdep.c: Likewise.
2657 * i386gnu-nat.c: Likewise.
2658 * i386nbsd-tdep.c: Likewise.
2659 * i386obsd-tdep.c: Likewise.
2660 * i387-tdep.c: Likewise.
2661 * ia64-libunwind-tdep.c: Likewise.
2662 * ia64-tdep.c: Likewise.
2663 * inf-ptrace.c: Likewise.
2664 * inf-ttrace.c: Likewise.
2665 * infcall.c: Likewise.
2666 * infcmd.c: Likewise.
2667 * infrun.c: Likewise.
2668 * inline-frame.c: Likewise.
2669 * interps.c: Likewise.
2670 * jv-lang.c: Likewise.
2671 * jv-typeprint.c: Likewise.
2672 * linux-fork.c: Likewise.
2673 * linux-nat.c: Likewise.
2674 * linux-thread-db.c: Likewise.
2675 * m32c-tdep.c: Likewise.
2676 * m32r-linux-nat.c: Likewise.
2677 * m32r-tdep.c: Likewise.
2678 * m68k-tdep.c: Likewise.
2679 * m68kbsd-nat.c: Likewise.
2680 * m68kbsd-tdep.c: Likewise.
2681 * m88k-tdep.c: Likewise.
2682 * machoread.c: Likewise.
2683 * macroexp.c: Likewise.
2684 * macrotab.c: Likewise.
2685 * maint.c: Likewise.
2686 * mdebugread.c: Likewise.
2687 * memory-map.c: Likewise.
2688 * mep-tdep.c: Likewise.
2689 * mi/mi-common.c: Likewise.
2690 * microblaze-tdep.c: Likewise.
2691 * mingw-hdep.c: Likewise.
2692 * mips-linux-nat.c: Likewise.
2693 * mips-linux-tdep.c: Likewise.
2694 * mips-tdep.c: Likewise.
2695 * mips64obsd-tdep.c: Likewise.
2696 * mipsnbsd-tdep.c: Likewise.
2697 * mn10300-linux-tdep.c: Likewise.
2698 * mn10300-tdep.c: Likewise.
2699 * moxie-tdep.c: Likewise.
2700 * mt-tdep.c: Likewise.
2701 * nat/linux-btrace.c: Likewise.
2702 * nat/linux-osdata.c: Likewise.
2703 * nat/linux-ptrace.c: Likewise.
2704 * nat/mips-linux-watch.c: Likewise.
2705 * nios2-linux-tdep.c: Likewise.
2706 * nios2-tdep.c: Likewise.
2707 * objc-lang.c: Likewise.
2708 * objfiles.c: Likewise.
2709 * obsd-nat.c: Likewise.
2710 * opencl-lang.c: Likewise.
2711 * osabi.c: Likewise.
2712 * parse.c: Likewise.
2713 * ppc-linux-nat.c: Likewise.
2714 * ppc-sysv-tdep.c: Likewise.
2715 * ppcfbsd-nat.c: Likewise.
2716 * ppcfbsd-tdep.c: Likewise.
2717 * ppcnbsd-nat.c: Likewise.
2718 * ppcnbsd-tdep.c: Likewise.
2719 * ppcobsd-nat.c: Likewise.
2720 * ppcobsd-tdep.c: Likewise.
2721 * printcmd.c: Likewise.
2722 * procfs.c: Likewise.
2723 * prologue-value.c: Likewise.
2724 * psymtab.c: Likewise.
2725 * python/py-lazy-string.c: Likewise.
2726 * python/py-value.c: Likewise.
2727 * regcache.c: Likewise.
2728 * reggroups.c: Likewise.
2729 * registry.c: Likewise.
2730 * remote-sim.c: Likewise.
2731 * remote.c: Likewise.
2732 * rs6000-aix-tdep.c: Likewise.
2733 * rs6000-tdep.c: Likewise.
2734 * s390-linux-tdep.c: Likewise.
2735 * score-tdep.c: Likewise.
2736 * ser-base.c: Likewise.
2737 * ser-mingw.c: Likewise.
2738 * sh-tdep.c: Likewise.
2739 * sh64-tdep.c: Likewise.
2740 * solib-darwin.c: Likewise.
2741 * solib-spu.c: Likewise.
2742 * solib-svr4.c: Likewise.
2743 * source.c: Likewise.
2744 * sparc-nat.c: Likewise.
2745 * sparc-sol2-tdep.c: Likewise.
2746 * sparc-tdep.c: Likewise.
2747 * sparc64-sol2-tdep.c: Likewise.
2748 * sparc64-tdep.c: Likewise.
2749 * sparc64fbsd-tdep.c: Likewise.
2750 * sparc64nbsd-tdep.c: Likewise.
2751 * sparc64obsd-tdep.c: Likewise.
2752 * sparcnbsd-tdep.c: Likewise.
2753 * sparcobsd-tdep.c: Likewise.
2754 * spu-multiarch.c: Likewise.
2755 * spu-tdep.c: Likewise.
2756 * stabsread.c: Likewise.
2757 * stack.c: Likewise.
2758 * symfile.c: Likewise.
2759 * symtab.c: Likewise.
2760 * target-descriptions.c: Likewise.
2761 * target-memory.c: Likewise.
2762 * target.c: Likewise.
2763 * tic6x-linux-tdep.c: Likewise.
2764 * tic6x-tdep.c: Likewise.
2765 * tilegx-linux-nat.c: Likewise.
2766 * tilegx-tdep.c: Likewise.
2767 * top.c: Likewise.
2768 * tramp-frame.c: Likewise.
2769 * tui/tui-out.c: Likewise.
2770 * tui/tui-winsource.c: Likewise.
2771 * ui-out.c: Likewise.
2772 * user-regs.c: Likewise.
2773 * utils.c: Likewise.
2774 * v850-tdep.c: Likewise.
2775 * valops.c: Likewise.
2776 * value.c: Likewise.
2777 * varobj.c: Likewise.
2778 * vax-nat.c: Likewise.
2779 * xml-syscall.c: Likewise.
2780 * xml-tdesc.c: Likewise.
2781 * xstormy16-tdep.c: Likewise.
2782 * xtensa-linux-nat.c: Likewise.
2783 * xtensa-tdep.c: Likewise.
2784
2785 2014-08-07 Gary Benson <gbenson@redhat.com>
2786
2787 * common/common-defs.h: Include common-utils.h.
2788 * defs.h: Do not include common-utils.h.
2789 * common/gdb_assert.h: Likewise.
2790 * darwin-nat.h: Likewise.
2791 * nat/linux-btrace.c: Likewise.
2792 * target/waitstatus.h: Likewise.
2793
2794 2014-08-07 Gary Benson <gbenson@redhat.com>
2795
2796 * common/common-defs.h: Include ptid.h.
2797 * defs.h: Do not include ptid.h.
2798 * inferior.h: Likewise.
2799 * infrun.h: Likewise.
2800 * nat/linux-btrace.h: Likewise.
2801 * nat/linux-osdata.h: Likewise.
2802 * target/waitstatus.h: Likewise.
2803
2804 2014-08-07 Gary Benson <gbenson@redhat.com>
2805
2806 * common/common-defs.h: Include gdb_locale.h.
2807 * defs.h: Do not include gdb_locale.h.
2808
2809 2014-08-07 Gary Benson <gbenson@redhat.com>
2810
2811 * common/common-defs.h: Include gdb/signals.h.
2812 * defs.h: Do not include gdb/signals.h.
2813
2814 2014-08-07 Gary Benson <gbenson@redhat.com>
2815
2816 * common/common-defs.h: Include pathmax.h.
2817 * defs.h: Do not include pathmax.h.
2818
2819 2014-08-07 Gary Benson <gbenson@redhat.com>
2820
2821 * common/common-defs.h: Include libiberty.h.
2822 * defs.h: Do not include libiberty.h.
2823 * common/queue.h: Likewise.
2824 * cp-name-parser.y: Likewise.
2825 * mi/mi-cmd-catch.c: Likewise.
2826 * python/python.c: Likewise.
2827
2828 2014-08-07 Gary Benson <gbenson@redhat.com>
2829
2830 * common/common-defs.h: Include ansidecl.h.
2831 * defs.h: Do not include ansidecl.h.
2832 * common/buffer.h: Likewise.
2833 * common/common-utils.h: Likewise.
2834
2835 2014-08-07 Gary Benson <gbenson@redhat.com>
2836
2837 * common/common-defs.h: Include stddef.h.
2838 * defs.h: Do not include stddef.h.
2839 * common/common-utils.h: Likewise.
2840 * amd64fbsd-nat.c: Likewise.
2841 * bcache.c: Likewise.
2842 * charset.c: Likewise.
2843 * common/buffer.h: Likewise.
2844 * common/vec.h: Likewise.
2845 * i386bsd-nat.c: Likewise.
2846 * nat/linux-btrace.h: Likewise.
2847 * ppcfbsd-nat.c: Likewise.
2848 * ppcnbsd-tdep.h: Likewise.
2849 * ppcobsd-nat.c: Likewise.
2850 * ppcobsd-tdep.h: Likewise.
2851 * python/py-gdb-readline.c: Likewise.
2852
2853 2014-08-07 Gary Benson <gbenson@redhat.com>
2854
2855 * common/common-defs.h: Include stdarg.h.
2856 * defs.h: Do not include stdarg.h.
2857 * ada-lang.c: Likewise.
2858 * common/common-utils.h: Likewise.
2859 * guile/scm-string.c: Likewise.
2860 * guile/scm-utils.c: Likewise.
2861 * m32c-tdep.c: Likewise.
2862
2863 2014-08-07 Gary Benson <gbenson@redhat.com>
2864
2865 * common/common-defs.h: Include stdlib.h.
2866 * defs.h: Do not include stdlib.h.
2867 * addrmap.c: Likewise.
2868 * bcache.c: Likewise.
2869 * common/buffer.c: Likewise.
2870 * common/common-utils.c: Likewise.
2871 * cp-name-parser.y: Likewise.
2872 * go32-nat.c: Likewise.
2873 * mn10300-linux-tdep.c: Likewise.
2874 * nat/linux-osdata.c: Likewise.
2875 * tui/tui.c: Likewise.
2876 * windows-nat.c: Likewise.
2877
2878 2014-08-07 Gary Benson <gbenson@redhat.com>
2879
2880 * common/common-defs.h: Include stdio.h.
2881 * defs.h: Do not include stdio.h.
2882 * ada-lang.c: Likewise.
2883 * common/buffer.c: Likewise.
2884 * common/common-utils.c: Likewise.
2885 * cp-name-parser.y: Likewise.
2886 * gnu-nat.c: Likewise.
2887 * go32-nat.c: Likewise.
2888 * i386gnu-nat.c: Likewise.
2889 * proc-api.c: Likewise.
2890 * proc-events.c: Likewise.
2891 * proc-flags.c: Likewise.
2892 * proc-why.c: Likewise.
2893 * python/python-internal.h: Likewise.
2894 * target-memory.c: Likewise.
2895 * tui/tui-io.c: Likewise.
2896 * tui/tui.c: Likewise.
2897
2898 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2899
2900 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2901 (scan_dyntag_auxv): Same.
2902
2903 2014-08-06 Yao Qi <yao@codesourcery.com>
2904
2905 * amd64-linux-nat.c: Remove duplicated include
2906 "x86-linux-nat.h".
2907 * i386-linux-nat.c: Likewise.
2908
2909 2014-08-06 Yao Qi <yao@codesourcery.com>
2910
2911 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2912 operand" with "Special opcode" in comments.
2913
2914 2014-08-05 Gary Benson <gbenson@redhat.com>
2915
2916 * interps.c (initialize_interps): Remove prototype.
2917 (interpreter_initialized): Remove static global.
2918 (interp_add): Do not call initialize_interps.
2919 (initialize_interps): Remove function.
2920
2921 2014-08-05 Gary Benson <gbenson@redhat.com>
2922
2923 * utils.c (vwarning): Remove spurious va_end.
2924
2925 2014-08-05 Alan Modra <amodra@gmail.com>
2926
2927 * charset.c (convert_between_encodings): Cast result of obstack_base.
2928 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2929 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2930 (read_unwind_info): Use size_t for some locals.
2931 * jit.c (finalize_symtab): Likewise.
2932 * utils.c (hashtab_obstack_allocate): Likewise.
2933 * symmisc.c (print_objfile_statistics): Update format strings.
2934
2935 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2936
2937 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2938 (Changes in GDB 7.8): ... here.
2939
2940 2014-08-04 Tom Tromey <tromey@redhat.com>
2941
2942 * target.c (set_targetdebug): New function.
2943 (initialize_targets): Pass set_targetdebug when creating "set
2944 debug target".
2945
2946 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2947
2948 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2949 if detecting a variable-sized field that is not the last field.
2950 Fix struct type length computation.
2951
2952 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2953
2954 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2955 Add debug trace.
2956
2957 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2958
2959 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2960 Remove "+ 8" offset in computation of CHAIN_VMA.
2961
2962 2014-07-31 Doug Evans <dje@google.com>
2963
2964 * inflow.c (child_terminal_inferior): Add comment.
2965 (child_terminal_ours_for_output): Add comment.
2966 (child_terminal_ours): Add comment.
2967 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2968 (linux_nat_terminal_ours): Add comment.
2969
2970 2014-07-31 Gary Benson <gbenson@redhat.com>
2971
2972 * common/btrace-common.h: Do not include defs.h or server.h.
2973 * nat/mips-linux-watch.h: Likewise.
2974 * gdb-dlfcn.h: Do not include defs.h.
2975 * tracefile.h: Likewise.
2976
2977 2014-07-30 Roland McGrath <mcgrathr@google.com>
2978
2979 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2980
2981 2014-07-30 Tom Tromey <tromey@redhat.com>
2982
2983 * bsd-kvm.c (bsd_kvm_open): Constify.
2984 * corelow.c (core_open): Constify.
2985 * ctf.c (ctf_open): Constify.
2986 * dbug-rom.c (dbug_open): Constify.
2987 * exec.c (exec_open): Constify.
2988 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2989 * microblaze-rom.c (picobug_open): Constify.
2990 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2991 Constify.
2992 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2993 * record-btrace.c (record_btrace_open): Constify.
2994 * record-full.c (record_full_core_open_1, record_full_open_1)
2995 (record_full_open): Constify.
2996 * remote-m32r-sdi.c (m32r_open): Constify.
2997 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2998 (rockhopper_open, lsi_open): Constify.
2999 * remote-sim.c (gdbsim_open): Constify.
3000 * remote.c (remote_open, extended_remote_open, remote_open_1):
3001 Constify.
3002 * target.h (struct target_ops) <to_open>: Make "arg" const.
3003 * tracefile-tfile.c (tfile_open): Constify.
3004
3005 2014-07-30 Tom Tromey <tromey@redhat.com>
3006
3007 * breakpoint.c (map_breakpoint_numbers): Update.
3008 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3009 (get_number_const): New function.
3010 (get_number): Rewrite using get_number_const.
3011 (init_number_or_range): Make "string" const.
3012 (number_is_in_list): Make "list" const.
3013 * cli/cli-utils.h (get_number_const): Declare.
3014 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3015 (init_number_or_range, number_is_in_list): Update.
3016 * printcmd.c (map_display_numbers): Update.
3017 * value.c (value_from_history_ref): Constify.
3018 * value.h (value_from_history_ref): Update.
3019
3020 2014-07-30 Tom Tromey <tromey@redhat.com>
3021
3022 * corefile.c (hook_type, call_extra_exec_file_hooks)
3023 (specify_exec_file_hook): Constify.
3024 * exec.c (exec_file_attach): Make "filename" const.
3025 * gdbcore.h (deprecated_exec_file_display_hook)
3026 (specify_exec_file_hook, exec_file_attach): Constify.
3027 * main.c (captured_main): Use catch_command_errors_const.
3028
3029 2014-07-30 Tom Tromey <tromey@redhat.com>
3030
3031 * target.c (open_target): New function.
3032 (add_target_with_completer, add_deprecated_target_alias): Use
3033 set_cmd_sfunc, set_cmd_context.
3034 (debug_to_open): Remove.
3035 (setup_target_debug): Update.
3036
3037 2014-07-30 Yao Qi <yao@codesourcery.com>
3038
3039 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3040 comments.
3041 * parse.c (exp_iterate): Update comments.
3042
3043 2014-07-30 Gary Benson <gbenson@redhat.com>
3044
3045 * common/common-defs.h: New file.
3046 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3047 * defs.h: Include common-defs.h.
3048 Do not include config.h or build-gnulib/config.h.
3049
3050 2014-07-30 Gary Benson <gbenson@redhat.com>
3051
3052 * common/common-utils.h: Do not include config.h.
3053 * nat/linux-btrace.h: Likewise.
3054
3055 2014-07-30 Gary Benson <gbenson@redhat.com>
3056
3057 * btrace.c: Include defs.h.
3058 * common/ptid.c: Include defs.h or server.h as appropriate.
3059 * nat/mips-linux-watch.c: Likewise.
3060
3061 2014-07-29 Tom Tromey <tromey@redhat.com>
3062
3063 * target.c (target_is_pushed): Simplify.
3064
3065 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3066
3067 GDB 7.8 released.
3068
3069 2014-07-29 Yao Qi <yao@codesourcery.com>
3070
3071 PR gdb/17206
3072 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3073
3074 2014-07-28 Doug Evans <xdje42@gmail.com>
3075
3076 PR guile/17203
3077 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3078 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3079 parameters.
3080
3081 2014-07-28 Will Newton <will.newton@linaro.org>
3082
3083 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3084 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3085 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3086 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3087 (THUMB2_EABI_SYSCALL): Likewise.
3088 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3089 struct tramp_frame.
3090 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3091 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3092
3093 2014-07-27 Doug Evans <xdje42@gmail.com>
3094
3095 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3096
3097 2014-07-27 Doug Evans <xdje42@gmail.com>
3098
3099 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3100
3101 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3102 Doug Evans <xdje42@gmail.com>
3103
3104 PR guile/17146
3105 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3106 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3107 * configure.ac: Try to use guild to compile an scm file, if it fails
3108 then disable guile support.
3109 * configure: Regenerate.
3110 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3111 GUILE_FILE_LIST.
3112 (GUILE_COMPILED_FILES): New variable.
3113 (GUILE_FILES) Update.
3114 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3115 (stamp-guile): Compile scm files.
3116 * guile/guile.c (boot_guile_support): New function.
3117 (standard_throw_args_p): New function.
3118 (print_standard_throw_error, print_throw_error): New functions.
3119 (handle_boot_error): New function.
3120 (initialize_scheme_side): Rewrite to call boot_guile_support.
3121 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3122 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3123
3124 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3125 Doug Evans <xdje42@gmail.com>
3126
3127 PR guile/17146
3128 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3129 * guile/lib/gdb/support.scm: New file.
3130 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3131 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3132 All uses updated.
3133 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3134 All uses updated.
3135 (%assert-type): Ditto, and renamed to assert-type.
3136 (%exception-print-style): Delete.
3137
3138 2014-07-26 Doug Evans <xdje42@gmail.com>
3139
3140 PR build/17105
3141 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3142 * configure: Regenerate.
3143 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3144 PYTHON_FILES.
3145 (PYTHON_FILES): New variable.
3146 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3147 (GUILE_FILES): New variable.
3148 (stamp-python, install-python, uninstall-python): Handle empty
3149 file list.
3150 (stamp-guile, install-guile, uninstall-guile): Ditto.
3151
3152 2014-07-26 Doug Evans <xdje42@gmail.com>
3153
3154 PR guile/17177
3155 * guile/lib/gdb.scm (pretty-printers): Export.
3156 (set-pretty-printers!): Export.
3157 * guile/lib/gdb/printing.scm (gdb module): Update.
3158 (prepend-pretty-printer!, append-pretty-printer!): Update.
3159 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3160 (pretty_printer_list_var): Delete.
3161 (pretty_printer_list): New static global.
3162 (gdbscm_pretty_printers): New function.
3163 (gdbscm_set_pretty_printers_x): New function.
3164 (ppscm_find_pretty_printer_from_gdb): Update.
3165 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3166 (gdbscm_initialize_pretty_printers): Update.
3167
3168 2014-07-26 Doug Evans <xdje42@gmail.com>
3169
3170 PR 17185
3171 * configure.ac: Add check for header gc/gc.h.
3172 Add check for function setenv.
3173 * configure: Regenerate.
3174 * config.in: Regenerate.
3175 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3176
3177 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3178
3179 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3180 variation in gdbarch matching.
3181
3182 2014-07-25 Tom Tromey <tromey@redhat.com>
3183
3184 * exec.c (using_exec_ops): Remove.
3185 (exec_close_1): Update. Remove extraneous block, reindent.
3186 (add_target_sections): Use target_is_pushed.
3187
3188 2014-07-25 Pedro Alves <palves@redhat.com>
3189
3190 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3191 * monitor.c (monitor_create_inferior): Likewise.
3192 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3193 * remote-sim.c (gdbsim_create_inferior): Likewise.
3194 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3195 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3196 * windows-nat.c (do_initial_windows_stuff): Likewise.
3197
3198 2014-07-25 Pedro Alves <palves@redhat.com>
3199
3200 * NEWS: Mention signal passing and "signal" command changes.
3201 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3202 comment.
3203 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3204 call.
3205 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3206 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3207 (jump_command): Adjust clear_proceed_status call.
3208 (signal_command): Warn if other thread that are resumed have
3209 signals that will be delivered. Adjust clear_proceed_status call.
3210 (until_next_command, finish_command)
3211 (proceed_after_attach_callback, attach_command_post_wait)
3212 (attach_command): Adjust clear_proceed_status call.
3213 * infrun.c (proceed_after_vfork_done): Likewise.
3214 (proceed_after_attach_callback): Adjust comment.
3215 (clear_proceed_status_thread): Clear stop_signal if not in pass
3216 state.
3217 (clear_proceed_status_callback): Delete.
3218 (clear_proceed_status): New 'step' parameter. Only clear the
3219 proceed status of threads the command being prepared is about to
3220 resume.
3221 (proceed): If passed in an explicit signal, override stop_signal
3222 with it. Don't pass the last stop signal to the thread we're
3223 resuming.
3224 (init_wait_for_inferior): Adjust clear_proceed_status call.
3225 (switch_back_to_stepped_thread): Clear the signal if it should not
3226 be passed.
3227 * infrun.h (clear_proceed_status): New 'step' parameter.
3228 (user_visible_resume_ptid): Add comment.
3229 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3230 signal is in pass state.
3231 * remote.c (append_pending_thread_resumptions): Likewise.
3232 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3233
3234 2014-07-25 Tom Tromey <tromey@redhat.com>
3235
3236 * target.h (target_stopped_data_address)
3237 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3238 parentheses.
3239
3240 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3241
3242 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3243 comments.
3244 (avr_pointer_to_address): Likewise.
3245
3246 2014-07-24 Tom Tromey <tromey@redhat.com>
3247
3248 * monitor.c (compile_pattern): Update.
3249 * target.h (struct target_ops) <to_shortname, to_longname,
3250 to_doc>: Now const.
3251
3252 2014-07-24 Tom Tromey <tromey@redhat.com>
3253
3254 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3255 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3256 (add_info_alias, add_com): Make "doc" const.
3257 (print_doc_line): Make "str" const.
3258 (delete_cmd): Update.
3259 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3260 (print_doc_line): Update.
3261 * cli/cli-script.c (document_command): Update.
3262 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3263 (add_com, add_info, add_info_alias): Update.
3264 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3265 * python/py-cmd.c (cmdpy_destroyer): Update.
3266
3267 2014-07-24 Tom Tromey <tromey@redhat.com>
3268
3269 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3270 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3271 (help_cmd_list): Constify.
3272 (lookup_cmd): Update.
3273 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3274 const.
3275 (help_cmd_list, apropos_cmd): Update.
3276 * cli/cli-script.c (show_user): Update.
3277 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3278 * cli/cli-setshow.h (cmd_show_list): Update.
3279 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3280 (cmd_show_list): Update.
3281 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3282 * python/py-cmd.c (cmdpy_destroyer): Update.
3283
3284 2014-07-24 Tom Tromey <tromey@redhat.com>
3285
3286 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3287 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3288 const.
3289 * command.h (deprecate_cmd): Update.
3290 * maint.c (maintenance_do_deprecate): Add casts.
3291
3292 2014-07-24 Tom Tromey <tromey@redhat.com>
3293
3294 * cli/cli-decode.c (help_cmd): Make parameter "const".
3295 * cli/cli-decode.h (help_cmd): Update.
3296
3297 2014-07-24 Tom Tromey <tromey@redhat.com>
3298
3299 * stack.c (up_silently_base, down_silently_base): Make argument
3300 const.
3301
3302 2014-07-24 Tom Tromey <tromey@redhat.com>
3303
3304 * solib.c (solib_add): Make "pattern" const.
3305 * solib.h (solib_add): Update.
3306
3307 2014-07-24 Tom Tromey <tromey@redhat.com>
3308
3309 * remote.c (remote_serial_open, print_packet, putpkt)
3310 (putpkt_binary): Constify.
3311 * remote.h (putpkt): Update.
3312
3313 2014-07-24 Tom Tromey <tromey@redhat.com>
3314
3315 * monitor.c (monitor_open): Make "args" const.
3316 * monitor.h (monitor_open): Update.
3317
3318 2014-07-24 Tom Tromey <tromey@redhat.com>
3319
3320 * maint.c (match_bfd_flags): Make "string" const.
3321 (print_bfd_section_info): Remove casts.
3322 (print_objfile_section_info): Make "string" const.
3323
3324 2014-07-24 Tom Tromey <tromey@redhat.com>
3325
3326 * inf-child.c (inf_child_open_target): Make "arg" const.
3327 * inf-child.h (inf_child_open_target): Update.
3328
3329 2014-07-24 Tom Tromey <tromey@redhat.com>
3330
3331 * environ.c (unset_in_environ): Make "var" const.
3332 * environ.h (unset_in_environ): Update.
3333
3334 2014-07-24 Tom Tromey <tromey@redhat.com>
3335
3336 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3337 Make "cmd" const.
3338 (scan_filename_with_cleanup): Likewise.
3339 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3340 Make arguments const.
3341 (restore_command): Update.
3342
3343 2014-07-24 Pedro Alves <palves@redhat.com>
3344
3345 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3346
3347 2014-07-24 Tom Tromey <tromey@redhat.com>
3348 Gary Benson <gbenson@redhat.com>
3349
3350 * nat/linux-ptrace.c (additional_flags): New global.
3351 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3352 additional_flags; don't check GDBSERVER.
3353 (linux_ptrace_set_additional_flags): New function.
3354 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3355 Declare.
3356 * linux-nat.c (_initialize_linux_nat): Call
3357 linux_ptrace_set_additional_flags.
3358
3359 2014-07-24 Tom Tromey <tromey@redhat.com>
3360
3361 * make-target-delegates (munge_type, write_debugmethod): New
3362 functions.
3363 (debug_names): New global.
3364 ($TARGET_DEBUG_PRINTER): New global.
3365 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3366 name.
3367 Write debug methods. Generate init_debug_target.
3368 * target-debug.h: New file.
3369 * target-delegates.c: Rebuild.
3370 * target.c: Include target-debug.h.
3371 (debug_target): Hoist definition.
3372 (target_kill, target_get_section_table, target_memory_map)
3373 (target_flash_erase, target_flash_done, target_detach)
3374 (target_disconnect, target_wait, target_resume)
3375 (target_pass_signals, target_program_signals, target_follow_fork)
3376 (target_mourn_inferior, target_search_memory)
3377 (target_thread_address_space, target_close)
3378 (target_find_new_threads, target_core_of_thread)
3379 (target_verify_memory, target_insert_mask_watchpoint)
3380 (target_remove_mask_watchpoint): Remove targetdebug code.
3381 (debug_to_post_attach, debug_to_prepare_to_store)
3382 (debug_to_files_info, debug_to_insert_breakpoint)
3383 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3384 (debug_to_region_ok_for_hw_watchpoint)
3385 (debug_to_can_accel_watchpoint_condition)
3386 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3387 (debug_to_watchpoint_addr_within_range)
3388 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3389 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3390 (debug_to_terminal_init, debug_to_terminal_inferior)
3391 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3392 (debug_to_terminal_save_ours, debug_to_terminal_info)
3393 (debug_to_load, debug_to_post_startup_inferior)
3394 (debug_to_insert_fork_catchpoint)
3395 (debug_to_remove_fork_catchpoint)
3396 (debug_to_insert_vfork_catchpoint)
3397 (debug_to_remove_vfork_catchpoint)
3398 (debug_to_insert_exec_catchpoint)
3399 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3400 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3401 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3402 (setup_target_debug): Call init_debug_target.
3403 * target.h (TARGET_DEBUG_PRINTER): New macro.
3404 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3405 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3406
3407 2014-07-24 Gary Benson <gbenson@redhat.com>
3408
3409 * exceptions.h (throw_vfatal): Renamed to...
3410 (throw_vquit): New declaration.
3411 (throw_quit): Likewise.
3412 * exceptions.c (throw_vfatal): Renamed to...
3413 (throw_vquit): New function.
3414 (throw_quit): Likewise.
3415 (throw_error): Call throw_verror rather than throw_it.
3416 * utils.h (vfatal): Removed.
3417 (fatal): Likewise.
3418 * utils.c (vfatal): Removed.
3419 (fatal): Likewise.
3420 (internal_verror): Replaced call to fatal with call to throw_quit.
3421 (quit): Replaced calls to fatal with calls to throw_quit.
3422
3423 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3424
3425 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3426 target_read_code.
3427
3428 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3429
3430 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3431 less than zero in conditional expression.
3432
3433 2014-07-23 Tom Tromey <tromey@redhat.com>
3434
3435 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3436 ($INTRO_PART): Don't match whitespace.
3437 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3438 argument matching.
3439 ($METHOD): Add $METHOD_TRAILER.
3440 (trim): Rewrite.
3441 (scan_target_h): New sub.
3442 Change main loop not to collect state.
3443 * target-delegates.c: Rebuild.
3444
3445 2014-07-23 Gary Benson <gbenson@redhat.com>
3446
3447 * cp-support.c (gdb_demangle): Fix build on systems without
3448 sigaltstack.
3449
3450 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3451
3452 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3453 for reference entry value target data value.
3454
3455 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3456
3457 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3458 value_available_contents_eq.
3459
3460 2014-07-22 Pedro Alves <palves@redhat.com>
3461
3462 * value.c (allocate_optimized_out_value): Don't mark value as
3463 non-lazy.
3464
3465 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3466
3467 * MAINTAINERS (Write After Approval): Update my email address.
3468
3469 2014-07-20 Doug Evans <dje@google.com>
3470
3471 PR server/17147
3472 * remote.c (putpkt_binary): Add text to error message.
3473
3474 2014-07-20 Yao Qi <yao@codesourcery.com>
3475
3476 * eval.c: Remove "Chill" from comments.
3477 * gdbtypes.h: Likewise.
3478 * symtab.h: Likewise.
3479
3480 2014-07-20 Yao Qi <yao@codesourcery.com>
3481
3482 * std-operator.def: Update comments to TERNOP_SLICE.
3483
3484 2014-07-20 Yao Qi <yao@codesourcery.com>
3485
3486 * std-operator.def: Remove BINOP_RANGE.
3487 * breakpoint.c (watchpoint_exp_is_const): Update.
3488 * expprint.c (dump_subexp_body_standard): Likewise.
3489 * eval.c (init_array_element): Remove dead code.
3490 (evaluate_subexp_standard): Likewise.
3491
3492 2014-07-20 Yao Qi <yao@codesourcery.com>
3493
3494 * std-operator.def: Remove BINOP_IN.
3495 * breakpoint.c (watchpoint_exp_is_const): Update.
3496 * eval.c (evaluate_subexp_standard): Likewise.
3497 * expprint.c (dump_subexp_body_standard): Likewise.
3498
3499 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3500
3501 * microblaze-tdep.c (microblaze_register_names): Add
3502 the rshr and rslr register names.
3503 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3504 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3505 Use of tdesc_numbered_register. Use of
3506 microblaze_register_g_packet_guesses. Use of
3507 tdesc_use_registers. Use of set_gdbarch_register_type.
3508 (microblaze_register_g_packet_guesses): New.
3509 * microblaze-tdep.h (microblaze_reg_num): Add
3510 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3511 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3512 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3513 * features/microblaze-core.xml: New file.
3514 * features/microblaze-stack-protect.xml: New file.
3515 * features/microblaze-with-stack-protect.c: New file.
3516 * features/microblaze-with-stack-protect.xml: New file.
3517 * features/microblaze.xml: New file.
3518 * features/microblaze.c: New file.
3519 * features/Makefile (microblaze-with-stack-protect): Add
3520 microblaze-with-stack-protect microblaze and microblaze-expedite.
3521 * regformats/microblaze-with-stack-protect.dat: New file.
3522 * regformats/microblaze.dat: New file.
3523 * doc/gdb.texinfo (MicroBlaze Features): Added.
3524
3525 2014-07-18 Tom Tromey <tromey@redhat.com>
3526
3527 * exec.c (exec_ops): Now static.
3528 * exec.h (exec_ops): Don't declare.
3529
3530 2014-07-18 Tom Tromey <tromey@redhat.com>
3531
3532 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3533 to find_target_beneath.
3534 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3535 find_target_beneath.
3536 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3537
3538 2014-07-18 Tom Tromey <tromey@redhat.com>
3539
3540 PR gdb/17130:
3541 * utils.c (quit): Use target_supports_terminal_ours.
3542 * target.h (target_supports_terminal_ours): Declare.
3543 * target.c (target_supports_delete_record): Don't check
3544 to_delete_record against NULL.
3545 (target_supports_terminal_ours): New function.
3546
3547 2014-07-18 Tom Tromey <tromey@redhat.com>
3548
3549 PR gdb/17130:
3550 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3551 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3552 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3553 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3554 * windows-nat.c (windows_xfer_partial): Always delegate.
3555 * record-btrace.c (record_btrace_xfer_partial): Simplify
3556 delegation.
3557 (record_btrace_fetch_registers, record_btrace_store_registers)
3558 (record_btrace_prepare_to_store, record_btrace_resume)
3559 (record_btrace_wait, record_btrace_find_new_threads)
3560 (record_btrace_thread_alive): Likewise.
3561 * procfs.c (procfs_xfer_partial): Always delegate.
3562 * corelow.c (core_xfer_partial): Always delegate.
3563 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3564
3565 2014-07-18 Tom Tromey <tromey@redhat.com>
3566
3567 * exec.c (exec_make_note_section): Move earlier.
3568
3569 2014-07-17 Doug Evans <dje@google.com>
3570
3571 PR gdb/17170
3572 * maint.c (count_symtabs_and_blocks): Handle NULL
3573 current_program_space.
3574 (report_command_stats): Check global enabled flag in addition to
3575 recorded enabled flag.
3576 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3577
3578 2014-07-16 Pedro Alves <palves@redhat.com>
3579
3580 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3581
3582 2014-07-16 Tom Tromey <tromey@redhat.com>
3583
3584 * target.h (struct target_ops) <to_delete_record>: Reformat
3585 comment.
3586
3587 2014-07-16 Tom Tromey <tromey@redhat.com>
3588
3589 * target-delegates.c: Rebuild.
3590
3591 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3592
3593 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3594 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3595 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3596 (avr_pointer_to_address): Likewise.
3597 (avr_address_class_type_flags): New function.
3598 (avr_address_class_type_flags_to_name): Likewise.
3599 (avr_address_class_name_to_type_flags): Likewise.
3600 (avr_gdbarch_init): Set address_class_type_flags,
3601 address_class_type_flags_to_name and
3602 address_class_name_to_type_flags.
3603
3604 2014-07-15 Pedro Alves <palves@redhat.com>
3605
3606 * linux-nat.c (kill_callback): Save errno and work with saved
3607 copy.
3608
3609 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3610
3611 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3612
3613 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3614
3615 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3616 breakpoint support correctly.
3617
3618 2014-07-14 Pedro Alves <palves@redhat.com>
3619
3620 * utils.c (prompt_for_continue): Call target_terminal_ours.
3621
3622 2014-07-14 Pedro Alves <palves@redhat.com>
3623
3624 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3625 catch_errors. Don't re-enable stdin or notify observers where,
3626 and rethrow error.
3627 (fetch_inferior_event_wrapper): Delete.
3628
3629 2014-07-14 Pedro Alves <palves@redhat.com>
3630
3631 PR gdb/17072
3632 * top.c: Include "inf-loop.h".
3633 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3634 field.
3635 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3636 was async before.
3637 (gdb_readline_wrapper): Store whether the target is async, and
3638 make it sync.
3639
3640 2014-07-14 Pedro Alves <palves@redhat.com>
3641
3642 PR gdb/17072
3643 * top.c (gdb_readline_wrapper_line): Tweak comment.
3644 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3645 the input handler callback.
3646
3647 2014-07-14 Pedro Alves <palves@redhat.com>
3648
3649 PR gdb/17072
3650 * main.c: Include event-top.h.
3651 (handle_command_errors): New function.
3652 (catch_command_errors, catch_command_errors_const): Use it.
3653
3654 2014-07-14 Pedro Alves <palves@redhat.com>
3655
3656 * exceptions.c (catch_command_errors, catch_command_errors_const):
3657 Moved to main.c.
3658 * exceptions.h (catch_command_errors_ftype)
3659 (catch_command_errors_const_ftype): Moved to main.c.
3660 (catch_command_errors, catch_command_errors_const): Delete
3661 declarations.
3662 * main.c (catch_command_errors_ftype)
3663 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3664 (catch_command_errors, catch_command_errors_const)): Moved here
3665 from exceptions.c and make static.
3666
3667 2014-07-14 Pedro Alves <palves@redhat.com>
3668
3669 * exceptions.c (print_any_exception): Delete.
3670 (catch_exceptions_with_msg): Use exception_print instead of
3671 print_any_exception.
3672 (catch_errors): Use exception_fprintf instead of
3673 print_any_exception.
3674 (catch_command_errors, catch_command_errors_const): Use
3675 exception_print instead of print_any_exception.
3676
3677 2014-07-14 Pedro Alves <palves@redhat.com>
3678
3679 * infcall.c (run_inferior_call): Set 'sync_execution' while
3680 running the inferior call.
3681
3682 2014-07-14 Pedro Alves <palves@redhat.com>
3683
3684 * value.c (value_contents_equal): Delete function.
3685 * value.h (value_contents_equal): Delete declaration.
3686
3687 2014-07-14 Tom Tromey <tromey@redhat.com>
3688
3689 PR exp/17106:
3690 * gdbtypes.c (is_dynamic_type_internal): New function, from
3691 is_dynamic_type.
3692 (is_dynamic_type): Rewrite.
3693 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3694 (resolve_dynamic_struct): Likewise.
3695 (resolve_dynamic_type_internal): New function, from
3696 resolve_dynamic_type.
3697 (resolve_dynamic_type): Rewrite.
3698
3699 2014-07-14 Tom Tromey <tromey@redhat.com>
3700
3701 * target.c (target_require_runnable): Also check record_stratum.
3702 Update comment.
3703
3704 2014-07-11 Yao Qi <yao@codesourcery.com>
3705
3706 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3707 thumb_instruction_restores_sp return true.
3708
3709 2014-07-11 Yao Qi <yao@codesourcery.com>
3710
3711 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3712 (thumb_in_function_epilogue_p): Call
3713 thumb_instruction_restores_sp.
3714
3715 2014-07-11 Yao Qi <yao@codesourcery.com>
3716
3717 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3718 'add sp, #imm'.
3719 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3720
3721 2014-07-11 Gary Benson <gbenson@redhat.com>
3722
3723 * amd64-linux-nat.c (gdbcore.h): Remove include.
3724 (regset.h): Likewise.
3725 (nat/linux-btrace.h): Likewise.
3726 (btrace.h): Likewise.
3727 (gdb_assert.h): Likewise.
3728 (string.h): Likewise.
3729 (sys/uio.h): Likewise.
3730 (sys/debugreg.h): Likewise.
3731 (sys/syscall.h): Likewise.
3732 (sys/procfs.h): Likewise.
3733 (sys/user.h): Likewise.
3734 (asm/ptrace.h): Likewise.
3735 (i386-nat.h): Likewise.
3736 * i386-linux-nat.c (i386-nat.h): Likewise.
3737 (regset.h): Likewise.
3738 (target.h): Likewise.
3739 (linux-nat.h): Likewise.
3740 (nat/linux-btrace.h): Likewise.
3741 (btrace.h): Likewise.
3742 (gdb_assert.h): Likewise.
3743 (string.h): Likewise.
3744 (sys/uio.h): Likewise.
3745 (sys/user.h): Likewise.
3746 (sys/procfs.h): Likewise.
3747 (sys/reg.h): Likewise.
3748 (sys/debugreg.h): Likewise.
3749 (ORIG_EAX): Remove definition.
3750
3751 2014-07-11 Gary Benson <gbenson@redhat.com>
3752
3753 * i386-linux-nat.h: New file.
3754 * x86-linux-nat.h: Likewise.
3755 * x86-linux-nat.c: Likewise.
3756 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3757 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3758 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3759 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3760 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3761 (PTRACE_SETREGSET): Likewise.
3762 (arch_lwp_info): Now in x86-linux-nat.c.
3763 (have_ptrace_getregset): Now in x86-linux-nat.h.
3764 (x86_linux_dr_get): Now in x86-linux-nat.c.
3765 (x86_linux_dr_set): Likewise.
3766 (x86_linux_dr_get_addr): Likewise.
3767 (x86_linux_dr_get_control): Likewise.
3768 (x86_linux_dr_get_status): Likewise.
3769 (update_debug_registers_callback): Likewise.
3770 (x86_linux_dr_set_control): Likewise.
3771 (x86_linux_dr_set_addr): Likewise.
3772 (x86_linux_prepare_to_resume): Likewise.
3773 (x86_linux_new_thread): Likewise.
3774 (x86_linux_new_fork): Likewise.
3775 (x86_linux_get_thread_area): Likewise.
3776 (super_post_startup_inferior): Likewise.
3777 (x86_linux_child_post_startup_inferior): Likewise.
3778 (AMD64_LINUX_USER64_CS): Likewise.
3779 (AMD64_LINUX_X32_DS): Likewise.
3780 (x86_linux_read_description): Likewise.
3781 (x86_linux_enable_btrace): Likewise.
3782 (x86_linux_disable_btrace): Likewise.
3783 (x86_linux_teardown_btrace): Likewise.
3784 (x86_linux_read_btrace): Likewise.
3785 (x86_linux_create_target): Likewise.
3786 (x86_linux_add_target): Likewise.
3787 * i386-linux-nat.c (x86-linux-nat.h): New include.
3788 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3789 (PTRACE_SETREGSET): Likewise.
3790 (arch_lwp_info): Now in x86-linux-nat.c.
3791 (have_ptrace_getregset): Now in x86-linux-nat.h.
3792 (x86_linux_dr_get): Now in x86-linux-nat.c.
3793 (x86_linux_dr_set): Likewise.
3794 (x86_linux_dr_get_addr): Likewise.
3795 (x86_linux_dr_get_control): Likewise.
3796 (x86_linux_dr_get_status): Likewise.
3797 (update_debug_registers_callback): Likewise.
3798 (x86_linux_dr_set_control): Likewise.
3799 (x86_linux_dr_set_addr): Likewise.
3800 (x86_linux_prepare_to_resume): Likewise.
3801 (x86_linux_new_thread): Likewise.
3802 (x86_linux_new_fork): Likewise.
3803 (x86_linux_get_thread_area): Likewise.
3804 (super_post_startup_inferior): Likewise.
3805 (x86_linux_child_post_startup_inferior): Likewise.
3806 (AMD64_LINUX_USER64_CS): Likewise.
3807 (AMD64_LINUX_X32_DS): Likewise.
3808 (x86_linux_read_description): Likewise.
3809 (x86_linux_enable_btrace): Likewise.
3810 (x86_linux_disable_btrace): Likewise.
3811 (x86_linux_teardown_btrace): Likewise.
3812 (x86_linux_read_btrace): Likewise.
3813 (x86_linux_create_target): Likewise.
3814 (x86_linux_add_target): Likewise.
3815
3816 2014-07-11 Gary Benson <gbenson@redhat.com>
3817
3818 * amd64-linux-nat.c: Comment and whitespace changes.
3819 * i386-linux-nat.c: Comment and whitespace changes.
3820
3821 2014-07-11 Gary Benson <gbenson@redhat.com>
3822
3823 * amd64-linux-nat.c (x86_linux_create_target): New function.
3824 (x86_linux_add_target): Likewise.
3825 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3826 * i386-linux-nat.c (x86_linux_create_target): New function.
3827 (x86_linux_add_target): Likewise.
3828 (_initialize_i386_linux_nat): Delegate to the above new functions.
3829
3830 2014-07-11 Gary Benson <gbenson@redhat.com>
3831
3832 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3833 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3834 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3835 (ps_get_thread_area): Delegate to the above.
3836
3837 2014-07-11 Gary Benson <gbenson@redhat.com>
3838
3839 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3840 x86_linux_read_description. All uses updated. amd64-specific
3841 code conditionalized. Conditionalized i386-specific code added.
3842 Redundant cast removed.
3843 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3844 x86_linux_read_description. All uses updated. i386-specific
3845 code conditionalized. Conditionalized amd64-specific code added.
3846 One sizeof replaced with the actual type it is describing.
3847
3848 2014-07-11 Gary Benson <gbenson@redhat.com>
3849
3850 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3851 x86_linux_dr_get. All uses updated.
3852 (amd64_linux_dr_set): Renamed to
3853 x86_linux_dr_set. All uses updated.
3854 (amd64_linux_dr_get_addr): Renamed to
3855 x86_linux_dr_get_addr. All uses updated.
3856 (amd64_linux_dr_get_control): Renamed to
3857 x86_linux_dr_get_control. All uses updated.
3858 (amd64_linux_dr_get_status): Renamed to
3859 x86_linux_dr_get_status. All uses updated.
3860 (amd64_linux_dr_set_control): Renamed to
3861 x86_linux_dr_set_control. All uses updated.
3862 (amd64_linux_dr_set_addr): Renamed to
3863 x86_linux_dr_set_addr. All uses updated.
3864 (amd64_linux_prepare_to_resume): Renamed to
3865 x86_linux_prepare_to_resume. All uses updated.
3866 (amd64_linux_new_thread): Renamed to
3867 x86_linux_new_thread. All uses updated.
3868 (amd64_linux_new_fork): Renamed to
3869 x86_linux_new_fork. All uses updated.
3870 (amd64_linux_child_post_startup_inferior): Renamed to
3871 x86_linux_child_post_startup_inferior. All uses updated.
3872 (amd64_linux_enable_btrace): Renamed to
3873 x86_linux_enable_btrace. All uses updated.
3874 (amd64_linux_disable_btrace): Renamed to
3875 x86_linux_disable_btrace. All uses updated.
3876 (amd64_linux_teardown_btrace): Renamed to
3877 x86_linux_teardown_btrace. All uses updated.
3878 (amd64_linux_read_btrace): Renamed to
3879 x86_linux_read_btrace. All uses updated.
3880 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3881 x86_linux_dr_get. All uses updated.
3882 (i386_linux_dr_set): Renamed to
3883 x86_linux_dr_set. All uses updated.
3884 (i386_linux_dr_get_addr): Renamed to
3885 x86_linux_dr_get_addr. All uses updated.
3886 (i386_linux_dr_get_control): Renamed to
3887 x86_linux_dr_get_control. All uses updated.
3888 (i386_linux_dr_get_status): Renamed to
3889 x86_linux_dr_get_status. All uses updated.
3890 (i386_linux_dr_set_control): Renamed to
3891 x86_linux_dr_set_control. All uses updated.
3892 (i386_linux_dr_set_addr): Renamed to
3893 x86_linux_dr_set_addr. All uses updated.
3894 (i386_linux_prepare_to_resume): Renamed to
3895 x86_linux_prepare_to_resume. All uses updated.
3896 (i386_linux_new_thread): Renamed to
3897 x86_linux_new_thread. All uses updated.
3898 (i386_linux_new_fork): Renamed to
3899 x86_linux_new_fork. All uses updated.
3900 (i386_linux_child_post_startup_inferior): Renamed to
3901 x86_linux_child_post_startup_inferior. All uses updated.
3902 (i386_linux_enable_btrace): Renamed to
3903 x86_linux_enable_btrace. All uses updated.
3904 (i386_linux_disable_btrace): Renamed to
3905 x86_linux_disable_btrace. All uses updated.
3906 (i386_linux_teardown_btrace): Renamed to
3907 x86_linux_teardown_btrace. All uses updated.
3908 (i386_linux_read_btrace): Renamed to
3909 x86_linux_read_btrace. All uses updated.
3910
3911 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3912
3913 * remote.c (extended_remote_post_attach): New function.
3914 (init_extended_remote_ops): Install it as to_post_attach method.
3915
3916 2014-07-09 Pedro Alves <palves@redhat.com>
3917
3918 * infcmd.c (attach_command_post_wait): Don't call
3919 target_terminal_inferior here.
3920 (attach_command): Call it here instead.
3921
3922 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3923
3924 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3925 field.
3926 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3927 from varobj.c, with additional checks.
3928 (c_varobj_ops): Fill in is_path_expr_parent field.
3929 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3930 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3931 field.
3932 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3933 ops method.
3934 (varobj_default_is_path_expr_parent): New function.
3935 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3936 (varobj_default_is_path_expr_parent): Declare new function.
3937
3938 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3939
3940 * infcmd.c (finish_backward): Turn internal error into normal error.
3941
3942 2014-07-07 Pedro Alves <palves@redhat.com>
3943
3944 PR gdb/17096
3945 * remote.c (async_handle_remote_sigint)
3946 (async_handle_remote_sigint_twice): Call
3947 gdb_call_async_signal_handler instead of
3948 mark_async_signal_handler.
3949
3950 2014-07-07 Tom Tromey <tromey@redhat.com>
3951
3952 * target-delegates.c: Rebuild.
3953 * target.c (target_info_record): Remove.
3954 * record.c (info_record_command): Unconditionally call
3955 to_info_record.
3956 * target.h (struct target_ops) <to_info_record>: Use
3957 TARGET_DEFAULT_IGNORE.
3958 (target_info_record): Remove.
3959
3960 2014-07-07 Tom Tromey <tromey@redhat.com>
3961
3962 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3963 TARGET_DEFAULT_NORETURN.
3964 * target.c (generic_tls_error): New function.
3965 (target_translate_tls_address): Don't search target stack.
3966 * target-delegates.c: Rebuild.
3967 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3968 stack.
3969 * linux-thread-db.c (thread_db_get_thread_local_address):
3970 Unconditionally call beneath target.
3971
3972 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3973
3974 * cli/cli-logging.c (pop_output_files): Assign targerr to
3975 gdb_stdtargerr.
3976
3977 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * MAINTAINERS (Write After Approval): Update my email address.
3980
3981 2014-07-02 Gary Benson <gbenson@redhat.com>
3982
3983 * proc-service.c (ps_xfer_memory): Update comment.
3984 (ps_pstop): Remove unused function.
3985 (ps_pcontinue): Likewise.
3986 (ps_lstop): Likewise.
3987 (ps_lcontinue): Likewise.
3988 (ps_lgetxregsize): Likewise.
3989 (ps_lgetxregs): Likewise.
3990 (ps_lsetxregs): Likewise.
3991 (ps_plog): Likewise.
3992 (ps_ptread): Likewise.
3993 (ps_ptwrite): Likewise.
3994
3995 2014-07-01 Mark Wielaard <mjw@redhat.com>
3996
3997 * dwarf2read.c (add_array_cv_type): New function.
3998 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3999 (read_tag_volatile_type): Likewise.
4000
4001 2014-07-01 Tom Tromey <tromey@redhat.com>
4002
4003 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4004 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4005 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4006 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4007 * command.h (cmd_cfunc_ftype): Move earlier.
4008 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4009 (add_com, add_info): Use cmd_cfunc_ftype.
4010
4011 2014-06-30 Tom Tromey <tromey@redhat.com>
4012
4013 * symtab.c (operator_chars): Make parameters and return type
4014 const.
4015 (file_matches): Make "files" const.
4016 (struct search_symbols_data) <files>: Now const.
4017 (search_symbols): Make "regexp" and "files" parameters const.
4018 Update.
4019 (symtab_symbol_info): Remove cast.
4020 (rbreak_command): Update.
4021 * symtab.h (search_symbols): Update.
4022
4023 2014-06-27 Yao Qi <yao@codesourcery.com>
4024
4025 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4026 Change parameter type to 'struct thread_info *'. Caller
4027 updated.
4028 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4029 Update declaration.
4030 * dummy-frame.c (struct dummy_frame_id): New.
4031 (dummy_frame_id_eq): New function.
4032 (struct dummy_frame) <id>: Change its type to 'struct
4033 dummy_frame_id'.
4034 (dummy_frame_push): Add parameter ptid and save it in
4035 dummy_frame_id.
4036 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4037 inferior_ptid.
4038 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4039 to inferior_ptid.
4040 (lookup_dummy_frame): Change parameter type to 'struct
4041 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4042 instead of frame_id_eq.
4043 (dummy_frame_pop): Add parameter ptid. Callers updated.
4044 Update comments. Compose dummy_frame_id and pass it to
4045 lookup_dummy_frame.
4046 (dummy_frame_discard): Add parameter ptid.
4047 (dummy_frame_sniffer): Compose dummy_frame_id and call
4048 dummy_frame_id_eq instead of frame_id_eq.
4049 (fprint_dummy_frames): Print ptid.
4050 * dummy-frame.h: Remove comments.
4051 (dummy_frame_push): Add ptid in declaration.
4052 (dummy_frame_pop, dummy_frame_discard): Likewise.
4053
4054 2014-06-26 Tom Tromey <tromey@redhat.com>
4055
4056 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4057 * command.h (error_no_arg): Update.
4058
4059 2014-06-26 Tom Tromey <tromey@redhat.com>
4060
4061 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4062 (do_show_command): Make "arg" const.
4063 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4064
4065 2014-06-26 Tom Tromey <tromey@redhat.com>
4066
4067 * record-full.c (record_full_get_bookmark): Make "args" const.
4068 (record_full_goto_bookmark): Make "raw_bookmark" const.
4069 * record.c (record_goto): New function.
4070 (cmd_record_goto): Use it. Now static.
4071 * record.h (record_goto): Declare.
4072 (cmd_record_goto): Remove declaration.
4073 * target-delegates.c: Rebuild.
4074 * target.h (struct target_ops) <to_get_bookmark,
4075 to_goto_bookmark>: Make parameter const.
4076
4077 2014-06-26 Tom Tromey <tromey@redhat.com>
4078
4079 * defs.h (generic_load): Update.
4080 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4081 * monitor.c (monitor_load): Make "args" const.
4082 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4083 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4084 const.
4085 (mips_load): Make "file" const.
4086 * remote-sim.c (gdbsim_load): Make "args" const.
4087 * remote.c (remote_load): Make "name" const.
4088 * symfile.c (generic_load): Make "args" const.
4089 * target-delegates.c: Rebuild.
4090 * target.c (target_load): Make "arg" const.
4091 (debug_to_load): Make "args" const.
4092 * target.h (struct target_ops) <to_load>: Make parameter const.
4093 (target_load): Update.
4094
4095 2014-06-26 Tom Tromey <tromey@redhat.com>
4096
4097 PR symtab/16902:
4098 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4099 (dwarf2_physname, read_partial_die)
4100 (guess_partial_die_structure_name, fixup_partial_die)
4101 (guess_full_die_structure_name, anonymous_struct_prefix)
4102 (dwarf2_name): Use per-BFD obstack.
4103
4104 2014-06-26 Yao Qi <yao@codesourcery.com>
4105
4106 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4107 dummyframe and this_id into inner block below.
4108
4109 2014-06-26 Yao Qi <yao@codesourcery.com>
4110
4111 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4112 with "signal_pass[0]" in the initialization of signal_pass.
4113
4114 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4115
4116 * record-btrace.c (record_btrace_generating_corefile)
4117 (record_btrace_prepare_to_generate_core)
4118 (record_btrace_done_generating_core): New.
4119 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4120 (record_btrace_store_registers, record_btrace_prepare_to_store):
4121 Forward request when generating a core file.
4122 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4123 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4124 to_done_generating_core.
4125
4126 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4127
4128 * target.h (target_ops) <to_prepare_to_generate_core>
4129 <to_done_generating_core>: New.
4130 (target_prepare_to_generate_core, target_done_generating_core): New.
4131 * target.c (target_prepare_to_generate_core)
4132 (target_done_generating_core): New.
4133 * target-delegates.c: Regenerate.
4134 * gcore.c: (write_gcore_file): Rename to ...
4135 (write_gcore_file_1): ...this.
4136 (write_gcore_file): Call target_prepare_to_generate_core
4137 and target_done_generating_core.
4138
4139 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4140
4141 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4142 * gcore.c (write_gcore_file): Free memory returned from
4143 make_corefile_notes.
4144 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4145 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4146
4147 2014-06-24 Yao Qi <yao@codesourcery.com>
4148
4149 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4150 (arm_linux_init_abi): Set skip_trampoline_code with
4151 gdbarch_skip_trampoline_code instead of
4152 find_solib_trampoline_target.
4153
4154 2014-06-24 Yao Qi <yao@codesourcery.com>
4155
4156 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4157 arm_skip_bx_reg returns non-zero.
4158
4159 2014-06-24 Yao Qi <yao@codesourcery.com>
4160
4161 * arm-tdep.c (arm_skip_bx_reg): New function.
4162 (arm_skip_stub): Call arm_skip_bx_reg.
4163
4164 2014-06-23 Don Breazeal <donb@codesourcery.com>
4165
4166 * MAINTAINERS: Add myself as write-after-approval maintainer.
4167
4168 2014-06-23 Pedro Alves <palves@redhat.com>
4169
4170 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4171 DR_CONTROL before setting DR0..DR3.
4172 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4173 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4174 bits of DR_CONTROL related to the debug register slot being
4175 disabled. If all slots are vacant, clear local slowdown as well,
4176 and assert DR_CONTROL is 0.
4177
4178 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4179
4180 * python/lib/gdb/command/xmethods.py
4181 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4182 current progspace only if the string "progspace" matches LOCUS_RE.
4183
4184 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4185
4186 Fix --with-system-readline with readline-6.3 patch 5.
4187 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4188 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4189 types.
4190
4191 2014-06-20 Tom Tromey <tromey@redhat.com>
4192
4193 * dwarf2read.c (dw2_get_real_path): Use correct type in
4194 OBSTACK_CALLOC.
4195 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4196
4197 2014-06-20 Gary Benson <gbenson@redhat.com>
4198
4199 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4200 * common/glibc_thread_db.h: Likewise.
4201 * common/i386-cpuid.h: Likewise.
4202 * common/i386-gcc-cpuid.h: Likewise.
4203 * common/linux-btrace.h: Likewise.
4204 * common/linux-osdata.h: Likewise.
4205 * common/linux-procfs.h: Likewise.
4206 * common/linux-ptrace.h: Likewise.
4207 * common/mips-linux-watch.h: Likewise.
4208 * common/linux-btrace.c: Moved to nat.
4209 * common/linux-osdata.c: Likewise.
4210 * common/linux-procfs.c: Likewise.
4211 * common/linux-ptrace.c: Likewise.
4212 * common/mips-linux-watch.c: Likewise.
4213 * nat/gdb_thread_db.h: Moved from common.
4214 * nat/glibc_thread_db.h: Likewise.
4215 * nat/i386-cpuid.h: Likewise.
4216 * nat/i386-gcc-cpuid.h: Likewise.
4217 * nat/linux-btrace.c: Likewise.
4218 * nat/linux-btrace.h: Likewise.
4219 * nat/linux-osdata.c: Likewise.
4220 * nat/linux-osdata.h: Likewise.
4221 * nat/linux-procfs.c: Likewise.
4222 * nat/linux-procfs.h: Likewise.
4223 * nat/linux-ptrace.c: Likewise.
4224 * nat/linux-ptrace.h: Likewise.
4225 * nat/mips-linux-watch.c: Likewise.
4226 * nat/mips-linux-watch.h: Likewise.
4227 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4228 (object file files): Reordered.
4229 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4230 of glibc_thread_db.h.
4231
4232 2014-06-20 Gary Benson <gbenson@redhat.com>
4233
4234 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4235 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4236 (i386_dr_low): Likewise.
4237 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4238 (i386_dr_low_set_addr): Likewise.
4239 (i386_dr_low_get_addr): Likewise.
4240 (i386_dr_low_can_set_control): Likewise.
4241 (i386_dr_low_set_control): Likewise.
4242 (i386_dr_low_get_control): Likewise.
4243 (i386_dr_low_get_status): Likewise.
4244 (i386_get_debug_register_length): Likewise.
4245 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4246 (i386_dr_low): Likewise.
4247 * nat/i386-dregs.c (i386-low.h): Remove include.
4248 (i386-nat.h): Likewise.
4249 (nat/i386-dregs.h): New include.
4250 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4251 (i386_dr_low_set_addr): Likewise.
4252 (i386_dr_low_get_addr): Likewise.
4253 (i386_dr_low_can_set_control): Likewise.
4254 (i386_dr_low_set_control): Likewise.
4255 (i386_dr_low_get_control): Likewise.
4256 (i386_dr_low_get_status): Likewise.
4257 (i386_get_debug_register_length): Likewise.
4258 (debug_hw_points): Likewise.
4259
4260 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4261
4262 * Makefile.in (SFILES): Add d-exp.y.
4263 (YYFILES): Add d-exp.c.
4264 (YYOBJ): Add d-exp.o.
4265 (local-maintainer-clean): Delete d-exp.c.
4266 * d-exp.y: New file.
4267 * d-lang.h (d_parse): New declaration.
4268 (d_error): New declaration.
4269 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4270 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4271 PREC_ORDER operators.
4272 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4273
4274 2014-06-19 Yao Qi <yao@codesourcery.com>
4275
4276 * gdbthread.h (any_running): Remove the declaration.
4277 * thread.c (any_running): Remove.
4278
4279 2014-06-19 Yao Qi <yao@codesourcery.com>
4280
4281 * gdbthread.h (struct thread_info) <state>: Change its type to
4282 'enum thread_state'. Update comments.
4283
4284 2014-06-19 Pedro Alves <palves@redhat.com>
4285
4286 * gdbthread.h (ALL_THREADS): Delete.
4287 (ALL_NON_EXITED_THREADS): New macro.
4288 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4289 instead of ALL_THREADS.
4290 * infrun.c (find_thread_needs_step_over)
4291 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4292 instead of ALL_THREADS.
4293 * record-btrace.c (record_btrace_open)
4294 (record_btrace_stop_recording, record_btrace_close)
4295 (record_btrace_is_replaying, record_btrace_resume)
4296 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4297 * remote.c (append_pending_thread_resumptions): Likewise.
4298 * thread.c (thread_apply_all_command): Likewise.
4299
4300 2014-06-19 Gary Benson <gbenson@redhat.com>
4301
4302 * i386-nat.c (i386_stopped_by_watchpoint):
4303 Use i386_dr_stopped_by_watchpoint.
4304 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4305 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4306
4307 2014-06-19 Gary Benson <gbenson@redhat.com>
4308
4309 * nat/i386-dregs.c: New file.
4310 * Makefile.in (i386-dregs.o): New rule.
4311 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4312 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4313 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4314 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4315 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4316 * config/i386/go32.mh (NATDEPFILES): Likewise.
4317 * config/i386/linux.mh (NATDEPFILES): Likewise.
4318 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4319 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4320 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4321 * i386-nat.h (debug_hw_points): New declaration.
4322 * i386-nat.c (breakpoint.h): Remove include.
4323 (command.h): Likewise.
4324 (target.h): Likewise.
4325 (gdb_assert.h): Likewise.
4326 (debug_hw_points): Made nonstatic.
4327 (debug_printf): Now in i386-dregs.c.
4328 (TARGET_HAS_DR_LEN_8): Likewise.
4329 (DR_CONTROL_SHIFT): Likewise.
4330 (DR_CONTROL_SIZE): Likewise.
4331 (DR_RW_EXECUTE): Likewise.
4332 (DR_RW_WRITE): Likewise.
4333 (DR_RW_READ): Likewise.
4334 (DR_RW_IORW): Likewise.
4335 (DR_LEN_1): Likewise.
4336 (DR_LEN_2): Likewise.
4337 (DR_LEN_4): Likewise.
4338 (DR_LEN_8): Likewise.
4339 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4340 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4341 (DR_ENABLE_SIZE): Likewise.
4342 (DR_LOCAL_SLOWDOWN): Likewise.
4343 (DR_GLOBAL_SLOWDOWN): Likewise.
4344 (DR_CONTROL_RESERVED): Likewise.
4345 (I386_DR_CONTROL_MASK): Likewise.
4346 (I386_DR_VACANT): Likewise.
4347 (I386_DR_LOCAL_ENABLE): Likewise.
4348 (I386_DR_GLOBAL_ENABLE): Likewise.
4349 (I386_DR_DISABLE): Likewise.
4350 (I386_DR_SET_RW_LEN): Likewise.
4351 (I386_DR_GET_RW_LEN): Likewise.
4352 (I386_DR_WATCH_HIT): Likewise.
4353 (i386_wp_op_t): Likewise.
4354 (i386_show_dr): Likewise.
4355 (i386_length_and_rw_bits): Likewise.
4356 (i386_insert_aligned_watchpoint): Likewise.
4357 (i386_remove_aligned_watchpoint): Likewise.
4358 (i386_handle_nonaligned_watchpoint): Likewise.
4359 (i386_update_inferior_debug_regs): Likewise.
4360 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4361 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4362 (i386_region_ok_for_watchpoint):
4363 Use i386_dr_region_ok_for_watchpoint.
4364 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4365
4366 2014-06-19 Gary Benson <gbenson@redhat.com>
4367
4368 * i386-nat.c (i386_insert_hw_breakpoint): Use
4369 i386_insert_watchpoint.
4370 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4371
4372 2014-06-19 Gary Benson <gbenson@redhat.com>
4373
4374 * i386-nat.c (i386_dr_show): Renamed to
4375 i386_show_dr and made static. All uses updated.
4376 (i386_dr_length_and_rw_bits): Renamed to
4377 i386_length_and_rw_bits and made static.
4378 All uses updated.
4379 (i386_dr_insert_aligned_watchpoint): Renamed to
4380 i386_insert_aligned_watchpoint and made static.
4381 All uses updated.
4382 (i386_dr_remove_aligned_watchpoint): Renamed to
4383 i386_remove_aligned_watchpoint and made static.
4384 All uses updated.
4385 (i386_dr_update_inferior_debug_regs): Renamed to
4386 i386_update_inferior_debug_regs and made static.
4387 All uses updated.
4388 * nat/i386-dregs.h (i386_dr_show): Removed.
4389 (i386_dr_length_and_rw_bits): Likewise.
4390 (i386_dr_insert_aligned_watchpoint): Likewise.
4391 (i386_dr_remove_aligned_watchpoint): Likewise.
4392 (i386_dr_update_inferior_debug_regs): Likewise.
4393
4394 2014-06-19 Gary Benson <gbenson@redhat.com>
4395
4396 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4397 * configure: Regenerate.
4398 * config.in: Likewise.
4399 * main.c (signal.h): New include.
4400 (setup_alternate_signal_stack): New function.
4401 (captured_main): Call the above.
4402 * cp-support.c (signal.h): New include.
4403 (catch_demangler_crashes): New flag.
4404 (SIGJMP_BUF): New define.
4405 (SIGSETJMP): Likewise.
4406 (SIGLONGJMP): Likewise.
4407 (gdb_demangle_jmp_buf): New static global.
4408 (gdb_demangle_attempt_core_dump): Likewise.
4409 (gdb_demangle_signal_handler): New function.
4410 (gdb_demangle): If catch_demangler_crashes is set, install the
4411 above signal handler before calling bfd_demangle, and restore
4412 the original signal handler afterwards. Display the offending
4413 symbol and call demangler_warning the first time a segmentation
4414 fault is caught.
4415 (_initialize_cp_support): New maint set/show command.
4416
4417 2014-06-19 Gary Benson <gbenson@redhat.com>
4418
4419 * utils.h (resource_limit_kind): New enum.
4420 (can_dump_core): New declaration.
4421 (warn_cant_dump_core): Likewise.
4422 (dump_core): Likewise.
4423 * utils.c (dump_core): Made nonstatic. Added new
4424 parameter "limit_kind".
4425 (can_dump_core): Made nonstatic. Moved printing code to...
4426 (warn_cant_dump_core): New function.
4427 (can_dump_core_warn): Likewise.
4428 (internal_vproblem): Replace calls to can_dump_core with
4429 calls to can_dump_core_warn. Supply new argument to each.
4430
4431 2014-06-19 Gary Benson <gbenson@redhat.com>
4432
4433 * utils.h (demangler_vwarning): New declaration.
4434 (demangler_warning): Likewise.
4435 * utils.c (struct internal_problem)
4436 <user_settable_should_quit>: New field.
4437 <user_settable_should_dump_core>: Likewise
4438 (internal_error_problem): Add values for above new fields.
4439 (internal_warning_problem): Likewise.
4440 (demangler_warning_problem): New static global.
4441 (demangler_vwarning): New function.
4442 (demangler_warning): Likewise.
4443 (add_internal_problem_command): Selectively add commands.
4444 (_initialize_utils): New internal problem command.
4445 * maint.c (maintenance_demangler_warning): New function.
4446 (_initialize_maint_cmds): New command.
4447
4448 2014-06-18 Tom Tromey <tromey@redhat.com>
4449
4450 * f-valprint.c (info_common_command_for_block): Update.
4451 * symtab.h (struct general_symbol_info) <common_block>: Now
4452 const.
4453
4454 2014-06-18 Tom Tromey <tromey@redhat.com>
4455
4456 * symtab.h (struct symtab) <blockvector>: Now const.
4457 * ada-lang.c (ada_add_global_exceptions): Update.
4458 * buildsym.c (augment_type_symtab): Update.
4459 * dwarf2read.c (dw2_lookup_symbol): Update.
4460 * jit.c (finalize_symtab): Update.
4461 * jv-lang.c (add_class_symtab_symbol): Update.
4462 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4463 Update.
4464 * objfiles.c (objfile_relocate1): Update.
4465 * psymtab.c (lookup_symbol_aux_psymtabs)
4466 (maintenance_check_psymtabs): Update.
4467 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4468 Update.
4469 * spu-tdep.c (spu_catch_start): Update.
4470 * symmisc.c (dump_symtab_1): Update.
4471 * symtab.c (lookup_global_symbol_from_objfile)
4472 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4473 (basic_lookup_transparent_type_quick)
4474 (basic_lookup_transparent_type, find_pc_sect_symtab)
4475 (find_pc_sect_line, search_symbols): Update.
4476 * block.c (find_block_in_blockvector): Make "bl" const.
4477 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4478 const.
4479 (blockvector_contains_pc): Make "bv" const.
4480 (block_for_pc_sect): Update.
4481 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4482 (blockvector_contains_pc): Update.
4483 * breakpoint.c (resolve_sal_pc): Update.
4484 * inline-frame.c (block_starting_point_at): Update.
4485
4486 2014-06-18 Tom Tromey <tromey@redhat.com>
4487
4488 * completer.c (complete_line): Make "line_buffer" const.
4489 * completer.h (complete_line): Update.
4490
4491 2014-06-18 Tom Tromey <tromey@redhat.com>
4492
4493 * symtab.c (add_macro_name): Remove unneeded cast.
4494
4495 2014-06-18 Tom Tromey <tromey@redhat.com>
4496
4497 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4498 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4499
4500 2014-06-18 Tom Tromey <tromey@redhat.com>
4501
4502 * probe.c (info_probes_for_ops): Make "arg" const.
4503 * probe.h (info_probes_for_ops): Update.
4504
4505 2014-06-18 Tom Tromey <tromey@redhat.com>
4506
4507 * varobj.c (varobj_create): Update.
4508 * valops.c (value_of_this): Update.
4509 * tracepoint.c (add_local_symbols, scope_info): Update.
4510 * symtab.h (struct general_symbol_info) <block>: Now const.
4511 * symtab.c (skip_prologue_sal)
4512 (default_make_symbol_completion_list_break_on)
4513 (skip_prologue_using_sal): Update.
4514 * stack.h (iterate_over_block_locals)
4515 (iterate_over_block_local_vars): Update.
4516 * stack.c (print_frame_args): Update.
4517 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4518 parameter const.
4519 (get_selected_block): Make return type const.
4520 * python/py-frame.c (frapy_block): Update.
4521 * python/py-block.c (gdbpy_block_for_pc): Update.
4522 * p-exp.y (%union) <bval>: Now const.
4523 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4524 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4525 * m2-exp.y (%union) <bval>: Now const.
4526 * linespec.c (get_current_search_block): Make return type const.
4527 (create_sals_line_offset, find_label_symbols): Update.
4528 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4529 Update.
4530 (block_starting_point_at): Make "block" const.
4531 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4532 (check_exception_resume): Update.
4533 * guile/scm-frame.c (gdbscm_frame_block): Update.
4534 * guile/scm-block.c (gdbscm_lookup_block): Update.
4535 * frame.h (get_frame_block): Update.
4536 (get_selected_block): Make return type const.
4537 * frame.c (frame_id_inner): Update.
4538 * f-valprint.c (info_common_command_for_block)
4539 (info_common_command): Update.
4540 * dwarf2loc.c (dwarf2_find_location_expression)
4541 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4542 (locexpr_describe_location_piece): Update.
4543 * c-exp.y (%union) <bval>: Now const.
4544 * breakpoint.c (resolve_sal_pc): Update.
4545 * blockframe.c (get_frame_block):Make return type const.
4546 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4547 (block_innermost_frame): Update.
4548 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4549 (block_for_pc, block_for_pc_sect): Update.
4550 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4551 'pblock' const.
4552 (block_for_pc_sect, block_for_pc): Make return type const.
4553 * ax-gdb.c (gen_expr): Update.
4554 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4555 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4556 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4557 (ada_read_var_value): Update.
4558 * ada-exp.y (struct name_info) <block>: Now const.
4559 (%union): Likewise.
4560 (block_lookup): Constify.
4561
4562 2014-06-18 Gary Benson <gbenson@redhat.com>
4563
4564 * nat/i386-dregs.h: New file.
4565 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4566 * i386-nat.h (i386-dregs.h): New include.
4567 (DR_FIRSTADDR): Now in i386-dregs.h.
4568 (DR_LASTADDR): Likewise.
4569 (DR_NADDR): Likewise.
4570 (DR_STATUS): Likewise.
4571 (DR_CONTROL): Likewise.
4572 (i386_debug_reg_state): Likewise.
4573 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4574
4575 2014-06-18 Don Breazeal <donb@codesourcery.com>
4576
4577 * breakpoint.c (set_longjmp_breakpoint): Call
4578 momentary_breakpoint_from_master with additional argument.
4579 (set_longjmp_breakpoint_for_call_dummy): Call
4580 momentary_breakpoint_from_master with additional argument.
4581 (set_std_terminate_breakpoint): Call
4582 momentary_breakpoint_from_master with additional argument.
4583 (momentary_breakpoint_from_master): Add argument to function
4584 definition and use it to initialize structure member flag.
4585 (clone_momentary_breakpoint): Call
4586 momentary_breakpoint_from_master with additional argument.
4587 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4588 member flags set in momentary_breakpoint_from_master.
4589
4590 2014-06-18 Gary Benson <gbenson@redhat.com>
4591
4592 * i386-nat.c (i386_show_dr): Renamed to
4593 i386_dr_show and made nonstatic. All uses updated.
4594 (i386_length_and_rw_bits): Renamed to
4595 i386_dr_length_and_rw_bits and made nonstatic.
4596 All uses updated.
4597 (i386_insert_aligned_watchpoint): Renamed to
4598 i386_dr_insert_aligned_watchpoint and made nonstatic.
4599 All uses updated.
4600 (i386_remove_aligned_watchpoint): Renamed to
4601 i386_dr_remove_aligned_watchpoint and made nonstatic.
4602 All uses updated.
4603 (i386_update_inferior_debug_regs): Renamed to
4604 i386_dr_update_inferior_debug_regs and made nonstatic.
4605 All uses updated.
4606
4607 2014-06-18 Gary Benson <gbenson@redhat.com>
4608
4609 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4610 (i386_dr_low_can_set_control): Likewise.
4611 (i386_dr_low_set_addr): Likewise.
4612 (i386_dr_low_set_control): Likewise.
4613 (i386_dr_low_get_addr): Likewise.
4614 (i386_dr_low_get_status): Likewise.
4615 (i386_dr_low_get_control): Likewise.
4616 (i386_insert_aligned_watchpoint): Use new macros.
4617 (i386_update_inferior_debug_regs): Likewise.
4618 (i386_stopped_data_address): Likewise.
4619
4620 2014-06-18 Gary Benson <gbenson@redhat.com>
4621
4622 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4623 New parameter. All uses updated.
4624
4625 2014-06-18 Gary Benson <gbenson@redhat.com>
4626
4627 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4628 All uses updated.
4629
4630 2014-06-18 Gary Benson <gbenson@redhat.com>
4631
4632 * i386-nat.c (debug_printf): New macro.
4633 (i386_get_debug_register_length): Likewise.
4634 (TARGET_HAS_DR_LEN_8): Use above macro.
4635 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4636 and printf_unfiltered. Use phex to format values.
4637
4638 2014-06-18 Gary Benson <gbenson@redhat.com>
4639
4640 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4641 Make const.
4642
4643 2014-06-18 Gary Benson <gbenson@redhat.com>
4644
4645 * i386-nat.c: Comment changes.
4646
4647 2014-06-18 Gary Benson <gbenson@redhat.com>
4648
4649 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4650
4651 2014-06-18 Gary Benson <gbenson@redhat.com>
4652
4653 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4654 (i386_insert_aligned_watchpoint): Likewise.
4655 (i386_remove_aligned_watchpoint): Likewise.
4656 (i386_handle_nonaligned_watchpoint): Likewise.
4657
4658 2014-06-18 Gary Benson <gbenson@redhat.com>
4659
4660 * i386-nat.c: Whitespace changes.
4661
4662 2014-06-17 Samuel Bronson <naesten@gmail.com>
4663
4664 * MAINTAINERS: Update Roland McGrath's email address.
4665 Thanks to Sergio Durigan Junior for pointing out that he left
4666 Red Hat a while ago, and giving me a current address.
4667
4668 2014-06-17 Tom Tromey <tromey@redhat.com>
4669
4670 * utils.h (savestring): Remove declaration.
4671
4672 2014-06-17 Tom Tromey <tromey@redhat.com>
4673
4674 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4675
4676 2014-06-16 Keith Seitz <keiths@redhat.com>
4677
4678 PR mi/15863
4679 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4680 to update the varobj if inferior_ptid is null_ptid.
4681
4682 2014-06-16 Tom Tromey <tromey@redhat.com>
4683
4684 * target.h (struct target_ops) <to_info_proc>: Make parameter
4685 const.
4686 (target_info_proc): Update.
4687 * target.c (target_info_proc): Make "args" const.
4688 * procfs.c (procfs_info_proc): Update.
4689 * linux-tdep.c (linux_info_proc): Update.
4690 (linux_core_info_proc_mappings): Make "args" const.
4691 (linux_core_info_proc): Update.
4692 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4693 * gdbarch.c: Rebuild.
4694 * gdbarch.h: Rebuild.
4695 * corelow.c (core_info_proc): Update.
4696
4697 2014-06-16 Tom Tromey <tromey@redhat.com>
4698
4699 * target.h (struct target_ops) <to_disconnect>: Make parameter
4700 const.
4701 (target_disconnect): Update.
4702 * target.c (target_disconnect): Make "args" const.
4703 * target-delegates.c: Rebuild.
4704 * remote.c (remote_disconnect): Update.
4705 * record.h (record_disconnect): Update.
4706 * record.c (record_disconnect): Update.
4707 * inf-child.c (inf_child_disconnect): Update.
4708
4709 2014-06-16 Tom Tromey <tromey@redhat.com>
4710
4711 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4712 * target.c (debug_to_rcmd, default_rcmd): Update.
4713 * target-delegates.c: Rebuild.
4714 * remote.c (remote_rcmd): Update.
4715 * monitor.c (monitor_rcmd): Update.
4716
4717 2014-06-16 Pedro Alves <palves@redhat.com>
4718
4719 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4720 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4721 have OBJF_SHARED set.
4722 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4723 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4724 instead of OBJF_USERLOADED.
4725 * objfiles.h (OBJF_SHARED): Update comment.
4726 (userloaded_objfile_contains_address_p): Rename to ...
4727 (shared_objfile_contains_address_p): ... this, and update
4728 comments.
4729 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4730 new objfile.
4731 (remove_symbol_file_command): Skip objfiles that don't have
4732 OBJF_SHARED set.
4733
4734 2014-06-16 Tom Tromey <tromey@redhat.com>
4735
4736 * minsyms.h (prim_record_minimal_symbol)
4737 (prim_record_minimal_symbol_and_info): Update comments.
4738
4739 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4740
4741 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4742 or --without-guile, according to how GDB was built.
4743
4744 2014-06-13 Tom Tromey <tromey@redhat.com>
4745
4746 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4747 to help_list.
4748 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4749 to help_list.
4750 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4751 help_list.
4752 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4753 help_list.Pass all_commands, not -1, to help_list.
4754 * cli/cli-dump.c (dump_command, append_command)
4755 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4756 (binary_dump_command, binary_append_command): Pass all_commands,
4757 not -1, to help_list.
4758 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4759 -1, to help_list.
4760 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4761 -1, to help_list.
4762 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4763 help_list.
4764 * top.c (set_history): Pass all_commands, not -1, to help_list.
4765 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4766 all_commands, not -1, to help_list.
4767 * symfile.c (overlay_command): Pass all_commands, not -1, to
4768 help_list.
4769 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4770 help_list.
4771 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4772 help_list.
4773 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4774 -1, to help_list.
4775 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4776 not -1, to help_list.
4777 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4778 not -1, to help_list.
4779 * maint.c (maintenance_command, maintenance_info_command)
4780 (maintenance_print_command, maintenance_set_cmd): Pass
4781 all_commands, not -1, to help_list.
4782 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4783 help_list.
4784 * language.c (set_check): Pass all_commands, not -1, to help_list.
4785 * infcmd.c (unset_command): Pass all_commands, not -1, to
4786 help_list.
4787 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4788 help_list.
4789 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4790 help_list.
4791 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4792 help_list.
4793 * breakpoint.c (save_command): Pass all_commands, not -1, to
4794 help_list.
4795 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4796 all_commands, not -1, to help_list.
4797
4798 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4799
4800 * regcache.c (struct register_to_invalidate): New structure.
4801 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4802 functions.
4803 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4804
4805 2014-06-12 Yao Qi <yao@codesourcery.com>
4806
4807 * varobj.c (varobj_get_num_children): Call
4808 varobj_is_dynamic_p.
4809 (varobj_list_children): Likewise.
4810 (varobj_update): Likewise. Update comments.
4811
4812 2014-06-12 Yao Qi <yao@codesourcery.com>
4813
4814 * varobj.c (varobj_pretty_printed_p): Rename to ...
4815 (varobj_is_dynamic_p): ... this. New function.
4816 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4817 (varobj_is_dynamic_p): Declare.
4818 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4819 (mi_print_value_p, varobj_update_one): Likewise.
4820
4821 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4822 Yao Qi <yao@codesourcery.com>
4823
4824 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4825 (varobj_get_iterator): Wrap up code for pretty-printer by
4826 "#if HAVE_PYTHON" and "#endif".
4827 (update_dynamic_varobj_children): Likewise.
4828
4829 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4830 Yao Qi <yao@codesourcery.com>
4831
4832 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4833 gdb_python_initialized is false. Move some code from varobj.c.
4834 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4835 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4836 (struct varobj_item): Moved to varobj-iter.h".
4837 (varobj_clear_saved_item): New function.
4838 (update_dynamic_varobj_children): Move python-related code to
4839 py-varobj.c.
4840 (free_variable): Call varobj_clear_saved_item and
4841 varobj_iter_delete.
4842
4843 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4844 Yao Qi <yao@codesourcery.com>
4845
4846 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4847 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4848 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4849 (py-varobj.o): New rule.
4850 * python/py-varobj.c: New file.
4851 * python/python-internal.h (py_varobj_get_iterator): Declare.
4852 * varobj-iter.h: New file.
4853 * varobj.c: Include "varobj-iter.h"
4854 (struct varobj) <child_iter>: Change its type from "PyObject *"
4855 to "struct varobj_iter *".
4856 <saved_item>: Likewise.
4857 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4858 [HAVE_PYTHON] (varobj_get_iterator): New function.
4859 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4860 python-specific code to python/py-varobj.c.
4861 (install_visualizer): Call varobj_iter_delete instead of
4862 Py_XDECREF.
4863 * varobj.h (varobj_ensure_python_env): Declare.
4864
4865 2014-06-12 Yao Qi <yao@codesourcery.com>
4866
4867 * varobj.c (struct varobj_item): New structure.
4868 (create_child_with_value): Update declaration.
4869 (varobj_add_child): Replace arguments 'name' and 'value' with
4870 'item'. All callers updated.
4871 (install_dynamic_child): Likewise.
4872 (update_dynamic_varobj_children): Likewise.
4873 (varobj_add_child): Likewise.
4874 (create_child_with_value): Likewise.
4875
4876 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4877
4878 * NEWS: Create a new section for the next release branch.
4879 Rename the section of the current branch, now that it has
4880 been cut.
4881
4882 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4883
4884 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4885 * version.in: Bump version to 7.8.50.DATE-cvs.
4886
4887 2014-06-11 Pedro Alves <palves@redhat.com>
4888
4889 PR remote/17028
4890 * ser-mingw.c (net_windows_socket_check_pending): New function.
4891 (net_windows_select_thread): Ignore spurious wakeups. Use
4892 net_windows_socket_check_pending.
4893 (net_windows_wait_handle): Check for pending events with
4894 ioctlsocket, through net_windows_socket_check_pending, instead of
4895 checking the socket's event.
4896
4897 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4898
4899 * python/python-internal.h (gdb_PyObject_GetAttrString)
4900 (gdb_PyObject_HasAttrString): New inline function definitions.
4901 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4902 char * of the second argument to PyObject_GetAttrString.
4903
4904 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4905
4906 * serial.c (serial_write): Fix index of character to be printed
4907 in call to serial_logchar when serial debug traces are enabled.
4908
4909 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4910
4911 * gdbtypes (resolve_dynamic_range): Add function description.
4912
4913 2014-06-09 Pedro Alves <palves@redhat.com>
4914
4915 * linux-nat.c (linux_child_follow_fork): Initialize status with
4916 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4917 inner block. Only pass the signal to PTRACE_DETACH if in pass
4918 state.
4919
4920 2014-06-09 Gary Benson <gbenson@redhat.com>
4921
4922 * common/signals.c (gdb_signal_from_host): Reorder to separate
4923 the always-available ANSI-standard signals from the signals that
4924 require checking.
4925 (do_gdb_signal_to_host): Likewise.
4926 * proc-events.c (signal_table): Likewise.
4927
4928 2014-06-08 Hui Zhu <hui@codesourcery.com>
4929
4930 * common/linux-ptrace.c (linux_disable_event_reporting): New
4931 function.
4932 * common/linux-ptrace.h (linux_disable_event_reporting): New
4933 declaration.
4934 * linux-nat.c (linux_child_follow_fork): Do a single step before
4935 detach.
4936
4937 2014-06-07 Keith Seitz <keiths@redhat.com>
4938
4939 Revert:
4940 PR c++/16253
4941 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4942 from symbol_matches_domain in symtab.c. All local callers
4943 of symbol_matches_domain updated.
4944 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4945 search STRUCT_DOMAIN.
4946 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4947 independently. standard_lookup will do that automatically.
4948 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4949 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4950 (cp_lookup_symbol_in_namespace): Likewise.
4951 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4952 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4953 may return a STRUCT_DOMAIN match.
4954 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4955 * cp-support.c: Include language.h.
4956 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4957 VAR_DOMAIN.
4958 * psymtab.c (match_partial_symbol): Compare the requested
4959 domain with the symbol's domain directly.
4960 (lookup_partial_symbol): Likewise.
4961 * symtab.c (lookup_symbol_in_language): Explain when/why
4962 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4963 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4964 appropriate languages.
4965 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4966 and moved to ada-lang.c
4967 (lookup_block_symbol): Explain that this function only returns
4968 symbol matching the requested DOMAIN.
4969 Compare the requested domain with the symbol's domain directly.
4970 (iterate_over_symbols): Compare the requested domain with the
4971 symbol's domain directly.
4972 * symtab.h (symbol_matches_domain): Remove.
4973
4974 2014-06-06 Doug Evans <xdje42@gmail.com>
4975
4976 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4977 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4978 (gdbscm_guile_version_is_at_least): Declare.
4979 (gdbscm_scm_string_to_int): Declare.
4980 * guile/guile.c (gdbscm_guile_major_version): New global.
4981 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4982 (guile_datadir): New static global.
4983 (gdbscm_guile_data_directory): New function.
4984 (initialize_scheme_side): Update.
4985 (misc_guile_functions): Add guile-data-directory.
4986 (initialize_gdb_module): Fetch guile version number.
4987 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4988 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4989 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4990 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4991 comments.
4992 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4993 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4994 * guile/scm-value.c (gdbscm_value_to_string): Only call
4995 scm_port_conversion_strategy if Guile version >= 2.0.6.
4996
4997 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4998
4999 * main.c (print_gdb_help): Add -q and --silent.
5000
5001 2014-06-06 Gary Benson <gbenson@redhat.com>
5002
5003 * common/signals.c: Remove preprocessor conditionals for
5004 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5005 SIGSEGV and SIGTERM.
5006 * proc-events.c: Likewise.
5007
5008 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5009
5010 * symfile.c (symfile_free_objfile): Remove restriction to
5011 OBJF_USERLOADED.
5012 * symfile-mem.c (symbol_file_add_from_memory): Call
5013 add_target_sections_of_objfile.
5014
5015 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5016
5017 * guile/scm-value.c (gdbscm_history_append_x): Use
5018 'vlscm_get_value_smob_arg_unsafe' instead of
5019 'vlscm_scm_to_value'.
5020
5021 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 PR mi/15806
5024 * utils.c (printchar): Don't escape at all if quoter is NUL.
5025 Update function documentation to clarify effect of parameter
5026 QUOTER.
5027 * remote.c (escape_buffer): Pass '\\' as the quoter to
5028 fputstrn_unfiltered.
5029 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5030 generate the output.
5031 (mi_solib_unloaded): Same.
5032
5033 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5034
5035 * development.sh: Delete.
5036 * Makefile.in (config.status): Adjust dependency on development.sh.
5037 * configure.ac: Adjust development.sh source call.
5038 * configure: Regenerate.
5039
5040 2014-06-04 Doug Evans <xdje42@gmail.com>
5041
5042 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5043 is_scheme_bkpt, spec.
5044 (bpscm_make_breakpoint_smob): Initialize new members.
5045 (gdbscm_create_breakpoint_x): Split into two ...
5046 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5047 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5048 (scheme_function breakpoint_functions): Update.
5049 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5050 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5051 register-breakpoint!.
5052
5053 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5054
5055 PR server/17023
5056 * mem-break.c (z_type_supported): Return zero if
5057 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5058
5059 2014-06-04 Tom Tromey <tromey@redhat.com>
5060
5061 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5062 value_from_contents_and_address_unresolved.
5063 (ada_template_to_fixed_record_type_1): Likewise.
5064 (ada_which_variant_applies): Likewise.
5065 * value.h (value_from_contents_and_address_unresolved): Declare.
5066 * value.c (value_from_contents_and_address_unresolved): New
5067 function.
5068 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5069 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5070 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5071
5072 2014-06-04 Tom Tromey <tromey@redhat.com>
5073
5074 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5075
5076 2014-06-04 Tom Tromey <tromey@redhat.com>
5077
5078 * procfs.c (procfs_attach): Make "args" const.
5079 * windows-nat.c (windows_attach): Make "args" const.
5080 * nto-procfs.c (procfs_attach): Make "args" const.
5081 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5082 * go32-nat.c (go32_attach): Make "args" const.
5083 * gnu-nat.c (gnu_attach): Make "args" const.
5084 * darwin-nat.c (darwin_attach): Make "args" const.
5085 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5086 * linux-nat.c (linux_nat_attach): Make "args" const.
5087 * remote.c (extended_remote_attach_1, extended_remote_attach):
5088 Make "args" const.
5089 * target.h (struct target_ops) <to_attach>: Make "args" const.
5090 (find_default_attach): Likewise.
5091 * utils.c (parse_pid_to_attach): Make "args" const.
5092 * utils.h (parse_pid_to_attach): Update.
5093
5094 2014-06-04 Tom Tromey <tromey@redhat.com>
5095
5096 * target-delegates.c: Rebuild.
5097 * target.c (default_thread_address_space): New function.
5098 (target_thread_address_space): Simplify.
5099 * target.h (struct target_ops) <to_thread_address_space>: Add
5100 TARGET_DEFAULT_FUNC.
5101
5102 2014-06-04 Doug Evans <xdje42@gmail.com>
5103
5104 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5105
5106 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5107
5108 * record-btrace.c: Include event-loop.h and inf-loop.h.
5109 (record_btrace_resume_exec_dir)
5110 (record_btrace_async_inferior_event_handler)
5111 (record_btrace_handle_async_inferior_event): New.
5112 (record_btrace_open): Create async event handler.
5113 (record_btrace_close): Delete async event handler.
5114 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5115 Mark async event handler.
5116 (record_btrace_execution_direction): New.
5117 (init_record_btrace_ops): Initialize to_execution_direction.
5118
5119 2014-06-03 Doug Evans <xdje42@gmail.com>
5120
5121 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5122 (gdbscm_make_parameter): Ditto.
5123
5124 2014-06-03 Doug Evans <dje@google.com>
5125
5126 * exec.c (exec_close_1): Call clear_section_table instead of
5127 resize_section_table.
5128 (clear_section_table): New function.
5129 (resize_section_table): Make static. Rename arg num_added to
5130 adjustment.
5131 * exec.h (clear_section_table): Declare.
5132 (resize_section_table): Delete.
5133 * progspace.c (release_program_space): Call clear_section_table
5134 instead of resize_section_table.
5135
5136 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5137
5138 * NEWS (Python Scripting): Add entry about the new xmethods
5139 feature.
5140
5141 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5142
5143 * python/py-xmethods.c: New file.
5144 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5145 (objfpy_dealloc): XDECREF on the new xmethods field.
5146 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5147 field.
5148 (objfpy_get_xmethods): New function.
5149 (objfile_getset): New entry 'xmethods'.
5150 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5151 (pspy_dealloc): XDECREF on the new xmethods field.
5152 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5153 field.
5154 (pspy_get_xmethods): New function.
5155 (pspace_getset): New entry 'xmethods'.
5156 * python/python-internal.h: Add declarations for new functions.
5157 * python/python.c (_initialize_python): Invoke
5158 gdbpy_initialize_xmethods.
5159 * python/lib/gdb/__init__.py (xmethods): New
5160 attribute.
5161 * python/lib/gdb/xmethod.py: New file.
5162 * python/lib/gdb/command/xmethods.py: New file.
5163
5164 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5165
5166 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5167 best match method returned by find_overload_match is an xmethod.
5168 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5169 the best matching operator returned by find_overload_match is an
5170 xmethod.
5171 * valops.c: #include "extension.h".
5172 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5173 Return void. The list of matching source methods is returned in
5174 "fn_list" and a vector of matching debug method workers is
5175 returned in "xm_worker_vec". Update all callers.
5176 (value_find_oload_method_list): Likewise.
5177 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5178 non-NULL, then the index of the best matching method in this
5179 vector is returned. Update all callers.
5180 (find_overload_match): Include xmethods while performing overload
5181 resolution.
5182
5183 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5184
5185 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5186 * extension-priv.h (struct extension_language_ops): Add the
5187 xmethod interface.
5188 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5189 get_matching_xmethod_workers, get_xmethod_argtypes,
5190 invoke_xmethod, free_xmethod_worker,
5191 free_xmethod_worker_vec): New functions.
5192 * extension.h: #include "common/vec.h".
5193 New function declarations.
5194 (struct xmethod_worker): New struct.
5195 (VEC (xmethod_worker_ptr)): New vector type.
5196 (xmethod_worker_ptr): New typedef.
5197 (xmethod_worker_vec): Likewise.
5198 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5199 builtin_type.
5200 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5201 (struct builtin_type): New field "xmethod".
5202 * valarith.c (value_ptradd): Assert that the value argument is not
5203 lval_xcallable.
5204 * valops.c (value_must_coerce_to_target): Return 0 for
5205 lval_xcallable values.
5206 * value.c (struct value): New field XM_WORKER in the field
5207 LOCATION.
5208 (value_address, value_raw_address): Return 0 for lval_xcallable
5209 values.
5210 (set_value_address): Assert that the value is not an
5211 lval_xcallable.
5212 (value_free): Free the associated xmethod worker when freeing
5213 lval_xcallable values.
5214 (set_value_component_location): Assert that the WHOLE value is not
5215 lval_xcallable.
5216 (value_of_xmethod, call_xmethod): New functions.
5217 * value.h: Declare "struct xmethod_worker".
5218 Declare new functions value_of_xmethod, call_xmethod.
5219
5220 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5221 Pedro Alves <palves@redhat.com>
5222
5223 PR breakpoints/17000
5224 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5225 New function, extracted from software_breakpoint_inserted_here_p.
5226 (software_breakpoint_inserted_here_p): Replace factored out code
5227 by call to find_non_raw_software_breakpoint_inserted_here.
5228 (bp_target_info_copy_insertion_state): New function.
5229 (bkpt_insert_location): Handle the case of a single-step
5230 breakpoint already inserted at the same address.
5231 (bkpt_remove_location): Handle the case of a single-step
5232 breakpoint still inserted at the same address.
5233 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5234 breakpoint already inserted at the same address.
5235 (deprecated_remove_raw_breakpoint): Handle the case of a
5236 non-raw breakpoint still inserted at the same address.
5237 (find_single_step_breakpoint): New function, extracted from
5238 single_step_breakpoint_inserted_here_p.
5239 (find_single_step_breakpoint): New function,
5240 factored out from single_step_breakpoint_inserted_here_p.
5241 (single_step_breakpoint_inserted_here_p): Reimplement.
5242
5243 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5244
5245 Pushed by Joel Brobecker <brobecker@adacore.com>
5246 * source.c (show_substitute_path_command): Fix display of matching
5247 substitution rules.
5248
5249 2014-06-03 Gary Benson <gbenson@redhat.com>
5250
5251 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5252
5253 2014-06-02 Doug Evans <xdje42@gmail.com>
5254
5255 Add parameter support for Guile.
5256 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5257 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5258 (scm-param.o): New rule.
5259 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5260 (gdbscm_misc_error): Declare.
5261 (gdbscm_canonicalize_command_name): Declare.
5262 (gdbscm_scm_to_host_string): Declare.
5263 (gdbscm_scm_from_host_string): Declare.
5264 (gdbscm_initialize_parameters): Declare.
5265 * guile/guile.c (initialize_gdb_module): Call
5266 gdbscm_initialize_parameters.
5267 * guile/lib/gdb.scm: Export parameter symbols.
5268 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5269 cmdscm_canonicalize_name and made public. All callers updated.
5270 * guile/scm-exception.c (gdbscm_misc_error): New function.
5271 * guile/scm-param.c: New file.
5272 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5273 (gdbscm_scm_to_host_string): New function.
5274 (gdbscm_scm_from_host_string): New function.
5275 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5276
5277 2014-06-02 Doug Evans <xdje42@gmail.com>
5278
5279 Add command support for Guile.
5280 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5281 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5282 (scm-cmd.o): New rule.
5283 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5284 (gdbscm_user_error_p): Declare.
5285 (gdbscm_parse_command_name): Declare.
5286 (gdbscm_valid_command_class_p): Declare.
5287 (gdbscm_initialize_commands): Declare.
5288 * guile/guile.c (initialize_gdb_module): Call
5289 gdbscm_initialize_commands.
5290 * guile/lib/gdb.scm: Export command symbols.
5291 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5292 (throw-user-error): New function.
5293 * guile/scm-cmd.c: New file.
5294 * guile/scm-exception.c (user_error_symbol): New static global.
5295 (gdbscm_user_error_p): New function.
5296 (gdbscm_initialize_exceptions): Set user_error_symbol.
5297 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5298
5299 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5300
5301 * top.c (command_loop): Handle comments here...
5302 (command_line_input): ... not here.
5303
5304 2014-06-02 Doug Evans <xdje42@gmail.com>
5305
5306 Add progspace support for Guile.
5307 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5308 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5309 (scm-progspace.o): New rule.
5310 * guile/guile-internal.h (pspace_smob): New typedef.
5311 (psscm_pspace_smob_pretty_printers): Declare.
5312 (psscm_pspace_smob_from_pspace): Declare.
5313 (psscm_scm_from_pspace): Declare.
5314 * guile/guile.c (initialize_gdb_module): Call
5315 gdbscm_initialize_pspaces.
5316 * guile/lib/gdb.scm: Export progspace symbols.
5317 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5318 support.
5319 (append-pretty-printer!): Ditto.
5320 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5321 Implement.
5322 * guile/scm-progspace.c: New file.
5323
5324 2014-06-03 Alan Modra <amodra@gmail.com>
5325
5326 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5327 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5328
5329 2014-06-02 Doug Evans <dje@google.com>
5330
5331 Add support for skeletonless type units.
5332 * dwarf2read.c (struct dwarf2_per_objfile): New member
5333 n_allocated_type_units.
5334 (struct dwarf2_per_objfile) <tu_stats>: New member
5335 nr_all_type_units_reallocs.
5336 (create_signatured_type_table_from_index): Initialize
5337 n_allocated_type_units
5338 (create_all_type_units): Ditto.
5339 (add_type_unit): Move up in file. New arg slot.
5340 All callers updated. Increase space for all_type_units more
5341 efficiently.
5342 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5343 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5344 (lookup_dwp_signatured_type): Ditto.
5345 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5346 All callers updated.
5347 (build_type_psymtabs_1): Leave type_unit_groups as
5348 NULL if no TUs present.
5349 (print_tu_stats): New function.
5350 (process_skeletonless_type_unit): New function.
5351 (process_dwo_file_for_skeletonless_type_units): New
5352 function.
5353 (process_skeletonless_type_units): New function.
5354 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5355 Call print tu_stats if debugging enabled.
5356
5357 2014-06-02 Pedro Alves <palves@redhat.com>
5358
5359 * breakpoint.c (build_target_command_list): Don't build a command
5360 list if we have any duplicate location that isn't a dprintf.
5361
5362 2014-06-02 Pedro Alves <palves@redhat.com>
5363
5364 * breakpoint.c (dprintf_breakpoint_hit): New function.
5365 (initialize_breakpoint_ops): Install it as dprintf's
5366 breakpoint_hit method.
5367
5368 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5369
5370 * source.c (substitute_path_rule_matches): Simplify using
5371 filename_ncmp instead of FILENAME_CMP.
5372
5373 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5374
5375 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5376
5377 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5378
5379 * configure.ac: When Guile is available, check for the
5380 availability of 'scm_new_smob'.
5381 * configure, config.h.in: Regenerate.
5382 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5383 function.
5384
5385 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5386
5387 * frame.c (struct frame_info): Add stop_string field.
5388 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5389 (get_prev_frame_always): Old content moved into
5390 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5391 TRY_CATCH, handle MEMORY_ERROR exceptions.
5392 (frame_stop_reason_string): New function definition.
5393 * frame.h (unwind_stop_reason_to_string): Extend comment to
5394 mention frame_stop_reason_string.
5395 (frame_stop_reason_string): New function declaration.
5396 * stack.c (frame_info): Switch to frame_stop_reason_string.
5397 (backtrace_command_1): Switch to frame_stop_reason_string.
5398 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5399 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5400 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5401
5402 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5403
5404 * frame.c (frame_stop_reason_string): Rename to ...
5405 (unwind_stop_reason_to_string): this.
5406 * frame.h (frame_stop_reason_string): Rename to ...
5407 (unwind_stop_reason_to_string): this.
5408 * stack.c (frame_info): Update call to frame_stop_reason_string.
5409 (backtrace_command_1): Likewise.
5410 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5411 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5412
5413 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5414
5415 * frame.c (remove_prev_frame): New function.
5416 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5417 remove_prev_frame.
5418
5419 2014-05-29 Pedro Alves <palves@redhat.com>
5420
5421 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5422 and make it const. When a single-step decays to a continue,
5423 clear 'step', not 'hw_step'. Pass whether the caller wanted
5424 to step to user_visible_resume_ptid, not what we ask the
5425 target to do.
5426
5427 2014-05-29 Pedro Alves <palves@redhat.com>
5428
5429 * infrun.c (process_event_stop_test, handle_step_into_function)
5430 (handle_step_into_function_backward): Adjust.
5431 Don't set the even thread's stop_step and call stop_waiting before
5432 calling end_stepping_range. Instead do that ...
5433 (end_stepping_range): ... here. Take an ecs pointer parameter.
5434
5435 2014-05-29 Pedro Alves <palves@redhat.com>
5436
5437 * infrun.c (stop_stepping): Rename to ...
5438 (stop_waiting): ... this.
5439 (proceed): Update comment.
5440 (process_event_stop_test, handle_inferior_event)
5441 (handle_signal_stop, handle_step_into_function)
5442 (handle_step_into_function_backward): Update.
5443
5444 2014-05-29 Pedro Alves <palves@redhat.com>
5445
5446 * infcall.c (run_inferior_call): Don't check whether the current
5447 thread is running after the proceed call.
5448
5449 2014-05-29 Pedro Alves <palves@redhat.com>
5450 Tom Tromey <tromey@redhat.com>
5451
5452 * NEWS: Mention "maint set target-async", "set mi-async", and that
5453 background execution commands are now always available.
5454 * target.h (target_async_permitted): Update comment.
5455 * target.c (target_async_permitted, target_async_permitted_1):
5456 Default to 1.
5457 (set_target_async_command): Rename to ...
5458 (maint_set_target_async_command): ... this.
5459 (show_target_async_command): Rename to ...
5460 (maint_show_target_async_command): ... this.
5461 (_initialize_target): Adjust.
5462 * infcmd.c (prepare_execution_command): Make extern.
5463 * inferior.h (prepare_execution_command): Declare.
5464 * infrun.c (set_observer_mode): Leave target async alone.
5465 * mi/mi-interp.c (mi_interpreter_init): Install
5466 mi_on_sync_execution_done as sync_execution_done observer.
5467 (mi_on_sync_execution_done): New function.
5468 (mi_execute_command_input_handler): Don't print the prompt if we
5469 just started a synchronous command with an async target.
5470 (mi_on_resume): Check sync_execution before printing prompt.
5471 * mi/mi-main.h (mi_async_p): Declare.
5472 * mi/mi-main.c: Include gdbcmd.h.
5473 (mi_async_p): New function.
5474 (mi_async, mi_async_1): New globals.
5475 (set_mi_async_command, show_mi_async_command, mi_async): New
5476 functions.
5477 (exec_continue): Call prepare_execution_command.
5478 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5479 (mi_execute_async_cli_command): Use mi_async_p.
5480 (_initialize_mi_main): Install "set mi-async". Make
5481 "target-async" a deprecated alias.
5482
5483 2014-05-29 Pedro Alves <palves@redhat.com>
5484
5485 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5486 (_initialize_cli_interp): Adjust.
5487 * event-loop.c: Include "observer.h".
5488 (start_event_loop): Notify 'command_error' observers instead of
5489 calling display_gdb_prompt. Remove FIXME comment.
5490 * event-top.c (display_gdb_prompt): Remove call into the
5491 interpreters.
5492 * inf-loop.c: Include "observer.h".
5493 (inferior_event_handler): Notify 'command_error' observers instead
5494 of calling display_gdb_prompt.
5495 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5496 observers instead of calling display_gdb_prompt.
5497 * interps.c (interp_set): Don't call display_gdb_prompt.
5498 (current_interp_display_prompt_p): Delete.
5499 * interps.h (interp_prompt_p): Delete declaration.
5500 (interp_prompt_p_ftype): Delete.
5501 (struct interp_procs) <prompt_proc_p>: Delete field.
5502 (current_interp_display_prompt_p): Delete declaration.
5503 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5504 (_initialize_mi_interp): Adjust.
5505 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5506 'command_error' observers.
5507 (tui_on_sync_execution_done, tui_on_command_error): New
5508 functions.
5509 (tui_display_prompt_p): Delete.
5510 (_initialize_tui_interp): Adjust.
5511
5512 2014-05-29 Pedro Alves <palves@redhat.com>
5513
5514 PR gdb/13860
5515 * cli/cli-interp.c: Include infrun.h and observer.h.
5516 (cli_uiout, cli_interp): New globals.
5517 (cli_on_signal_received, cli_on_end_stepping_range)
5518 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5519 functions.
5520 (cli_interpreter_init): Install them as 'end_stepping_range',
5521 'signal_received' 'signal_exited', 'exited' and 'no_history'
5522 observers.
5523 (_initialize_cli_interp): Remove cli_interp local.
5524 * infrun.c (handle_inferior_event): Call the several stop reason
5525 observers instead of printing the stop reason directly.
5526 (end_stepping_range): New function.
5527 (print_end_stepping_range_reason, print_signal_exited_reason)
5528 (print_exited_reason, print_signal_received_reason)
5529 (print_no_history_reason): Make static, and add an uiout
5530 parameter. Print to that instead of to CURRENT_UIOUT.
5531 * infrun.h (print_end_stepping_range_reason)
5532 (print_signal_exited_reason, print_exited_reason)
5533 (print_signal_received_reason print_no_history_reason): New
5534 declarations.
5535 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5536 'mi_uiout'.
5537 <cli_uiout>: New field.
5538 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5539 uiout for CLI output. Install 'signal_received',
5540 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5541 observers.
5542 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5543 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5544 (mi_on_no_history): New functions.
5545 (ui_out_free_cleanup): Delete function.
5546 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5547 instead use the one already stored in the MI interpreter data.
5548 (mi_ui_out): Adjust.
5549 * tui/tui-interp.c: Include infrun.h and observer.h.
5550 (tui_interp): New global.
5551 (tui_on_signal_received, tui_on_end_stepping_range)
5552 (tui_on_signal_exited, tui_on_exited)
5553 (tui_on_no_history): New functions.
5554 (tui_init): Install them as 'end_stepping_range',
5555 'signal_received' 'signal_exited', 'exited' and 'no_history'
5556 observers.
5557 (_initialize_tui_interp): Delete tui_interp local.
5558
5559 2014-05-29 Pedro Alves <palves@redhat.com>
5560
5561 PR gdb/15713
5562 * linux-nat.c (linux_nat_resume_callback): Rename the second
5563 parameter to 'except'. Skip LP if it points to EXCEPT.
5564 (linux_nat_resume): Don't mark the event lwp as not stopped
5565 before resuming sibling lwps. Instead ask
5566 linux_nat_resume_callback to skip the event lwp. Mark it as not
5567 stopped after actually resuming it.
5568 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5569 resuming it.
5570 (wait_lwp): Mark the lwp as stopped here.
5571 (stop_wait_callback): Mark the lwp as not stopped right after
5572 resuming it. Don't mark lwps as stopped here.
5573 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5574 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5575
5576 2014-05-29 Pedro Alves <palves@redhat.com>
5577
5578 PR PR15693
5579 * infrun.c (resume): Determine how much to resume depending on
5580 whether the caller wanted a step, not whether we can hardware step
5581 the target. Mark all threads that we intend to run as running,
5582 unless we're calling an inferior function.
5583 (normal_stop): If the thread is running an infcall, don't finish
5584 thread state.
5585 * target.c (target_resume): Don't mark threads as running here.
5586
5587 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5588
5589 * serial.c (_initialize_serial): Remove support for
5590 the "set remotebaud" and "show remotebaud" commands.
5591 * NEWS: Add entry documenting the removal of that command.
5592
5593 2014-05-28 Yao Qi <yao@codesourcery.com>
5594
5595 * charset.c: Fix typo in comments.
5596
5597 2014-05-27 Gary Benson <gbenson@redhat.com>
5598
5599 * utils.c (internal_vproblem): Prompt for a bug report.
5600
5601 2014-05-26 Andy Wingo <wingo@igalia.com>
5602
5603 * guile/scm-arch.c (arscm_mark_arch_smob):
5604 * guile/scm-block.c (bkscm_mark_block_smob)
5605 (bkscm_mark_block_syms_progress_smob):
5606 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5607 * guile/scm-exception.c (exscm_mark_exception_smob):
5608 * guile/scm-frame.c (frscm_mark_frame_smob):
5609 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5610 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5611 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5612 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5613 (ppscm_mark_pretty_printer_worker_smob):
5614 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5615 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5616 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5617 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5618 mark functions.
5619 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5620 function.
5621
5622 2014-05-26 Andy Wingo <wingo@igalia.com>
5623 Doug Evans <xdje42@gmail.com>
5624
5625 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5626 empty_base_class. All uses updated.
5627 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5628 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5629 Adapt all callers.
5630 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5631 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5632 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5633 (gdbscm_gsmob_has_property_p, add_property_name)
5634 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5635 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5636 (gdb-object-has-property?, gdb-object-properties): Remove.
5637 (gdb-object-kind): Renamed from gsmob-kind.
5638
5639 2014-05-26 Andy Wingo <wingo@igalia.com>
5640
5641 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5642 * configure: Regenerate.
5643
5644 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5645
5646 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5647
5648 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5649
5650 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5651 (replay_memory_access_read_only, replay_memory_access_read_write)
5652 (replay_memory_access_types, replay_memory_access)
5653 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5654 (cmd_set_record_btrace, cmd_show_record_btrace)
5655 (cmd_show_replay_memory_access): New.
5656 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5657 (record_btrace_remove_breakpoint): Replace
5658 record_btrace_allow_memory_access with replay_memory_access.
5659 (_initialize_record_btrace): Add commands.
5660 * NEWS: Announce it.
5661
5662 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5663
5664 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5665
5666 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5667
5668 * MAINTAINERS (Write After Approval): Move self back from
5669 paper trail.
5670
5671 2014-05-22 Pedro Alves <palves@redhat.com>
5672
5673 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5674 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5675 (disable_randomization, enum exec_direction_kind)
5676 (execution_direction, stop_registers, start_remote)
5677 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5678 (wait_for_inferior, normal_stop, get_last_target_status)
5679 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5680 (insert_step_resume_breakpoint_at_sal)
5681 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5682 (set_step_info, print_stop_event, signal_stop_state)
5683 (signal_print_state, signal_pass_state, signal_stop_update)
5684 (signal_print_update, signal_pass_update)
5685 (update_signals_program_target, clear_exit_convenience_vars)
5686 (displaced_step_dump_bytes, update_observer_mode)
5687 (signal_catch_update, gdb_signal_from_command): Move
5688 declarations ...
5689 * infrun.h: ... to this new file.
5690 * amd64-tdep.c: Include infrun.h.
5691 * annotate.c: Include infrun.h.
5692 * arch-utils.c: Include infrun.h.
5693 * arm-linux-tdep.c: Include infrun.h.
5694 * arm-tdep.c: Include infrun.h.
5695 * break-catch-sig.c: Include infrun.h.
5696 * breakpoint.c: Include infrun.h.
5697 * common/agent.c: Include infrun.h instead of inferior.h.
5698 * corelow.c: Include infrun.h.
5699 * event-top.c: Include infrun.h.
5700 * go32-nat.c: Include infrun.h.
5701 * i386-tdep.c: Include infrun.h.
5702 * inf-loop.c: Include infrun.h.
5703 * infcall.c: Include infrun.h.
5704 * infcmd.c: Include infrun.h.
5705 * infrun.c: Include infrun.h.
5706 * linux-fork.c: Include infrun.h.
5707 * linux-nat.c: Include infrun.h.
5708 * linux-thread-db.c: Include infrun.h.
5709 * monitor.c: Include infrun.h.
5710 * nto-tdep.c: Include infrun.h.
5711 * procfs.c: Include infrun.h.
5712 * record-btrace.c: Include infrun.h.
5713 * record-full.c: Include infrun.h.
5714 * remote-m32r-sdi.c: Include infrun.h.
5715 * remote-mips.c: Include infrun.h.
5716 * remote-notif.c: Include infrun.h.
5717 * remote-sim.c: Include infrun.h.
5718 * remote.c: Include infrun.h.
5719 * reverse.c: Include infrun.h.
5720 * rs6000-tdep.c: Include infrun.h.
5721 * s390-linux-tdep.c: Include infrun.h.
5722 * solib-irix.c: Include infrun.h.
5723 * solib-osf.c: Include infrun.h.
5724 * solib-svr4.c: Include infrun.h.
5725 * target.c: Include infrun.h.
5726 * top.c: Include infrun.h.
5727 * windows-nat.c: Include infrun.h.
5728 * mi/mi-interp.c: Include infrun.h.
5729 * mi/mi-main.c: Include infrun.h.
5730 * python/py-threadevent.c: Include infrun.h.
5731
5732 2014-05-22 Pedro Alves <palves@redhat.com>
5733
5734 * infrun.c (handle_inferior_event): Store the exit code for
5735 --return-child-result here, instead of ...
5736 (print_exited_reason): ... here.
5737
5738 2014-05-21 Pedro Alves <palves@redhat.com>
5739
5740 PR gdb/13860
5741 * gdbthread.h (struct thread_control_state): New field
5742 `command_interp'.
5743 * infrun.c (follow_fork): Copy the new thread control field to the
5744 child fork thread.
5745 (clear_proceed_status_thread): Clear the new thread control field.
5746 (proceed): Set the new thread control field.
5747 * interps.h (command_interp): Declare.
5748 * interps.c (command_interpreter): New global.
5749 (command_interp): New function.
5750 (interp_exec): Set `command_interpreter' while here.
5751 * cli-out.c (cli_uiout_dtor): New function.
5752 (cli_ui_out_impl): Install it.
5753 * mi/mi-interp.c: Include cli-out.h.
5754 (mi_cmd_interpreter_exec): Add comment.
5755 (restore_current_uiout_cleanup): New function.
5756 (ui_out_free_cleanup): New function.
5757 (mi_on_normal_stop): If finishing an execution command started by
5758 a CLI command, or any kind of breakpoint-like event triggered,
5759 print the stop event to the output (CLI) stream.
5760 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5761
5762 2014-05-21 Pedro Alves <palves@redhat.com>
5763
5764 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5765 current source line having changed.
5766 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5767 * infrun.c (normal_stop): Adjust call to
5768 set_current_sal_from_frame.
5769 * source.c (clear_lines_listed_range): New function.
5770 (set_current_source_symtab_and_line, identify_source_line): Clear
5771 the lines listed range.
5772 (line_info): Handle the first "info line" after the current source
5773 line having changed.
5774 * stack.c (print_stack_frame): Remove center handling.
5775 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5776 center sal.line.
5777
5778 2014-05-21 Pedro Alves <palves@redhat.com>
5779
5780 * inf-child.c (inf_child_mourn_inferior): New function.
5781 * inf-child.h (inf_child_mourn_inferior): New declaration.
5782 * darwin-nat.c (darwin_mourn_inferior): Use
5783 inf_child_mourn_inferior.
5784 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5785 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5786 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5787 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5788 * windows-nat.c (windows_mourn_inferior): Likewise.
5789
5790 2014-05-21 Doug Evans <xdje42@gmail.com>
5791
5792 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5793
5794 2014-05-21 Doug Evans <xdje42@gmail.com>
5795
5796 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5797 (gdbscm_out_of_range_error): Ditto.
5798 (gdbscm_memory_error): Ditto.
5799 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5800 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5801 (gdbscm_out_of_range_error): Update.
5802 (gdbscm_memory_error): Update.
5803 (gdbscm_scm_to_target_string_unsafe): Delete.
5804
5805 2014-05-21 Pedro Alves <palves@redhat.com>
5806
5807 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5808 globals.
5809 (inf_child_open_target): New function.
5810 (inf_child_open): Use inf_child_open_target to push the target
5811 instead of erroring out.
5812 (inf_child_disconnect, inf_child_close)
5813 (inf_child_maybe_unpush_target): New functions.
5814 (inf_child_target): Install inf_child_disconnect and
5815 inf_child_close. Store a pointer to the returned object.
5816 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5817 declarations.
5818 * target.c (auto_connect_native_target): New global.
5819 (show_default_run_target): New function.
5820 (find_default_run_target): Return NULL if automatically connecting
5821 to the native target is disabled.
5822 (_initialize_target): Install set/show auto-connect-native-target.
5823 * NEWS: Mention "set auto-connect-native-target", and "target
5824 native".
5825 * linux-nat.c (super_close): New global.
5826 (linux_nat_close): Call super_close.
5827 (linux_nat_add_target): Store a pointer to the base class's
5828 to_close method.
5829 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5830 inf_child_maybe_unpush.
5831 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5832 already pushed.
5833 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5834 the inferior. Use inf_child_maybe_unpush_target.
5835 (inf_ttrace_attach): Don't push the target if it is already
5836 pushed.
5837 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5838 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5839 after mourning the inferior. Use inf_child_maybe_unpush_target.
5840 (darwin_attach_pid): Don't push the target if it is already
5841 pushed.
5842 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5843 mourning the inferior. Use inf_child_maybe_unpush_target.
5844 (gnu_detach): Use inf_child_maybe_unpush_target.
5845 * go32-nat.c (go32_create_inferior): Don't push the target if it
5846 is already pushed.
5847 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5848 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5849 (procfs_open): Rename to ...
5850 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5851 comments. Can target_preopen before changing node. Call
5852 inf_child_open_target to push the target explicitly.
5853 (procfs_attach): Don't push the target if it is already pushed.
5854 (procfs_detach): Use inf_child_maybe_unpush_target.
5855 (procfs_create_inferior): Don't push the target if it is already
5856 pushed.
5857 (nto_native_ops): New global.
5858 (procfs_open): Reimplement.
5859 (procfs_native_open): New function.
5860 (init_procfs_targets): Install procfs_native_open as to_open of
5861 "target native". Store a pointer to the "native" target in
5862 nto_native_ops.
5863 * procfs.c (procfs_attach): Don't push the target if it is already
5864 pushed.
5865 (procfs_detach): Use inf_child_maybe_unpush_target.
5866 (procfs_mourn_inferior): Only unpush the target after mourning the
5867 inferior. Use inf_child_maybe_unpush_target.
5868 (procfs_init_inferior): Don't push the target if it is already
5869 pushed.
5870 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5871 if it is already pushed.
5872
5873 2014-05-21 Pedro Alves <palves@redhat.com>
5874
5875 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5876 and "procfs" targets are now called "native" instead.
5877
5878 2014-05-21 Pedro Alves <palves@redhat.com>
5879
5880 * go32-nat.c (go32_open): Delete.
5881 (go32_target): Don't override the to_open method.
5882
5883 2014-05-21 Pedro Alves <palves@redhat.com>
5884
5885 * nto-procfs.c (procfs_can_run): New function.
5886 (nto_procfs_ops): New global.
5887 (init_procfs_targets): New, based on procfs_target. Install
5888 "target native" in addition to "target procfs".
5889 (_initialize_procfs): Call init_procfs_targets instead of adding
5890 the target here.
5891
5892 2014-05-21 Pedro Alves <palves@redhat.com>
5893
5894 * windows-nat.c (windows_target): Don't override to_shortname,
5895 to_longname or to_doc.
5896
5897 2014-05-21 Pedro Alves <palves@redhat.com>
5898
5899 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5900 to_doc.
5901
5902 2014-05-21 Pedro Alves <palves@redhat.com>
5903
5904 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5905 to_shortname, to_longname or to_doc.
5906
5907 2014-05-21 Pedro Alves <palves@redhat.com>
5908
5909 * go32-nat.c (go32_target): Don't override to_shortname,
5910 to_longname or to_doc.
5911
5912 2014-05-21 Pedro Alves <palves@redhat.com>
5913
5914 * inf-child.c (inf_child_open): Remove mention of "child".
5915 (inf_child_target): Rename target to "native" instead of "child".
5916
5917 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5918
5919 * Makefile.in (SFILES): Delete "regset.c".
5920 (COMMON_OBS): Delete "regset.o".
5921 * regset.c: Remove.
5922 * regset.h (regset_alloc): Delete prototype.
5923
5924 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5925
5926 * sparc-linux-tdep.c (sparc32_linux_gregset)
5927 (sparc32_linux_fpregset): New static regset structures.
5928 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5929 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5930 'fpregset' fields.
5931 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5932 (sparc64_linux_fpregset): New static regset structures.
5933 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5934 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5935 New static regset structures.
5936 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5937 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5938 New static regset structures.
5939 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5940 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5941 New static regset structures.
5942 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5943 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5944 New static regset structures.
5945 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5946
5947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5948
5949 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5950 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5951 register maps ("regmaps") from "*regset" to "*regmap". Do this
5952 for all regmap types and variables.
5953 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5954 (sparc32_linux_supply_core_gregset)
5955 (sparc32_linux_collect_core_gregset)
5956 (sparc32_linux_supply_core_fpregset)
5957 (sparc32_linux_collect_core_fpregset): Likewise.
5958 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5959 (sparc_gregmap, sparc_fpregmap): ... these.
5960 (sparc_supply_gregset, sparc_collect_gregset)
5961 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5962 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5963 (_initialize_sparc_nat): Rename regmaps.
5964 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5965 (sparc_gregmap, sparc_fpregmap): ... these.
5966 (sparc_supply_gregset, sparc_collect_gregset)
5967 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5968 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5969 Rename macros to...
5970 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5971 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5972 Likewise.
5973 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5974 Rename to...
5975 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5976 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5977 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5978 regmaps.
5979 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5980 (sparc32_bsd_fpregset): Rename to...
5981 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5982 (sparc32_bsd_fpregmap): ... these.
5983 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5984 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5985 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5986 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5987 (struct sparc_gregmap, struct sparc_fpregmap)
5988 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5989 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5990 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5991 (sparc32_supply_regset, sparc32_collect_gregset)
5992 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5993 prototypes.
5994 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5995 (sparc64_linux_ptrace_gregmap): ... this.
5996 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5997 (_initialize_sparc64_linux_nat): Rename regmaps.
5998 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5999 (sparc64_linux_core_gregmap): ... this.
6000 (sparc64_linux_supply_core_gregset)
6001 (sparc64_linux_collect_core_gregset)
6002 (sparc64_linux_supply_core_fpregset)
6003 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6004 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6005 (sparc64_sol2_fpregset): Rename to...
6006 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6007 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6008 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6009 regmaps.
6010 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6011 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6012 (sparc64_bsd_fpregset): Rename to...
6013 (struct sparc_gregmap, sparc64_sol2_gregmap)
6014 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6015 (sparc64_bsd_fpregmap): ... these.
6016 (sparc64_supply_gregset, sparc64_collect_gregset)
6017 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6018 prototypes.
6019 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6020 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6021 (sparc64fbsd_gregmap): ... this.
6022 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6023 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6024 Rename regmaps.
6025 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6026 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6027 (sparc64nbsd_collect_fpregset): Likewise.
6028 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6029 (sparc64nbsd_gregmap): ... this.
6030 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6031 regmaps.
6032 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6033 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6034 (sparc64obsd_gregmap): ... this.
6035 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6036 regmaps.
6037 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6038 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6039 (sparc32nbsd_gregmap): ... this.
6040 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6041 regmaps.
6042
6043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6044
6045 * score-tdep.c (score7_linux_gregset): New static regset
6046 structure.
6047 (score7_linux_regset_from_core_section): Remove dynamic regset
6048 allocation.
6049 (score_gdbarch_init): Drop allocation of tdep structure.
6050 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6051
6052 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6053
6054 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6055 regset structures.
6056 (am33_regset_from_core_section): Remove dynamic regset
6057 allocations.
6058
6059 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6060
6061 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6062 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6063 structures.
6064 (mips_linux_regset_from_core_section): Remove dynamic regset
6065 allocations.
6066 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6067 'gregset64', 'fpregset', and 'fpregset64'.
6068 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6069 deleted tdep fields.
6070
6071 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6072
6073 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6074 regset structures.
6075 (amd64_regset_from_core_section): Remove dynamic regset
6076 allocations.
6077 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6078 structure.
6079 (amd64obsd_regset_from_core_section): Remove dynamic regset
6080 allocation.
6081 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6082 Likewise.
6083 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6084 x86-common regset supply function.
6085 * i386-tdep.c (i386_collect_gregset): Make static.
6086 (i386_gregset): New global regset structure.
6087 (i386_fpregset, i386_xstateregset): New static regset structures.
6088 (i386_regset_from_core_section): Remove dynamic regset
6089 allocations.
6090 (i386_gdbarch_init): Remove initialization of tdep fields
6091 'gregset', 'fpregset', and 'xstateregset'.
6092 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6093 'fpregset', and 'xstateregset'.
6094 (i386_collect_gregset): Remove prototype.
6095 (i386_gregset): New declaration.
6096 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6097 structure.
6098 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6099 allocation.
6100
6101 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6102
6103 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6104 (arm_linux_vfpregset): New static regset structures.
6105 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6106 regset structures.
6107 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6108 and 'vfpregset' fields.
6109
6110 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6111
6112 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6113 (aarch64_linux_fpregset): New static regset structures.
6114 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6115 of regset structures.
6116 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6117 'fpregset' fields.
6118
6119 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6120
6121 * regset.h (struct regset): Remove gdbarch field.
6122 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6123 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6124 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6125 Likewise.
6126 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6127 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6128 (ppc32_linux_vsxregset): Likewise.
6129 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6130 via the regcache instead of the regset.
6131 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6132 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6133 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6134 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6135 Likewise.
6136
6137 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6138
6139 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6140 Constify structures.
6141 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6142 (alphanbsd_aout_gregset): Likewise.
6143 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6144 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6145 Likewise.
6146 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6147 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6148 Likewise.
6149 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6150 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6151 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6152 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6153 * m88k-tdep.c (m88k_gregset): Likewise.
6154 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6155 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6156 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6157 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6158 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6159 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6160 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6161 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6162 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6163 Likewise.
6164 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6165 * sh-tdep.h (sh_corefile_gregset): Likewise.
6166 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6167 * vax-tdep.c (vax_gregset): Likewise.
6168
6169 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6170
6171 Fix TLS access for -static -pthread.
6172 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6173 (try_thread_db_load_1): Initialize it.
6174 (thread_db_get_thread_local_address): Call it if LM is zero.
6175 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6176 * target.h (struct target_ops) (to_get_thread_local_address): Add
6177 load_module_addr comment.
6178
6179 2014-05-21 Pedro Alves <palves@redhat.com>
6180
6181 * dcache.c (dcache_read_memory_partial): If reading the cache line
6182 fails, fallback to reading just the memory the caller wanted.
6183
6184 2014-05-20 Doug Evans <dje@google.com>
6185
6186 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6187 instead of get_current_arch.
6188
6189 2014-05-20 Pedro Alves <palves@redhat.com>
6190
6191 * NEWS: Mention that compare-sections now works with all targets.
6192
6193 * remote.c (PACKET_qCRC): New enum value.
6194 (remote_verify_memory): Don't send qCRC if the target has no
6195 execution. Use packet_support/packet_ok. If the target doesn't
6196 support the qCRC packet, fallback to a deep memory copy.
6197 (compare_sections_command): Say "target image" instead of "remote
6198 executable".
6199 (_initialize_remote): Add PACKET_qCRC to the list of config
6200 packets that have no associated command. Extend comment.
6201 * target.c (simple_verify_memory, default_verify_memory): New
6202 function.
6203 * target.h (struct target_ops) <to_verify_memory>: Default to
6204 default_verify_memory.
6205 (simple_verify_memory): New declaration.
6206 * target-delegates.c: Regenerate.
6207
6208 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6209
6210 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6211
6212 2014-05-20 Hui Zhu <hui@codesourcery.com>
6213 Yao Qi <yao@codesourcery.com>
6214
6215 PR backtrace/16558
6216 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6217 and change address of sp and pc.
6218
6219 2014-05-19 Tom Tromey <tromey@redhat.com>
6220
6221 * gdbtypes.c (rank_function): Use XNEWVEC.
6222 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6223
6224 2014-05-19 Doug Evans <dje@google.com>
6225
6226 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6227 build_type_unit_groups and moved closer to only caller. Remove
6228 arguments. All references updated. Remove outdated .gdb_index
6229 comment.
6230 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6231 build_type_psymtabs_1.
6232
6233 2014-05-19 Doug Evans <dje@google.com>
6234
6235 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6236 n_type_unit_groups, all_type_unit_groups. All uses removed.
6237 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6238 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6239 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6240 (add_type_unit_group_to_table): Delete.
6241
6242 2014-05-19 Doug Evans <dje@google.com>
6243
6244 * eval.c (evaluate_subexp_standard): Add some comments.
6245
6246 2014-05-17 Doug Evans <xdje42@gmail.com>
6247
6248 * progspace.c (remove_program_space): Delete, unused.
6249 * progspace.h (remove_program_space): Ditto.
6250
6251 2014-05-17 Doug Evans <xdje42@gmail.com>
6252
6253 * inferior.c (prune_inferiors): Fix comment.
6254 (remove_inferior_command): Call prune_program_spaces.
6255
6256 2014-05-16 Doug Evans <dje@google.com>
6257
6258 New command line option -D.
6259 * NEWS: Mention it.
6260 * main.c (set_gdb_data_directory): New function.
6261 (captured_main): Recognize -D. Flag error for --data-directory "".
6262 Call set_gdb_data_directory.
6263 (print_gdb_help): Print --data-directory, -D.
6264 * main.h (set_gdb_data_directory): Declare.
6265 * top.c (staged_gdb_datadir): New static global.
6266 (set_gdb_datadir): Call set_gdb_data_directory
6267 (show_gdb_datadir): New function.
6268 (init_main): Update init of data-directory parameter.
6269
6270 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6271
6272 Import the "dirfd" gnulib module.
6273 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6274 * gnulib/aclocal.m4: Update.
6275 * gnulib/config.in: Update.
6276 * gnulib/configure: Update.
6277 * gnulib/import/Makefile.am: Update.
6278 * gnulib/import/Makefile.in: Update.
6279 * gnulib/import/dirfd.c: New.
6280 * gnulib/import/m4/dirfd.m4: New.
6281 * gnulib/import/m4/gnulib-cache.m4: Update.
6282 * gnulib/import/m4/gnulib-comp.m4: Update.
6283
6284 2014-05-16 Pierre Muller <muller@sourceware.org>
6285 Yao Qi <yao@codesourcery.com>
6286
6287 * valprint.c (print_wchar): Move the code on checking whether
6288 W is a printable wide char to the default branch of switch
6289 statement below. Call wchar_printable instead of gdb_iswprint.
6290
6291 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6292
6293 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6294 ldr.w and ldrd instructions.
6295
6296 2014-05-15 Doug Evans <dje@google.com>
6297
6298 * dwarf2read.c (read_structure_type): Delete outdated comments.
6299
6300 2014-05-14 Tom Tromey <tromey@redhat.com>
6301
6302 * macrocmd.c (print_macro_definition): Reindent.
6303
6304 2014-05-13 Doug Evans <xdje42@gmail.com>
6305
6306 * python/py-cmd.c (cmdpy_completer): Add comment.
6307 (completers): Make const.
6308
6309 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6310
6311 * infrun.c (resume): Remove should_resume (unused). Move up
6312 declaration of resume_ptid.
6313
6314 2014-05-13 Tom Tromey <tromey@redhat.com>
6315
6316 * language.h (unop_type_check): Remove.
6317 (binop_type_check): Don't declare.
6318
6319 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6320
6321 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6322 call to regcache_raw_collect.
6323
6324 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6325
6326 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6327 mi_console->quote as the quoting character.
6328
6329 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6330
6331 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6332
6333 2014-04-29 Tom Tromey <tromey@redhat.com>
6334
6335 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6336 "show debug varobj".
6337
6338 2014-05-07 Kyle McMartin <kyle@redhat.com>
6339
6340 Pushed by Joel Brobecker <brobecker@adacore.com>.
6341 * aarch64-tdep.c (aarch64_software_single_step): New function.
6342 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6343 with aarch64_software_single_step.
6344
6345 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6346
6347 GDB 7.7.1 released.
6348
6349 2014-05-05 Keith Seitz <keiths@redhat.com>
6350
6351 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6352 variable or history value is successfully parsed.
6353
6354 2014-05-05 Yao Qi <yao@codesourcery.com>
6355 Pedro Alves <palves@redhat.com>
6356
6357 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6358 address of blocks that intersects the requested range. Trim
6359 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6360 sections.
6361 * ctf.c (ctf_xfer_partial): Likewise.
6362
6363 2014-05-05 Yao Qi <yao@codesourcery.com>
6364
6365 * printcmd.c (display_command): Remove the check to
6366 target_has_execution.
6367
6368 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6369
6370 * ppcobsd-nat.c: Include "obsd-nat.h".
6371 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6372 add_target.
6373 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6374
6375 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6376
6377 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6378 and 16-bit signed and unsigned arguments. Update comment.
6379 (stap_parse_probe_arguments): Extend code to handle such
6380 arguments. Use warning instead of complaint to notify about
6381 unrecognized bitness.
6382
6383 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6384
6385 PR breakpoints/16889
6386 * stap-probe.c (stap_parse_probe_arguments): Simplify
6387 check for non-prefixed probes (i.e., probes whose
6388 arguments do not start with "N@"). Always set the
6389 argument type to a sane value.
6390
6391 2014-05-01 David Taylor <dtaylor@emc.com>
6392
6393 * remote.c (compare_sections_command): Add -r option to compare
6394 all loadable read-only sections.
6395
6396 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6397
6398 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6399 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6400 Update all callers.
6401 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6402 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6403 Remove unused CORE_ADDR argument. Update all callers.
6404
6405 2014-04-29 Pedro Alves <palves@redhat.com>
6406
6407 * remote.c (struct packet_config) <detect>: Extend comment.
6408 (add_packet_config_cmd): Don't set the config's detect or support
6409 fields here.
6410 (init_all_packet_configs): Also initialize the config's 'detect'
6411 field.
6412 (reset_all_packet_configs_support): New function.
6413 (remote_open_1): Call reset_all_packet_configs_support instead of
6414 init_all_packet_configs.
6415 (_initialize_remote): Initialize all packet configs. Assert that
6416 all packets have an associated command, except a few known
6417 outliers.
6418
6419 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6420
6421 * dwarf2read.c (read_subrange_type): Handle dynamic
6422 DW_AT_lower_bound attributes.
6423
6424 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6425
6426 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6427 dynamic bounds before computing its upper bound.
6428 (ada_discrete_type_low_bound): Same as above with the lower bound.
6429
6430 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6431
6432 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6433 range types. Adjust the array handling implementation to
6434 take advantage of this change.
6435 (resolve_dynamic_range): New function, mostly extracted from
6436 resolve_dynamic_bounds.
6437 (resolve_dynamic_array): New function, mostly extracted from
6438 resolve_dynamic_bounds.
6439 (resolve_dynamic_bounds): Delete.
6440 (resolve_dynamic_type): Reimplement. Add handling of
6441 TYPE_CODE_RANGE types.
6442
6443 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6444
6445 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6446 handling of parallel ___XA types.
6447
6448 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6449
6450 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6451 unnecessary second call to static_unwrap_type.
6452
6453 2014-04-27 Hui Zhu <hui@codesourcery.com>
6454
6455 * stack.c (print_frame_info): Call do_gdb_disassembly with
6456 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6457
6458 2014-04-26 Doug Evans <xdje42@gmail.com>
6459
6460 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6461
6462 2014-04-25 Pedro Alves <palves@redhat.com>
6463
6464 PR server/16255
6465 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6466 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6467 and newline from built string.
6468 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6469 (linux_ptrace_attach_fail_reason): ... this.
6470 * linux-nat.c (linux_nat_attach): Adjust to use
6471 linux_ptrace_attach_fail_reason.
6472
6473 2014-04-25 Pedro Alves <palves@redhat.com>
6474
6475 * remote.c (struct remote_state): Remove multi_process_aware,
6476 non_stop_aware, cond_tracepoints, cond_breakpoints,
6477 breakpoint_commands, fast_tracepoints, static_tracepoints,
6478 install_in_trace, disconnected_tracing,
6479 enable_disable_tracepoints, string_tracing, and
6480 augmented_libraries_svr4_read fields.
6481 (remote_multi_process_p): Move further below in the file.
6482 (struct packet_config): Add comments.
6483 (update_packet_config): Delete function.
6484 (show_packet_config_cmd): Use packet_config_support.
6485 (add_packet_config_cmd): Use NULL as set callback.
6486 (packet_ok): "set remote foo-packet"-style commands no longer
6487 change config->supported -- adjust.
6488 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6489 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6490 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6491 (PACKET_QNonStop, PACKET_multiprocess_feature)
6492 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6493 (PACKET_DisconnectedTracing_feature)
6494 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6495 (set_remote_protocol_packet_cmd): Delete function.
6496 (packet_config_support, packet_support): New functions.
6497 (set_remote_protocol_Z_packet_cmd): Don't call
6498 update_packet_config.
6499 (remote_query_attached, remote_pass_signals)
6500 (remote_program_signals, remote_threads_info)
6501 (remote_threads_extra_info, remote_start_remote): Use
6502 packet_support.
6503 (remote_start_remote): Use packet_config_support and
6504 packet_support.
6505 (init_all_packet_configs): Set all packets to unknown support,
6506 instead of calling update_packet_config.
6507 (remote_check_symbols): Use packet_support.
6508 (remote_supported_packet): Unconditionally set the packet config's
6509 support status.
6510 (remote_multi_process_feature, remote_non_stop_feature)
6511 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6512 (remote_breakpoint_commands_feature)
6513 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6514 (remote_install_in_trace_feature)
6515 (remote_disconnected_tracing_feature)
6516 (remote_enable_disable_tracepoint_feature)
6517 (remote_string_tracing_feature)
6518 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6519 (remote_protocol_features): Adjust to use remote_supported_packet
6520 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6521 "ConditionalTracepoints", "ConditionalBreakpoints",
6522 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6523 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6524 "EnableDisableTracepoints", and "tracenz".
6525 (remote_query_supported): Use packet_support.
6526 (remote_open_1): Adjust.
6527 (extended_remote_attach_1): Use packet_support. Switch on the
6528 result of packet_ok instead of checking whether the packet ended
6529 up disabled.
6530 (remote_vcont_resume): Use packet_support.
6531 (remote_resume, remote_stop_ns, fetch_register_using_p)
6532 (remote_prepare_to_store, store_register_using_P)
6533 (check_binary_download, remote_write_bytes): Use packet_support.
6534 (remote_vkill): Use packet_support. Switch on the result of
6535 packet_ok instead of checking whether the packet ended up
6536 disabled.
6537 (extended_remote_supports_disable_randomization): Use
6538 packet_support.
6539 (extended_remote_run): Switch on the result of packet_ok instead
6540 of checking whether the packet ended up disabled.
6541 (remote_insert_breakpoint, remote_remove_breakpoint)
6542 (remote_insert_watchpoint, remote_remove_watchpoint)
6543 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6544 packet_support.
6545 (remote_search_memory): Use packet_config_support.
6546 (remote_get_thread_local_address, remote_get_tib_address)
6547 (remote_hostio_send_command, remote_can_execute_reverse): Use
6548 packet_support.
6549 (remote_supports_cond_tracepoints)
6550 (remote_supports_cond_breakpoints)
6551 (remote_supports_fast_tracepoints)
6552 (remote_supports_static_tracepoints)
6553 (remote_supports_install_in_trace)
6554 (remote_supports_enable_disable_tracepoint)
6555 (remote_supports_string_tracing)
6556 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6557 the packet config says the feature is enabled or disabled.
6558 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6559 (remote_get_trace_status): Use packet_support.
6560 (remote_set_disconnected_tracing): Adjust to check whether the
6561 feature is enabled with packet_support.
6562 (remote_set_trace_buffer_size, remote_use_agent)
6563 (remote_can_use_agent, remote_supports_btrace): Use
6564 packet_support.
6565 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6566 Use packet_config_support.
6567 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6568 the packet config says the feature is enabled or disabled.
6569 (set_range_stepping): Use packet_support.
6570
6571 2014-04-25 Tom Tromey <tromey@redhat.com>
6572
6573 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6574 argument.
6575
6576 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6577
6578 * NEWS: Mention support for C99 variable length arrays.
6579
6580 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6581
6582 * ada-lang.c (standard_exc): Expand introductory comment.
6583
6584 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6585 Walfred Tedeschi <walfred.tedeschi@intel.com>
6586
6587 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6588 AVX512 registers.
6589 (amd64_linux_read_description): Add code to handle AVX512 xstate
6590 mask and return respective tdesc.
6591 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6592 and features/i386/x32-avx512-linux.c.
6593 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6594 (amd64_linux_core_read_description): Add code to handle AVX512
6595 xstate mask and return respective tdesc.
6596 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6597 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6598 calculation.
6599 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6600 (tdesc_amd64_avx512_linux): New prototype.
6601 (tdesc_x32_avx512_linux): Likewise.
6602 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6603 features/i386/x32-avx512.c.
6604 (amd64_ymm_avx512_names): New register names for pseudo
6605 registers YMM16-31.
6606 (amd64_ymmh_avx512_names): New register names for raw registers
6607 YMMH16-31.
6608 (amd64_k_names): New register names for K registers.
6609 (amd64_zmmh_names): New register names for ZMM raw registers.
6610 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6611 (amd64_xmm_avx512_names): New register names for XMM16-31
6612 registers.
6613 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6614 registers.
6615 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6616 if feature is present.
6617 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6618 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6619 (AMD64_NUM_REGS): Adjust to new number of registers.
6620 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6621 registers supplied via XSTATE by AVX512 registers.
6622 (i386_linux_read_description): Add case for AVX512.
6623 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6624 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6625 (i386_linux_core_read_description): Add case for AVX512.
6626 (i386_linux_init_abi): Install supported register note section
6627 for AVX512.
6628 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6629 AVX512.
6630 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6631 registers to be number of zmm7h + 1.
6632 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6633 * i386-tdep.c: Include features/i386/i386-avx512.c.
6634 (i386_zmm_names): Add ZMM pseudo register names array.
6635 (i386_zmmh_names): Add ZMM raw register names array.
6636 (i386_k_names): Add K raw register names array.
6637 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6638 registers. AVX512 has 16 more ZMM registers than there are YMM
6639 registers.
6640 (i386_zmmh_regnum_p): Add function to look up register number of
6641 ZMM raw registers.
6642 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6643 (i386_k_regnum_p): Likewise for K raw registers.
6644 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6645 registers added by AVX512.
6646 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6647 registers added by AVX512.
6648 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6649 added by AVX512.
6650 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6651 (i386_pseudo_register_name): Add ZMM pseudo registers.
6652 (i386_zmm_type): Construct and return vector registers type for ZMM
6653 registers.
6654 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6655 ZMM0-31 pseudo registers and K registers.
6656 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6657 and YMM16-31 registers from register cache.
6658 (i386_pseudo_register_write): Add code to write K, ZMM and
6659 YMM16-31 registers.
6660 (i386_register_reggroup_p): Add code to include/exclude AVX512
6661 registers in/from respective register groups.
6662 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6663 registers if feature is present in xcr0.
6664 (i386_gdbarch_init): Add code to initialize AVX512 feature
6665 variables in tdep structure, wire in pseudo registers and call
6666 initialize_tdesc_i386_avx512.
6667 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6668 variables.
6669 (i386_regnum): Add AVX512 registers.
6670 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6671 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6672 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6673 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6674 512 bits wide.
6675 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6676 (i386_ymm_avx512_regnum_p): Likewise.
6677 (i386_k_regnum_p): Likewise.
6678 (i386_zmm_regnum_p): Likewise.
6679 (i386_zmmh_regnum_p): Likewise.
6680 * i387-tdep.c : Update year in copyright notice.
6681 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6682 XSAVE buffer.
6683 (XSAVE_YMM_AVX512_ADDR): New macro.
6684 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6685 XSAVE buffer.
6686 (XSAVE_XMM_AVX512_ADDR): New macro.
6687 (xsave_avx512_k_offset): New table for K register offsets in
6688 XSAVE buffer.
6689 (XSAVE_AVX512_K_ADDR): New macro.
6690 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6691 in XSAVE buffer.
6692 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6693 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6694 buffer.
6695 (i387_collect_xsave): Add code to collect AVX512 registers from
6696 XSAVE buffer.
6697 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6698 of XMM16-31 registers.
6699 (I387_NUM_K_REGS): New define for number of K registers.
6700 (I387_K0_REGNUM): New define for K0 register number.
6701 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6702 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6703 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6704 registers.
6705 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6706 (I387_XMM16_REGNUM): New define for XMM16 register number.
6707 (I387_YMM0_REGNUM): New define for YMM0 register number.
6708 (I387_KEND_REGNUM): New define for last K register number.
6709 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6710 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6711 number.
6712 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6713 number.
6714 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6715 size.
6716 * features/Makefile: Add AVX512 related files.
6717 * features/i386/32bit-avx512.xml: New file.
6718 * features/i386/64bit-avx512.xml: Likewise.
6719 * features/i386/amd64-avx512-linux.c: Likewise.
6720 * features/i386/amd64-avx512-linux.xml: Likewise.
6721 * features/i386/amd64-avx512.c: Likewise.
6722 * features/i386/amd64-avx512.xml: Likewise.
6723 * features/i386/i386-avx512-linux.c: Likewise.
6724 * features/i386/i386-avx512-linux.xml: Likewise.
6725 * features/i386/i386-avx512.c: Likewise.
6726 * features/i386/i386-avx512.xml: Likewise.
6727 * features/i386/x32-avx512-linux.c: Likewise.
6728 * features/i386/x32-avx512-linux.xml: Likewise.
6729 * features/i386/x32-avx512.c: Likewise.
6730 * features/i386/x32-avx512.xml: Likewise.
6731 * regformats/i386/amd64-avx512-linux.dat: New file.
6732 * regformats/i386/amd64-avx512.dat: Likewise.
6733 * regformats/i386/i386-avx512-linux.dat: Likewise.
6734 * regformats/i386/i386-avx512.dat: Likewise.
6735 * regformats/i386/x32-avx512-linux.dat: Likewise.
6736 * regformats/i386/x32-avx512.dat: Likewise.
6737 * NEWS: Add note about new support for AVX512.
6738
6739
6740 2014-04-23 Pedro Alves <palves@redhat.com>
6741
6742 * breakpoint.c (insert_bp_location): Tolerate errors if the
6743 breakpoint is set in a user-loaded objfile.
6744 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6745 location is marked shlib_disabled. If the breakpoint is set in a
6746 user-loaded objfile is a GDB-side memory breakpoint, validate it
6747 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6748 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6749 flag.
6750 * mem-break.c (memory_validate_breakpoint): New function.
6751 * objfiles.c (userloaded_objfile_contains_address_p): New
6752 function.
6753 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6754 * target.h (memory_validate_breakpoint): New declaration.
6755
6756 2014-04-23 Pedro Alves <palves@redhat.com>
6757
6758 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6759 the breakpoint is set in a shared library, only suppress
6760 errors for software breakpoints, not hardware breakpoints.
6761
6762 2014-04-22 Pedro Alves <palves@redhat.com>
6763
6764 * infrun.c (schedlock_applies): New function, factored out from
6765 find_thread_needs_step_over.
6766 (find_thread_needs_step_over): Use it.
6767 (switch_back_to_stepped_thread): Always clear trap_expected if the
6768 step over is finished. Return early if scheduler locking applies.
6769 Look for the stepping thread and a potential step-over thread with
6770 a single loop.
6771 (currently_stepping_or_nexting_callback): Delete.
6772
6773 2014-04-22 Nick Clifton <nickc@redhat.com>
6774
6775 * NEWS: Mention that ARM sim now supports tracing.
6776
6777 2014-04-22 Yao Qi <yao@codesourcery.com>
6778
6779 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6780 to ...
6781 * tracefile.c (tracefile_fetch_registers): ... it. New
6782 function.
6783 * tracefile.h (tracefile_fetch_registers): Declare.
6784 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6785 tracefile_fetch_registers.
6786
6787 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6788
6789 PR gdb/14018
6790 * windows-nat.c (thread_rec): Don't display a warning when
6791 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6792 fails for any reason, set th->suspended to -1, so that we don't
6793 try to resume such a thread. Also, don't return NULL in these
6794 cases, to avoid completely ruin the session due to "PC register is
6795 not available" error.
6796 (do_windows_fetch_inferior_registers): Check errors in
6797 GetThreadContext call.
6798 (windows_continue): Accept an additional argument KILLED; if not
6799 zero, ignore errors in the SetThreadContext call, since the
6800 inferior was killed and is shutting down.
6801 (windows_resume, get_windows_debug_event)
6802 (windows_create_inferior, windows_mourn_inferior)
6803 (windows_kill_inferior): All callers of windows_continue changed
6804 to adjust to its new calling sequence.
6805
6806 2014-04-19 Yao Qi <yao@codesourcery.com>
6807
6808 * ctf.c (ctf_open): Call post_create_inferior.
6809
6810 2014-04-19 Yao Qi <yao@codesourcery.com>
6811
6812 * ctf.c (handle_id): New static variable.
6813 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6814 value. Get the declaration of event "register" and get length
6815 of field "contents".
6816
6817 2014-04-19 Yao Qi <yao@codesourcery.com>
6818
6819 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6820
6821 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6822
6823 * valops.c (oload_method_static): Remove unnecessary argument
6824 METHOD. Update all callers.
6825
6826 2014-04-18 Pedro alves <palves@redhat.com>
6827 Tom Tromey <tromey@redhat.com>
6828
6829 PR backtrace/15558
6830 * frame.c (get_prev_frame_1): Rename to ...
6831 (get_prev_frame_always): ... this, and make extern. Adjust.
6832 (skip_artificial_frames): Use get_prev_frame_always.
6833 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6834 (get_frame_unwind_stop_reason): Adjust to rename.
6835 * frame.h (get_prev_frame_always): Declare.
6836 * inline-frame.c: Include frame.h.
6837 (inline_frame_this_id): Use get_prev_frame_always.
6838
6839 2014-04-18 Tristan Gingold <gingold@adacore.com>
6840
6841 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6842 code by using bfd_mach_o_get_base_address.
6843
6844 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6845
6846 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6847 (spu_ax_pseudo_register_collect): New function.
6848 (spu_ax_pseudo_register_push_stack): Likewise.
6849 (spu_dwarf_reg_to_regnum): Likewise.
6850 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6851
6852 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6853
6854 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6855 Replace FRAME argument with FRAME_ID.
6856 * gdbarch.c, gdbarch.h: Regenerate.
6857 * findvar.c (default_value_from_register): Add GDBARCH argument;
6858 replace FRAME by FRAME_ID. No longer call get_frame_id.
6859 (value_from_register): Update call to gdbarch_value_from_register.
6860 * value.h (default_value_from_register): Update prototype.
6861 * s390-linux-tdep.c (s390_value_from_register): Update interface
6862 and call to default_value_from_register.
6863 * spu-tdep.c (spu_value_from_register): Likewise.
6864
6865 * findvar.c (address_from_register): Remove TYPE argument.
6866 Do not call value_from_register; use gdbarch_value_from_register
6867 with null_frame_id instead.
6868 * value.h (address_from_register): Update prototype.
6869 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6870 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6871 address_from_register interface change.
6872
6873 2014-04-17 Yao Qi <yao@codesourcery.com>
6874
6875 * gdbtypes.h: Update comments to link to types and macros'
6876 definitions.
6877
6878 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6879
6880 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6881
6882 2014-04-16 Keith Seitz <keiths@redhat.com>
6883
6884 PR gdb/15827
6885 * dwarf2read.c (skip_one_die): Check that all relative-offset
6886 sibling DIEs fall within range of the current reader's buffer.
6887 (read_partial_die): Likewise.
6888
6889 2014-04-16 Keith Seitz <keiths@redhat.com>
6890
6891 PR c++/16597
6892 * cp-namespace.c (lookup_symbol_file): If the type name of
6893 `this' is NULL, return immediately.
6894
6895 2014-04-14 Keith Seitz <keiths@redhat.com>
6896
6897 PR c++/16253
6898 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6899 from symbol_matches_domain in symtab.c. All local callers
6900 of symbol_matches_domain updated.
6901 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6902 search STRUCT_DOMAIN.
6903 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6904 independently. standard_lookup will do that automatically.
6905 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6906 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6907 (cp_lookup_symbol_in_namespace): Likewise.
6908 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6909 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6910 may return a STRUCT_DOMAIN match.
6911 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6912 * cp-support.c: Include language.h.
6913 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6914 VAR_DOMAIN.
6915 * psymtab.c (match_partial_symbol): Compare the requested
6916 domain with the symbol's domain directly.
6917 (lookup_partial_symbol): Likewise.
6918 * symtab.c (lookup_symbol_in_language): Explain when/why
6919 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6920 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6921 appropriate languages.
6922 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6923 and moved to ada-lang.c
6924 (lookup_block_symbol): Explain that this function only returns
6925 symbol matching the requested DOMAIN.
6926 Compare the requested domain with the symbol's domain directly.
6927 (iterate_over_symbols): Compare the requested domain with the
6928 symbol's domain directly.
6929 * symtab.h (symbol_matches_domain): Remove.
6930
6931 2014-04-14 Tom Tromey <tromey@redhat.com>
6932
6933 PR c++/15246:
6934 * c-exp.y (type_aggregate_p): New function.
6935 (qualified_name, classify_inner_name): Use it.
6936 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6937 and TYPE_TARGET_TYPE of an enum type.
6938 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6939 an enum type.
6940 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6941 handle TYPE_DECLARED_CLASS.
6942 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6943 types.
6944 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6945 * valops.c (enum_constant_from_type): New function.
6946 (value_aggregate_elt): Use it.
6947 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6948 TYPE_CODE_ENUM.
6949
6950 2014-04-14 Tom Tromey <tromey@redhat.com>
6951
6952 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6953 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6954 const.
6955 * value.h (value_aggregate_elt): Update.
6956
6957 2014-04-14 Tom Tromey <tromey@redhat.com>
6958
6959 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6960
6961 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6962
6963 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6964 (evaluate_subexp_standard): Pass noside argument.
6965 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6966 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6967 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6968 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6969 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6970
6971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6972
6973 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6974 points to a constant blob.
6975
6976 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6977
6978 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6979 property and store it as the high bound and flag the range accordingly.
6980 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6981 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6982 * gdbtypes.h (enum range_flags): New enum.
6983 (struct range_bounds): Add flags member.
6984
6985 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6986
6987 * c-typeprint.c (c_type_print_varspec_suffix): Added
6988 check for not yet resolved high bound. If unresolved, print
6989 "variable length" string to the console instead of random
6990 length.
6991
6992 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6993
6994 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6995 value.
6996 (ada_template_to_fixed_record_type_1): Likewise.
6997 (ada_to_fixed_type_1): Likewise.
6998 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6999 (cp_print_value): Likewise.
7000 * d-valprint.c (dynamic_array_type): Likewise.
7001 * findvar.c (address_of_variable): Likewise.
7002 * jv-valprint.c (java_value_print): Likewise.
7003 * valops.c (value_ind): Likewise.
7004 * value.c (coerce_ref): Likewise.
7005
7006 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7007
7008 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7009 value and retrieve the dynamic type size.
7010
7011 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7012
7013 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7014 passed to sizeof is dynamic evaluate the argument to compute the length.
7015
7016 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7017 Joel Brobecker <brobecker@adacore.com>
7018
7019 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7020 (dwarf2_evaluate_property): New function.
7021 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7022 * dwarf2read.c (attr_to_dynamic_prop): New function.
7023 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7024 attribute.
7025 * gdbtypes.c: Include dwarf2loc.h.
7026 (is_dynamic_type): New function.
7027 (resolve_dynamic_type): New function.
7028 (resolve_dynamic_bounds): New function.
7029 (get_type_length): New function.
7030 (check_typedef): Use get_type_length to compute type length.
7031 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7032 (TYPE_LOW_BOUND_KIND): New macro.
7033 (is_dynamic_type): New function prototype.
7034 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7035 to resolve dynamic properties of the type. Update comment.
7036 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7037
7038 2014-04-14 Richard Henderson <rth@redhat.com>
7039
7040 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7041
7042 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7043 Doug Evans <xdje42@gmail.com>
7044
7045 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7046 dereference TYPE_CODE_REF values.
7047
7048 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7049
7050 Revert the following changes due to regressions:
7051
7052 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7053 (dwarf2_evaluate_property): New function.
7054 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7055 * dwarf2read.c (attr_to_dynamic_prop): New function.
7056 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7057 attribute.
7058 * gdbtypes.c: Include dwarf2loc.h.
7059 (is_dynamic_type): New function.
7060 (resolve_dynamic_type): New function.
7061 (resolve_dynamic_bounds): New function.
7062 (get_type_length): New function.
7063 (check_typedef): Use get_type_length to compute type length.
7064 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7065 (TYPE_LOW_BOUND_KIND): New macro.
7066 (is_dynamic_type): New function prototype.
7067 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7068 to resolve dynamic properties of the type. Update comment.
7069 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7070
7071 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7072 passed to sizeof is dynamic evaluate the argument to compute the length.
7073
7074 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7075 value and retrieve the dynamic type size.
7076
7077 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7078 (ada_template_to_fixed_record_type_1): Likewise.
7079 (ada_to_fixed_type_1): Likewise.
7080 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7081 (cp_print_value): Likewise.
7082 * d-valprint.c (dynamic_array_type): Likewise.
7083 * eval.c (evaluate_subexp_with_coercion): Likewise.
7084 * findvar.c (address_of_variable): Likewise.
7085 * jv-valprint.c (java_value_print): Likewise.
7086 * valops.c (value_ind): Likewise.
7087 * value.c (coerce_ref): Likewise.
7088
7089 * c-typeprint.c (c_type_print_varspec_suffix): Added
7090 check for not yet resolved high bound. If unresolved, print
7091 "variable length" string to the console instead of random
7092 length.
7093
7094 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7095 property and store it as the high bound and flag the range accordingly.
7096 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7097 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7098 * gdbtypes.h (enum range_flags): New enum.
7099 (struct range_bounds): Add flags member.
7100
7101 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7102 points to a constant blob.
7103
7104 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7105 (evaluate_subexp_standard): Pass noside argument.
7106 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7107 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7108 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7109 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7110 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7111
7112 2014-04-11 Keith Seitz <keiths@redhat.com>
7113
7114 PR c++/16675
7115 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7116 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7117 reference types.
7118
7119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7120
7121 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7122 (evaluate_subexp_standard): Pass noside argument.
7123 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7124 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7125 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7126 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7127 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7128
7129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7130
7131 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7132 points to a constant blob.
7133
7134 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7135
7136 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7137 property and store it as the high bound and flag the range accordingly.
7138 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7139 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7140 * gdbtypes.h (enum range_flags): New enum.
7141 (struct range_bounds): Add flags member.
7142
7143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7144
7145 * c-typeprint.c (c_type_print_varspec_suffix): Added
7146 check for not yet resolved high bound. If unresolved, print
7147 "variable length" string to the console instead of random
7148 length.
7149
7150 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7151
7152 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7153 (ada_template_to_fixed_record_type_1): Likewise.
7154 (ada_to_fixed_type_1): Likewise.
7155 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7156 (cp_print_value): Likewise.
7157 * d-valprint.c (dynamic_array_type): Likewise.
7158 * eval.c (evaluate_subexp_with_coercion): Likewise.
7159 * findvar.c (address_of_variable): Likewise.
7160 * jv-valprint.c (java_value_print): Likewise.
7161 * valops.c (value_ind): Likewise.
7162 * value.c (coerce_ref): Likewise.
7163
7164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7165
7166 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7167 value and retrieve the dynamic type size.
7168
7169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7170
7171 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7172 passed to sizeof is dynamic evaluate the argument to compute the length.
7173
7174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7175
7176 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7177 (dwarf2_evaluate_property): New function.
7178 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7179 * dwarf2read.c (attr_to_dynamic_prop): New function.
7180 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7181 attribute.
7182 * gdbtypes.c: Include dwarf2loc.h.
7183 (is_dynamic_type): New function.
7184 (resolve_dynamic_type): New function.
7185 (resolve_dynamic_bounds): New function.
7186 (get_type_length): New function.
7187 (check_typedef): Use get_type_length to compute type length.
7188 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7189 (TYPE_LOW_BOUND_KIND): New macro.
7190 (is_dynamic_type): New function prototype.
7191 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7192 to resolve dynamic properties of the type. Update comment.
7193 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7194
7195 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7196
7197 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7198 declaring high/low bounds and change uses accordingly. Call
7199 create_range_type instead of create_static_range_type.
7200 * gdbtypes.c (create_range_type): New function.
7201 (create_range_type): Convert bounds into struct bound_prop and pass
7202 them to create_range_type.
7203 * gdbtypes.h (struct bound_prop): New struct.
7204 (create_range_type): New function prototype.
7205 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7206 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7207 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7208 part of the bound.
7209 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7210
7211 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7212
7213 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7214 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7215 * ada-lang.c: All uses of create_range_type updated.
7216 * coffread.c: All uses of create_range_type updated.
7217 * dwarf2read.c: All uses of create_range_type updated.
7218 * f-exp.y: All uses of create_range_type updated.
7219 * m2-valprint.c: All uses of create_range_type updated.
7220 * mdebugread.c: All uses of create_range_type updated.
7221 * stabsread.c: All uses of create_range_type updated.
7222 * valops.c: All uses of create_range_type updated.
7223 * valprint.c: All uses of create_range_type updated.
7224
7225 2014-04-10 Pedro Alves <palves@redhat.com>
7226
7227 * breakpoint.c (single_step_breakpoints)
7228 (single_step_gdbarch): Move up in the file.
7229 (one_breakpoint_xfer_memory): New function, factored out from ...
7230 (breakpoint_xfer_memory): ... here. Also process single-step
7231 breakpoints.
7232
7233 2014-04-09 Tristan Gingold <gingold@adacore.com>
7234
7235 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7236 comments.
7237 (darwin_decode_exception_message): Free port only after use.
7238
7239 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7240
7241 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7242 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7243 when setting the size of call_length.
7244
7245 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7246
7247 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7248 dereference TYPE_CODE_REF values.
7249
7250 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7251
7252 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7253 end of warning message.
7254
7255 2014-04-03 Doug Evans <dje@google.com>
7256
7257 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7258 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7259
7260 2014-04-02 Alan Modra <amodra@gmail.com>
7261
7262 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7263 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7264 (struct symbol_file_add_from_memory_args): Add size field.
7265 (find_vdso_size): New function.
7266 (add_vsyscall_page): Attempt to find vdso size.
7267
7268 2014-04-01 Doug Evans <dje@google.com>
7269
7270 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7271
7272 2014-04-01 Tristan Gingold <gingold@adacore.com>
7273
7274 * darwin-nat.c (darwin_encode_reply): Add prototype.
7275 (darwin_decode_exception_message): Reply to unknown inferiors.
7276 (darwin_decode_message): Handle message by id. Ignore message
7277 to unknown inferior.
7278 (darwin_wait): Discard unknown messages, add debug trace.
7279
7280 2014-03-31 Doug Evans <dje@google.com>
7281
7282 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7283 comp_dir_string.
7284
7285 2014-03-31 Doug Evans <dje@google.com>
7286
7287 New option "set print symbol-loading".
7288 * NEWS: Mention it.
7289 * solib.c (solib_read_symbols): Only print symbol loading messages
7290 if requested.
7291 (solib_add): If symbol loading is in "brief" mode, notify user
7292 symbols are being loaded.
7293 (reload_shared_libraries_1): Ditto.
7294 * symfile.c (print_symbol_loading_off): New static global.
7295 (print_symbol_loading_brief): New static global.
7296 (print_symbol_loading_full): New static global.
7297 (print_symbol_loading_enums): New static global.
7298 (print_symbol_loading): New static global.
7299 (print_symbol_loading_p): New function.
7300 (symbol_file_add_with_addrs): Only print symbol loading messages
7301 if requested.
7302 (_initialize_symfile): Register "print symbol-loading" set/show
7303 command.
7304 * symfile.h (print_symbol_loading_p): Declare.
7305
7306 2014-03-30 Doug Evans <xdje42@gmail.com>
7307
7308 * infrun.c (set_last_target_status): New function.
7309 (handle_inferior_event): Call it.
7310
7311 2014-03-30 Doug Evans <xdje42@gmail.com>
7312
7313 * inferior.h (enum stop_kind): Improve comment.
7314
7315 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7316
7317 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7318 a reference, strip the reference layer before calling
7319 the lang_ops value_has_mutated callback.
7320
7321 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7322
7323 Remove some globals from our parser.
7324 * language.c (unk_lang_parser): Add "struct parser_state"
7325 argument.
7326 * language.h (struct language_defn) <la_parser>: Likewise.
7327 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7328 (initialize_expout): Add "struct parser_state" argument.
7329 Rewrite function to use the parser state.
7330 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7331 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7332 write_exp_elt_longcst, write_exp_elt_dblcst,
7333 write_exp_elt_decfloatcst, write_exp_elt_type,
7334 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7335 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7336 write_dollar_variable): Likewise.
7337 (parse_exp_in_context_1): Use parser state.
7338 (insert_type_address_space): Add "struct parser_state" argument.
7339 Use parser state.
7340 (increase_expout_size): New function.
7341 * parser-defs.h: Forward declare "struct language_defn" and
7342 "struct parser_state".
7343 (expout, expout_size, expout_ptr): Remove extern declarations.
7344 (parse_gdbarch, parse_language): Rewrite macro declarations to
7345 accept the parser state.
7346 (struct parser_state): New struct.
7347 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7348 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7349 write_exp_elt_decfloatcst, write_exp_elt_type,
7350 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7351 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7352 write_exp_msymbol, write_dollar_variable,
7353 mark_struct_expression, insert_type_address_space): Add "struct
7354 parser_state" argument.
7355 (increase_expout_size): New function.
7356 * utils.c (do_clear_parser_state): New function.
7357 (make_cleanup_clear_parser_state): Likewise.
7358 * utils.h (make_cleanup_clear_parser_state): New function
7359 prototype.
7360 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7361 Update calls to write_exp* in order to pass the parser state.
7362 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7363 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7364 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7365 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7366 * stap-probe.c (stap_parse_register_operand): Likewise.
7367 (stap_parse_single_operand): Likewise.
7368 (stap_parse_argument_1): Likewise.
7369 (stap_parse_argument): Use parser state.
7370 * stap-probe.h: Include "parser-defs.h".
7371 (struct stap_parse_info) <pstate>: New field.
7372 * c-exp.y (parse_type): Rewrite to use parser state.
7373 (yyparse): Redefine to c_parse_internal.
7374 (pstate): New global variable.
7375 (parse_number): Add "struct parser_state" argument.
7376 (write_destructor_name): Likewise.
7377 (type_exp): Update calls to write_exp* and similars in order to
7378 use parser state.
7379 (exp1, exp, variable, qualified_name, space_identifier,
7380 typename, typebase): Likewise.
7381 (write_destructor_name, parse_number, lex_one_token,
7382 classify_name, classify_inner_name, c_parse): Add "struct
7383 parser_state" argument. Update function to use parser state.
7384 * c-lang.h: Forward declare "struct parser_state".
7385 (c_parse): Add "struct parser_state" argument.
7386 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7387 (yyparse): Redefine macro to ada_parse_internal.
7388 (pstate): New variable.
7389 (write_int, write_object_renaming, write_var_or_type,
7390 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7391 type_int, type_long, type_long_long, type_float, type_double,
7392 type_long_double, type_char, type_boolean, type_system_address):
7393 Add "struct parser_state" argument.
7394 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7395 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7396 var_or_type, aggregate, aggregate_component_list,
7397 positional_list, others, component_group,
7398 component_associations): Update calls to write_exp* and similar
7399 functions in order to use parser state.
7400 (ada_parse, write_var_from_sym, write_int,
7401 write_exp_op_with_string, write_object_renaming,
7402 find_primitive_type, write_selectors, write_ambiguous_var,
7403 write_var_or_type, write_name_assoc, type_int, type_long,
7404 type_long_long, type_float, type_double, type_long_double,
7405 type_char, type_boolean, type_system_address): Add "struct
7406 parser_state" argument. Adjust function to use parser state.
7407 * ada-lang.c (parse): Likewise.
7408 * ada-lang.h: Forward declare "struct parser_state".
7409 (ada_parse): Add "struct parser_state" argument.
7410 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7411 calls to both functions.
7412 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7413 parser state.
7414 (yyparse): Redefine macro to f_parse_internal.
7415 (pstate): New variable.
7416 (parse_number): Add "struct parser_state" argument.
7417 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7418 and similars in order to use parser state.
7419 (parse_number): Adjust code to use parser state.
7420 (yylex): Likewise.
7421 (f_parse): New function.
7422 * f-lang.h: Forward declare "struct parser_state".
7423 (f_parse): Add "struct parser_state" argument.
7424 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7425 parser state.
7426 (yyparse): Redefine macro for java_parse_internal.
7427 (pstate): New variable.
7428 (push_expression_name, push_expression_name, insert_exp): Add
7429 "struct parser_state" argument.
7430 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7431 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7432 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7433 PostIncrementExpression, PostDecrementExpression,
7434 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7435 UnaryExpressionNotPlusMinus, CastExpression,
7436 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7437 RelationalExpression, EqualityExpression, AndExpression,
7438 ExclusiveOrExpression, InclusiveOrExpression,
7439 ConditionalAndExpression, ConditionalOrExpression,
7440 ConditionalExpression, Assignment, LeftHandSide): Update
7441 calls to write_exp* and similars in order to use parser state.
7442 (parse_number): Ajust code to use parser state.
7443 (yylex): Likewise.
7444 (java_parse): New function.
7445 (push_variable): Add "struct parser_state" argument. Adjust
7446 code to user parser state.
7447 (push_fieldnames, push_qualified_expression_name,
7448 push_expression_name, insert_exp): Likewise.
7449 * jv-lang.h: Forward declare "struct parser_state".
7450 (java_parse): Add "struct parser_state" argument.
7451 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7452 parser state.
7453 (yyparse): Redefine macro to m2_parse_internal.
7454 (pstate): New variable.
7455 (type_exp, exp, fblock, variable, type): Update calls to
7456 write_exp* and similars to use parser state.
7457 (yylex): Likewise.
7458 (m2_parse): New function.
7459 * m2-lang.h: Forward declare "struct parser_state".
7460 (m2_parse): Add "struct parser_state" argument.
7461 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7462 * objc-lang.h: Forward declare "struct parser_state".
7463 (end_msglist): Add "struct parser_state" argument.
7464 * p-exp.y (parse_type): Rewrite macro to use parser state.
7465 (yyparse): Redefine macro to pascal_parse_internal.
7466 (pstate): New variable.
7467 (parse_number): Add "struct parser_state" argument.
7468 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7469 write_exp* and similars in order to use parser state.
7470 (parse_number, yylex): Adjust code to use parser state.
7471 (pascal_parse): New function.
7472 * p-lang.h: Forward declare "struct parser_state".
7473 (pascal_parse): Add "struct parser_state" argument.
7474 * go-exp.y (parse_type): Rewrite macro to use parser state.
7475 (yyparse): Redefine macro to go_parse_internal.
7476 (pstate): New variable.
7477 (parse_number): Add "struct parser_state" argument.
7478 (type_exp, exp1, exp, variable, type): Update calls to
7479 write_exp* and similars in order to use parser state.
7480 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7481 to use parser state.
7482 (go_parse): Likewise.
7483 * go-lang.h: Forward declare "struct parser_state".
7484 (go_parse): Add "struct parser_state" argument.
7485
7486 2014-03-27 Doug Evans <dje@google.com>
7487
7488 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7489
7490 2014-03-27 Doug Evans <dje@google.com>
7491
7492 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7493 Remove argument abbrev_section. All callers updated.
7494
7495 2014-03-27 Doug Evans <dje@google.com>
7496
7497 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7498 addr_base, ranges_base.
7499
7500 2014-03-26 Keith Seitz <keiths@redhat.com>
7501
7502 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7503 types, not VAR_DOMAIN.
7504
7505 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7506
7507 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7508 "ra" registers.
7509 * features/nios2-linux.c: Regenerated.
7510 * features/nios2.c: Regenerated.
7511
7512 2014-03-25 Pedro Alves <palves@redhat.com>
7513
7514 * cli/cli-script.c (script_from_file): Force the interpreter to
7515 sync mode.
7516
7517 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7518
7519 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7520 small stack allocation.
7521
7522 2014-03-24 Tristan Gingold <gingold@adacore.com>
7523
7524 * darwin-nat.c (exc_server): Remove unused prototype.
7525 (darwin_dump_message): Correctly display data on x86_64.
7526 (darwin_encode_reply): Fix style.
7527 Add comments and fix indentation.
7528
7529 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7530
7531 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7532
7533 2014-03-22 Doug Evans <xdje42@gmail.com>
7534
7535 * infcmd.c: Whitespace fixes.
7536 (interrupt_command): Merge two function comments into one.
7537
7538 2014-03-22 Doug Evans <xdje42@gmail.com>
7539
7540 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7541 All uses updated.
7542
7543 2014-03-22 Yao Qi <yao@codesourcery.com>
7544
7545 * remote.c (target_read_live_memory): Remove.
7546 (memory_xfer_live_readonly_partial): Rename it to
7547 remote_xfer_live_readonly_partial. Remove argument 'object'.
7548 All callers updated. Call remote_read_bytes_1
7549 instead of target_read_live_memory.
7550 * tracepoint.c (set_traceframe_number): Remove.
7551 (make_cleanup_restore_traceframe_number): Likewise .
7552 * tracepoint.h (set_traceframe_number): Remove declaration.
7553 (make_cleanup_restore_traceframe_number): Likewise.
7554
7555 2014-03-22 Yao Qi <yao@codesourcery.com>
7556
7557 * remote.c (remote_read_bytes): Move code on reading from the
7558 remote stub to ...
7559 (remote_read_bytes_1): ... here. New function.
7560
7561 2014-03-22 Yao Qi <yao@codesourcery.com>
7562
7563 * ctf.c (ctf_xfer_partial): Check the return value of
7564 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7565 return TARGET_XFER_UNAVAILABLE.
7566 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7567 * target.c (target_read_live_memory): Move it to remote.c.
7568 (memory_xfer_live_readonly_partial): Likewise.
7569 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7570 * remote.c (target_read_live_memory): Moved from target.c.
7571 (memory_xfer_live_readonly_partial): Likewise.
7572 (remote_read_bytes): Factored out from
7573 memory_xfer_partial_1.
7574
7575 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7576
7577 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7578 NULL pointer.
7579
7580 2014-03-21 Pedro Alves <palves@redhat.com>
7581
7582 * infrun.c (normal_stop): Extend comment.
7583
7584 2014-03-21 Hui Zhu <hui@codesourcery.com>
7585 Pedro Alves <palves@redhat.com>
7586
7587 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7588 static buffer.
7589 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7590 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7591 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7592
7593 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7594
7595 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7596 `z' formatted output modifier.
7597
7598 2014-03-20 Tom Tromey <tromey@redhat.com>
7599 Sergio Durigan Junior <sergiodj@redhat.com>
7600
7601 * probe.c (parse_probes): Turn assert into an ordinary error.
7602 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7603 exceptions when parsing probes. Rearrange the code for clarity.
7604
7605 2014-03-20 Tom Tromey <tromey@redhat.com>
7606
7607 PR gdb/14135
7608 * top.c (execute_command): Only dispatch events if the command
7609 started the target.
7610
7611 2014-03-20 Tom Tromey <tromey@redhat.com>
7612
7613 PR cli/15718
7614 * infcall.c: Include event-top.h.
7615 (run_inferior_call): Call async_disable_stdin if needed.
7616
7617 2014-03-20 Pedro Alves <palves@redhat.com>
7618
7619 * infrun.c (prepare_to_proceed): Delete.
7620 (thread_still_needs_step_over): New function.
7621 (find_thread_needs_step_over): New function.
7622 (proceed): If the current thread needs a step-over, set its
7623 steping_over_breakpoint flag. Adjust to use
7624 find_thread_needs_step_over instead of prepare_to_proceed.
7625 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7626 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7627 breakpoint.
7628 (switch_back_to_stepped_thread): Step over breakpoints of all
7629 threads not the stepping thread, before switching back to the
7630 stepping thread.
7631
7632 2014-03-20 Pedro Alves <palves@redhat.com>
7633
7634 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7635 extern.
7636 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7637 * infrun.c (saved_singlestep_ptid)
7638 (stepping_past_singlestep_breakpoint): Delete.
7639 (resume): Remove stepping_past_singlestep_breakpoint handling.
7640 (proceed): Store the prev_pc of the stepping thread too.
7641 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7642 singlestep_pc.
7643 (enum infwait_states): Delete infwait_thread_hop_state.
7644 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7645 field.
7646 (handle_inferior_event): Adjust.
7647 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7648 handling and the thread-hop code. Before removing single-step
7649 breakpoints, check whether the thread hit a single-step breakpoint
7650 of another thread. If it did, the trap is not a random signal.
7651 (switch_back_to_stepped_thread): If the event thread hit a
7652 single-step breakpoint, unblock it before switching to the
7653 stepping thread. Handle the case of the stepped thread having
7654 advanced already.
7655 (keep_going): Handle the case of the current thread moving past a
7656 single-step breakpoint.
7657
7658 2014-03-20 Pedro Alves <palves@redhat.com>
7659
7660 PR breakpoints/7143
7661 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7662 are being stepped over.
7663 (breakpoint_address_match): Make extern.
7664 * breakpoint.h (breakpoint_address_match): New declaration.
7665 * inferior.h (stepping_past_instruction_at): New declaration.
7666 * infrun.c (struct step_over_info): New type.
7667 (step_over_info): New global.
7668 (set_step_over_info, clear_step_over_info)
7669 (stepping_past_instruction_at): New functions.
7670 (handle_inferior_event): Clear the step-over info when
7671 trap_expected is cleared.
7672 (resume): Remove now stale comment.
7673 (clear_proceed_status): Clear step-over info.
7674 (proceed): Adjust step-over handling to set or clear the step-over
7675 info instead of removing all breakpoints.
7676 (handle_signal_stop): When setting up a thread-hop, don't remove
7677 breakpoints here.
7678 (stop_stepping): Clear step-over info.
7679 (keep_going): Adjust step-over handling to set or clear step-over
7680 info and then always inserting breakpoints, instead of removing
7681 all breakpoints when stepping over one.
7682
7683 2014-03-20 Pedro Alves <palves@redhat.com>
7684
7685 * infrun.c (previous_inferior_ptid): Adjust comment.
7686 (deferred_step_ptid): Delete.
7687 (infrun_thread_ptid_changed, prepare_to_proceed)
7688 (init_wait_for_inferior): Adjust.
7689 (handle_signal_stop): Delete deferred_step_ptid handling.
7690
7691 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7692
7693 PR gdb/15358
7694 * defs.h (sync_quit_force_run): New declaration.
7695 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7696 * event-top.c (async_sigterm_handler): New declaration.
7697 (async_sigterm_token): New variable.
7698 (async_init_signals): Create also async_sigterm_token.
7699 (async_sigterm_handler): New function.
7700 (sync_quit_force_run): New variable.
7701 (handle_sigterm): Replace quit_force call by other calls.
7702 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7703
7704 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7705
7706 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7707 offset into SPE pseudo registers.
7708
7709 2014-03-18 Pedro Alves <palves@redhat.com>
7710
7711 PR gdb/13860
7712 * inferior.h (print_stop_event): Declare.
7713 * infrun.c (print_stop_event): New, factored out from ...
7714 (normal_stop): ... this.
7715 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7716 of bpstat_print/print_stack_frame.
7717
7718 2014-03-17 Tom Tromey <tromey@redhat.com>
7719
7720 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7721
7722 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7723
7724 * ada-lang.c (decode_constrained_packed_array): Perform a
7725 minimal coercion for reference with coerce_ref instead of
7726 ada_coerce_ref.
7727
7728 2014-03-17 Tristan Gingold <gingold@adacore.com>
7729
7730 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7731 (darwin_solib_create_inferior_hook): Emit a warning if version
7732 is unhandled.
7733
7734 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
7735
7736 * python/py-value.c (get_field_flag): Cast flag_name argument to
7737 PyObject_GetAttrString to support Python 2.4.
7738
7739 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7740
7741 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7742 (Global Maintainers): Remove Jan Kratochvil.
7743
7744 2014-03-14 Pedro Alves <palves@redhat.com>
7745
7746 * inferior.h (terminal_ours_for_output): Rename to ...
7747 (child_terminal_ours_for_output): ... this.
7748 (terminal_save_ours): Rename to ...
7749 (child_terminal_save_ours): ... this.
7750 (terminal_ours): Rename to ...
7751 (child_terminal_ours): ... this.
7752 (terminal_inferior): Rename to ...
7753 (child_terminal_inferior): ... this.
7754 (terminal_init_inferior): Rename to ...
7755 (child_terminal_init_inferior): ... this.
7756 (terminal_init_inferior_with_pgrp): Rename to ...
7757 (child_terminal_init_inferior_with_pgrp): ... this.
7758 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7759 (child_terminal_init_with_pgrp): ... this.
7760 (terminal_save_ours): Rename to ...
7761 (child_terminal_save_ours): ... this.
7762 (terminal_init_inferior): Rename to ...
7763 (child_terminal_init): ... this. Adjust.
7764 (terminal_inferior): Rename to ...
7765 (child_terminal_inferior): ... this.
7766 (terminal_ours_for_output): Rename to ...
7767 (child_terminal_ours_for_output): ... this. Adjust.
7768 (terminal_ours): Rename to ...
7769 (child_terminal_ours): ... this.
7770 (terminal_ours_1): Rename to ...
7771 (child_terminal_ours_1): ... this. Adjust.
7772 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7773 * windows-nat.c (do_initial_windows_stuff): Adjust.
7774 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7775 (gnu_terminal_init): ... this. Adjust.
7776 (gnu_target): Adjust.
7777 * inf-child.c (inf_child_target): Adjust.
7778
7779 2014-03-13 Doug Evans <xdje42@gmail.com>
7780
7781 PR guile/16612
7782 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7783 new eq?-hashtab.
7784
7785 2014-03-13 Doug Evans <xdje42@gmail.com>
7786
7787 * value.c (record_latest_value): Call release_value_or_incref
7788 instead of release_value.
7789
7790 2014-03-13 Pedro Alves <palves@redhat.com>
7791
7792 * procfs.c (procfs_target): Don't override to_shortname,
7793 to_longname or to_doc.
7794
7795 2014-03-13 Pedro Alves <palves@redhat.com>
7796
7797 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7798 Unix in user visible strings.
7799
7800 2014-03-12 Stan Shebs <stan@codesourcery.com>
7801
7802 * gdbtypes.h: Annotate comments for Doxygen, add a page
7803 block comment with some general info.
7804
7805 2014-03-12 Pedro Alves <palves@redhat.com>
7806
7807 * infcmd.c (prepare_execution_command): New function, factored out
7808 from several execution commands.
7809 (run_command_1, continue_command, step_1, jump_command)
7810 (signal_command, until_command, advance_command, finish_command)
7811 (attach_command): Use prepare_execution_command.
7812
7813 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7814
7815 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7816 (MAX_BPTS): Define.
7817 (MAX_WPTS): Define.
7818 (struct arm_linux_thread_points): Removed.
7819 (struct arm_linux_process_info): New.
7820 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7821 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7822 (arm_linux_find_breakpoints_by_tid): Removed.
7823 (struct arch_lwp_info): New.
7824 (arm_linux_find_process_pid): New functions.
7825 (arm_linux_add_process): New functions.
7826 (arm_linux_process_info_get): New functions.
7827 (arm_linux_forget_process): New function.
7828 (arm_linux_get_debug_reg_state): New function.
7829 (struct update_registers_data): New.
7830 (update_registers_callback): New function.
7831 (arm_linux_insert_hw_breakpoint1): Updated.
7832 (arm_linux_remove_hw_breakpoint1): Updated.
7833 (arm_linux_insert_hw_breakpoint): Updated.
7834 (arm_linux_remove_hw_breakpoint): Updated.
7835 (arm_linux_insert_watchpoint): Updated.
7836 (arm_linux_remove_watchpoint): Updated.
7837 (arm_linux_new_thread): Updated.
7838 (arm_linux_prepare_to_resume): New function.
7839 (arm_linux_new_fork): New function.
7840 (_initialize_arm_linux_nat): Updated.
7841
7842 2014-03-12 Pedro Alves <palves@redhat.com>
7843
7844 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7845
7846 2014-03-12 Tom Tromey <tromey@redhat.com>
7847
7848 * inf-child.c (return_zero): New function.
7849 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7850 * aix-thread.c (aix_thread_inferior_created): New function.
7851 (aix_thread_attach): Remove.
7852 (init_aix_thread_ops): Don't set to_attach.
7853 (_initialize_aix_thread): Register inferior_created observer.
7854 * corelow.c (init_core_ops): Don't set to_attach or
7855 to_create_inferior.
7856 * exec.c (init_exec_ops): Don't set to_attach or
7857 to_create_inferior.
7858 * infcmd.c (run_command_1): Use find_run_target. Make direct
7859 target calls.
7860 (attach_command): Use find_attach_target. Make direct target
7861 calls.
7862 * record-btrace.c (init_record_btrace_ops): Don't set
7863 to_create_inferior.
7864 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7865 Remove.
7866 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7867 set to_create_inferior.
7868 * target.c (complete_target_initialization): Add assertion.
7869 (target_create_inferior): Remove.
7870 (find_default_attach, find_default_create_inferior): Remove.
7871 (find_attach_target, find_run_target): New functions.
7872 (find_default_is_async_p, find_default_can_async_p)
7873 (target_supports_non_stop, target_attach): Remove.
7874 (init_dummy_target): Don't set to_create_inferior or
7875 to_supports_non_stop.
7876 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7877 TARGET_DEFAULT_FUNC.
7878 <to_create_inferior>: Add comment.
7879 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7880 TARGET_DEFAULT_RETURN.
7881 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7882 (find_attach_target, find_run_target): Declare.
7883 (target_create_inferior): Remove.
7884 (target_has_execution_1): Update comment.
7885 (target_supports_non_stop): Remove.
7886 * target-delegates.c: Rebuild.
7887
7888 2014-03-12 Pedro Alves <palves@redhat.com>
7889
7890 * inf-child.h: Update comment to not mention Unix.
7891
7892 2014-03-12 Pedro Alves <palves@redhat.com>
7893
7894 * inf-child.c: Update top comment to not mention Unix. Add
7895 generic comment describing how this target is meant to be used.
7896 (inf_child_post_attach, inf_child_post_startup_inferior)
7897 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7898 Unix in comment.
7899
7900 2014-03-12 Pedro Alves <palves@redhat.com>
7901
7902 * nto-procfs.c: Include inf-child.h.
7903 (procfs_ops): Delete global.
7904 (procfs_can_run): Delete method.
7905 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7906 target pointer instead of referencing procfs_ops.
7907 (procfs_prepare_to_store): Delete.
7908 (init_procfs_ops): Delete function.
7909 (procfs_target): New function, based on init_procfs_ops, but
7910 inherit inf_child_target.
7911 (_initialize_procfs): Use procfs_target.
7912
7913 2014-03-12 Pedro Alves <palves@redhat.com>
7914
7915 * windows-nat.c: Include inf-child.h.
7916 (windows_ops): Delete global.
7917 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7918 methods.
7919 (init_windows_ops): Delete function.
7920 (windows_target): New function, based on init_windows_ops, but
7921 inherit inf_child_target.
7922 (_initialize_windows_nat): Use windows_target. Install x86
7923 specific target methods here.
7924
7925 2014-03-10 Doug Evans <xdje42@gmail.com>
7926
7927 * guile/guile.c (call_initialize_gdb_module): New function.
7928 (initialize_guile): Replace call to scm_init_guile with call to
7929 scm_with_guile.
7930
7931 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7932
7933 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7934 in call to TYPE_CODE macro.
7935
7936 2014-03-10 Jerome Guitton <guitton@adacore.com>
7937
7938 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7939 Resolve tagged types to full view.
7940
7941 2014-03-10 Hui Zhu <hui@codesourcery.com>
7942
7943 * target.h (target_insert_breakpoint): Remove "hardware" from its
7944 comments.
7945
7946 2014-03-07 Doug Evans <dje@google.com>
7947
7948 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7949
7950 2014-03-07 Doug Evans <dje@google.com>
7951
7952 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7953 Remove unused local comp_dir_attr. Assert exactly one of
7954 stub_comp_unit_die, stub_comp_dir is non-NULL.
7955
7956 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7957
7958 * target.h (complete_target_initialization, add_target):
7959 Add comment.
7960
7961 2014-03-07 Pedro Alves <palves@redhat.com>
7962
7963 * go32-nat.c: Include inf-child.h.
7964 (go32_ops): Delete global.
7965 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7966 Delete methods.
7967 (go32_create_inferior): Push the passed in target pointer instead
7968 of referencing go32_ops.
7969 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7970 (go32_target): New function, based on init_go32_ops, but inherit
7971 inf_child_target.
7972 (_initialize_go32_nat): Use go32_target. Move parts of
7973 init_go32_ops here.
7974
7975 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7976
7977 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7978 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7979 SYMBOL_VALUE_ADDRESS.
7980 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7981
7982 2014-03-06 Yao Qi <yao@codesourcery.com>
7983
7984 * breakpoint.c (get_tracepoint_by_number): Remove argument
7985 optional_p. All callers updated. Adjust comments. Update
7986 output message.
7987 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7988
7989 2014-03-06 Yao Qi <yao@codesourcery.com>
7990
7991 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7992 early if get_number returns zero. Use 'p' instead of 'args'.
7993
7994 2014-03-06 Yao Qi <yao@codesourcery.com>
7995
7996 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7997 message.
7998
7999 2014-03-06 Yao Qi <yao@codesourcery.com>
8000
8001 PR breakpoints/16508
8002 * tracepoint.c (check_trace_running): New function.
8003 (trace_find_command): Move code to check_trace_running and
8004 call check_trace_running.
8005 (trace_find_pc_command): Likewise.
8006 (trace_find_tracepoint_command): Likewise.
8007 (trace_find_line_command): Likewise.
8008 (trace_find_range_command): Likewise.
8009 * tracepoint.h (check_trace_running): Likewise.
8010 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8011
8012 2014-03-06 Yao Qi <yao@codesourcery.com>
8013
8014 * target.h (struct target_ops) <to_traceframe_info>: Use
8015 TARGET_DEFAULT_NORETURN (tcomplain ()).
8016 * target-delegates.c: Regenerated.
8017
8018 2014-03-05 Pedro Alves <palves@redhat.com>
8019
8020 PR gdb/16575
8021 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8022 void. Update comment.
8023 (dcache_xfer_memory): Delete.
8024 (dcache_read_memory_partial): New, based on the read bits of
8025 dcache_xfer_memory.
8026 (dcache_update): Add status parameter. Use ULONGEST for len, and
8027 adjust. Discard cache lines if the reason for the update was
8028 error.
8029 * dcache.h (dcache_xfer_memory): Delete declaration.
8030 (dcache_read_memory_partial): New declaration.
8031 (dcache_update): Update prototype.
8032 * target.c (raw_memory_xfer_partial): Update the dcache here.
8033 (memory_xfer_partial_1): Don't handle dcache writes here.
8034
8035 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8036
8037 * remote-sim.c (gdbsim_load): Add const to prog.
8038
8039 2014-03-03 Tom Tromey <tromey@redhat.com>
8040
8041 * elfread.c (probe_key): Change to bfd_data.
8042 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8043 now per-BFD, not per-objfile.
8044 * stap-probe.c (stap_probe_destroy): Update comment.
8045 (handle_stap_probe): Allocate on the per-BFD obstack.
8046
8047 2014-03-03 Tom Tromey <tromey@redhat.com>
8048
8049 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8050 * breakpoint.c (create_longjmp_master_breakpoint): Use
8051 get_probe_address.
8052 (add_location_to_breakpoint, bkpt_probe_insert_location)
8053 (bkpt_probe_remove_location): Update.
8054 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8055 * elfread.c (elf_symfile_relocate_probe): Remove.
8056 (elf_probe_fns): Update.
8057 (insert_exception_resume_breakpoint): Change type of "probe"
8058 parameter to bound_probe.
8059 (check_exception_resume): Update.
8060 * objfiles.c (objfile_relocate1): Don't relocate probes.
8061 * probe.c (bound_probe_s): New typedef.
8062 (parse_probes): Use get_probe_address. Set sal's objfile.
8063 (find_probe_by_pc): Return a bound_probe.
8064 (collect_probes): Return a VEC(bound_probe_s).
8065 (compare_probes): Update.
8066 (gen_ui_out_table_header_info): Change type of "probes"
8067 parameter. Update.
8068 (info_probes_for_ops): Update.
8069 (get_probe_address): New function.
8070 (probe_safe_evaluate_at_pc): Update.
8071 * probe.h (struct probe_ops) <get_probe_address>: New field.
8072 <set_semaphore, clear_semaphore>: Add objfile parameter.
8073 (struct probe) <objfile>: Remove field.
8074 <arch>: New field.
8075 <address>: Update comment.
8076 (struct bound_probe): New.
8077 (find_probe_by_pc): Return a bound_probe.
8078 (get_probe_address): Declare.
8079 * solib-svr4.c (struct probe_and_action) <address>: New field.
8080 (hash_probe_and_action, equal_probe_and_action): Update.
8081 (register_solib_event_probe): Add address parameter.
8082 (solib_event_probe_at): Update.
8083 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8084 get_probe_address.
8085 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8086 (stap_get_probe_address): New function.
8087 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8088 (compile_probe_arg): Update.
8089 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8090 address.
8091 (handle_stap_probe): Don't relocate the probe.
8092 (stap_relocate): Remove.
8093 (stap_gen_info_probes_table_values): Update.
8094 (stap_probe_ops): Remove stap_relocate.
8095 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8096 (debug_sym_probe_fns): Update.
8097 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8098 * symtab.c (init_sal): Use memset.
8099 * symtab.h (struct symtab_and_line) <objfile>: New field.
8100 * tracepoint.c (start_tracing, stop_tracing): Update.
8101
8102 2014-03-03 Tom Tromey <tromey@redhat.com>
8103
8104 * probe.h (parse_probes, find_probe_by_pc)
8105 (find_probes_in_objfile): Fix comments.
8106
8107 2014-03-02 Doug Evans <xdje42@gmail.com>
8108
8109 * infrun.c (handle_signal_stop): Replace test for
8110 TARGET_WAITKIND_STOPPED with an assert.
8111
8112 2014-03-02 Doug Evans <xdje42@gmail.com>
8113
8114 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8115
8116 2014-03-02 Doug Evans <xdje42@gmail.com>
8117
8118 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8119
8120 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8121
8122 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8123
8124 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8125
8126 * i386obsd-nat.c: Include "obsd-nat.h".
8127 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8128 add_target.
8129 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8130
8131 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8132
8133 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8134
8135 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8136
8137 * mips64obsd-nat.c: Include "obsd-nath".
8138 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8139 add_target
8140 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8141
8142 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8143
8144 * amd64obsd-nat.c: Include "obsd-nat,h.
8145 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8146 add_target.
8147 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8148
8149 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8150
8151 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8152 (find_overload_match): Update call to find_oload_champ.
8153 (find_oload_champ_namespace_loop): Likewise
8154
8155 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8156
8157 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8158
8159 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8160 * config/sparc/obsd64.mh: New file.
8161 * sparc64obsd-nat.c: New file.
8162
8163 * obsd-nat.h: New file.
8164 * obsd-nat.c: New file.
8165 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8166 (ALLDEPFILES): Add obsd-nat.c.
8167
8168 2014-02-28 Tom Tromey <tromey@redhat.com>
8169
8170 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8171 * cli-out.h (cli_ui_out_impl): Now const.
8172 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8173 * ui-out.c (struct ui_out) <impl>: Now const.
8174 (default_ui_out_impl): Now const.
8175 (ui_out_new): Make 'impl' parameter const.
8176 * ui-out.h (ui_out_new): Update.
8177
8178 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8179
8180 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8181
8182 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8183
8184 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8185
8186 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8187
8188 Additional PR 8882 fix.
8189 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8190
8191 2014-02-27 Pedro Alves <palves@redhat.com>
8192
8193 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8194 isn't set.
8195
8196 2014-02-27 Pedro Alves <palves@redhat.com>
8197
8198 PR 12702
8199 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8200 * nat/linux-waitpid.c: Include string.h.
8201 (status_to_str): Moved here and made extern.
8202 * nat/linux-waitpid.h (status_to_str): New declaration.
8203
8204 2014-02-27 Hui Zhu <hui@codesourcery.com>
8205
8206 PR 12702
8207 * infrun.c (ptid_match): Move ...
8208 * common/ptid.c (ptid_match): ... here.
8209 * inferior.h (ptid_match): Move ...
8210 * common/ptid.h (ptid_match): ... here.
8211
8212 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8213
8214 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8215 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8216 gdb_target_obs.
8217
8218 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8219
8220 * obsd-tdep.c (obsd_auxv_parse): New function.
8221 (obsd_init_abi): Set auxv_parse.
8222
8223 * gdbarch.sh (auxv_parse): New.
8224 * gdbarch.h: Regenerated.
8225 * gdbarch.c: Regenerated.
8226 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8227
8228 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8229
8230 * guile/scm-value.c (gdbscm_history_append_x): New function.
8231 (value_functions): Add it.
8232
8233 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8234
8235 * dwarf2read.c (attr_value_as_address): New function.
8236 (dwarf2_find_base_address, read_call_site_scope): Use
8237 attr_value_as_address in place of DW_ADDR.
8238 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8239 the low and high addresses. Slight rework of the handling
8240 of the high pc being a constant form, and limit it to
8241 DWARF verson 4 or higher.
8242 (dwarf2_record_block_ranges): Likewise.
8243 (read_partial_die): Likewise.
8244 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8245
8246 2014-02-26 Tom Tromey <tromey@redhat.com>
8247
8248 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8249
8250 2014-02-26 Tom Tromey <tromey@redhat.com>
8251
8252 * elfread.c (elf_read_minimal_symbols): Return early if
8253 minimal symbols have already been read. Add "ei" parameter.
8254 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8255 * minsyms.c (prim_record_minimal_symbol_full): Update.
8256 * objfiles.h (struct objstats) <n_minsyms>: Move...
8257 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8258 * symmisc.c (print_objfile_statistics): Update.
8259
8260 2014-02-26 Tom Tromey <tromey@redhat.com>
8261
8262 * elfread.c (elf_read_minimal_symbols): New function, from
8263 elf_symfile_read.
8264 (elf_symfile_read): Call it.
8265
8266 2014-02-26 Tom Tromey <tromey@redhat.com>
8267
8268 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8269 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8270 (lookup_minimal_symbol_solib_trampoline)
8271 (lookup_minimal_symbol_by_pc_section_1)
8272 (lookup_minimal_symbol_and_objfile): Update.
8273 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8274 Don't allocate a minimal symbol if minsyms have already been read.
8275 (build_minimal_symbol_hash_tables): Update.
8276 (install_minimal_symbols): Do nothing if minsyms already read.
8277 Use the per-BFD obstack.
8278 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8279 * objfiles.c (allocate_objfile): Call
8280 terminate_minimal_symbol_table later.
8281 (have_minimal_symbols): Update.
8282 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8283 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8284 Move from struct objfile.
8285 <minsyms_read>: New field.
8286 (struct objfile) <msymbols, minimal_symbol_count,
8287 msymbol_hash, msymbol_demangled_hash>: Move.
8288 (ALL_OBJFILE_MSYMBOLS): Update.
8289 * symfile.c (read_symbols): Set minsyms_read.
8290 (reread_symbols): Update.
8291 * symmisc.c (dump_objfile, dump_msymbols): Update.
8292
8293 2014-02-26 Tom Tromey <tromey@redhat.com>
8294
8295 * minsyms.c (msymbols_sort): Remove.
8296 * minsyms.h (msymbols_sort): Remove.
8297 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8298 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8299 * elfread.c (elf_symtab_read): Don't add section offsets.
8300 * xcoffread.c (record_minimal_symbol): Don't add section offset
8301 to minimal symbol address.
8302 * somread.c (text_offset, data_offset): Remove.
8303 (som_symtab_read): Don't add section offsets to minimal symbol
8304 addresses.
8305 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8306 Don't add section offsets to minimal symbols.
8307 * coffread.c (coff_symtab_read): Don't add section offsets
8308 to minimal symbol addresses.
8309 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8310 to minimal symbol addresses.
8311 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8312 section offset to minimal symbol addresses.
8313 * mdebugread.c (parse_partial_symbols): Don't add section
8314 offset to minimal symbol addresses.
8315 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8316 offset to minimal symbol addresses.
8317
8318 2014-02-26 Tom Tromey <tromey@redhat.com>
8319
8320 * ada-lang.c (ada_main_name): Update.
8321 (ada_add_standard_exceptions): Update.
8322 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8323 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8324 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8325 * auxv.c (ld_so_xfer_auxv): Update.
8326 * avr-tdep.c (avr_scan_prologue): Update.
8327 * ax-gdb.c (gen_var_ref): Update.
8328 * blockframe.c (get_pc_function_start)
8329 (find_pc_partial_function_gnu_ifunc): Update.
8330 * breakpoint.c (create_overlay_event_breakpoint)
8331 (create_longjmp_master_breakpoint)
8332 (create_std_terminate_master_breakpoint)
8333 (create_exception_master_breakpoint): Update.
8334 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8335 * c-valprint.c (c_val_print): Update.
8336 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8337 * common/agent.c (agent_look_up_symbols): Update.
8338 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8339 * dwarf2loc.c (call_site_to_target_addr): Update.
8340 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8341 * elfread.c (elf_gnu_ifunc_record_cache)
8342 (elf_gnu_ifunc_resolve_by_got): Update.
8343 * findvar.c (default_read_var_value): Update.
8344 * frame.c (inside_main_func): Update.
8345 * frv-tdep.c (frv_frame_this_id): Update.
8346 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8347 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8348 Update.
8349 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8350 (hppa_hpux_find_dummy_bpaddr): Update.
8351 * hppa-tdep.c (hppa_symbol_address): Update.
8352 * infcmd.c (until_next_command): Update.
8353 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8354 Update.
8355 * linespec.c (minsym_found, add_minsym): Update.
8356 * linux-nat.c (get_signo): Update.
8357 * linux-thread-db.c (inferior_has_bug): Update.
8358 * m32c-tdep.c (m32c_return_value)
8359 (m32c_m16c_address_to_pointer): Update.
8360 * m32r-tdep.c (m32r_frame_this_id): Update.
8361 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8362 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8363 * maint.c (maintenance_translate_address): Update.
8364 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8365 (frob_address): New function.
8366 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8367 frob_address. Rename parameter to "pc_in".
8368 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8369 addresses.
8370 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8371 Update.
8372 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8373 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8374 * objc-lang.c (find_objc_msgsend): Update.
8375 * objfiles.c (objfile_relocate1): Update.
8376 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8377 * p-valprint.c (pascal_val_print): Update.
8378 * parse.c (write_exp_msymbol): Update.
8379 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8380 (ppc_elfv2_skip_entrypoint): Update.
8381 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8382 * printcmd.c (build_address_symbolic, msym_info)
8383 (address_info): Update.
8384 * proc-service.c (ps_pglobal_lookup): Update.
8385 * psymtab.c (find_pc_sect_psymtab_closer)
8386 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8387 Change msymbol parameter to bound_minimal_symbol.
8388 * ravenscar-thread.c (get_running_thread_id): Update.
8389 * remote.c (remote_check_symbols): Update.
8390 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8391 address.
8392 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8393 * solib-dsbt.c (lm_base): Update.
8394 * solib-frv.c (lm_base, main_got): Update.
8395 * solib-irix.c (locate_base): Update.
8396 * solib-som.c (som_solib_create_inferior_hook)
8397 (link_map_start): Update.
8398 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8399 * solib-svr4.c (elf_locate_base, enable_break): Update.
8400 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8401 (flush_ea_cache): Update.
8402 * stabsread.c (define_symbol, scan_file_globals): Update.
8403 * stack.c (find_frame_funname): Update.
8404 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8405 (debug_qf_find_pc_sect_symtab): Update.
8406 * symfile.c (simple_read_overlay_table)
8407 (simple_overlay_update): Update.
8408 * symfile.h (struct quick_symbol_functions)
8409 <find_pc_sect_symtab>: Change type of msymbol to
8410 bound_minimal_symbol.
8411 * symmisc.c (dump_msymbols): Update.
8412 * symtab.c (find_pc_sect_symtab_via_partial)
8413 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8414 (search_symbols, print_msymbol_info): Update.
8415 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8416 (MSYMBOL_VALUE_ADDRESS): Redefine.
8417 (BMSYMBOL_VALUE_ADDRESS): New macro.
8418 * tracepoint.c (scope_info): Update.
8419 * tui/tui-disasm.c (tui_find_disassembly_address)
8420 (tui_get_begin_asm_address): Update.
8421 * valops.c (find_function_in_inferior): Update.
8422 * value.c (value_static_field, value_fn_field): Update.
8423
8424 2014-02-26 Tom Tromey <tromey@redhat.com>
8425
8426 * ada-lang.c (ada_update_initial_language): Update.
8427 (ada_main_name, ada_has_this_exception_support): Update.
8428 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8429 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8430 * arm-tdep.c (arm_skip_stub): Update.
8431 * auxv.c (ld_so_xfer_auxv): Update.
8432 * avr-tdep.c (avr_scan_prologue): Update.
8433 * ax-gdb.c (gen_var_ref): Update.
8434 * breakpoint.c (struct breakpoint_objfile_data)
8435 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8436 type to bound_minimal_symbol.
8437 (create_overlay_event_breakpoint)
8438 (create_longjmp_master_breakpoint)
8439 (create_std_terminate_master_breakpoint)
8440 (create_exception_master_breakpoint): Update.
8441 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8442 * c-exp.y (classify_name): Update.
8443 * coffread.c (coff_symfile_read): Update.
8444 * common/agent.c (agent_look_up_symbols): Update.
8445 * d-lang.c (d_main_name): Update.
8446 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8447 * dec-thread.c (enable_dec_thread): Update.
8448 * dwarf2loc.c (call_site_to_target_addr): Update.
8449 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8450 * eval.c (evaluate_subexp_standard): Update.
8451 * findvar.c (struct minsym_lookup_data) <result>: Change type
8452 to bound_minimal_symbol.
8453 <objfile>: Remove.
8454 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8455 * frame.c (inside_main_func): Update.
8456 * frv-tdep.c (frv_frame_this_id): Update.
8457 * gcore.c (call_target_sbrk): Update.
8458 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8459 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8460 Update.
8461 * go-lang.c (go_main_name): Update.
8462 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8463 (hppa_hpux_find_import_stub_for_addr): Update.
8464 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8465 Update. Change return type.
8466 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8467 type.
8468 * jit.c (jit_breakpoint_re_set_internal): Update.
8469 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8470 Update.
8471 * linux-nat.c (get_signo): Update.
8472 * linux-thread-db.c (inferior_has_bug): Update
8473 * m32c-tdep.c (m32c_return_value)
8474 (m32c_m16c_address_to_pointer): Update.
8475 * m32r-tdep.c (m32r_frame_this_id): Update.
8476 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8477 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8478 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8479 lookup_minimal_symbol. Change return type.
8480 (lookup_minimal_symbol): Remove.
8481 (lookup_bound_minimal_symbol): Update.
8482 (lookup_minimal_symbol_text): Change return type.
8483 (lookup_minimal_symbol_solib_trampoline): Change return type.
8484 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8485 (lookup_minimal_symbol_solib_trampoline): Change return type.
8486 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8487 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8488 (value_nsstring, find_imps): Update.
8489 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8490 * p-lang.c (pascal_main_name): Update.
8491 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8492 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8493 * proc-service.c (ps_pglobal_lookup): Update.
8494 * ravenscar-thread.c (get_running_thread_msymbol): Change
8495 return type.
8496 (has_ravenscar_runtime, get_running_thread_id): Update.
8497 * remote.c (remote_check_symbols): Update.
8498 * sol-thread.c (ps_pglobal_lookup): Update.
8499 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8500 * solib-dsbt.c (lm_base): Update.
8501 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8502 Update.
8503 * solib-irix.c (locate_base): Update.
8504 * solib-som.c (som_solib_create_inferior_hook)
8505 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8506 Update.
8507 * solib-spu.c (spu_enable_break): Update.
8508 * solib-svr4.c (elf_locate_base, enable_break): Update.
8509 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8510 (flush_ea_cache): Update.
8511 * stabsread.c (define_symbol): Update.
8512 * symfile.c (simple_read_overlay_table): Update.
8513 * symtab.c (find_pc_sect_line): Update.
8514 * tracepoint.c (scope_info): Update.
8515 * tui-disasm.c (tui_get_begin_asm_address): Update.
8516 * value.c (value_static_field): Update.
8517
8518 2014-02-26 Tom Tromey <tromey@redhat.com>
8519
8520 * minsyms.c (prim_record_minimal_symbol_full): Use
8521 SET_MSYMBOL_VALUE_ADDRESS.
8522 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8523 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8524 SET_MSYMBOL_VALUE_ADDRESS.
8525 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8526 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8527
8528 2014-02-26 Tom Tromey <tromey@redhat.com>
8529
8530 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8531 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8532 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8533 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8534 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8535 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8536 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8537 * ada-lang.c (ada_main_name): Update.
8538 (ada_lookup_simple_minsym): Update.
8539 (ada_make_symbol_completion_list): Update.
8540 (ada_add_standard_exceptions): Update.
8541 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8542 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8543 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8544 * arm-tdep.c (skip_prologue_function): Update.
8545 (arm_skip_stack_protector, arm_skip_stub): Update.
8546 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8547 (arm_wince_skip_main_prologue): Update.
8548 * auxv.c (ld_so_xfer_auxv): Update.
8549 * avr-tdep.c (avr_scan_prologue): Update.
8550 * ax-gdb.c (gen_var_ref): Update.
8551 * block.c (call_site_for_pc): Update.
8552 * blockframe.c (get_pc_function_start): Update.
8553 (find_pc_partial_function_gnu_ifunc): Update.
8554 * breakpoint.c (create_overlay_event_breakpoint): Update.
8555 (create_longjmp_master_breakpoint): Update.
8556 (create_std_terminate_master_breakpoint): Update.
8557 (create_exception_master_breakpoint): Update.
8558 (resolve_sal_pc): Update.
8559 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8560 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8561 Update.
8562 * c-valprint.c (c_val_print): Update.
8563 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8564 * coffread.c (coff_symfile_read): Update.
8565 * common/agent.c (agent_look_up_symbols): Update.
8566 * dbxread.c (find_stab_function_addr): Update.
8567 (end_psymtab): Update.
8568 * dwarf2loc.c (call_site_to_target_addr): Update.
8569 (func_verify_no_selftailcall): Update.
8570 (tailcall_dump): Update.
8571 (call_site_find_chain_1): Update.
8572 (dwarf_expr_reg_to_entry_parameter): Update.
8573 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8574 (elf_gnu_ifunc_resolve_by_got): Update.
8575 * f-valprint.c (info_common_command): Update.
8576 * findvar.c (read_var_value): Update.
8577 * frame.c (get_prev_frame_1): Update.
8578 (inside_main_func): Update.
8579 * frv-tdep.c (frv_skip_main_prologue): Update.
8580 (frv_frame_this_id): Update.
8581 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8582 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8583 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8584 (gnuv3_skip_trampoline): Update.
8585 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8586 (hppa64_hpux_in_solib_call_trampoline): Update.
8587 (hppa_hpux_skip_trampoline_code): Update.
8588 (hppa64_hpux_search_dummy_call_sequence): Update.
8589 (hppa_hpux_find_import_stub_for_addr): Update.
8590 (hppa_hpux_find_dummy_bpaddr): Update.
8591 * hppa-tdep.c (hppa_symbol_address)
8592 (hppa_lookup_stub_minimal_symbol): Update.
8593 * i386-tdep.c (i386_skip_main_prologue): Update.
8594 (i386_pe_skip_trampoline_code): Update.
8595 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8596 * infcall.c (get_function_name): Update.
8597 * infcmd.c (until_next_command): Update.
8598 * jit.c (jit_breakpoint_re_set_internal): Update.
8599 (jit_inferior_init): Update.
8600 * linespec.c (minsym_found): Update.
8601 (add_minsym): Update.
8602 * linux-fork.c (info_checkpoints_command): Update.
8603 * linux-nat.c (get_signo): Update.
8604 * linux-thread-db.c (inferior_has_bug): Update.
8605 * m32c-tdep.c (m32c_return_value): Update.
8606 (m32c_m16c_address_to_pointer): Update.
8607 (m32c_m16c_pointer_to_address): Update.
8608 * m32r-tdep.c (m32r_frame_this_id): Update.
8609 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8610 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8611 * maint.c (maintenance_translate_address): Update.
8612 * minsyms.c (add_minsym_to_hash_table): Update.
8613 (add_minsym_to_demangled_hash_table): Update.
8614 (msymbol_objfile): Update.
8615 (lookup_minimal_symbol): Update.
8616 (iterate_over_minimal_symbols): Update.
8617 (lookup_minimal_symbol_text): Update.
8618 (lookup_minimal_symbol_by_pc_name): Update.
8619 (lookup_minimal_symbol_solib_trampoline): Update.
8620 (lookup_minimal_symbol_by_pc_section_1): Update.
8621 (lookup_minimal_symbol_and_objfile): Update.
8622 (prim_record_minimal_symbol_full): Update.
8623 (compare_minimal_symbols): Update.
8624 (compact_minimal_symbols): Update.
8625 (build_minimal_symbol_hash_tables): Update.
8626 (install_minimal_symbols): Update.
8627 (terminate_minimal_symbol_table): Update.
8628 (find_solib_trampoline_target): Update.
8629 (minimal_symbol_upper_bound): Update.
8630 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8631 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8632 (mips_skip_pic_trampoline_code): Update.
8633 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8634 * objc-lang.c (selectors_info): Update.
8635 (classes_info): Update.
8636 (find_methods): Update.
8637 (find_imps): Update.
8638 (find_objc_msgsend): Update.
8639 * objfiles.c (objfile_relocate1): Update.
8640 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8641 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8642 * p-valprint.c (pascal_val_print): Update.
8643 * parse.c (write_exp_msymbol): Update.
8644 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8645 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8646 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8647 * printcmd.c (build_address_symbolic): Update.
8648 (sym_info): Update.
8649 (address_info): Update.
8650 * proc-service.c (ps_pglobal_lookup): Update.
8651 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8652 (find_pc_sect_psymtab): Update.
8653 * python/py-framefilter.c (py_print_frame): Update.
8654 * ravenscar-thread.c (get_running_thread_id): Update.
8655 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8656 Update.
8657 * remote.c (remote_check_symbols): Update.
8658 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8659 (rs6000_skip_trampoline_code): Update.
8660 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8661 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8662 * solib-dsbt.c (lm_base): Update.
8663 * solib-frv.c (lm_base): Update.
8664 (main_got): Update.
8665 * solib-irix.c (locate_base): Update.
8666 * solib-som.c (som_solib_create_inferior_hook): Update.
8667 (som_solib_desire_dynamic_linker_symbols): Update.
8668 (link_map_start): Update.
8669 * solib-spu.c (spu_enable_break): Update.
8670 (ocl_enable_break): Update.
8671 * solib-svr4.c (elf_locate_base): Update.
8672 (enable_break): Update.
8673 * spu-tdep.c (spu_get_overlay_table): Update.
8674 (spu_catch_start): Update.
8675 (flush_ea_cache): Update.
8676 * stabsread.c (define_symbol): Update.
8677 (scan_file_globals): Update.
8678 * stack.c (find_frame_funname): Update.
8679 (frame_info): Update.
8680 * symfile.c (simple_read_overlay_table): Update.
8681 (simple_overlay_update): Update.
8682 * symmisc.c (dump_msymbols): Update.
8683 * symtab.c (fixup_section): Update.
8684 (find_pc_sect_line): Update.
8685 (skip_prologue_sal): Update.
8686 (search_symbols): Update.
8687 (print_msymbol_info): Update.
8688 (rbreak_command): Update.
8689 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8690 (completion_list_objc_symbol): Update.
8691 (default_make_symbol_completion_list_break_on): Update.
8692 * tracepoint.c (scope_info): Update.
8693 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8694 (tui_get_begin_asm_address): Update.
8695 * valops.c (find_function_in_inferior): Update.
8696 * value.c (value_static_field): Update.
8697 (value_fn_field): Update.
8698
8699 2014-02-26 Tom Tromey <tromey@redhat.com>
8700
8701 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8702 bound minimal symbols. Move code that knows about minsym
8703 table layout...
8704 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8705 function.
8706 * minsyms.h (minimal_symbol_upper_bound): Declare.
8707 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8708 minimal_symbol_upper_bound.
8709
8710 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8711
8712 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8713 Use the type's name if its basic type does not have a tag.
8714
8715 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8716
8717 * dwarf2read.c (read_subrange_type): Add comment.
8718
8719 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8720
8721 * dwarf2read.c (update_enumeration_type_from_children): New
8722 function, mostly extracted from process_structure_scope.
8723 (read_enumeration_type): Call update_enumeration_type_from_children.
8724 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8725 and flag_flag_enum fields.
8726
8727 2014-02-26 Pedro Alves <palves@redhat.com>
8728
8729 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8730 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8731 to_xfer_partial method.
8732
8733 2014-02-26 Pedro Alves <palves@redhat.com>
8734
8735 * target.c (complete_target_initialization): Don't install
8736 default_xfer_partial as to_xfer_partial hook.
8737 (nomemory): Delete.
8738 (update_current_target): Don't INHERIT nor de_fault
8739 deprecated_xfer_memory. Delete de_fault macro.
8740 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8741 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8742 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8743 field.
8744
8745 2014-02-26 Pedro Alves <palves@redhat.com>
8746
8747 * go32-nat.c (my_write_child): New function.
8748 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8749 (go32_xfer_partial): New function.
8750 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8751 Instead install a to_xfer_partial hook.
8752
8753 2014-02-26 Pedro Alves <palves@redhat.com>
8754
8755 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8756 to_xfer_partial helper. Rewrite.
8757 (procfs_xfer_partial): New function.
8758 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8759 Install a to_xfer_partial hook.
8760
8761 2014-02-26 Pedro Alves <palves@redhat.com>
8762
8763 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8764 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8765 (m32r_xfer_partial): New function.
8766 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8767 Install a to_xfer_partial hook.
8768
8769 2014-02-26 Pedro Alves <palves@redhat.com>
8770
8771 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8772 helper.
8773 (mips_xfer_partial): New function.
8774 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8775 hook. Install a to_xfer_partial hook.
8776
8777 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8778
8779 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8780 * gdbtypes.c (create_array_type_with_stride): New function,
8781 renaming create_array_type, but with an added parameter
8782 called "bit_stride".
8783 (create_array_type): Re-implement using
8784 create_array_type_with_stride.
8785 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8786 and DW_AT_bit_stride attributes.
8787
8788 2014-02-26 Pedro Alves <palves@redhat.com>
8789
8790 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8791 task-specific breakpoints.
8792
8793 2014-02-25 Pedro Alves <palves@redhat.com>
8794
8795 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8796 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8797
8798 2014-02-25 Stan Shebs <stan@codesourcery.com>
8799
8800 * defs.h: Annotate comments for Doxygen.
8801
8802 2014-02-25 Tom Tromey <tromey@redhat.com>
8803
8804 * target.h (target_ignore): Don't declare.
8805 * target.c (target_ignore): Remove.
8806
8807 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8808
8809 PR gdb/16626
8810 * auto-load.c (auto_load_objfile_script_1): Change filename to
8811 debugfile.
8812
8813 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8814
8815 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8816 documentation. Adjust prototype to match the target_ops
8817 to_xfer_partial method. Adjust implementation accordingly.
8818
8819 2014-02-25 Hui Zhu <hui@codesourcery.com>
8820
8821 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8822 to_traceframe_info.
8823
8824 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8825
8826 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8827 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8828 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8829 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8830 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8831 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8832 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8833 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8834 New constants.
8835 (rl78_register_type): Use a data pointer type for SP and
8836 new pseudo registers mentioned above. Use a 16 bit integer
8837 type for all other register pairs.
8838 (rl78_register_name, rl78_g10_register_name): Update for
8839 new pseudo registers.
8840 (rl78_pseudo_register_read): Likewise.
8841 (rl78_pseudo_register_write): Likewise.
8842 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8843 to the newly added pseudo registers.
8844
8845 2014-02-24 Doug Evans <dje@google.com>
8846
8847 * value.c (record_latest_value): Fix comment.
8848 * printcmd.c (print_command_1): Remove code to handle -1 return from
8849 record_latest_value.
8850
8851 2014-02-24 Pedro Alves <palves@redhat.com>
8852
8853 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8854 deprecated_xfer_memory hook.
8855 (procfs_xfer_partial): Call procfs_xfer_memory instead
8856 of the deprecated_xfer_memory target hook.
8857 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8858 helper.
8859
8860 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8861
8862 * windows-nat.c (windows_xfer_shared_libraries): Return
8863 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8864 requested object is TARGET_OBJECT_LIBRARIES.
8865
8866 2014-02-24 Yao Qi <yao@codesourcery.com>
8867
8868 * target.h (enum target_xfer_status)
8869 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8870 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8871 explicitly. New.
8872 * corefile.c (memory_error_message): User updated.
8873 * exec.c (section_table_read_available_memory): Likewise.
8874 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8875 * target.c (target_xfer_status_to_string): Likewise.
8876 (raw_memory_xfer_partial): Likewise.
8877 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8878 * valops.c (read_value_memory): Likewise.
8879 * exec.h: Update comments.
8880
8881 2014-02-24 Yao Qi <yao@codesourcery.com>
8882
8883 * target.c (target_xfer_status_to_string): Rename argument err
8884 to status.
8885 * target.h (target_xfer_status_to_string): Update declaration.
8886 Replace target_xfer_error_to_string with
8887 target_xfer_status_to_string in comment.
8888
8889 2014-02-24 Yao Qi <yao@codesourcery.com>
8890
8891 * mips-linux-nat.c (super_close): Update its type.
8892 (mips_linux_close): Pass 'self' to super_close.
8893
8894 2014-02-24 Yao Qi <yao@codesourcery.com>
8895
8896 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8897 * corefile.c (read_memory): Adjusted.
8898 * target.c (target_write_with_progress): Adjusted.
8899
8900 2014-02-23 Yao Qi <yao@codesourcery.com>
8901
8902 Revert two patches:
8903
8904 2013-10-25 Yao Qi <yao@codesourcery.com>
8905
8906 * remote.c (remote_traceframe_info): Return early if
8907 traceframe is not selected.
8908
8909 2013-07-19 Yao Qi <yao@codesourcery.com>
8910
8911 * target.c (update_current_target): Change the default action
8912 of 'to_traceframe_info' from tcomplain to return_zero.
8913 * target.h (struct target_ops) <to_traceframe_info>: Add more
8914 comments.
8915
8916 2014-02-23 Yao Qi <yao@codesourcery.com>
8917
8918 * valops.c (read_value_memory): Rewrite it. Call
8919 target_xfer_partial in a loop.
8920 * exec.h (section_table_available_memory): Remove declaration.
8921 Move comments to ...
8922 * exec.c (section_table_available_memory): ... here. Make it
8923 static.
8924
8925 2014-02-23 Yao Qi <yao@codesourcery.com>
8926
8927 * exec.c (section_table_read_available_memory): New function.
8928 * exec.h (section_table_read_available_memory): Declare.
8929 * ctf.c (ctf_xfer_partial): Call
8930 section_table_read_available_memory.
8931 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8932
8933 2014-02-23 Yao Qi <yao@codesourcery.com>
8934
8935 * ctf.c (ctf_xfer_partial): Move code to ...
8936 * exec.c (exec_read_partial_read_only): ... it. New function.
8937 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8938 * tracefile.c: Include "exec.h".
8939 * exec.h (exec_read_partial_read_only): Declare.
8940
8941 2014-02-23 Yao Qi <yao@codesourcery.com>
8942
8943 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8944 (tfile_has_memory): Remove.
8945 (init_tfile_ops): Don't set fields to_has_all_memory and
8946 to_has_memory of tfile_ops.
8947 * tracefile.c (tracefile_has_all_memory): New function.
8948 (tracefile_has_memory): New function.
8949 (init_tracefile_ops): Initialize fields to_has_all_memory and
8950 to_has_memory of 'ops'.
8951
8952 2014-02-23 Yao Qi <yao@codesourcery.com>
8953
8954 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8955 (ctf_thread_alive, ctf_get_trace_status): Remove.
8956 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8957 init_tracefile_ops.
8958 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8959 (tfile_has_stack, tfile_has_registers): Remove.
8960 (tfile_thread_alive): Remove.
8961 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8962 init_tracefile_ops.
8963 * tracefile.c (tracefile_has_stack): New function.
8964 (tracefile_has_registers): New function.
8965 (tracefile_thread_alive): New function.
8966 (tracefile_get_trace_status): New function.
8967 (init_tracefile_ops): New function.
8968 * tracefile.h (init_tracefile_ops): Declare.
8969
8970 2014-02-23 Yao Qi <yao@codesourcery.com>
8971
8972 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8973 (O_LARGEFILE): Likewise.
8974 (tfile_ops): Likewise.
8975 (TRACE_HEADER_SIZE): Likewise.
8976 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8977 (cur_data_size): Likewise.
8978 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8979 (tfile_close, tfile_files_info): Likewise.
8980 (tfile_get_trace_status): Likewise.
8981 (tfile_get_tracepoint_status): Likewise.
8982 (tfile_get_traceframe_address): Likewise.
8983 (tfile_trace_find, match_blocktype): Likewise.
8984 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8985 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8986 (tfile_get_trace_state_variable_value): Likewise.
8987 (tfile_has_all_memory, tfile_has_memory): Likewise.
8988 (tfile_has_stack, tfile_has_registers): Likewise.
8989 (tfile_thread_alive, build_traceframe_info): Likewise.
8990 (tfile_traceframe_info, init_tfile_ops): Likewise.
8991 (_initialize_tracepoint): Don't call init_tfile_ops
8992 and add_target_with_completer.
8993 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8994 exec.h, completer.h and filenames.h.
8995 (_initialize_tracefile_tfile): New function.
8996
8997 2014-02-23 Yao Qi <yao@codesourcery.com>
8998
8999 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9000 tracefile-tfile.o.
9001 (HFILES_NO_SRCDIR): Add tracefile.h.
9002 * ctf.c: Include "tracefile.h".
9003 * tracefile.h: New file.
9004 * tracefile.c: New file
9005 * tracefile-tfile.c: New file.
9006 * tracepoint.c: Include "tracefile.h".
9007 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9008 (stop_reason_names): Add const.
9009 (trace_file_writer_xfree): Move it to tracefile.c.
9010 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9011 (trace_save_ctf): Likewise.
9012 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9013 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9014 (tfile_write_header, tfile_write_regblock_type): Likewise.
9015 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9016 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9017 (tfile_write_raw_data, tfile_end): Likewise.
9018 (tfile_trace_file_writer_new): Likewise.
9019 (free_uploaded_tp): Make it extern.
9020 (free_uploaded_tsv): Make it extern.
9021 (_initialize_tracepoint): Move code to register command 'tsave'
9022 to tracefile.c.
9023 * tracepoint.h (stop_reason_names): Declare.
9024 (struct trace_frame_write_ops): Move it to tracefile.h.
9025 (struct trace_file_write_ops): Likewise.
9026 (struct trace_file_writer): Likewise.
9027 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9028
9029 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9030
9031 PR gdb/16594
9032 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9033 process name.
9034 (get_cores_used_by_process): New parameter num_cores, use it.
9035 (linux_xfer_osdata_processes): Pass num_cores to it.
9036 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9037 process name.
9038
9039 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9040
9041 * target.c (memory_xfer_partial): Fix length arg in call to
9042 breakpoint_xfer_memory.
9043
9044 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9045
9046 PR tdep/16397
9047 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9048 number comes after the + or - signs. Adjust length of register
9049 name to be extracted.
9050
9051 2014-02-20 Tom Tromey <tromey@redhat.com>
9052
9053 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9054 (ada_varobj_ops): Mark "extern".
9055
9056 2014-02-20 Tom Tromey <tromey@redhat.com>
9057
9058 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9059
9060 2014-02-20 Doug Evans <xdje42@gmail.com>
9061
9062 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9063 All callers updated.
9064 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9065 All callers updated.
9066 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9067 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9068
9069 2014-02-20 lin zuojian <manjian2006@gmail.com>
9070 Joel Brobecker <brobecker@adacore.com>
9071 Doug Evans <xdje42@gmail.com>
9072
9073 PR symtab/16581
9074 * dwarf2read.c (struct die_info): New member in_process.
9075 (reset_die_in_process): New function.
9076 (process_die): Set it at the start, reset when returning.
9077 (inherit_abstract_dies): Only call process_die if origin_child_die
9078 not already being processed.
9079
9080 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9081
9082 * windows-nat.c (handle_unload_dll): Add function documentation.
9083 (do_initial_windows_stuff): Add comment explaining why we wait
9084 until after inferior initialization has finished before
9085 processing all DLLs.
9086
9087 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9088
9089 * windows-nat.c (get_module_name): Delete.
9090 (windows_get_exec_module_filename): New function, mostly
9091 inspired from get_module_name.
9092 (windows_pid_to_exec_file): Replace call to get_module_name
9093 by call to windows_get_exec_module_filename.
9094
9095 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9096
9097 * windows-nat.c (handle_load_dll): Rewrite this function's
9098 introductory comment. Remove code using get_module_name
9099 to get the DLL's name.
9100
9101 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9102
9103 * windows-nat.c (get_windows_debug_event): Ignore
9104 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9105 if windows_initialization_done == 0.
9106 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9107 Adjust implementation to always load all DLLs.
9108 (do_initial_windows_stuff): Replace call to
9109 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9110
9111 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9112
9113 * windows-nat.c (_initialize_windows_nat): Deprecate the
9114 "dll-symbols" command. Turn the "add-shared-symbol-files"
9115 and "assf" aliases into commands, and deprecate them as well.
9116 * NEWS: Add entry explaining that "dll-symbols" and its two
9117 aliases are now deprecated.
9118
9119 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9120
9121 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9122 new-line in debug string. Remove trailing spaces.
9123
9124 2014-02-19 Stan Shebs <stan@codesourcery.com>
9125
9126 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9127
9128 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9129
9130 * NEWS: Add entry for the new feature
9131 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9132 and class values.
9133
9134 2014-02-19 Stan Shebs <stan@codesourcery.com>
9135
9136 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9137
9138 2014-02-19 Pedro Alves <palves@redhat.com>
9139
9140 * common/ptid.h (struct ptid): Mention that process_stratum
9141 targets should prefer ptid.lwp.
9142
9143 2014-02-19 Pedro Alves <palves@redhat.com>
9144
9145 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9146 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9147 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9148 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9149 store remote thread ids rather than ptid.tid.
9150 (_initialize_remote): Adjust.
9151
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target.c (target_get_unwinder): Rewrite.
9155 (target_get_tailcall_unwinder): Rewrite.
9156 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9157 (record_btrace_to_get_tailcall_unwinder): New function.
9158 (init_record_btrace_ops): Update.
9159 * target.h (struct target_ops) <to_get_unwinder,
9160 to_get_tailcall_unwinder>: Now function pointers. Use
9161 TARGET_DEFAULT_RETURN.
9162
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9166 argument.
9167 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9168
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9172 directly.
9173 * target-delegates.c: Rebuild.
9174 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9175 TARGET_DEFAULT_FUNC.
9176 * target.c (default_target_decr_pc_after_break): Rename from
9177 forward_target_decr_pc_after_break. Simplify.
9178 (target_decr_pc_after_break): Rely on delegation.
9179
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9181
9182 * target.c (update_current_target): Do not INHERIT to_doc or
9183 to_magic. Do not de_fault to_open or to_close.
9184
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * gcore.h (objfile_find_memory_regions): Declare.
9188 * gcore.c (objfile_find_memory_regions): No longer static. Add
9189 "self" argument.
9190 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9191 * exec.c: Include gcore.h.
9192 (exec_set_find_memory_regions): Remove.
9193 (exec_find_memory_regions): Remove.
9194 (exec_do_find_memory_regions): Remove.
9195 (init_exec_ops): Update.
9196 * defs.h (exec_set_find_memory_regions): Remove.
9197
9198 2014-02-19 Tom Tromey <tromey@redhat.com>
9199
9200 * target-delegates.c: Rebuild.
9201 * target.h (struct target_ops) <to_extra_thread_info,
9202 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9203 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9204 not 0, in TARGET_DEFAULT_RETURN.
9205
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target.c (complete_target_initialization): Remove casts. Use
9209 return_zero_has_execution.
9210 (return_zero): Add "ignore" argument.
9211 (return_zero_has_execution): New function.
9212 (init_dummy_target): Remove casts. Use
9213 return_zero_has_execution.
9214
9215 2014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * target.c (update_current_target): Update comments. Do not
9218 INHERIT to_stratum.
9219
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9223 needed.
9224 * corelow.c (core_read_description): Delegate when needed.
9225 * remote.c (remote_read_description): Delegate when needed.
9226 * target-delegates.c: Rebuild.
9227 * target.c (target_read_description): Rewrite.
9228 * target.h (struct target_ops) <to_read_description>: Update
9229 comment. Use TARGET_DEFAULT_RETURN.
9230
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9232
9233 * target-delegates.c: Rebuild.
9234 * target.c (update_current_target): Don't inherit or default
9235 to_can_run.
9236 (find_default_run_target): Check against delegate_can_run.
9237 * target.h (struct target_ops) <to_can_run>: Use
9238 TARGET_DEFAULT_RETURN.
9239
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9241
9242 * target-delegates.c: Rebuild.
9243 * target.c (target_disconnect): Unconditionally delegate.
9244 * target.h (struct target_ops) <to_disconnect>: Use
9245 TARGET_DEFAULT_NORETURN.
9246
9247 2014-02-19 Tom Tromey <tromey@redhat.com>
9248
9249 * record.c (record_stop): Unconditionally delegate.
9250 * target-delegates.c: Rebuild.
9251 * target.c (target_stop_recording): Unconditionally delegate.
9252 * target.h (struct target_ops) <to_stop_recording>: Use
9253 TARGET_DEFAULT_IGNORE.
9254
9255 2014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * target-delegates.c: Rebuild.
9258 * target.c (target_enable_btrace): Unconditionally delegate.
9259 * target.h (struct target_ops) <to_enable_btrace>: Use
9260 TARGET_DEFAULT_NORETURN.
9261
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9263
9264 * target-delegates.c: Rebuild.
9265 * target.c (target_read_btrace): Unconditionally delegate.
9266 * target.h (struct target_ops) <to_read_btrace>: Use
9267 TARGET_DEFAULT_NORETURN.
9268
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target-delegates.c: Rebuild.
9272 * target.c (target_teardown_btrace): Unconditionally delegate.
9273 * target.h (struct target_ops) <to_teardown_btrace>: Use
9274 TARGET_DEFAULT_NORETURN.
9275
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * target-delegates.c: Rebuild.
9279 * target.c (target_disable_btrace): Unconditionally delegate.
9280 * target.h (struct target_ops) <to_disable_btrace>: Use
9281 TARGET_DEFAULT_NORETURN.
9282
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9284
9285 * target-delegates.c: Rebuild.
9286 * target.c (default_search_memory): New function.
9287 (simple_search_memory): Update comment.
9288 (target_search_memory): Unconditionally delegate.
9289 * target.h (struct target_ops) <to_search_memory>: Use
9290 TARGET_DEFAULT_FUNC.
9291
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * auxv.c (default_auxv_parse): No longer static.
9295 (target_auxv_parse): Unconditionally delegate.
9296 * auxv.h (default_auxv_parse): Declare.
9297 * target-delegates.c: Rebuild.
9298 * target.c: Include auxv.h.
9299 * target.h (struct target_ops) <to_auxv_parse>: Use
9300 TARGET_DEFAULT_FUNC.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target-delegates.c: Rebuild.
9305 * target.c (target_memory_map): Unconditionally delegate.
9306 * target.h (struct target_ops) <to_memory_map>: Use
9307 TARGET_DEFAULT_RETURN.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target-delegates.c: Rebuild.
9312 * target.c (target_thread_alive): Unconditionally delegate.
9313 * target.h (struct target_ops) <to_thread_alive>: Use
9314 TARGET_DEFAULT_RETURN.
9315
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * target-delegates.c: Rebuild.
9319 * target.c (target_save_record): Unconditionally delegate.
9320 * target.h (struct target_ops) <to_save_record>: Use
9321 TARGET_DEFAULT_NORETURN.
9322
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9324
9325 * target-delegates.c: Rebuild.
9326 * target.c (target_delete_record): Unconditionally delegate.
9327 * target.h (struct target_ops) <to_delete_record>: Use
9328 TARGET_DEFAULT_NORETURN.
9329
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9331
9332 * target-delegates.c: Rebuild.
9333 * target.c (target_record_is_replaying): Unconditionally
9334 delegate.
9335 * target.h (struct target_ops) <to_record_is_replaying>: Use
9336 TARGET_DEFAULT_RETURN.
9337
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9339
9340 * target-delegates.c: Rebuild.
9341 * target.c (target_goto_record_begin): Unconditionally delegate.
9342 * target.h (struct target_ops) <to_goto_record_begin>: Use
9343 TARGET_DEFAULT_NORETURN.
9344
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9346
9347 * target-delegates.c: Rebuild.
9348 * target.c (target_goto_record_end): Unconditionally delegate.
9349 * target.h (struct target_ops) <to_goto_record_end>: Use
9350 TARGET_DEFAULT_NORETURN.
9351
9352 2014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * target-delegates.c: Rebuild.
9355 * target.c (target_goto_record): Unconditionally delegate.
9356 * target.h (struct target_ops) <to_goto_record>: Use
9357 TARGET_DEFAULT_NORETURN.
9358
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9360
9361 * target-delegates.c: Rebuild.
9362 * target.c (target_insn_history): Unconditionally delegate.
9363 * target.h (struct target_ops) <to_insn_history>: Use
9364 TARGET_DEFAULT_NORETURN.
9365
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target-delegates.c: Rebuild.
9369 * target.c (target_insn_history_from): Unconditionally delegate.
9370 * target.h (struct target_ops) <to_insn_history_from>: Use
9371 TARGET_DEFAULT_NORETURN.
9372
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target-delegates.c: Rebuild.
9376 * target.c (target_insn_history_range): Unconditionally delegate.
9377 * target.h (struct target_ops) <to_insn_history_range>: Use
9378 TARGET_DEFAULT_NORETURN.
9379
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9381
9382 * target-delegates.c: Rebuild.
9383 * target.c (target_call_history): Unconditionally delegate.
9384 * target.h (struct target_ops) <to_call_history>: Use
9385 TARGET_DEFAULT_NORETURN.
9386
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target-delegates.c: Rebuild.
9390 * target.c (target_call_history_from): Unconditionally delegate.
9391 * target.h (struct target_ops) <to_call_history_from>: Use
9392 TARGET_DEFAULT_NORETURN.
9393
9394 2014-02-19 Tom Tromey <tromey@redhat.com>
9395
9396 * target-delegates.c: Rebuild.
9397 * target.c (target_call_history_range): Unconditionally delegate.
9398 * target.h (struct target_ops) <to_call_history_range>: Use
9399 TARGET_DEFAULT_NORETURN.
9400
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9402
9403 * target-delegates.c: Rebuild.
9404 * target.c (target_verify_memory): Unconditionally delegate.
9405 * target.h (struct target_ops) <to_verify_memory>: Use
9406 TARGET_DEFAULT_NORETURN.
9407
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target-delegates.c: Rebuild.
9411 * target.c (target_core_of_thread): Unconditionally delegate.
9412 * target.h (struct target_ops) <to_core_of_thread>: Use
9413 TARGET_DEFAULT_RETURN.
9414
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9416
9417 * target-delegates.c: Rebuild.
9418 * target.c (target_flash_done): Unconditionally delegate.
9419 * target.h (struct target_ops) <to_flash_done>: Use
9420 TARGET_DEFAULT_NORETURN.
9421
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target-delegates.c: Rebuild.
9425 * target.c (target_flash_erase): Unconditionally delegate.
9426 * target.h (struct target_ops) <to_flash_erase>: Use
9427 TARGET_DEFAULT_NORETURN.
9428
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9430
9431 * target-delegates.c: Rebuild.
9432 * target.c (target_get_section_table): Unconditionally delegate.
9433 * target.h (struct target_ops) <to_get_section_table>: Use
9434 TARGET_DEFAULT_RETURN.
9435
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9437
9438 * target-delegates.c: Rebuild.
9439 * target.c (target_pid_to_str): Unconditionally delegate.
9440 (init_dummy_target): Don't initialize to_pid_to_str.
9441 (default_pid_to_str): Rename from dummy_pid_to_str.
9442 * target.h (struct target_ops) <to_pid_to_str>: Use
9443 TARGET_DEFAULT_FUNC.
9444
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target-delegates.c: Rebuild.
9448 * target.c (target_find_new_threads): Unconditionally delegate.
9449 * target.h (struct target_ops) <to_find_new_threads>: Use
9450 TARGET_DEFAULT_RETURN.
9451
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9453
9454 * target-delegates.c: Rebuild.
9455 * target.c (target_program_signals): Unconditionally delegate.
9456 * target.h (struct target_ops) <to_program_signals>: Use
9457 TARGET_DEFAULT_IGNORE.
9458
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * target-delegates.c: Rebuild.
9462 * target.c (target_pass_signals): Unconditionally delegate.
9463 * target.h (struct target_ops) <to_pass_signals>: Use
9464 TARGET_DEFAULT_IGNORE.
9465
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target-delegates.c: Rebuild.
9469 * target.c (default_mourn_inferior): New function.
9470 (target_mourn_inferior): Unconditionally delegate.
9471 * target.h (struct target_ops) <to_mourn_inferior>: Use
9472 TARGET_DEFAULT_FUNC.
9473
9474 2014-02-19 Tom Tromey <tromey@redhat.com>
9475
9476 * target-delegates.c: Rebuild.
9477 * target.c (default_follow_fork): New function.
9478 (target_follow_fork): Unconditionally delegate.
9479 * target.h (struct target_ops) <to_follow_fork>: Use
9480 TARGET_DEFAULT_FUNC.
9481
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9483
9484 * target-delegates.c: Rebuild.
9485 * target.c (target_kill): Unconditionally delegate.
9486 * target.h (struct target_ops) <to_kill>: Use
9487 TARGET_DEFAULT_NORETURN.
9488
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9490
9491 * target-delegates.c: Rebuild.
9492 * target.c (target_masked_watch_num_registers): Unconditionally
9493 delegate.
9494 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9495 Use TARGET_DEFAULT_RETURN.
9496
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9498
9499 * target-delegates.c: Rebuild.
9500 * target.c (target_remove_mask_watchpoint): Unconditionally
9501 delegate.
9502 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9503 TARGET_DEFAULT_RETURN.
9504
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9506
9507 * target-delegates.c: Rebuild.
9508 * target.c (target_insert_mask_watchpoint): Unconditionally
9509 delegate.
9510 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9511 TARGET_DEFAULT_RETURN.
9512
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9514
9515 * target-delegates.c: Rebuild.
9516 * target.c (target_ranged_break_num_registers): Unconditionally
9517 delegate.
9518 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9519 Use TARGET_DEFAULT_RETURN.
9520
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * target-delegates.c: Rebuild.
9524 * target.c (target_fetch_registers): Unconditionally delegate.
9525 * target.h (struct target_ops) <to_fetch_registers>: Use
9526 TARGET_DEFAULT_NORETURN.
9527
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target-delegates.c: Rebuild.
9531 * target.c (update_current_target): Don't inherit or default
9532 to_stop.
9533 * target.h (struct target_ops) <to_stop>: Use
9534 TARGET_DEFAULT_IGNORE.
9535
9536 2014-02-19 Tom Tromey <tromey@redhat.com>
9537
9538 * target-delegates.c: Rebuild.
9539 * target.c (update_current_target): Don't inherit or default
9540 to_can_run_breakpoint_commands.
9541 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9542 Use TARGET_DEFAULT_RETURN.
9543
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target-delegates.c: Rebuild.
9547 * target.c (update_current_target): Don't inherit or default
9548 to_supports_evaluation_of_breakpoint_conditions.
9549 * target.h (struct target_ops)
9550 <to_supports_evaluation_of_breakpoint_conditions>: Use
9551 TARGET_DEFAULT_RETURN.
9552
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9554
9555 * target-delegates.c: Rebuild.
9556 * target.c (update_current_target): Don't inherit or default
9557 to_augmented_libraries_svr4_read.
9558 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9559 Use TARGET_DEFAULT_RETURN.
9560
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9562
9563 * target-delegates.c: Rebuild.
9564 * target.c (update_current_target): Don't inherit or default
9565 to_can_use_agent.
9566 * target.h (struct target_ops) <to_can_use_agent>: Use
9567 TARGET_DEFAULT_RETURN.
9568
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target-delegates.c: Rebuild.
9572 * target.c (update_current_target): Don't inherit or default
9573 to_use_agent.
9574 * target.h (struct target_ops) <to_use_agent>: Use
9575 TARGET_DEFAULT_NORETURN.
9576
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9578
9579 * target-delegates.c: Rebuild.
9580 * target.c (update_current_target): Don't inherit or default
9581 to_traceframe_info.
9582 (return_null): Remove.
9583 * target.h (struct target_ops) <to_traceframe_info>: Use
9584 TARGET_DEFAULT_RETURN.
9585
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target-delegates.c: Rebuild.
9589 * target.c (update_current_target): Don't inherit or default
9590 to_static_tracepoint_markers_by_strid.
9591 * target.h (struct target_ops)
9592 <to_static_tracepoint_markers_by_strid>: Use
9593 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
9600 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9601 Use TARGET_DEFAULT_RETURN.
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_permissions.
9608 * target.h (struct target_ops) <to_set_permissions>: 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_tib_address.
9616 * target.h (struct target_ops) <to_get_tib_address>: Use
9617 TARGET_DEFAULT_NORETURN.
9618
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9620
9621 * target-delegates.c: Rebuild.
9622 * target.c (update_current_target): Don't inherit or default
9623 to_set_trace_notes.
9624 * target.h (struct target_ops) <to_set_trace_notes>: Use
9625 TARGET_DEFAULT_RETURN.
9626
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9628
9629 * target-delegates.c: Rebuild.
9630 * target.c (update_current_target): Don't initialize
9631 to_set_trace_buffer_size.
9632 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9633 TARGET_DEFAULT_IGNORE.
9634
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * target-delegates.c: Rebuild.
9638 * target.c (update_current_target): Don't inherit or default
9639 to_set_circular_trace_buffer.
9640 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9641 TARGET_DEFAULT_IGNORE.
9642
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * target-delegates.c: Rebuild.
9646 * target.c (update_current_target): Don't inherit or default
9647 to_set_disconnected_tracing.
9648 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9649 TARGET_DEFAULT_IGNORE.
9650
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9652
9653 * target-delegates.c: Rebuild.
9654 * target.c (update_current_target): Don't inherit or default
9655 to_get_min_fast_tracepoint_insn_len.
9656 (return_minus_one): Remove.
9657 * target.h (struct target_ops)
9658 <to_get_min_fast_tracepoint_insn_len>: 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_get_raw_trace_data.
9665 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9666 TARGET_DEFAULT_NORETURN.
9667
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target-delegates.c: Rebuild.
9671 * target.c (update_current_target): Don't inherit or default
9672 to_upload_trace_state_variables.
9673 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9674 Use TARGET_DEFAULT_RETURN.
9675
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target-delegates.c: Rebuild.
9679 * target.c (update_current_target): Don't inherit or default
9680 to_upload_tracepoints.
9681 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9682 TARGET_DEFAULT_RETURN.
9683
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9685
9686 * target-delegates.c: Rebuild.
9687 * target.c (update_current_target): Don't inherit or default
9688 to_save_trace_data.
9689 * target.h (struct target_ops) <to_save_trace_data>: Use
9690 TARGET_DEFAULT_NORETURN.
9691
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target-delegates.c: Rebuild.
9695 * target.c (update_current_target): Don't inherit or default
9696 to_get_trace_state_variable_value.
9697 * target.h (struct target_ops)
9698 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9699
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9701
9702 * target-delegates.c: Rebuild.
9703 * target.c (update_current_target): Don't inherit or default
9704 to_trace_find.
9705 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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_trace_stop.
9712 * target.h (struct target_ops) <to_trace_stop>: 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_get_tracepoint_status.
9720 * target.h (struct target_ops) <to_get_tracepoint_status>: 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_get_trace_status.
9728 * target.h (struct target_ops) <to_get_trace_status>: Use
9729 TARGET_DEFAULT_RETURN.
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_trace_start.
9736 * target.h (struct target_ops) <to_trace_start>: Use
9737 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
9744 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9745 Use 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_disable_tracepoint.
9752 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9753 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
9760 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9761 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
9768 * target.h (struct target_ops) <to_download_trace_state_variable>:
9769 Use TARGET_DEFAULT_NORETURN.
9770
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * target-delegates.c: Rebuild.
9774 * target.c (update_current_target): Don't inherit or default
9775 to_can_download_tracepoint.
9776 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9777 TARGET_DEFAULT_RETURN.
9778
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9780
9781 * target-delegates.c: Rebuild.
9782 * target.c (update_current_target): Don't inherit or default
9783 to_download_tracepoint.
9784 * target.h (struct target_ops) <to_download_tracepoint>: Use
9785 TARGET_DEFAULT_NORETURN.
9786
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target-delegates.c: Rebuild.
9790 * target.c (update_current_target): Don't inherit or default
9791 to_trace_init.
9792 * target.h (struct target_ops) <to_trace_init>: Use
9793 TARGET_DEFAULT_RETURN.
9794
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * target-delegates.c: Rebuild.
9798 * target.c (update_current_target): Don't inherit or default
9799 to_supports_string_tracing.
9800 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9801 TARGET_DEFAULT_RETURN.
9802
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9804
9805 * target-delegates.c: Rebuild.
9806 * target.c (update_current_target): Don't inherit or default
9807 to_supports_enable_disable_tracepoint.
9808 * target.h (struct target_ops)
9809 <to_supports_enable_disable_tracepoint>: Use
9810 TARGET_DEFAULT_RETURN.
9811
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9813
9814 * target-delegates.c: Rebuild.
9815 * target.c (update_current_target): Don't inherit or default
9816 to_supports_multi_process.
9817 * target.h (struct target_ops) <to_supports_multi_process>: Use
9818 TARGET_DEFAULT_RETURN.
9819
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9821
9822 * target-delegates.c: Rebuild.
9823 * target.c (update_current_target): Don't inherit or default
9824 to_get_ada_task_ptid.
9825 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9826 TARGET_DEFAULT_FUNC.
9827
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9829
9830 * target-delegates.c: Rebuild.
9831 * target.c (update_current_target): Don't inherit or default
9832 to_thread_architecture.
9833 * target.h (struct target_ops) <to_thread_architecture>: Use
9834 TARGET_DEFAULT_FUNC.
9835
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * target-delegates.c: Rebuild.
9839 * target.c (update_current_target): Don't inherit or default
9840 to_execution_direction.
9841 * target.h (struct target_ops) <to_execution_direction>: Use
9842 TARGET_DEFAULT_FUNC.
9843
9844 2014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target-delegates.c: Rebuild.
9847 * target.c (update_current_target): Don't inherit or default
9848 to_can_execute_reverse.
9849 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9850 TARGET_DEFAULT_RETURN.
9851 (target_can_execute_reverse): Unconditionally delegate.
9852
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target-delegates.c: Rebuild.
9856 * target.c (update_current_target): Don't inherit or default
9857 to_goto_bookmark.
9858 (dummy_goto_bookmark): Remove.
9859 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9860 * target.h (struct target_ops) <to_goto_bookmark>: Use
9861 TARGET_DEFAULT_NORETURN.
9862
9863 2014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target-delegates.c: Rebuild.
9866 * target.c (update_current_target): Don't inherit or default
9867 to_get_bookmark.
9868 (dummy_get_bookmark): Remove.
9869 (init_dummy_target): Don't inherit or default to_get_bookmark.
9870 * target.h (struct target_ops) <to_get_bookmark>: Use
9871 TARGET_DEFAULT_NORETURN
9872
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9874
9875 * target-delegates.c: Rebuild.
9876 * target.c (update_current_target): Don't inherit or default
9877 to_make_corefile_notes.
9878 (init_dummy_target): Don't initialize to_make_corefile_notes.
9879 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9880 TARGET_DEFAULT_FUNC.
9881
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target-delegates.c: Rebuild.
9885 * target.c (update_current_target): Don't inherit or default
9886 to_find_memory_regions.
9887 (init_dummy_target): Don't initialize to_find_memory_regions.
9888 * target.h (struct target_ops) <to_find_memory_regions>: Use
9889 TARGET_DEFAULT_FUNC.
9890
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9892
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9895 to_log_command.
9896 * target.h (struct target_ops) <to_log_command>: Use
9897 TARGET_DEFAULT_IGNORE.
9898 (target_log_command): Unconditionally delegate.
9899
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * target-delegates.c: Rebuild.
9903 * target.c (update_current_target): Don't inherit or default
9904 to_pid_to_exec_file.
9905 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9906 TARGET_DEFAULT_RETURN.
9907
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9909
9910 * target-delegates.c: Rebuild.
9911 * target.c (update_current_target): Don't inherit or default
9912 to_thread_name.
9913 (target_thread_name): Unconditionally delegate.
9914 * target.h (struct target_ops) <to_thread_name>: Use
9915 TARGET_DEFAULT_RETURN.
9916
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9918
9919 * target-delegates.c: Rebuild.
9920 * target.c (update_current_target): Don't inherit or default
9921 to_extra_thread_info.
9922 * target.h (struct target_ops) <to_extra_thread_info>: Use
9923 TARGET_DEFAULT_RETURN.
9924
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target-delegates.c: Rebuild.
9928 * target.c (update_current_target): Don't inherit or default
9929 to_has_exited.
9930 * target.h (struct target_ops) <to_has_exited>: Use
9931 TARGET_DEFAULT_RETURN..
9932
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9934
9935 * target-delegates.c: Rebuild.
9936 * target.c (update_current_target): Don't inherit or default
9937 to_set_syscall_catchpoint.
9938 (return_one): Remove.
9939 * target.h (struct target_ops) <to_set_syscall_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_exec_catchpoint.
9947 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9948 TARGET_DEFAULT_RETURN.
9949
9950 2014-01-08 Tom Tromey <tromey@redhat.com>
9951
9952 * target-delegates.c: Rebuild.
9953 * target.c (update_current_target): Don't inherit or default
9954 to_insert_exec_catchpoint.
9955 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9956 TARGET_DEFAULT_RETURN.
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_remove_vfork_catchpoint.
9963 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9964 TARGET_DEFAULT_RETURN.
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_insert_vfork_catchpoint.
9971 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9972 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
9979 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9980 TARGET_DEFAULT_RETURN.
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_insert_fork_catchpoint.
9987 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9988 TARGET_DEFAULT_RETURN.
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_post_startup_inferior.
9995 * target.h (struct target_ops) <to_post_startup_inferior>: 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_load.
10003 * target.h (struct target_ops) <to_load>: Use
10004 TARGET_DEFAULT_NORETURN.
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_info.
10011 * target.h (struct target_ops) <to_terminal_info>: Use
10012 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
10019 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10020 TARGET_DEFAULT_IGNORE.
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_terminal_ours.
10027 * target.h (struct target_ops) <to_terminal_ours>: Use
10028 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
10035 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10036 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
10043 * target.h (struct target_ops) <to_terminal_inferior>: Use
10044 TARGET_DEFAULT_IGNORE.
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_terminal_init.
10051 * target.h (struct target_ops) <to_terminal_init>: Use
10052 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
10059 * target.h (struct target_ops)
10060 <to_can_accel_watchpoint_condition>: Use 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_region_ok_for_hw_watchpoint.
10067 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10068 Use TARGET_DEFAULT_FUNC.
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_watchpoint_addr_within_range.
10075 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10076 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
10083 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10084 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
10091 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10092 TARGET_DEFAULT_RETURN.
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_remove_hw_breakpoint.
10099 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10100 TARGET_DEFAULT_RETURN.
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_insert_hw_breakpoint.
10107 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10108 TARGET_DEFAULT_RETURN.
10109
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't inherit or default
10114 to_can_use_hw_breakpoint.
10115 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10116 TARGET_DEFAULT_RETURN.
10117
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10119
10120 * target-delegates.c: Rebuild.
10121 * target.c (update_current_target): Don't inherit or default
10122 to_files_info.
10123 * target.h (struct target_ops) <to_files_info>: Use
10124 TARGET_DEFAULT_IGNORE.
10125
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10127
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10130 to_store.
10131 * target.h (struct target_ops) <to_store>: Use
10132 TARGET_DEFAULT_NORETURN.
10133
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10135
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10138 to_post_attach.
10139 * target.h (struct target_ops) <to_post_attach>: Use
10140 TARGET_DEFAULT_IGNORE.
10141
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10143
10144 * target-delegates.c: Rebuild.
10145 * target.c (update_current_target): Don't inherit or default
10146 to_rcmd.
10147 (default_rcmd): New function.
10148 (do_monitor_command): Unconditionally delegate.
10149 * target.h (struct target_ops) <to_rmcd>: Use
10150 TARGET_DEFAULT_FUNC.
10151
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10153
10154 * target-delegates.c: Rebuild.
10155 * target.c (init_dummy_target): Don't initialize to_attach.
10156 (target_attach): Unconditionally delegate.
10157 * target.h (struct target_ops) <to_attach>: Use
10158 TARGET_DEFAULT_FUNC.
10159
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target-delegates.c: Rebuild.
10163 * target.c (target_detach): Unconditionally delegate.
10164 (init_dummy_target): Don't initialize to_detach.
10165 * target.h (struct target_ops) <to_detach>: Use
10166 TARGET_DEFAULT_IGNORE.
10167
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10169
10170 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10171 Add argument.
10172 (target_augmented_libraries_svr4_read): Add argument.
10173 * target.c (update_current_target): Update.
10174 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10175 argument.
10176
10177 2014-02-19 Tom Tromey <tromey@redhat.com>
10178
10179 * target.h (struct target_ops) <to_call_history_range>: Add
10180 argument.
10181 * target.c (target_call_history_range): Add argument.
10182 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10183 argument.
10184 (record_btrace_call_history_from): Update.
10185
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10187
10188 * target.h (struct target_ops) <to_call_history_from>: Add
10189 argument.
10190 * target.c (target_call_history_from): Add argument.
10191 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10192 argument.
10193
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10195
10196 * target.h (struct target_ops) <to_call_history>: Add argument.
10197 * target.c (target_call_history): Add argument.
10198 * record-btrace.c (record_btrace_call_history): Add 'self'
10199 argument.
10200
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10202
10203 * target.h (struct target_ops) <to_insn_history_range>: Add
10204 argument.
10205 * target.c (target_insn_history_range): Add argument.
10206 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10207 argument.
10208 (record_btrace_insn_history_from): Update.
10209
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10211
10212 * target.h (struct target_ops) <to_insn_history_from>: Add
10213 argument.
10214 * target.c (target_insn_history_from): Add argument.
10215 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10216 argument.
10217
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * target.h (struct target_ops) <to_insn_history>: Add argument.
10221 * target.c (target_insn_history): Add argument.
10222 * record-btrace.c (record_btrace_insn_history): Add 'self'
10223 argument.
10224
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10226
10227 * target.h (struct target_ops) <to_goto_record>: Add argument.
10228 * target.c (target_goto_record): Add argument.
10229 * record-full.c (record_full_goto): Add 'self' argument.
10230 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10231
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10233
10234 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10235 * target.c (target_goto_record_end): Add argument.
10236 * record-full.c (record_full_goto_end): Add 'self' argument.
10237 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10238
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target.h (struct target_ops) <to_goto_record_begin>: Add
10242 argument.
10243 * target.c (target_goto_record_begin): Add argument.
10244 * record-full.c (record_full_goto_begin): Add 'self' argument.
10245 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10246 argument.
10247
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10249
10250 * target.h (struct target_ops) <to_record_is_replaying>: Add
10251 argument.
10252 * target.c (target_record_is_replaying): Add argument.
10253 * record-full.c (record_full_is_replaying): Add 'self' argument.
10254 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10255 argument.
10256 (record_btrace_xfer_partial, record_btrace_store_registers)
10257 (record_btrace_prepare_to_store, record_btrace_resume)
10258 (record_btrace_wait, record_btrace_decr_pc_after_break)
10259 (record_btrace_find_new_threads, record_btrace_thread_alive):
10260 Update.
10261
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10263
10264 * target.h (struct target_ops) <to_delete_record>: Add argument.
10265 * target.c (target_delete_record): Add argument.
10266 * record-full.c (record_full_delete): Add 'self' argument.
10267
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10269
10270 * target.h (struct target_ops) <to_save_record>: Add argument.
10271 * target.c (target_save_record): Add argument.
10272 * record-full.c (record_full_save): Add 'self' argument.
10273 (record_full_save): Add 'self' argument.
10274
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target.h (struct target_ops) <to_info_record>: Add argument.
10278 * target.c (target_info_record): Add argument.
10279 * record.c (info_record_command): Add argument.
10280 * record-full.c (record_full_info): Add 'self' argument.
10281 * record-btrace.c (record_btrace_info): Add 'self' argument.
10282
10283 2014-02-19 Tom Tromey <tromey@redhat.com>
10284
10285 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10286 * target.c (target_stop_recording): Add argument.
10287 * record.c (record_stop): Add argument.
10288 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10289 argument.
10290
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10294 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10295 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10296 argument.
10297 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10298 (_initialize_amd64_linux_nat): Use it.
10299 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10300 (_initialize_i386_linux_nat): Use it.
10301
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10303
10304 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10305 * target.c (target_teardown_btrace): Add argument.
10306 * remote.c (remote_teardown_btrace): Add 'self' argument.
10307 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10308 argument.
10309 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10310 argument.
10311
10312 2014-02-19 Tom Tromey <tromey@redhat.com>
10313
10314 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10315 * target.c (target_disable_btrace): Add argument.
10316 * remote.c (remote_disable_btrace): Add 'self' argument.
10317 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10318 argument.
10319 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10320 argument.
10321
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10325 * target.c (target_enable_btrace): Add argument.
10326 * remote.c (remote_enable_btrace): Add 'self' argument.
10327 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10328 argument.
10329 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10330 argument.
10331
10332 2014-02-19 Tom Tromey <tromey@redhat.com>
10333
10334 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10335 (target_can_use_agent): Add argument.
10336 * target.c (update_current_target): Update.
10337 * remote.c (remote_can_use_agent): Add 'self' argument.
10338 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10339
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10341
10342 * target.h (struct target_ops) <to_use_agent>: Add argument.
10343 (target_use_agent): Add argument.
10344 * target.c (update_current_target): Update.
10345 * remote.c (remote_use_agent): Add 'self' argument.
10346 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10347
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10349
10350 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10351 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10352 (target_traceframe_info): Add argument.
10353 * target.c (update_current_target): Update.
10354 * remote.c (remote_traceframe_info): Add 'self' argument.
10355 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10356
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target.h (target_static_tracepoint_markers_by_strid): Add
10360 argument.
10361 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10362 'self' argument.
10363 * target.c (update_current_target): Update.
10364 * remote.c (struct target_ops)
10365 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10366 * linux-nat.c (struct target_ops)
10367 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10368
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10370
10371 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10372 Add argument.
10373 (target_static_tracepoint_marker_at): Add argument.
10374 * target.c (update_current_target): Update.
10375 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10376 argument.
10377
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10379
10380 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10381 (target_set_permissions): Add argument.
10382 * target.c (update_current_target): Update.
10383 * remote.c (remote_set_permissions): Add 'self' argument.
10384 (remote_start_remote): Update.
10385
10386 2014-02-19 Tom Tromey <tromey@redhat.com>
10387
10388 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10389 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10390 (target_get_tib_address): Add argument.
10391 * target.c (update_current_target): Update.
10392 * remote.c (remote_get_tib_address): Add 'self' argument.
10393
10394 2014-02-19 Tom Tromey <tromey@redhat.com>
10395
10396 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10397 (target_set_trace_notes): Add argument.
10398 * target.c (update_current_target): Update.
10399 * remote.c (remote_set_trace_notes): Add 'self' argument.
10400
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10402
10403 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10404 argument.
10405 (target_set_trace_buffer_size): Add argument.
10406 * target.c (update_current_target): Update.
10407 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10408
10409 2014-02-19 Tom Tromey <tromey@redhat.com>
10410
10411 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10412 argument.
10413 (target_set_circular_trace_buffer): Add argument.
10414 * target.c (update_current_target): Update.
10415 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10416 argument.
10417
10418 2014-02-19 Tom Tromey <tromey@redhat.com>
10419
10420 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10421 argument.
10422 (target_set_disconnected_tracing): Add argument.
10423 * target.c (update_current_target): Update.
10424 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10425
10426 2014-02-19 Tom Tromey <tromey@redhat.com>
10427
10428 * target.h (struct target_ops)
10429 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10430 (target_get_min_fast_tracepoint_insn_len): Add argument.
10431 * target.c (update_current_target): Update.
10432 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10433 argument.
10434
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10438 argument.
10439 (target_get_raw_trace_data): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10442
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10446 Add argument.
10447 (target_upload_trace_state_variables): Add argument.
10448 * target.c (update_current_target): Update.
10449 * remote.c (remote_upload_trace_state_variables): Add 'self'
10450 argument.
10451 (remote_start_remote): Update.
10452
10453 2014-02-19 Tom Tromey <tromey@redhat.com>
10454
10455 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10456 argument.
10457 (target_upload_tracepoints): Add argument.
10458 * target.c (update_current_target): Update.
10459 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10460 (remote_start_remote): Update.
10461
10462 2014-02-19 Tom Tromey <tromey@redhat.com>
10463
10464 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10465 (target_save_trace_data): Add argument.
10466 * target.c (update_current_target): Update.
10467 * remote.c (remote_save_trace_data): Add 'self' argument.
10468
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10470
10471 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10472 argument.
10473 * target.h (struct target_ops)
10474 <to_get_trace_state_variable_value>: Add argument.
10475 (target_get_trace_state_variable_value): Add argument.
10476 * target.c (update_current_target): Update.
10477 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10478 argument.
10479 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10480
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10484 * target.h (struct target_ops) <to_trace_find>: Add argument.
10485 (target_trace_find): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_trace_find): Add 'self' argument.
10488 * ctf.c (ctf_trace_find): Add 'self' argument.
10489
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10493 (target_trace_stop): Add argument.
10494 * target.c (update_current_target): Update.
10495 * remote.c (remote_trace_stop): Add 'self' argument.
10496
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10500 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10501 argument.
10502 (target_get_tracepoint_status): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10505
10506 2014-02-19 Tom Tromey <tromey@redhat.com>
10507
10508 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10509 * target.h (struct target_ops) <to_get_trace_status>: Add
10510 argument.
10511 (target_get_trace_status): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_get_trace_status): Add 'self' argument.
10514 (remote_start_remote, remote_can_download_tracepoint): Update.
10515 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10516
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10518
10519 * target.h (struct target_ops) <to_trace_start>: Add argument.
10520 (target_trace_start): Add argument.
10521 * target.c (update_current_target): Update.
10522 * remote.c (remote_trace_start): Add 'self' argument.
10523
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10525
10526 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10527 Add argument.
10528 (target_trace_set_readonly_regions): Add argument.
10529 * target.c (update_current_target): Update.
10530 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10531 argument.
10532
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10534
10535 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10536 argument.
10537 (target_disable_tracepoint): Add argument.
10538 * target.c (update_current_target): Update.
10539 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10540
10541 2014-02-19 Tom Tromey <tromey@redhat.com>
10542
10543 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10544 argument.
10545 (target_enable_tracepoint): Add argument.
10546 * target.c (update_current_target): Update.
10547 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10548
10549 2014-02-19 Tom Tromey <tromey@redhat.com>
10550
10551 * target.h (struct target_ops) <to_download_trace_state_variable>:
10552 Add argument.
10553 (target_download_trace_state_variable): Add argument.
10554 * target.c (update_current_target): Update.
10555 * remote.c (remote_download_trace_state_variable): Add 'self'
10556 argument.
10557
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10559
10560 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10561 argument.
10562 (target_can_download_tracepoint): Add argument.
10563 * target.c (update_current_target): Update.
10564 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10565
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target.h (struct target_ops) <to_download_tracepoint>: Add
10569 argument.
10570 (target_download_tracepoint): Add argument.
10571 * target.c (update_current_target): Update.
10572 * remote.c (remote_download_tracepoint): Add 'self' argument.
10573
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10575
10576 * target.h (struct target_ops) <to_trace_init>: Add argument.
10577 (target_trace_init): Add argument.
10578 * target.c (update_current_target): Update.
10579 * remote.c (remote_trace_init): Add 'self' argument.
10580
10581 2014-02-19 Tom Tromey <tromey@redhat.com>
10582
10583 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10584 * target.c (target_fileio_readlink): Add argument.
10585 * remote.c (remote_hostio_readlink): Add 'self' argument.
10586 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10587
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10591 * target.c (target_fileio_unlink): Add argument.
10592 * remote.c (remote_hostio_unlink): Add 'self' argument.
10593 (remote_file_delete): Update.
10594 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10595
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10599 * target.c (target_fileio_close): Add argument.
10600 * remote.c (remote_hostio_close): Add 'self' argument.
10601 (remote_hostio_close_cleanup): Update.
10602 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10603 Update.
10604 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10605
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10607
10608 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10609 * target.c (target_fileio_pread): Add argument.
10610 * remote.c (remote_hostio_pread): Add 'self' argument.
10611 (remote_bfd_iovec_pread, remote_file_get): Update.
10612 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10613
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10615
10616 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10617 * target.c (target_fileio_pwrite): Add argument.
10618 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10619 (remote_file_put): Update.
10620 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10621
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10623
10624 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10625 * target.c (target_fileio_open): Add argument.
10626 * remote.c (remote_hostio_open): Add 'self' argument.
10627 (remote_bfd_iovec_open): Add 'self' argument.
10628 (remote_file_put): Add 'self' argument.
10629 (remote_file_get): Add 'self' argument.
10630 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10631
10632 2014-02-19 Tom Tromey <tromey@redhat.com>
10633
10634 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10635 Add argument.
10636 (target_can_run_breakpoint_commands): Add argument.
10637 * target.c (update_current_target): Update.
10638 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10639 argument.
10640 (remote_insert_breakpoint): Add 'self' argument.
10641 (remote_insert_hw_breakpoint): Add 'self' argument.
10642 (remote_can_run_breakpoint_commands): Add 'self' argument.
10643
10644 2014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target.h (struct target_ops)
10647 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10648 (target_supports_evaluation_of_breakpoint_conditions): Add
10649 argument.
10650 * target.c (update_current_target): Update.
10651 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10652 argument.
10653 (remote_insert_breakpoint): Add 'self' argument.
10654 (remote_insert_hw_breakpoint): Add 'self' argument.
10655 (remote_supports_cond_breakpoints): Add 'self' argument.
10656
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10658
10659 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10660 argument.
10661 (target_supports_string_tracing): Add argument.
10662 * target.c (update_current_target): Update.
10663 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10664
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10666
10667 * target.h (struct target_ops)
10668 <to_supports_disable_randomization>: Add argument.
10669 * target.c (find_default_supports_disable_randomization): Add
10670 argument.
10671 (target_supports_disable_randomization): Add argument.
10672 (find_default_supports_disable_randomization): Add 'self'
10673 argument.
10674 * remote.c (extended_remote_supports_disable_randomization): Add
10675 'self' argument.
10676 (remote_supports_disable_randomization): Add 'self' argument.
10677 (extended_remote_create_inferior): Update.
10678 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10679 'self' argument.
10680
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10682
10683 * target.h (struct target_ops)
10684 <to_supports_enable_disable_tracepoint>: Add argument.
10685 (target_supports_enable_disable_tracepoint): Add argument.
10686 * target.c (update_current_target): Update.
10687 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10688 argument.
10689
10690 2014-02-19 Tom Tromey <tromey@redhat.com>
10691
10692 * target.h (struct target_ops) <to_supports_multi_process>: Add
10693 argument.
10694 (target_supports_multi_process): Add argument.
10695 * target.c (update_current_target): Update.
10696 * remote.c (remote_supports_multi_process): Add 'self' argument.
10697 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10698 argument.
10699 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10700 argument.
10701
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10703
10704 * target.h (struct target_ops) <to_execution_direction>: Add
10705 argument.
10706 (target_execution_direction): Add argument.
10707 * target.c (default_execution_direction): Add 'self' argument.
10708 * record-full.c (record_full_execution_direction): Add 'self'
10709 argument.
10710
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10712
10713 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10714 argument.
10715 (target_can_execute_reverse): Add argument.
10716 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10717 * record-full.c (record_full_can_execute_reverse): Add 'self'
10718 argument.
10719 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10720 argument.
10721
10722 2014-02-19 Tom Tromey <tromey@redhat.com>
10723
10724 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10725 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10726 argument.
10727 (target_get_ada_task_ptid): Add argument.
10728 * target.c (update_current_target): Update.
10729 (default_get_ada_task_ptid): Add 'self' argument.
10730 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10731 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10732 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10733 argument.
10734 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10735 argument.
10736 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10737 argument.
10738 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10739 argument.
10740 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10741 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10742 argument.
10743
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10747 (target_goto_bookmark): Add argument.
10748 * target.c (dummy_goto_bookmark): Add 'self' argument.
10749 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10750
10751 2014-02-19 Tom Tromey <tromey@redhat.com>
10752
10753 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10754 (target_get_bookmark): Add argument.
10755 * target.c (dummy_get_bookmark): Add 'self' argument.
10756 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10757
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10759
10760 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10761 argument.
10762 (target_make_corefile_notes): Add argument.
10763 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10764 * procfs.c (procfs_make_note_section): Add 'self' argument.
10765 (procfs_make_note_section): Add 'self' argument.
10766 (procfs_make_note_section): Add 'self' argument.
10767 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10768 argument.
10769 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10770 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10771 * exec.c (exec_make_note_section): Add 'self' argument.
10772 (exec_make_note_section): Add 'self' argument.
10773
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10775
10776 * target.h (struct target_ops) <to_find_memory_regions>: Add
10777 argument.
10778 (target_find_memory_regions): Add argument.
10779 * target.c (dummy_find_memory_regions): Add 'self' argument.
10780 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10781 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10782 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10783 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10784 * exec. (exec_do_find_memory_regions): New global.
10785 (exec_set_find_memory_regions): Rewrite.
10786 (exec_find_memory_regions): New function.
10787 (init_exec_ops): Use exec_find_memory_regions.
10788
10789 2014-02-19 Tom Tromey <tromey@redhat.com>
10790
10791 * target.h (struct target_ops) <to_supports_non_stop>: Add
10792 argument.
10793 * target.c (find_default_supports_non_stop): Add argument.
10794 (target_supports_non_stop): Add argument.
10795 (find_default_supports_non_stop): Add 'self' argument.
10796 * remote.c (remote_supports_non_stop): Add 'self' argument.
10797 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10798
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10800
10801 * target.h (struct target_ops) <to_log_command>: Add argument.
10802 (target_log_command): Add argument.
10803 * serial.h (serial_log_command): Add 'self' argument.
10804 * serial.c (serial_log_command): Add 'self' argument.
10805
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10807
10808 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10809 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10810 argument.
10811 (target_pid_to_exec_file): Add argument.
10812 * target.c (debug_to_pid_to_exec_file): Add argument.
10813 (update_current_target): Update.
10814 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10815 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10816 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10817 (linux_handle_extended_wait): Update.
10818 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10819 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10820 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10821 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10822
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10824
10825 * target.h (struct target_ops) <to_rcmd>: Add argument.
10826 (target_rcmd): Add argument.
10827 * target.c (debug_to_rcmd): Add argument.
10828 (update_current_target, do_monitor_command): Update.
10829 * remote.c (remote_rcmd): Add 'self' argument.
10830 * monitor.c (monitor_rcmd): Add 'self' argument.
10831
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * windows-nat.c (windows_stop): Add 'self' argument.
10835 * target.h (struct target_ops) <to_stop>: Add argument.
10836 * target.c (target_stop): Add argument.
10837 (debug_to_stop): Add argument.
10838 (update_current_target): Update.
10839 * remote.c (remote_stop): Add 'self' argument.
10840 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10841 (gdbsim_cntrl_c): Update.
10842 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10843 * procfs.c (procfs_stop): Add 'self' argument.
10844 * nto-procfs.c (procfs_stop): Add 'self' argument.
10845 * monitor.c (monitor_stop): Add 'self' argument.
10846 (monitor_open): Update.
10847 * linux-nat.c (linux_nat_stop): Add argument.
10848 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10849 * gnu-nat.c (gnu_stop): Add 'self' argument.
10850 * darwin-nat.c (darwin_stop): Add 'self' argument.
10851
10852 2014-02-19 Tom Tromey <tromey@redhat.com>
10853
10854 * target.h (struct target_ops) <to_thread_name>: Add argument.
10855 * target.c (target_thread_name): Add argument.
10856 (update_current_target): Update.
10857 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10858
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10860
10861 * target.h (struct target_ops) <to_extra_thread_info>: Add
10862 argument.
10863 (target_extra_thread_info): Add argument.
10864 * target.c (update_current_target): Update.
10865 * remote.c (remote_threads_extra_info): Add 'self' argument.
10866 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10867 argument.
10868 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10869 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10870 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10871 argument.
10872 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10873 argument.
10874 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10875 argument.
10876 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10877 argument.
10878
10879 2014-02-19 Tom Tromey <tromey@redhat.com>
10880
10881 * target.h (struct target_ops) <to_program_signals>: Add argument.
10882 * target.c (target_program_signals): Add argument.
10883 * remote.c (remote_program_signals): Add 'self' argument.
10884
10885 2014-02-19 Tom Tromey <tromey@redhat.com>
10886
10887 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10888 * target.c (target_pass_signals): Add argument.
10889 * remote.c (remote_pass_signals): Add 'self' argument.
10890 (remote_start_remote): Update.
10891 * procfs.c (procfs_pass_signals): Add 'self' argument.
10892 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10893 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10894 (linux_nat_create_inferior, linux_nat_attach): Update.
10895
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10897
10898 * windows-nat.c (windows_can_run): Add 'self' argument.
10899 * target.h (struct target_ops) <to_can_run>: Add argument.
10900 (target_can_run): Add argument.
10901 * target.c (debug_to_can_run): Add argument.
10902 (update_current_target): Update.
10903 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10904 * inf-child.c (inf_child_can_run): Add 'self' argument.
10905 * go32-nat.c (go32_can_run): Add 'self' argument.
10906
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target.h (struct target_ops) <to_has_exited>: Add argument.
10910 (target_has_exited): Add argument.
10911 * target.c (debug_to_has_exited): Add argument.
10912 (update_current_target): Update.
10913
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10915
10916 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10917 argument.
10918 (target_set_syscall_catchpoint): Add argument.
10919 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10920 argument.
10921 * target.c (update_current_target): Update.
10922
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10924
10925 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10926 argument.
10927 (target_remove_exec_catchpoint): Add argument.
10928 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10929 (update_current_target): Update.
10930 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10931 argument.
10932
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10934
10935 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10936 argument.
10937 (target_insert_exec_catchpoint): Add argument.
10938 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10939 (update_current_target): Update.
10940 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10941 argument.
10942
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10944
10945 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10946 argument.
10947 (target_remove_vfork_catchpoint): Add argument.
10948 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10949 (update_current_target): Update.
10950 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10951 argument.
10952
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10954
10955 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10956 argument.
10957 (target_insert_vfork_catchpoint): Add argument.
10958 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10959 (update_current_target): Update.
10960 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10961 argument.
10962
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10964
10965 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10966 argument.
10967 (target_remove_fork_catchpoint): Add argument.
10968 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10969 (update_current_target): Update.
10970 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10971 argument.
10972
10973 2014-02-19 Tom Tromey <tromey@redhat.com>
10974
10975 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10976 argument.
10977 (target_insert_fork_catchpoint): Add argument.
10978 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10979 (update_current_target): Update.
10980 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10981 argument.
10982
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10986 argument.
10987 (target_post_startup_inferior): Add argument.
10988 * target.c (debug_to_post_startup_inferior): Add argument.
10989 (update_current_target): Update.
10990 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10991 argument.
10992 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10993 argument.
10994 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10995 argument.
10996 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10997 argument.
10998 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10999 'self' argument.
11000 (super_post_startup_inferior): Likewise.
11001 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11002 'self' argument.
11003 (super_post_startup_inferior): Likewise.
11004 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11005 Add 'self' argument.
11006 (super_post_startup_inferior): Likewise.
11007
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11009
11010 * target.h (struct target_ops) <to_load>: Add argument.
11011 * target.c (target_load): Add argument.
11012 (debug_to_load): Add argument.
11013 (update_current_target): Update.
11014 * remote.c (remote_load): Add 'self' argument.
11015 * remote-sim.c (gdbsim_load): Add 'self' argument.
11016 * remote-mips.c (mips_load): Add 'self' argument.
11017 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11018 * monitor.c (monitor_load): Add 'self' argument.
11019 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11020
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11024 (target_terminal_info): Add argument.
11025 * target.c (debug_to_terminal_info): Add argument.
11026 (default_terminal_info): Likewise.
11027 * inflow.c (child_terminal_info): Add 'self' argument.
11028 * inferior.h (child_terminal_info): Add 'self' argument.
11029 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11030
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11034 argument.
11035 (target_terminal_save_ours): Add argument.
11036 * target.c (debug_to_terminal_save_ours): Add argument.
11037 (update_current_target): Update.
11038 * inflow.c (terminal_save_ours): Add 'self' argument.
11039 * inferior.h (terminal_save_ours): Add 'self' argument.
11040
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11042
11043 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11044 (target_terminal_ours): Add argument.
11045 * target.c (debug_to_terminal_ours): Add argument.
11046 (update_current_target): Update.
11047 * remote.c (remote_terminal_ours): Add 'self' argument.
11048 (remote_close): Update.
11049 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11050 * inflow.c (terminal_ours): Add 'self' argument.
11051 * inferior.h (terminal_ours): Add 'self' argument.
11052 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11053
11054 2014-02-19 Pedro Alves <palves@redhat.com>
11055 Tom Tromey <tromey@redhat.com>
11056
11057 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11058 argument.
11059 (target_terminal_ours_for_output): Add argument.
11060 * target.c (debug_to_terminal_ours_for_output): Add argument.
11061 (update_current_target): Update.
11062 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11063 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11064 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11065
11066 2014-02-19 Tom Tromey <tromey@redhat.com>
11067
11068 * target.h (struct target_ops) <to_terminal_inferior>: Add
11069 argument.
11070 * target.c (target_terminal_inferior): Add argument.
11071 (update_current_target): Update.
11072 * remote.c (remote_terminal_inferior): Add 'self' argument.
11073 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11074 * inflow.c (terminal_inferior): Add 'self' argument.
11075 * inferior.h (terminal_inferior): Add 'self' argument.
11076 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11077 (go32_terminal_inferior): Add 'self' argument.
11078
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11082 (target_terminal_init): Add argument.
11083 * target.c (debug_to_terminal_init): Add argument.
11084 (update_current_target): Update.
11085 * inflow.c (terminal_init_inferior): Add 'self' argument.
11086 * inferior.h (terminal_init_inferior): Add 'self' argument.
11087 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11088 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11089
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11091
11092 * target.h (struct target_ops)
11093 <to_can_accel_watchpoint_condition>: Add argument.
11094 (target_can_accel_watchpoint_condition): Add argument.
11095 * target.c (debug_to_can_accel_watchpoint_condition): Add
11096 argument.
11097 (update_current_target): Update.
11098 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11099 'self' argument.
11100
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11102
11103 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11104 Add argument.
11105 (target_region_ok_for_hw_watchpoint): Add argument.
11106 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11107 (default_region_ok_for_hw_watchpoint): Add argument.
11108 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11109 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11110 argument.
11111 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11112 argument.
11113 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11114 argument.
11115 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11116 'self' argument.
11117 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11118 'self' argument.
11119 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11120 'self' argument.
11121 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11122 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11123 'self' argument.
11124 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11125 Add 'self' argument.
11126
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11128
11129 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11130 argument.
11131 (target_insert_watchpoint): Add argument.
11132 * target.c (debug_to_insert_watchpoint): Add argument.
11133 (update_current_target): Update.
11134 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11135 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11136 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11137 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11138 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11139 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11140 argument.
11141 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11142 (procfs_insert_hw_watchpoint): Add 'self' argument.
11143 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11144 argument.
11145 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11146 argument.
11147 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11148 argument.
11149 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11150 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11151 argument.
11152 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11153 'self' argument.
11154
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11156
11157 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11158 argument.
11159 (target_remove_watchpoint): Add argument.
11160 * target.c (debug_to_remove_watchpoint): Add argument.
11161 (update_current_target): Update.
11162 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11163 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11164 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11165 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11166 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11167 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11168 argument.
11169 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11170 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11171 argument.
11172 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11173 argument.
11174 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11175 argument.
11176 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11177 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11178 argument.
11179 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11180 'self' argument.
11181
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11183
11184 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11185 argument.
11186 (target_remove_hw_breakpoint): Add argument.
11187 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11188 (update_current_target): Update.
11189 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11190 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11191 argument.
11192 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11193 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11194 argument.
11195 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11196 'self' argument.
11197
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11199
11200 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11201 argument.
11202 (target_insert_hw_breakpoint): Add argument.
11203 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11204 (update_current_target): Update.
11205 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11206 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11207 argument.
11208 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11209 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11210 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11211 argument.
11212 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11213 'self' argument.
11214
11215 2014-02-19 Tom Tromey <tromey@redhat.com>
11216
11217 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11218 argument.
11219 (target_can_use_hardware_watchpoint): Add argument.
11220 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11221 (update_current_target): Update.
11222 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11223 argument.
11224 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11225 argument.
11226 * remote.c (remote_check_watch_resources): Add 'self' argument.
11227 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11228 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11229 argument.
11230 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11231 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11232 argument.
11233 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11234 argument.
11235 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11236 argument.
11237 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11238 argument.
11239 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11240 argument.
11241 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11242 argument.
11243 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11244 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11245 argument.
11246 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11247 'self' argument.
11248
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target.h (struct target_ops) <to_post_attach>: Add argument.
11252 (target_post_attach): Add argument.
11253 * target.c (debug_to_post_attach): Add argument.
11254 (update_current_target): Update.
11255 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11256 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11257 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11258 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11259 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11260
11261 2014-02-19 Tom Tromey <tromey@redhat.com>
11262
11263 * windows-nat.c (windows_close): Add 'self' argument.
11264 * tracepoint.c (tfile_close): Add 'self' argument.
11265 * target.h (struct target_ops) <to_close>: Add argument.
11266 * target.c (target_close): Add argument.
11267 (update_current_target): Update.
11268 * remote.c (remote_close): Add 'self' argument.
11269 * remote-sim.c (gdbsim_close): Add 'self' argument.
11270 * remote-mips.c (mips_close): Add 'self' argument.
11271 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11272 * record-full.c (record_full_close): Add 'self' argument.
11273 * record-btrace.c (record_btrace_close): Add 'self' argument.
11274 * monitor.h (monitor_close): Add 'self' argument.
11275 * monitor.c (monitor_close): Add 'self' argument.
11276 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11277 * linux-nat.c (linux_nat_close): Add argument.
11278 * go32-nat.c (go32_close): Add 'self' argument.
11279 * exec.c (exec_close_1): Add 'self' argument.
11280 * ctf.c (ctf_close): Add 'self' argument.
11281 * corelow.c (core_close): Add 'self' argument.
11282 (core_close_cleanup): Update.
11283 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11284 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * remote.c (remote_load): New function.
11289 (init_remote_ops): Use it.
11290
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11294 argument.
11295 * common/linux-btrace.h (linux_supports_btrace): Update.
11296 * remote.c (remote_supports_btrace): Add "self" argument.
11297 * target-delegates.c: Rebuild.
11298 * target.c (target_supports_btrace): Remove.
11299 * target.h (struct target_ops) <to_supports_btrace>: Add
11300 target_ops argument.
11301 (target_supports_btrace): New define.
11302
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11304
11305 * record-full.c (record_full_beneath_to_resume_ops)
11306 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11307 (record_full_beneath_to_wait)
11308 (record_full_beneath_to_store_registers_ops)
11309 (record_full_beneath_to_store_registers)
11310 (record_full_beneath_to_xfer_partial_ops)
11311 (record_full_beneath_to_xfer_partial)
11312 (record_full_beneath_to_insert_breakpoint_ops)
11313 (record_full_beneath_to_insert_breakpoint)
11314 (record_full_beneath_to_remove_breakpoint_ops)
11315 (record_full_beneath_to_remove_breakpoint)
11316 (record_full_beneath_to_stopped_by_watchpoint)
11317 (record_full_beneath_to_stopped_data_address)
11318 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11319 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11320 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11321 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11322 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11323 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11324 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11325 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11326 (record_full_resume, record_full_wait_1)
11327 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11328 (record_full_store_registers, record_full_xfer_partial)
11329 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11330 (record_full_async, record_full_core_xfer_partial): Use target
11331 delegation.
11332 * target-delegates.c: Rebuild.
11333 * target.c (current_xfer_partial): Remove.
11334 (update_current_target): Do not INHERIT or de_fault
11335 to_insert_breakpoint, to_remove_breakpoint,
11336 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11337 to_is_async_p, to_async. Do not set to_xfer_partial field.
11338 (default_xfer_partial): Simplify.
11339 (current_xfer_partial): Remove.
11340 (target_wait, target_resume): Simplify.
11341 (find_default_can_async_p, find_default_is_async_p): Update.
11342 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11343 to_xfer_partial, to_stopped_by_watchpoint,
11344 to_stopped_data_address.
11345 (target_store_registers): Simplify.
11346 (forward_target_remove_breakpoint)
11347 (forward_target_insert_breakpoint): Remove.
11348 (target_remove_breakpoint, target_insert_breakpoint)
11349 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11350 * target.h (struct target_ops) <to_resume, to_wait,
11351 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11352 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11353 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11354 markup.
11355 (forward_target_remove_breakpoint)
11356 (forward_target_insert_breakpoint): Remove.
11357 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11358 directly.
11359 (record_btrace_insert_breakpoint): Delegate directly.
11360
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11362
11363 PR build/7701:
11364 * target-delegates.c: New file.
11365 * target.c: Include target-delegates.c.
11366 (init_dummy_target): Call install_dummy_methods.
11367 (complete_target_initialization): Call install_delegators.
11368 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11369 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11370 * make-target-delegates: New file.
11371
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11373
11374 * record.c (find_record_target): Use find_target_at.
11375 * target.c (find_target_at): New function.
11376 * target.h (find_target_at): Declare.
11377
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11381 Add 'ops' argument.
11382 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11383 'ops' argument.
11384 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11385 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11386 'ops' argument.
11387 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11388 argument.
11389 * linux-nat.c (save_sigtrap): Update.
11390 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11391 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11392 (linux_nat_close): Update.
11393 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11394 argument.
11395 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11396 argument.
11397 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11398 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11399 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11400 (tmp_to_async): Add 'ops' argument.
11401 (record_full_stopped_by_watchpoint, record_full_async)
11402 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11403 argument.
11404 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11405 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11406 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11407 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11408 (remote_is_async_p, remote_async): Add 'ops' argument.
11409 (remote_stopped_data_address): Update.
11410 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11411 * target.c (update_current_target)
11412 (find_default_can_async_p, find_default_is_async_p): Update.
11413 (init_dummy_target): Update.
11414 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11415 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11416 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11417 (target_can_async_p, target_is_async_p, target_async)
11418 (target_stopped_by_watchpoint): Update.
11419
11420 2014-02-19 Yao Qi <yao@codesourcery.com>
11421
11422 PR gdb/16220
11423 * gdbarch.sh: Remove startup_gdbarch.
11424 * gdbarch.c: Regenerated.
11425 * gdbarch.h: Likewise.
11426
11427 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11428
11429 * rl78-tdep.c (rl78_g10_register_name): New function.
11430 (rl78_return_value): Add g10 support.
11431 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11432 g10.
11433
11434 2014-02-17 Doug Evans <xdje42@gmail.com>
11435
11436 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11437 (SUBDIR_GUILE_SRCS): Ditto.
11438 (scm-gsmob.o): Ditto.
11439
11440 2014-02-17 Yao Qi <yao@codesourcery.com>
11441
11442 * gnu-nat.c (ILL_RPC): Declare defined function.
11443
11444 2014-02-17 Yao Qi <yao@codesourcery.com>
11445
11446 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11447 mach_msg_type_number_t.
11448 (gnu_write_inferior): Likewise.
11449
11450 2014-02-17 Yao Qi <yao@codesourcery.com>
11451
11452 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11453 in format string.
11454 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11455 (inf_validate_procs, inf_signal): Likewise.
11456 (S_exception_raise_request): Likewise.
11457 (do_mach_notify_dead_name): Likewise.
11458 (steal_exc_port): Likewise.
11459 (gnu_read_inferior): Change 'copy_count''s type to
11460 mach_msg_type_number_t.
11461 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11462 format string.
11463
11464 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11465
11466 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11467 flag. Adjust all users; in particular...
11468 (gnu_wait): ..., don't decrement its value in here...
11469 (gnu_create_inferior): ..., and instead set the flag in here,
11470 around the startup_inferior call, and call that one with
11471 START_INFERIOR_TRAPS_EXPECTED.
11472
11473 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11474 (ILL_RPC): ... new macro.
11475 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11476 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11477 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11478 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11479 functions with ILL_RPC macro.
11480 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11481 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11482 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11483 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11484 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11485 (S_proc_getlogin_reply, S_proc_getsid_reply)
11486 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11487 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11488 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11489 (S_proc_getnports_reply, S_proc_is_important_reply)
11490 (S_proc_get_code_reply): New stub functions, generated with
11491 ILL_RPC macro.
11492
11493 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11494 collected the type check structures.
11495
11496 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11497
11498 2014-02-14 Doug Evans <dje@google.com>
11499
11500 * target.c (target_write_partial): Fix result type.
11501
11502 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11503
11504 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11505 the proper offsets to access fpregset_t.
11506
11507 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11508
11509 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11510 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11511 * h8300-tdep.c (setmachinelist): Remove global.
11512 * hppa-tdep.c (hppa_sigtramp): Remove global.
11513 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11514 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11515 * ravenscar-thread.c (update_target_observer): Remove global.
11516 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11517
11518 2014-02-12 Tom Tromey <tromey@redhat.com>
11519
11520 * common/rsp-low.c: Update comments.
11521 * common/rsp-low.h: Update comments.
11522
11523 2014-02-12 Tom Tromey <tromey@redhat.com>
11524
11525 * common/rsp-low.c (convert_ascii_to_int): Remove.
11526 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11527
11528 2014-02-12 Tom Tromey <tromey@redhat.com>
11529
11530 * common/rsp-low.h (unhexify): Don't declare.
11531 * common/rsp-low.c (unhexify): Remove.
11532
11533 2014-02-12 Tom Tromey <tromey@redhat.com>
11534
11535 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11536 * common/rsp-low.c (convert_int_to_ascii): Remove.
11537
11538 2014-02-12 Tom Tromey <tromey@redhat.com>
11539
11540 * common/rsp-low.h (hexify): Don't declare.
11541 * common/rsp-low.c (hexify): Remove.
11542
11543 2014-02-12 Tom Tromey <tromey@redhat.com>
11544
11545 * common/rsp-low.c (hexify): Never take strlen of argument.
11546
11547 2014-02-12 Tom Tromey <tromey@redhat.com>
11548
11549 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11550 * remote.c (extended_remote_run, remote_rcmd)
11551 (remote_download_trace_state_variable, remote_save_trace_data)
11552 (remote_set_trace_notes): Update.
11553 * tracepoint.c (encode_source_string, tfile_write_status)
11554 (tfile_write_uploaded_tsv): Update.
11555
11556 2014-02-12 Tom Tromey <tromey@redhat.com>
11557
11558 * tracepoint.c: Include rsp-low.h.
11559 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11560 * remote.c: Include rsp-low.h.
11561 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11562 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11563 (remote_unescape_input): Move to common/rsp-low.c.
11564 * common/rsp-low.h: New file.
11565 * common/rsp-low.c: New file.
11566 * Makefile.in (SFILES): Add common/rsp-low.c.
11567 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11568 (COMMON_OBS): Add rsp-low.o.
11569 (rsp-low.o): New target.
11570
11571 2014-02-12 Tom Tromey <tromey@redhat.com>
11572
11573 * utils.h: Include print-utils.h.
11574 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11575 (int_string, core_addr_to_string, core_addr_to_string_nz)
11576 (hex_string, hex_string_custom): Don't declare.
11577 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11578 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11579 (hex_string_custom, int_string, core_addr_to_string)
11580 (core_addr_to_string_nz, host_address_to_string): Move to
11581 common/print-utils.c.
11582 * common/print-utils.h: New file.
11583 * common/print-utils.c: New file
11584 * Makefile.in (SFILES): Add common/print-utils.c.
11585 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11586 (COMMON_OBS): Add print-utils.o.
11587 (print-utils.o): New target.
11588
11589 2014-02-12 Tom Tromey <tromey@redhat.com>
11590
11591 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11592
11593 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11594
11595 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11596
11597 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11598
11599 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11600 if a PT_IO ptrace request returns sucessfully but indicates that 0
11601 bytes were transferred.
11602
11603 2014-02-12 Pedro Alves <palves@redhat.com>
11604 Kevin Buettner <kevinb@redhat.com>
11605
11606 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11607 TYPE_INSTANCE_FLAG_CODE_SPACE.
11608
11609 2014-02-12 Pedro Alves <palves@redhat.com>
11610
11611 * h8300-tdep.c (pseudo_from_raw_register)
11612 (raw_from_pseudo_register): New functions.
11613 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11614 them.
11615
11616 2014-02-12 Pedro Alves <palves@redhat.com>
11617
11618 * h8300-tdep.c (h8300_register_sim_regno): New function.
11619 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11620 gdbarch_register_sim_regno hook.
11621
11622 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11623
11624 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11625
11626 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11627
11628 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11629
11630 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11631
11632 * obsd-tdep.h (obsd_init_abi): New prototype.
11633 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11634 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11635 (obsd_init_abi): New functions.
11636 * i386obsd-tdep.c: Include "obsd-tdep.h".
11637 (i386obsd_init_abi): Call obsd_init_abi.
11638 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11639 (amd64obsd_init_abi): Call obsd_init_abi.
11640 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11641 obsd-tdep.c to gdb_target_obs.
11642
11643 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11644
11645 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11646 double float arguments to 16-byte in the argument slots.
11647
11648 2014-02-11 Doug Evans <xdje42@gmail.com>
11649
11650 * configure.ac: Don't crash if pkg-config is not found and guile
11651 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11652 in guile checks.
11653 * configure: Regenerate.
11654
11655 2014-02-11 Yao Qi <yao@codesourcery.com>
11656
11657 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11658 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11659 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11660 * gnu-nat.c (gnu_xfer_memory): Likewise.
11661 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11662 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11663 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11664 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11665
11666 2014-02-11 Yao Qi <yao@codesourcery.com>
11667
11668 * target.h (enum target_xfer_error): Rename to ...
11669 (enum target_xfer_status): ... it. New. All users updated.
11670 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11671 New.
11672 (TARGET_XFER_STATUS_ERROR_P): New macro.
11673 (target_xfer_error_to_string): Remove declaration.
11674 (target_xfer_status_to_string): Declare.
11675 (target_xfer_partial_ftype): Adjust it.
11676 (struct target_ops) <to_xfer_partial>: Return
11677 target_xfer_status. Add argument xfered_len. Update
11678 comments.
11679 * target.c (target_xfer_error_to_string): Rename to ...
11680 (target_xfer_status_to_string): ... it. New. All callers
11681 updated.
11682 (target_read_live_memory): Likewise. Call target_xfer_partial
11683 instead of target_read.
11684 (memory_xfer_live_readonly_partial): Return
11685 target_xfer_status. Add argument xfered_len.
11686 (raw_memory_xfer_partial): Likewise.
11687 (memory_xfer_partial_1): Likewise.
11688 (memory_xfer_partial): Likewise.
11689 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11690 properly. Update debug message.
11691 (default_xfer_partial, current_xfer_partial): Likewise.
11692 (target_write_partial): Likewise.
11693 (target_read_partial): Likewise. All callers updated.
11694 (read_whatever_is_readable): Likewise.
11695 (target_write_with_progress): Likewise.
11696 (target_read_alloc_1): Likewise.
11697
11698 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11699 * auxv.c (procfs_xfer_auxv): Likewise.
11700 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11701 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11702 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11703 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11704 * corefile.c (read_memory): Adjust.
11705 * corelow.c (core_xfer_partial): Likewise.
11706 * ctf.c (ctf_xfer_partial): Likewise.
11707 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11708 updated.
11709 (darwin_xfer_partial): Likewise.
11710 * exec.c (section_table_xfer_memory_partial): Likewise. All
11711 callers updated.
11712 (exec_xfer_partial): Likewise.
11713 * exec.h (section_table_xfer_memory_partial): Update
11714 declaration.
11715 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11716 negative.
11717 (gnu_xfer_partial): Likewise.
11718 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11719 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11720 (ia64_hpux_xfer_solib_got): Likewise.
11721 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11722 type of 'partial_len' to ULONGEST.
11723 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11724 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11725 (linux_nat_xfer_partial): Likewise.
11726 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11727 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11728 * monitor.c (monitor_xfer_memory): Likewise.
11729 (monitor_xfer_partial): Likewise.
11730 * procfs.c (procfs_xfer_partial): Likewise.
11731 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11732 * record-full.c (record_full_xfer_partial): Likewise.
11733 (record_full_core_xfer_partial): Likewise.
11734 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11735 (gdbsim_xfer_partial): Likewise.
11736 * remote.c (remote_write_bytes_aux): Likewise. All callers
11737 updated.
11738 (remote_write_bytes, remote_read_bytes): Likewise. All
11739 callers updated.
11740 (remote_flash_erase): Likewise. All callers updated.
11741 (remote_write_qxfer): Likewise. All callers updated.
11742 (remote_read_qxfer): Likewise. All callers updated.
11743 (remote_xfer_partial): Likewise.
11744 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11745 (rs6000_xfer_shared_libraries): Likewise.
11746 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11747 (sol_thread_xfer_partial): Likewise.
11748 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11749 (sparc_xfer_partial): Likewise.
11750 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11751 updated.
11752 (spu_xfer_partial): Likewise.
11753 * spu-multiarch.c (spu_xfer_partial): Likewise.
11754 * tracepoint.c (tfile_xfer_partial): Likewise.
11755 * windows-nat.c (windows_xfer_memory): Likewise.
11756 (windows_xfer_shared_libraries): Likewise.
11757 (windows_xfer_partial): Likewise.
11758 * valprint.c: Replace 'target_xfer_error' with
11759 'target_xfer_status' in comments.
11760
11761 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11762
11763 Checked in by Joel Brobecker <brobecker@adacore.com>.
11764 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11765
11766 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11767
11768 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11769 function parameters.
11770
11771 2014-02-10 Will Newton <will.newton@linaro.org>
11772
11773 * elfread.c (elf_rel_plt_read): Look for a .got section if
11774 looking up .got.plt fails.
11775 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11776 on address passed to elf_gnu_ifunc_record_cache.
11777 (elf_gnu_ifunc_resolve_addr): Likewise.
11778 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11779
11780 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11781
11782 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11783 (X_RETTURN): New macro.
11784 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11785
11786 * sparc64-tdep.c (sparc64_init_abi): Hook
11787 sparc_in_function_epilogue_p.
11788
11789 2014-02-10 Gary Benson <gbenson@redhat.com>
11790
11791 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11792 Rename name_matcher to symbol_matcher.
11793
11794 2014-02-10 Gary Benson <gbenson@redhat.com>
11795
11796 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11797 Use expand_symtabs_file_matcher_ftype and
11798 expand_symtabs_symbol_matcher_ftype.
11799
11800 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11801
11802 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11803 (struct ada_symbol_cache): New.
11804 (ada_free_symbol_cache): Forward declare.
11805 (struct ada_pspace_data): New.
11806 (ada_pspace_data_handle): New static global.
11807 (get_ada_pspace_data, ada_pspace_data_cleanup)
11808 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11809 (cache_space, cache): Delete, now folded inside struct
11810 ada_pspace_data.
11811 (ada_get_symbol_cache): New function.
11812 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11813 implementation.
11814 (_initialize_ada_language): Remove initialization of cache_space.
11815 Move call to observer_attach_inferior_exit up, grouping it
11816 with the other observer registrations inside this function.
11817 Rename command to be more general. Add call to
11818 register_program_space_data_with_cleanup.
11819
11820 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11821
11822 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11823 ada_new_objfile_observer.
11824 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11825 (_initialize_tasks): Update uses of ada_new_objfile_observer
11826 and ada_tasks_normal_stop_observer.
11827
11828 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11829
11830 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11831 returned by the 'Length attribute to integer.
11832
11833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11834
11835 * ada-lang.c (_initialize_ada_language): Initialize
11836 cache_space obstack.
11837
11838 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11839
11840 * ada-lang.c (HASH_SIZE): New macro.
11841 (struct cache_entry): New type.
11842 (cache_space, cache): New static globals.
11843 (ada_clear_symbol_cache, find_entry): New functions.
11844 (lookup_cached_symbol, cache_symbol): Implement.
11845 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11846 (_initialize_ada_language): Attach ada_new_objfile_observer
11847 and ada_free_objfile_observer.
11848
11849 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11850
11851 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11852 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11853 struct block * parameter.
11854 (ada_lookup_symbol_list_worker): Constify local variable "block".
11855 Remove cast which is no longer necessary.
11856
11857 2014-02-10 Doug Evans <xdje42@gmail.com>
11858
11859 Add Guile as an extension language.
11860 * NEWS: Mention Guile scripting.
11861 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11862 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11863 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11864 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11865 (CLIBS): Add GUILE_LIBS.
11866 (install-guile): New rule.
11867 (guile.o): New rule.
11868 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11869 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11870 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11871 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11872 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11873 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11874 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11875 * configure.ac: New option --with-guile.
11876 * configure: Regenerate.
11877 * config.in: Regenerate.
11878 * auto-load.c: Remove #include "python/python.h". Add #include
11879 "gdb/section-scripts.h".
11880 (source_section_scripts): Handle Guile scripts.
11881 (_initialize_auto_load): Add name of Guile objfile script to
11882 scripts-directory help text.
11883 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11884 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11885 (struct breakpoint): New member scm_bp_object.
11886 * defs.h (enum command_control_type): New value guile_control.
11887 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11888 "extension.h".
11889 (show_user): Update comment.
11890 (_initialize_cli_cmds): Update help text for "show user". Update help
11891 text for max-user-call-depth.
11892 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11893 "extension.h".
11894 (multi_line_command_p): Add guile_control.
11895 (print_command_lines): Handle guile_control.
11896 (execute_control_command, recurse_read_control_structure): Ditto.
11897 (process_next_line): Recognize "guile" commands.
11898 * disasm.c (gdb_disassemble_info): Make non-static.
11899 * disasm.h: #include "dis-asm.h".
11900 (struct gdbarch): Add forward decl.
11901 (gdb_disassemble_info): Declare.
11902 * extension.c: #include "guile/guile.h".
11903 (extension_languages): Add guile.
11904 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11905 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11906 * gdbtypes.c (get_unsigned_type_max): New function.
11907 (get_signed_type_minmax): New function.
11908 * gdbtypes.h (get_unsigned_type_max): Declare.
11909 (get_signed_type_minmax): Declare.
11910 * guile/README: New file.
11911 * guile/guile-internal.h: New file.
11912 * guile/guile.c: New file.
11913 * guile/guile.h: New file.
11914 * guile/scm-arch.c: New file.
11915 * guile/scm-auto-load.c: New file.
11916 * guile/scm-block.c: New file.
11917 * guile/scm-breakpoint.c: New file.
11918 * guile/scm-disasm.c: New file.
11919 * guile/scm-exception.c: New file.
11920 * guile/scm-frame.c: New file.
11921 * guile/scm-gsmob.c: New file.
11922 * guile/scm-iterator.c: New file.
11923 * guile/scm-lazy-string.c: New file.
11924 * guile/scm-math.c: New file.
11925 * guile/scm-objfile.c: New file.
11926 * guile/scm-ports.c: New file.
11927 * guile/scm-pretty-print.c: New file.
11928 * guile/scm-safe-call.c: New file.
11929 * guile/scm-string.c: New file.
11930 * guile/scm-symbol.c: New file.
11931 * guile/scm-symtab.c: New file.
11932 * guile/scm-type.c: New file.
11933 * guile/scm-utils.c: New file.
11934 * guile/scm-value.c: New file.
11935 * guile/lib/gdb.scm: New file.
11936 * guile/lib/gdb/boot.scm: New file.
11937 * guile/lib/gdb/experimental.scm: New file.
11938 * guile/lib/gdb/init.scm: New file.
11939 * guile/lib/gdb/iterator.scm: New file.
11940 * guile/lib/gdb/printing.scm: New file.
11941 * guile/lib/gdb/types.scm: New file.
11942 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11943 (VPATH): Add $(GUILE_SRCDIR).
11944 (GUILE_DIR): New variable.
11945 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11946 (all): Add stamp-guile dependency.
11947 (stamp-guile): New rule.
11948 (clean-guile, install-guile, uninstall-guile): New rules.
11949 (install-only): Add install-guile dependency.
11950 (uninstall): Add uninstall-guile dependency.
11951 (clean): Add clean-guile dependency.
11952
11953 2014-02-09 Doug Evans <xdje42@gmail.com>
11954
11955 Revert this patch (which I approved, mea culpa).
11956
11957 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11958
11959 * Makefile.in (all-lib): Remove.
11960 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11961
11962 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11963
11964 Fix Python stack corruption.
11965 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11966 gdb_py_longest.
11967
11968 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11969
11970 * Makefile.in (all-lib): Remove.
11971 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11972
11973 2014-02-07 Doug Evans <dje@google.com>
11974
11975 * extension-priv.h (extension_language_script_ops): Add comment.
11976 (extension_language_ops): Add comment.
11977 (active_ext_lang_state): Fix typo in comment.
11978
11979 2014-02-07 Pedro Alves <palves@redhat.com>
11980
11981 PR breakpoints/16292
11982 * infrun.c (handle_signal_stop) <signal arrives while stepping
11983 over a breakpoint>: Switch back to the stepping thread.
11984
11985 2014-02-07 Yao Qi <yao@codesourcery.com>
11986
11987 * target.c (target_xfer_partial): Return zero if LEN is zero.
11988
11989 2014-02-07 Yao Qi <yao@codesourcery.com>
11990
11991 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11992 (ld_so_xfer_auxv): Likewise.
11993 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11994 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11995 * corelow.c (core_xfer_partial): Likewise.
11996 * ctf.c (ctf_xfer_partial): Likewise.
11997 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11998 (darwin_xfer_partial): Likewise.
11999 * exec.c (exec_xfer_partial): Likewise.
12000 * gnu-nat.c (gnu_xfer_partial): Likewise.
12001 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12002 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12003 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12004 * linux-nat.c (linux_xfer_siginfo): Likewise.
12005 (linux_proc_xfer_spu): Likewise.
12006 * procfs.c (procfs_xfer_partial): Likewise.
12007 * record-full.c (record_full_xfer_partial): Likewise.
12008 (record_full_core_xfer_partial): Likewise.
12009 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12010 * remote.c (remote_write_qxfer): Likewise.
12011 (remote_write_qxfer, remote_read_qxfer): Likewise.
12012 (remote_xfer_partial): Likewise.
12013 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12014 (rs6000_xfer_shared_libraries): Likewise.
12015 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12016 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12017 (spu_xfer_partial): Likewise.
12018 * target.c (memory_xfer_partial_1): Likewise.
12019 * tracepoint.c (tfile_xfer_partial): Likewise.
12020 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12021 (windows_xfer_partial): Likewise.
12022
12023 2014-02-07 Yao Qi <yao@codesourcery.com>
12024
12025 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12026 comments.
12027 (core_xfer_shared_libraries_aix): Likewise.
12028 * gdbarch.c, gdbarch.h: Regenerated.
12029 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12030 ULONGEST. Change 'len_avail' type to ULONGEST.
12031 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12032 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12033 declaration.
12034 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12035
12036 2014-02-07 Yao Qi <yao@codesourcery.com>
12037
12038 * corefile.c (memory_error): Get 'exception' from ERR and pass
12039 'exception' to throw_error.
12040
12041 2014-02-06 Doug Evans <xdje42@gmail.com>
12042
12043 * configure.ac (libpython checking): Remove all but python.o from
12044 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12045 * configure: Regenerate.
12046
12047 * Makefile.in (SFILES): Add extension.c.
12048 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12049 (COMMON_OBS): Add extension.o.
12050 * extension.h: New file.
12051 * extension-priv.h: New file.
12052 * extension.c: New file.
12053
12054 * python/python-internal.h: #include "extension.h".
12055 (gdbpy_auto_load_enabled): Declare.
12056 (gdbpy_apply_val_pretty_printer): Declare.
12057 (gdbpy_apply_frame_filter): Declare.
12058 (gdbpy_preserve_values): Declare.
12059 (gdbpy_breakpoint_cond_says_stop): Declare.
12060 (gdbpy_breakpoint_has_cond): Declare.
12061 (void source_python_script_for_objfile): Delete.
12062 * python/python.c: #include "extension-priv.h".
12063 Delete inclusion of "observer.h".
12064 (extension_language_python): Moved here and renamed from
12065 script_language_python in py-auto-load.c.
12066 Redefined to be of type extension_language_defn.
12067 (python_extension_script_ops): New global.
12068 (python_extension_ops): New global.
12069 (struct python_env): New member previous_active.
12070 (restore_python_env): Call restore_active_ext_lang.
12071 (ensure_python_env): Call set_active_ext_lang.
12072 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12073 New arg extlang.
12074 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12075 New arg extlang.
12076 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12077 New arg extlang.
12078 (gdbpy_eval_from_control_command): Renamed from
12079 eval_python_from_control_command, made static. New arg extlang.
12080 (gdbpy_source_script) Renamed from source_python_script, made static.
12081 New arg extlang.
12082 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12083 result to int. New arg extlang.
12084 (gdbpy_source_objfile_script): Renamed from
12085 source_python_script_for_objfile, made static. New arg extlang.
12086 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12087 static. New args extlang, extlang_printers. Change result type to
12088 "void".
12089 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12090 static. New arg extlang. Rename arg printers to extlang_printers
12091 and change type to ext_lang_type_printers *.
12092 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12093 static. Replace argument arg with extlang, extlang_printers.
12094 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12095 (!HAVE_PYTHON, source_python_script): Delete.
12096 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12097 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12098 (!HAVE_PYTHON, start_type_printers): Delete.
12099 (!HAVE_PYTHON, apply_type_printers): Delete.
12100 (!HAVE_PYTHON, free_type_printers): Delete.
12101 (_initialize_python): Delete call to observer_attach_before_prompt.
12102 (finalize_python): Set/restore active extension language.
12103 (gdbpy_finish_initialization) Renamed from
12104 finish_python_initialization, made static. New arg extlang.
12105 (gdbpy_initialized): New function.
12106 * python/python.h: #include "extension.h". Delete #include
12107 "value.h", "mi/mi-cmds.h".
12108 (extension_language_python): Declare.
12109 (GDBPY_AUTO_FILE_NAME): Delete.
12110 (enum py_bt_status): Moved to extension.h and renamed to
12111 ext_lang_bt_status.
12112 (enum frame_filter_flags): Moved to extension.h.
12113 (enum py_frame_args): Moved to extension.h and renamed to
12114 ext_lang_frame_args.
12115 (finish_python_initialization): Delete.
12116 (eval_python_from_control_command): Delete.
12117 (source_python_script): Delete.
12118 (apply_val_pretty_printer): Delete.
12119 (apply_frame_filter): Delete.
12120 (preserve_python_values): Delete.
12121 (gdbpy_script_language_defn): Delete.
12122 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12123 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12124
12125 * auto-load.c: #include "extension.h".
12126 (GDB_AUTO_FILE_NAME): Delete.
12127 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12128 (script_language_gdb): Delete, moved to extension.c and renamed to
12129 extension_language_gdb.
12130 (source_gdb_script_for_objfile): Delete.
12131 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12132 (loaded_script): Change type of language member to
12133 struct extension_language_defn *.
12134 (init_loaded_scripts_info): Initialize
12135 unsupported_script_warning_printed.
12136 (maybe_add_script): Make static. Change type of language arg to
12137 struct extension_language_defn *.
12138 (clear_section_scripts): Reset unsupported_script_warning_printed.
12139 (auto_load_objfile_script_1): Rewrite to use extension language API.
12140 (auto_load_objfile_script): Make public. Remove support-compiled-in
12141 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12142 (source_section_scripts): Rewrite to use extension language API.
12143 (load_auto_scripts_for_objfile): Rewrite to use
12144 auto_load_scripts_for_objfile.
12145 (collect_matching_scripts_data): Change type of language member to
12146 struct extension_language_defn *.
12147 (auto_load_info_scripts): Change type of language arg to
12148 struct extension_language_defn *.
12149 (unsupported_script_warning_print): New function.
12150 (script_not_found_warning_print): Make static.
12151 (_initialize_auto_load): Rewrite construction of scripts-directory
12152 help.
12153 * auto-load.h (struct objfile): Add forward decl.
12154 (struct script_language): Delete.
12155 (struct auto_load_pspace_info): Add forward decl.
12156 (struct extension_language_defn): Add forward decl.
12157 (maybe_add_script): Delete.
12158 (auto_load_objfile_script): Declare.
12159 (script_not_found_warning_print): Delete.
12160 (auto_load_info_scripts): Update prototype.
12161 (auto_load_gdb_scripts_enabled): Declare.
12162 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12163 auto_load_python_scripts_enabled and made public.
12164 (script_language_python): Delete, moved to python.c.
12165 (gdbpy_script_language_defn): Delete.
12166 (info_auto_load_python_scripts): Update to use
12167 extension_language_python.
12168
12169 * breakpoint.c (condition_command): Replace call to
12170 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12171 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12172 with call to breakpoint_ext_lang_cond_says_stop.
12173 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12174 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12175 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12176 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12177 New arg slang.
12178 (local_setattro): Print name of extension language with existing
12179 stop condition.
12180
12181 * valprint.c (val_print, value_print): Update to call
12182 apply_ext_lang_val_pretty_printer.
12183 * cp-valprint.c (cp_print_value): Update call to
12184 apply_ext_lang_val_pretty_printer.
12185 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12186 (gdbpy_apply_val_pretty_printer): Renamed from
12187 apply_val_pretty_printer. New arg extlang.
12188 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12189
12190 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12191 extension language API.
12192 * cli/cli-script.c (execute_control_command): Update to call
12193 eval_ext_lang_from_control_command.
12194
12195 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12196 enum ext_lang_bt_status values. Update call to
12197 apply_ext_lang_frame_filter.
12198 (mi_cmd_stack_list_locals): Ditto.
12199 (mi_cmd_stack_list_args): Ditto.
12200 (mi_cmd_stack_list_variables): Ditto.
12201 * mi/mi-main.c: Delete #include "python/python-internal.h".
12202 Add #include "extension.h".
12203 (mi_cmd_list_features): Replace reference to python internal variable
12204 gdb_python_initialized with call to ext_lang_initialized_p.
12205
12206 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12207 Update to use enum ext_lang_frame_args. Update to call
12208 apply_ext_lang_frame_filter.
12209 * python/py-framefilter.c (extract_sym): Update to use enum
12210 ext_lang_bt_status.
12211 (extract_value, py_print_type, py_print_value): Ditto.
12212 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12213 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12214 (py_print_frame): Ditto.
12215 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12216 New arg extlang. Update to use enum ext_lang_bt_status.
12217
12218 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12219 finish_python_initialization. Replace with call to
12220 finish_ext_lang_initialization.
12221
12222 * typeprint.c (do_free_global_table): Update to call
12223 free_ext_lang_type_printers.
12224 (create_global_typedef_table): Update to call
12225 start_ext_lang_type_printers.
12226 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12227 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12228 (type_print_options): Change type of global_printers from "void *"
12229 to "struct ext_lang_type_printers *".
12230
12231 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12232 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12233 (gdbpy_preserve_values): Renamed from preserve_python_values.
12234 New arg extlang.
12235 (!HAVE_PYTHON, preserve_python_values): Delete.
12236
12237 * utils.c (quit_flag): Delete, moved to extension.c.
12238 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12239 extension.c.
12240
12241 * eval.c: Delete #include "python/python.h".
12242 * main.c: Delete #include "python/python.h".
12243
12244 * defs.h: Update comment.
12245
12246 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12247
12248 GDB 7.7 released.
12249
12250 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12251
12252 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12253 defined.
12254
12255 2014-02-05 Yao Qi <yao@codesourcery.com>
12256
12257 * remote.c (remote_pass_signals): Remove local 'buf' and use
12258 rs->buf.
12259 (remote_program_signals): Likewise.
12260
12261 2014-02-05 Yao Qi <yao@codesourcery.com>
12262
12263 * ctf.c: Include "inferior.h" and "gdbthread.h".
12264 (CTF_PID): A new macro.
12265 (ctf_open): Call inferior_appeared and add_thread_silent.
12266 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12267 (ctf_thread_alive): New function.
12268 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12269
12270 2014-02-05 Yao Qi <yao@codesourcery.com>
12271
12272 Revert this patch:
12273
12274 2013-05-24 Yao Qi <yao@codesourcery.com>
12275
12276 * tracepoint.c (TFILE_PID): Remove.
12277 (tfile_open): Don't add thread and inferior.
12278 (tfile_close): Don't set 'inferior_ptid'. Don't call
12279 exit_inferior_silent.
12280 (tfile_thread_alive): Remove.
12281 (init_tfile_ops): Don't set field 'to_thread_alive' of
12282 tfile_ops.
12283
12284 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12285
12286 * remote.c (remote_start_remote): Call remote_check_symbols even
12287 if only symbol-file (not file) has been given.
12288
12289 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12290
12291 * gdbarch.sh (skip_entrypoint): New callback.
12292 * gdbarch.c, gdbarch.h: Regenerate.
12293 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12294 * infrun.c (fill_in_stop_func): Likewise.
12295 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12296 (ppc_elfv2_elf_make_msymbol_special): New function.
12297 (ppc_elfv2_skip_entrypoint): Likewise.
12298 (ppc_linux_init_abi): Install them for ELFv2.
12299
12300 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12301
12302 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12303 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12304 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12305 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12306 structures returned in GPRs.
12307
12308 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12309
12310 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12311 offset to the stack parameter list for the ELFv2 ABI.
12312
12313 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12314
12315 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12316 set_gdbarch_convert_from_func_ptr_addr and
12317 set_gdbarch_elf_make_msymbol_special for ELFv1.
12318 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12319 function descriptors on ELFv1.
12320 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12321 set up r12 at function entry.
12322
12323 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12324
12325 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12326 (struct gdbarch_tdep): New member elf_abi.
12327
12328 * rs6000-tdep.c: Include "elf/ppc64.h".
12329 (rs6000_gdbarch_init): Detect ELF ABI version.
12330
12331 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12332
12333 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12334 within a register pair holding a DFP 128-bit value on little-endian.
12335 (ppc64_sysv_abi_return_value_base): Likewise.
12336 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12337 (dfp_pseudo_register_write): Likewise.
12338
12339 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12340
12341 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12342 offset on little-endian when passing _Decimal32.
12343 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12344
12345 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12346
12347 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12348 of the overlapped FP register within the VSX register on little-
12349 endian platforms.
12350 (efpr_pseudo_register_write): Likewise.
12351
12352 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12353
12354 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12355 offset on little-endian when passing small structures.
12356
12357 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12358
12359 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12360 (struct ppc64_sysv_argpos): New data structure.
12361 (ppc64_sysv_abi_push_float): Remove.
12362 (ppc64_sysv_abi_push_val): New function.
12363 (ppc64_sysv_abi_push_integer): Likewise.
12364 (ppc64_sysv_abi_push_freg): Likewise.
12365 (ppc64_sysv_abi_push_vreg): Likewise.
12366 (ppc64_sysv_abi_push_param): Likewise.
12367 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12368 (ppc64_sysv_abi_return_value_base): New function.
12369 (ppc64_sysv_abi_return_value): Refactor to use it.
12370
12371 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
12372
12373 * NEWS: Document new target powerpc64le-*-linux*.
12374
12375 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12376
12377 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12378 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12379 core dumps.
12380 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12381 register set used in ELF core dumps. Add floating-point register set.
12382
12383 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12384
12385 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12386 dwarf2_to_gdb[] table using symbolic constants. Adjust
12387 penultimate entry from number representing the PC register
12388 to symbolic constant representing the MDR register. Add
12389 constant for the PC register to the end of the table.
12390
12391 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12392
12393 * bsd-kvm.c: Include <sys/param.h>
12394
12395 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12396
12397 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12398
12399 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12400
12401 * ada-lang.h (clear_ada_sym_cache): Delete.
12402
12403 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
12404
12405 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12406
12407 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12408
12409 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12410 the sigreturn register save area only if the syscall is
12411 sigreturn.
12412
12413 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12414
12415 * valops.c (value_slice): Minor reformatting.
12416
12417 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
12418
12419 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12420
12421 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12422
12423 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12424 New static globals.
12425 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12426 (ada_ignore_descriptive_types_p): New static global.
12427 (find_parallel_type_by_descriptive_type): Return immediately
12428 if ada_ignore_descriptive_types_p is set.
12429 (_initialize_ada_language): Register new commands "maintenance
12430 set ada", "maintenance show ada", "maintenance set ada
12431 ignore-descriptive-types" and "maintenance show ada
12432 ignore-descriptive-types".
12433 * NEWS: Add entry for new "maint ada set/show
12434 ignore-descriptive-types" commands.
12435
12436 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12437
12438 * record-btrace.c (record_btrace_close): Call btrace_teardown
12439 for all threads.
12440
12441 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12442
12443 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12444 "ui-out.h".
12445
12446 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12447
12448 * ada-typeprint (type_is_full_subrange_of_target_type):
12449 New function.
12450 (print_range): Add parameter bounds_prefered_p. If not set,
12451 try printing range types using the name of their base type.
12452 (print_range_type): Add parameter bounds_prefered_p.
12453 Use it in call to print_range.
12454 (print_array_type, ada_print_type): Update calls to print_range
12455 and print_range_type.
12456
12457 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12458
12459 * ada-typeprint.c (print_array_type, print_choices, print_range)
12460 (print_range_bound, print_dynamic_range_bound, print_range_type):
12461 Remove declaration.
12462
12463 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12464
12465 * ada-typeprint.c (print_range): Add missing empty line
12466 after local declaration.
12467
12468 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12469
12470 * ada-valprint.c (print_optional_low_bound): Get index_type's
12471 target type for as long as it is a TYPE_CODE_RANGE.
12472
12473 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12474
12475 * procfs.c (procfs_make_note_section): Remove assertion and
12476 associated comment.
12477
12478 2014-01-24 Yao Qi <yao@codesourcery.com>
12479
12480 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12481 * corelow.c (get_core_siginfo): Likewise.
12482
12483 2014-01-24 Yao Qi <yao@codesourcery.com>
12484
12485 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12486 ULONGEST. Don't check 'len' is negative.
12487 (remote_write_bytes): Change type of 'len' to ULONGEST.
12488
12489 2014-01-23 Tom Tromey <tromey@redhat.com>
12490
12491 PR python/16485:
12492 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12493 Handle exception from frame.block.
12494 (FrameVars.fetch_frame_locals): Likewise.
12495
12496 2014-01-23 Tom Tromey <tromey@redhat.com>
12497
12498 PR python/16487:
12499 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12500 on a NULL pointer. Move "goto error" to correct place.
12501
12502 2014-01-23 Tom Tromey <tromey@redhat.com>
12503
12504 PR python/16491:
12505 * python/py-framefilter.c (apply_frame_filter): Call
12506 ensure_python_env after computing gdbarch.
12507
12508 2014-01-23 Yao Qi <yao@codesourcery.com>
12509
12510 * target.c (raw_memory_xfer_partial): Change argument type
12511 from void * to gdb_byte *.
12512 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12513
12514 2014-01-22 Doug Evans <dje@google.com>
12515
12516 New gdbserver option --debug-format=timestamp.
12517 * NEWS: Mention it.
12518
12519 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12520
12521 * syscalls/s390x-linux.xml: New file.
12522 * syscalls/s390-linux.xml: New file.
12523 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12524 (XML_SYSCALL_FILENAME_S390X): Likewise.
12525 (op_svc): New enum value for SVC opcode.
12526 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12527 (s390_linux_get_syscall_number): New function.
12528 (s390_gdbarch_init): Register '*get_syscall_number' and the
12529 syscall xml file name.
12530 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12531 "s390-linux.xml" and "s390x-linux.xml".
12532 * NEWS: Announce new feature.
12533
12534 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12535
12536 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12537
12538 2014-01-22 Pedro Alves <palves@redhat.com>
12539
12540 * xtensa-config.c: Include defs.h.
12541
12542 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12543
12544 * common/common-utils.h: Add "ARI:" comment beside __func__
12545 reference.
12546
12547 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12548
12549 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12550 documentation a bit.
12551
12552 2014-01-21 Roland McGrath <mcgrathr@google.com>
12553
12554 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12555 * configure: Regenerate.
12556 * aclocal.m4: Regenerate.
12557 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12558 New substituted variables.
12559 (install-strip): New target.
12560 (INSTALL_SCRIPT): New substituted variable.
12561 (FLAGS_TO_PASS): Add it.
12562 (install-only): Use $(INSTALL_SCRIPT) rather than
12563 $(INSTALL_PROGRAM) for gcore.
12564
12565 2014-01-20 Tom Tromey <tromey@redhat.com>
12566
12567 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12568 together.
12569
12570 2014-01-20 Tom Tromey <tromey@redhat.com>
12571
12572 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12573 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12574 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12575 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12576 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12577 (struct cmd_list_element) <flags>: Remove.
12578 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12579 doc_allocated>: New fields.
12580 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12581 bitfields.
12582 * maint.c (maintenance_do_deprecate): Update.
12583 * top.c (execute_command): Update.
12584
12585 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12586
12587 * xtensa-linux-nat.c: Include asm/ptrace.h.
12588
12589 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12590
12591 * Makefile.in (SFILES): Add d-support.c.
12592 (COMMON_OBS): Add d-support.o.
12593 * d-lang.h (d_parse_symbol): Add comment, now defined in
12594 d-support.c.
12595 * d-lang.c (parse_call_convention)
12596 (parse_attributes, parse_function_types)
12597 (parse_function_args, parse_type, parse_identifier)
12598 (call_convention_p, d_parse_symbol): Move functions to ...
12599 * d-support.c: ... New file.
12600
12601 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12602
12603 * d-lang.h (d_parse_symbol): Add declaration.
12604 * d-lang.c (extract_identifiers)
12605 (extract_type_info): Remove functions.
12606 (parse_call_convention, parse_attributes)
12607 (parse_function_types, parse_function_args)
12608 (parse_type, parse_identifier, call_convention_p)
12609 (d_parse_symbol): New functions.
12610 (d_demangle): Use d_parse_symbol to demangle D symbols.
12611
12612 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12613
12614 * d-lang.h (struct builtin_d_type): New data type.
12615 (builtin_d_type): Add declaration.
12616 * d-lang.c (d_language_arch_info, build_d_types)
12617 (builtin_d_type): New functions.
12618 (enum d_primitive_types): New data type.
12619 (d_language_defn): Change c_language_arch_info to
12620 d_language_arch_info.
12621 (d_type_data): New static variable.
12622 (_initialize_d_language): Initialize d_type_data.
12623
12624 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12625
12626 * d-lang.h (d_main_name): Add declaration.
12627 * d-lang.c (d_main_name): New function.
12628 * symtab.c (find_main_name): Add call to d_main_name.
12629
12630 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12631
12632 * d-lang.c (d_language_defn): Change macro_expansion_c to
12633 macro_expansion_no.
12634
12635 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12636
12637 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12638
12639 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12640
12641 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12642 gdb_exception" declaration.
12643 * remote.c (getpkt_or_notif_sane): Likewise.
12644
12645 2014-01-17 Doug Evans <dje@google.com>
12646
12647 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12648 function, contents of dirnames_to_char_ptr_vec_append moved here.
12649 (delim_string_to_char_ptr_vec): New function.
12650 (dirnames_to_char_ptr_vec_append): Rewrite.
12651 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12652
12653 2014-01-17 Doug Evans <dje@google.com>
12654
12655 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12656 and moved here ...
12657 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12658 #include "common-utils.h".
12659 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12660 * common/vec.h (VEC_ASSERT_PASS): Update.
12661 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12662 (MACH_CHECK_ERROR): Update.
12663
12664 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12665
12666 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12667 comments.
12668 * gdbarch.h: Regenerate.
12669
12670 2014-01-16 Tom Tromey <tromey@redhat.com>
12671
12672 * value.c (struct value) <regnum>: Move earlier.
12673
12674 2014-01-16 Tom Tromey <tromey@redhat.com>
12675
12676 * remote.c (extended_remote_create_inferior): Rename from
12677 extended_remote_create_inferior_1. Add "ops" argument. Remove
12678 old implementation.
12679
12680 2014-01-16 Pedro Alves <palves@redhat.com>
12681
12682 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12683 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12684 the backchain.
12685
12686 2014-01-16 Doug Evans <dje@google.com>
12687
12688 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12689
12690 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12691
12692 * btrace.h (btrace_thread_flag): New.
12693 (struct btrace_thread_info) <flags>: New.
12694 * record-btrace.c (record_btrace_resume_thread)
12695 (record_btrace_find_thread_to_move, btrace_step_no_history)
12696 (btrace_step_stopped, record_btrace_start_replaying)
12697 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12698 (record_btrace_find_resume_thread): New.
12699 (record_btrace_resume, record_btrace_wait): Extend.
12700 (record_btrace_can_execute_reverse): New.
12701 (record_btrace_open): Fail in non-stop mode.
12702 (record_btrace_set_replay): Split into this, ...
12703 (record_btrace_stop_replaying): ... this, ...
12704 (record_btrace_clear_histories): ... and this.
12705 (init_record_btrace_ops): Init to_can_execute_reverse.
12706 * NEWS: Announce it.
12707
12708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12709
12710 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12711 (forward_target_decr_pc_after_break)
12712 (target_decr_pc_after_break): New.
12713 * target.c (forward_target_decr_pc_after_break)
12714 (target_decr_pc_after_break): New.
12715 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12716 instead of gdbarch_decr_pc_after_break.
12717 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12718 instead of gdbarch_decr_pc_after_break.
12719 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12720 instead of gdbarch_decr_pc_after_break.
12721 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12722 instead of gdbarch_decr_pc_after_break.
12723 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12724 instead of gdbarch_decr_pc_after_break.
12725 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12726 instead of gdbarch_decr_pc_after_break.
12727
12728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12729
12730 * btrace.c: Include regcache.h.
12731 (btrace_add_pc): New.
12732 (btrace_enable): Call btrace_add_pc.
12733 (btrace_is_empty): New.
12734 * btrace.h (btrace_is_empty): New.
12735 * record-btrace.c (require_btrace, record_btrace_info): Call
12736 btrace_is_empty.
12737
12738 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12739
12740 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12741 Support delta reads.
12742 (linux_disable_btrace): Change return type.
12743 * common/linux-btrace.h (linux_read_btrace): Change parameters
12744 and return type to allow error reporting. Update users.
12745 (linux_disable_btrace): Change return type. Update users.
12746 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12747 New.
12748 (btrace_error): New.
12749 (btrace_block) <begin>: Comment on BEGIN == 0.
12750 * btrace.c (btrace_compute_ftrace): Start from the end of
12751 the current trace.
12752 (btrace_stitch_trace, btrace_clear_history): New.
12753 (btrace_fetch): Read delta trace, return if replaying.
12754 (btrace_clear): Move clear history code to btrace_clear_history.
12755 (parse_xml_btrace): Throw an error if parsing failed.
12756 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12757 and return type to allow error reporting.
12758 (target_read_btrace): Change parameters and return type to allow
12759 error reporting.
12760 * target.c (target_read_btrace): Update.
12761 * remote.c (remote_read_btrace): Support delta reads. Pass
12762 errors on.
12763 * NEWS: Announce it.
12764
12765 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12766
12767 * record.h (record_btrace_frame_unwind)
12768 (record_btrace_tailcall_frame_unwind): New declarations.
12769 * dwarf2-frame: Include record.h
12770 (dwarf2_frame_cfa): Throw an error for btrace frames.
12771 * record-btrace.c: Include hashtab.h.
12772 (btrace_get_bfun_name): New.
12773 (btrace_call_history): Call btrace_get_bfun_name.
12774 (struct btrace_frame_cache): New.
12775 (bfcache): New.
12776 (bfcache_hash, bfcache_eq, bfcache_new): New.
12777 (btrace_get_frame_function): New.
12778 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12779 (record_btrace_frame_this_id): Compute own id.
12780 (record_btrace_frame_prev_register): Provide PC, throw_error
12781 for all other registers.
12782 (record_btrace_frame_sniffer): Detect btrace frames.
12783 (record_btrace_tailcall_frame_sniffer): New.
12784 (record_btrace_frame_dealloc_cache): New.
12785 (record_btrace_frame_unwind): Add new functions.
12786 (record_btrace_tailcall_frame_unwind): New.
12787 (_initialize_record_btrace): Allocate cache.
12788 * btrace.c (btrace_clear): Call reinit_frame_cache.
12789 * NEWS: Announce it.
12790
12791 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12792
12793 * record-btrace.c (record_btrace_set_replay)
12794 (record_btrace_goto_begin, record_btrace_goto_end)
12795 (record_btrace_goto): New.
12796 (init_record_btrace_ops): Initialize them.
12797 * NEWS: Announce it.
12798
12799 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12800
12801 * record-btrace.c (record_btrace_find_new_threads)
12802 (record_btrace_thread_alive): New.
12803 (init_record_btrace_ops): Initialize to_find_new_threads and
12804 to_thread_alive.
12805
12806 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12807
12808 * record-btrace.c (record_btrace_resume): New.
12809 (record_btrace_wait): New.
12810 (init_record_btrace_ops): Initialize to_wait and to_resume.
12811
12812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12813
12814 * record-btrace.c (record_btrace_xfer_partial)
12815 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12816 (record_btrace_allow_memory_access): New.
12817 (init_record_btrace_ops): Initialize new methods.
12818 * target.c (raw_memory_xfer_partial): Bail out if target reports
12819 that this memory is not available.
12820
12821 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12822
12823 * target.h (target_ops) <to_insert_breakpoint>
12824 <to_remove_breakpoint>: Add target_ops parameter.
12825 (forward_target_insert_breakpoint): New.
12826 (forward_target_remove_breakpoint): New.
12827 (memory_remove_breakpoint, memory_insert_breakpoint):
12828 Add target_ops parameter.
12829 * target.c (target_insert_breakpoint): Split into this and ...
12830 (forward_target_insert_breakpoint): ... this.
12831 (target_remove_breakpoint): Split into this and ...
12832 (forward_target_remove_breakpoint): ... this.
12833 (debug_to_insert_breakpoint): Add target_ops parameter.
12834 Call forward_target_insert_breakpoint.
12835 (debug_to_remove_breakpoint): Add target_ops parameter.
12836 Call forward_target_remove_breakpoint.
12837 (update_current_target): Do not inherit or default to_insert_breakpoint
12838 and to_remove_breakpoint.
12839 * corelow.c (ignore): Add target_ops parameter.
12840 * exec.c (ignore): Add target_ops parameter.
12841 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12842 Add target_ops parameter.
12843 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12844 Add target_ops parameter.
12845 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12846 Add target_ops parameter.
12847 * record-full.c (record_full_beneath_to_insert_breakpoint)
12848 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12849 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12850 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12851 (record_full_core_remove_breakpoint): Add target_ops parameter.
12852 Update users.
12853 (record_full_beneath_to_insert_breakpoint_ops)
12854 (record_full_beneath_to_remove_breakpoint_ops)
12855 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12856 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12857 tmp_to_remove_breakpoint_ops,
12858 record_full_beneath_to_insert_breakpoint_ops, and
12859 record_full_beneath_to_remove_breakpoint_ops.
12860 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12861 (m32r_remove_breakpoint): Add target_ops parameter.
12862 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12863 Add target_ops parameter.
12864 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12865 Add target_ops parameter.
12866
12867 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12868 Markus Metzger <markus.t.metzger@intel.com>
12869
12870 * record-btrace.c: Include frame-unwind.h.
12871 (record_btrace_frame_unwind_stop_reason)
12872 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12873 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12874 New.
12875 (init_record_btrace_ops): Install it.
12876
12877 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12878
12879 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12880 get_prev_frame_1.
12881
12882 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12883
12884 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12885 earlier.
12886
12887 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12888
12889 * frame-unwind.c: Include target.h.
12890 (frame_unwind_try_unwinder): New function with code from ...
12891 (frame_unwind_find_by_frame): ... here. New variable
12892 unwinder_from_target, call also target_get_unwinder)
12893 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12894 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12895 * target.h (struct target_ops): New fields to_get_unwinder and
12896 to_get_tailcall_unwinder.
12897 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12898
12899 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12900
12901 * record-btrace.c (record_btrace_fetch_registers)
12902 (record_btrace_store_registers)
12903 (record_btrace_to_prepare_to_store): New.
12904 (init_record_btrace_ops): Add the above.
12905
12906 2014-01-16 Tom Tromey <tromey@redhat.com>
12907
12908 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12909 * target.h (struct target_ops) <to_prepare_to_store>: Add
12910 argument.
12911 (target_prepare_to_store): Add argument.
12912 * target.c (debug_to_prepare_to_store): Add argument.
12913 (update_current_target): Update.
12914 * remote.c (remote_prepare_to_store): Add 'self' argument.
12915 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12916 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12917 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12918 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12919 argument.
12920 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12921 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12922 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12923 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12924 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12925
12926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12927
12928 * btrace.h (replay) <replay>: New.
12929 (btrace_is_replaying): New.
12930 * btrace.c (btrace_clear): Free replay iterator.
12931 (btrace_is_replaying): New.
12932 * record-btrace.c (record_btrace_is_replaying): New.
12933 (record_btrace_info): Print insn number if replaying.
12934 (record_btrace_insn_history): Start at replay position.
12935 (record_btrace_call_history): Start at replay position.
12936 (init_record_btrace_ops): Init to_record_is_replaying.
12937
12938 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12939
12940 * record-btrace.c (record_btrace_insn_history_range): Include
12941 end.
12942 (record_btrace_insn_history_from): Adjust range.
12943 (record_btrace_call_history_range): Include
12944 end.
12945 (record_btrace_call_history_from): Adjust range.
12946 * NEWS: Announce changes.
12947
12948 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12949
12950 * record.h (enum record_print_flag)
12951 <record_print_indent_calls>: New.
12952 * record.c (get_call_history_modifiers): Recognize /c modifier.
12953 (_initialize_record): Document /c modifier.
12954 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12955 Reorder fields. Optionally indent the function name. Update
12956 all users.
12957 * NEWS: Announce changes.
12958
12959 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12960
12961 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12962
12963 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12964
12965 * btrace.c (ftrace_new_function): Start counting at one.
12966 * record-btrace.c (record_btrace_info): Adjust number of calls
12967 and insns.
12968 * NEWS: Announce it.
12969
12970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12971
12972 * record-btrace.c (btrace_call_history_insn_range): Print
12973 insn range as [begin, end].
12974
12975 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12976
12977 * btrace.h (struct btrace_func_link): New.
12978 (enum btrace_function_flag): New.
12979 (struct btrace_inst): Rename to ...
12980 (struct btrace_insn): ...this. Update all users.
12981 (struct btrace_func) <ibegin, iend>: Remove.
12982 (struct btrace_func_link): New.
12983 (struct btrace_func): Rename to ...
12984 (struct btrace_function): ...this. Update all users.
12985 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12986 (number, level, flags>: New.
12987 (struct btrace_insn_iterator): Rename to ...
12988 (struct btrace_insn_history): ...this.
12989 Update all users.
12990 (struct btrace_insn_iterator, btrace_call_iterator): New.
12991 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12992 (struct btrace_target_info) <begin, end, level>
12993 <insn_history, call_history>: New.
12994 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12995 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12996 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12997 (btrace_call_number, btrace_call_begin, btrace_call_end)
12998 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12999 (btrace_find_function_by_number, btrace_set_insn_history)
13000 (btrace_set_call_history): New.
13001 * btrace.c (btrace_init_insn_iterator)
13002 (btrace_init_func_iterator, compute_itrace): Remove.
13003 (ftrace_print_function_name, ftrace_print_filename)
13004 (ftrace_skip_file): Change
13005 parameter to const.
13006 (ftrace_init_func): Remove.
13007 (ftrace_debug): Use new btrace_function fields.
13008 (ftrace_function_switched): Also consider gaining and
13009 losing symbol information).
13010 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13011 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13012 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13013 New.
13014 (ftrace_new_function): Move. Remove debug print.
13015 (ftrace_update_lines, ftrace_update_insns): New.
13016 (ftrace_update_function): Check for call, ret, and jump.
13017 (compute_ftrace): Renamed to ...
13018 (btrace_compute_ftrace): ...this. Rewritten to compute call
13019 stack.
13020 (btrace_fetch, btrace_clear): Updated.
13021 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13022 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13023 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13024 (btrace_call_number, btrace_call_begin, btrace_call_end)
13025 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13026 (btrace_find_function_by_number, btrace_set_insn_history)
13027 (btrace_set_call_history): New.
13028 * record-btrace.c (require_btrace): Use new btrace thread
13029 info fields.
13030 (record_btrace_info, btrace_insn_history)
13031 (record_btrace_insn_history, record_btrace_insn_history_range):
13032 Use new btrace thread info fields and new iterator.
13033 (btrace_func_history_src_line): Rename to ...
13034 (btrace_call_history_src_line): ...this. Use new btrace
13035 thread info fields.
13036 (btrace_func_history): Rename to ...
13037 (btrace_call_history): ...this. Use new btrace thread info
13038 fields and new iterator.
13039 (record_btrace_call_history, record_btrace_call_history_range):
13040 Use new btrace thread info fields and new iterator.
13041
13042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13043
13044 * frame.h (frame_id_build_unavailable_stack_special): New.
13045 * frame.c (frame_id_build_unavailable_stack_special): New.
13046
13047 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13048
13049 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13050 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13051 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13052 to gdbarch.
13053 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13054 (i386_insn_is_jump, i386_jmp_p): New.
13055 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13056 insn_is_jump to gdbarch.
13057 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13058 * gdbarch.h: Regenerated.
13059 * gdbarch.c: Regenerated.
13060 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13061 (default_insn_is_jump): New.
13062 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13063 (default_insn_is_jump): New.
13064
13065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13066
13067 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13068 Change to ...
13069 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13070 (btrace_read_type) <btrace_read_new>: Change to ...
13071 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13072
13073 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13074
13075 * common/linux-btrace.c (linux_read_btrace): Free trace from
13076 previous iteration.
13077
13078 2014-01-15 Doug Evans <dje@google.com>
13079
13080 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13081 uint32_t.
13082
13083 2014-01-15 Tom Tromey <tromey@redhat.com>
13084
13085 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13086 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13087 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13088 (set_objfile_main_name): New function.
13089 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13090 language_of_main>: New fields.
13091 (set_objfile_main_name): Declare.
13092 * symtab.c (find_main_name): Loop over objfiles to find the main
13093 name and language.
13094 (set_main_name): Now static.
13095 (get_main_info): Add comment.
13096 * symtab.h (set_main_name): Don't declare.
13097
13098 2014-01-15 Tom Tromey <tromey@redhat.com>
13099
13100 * symtab.c (main_progspace_key): New global.
13101 (struct main_info): New.
13102 (name_of_main, language_of_main): Remove.
13103 (get_main_info, main_info_cleanup): New function.
13104 (set_main_name, main_name, main_language): Use get_main_info.
13105 (_initialize_symtab): Initialize main_progspace_key.
13106
13107 2014-01-15 Tom Tromey <tromey@redhat.com>
13108
13109 * dbxread.c (process_one_symbol): Update.
13110 * dwarf2read.c (read_partial_die): Update.
13111 * symfile.c (set_initial_language): Call main_language.
13112 * symtab.c (language_of_main): Now static.
13113 (set_main_name): Add 'lang' parameter.
13114 (find_main_name): Update.
13115 (main_language): New function.
13116 (symtab_observer_executable_changed): Update.
13117 * symtab.h (set_main_name): Update.
13118 (language_of_main): Remove.
13119 (main_language): Declare.
13120
13121 2014-01-15 Tom Tromey <tromey@redhat.com>
13122
13123 * symfile.c (init_entry_point_info): Use new "initialized" field.
13124 Update.
13125 * objfiles.h (struct entry_point) <initialized>: New field.
13126 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13127 (struct objfile) <ei>: ...here. Remove.
13128 * objfiles.c (entry_point_address_query): Update.
13129
13130 2014-01-15 Tom Tromey <tromey@redhat.com>
13131
13132 * objfiles.c (entry_point_address_query): Relocate entry point
13133 address.
13134 (objfile_relocate1): Do not relocate entry point address.
13135 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13136 <the_bfd_section_index>: New field.
13137 * symfile.c (init_entry_point_info): Find the entry point's
13138 section.
13139
13140 2014-01-15 Tom Tromey <tromey@redhat.com>
13141
13142 * solib-frv.c (enable_break): Use entry_point_address_query.
13143
13144 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13145
13146 * NEWS: Add note on improved process record-replay on
13147 arm*-linux* targets.
13148
13149 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13150
13151 * arm-tdep.c (enum arm_record_result): New enum.
13152 (arm_record_unsupported_insn): New function.
13153 (arm_record_coproc_data_proc): Removed.
13154 (thumb2_record_ld_st_multiple): New function.
13155 (thumb2_record_ld_st_dual_ex_tbb): New function.
13156 (thumb2_record_data_proc_sreg_mimm): New function.
13157 (thumb2_record_ps_dest_generic): New function.
13158 (thumb2_record_branch_misc_cntrl): New function.
13159 (thumb2_record_str_single_data): New function.
13160 (thumb2_record_ld_mem_hints): New function.
13161 (thumb2_record_ld_word): New function.
13162 (thumb2_record_lmul_lmla_div): New function.
13163 (thumb2_record_decode_insn_handler): New function.
13164 (decode_insn): Add thumb32 instruction handlers.
13165
13166 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13167
13168 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13169 (struct arm_linux_record_tdep): Declare.
13170 (arm_canonicalize_syscall): New function.
13171 (arm_all_but_pc_registers_record): New function.
13172 (arm_linux_syscall_record): New function.
13173 (arm_linux_init_abi): Add syscall recording constructs.
13174 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13175 decoding. (arm_record_coproc_data_proc): Update arm syscall
13176 decoding.
13177 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13178 <arm_syscall_record>: New field.
13179 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13180 gdb_target_obs.
13181
13182 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13183
13184 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13185 register for push instruction recording.
13186
13187 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13188
13189 * arm-tdep.c (thumb_record_misc): Update to correct logical
13190 error while recording ldm, ldmia and pop instructions.
13191
13192 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13193
13194 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13195
13196 2014-01-15 Pedro Alves <palves@redhat.com>
13197
13198 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13199 (go32_resume, go32_fetch_registers, store_register)
13200 (go32_store_registers, go32_prepare_to_store)
13201 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13202 (go32_create_inferior, go32_can_run, go32_terminal_init)
13203 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13204 declarations.
13205
13206 2014-01-15 Tom Tromey <tromey@redhat.com>
13207
13208 * target.h (async_callback_ftype): New typedef.
13209 (struct target_ops) <to_async>: Use it.
13210
13211 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13212
13213 * python/py-value.c (get_field_type): Remove unnecessary curly
13214 braces for single-statement if block.
13215
13216 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13217
13218 * python/py-type.c (convert_field): Add missing empty line
13219 after declarations.
13220
13221 2014-01-14 Doug Evans <dje@google.com>
13222
13223 * symfile.h (expand_symtabs_matching): Renamed from
13224 expand_partial_symbol_names. Update prototype.
13225 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13226 * symfile.c (expand_symtabs_matching): Renamed from
13227 expand_partial_symbol_names. New args file_matcher, kind.
13228 Rename arg fun to symbol_matcher.
13229 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13230 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13231 ada_expand_partial_symbol_name.
13232 (ada_make_symbol_completion_list): Update to call
13233 expand_symtabs_matching.
13234 (ada_add_global_exceptions): Call expand_symtabs_matching.
13235 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13236 call map_symbol_filenames.
13237 * symtab.c (sources_info): Update to call map_symbol_filenames.
13238 (search_symbols): Call expand_symtabs_matching.
13239 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13240 (default_make_symbol_completion_list_break_on): Update to call
13241 expand_symtabs_matching.
13242 (make_source_files_completion_list): Update to call
13243 map_symbol_filenames.
13244
13245 2014-01-14 Doug Evans <dje@google.com>
13246
13247 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13248 (expand_symtabs_symbol_matcher_ftype): New typedef.
13249 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13250 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13251 * symfile.c (expand_partial_symbol_names): Update to use
13252 expand_symtabs_symbol_matcher_ftype.
13253 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13254 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13255 Arg name_matcher renamed to symbol_matcher.
13256 * psymtab.c (recursively_search_psymtabs): Update to use
13257 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13258 sym_matcher.
13259 (expand_symtabs_matching_via_partial): Update to use
13260 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13261 Arg name_matcher renamed to symbol_matcher.
13262
13263 2014-01-14 Doug Evans <dje@google.com>
13264
13265 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13266 (map_partial_symbol_filenames): Ditto.
13267 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13268 (map_partial_symbol_filenames): Ditto.
13269 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13270 (map_partial_symbol_filenames): Ditto.
13271 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13272 (map_partial_symbol_filenames): Ditto.
13273 * symtab.c: Delete #include "psymtab.h".
13274
13275 2014-01-14 Pedro Alves <palves@redhat.com>
13276 Tom Tromey <tromey@redhat.com>
13277
13278 * infrun.c (use_displaced_stepping): Use find_record_target
13279 instead of RECORD_IS_USED.
13280 (adjust_pc_after_break): Use record_full_is_used instead of
13281 RECORD_IS_USED.
13282 * record-btrace.c (record_btrace_open): Call record_preopen
13283 instead of checking RECORD_IS_USED.
13284 * record-full.c (record_full_shortname)
13285 (record_full_core_shortname): New globals.
13286 (record_full_is_used): New function.
13287 (find_full_open): Call record_preopen instead of checking
13288 RECORD_IS_USED.
13289 (init_record_full_ops): Set the target's shortname to
13290 record_full_shortname.
13291 (init_record_full_core_ops): Set the target's shortname to
13292 record_full_core_shortname.
13293 * record-full.h (record_full_is_used): Declare.
13294 * record.c (find_record_target): Make extern.
13295 (record_preopen): New function.
13296 * record.h (RECORD_IS_USED): Delete macro.
13297 (find_record_target, record_preopen): Declare functions.
13298
13299 2014-01-14 Yao Qi <yao@codesourcery.com>
13300
13301 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13302 'len''s type to ULONGEST.
13303 (core_xfer_shared_libraries_aix): Likewise.
13304 * gdbarch.c, gdbarch.h: Regenerated.
13305 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13306 Change type of 'len' to ULONGEST.
13307 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13308 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13309
13310 2014-01-14 Yao Qi <yao@codesourcery.com>
13311
13312 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13313 type of 'len' to ULONGEST.
13314 (linux_xfer_osdata_processgroups): Likewise.
13315 (linux_xfer_osdata_threads): Likewise.
13316 (linux_xfer_osdata_fds): Likewise.
13317 (linux_xfer_osdata_isockets): Likewise.
13318 (linux_xfer_osdata_shm): Likewise.
13319 (linux_xfer_osdata_sem): Likewise.
13320 (linux_xfer_osdata_msg): Likewise.
13321 (linux_common_xfer_osdata): Likewise.
13322 (struct osdata_type) <getter>: Likewise.
13323 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13324 the declaration.
13325
13326 2014-01-14 Yao Qi <yao@codesourcery.com>
13327
13328 * target.h (target_xfer_partial_ftype): Update.
13329 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13330 ULONGEST.
13331 * aix-thread.c (aix_thread_xfer_partial): Change type of
13332 argument 'len' to ULONGEST.
13333 * auxv.c (procfs_xfer_auxv): Likewise.
13334 (ld_so_xfer_auxv): Likewise.
13335 (memory_xfer_auxv): Likewise.
13336 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13337 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13338 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13339 * corelow.c (core_xfer_partial): Likewise.
13340 * ctf.c (ctf_xfer_partial): Likewise.
13341 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13342 '%u'.
13343 (darwin_read_dyld_info): Likewise.
13344 (darwin_xfer_partial): Likewise.
13345 * exec.c (section_table_xfer_memory_partial): Likewise.
13346 (exec_xfer_partial): Likewise.
13347 * exec.h (section_table_xfer_memory_partial): Update
13348 declaration.
13349 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13350 instead of plongest.
13351 (gnu_xfer_partial): Likewise.
13352 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13353 (ia64_hpux_xfer_solib_got): Likewise.
13354 (ia64_hpux_xfer_partial): Likewise.
13355 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13356 * inf-ptrace.c (inf_ptrace_xfer_partial):
13357 * inf-ttrace.c (inf_ttrace_xfer_partial):
13358 * linux-nat.c (linux_xfer_siginfo): Likewise.
13359 (linux_nat_xfer_partial): Likewise.
13360 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13361 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13362 * monitor.c (monitor_xfer_memory): Likewise.
13363 (monitor_xfer_partial): Likewise.
13364 * procfs.c (procfs_xfer_partial): Likewise.
13365 * record-full.c (record_full_xfer_partial): Likewise.
13366 (record_full_core_xfer_partial): Likewise.
13367 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13368 instead of plongest.
13369 (gdbsim_xfer_partial): Likewise.
13370 * remote.c (remote_xfer_partial): Likewise.
13371 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13372 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13373 declaration.
13374 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13375 (rs6000_xfer_shared_libraries): Likewise.
13376 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13377 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13378 (sparc_xfer_partial): Likewise.
13379 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13380 (spu_xfer_partial): Likewise.
13381 * spu-multiarch.c (spu_xfer_partial): Likewise.
13382 * target.c (target_read_live_memory): Likewise.
13383 (memory_xfer_live_readonly_partial): Likewise.
13384 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13385 (target_xfer_partial, default_xfer_partial): Likewise.
13386 (current_xfer_partial): Likewise.
13387 * tracepoint.c (tfile_xfer_partial): Likewise.
13388 * windows-nat.c (windows_xfer_memory): Likewise. Call
13389 pulongest instead of plongest.
13390 (windows_xfer_partial): Likewise.
13391 (windows_xfer_shared_libraries): Likewise.
13392
13393 2014-01-14 Yao Qi <yao@codesourcery.com>
13394
13395 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13396 target_xfer_partial_ftype.
13397
13398 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13399
13400 PR python/15464
13401 PR python/16113
13402 * valops.c (value_struct_elt_bitpos): New function
13403 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13404 object to 'None' if the field name is an empty string ("").
13405 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13406 attribute to look for a field when 'name' is 'None'.
13407 (get_field_type): New function
13408
13409 2014-01-13 Doug Evans <dje@google.com>
13410
13411 PR symtab/16426
13412 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13413 (try_open_dwop_file): Ditto.
13414 * gdb_bfd.c: #include "vec.h".
13415 (bfdp): New typedef.
13416 (struct gdb_bfd_data): New member included_bfds.
13417 (gdb_bfd_unref): Unref all included bfds.
13418 (gdb_bfd_record_inclusion): New function.
13419 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13420
13421 2014-01-13 Tom Tromey <tromey@redhat.com>
13422
13423 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13424
13425 2014-01-13 Tom Tromey <tromey@redhat.com>
13426
13427 * defs.h (use_windows): Remove.
13428 * gdb.c (main): Update.
13429 * main.c (captured_main, gdb_main): Update.
13430 * main.h (struct captured_main_args) <use_windows>: Remove.
13431 * top.c (use_windows): Remove.
13432
13433 2014-01-13 Tom Tromey <tromey@redhat.com>
13434
13435 * defs.h (deprecated_flush_hook): Remove.
13436
13437 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13438
13439 PR threads/16216
13440 * linux-thread-db.c (try_thread_db_load): Add parameter
13441 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13442 (try_thread_db_load_from_pdir_1): Move it there from here.
13443 (try_thread_db_load_from_sdir): Update caller.
13444 (try_thread_db_load_from_dir): Move it there from here.
13445
13446 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13447
13448 * regformats/regdat.sh: Always rewrite the register file.
13449
13450 2014-01-13 Pedro Alves <palves@redhat.com>
13451
13452 * Makefile.in (CHECK_HEADERS): New variable.
13453 (check-headers:): New rule.
13454
13455 2014-01-13 Tom Tromey <tromey@redhat.com>
13456
13457 * cli/cli-setshow.c (do_set_command): Update.
13458 * defs.h (deprecated_set_hook): Remove.
13459 * top.c (deprecated_set_hook): Remove.
13460
13461 2014-01-13 Pedro Alves <palves@redhat.com>
13462
13463 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13464 the tracepoint if the PC is a pseudo-register.
13465
13466 2014-01-13 Tom Tromey <tromey@redhat.com>
13467
13468 * defs.h (XCALLOC): Remove.
13469 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13470 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13471 * dwarf2loc.c (allocate_piece_closure): Likewise.
13472 * elfread.c (elf_symfile_segments): Likewise.
13473 (elf_symfile_segments): Likewise.
13474 * gdbtypes.c (copy_type_recursive): Likewise.
13475 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13476 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13477 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13478 XCALLOC.
13479 * mt-tdep.c (mt_gdbarch_init): Likewise.
13480 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13481 XCALLOC.
13482 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13483 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13484 * registry.c (registry_alloc_data): Likewise.
13485 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13486 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13487 * serial.c (serial_fdopen_ops): Likewise.
13488 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13489 XCALLOC.
13490 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13491 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13492 not XCALLOC.
13493
13494 2014-01-13 Tom Tromey <tromey@redhat.com>
13495
13496 * defs.h (XMALLOC): Remove.
13497 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13498 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13499 * cli-out.c (struct ui_out *): Likewise.
13500 * cli/cli-dump.c (add_dump_command): Likewise.
13501 (add_dump_command): Likewise.
13502 * complaints.c (get_complaints): Likewise.
13503 (find_complaint): Likewise.
13504 * dwarf2-frame.c (execute_cfa_program): Likewise.
13505 * dwarf2read.c (abbrev_table_read_table): Likewise.
13506 * gdbarch.sh: Likewise.
13507 * gdbarch.c: Rebuild.
13508 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13509 * interps.c (interp_new): Likewise.
13510 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13511 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13512 * mi/mi-console.c (mi_console_file_new): Likewise.
13513 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13514 * mi/mi-out.c (mi_out_new): Likewise.
13515 * mi/mi-parse.c (mi_parse): Likewise.
13516 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13517 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13518 * observer.c (xalloc_observer_list_node): Likewise.
13519 * regcache.c (regcache_xmalloc_1): Likewise.
13520 * reggroups.c (reggroup_new): Likewise.
13521 (_initialize_reggroup): Likewise.
13522 * registry.c (register_data_with_cleanup): Likewise.
13523 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13524 * ser-base.c (serial_ttystate): Likewise.
13525 * ser-mingw.c (make_pipe_state): Likewise.
13526 * ser-pipe.c (pipe_open): Likewise.
13527 * serial.c (serial_open): Likewise.
13528 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13529 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13530 (tui_alloc_win_info): Likewise.
13531 (tui_add_content_elements): Likewise.
13532 * tui/tui-file.c (tui_file_new): Likewise.
13533 * tui/tui-out.c (tui_out_new): Likewise.
13534 * ui-file.c (mem_file_new): Likewise.
13535 * ui-out.c (push_level): Likewise.
13536 (make_cleanup_ui_out_end): Likewise.
13537 (append_header_to_list): Likewise.
13538 (ui_out_new): Likewise.
13539 * user-regs.c (user_reg_add_builtin): Likewise.
13540
13541 2014-01-13 Tom Tromey <tromey@redhat.com>
13542
13543 * defs.h (XZALLOC): Remove.
13544 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13545 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13546 (get_ada_tasks_inferior_data): Likewise.
13547 * auto-load.c (get_auto_load_pspace_data): Likewise.
13548 * auxv.c (get_auxv_inferior_data): Likewise.
13549 * bfd-target.c (target_bfd_reopen): Likewise.
13550 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13551 (deprecated_insert_raw_breakpoint): Likewise.
13552 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13553 * corelow.c (core_open): Likewise.
13554 * darwin-nat.c (darwin_check_new_threads): Likewise.
13555 (darwin_attach_pid): Likewise.
13556 * dummy-frame.c (dummy_frame_push): Likewise.
13557 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13558 * dwarf2loc.c (allocate_piece_closure): Likewise.
13559 * elfread.c (elf_symfile_segments): Likewise.
13560 * eval.c (ptrmath_type_p): Likewise.
13561 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13562 * gdbtypes.c (alloc_type_arch): Likewise.
13563 (alloc_type_instance): Likewise.
13564 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13565 * inf-child.c (inf_child_can_use_agent): Likewise.
13566 * inflow.c (get_inflow_inferior_data): Likewise.
13567 * infrun.c (save_infcall_suspend_state): Likewise.
13568 * jit.c (jit_reader_load): Likewise.
13569 (get_jit_objfile_data): Likewise.
13570 (get_jit_program_space_data): Likewise.
13571 (jit_object_open_impl): Likewise.
13572 (jit_symtab_open_impl): Likewise.
13573 (jit_block_open_impl): Likewise.
13574 (jit_frame_sniffer): Likewise.
13575 * linux-fork.c (add_fork): Likewise.
13576 * maint.c (make_command_stats_cleanup): Likewise.
13577 * objfiles.c (get_objfile_pspace_data): Likewise.
13578 * opencl-lang.c (struct lval_closure): Likewise.
13579 * osdata.c (osdata_start_osdata): Likewise.
13580 * progspace.c (new_address_space): Likewise.
13581 (add_program_space): Likewise.
13582 * remote-sim.c (get_sim_inferior_data): Likewise.
13583 * sh-tdep.c (sh_gdbarch_init): Likewise.
13584 * skip.c (Ignore): Likewise.
13585 (skip_delete_command): Likewise.
13586 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13587 (library_list_start_library): Likewise.
13588 (solib_aix_current_sos): Likewise.
13589 * solib-darwin.c (get_darwin_info): Likewise.
13590 (darwin_current_sos): Likewise.
13591 * solib-dsbt.c (get_dsbt_info): Likewise.
13592 * solib-ia64-hpux.c (new_so_list): Likewise.
13593 (ia64_hpux_get_solib_linkage_addr): Likewise.
13594 * solib-spu.c (append_ocl_sos): Likewise.
13595 (spu_current_sos): Likewise.
13596 * solib-svr4.c (get_svr4_info): Likewise.
13597 (svr4_keep_data_in_core): Likewise.
13598 (library_list_start_library): Likewise.
13599 (svr4_default_sos): Likewise.
13600 (svr4_read_so_list): Likewise.
13601 * solib-target.c (library_list_start_library): Likewise.
13602 (solib_target_current_sos): Likewise.
13603 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13604 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13605 * symfile.c (default_symfile_segments): Likewise.
13606 * target-descriptions.c (tdesc_data_init): Likewise.
13607 (tdesc_create_reg): Likewise.
13608 (struct tdesc_type *): Likewise.
13609 (tdesc_create_vector): Likewise.
13610 (tdesc_set_struct_size): Likewise.
13611 (struct tdesc_type *): Likewise.
13612 (tdesc_free_feature): Likewise.
13613 (tdesc_create_feature): Likewise.
13614 * windows-nat.c (windows_add_thread): Likewise.
13615 (windows_make_so): Likewise.
13616 * xml-support.c (gdb_xml_body_text): Likewise.
13617 (gdb_xml_create_parser_and_cleanup): Likewise.
13618 (xml_process_xincludes): Likewise.
13619 * xml-syscall.c (allocate_syscalls_info): Likewise.
13620 (syscall_create_syscall_desc): Likewise.
13621
13622 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13623
13624 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13625 function, with code from i386_stap_parse_special_token.
13626 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13627 (i386_stap_parse_special_token): Move code to the two functions
13628 above; simplify it.
13629
13630 2014-01-09 Pedro Alves <palves@redhat.com>
13631 Hui Zhu <hui@codesourcery.com>
13632
13633 PR gdb/16101
13634 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13635 bp_err_string. Don't mark the location shlib_disabled if the
13636 error thrown wasn't a generic or memory error. Catch errors
13637 thrown while inserting breakpoints in overlayed code. Output
13638 error message of software breakpoints.
13639 * remote.c (remote_insert_breakpoint): If this breakpoint has
13640 target-side commands but this stub doesn't support Z0 packets,
13641 throw NOT_SUPPORTED_ERROR error.
13642 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13643 * target.h (target_insert_breakpoint): Extend comment.
13644 (target_insert_hw_breakpoint): Add comment.
13645
13646 2014-01-08 Pedro Alves <palves@redhat.com>
13647
13648 * remote.c (remote_add_thread): Add threads silently if starting
13649 up.
13650 (remote_notice_new_inferior): If in all-stop, and starting up,
13651 don't call notice_new_inferior.
13652 (get_current_thread): New function, factored out from ...
13653 (add_current_inferior_and_thread): ... this. Adjust.
13654 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13655 found any thread, then select the remote's current thread as GDB's
13656 current thread too.
13657
13658 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13659
13660 * NEWS: Create a new section for the next release branch.
13661 Rename the section of the current branch, now that it has
13662 been cut.
13663
13664 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13665
13666 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13667 * version.in: Bump version to 7.7.50.DATE-cvs.
13668
13669 2014-01-08 Yao Qi <yao@codesourcery.com>
13670
13671 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13672 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13673 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13674
13675 2014-01-08 Yao Qi <yao@codesourcery.com>
13676
13677 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13678 return value of bfd_get_filename to symbol_file_add_from_bfd.
13679
13680 2014-01-08 Pierre Muller <muller@sourceware.org>
13681
13682 Fix PR16201.
13683 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13684 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13685 to prim_record_mininal_symbol_and_info.
13686 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13687 in call to prim_record_minimal_symbol_and_info.
13688 (read_pe_exported_syms): Set index field of section_data.
13689
13690 2014-01-07 Andrew Pinski <apinski@cavium.com>
13691
13692 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13693 * features/aarch64.c: Regenerate.
13694
13695 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13696
13697 * target.c (return_null): Define.
13698 (update_current_target): Use it instead of return_zero for
13699 functions that return a pointer.
13700
13701 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13702
13703 * source.c (add_path): Fix check for duplicated paths in the previously
13704 included paths.
13705
13706 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13707
13708 * ada-lang.c: Remove duplicated include statements.
13709 * alphabsd-nat.c: Ditto.
13710 * amd64-darwin-tdep.c: Ditto.
13711 * amd64fbsd-nat.c: Ditto.
13712 * auto-load.c: Ditto.
13713 * ax-gdb.c: Ditto.
13714 * breakpoint.c: Ditto.
13715 * dbxread.c: Ditto.
13716 * fork-child.c: Ditto.
13717 * gdb_usleep.c: Ditto.
13718 * i386-darwin-tdep.c: Ditto.
13719 * i386fbsd-nat.c: Ditto.
13720 * infcmd.c: Ditto.
13721 * inferior.c: Ditto.
13722 * jv-lang.c: Ditto.
13723 * linux-nat.c: Ditto.
13724 * linux-tdep.c: Ditto.
13725 * m68kbsd-nat.c: Ditto.
13726 * m68klinux-nat.c: Ditto.
13727 * microblaze-tdep.c: Ditto.
13728 * mips-linux-tdep.c: Ditto.
13729 * mn10300-tdep.c: Ditto.
13730 * nto-tdep.c: Ditto.
13731 * opencl-lang.c: Ditto.
13732 * osdata.c: Ditto.
13733 * printcmd.c: Ditto.
13734 * regcache.c: Ditto.
13735 * remote-m32r-sdi.c: Ditto.
13736 * remote.c: Ditto.
13737 * symfile.c: Ditto.
13738 * symtab.c: Ditto.
13739 * tilegx-linux-nat.c: Ditto.
13740 * tilegx-tdep.c: Ditto.
13741 * tracepoint.c: Ditto.
13742 * valops.c: Ditto.
13743 * vaxbsd-nat.c: Ditto.
13744 * windows-nat.c: Ditto.
13745 * xtensa-tdep.c: Ditto.
13746
13747 2014-01-07 Yao Qi <yao@codesourcery.com>
13748
13749 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13750
13751 2014-01-07 Yao Qi <yao@codesourcery.com>
13752 Joel Brobecker <brobecker@adacore.com>
13753
13754 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13755 (pdc_write_regs): Likewise.
13756 (fetch_regs_kernel_thread): Likewise.
13757 (store_regs_kernel_thread): Likewise.
13758
13759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13760
13761 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13762 tagged type objects to their actual type.
13763
13764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13765
13766 * ada-valprint.c (print_field_values): Add "language" parameter.
13767 Update calls to print_field_values and print_variant_part.
13768 Pass new parameter "language" in call to val_print instead
13769 of "current_language". Replace call to ada_val_print by call
13770 to val_print.
13771 (print_variant_part): Add "language" parameter.
13772 (ada_val_print_struct_union): Update call to print_field_values.
13773
13774 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13775
13776 * ada-valprint.c (ui_memcpy): Delete.
13777 (ada_print_floating): Update documentation. Add empty line
13778 between between function documentation and implementation.
13779 Delete variable "buffer". Use ui_file_xstrdup in place of
13780 ui_file_put. Minor adjustments following this change.
13781
13782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13783
13784 * ada-valprint.c (ada_val_print_string): New function,
13785 extracted from ada_val_print_array.
13786 (ada_val_print_array): Replace extracted code by call
13787 to ada_val_print_string followed by a return. Move
13788 "else" branch to the function's top block.
13789
13790 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13791
13792 * ada-valprint.c (ada_val_print_array): Move implementation
13793 down. Rename parameter "offset" and "val" into "offset_aligned"
13794 and "original_value" respectively. Add parameter "offset".
13795
13796 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13797
13798 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13799 re-organizing the code. Change the "???" message printed
13800 when target type is a TYPE_CODE_UNDEF into
13801 "<ref to undefined type>".
13802
13803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13804
13805 * ada-valprint.c (print_record): Delete, implementation inlined...
13806 (ada_val_print_struct_union): ... here. Remove call to
13807 ada_check_typedef in inlined implementation.
13808
13809 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13810
13811 * ada-valprint.c (ada_val_print_gnat_array): New function,
13812 extracted from ada_val_print_1;
13813 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13814 (ada_val_print_flt, ada_val_print_struct_union)
13815 (ada_val_print_ref): Likewise.
13816 (ada_val_print_1): Delete variables i and elttype.
13817 Replace extracted-out code by call to corresponding
13818 new functions.
13819
13820 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13821
13822 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13823
13824 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13825
13826 * ada-valprint.c (ada_val_print_1): Replace calls to
13827 ada_val_print_1 by calls to val_print.
13828
13829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13830
13831 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13832 Update calls to self accordingly. Replace calls to c_val_print
13833 by calls to val_print.
13834
13835 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13836
13837 * ada-valprint.c (print_record): Delete declaration.
13838 (adjust_type_signedness, ada_val_print_1): Likewise.
13839 (ada_val_print): Move function implementation down.
13840 (print_variant_part, print_field_values, print_record):
13841 Move function implementation up.
13842
13843 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13844
13845 * python/py-type.c (typy_get_name): New function.
13846 (type_object_getset): Add entry for attribute "name".
13847 * NEWS: Add entry mentioning this new attribute.
13848
13849 2014-01-07 Yao Qi <yao@codesourcery.com>
13850
13851 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13852 statement.
13853
13854 2014-01-07 Yao Qi <yao@codesourcery.com>
13855
13856 * gnu-nat.c (info_port_rights): Add qualifier const to
13857 argument args.
13858
13859 2014-01-07 Yao Qi <yao@codesourcery.com>
13860
13861 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13862
13863 2014-01-07 Yao Qi <yao@codesourcery.com>
13864
13865 * gnu-nat.c (make_inf) Update declaration.
13866 (make_inf): Make it static.
13867 (inf_set_traced): Likewise.
13868 (inf_port_to_thread, inf_task_died_status): Likewise.
13869
13870 2014-01-07 Yao Qi <yao@codesourcery.com>
13871
13872 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13873
13874 2014-01-07 Yao Qi <yao@codesourcery.com>
13875
13876 * gnu-nat.c (_initialize_gnu_nat): Declare.
13877
13878 2014-01-07 Yao Qi <yao@codesourcery.com>
13879
13880 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13881 'enum bfd_endian'.
13882 (struct gdbarch_info) <byte_order>: Change type to
13883 'enum bfd_endian'.
13884 <byte_order_for_code>: Likewise.
13885 * gdbarch.c, gdbarch.h: Regenerated.
13886
13887 2014-01-06 Sasha Smundak <asmundak@google.com>
13888
13889 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13890
13891 2014-01-06 Tom Tromey <tromey@redhat.com>
13892
13893 * doublest.c (convert_doublest_to_floatformat): Use const, not
13894 CONST.
13895 * somread.c (som_symtab_read): Likewise.
13896
13897 2014-01-07 Hui Zhu <hui@codesourcery.com>
13898
13899 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13900 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13901 (gdb_bfd_fopen): Ditto.
13902 (gdb_bfd_openr): Ditto.
13903 (gdb_bfd_openw): Ditto.
13904 (gdb_bfd_openr_iovec): Ditto.
13905 (gdb_bfd_fdopenr): Ditto.
13906 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13907 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13908 with xstrdup.
13909 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13910 with xstrdup.
13911 * symfile-mem.c (symbol_file_add_from_memory): Removed
13912 gdb_bfd_stash_filename.
13913
13914 2014-01-03 Doug Evans <dje@google.com>
13915
13916 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13917 output.
13918
13919 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13920
13921 Update year range in copyright notice of all files.
13922
13923 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13924
13925 * top.c (print_gdb_version): Set copyright year to 2014.
13926
13927 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13928
13929 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13930
13931 For older changes see ChangeLog-2013.
13932 \f
13933 Local Variables:
13934 mode: change-log
13935 left-margin: 8
13936 fill-column: 74
13937 version-control: never
13938 coding: utf-8
13939 End:
This page took 0.301379 seconds and 5 git commands to generate.