1 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * gdb/infrun.c (process_event_stop_test): Apply
4 gdbarch_addr_bits_remove to longjmp resume address.
6 2014-10-15 Pedro Alves <palves@redhat.com>
8 * regformats/microblaze.dat: Delete file.
10 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
12 * features/Makefile (microblaze-expedite): Replace pc with rpc.
13 * regformats/microblaze-with-stack-protect.dat: Regenerate.
15 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
17 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
20 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
24 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
27 2014-10-14 Joel Brobecker <brobecker@adacore.com>
29 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
30 of the case where the second operand is a pointer.
31 <BINOP_SUB>: Likewise.
33 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
35 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
36 only if it is not NULL.
37 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
38 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
39 (struct probe_ops) <clear_semaphore>: Likewise.
40 * tracepoint.c (start_tracing): Call set_semaphore only if it is
42 (stop_tracing): Likewise, for clear_semaphore.
44 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
46 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
47 using language_c, instead of current_language.
49 2014-10-13 Doug Evans <dje@google.com>
51 * python/py-objfile.c (objfpy_initialize): New function.
52 (objfpy_new, objfile_to_objfile_object): Call it.
53 * python/py-progspace.c (pspy_initialize): New function.
54 (pspy_new, pspace_to_pspace_object): Call it.
56 2014-10-13 Miroslav Franc <mfranc@redhat.com>
57 Jan Kratochvil <jan.kratochvil@redhat.com>
59 Fix "save breakpoints" for "catch" command.
60 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
63 2014-10-12 Miroslav Franc <mfranc@redhat.com>
65 Fix "save breakpoints" for "disable $bpnum" command.
66 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
68 2014-10-10 Pedro Alves <palves@redhat.com>
70 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
71 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
72 (HFILES_NO_SRCDIR): Remove solib-irix.h.
73 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
75 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
76 * configure.ac: Remove references to IRIX.
77 * configure.host: Add *-*-irix* to the obsolete hosts section.
78 Remove all other references to irix.
79 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
82 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
84 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
85 isn't valid, release the tdesc arch data and return NULL.
87 2014-10-10 Pedro Alves <palves@redhat.com>
89 * linux-tdep.c: Include observer.h.
90 (linux_inferior_data): New global.
91 (struct linux_info): New structure.
92 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
93 (get_linux_inferior_data): New functions.
94 (linux_vsyscall_range): Rename to ...
95 (linux_vsyscall_range_raw): ... this.
96 (linux_vsyscall_range): New function; handles caching.
97 (_initialize_linux_tdep): Register linux_inferior_data. Install
98 inferior_exit and inferior_appeared observers.
100 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
101 Pedro Alves <palves@redhat.com>
104 * solib-svr4.c (svr4_read_so_list): Rename to ...
105 (svr4_current_sos_1): ... this and change the function comment.
106 (svr4_current_sos): New function.
108 2014-10-10 Pedro Alves <palves@redhat.com>
110 * arch-utils.c (default_vsyscall_range): New function.
111 * arch-utils.h (default_vsyscall_range): New declaration.
112 * gdbarch.sh (vsyscall_range): New hook.
113 * gdbarch.h, gdbarch.c: Regenerate.
114 * linux-tdep.c (linux_vsyscall_range): New function.
115 (linux_init_abi): Install linux_vsyscall_range as
116 vsyscall_range gdbarch hook.
117 * memrange.c (address_in_mem_range): New function.
118 * memrange.h (address_in_mem_range): New declaration.
119 * symfile-mem.c (find_vdso_size): Delete function.
120 (add_vsyscall_page): Use gdbarch_vsyscall_range.
122 2014-10-10 Pedro Alves <palves@redhat.com>
124 * infrun.c (normal_stop): Fix typo in comment.
126 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
129 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
130 typo when using logical AND to determine instruction type.
132 2014-10-09 Yao Qi <yao@codesourcery.com>
134 * infrun.c (handle_signal_stop): Remove local variable
137 2014-10-08 Stan Shebs <stan@codesourcery.com>
139 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
141 2014-10-08 Gary Benson <gbenson@redhat.com>
143 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
145 2014-10-08 Gary Benson <gbenson@redhat.com>
147 * common/common-defs.h: Include common-exceptions.h.
148 * exceptions.h: Do not include common-exceptions.h.
150 2014-10-08 Gary Benson <gbenson@redhat.com>
152 * common/common-defs.h: Include cleanups.h.
153 * common/common-exceptions.c: Do not include cleanups.h.
156 2014-10-08 Gary Benson <gbenson@redhat.com>
158 * ada-lang.c: Do not include exceptions.h.
159 * ada-valprint.c: Likewise.
160 * amd64-tdep.c: Likewise.
161 * auto-load.c: Likewise.
163 * break-catch-throw.c: Likewise.
164 * breakpoint.c: Likewise.
165 * btrace.c: Likewise.
166 * c-lang.c: Likewise.
167 * cli/cli-cmds.c: Likewise.
168 * cli/cli-interp.c: Likewise.
169 * cli/cli-script.c: Likewise.
170 * completer.c: Likewise.
171 * corefile.c: Likewise.
172 * corelow.c: Likewise.
173 * cp-abi.c: Likewise.
174 * cp-support.c: Likewise.
175 * cp-valprint.c: Likewise.
176 * darwin-nat.c: Likewise.
177 * dwarf2-frame-tailcall.c: Likewise.
178 * dwarf2-frame.c: Likewise.
179 * dwarf2loc.c: Likewise.
180 * dwarf2read.c: Likewise.
182 * event-loop.c: Likewise.
183 * event-top.c: Likewise.
184 * f-valprint.c: Likewise.
185 * frame-unwind.c: Likewise.
187 * gdbtypes.c: Likewise.
188 * gnu-v2-abi.c: Likewise.
189 * gnu-v3-abi.c: Likewise.
190 * guile/scm-auto-load.c: Likewise.
191 * guile/scm-breakpoint.c: Likewise.
192 * guile/scm-cmd.c: Likewise.
193 * guile/scm-frame.c: Likewise.
194 * guile/scm-lazy-string.c: Likewise.
195 * guile/scm-param.c: Likewise.
196 * guile/scm-symbol.c: Likewise.
197 * guile/scm-type.c: Likewise.
198 * hppa-hpux-tdep.c: Likewise.
199 * i386-tdep.c: Likewise.
200 * inf-loop.c: Likewise.
201 * infcall.c: Likewise.
202 * infcmd.c: Likewise.
203 * infrun.c: Likewise.
204 * interps.c: Likewise.
205 * interps.h: Likewise.
207 * linespec.c: Likewise.
208 * linux-nat.c: Likewise.
209 * linux-thread-db.c: Likewise.
210 * m32r-rom.c: Likewise.
212 * memory-map.c: Likewise.
213 * mi/mi-cmd-break.c: Likewise.
214 * mi/mi-cmd-stack.c: Likewise.
215 * mi/mi-interp.c: Likewise.
216 * mi/mi-main.c: Likewise.
217 * monitor.c: Likewise.
218 * nto-procfs.c: Likewise.
219 * objc-lang.c: Likewise.
220 * p-valprint.c: Likewise.
222 * ppc-linux-tdep.c: Likewise.
223 * printcmd.c: Likewise.
225 * python/py-auto-load.c: Likewise.
226 * python/py-breakpoint.c: Likewise.
227 * python/py-cmd.c: Likewise.
228 * python/py-finishbreakpoint.c: Likewise.
229 * python/py-frame.c: Likewise.
230 * python/py-framefilter.c: Likewise.
231 * python/py-function.c: Likewise.
232 * python/py-gdb-readline.c: Likewise.
233 * python/py-inferior.c: Likewise.
234 * python/py-infthread.c: Likewise.
235 * python/py-lazy-string.c: Likewise.
236 * python/py-linetable.c: Likewise.
237 * python/py-param.c: Likewise.
238 * python/py-prettyprint.c: Likewise.
239 * python/py-symbol.c: Likewise.
240 * python/py-type.c: Likewise.
241 * python/py-value.c: Likewise.
242 * python/python-internal.h: Likewise.
243 * python/python.c: Likewise.
244 * record-btrace.c: Likewise.
245 * record-full.c: Likewise.
246 * regcache.c: Likewise.
247 * remote-fileio.c: Likewise.
248 * remote-mips.c: Likewise.
249 * remote.c: Likewise.
250 * rs6000-aix-tdep.c: Likewise.
251 * rs6000-nat.c: Likewise.
253 * solib-darwin.c: Likewise.
254 * solib-dsbt.c: Likewise.
255 * solib-frv.c: Likewise.
256 * solib-ia64-hpux.c: Likewise.
257 * solib-spu.c: Likewise.
258 * solib-svr4.c: Likewise.
260 * spu-tdep.c: Likewise.
262 * stap-probe.c: Likewise.
263 * symfile-mem.c: Likewise.
264 * symmisc.c: Likewise.
265 * target.c: Likewise.
266 * thread.c: Likewise.
268 * tracepoint.c: Likewise.
269 * tui/tui-interp.c: Likewise.
270 * typeprint.c: Likewise.
272 * valarith.c: Likewise.
273 * valops.c: Likewise.
274 * valprint.c: Likewise.
276 * varobj.c: Likewise.
277 * windows-nat.c: Likewise.
278 * xml-support.c: Likewise.
280 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
282 * mips-tdep.c (add_offset_16): Rewrite to implement what the
284 (extended_mips16_next_pc): Update accordingly.
286 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
288 * mips-tdep.c (mips16_instruction_is_compact_branch): New
290 (micromips_instruction_is_compact_branch): Likewise.
291 (mips16_scan_prologue): Terminate scanning upon seeing a branch
292 or a compact jump, reaching a jump delay slot, or seeing a
293 second non-prologue instruction.
294 (micromips_scan_prologue): Also terminate scanning upon seeing a
295 compact branch or jump, or reaching a branch or jump delay slot.
296 (mips32_scan_prologue): Terminate scanning upon reaching a branch
297 or jump delay slot, or seeing a second non-prologue instruction.
298 (mips32_instruction_has_delay_slot): Retain instruction
299 examination code only, update arguments accordingly and move
300 instruction fetch pieces to...
301 (mips32_insn_at_pc_has_delay_slot): ... this new function.
302 (micromips_instruction_has_delay_slot): Likewise and to...
303 (micromips_insn_at_pc_has_delay_slot): ... this new function.
304 (mips16_instruction_has_delay_slot): Likewise and to...
305 (mips16_insn_at_pc_has_delay_slot): ... this new function.
306 (mips_single_step_through_delay): Update accordingly.
307 (mips_adjust_breakpoint_address): Likewise.
309 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
311 * mips-tdep.c (micromips_instruction_has_delay_slot): When
312 !mustbe32 also return 1 for 32-bit instructions.
313 (mips16_instruction_has_delay_slot): Likewise. Add an
316 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
318 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
321 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
323 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
325 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
326 for the breakpoint's address. Don't preinitialize `placed_size'.
327 (insert_bp_location): Set `reqstd_address' rather than
329 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
330 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
332 (bkpt_remove_location): Likewise.
333 (deprecated_insert_raw_breakpoint): Likewise.
334 (deprecated_remove_raw_breakpoint): Likewise.
335 (find_single_step_breakpoint): Likewise.
336 * mem-break.c (default_memory_insert_breakpoint): Use
337 `reqstd_address' for the breakpoint's address. Don't set
338 `placed_address' or `placed_size' if breakpoint contents couldn't
339 have been determined.
340 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
341 the breakpoint's address.
342 (remote_insert_hw_breakpoint): Likewise. Don't set
343 `placed_address' or `placed_size' if breakpoint couldn't have been
345 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
346 `reqstd_address' for the breakpoint's address.
347 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
348 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
349 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
350 * microblaze-linux-tdep.c
351 (microblaze_linux_memory_remove_breakpoint): Likewise.
352 * monitor.c (monitor_insert_breakpoint): Likewise.
353 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
354 (procfs_insert_hw_breakpoint): Likewise.
355 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
356 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
357 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
358 * remote-mips.c (mips_insert_breakpoint): Likewise.
359 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
361 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
363 * valops.c (value_assign): Check for bit field assignments
364 before calling architecture-specific register value
365 conversion functions.
367 2014-10-03 Pierre Muller <muller@sourceware.org>
369 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
371 2014-10-02 Pedro Alves <palves@redhat.com>
373 * breakpoint.c (breakpoints_should_be_inserted_now): Use
374 threads_are_executing.
375 * breakpoint.h (breakpoints_should_be_inserted_now): Add
377 * gdbthread.h (threads_are_executing): Declare.
378 (handle_signal_stop) <random signals>: Don't print about the
379 signal here if stopping.
380 (end_stepping_range): Don't notify observers here.
381 (normal_stop): Update the thread list. If stopped by a random
382 signal or a stepping range ended, notify observers.
383 * thread.c (threads_executing): New global.
384 (init_thread_list): Clear 'threads_executing'.
385 (set_executing): Set or clear 'threads_executing'.
386 (threads_are_executing): New function.
387 (update_threads_executing): New function.
388 (update_thread_list): Use it.
390 2014-10-02 Pedro Alves <palves@redhat.com>
393 * breakpoint.c (update_breakpoints_after_exec): Don't create
394 overlay, longjmp, std terminate nor exception breakpoints here.
396 2014-10-02 Pedro Alves <palves@redhat.com>
398 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
400 * inferior.c (find_inferior_for_program_space): Give preference to
401 the current inferior.
402 * inferior.h (find_inferior_for_program_space): Update comment.
403 * progspace.c (switch_to_program_space_and_thread): Prefer the
404 current inferior if it's bound to the program space requested. If
405 the inferior found doesn't have a PID yet, don't bother looking up
407 * progspace.h (switch_to_program_space_and_thread): Adjust
409 * thread.c (any_thread_of_process, any_live_thread_of_process):
410 Give preference to the current thread.
412 2014-10-01 Pedro Alves <palves@redhat.com>
414 * breakpoint.c (insert_bp_location): Error out if inserting a
415 software breakpoint at a read-only address.
416 * target.c (memory_xfer_check_region): New function, factored out
418 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
420 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
421 against the memory region attributes.
423 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
425 * NEWS: Announce new exit-code field in -list-thread-groups
427 * inferior.c (exit_inferior_1): Don't clear exit code.
428 (inferior_appeared): Clear exit code.
429 * mi/mi-main.c (print_one_inferior): Add printing of the exit
432 2014-10-01 Pedro Alves <palves@redhat.com>
434 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
435 GENERATED" along with emacs/vi read-only markers.
436 * regformats/aarch64.dat: Regenerate.
437 * regformats/arm-with-iwmmxt.dat: Regenerate.
438 * regformats/arm-with-neon.dat: Regenerate.
439 * regformats/arm-with-vfpv2.dat: Regenerate.
440 * regformats/arm-with-vfpv3.dat: Regenerate.
441 * regformats/i386/amd64-avx-linux.dat: Regenerate.
442 * regformats/i386/amd64-avx.dat: Regenerate.
443 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
444 * regformats/i386/amd64-avx512.dat: Regenerate.
445 * regformats/i386/amd64-linux.dat: Regenerate.
446 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
447 * regformats/i386/amd64-mpx.dat: Regenerate.
448 * regformats/i386/amd64.dat: Regenerate.
449 * regformats/i386/i386-avx-linux.dat: Regenerate.
450 * regformats/i386/i386-avx.dat: Regenerate.
451 * regformats/i386/i386-avx512-linux.dat: Regenerate.
452 * regformats/i386/i386-avx512.dat: Regenerate.
453 * regformats/i386/i386-linux.dat: Regenerate.
454 * regformats/i386/i386-mmx-linux.dat: Regenerate.
455 * regformats/i386/i386-mmx.dat: Regenerate.
456 * regformats/i386/i386-mpx-linux.dat: Regenerate.
457 * regformats/i386/i386-mpx.dat: Regenerate.
458 * regformats/i386/i386.dat: Regenerate.
459 * regformats/i386/x32-avx-linux.dat: Regenerate.
460 * regformats/i386/x32-avx.dat: Regenerate.
461 * regformats/i386/x32-avx512-linux.dat: Regenerate.
462 * regformats/i386/x32-avx512.dat: Regenerate.
463 * regformats/i386/x32-linux.dat: Regenerate.
464 * regformats/i386/x32.dat: Regenerate.
465 * regformats/microblaze-with-stack-protect.dat: Regenerate.
466 * regformats/mips-dsp-linux.dat: Regenerate.
467 * regformats/mips-linux.dat: Regenerate.
468 * regformats/mips64-dsp-linux.dat: Regenerate.
469 * regformats/mips64-linux.dat: Regenerate.
470 * regformats/nios2-linux.dat: Regenerate.
471 * regformats/rs6000/powerpc-32.dat: Regenerate.
472 * regformats/rs6000/powerpc-32l.dat: Regenerate.
473 * regformats/rs6000/powerpc-64l.dat: Regenerate.
474 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
475 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
476 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
477 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
478 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
479 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
480 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
481 * regformats/s390-linux32.dat: Regenerate.
482 * regformats/s390-linux32v1.dat: Regenerate.
483 * regformats/s390-linux32v2.dat: Regenerate.
484 * regformats/s390-linux64.dat: Regenerate.
485 * regformats/s390-linux64v1.dat: Regenerate.
486 * regformats/s390-linux64v2.dat: Regenerate.
487 * regformats/s390-te-linux64.dat: Regenerate.
488 * regformats/s390x-linux64.dat: Regenerate.
489 * regformats/s390x-linux64v1.dat: Regenerate.
490 * regformats/s390x-linux64v2.dat: Regenerate.
491 * regformats/s390x-te-linux64.dat: Regenerate.
492 * regformats/tic6x-c62x-linux.dat: Regenerate.
493 * regformats/tic6x-c62x.dat: Regenerate.
494 * regformats/tic6x-c64x-linux.dat: Regenerate.
495 * regformats/tic6x-c64x.dat: Regenerate.
496 * regformats/tic6x-c64xp-linux.dat: Regenerate.
497 * regformats/tic6x-c64xp.dat: Regenerate.
499 2014-10-01 Pedro Alves <palves@redhat.com>
501 * features/Makefile: Update comments.
502 (XMLTOC): List all xml files we build C files from.
503 (clean-cfiles): New rule.
505 2014-10-01 Pedro Alves <palves@redhat.com>
507 * features/i386/amd64-avx512-linux.c: Regenerate.
508 * features/i386/amd64-avx512.c: Regenerate.
509 * features/i386/x32-avx512-linux.c: Regenerate.
510 * features/i386/x32-avx512.c: Regenerate.
512 2014-10-01 Pedro Alves <palves@redhat.com>
514 * features/Makefile (WHICH): Remove arm-with-m,
515 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
517 2014-10-01 Pedro Alves <palves@redhat.com>
519 * features/Makefile (clean): New rule.
521 2014-10-01 Pedro Alves <palves@redhat.com>
523 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
524 (zmm14h): Add missing end quotes.
526 2014-10-01 Pedro Alves <palves@redhat.com>
528 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
529 * features/aarch64.c: Regenerate.
531 2014-09-30 Don Breazeal <donb@codesourcery.com>
533 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
534 code so as to work with follow_fork_inferior.
535 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
536 (inf_ttrace_create_inferior): Remove reference to
537 inf_ttrace_vfork_ppid.
538 (inf_ttrace_attach): Ditto.
539 (inf_ttrace_detach): Ditto.
540 (inf_ttrace_kill): Use current_inferior instead of
541 inf_ttrace_vfork_ppid.
542 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
543 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
544 inferior away from the parent.
545 * infrun.c (follow_fork): Call follow_fork_inferior instead of
547 (follow_fork_inferior): New function.
548 (follow_inferior_reset_breakpoints): Make function static.
549 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
550 * linux-nat.c (linux_child_follow_fork): Move target-independent
551 code to infrun.c:follow_fork_inferior.
553 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
555 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
556 * gdbarch.c: Regenerate.
557 * gdbarch.h: Likewise.
558 * corelow.c (sniff_core_bfd): Drop presence check for deleted
559 gdbarch method 'regset_from_core_section'.
560 (get_core_register_section): Remove handling for the case that
561 regset == NULL and regset_from_core_section is defined.
562 (get_core_registers): Drop check for deleted method.
563 * procfs.c (procfs_do_thread_registers): Adjust comment.
565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
567 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
568 (linux_nat_make_corefile_notes): Remove.
569 (linux_target_install_ops): Do not set target method
570 'make_corefile_notes'.
571 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
573 (linux_corefile_thread_callback): Instead of args->collect, call
574 linux_collect_thread_registers.
575 (linux_make_corefile_notes): Remove 'collect' parameter. Return
576 NULL unless there is a regset iterator.
577 (linux_make_corefile_notes_1): Remove.
578 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
579 by linux_make_corefile_notes.
580 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
582 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
584 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
585 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
587 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
589 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
591 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
592 (xtensa_iterate_over_regset_sections): New.
593 (xtensa_gdbarch_init): Adjust gdbarch initialization.
595 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
597 * vax-tdep.c (vax_regset_from_core_section): Remove.
598 (vax_iterate_over_regset_sections): New.
599 (vax_gdbarch_init): Adjust gdbarch initialization.
601 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
603 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
604 (tilegx_regset_from_core_section): Remove.
605 (tilegx_iterate_over_regset_sections): New.
606 (tilegx_linux_init_abi): Adjust gdbarch initialization.
608 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
610 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
611 (sparc_iterate_over_regset_sections): New.
612 (sparc32_gdbarch_init): Adjust gdbarch initialization.
613 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
615 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
616 (sparc64fbsd_init_abi): Call fbsd_init_abi.
617 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
618 target method 'make_corefile_notes'.
620 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
622 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
623 'sizeof_gregset' and 'sizeof_fpregset'.
624 * sh-tdep.c (sh_regset_from_core_section): Remove.
625 (sh_iterate_over_regset_sections): New.
626 (sh_gdbarch_init): Adjust gdbarch initialization.
627 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
629 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
632 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
634 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
635 (score7_linux_iterate_over_regset_sections): New.
636 (score_gdbarch_init): Adjust gdbarch initialization.
638 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
640 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
642 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
643 method 'make_corefile_notes'.
644 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
645 (ppcfbsd_regset_from_core_section): Remove.
646 (ppcfbsd_iterate_over_regset_sections): New.
647 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
649 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
650 (ppcnbsd_iterate_over_regset_sections): New.
651 (ppcnbsd_init_abi): Adjust.
652 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
653 (ppcobsd_iterate_over_regset_sections): New.
654 (ppcobsd_init_abi): Adjust.
655 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
656 (rs6000_aix_iterate_over_regset_sections): New.
657 (rs6000_aix_init_osabi): Adjust.
659 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
661 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
662 (nios2_regset_from_core_section): Remove.
663 (nios2_iterate_over_regset_sections): New.
664 (nios2_linux_init_abi): Adjust gdbarch initialization.
666 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
668 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
669 (am33_iterate_over_regset_sections): New.
670 (am33_linux_init_osabi): Adjust gdbarch initialization.
672 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
674 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
675 (mips_linux_iterate_over_regset_sections): New.
676 (mips_linux_init_abi): Adjust gdbarch initialization.
677 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
678 (mips64obsd_iterate_over_regset_sections): New.
679 (mips64obsd_init_abi): Adjust.
680 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
681 (mipsnbsd_iterate_over_regset_sections): New.
682 (mipsnbsd_init_abi): Adjust.
684 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
686 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
687 (m88k_iterate_over_regset_sections): New.
688 (m88k_gdbarch_init): Adjust gdbarch initialization.
690 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
692 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
693 (ia64_linux_iterate_over_regset_sections): New.
694 (ia64_linux_init_abi): Adjust gdbarch initialization.
696 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
698 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
699 (m68kbsd_iterate_over_regset_sections): New.
700 (m68kbsd_init_abi): Adjust gdbarch initialization.
701 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
702 (m68k_linux_iterate_over_regset_sections): New.
703 (m68k_linux_init_abi): Adjust gdbarch initialization.
705 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
707 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
708 (m32r_linux_regset_from_core_section): Remove.
709 (m32r_linux_iterate_over_regset_sections): New.
710 (m32r_linux_init_abi): Adjust gdbarch initialization.
712 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
714 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
715 (amd64obsd_iterate_over_regset_sections): New.
716 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
717 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
719 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
720 regset_from_core_section initialization.
721 * i386-tdep.c (i386_regset_from_core_section): Remove.
722 (i386_iterate_over_regset_sections): New.
723 (i386_gdbarch_init): Adjust gdbarch initialization.
724 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
725 (i386_iterate_over_regset_sections): New prototype.
726 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
728 (i386obsd_aout_iterate_over_regset_sections): New.
729 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
730 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
732 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
733 (amd64fbsd_init_abi): Call fbsd_init_abi.
734 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
735 (i386fbsd4_init_abi): Call fbsd_init_abi.
736 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
737 target method 'make_corefile_notes'.
738 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
740 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
742 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
743 (hppa_hpux_iterate_over_regset_sections): New.
744 (hppa_hpux_init_abi): Adjust gdbarch initialization.
745 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
746 (hppa_linux_iterate_over_regset_sections): New.
747 (hppa_linux_init_abi): Adjust.
748 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
749 (hppanbsd_iterate_over_regset_sections): New.
750 (hppanbsd_init_abi): Adjust.
751 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
752 (hppaobsd_iterate_over_regset_sections): New.
753 (hppaobsd_init_abi): Adjust.
755 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
757 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
758 (frv_linux_iterate_over_regset_sections): New.
759 (frv_linux_init_abi): Adjust gdbarch initialization.
761 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
763 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
764 (armbsd_iterate_over_regset_sections): New prototype.
765 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
766 (armbsd_iterate_over_regset_sections): New.
767 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
770 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
772 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
773 (alpha_linux_iterate_over_regset_sections): New.
774 (alpha_linux_init_abi): Adjust gdbarch initialization.
775 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
777 (alphanbsd_iterate_over_regset_sections): New prototype.
779 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
781 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
783 (aarch64_linux_iterate_over_regset_sections): New.
784 (aarch64_linux_init_abi): Adjust gdbarch initialization.
786 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
788 * fbsd-tdep.c: New file.
789 * fbsd-tdep.h: New file.
790 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
791 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
792 (ALLDEPFILES): Add fbsd-tdep.c.
794 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
796 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
798 * gdbarch.h: Regenerate.
799 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
801 (get_core_register_section): Add parameter 'regset' and use it, if
802 set. Add parameter 'min_size' and verify the bfd section size
804 (get_core_registers_cb): Add parameter 'regset' and pass it to
805 get_core_register section. For the "standard" register sections
806 ".reg" and ".reg2", set an appropriate default for human_name.
807 (get_core_registers): Don't abort when the gdbarch has an iterator
808 but no regset_from_core_section. Add NULL/0 for parameters
809 'regset'/'min_size' in calls to get_core_register_section.
810 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
811 'regset' and use it instead of calling the
812 regset_from_core_section gdbarch method.
813 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
814 * i386-tdep.c (i386_supply_xstateregset)
815 (i386_collect_xstateregset, i386_xstateregset): Moved to
817 (i386_regset_from_core_section): Drop handling for .reg-xfp and
819 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
820 core file support only if the regset iterator hasn't been set.
821 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
822 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
823 Moved from i386-tdep.c and renamed to *_linux*.
824 (i386_linux_iterate_over_regset_sections): Add regset parameter to
825 each callback invocation. Allow any .reg-xstate size when reading
827 * amd64-tdep.c (amd64_supply_xstateregset)
828 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
830 (amd64_regset_from_core_section): Remove.
831 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
832 install an amd64-specific regset_from_core_section gdbarch method.
833 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
834 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
835 Moved from amd64-tdep.c and renamed to *_linux*.
836 (amd64_linux_iterate_over_regset_sections): Add regset parameter
837 to each callback invocation. Allow any .reg-xstate size when
838 reading from a core file.
839 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
840 (arm_linux_iterate_over_regset_sections): Add regset parameter to
841 each callback invocation.
842 (arm_linux_init_abi): No longer set the regset_from_core_section
844 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
845 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
846 each callback invocation.
847 (ppc_linux_init_abi): No longer set the regset_from_core_section
849 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
850 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
851 (s390_regset_from_core_section): Remove.
852 (s390_iterate_over_regset_sections): Add regset parameter to each
854 (s390_gdbarch_init): No longer set the regset_from_core_section
855 gdbarch method. Drop initialization of deleted tdep fields.
857 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
859 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
860 (amd64_linux_iterate_over_regset_sections): New.
861 (amd64_linux_init_abi_common): Don't install the regset section
862 list, but the new iterator in gdbarch.
863 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
864 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
865 (arm_linux_iterate_over_regset_sections): ...here. New function.
866 (arm_linux_init_abi): Set iterator instead of section list.
867 * corelow.c (get_core_registers_cb): New function, logic moved
869 (get_core_registers): ...loop body here. Use new iterator method
870 instead of walking through the regset section list.
871 * gdbarch.sh: Remove 'core_regset_sections'. New method
872 'iterate_over_regset_sections'. New typedef
873 'iterate_over_regset_sections_cb'.
874 * gdbarch.c: Regenerate.
875 * gdbarch.h: Likewise.
876 * i386-linux-tdep.c (i386_linux_regset_sections)
877 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
879 (i386_linux_iterate_over_regset_sections): New.
880 (i386_linux_init_abi): Don't choose a regset section list, but
881 install new iterator in gdbarch.
882 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
883 (linux_collect_regset_section_cb): New function, logic moved
885 (linux_collect_thread_registers): ...loop body here. Use iterator
886 method instead of walking through list.
887 (linux_make_corefile_notes_1): Check for presence of iterator
888 method instead of regset section list.
889 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
890 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
891 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
892 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
893 (ppc_linux_iterate_over_regset_sections): ...here. New function.
894 (ppc_linux_init_abi): Don't choose from above regset section
895 lists, but install new iterator in gdbarch.
896 * regset.h (struct core_regset_section): Remove.
897 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
898 have_linux_v1, have_linux_v2, and have_tdb.
899 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
900 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
901 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
902 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
903 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
904 (s390_iterate_over_regset_sections): ...here. New function. Use
906 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
907 regset section lists, but install new iterator.
909 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
911 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
913 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
915 * progspace.c (print_program_space): Don't prune program spaces
916 before printing them.
918 2014-09-25 Pedro Alves <palves@redhat.com>
920 * infrun.c (user_visible_resume_ptid): Don't check
921 singlestep_breakpoints_inserted_p.
923 2014-09-25 Pedro Alves <palves@redhat.com>
925 * breakpoint.c (should_be_inserted): Add debug output.
927 2014-09-25 Pedro Alves <palves@redhat.com>
929 * infrun.c (stepping_past_instruction_at)
930 (clear_exit_convenience_vars): Point at infrun.h instead of
932 (handle_signal_stop): Fix typo.
934 2014-09-24 Yao Qi <yao@codesourcery.com>
936 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
939 2014-09-22 Gary Benson <gbenson@redhat.com>
941 * target.c (target_stop): Updated comment.
943 2014-09-22 Gary Benson <gbenson@redhat.com>
945 * target/target.h (target_stop_ptid): Renamed as...
946 (target_stop_and_wait): New function. Updated comment.
948 (target_continue_ptid): Renamed as...
949 (target_continue_no_signal): New function. Updated comment.
952 2014-09-22 Pedro Alves <palves@redhat.com>
954 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
956 * breakpoint.c (enum ugll_insert_mode): New enum.
957 (always_inserted_mode): Now a plain boolean.
958 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
959 (breakpoints_always_inserted_mode): Delete.
960 (breakpoints_should_be_inserted_now): New function.
961 (insert_breakpoints): Pass UGLL_INSERT to
962 update_global_location_list instead of calling
963 insert_breakpoint_locations manually.
964 (create_solib_event_breakpoint_1): New, factored out from ...
965 (create_solib_event_breakpoint): ... this.
966 (create_and_insert_solib_event_breakpoint): Use
967 create_solib_event_breakpoint_1 instead of calling
968 insert_breakpoint_locations manually.
969 (update_global_location_list): Change parameter type from boolean
970 to enum ugll_insert_mode. All callers adjusted. Adjust to use
971 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
972 (update_global_location_list_nothrow): Change parameter type from
973 boolean to enum ugll_insert_mode.
974 (_initialize_breakpoint): "breakpoint always-inserted" option is
975 now a boolean command. Update help text.
976 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
977 (breakpoints_should_be_inserted_now): New declaration.
978 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
979 Remove breakpoints_always_inserted_mode check.
980 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
981 * remote.c (remote_start_remote): Likewise.
983 2014-09-22 Pedro Alves <palves@redhat.com>
985 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
986 (insert_breakpoints): Don't call insert_breakpoint_locations here.
987 Instead, pass UGLL_INSERT to update_global_location_list.
988 (update_global_location_list): Change parameter type from boolean
989 to enum ugll_insert_mode. All callers adjusted. Adjust to use
990 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
991 (create_solib_event_breakpoint_1): New, factored out from ...
992 (create_solib_event_breakpoint): ... this.
993 (create_and_insert_solib_event_breakpoint): Use
994 create_solib_event_breakpoint_1 instead of calling
995 insert_breakpoint_locations manually.
996 (update_global_location_list): Handle UGLL_INSERT.
998 2014-09-22 Pedro Alves <palves@redhat.com>
1000 * breakpoint.c (enum ugll_insert_mode): New enum.
1001 (update_global_location_list)
1002 (update_global_location_list_nothrow): Change parameter type from
1003 boolean to enum ugll_insert_mode. All callers adjusted.
1005 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1007 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1008 SystemTap support in GDB.
1010 2014-09-19 Don Breazeal <donb@codesourcery.com>
1012 * linux-nat.c (linux_handle_extended_wait): Call
1013 linux_ptrace_get_extended_event.
1014 (wait_lwp): Call linux_is_extended_waitstatus.
1015 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1016 and linux_is_extended_waitstatus.
1017 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1018 linux_ptrace_get_extended_event.
1019 (linux_ptrace_get_extended_event): New function.
1020 (linux_is_extended_waitstatus): New function.
1021 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1022 (linux_is_extended_waitstatus): New declarations.
1024 2014-09-19 Yao Qi <yao@codesourcery.com>
1026 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1027 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1028 comments. Callers update.
1029 (dwarf_decode_lines): Likewise.
1030 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1031 comments. Skip the line table if 'lowpc' is greater than
1032 'address'. Don't check
1033 dwarf2_per_objfile->has_section_at_zero.
1035 2014-09-18 Doug Evans <dje@google.com>
1037 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1038 * python/py-symtab.c (stpy_get_producer): New function.
1039 (symtab_object_getset): Add "producer" attribute.
1041 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1044 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1045 (do_captured_read_memory_integer): Remove.
1046 (safe_read_memory_integer): Use target_read_memory directly instead
1047 of catching errors in do_captured_read_memory_integer.
1049 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1051 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1054 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1056 * objc-lang.c (find_implementation_from_class): Remove dead code.
1058 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1061 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1062 "fprintf_unfiltered (gdb_stdlog...)".
1064 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1066 PR breakpoints/12526
1067 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1069 * breakpoint.c (watch_command_1): Use these fields to retain
1070 bitfield information.
1071 (extract_bitfield_from_watchpoint_value): New function.
1072 (watchpoint_check): Use it.
1073 (update_watchpoint): Use it. Optimize the address and length of a
1074 HW watchpoint pointing to a bitfield.
1075 * value.h (unpack_value_bitfield): New prototype.
1076 * value.c (unpack_value_bitfield): Make extern.
1078 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1080 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1082 * gnu-nat.c (inf_threads): New function.
1083 * gnu-nat.h (inf_threads_ftype): New typedef.
1084 (inf_threads): New declaration.
1085 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1086 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1087 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1088 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1089 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1090 (i386_gnu_dr_get_control): New functions.
1091 (reg_addr): New structure.
1092 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1093 i386 debugging register hooks.
1094 * NEWS: Mention this.
1096 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1098 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1099 vector data transfer instructions.
1100 (arm_record_coproc_data_proc): Updated.
1102 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1104 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1105 arm_record_exreg_ld_st_insn.
1106 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1109 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1111 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1112 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1113 processing instructions.
1115 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1117 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1118 for advance SIMD struct ld/st insn.
1119 (thumb2_record_decode_insn_handler): Replace stub handler with
1120 thumb2_record_asimd_struct_ld_st.
1122 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1124 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1125 for asimd, vfp and coprocessor insns.
1126 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1127 and coprocessor insns.
1128 (thumb2_record_coproc_insn): New function.
1129 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1131 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1134 2014-09-13 Doug Evans <xdje42@gmail.com>
1136 * NEWS: Mention new "queue-signal" command.
1137 * infcmd.c (queue_signal_command): New function.
1138 (_initialize_infcmd): Add new queue-signal command.
1140 2014-09-13 Doug Evans <xdje42@gmail.com>
1142 * linux-nat.c (wait_lwp): Add debugging printf.
1143 (linux_nat_wait_1): Ditto.
1145 2014-09-12 Pedro Alves <palves@redhat.com>
1147 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1148 (create_and_insert_solib_event_breakpoint): New functions.
1149 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1150 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1151 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1152 (remove_dbx_link_breakpoint): Delete function.
1153 (insert_dbx_link_bpt_in_file): Use
1154 create_and_insert_solib_event_breakpoint instead of
1155 deprecated_insert_raw_breakpoint.
1156 (procfs_wait): Don't check whether we hit __dbx_link here.
1157 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1159 * solib-irix.c (base_breakpoint): Delete global.
1160 (disable_break): Delete function.
1161 (enable_break): Use create_solib_event_breakpoint
1162 instead of deprecated_insert_raw_breakpoint.
1163 (irix_solib_handle_event): New function.
1164 (irix_solib_create_inferior_hook): Don't run the target or disable
1165 the mapping-complete breakpoint here.
1166 (_initialize_irix_solib): Install irix_solib_handle_event as
1167 so_ops->handle_event hook.
1169 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1170 Ulrich Weigand <uweigand@de.ibm.com>
1173 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1174 instead of read_memory_unsigned_integer.
1176 2014-09-12 Gary Benson <gbenson@redhat.com>
1178 * nat/linux-waitpid.c: Include common-defs.h.
1179 [GDBSERVER]: Add FIXME comment.
1180 [!GDBSERVER]: Don't include defs.h or signal.h.
1181 (linux_debug) [!GDBSERVER]: Remove empty block.
1183 2014-09-12 Gary Benson <gbenson@redhat.com>
1185 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1186 Don't include defs.h or server.h.
1188 2014-09-12 Gary Benson <gbenson@redhat.com>
1190 * nat/linux-btrace.c: Include common-defs.h.
1191 Don't include defs.h, server.h or gdbthread.h.
1192 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1194 2014-09-12 Gary Benson <gbenson@redhat.com>
1196 * common/agent.c: Include common-defs.h.
1197 Don't include defs.h or server.h.
1198 * common/buffer.c: Likewise.
1199 * common/common-debug.c: Likewise.
1200 * common/common-utils.c: Likewise.
1201 * common/errors.c: Likewise.
1202 * common/filestuff.c: Likewise.
1203 * common/format.c: Likewise.
1204 * common/gdb_vecs.c: Likewise.
1205 * common/print-utils.c: Likewise.
1206 * common/ptid.c: Likewise.
1207 * common/rsp-low.c: Likewise.
1208 * common/signals.c: Likewise.
1209 * common/vec.c: Likewise.
1210 * common/xml-utils.c: Likewise.
1211 * nat/linux-osdata.c: Likewise.
1212 * nat/linux-procfs.c: Likewise.
1213 * nat/linux-ptrace.c: Likewise.
1214 * nat/mips-linux-watch.c: Likewise.
1215 * target/waitstatus.c: Likewise.
1217 2014-09-12 Tom Tromey <tromey@redhat.com>
1218 Gary Benson <gbenson@redhat.com>
1220 * common/common-regcache.h: New file.
1221 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1222 * regcache.h: Include common-regcache.h.
1223 (regcache_read_pc): Don't declare.
1224 * regcache.c (get_thread_regcache_for_ptid): New function.
1225 * nat/linux-btrace.c: Don't include regcache.h.
1226 Include common-regcache.h.
1227 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1229 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1231 * regcache.h (struct regset): Declare.
1233 2014-09-11 Pedro Alves <palves@redhat.com>
1236 * main.c: Include "infrun.h".
1237 (catch_command_errors, catch_command_errors_const): Wait for the
1238 foreground command to complete.
1239 * top.c (maybe_wait_sync_command_done): New function, factored out
1241 (maybe_wait_sync_command_done): ... here.
1242 * top.h (maybe_wait_sync_command_done): New declaration.
1244 2014-09-11 Tom Tromey <tromey@redhat.com>
1245 Gary Benson <gbenson@redhat.com>
1247 * common/symbol.h: New file.
1248 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1249 * minsyms.c (find_minimal_symbol_address): New function.
1250 * common/agent.c: Include common/symbol.h.
1251 [!GDBSERVER]: Don't include objfiles.h.
1252 (agent_look_up_symbols): Use find_minimal_symbol_address.
1254 2014-09-11 Gary Benson <gbenson@redhat.com>
1256 * target/target.h (target_stop_ptid, target_continue_ptid):
1258 * target.c (target_stop_ptid, target_continue_ptid): New
1260 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1261 (agent_run_command): Always use target_stop_ptid and
1262 target_continue_ptid.
1264 2014-09-11 Tom Tromey <tromey@redhat.com>
1265 Gary Benson <gbenson@redhat.com>
1267 * target/target.h: New file.
1268 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1269 * target.h: Include target/target.h.
1270 (target_read_memory, target_write_memory): Don't declare.
1271 * target.c (target_read_uint32): New function.
1272 * common/agent.c: Include target/target.h.
1273 [!GDBSERVER]: Don't include target.h.
1274 (helper_thread_id): Type changed to uint32_t.
1275 (agent_get_helper_thread_id): Use target_read_uint32.
1276 (agent_run_command): Always use target_read_memory and
1277 target_write_memory.
1278 (agent_capability): Type changed to uint32_t.
1279 (agent_capability_check): Use target_read_uint32.
1281 2014-09-11 Gary Benson <gbenson@redhat.com>
1283 * common/common-debug.h (show_debug_regs): Declare.
1284 * common/common-debug.c (show_debug_regs): Define.
1285 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1286 all uses with show_debug_regs. Replace all uses that considered
1287 debug_hw_points as a multi-value integer with straight boolean
1289 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1290 with show_debug_regs.
1291 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1292 all uses with show_debug_regs.
1293 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1294 uses with show_debug_regs.
1296 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1298 * findvar.c (address_from_register): Handle targets requiring
1299 a special conversion routine even for plain pointer types.
1301 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1303 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1304 (store_register): Do not call exec_one_dummy_insn.
1306 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1308 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1309 dereference it first. Use value_enclosing_type instead of
1311 (ada_array_length): Likewise.
1313 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1315 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1316 Adjust function implementation and documentation accordingly.
1317 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1318 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1319 Update call to ada_value_ptr_subscript.
1321 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1323 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1324 instead of VAL's type.
1326 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1328 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1330 2014-09-09 Doug Evans <xdje42@gmail.com>
1333 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1334 last parameter to pkg-config, not first.
1335 * configure.ac: Pass --with-guile provided pkg-config path to
1336 GDB_GUILE_PROGRAM_NAMES.
1337 * configure: Regenerate.
1339 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1341 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1344 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1346 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1347 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1348 the list of sections determining GDB_OSABI_IRIX.
1350 2014-09-09 James Hogan <james.hogan@imgtec.com>
1352 * MAINTAINERS (Write After Approval): Add "James Hogan".
1354 2014-09-09 James Hogan <james.hogan@imgtec.com>
1356 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1358 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1360 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1362 2014-09-08 Doug Evans <xdje42@gmail.com>
1365 * guile.c: #include <signal.h>.
1366 (_initialize_guile): Block SIGCHLD while initializing Guile.
1368 Replaces the following, which is reverted.
1370 2014-07-26 Doug Evans <xdje42@gmail.com>
1373 * configure.ac: Add check for header gc/gc.h.
1374 Add check for function setenv.
1375 * configure: Regenerate.
1376 * config.in: Regenerate.
1377 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1379 2014-09-08 Doug Evans <xdje42@gmail.com>
1381 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1382 with named constant. Fix style of pointer comparison.
1383 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1385 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1388 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1389 decide whether we display the command on "show user".
1390 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1391 printing command name.
1392 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1393 * cli/cli-decode.c (cli_user_command_p): Create helper function
1394 to verify whether cmd_list_element is a user-defined command.
1396 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1399 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1400 Fix goto out of TRY_CATCH.
1402 2014-09-06 Doug Evans <xdje42@gmail.com>
1403 Tom Tromey <tromey@redhat.com>
1406 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1407 $_any_caller_matches.
1408 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1409 * python/lib/gdb/function/caller_is.py: New file.
1411 2014-09-06 Doug Evans <xdje42@gmail.com>
1413 * infcmd.c (program_info): Fix typo.
1415 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1418 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1419 'number'. New variable 'has_digit'. Rewrite code to deal with
1420 subexpressions on SDT probes.
1422 2014-09-04 Pedro Alves <palves@redhat.com>
1424 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1425 the input is only one character long.
1427 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1430 * f-valprint.c (f_val_print): Specify the correct print option to
1431 use when printing integer values.
1433 2014-09-04 Gary Benson <gbenson@redhat.com>
1435 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1436 Remove code to cope with LWPs wrapped as PIDs.
1437 Add assertions to ensure no wrapped LWPs are passed.
1439 2014-09-04 Pedro Alves <palves@redhat.com>
1441 * value.c (value_ranges_copy_adjusted): New function, factored out
1443 (value_contents_copy_raw): ... here.
1444 (unpack_value_bits_as_long_1): Rename back to ...
1445 (unpack_bits_as_long): ... this. Remove 'original_value' and
1446 'result' parameters. Change return type to LONGEST.
1447 (unpack_value_bits_as_long): Delete.
1448 (unpack_value_field_as_long_1): Delete.
1449 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1450 (unpack_value_bitfield): New function.
1451 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1452 (value_fetch_lazy): Use unpack_value_bitfield.
1453 * value.h (unpack_value_bits_as_long): Delete declaration.
1455 2014-09-03 Sasha Smundak <asmundak@google.com>
1457 * python/py-frame.c (frapy_read_register): New function.
1459 2014-09-03 James Hogan <james.hogan@imgtec.com>
1461 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1462 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1464 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1467 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1469 (add_cmd): Set "completer_handle_brkchars" to NULL.
1470 * cli/cli-decode.h (struct cmd_list_element)
1471 <completer_handle_brkchars>: New field.
1472 * command.h (completer_ftype_void): New typedef.
1473 (set_cmd_completer_handle_brkchars): New prototype.
1474 * completer.c (set_gdb_completion_word_break_characters): New
1476 (complete_line_internal): Call "completer_handle_brkchars"
1477 callback from command.
1478 * completer.h: Include "command.h".
1479 (set_gdb_completion_word_break_characters): New prototype.
1480 * python/py-cmd.c (cmdpy_completer_helper): New function.
1481 (cmdpy_completer_handle_brkchars): New function.
1482 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1483 (cmdpy_init): Set completer_handle_brkchars to
1484 cmdpy_completer_handle_brkchars.
1486 2014-09-03 Gary Benson <gbenson@redhat.com>
1488 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1489 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1490 Loop conditions changed to equivalent form.
1491 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1492 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1493 ALL_DEBUG_ADDRESS_REGISTERS.
1495 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1497 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1500 2014-09-02 Doug Evans <dje@google.com>
1502 * typeprint.c (find_global_typedef): Fix comment.
1504 2014-09-02 Gary Benson <gbenson@redhat.com>
1506 * i386-nat.h: Renamed as...
1507 * x86-nat.h: New file. All type, function and variable name
1508 prefixes changed from "i386_" to "x86_". All references updated.
1509 * i386-nat.c: Renamed as...
1510 * x86-nat.c: New file. All type, function and variable name
1511 prefixes changed from "i386_" to "x86_". All references updated.
1512 * common/i386-xstate.h: Renamed as...
1513 * common/x86-xstate.h: New file. All type, function and variable
1514 name prefixes changed from "i386_" to "x86_". All references
1516 * nat/i386-cpuid.h: Renamed as...
1517 * nat/x86-cpuid.h: New file. All type, function and variable name
1518 prefixes changed from "i386_" to "x86_". All references updated.
1519 * nat/i386-gcc-cpuid.h: Renamed as...
1520 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1521 name prefixes changed from "i386_" to "x86_". All references
1523 * nat/i386-dregs.h: Renamed as...
1524 * nat/x86-dregs.h: New file. All type, function and variable name
1525 prefixes changed from "i386_" to "x86_". All references updated.
1526 * nat/i386-dregs.c: Renamed as...
1527 * nat/x86-dregs.c: New file. All type, function and variable name
1528 prefixes changed from "i386_" to "x86_". All references updated.
1530 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1532 * varobj.c (_initialize_varobj): Move to the end of file.
1534 2014-08-29 Gary Benson <gbenson@redhat.com>
1536 * common/common-exceptions.h: New file.
1537 * common/common-exceptions.c: Likewise.
1538 * Makefile.in (SFILES): Add common/common-exceptions.c.
1539 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1540 (COMMON_OBS): Add common-exceptions.o.
1541 (common-exceptions.o): New rule.
1542 * exceptions.h (common-exceptions.h): Include.
1543 (gdb_setjmp.h): Do not include.
1544 (return_reason): Moved to common-exceptions.h.
1545 (enum return_reason): Likewise.
1546 (RETURN_MASK): Likewise.
1547 (typedef return_mask): Likewise.
1548 (enum errors): Likewise.
1549 (struct gdb_exception): Likewise.
1550 (exceptions_state_mc_init): Likewise.
1551 (exceptions_state_mc_action_iter): Likewise.
1552 (exceptions_state_mc_action_iter_1): Likewise.
1553 (TRY_CATCH): Likewise.
1554 (throw_exception): Likewise.
1555 (throw_verror): Likewise.
1556 (throw_vquit): Likewise.
1557 (throw_error): Likewise.
1558 (throw_quit): Likewise.
1559 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1560 (enum catcher_action): Likewise.
1561 (struct catcher): Likewise.
1562 (current_catcher): Likewise.
1563 (catcher_list_size): Likewise.
1564 (exceptions_state_mc_init): Likewise.
1565 (catcher_pop): Likewise.
1566 (exceptions_state_mc): Likewise.
1567 (exceptions_state_mc_action_iter): Likewise.
1568 (exceptions_state_mc_action_iter_1): Likewise.
1569 (throw_exception): Likewise.
1570 (exception_messages): Likewise.
1571 (exception_messages_size): Likewise.
1572 (throw_it): Likewise.
1573 (throw_verror): Likewise.
1574 (throw_vquit): Likewise.
1575 (throw_error): Likewise.
1576 (throw_quit): Likewise.
1577 (prepare_to_throw_exception): New function.
1579 2014-08-29 Gary Benson <gbenson@redhat.com>
1581 * common/gdb_setjmp.h: New file.
1582 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1583 * configure.ac: Move sigsetjmp check...
1584 * common/common.m4: ...here.
1585 * configure: Regenerate.
1586 * cp-support.c (SIGJMP_BUF): Delete.
1587 (SIGSETJMP): Likewise.
1588 (SIGLONGJMP): Likewise.
1589 * exceptions.h (gdb_setjmp.h): Include.
1590 (setjmp.h): Do not include.
1591 (EXCEPTIONS_SIGJMP_BUF): Delete.
1592 (EXCEPTIONS_SIGSETJMP): Likewise.
1593 (EXCEPTIONS_SIGLONGJMP): Likewise.
1594 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1596 * exceptions.c: Likewise.
1598 2014-08-29 Gary Benson <gbenson@redhat.com>
1600 * cleanups.h: Moved to...
1601 * common/cleanups.h: New file.
1602 * cleanups.c: Moved to...
1603 * common/cleanups.c: New file. Include common-defs.h and
1604 cleanups.h. Do not include defs.h.
1605 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1606 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1607 (cleanups.o): New rule.
1609 2014-08-29 Gary Benson <gbenson@redhat.com>
1611 * common/errors.h (internal_warning): New declaration.
1612 (internal_vwarning): Likewise.
1613 * common/errors.c (internal_warning): New function.
1614 * utils.h (internal_warning): Don't declare.
1615 (internal_vwarning): Likewise.
1616 * utils.c (internal_warning): Removed.
1618 2014-08-29 Gary Benson <gbenson@redhat.com>
1620 * main.c (captured_main): Use warning during startup.
1621 Prefix startup warning messages with command name.
1623 2014-08-29 Gary Benson <gbenson@redhat.com>
1625 * main.c (captured_main): Handle usage errors with error.
1627 2014-08-29 Gary Benson <gbenson@redhat.com>
1629 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1630 exit pair with a call to error. Wrap the message with _().
1632 2014-08-29 Gary Benson <gbenson@redhat.com>
1634 * main.c (captured_main): Replace a fprintf/exit
1635 pair with a call to error. Wrap the message with _().
1637 2014-08-29 Gary Benson <gbenson@redhat.com>
1639 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1640 pairs with calls to error. Wrap the message with _().
1642 2014-08-29 Gary Benson <gbenson@redhat.com>
1644 * utils.c (vwarning): Protect calls to target_terminal_ours
1647 2014-08-29 Gary Benson <gbenson@redhat.com>
1649 * exceptions.c (print_flush): Protect calls to
1650 target_terminal_ours and wrap_here.
1652 2014-08-29 Gary Benson <gbenson@redhat.com>
1654 * utils.h (filtered_printing_initialized): New declaration.
1655 * utils.c (abort_with_message): New function.
1656 (internal_vproblem): Use abort_with_message for first level
1657 recursive internal problems, and if gdb_stderr is not set up.
1658 Protect calls to target_terminal_ours, begin_line and query.
1660 2014-08-28 Doug Evans <dje@google.com>
1662 * symtab.c (in_prologue): Move definition to better spot.
1663 (skip_prologue_using_sal): Ditto.
1665 2014-08-28 Doug Evans <dje@google.com>
1667 * symtab.c (find_function_start_sal): Move definition to better spot.
1669 2014-08-28 Yao Qi <yao@codesourcery.com>
1671 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1672 found_stack_adjust in forward scan. Remove condition check
1673 on found_stack_adjust which is always true. Indent the code.
1675 2014-08-28 Yao Qi <yao@codesourcery.com>
1677 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1678 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1679 (dwarf_decode_lines): Remove argument
1680 want_line_info. Remove condition check on want_line_info.
1683 2014-08-27 Doug Evans <dje@google.com>
1685 * dwarf2read.c (dwarf_record_line): Fix typo.
1687 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1689 * target.h (struct target_ops::to_terminal_save_ours): Remove
1691 (target_terminal_save_ours): Remove macro.
1692 * target-delegates.c: Regenerate.
1693 * inf-child.c (inf_child_target): Don't set the nonexistent
1694 field to_terminal_save_ours.
1695 * inferior.h (child_terminal_save_ours): Remove declaration.
1696 * terminal.h (gdb_save_tty_state): New declaration.
1697 * inflow.c (child_terminal_save_ours): Rename to ...
1698 (gdb_save_tty_state): ... this.
1699 * tui/tui.c: Include terminal.h.
1700 (tui_enable): Use gdb_save_tty_state instead of
1701 target_terminal_save_ours.
1702 (tui_disable): Likewise.
1704 2014-08-25 Doug Evans <dje@google.com>
1706 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1707 Pass NULL instead of 0 for context pointer.
1709 2014-08-25 Yao Qi <yao@codesourcery.com>
1711 * dwarf2read.c: Fix grammatical error.
1713 2014-08-24 Yao Qi <yao@codesourcery.com>
1715 * dwarf2read.c (scan_partial_symbols): Update comments.
1716 Rename argument 'need_pc' with 'set_addrmap'.
1717 (add_partial_namespace): Rename argument 'need_pc' with
1719 (add_partial_module): Likewise.
1720 (add_partial_subprogram): Likewise. Update comments.
1721 (dwarf2_name): Fix typo.
1723 2014-08-22 Doug Evans <dje@google.com>
1726 * dwarf2read.c (dwarf_record_line_p): New function.
1727 (dwarf_decode_lines_1): Ignore subsequent line number entries
1728 for the same line if any entry had a non-zero discriminator.
1730 2014-08-22 Doug Evans <dje@google.com>
1732 * buildsym.h (record_line_ftype): New typedef.
1733 (record_line): Use it.
1734 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1735 (dwarf_decode_lines_1): Call them.
1737 2014-08-22 Yao Qi <yao@codesourcery.com>
1739 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1740 (ctf_end): Remove code.
1742 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1744 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1745 (linux_make_corefile_notes): call update_thread_list, protected against
1748 2014-08-21 Pedro Alves <palves@redhat.com>
1750 * infcmd.c (attach_command): Remove comment.
1752 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1754 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1755 unsigned LONGEST to ULONGEST.
1757 2014-08-20 Pedro Alves <palves@redhat.com>
1759 * Makefile.in (check-read1): New rule.
1761 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1763 * value.c (value_from_contents_and_address): Strip resolved_type's
1764 typedef layers before checking its TYPE_DATA_LOCATION.
1766 2014-08-20 Pedro Alves <palves@redhat.com>
1768 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1770 2014-08-20 Yao Qi <yao@codesourcery.com>
1772 * amd64-tdep.c (amd64_classify): Add a blank line after the
1773 example. Move "*/" to a new line.
1774 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1775 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1776 * dwarf2read.c (psymtab_include_file_name): Likewise.
1778 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1779 Pedro Alves <palves@redhat.com>
1783 * ada-lang.c (coerce_unspec_val_to_type): Use
1784 value_contents_copy_raw.
1785 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1786 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1787 * cp-valprint.c (cp_print_value_fields): Let the common printing
1788 code handle optimized out values.
1789 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1790 * d-valprint.c (dynamic_array_type): Use
1791 value_bits_any_optimized_out.
1792 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1793 check_any_valid fields.
1794 (check_pieced_value_bits): Delete and inline ...
1795 (check_pieced_synthetic_pointer): ... here.
1796 (check_pieced_value_validity): Delete.
1797 (check_pieced_value_invalid): Delete.
1798 (pieced_value_funcs): Remove check_validity and check_any_valid
1800 (read_pieced_value): Use mark_value_bits_optimized_out.
1801 (write_pieced_value): Switch to use
1802 mark_value_bytes_optimized_out.
1803 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1804 of assuming the whole value is optimized out.
1805 * findvar.c (read_frame_register_value): Remove special handling
1806 of optimized out registers.
1807 (value_from_register): Use mark_value_bytes_optimized_out.
1808 * frame-unwind.c (frame_unwind_got_optimized): Use
1809 mark_value_bytes_optimized_out.
1810 * jv-valprint.c (java_value_print): Adjust.
1811 (java_print_value_fields): Let the common printing code handle
1812 optimized out values.
1813 * mips-tdep.c (mips_print_register): Remove special handling of
1814 optimized out registers.
1815 * opencl-lang.c (lval_func_check_validity): Delete.
1816 (lval_func_check_any_valid): Delete.
1817 (opencl_value_funcs): Remove check_validity and check_any_valid
1819 * p-valprint.c (pascal_object_print_value_fields): Let the common
1820 printing code handle optimized out values.
1821 * stack.c (read_frame_arg): Remove special handling of optimized
1822 out values. Fetch both VAL and ENTRYVAL before comparing
1823 contents. Adjust to value_available_contents_eq rename.
1824 * valprint.c (valprint_check_validity)
1825 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1826 (val_print_array_elements): Adjust.
1827 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1828 (value_bits_any_optimized_out): New function.
1829 (value_entirely_covered_by_range_vector): New function, factored
1830 out from value_entirely_unavailable.
1831 (value_entirely_unavailable): Reimplement.
1832 (value_entirely_optimized_out): New function.
1833 (insert_into_bit_range_vector): New function, factored out from
1834 mark_value_bits_unavailable.
1835 (mark_value_bits_unavailable): Reimplement.
1836 (struct ranges_and_idx): New struct.
1837 (find_first_range_overlap_and_match): New function, factored out
1838 from value_available_contents_bits_eq.
1839 (value_available_contents_bits_eq): Rename to ...
1840 (value_contents_bits_eq): ... this. Check both unavailable
1841 contents and optimized out contents.
1842 (value_available_contents_eq): Rename to ...
1843 (value_contents_eq): ... this.
1844 (allocate_value_lazy): Remove reference to the old optimized_out
1846 (allocate_optimized_out_value): Use
1847 mark_value_bytes_optimized_out.
1848 (require_not_optimized_out): Adjust to check whether the
1849 optimized_out vec is empty.
1850 (ranges_copy_adjusted): New function, factored out from
1851 value_contents_copy_raw.
1852 (value_contents_copy_raw): Also copy the optimized out ranges.
1853 Assert the destination ranges aren't optimized out.
1854 (value_contents_copy): Update comment, remove call to
1855 require_not_optimized_out.
1856 (value_contents_equal): Adjust to check whether the optimized_out
1858 (set_value_optimized_out, value_optimized_out_const): Delete.
1859 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1861 (value_entirely_optimized_out, value_bits_valid): Delete.
1862 (value_copy): Take a VEC copy of the 'optimized_out' field.
1863 (value_primitive_field): Remove special handling of optimized out.
1864 (value_fetch_lazy): Assert that lazy values have no unavailable
1865 regions. Use value_bits_any_optimized_out. Remove some special
1866 handling for optimized out values.
1867 * value.h: Add intro comment about <optimized out> and
1869 (struct lval_funcs): Remove check_validity and check_any_valid
1871 (set_value_optimized_out, value_optimized_out_const): Remove.
1872 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1874 (value_bits_any_optimized_out): New declaration.
1875 (value_bits_valid): Delete declaration.
1876 (value_available_contents_eq): Rename to ...
1877 (value_contents_eq): ... this, and extend comments.
1879 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1881 Fix -fsanitize=address on unreadable inferior strings.
1882 * valprint.c (val_print_string): Fix access before BUFFER.
1884 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1886 * target.c (target_struct_size): Remove.
1887 (target_struct_allocsize): Remove.
1888 (DEFAULT_ALLOCSIZE): Remove.
1889 (target_ops_p): New typedef.
1890 (DEF_VEC_P (target_ops_p)): New vector type.
1891 (target_structs): Change type to VEC (target_ops_p).
1892 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1893 (find_default_run_target): Rewrite for loop following changes to
1896 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1898 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1899 Adjust code accordingly. Adjust function description comment.
1901 2014-08-19 Yao Qi <yao@codesourcery.com>
1903 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1906 2014-08-19 Alan Modra <amodra@gmail.com>
1908 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1909 * config.in: Regenerate.
1910 * configure: Regenerate.
1912 2014-08-19 Tom Tromey <tromey@redhat.com>
1913 Gary Benson <gbenson@redhat.com>
1915 * common/common-debug.h: New file.
1916 * common/common-debug.c: Likewise.
1917 * debug.c: Likewise.
1918 * Makefile.in (SFILES): Add common/common-debug.c.
1919 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1920 (COMMON_OBS): Add common-debug.o and debug.o.
1921 (common-debug.o): New rule.
1922 * common/common-defs.h: Include common-debug.h.
1923 * common/agent.c (debug_agent_printf): New function.
1924 (DEBUG_AGENT): Redefine.
1925 * nat/i386-dregs.c (debug_printf): Undefine.
1927 2014-08-19 Gary Benson <gbenson@redhat.com>
1929 * common/common-defs.h: Include print-utils.h.
1930 * utils.h: Do not include print-utils.h.
1932 2014-08-19 Tom Tromey <tromey@redhat.com>
1933 Gary Benson <gbenson@redhat.com>
1935 * common/common-types.h: New file.
1936 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1937 * common/common-defs.h: Include common-types.h.
1938 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1941 2014-08-19 Tom Tromey <tromey@redhat.com>
1942 Gary Benson <gbenson@redhat.com>
1944 * common/errors.h: New file.
1945 * common/errors.c: Likewise.
1946 * Makefile.in (SFILES): Add common/errors.c.
1947 (HFILES_NO_SRCDIR): Add common/errors.h.
1948 (COMMON_OBS): Add errors.o.
1949 (errors.o): New rule.
1950 * common/common-defs.h: Include errors.h.
1951 * utils.h (perror_with_name, error, verror, warning, vwarning):
1953 * common/common-utils.h: (malloc_failure, internal_error):
1956 2014-08-19 Gary Benson <gbenson@redhat.com>
1958 * utils.c (internal_vproblem): Always print the message.
1960 2014-08-18 Doug Evans <dje@google.com>
1962 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1964 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1966 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1967 Return 0 if TYPE is dynamic.
1968 (print_range): Add handling of dynamic ranges.
1970 2014-08-18 Keven Boell <keven.boell@intel.com>
1971 Joel Brobecker <brobecker@adacore.com>
1973 * gdbtypes.h (struct main_type): Add field "data_location".
1974 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1975 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1976 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1977 a dynamic data location.
1978 (resolve_dynamic_type): Add DW_AT_data_location handling.
1979 (copy_recursive, copy_type): Copy the data_location information
1981 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1982 * value.c (value_from_contents_and_address): Add
1983 DW_AT_data_location handling.
1985 2014-08-18 Keven Boell <keven.boell@intel.com>
1986 Joel Brobecker <brobecker@adacore.com>
1988 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1989 field "get_object_address".
1990 * dwarf2expr.c (execute_stack_op): Add handling for
1991 DW_OP_push_object_address.
1992 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1993 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1994 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1995 (dwarf_expr_get_obj_addr): New function.
1996 (dwarf_expr_ctx_funcs): Add get_object_address field.
1997 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1998 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1999 (dwarf2_evaluate_property): Add parameter "address". Use it.
2000 (needs_get_obj_addr): New function.
2001 (needs_frame_ctx_funcs): Add get_object_address field.
2002 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2003 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2004 (resolve_dynamic_array): Likewise.
2006 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2008 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2009 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2010 fixed value for records and unions for which some GNAT encodings
2013 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2015 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2016 rewrite to avoid "else if" and "else" constructs. Should be
2017 a no-op in practice.
2019 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2021 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2024 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2027 * eval.c: Update all calls to find_overload_match.
2028 * valarith.c: Likewise.
2029 (value_user_defined_cpp_op, value_user_defined_op): New
2030 argument NOSIDE. Update all callers.
2031 * valops.c (find_overload_match): New argument NOSIDE.
2032 * value.h (find_overload_match): Update signature.
2034 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2036 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2037 'items' methods instead of 'iteritems' method on dictionaries.
2039 2014-08-15 Doug Evans <dje@google.com>
2041 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2044 2014-08-15 Doug Evans <dje@google.com>
2046 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2048 2014-08-15 Doug Evans <dje@google.com>
2050 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2052 2014-08-15 Doug Evans <dje@google.com>
2054 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2057 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2059 * dcache.h: Include target.h, to avoid compile time warnings.
2061 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2063 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2064 frame_info" partial declaration.
2065 * gdbarch.h: Regenerate.
2067 2014-08-15 Yao Qi <yao@codesourcery.com>
2069 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2070 Add parameter 'decode_for_pst_p'. Callers update.
2072 2014-08-13 Yao Qi <yao@codesourcery.com>
2075 * configure.ac: Use local variable 'pos'.
2076 * configure: Regenerated.
2078 2014-08-11 Doug Evans <dje@google.com>
2080 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2081 message, it is redundant with "Reading symbols from ..." message.
2083 2014-08-10 Doug Evans <xdje42@gmail.com>
2085 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2087 2014-08-09 Yao Qi <yao@codesourcery.com>
2090 * remote.c (remote_xfer_partial): Remove dead code.
2092 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2094 * ia64-linux-tdep.c: Include "regset.h".
2095 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2096 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2097 (ia64_linux_supply_fpregset): New function.
2098 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2099 (ia64_linux_regset_from_core_section): New function.
2100 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2103 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2105 * m68klinux-tdep.c: Include "regset.h".
2106 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2107 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2108 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2109 (m68k_linux_regset_from_core_section): New function.
2110 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2113 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2115 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2116 function. Move logic to...
2117 (tilegx_linux_regmap): ... this new register map.
2118 (tilegx_linux_regset): Refer to register map, replace supply
2119 method by regcache_supply_regset, and add collect method.
2120 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2121 TILEGX_FIRST_EASY_REGNUM.
2123 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2125 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2126 that calls regcache_supply_regset and handles the EPC register
2127 separately. Move main logic to...
2128 (score7_linux_gregmap): ... this new register map.
2129 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2130 (score7_linux_gregset): Refer to register map. Add collect method.
2131 (score7_linux_regset_from_core_section): Replace
2132 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2133 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2134 (struct regset): Delete unused forward declaraction.
2135 (struct pt_regs): Delete structure definition.
2136 (elf_gregset_t): Delete typedef.
2138 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2140 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2141 (nios2_core_regset): Add collect method.
2143 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2145 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2146 platform-independent and don't write to read-only input buffer.
2147 (m32r_linux_collect_gregset): New function.
2148 (m32r_linux_gregset): Add collect method.
2150 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2152 * hppa-linux-tdep.c (greg_map): Rename to...
2153 (hppa_linux_gregmap): ... this. Also convert to
2154 regcache_map_entry format.
2155 (hppa_linux_supply_regset): Delete function.
2156 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2157 (hppa_linux_fpregmap): ... this new register map.
2158 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2159 register map, replace supply method by regcache_supply_regset, and
2160 add collect method regcache_collect_regset.
2162 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2164 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2165 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2166 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2167 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2168 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2169 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2170 (frv_linux_supply_gregset): Replace main logic by call to
2171 regcache_supply_regset, but keep clearing gr32-gr63.
2172 (frv_linux_supply_fpregset): Delete function.
2173 (frv_linux_gregset): Refer to appropriate register map and add
2174 regcache_collect_regset as the collect method.
2175 (frv_linux_fpregset): Likewise. Also exchange the supply method
2176 by regcache_supply_regset.
2178 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2180 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2181 by call to alpha_supply_int_regs.
2182 (alpha_linux_collect_gregset): New function.
2183 (alpha_linux_supply_fpregset): Replace logic by call to
2184 alpha_supply_fp_regs.
2185 (alpha_linux_collect_fpregset): New function.
2186 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2188 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2190 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2191 by call to regcache_collect_regset.
2192 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2193 instead of aarch64_linux_supply_gregset/_fpregset.
2194 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2195 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2196 header file instead.
2197 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2198 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2199 functions. Move logic to ...
2200 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2202 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2203 refer to new register maps, replace *_regset_from_core by
2204 regcache_supply_regset, and also use regcache_collect_regset.
2205 * aarch64-linux-tdep.h: Include "regset.h".
2206 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2208 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2209 macros, moved from C source file.
2210 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2211 variable declarations.
2213 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2215 * s390-linux-nat.c: Include "regset.h".
2216 (regmap_gregset): Delete macro.
2217 (s390_64_regmap_gregset): New register map for
2218 regcache_supply/_collect_regset.
2219 (s390_64_gregset): New regset.
2220 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2221 (regmap_fpregset): Delete macro.
2222 (s390_native_supply, s390_native_collect): Delete functions.
2223 (supply_gregset, fill_gregset): Replace s390-specific regmap
2224 handling by a call to regcache_supply/_collect_regset.
2225 (supply_fpregset, fill_fpregset): Call regcache_supply/
2226 _collect_regset instead of s390_native_supply/_collect.
2227 (fetch_regset, store_regset): Likewise. Also change the last
2228 parameter to a regset instead of a regmap.
2229 (s390_linux_fetch_inferior_registers)
2230 (390_linux_store_inferior_registers): Adjust last parameter in
2231 calls to fetch_regset and store_regset.
2232 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2233 (s390_gregmap): ... this. Also make static const and convert to
2234 regcache_map_entry format.
2235 (s390x_regmap_gregset): Delete.
2236 (s390_regmap_fpregset): Rename to...
2237 (s390_fpregmap): ... this. Make static const and convert to
2238 regcache_map_entry format.
2239 (s390_regmap_upper, s390_regmap_last_break)
2240 (s390x_regmap_last_break, s390_regmap_system_call)
2241 (s390_regmap_tdb): Likewise.
2242 (s390_supply_regset, s390_collect_regset): Remove functions.
2243 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2245 (s390_gregset, s390_fpregset, s390_upper_regset)
2246 (s390_last_break_regset, s390x_last_break_regset)
2247 (s390_system_call_regset, s390_tdb_regset): Make global and
2248 replace s390_supply/_collect_regset by regcache_supply/
2250 (s390x_gregset): Delete.
2251 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2252 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2253 (s390_regmap_fpregset, s390_regmap_last_break)
2254 (s390x_regmap_last_break, s390_regmap_system_call)
2255 (s390_regmap_tdb): Delete global variable declarations.
2256 (s390_gregset, s390_fpregset, s390_last_break_regset)
2257 (s390x_last_break_regset, s390_system_call_regset)
2258 (s390_tdb_regset): New global variable declarations.
2260 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2262 * regcache.c: Include "regset.h".
2263 (regcache_transfer_regset): New local function.
2264 (regcache_supply_regset, regcache_collect_regset): New functions.
2265 * regcache.h (struct regcache_map_entry): New structure.
2266 (REGCACHE_MAP_SKIP): New enum value.
2267 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2269 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2271 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2272 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2273 (ppc_linux_collect_gregset ): Likewise.
2274 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2275 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2276 (ppc_collect_vrregset): Likewise.
2277 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2280 2014-08-07 Yao Qi <yao@codesourcery.com>
2282 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2283 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2284 * remote.c (remote_read_bytes): Likewise.
2286 2014-08-07 Yao Qi <yao@codesourcery.com>
2288 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2290 2014-08-07 Yao Qi <yao@codesourcery.com>
2293 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2294 TARGET_XFER_OK instead of 0.
2296 2014-08-07 Gary Benson <gbenson@redhat.com>
2298 * common/common-defs.h: Include errno.h.
2299 * defs.h: Do not include errno.h.
2300 * ada-typeprint.c: Likewise.
2301 * c-typeprint.c: Likewise.
2302 * core-regset.c: Likewise.
2303 * corefile.c: Likewise.
2304 * corelow.c: Likewise.
2305 * event-loop.c: Likewise.
2306 * f-typeprint.c: Likewise.
2307 * gnu-nat.c: Likewise.
2308 * go32-nat.c: Likewise.
2309 * i386gnu-nat.c: Likewise.
2310 * m2-typeprint.c: Likewise.
2311 * nat/linux-btrace.c: Likewise.
2312 * p-typeprint.c: Likewise.
2313 * procfs.c: Likewise.
2314 * remote-sim.c: Likewise.
2315 * rs6000-nat.c: Likewise.
2316 * target.c: Likewise.
2317 * typeprint.c: Likewise.
2318 * ui-file.c: Likewise.
2319 * valops.c: Likewise.
2320 * valprint.c: Likewise.
2322 2014-08-07 Gary Benson <gbenson@redhat.com>
2324 * common/common-defs.h: Include string.h.
2325 * aarch64-tdep.c: Do not include string.h.
2326 * ada-exp.y: Likewise.
2327 * ada-lang.c: Likewise.
2328 * ada-lex.l: Likewise.
2329 * ada-typeprint.c: Likewise.
2330 * ada-valprint.c: Likewise.
2331 * aix-thread.c: Likewise.
2332 * alpha-linux-tdep.c: Likewise.
2333 * alpha-mdebug-tdep.c: Likewise.
2334 * alpha-nat.c: Likewise.
2335 * alpha-osf1-tdep.c: Likewise.
2336 * alpha-tdep.c: Likewise.
2337 * alphanbsd-tdep.c: Likewise.
2338 * amd64-dicos-tdep.c: Likewise.
2339 * amd64-linux-tdep.c: Likewise.
2340 * amd64-nat.c: Likewise.
2341 * amd64-sol2-tdep.c: Likewise.
2342 * amd64fbsd-tdep.c: Likewise.
2343 * amd64obsd-tdep.c: Likewise.
2344 * arch-utils.c: Likewise.
2345 * arm-linux-nat.c: Likewise.
2346 * arm-linux-tdep.c: Likewise.
2347 * arm-tdep.c: Likewise.
2348 * arm-wince-tdep.c: Likewise.
2349 * armbsd-tdep.c: Likewise.
2350 * armnbsd-nat.c: Likewise.
2351 * armnbsd-tdep.c: Likewise.
2352 * armobsd-tdep.c: Likewise.
2353 * avr-tdep.c: Likewise.
2354 * ax-gdb.c: Likewise.
2355 * ax-general.c: Likewise.
2356 * bcache.c: Likewise.
2357 * bfin-tdep.c: Likewise.
2358 * breakpoint.c: Likewise.
2359 * build-id.c: Likewise.
2360 * buildsym.c: Likewise.
2361 * c-exp.y: Likewise.
2362 * c-lang.c: Likewise.
2363 * c-typeprint.c: Likewise.
2364 * c-valprint.c: Likewise.
2365 * charset.c: Likewise.
2366 * cli-out.c: Likewise.
2367 * cli/cli-cmds.c: Likewise.
2368 * cli/cli-decode.c: Likewise.
2369 * cli/cli-dump.c: Likewise.
2370 * cli/cli-interp.c: Likewise.
2371 * cli/cli-logging.c: Likewise.
2372 * cli/cli-script.c: Likewise.
2373 * cli/cli-setshow.c: Likewise.
2374 * cli/cli-utils.c: Likewise.
2375 * coffread.c: Likewise.
2376 * common/agent.c: Likewise.
2377 * common/buffer.c: Likewise.
2378 * common/buffer.h: Likewise.
2379 * common/common-utils.c: Likewise.
2380 * common/filestuff.c: Likewise.
2381 * common/filestuff.c: Likewise.
2382 * common/format.c: Likewise.
2383 * common/print-utils.c: Likewise.
2384 * common/rsp-low.c: Likewise.
2385 * common/signals.c: Likewise.
2386 * common/vec.h: Likewise.
2387 * common/xml-utils.c: Likewise.
2388 * core-regset.c: Likewise.
2389 * corefile.c: Likewise.
2390 * corelow.c: Likewise.
2391 * cp-abi.c: Likewise.
2392 * cp-name-parser.y: Likewise.
2393 * cp-support.c: Likewise.
2394 * cp-valprint.c: Likewise.
2395 * cris-tdep.c: Likewise.
2396 * d-exp.y: Likewise.
2397 * darwin-nat.c: Likewise.
2398 * dbxread.c: Likewise.
2399 * dcache.c: Likewise.
2400 * demangle.c: Likewise.
2401 * dicos-tdep.c: Likewise.
2402 * disasm.c: Likewise.
2403 * doublest.c: Likewise.
2404 * dsrec.c: Likewise.
2405 * dummy-frame.c: Likewise.
2406 * dwarf2-frame.c: Likewise.
2407 * dwarf2loc.c: Likewise.
2408 * dwarf2read.c: Likewise.
2409 * elfread.c: Likewise.
2410 * environ.c: Likewise.
2412 * event-loop.c: Likewise.
2413 * exceptions.c: Likewise.
2415 * expprint.c: Likewise.
2416 * f-exp.y: Likewise.
2417 * f-lang.c: Likewise.
2418 * f-typeprint.c: Likewise.
2419 * f-valprint.c: Likewise.
2420 * fbsd-nat.c: Likewise.
2421 * findcmd.c: Likewise.
2422 * findvar.c: Likewise.
2423 * fork-child.c: Likewise.
2424 * frame.c: Likewise.
2425 * frv-linux-tdep.c: Likewise.
2426 * frv-tdep.c: Likewise.
2428 * gdb_bfd.c: Likewise.
2429 * gdbarch.c: Likewise.
2430 * gdbarch.sh: Likewise.
2431 * gdbtypes.c: Likewise.
2432 * gnu-nat.c: Likewise.
2433 * gnu-v2-abi.c: Likewise.
2434 * gnu-v3-abi.c: Likewise.
2435 * go-exp.y: Likewise.
2436 * go-lang.c: Likewise.
2437 * go32-nat.c: Likewise.
2438 * guile/guile.c: Likewise.
2439 * guile/scm-auto-load.c: Likewise.
2440 * hppa-hpux-tdep.c: Likewise.
2441 * hppa-linux-nat.c: Likewise.
2442 * hppanbsd-tdep.c: Likewise.
2443 * hppaobsd-tdep.c: Likewise.
2444 * i386-cygwin-tdep.c: Likewise.
2445 * i386-dicos-tdep.c: Likewise.
2446 * i386-linux-tdep.c: Likewise.
2447 * i386-nto-tdep.c: Likewise.
2448 * i386-sol2-tdep.c: Likewise.
2449 * i386-tdep.c: Likewise.
2450 * i386bsd-tdep.c: Likewise.
2451 * i386gnu-nat.c: Likewise.
2452 * i386nbsd-tdep.c: Likewise.
2453 * i386obsd-tdep.c: Likewise.
2454 * i387-tdep.c: Likewise.
2455 * ia64-libunwind-tdep.c: Likewise.
2456 * ia64-linux-nat.c: Likewise.
2457 * inf-child.c: Likewise.
2458 * inf-ptrace.c: Likewise.
2459 * inf-ttrace.c: Likewise.
2460 * infcall.c: Likewise.
2461 * infcmd.c: Likewise.
2462 * inflow.c: Likewise.
2463 * infrun.c: Likewise.
2464 * interps.c: Likewise.
2465 * iq2000-tdep.c: Likewise.
2466 * irix5-nat.c: Likewise.
2467 * jv-exp.y: Likewise.
2468 * jv-lang.c: Likewise.
2469 * jv-typeprint.c: Likewise.
2470 * jv-valprint.c: Likewise.
2471 * language.c: Likewise.
2472 * linux-fork.c: Likewise.
2473 * linux-nat.c: Likewise.
2474 * lm32-tdep.c: Likewise.
2475 * m2-exp.y: Likewise.
2476 * m2-typeprint.c: Likewise.
2477 * m32c-tdep.c: Likewise.
2478 * m32r-linux-nat.c: Likewise.
2479 * m32r-linux-tdep.c: Likewise.
2480 * m32r-rom.c: Likewise.
2481 * m32r-tdep.c: Likewise.
2482 * m68hc11-tdep.c: Likewise.
2483 * m68k-tdep.c: Likewise.
2484 * m68kbsd-tdep.c: Likewise.
2485 * m68klinux-nat.c: Likewise.
2486 * m68klinux-tdep.c: Likewise.
2487 * m88k-tdep.c: Likewise.
2488 * machoread.c: Likewise.
2489 * macrocmd.c: Likewise.
2491 * mdebugread.c: Likewise.
2492 * mem-break.c: Likewise.
2493 * memattr.c: Likewise.
2494 * memory-map.c: Likewise.
2495 * mep-tdep.c: Likewise.
2496 * mi/mi-cmd-break.c: Likewise.
2497 * mi/mi-cmd-disas.c: Likewise.
2498 * mi/mi-cmd-env.c: Likewise.
2499 * mi/mi-cmd-stack.c: Likewise.
2500 * mi/mi-cmd-var.c: Likewise.
2501 * mi/mi-cmds.c: Likewise.
2502 * mi/mi-console.c: Likewise.
2503 * mi/mi-getopt.c: Likewise.
2504 * mi/mi-interp.c: Likewise.
2505 * mi/mi-main.c: Likewise.
2506 * mi/mi-parse.c: Likewise.
2507 * microblaze-rom.c: Likewise.
2508 * microblaze-tdep.c: Likewise.
2509 * mingw-hdep.c: Likewise.
2510 * minidebug.c: Likewise.
2511 * minsyms.c: Likewise.
2512 * mips-irix-tdep.c: Likewise.
2513 * mips-linux-tdep.c: Likewise.
2514 * mips-tdep.c: Likewise.
2515 * mips64obsd-tdep.c: Likewise.
2516 * mipsnbsd-tdep.c: Likewise.
2517 * mipsread.c: Likewise.
2518 * mn10300-linux-tdep.c: Likewise.
2519 * mn10300-tdep.c: Likewise.
2520 * monitor.c: Likewise.
2521 * moxie-tdep.c: Likewise.
2522 * mt-tdep.c: Likewise.
2523 * nat/linux-btrace.c: Likewise.
2524 * nat/linux-osdata.c: Likewise.
2525 * nat/linux-procfs.c: Likewise.
2526 * nat/linux-ptrace.c: Likewise.
2527 * nat/linux-waitpid.c: Likewise.
2528 * nbsd-tdep.c: Likewise.
2529 * nios2-linux-tdep.c: Likewise.
2530 * nto-procfs.c: Likewise.
2531 * nto-tdep.c: Likewise.
2532 * objc-lang.c: Likewise.
2533 * objfiles.c: Likewise.
2534 * opencl-lang.c: Likewise.
2535 * osabi.c: Likewise.
2536 * osdata.c: Likewise.
2537 * p-exp.y: Likewise.
2538 * p-lang.c: Likewise.
2539 * p-typeprint.c: Likewise.
2540 * parse.c: Likewise.
2541 * posix-hdep.c: Likewise.
2542 * ppc-linux-nat.c: Likewise.
2543 * ppc-sysv-tdep.c: Likewise.
2544 * ppcfbsd-tdep.c: Likewise.
2545 * ppcnbsd-tdep.c: Likewise.
2546 * ppcobsd-tdep.c: Likewise.
2547 * printcmd.c: Likewise.
2548 * procfs.c: Likewise.
2549 * prologue-value.c: Likewise.
2550 * python/py-auto-load.c: Likewise.
2551 * python/py-gdb-readline.c: Likewise.
2552 * ravenscar-thread.c: Likewise.
2553 * regcache.c: Likewise.
2554 * registry.c: Likewise.
2555 * remote-fileio.c: Likewise.
2556 * remote-m32r-sdi.c: Likewise.
2557 * remote-mips.c: Likewise.
2558 * remote-notif.c: Likewise.
2559 * remote-sim.c: Likewise.
2560 * remote.c: Likewise.
2561 * reverse.c: Likewise.
2562 * rs6000-aix-tdep.c: Likewise.
2563 * ser-base.c: Likewise.
2564 * ser-go32.c: Likewise.
2565 * ser-mingw.c: Likewise.
2566 * ser-pipe.c: Likewise.
2567 * ser-tcp.c: Likewise.
2568 * ser-unix.c: Likewise.
2569 * serial.c: Likewise.
2570 * sh-tdep.c: Likewise.
2571 * sh64-tdep.c: Likewise.
2572 * shnbsd-tdep.c: Likewise.
2574 * sol-thread.c: Likewise.
2575 * solib-dsbt.c: Likewise.
2576 * solib-frv.c: Likewise.
2577 * solib-osf.c: Likewise.
2578 * solib-som.c: Likewise.
2579 * solib-spu.c: Likewise.
2580 * solib-target.c: Likewise.
2581 * solib.c: Likewise.
2582 * somread.c: Likewise.
2583 * source.c: Likewise.
2584 * sparc-nat.c: Likewise.
2585 * sparc-sol2-tdep.c: Likewise.
2586 * sparc-tdep.c: Likewise.
2587 * sparc64-tdep.c: Likewise.
2588 * sparc64fbsd-tdep.c: Likewise.
2589 * sparc64nbsd-tdep.c: Likewise.
2590 * sparcnbsd-tdep.c: Likewise.
2591 * spu-linux-nat.c: Likewise.
2592 * spu-multiarch.c: Likewise.
2593 * spu-tdep.c: Likewise.
2594 * stabsread.c: Likewise.
2595 * stack.c: Likewise.
2596 * std-regs.c: Likewise.
2597 * symfile.c: Likewise.
2598 * symmisc.c: Likewise.
2599 * symtab.c: Likewise.
2600 * target.c: Likewise.
2601 * thread.c: Likewise.
2602 * tilegx-linux-nat.c: Likewise.
2603 * tilegx-tdep.c: Likewise.
2605 * tracepoint.c: Likewise.
2606 * tui/tui-command.c: Likewise.
2607 * tui/tui-data.c: Likewise.
2608 * tui/tui-disasm.c: Likewise.
2609 * tui/tui-file.c: Likewise.
2610 * tui/tui-layout.c: Likewise.
2611 * tui/tui-out.c: Likewise.
2612 * tui/tui-regs.c: Likewise.
2613 * tui/tui-source.c: Likewise.
2614 * tui/tui-stack.c: Likewise.
2615 * tui/tui-win.c: Likewise.
2616 * tui/tui-windata.c: Likewise.
2617 * tui/tui-winsource.c: Likewise.
2618 * typeprint.c: Likewise.
2619 * ui-file.c: Likewise.
2620 * ui-out.c: Likewise.
2621 * user-regs.c: Likewise.
2622 * utils.c: Likewise.
2623 * v850-tdep.c: Likewise.
2624 * valarith.c: Likewise.
2625 * valops.c: Likewise.
2626 * valprint.c: Likewise.
2627 * value.c: Likewise.
2628 * varobj.c: Likewise.
2629 * vax-tdep.c: Likewise.
2630 * vaxnbsd-tdep.c: Likewise.
2631 * vaxobsd-tdep.c: Likewise.
2632 * windows-nat.c: Likewise.
2633 * xcoffread.c: Likewise.
2634 * xml-support.c: Likewise.
2635 * xstormy16-tdep.c: Likewise.
2636 * xtensa-linux-nat.c: Likewise.
2638 2014-08-07 Gary Benson <gbenson@redhat.com>
2640 * common/common-defs.h: Include gdb_assert.h.
2641 * aarch64-tdep.c: Do not include gdb_assert.h.
2642 * addrmap.c: Likewise.
2643 * aix-thread.c: Likewise.
2644 * alpha-linux-tdep.c: Likewise.
2645 * alpha-mdebug-tdep.c: Likewise.
2646 * alphanbsd-tdep.c: Likewise.
2647 * amd64-nat.c: Likewise.
2648 * amd64-tdep.c: Likewise.
2649 * amd64bsd-nat.c: Likewise.
2650 * amd64fbsd-nat.c: Likewise.
2651 * amd64fbsd-tdep.c: Likewise.
2652 * amd64nbsd-nat.c: Likewise.
2653 * amd64nbsd-tdep.c: Likewise.
2654 * amd64obsd-nat.c: Likewise.
2655 * amd64obsd-tdep.c: Likewise.
2656 * arch-utils.c: Likewise.
2657 * arm-tdep.c: Likewise.
2658 * armbsd-tdep.c: Likewise.
2660 * bcache.c: Likewise.
2661 * bfin-tdep.c: Likewise.
2662 * blockframe.c: Likewise.
2663 * breakpoint.c: Likewise.
2664 * bsd-kvm.c: Likewise.
2665 * bsd-uthread.c: Likewise.
2666 * buildsym.c: Likewise.
2667 * c-exp.y: Likewise.
2668 * c-lang.c: Likewise.
2669 * charset.c: Likewise.
2670 * cleanups.c: Likewise.
2671 * cli-out.c: Likewise.
2672 * cli/cli-decode.c: Likewise.
2673 * cli/cli-dump.c: Likewise.
2674 * cli/cli-logging.c: Likewise.
2675 * cli/cli-script.c: Likewise.
2676 * cli/cli-utils.c: Likewise.
2677 * coffread.c: Likewise.
2678 * common/common-utils.c: Likewise.
2679 * common/queue.h: Likewise.
2680 * common/signals.c: Likewise.
2681 * common/vec.h: Likewise.
2682 * complaints.c: Likewise.
2683 * completer.c: Likewise.
2684 * corelow.c: Likewise.
2685 * cp-abi.c: Likewise.
2686 * cp-name-parser.y: Likewise.
2687 * cp-namespace.c: Likewise.
2688 * cp-support.c: Likewise.
2689 * cris-tdep.c: Likewise.
2690 * dbxread.c: Likewise.
2691 * dictionary.c: Likewise.
2692 * doublest.c: Likewise.
2693 * dsrec.c: Likewise.
2694 * dummy-frame.c: Likewise.
2695 * dwarf2-frame-tailcall.c: Likewise.
2696 * dwarf2-frame.c: Likewise.
2697 * dwarf2expr.c: Likewise.
2698 * dwarf2loc.c: Likewise.
2699 * dwarf2read.c: Likewise.
2701 * event-loop.c: Likewise.
2702 * exceptions.c: Likewise.
2703 * expprint.c: Likewise.
2704 * f-valprint.c: Likewise.
2705 * fbsd-nat.c: Likewise.
2706 * findvar.c: Likewise.
2707 * frame-unwind.c: Likewise.
2708 * frame.c: Likewise.
2709 * frv-tdep.c: Likewise.
2710 * gcore.c: Likewise.
2711 * gdb-dlfcn.c: Likewise.
2712 * gdb_bfd.c: Likewise.
2713 * gdbarch.c: Likewise.
2714 * gdbarch.sh: Likewise.
2715 * gdbtypes.c: Likewise.
2716 * gnu-nat.c: Likewise.
2717 * gnu-v3-abi.c: Likewise.
2718 * go-lang.c: Likewise.
2719 * guile/scm-exception.c: Likewise.
2720 * guile/scm-gsmob.c: Likewise.
2721 * guile/scm-lazy-string.c: Likewise.
2722 * guile/scm-math.c: Likewise.
2723 * guile/scm-pretty-print.c: Likewise.
2724 * guile/scm-safe-call.c: Likewise.
2725 * guile/scm-utils.c: Likewise.
2726 * guile/scm-value.c: Likewise.
2727 * h8300-tdep.c: Likewise.
2728 * hppa-hpux-nat.c: Likewise.
2729 * hppa-tdep.c: Likewise.
2730 * hppanbsd-tdep.c: Likewise.
2731 * hppaobsd-tdep.c: Likewise.
2732 * i386-darwin-nat.c: Likewise.
2733 * i386-darwin-tdep.c: Likewise.
2734 * i386-nto-tdep.c: Likewise.
2735 * i386-tdep.c: Likewise.
2736 * i386bsd-nat.c: Likewise.
2737 * i386fbsd-tdep.c: Likewise.
2738 * i386gnu-nat.c: Likewise.
2739 * i386nbsd-tdep.c: Likewise.
2740 * i386obsd-tdep.c: Likewise.
2741 * i387-tdep.c: Likewise.
2742 * ia64-libunwind-tdep.c: Likewise.
2743 * ia64-tdep.c: Likewise.
2744 * inf-ptrace.c: Likewise.
2745 * inf-ttrace.c: Likewise.
2746 * infcall.c: Likewise.
2747 * infcmd.c: Likewise.
2748 * infrun.c: Likewise.
2749 * inline-frame.c: Likewise.
2750 * interps.c: Likewise.
2751 * jv-lang.c: Likewise.
2752 * jv-typeprint.c: Likewise.
2753 * linux-fork.c: Likewise.
2754 * linux-nat.c: Likewise.
2755 * linux-thread-db.c: Likewise.
2756 * m32c-tdep.c: Likewise.
2757 * m32r-linux-nat.c: Likewise.
2758 * m32r-tdep.c: Likewise.
2759 * m68k-tdep.c: Likewise.
2760 * m68kbsd-nat.c: Likewise.
2761 * m68kbsd-tdep.c: Likewise.
2762 * m88k-tdep.c: Likewise.
2763 * machoread.c: Likewise.
2764 * macroexp.c: Likewise.
2765 * macrotab.c: Likewise.
2766 * maint.c: Likewise.
2767 * mdebugread.c: Likewise.
2768 * memory-map.c: Likewise.
2769 * mep-tdep.c: Likewise.
2770 * mi/mi-common.c: Likewise.
2771 * microblaze-tdep.c: Likewise.
2772 * mingw-hdep.c: Likewise.
2773 * mips-linux-nat.c: Likewise.
2774 * mips-linux-tdep.c: Likewise.
2775 * mips-tdep.c: Likewise.
2776 * mips64obsd-tdep.c: Likewise.
2777 * mipsnbsd-tdep.c: Likewise.
2778 * mn10300-linux-tdep.c: Likewise.
2779 * mn10300-tdep.c: Likewise.
2780 * moxie-tdep.c: Likewise.
2781 * mt-tdep.c: Likewise.
2782 * nat/linux-btrace.c: Likewise.
2783 * nat/linux-osdata.c: Likewise.
2784 * nat/linux-ptrace.c: Likewise.
2785 * nat/mips-linux-watch.c: Likewise.
2786 * nios2-linux-tdep.c: Likewise.
2787 * nios2-tdep.c: Likewise.
2788 * objc-lang.c: Likewise.
2789 * objfiles.c: Likewise.
2790 * obsd-nat.c: Likewise.
2791 * opencl-lang.c: Likewise.
2792 * osabi.c: Likewise.
2793 * parse.c: Likewise.
2794 * ppc-linux-nat.c: Likewise.
2795 * ppc-sysv-tdep.c: Likewise.
2796 * ppcfbsd-nat.c: Likewise.
2797 * ppcfbsd-tdep.c: Likewise.
2798 * ppcnbsd-nat.c: Likewise.
2799 * ppcnbsd-tdep.c: Likewise.
2800 * ppcobsd-nat.c: Likewise.
2801 * ppcobsd-tdep.c: Likewise.
2802 * printcmd.c: Likewise.
2803 * procfs.c: Likewise.
2804 * prologue-value.c: Likewise.
2805 * psymtab.c: Likewise.
2806 * python/py-lazy-string.c: Likewise.
2807 * python/py-value.c: Likewise.
2808 * regcache.c: Likewise.
2809 * reggroups.c: Likewise.
2810 * registry.c: Likewise.
2811 * remote-sim.c: Likewise.
2812 * remote.c: Likewise.
2813 * rs6000-aix-tdep.c: Likewise.
2814 * rs6000-tdep.c: Likewise.
2815 * s390-linux-tdep.c: Likewise.
2816 * score-tdep.c: Likewise.
2817 * ser-base.c: Likewise.
2818 * ser-mingw.c: Likewise.
2819 * sh-tdep.c: Likewise.
2820 * sh64-tdep.c: Likewise.
2821 * solib-darwin.c: Likewise.
2822 * solib-spu.c: Likewise.
2823 * solib-svr4.c: Likewise.
2824 * source.c: Likewise.
2825 * sparc-nat.c: Likewise.
2826 * sparc-sol2-tdep.c: Likewise.
2827 * sparc-tdep.c: Likewise.
2828 * sparc64-sol2-tdep.c: Likewise.
2829 * sparc64-tdep.c: Likewise.
2830 * sparc64fbsd-tdep.c: Likewise.
2831 * sparc64nbsd-tdep.c: Likewise.
2832 * sparc64obsd-tdep.c: Likewise.
2833 * sparcnbsd-tdep.c: Likewise.
2834 * sparcobsd-tdep.c: Likewise.
2835 * spu-multiarch.c: Likewise.
2836 * spu-tdep.c: Likewise.
2837 * stabsread.c: Likewise.
2838 * stack.c: Likewise.
2839 * symfile.c: Likewise.
2840 * symtab.c: Likewise.
2841 * target-descriptions.c: Likewise.
2842 * target-memory.c: Likewise.
2843 * target.c: Likewise.
2844 * tic6x-linux-tdep.c: Likewise.
2845 * tic6x-tdep.c: Likewise.
2846 * tilegx-linux-nat.c: Likewise.
2847 * tilegx-tdep.c: Likewise.
2849 * tramp-frame.c: Likewise.
2850 * tui/tui-out.c: Likewise.
2851 * tui/tui-winsource.c: Likewise.
2852 * ui-out.c: Likewise.
2853 * user-regs.c: Likewise.
2854 * utils.c: Likewise.
2855 * v850-tdep.c: Likewise.
2856 * valops.c: Likewise.
2857 * value.c: Likewise.
2858 * varobj.c: Likewise.
2859 * vax-nat.c: Likewise.
2860 * xml-syscall.c: Likewise.
2861 * xml-tdesc.c: Likewise.
2862 * xstormy16-tdep.c: Likewise.
2863 * xtensa-linux-nat.c: Likewise.
2864 * xtensa-tdep.c: Likewise.
2866 2014-08-07 Gary Benson <gbenson@redhat.com>
2868 * common/common-defs.h: Include common-utils.h.
2869 * defs.h: Do not include common-utils.h.
2870 * common/gdb_assert.h: Likewise.
2871 * darwin-nat.h: Likewise.
2872 * nat/linux-btrace.c: Likewise.
2873 * target/waitstatus.h: Likewise.
2875 2014-08-07 Gary Benson <gbenson@redhat.com>
2877 * common/common-defs.h: Include ptid.h.
2878 * defs.h: Do not include ptid.h.
2879 * inferior.h: Likewise.
2880 * infrun.h: Likewise.
2881 * nat/linux-btrace.h: Likewise.
2882 * nat/linux-osdata.h: Likewise.
2883 * target/waitstatus.h: Likewise.
2885 2014-08-07 Gary Benson <gbenson@redhat.com>
2887 * common/common-defs.h: Include gdb_locale.h.
2888 * defs.h: Do not include gdb_locale.h.
2890 2014-08-07 Gary Benson <gbenson@redhat.com>
2892 * common/common-defs.h: Include gdb/signals.h.
2893 * defs.h: Do not include gdb/signals.h.
2895 2014-08-07 Gary Benson <gbenson@redhat.com>
2897 * common/common-defs.h: Include pathmax.h.
2898 * defs.h: Do not include pathmax.h.
2900 2014-08-07 Gary Benson <gbenson@redhat.com>
2902 * common/common-defs.h: Include libiberty.h.
2903 * defs.h: Do not include libiberty.h.
2904 * common/queue.h: Likewise.
2905 * cp-name-parser.y: Likewise.
2906 * mi/mi-cmd-catch.c: Likewise.
2907 * python/python.c: Likewise.
2909 2014-08-07 Gary Benson <gbenson@redhat.com>
2911 * common/common-defs.h: Include ansidecl.h.
2912 * defs.h: Do not include ansidecl.h.
2913 * common/buffer.h: Likewise.
2914 * common/common-utils.h: Likewise.
2916 2014-08-07 Gary Benson <gbenson@redhat.com>
2918 * common/common-defs.h: Include stddef.h.
2919 * defs.h: Do not include stddef.h.
2920 * common/common-utils.h: Likewise.
2921 * amd64fbsd-nat.c: Likewise.
2922 * bcache.c: Likewise.
2923 * charset.c: Likewise.
2924 * common/buffer.h: Likewise.
2925 * common/vec.h: Likewise.
2926 * i386bsd-nat.c: Likewise.
2927 * nat/linux-btrace.h: Likewise.
2928 * ppcfbsd-nat.c: Likewise.
2929 * ppcnbsd-tdep.h: Likewise.
2930 * ppcobsd-nat.c: Likewise.
2931 * ppcobsd-tdep.h: Likewise.
2932 * python/py-gdb-readline.c: Likewise.
2934 2014-08-07 Gary Benson <gbenson@redhat.com>
2936 * common/common-defs.h: Include stdarg.h.
2937 * defs.h: Do not include stdarg.h.
2938 * ada-lang.c: Likewise.
2939 * common/common-utils.h: Likewise.
2940 * guile/scm-string.c: Likewise.
2941 * guile/scm-utils.c: Likewise.
2942 * m32c-tdep.c: Likewise.
2944 2014-08-07 Gary Benson <gbenson@redhat.com>
2946 * common/common-defs.h: Include stdlib.h.
2947 * defs.h: Do not include stdlib.h.
2948 * addrmap.c: Likewise.
2949 * bcache.c: Likewise.
2950 * common/buffer.c: Likewise.
2951 * common/common-utils.c: Likewise.
2952 * cp-name-parser.y: Likewise.
2953 * go32-nat.c: Likewise.
2954 * mn10300-linux-tdep.c: Likewise.
2955 * nat/linux-osdata.c: Likewise.
2956 * tui/tui.c: Likewise.
2957 * windows-nat.c: Likewise.
2959 2014-08-07 Gary Benson <gbenson@redhat.com>
2961 * common/common-defs.h: Include stdio.h.
2962 * defs.h: Do not include stdio.h.
2963 * ada-lang.c: Likewise.
2964 * common/buffer.c: Likewise.
2965 * common/common-utils.c: Likewise.
2966 * cp-name-parser.y: Likewise.
2967 * gnu-nat.c: Likewise.
2968 * go32-nat.c: Likewise.
2969 * i386gnu-nat.c: Likewise.
2970 * proc-api.c: Likewise.
2971 * proc-events.c: Likewise.
2972 * proc-flags.c: Likewise.
2973 * proc-why.c: Likewise.
2974 * python/python-internal.h: Likewise.
2975 * target-memory.c: Likewise.
2976 * tui/tui-io.c: Likewise.
2977 * tui/tui.c: Likewise.
2979 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2981 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2982 (scan_dyntag_auxv): Same.
2984 2014-08-06 Yao Qi <yao@codesourcery.com>
2986 * amd64-linux-nat.c: Remove duplicated include
2988 * i386-linux-nat.c: Likewise.
2990 2014-08-06 Yao Qi <yao@codesourcery.com>
2992 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2993 operand" with "Special opcode" in comments.
2995 2014-08-05 Gary Benson <gbenson@redhat.com>
2997 * interps.c (initialize_interps): Remove prototype.
2998 (interpreter_initialized): Remove static global.
2999 (interp_add): Do not call initialize_interps.
3000 (initialize_interps): Remove function.
3002 2014-08-05 Gary Benson <gbenson@redhat.com>
3004 * utils.c (vwarning): Remove spurious va_end.
3006 2014-08-05 Alan Modra <amodra@gmail.com>
3008 * charset.c (convert_between_encodings): Cast result of obstack_base.
3009 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3010 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3011 (read_unwind_info): Use size_t for some locals.
3012 * jit.c (finalize_symtab): Likewise.
3013 * utils.c (hashtab_obstack_allocate): Likewise.
3014 * symmisc.c (print_objfile_statistics): Update format strings.
3016 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3018 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3019 (Changes in GDB 7.8): ... here.
3021 2014-08-04 Tom Tromey <tromey@redhat.com>
3023 * target.c (set_targetdebug): New function.
3024 (initialize_targets): Pass set_targetdebug when creating "set
3027 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3029 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3030 if detecting a variable-sized field that is not the last field.
3031 Fix struct type length computation.
3033 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3035 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3038 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3040 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3041 Remove "+ 8" offset in computation of CHAIN_VMA.
3043 2014-07-31 Doug Evans <dje@google.com>
3045 * inflow.c (child_terminal_inferior): Add comment.
3046 (child_terminal_ours_for_output): Add comment.
3047 (child_terminal_ours): Add comment.
3048 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3049 (linux_nat_terminal_ours): Add comment.
3051 2014-07-31 Gary Benson <gbenson@redhat.com>
3053 * common/btrace-common.h: Do not include defs.h or server.h.
3054 * nat/mips-linux-watch.h: Likewise.
3055 * gdb-dlfcn.h: Do not include defs.h.
3056 * tracefile.h: Likewise.
3058 2014-07-30 Roland McGrath <mcgrathr@google.com>
3060 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3062 2014-07-30 Tom Tromey <tromey@redhat.com>
3064 * bsd-kvm.c (bsd_kvm_open): Constify.
3065 * corelow.c (core_open): Constify.
3066 * ctf.c (ctf_open): Constify.
3067 * dbug-rom.c (dbug_open): Constify.
3068 * exec.c (exec_open): Constify.
3069 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3070 * microblaze-rom.c (picobug_open): Constify.
3071 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3073 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3074 * record-btrace.c (record_btrace_open): Constify.
3075 * record-full.c (record_full_core_open_1, record_full_open_1)
3076 (record_full_open): Constify.
3077 * remote-m32r-sdi.c (m32r_open): Constify.
3078 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3079 (rockhopper_open, lsi_open): Constify.
3080 * remote-sim.c (gdbsim_open): Constify.
3081 * remote.c (remote_open, extended_remote_open, remote_open_1):
3083 * target.h (struct target_ops) <to_open>: Make "arg" const.
3084 * tracefile-tfile.c (tfile_open): Constify.
3086 2014-07-30 Tom Tromey <tromey@redhat.com>
3088 * breakpoint.c (map_breakpoint_numbers): Update.
3089 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3090 (get_number_const): New function.
3091 (get_number): Rewrite using get_number_const.
3092 (init_number_or_range): Make "string" const.
3093 (number_is_in_list): Make "list" const.
3094 * cli/cli-utils.h (get_number_const): Declare.
3095 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3096 (init_number_or_range, number_is_in_list): Update.
3097 * printcmd.c (map_display_numbers): Update.
3098 * value.c (value_from_history_ref): Constify.
3099 * value.h (value_from_history_ref): Update.
3101 2014-07-30 Tom Tromey <tromey@redhat.com>
3103 * corefile.c (hook_type, call_extra_exec_file_hooks)
3104 (specify_exec_file_hook): Constify.
3105 * exec.c (exec_file_attach): Make "filename" const.
3106 * gdbcore.h (deprecated_exec_file_display_hook)
3107 (specify_exec_file_hook, exec_file_attach): Constify.
3108 * main.c (captured_main): Use catch_command_errors_const.
3110 2014-07-30 Tom Tromey <tromey@redhat.com>
3112 * target.c (open_target): New function.
3113 (add_target_with_completer, add_deprecated_target_alias): Use
3114 set_cmd_sfunc, set_cmd_context.
3115 (debug_to_open): Remove.
3116 (setup_target_debug): Update.
3118 2014-07-30 Yao Qi <yao@codesourcery.com>
3120 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3122 * parse.c (exp_iterate): Update comments.
3124 2014-07-30 Gary Benson <gbenson@redhat.com>
3126 * common/common-defs.h: New file.
3127 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3128 * defs.h: Include common-defs.h.
3129 Do not include config.h or build-gnulib/config.h.
3131 2014-07-30 Gary Benson <gbenson@redhat.com>
3133 * common/common-utils.h: Do not include config.h.
3134 * nat/linux-btrace.h: Likewise.
3136 2014-07-30 Gary Benson <gbenson@redhat.com>
3138 * btrace.c: Include defs.h.
3139 * common/ptid.c: Include defs.h or server.h as appropriate.
3140 * nat/mips-linux-watch.c: Likewise.
3142 2014-07-29 Tom Tromey <tromey@redhat.com>
3144 * target.c (target_is_pushed): Simplify.
3146 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3150 2014-07-29 Yao Qi <yao@codesourcery.com>
3153 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3155 2014-07-28 Doug Evans <xdje42@gmail.com>
3158 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3159 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3162 2014-07-28 Will Newton <will.newton@linaro.org>
3164 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3165 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3166 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3167 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3168 (THUMB2_EABI_SYSCALL): Likewise.
3169 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3171 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3172 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3174 2014-07-27 Doug Evans <xdje42@gmail.com>
3176 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3178 2014-07-27 Doug Evans <xdje42@gmail.com>
3180 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3182 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3183 Doug Evans <xdje42@gmail.com>
3186 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3187 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3188 * configure.ac: Try to use guild to compile an scm file, if it fails
3189 then disable guile support.
3190 * configure: Regenerate.
3191 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3193 (GUILE_COMPILED_FILES): New variable.
3194 (GUILE_FILES) Update.
3195 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3196 (stamp-guile): Compile scm files.
3197 * guile/guile.c (boot_guile_support): New function.
3198 (standard_throw_args_p): New function.
3199 (print_standard_throw_error, print_throw_error): New functions.
3200 (handle_boot_error): New function.
3201 (initialize_scheme_side): Rewrite to call boot_guile_support.
3202 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3203 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3205 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3206 Doug Evans <xdje42@gmail.com>
3209 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3210 * guile/lib/gdb/support.scm: New file.
3211 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3212 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3214 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3216 (%assert-type): Ditto, and renamed to assert-type.
3217 (%exception-print-style): Delete.
3219 2014-07-26 Doug Evans <xdje42@gmail.com>
3222 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3223 * configure: Regenerate.
3224 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3226 (PYTHON_FILES): New variable.
3227 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3228 (GUILE_FILES): New variable.
3229 (stamp-python, install-python, uninstall-python): Handle empty
3231 (stamp-guile, install-guile, uninstall-guile): Ditto.
3233 2014-07-26 Doug Evans <xdje42@gmail.com>
3236 * guile/lib/gdb.scm (pretty-printers): Export.
3237 (set-pretty-printers!): Export.
3238 * guile/lib/gdb/printing.scm (gdb module): Update.
3239 (prepend-pretty-printer!, append-pretty-printer!): Update.
3240 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3241 (pretty_printer_list_var): Delete.
3242 (pretty_printer_list): New static global.
3243 (gdbscm_pretty_printers): New function.
3244 (gdbscm_set_pretty_printers_x): New function.
3245 (ppscm_find_pretty_printer_from_gdb): Update.
3246 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3247 (gdbscm_initialize_pretty_printers): Update.
3249 2014-07-26 Doug Evans <xdje42@gmail.com>
3252 * configure.ac: Add check for header gc/gc.h.
3253 Add check for function setenv.
3254 * configure: Regenerate.
3255 * config.in: Regenerate.
3256 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3258 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3260 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3261 variation in gdbarch matching.
3263 2014-07-25 Tom Tromey <tromey@redhat.com>
3265 * exec.c (using_exec_ops): Remove.
3266 (exec_close_1): Update. Remove extraneous block, reindent.
3267 (add_target_sections): Use target_is_pushed.
3269 2014-07-25 Pedro Alves <palves@redhat.com>
3271 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3272 * monitor.c (monitor_create_inferior): Likewise.
3273 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3274 * remote-sim.c (gdbsim_create_inferior): Likewise.
3275 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3276 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3277 * windows-nat.c (do_initial_windows_stuff): Likewise.
3279 2014-07-25 Pedro Alves <palves@redhat.com>
3281 * NEWS: Mention signal passing and "signal" command changes.
3282 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3284 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3286 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3287 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3288 (jump_command): Adjust clear_proceed_status call.
3289 (signal_command): Warn if other thread that are resumed have
3290 signals that will be delivered. Adjust clear_proceed_status call.
3291 (until_next_command, finish_command)
3292 (proceed_after_attach_callback, attach_command_post_wait)
3293 (attach_command): Adjust clear_proceed_status call.
3294 * infrun.c (proceed_after_vfork_done): Likewise.
3295 (proceed_after_attach_callback): Adjust comment.
3296 (clear_proceed_status_thread): Clear stop_signal if not in pass
3298 (clear_proceed_status_callback): Delete.
3299 (clear_proceed_status): New 'step' parameter. Only clear the
3300 proceed status of threads the command being prepared is about to
3302 (proceed): If passed in an explicit signal, override stop_signal
3303 with it. Don't pass the last stop signal to the thread we're
3305 (init_wait_for_inferior): Adjust clear_proceed_status call.
3306 (switch_back_to_stepped_thread): Clear the signal if it should not
3308 * infrun.h (clear_proceed_status): New 'step' parameter.
3309 (user_visible_resume_ptid): Add comment.
3310 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3311 signal is in pass state.
3312 * remote.c (append_pending_thread_resumptions): Likewise.
3313 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3315 2014-07-25 Tom Tromey <tromey@redhat.com>
3317 * target.h (target_stopped_data_address)
3318 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3321 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3323 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3325 (avr_pointer_to_address): Likewise.
3327 2014-07-24 Tom Tromey <tromey@redhat.com>
3329 * monitor.c (compile_pattern): Update.
3330 * target.h (struct target_ops) <to_shortname, to_longname,
3333 2014-07-24 Tom Tromey <tromey@redhat.com>
3335 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3336 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3337 (add_info_alias, add_com): Make "doc" const.
3338 (print_doc_line): Make "str" const.
3339 (delete_cmd): Update.
3340 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3341 (print_doc_line): Update.
3342 * cli/cli-script.c (document_command): Update.
3343 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3344 (add_com, add_info, add_info_alias): Update.
3345 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3346 * python/py-cmd.c (cmdpy_destroyer): Update.
3348 2014-07-24 Tom Tromey <tromey@redhat.com>
3350 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3351 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3352 (help_cmd_list): Constify.
3353 (lookup_cmd): Update.
3354 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3356 (help_cmd_list, apropos_cmd): Update.
3357 * cli/cli-script.c (show_user): Update.
3358 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3359 * cli/cli-setshow.h (cmd_show_list): Update.
3360 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3361 (cmd_show_list): Update.
3362 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3363 * python/py-cmd.c (cmdpy_destroyer): Update.
3365 2014-07-24 Tom Tromey <tromey@redhat.com>
3367 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3368 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3370 * command.h (deprecate_cmd): Update.
3371 * maint.c (maintenance_do_deprecate): Add casts.
3373 2014-07-24 Tom Tromey <tromey@redhat.com>
3375 * cli/cli-decode.c (help_cmd): Make parameter "const".
3376 * cli/cli-decode.h (help_cmd): Update.
3378 2014-07-24 Tom Tromey <tromey@redhat.com>
3380 * stack.c (up_silently_base, down_silently_base): Make argument
3383 2014-07-24 Tom Tromey <tromey@redhat.com>
3385 * solib.c (solib_add): Make "pattern" const.
3386 * solib.h (solib_add): Update.
3388 2014-07-24 Tom Tromey <tromey@redhat.com>
3390 * remote.c (remote_serial_open, print_packet, putpkt)
3391 (putpkt_binary): Constify.
3392 * remote.h (putpkt): Update.
3394 2014-07-24 Tom Tromey <tromey@redhat.com>
3396 * monitor.c (monitor_open): Make "args" const.
3397 * monitor.h (monitor_open): Update.
3399 2014-07-24 Tom Tromey <tromey@redhat.com>
3401 * maint.c (match_bfd_flags): Make "string" const.
3402 (print_bfd_section_info): Remove casts.
3403 (print_objfile_section_info): Make "string" const.
3405 2014-07-24 Tom Tromey <tromey@redhat.com>
3407 * inf-child.c (inf_child_open_target): Make "arg" const.
3408 * inf-child.h (inf_child_open_target): Update.
3410 2014-07-24 Tom Tromey <tromey@redhat.com>
3412 * environ.c (unset_in_environ): Make "var" const.
3413 * environ.h (unset_in_environ): Update.
3415 2014-07-24 Tom Tromey <tromey@redhat.com>
3417 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3419 (scan_filename_with_cleanup): Likewise.
3420 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3421 Make arguments const.
3422 (restore_command): Update.
3424 2014-07-24 Pedro Alves <palves@redhat.com>
3426 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3428 2014-07-24 Tom Tromey <tromey@redhat.com>
3429 Gary Benson <gbenson@redhat.com>
3431 * nat/linux-ptrace.c (additional_flags): New global.
3432 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3433 additional_flags; don't check GDBSERVER.
3434 (linux_ptrace_set_additional_flags): New function.
3435 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3437 * linux-nat.c (_initialize_linux_nat): Call
3438 linux_ptrace_set_additional_flags.
3440 2014-07-24 Tom Tromey <tromey@redhat.com>
3442 * make-target-delegates (munge_type, write_debugmethod): New
3444 (debug_names): New global.
3445 ($TARGET_DEBUG_PRINTER): New global.
3446 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3448 Write debug methods. Generate init_debug_target.
3449 * target-debug.h: New file.
3450 * target-delegates.c: Rebuild.
3451 * target.c: Include target-debug.h.
3452 (debug_target): Hoist definition.
3453 (target_kill, target_get_section_table, target_memory_map)
3454 (target_flash_erase, target_flash_done, target_detach)
3455 (target_disconnect, target_wait, target_resume)
3456 (target_pass_signals, target_program_signals, target_follow_fork)
3457 (target_mourn_inferior, target_search_memory)
3458 (target_thread_address_space, target_close)
3459 (target_find_new_threads, target_core_of_thread)
3460 (target_verify_memory, target_insert_mask_watchpoint)
3461 (target_remove_mask_watchpoint): Remove targetdebug code.
3462 (debug_to_post_attach, debug_to_prepare_to_store)
3463 (debug_to_files_info, debug_to_insert_breakpoint)
3464 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3465 (debug_to_region_ok_for_hw_watchpoint)
3466 (debug_to_can_accel_watchpoint_condition)
3467 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3468 (debug_to_watchpoint_addr_within_range)
3469 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3470 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3471 (debug_to_terminal_init, debug_to_terminal_inferior)
3472 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3473 (debug_to_terminal_save_ours, debug_to_terminal_info)
3474 (debug_to_load, debug_to_post_startup_inferior)
3475 (debug_to_insert_fork_catchpoint)
3476 (debug_to_remove_fork_catchpoint)
3477 (debug_to_insert_vfork_catchpoint)
3478 (debug_to_remove_vfork_catchpoint)
3479 (debug_to_insert_exec_catchpoint)
3480 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3481 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3482 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3483 (setup_target_debug): Call init_debug_target.
3484 * target.h (TARGET_DEBUG_PRINTER): New macro.
3485 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3486 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3488 2014-07-24 Gary Benson <gbenson@redhat.com>
3490 * exceptions.h (throw_vfatal): Renamed to...
3491 (throw_vquit): New declaration.
3492 (throw_quit): Likewise.
3493 * exceptions.c (throw_vfatal): Renamed to...
3494 (throw_vquit): New function.
3495 (throw_quit): Likewise.
3496 (throw_error): Call throw_verror rather than throw_it.
3497 * utils.h (vfatal): Removed.
3499 * utils.c (vfatal): Removed.
3501 (internal_verror): Replaced call to fatal with call to throw_quit.
3502 (quit): Replaced calls to fatal with calls to throw_quit.
3504 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3506 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3509 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3511 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3512 less than zero in conditional expression.
3514 2014-07-23 Tom Tromey <tromey@redhat.com>
3516 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3517 ($INTRO_PART): Don't match whitespace.
3518 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3520 ($METHOD): Add $METHOD_TRAILER.
3522 (scan_target_h): New sub.
3523 Change main loop not to collect state.
3524 * target-delegates.c: Rebuild.
3526 2014-07-23 Gary Benson <gbenson@redhat.com>
3528 * cp-support.c (gdb_demangle): Fix build on systems without
3531 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3533 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3534 for reference entry value target data value.
3536 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3538 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3539 value_available_contents_eq.
3541 2014-07-22 Pedro Alves <palves@redhat.com>
3543 * value.c (allocate_optimized_out_value): Don't mark value as
3546 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3548 * MAINTAINERS (Write After Approval): Update my email address.
3550 2014-07-20 Doug Evans <dje@google.com>
3553 * remote.c (putpkt_binary): Add text to error message.
3555 2014-07-20 Yao Qi <yao@codesourcery.com>
3557 * eval.c: Remove "Chill" from comments.
3558 * gdbtypes.h: Likewise.
3559 * symtab.h: Likewise.
3561 2014-07-20 Yao Qi <yao@codesourcery.com>
3563 * std-operator.def: Update comments to TERNOP_SLICE.
3565 2014-07-20 Yao Qi <yao@codesourcery.com>
3567 * std-operator.def: Remove BINOP_RANGE.
3568 * breakpoint.c (watchpoint_exp_is_const): Update.
3569 * expprint.c (dump_subexp_body_standard): Likewise.
3570 * eval.c (init_array_element): Remove dead code.
3571 (evaluate_subexp_standard): Likewise.
3573 2014-07-20 Yao Qi <yao@codesourcery.com>
3575 * std-operator.def: Remove BINOP_IN.
3576 * breakpoint.c (watchpoint_exp_is_const): Update.
3577 * eval.c (evaluate_subexp_standard): Likewise.
3578 * expprint.c (dump_subexp_body_standard): Likewise.
3580 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3582 * microblaze-tdep.c (microblaze_register_names): Add
3583 the rshr and rslr register names.
3584 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3585 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3586 Use of tdesc_numbered_register. Use of
3587 microblaze_register_g_packet_guesses. Use of
3588 tdesc_use_registers. Use of set_gdbarch_register_type.
3589 (microblaze_register_g_packet_guesses): New.
3590 * microblaze-tdep.h (microblaze_reg_num): Add
3591 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3592 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3593 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3594 * features/microblaze-core.xml: New file.
3595 * features/microblaze-stack-protect.xml: New file.
3596 * features/microblaze-with-stack-protect.c: New file.
3597 * features/microblaze-with-stack-protect.xml: New file.
3598 * features/microblaze.xml: New file.
3599 * features/microblaze.c: New file.
3600 * features/Makefile (microblaze-with-stack-protect): Add
3601 microblaze-with-stack-protect microblaze and microblaze-expedite.
3602 * regformats/microblaze-with-stack-protect.dat: New file.
3603 * regformats/microblaze.dat: New file.
3604 * doc/gdb.texinfo (MicroBlaze Features): Added.
3606 2014-07-18 Tom Tromey <tromey@redhat.com>
3608 * exec.c (exec_ops): Now static.
3609 * exec.h (exec_ops): Don't declare.
3611 2014-07-18 Tom Tromey <tromey@redhat.com>
3613 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3614 to find_target_beneath.
3615 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3616 find_target_beneath.
3617 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3619 2014-07-18 Tom Tromey <tromey@redhat.com>
3622 * utils.c (quit): Use target_supports_terminal_ours.
3623 * target.h (target_supports_terminal_ours): Declare.
3624 * target.c (target_supports_delete_record): Don't check
3625 to_delete_record against NULL.
3626 (target_supports_terminal_ours): New function.
3628 2014-07-18 Tom Tromey <tromey@redhat.com>
3631 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3632 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3633 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3634 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3635 * windows-nat.c (windows_xfer_partial): Always delegate.
3636 * record-btrace.c (record_btrace_xfer_partial): Simplify
3638 (record_btrace_fetch_registers, record_btrace_store_registers)
3639 (record_btrace_prepare_to_store, record_btrace_resume)
3640 (record_btrace_wait, record_btrace_find_new_threads)
3641 (record_btrace_thread_alive): Likewise.
3642 * procfs.c (procfs_xfer_partial): Always delegate.
3643 * corelow.c (core_xfer_partial): Always delegate.
3644 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3646 2014-07-18 Tom Tromey <tromey@redhat.com>
3648 * exec.c (exec_make_note_section): Move earlier.
3650 2014-07-17 Doug Evans <dje@google.com>
3653 * maint.c (count_symtabs_and_blocks): Handle NULL
3654 current_program_space.
3655 (report_command_stats): Check global enabled flag in addition to
3656 recorded enabled flag.
3657 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3659 2014-07-16 Pedro Alves <palves@redhat.com>
3661 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3663 2014-07-16 Tom Tromey <tromey@redhat.com>
3665 * target.h (struct target_ops) <to_delete_record>: Reformat
3668 2014-07-16 Tom Tromey <tromey@redhat.com>
3670 * target-delegates.c: Rebuild.
3672 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3674 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3675 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3676 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3677 (avr_pointer_to_address): Likewise.
3678 (avr_address_class_type_flags): New function.
3679 (avr_address_class_type_flags_to_name): Likewise.
3680 (avr_address_class_name_to_type_flags): Likewise.
3681 (avr_gdbarch_init): Set address_class_type_flags,
3682 address_class_type_flags_to_name and
3683 address_class_name_to_type_flags.
3685 2014-07-15 Pedro Alves <palves@redhat.com>
3687 * linux-nat.c (kill_callback): Save errno and work with saved
3690 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3692 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3694 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3696 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3697 breakpoint support correctly.
3699 2014-07-14 Pedro Alves <palves@redhat.com>
3701 * utils.c (prompt_for_continue): Call target_terminal_ours.
3703 2014-07-14 Pedro Alves <palves@redhat.com>
3705 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3706 catch_errors. Don't re-enable stdin or notify observers where,
3708 (fetch_inferior_event_wrapper): Delete.
3710 2014-07-14 Pedro Alves <palves@redhat.com>
3713 * top.c: Include "inf-loop.h".
3714 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3716 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3718 (gdb_readline_wrapper): Store whether the target is async, and
3721 2014-07-14 Pedro Alves <palves@redhat.com>
3724 * top.c (gdb_readline_wrapper_line): Tweak comment.
3725 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3726 the input handler callback.
3728 2014-07-14 Pedro Alves <palves@redhat.com>
3731 * main.c: Include event-top.h.
3732 (handle_command_errors): New function.
3733 (catch_command_errors, catch_command_errors_const): Use it.
3735 2014-07-14 Pedro Alves <palves@redhat.com>
3737 * exceptions.c (catch_command_errors, catch_command_errors_const):
3739 * exceptions.h (catch_command_errors_ftype)
3740 (catch_command_errors_const_ftype): Moved to main.c.
3741 (catch_command_errors, catch_command_errors_const): Delete
3743 * main.c (catch_command_errors_ftype)
3744 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3745 (catch_command_errors, catch_command_errors_const)): Moved here
3746 from exceptions.c and make static.
3748 2014-07-14 Pedro Alves <palves@redhat.com>
3750 * exceptions.c (print_any_exception): Delete.
3751 (catch_exceptions_with_msg): Use exception_print instead of
3752 print_any_exception.
3753 (catch_errors): Use exception_fprintf instead of
3754 print_any_exception.
3755 (catch_command_errors, catch_command_errors_const): Use
3756 exception_print instead of print_any_exception.
3758 2014-07-14 Pedro Alves <palves@redhat.com>
3760 * infcall.c (run_inferior_call): Set 'sync_execution' while
3761 running the inferior call.
3763 2014-07-14 Pedro Alves <palves@redhat.com>
3765 * value.c (value_contents_equal): Delete function.
3766 * value.h (value_contents_equal): Delete declaration.
3768 2014-07-14 Tom Tromey <tromey@redhat.com>
3771 * gdbtypes.c (is_dynamic_type_internal): New function, from
3773 (is_dynamic_type): Rewrite.
3774 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3775 (resolve_dynamic_struct): Likewise.
3776 (resolve_dynamic_type_internal): New function, from
3777 resolve_dynamic_type.
3778 (resolve_dynamic_type): Rewrite.
3780 2014-07-14 Tom Tromey <tromey@redhat.com>
3782 * target.c (target_require_runnable): Also check record_stratum.
3785 2014-07-11 Yao Qi <yao@codesourcery.com>
3787 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3788 thumb_instruction_restores_sp return true.
3790 2014-07-11 Yao Qi <yao@codesourcery.com>
3792 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3793 (thumb_in_function_epilogue_p): Call
3794 thumb_instruction_restores_sp.
3796 2014-07-11 Yao Qi <yao@codesourcery.com>
3798 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3800 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3802 2014-07-11 Gary Benson <gbenson@redhat.com>
3804 * amd64-linux-nat.c (gdbcore.h): Remove include.
3805 (regset.h): Likewise.
3806 (nat/linux-btrace.h): Likewise.
3807 (btrace.h): Likewise.
3808 (gdb_assert.h): Likewise.
3809 (string.h): Likewise.
3810 (sys/uio.h): Likewise.
3811 (sys/debugreg.h): Likewise.
3812 (sys/syscall.h): Likewise.
3813 (sys/procfs.h): Likewise.
3814 (sys/user.h): Likewise.
3815 (asm/ptrace.h): Likewise.
3816 (i386-nat.h): Likewise.
3817 * i386-linux-nat.c (i386-nat.h): Likewise.
3818 (regset.h): Likewise.
3819 (target.h): Likewise.
3820 (linux-nat.h): Likewise.
3821 (nat/linux-btrace.h): Likewise.
3822 (btrace.h): Likewise.
3823 (gdb_assert.h): Likewise.
3824 (string.h): Likewise.
3825 (sys/uio.h): Likewise.
3826 (sys/user.h): Likewise.
3827 (sys/procfs.h): Likewise.
3828 (sys/reg.h): Likewise.
3829 (sys/debugreg.h): Likewise.
3830 (ORIG_EAX): Remove definition.
3832 2014-07-11 Gary Benson <gbenson@redhat.com>
3834 * i386-linux-nat.h: New file.
3835 * x86-linux-nat.h: Likewise.
3836 * x86-linux-nat.c: Likewise.
3837 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3838 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3839 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3840 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3841 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3842 (PTRACE_SETREGSET): Likewise.
3843 (arch_lwp_info): Now in x86-linux-nat.c.
3844 (have_ptrace_getregset): Now in x86-linux-nat.h.
3845 (x86_linux_dr_get): Now in x86-linux-nat.c.
3846 (x86_linux_dr_set): Likewise.
3847 (x86_linux_dr_get_addr): Likewise.
3848 (x86_linux_dr_get_control): Likewise.
3849 (x86_linux_dr_get_status): Likewise.
3850 (update_debug_registers_callback): Likewise.
3851 (x86_linux_dr_set_control): Likewise.
3852 (x86_linux_dr_set_addr): Likewise.
3853 (x86_linux_prepare_to_resume): Likewise.
3854 (x86_linux_new_thread): Likewise.
3855 (x86_linux_new_fork): Likewise.
3856 (x86_linux_get_thread_area): Likewise.
3857 (super_post_startup_inferior): Likewise.
3858 (x86_linux_child_post_startup_inferior): Likewise.
3859 (AMD64_LINUX_USER64_CS): Likewise.
3860 (AMD64_LINUX_X32_DS): Likewise.
3861 (x86_linux_read_description): Likewise.
3862 (x86_linux_enable_btrace): Likewise.
3863 (x86_linux_disable_btrace): Likewise.
3864 (x86_linux_teardown_btrace): Likewise.
3865 (x86_linux_read_btrace): Likewise.
3866 (x86_linux_create_target): Likewise.
3867 (x86_linux_add_target): Likewise.
3868 * i386-linux-nat.c (x86-linux-nat.h): New include.
3869 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3870 (PTRACE_SETREGSET): Likewise.
3871 (arch_lwp_info): Now in x86-linux-nat.c.
3872 (have_ptrace_getregset): Now in x86-linux-nat.h.
3873 (x86_linux_dr_get): Now in x86-linux-nat.c.
3874 (x86_linux_dr_set): Likewise.
3875 (x86_linux_dr_get_addr): Likewise.
3876 (x86_linux_dr_get_control): Likewise.
3877 (x86_linux_dr_get_status): Likewise.
3878 (update_debug_registers_callback): Likewise.
3879 (x86_linux_dr_set_control): Likewise.
3880 (x86_linux_dr_set_addr): Likewise.
3881 (x86_linux_prepare_to_resume): Likewise.
3882 (x86_linux_new_thread): Likewise.
3883 (x86_linux_new_fork): Likewise.
3884 (x86_linux_get_thread_area): Likewise.
3885 (super_post_startup_inferior): Likewise.
3886 (x86_linux_child_post_startup_inferior): Likewise.
3887 (AMD64_LINUX_USER64_CS): Likewise.
3888 (AMD64_LINUX_X32_DS): Likewise.
3889 (x86_linux_read_description): Likewise.
3890 (x86_linux_enable_btrace): Likewise.
3891 (x86_linux_disable_btrace): Likewise.
3892 (x86_linux_teardown_btrace): Likewise.
3893 (x86_linux_read_btrace): Likewise.
3894 (x86_linux_create_target): Likewise.
3895 (x86_linux_add_target): Likewise.
3897 2014-07-11 Gary Benson <gbenson@redhat.com>
3899 * amd64-linux-nat.c: Comment and whitespace changes.
3900 * i386-linux-nat.c: Comment and whitespace changes.
3902 2014-07-11 Gary Benson <gbenson@redhat.com>
3904 * amd64-linux-nat.c (x86_linux_create_target): New function.
3905 (x86_linux_add_target): Likewise.
3906 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3907 * i386-linux-nat.c (x86_linux_create_target): New function.
3908 (x86_linux_add_target): Likewise.
3909 (_initialize_i386_linux_nat): Delegate to the above new functions.
3911 2014-07-11 Gary Benson <gbenson@redhat.com>
3913 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3914 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3915 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3916 (ps_get_thread_area): Delegate to the above.
3918 2014-07-11 Gary Benson <gbenson@redhat.com>
3920 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3921 x86_linux_read_description. All uses updated. amd64-specific
3922 code conditionalized. Conditionalized i386-specific code added.
3923 Redundant cast removed.
3924 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3925 x86_linux_read_description. All uses updated. i386-specific
3926 code conditionalized. Conditionalized amd64-specific code added.
3927 One sizeof replaced with the actual type it is describing.
3929 2014-07-11 Gary Benson <gbenson@redhat.com>
3931 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3932 x86_linux_dr_get. All uses updated.
3933 (amd64_linux_dr_set): Renamed to
3934 x86_linux_dr_set. All uses updated.
3935 (amd64_linux_dr_get_addr): Renamed to
3936 x86_linux_dr_get_addr. All uses updated.
3937 (amd64_linux_dr_get_control): Renamed to
3938 x86_linux_dr_get_control. All uses updated.
3939 (amd64_linux_dr_get_status): Renamed to
3940 x86_linux_dr_get_status. All uses updated.
3941 (amd64_linux_dr_set_control): Renamed to
3942 x86_linux_dr_set_control. All uses updated.
3943 (amd64_linux_dr_set_addr): Renamed to
3944 x86_linux_dr_set_addr. All uses updated.
3945 (amd64_linux_prepare_to_resume): Renamed to
3946 x86_linux_prepare_to_resume. All uses updated.
3947 (amd64_linux_new_thread): Renamed to
3948 x86_linux_new_thread. All uses updated.
3949 (amd64_linux_new_fork): Renamed to
3950 x86_linux_new_fork. All uses updated.
3951 (amd64_linux_child_post_startup_inferior): Renamed to
3952 x86_linux_child_post_startup_inferior. All uses updated.
3953 (amd64_linux_enable_btrace): Renamed to
3954 x86_linux_enable_btrace. All uses updated.
3955 (amd64_linux_disable_btrace): Renamed to
3956 x86_linux_disable_btrace. All uses updated.
3957 (amd64_linux_teardown_btrace): Renamed to
3958 x86_linux_teardown_btrace. All uses updated.
3959 (amd64_linux_read_btrace): Renamed to
3960 x86_linux_read_btrace. All uses updated.
3961 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3962 x86_linux_dr_get. All uses updated.
3963 (i386_linux_dr_set): Renamed to
3964 x86_linux_dr_set. All uses updated.
3965 (i386_linux_dr_get_addr): Renamed to
3966 x86_linux_dr_get_addr. All uses updated.
3967 (i386_linux_dr_get_control): Renamed to
3968 x86_linux_dr_get_control. All uses updated.
3969 (i386_linux_dr_get_status): Renamed to
3970 x86_linux_dr_get_status. All uses updated.
3971 (i386_linux_dr_set_control): Renamed to
3972 x86_linux_dr_set_control. All uses updated.
3973 (i386_linux_dr_set_addr): Renamed to
3974 x86_linux_dr_set_addr. All uses updated.
3975 (i386_linux_prepare_to_resume): Renamed to
3976 x86_linux_prepare_to_resume. All uses updated.
3977 (i386_linux_new_thread): Renamed to
3978 x86_linux_new_thread. All uses updated.
3979 (i386_linux_new_fork): Renamed to
3980 x86_linux_new_fork. All uses updated.
3981 (i386_linux_child_post_startup_inferior): Renamed to
3982 x86_linux_child_post_startup_inferior. All uses updated.
3983 (i386_linux_enable_btrace): Renamed to
3984 x86_linux_enable_btrace. All uses updated.
3985 (i386_linux_disable_btrace): Renamed to
3986 x86_linux_disable_btrace. All uses updated.
3987 (i386_linux_teardown_btrace): Renamed to
3988 x86_linux_teardown_btrace. All uses updated.
3989 (i386_linux_read_btrace): Renamed to
3990 x86_linux_read_btrace. All uses updated.
3992 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3994 * remote.c (extended_remote_post_attach): New function.
3995 (init_extended_remote_ops): Install it as to_post_attach method.
3997 2014-07-09 Pedro Alves <palves@redhat.com>
3999 * infcmd.c (attach_command_post_wait): Don't call
4000 target_terminal_inferior here.
4001 (attach_command): Call it here instead.
4003 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4005 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4007 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4008 from varobj.c, with additional checks.
4009 (c_varobj_ops): Fill in is_path_expr_parent field.
4010 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4011 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4013 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4015 (varobj_default_is_path_expr_parent): New function.
4016 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4017 (varobj_default_is_path_expr_parent): Declare new function.
4019 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4021 * infcmd.c (finish_backward): Turn internal error into normal error.
4023 2014-07-07 Pedro Alves <palves@redhat.com>
4026 * remote.c (async_handle_remote_sigint)
4027 (async_handle_remote_sigint_twice): Call
4028 gdb_call_async_signal_handler instead of
4029 mark_async_signal_handler.
4031 2014-07-07 Tom Tromey <tromey@redhat.com>
4033 * target-delegates.c: Rebuild.
4034 * target.c (target_info_record): Remove.
4035 * record.c (info_record_command): Unconditionally call
4037 * target.h (struct target_ops) <to_info_record>: Use
4038 TARGET_DEFAULT_IGNORE.
4039 (target_info_record): Remove.
4041 2014-07-07 Tom Tromey <tromey@redhat.com>
4043 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4044 TARGET_DEFAULT_NORETURN.
4045 * target.c (generic_tls_error): New function.
4046 (target_translate_tls_address): Don't search target stack.
4047 * target-delegates.c: Rebuild.
4048 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4050 * linux-thread-db.c (thread_db_get_thread_local_address):
4051 Unconditionally call beneath target.
4053 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4055 * cli/cli-logging.c (pop_output_files): Assign targerr to
4058 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4060 * MAINTAINERS (Write After Approval): Update my email address.
4062 2014-07-02 Gary Benson <gbenson@redhat.com>
4064 * proc-service.c (ps_xfer_memory): Update comment.
4065 (ps_pstop): Remove unused function.
4066 (ps_pcontinue): Likewise.
4067 (ps_lstop): Likewise.
4068 (ps_lcontinue): Likewise.
4069 (ps_lgetxregsize): Likewise.
4070 (ps_lgetxregs): Likewise.
4071 (ps_lsetxregs): Likewise.
4072 (ps_plog): Likewise.
4073 (ps_ptread): Likewise.
4074 (ps_ptwrite): Likewise.
4076 2014-07-01 Mark Wielaard <mjw@redhat.com>
4078 * dwarf2read.c (add_array_cv_type): New function.
4079 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4080 (read_tag_volatile_type): Likewise.
4082 2014-07-01 Tom Tromey <tromey@redhat.com>
4084 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4085 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4086 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4087 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4088 * command.h (cmd_cfunc_ftype): Move earlier.
4089 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4090 (add_com, add_info): Use cmd_cfunc_ftype.
4092 2014-06-30 Tom Tromey <tromey@redhat.com>
4094 * symtab.c (operator_chars): Make parameters and return type
4096 (file_matches): Make "files" const.
4097 (struct search_symbols_data) <files>: Now const.
4098 (search_symbols): Make "regexp" and "files" parameters const.
4100 (symtab_symbol_info): Remove cast.
4101 (rbreak_command): Update.
4102 * symtab.h (search_symbols): Update.
4104 2014-06-27 Yao Qi <yao@codesourcery.com>
4106 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4107 Change parameter type to 'struct thread_info *'. Caller
4109 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4111 * dummy-frame.c (struct dummy_frame_id): New.
4112 (dummy_frame_id_eq): New function.
4113 (struct dummy_frame) <id>: Change its type to 'struct
4115 (dummy_frame_push): Add parameter ptid and save it in
4117 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4119 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4121 (lookup_dummy_frame): Change parameter type to 'struct
4122 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4123 instead of frame_id_eq.
4124 (dummy_frame_pop): Add parameter ptid. Callers updated.
4125 Update comments. Compose dummy_frame_id and pass it to
4127 (dummy_frame_discard): Add parameter ptid.
4128 (dummy_frame_sniffer): Compose dummy_frame_id and call
4129 dummy_frame_id_eq instead of frame_id_eq.
4130 (fprint_dummy_frames): Print ptid.
4131 * dummy-frame.h: Remove comments.
4132 (dummy_frame_push): Add ptid in declaration.
4133 (dummy_frame_pop, dummy_frame_discard): Likewise.
4135 2014-06-26 Tom Tromey <tromey@redhat.com>
4137 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4138 * command.h (error_no_arg): Update.
4140 2014-06-26 Tom Tromey <tromey@redhat.com>
4142 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4143 (do_show_command): Make "arg" const.
4144 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4146 2014-06-26 Tom Tromey <tromey@redhat.com>
4148 * record-full.c (record_full_get_bookmark): Make "args" const.
4149 (record_full_goto_bookmark): Make "raw_bookmark" const.
4150 * record.c (record_goto): New function.
4151 (cmd_record_goto): Use it. Now static.
4152 * record.h (record_goto): Declare.
4153 (cmd_record_goto): Remove declaration.
4154 * target-delegates.c: Rebuild.
4155 * target.h (struct target_ops) <to_get_bookmark,
4156 to_goto_bookmark>: Make parameter const.
4158 2014-06-26 Tom Tromey <tromey@redhat.com>
4160 * defs.h (generic_load): Update.
4161 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4162 * monitor.c (monitor_load): Make "args" const.
4163 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4164 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4166 (mips_load): Make "file" const.
4167 * remote-sim.c (gdbsim_load): Make "args" const.
4168 * remote.c (remote_load): Make "name" const.
4169 * symfile.c (generic_load): Make "args" const.
4170 * target-delegates.c: Rebuild.
4171 * target.c (target_load): Make "arg" const.
4172 (debug_to_load): Make "args" const.
4173 * target.h (struct target_ops) <to_load>: Make parameter const.
4174 (target_load): Update.
4176 2014-06-26 Tom Tromey <tromey@redhat.com>
4179 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4180 (dwarf2_physname, read_partial_die)
4181 (guess_partial_die_structure_name, fixup_partial_die)
4182 (guess_full_die_structure_name, anonymous_struct_prefix)
4183 (dwarf2_name): Use per-BFD obstack.
4185 2014-06-26 Yao Qi <yao@codesourcery.com>
4187 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4188 dummyframe and this_id into inner block below.
4190 2014-06-26 Yao Qi <yao@codesourcery.com>
4192 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4193 with "signal_pass[0]" in the initialization of signal_pass.
4195 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4197 * record-btrace.c (record_btrace_generating_corefile)
4198 (record_btrace_prepare_to_generate_core)
4199 (record_btrace_done_generating_core): New.
4200 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4201 (record_btrace_store_registers, record_btrace_prepare_to_store):
4202 Forward request when generating a core file.
4203 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4204 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4205 to_done_generating_core.
4207 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4209 * target.h (target_ops) <to_prepare_to_generate_core>
4210 <to_done_generating_core>: New.
4211 (target_prepare_to_generate_core, target_done_generating_core): New.
4212 * target.c (target_prepare_to_generate_core)
4213 (target_done_generating_core): New.
4214 * target-delegates.c: Regenerate.
4215 * gcore.c: (write_gcore_file): Rename to ...
4216 (write_gcore_file_1): ...this.
4217 (write_gcore_file): Call target_prepare_to_generate_core
4218 and target_done_generating_core.
4220 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4222 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4223 * gcore.c (write_gcore_file): Free memory returned from
4224 make_corefile_notes.
4225 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4226 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4228 2014-06-24 Yao Qi <yao@codesourcery.com>
4230 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4231 (arm_linux_init_abi): Set skip_trampoline_code with
4232 gdbarch_skip_trampoline_code instead of
4233 find_solib_trampoline_target.
4235 2014-06-24 Yao Qi <yao@codesourcery.com>
4237 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4238 arm_skip_bx_reg returns non-zero.
4240 2014-06-24 Yao Qi <yao@codesourcery.com>
4242 * arm-tdep.c (arm_skip_bx_reg): New function.
4243 (arm_skip_stub): Call arm_skip_bx_reg.
4245 2014-06-23 Don Breazeal <donb@codesourcery.com>
4247 * MAINTAINERS: Add myself as write-after-approval maintainer.
4249 2014-06-23 Pedro Alves <palves@redhat.com>
4251 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4252 DR_CONTROL before setting DR0..DR3.
4253 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4254 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4255 bits of DR_CONTROL related to the debug register slot being
4256 disabled. If all slots are vacant, clear local slowdown as well,
4257 and assert DR_CONTROL is 0.
4259 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4261 * python/lib/gdb/command/xmethods.py
4262 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4263 current progspace only if the string "progspace" matches LOCUS_RE.
4265 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4267 Fix --with-system-readline with readline-6.3 patch 5.
4268 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4269 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4272 2014-06-20 Tom Tromey <tromey@redhat.com>
4274 * dwarf2read.c (dw2_get_real_path): Use correct type in
4276 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4278 2014-06-20 Gary Benson <gbenson@redhat.com>
4280 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4281 * common/glibc_thread_db.h: Likewise.
4282 * common/i386-cpuid.h: Likewise.
4283 * common/i386-gcc-cpuid.h: Likewise.
4284 * common/linux-btrace.h: Likewise.
4285 * common/linux-osdata.h: Likewise.
4286 * common/linux-procfs.h: Likewise.
4287 * common/linux-ptrace.h: Likewise.
4288 * common/mips-linux-watch.h: Likewise.
4289 * common/linux-btrace.c: Moved to nat.
4290 * common/linux-osdata.c: Likewise.
4291 * common/linux-procfs.c: Likewise.
4292 * common/linux-ptrace.c: Likewise.
4293 * common/mips-linux-watch.c: Likewise.
4294 * nat/gdb_thread_db.h: Moved from common.
4295 * nat/glibc_thread_db.h: Likewise.
4296 * nat/i386-cpuid.h: Likewise.
4297 * nat/i386-gcc-cpuid.h: Likewise.
4298 * nat/linux-btrace.c: Likewise.
4299 * nat/linux-btrace.h: Likewise.
4300 * nat/linux-osdata.c: Likewise.
4301 * nat/linux-osdata.h: Likewise.
4302 * nat/linux-procfs.c: Likewise.
4303 * nat/linux-procfs.h: Likewise.
4304 * nat/linux-ptrace.c: Likewise.
4305 * nat/linux-ptrace.h: Likewise.
4306 * nat/mips-linux-watch.c: Likewise.
4307 * nat/mips-linux-watch.h: Likewise.
4308 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4309 (object file files): Reordered.
4310 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4311 of glibc_thread_db.h.
4313 2014-06-20 Gary Benson <gbenson@redhat.com>
4315 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4316 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4317 (i386_dr_low): Likewise.
4318 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4319 (i386_dr_low_set_addr): Likewise.
4320 (i386_dr_low_get_addr): Likewise.
4321 (i386_dr_low_can_set_control): Likewise.
4322 (i386_dr_low_set_control): Likewise.
4323 (i386_dr_low_get_control): Likewise.
4324 (i386_dr_low_get_status): Likewise.
4325 (i386_get_debug_register_length): Likewise.
4326 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4327 (i386_dr_low): Likewise.
4328 * nat/i386-dregs.c (i386-low.h): Remove include.
4329 (i386-nat.h): Likewise.
4330 (nat/i386-dregs.h): New include.
4331 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4332 (i386_dr_low_set_addr): Likewise.
4333 (i386_dr_low_get_addr): Likewise.
4334 (i386_dr_low_can_set_control): Likewise.
4335 (i386_dr_low_set_control): Likewise.
4336 (i386_dr_low_get_control): Likewise.
4337 (i386_dr_low_get_status): Likewise.
4338 (i386_get_debug_register_length): Likewise.
4339 (debug_hw_points): Likewise.
4341 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4343 * Makefile.in (SFILES): Add d-exp.y.
4344 (YYFILES): Add d-exp.c.
4345 (YYOBJ): Add d-exp.o.
4346 (local-maintainer-clean): Delete d-exp.c.
4347 * d-exp.y: New file.
4348 * d-lang.h (d_parse): New declaration.
4349 (d_error): New declaration.
4350 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4351 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4352 PREC_ORDER operators.
4353 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4355 2014-06-19 Yao Qi <yao@codesourcery.com>
4357 * gdbthread.h (any_running): Remove the declaration.
4358 * thread.c (any_running): Remove.
4360 2014-06-19 Yao Qi <yao@codesourcery.com>
4362 * gdbthread.h (struct thread_info) <state>: Change its type to
4363 'enum thread_state'. Update comments.
4365 2014-06-19 Pedro Alves <palves@redhat.com>
4367 * gdbthread.h (ALL_THREADS): Delete.
4368 (ALL_NON_EXITED_THREADS): New macro.
4369 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4370 instead of ALL_THREADS.
4371 * infrun.c (find_thread_needs_step_over)
4372 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4373 instead of ALL_THREADS.
4374 * record-btrace.c (record_btrace_open)
4375 (record_btrace_stop_recording, record_btrace_close)
4376 (record_btrace_is_replaying, record_btrace_resume)
4377 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4378 * remote.c (append_pending_thread_resumptions): Likewise.
4379 * thread.c (thread_apply_all_command): Likewise.
4381 2014-06-19 Gary Benson <gbenson@redhat.com>
4383 * i386-nat.c (i386_stopped_by_watchpoint):
4384 Use i386_dr_stopped_by_watchpoint.
4385 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4386 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4388 2014-06-19 Gary Benson <gbenson@redhat.com>
4390 * nat/i386-dregs.c: New file.
4391 * Makefile.in (i386-dregs.o): New rule.
4392 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4393 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4394 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4395 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4396 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4397 * config/i386/go32.mh (NATDEPFILES): Likewise.
4398 * config/i386/linux.mh (NATDEPFILES): Likewise.
4399 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4400 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4401 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4402 * i386-nat.h (debug_hw_points): New declaration.
4403 * i386-nat.c (breakpoint.h): Remove include.
4404 (command.h): Likewise.
4405 (target.h): Likewise.
4406 (gdb_assert.h): Likewise.
4407 (debug_hw_points): Made nonstatic.
4408 (debug_printf): Now in i386-dregs.c.
4409 (TARGET_HAS_DR_LEN_8): Likewise.
4410 (DR_CONTROL_SHIFT): Likewise.
4411 (DR_CONTROL_SIZE): Likewise.
4412 (DR_RW_EXECUTE): Likewise.
4413 (DR_RW_WRITE): Likewise.
4414 (DR_RW_READ): Likewise.
4415 (DR_RW_IORW): Likewise.
4416 (DR_LEN_1): Likewise.
4417 (DR_LEN_2): Likewise.
4418 (DR_LEN_4): Likewise.
4419 (DR_LEN_8): Likewise.
4420 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4421 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4422 (DR_ENABLE_SIZE): Likewise.
4423 (DR_LOCAL_SLOWDOWN): Likewise.
4424 (DR_GLOBAL_SLOWDOWN): Likewise.
4425 (DR_CONTROL_RESERVED): Likewise.
4426 (I386_DR_CONTROL_MASK): Likewise.
4427 (I386_DR_VACANT): Likewise.
4428 (I386_DR_LOCAL_ENABLE): Likewise.
4429 (I386_DR_GLOBAL_ENABLE): Likewise.
4430 (I386_DR_DISABLE): Likewise.
4431 (I386_DR_SET_RW_LEN): Likewise.
4432 (I386_DR_GET_RW_LEN): Likewise.
4433 (I386_DR_WATCH_HIT): Likewise.
4434 (i386_wp_op_t): Likewise.
4435 (i386_show_dr): Likewise.
4436 (i386_length_and_rw_bits): Likewise.
4437 (i386_insert_aligned_watchpoint): Likewise.
4438 (i386_remove_aligned_watchpoint): Likewise.
4439 (i386_handle_nonaligned_watchpoint): Likewise.
4440 (i386_update_inferior_debug_regs): Likewise.
4441 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4442 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4443 (i386_region_ok_for_watchpoint):
4444 Use i386_dr_region_ok_for_watchpoint.
4445 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4447 2014-06-19 Gary Benson <gbenson@redhat.com>
4449 * i386-nat.c (i386_insert_hw_breakpoint): Use
4450 i386_insert_watchpoint.
4451 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4453 2014-06-19 Gary Benson <gbenson@redhat.com>
4455 * i386-nat.c (i386_dr_show): Renamed to
4456 i386_show_dr and made static. All uses updated.
4457 (i386_dr_length_and_rw_bits): Renamed to
4458 i386_length_and_rw_bits and made static.
4460 (i386_dr_insert_aligned_watchpoint): Renamed to
4461 i386_insert_aligned_watchpoint and made static.
4463 (i386_dr_remove_aligned_watchpoint): Renamed to
4464 i386_remove_aligned_watchpoint and made static.
4466 (i386_dr_update_inferior_debug_regs): Renamed to
4467 i386_update_inferior_debug_regs and made static.
4469 * nat/i386-dregs.h (i386_dr_show): Removed.
4470 (i386_dr_length_and_rw_bits): Likewise.
4471 (i386_dr_insert_aligned_watchpoint): Likewise.
4472 (i386_dr_remove_aligned_watchpoint): Likewise.
4473 (i386_dr_update_inferior_debug_regs): Likewise.
4475 2014-06-19 Gary Benson <gbenson@redhat.com>
4477 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4478 * configure: Regenerate.
4479 * config.in: Likewise.
4480 * main.c (signal.h): New include.
4481 (setup_alternate_signal_stack): New function.
4482 (captured_main): Call the above.
4483 * cp-support.c (signal.h): New include.
4484 (catch_demangler_crashes): New flag.
4485 (SIGJMP_BUF): New define.
4486 (SIGSETJMP): Likewise.
4487 (SIGLONGJMP): Likewise.
4488 (gdb_demangle_jmp_buf): New static global.
4489 (gdb_demangle_attempt_core_dump): Likewise.
4490 (gdb_demangle_signal_handler): New function.
4491 (gdb_demangle): If catch_demangler_crashes is set, install the
4492 above signal handler before calling bfd_demangle, and restore
4493 the original signal handler afterwards. Display the offending
4494 symbol and call demangler_warning the first time a segmentation
4496 (_initialize_cp_support): New maint set/show command.
4498 2014-06-19 Gary Benson <gbenson@redhat.com>
4500 * utils.h (resource_limit_kind): New enum.
4501 (can_dump_core): New declaration.
4502 (warn_cant_dump_core): Likewise.
4503 (dump_core): Likewise.
4504 * utils.c (dump_core): Made nonstatic. Added new
4505 parameter "limit_kind".
4506 (can_dump_core): Made nonstatic. Moved printing code to...
4507 (warn_cant_dump_core): New function.
4508 (can_dump_core_warn): Likewise.
4509 (internal_vproblem): Replace calls to can_dump_core with
4510 calls to can_dump_core_warn. Supply new argument to each.
4512 2014-06-19 Gary Benson <gbenson@redhat.com>
4514 * utils.h (demangler_vwarning): New declaration.
4515 (demangler_warning): Likewise.
4516 * utils.c (struct internal_problem)
4517 <user_settable_should_quit>: New field.
4518 <user_settable_should_dump_core>: Likewise
4519 (internal_error_problem): Add values for above new fields.
4520 (internal_warning_problem): Likewise.
4521 (demangler_warning_problem): New static global.
4522 (demangler_vwarning): New function.
4523 (demangler_warning): Likewise.
4524 (add_internal_problem_command): Selectively add commands.
4525 (_initialize_utils): New internal problem command.
4526 * maint.c (maintenance_demangler_warning): New function.
4527 (_initialize_maint_cmds): New command.
4529 2014-06-18 Tom Tromey <tromey@redhat.com>
4531 * f-valprint.c (info_common_command_for_block): Update.
4532 * symtab.h (struct general_symbol_info) <common_block>: Now
4535 2014-06-18 Tom Tromey <tromey@redhat.com>
4537 * symtab.h (struct symtab) <blockvector>: Now const.
4538 * ada-lang.c (ada_add_global_exceptions): Update.
4539 * buildsym.c (augment_type_symtab): Update.
4540 * dwarf2read.c (dw2_lookup_symbol): Update.
4541 * jit.c (finalize_symtab): Update.
4542 * jv-lang.c (add_class_symtab_symbol): Update.
4543 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4545 * objfiles.c (objfile_relocate1): Update.
4546 * psymtab.c (lookup_symbol_aux_psymtabs)
4547 (maintenance_check_psymtabs): Update.
4548 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4550 * spu-tdep.c (spu_catch_start): Update.
4551 * symmisc.c (dump_symtab_1): Update.
4552 * symtab.c (lookup_global_symbol_from_objfile)
4553 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4554 (basic_lookup_transparent_type_quick)
4555 (basic_lookup_transparent_type, find_pc_sect_symtab)
4556 (find_pc_sect_line, search_symbols): Update.
4557 * block.c (find_block_in_blockvector): Make "bl" const.
4558 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4560 (blockvector_contains_pc): Make "bv" const.
4561 (block_for_pc_sect): Update.
4562 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4563 (blockvector_contains_pc): Update.
4564 * breakpoint.c (resolve_sal_pc): Update.
4565 * inline-frame.c (block_starting_point_at): Update.
4567 2014-06-18 Tom Tromey <tromey@redhat.com>
4569 * completer.c (complete_line): Make "line_buffer" const.
4570 * completer.h (complete_line): Update.
4572 2014-06-18 Tom Tromey <tromey@redhat.com>
4574 * symtab.c (add_macro_name): Remove unneeded cast.
4576 2014-06-18 Tom Tromey <tromey@redhat.com>
4578 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4579 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4581 2014-06-18 Tom Tromey <tromey@redhat.com>
4583 * probe.c (info_probes_for_ops): Make "arg" const.
4584 * probe.h (info_probes_for_ops): Update.
4586 2014-06-18 Tom Tromey <tromey@redhat.com>
4588 * varobj.c (varobj_create): Update.
4589 * valops.c (value_of_this): Update.
4590 * tracepoint.c (add_local_symbols, scope_info): Update.
4591 * symtab.h (struct general_symbol_info) <block>: Now const.
4592 * symtab.c (skip_prologue_sal)
4593 (default_make_symbol_completion_list_break_on)
4594 (skip_prologue_using_sal): Update.
4595 * stack.h (iterate_over_block_locals)
4596 (iterate_over_block_local_vars): Update.
4597 * stack.c (print_frame_args): Update.
4598 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4600 (get_selected_block): Make return type const.
4601 * python/py-frame.c (frapy_block): Update.
4602 * python/py-block.c (gdbpy_block_for_pc): Update.
4603 * p-exp.y (%union) <bval>: Now const.
4604 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4605 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4606 * m2-exp.y (%union) <bval>: Now const.
4607 * linespec.c (get_current_search_block): Make return type const.
4608 (create_sals_line_offset, find_label_symbols): Update.
4609 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4611 (block_starting_point_at): Make "block" const.
4612 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4613 (check_exception_resume): Update.
4614 * guile/scm-frame.c (gdbscm_frame_block): Update.
4615 * guile/scm-block.c (gdbscm_lookup_block): Update.
4616 * frame.h (get_frame_block): Update.
4617 (get_selected_block): Make return type const.
4618 * frame.c (frame_id_inner): Update.
4619 * f-valprint.c (info_common_command_for_block)
4620 (info_common_command): Update.
4621 * dwarf2loc.c (dwarf2_find_location_expression)
4622 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4623 (locexpr_describe_location_piece): Update.
4624 * c-exp.y (%union) <bval>: Now const.
4625 * breakpoint.c (resolve_sal_pc): Update.
4626 * blockframe.c (get_frame_block):Make return type const.
4627 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4628 (block_innermost_frame): Update.
4629 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4630 (block_for_pc, block_for_pc_sect): Update.
4631 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4633 (block_for_pc_sect, block_for_pc): Make return type const.
4634 * ax-gdb.c (gen_expr): Update.
4635 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4636 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4637 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4638 (ada_read_var_value): Update.
4639 * ada-exp.y (struct name_info) <block>: Now const.
4641 (block_lookup): Constify.
4643 2014-06-18 Gary Benson <gbenson@redhat.com>
4645 * nat/i386-dregs.h: New file.
4646 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4647 * i386-nat.h (i386-dregs.h): New include.
4648 (DR_FIRSTADDR): Now in i386-dregs.h.
4649 (DR_LASTADDR): Likewise.
4650 (DR_NADDR): Likewise.
4651 (DR_STATUS): Likewise.
4652 (DR_CONTROL): Likewise.
4653 (i386_debug_reg_state): Likewise.
4654 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4656 2014-06-18 Don Breazeal <donb@codesourcery.com>
4658 * breakpoint.c (set_longjmp_breakpoint): Call
4659 momentary_breakpoint_from_master with additional argument.
4660 (set_longjmp_breakpoint_for_call_dummy): Call
4661 momentary_breakpoint_from_master with additional argument.
4662 (set_std_terminate_breakpoint): Call
4663 momentary_breakpoint_from_master with additional argument.
4664 (momentary_breakpoint_from_master): Add argument to function
4665 definition and use it to initialize structure member flag.
4666 (clone_momentary_breakpoint): Call
4667 momentary_breakpoint_from_master with additional argument.
4668 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4669 member flags set in momentary_breakpoint_from_master.
4671 2014-06-18 Gary Benson <gbenson@redhat.com>
4673 * i386-nat.c (i386_show_dr): Renamed to
4674 i386_dr_show and made nonstatic. All uses updated.
4675 (i386_length_and_rw_bits): Renamed to
4676 i386_dr_length_and_rw_bits and made nonstatic.
4678 (i386_insert_aligned_watchpoint): Renamed to
4679 i386_dr_insert_aligned_watchpoint and made nonstatic.
4681 (i386_remove_aligned_watchpoint): Renamed to
4682 i386_dr_remove_aligned_watchpoint and made nonstatic.
4684 (i386_update_inferior_debug_regs): Renamed to
4685 i386_dr_update_inferior_debug_regs and made nonstatic.
4688 2014-06-18 Gary Benson <gbenson@redhat.com>
4690 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4691 (i386_dr_low_can_set_control): Likewise.
4692 (i386_dr_low_set_addr): Likewise.
4693 (i386_dr_low_set_control): Likewise.
4694 (i386_dr_low_get_addr): Likewise.
4695 (i386_dr_low_get_status): Likewise.
4696 (i386_dr_low_get_control): Likewise.
4697 (i386_insert_aligned_watchpoint): Use new macros.
4698 (i386_update_inferior_debug_regs): Likewise.
4699 (i386_stopped_data_address): Likewise.
4701 2014-06-18 Gary Benson <gbenson@redhat.com>
4703 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4704 New parameter. All uses updated.
4706 2014-06-18 Gary Benson <gbenson@redhat.com>
4708 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4711 2014-06-18 Gary Benson <gbenson@redhat.com>
4713 * i386-nat.c (debug_printf): New macro.
4714 (i386_get_debug_register_length): Likewise.
4715 (TARGET_HAS_DR_LEN_8): Use above macro.
4716 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4717 and printf_unfiltered. Use phex to format values.
4719 2014-06-18 Gary Benson <gbenson@redhat.com>
4721 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4724 2014-06-18 Gary Benson <gbenson@redhat.com>
4726 * i386-nat.c: Comment changes.
4728 2014-06-18 Gary Benson <gbenson@redhat.com>
4730 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4732 2014-06-18 Gary Benson <gbenson@redhat.com>
4734 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4735 (i386_insert_aligned_watchpoint): Likewise.
4736 (i386_remove_aligned_watchpoint): Likewise.
4737 (i386_handle_nonaligned_watchpoint): Likewise.
4739 2014-06-18 Gary Benson <gbenson@redhat.com>
4741 * i386-nat.c: Whitespace changes.
4743 2014-06-17 Samuel Bronson <naesten@gmail.com>
4745 * MAINTAINERS: Update Roland McGrath's email address.
4746 Thanks to Sergio Durigan Junior for pointing out that he left
4747 Red Hat a while ago, and giving me a current address.
4749 2014-06-17 Tom Tromey <tromey@redhat.com>
4751 * utils.h (savestring): Remove declaration.
4753 2014-06-17 Tom Tromey <tromey@redhat.com>
4755 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4757 2014-06-16 Keith Seitz <keiths@redhat.com>
4760 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4761 to update the varobj if inferior_ptid is null_ptid.
4763 2014-06-16 Tom Tromey <tromey@redhat.com>
4765 * target.h (struct target_ops) <to_info_proc>: Make parameter
4767 (target_info_proc): Update.
4768 * target.c (target_info_proc): Make "args" const.
4769 * procfs.c (procfs_info_proc): Update.
4770 * linux-tdep.c (linux_info_proc): Update.
4771 (linux_core_info_proc_mappings): Make "args" const.
4772 (linux_core_info_proc): Update.
4773 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4774 * gdbarch.c: Rebuild.
4775 * gdbarch.h: Rebuild.
4776 * corelow.c (core_info_proc): Update.
4778 2014-06-16 Tom Tromey <tromey@redhat.com>
4780 * target.h (struct target_ops) <to_disconnect>: Make parameter
4782 (target_disconnect): Update.
4783 * target.c (target_disconnect): Make "args" const.
4784 * target-delegates.c: Rebuild.
4785 * remote.c (remote_disconnect): Update.
4786 * record.h (record_disconnect): Update.
4787 * record.c (record_disconnect): Update.
4788 * inf-child.c (inf_child_disconnect): Update.
4790 2014-06-16 Tom Tromey <tromey@redhat.com>
4792 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4793 * target.c (debug_to_rcmd, default_rcmd): Update.
4794 * target-delegates.c: Rebuild.
4795 * remote.c (remote_rcmd): Update.
4796 * monitor.c (monitor_rcmd): Update.
4798 2014-06-16 Pedro Alves <palves@redhat.com>
4800 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4801 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4802 have OBJF_SHARED set.
4803 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4804 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4805 instead of OBJF_USERLOADED.
4806 * objfiles.h (OBJF_SHARED): Update comment.
4807 (userloaded_objfile_contains_address_p): Rename to ...
4808 (shared_objfile_contains_address_p): ... this, and update
4810 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4812 (remove_symbol_file_command): Skip objfiles that don't have
4815 2014-06-16 Tom Tromey <tromey@redhat.com>
4817 * minsyms.h (prim_record_minimal_symbol)
4818 (prim_record_minimal_symbol_and_info): Update comments.
4820 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4822 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4823 or --without-guile, according to how GDB was built.
4825 2014-06-13 Tom Tromey <tromey@redhat.com>
4827 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4829 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4831 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4833 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4834 help_list.Pass all_commands, not -1, to help_list.
4835 * cli/cli-dump.c (dump_command, append_command)
4836 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4837 (binary_dump_command, binary_append_command): Pass all_commands,
4838 not -1, to help_list.
4839 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4841 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4843 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4845 * top.c (set_history): Pass all_commands, not -1, to help_list.
4846 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4847 all_commands, not -1, to help_list.
4848 * symfile.c (overlay_command): Pass all_commands, not -1, to
4850 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4852 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4854 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4856 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4857 not -1, to help_list.
4858 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4859 not -1, to help_list.
4860 * maint.c (maintenance_command, maintenance_info_command)
4861 (maintenance_print_command, maintenance_set_cmd): Pass
4862 all_commands, not -1, to help_list.
4863 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4865 * language.c (set_check): Pass all_commands, not -1, to help_list.
4866 * infcmd.c (unset_command): Pass all_commands, not -1, to
4868 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4870 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4872 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4874 * breakpoint.c (save_command): Pass all_commands, not -1, to
4876 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4877 all_commands, not -1, to help_list.
4879 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4881 * regcache.c (struct register_to_invalidate): New structure.
4882 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4884 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4886 2014-06-12 Yao Qi <yao@codesourcery.com>
4888 * varobj.c (varobj_get_num_children): Call
4889 varobj_is_dynamic_p.
4890 (varobj_list_children): Likewise.
4891 (varobj_update): Likewise. Update comments.
4893 2014-06-12 Yao Qi <yao@codesourcery.com>
4895 * varobj.c (varobj_pretty_printed_p): Rename to ...
4896 (varobj_is_dynamic_p): ... this. New function.
4897 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4898 (varobj_is_dynamic_p): Declare.
4899 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4900 (mi_print_value_p, varobj_update_one): Likewise.
4902 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4903 Yao Qi <yao@codesourcery.com>
4905 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4906 (varobj_get_iterator): Wrap up code for pretty-printer by
4907 "#if HAVE_PYTHON" and "#endif".
4908 (update_dynamic_varobj_children): Likewise.
4910 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4911 Yao Qi <yao@codesourcery.com>
4913 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4914 gdb_python_initialized is false. Move some code from varobj.c.
4915 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4916 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4917 (struct varobj_item): Moved to varobj-iter.h".
4918 (varobj_clear_saved_item): New function.
4919 (update_dynamic_varobj_children): Move python-related code to
4921 (free_variable): Call varobj_clear_saved_item and
4924 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4925 Yao Qi <yao@codesourcery.com>
4927 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4928 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4929 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4930 (py-varobj.o): New rule.
4931 * python/py-varobj.c: New file.
4932 * python/python-internal.h (py_varobj_get_iterator): Declare.
4933 * varobj-iter.h: New file.
4934 * varobj.c: Include "varobj-iter.h"
4935 (struct varobj) <child_iter>: Change its type from "PyObject *"
4936 to "struct varobj_iter *".
4937 <saved_item>: Likewise.
4938 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4939 [HAVE_PYTHON] (varobj_get_iterator): New function.
4940 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4941 python-specific code to python/py-varobj.c.
4942 (install_visualizer): Call varobj_iter_delete instead of
4944 * varobj.h (varobj_ensure_python_env): Declare.
4946 2014-06-12 Yao Qi <yao@codesourcery.com>
4948 * varobj.c (struct varobj_item): New structure.
4949 (create_child_with_value): Update declaration.
4950 (varobj_add_child): Replace arguments 'name' and 'value' with
4951 'item'. All callers updated.
4952 (install_dynamic_child): Likewise.
4953 (update_dynamic_varobj_children): Likewise.
4954 (varobj_add_child): Likewise.
4955 (create_child_with_value): Likewise.
4957 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4959 * NEWS: Create a new section for the next release branch.
4960 Rename the section of the current branch, now that it has
4963 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4965 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4966 * version.in: Bump version to 7.8.50.DATE-cvs.
4968 2014-06-11 Pedro Alves <palves@redhat.com>
4971 * ser-mingw.c (net_windows_socket_check_pending): New function.
4972 (net_windows_select_thread): Ignore spurious wakeups. Use
4973 net_windows_socket_check_pending.
4974 (net_windows_wait_handle): Check for pending events with
4975 ioctlsocket, through net_windows_socket_check_pending, instead of
4976 checking the socket's event.
4978 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4980 * python/python-internal.h (gdb_PyObject_GetAttrString)
4981 (gdb_PyObject_HasAttrString): New inline function definitions.
4982 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4983 char * of the second argument to PyObject_GetAttrString.
4985 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4987 * serial.c (serial_write): Fix index of character to be printed
4988 in call to serial_logchar when serial debug traces are enabled.
4990 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4992 * gdbtypes (resolve_dynamic_range): Add function description.
4994 2014-06-09 Pedro Alves <palves@redhat.com>
4996 * linux-nat.c (linux_child_follow_fork): Initialize status with
4997 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4998 inner block. Only pass the signal to PTRACE_DETACH if in pass
5001 2014-06-09 Gary Benson <gbenson@redhat.com>
5003 * common/signals.c (gdb_signal_from_host): Reorder to separate
5004 the always-available ANSI-standard signals from the signals that
5006 (do_gdb_signal_to_host): Likewise.
5007 * proc-events.c (signal_table): Likewise.
5009 2014-06-08 Hui Zhu <hui@codesourcery.com>
5011 * common/linux-ptrace.c (linux_disable_event_reporting): New
5013 * common/linux-ptrace.h (linux_disable_event_reporting): New
5015 * linux-nat.c (linux_child_follow_fork): Do a single step before
5018 2014-06-07 Keith Seitz <keiths@redhat.com>
5022 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5023 from symbol_matches_domain in symtab.c. All local callers
5024 of symbol_matches_domain updated.
5025 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5026 search STRUCT_DOMAIN.
5027 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5028 independently. standard_lookup will do that automatically.
5029 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5030 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5031 (cp_lookup_symbol_in_namespace): Likewise.
5032 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5033 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5034 may return a STRUCT_DOMAIN match.
5035 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5036 * cp-support.c: Include language.h.
5037 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5039 * psymtab.c (match_partial_symbol): Compare the requested
5040 domain with the symbol's domain directly.
5041 (lookup_partial_symbol): Likewise.
5042 * symtab.c (lookup_symbol_in_language): Explain when/why
5043 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5044 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5045 appropriate languages.
5046 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5047 and moved to ada-lang.c
5048 (lookup_block_symbol): Explain that this function only returns
5049 symbol matching the requested DOMAIN.
5050 Compare the requested domain with the symbol's domain directly.
5051 (iterate_over_symbols): Compare the requested domain with the
5052 symbol's domain directly.
5053 * symtab.h (symbol_matches_domain): Remove.
5055 2014-06-06 Doug Evans <xdje42@gmail.com>
5057 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5058 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5059 (gdbscm_guile_version_is_at_least): Declare.
5060 (gdbscm_scm_string_to_int): Declare.
5061 * guile/guile.c (gdbscm_guile_major_version): New global.
5062 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5063 (guile_datadir): New static global.
5064 (gdbscm_guile_data_directory): New function.
5065 (initialize_scheme_side): Update.
5066 (misc_guile_functions): Add guile-data-directory.
5067 (initialize_gdb_module): Fetch guile version number.
5068 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5069 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5070 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5071 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5073 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5074 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5075 * guile/scm-value.c (gdbscm_value_to_string): Only call
5076 scm_port_conversion_strategy if Guile version >= 2.0.6.
5078 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5080 * main.c (print_gdb_help): Add -q and --silent.
5082 2014-06-06 Gary Benson <gbenson@redhat.com>
5084 * common/signals.c: Remove preprocessor conditionals for
5085 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5086 SIGSEGV and SIGTERM.
5087 * proc-events.c: Likewise.
5089 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5091 * symfile.c (symfile_free_objfile): Remove restriction to
5093 * symfile-mem.c (symbol_file_add_from_memory): Call
5094 add_target_sections_of_objfile.
5096 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5098 * guile/scm-value.c (gdbscm_history_append_x): Use
5099 'vlscm_get_value_smob_arg_unsafe' instead of
5100 'vlscm_scm_to_value'.
5102 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5105 * utils.c (printchar): Don't escape at all if quoter is NUL.
5106 Update function documentation to clarify effect of parameter
5108 * remote.c (escape_buffer): Pass '\\' as the quoter to
5109 fputstrn_unfiltered.
5110 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5111 generate the output.
5112 (mi_solib_unloaded): Same.
5114 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5116 * development.sh: Delete.
5117 * Makefile.in (config.status): Adjust dependency on development.sh.
5118 * configure.ac: Adjust development.sh source call.
5119 * configure: Regenerate.
5121 2014-06-04 Doug Evans <xdje42@gmail.com>
5123 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5124 is_scheme_bkpt, spec.
5125 (bpscm_make_breakpoint_smob): Initialize new members.
5126 (gdbscm_create_breakpoint_x): Split into two ...
5127 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5128 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5129 (scheme_function breakpoint_functions): Update.
5130 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5131 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5132 register-breakpoint!.
5134 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5137 * mem-break.c (z_type_supported): Return zero if
5138 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5140 2014-06-04 Tom Tromey <tromey@redhat.com>
5142 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5143 value_from_contents_and_address_unresolved.
5144 (ada_template_to_fixed_record_type_1): Likewise.
5145 (ada_which_variant_applies): Likewise.
5146 * value.h (value_from_contents_and_address_unresolved): Declare.
5147 * value.c (value_from_contents_and_address_unresolved): New
5149 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5150 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5151 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5153 2014-06-04 Tom Tromey <tromey@redhat.com>
5155 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5157 2014-06-04 Tom Tromey <tromey@redhat.com>
5159 * procfs.c (procfs_attach): Make "args" const.
5160 * windows-nat.c (windows_attach): Make "args" const.
5161 * nto-procfs.c (procfs_attach): Make "args" const.
5162 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5163 * go32-nat.c (go32_attach): Make "args" const.
5164 * gnu-nat.c (gnu_attach): Make "args" const.
5165 * darwin-nat.c (darwin_attach): Make "args" const.
5166 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5167 * linux-nat.c (linux_nat_attach): Make "args" const.
5168 * remote.c (extended_remote_attach_1, extended_remote_attach):
5170 * target.h (struct target_ops) <to_attach>: Make "args" const.
5171 (find_default_attach): Likewise.
5172 * utils.c (parse_pid_to_attach): Make "args" const.
5173 * utils.h (parse_pid_to_attach): Update.
5175 2014-06-04 Tom Tromey <tromey@redhat.com>
5177 * target-delegates.c: Rebuild.
5178 * target.c (default_thread_address_space): New function.
5179 (target_thread_address_space): Simplify.
5180 * target.h (struct target_ops) <to_thread_address_space>: Add
5181 TARGET_DEFAULT_FUNC.
5183 2014-06-04 Doug Evans <xdje42@gmail.com>
5185 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5187 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5189 * record-btrace.c: Include event-loop.h and inf-loop.h.
5190 (record_btrace_resume_exec_dir)
5191 (record_btrace_async_inferior_event_handler)
5192 (record_btrace_handle_async_inferior_event): New.
5193 (record_btrace_open): Create async event handler.
5194 (record_btrace_close): Delete async event handler.
5195 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5196 Mark async event handler.
5197 (record_btrace_execution_direction): New.
5198 (init_record_btrace_ops): Initialize to_execution_direction.
5200 2014-06-03 Doug Evans <xdje42@gmail.com>
5202 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5203 (gdbscm_make_parameter): Ditto.
5205 2014-06-03 Doug Evans <dje@google.com>
5207 * exec.c (exec_close_1): Call clear_section_table instead of
5208 resize_section_table.
5209 (clear_section_table): New function.
5210 (resize_section_table): Make static. Rename arg num_added to
5212 * exec.h (clear_section_table): Declare.
5213 (resize_section_table): Delete.
5214 * progspace.c (release_program_space): Call clear_section_table
5215 instead of resize_section_table.
5217 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5219 * NEWS (Python Scripting): Add entry about the new xmethods
5222 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5224 * python/py-xmethods.c: New file.
5225 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5226 (objfpy_dealloc): XDECREF on the new xmethods field.
5227 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5229 (objfpy_get_xmethods): New function.
5230 (objfile_getset): New entry 'xmethods'.
5231 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5232 (pspy_dealloc): XDECREF on the new xmethods field.
5233 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5235 (pspy_get_xmethods): New function.
5236 (pspace_getset): New entry 'xmethods'.
5237 * python/python-internal.h: Add declarations for new functions.
5238 * python/python.c (_initialize_python): Invoke
5239 gdbpy_initialize_xmethods.
5240 * python/lib/gdb/__init__.py (xmethods): New
5242 * python/lib/gdb/xmethod.py: New file.
5243 * python/lib/gdb/command/xmethods.py: New file.
5245 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5247 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5248 best match method returned by find_overload_match is an xmethod.
5249 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5250 the best matching operator returned by find_overload_match is an
5252 * valops.c: #include "extension.h".
5253 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5254 Return void. The list of matching source methods is returned in
5255 "fn_list" and a vector of matching debug method workers is
5256 returned in "xm_worker_vec". Update all callers.
5257 (value_find_oload_method_list): Likewise.
5258 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5259 non-NULL, then the index of the best matching method in this
5260 vector is returned. Update all callers.
5261 (find_overload_match): Include xmethods while performing overload
5264 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5266 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5267 * extension-priv.h (struct extension_language_ops): Add the
5269 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5270 get_matching_xmethod_workers, get_xmethod_argtypes,
5271 invoke_xmethod, free_xmethod_worker,
5272 free_xmethod_worker_vec): New functions.
5273 * extension.h: #include "common/vec.h".
5274 New function declarations.
5275 (struct xmethod_worker): New struct.
5276 (VEC (xmethod_worker_ptr)): New vector type.
5277 (xmethod_worker_ptr): New typedef.
5278 (xmethod_worker_vec): Likewise.
5279 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5281 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5282 (struct builtin_type): New field "xmethod".
5283 * valarith.c (value_ptradd): Assert that the value argument is not
5285 * valops.c (value_must_coerce_to_target): Return 0 for
5286 lval_xcallable values.
5287 * value.c (struct value): New field XM_WORKER in the field
5289 (value_address, value_raw_address): Return 0 for lval_xcallable
5291 (set_value_address): Assert that the value is not an
5293 (value_free): Free the associated xmethod worker when freeing
5294 lval_xcallable values.
5295 (set_value_component_location): Assert that the WHOLE value is not
5297 (value_of_xmethod, call_xmethod): New functions.
5298 * value.h: Declare "struct xmethod_worker".
5299 Declare new functions value_of_xmethod, call_xmethod.
5301 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5302 Pedro Alves <palves@redhat.com>
5304 PR breakpoints/17000
5305 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5306 New function, extracted from software_breakpoint_inserted_here_p.
5307 (software_breakpoint_inserted_here_p): Replace factored out code
5308 by call to find_non_raw_software_breakpoint_inserted_here.
5309 (bp_target_info_copy_insertion_state): New function.
5310 (bkpt_insert_location): Handle the case of a single-step
5311 breakpoint already inserted at the same address.
5312 (bkpt_remove_location): Handle the case of a single-step
5313 breakpoint still inserted at the same address.
5314 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5315 breakpoint already inserted at the same address.
5316 (deprecated_remove_raw_breakpoint): Handle the case of a
5317 non-raw breakpoint still inserted at the same address.
5318 (find_single_step_breakpoint): New function, extracted from
5319 single_step_breakpoint_inserted_here_p.
5320 (find_single_step_breakpoint): New function,
5321 factored out from single_step_breakpoint_inserted_here_p.
5322 (single_step_breakpoint_inserted_here_p): Reimplement.
5324 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5326 Pushed by Joel Brobecker <brobecker@adacore.com>
5327 * source.c (show_substitute_path_command): Fix display of matching
5330 2014-06-03 Gary Benson <gbenson@redhat.com>
5332 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5334 2014-06-02 Doug Evans <xdje42@gmail.com>
5336 Add parameter support for Guile.
5337 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5338 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5339 (scm-param.o): New rule.
5340 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5341 (gdbscm_misc_error): Declare.
5342 (gdbscm_canonicalize_command_name): Declare.
5343 (gdbscm_scm_to_host_string): Declare.
5344 (gdbscm_scm_from_host_string): Declare.
5345 (gdbscm_initialize_parameters): Declare.
5346 * guile/guile.c (initialize_gdb_module): Call
5347 gdbscm_initialize_parameters.
5348 * guile/lib/gdb.scm: Export parameter symbols.
5349 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5350 cmdscm_canonicalize_name and made public. All callers updated.
5351 * guile/scm-exception.c (gdbscm_misc_error): New function.
5352 * guile/scm-param.c: New file.
5353 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5354 (gdbscm_scm_to_host_string): New function.
5355 (gdbscm_scm_from_host_string): New function.
5356 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5358 2014-06-02 Doug Evans <xdje42@gmail.com>
5360 Add command support for Guile.
5361 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5362 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5363 (scm-cmd.o): New rule.
5364 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5365 (gdbscm_user_error_p): Declare.
5366 (gdbscm_parse_command_name): Declare.
5367 (gdbscm_valid_command_class_p): Declare.
5368 (gdbscm_initialize_commands): Declare.
5369 * guile/guile.c (initialize_gdb_module): Call
5370 gdbscm_initialize_commands.
5371 * guile/lib/gdb.scm: Export command symbols.
5372 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5373 (throw-user-error): New function.
5374 * guile/scm-cmd.c: New file.
5375 * guile/scm-exception.c (user_error_symbol): New static global.
5376 (gdbscm_user_error_p): New function.
5377 (gdbscm_initialize_exceptions): Set user_error_symbol.
5378 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5380 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5382 * top.c (command_loop): Handle comments here...
5383 (command_line_input): ... not here.
5385 2014-06-02 Doug Evans <xdje42@gmail.com>
5387 Add progspace support for Guile.
5388 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5389 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5390 (scm-progspace.o): New rule.
5391 * guile/guile-internal.h (pspace_smob): New typedef.
5392 (psscm_pspace_smob_pretty_printers): Declare.
5393 (psscm_pspace_smob_from_pspace): Declare.
5394 (psscm_scm_from_pspace): Declare.
5395 * guile/guile.c (initialize_gdb_module): Call
5396 gdbscm_initialize_pspaces.
5397 * guile/lib/gdb.scm: Export progspace symbols.
5398 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5400 (append-pretty-printer!): Ditto.
5401 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5403 * guile/scm-progspace.c: New file.
5405 2014-06-03 Alan Modra <amodra@gmail.com>
5407 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5408 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5410 2014-06-02 Doug Evans <dje@google.com>
5412 Add support for skeletonless type units.
5413 * dwarf2read.c (struct dwarf2_per_objfile): New member
5414 n_allocated_type_units.
5415 (struct dwarf2_per_objfile) <tu_stats>: New member
5416 nr_all_type_units_reallocs.
5417 (create_signatured_type_table_from_index): Initialize
5418 n_allocated_type_units
5419 (create_all_type_units): Ditto.
5420 (add_type_unit): Move up in file. New arg slot.
5421 All callers updated. Increase space for all_type_units more
5423 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5424 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5425 (lookup_dwp_signatured_type): Ditto.
5426 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5427 All callers updated.
5428 (build_type_psymtabs_1): Leave type_unit_groups as
5429 NULL if no TUs present.
5430 (print_tu_stats): New function.
5431 (process_skeletonless_type_unit): New function.
5432 (process_dwo_file_for_skeletonless_type_units): New
5434 (process_skeletonless_type_units): New function.
5435 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5436 Call print tu_stats if debugging enabled.
5438 2014-06-02 Pedro Alves <palves@redhat.com>
5440 * breakpoint.c (build_target_command_list): Don't build a command
5441 list if we have any duplicate location that isn't a dprintf.
5443 2014-06-02 Pedro Alves <palves@redhat.com>
5445 * breakpoint.c (dprintf_breakpoint_hit): New function.
5446 (initialize_breakpoint_ops): Install it as dprintf's
5447 breakpoint_hit method.
5449 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5451 * source.c (substitute_path_rule_matches): Simplify using
5452 filename_ncmp instead of FILENAME_CMP.
5454 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5456 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5458 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5460 * configure.ac: When Guile is available, check for the
5461 availability of 'scm_new_smob'.
5462 * configure, config.h.in: Regenerate.
5463 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5466 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5468 * frame.c (struct frame_info): Add stop_string field.
5469 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5470 (get_prev_frame_always): Old content moved into
5471 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5472 TRY_CATCH, handle MEMORY_ERROR exceptions.
5473 (frame_stop_reason_string): New function definition.
5474 * frame.h (unwind_stop_reason_to_string): Extend comment to
5475 mention frame_stop_reason_string.
5476 (frame_stop_reason_string): New function declaration.
5477 * stack.c (frame_info): Switch to frame_stop_reason_string.
5478 (backtrace_command_1): Switch to frame_stop_reason_string.
5479 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5480 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5481 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5483 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5485 * frame.c (frame_stop_reason_string): Rename to ...
5486 (unwind_stop_reason_to_string): this.
5487 * frame.h (frame_stop_reason_string): Rename to ...
5488 (unwind_stop_reason_to_string): this.
5489 * stack.c (frame_info): Update call to frame_stop_reason_string.
5490 (backtrace_command_1): Likewise.
5491 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5492 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5494 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5496 * frame.c (remove_prev_frame): New function.
5497 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5500 2014-05-29 Pedro Alves <palves@redhat.com>
5502 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5503 and make it const. When a single-step decays to a continue,
5504 clear 'step', not 'hw_step'. Pass whether the caller wanted
5505 to step to user_visible_resume_ptid, not what we ask the
5508 2014-05-29 Pedro Alves <palves@redhat.com>
5510 * infrun.c (process_event_stop_test, handle_step_into_function)
5511 (handle_step_into_function_backward): Adjust.
5512 Don't set the even thread's stop_step and call stop_waiting before
5513 calling end_stepping_range. Instead do that ...
5514 (end_stepping_range): ... here. Take an ecs pointer parameter.
5516 2014-05-29 Pedro Alves <palves@redhat.com>
5518 * infrun.c (stop_stepping): Rename to ...
5519 (stop_waiting): ... this.
5520 (proceed): Update comment.
5521 (process_event_stop_test, handle_inferior_event)
5522 (handle_signal_stop, handle_step_into_function)
5523 (handle_step_into_function_backward): Update.
5525 2014-05-29 Pedro Alves <palves@redhat.com>
5527 * infcall.c (run_inferior_call): Don't check whether the current
5528 thread is running after the proceed call.
5530 2014-05-29 Pedro Alves <palves@redhat.com>
5531 Tom Tromey <tromey@redhat.com>
5533 * NEWS: Mention "maint set target-async", "set mi-async", and that
5534 background execution commands are now always available.
5535 * target.h (target_async_permitted): Update comment.
5536 * target.c (target_async_permitted, target_async_permitted_1):
5538 (set_target_async_command): Rename to ...
5539 (maint_set_target_async_command): ... this.
5540 (show_target_async_command): Rename to ...
5541 (maint_show_target_async_command): ... this.
5542 (_initialize_target): Adjust.
5543 * infcmd.c (prepare_execution_command): Make extern.
5544 * inferior.h (prepare_execution_command): Declare.
5545 * infrun.c (set_observer_mode): Leave target async alone.
5546 * mi/mi-interp.c (mi_interpreter_init): Install
5547 mi_on_sync_execution_done as sync_execution_done observer.
5548 (mi_on_sync_execution_done): New function.
5549 (mi_execute_command_input_handler): Don't print the prompt if we
5550 just started a synchronous command with an async target.
5551 (mi_on_resume): Check sync_execution before printing prompt.
5552 * mi/mi-main.h (mi_async_p): Declare.
5553 * mi/mi-main.c: Include gdbcmd.h.
5554 (mi_async_p): New function.
5555 (mi_async, mi_async_1): New globals.
5556 (set_mi_async_command, show_mi_async_command, mi_async): New
5558 (exec_continue): Call prepare_execution_command.
5559 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5560 (mi_execute_async_cli_command): Use mi_async_p.
5561 (_initialize_mi_main): Install "set mi-async". Make
5562 "target-async" a deprecated alias.
5564 2014-05-29 Pedro Alves <palves@redhat.com>
5566 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5567 (_initialize_cli_interp): Adjust.
5568 * event-loop.c: Include "observer.h".
5569 (start_event_loop): Notify 'command_error' observers instead of
5570 calling display_gdb_prompt. Remove FIXME comment.
5571 * event-top.c (display_gdb_prompt): Remove call into the
5573 * inf-loop.c: Include "observer.h".
5574 (inferior_event_handler): Notify 'command_error' observers instead
5575 of calling display_gdb_prompt.
5576 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5577 observers instead of calling display_gdb_prompt.
5578 * interps.c (interp_set): Don't call display_gdb_prompt.
5579 (current_interp_display_prompt_p): Delete.
5580 * interps.h (interp_prompt_p): Delete declaration.
5581 (interp_prompt_p_ftype): Delete.
5582 (struct interp_procs) <prompt_proc_p>: Delete field.
5583 (current_interp_display_prompt_p): Delete declaration.
5584 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5585 (_initialize_mi_interp): Adjust.
5586 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5587 'command_error' observers.
5588 (tui_on_sync_execution_done, tui_on_command_error): New
5590 (tui_display_prompt_p): Delete.
5591 (_initialize_tui_interp): Adjust.
5593 2014-05-29 Pedro Alves <palves@redhat.com>
5596 * cli/cli-interp.c: Include infrun.h and observer.h.
5597 (cli_uiout, cli_interp): New globals.
5598 (cli_on_signal_received, cli_on_end_stepping_range)
5599 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5601 (cli_interpreter_init): Install them as 'end_stepping_range',
5602 'signal_received' 'signal_exited', 'exited' and 'no_history'
5604 (_initialize_cli_interp): Remove cli_interp local.
5605 * infrun.c (handle_inferior_event): Call the several stop reason
5606 observers instead of printing the stop reason directly.
5607 (end_stepping_range): New function.
5608 (print_end_stepping_range_reason, print_signal_exited_reason)
5609 (print_exited_reason, print_signal_received_reason)
5610 (print_no_history_reason): Make static, and add an uiout
5611 parameter. Print to that instead of to CURRENT_UIOUT.
5612 * infrun.h (print_end_stepping_range_reason)
5613 (print_signal_exited_reason, print_exited_reason)
5614 (print_signal_received_reason print_no_history_reason): New
5616 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5618 <cli_uiout>: New field.
5619 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5620 uiout for CLI output. Install 'signal_received',
5621 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5623 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5624 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5625 (mi_on_no_history): New functions.
5626 (ui_out_free_cleanup): Delete function.
5627 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5628 instead use the one already stored in the MI interpreter data.
5629 (mi_ui_out): Adjust.
5630 * tui/tui-interp.c: Include infrun.h and observer.h.
5631 (tui_interp): New global.
5632 (tui_on_signal_received, tui_on_end_stepping_range)
5633 (tui_on_signal_exited, tui_on_exited)
5634 (tui_on_no_history): New functions.
5635 (tui_init): Install them as 'end_stepping_range',
5636 'signal_received' 'signal_exited', 'exited' and 'no_history'
5638 (_initialize_tui_interp): Delete tui_interp local.
5640 2014-05-29 Pedro Alves <palves@redhat.com>
5643 * linux-nat.c (linux_nat_resume_callback): Rename the second
5644 parameter to 'except'. Skip LP if it points to EXCEPT.
5645 (linux_nat_resume): Don't mark the event lwp as not stopped
5646 before resuming sibling lwps. Instead ask
5647 linux_nat_resume_callback to skip the event lwp. Mark it as not
5648 stopped after actually resuming it.
5649 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5651 (wait_lwp): Mark the lwp as stopped here.
5652 (stop_wait_callback): Mark the lwp as not stopped right after
5653 resuming it. Don't mark lwps as stopped here.
5654 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5655 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5657 2014-05-29 Pedro Alves <palves@redhat.com>
5660 * infrun.c (resume): Determine how much to resume depending on
5661 whether the caller wanted a step, not whether we can hardware step
5662 the target. Mark all threads that we intend to run as running,
5663 unless we're calling an inferior function.
5664 (normal_stop): If the thread is running an infcall, don't finish
5666 * target.c (target_resume): Don't mark threads as running here.
5668 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5670 * serial.c (_initialize_serial): Remove support for
5671 the "set remotebaud" and "show remotebaud" commands.
5672 * NEWS: Add entry documenting the removal of that command.
5674 2014-05-28 Yao Qi <yao@codesourcery.com>
5676 * charset.c: Fix typo in comments.
5678 2014-05-27 Gary Benson <gbenson@redhat.com>
5680 * utils.c (internal_vproblem): Prompt for a bug report.
5682 2014-05-26 Andy Wingo <wingo@igalia.com>
5684 * guile/scm-arch.c (arscm_mark_arch_smob):
5685 * guile/scm-block.c (bkscm_mark_block_smob)
5686 (bkscm_mark_block_syms_progress_smob):
5687 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5688 * guile/scm-exception.c (exscm_mark_exception_smob):
5689 * guile/scm-frame.c (frscm_mark_frame_smob):
5690 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5691 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5692 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5693 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5694 (ppscm_mark_pretty_printer_worker_smob):
5695 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5696 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5697 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5698 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5700 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5703 2014-05-26 Andy Wingo <wingo@igalia.com>
5704 Doug Evans <xdje42@gmail.com>
5706 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5707 empty_base_class. All uses updated.
5708 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5709 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5711 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5712 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5713 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5714 (gdbscm_gsmob_has_property_p, add_property_name)
5715 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5716 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5717 (gdb-object-has-property?, gdb-object-properties): Remove.
5718 (gdb-object-kind): Renamed from gsmob-kind.
5720 2014-05-26 Andy Wingo <wingo@igalia.com>
5722 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5723 * configure: Regenerate.
5725 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5727 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5729 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5731 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5732 (replay_memory_access_read_only, replay_memory_access_read_write)
5733 (replay_memory_access_types, replay_memory_access)
5734 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5735 (cmd_set_record_btrace, cmd_show_record_btrace)
5736 (cmd_show_replay_memory_access): New.
5737 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5738 (record_btrace_remove_breakpoint): Replace
5739 record_btrace_allow_memory_access with replay_memory_access.
5740 (_initialize_record_btrace): Add commands.
5741 * NEWS: Announce it.
5743 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5745 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5747 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5749 * MAINTAINERS (Write After Approval): Move self back from
5752 2014-05-22 Pedro Alves <palves@redhat.com>
5754 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5755 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5756 (disable_randomization, enum exec_direction_kind)
5757 (execution_direction, stop_registers, start_remote)
5758 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5759 (wait_for_inferior, normal_stop, get_last_target_status)
5760 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5761 (insert_step_resume_breakpoint_at_sal)
5762 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5763 (set_step_info, print_stop_event, signal_stop_state)
5764 (signal_print_state, signal_pass_state, signal_stop_update)
5765 (signal_print_update, signal_pass_update)
5766 (update_signals_program_target, clear_exit_convenience_vars)
5767 (displaced_step_dump_bytes, update_observer_mode)
5768 (signal_catch_update, gdb_signal_from_command): Move
5770 * infrun.h: ... to this new file.
5771 * amd64-tdep.c: Include infrun.h.
5772 * annotate.c: Include infrun.h.
5773 * arch-utils.c: Include infrun.h.
5774 * arm-linux-tdep.c: Include infrun.h.
5775 * arm-tdep.c: Include infrun.h.
5776 * break-catch-sig.c: Include infrun.h.
5777 * breakpoint.c: Include infrun.h.
5778 * common/agent.c: Include infrun.h instead of inferior.h.
5779 * corelow.c: Include infrun.h.
5780 * event-top.c: Include infrun.h.
5781 * go32-nat.c: Include infrun.h.
5782 * i386-tdep.c: Include infrun.h.
5783 * inf-loop.c: Include infrun.h.
5784 * infcall.c: Include infrun.h.
5785 * infcmd.c: Include infrun.h.
5786 * infrun.c: Include infrun.h.
5787 * linux-fork.c: Include infrun.h.
5788 * linux-nat.c: Include infrun.h.
5789 * linux-thread-db.c: Include infrun.h.
5790 * monitor.c: Include infrun.h.
5791 * nto-tdep.c: Include infrun.h.
5792 * procfs.c: Include infrun.h.
5793 * record-btrace.c: Include infrun.h.
5794 * record-full.c: Include infrun.h.
5795 * remote-m32r-sdi.c: Include infrun.h.
5796 * remote-mips.c: Include infrun.h.
5797 * remote-notif.c: Include infrun.h.
5798 * remote-sim.c: Include infrun.h.
5799 * remote.c: Include infrun.h.
5800 * reverse.c: Include infrun.h.
5801 * rs6000-tdep.c: Include infrun.h.
5802 * s390-linux-tdep.c: Include infrun.h.
5803 * solib-irix.c: Include infrun.h.
5804 * solib-osf.c: Include infrun.h.
5805 * solib-svr4.c: Include infrun.h.
5806 * target.c: Include infrun.h.
5807 * top.c: Include infrun.h.
5808 * windows-nat.c: Include infrun.h.
5809 * mi/mi-interp.c: Include infrun.h.
5810 * mi/mi-main.c: Include infrun.h.
5811 * python/py-threadevent.c: Include infrun.h.
5813 2014-05-22 Pedro Alves <palves@redhat.com>
5815 * infrun.c (handle_inferior_event): Store the exit code for
5816 --return-child-result here, instead of ...
5817 (print_exited_reason): ... here.
5819 2014-05-21 Pedro Alves <palves@redhat.com>
5822 * gdbthread.h (struct thread_control_state): New field
5824 * infrun.c (follow_fork): Copy the new thread control field to the
5826 (clear_proceed_status_thread): Clear the new thread control field.
5827 (proceed): Set the new thread control field.
5828 * interps.h (command_interp): Declare.
5829 * interps.c (command_interpreter): New global.
5830 (command_interp): New function.
5831 (interp_exec): Set `command_interpreter' while here.
5832 * cli-out.c (cli_uiout_dtor): New function.
5833 (cli_ui_out_impl): Install it.
5834 * mi/mi-interp.c: Include cli-out.h.
5835 (mi_cmd_interpreter_exec): Add comment.
5836 (restore_current_uiout_cleanup): New function.
5837 (ui_out_free_cleanup): New function.
5838 (mi_on_normal_stop): If finishing an execution command started by
5839 a CLI command, or any kind of breakpoint-like event triggered,
5840 print the stop event to the output (CLI) stream.
5841 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5843 2014-05-21 Pedro Alves <palves@redhat.com>
5845 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5846 current source line having changed.
5847 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5848 * infrun.c (normal_stop): Adjust call to
5849 set_current_sal_from_frame.
5850 * source.c (clear_lines_listed_range): New function.
5851 (set_current_source_symtab_and_line, identify_source_line): Clear
5852 the lines listed range.
5853 (line_info): Handle the first "info line" after the current source
5854 line having changed.
5855 * stack.c (print_stack_frame): Remove center handling.
5856 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5859 2014-05-21 Pedro Alves <palves@redhat.com>
5861 * inf-child.c (inf_child_mourn_inferior): New function.
5862 * inf-child.h (inf_child_mourn_inferior): New declaration.
5863 * darwin-nat.c (darwin_mourn_inferior): Use
5864 inf_child_mourn_inferior.
5865 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5866 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5867 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5868 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5869 * windows-nat.c (windows_mourn_inferior): Likewise.
5871 2014-05-21 Doug Evans <xdje42@gmail.com>
5873 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5875 2014-05-21 Doug Evans <xdje42@gmail.com>
5877 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5878 (gdbscm_out_of_range_error): Ditto.
5879 (gdbscm_memory_error): Ditto.
5880 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5881 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5882 (gdbscm_out_of_range_error): Update.
5883 (gdbscm_memory_error): Update.
5884 (gdbscm_scm_to_target_string_unsafe): Delete.
5886 2014-05-21 Pedro Alves <palves@redhat.com>
5888 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5890 (inf_child_open_target): New function.
5891 (inf_child_open): Use inf_child_open_target to push the target
5892 instead of erroring out.
5893 (inf_child_disconnect, inf_child_close)
5894 (inf_child_maybe_unpush_target): New functions.
5895 (inf_child_target): Install inf_child_disconnect and
5896 inf_child_close. Store a pointer to the returned object.
5897 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5899 * target.c (auto_connect_native_target): New global.
5900 (show_default_run_target): New function.
5901 (find_default_run_target): Return NULL if automatically connecting
5902 to the native target is disabled.
5903 (_initialize_target): Install set/show auto-connect-native-target.
5904 * NEWS: Mention "set auto-connect-native-target", and "target
5906 * linux-nat.c (super_close): New global.
5907 (linux_nat_close): Call super_close.
5908 (linux_nat_add_target): Store a pointer to the base class's
5910 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5911 inf_child_maybe_unpush.
5912 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5914 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5915 the inferior. Use inf_child_maybe_unpush_target.
5916 (inf_ttrace_attach): Don't push the target if it is already
5918 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5919 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5920 after mourning the inferior. Use inf_child_maybe_unpush_target.
5921 (darwin_attach_pid): Don't push the target if it is already
5923 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5924 mourning the inferior. Use inf_child_maybe_unpush_target.
5925 (gnu_detach): Use inf_child_maybe_unpush_target.
5926 * go32-nat.c (go32_create_inferior): Don't push the target if it
5928 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5929 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5930 (procfs_open): Rename to ...
5931 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5932 comments. Can target_preopen before changing node. Call
5933 inf_child_open_target to push the target explicitly.
5934 (procfs_attach): Don't push the target if it is already pushed.
5935 (procfs_detach): Use inf_child_maybe_unpush_target.
5936 (procfs_create_inferior): Don't push the target if it is already
5938 (nto_native_ops): New global.
5939 (procfs_open): Reimplement.
5940 (procfs_native_open): New function.
5941 (init_procfs_targets): Install procfs_native_open as to_open of
5942 "target native". Store a pointer to the "native" target in
5944 * procfs.c (procfs_attach): Don't push the target if it is already
5946 (procfs_detach): Use inf_child_maybe_unpush_target.
5947 (procfs_mourn_inferior): Only unpush the target after mourning the
5948 inferior. Use inf_child_maybe_unpush_target.
5949 (procfs_init_inferior): Don't push the target if it is already
5951 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5952 if it is already pushed.
5954 2014-05-21 Pedro Alves <palves@redhat.com>
5956 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5957 and "procfs" targets are now called "native" instead.
5959 2014-05-21 Pedro Alves <palves@redhat.com>
5961 * go32-nat.c (go32_open): Delete.
5962 (go32_target): Don't override the to_open method.
5964 2014-05-21 Pedro Alves <palves@redhat.com>
5966 * nto-procfs.c (procfs_can_run): New function.
5967 (nto_procfs_ops): New global.
5968 (init_procfs_targets): New, based on procfs_target. Install
5969 "target native" in addition to "target procfs".
5970 (_initialize_procfs): Call init_procfs_targets instead of adding
5973 2014-05-21 Pedro Alves <palves@redhat.com>
5975 * windows-nat.c (windows_target): Don't override to_shortname,
5976 to_longname or to_doc.
5978 2014-05-21 Pedro Alves <palves@redhat.com>
5980 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5983 2014-05-21 Pedro Alves <palves@redhat.com>
5985 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5986 to_shortname, to_longname or to_doc.
5988 2014-05-21 Pedro Alves <palves@redhat.com>
5990 * go32-nat.c (go32_target): Don't override to_shortname,
5991 to_longname or to_doc.
5993 2014-05-21 Pedro Alves <palves@redhat.com>
5995 * inf-child.c (inf_child_open): Remove mention of "child".
5996 (inf_child_target): Rename target to "native" instead of "child".
5998 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6000 * Makefile.in (SFILES): Delete "regset.c".
6001 (COMMON_OBS): Delete "regset.o".
6003 * regset.h (regset_alloc): Delete prototype.
6005 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6007 * sparc-linux-tdep.c (sparc32_linux_gregset)
6008 (sparc32_linux_fpregset): New static regset structures.
6009 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6010 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6012 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6013 (sparc64_linux_fpregset): New static regset structures.
6014 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6015 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6016 New static regset structures.
6017 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6018 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6019 New static regset structures.
6020 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6021 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6022 New static regset structures.
6023 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6024 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6025 New static regset structures.
6026 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6028 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6030 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6031 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6032 register maps ("regmaps") from "*regset" to "*regmap". Do this
6033 for all regmap types and variables.
6034 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6035 (sparc32_linux_supply_core_gregset)
6036 (sparc32_linux_collect_core_gregset)
6037 (sparc32_linux_supply_core_fpregset)
6038 (sparc32_linux_collect_core_fpregset): Likewise.
6039 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6040 (sparc_gregmap, sparc_fpregmap): ... these.
6041 (sparc_supply_gregset, sparc_collect_gregset)
6042 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6043 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6044 (_initialize_sparc_nat): Rename regmaps.
6045 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6046 (sparc_gregmap, sparc_fpregmap): ... these.
6047 (sparc_supply_gregset, sparc_collect_gregset)
6048 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6049 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6051 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6052 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6054 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6056 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6057 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6058 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6060 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6061 (sparc32_bsd_fpregset): Rename to...
6062 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6063 (sparc32_bsd_fpregmap): ... these.
6064 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6065 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6066 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6067 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6068 (struct sparc_gregmap, struct sparc_fpregmap)
6069 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6070 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6071 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6072 (sparc32_supply_regset, sparc32_collect_gregset)
6073 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6075 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6076 (sparc64_linux_ptrace_gregmap): ... this.
6077 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6078 (_initialize_sparc64_linux_nat): Rename regmaps.
6079 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6080 (sparc64_linux_core_gregmap): ... this.
6081 (sparc64_linux_supply_core_gregset)
6082 (sparc64_linux_collect_core_gregset)
6083 (sparc64_linux_supply_core_fpregset)
6084 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6085 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6086 (sparc64_sol2_fpregset): Rename to...
6087 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6088 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6089 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6091 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6092 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6093 (sparc64_bsd_fpregset): Rename to...
6094 (struct sparc_gregmap, sparc64_sol2_gregmap)
6095 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6096 (sparc64_bsd_fpregmap): ... these.
6097 (sparc64_supply_gregset, sparc64_collect_gregset)
6098 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6100 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6101 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6102 (sparc64fbsd_gregmap): ... this.
6103 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6104 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6106 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6107 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6108 (sparc64nbsd_collect_fpregset): Likewise.
6109 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6110 (sparc64nbsd_gregmap): ... this.
6111 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6113 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6114 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6115 (sparc64obsd_gregmap): ... this.
6116 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6118 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6119 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6120 (sparc32nbsd_gregmap): ... this.
6121 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6124 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6126 * score-tdep.c (score7_linux_gregset): New static regset
6128 (score7_linux_regset_from_core_section): Remove dynamic regset
6130 (score_gdbarch_init): Drop allocation of tdep structure.
6131 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6133 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6135 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6137 (am33_regset_from_core_section): Remove dynamic regset
6140 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6142 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6143 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6145 (mips_linux_regset_from_core_section): Remove dynamic regset
6147 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6148 'gregset64', 'fpregset', and 'fpregset64'.
6149 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6150 deleted tdep fields.
6152 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6154 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6156 (amd64_regset_from_core_section): Remove dynamic regset
6158 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6160 (amd64obsd_regset_from_core_section): Remove dynamic regset
6162 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6164 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6165 x86-common regset supply function.
6166 * i386-tdep.c (i386_collect_gregset): Make static.
6167 (i386_gregset): New global regset structure.
6168 (i386_fpregset, i386_xstateregset): New static regset structures.
6169 (i386_regset_from_core_section): Remove dynamic regset
6171 (i386_gdbarch_init): Remove initialization of tdep fields
6172 'gregset', 'fpregset', and 'xstateregset'.
6173 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6174 'fpregset', and 'xstateregset'.
6175 (i386_collect_gregset): Remove prototype.
6176 (i386_gregset): New declaration.
6177 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6179 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6182 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6184 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6185 (arm_linux_vfpregset): New static regset structures.
6186 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6188 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6189 and 'vfpregset' fields.
6191 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6193 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6194 (aarch64_linux_fpregset): New static regset structures.
6195 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6196 of regset structures.
6197 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6200 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6202 * regset.h (struct regset): Remove gdbarch field.
6203 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6204 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6205 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6207 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6208 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6209 (ppc32_linux_vsxregset): Likewise.
6210 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6211 via the regcache instead of the regset.
6212 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6213 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6214 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6215 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6218 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6220 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6221 Constify structures.
6222 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6223 (alphanbsd_aout_gregset): Likewise.
6224 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6225 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6227 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6228 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6230 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6231 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6232 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6233 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6234 * m88k-tdep.c (m88k_gregset): Likewise.
6235 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6236 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6237 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6238 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6239 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6240 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6241 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6242 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6243 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6245 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6246 * sh-tdep.h (sh_corefile_gregset): Likewise.
6247 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6248 * vax-tdep.c (vax_gregset): Likewise.
6250 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6252 Fix TLS access for -static -pthread.
6253 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6254 (try_thread_db_load_1): Initialize it.
6255 (thread_db_get_thread_local_address): Call it if LM is zero.
6256 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6257 * target.h (struct target_ops) (to_get_thread_local_address): Add
6258 load_module_addr comment.
6260 2014-05-21 Pedro Alves <palves@redhat.com>
6262 * dcache.c (dcache_read_memory_partial): If reading the cache line
6263 fails, fallback to reading just the memory the caller wanted.
6265 2014-05-20 Doug Evans <dje@google.com>
6267 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6268 instead of get_current_arch.
6270 2014-05-20 Pedro Alves <palves@redhat.com>
6272 * NEWS: Mention that compare-sections now works with all targets.
6274 * remote.c (PACKET_qCRC): New enum value.
6275 (remote_verify_memory): Don't send qCRC if the target has no
6276 execution. Use packet_support/packet_ok. If the target doesn't
6277 support the qCRC packet, fallback to a deep memory copy.
6278 (compare_sections_command): Say "target image" instead of "remote
6280 (_initialize_remote): Add PACKET_qCRC to the list of config
6281 packets that have no associated command. Extend comment.
6282 * target.c (simple_verify_memory, default_verify_memory): New
6284 * target.h (struct target_ops) <to_verify_memory>: Default to
6285 default_verify_memory.
6286 (simple_verify_memory): New declaration.
6287 * target-delegates.c: Regenerate.
6289 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6291 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6293 2014-05-20 Hui Zhu <hui@codesourcery.com>
6294 Yao Qi <yao@codesourcery.com>
6297 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6298 and change address of sp and pc.
6300 2014-05-19 Tom Tromey <tromey@redhat.com>
6302 * gdbtypes.c (rank_function): Use XNEWVEC.
6303 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6305 2014-05-19 Doug Evans <dje@google.com>
6307 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6308 build_type_unit_groups and moved closer to only caller. Remove
6309 arguments. All references updated. Remove outdated .gdb_index
6311 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6312 build_type_psymtabs_1.
6314 2014-05-19 Doug Evans <dje@google.com>
6316 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6317 n_type_unit_groups, all_type_unit_groups. All uses removed.
6318 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6319 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6320 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6321 (add_type_unit_group_to_table): Delete.
6323 2014-05-19 Doug Evans <dje@google.com>
6325 * eval.c (evaluate_subexp_standard): Add some comments.
6327 2014-05-17 Doug Evans <xdje42@gmail.com>
6329 * progspace.c (remove_program_space): Delete, unused.
6330 * progspace.h (remove_program_space): Ditto.
6332 2014-05-17 Doug Evans <xdje42@gmail.com>
6334 * inferior.c (prune_inferiors): Fix comment.
6335 (remove_inferior_command): Call prune_program_spaces.
6337 2014-05-16 Doug Evans <dje@google.com>
6339 New command line option -D.
6341 * main.c (set_gdb_data_directory): New function.
6342 (captured_main): Recognize -D. Flag error for --data-directory "".
6343 Call set_gdb_data_directory.
6344 (print_gdb_help): Print --data-directory, -D.
6345 * main.h (set_gdb_data_directory): Declare.
6346 * top.c (staged_gdb_datadir): New static global.
6347 (set_gdb_datadir): Call set_gdb_data_directory
6348 (show_gdb_datadir): New function.
6349 (init_main): Update init of data-directory parameter.
6351 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6353 Import the "dirfd" gnulib module.
6354 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6355 * gnulib/aclocal.m4: Update.
6356 * gnulib/config.in: Update.
6357 * gnulib/configure: Update.
6358 * gnulib/import/Makefile.am: Update.
6359 * gnulib/import/Makefile.in: Update.
6360 * gnulib/import/dirfd.c: New.
6361 * gnulib/import/m4/dirfd.m4: New.
6362 * gnulib/import/m4/gnulib-cache.m4: Update.
6363 * gnulib/import/m4/gnulib-comp.m4: Update.
6365 2014-05-16 Pierre Muller <muller@sourceware.org>
6366 Yao Qi <yao@codesourcery.com>
6368 * valprint.c (print_wchar): Move the code on checking whether
6369 W is a printable wide char to the default branch of switch
6370 statement below. Call wchar_printable instead of gdb_iswprint.
6372 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6374 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6375 ldr.w and ldrd instructions.
6377 2014-05-15 Doug Evans <dje@google.com>
6379 * dwarf2read.c (read_structure_type): Delete outdated comments.
6381 2014-05-14 Tom Tromey <tromey@redhat.com>
6383 * macrocmd.c (print_macro_definition): Reindent.
6385 2014-05-13 Doug Evans <xdje42@gmail.com>
6387 * python/py-cmd.c (cmdpy_completer): Add comment.
6388 (completers): Make const.
6390 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6392 * infrun.c (resume): Remove should_resume (unused). Move up
6393 declaration of resume_ptid.
6395 2014-05-13 Tom Tromey <tromey@redhat.com>
6397 * language.h (unop_type_check): Remove.
6398 (binop_type_check): Don't declare.
6400 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6402 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6403 call to regcache_raw_collect.
6405 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6407 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6408 mi_console->quote as the quoting character.
6410 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6412 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6414 2014-04-29 Tom Tromey <tromey@redhat.com>
6416 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6417 "show debug varobj".
6419 2014-05-07 Kyle McMartin <kyle@redhat.com>
6421 Pushed by Joel Brobecker <brobecker@adacore.com>.
6422 * aarch64-tdep.c (aarch64_software_single_step): New function.
6423 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6424 with aarch64_software_single_step.
6426 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6430 2014-05-05 Keith Seitz <keiths@redhat.com>
6432 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6433 variable or history value is successfully parsed.
6435 2014-05-05 Yao Qi <yao@codesourcery.com>
6436 Pedro Alves <palves@redhat.com>
6438 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6439 address of blocks that intersects the requested range. Trim
6440 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6442 * ctf.c (ctf_xfer_partial): Likewise.
6444 2014-05-05 Yao Qi <yao@codesourcery.com>
6446 * printcmd.c (display_command): Remove the check to
6447 target_has_execution.
6449 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6451 * ppcobsd-nat.c: Include "obsd-nat.h".
6452 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6454 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6456 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6458 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6459 and 16-bit signed and unsigned arguments. Update comment.
6460 (stap_parse_probe_arguments): Extend code to handle such
6461 arguments. Use warning instead of complaint to notify about
6462 unrecognized bitness.
6464 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6466 PR breakpoints/16889
6467 * stap-probe.c (stap_parse_probe_arguments): Simplify
6468 check for non-prefixed probes (i.e., probes whose
6469 arguments do not start with "N@"). Always set the
6470 argument type to a sane value.
6472 2014-05-01 David Taylor <dtaylor@emc.com>
6474 * remote.c (compare_sections_command): Add -r option to compare
6475 all loadable read-only sections.
6477 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6479 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6480 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6482 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6483 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6484 Remove unused CORE_ADDR argument. Update all callers.
6486 2014-04-29 Pedro Alves <palves@redhat.com>
6488 * remote.c (struct packet_config) <detect>: Extend comment.
6489 (add_packet_config_cmd): Don't set the config's detect or support
6491 (init_all_packet_configs): Also initialize the config's 'detect'
6493 (reset_all_packet_configs_support): New function.
6494 (remote_open_1): Call reset_all_packet_configs_support instead of
6495 init_all_packet_configs.
6496 (_initialize_remote): Initialize all packet configs. Assert that
6497 all packets have an associated command, except a few known
6500 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6502 * dwarf2read.c (read_subrange_type): Handle dynamic
6503 DW_AT_lower_bound attributes.
6505 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6507 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6508 dynamic bounds before computing its upper bound.
6509 (ada_discrete_type_low_bound): Same as above with the lower bound.
6511 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6513 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6514 range types. Adjust the array handling implementation to
6515 take advantage of this change.
6516 (resolve_dynamic_range): New function, mostly extracted from
6517 resolve_dynamic_bounds.
6518 (resolve_dynamic_array): New function, mostly extracted from
6519 resolve_dynamic_bounds.
6520 (resolve_dynamic_bounds): Delete.
6521 (resolve_dynamic_type): Reimplement. Add handling of
6522 TYPE_CODE_RANGE types.
6524 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6526 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6527 handling of parallel ___XA types.
6529 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6531 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6532 unnecessary second call to static_unwrap_type.
6534 2014-04-27 Hui Zhu <hui@codesourcery.com>
6536 * stack.c (print_frame_info): Call do_gdb_disassembly with
6537 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6539 2014-04-26 Doug Evans <xdje42@gmail.com>
6541 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6543 2014-04-25 Pedro Alves <palves@redhat.com>
6546 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6547 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6548 and newline from built string.
6549 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6550 (linux_ptrace_attach_fail_reason): ... this.
6551 * linux-nat.c (linux_nat_attach): Adjust to use
6552 linux_ptrace_attach_fail_reason.
6554 2014-04-25 Pedro Alves <palves@redhat.com>
6556 * remote.c (struct remote_state): Remove multi_process_aware,
6557 non_stop_aware, cond_tracepoints, cond_breakpoints,
6558 breakpoint_commands, fast_tracepoints, static_tracepoints,
6559 install_in_trace, disconnected_tracing,
6560 enable_disable_tracepoints, string_tracing, and
6561 augmented_libraries_svr4_read fields.
6562 (remote_multi_process_p): Move further below in the file.
6563 (struct packet_config): Add comments.
6564 (update_packet_config): Delete function.
6565 (show_packet_config_cmd): Use packet_config_support.
6566 (add_packet_config_cmd): Use NULL as set callback.
6567 (packet_ok): "set remote foo-packet"-style commands no longer
6568 change config->supported -- adjust.
6569 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6570 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6571 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6572 (PACKET_QNonStop, PACKET_multiprocess_feature)
6573 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6574 (PACKET_DisconnectedTracing_feature)
6575 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6576 (set_remote_protocol_packet_cmd): Delete function.
6577 (packet_config_support, packet_support): New functions.
6578 (set_remote_protocol_Z_packet_cmd): Don't call
6579 update_packet_config.
6580 (remote_query_attached, remote_pass_signals)
6581 (remote_program_signals, remote_threads_info)
6582 (remote_threads_extra_info, remote_start_remote): Use
6584 (remote_start_remote): Use packet_config_support and
6586 (init_all_packet_configs): Set all packets to unknown support,
6587 instead of calling update_packet_config.
6588 (remote_check_symbols): Use packet_support.
6589 (remote_supported_packet): Unconditionally set the packet config's
6591 (remote_multi_process_feature, remote_non_stop_feature)
6592 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6593 (remote_breakpoint_commands_feature)
6594 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6595 (remote_install_in_trace_feature)
6596 (remote_disconnected_tracing_feature)
6597 (remote_enable_disable_tracepoint_feature)
6598 (remote_string_tracing_feature)
6599 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6600 (remote_protocol_features): Adjust to use remote_supported_packet
6601 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6602 "ConditionalTracepoints", "ConditionalBreakpoints",
6603 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6604 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6605 "EnableDisableTracepoints", and "tracenz".
6606 (remote_query_supported): Use packet_support.
6607 (remote_open_1): Adjust.
6608 (extended_remote_attach_1): Use packet_support. Switch on the
6609 result of packet_ok instead of checking whether the packet ended
6611 (remote_vcont_resume): Use packet_support.
6612 (remote_resume, remote_stop_ns, fetch_register_using_p)
6613 (remote_prepare_to_store, store_register_using_P)
6614 (check_binary_download, remote_write_bytes): Use packet_support.
6615 (remote_vkill): Use packet_support. Switch on the result of
6616 packet_ok instead of checking whether the packet ended up
6618 (extended_remote_supports_disable_randomization): Use
6620 (extended_remote_run): Switch on the result of packet_ok instead
6621 of checking whether the packet ended up disabled.
6622 (remote_insert_breakpoint, remote_remove_breakpoint)
6623 (remote_insert_watchpoint, remote_remove_watchpoint)
6624 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6626 (remote_search_memory): Use packet_config_support.
6627 (remote_get_thread_local_address, remote_get_tib_address)
6628 (remote_hostio_send_command, remote_can_execute_reverse): Use
6630 (remote_supports_cond_tracepoints)
6631 (remote_supports_cond_breakpoints)
6632 (remote_supports_fast_tracepoints)
6633 (remote_supports_static_tracepoints)
6634 (remote_supports_install_in_trace)
6635 (remote_supports_enable_disable_tracepoint)
6636 (remote_supports_string_tracing)
6637 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6638 the packet config says the feature is enabled or disabled.
6639 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6640 (remote_get_trace_status): Use packet_support.
6641 (remote_set_disconnected_tracing): Adjust to check whether the
6642 feature is enabled with packet_support.
6643 (remote_set_trace_buffer_size, remote_use_agent)
6644 (remote_can_use_agent, remote_supports_btrace): Use
6646 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6647 Use packet_config_support.
6648 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6649 the packet config says the feature is enabled or disabled.
6650 (set_range_stepping): Use packet_support.
6652 2014-04-25 Tom Tromey <tromey@redhat.com>
6654 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6657 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6659 * NEWS: Mention support for C99 variable length arrays.
6661 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6663 * ada-lang.c (standard_exc): Expand introductory comment.
6665 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6666 Walfred Tedeschi <walfred.tedeschi@intel.com>
6668 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6670 (amd64_linux_read_description): Add code to handle AVX512 xstate
6671 mask and return respective tdesc.
6672 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6673 and features/i386/x32-avx512-linux.c.
6674 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6675 (amd64_linux_core_read_description): Add code to handle AVX512
6676 xstate mask and return respective tdesc.
6677 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6678 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6680 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6681 (tdesc_amd64_avx512_linux): New prototype.
6682 (tdesc_x32_avx512_linux): Likewise.
6683 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6684 features/i386/x32-avx512.c.
6685 (amd64_ymm_avx512_names): New register names for pseudo
6687 (amd64_ymmh_avx512_names): New register names for raw registers
6689 (amd64_k_names): New register names for K registers.
6690 (amd64_zmmh_names): New register names for ZMM raw registers.
6691 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6692 (amd64_xmm_avx512_names): New register names for XMM16-31
6694 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6696 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6697 if feature is present.
6698 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6699 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6700 (AMD64_NUM_REGS): Adjust to new number of registers.
6701 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6702 registers supplied via XSTATE by AVX512 registers.
6703 (i386_linux_read_description): Add case for AVX512.
6704 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6705 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6706 (i386_linux_core_read_description): Add case for AVX512.
6707 (i386_linux_init_abi): Install supported register note section
6709 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6711 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6712 registers to be number of zmm7h + 1.
6713 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6714 * i386-tdep.c: Include features/i386/i386-avx512.c.
6715 (i386_zmm_names): Add ZMM pseudo register names array.
6716 (i386_zmmh_names): Add ZMM raw register names array.
6717 (i386_k_names): Add K raw register names array.
6718 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6719 registers. AVX512 has 16 more ZMM registers than there are YMM
6721 (i386_zmmh_regnum_p): Add function to look up register number of
6723 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6724 (i386_k_regnum_p): Likewise for K raw registers.
6725 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6726 registers added by AVX512.
6727 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6728 registers added by AVX512.
6729 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6731 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6732 (i386_pseudo_register_name): Add ZMM pseudo registers.
6733 (i386_zmm_type): Construct and return vector registers type for ZMM
6735 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6736 ZMM0-31 pseudo registers and K registers.
6737 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6738 and YMM16-31 registers from register cache.
6739 (i386_pseudo_register_write): Add code to write K, ZMM and
6741 (i386_register_reggroup_p): Add code to include/exclude AVX512
6742 registers in/from respective register groups.
6743 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6744 registers if feature is present in xcr0.
6745 (i386_gdbarch_init): Add code to initialize AVX512 feature
6746 variables in tdep structure, wire in pseudo registers and call
6747 initialize_tdesc_i386_avx512.
6748 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6750 (i386_regnum): Add AVX512 registers.
6751 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6752 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6753 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6754 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6756 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6757 (i386_ymm_avx512_regnum_p): Likewise.
6758 (i386_k_regnum_p): Likewise.
6759 (i386_zmm_regnum_p): Likewise.
6760 (i386_zmmh_regnum_p): Likewise.
6761 * i387-tdep.c : Update year in copyright notice.
6762 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6764 (XSAVE_YMM_AVX512_ADDR): New macro.
6765 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6767 (XSAVE_XMM_AVX512_ADDR): New macro.
6768 (xsave_avx512_k_offset): New table for K register offsets in
6770 (XSAVE_AVX512_K_ADDR): New macro.
6771 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6773 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6774 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6776 (i387_collect_xsave): Add code to collect AVX512 registers from
6778 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6779 of XMM16-31 registers.
6780 (I387_NUM_K_REGS): New define for number of K registers.
6781 (I387_K0_REGNUM): New define for K0 register number.
6782 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6783 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6784 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6786 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6787 (I387_XMM16_REGNUM): New define for XMM16 register number.
6788 (I387_YMM0_REGNUM): New define for YMM0 register number.
6789 (I387_KEND_REGNUM): New define for last K register number.
6790 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6791 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6793 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6795 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6797 * features/Makefile: Add AVX512 related files.
6798 * features/i386/32bit-avx512.xml: New file.
6799 * features/i386/64bit-avx512.xml: Likewise.
6800 * features/i386/amd64-avx512-linux.c: Likewise.
6801 * features/i386/amd64-avx512-linux.xml: Likewise.
6802 * features/i386/amd64-avx512.c: Likewise.
6803 * features/i386/amd64-avx512.xml: Likewise.
6804 * features/i386/i386-avx512-linux.c: Likewise.
6805 * features/i386/i386-avx512-linux.xml: Likewise.
6806 * features/i386/i386-avx512.c: Likewise.
6807 * features/i386/i386-avx512.xml: Likewise.
6808 * features/i386/x32-avx512-linux.c: Likewise.
6809 * features/i386/x32-avx512-linux.xml: Likewise.
6810 * features/i386/x32-avx512.c: Likewise.
6811 * features/i386/x32-avx512.xml: Likewise.
6812 * regformats/i386/amd64-avx512-linux.dat: New file.
6813 * regformats/i386/amd64-avx512.dat: Likewise.
6814 * regformats/i386/i386-avx512-linux.dat: Likewise.
6815 * regformats/i386/i386-avx512.dat: Likewise.
6816 * regformats/i386/x32-avx512-linux.dat: Likewise.
6817 * regformats/i386/x32-avx512.dat: Likewise.
6818 * NEWS: Add note about new support for AVX512.
6821 2014-04-23 Pedro Alves <palves@redhat.com>
6823 * breakpoint.c (insert_bp_location): Tolerate errors if the
6824 breakpoint is set in a user-loaded objfile.
6825 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6826 location is marked shlib_disabled. If the breakpoint is set in a
6827 user-loaded objfile is a GDB-side memory breakpoint, validate it
6828 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6829 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6831 * mem-break.c (memory_validate_breakpoint): New function.
6832 * objfiles.c (userloaded_objfile_contains_address_p): New
6834 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6835 * target.h (memory_validate_breakpoint): New declaration.
6837 2014-04-23 Pedro Alves <palves@redhat.com>
6839 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6840 the breakpoint is set in a shared library, only suppress
6841 errors for software breakpoints, not hardware breakpoints.
6843 2014-04-22 Pedro Alves <palves@redhat.com>
6845 * infrun.c (schedlock_applies): New function, factored out from
6846 find_thread_needs_step_over.
6847 (find_thread_needs_step_over): Use it.
6848 (switch_back_to_stepped_thread): Always clear trap_expected if the
6849 step over is finished. Return early if scheduler locking applies.
6850 Look for the stepping thread and a potential step-over thread with
6852 (currently_stepping_or_nexting_callback): Delete.
6854 2014-04-22 Nick Clifton <nickc@redhat.com>
6856 * NEWS: Mention that ARM sim now supports tracing.
6858 2014-04-22 Yao Qi <yao@codesourcery.com>
6860 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6862 * tracefile.c (tracefile_fetch_registers): ... it. New
6864 * tracefile.h (tracefile_fetch_registers): Declare.
6865 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6866 tracefile_fetch_registers.
6868 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6871 * windows-nat.c (thread_rec): Don't display a warning when
6872 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6873 fails for any reason, set th->suspended to -1, so that we don't
6874 try to resume such a thread. Also, don't return NULL in these
6875 cases, to avoid completely ruin the session due to "PC register is
6876 not available" error.
6877 (do_windows_fetch_inferior_registers): Check errors in
6878 GetThreadContext call.
6879 (windows_continue): Accept an additional argument KILLED; if not
6880 zero, ignore errors in the SetThreadContext call, since the
6881 inferior was killed and is shutting down.
6882 (windows_resume, get_windows_debug_event)
6883 (windows_create_inferior, windows_mourn_inferior)
6884 (windows_kill_inferior): All callers of windows_continue changed
6885 to adjust to its new calling sequence.
6887 2014-04-19 Yao Qi <yao@codesourcery.com>
6889 * ctf.c (ctf_open): Call post_create_inferior.
6891 2014-04-19 Yao Qi <yao@codesourcery.com>
6893 * ctf.c (handle_id): New static variable.
6894 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6895 value. Get the declaration of event "register" and get length
6896 of field "contents".
6898 2014-04-19 Yao Qi <yao@codesourcery.com>
6900 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6902 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6904 * valops.c (oload_method_static): Remove unnecessary argument
6905 METHOD. Update all callers.
6907 2014-04-18 Pedro alves <palves@redhat.com>
6908 Tom Tromey <tromey@redhat.com>
6911 * frame.c (get_prev_frame_1): Rename to ...
6912 (get_prev_frame_always): ... this, and make extern. Adjust.
6913 (skip_artificial_frames): Use get_prev_frame_always.
6914 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6915 (get_frame_unwind_stop_reason): Adjust to rename.
6916 * frame.h (get_prev_frame_always): Declare.
6917 * inline-frame.c: Include frame.h.
6918 (inline_frame_this_id): Use get_prev_frame_always.
6920 2014-04-18 Tristan Gingold <gingold@adacore.com>
6922 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6923 code by using bfd_mach_o_get_base_address.
6925 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6927 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6928 (spu_ax_pseudo_register_collect): New function.
6929 (spu_ax_pseudo_register_push_stack): Likewise.
6930 (spu_dwarf_reg_to_regnum): Likewise.
6931 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6933 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6935 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6936 Replace FRAME argument with FRAME_ID.
6937 * gdbarch.c, gdbarch.h: Regenerate.
6938 * findvar.c (default_value_from_register): Add GDBARCH argument;
6939 replace FRAME by FRAME_ID. No longer call get_frame_id.
6940 (value_from_register): Update call to gdbarch_value_from_register.
6941 * value.h (default_value_from_register): Update prototype.
6942 * s390-linux-tdep.c (s390_value_from_register): Update interface
6943 and call to default_value_from_register.
6944 * spu-tdep.c (spu_value_from_register): Likewise.
6946 * findvar.c (address_from_register): Remove TYPE argument.
6947 Do not call value_from_register; use gdbarch_value_from_register
6948 with null_frame_id instead.
6949 * value.h (address_from_register): Update prototype.
6950 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6951 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6952 address_from_register interface change.
6954 2014-04-17 Yao Qi <yao@codesourcery.com>
6956 * gdbtypes.h: Update comments to link to types and macros'
6959 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6961 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6963 2014-04-16 Keith Seitz <keiths@redhat.com>
6966 * dwarf2read.c (skip_one_die): Check that all relative-offset
6967 sibling DIEs fall within range of the current reader's buffer.
6968 (read_partial_die): Likewise.
6970 2014-04-16 Keith Seitz <keiths@redhat.com>
6973 * cp-namespace.c (lookup_symbol_file): If the type name of
6974 `this' is NULL, return immediately.
6976 2014-04-14 Keith Seitz <keiths@redhat.com>
6979 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6980 from symbol_matches_domain in symtab.c. All local callers
6981 of symbol_matches_domain updated.
6982 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6983 search STRUCT_DOMAIN.
6984 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6985 independently. standard_lookup will do that automatically.
6986 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6987 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6988 (cp_lookup_symbol_in_namespace): Likewise.
6989 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6990 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6991 may return a STRUCT_DOMAIN match.
6992 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6993 * cp-support.c: Include language.h.
6994 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6996 * psymtab.c (match_partial_symbol): Compare the requested
6997 domain with the symbol's domain directly.
6998 (lookup_partial_symbol): Likewise.
6999 * symtab.c (lookup_symbol_in_language): Explain when/why
7000 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7001 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7002 appropriate languages.
7003 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7004 and moved to ada-lang.c
7005 (lookup_block_symbol): Explain that this function only returns
7006 symbol matching the requested DOMAIN.
7007 Compare the requested domain with the symbol's domain directly.
7008 (iterate_over_symbols): Compare the requested domain with the
7009 symbol's domain directly.
7010 * symtab.h (symbol_matches_domain): Remove.
7012 2014-04-14 Tom Tromey <tromey@redhat.com>
7015 * c-exp.y (type_aggregate_p): New function.
7016 (qualified_name, classify_inner_name): Use it.
7017 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7018 and TYPE_TARGET_TYPE of an enum type.
7019 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7021 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7022 handle TYPE_DECLARED_CLASS.
7023 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7025 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7026 * valops.c (enum_constant_from_type): New function.
7027 (value_aggregate_elt): Use it.
7028 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7031 2014-04-14 Tom Tromey <tromey@redhat.com>
7033 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7034 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7036 * value.h (value_aggregate_elt): Update.
7038 2014-04-14 Tom Tromey <tromey@redhat.com>
7040 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7042 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7044 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7045 (evaluate_subexp_standard): Pass noside argument.
7046 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7047 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7048 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7049 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7050 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7052 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7054 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7055 points to a constant blob.
7057 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7059 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7060 property and store it as the high bound and flag the range accordingly.
7061 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7062 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7063 * gdbtypes.h (enum range_flags): New enum.
7064 (struct range_bounds): Add flags member.
7066 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7068 * c-typeprint.c (c_type_print_varspec_suffix): Added
7069 check for not yet resolved high bound. If unresolved, print
7070 "variable length" string to the console instead of random
7073 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7075 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7077 (ada_template_to_fixed_record_type_1): Likewise.
7078 (ada_to_fixed_type_1): Likewise.
7079 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7080 (cp_print_value): Likewise.
7081 * d-valprint.c (dynamic_array_type): Likewise.
7082 * findvar.c (address_of_variable): Likewise.
7083 * jv-valprint.c (java_value_print): Likewise.
7084 * valops.c (value_ind): Likewise.
7085 * value.c (coerce_ref): Likewise.
7087 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7089 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7090 value and retrieve the dynamic type size.
7092 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7094 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7095 passed to sizeof is dynamic evaluate the argument to compute the length.
7097 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7098 Joel Brobecker <brobecker@adacore.com>
7100 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7101 (dwarf2_evaluate_property): New function.
7102 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7103 * dwarf2read.c (attr_to_dynamic_prop): New function.
7104 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7106 * gdbtypes.c: Include dwarf2loc.h.
7107 (is_dynamic_type): New function.
7108 (resolve_dynamic_type): New function.
7109 (resolve_dynamic_bounds): New function.
7110 (get_type_length): New function.
7111 (check_typedef): Use get_type_length to compute type length.
7112 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7113 (TYPE_LOW_BOUND_KIND): New macro.
7114 (is_dynamic_type): New function prototype.
7115 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7116 to resolve dynamic properties of the type. Update comment.
7117 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7119 2014-04-14 Richard Henderson <rth@redhat.com>
7121 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7123 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7124 Doug Evans <xdje42@gmail.com>
7126 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7127 dereference TYPE_CODE_REF values.
7129 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7131 Revert the following changes due to regressions:
7133 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7134 (dwarf2_evaluate_property): New function.
7135 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7136 * dwarf2read.c (attr_to_dynamic_prop): New function.
7137 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7139 * gdbtypes.c: Include dwarf2loc.h.
7140 (is_dynamic_type): New function.
7141 (resolve_dynamic_type): New function.
7142 (resolve_dynamic_bounds): New function.
7143 (get_type_length): New function.
7144 (check_typedef): Use get_type_length to compute type length.
7145 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7146 (TYPE_LOW_BOUND_KIND): New macro.
7147 (is_dynamic_type): New function prototype.
7148 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7149 to resolve dynamic properties of the type. Update comment.
7150 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7152 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7153 passed to sizeof is dynamic evaluate the argument to compute the length.
7155 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7156 value and retrieve the dynamic type size.
7158 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7159 (ada_template_to_fixed_record_type_1): Likewise.
7160 (ada_to_fixed_type_1): Likewise.
7161 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7162 (cp_print_value): Likewise.
7163 * d-valprint.c (dynamic_array_type): Likewise.
7164 * eval.c (evaluate_subexp_with_coercion): Likewise.
7165 * findvar.c (address_of_variable): Likewise.
7166 * jv-valprint.c (java_value_print): Likewise.
7167 * valops.c (value_ind): Likewise.
7168 * value.c (coerce_ref): Likewise.
7170 * c-typeprint.c (c_type_print_varspec_suffix): Added
7171 check for not yet resolved high bound. If unresolved, print
7172 "variable length" string to the console instead of random
7175 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7176 property and store it as the high bound and flag the range accordingly.
7177 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7178 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7179 * gdbtypes.h (enum range_flags): New enum.
7180 (struct range_bounds): Add flags member.
7182 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7183 points to a constant blob.
7185 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7186 (evaluate_subexp_standard): Pass noside argument.
7187 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7188 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7189 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7190 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7191 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7193 2014-04-11 Keith Seitz <keiths@redhat.com>
7196 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7197 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7200 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7202 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7203 (evaluate_subexp_standard): Pass noside argument.
7204 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7205 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7206 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7207 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7208 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7210 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7212 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7213 points to a constant blob.
7215 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7217 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7218 property and store it as the high bound and flag the range accordingly.
7219 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7220 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7221 * gdbtypes.h (enum range_flags): New enum.
7222 (struct range_bounds): Add flags member.
7224 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7226 * c-typeprint.c (c_type_print_varspec_suffix): Added
7227 check for not yet resolved high bound. If unresolved, print
7228 "variable length" string to the console instead of random
7231 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7233 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7234 (ada_template_to_fixed_record_type_1): Likewise.
7235 (ada_to_fixed_type_1): Likewise.
7236 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7237 (cp_print_value): Likewise.
7238 * d-valprint.c (dynamic_array_type): Likewise.
7239 * eval.c (evaluate_subexp_with_coercion): Likewise.
7240 * findvar.c (address_of_variable): Likewise.
7241 * jv-valprint.c (java_value_print): Likewise.
7242 * valops.c (value_ind): Likewise.
7243 * value.c (coerce_ref): Likewise.
7245 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7247 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7248 value and retrieve the dynamic type size.
7250 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7252 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7253 passed to sizeof is dynamic evaluate the argument to compute the length.
7255 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7257 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7258 (dwarf2_evaluate_property): New function.
7259 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7260 * dwarf2read.c (attr_to_dynamic_prop): New function.
7261 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7263 * gdbtypes.c: Include dwarf2loc.h.
7264 (is_dynamic_type): New function.
7265 (resolve_dynamic_type): New function.
7266 (resolve_dynamic_bounds): New function.
7267 (get_type_length): New function.
7268 (check_typedef): Use get_type_length to compute type length.
7269 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7270 (TYPE_LOW_BOUND_KIND): New macro.
7271 (is_dynamic_type): New function prototype.
7272 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7273 to resolve dynamic properties of the type. Update comment.
7274 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7276 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7278 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7279 declaring high/low bounds and change uses accordingly. Call
7280 create_range_type instead of create_static_range_type.
7281 * gdbtypes.c (create_range_type): New function.
7282 (create_range_type): Convert bounds into struct bound_prop and pass
7283 them to create_range_type.
7284 * gdbtypes.h (struct bound_prop): New struct.
7285 (create_range_type): New function prototype.
7286 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7287 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7288 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7290 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7292 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7294 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7295 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7296 * ada-lang.c: All uses of create_range_type updated.
7297 * coffread.c: All uses of create_range_type updated.
7298 * dwarf2read.c: All uses of create_range_type updated.
7299 * f-exp.y: All uses of create_range_type updated.
7300 * m2-valprint.c: All uses of create_range_type updated.
7301 * mdebugread.c: All uses of create_range_type updated.
7302 * stabsread.c: All uses of create_range_type updated.
7303 * valops.c: All uses of create_range_type updated.
7304 * valprint.c: All uses of create_range_type updated.
7306 2014-04-10 Pedro Alves <palves@redhat.com>
7308 * breakpoint.c (single_step_breakpoints)
7309 (single_step_gdbarch): Move up in the file.
7310 (one_breakpoint_xfer_memory): New function, factored out from ...
7311 (breakpoint_xfer_memory): ... here. Also process single-step
7314 2014-04-09 Tristan Gingold <gingold@adacore.com>
7316 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7318 (darwin_decode_exception_message): Free port only after use.
7320 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7322 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7323 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7324 when setting the size of call_length.
7326 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7328 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7329 dereference TYPE_CODE_REF values.
7331 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7333 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7334 end of warning message.
7336 2014-04-03 Doug Evans <dje@google.com>
7338 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7339 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7341 2014-04-02 Alan Modra <amodra@gmail.com>
7343 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7344 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7345 (struct symbol_file_add_from_memory_args): Add size field.
7346 (find_vdso_size): New function.
7347 (add_vsyscall_page): Attempt to find vdso size.
7349 2014-04-01 Doug Evans <dje@google.com>
7351 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7353 2014-04-01 Tristan Gingold <gingold@adacore.com>
7355 * darwin-nat.c (darwin_encode_reply): Add prototype.
7356 (darwin_decode_exception_message): Reply to unknown inferiors.
7357 (darwin_decode_message): Handle message by id. Ignore message
7358 to unknown inferior.
7359 (darwin_wait): Discard unknown messages, add debug trace.
7361 2014-03-31 Doug Evans <dje@google.com>
7363 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7366 2014-03-31 Doug Evans <dje@google.com>
7368 New option "set print symbol-loading".
7370 * solib.c (solib_read_symbols): Only print symbol loading messages
7372 (solib_add): If symbol loading is in "brief" mode, notify user
7373 symbols are being loaded.
7374 (reload_shared_libraries_1): Ditto.
7375 * symfile.c (print_symbol_loading_off): New static global.
7376 (print_symbol_loading_brief): New static global.
7377 (print_symbol_loading_full): New static global.
7378 (print_symbol_loading_enums): New static global.
7379 (print_symbol_loading): New static global.
7380 (print_symbol_loading_p): New function.
7381 (symbol_file_add_with_addrs): Only print symbol loading messages
7383 (_initialize_symfile): Register "print symbol-loading" set/show
7385 * symfile.h (print_symbol_loading_p): Declare.
7387 2014-03-30 Doug Evans <xdje42@gmail.com>
7389 * infrun.c (set_last_target_status): New function.
7390 (handle_inferior_event): Call it.
7392 2014-03-30 Doug Evans <xdje42@gmail.com>
7394 * inferior.h (enum stop_kind): Improve comment.
7396 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7398 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7399 a reference, strip the reference layer before calling
7400 the lang_ops value_has_mutated callback.
7402 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7404 Remove some globals from our parser.
7405 * language.c (unk_lang_parser): Add "struct parser_state"
7407 * language.h (struct language_defn) <la_parser>: Likewise.
7408 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7409 (initialize_expout): Add "struct parser_state" argument.
7410 Rewrite function to use the parser state.
7411 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7412 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7413 write_exp_elt_longcst, write_exp_elt_dblcst,
7414 write_exp_elt_decfloatcst, write_exp_elt_type,
7415 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7416 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7417 write_dollar_variable): Likewise.
7418 (parse_exp_in_context_1): Use parser state.
7419 (insert_type_address_space): Add "struct parser_state" argument.
7421 (increase_expout_size): New function.
7422 * parser-defs.h: Forward declare "struct language_defn" and
7423 "struct parser_state".
7424 (expout, expout_size, expout_ptr): Remove extern declarations.
7425 (parse_gdbarch, parse_language): Rewrite macro declarations to
7426 accept the parser state.
7427 (struct parser_state): New struct.
7428 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7429 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7430 write_exp_elt_decfloatcst, write_exp_elt_type,
7431 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7432 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7433 write_exp_msymbol, write_dollar_variable,
7434 mark_struct_expression, insert_type_address_space): Add "struct
7435 parser_state" argument.
7436 (increase_expout_size): New function.
7437 * utils.c (do_clear_parser_state): New function.
7438 (make_cleanup_clear_parser_state): Likewise.
7439 * utils.h (make_cleanup_clear_parser_state): New function
7441 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7442 Update calls to write_exp* in order to pass the parser state.
7443 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7444 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7445 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7446 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7447 * stap-probe.c (stap_parse_register_operand): Likewise.
7448 (stap_parse_single_operand): Likewise.
7449 (stap_parse_argument_1): Likewise.
7450 (stap_parse_argument): Use parser state.
7451 * stap-probe.h: Include "parser-defs.h".
7452 (struct stap_parse_info) <pstate>: New field.
7453 * c-exp.y (parse_type): Rewrite to use parser state.
7454 (yyparse): Redefine to c_parse_internal.
7455 (pstate): New global variable.
7456 (parse_number): Add "struct parser_state" argument.
7457 (write_destructor_name): Likewise.
7458 (type_exp): Update calls to write_exp* and similars in order to
7460 (exp1, exp, variable, qualified_name, space_identifier,
7461 typename, typebase): Likewise.
7462 (write_destructor_name, parse_number, lex_one_token,
7463 classify_name, classify_inner_name, c_parse): Add "struct
7464 parser_state" argument. Update function to use parser state.
7465 * c-lang.h: Forward declare "struct parser_state".
7466 (c_parse): Add "struct parser_state" argument.
7467 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7468 (yyparse): Redefine macro to ada_parse_internal.
7469 (pstate): New variable.
7470 (write_int, write_object_renaming, write_var_or_type,
7471 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7472 type_int, type_long, type_long_long, type_float, type_double,
7473 type_long_double, type_char, type_boolean, type_system_address):
7474 Add "struct parser_state" argument.
7475 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7476 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7477 var_or_type, aggregate, aggregate_component_list,
7478 positional_list, others, component_group,
7479 component_associations): Update calls to write_exp* and similar
7480 functions in order to use parser state.
7481 (ada_parse, write_var_from_sym, write_int,
7482 write_exp_op_with_string, write_object_renaming,
7483 find_primitive_type, write_selectors, write_ambiguous_var,
7484 write_var_or_type, write_name_assoc, type_int, type_long,
7485 type_long_long, type_float, type_double, type_long_double,
7486 type_char, type_boolean, type_system_address): Add "struct
7487 parser_state" argument. Adjust function to use parser state.
7488 * ada-lang.c (parse): Likewise.
7489 * ada-lang.h: Forward declare "struct parser_state".
7490 (ada_parse): Add "struct parser_state" argument.
7491 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7492 calls to both functions.
7493 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7495 (yyparse): Redefine macro to f_parse_internal.
7496 (pstate): New variable.
7497 (parse_number): Add "struct parser_state" argument.
7498 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7499 and similars in order to use parser state.
7500 (parse_number): Adjust code to use parser state.
7502 (f_parse): New function.
7503 * f-lang.h: Forward declare "struct parser_state".
7504 (f_parse): Add "struct parser_state" argument.
7505 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7507 (yyparse): Redefine macro for java_parse_internal.
7508 (pstate): New variable.
7509 (push_expression_name, push_expression_name, insert_exp): Add
7510 "struct parser_state" argument.
7511 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7512 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7513 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7514 PostIncrementExpression, PostDecrementExpression,
7515 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7516 UnaryExpressionNotPlusMinus, CastExpression,
7517 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7518 RelationalExpression, EqualityExpression, AndExpression,
7519 ExclusiveOrExpression, InclusiveOrExpression,
7520 ConditionalAndExpression, ConditionalOrExpression,
7521 ConditionalExpression, Assignment, LeftHandSide): Update
7522 calls to write_exp* and similars in order to use parser state.
7523 (parse_number): Ajust code to use parser state.
7525 (java_parse): New function.
7526 (push_variable): Add "struct parser_state" argument. Adjust
7527 code to user parser state.
7528 (push_fieldnames, push_qualified_expression_name,
7529 push_expression_name, insert_exp): Likewise.
7530 * jv-lang.h: Forward declare "struct parser_state".
7531 (java_parse): Add "struct parser_state" argument.
7532 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7534 (yyparse): Redefine macro to m2_parse_internal.
7535 (pstate): New variable.
7536 (type_exp, exp, fblock, variable, type): Update calls to
7537 write_exp* and similars to use parser state.
7539 (m2_parse): New function.
7540 * m2-lang.h: Forward declare "struct parser_state".
7541 (m2_parse): Add "struct parser_state" argument.
7542 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7543 * objc-lang.h: Forward declare "struct parser_state".
7544 (end_msglist): Add "struct parser_state" argument.
7545 * p-exp.y (parse_type): Rewrite macro to use parser state.
7546 (yyparse): Redefine macro to pascal_parse_internal.
7547 (pstate): New variable.
7548 (parse_number): Add "struct parser_state" argument.
7549 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7550 write_exp* and similars in order to use parser state.
7551 (parse_number, yylex): Adjust code to use parser state.
7552 (pascal_parse): New function.
7553 * p-lang.h: Forward declare "struct parser_state".
7554 (pascal_parse): Add "struct parser_state" argument.
7555 * go-exp.y (parse_type): Rewrite macro to use parser state.
7556 (yyparse): Redefine macro to go_parse_internal.
7557 (pstate): New variable.
7558 (parse_number): Add "struct parser_state" argument.
7559 (type_exp, exp1, exp, variable, type): Update calls to
7560 write_exp* and similars in order to use parser state.
7561 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7562 to use parser state.
7563 (go_parse): Likewise.
7564 * go-lang.h: Forward declare "struct parser_state".
7565 (go_parse): Add "struct parser_state" argument.
7567 2014-03-27 Doug Evans <dje@google.com>
7569 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7571 2014-03-27 Doug Evans <dje@google.com>
7573 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7574 Remove argument abbrev_section. All callers updated.
7576 2014-03-27 Doug Evans <dje@google.com>
7578 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7579 addr_base, ranges_base.
7581 2014-03-26 Keith Seitz <keiths@redhat.com>
7583 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7584 types, not VAR_DOMAIN.
7586 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7588 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7590 * features/nios2-linux.c: Regenerated.
7591 * features/nios2.c: Regenerated.
7593 2014-03-25 Pedro Alves <palves@redhat.com>
7595 * cli/cli-script.c (script_from_file): Force the interpreter to
7598 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7600 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7601 small stack allocation.
7603 2014-03-24 Tristan Gingold <gingold@adacore.com>
7605 * darwin-nat.c (exc_server): Remove unused prototype.
7606 (darwin_dump_message): Correctly display data on x86_64.
7607 (darwin_encode_reply): Fix style.
7608 Add comments and fix indentation.
7610 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7612 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7614 2014-03-22 Doug Evans <xdje42@gmail.com>
7616 * infcmd.c: Whitespace fixes.
7617 (interrupt_command): Merge two function comments into one.
7619 2014-03-22 Doug Evans <xdje42@gmail.com>
7621 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7624 2014-03-22 Yao Qi <yao@codesourcery.com>
7626 * remote.c (target_read_live_memory): Remove.
7627 (memory_xfer_live_readonly_partial): Rename it to
7628 remote_xfer_live_readonly_partial. Remove argument 'object'.
7629 All callers updated. Call remote_read_bytes_1
7630 instead of target_read_live_memory.
7631 * tracepoint.c (set_traceframe_number): Remove.
7632 (make_cleanup_restore_traceframe_number): Likewise .
7633 * tracepoint.h (set_traceframe_number): Remove declaration.
7634 (make_cleanup_restore_traceframe_number): Likewise.
7636 2014-03-22 Yao Qi <yao@codesourcery.com>
7638 * remote.c (remote_read_bytes): Move code on reading from the
7640 (remote_read_bytes_1): ... here. New function.
7642 2014-03-22 Yao Qi <yao@codesourcery.com>
7644 * ctf.c (ctf_xfer_partial): Check the return value of
7645 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7646 return TARGET_XFER_UNAVAILABLE.
7647 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7648 * target.c (target_read_live_memory): Move it to remote.c.
7649 (memory_xfer_live_readonly_partial): Likewise.
7650 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7651 * remote.c (target_read_live_memory): Moved from target.c.
7652 (memory_xfer_live_readonly_partial): Likewise.
7653 (remote_read_bytes): Factored out from
7654 memory_xfer_partial_1.
7656 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7658 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7661 2014-03-21 Pedro Alves <palves@redhat.com>
7663 * infrun.c (normal_stop): Extend comment.
7665 2014-03-21 Hui Zhu <hui@codesourcery.com>
7666 Pedro Alves <palves@redhat.com>
7668 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7670 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7671 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7672 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7674 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7676 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7677 `z' formatted output modifier.
7679 2014-03-20 Tom Tromey <tromey@redhat.com>
7680 Sergio Durigan Junior <sergiodj@redhat.com>
7682 * probe.c (parse_probes): Turn assert into an ordinary error.
7683 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7684 exceptions when parsing probes. Rearrange the code for clarity.
7686 2014-03-20 Tom Tromey <tromey@redhat.com>
7689 * top.c (execute_command): Only dispatch events if the command
7692 2014-03-20 Tom Tromey <tromey@redhat.com>
7695 * infcall.c: Include event-top.h.
7696 (run_inferior_call): Call async_disable_stdin if needed.
7698 2014-03-20 Pedro Alves <palves@redhat.com>
7700 * infrun.c (prepare_to_proceed): Delete.
7701 (thread_still_needs_step_over): New function.
7702 (find_thread_needs_step_over): New function.
7703 (proceed): If the current thread needs a step-over, set its
7704 steping_over_breakpoint flag. Adjust to use
7705 find_thread_needs_step_over instead of prepare_to_proceed.
7706 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7707 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7709 (switch_back_to_stepped_thread): Step over breakpoints of all
7710 threads not the stepping thread, before switching back to the
7713 2014-03-20 Pedro Alves <palves@redhat.com>
7715 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7717 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7718 * infrun.c (saved_singlestep_ptid)
7719 (stepping_past_singlestep_breakpoint): Delete.
7720 (resume): Remove stepping_past_singlestep_breakpoint handling.
7721 (proceed): Store the prev_pc of the stepping thread too.
7722 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7724 (enum infwait_states): Delete infwait_thread_hop_state.
7725 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7727 (handle_inferior_event): Adjust.
7728 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7729 handling and the thread-hop code. Before removing single-step
7730 breakpoints, check whether the thread hit a single-step breakpoint
7731 of another thread. If it did, the trap is not a random signal.
7732 (switch_back_to_stepped_thread): If the event thread hit a
7733 single-step breakpoint, unblock it before switching to the
7734 stepping thread. Handle the case of the stepped thread having
7736 (keep_going): Handle the case of the current thread moving past a
7737 single-step breakpoint.
7739 2014-03-20 Pedro Alves <palves@redhat.com>
7742 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7743 are being stepped over.
7744 (breakpoint_address_match): Make extern.
7745 * breakpoint.h (breakpoint_address_match): New declaration.
7746 * inferior.h (stepping_past_instruction_at): New declaration.
7747 * infrun.c (struct step_over_info): New type.
7748 (step_over_info): New global.
7749 (set_step_over_info, clear_step_over_info)
7750 (stepping_past_instruction_at): New functions.
7751 (handle_inferior_event): Clear the step-over info when
7752 trap_expected is cleared.
7753 (resume): Remove now stale comment.
7754 (clear_proceed_status): Clear step-over info.
7755 (proceed): Adjust step-over handling to set or clear the step-over
7756 info instead of removing all breakpoints.
7757 (handle_signal_stop): When setting up a thread-hop, don't remove
7759 (stop_stepping): Clear step-over info.
7760 (keep_going): Adjust step-over handling to set or clear step-over
7761 info and then always inserting breakpoints, instead of removing
7762 all breakpoints when stepping over one.
7764 2014-03-20 Pedro Alves <palves@redhat.com>
7766 * infrun.c (previous_inferior_ptid): Adjust comment.
7767 (deferred_step_ptid): Delete.
7768 (infrun_thread_ptid_changed, prepare_to_proceed)
7769 (init_wait_for_inferior): Adjust.
7770 (handle_signal_stop): Delete deferred_step_ptid handling.
7772 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7775 * defs.h (sync_quit_force_run): New declaration.
7776 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7777 * event-top.c (async_sigterm_handler): New declaration.
7778 (async_sigterm_token): New variable.
7779 (async_init_signals): Create also async_sigterm_token.
7780 (async_sigterm_handler): New function.
7781 (sync_quit_force_run): New variable.
7782 (handle_sigterm): Replace quit_force call by other calls.
7783 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7785 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7787 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7788 offset into SPE pseudo registers.
7790 2014-03-18 Pedro Alves <palves@redhat.com>
7793 * inferior.h (print_stop_event): Declare.
7794 * infrun.c (print_stop_event): New, factored out from ...
7795 (normal_stop): ... this.
7796 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7797 of bpstat_print/print_stack_frame.
7799 2014-03-17 Tom Tromey <tromey@redhat.com>
7801 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7803 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7805 * ada-lang.c (decode_constrained_packed_array): Perform a
7806 minimal coercion for reference with coerce_ref instead of
7809 2014-03-17 Tristan Gingold <gingold@adacore.com>
7811 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7812 (darwin_solib_create_inferior_hook): Emit a warning if version
7815 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7817 * python/py-value.c (get_field_flag): Cast flag_name argument to
7818 PyObject_GetAttrString to support Python 2.4.
7820 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7822 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7823 (Global Maintainers): Remove Jan Kratochvil.
7825 2014-03-14 Pedro Alves <palves@redhat.com>
7827 * inferior.h (terminal_ours_for_output): Rename to ...
7828 (child_terminal_ours_for_output): ... this.
7829 (terminal_save_ours): Rename to ...
7830 (child_terminal_save_ours): ... this.
7831 (terminal_ours): Rename to ...
7832 (child_terminal_ours): ... this.
7833 (terminal_inferior): Rename to ...
7834 (child_terminal_inferior): ... this.
7835 (terminal_init_inferior): Rename to ...
7836 (child_terminal_init_inferior): ... this.
7837 (terminal_init_inferior_with_pgrp): Rename to ...
7838 (child_terminal_init_inferior_with_pgrp): ... this.
7839 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7840 (child_terminal_init_with_pgrp): ... this.
7841 (terminal_save_ours): Rename to ...
7842 (child_terminal_save_ours): ... this.
7843 (terminal_init_inferior): Rename to ...
7844 (child_terminal_init): ... this. Adjust.
7845 (terminal_inferior): Rename to ...
7846 (child_terminal_inferior): ... this.
7847 (terminal_ours_for_output): Rename to ...
7848 (child_terminal_ours_for_output): ... this. Adjust.
7849 (terminal_ours): Rename to ...
7850 (child_terminal_ours): ... this.
7851 (terminal_ours_1): Rename to ...
7852 (child_terminal_ours_1): ... this. Adjust.
7853 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7854 * windows-nat.c (do_initial_windows_stuff): Adjust.
7855 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7856 (gnu_terminal_init): ... this. Adjust.
7857 (gnu_target): Adjust.
7858 * inf-child.c (inf_child_target): Adjust.
7860 2014-03-13 Doug Evans <xdje42@gmail.com>
7863 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7866 2014-03-13 Doug Evans <xdje42@gmail.com>
7868 * value.c (record_latest_value): Call release_value_or_incref
7869 instead of release_value.
7871 2014-03-13 Pedro Alves <palves@redhat.com>
7873 * procfs.c (procfs_target): Don't override to_shortname,
7874 to_longname or to_doc.
7876 2014-03-13 Pedro Alves <palves@redhat.com>
7878 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7879 Unix in user visible strings.
7881 2014-03-12 Stan Shebs <stan@codesourcery.com>
7883 * gdbtypes.h: Annotate comments for Doxygen, add a page
7884 block comment with some general info.
7886 2014-03-12 Pedro Alves <palves@redhat.com>
7888 * infcmd.c (prepare_execution_command): New function, factored out
7889 from several execution commands.
7890 (run_command_1, continue_command, step_1, jump_command)
7891 (signal_command, until_command, advance_command, finish_command)
7892 (attach_command): Use prepare_execution_command.
7894 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7896 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7899 (struct arm_linux_thread_points): Removed.
7900 (struct arm_linux_process_info): New.
7901 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7902 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7903 (arm_linux_find_breakpoints_by_tid): Removed.
7904 (struct arch_lwp_info): New.
7905 (arm_linux_find_process_pid): New functions.
7906 (arm_linux_add_process): New functions.
7907 (arm_linux_process_info_get): New functions.
7908 (arm_linux_forget_process): New function.
7909 (arm_linux_get_debug_reg_state): New function.
7910 (struct update_registers_data): New.
7911 (update_registers_callback): New function.
7912 (arm_linux_insert_hw_breakpoint1): Updated.
7913 (arm_linux_remove_hw_breakpoint1): Updated.
7914 (arm_linux_insert_hw_breakpoint): Updated.
7915 (arm_linux_remove_hw_breakpoint): Updated.
7916 (arm_linux_insert_watchpoint): Updated.
7917 (arm_linux_remove_watchpoint): Updated.
7918 (arm_linux_new_thread): Updated.
7919 (arm_linux_prepare_to_resume): New function.
7920 (arm_linux_new_fork): New function.
7921 (_initialize_arm_linux_nat): Updated.
7923 2014-03-12 Pedro Alves <palves@redhat.com>
7925 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7927 2014-03-12 Tom Tromey <tromey@redhat.com>
7929 * inf-child.c (return_zero): New function.
7930 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7931 * aix-thread.c (aix_thread_inferior_created): New function.
7932 (aix_thread_attach): Remove.
7933 (init_aix_thread_ops): Don't set to_attach.
7934 (_initialize_aix_thread): Register inferior_created observer.
7935 * corelow.c (init_core_ops): Don't set to_attach or
7937 * exec.c (init_exec_ops): Don't set to_attach or
7939 * infcmd.c (run_command_1): Use find_run_target. Make direct
7941 (attach_command): Use find_attach_target. Make direct target
7943 * record-btrace.c (init_record_btrace_ops): Don't set
7945 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7947 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7948 set to_create_inferior.
7949 * target.c (complete_target_initialization): Add assertion.
7950 (target_create_inferior): Remove.
7951 (find_default_attach, find_default_create_inferior): Remove.
7952 (find_attach_target, find_run_target): New functions.
7953 (find_default_is_async_p, find_default_can_async_p)
7954 (target_supports_non_stop, target_attach): Remove.
7955 (init_dummy_target): Don't set to_create_inferior or
7956 to_supports_non_stop.
7957 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7958 TARGET_DEFAULT_FUNC.
7959 <to_create_inferior>: Add comment.
7960 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7961 TARGET_DEFAULT_RETURN.
7962 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7963 (find_attach_target, find_run_target): Declare.
7964 (target_create_inferior): Remove.
7965 (target_has_execution_1): Update comment.
7966 (target_supports_non_stop): Remove.
7967 * target-delegates.c: Rebuild.
7969 2014-03-12 Pedro Alves <palves@redhat.com>
7971 * inf-child.h: Update comment to not mention Unix.
7973 2014-03-12 Pedro Alves <palves@redhat.com>
7975 * inf-child.c: Update top comment to not mention Unix. Add
7976 generic comment describing how this target is meant to be used.
7977 (inf_child_post_attach, inf_child_post_startup_inferior)
7978 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7981 2014-03-12 Pedro Alves <palves@redhat.com>
7983 * nto-procfs.c: Include inf-child.h.
7984 (procfs_ops): Delete global.
7985 (procfs_can_run): Delete method.
7986 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7987 target pointer instead of referencing procfs_ops.
7988 (procfs_prepare_to_store): Delete.
7989 (init_procfs_ops): Delete function.
7990 (procfs_target): New function, based on init_procfs_ops, but
7991 inherit inf_child_target.
7992 (_initialize_procfs): Use procfs_target.
7994 2014-03-12 Pedro Alves <palves@redhat.com>
7996 * windows-nat.c: Include inf-child.h.
7997 (windows_ops): Delete global.
7998 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8000 (init_windows_ops): Delete function.
8001 (windows_target): New function, based on init_windows_ops, but
8002 inherit inf_child_target.
8003 (_initialize_windows_nat): Use windows_target. Install x86
8004 specific target methods here.
8006 2014-03-10 Doug Evans <xdje42@gmail.com>
8008 * guile/guile.c (call_initialize_gdb_module): New function.
8009 (initialize_guile): Replace call to scm_init_guile with call to
8012 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8014 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8015 in call to TYPE_CODE macro.
8017 2014-03-10 Jerome Guitton <guitton@adacore.com>
8019 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8020 Resolve tagged types to full view.
8022 2014-03-10 Hui Zhu <hui@codesourcery.com>
8024 * target.h (target_insert_breakpoint): Remove "hardware" from its
8027 2014-03-07 Doug Evans <dje@google.com>
8029 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8031 2014-03-07 Doug Evans <dje@google.com>
8033 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8034 Remove unused local comp_dir_attr. Assert exactly one of
8035 stub_comp_unit_die, stub_comp_dir is non-NULL.
8037 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8039 * target.h (complete_target_initialization, add_target):
8042 2014-03-07 Pedro Alves <palves@redhat.com>
8044 * go32-nat.c: Include inf-child.h.
8045 (go32_ops): Delete global.
8046 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8048 (go32_create_inferior): Push the passed in target pointer instead
8049 of referencing go32_ops.
8050 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8051 (go32_target): New function, based on init_go32_ops, but inherit
8053 (_initialize_go32_nat): Use go32_target. Move parts of
8056 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8058 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8059 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8060 SYMBOL_VALUE_ADDRESS.
8061 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8063 2014-03-06 Yao Qi <yao@codesourcery.com>
8065 * breakpoint.c (get_tracepoint_by_number): Remove argument
8066 optional_p. All callers updated. Adjust comments. Update
8068 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8070 2014-03-06 Yao Qi <yao@codesourcery.com>
8072 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8073 early if get_number returns zero. Use 'p' instead of 'args'.
8075 2014-03-06 Yao Qi <yao@codesourcery.com>
8077 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8080 2014-03-06 Yao Qi <yao@codesourcery.com>
8082 PR breakpoints/16508
8083 * tracepoint.c (check_trace_running): New function.
8084 (trace_find_command): Move code to check_trace_running and
8085 call check_trace_running.
8086 (trace_find_pc_command): Likewise.
8087 (trace_find_tracepoint_command): Likewise.
8088 (trace_find_line_command): Likewise.
8089 (trace_find_range_command): Likewise.
8090 * tracepoint.h (check_trace_running): Likewise.
8091 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8093 2014-03-06 Yao Qi <yao@codesourcery.com>
8095 * target.h (struct target_ops) <to_traceframe_info>: Use
8096 TARGET_DEFAULT_NORETURN (tcomplain ()).
8097 * target-delegates.c: Regenerated.
8099 2014-03-05 Pedro Alves <palves@redhat.com>
8102 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8103 void. Update comment.
8104 (dcache_xfer_memory): Delete.
8105 (dcache_read_memory_partial): New, based on the read bits of
8107 (dcache_update): Add status parameter. Use ULONGEST for len, and
8108 adjust. Discard cache lines if the reason for the update was
8110 * dcache.h (dcache_xfer_memory): Delete declaration.
8111 (dcache_read_memory_partial): New declaration.
8112 (dcache_update): Update prototype.
8113 * target.c (raw_memory_xfer_partial): Update the dcache here.
8114 (memory_xfer_partial_1): Don't handle dcache writes here.
8116 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8118 * remote-sim.c (gdbsim_load): Add const to prog.
8120 2014-03-03 Tom Tromey <tromey@redhat.com>
8122 * elfread.c (probe_key): Change to bfd_data.
8123 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8124 now per-BFD, not per-objfile.
8125 * stap-probe.c (stap_probe_destroy): Update comment.
8126 (handle_stap_probe): Allocate on the per-BFD obstack.
8128 2014-03-03 Tom Tromey <tromey@redhat.com>
8130 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8131 * breakpoint.c (create_longjmp_master_breakpoint): Use
8133 (add_location_to_breakpoint, bkpt_probe_insert_location)
8134 (bkpt_probe_remove_location): Update.
8135 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8136 * elfread.c (elf_symfile_relocate_probe): Remove.
8137 (elf_probe_fns): Update.
8138 (insert_exception_resume_breakpoint): Change type of "probe"
8139 parameter to bound_probe.
8140 (check_exception_resume): Update.
8141 * objfiles.c (objfile_relocate1): Don't relocate probes.
8142 * probe.c (bound_probe_s): New typedef.
8143 (parse_probes): Use get_probe_address. Set sal's objfile.
8144 (find_probe_by_pc): Return a bound_probe.
8145 (collect_probes): Return a VEC(bound_probe_s).
8146 (compare_probes): Update.
8147 (gen_ui_out_table_header_info): Change type of "probes"
8149 (info_probes_for_ops): Update.
8150 (get_probe_address): New function.
8151 (probe_safe_evaluate_at_pc): Update.
8152 * probe.h (struct probe_ops) <get_probe_address>: New field.
8153 <set_semaphore, clear_semaphore>: Add objfile parameter.
8154 (struct probe) <objfile>: Remove field.
8156 <address>: Update comment.
8157 (struct bound_probe): New.
8158 (find_probe_by_pc): Return a bound_probe.
8159 (get_probe_address): Declare.
8160 * solib-svr4.c (struct probe_and_action) <address>: New field.
8161 (hash_probe_and_action, equal_probe_and_action): Update.
8162 (register_solib_event_probe): Add address parameter.
8163 (solib_event_probe_at): Update.
8164 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8166 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8167 (stap_get_probe_address): New function.
8168 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8169 (compile_probe_arg): Update.
8170 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8172 (handle_stap_probe): Don't relocate the probe.
8173 (stap_relocate): Remove.
8174 (stap_gen_info_probes_table_values): Update.
8175 (stap_probe_ops): Remove stap_relocate.
8176 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8177 (debug_sym_probe_fns): Update.
8178 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8179 * symtab.c (init_sal): Use memset.
8180 * symtab.h (struct symtab_and_line) <objfile>: New field.
8181 * tracepoint.c (start_tracing, stop_tracing): Update.
8183 2014-03-03 Tom Tromey <tromey@redhat.com>
8185 * probe.h (parse_probes, find_probe_by_pc)
8186 (find_probes_in_objfile): Fix comments.
8188 2014-03-02 Doug Evans <xdje42@gmail.com>
8190 * infrun.c (handle_signal_stop): Replace test for
8191 TARGET_WAITKIND_STOPPED with an assert.
8193 2014-03-02 Doug Evans <xdje42@gmail.com>
8195 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8197 2014-03-02 Doug Evans <xdje42@gmail.com>
8199 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8201 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8203 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8205 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8207 * i386obsd-nat.c: Include "obsd-nat.h".
8208 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8210 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8212 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8214 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8216 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8218 * mips64obsd-nat.c: Include "obsd-nath".
8219 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8221 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8223 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8225 * amd64obsd-nat.c: Include "obsd-nat,h.
8226 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8228 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8230 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8232 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8233 (find_overload_match): Update call to find_oload_champ.
8234 (find_oload_champ_namespace_loop): Likewise
8236 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8238 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8240 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8241 * config/sparc/obsd64.mh: New file.
8242 * sparc64obsd-nat.c: New file.
8244 * obsd-nat.h: New file.
8245 * obsd-nat.c: New file.
8246 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8247 (ALLDEPFILES): Add obsd-nat.c.
8249 2014-02-28 Tom Tromey <tromey@redhat.com>
8251 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8252 * cli-out.h (cli_ui_out_impl): Now const.
8253 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8254 * ui-out.c (struct ui_out) <impl>: Now const.
8255 (default_ui_out_impl): Now const.
8256 (ui_out_new): Make 'impl' parameter const.
8257 * ui-out.h (ui_out_new): Update.
8259 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8261 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8263 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8265 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8267 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8269 Additional PR 8882 fix.
8270 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8272 2014-02-27 Pedro Alves <palves@redhat.com>
8274 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8277 2014-02-27 Pedro Alves <palves@redhat.com>
8280 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8281 * nat/linux-waitpid.c: Include string.h.
8282 (status_to_str): Moved here and made extern.
8283 * nat/linux-waitpid.h (status_to_str): New declaration.
8285 2014-02-27 Hui Zhu <hui@codesourcery.com>
8288 * infrun.c (ptid_match): Move ...
8289 * common/ptid.c (ptid_match): ... here.
8290 * inferior.h (ptid_match): Move ...
8291 * common/ptid.h (ptid_match): ... here.
8293 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8295 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8296 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8299 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8301 * obsd-tdep.c (obsd_auxv_parse): New function.
8302 (obsd_init_abi): Set auxv_parse.
8304 * gdbarch.sh (auxv_parse): New.
8305 * gdbarch.h: Regenerated.
8306 * gdbarch.c: Regenerated.
8307 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8309 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8311 * guile/scm-value.c (gdbscm_history_append_x): New function.
8312 (value_functions): Add it.
8314 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8316 * dwarf2read.c (attr_value_as_address): New function.
8317 (dwarf2_find_base_address, read_call_site_scope): Use
8318 attr_value_as_address in place of DW_ADDR.
8319 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8320 the low and high addresses. Slight rework of the handling
8321 of the high pc being a constant form, and limit it to
8322 DWARF verson 4 or higher.
8323 (dwarf2_record_block_ranges): Likewise.
8324 (read_partial_die): Likewise.
8325 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8327 2014-02-26 Tom Tromey <tromey@redhat.com>
8329 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8331 2014-02-26 Tom Tromey <tromey@redhat.com>
8333 * elfread.c (elf_read_minimal_symbols): Return early if
8334 minimal symbols have already been read. Add "ei" parameter.
8335 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8336 * minsyms.c (prim_record_minimal_symbol_full): Update.
8337 * objfiles.h (struct objstats) <n_minsyms>: Move...
8338 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8339 * symmisc.c (print_objfile_statistics): Update.
8341 2014-02-26 Tom Tromey <tromey@redhat.com>
8343 * elfread.c (elf_read_minimal_symbols): New function, from
8345 (elf_symfile_read): Call it.
8347 2014-02-26 Tom Tromey <tromey@redhat.com>
8349 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8350 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8351 (lookup_minimal_symbol_solib_trampoline)
8352 (lookup_minimal_symbol_by_pc_section_1)
8353 (lookup_minimal_symbol_and_objfile): Update.
8354 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8355 Don't allocate a minimal symbol if minsyms have already been read.
8356 (build_minimal_symbol_hash_tables): Update.
8357 (install_minimal_symbols): Do nothing if minsyms already read.
8358 Use the per-BFD obstack.
8359 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8360 * objfiles.c (allocate_objfile): Call
8361 terminate_minimal_symbol_table later.
8362 (have_minimal_symbols): Update.
8363 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8364 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8365 Move from struct objfile.
8366 <minsyms_read>: New field.
8367 (struct objfile) <msymbols, minimal_symbol_count,
8368 msymbol_hash, msymbol_demangled_hash>: Move.
8369 (ALL_OBJFILE_MSYMBOLS): Update.
8370 * symfile.c (read_symbols): Set minsyms_read.
8371 (reread_symbols): Update.
8372 * symmisc.c (dump_objfile, dump_msymbols): Update.
8374 2014-02-26 Tom Tromey <tromey@redhat.com>
8376 * minsyms.c (msymbols_sort): Remove.
8377 * minsyms.h (msymbols_sort): Remove.
8378 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8379 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8380 * elfread.c (elf_symtab_read): Don't add section offsets.
8381 * xcoffread.c (record_minimal_symbol): Don't add section offset
8382 to minimal symbol address.
8383 * somread.c (text_offset, data_offset): Remove.
8384 (som_symtab_read): Don't add section offsets to minimal symbol
8386 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8387 Don't add section offsets to minimal symbols.
8388 * coffread.c (coff_symtab_read): Don't add section offsets
8389 to minimal symbol addresses.
8390 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8391 to minimal symbol addresses.
8392 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8393 section offset to minimal symbol addresses.
8394 * mdebugread.c (parse_partial_symbols): Don't add section
8395 offset to minimal symbol addresses.
8396 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8397 offset to minimal symbol addresses.
8399 2014-02-26 Tom Tromey <tromey@redhat.com>
8401 * ada-lang.c (ada_main_name): Update.
8402 (ada_add_standard_exceptions): Update.
8403 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8404 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8405 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8406 * auxv.c (ld_so_xfer_auxv): Update.
8407 * avr-tdep.c (avr_scan_prologue): Update.
8408 * ax-gdb.c (gen_var_ref): Update.
8409 * blockframe.c (get_pc_function_start)
8410 (find_pc_partial_function_gnu_ifunc): Update.
8411 * breakpoint.c (create_overlay_event_breakpoint)
8412 (create_longjmp_master_breakpoint)
8413 (create_std_terminate_master_breakpoint)
8414 (create_exception_master_breakpoint): Update.
8415 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8416 * c-valprint.c (c_val_print): Update.
8417 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8418 * common/agent.c (agent_look_up_symbols): Update.
8419 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8420 * dwarf2loc.c (call_site_to_target_addr): Update.
8421 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8422 * elfread.c (elf_gnu_ifunc_record_cache)
8423 (elf_gnu_ifunc_resolve_by_got): Update.
8424 * findvar.c (default_read_var_value): Update.
8425 * frame.c (inside_main_func): Update.
8426 * frv-tdep.c (frv_frame_this_id): Update.
8427 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8428 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8430 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8431 (hppa_hpux_find_dummy_bpaddr): Update.
8432 * hppa-tdep.c (hppa_symbol_address): Update.
8433 * infcmd.c (until_next_command): Update.
8434 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8436 * linespec.c (minsym_found, add_minsym): Update.
8437 * linux-nat.c (get_signo): Update.
8438 * linux-thread-db.c (inferior_has_bug): Update.
8439 * m32c-tdep.c (m32c_return_value)
8440 (m32c_m16c_address_to_pointer): Update.
8441 * m32r-tdep.c (m32r_frame_this_id): Update.
8442 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8443 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8444 * maint.c (maintenance_translate_address): Update.
8445 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8446 (frob_address): New function.
8447 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8448 frob_address. Rename parameter to "pc_in".
8449 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8451 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8453 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8454 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8455 * objc-lang.c (find_objc_msgsend): Update.
8456 * objfiles.c (objfile_relocate1): Update.
8457 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8458 * p-valprint.c (pascal_val_print): Update.
8459 * parse.c (write_exp_msymbol): Update.
8460 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8461 (ppc_elfv2_skip_entrypoint): Update.
8462 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8463 * printcmd.c (build_address_symbolic, msym_info)
8464 (address_info): Update.
8465 * proc-service.c (ps_pglobal_lookup): Update.
8466 * psymtab.c (find_pc_sect_psymtab_closer)
8467 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8468 Change msymbol parameter to bound_minimal_symbol.
8469 * ravenscar-thread.c (get_running_thread_id): Update.
8470 * remote.c (remote_check_symbols): Update.
8471 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8473 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8474 * solib-dsbt.c (lm_base): Update.
8475 * solib-frv.c (lm_base, main_got): Update.
8476 * solib-irix.c (locate_base): Update.
8477 * solib-som.c (som_solib_create_inferior_hook)
8478 (link_map_start): Update.
8479 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8480 * solib-svr4.c (elf_locate_base, enable_break): Update.
8481 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8482 (flush_ea_cache): Update.
8483 * stabsread.c (define_symbol, scan_file_globals): Update.
8484 * stack.c (find_frame_funname): Update.
8485 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8486 (debug_qf_find_pc_sect_symtab): Update.
8487 * symfile.c (simple_read_overlay_table)
8488 (simple_overlay_update): Update.
8489 * symfile.h (struct quick_symbol_functions)
8490 <find_pc_sect_symtab>: Change type of msymbol to
8491 bound_minimal_symbol.
8492 * symmisc.c (dump_msymbols): Update.
8493 * symtab.c (find_pc_sect_symtab_via_partial)
8494 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8495 (search_symbols, print_msymbol_info): Update.
8496 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8497 (MSYMBOL_VALUE_ADDRESS): Redefine.
8498 (BMSYMBOL_VALUE_ADDRESS): New macro.
8499 * tracepoint.c (scope_info): Update.
8500 * tui/tui-disasm.c (tui_find_disassembly_address)
8501 (tui_get_begin_asm_address): Update.
8502 * valops.c (find_function_in_inferior): Update.
8503 * value.c (value_static_field, value_fn_field): Update.
8505 2014-02-26 Tom Tromey <tromey@redhat.com>
8507 * ada-lang.c (ada_update_initial_language): Update.
8508 (ada_main_name, ada_has_this_exception_support): Update.
8509 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8510 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8511 * arm-tdep.c (arm_skip_stub): Update.
8512 * auxv.c (ld_so_xfer_auxv): Update.
8513 * avr-tdep.c (avr_scan_prologue): Update.
8514 * ax-gdb.c (gen_var_ref): Update.
8515 * breakpoint.c (struct breakpoint_objfile_data)
8516 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8517 type to bound_minimal_symbol.
8518 (create_overlay_event_breakpoint)
8519 (create_longjmp_master_breakpoint)
8520 (create_std_terminate_master_breakpoint)
8521 (create_exception_master_breakpoint): Update.
8522 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8523 * c-exp.y (classify_name): Update.
8524 * coffread.c (coff_symfile_read): Update.
8525 * common/agent.c (agent_look_up_symbols): Update.
8526 * d-lang.c (d_main_name): Update.
8527 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8528 * dec-thread.c (enable_dec_thread): Update.
8529 * dwarf2loc.c (call_site_to_target_addr): Update.
8530 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8531 * eval.c (evaluate_subexp_standard): Update.
8532 * findvar.c (struct minsym_lookup_data) <result>: Change type
8533 to bound_minimal_symbol.
8535 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8536 * frame.c (inside_main_func): Update.
8537 * frv-tdep.c (frv_frame_this_id): Update.
8538 * gcore.c (call_target_sbrk): Update.
8539 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8540 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8542 * go-lang.c (go_main_name): Update.
8543 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8544 (hppa_hpux_find_import_stub_for_addr): Update.
8545 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8546 Update. Change return type.
8547 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8549 * jit.c (jit_breakpoint_re_set_internal): Update.
8550 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8552 * linux-nat.c (get_signo): Update.
8553 * linux-thread-db.c (inferior_has_bug): Update
8554 * m32c-tdep.c (m32c_return_value)
8555 (m32c_m16c_address_to_pointer): Update.
8556 * m32r-tdep.c (m32r_frame_this_id): Update.
8557 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8558 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8559 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8560 lookup_minimal_symbol. Change return type.
8561 (lookup_minimal_symbol): Remove.
8562 (lookup_bound_minimal_symbol): Update.
8563 (lookup_minimal_symbol_text): Change return type.
8564 (lookup_minimal_symbol_solib_trampoline): Change return type.
8565 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8566 (lookup_minimal_symbol_solib_trampoline): Change return type.
8567 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8568 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8569 (value_nsstring, find_imps): Update.
8570 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8571 * p-lang.c (pascal_main_name): Update.
8572 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8573 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8574 * proc-service.c (ps_pglobal_lookup): Update.
8575 * ravenscar-thread.c (get_running_thread_msymbol): Change
8577 (has_ravenscar_runtime, get_running_thread_id): Update.
8578 * remote.c (remote_check_symbols): Update.
8579 * sol-thread.c (ps_pglobal_lookup): Update.
8580 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8581 * solib-dsbt.c (lm_base): Update.
8582 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8584 * solib-irix.c (locate_base): Update.
8585 * solib-som.c (som_solib_create_inferior_hook)
8586 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8588 * solib-spu.c (spu_enable_break): Update.
8589 * solib-svr4.c (elf_locate_base, enable_break): Update.
8590 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8591 (flush_ea_cache): Update.
8592 * stabsread.c (define_symbol): Update.
8593 * symfile.c (simple_read_overlay_table): Update.
8594 * symtab.c (find_pc_sect_line): Update.
8595 * tracepoint.c (scope_info): Update.
8596 * tui-disasm.c (tui_get_begin_asm_address): Update.
8597 * value.c (value_static_field): Update.
8599 2014-02-26 Tom Tromey <tromey@redhat.com>
8601 * minsyms.c (prim_record_minimal_symbol_full): Use
8602 SET_MSYMBOL_VALUE_ADDRESS.
8603 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8604 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8605 SET_MSYMBOL_VALUE_ADDRESS.
8606 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8607 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8609 2014-02-26 Tom Tromey <tromey@redhat.com>
8611 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8612 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8613 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8614 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8615 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8616 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8617 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8618 * ada-lang.c (ada_main_name): Update.
8619 (ada_lookup_simple_minsym): Update.
8620 (ada_make_symbol_completion_list): Update.
8621 (ada_add_standard_exceptions): Update.
8622 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8623 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8624 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8625 * arm-tdep.c (skip_prologue_function): Update.
8626 (arm_skip_stack_protector, arm_skip_stub): Update.
8627 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8628 (arm_wince_skip_main_prologue): Update.
8629 * auxv.c (ld_so_xfer_auxv): Update.
8630 * avr-tdep.c (avr_scan_prologue): Update.
8631 * ax-gdb.c (gen_var_ref): Update.
8632 * block.c (call_site_for_pc): Update.
8633 * blockframe.c (get_pc_function_start): Update.
8634 (find_pc_partial_function_gnu_ifunc): Update.
8635 * breakpoint.c (create_overlay_event_breakpoint): Update.
8636 (create_longjmp_master_breakpoint): Update.
8637 (create_std_terminate_master_breakpoint): Update.
8638 (create_exception_master_breakpoint): Update.
8639 (resolve_sal_pc): Update.
8640 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8641 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8643 * c-valprint.c (c_val_print): Update.
8644 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8645 * coffread.c (coff_symfile_read): Update.
8646 * common/agent.c (agent_look_up_symbols): Update.
8647 * dbxread.c (find_stab_function_addr): Update.
8648 (end_psymtab): Update.
8649 * dwarf2loc.c (call_site_to_target_addr): Update.
8650 (func_verify_no_selftailcall): Update.
8651 (tailcall_dump): Update.
8652 (call_site_find_chain_1): Update.
8653 (dwarf_expr_reg_to_entry_parameter): Update.
8654 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8655 (elf_gnu_ifunc_resolve_by_got): Update.
8656 * f-valprint.c (info_common_command): Update.
8657 * findvar.c (read_var_value): Update.
8658 * frame.c (get_prev_frame_1): Update.
8659 (inside_main_func): Update.
8660 * frv-tdep.c (frv_skip_main_prologue): Update.
8661 (frv_frame_this_id): Update.
8662 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8663 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8664 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8665 (gnuv3_skip_trampoline): Update.
8666 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8667 (hppa64_hpux_in_solib_call_trampoline): Update.
8668 (hppa_hpux_skip_trampoline_code): Update.
8669 (hppa64_hpux_search_dummy_call_sequence): Update.
8670 (hppa_hpux_find_import_stub_for_addr): Update.
8671 (hppa_hpux_find_dummy_bpaddr): Update.
8672 * hppa-tdep.c (hppa_symbol_address)
8673 (hppa_lookup_stub_minimal_symbol): Update.
8674 * i386-tdep.c (i386_skip_main_prologue): Update.
8675 (i386_pe_skip_trampoline_code): Update.
8676 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8677 * infcall.c (get_function_name): Update.
8678 * infcmd.c (until_next_command): Update.
8679 * jit.c (jit_breakpoint_re_set_internal): Update.
8680 (jit_inferior_init): Update.
8681 * linespec.c (minsym_found): Update.
8682 (add_minsym): Update.
8683 * linux-fork.c (info_checkpoints_command): Update.
8684 * linux-nat.c (get_signo): Update.
8685 * linux-thread-db.c (inferior_has_bug): Update.
8686 * m32c-tdep.c (m32c_return_value): Update.
8687 (m32c_m16c_address_to_pointer): Update.
8688 (m32c_m16c_pointer_to_address): Update.
8689 * m32r-tdep.c (m32r_frame_this_id): Update.
8690 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8691 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8692 * maint.c (maintenance_translate_address): Update.
8693 * minsyms.c (add_minsym_to_hash_table): Update.
8694 (add_minsym_to_demangled_hash_table): Update.
8695 (msymbol_objfile): Update.
8696 (lookup_minimal_symbol): Update.
8697 (iterate_over_minimal_symbols): Update.
8698 (lookup_minimal_symbol_text): Update.
8699 (lookup_minimal_symbol_by_pc_name): Update.
8700 (lookup_minimal_symbol_solib_trampoline): Update.
8701 (lookup_minimal_symbol_by_pc_section_1): Update.
8702 (lookup_minimal_symbol_and_objfile): Update.
8703 (prim_record_minimal_symbol_full): Update.
8704 (compare_minimal_symbols): Update.
8705 (compact_minimal_symbols): Update.
8706 (build_minimal_symbol_hash_tables): Update.
8707 (install_minimal_symbols): Update.
8708 (terminate_minimal_symbol_table): Update.
8709 (find_solib_trampoline_target): Update.
8710 (minimal_symbol_upper_bound): Update.
8711 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8712 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8713 (mips_skip_pic_trampoline_code): Update.
8714 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8715 * objc-lang.c (selectors_info): Update.
8716 (classes_info): Update.
8717 (find_methods): Update.
8718 (find_imps): Update.
8719 (find_objc_msgsend): Update.
8720 * objfiles.c (objfile_relocate1): Update.
8721 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8722 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8723 * p-valprint.c (pascal_val_print): Update.
8724 * parse.c (write_exp_msymbol): Update.
8725 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8726 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8727 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8728 * printcmd.c (build_address_symbolic): Update.
8730 (address_info): Update.
8731 * proc-service.c (ps_pglobal_lookup): Update.
8732 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8733 (find_pc_sect_psymtab): Update.
8734 * python/py-framefilter.c (py_print_frame): Update.
8735 * ravenscar-thread.c (get_running_thread_id): Update.
8736 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8738 * remote.c (remote_check_symbols): Update.
8739 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8740 (rs6000_skip_trampoline_code): Update.
8741 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8742 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8743 * solib-dsbt.c (lm_base): Update.
8744 * solib-frv.c (lm_base): Update.
8746 * solib-irix.c (locate_base): Update.
8747 * solib-som.c (som_solib_create_inferior_hook): Update.
8748 (som_solib_desire_dynamic_linker_symbols): Update.
8749 (link_map_start): Update.
8750 * solib-spu.c (spu_enable_break): Update.
8751 (ocl_enable_break): Update.
8752 * solib-svr4.c (elf_locate_base): Update.
8753 (enable_break): Update.
8754 * spu-tdep.c (spu_get_overlay_table): Update.
8755 (spu_catch_start): Update.
8756 (flush_ea_cache): Update.
8757 * stabsread.c (define_symbol): Update.
8758 (scan_file_globals): Update.
8759 * stack.c (find_frame_funname): Update.
8760 (frame_info): Update.
8761 * symfile.c (simple_read_overlay_table): Update.
8762 (simple_overlay_update): Update.
8763 * symmisc.c (dump_msymbols): Update.
8764 * symtab.c (fixup_section): Update.
8765 (find_pc_sect_line): Update.
8766 (skip_prologue_sal): Update.
8767 (search_symbols): Update.
8768 (print_msymbol_info): Update.
8769 (rbreak_command): Update.
8770 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8771 (completion_list_objc_symbol): Update.
8772 (default_make_symbol_completion_list_break_on): Update.
8773 * tracepoint.c (scope_info): Update.
8774 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8775 (tui_get_begin_asm_address): Update.
8776 * valops.c (find_function_in_inferior): Update.
8777 * value.c (value_static_field): Update.
8778 (value_fn_field): Update.
8780 2014-02-26 Tom Tromey <tromey@redhat.com>
8782 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8783 bound minimal symbols. Move code that knows about minsym
8785 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8787 * minsyms.h (minimal_symbol_upper_bound): Declare.
8788 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8789 minimal_symbol_upper_bound.
8791 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8793 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8794 Use the type's name if its basic type does not have a tag.
8796 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8798 * dwarf2read.c (read_subrange_type): Add comment.
8800 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8802 * dwarf2read.c (update_enumeration_type_from_children): New
8803 function, mostly extracted from process_structure_scope.
8804 (read_enumeration_type): Call update_enumeration_type_from_children.
8805 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8806 and flag_flag_enum fields.
8808 2014-02-26 Pedro Alves <palves@redhat.com>
8810 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8811 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8812 to_xfer_partial method.
8814 2014-02-26 Pedro Alves <palves@redhat.com>
8816 * target.c (complete_target_initialization): Don't install
8817 default_xfer_partial as to_xfer_partial hook.
8819 (update_current_target): Don't INHERIT nor de_fault
8820 deprecated_xfer_memory. Delete de_fault macro.
8821 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8822 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8823 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8826 2014-02-26 Pedro Alves <palves@redhat.com>
8828 * go32-nat.c (my_write_child): New function.
8829 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8830 (go32_xfer_partial): New function.
8831 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8832 Instead install a to_xfer_partial hook.
8834 2014-02-26 Pedro Alves <palves@redhat.com>
8836 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8837 to_xfer_partial helper. Rewrite.
8838 (procfs_xfer_partial): New function.
8839 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8840 Install a to_xfer_partial hook.
8842 2014-02-26 Pedro Alves <palves@redhat.com>
8844 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8845 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8846 (m32r_xfer_partial): New function.
8847 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8848 Install a to_xfer_partial hook.
8850 2014-02-26 Pedro Alves <palves@redhat.com>
8852 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8854 (mips_xfer_partial): New function.
8855 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8856 hook. Install a to_xfer_partial hook.
8858 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8860 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8861 * gdbtypes.c (create_array_type_with_stride): New function,
8862 renaming create_array_type, but with an added parameter
8863 called "bit_stride".
8864 (create_array_type): Re-implement using
8865 create_array_type_with_stride.
8866 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8867 and DW_AT_bit_stride attributes.
8869 2014-02-26 Pedro Alves <palves@redhat.com>
8871 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8872 task-specific breakpoints.
8874 2014-02-25 Pedro Alves <palves@redhat.com>
8876 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8877 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8879 2014-02-25 Stan Shebs <stan@codesourcery.com>
8881 * defs.h: Annotate comments for Doxygen.
8883 2014-02-25 Tom Tromey <tromey@redhat.com>
8885 * target.h (target_ignore): Don't declare.
8886 * target.c (target_ignore): Remove.
8888 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8891 * auto-load.c (auto_load_objfile_script_1): Change filename to
8894 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8896 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8897 documentation. Adjust prototype to match the target_ops
8898 to_xfer_partial method. Adjust implementation accordingly.
8900 2014-02-25 Hui Zhu <hui@codesourcery.com>
8902 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8905 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8907 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8908 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8909 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8910 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8911 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8912 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8913 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8914 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8916 (rl78_register_type): Use a data pointer type for SP and
8917 new pseudo registers mentioned above. Use a 16 bit integer
8918 type for all other register pairs.
8919 (rl78_register_name, rl78_g10_register_name): Update for
8920 new pseudo registers.
8921 (rl78_pseudo_register_read): Likewise.
8922 (rl78_pseudo_register_write): Likewise.
8923 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8924 to the newly added pseudo registers.
8926 2014-02-24 Doug Evans <dje@google.com>
8928 * value.c (record_latest_value): Fix comment.
8929 * printcmd.c (print_command_1): Remove code to handle -1 return from
8930 record_latest_value.
8932 2014-02-24 Pedro Alves <palves@redhat.com>
8934 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8935 deprecated_xfer_memory hook.
8936 (procfs_xfer_partial): Call procfs_xfer_memory instead
8937 of the deprecated_xfer_memory target hook.
8938 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8941 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8943 * windows-nat.c (windows_xfer_shared_libraries): Return
8944 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8945 requested object is TARGET_OBJECT_LIBRARIES.
8947 2014-02-24 Yao Qi <yao@codesourcery.com>
8949 * target.h (enum target_xfer_status)
8950 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8951 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8953 * corefile.c (memory_error_message): User updated.
8954 * exec.c (section_table_read_available_memory): Likewise.
8955 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8956 * target.c (target_xfer_status_to_string): Likewise.
8957 (raw_memory_xfer_partial): Likewise.
8958 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8959 * valops.c (read_value_memory): Likewise.
8960 * exec.h: Update comments.
8962 2014-02-24 Yao Qi <yao@codesourcery.com>
8964 * target.c (target_xfer_status_to_string): Rename argument err
8966 * target.h (target_xfer_status_to_string): Update declaration.
8967 Replace target_xfer_error_to_string with
8968 target_xfer_status_to_string in comment.
8970 2014-02-24 Yao Qi <yao@codesourcery.com>
8972 * mips-linux-nat.c (super_close): Update its type.
8973 (mips_linux_close): Pass 'self' to super_close.
8975 2014-02-24 Yao Qi <yao@codesourcery.com>
8977 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8978 * corefile.c (read_memory): Adjusted.
8979 * target.c (target_write_with_progress): Adjusted.
8981 2014-02-23 Yao Qi <yao@codesourcery.com>
8985 2013-10-25 Yao Qi <yao@codesourcery.com>
8987 * remote.c (remote_traceframe_info): Return early if
8988 traceframe is not selected.
8990 2013-07-19 Yao Qi <yao@codesourcery.com>
8992 * target.c (update_current_target): Change the default action
8993 of 'to_traceframe_info' from tcomplain to return_zero.
8994 * target.h (struct target_ops) <to_traceframe_info>: Add more
8997 2014-02-23 Yao Qi <yao@codesourcery.com>
8999 * valops.c (read_value_memory): Rewrite it. Call
9000 target_xfer_partial in a loop.
9001 * exec.h (section_table_available_memory): Remove declaration.
9002 Move comments to ...
9003 * exec.c (section_table_available_memory): ... here. Make it
9006 2014-02-23 Yao Qi <yao@codesourcery.com>
9008 * exec.c (section_table_read_available_memory): New function.
9009 * exec.h (section_table_read_available_memory): Declare.
9010 * ctf.c (ctf_xfer_partial): Call
9011 section_table_read_available_memory.
9012 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9014 2014-02-23 Yao Qi <yao@codesourcery.com>
9016 * ctf.c (ctf_xfer_partial): Move code to ...
9017 * exec.c (exec_read_partial_read_only): ... it. New function.
9018 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9019 * tracefile.c: Include "exec.h".
9020 * exec.h (exec_read_partial_read_only): Declare.
9022 2014-02-23 Yao Qi <yao@codesourcery.com>
9024 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9025 (tfile_has_memory): Remove.
9026 (init_tfile_ops): Don't set fields to_has_all_memory and
9027 to_has_memory of tfile_ops.
9028 * tracefile.c (tracefile_has_all_memory): New function.
9029 (tracefile_has_memory): New function.
9030 (init_tracefile_ops): Initialize fields to_has_all_memory and
9031 to_has_memory of 'ops'.
9033 2014-02-23 Yao Qi <yao@codesourcery.com>
9035 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9036 (ctf_thread_alive, ctf_get_trace_status): Remove.
9037 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9039 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9040 (tfile_has_stack, tfile_has_registers): Remove.
9041 (tfile_thread_alive): Remove.
9042 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9044 * tracefile.c (tracefile_has_stack): New function.
9045 (tracefile_has_registers): New function.
9046 (tracefile_thread_alive): New function.
9047 (tracefile_get_trace_status): New function.
9048 (init_tracefile_ops): New function.
9049 * tracefile.h (init_tracefile_ops): Declare.
9051 2014-02-23 Yao Qi <yao@codesourcery.com>
9053 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9054 (O_LARGEFILE): Likewise.
9055 (tfile_ops): Likewise.
9056 (TRACE_HEADER_SIZE): Likewise.
9057 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9058 (cur_data_size): Likewise.
9059 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9060 (tfile_close, tfile_files_info): Likewise.
9061 (tfile_get_trace_status): Likewise.
9062 (tfile_get_tracepoint_status): Likewise.
9063 (tfile_get_traceframe_address): Likewise.
9064 (tfile_trace_find, match_blocktype): Likewise.
9065 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9066 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9067 (tfile_get_trace_state_variable_value): Likewise.
9068 (tfile_has_all_memory, tfile_has_memory): Likewise.
9069 (tfile_has_stack, tfile_has_registers): Likewise.
9070 (tfile_thread_alive, build_traceframe_info): Likewise.
9071 (tfile_traceframe_info, init_tfile_ops): Likewise.
9072 (_initialize_tracepoint): Don't call init_tfile_ops
9073 and add_target_with_completer.
9074 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9075 exec.h, completer.h and filenames.h.
9076 (_initialize_tracefile_tfile): New function.
9078 2014-02-23 Yao Qi <yao@codesourcery.com>
9080 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9082 (HFILES_NO_SRCDIR): Add tracefile.h.
9083 * ctf.c: Include "tracefile.h".
9084 * tracefile.h: New file.
9085 * tracefile.c: New file
9086 * tracefile-tfile.c: New file.
9087 * tracepoint.c: Include "tracefile.h".
9088 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9089 (stop_reason_names): Add const.
9090 (trace_file_writer_xfree): Move it to tracefile.c.
9091 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9092 (trace_save_ctf): Likewise.
9093 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9094 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9095 (tfile_write_header, tfile_write_regblock_type): Likewise.
9096 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9097 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9098 (tfile_write_raw_data, tfile_end): Likewise.
9099 (tfile_trace_file_writer_new): Likewise.
9100 (free_uploaded_tp): Make it extern.
9101 (free_uploaded_tsv): Make it extern.
9102 (_initialize_tracepoint): Move code to register command 'tsave'
9104 * tracepoint.h (stop_reason_names): Declare.
9105 (struct trace_frame_write_ops): Move it to tracefile.h.
9106 (struct trace_file_write_ops): Likewise.
9107 (struct trace_file_writer): Likewise.
9108 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9110 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9113 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9115 (get_cores_used_by_process): New parameter num_cores, use it.
9116 (linux_xfer_osdata_processes): Pass num_cores to it.
9117 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9120 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9122 * target.c (memory_xfer_partial): Fix length arg in call to
9123 breakpoint_xfer_memory.
9125 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9128 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9129 number comes after the + or - signs. Adjust length of register
9130 name to be extracted.
9132 2014-02-20 Tom Tromey <tromey@redhat.com>
9134 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9135 (ada_varobj_ops): Mark "extern".
9137 2014-02-20 Tom Tromey <tromey@redhat.com>
9139 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9141 2014-02-20 Doug Evans <xdje42@gmail.com>
9143 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9144 All callers updated.
9145 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9146 All callers updated.
9147 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9148 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9150 2014-02-20 lin zuojian <manjian2006@gmail.com>
9151 Joel Brobecker <brobecker@adacore.com>
9152 Doug Evans <xdje42@gmail.com>
9155 * dwarf2read.c (struct die_info): New member in_process.
9156 (reset_die_in_process): New function.
9157 (process_die): Set it at the start, reset when returning.
9158 (inherit_abstract_dies): Only call process_die if origin_child_die
9159 not already being processed.
9161 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9163 * windows-nat.c (handle_unload_dll): Add function documentation.
9164 (do_initial_windows_stuff): Add comment explaining why we wait
9165 until after inferior initialization has finished before
9166 processing all DLLs.
9168 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9170 * windows-nat.c (get_module_name): Delete.
9171 (windows_get_exec_module_filename): New function, mostly
9172 inspired from get_module_name.
9173 (windows_pid_to_exec_file): Replace call to get_module_name
9174 by call to windows_get_exec_module_filename.
9176 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9178 * windows-nat.c (handle_load_dll): Rewrite this function's
9179 introductory comment. Remove code using get_module_name
9180 to get the DLL's name.
9182 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9184 * windows-nat.c (get_windows_debug_event): Ignore
9185 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9186 if windows_initialization_done == 0.
9187 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9188 Adjust implementation to always load all DLLs.
9189 (do_initial_windows_stuff): Replace call to
9190 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9192 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9194 * windows-nat.c (_initialize_windows_nat): Deprecate the
9195 "dll-symbols" command. Turn the "add-shared-symbol-files"
9196 and "assf" aliases into commands, and deprecate them as well.
9197 * NEWS: Add entry explaining that "dll-symbols" and its two
9198 aliases are now deprecated.
9200 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9202 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9203 new-line in debug string. Remove trailing spaces.
9205 2014-02-19 Stan Shebs <stan@codesourcery.com>
9207 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9209 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9211 * NEWS: Add entry for the new feature
9212 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9215 2014-02-19 Stan Shebs <stan@codesourcery.com>
9217 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9219 2014-02-19 Pedro Alves <palves@redhat.com>
9221 * common/ptid.h (struct ptid): Mention that process_stratum
9222 targets should prefer ptid.lwp.
9224 2014-02-19 Pedro Alves <palves@redhat.com>
9226 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9227 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9228 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9229 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9230 store remote thread ids rather than ptid.tid.
9231 (_initialize_remote): Adjust.
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9235 * target.c (target_get_unwinder): Rewrite.
9236 (target_get_tailcall_unwinder): Rewrite.
9237 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9238 (record_btrace_to_get_tailcall_unwinder): New function.
9239 (init_record_btrace_ops): Update.
9240 * target.h (struct target_ops) <to_get_unwinder,
9241 to_get_tailcall_unwinder>: Now function pointers. Use
9242 TARGET_DEFAULT_RETURN.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9248 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9252 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9254 * target-delegates.c: Rebuild.
9255 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9256 TARGET_DEFAULT_FUNC.
9257 * target.c (default_target_decr_pc_after_break): Rename from
9258 forward_target_decr_pc_after_break. Simplify.
9259 (target_decr_pc_after_break): Rely on delegation.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target.c (update_current_target): Do not INHERIT to_doc or
9264 to_magic. Do not de_fault to_open or to_close.
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * gcore.h (objfile_find_memory_regions): Declare.
9269 * gcore.c (objfile_find_memory_regions): No longer static. Add
9271 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9272 * exec.c: Include gcore.h.
9273 (exec_set_find_memory_regions): Remove.
9274 (exec_find_memory_regions): Remove.
9275 (exec_do_find_memory_regions): Remove.
9276 (init_exec_ops): Update.
9277 * defs.h (exec_set_find_memory_regions): Remove.
9279 2014-02-19 Tom Tromey <tromey@redhat.com>
9281 * target-delegates.c: Rebuild.
9282 * target.h (struct target_ops) <to_extra_thread_info,
9283 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9284 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9285 not 0, in TARGET_DEFAULT_RETURN.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * target.c (complete_target_initialization): Remove casts. Use
9290 return_zero_has_execution.
9291 (return_zero): Add "ignore" argument.
9292 (return_zero_has_execution): New function.
9293 (init_dummy_target): Remove casts. Use
9294 return_zero_has_execution.
9296 2014-02-19 Tom Tromey <tromey@redhat.com>
9298 * target.c (update_current_target): Update comments. Do not
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9305 * corelow.c (core_read_description): Delegate when needed.
9306 * remote.c (remote_read_description): Delegate when needed.
9307 * target-delegates.c: Rebuild.
9308 * target.c (target_read_description): Rewrite.
9309 * target.h (struct target_ops) <to_read_description>: Update
9310 comment. Use TARGET_DEFAULT_RETURN.
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target-delegates.c: Rebuild.
9315 * target.c (update_current_target): Don't inherit or default
9317 (find_default_run_target): Check against delegate_can_run.
9318 * target.h (struct target_ops) <to_can_run>: Use
9319 TARGET_DEFAULT_RETURN.
9321 2014-02-19 Tom Tromey <tromey@redhat.com>
9323 * target-delegates.c: Rebuild.
9324 * target.c (target_disconnect): Unconditionally delegate.
9325 * target.h (struct target_ops) <to_disconnect>: Use
9326 TARGET_DEFAULT_NORETURN.
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9330 * record.c (record_stop): Unconditionally delegate.
9331 * target-delegates.c: Rebuild.
9332 * target.c (target_stop_recording): Unconditionally delegate.
9333 * target.h (struct target_ops) <to_stop_recording>: Use
9334 TARGET_DEFAULT_IGNORE.
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target-delegates.c: Rebuild.
9339 * target.c (target_enable_btrace): Unconditionally delegate.
9340 * target.h (struct target_ops) <to_enable_btrace>: Use
9341 TARGET_DEFAULT_NORETURN.
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target-delegates.c: Rebuild.
9346 * target.c (target_read_btrace): Unconditionally delegate.
9347 * target.h (struct target_ops) <to_read_btrace>: Use
9348 TARGET_DEFAULT_NORETURN.
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9352 * target-delegates.c: Rebuild.
9353 * target.c (target_teardown_btrace): Unconditionally delegate.
9354 * target.h (struct target_ops) <to_teardown_btrace>: Use
9355 TARGET_DEFAULT_NORETURN.
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target-delegates.c: Rebuild.
9360 * target.c (target_disable_btrace): Unconditionally delegate.
9361 * target.h (struct target_ops) <to_disable_btrace>: Use
9362 TARGET_DEFAULT_NORETURN.
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target-delegates.c: Rebuild.
9367 * target.c (default_search_memory): New function.
9368 (simple_search_memory): Update comment.
9369 (target_search_memory): Unconditionally delegate.
9370 * target.h (struct target_ops) <to_search_memory>: Use
9371 TARGET_DEFAULT_FUNC.
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * auxv.c (default_auxv_parse): No longer static.
9376 (target_auxv_parse): Unconditionally delegate.
9377 * auxv.h (default_auxv_parse): Declare.
9378 * target-delegates.c: Rebuild.
9379 * target.c: Include auxv.h.
9380 * target.h (struct target_ops) <to_auxv_parse>: Use
9381 TARGET_DEFAULT_FUNC.
9383 2014-02-19 Tom Tromey <tromey@redhat.com>
9385 * target-delegates.c: Rebuild.
9386 * target.c (target_memory_map): Unconditionally delegate.
9387 * target.h (struct target_ops) <to_memory_map>: Use
9388 TARGET_DEFAULT_RETURN.
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target-delegates.c: Rebuild.
9393 * target.c (target_thread_alive): Unconditionally delegate.
9394 * target.h (struct target_ops) <to_thread_alive>: Use
9395 TARGET_DEFAULT_RETURN.
9397 2014-02-19 Tom Tromey <tromey@redhat.com>
9399 * target-delegates.c: Rebuild.
9400 * target.c (target_save_record): Unconditionally delegate.
9401 * target.h (struct target_ops) <to_save_record>: Use
9402 TARGET_DEFAULT_NORETURN.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target-delegates.c: Rebuild.
9407 * target.c (target_delete_record): Unconditionally delegate.
9408 * target.h (struct target_ops) <to_delete_record>: Use
9409 TARGET_DEFAULT_NORETURN.
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9413 * target-delegates.c: Rebuild.
9414 * target.c (target_record_is_replaying): Unconditionally
9416 * target.h (struct target_ops) <to_record_is_replaying>: Use
9417 TARGET_DEFAULT_RETURN.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * target-delegates.c: Rebuild.
9422 * target.c (target_goto_record_begin): Unconditionally delegate.
9423 * target.h (struct target_ops) <to_goto_record_begin>: Use
9424 TARGET_DEFAULT_NORETURN.
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target-delegates.c: Rebuild.
9429 * target.c (target_goto_record_end): Unconditionally delegate.
9430 * target.h (struct target_ops) <to_goto_record_end>: Use
9431 TARGET_DEFAULT_NORETURN.
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9435 * target-delegates.c: Rebuild.
9436 * target.c (target_goto_record): Unconditionally delegate.
9437 * target.h (struct target_ops) <to_goto_record>: Use
9438 TARGET_DEFAULT_NORETURN.
9440 2014-02-19 Tom Tromey <tromey@redhat.com>
9442 * target-delegates.c: Rebuild.
9443 * target.c (target_insn_history): Unconditionally delegate.
9444 * target.h (struct target_ops) <to_insn_history>: Use
9445 TARGET_DEFAULT_NORETURN.
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9449 * target-delegates.c: Rebuild.
9450 * target.c (target_insn_history_from): Unconditionally delegate.
9451 * target.h (struct target_ops) <to_insn_history_from>: Use
9452 TARGET_DEFAULT_NORETURN.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target-delegates.c: Rebuild.
9457 * target.c (target_insn_history_range): Unconditionally delegate.
9458 * target.h (struct target_ops) <to_insn_history_range>: Use
9459 TARGET_DEFAULT_NORETURN.
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * target-delegates.c: Rebuild.
9464 * target.c (target_call_history): Unconditionally delegate.
9465 * target.h (struct target_ops) <to_call_history>: Use
9466 TARGET_DEFAULT_NORETURN.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target-delegates.c: Rebuild.
9471 * target.c (target_call_history_from): Unconditionally delegate.
9472 * target.h (struct target_ops) <to_call_history_from>: Use
9473 TARGET_DEFAULT_NORETURN.
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target-delegates.c: Rebuild.
9478 * target.c (target_call_history_range): Unconditionally delegate.
9479 * target.h (struct target_ops) <to_call_history_range>: Use
9480 TARGET_DEFAULT_NORETURN.
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9484 * target-delegates.c: Rebuild.
9485 * target.c (target_verify_memory): Unconditionally delegate.
9486 * target.h (struct target_ops) <to_verify_memory>: Use
9487 TARGET_DEFAULT_NORETURN.
9489 2014-02-19 Tom Tromey <tromey@redhat.com>
9491 * target-delegates.c: Rebuild.
9492 * target.c (target_core_of_thread): Unconditionally delegate.
9493 * target.h (struct target_ops) <to_core_of_thread>: Use
9494 TARGET_DEFAULT_RETURN.
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target-delegates.c: Rebuild.
9499 * target.c (target_flash_done): Unconditionally delegate.
9500 * target.h (struct target_ops) <to_flash_done>: Use
9501 TARGET_DEFAULT_NORETURN.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target-delegates.c: Rebuild.
9506 * target.c (target_flash_erase): Unconditionally delegate.
9507 * target.h (struct target_ops) <to_flash_erase>: Use
9508 TARGET_DEFAULT_NORETURN.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target-delegates.c: Rebuild.
9513 * target.c (target_get_section_table): Unconditionally delegate.
9514 * target.h (struct target_ops) <to_get_section_table>: Use
9515 TARGET_DEFAULT_RETURN.
9517 2014-02-19 Tom Tromey <tromey@redhat.com>
9519 * target-delegates.c: Rebuild.
9520 * target.c (target_pid_to_str): Unconditionally delegate.
9521 (init_dummy_target): Don't initialize to_pid_to_str.
9522 (default_pid_to_str): Rename from dummy_pid_to_str.
9523 * target.h (struct target_ops) <to_pid_to_str>: Use
9524 TARGET_DEFAULT_FUNC.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * target-delegates.c: Rebuild.
9529 * target.c (target_find_new_threads): Unconditionally delegate.
9530 * target.h (struct target_ops) <to_find_new_threads>: Use
9531 TARGET_DEFAULT_RETURN.
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9535 * target-delegates.c: Rebuild.
9536 * target.c (target_program_signals): Unconditionally delegate.
9537 * target.h (struct target_ops) <to_program_signals>: Use
9538 TARGET_DEFAULT_IGNORE.
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target-delegates.c: Rebuild.
9543 * target.c (target_pass_signals): Unconditionally delegate.
9544 * target.h (struct target_ops) <to_pass_signals>: Use
9545 TARGET_DEFAULT_IGNORE.
9547 2014-02-19 Tom Tromey <tromey@redhat.com>
9549 * target-delegates.c: Rebuild.
9550 * target.c (default_mourn_inferior): New function.
9551 (target_mourn_inferior): Unconditionally delegate.
9552 * target.h (struct target_ops) <to_mourn_inferior>: Use
9553 TARGET_DEFAULT_FUNC.
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * target-delegates.c: Rebuild.
9558 * target.c (default_follow_fork): New function.
9559 (target_follow_fork): Unconditionally delegate.
9560 * target.h (struct target_ops) <to_follow_fork>: Use
9561 TARGET_DEFAULT_FUNC.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target-delegates.c: Rebuild.
9566 * target.c (target_kill): Unconditionally delegate.
9567 * target.h (struct target_ops) <to_kill>: Use
9568 TARGET_DEFAULT_NORETURN.
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9572 * target-delegates.c: Rebuild.
9573 * target.c (target_masked_watch_num_registers): Unconditionally
9575 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9576 Use TARGET_DEFAULT_RETURN.
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target-delegates.c: Rebuild.
9581 * target.c (target_remove_mask_watchpoint): Unconditionally
9583 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9584 TARGET_DEFAULT_RETURN.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target-delegates.c: Rebuild.
9589 * target.c (target_insert_mask_watchpoint): Unconditionally
9591 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9592 TARGET_DEFAULT_RETURN.
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9596 * target-delegates.c: Rebuild.
9597 * target.c (target_ranged_break_num_registers): Unconditionally
9599 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9600 Use TARGET_DEFAULT_RETURN.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target-delegates.c: Rebuild.
9605 * target.c (target_fetch_registers): Unconditionally delegate.
9606 * target.h (struct target_ops) <to_fetch_registers>: Use
9607 TARGET_DEFAULT_NORETURN.
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9611 * target-delegates.c: Rebuild.
9612 * target.c (update_current_target): Don't inherit or default
9614 * target.h (struct target_ops) <to_stop>: Use
9615 TARGET_DEFAULT_IGNORE.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target-delegates.c: Rebuild.
9620 * target.c (update_current_target): Don't inherit or default
9621 to_can_run_breakpoint_commands.
9622 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9623 Use TARGET_DEFAULT_RETURN.
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9627 * target-delegates.c: Rebuild.
9628 * target.c (update_current_target): Don't inherit or default
9629 to_supports_evaluation_of_breakpoint_conditions.
9630 * target.h (struct target_ops)
9631 <to_supports_evaluation_of_breakpoint_conditions>: Use
9632 TARGET_DEFAULT_RETURN.
9634 2014-02-19 Tom Tromey <tromey@redhat.com>
9636 * target-delegates.c: Rebuild.
9637 * target.c (update_current_target): Don't inherit or default
9638 to_augmented_libraries_svr4_read.
9639 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9640 Use TARGET_DEFAULT_RETURN.
9642 2014-02-19 Tom Tromey <tromey@redhat.com>
9644 * target-delegates.c: Rebuild.
9645 * target.c (update_current_target): Don't inherit or default
9647 * target.h (struct target_ops) <to_can_use_agent>: Use
9648 TARGET_DEFAULT_RETURN.
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target-delegates.c: Rebuild.
9653 * target.c (update_current_target): Don't inherit or default
9655 * target.h (struct target_ops) <to_use_agent>: Use
9656 TARGET_DEFAULT_NORETURN.
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9660 * target-delegates.c: Rebuild.
9661 * target.c (update_current_target): Don't inherit or default
9663 (return_null): Remove.
9664 * target.h (struct target_ops) <to_traceframe_info>: Use
9665 TARGET_DEFAULT_RETURN.
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9669 * target-delegates.c: Rebuild.
9670 * target.c (update_current_target): Don't inherit or default
9671 to_static_tracepoint_markers_by_strid.
9672 * target.h (struct target_ops)
9673 <to_static_tracepoint_markers_by_strid>: Use
9674 TARGET_DEFAULT_NORETURN.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target-delegates.c: Rebuild.
9679 * target.c (update_current_target): Don't inherit or default
9680 to_static_tracepoint_marker_at.
9681 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9682 Use TARGET_DEFAULT_RETURN.
9684 2014-02-19 Tom Tromey <tromey@redhat.com>
9686 * target-delegates.c: Rebuild.
9687 * target.c (update_current_target): Don't inherit or default
9689 * target.h (struct target_ops) <to_set_permissions>: Use
9690 TARGET_DEFAULT_IGNORE.
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9694 * target-delegates.c: Rebuild.
9695 * target.c (update_current_target): Don't inherit or default
9697 * target.h (struct target_ops) <to_get_tib_address>: Use
9698 TARGET_DEFAULT_NORETURN.
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9702 * target-delegates.c: Rebuild.
9703 * target.c (update_current_target): Don't inherit or default
9705 * target.h (struct target_ops) <to_set_trace_notes>: Use
9706 TARGET_DEFAULT_RETURN.
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9710 * target-delegates.c: Rebuild.
9711 * target.c (update_current_target): Don't initialize
9712 to_set_trace_buffer_size.
9713 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9714 TARGET_DEFAULT_IGNORE.
9716 2014-02-19 Tom Tromey <tromey@redhat.com>
9718 * target-delegates.c: Rebuild.
9719 * target.c (update_current_target): Don't inherit or default
9720 to_set_circular_trace_buffer.
9721 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9722 TARGET_DEFAULT_IGNORE.
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9726 * target-delegates.c: Rebuild.
9727 * target.c (update_current_target): Don't inherit or default
9728 to_set_disconnected_tracing.
9729 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9730 TARGET_DEFAULT_IGNORE.
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9734 * target-delegates.c: Rebuild.
9735 * target.c (update_current_target): Don't inherit or default
9736 to_get_min_fast_tracepoint_insn_len.
9737 (return_minus_one): Remove.
9738 * target.h (struct target_ops)
9739 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9741 2014-02-19 Tom Tromey <tromey@redhat.com>
9743 * target-delegates.c: Rebuild.
9744 * target.c (update_current_target): Don't inherit or default
9745 to_get_raw_trace_data.
9746 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9747 TARGET_DEFAULT_NORETURN.
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9751 * target-delegates.c: Rebuild.
9752 * target.c (update_current_target): Don't inherit or default
9753 to_upload_trace_state_variables.
9754 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9755 Use TARGET_DEFAULT_RETURN.
9757 2014-02-19 Tom Tromey <tromey@redhat.com>
9759 * target-delegates.c: Rebuild.
9760 * target.c (update_current_target): Don't inherit or default
9761 to_upload_tracepoints.
9762 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9763 TARGET_DEFAULT_RETURN.
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * target-delegates.c: Rebuild.
9768 * target.c (update_current_target): Don't inherit or default
9770 * target.h (struct target_ops) <to_save_trace_data>: Use
9771 TARGET_DEFAULT_NORETURN.
9773 2014-02-19 Tom Tromey <tromey@redhat.com>
9775 * target-delegates.c: Rebuild.
9776 * target.c (update_current_target): Don't inherit or default
9777 to_get_trace_state_variable_value.
9778 * target.h (struct target_ops)
9779 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9781 2014-02-19 Tom Tromey <tromey@redhat.com>
9783 * target-delegates.c: Rebuild.
9784 * target.c (update_current_target): Don't inherit or default
9786 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9790 * target-delegates.c: Rebuild.
9791 * target.c (update_current_target): Don't inherit or default
9793 * target.h (struct target_ops) <to_trace_stop>: Use
9794 TARGET_DEFAULT_NORETURN.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target-delegates.c: Rebuild.
9799 * target.c (update_current_target): Don't inherit or default
9800 to_get_tracepoint_status.
9801 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9802 TARGET_DEFAULT_NORETURN.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target-delegates.c: Rebuild.
9807 * target.c (update_current_target): Don't inherit or default
9808 to_get_trace_status.
9809 * target.h (struct target_ops) <to_get_trace_status>: Use
9810 TARGET_DEFAULT_RETURN.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target-delegates.c: Rebuild.
9815 * target.c (update_current_target): Don't inherit or default
9817 * target.h (struct target_ops) <to_trace_start>: Use
9818 TARGET_DEFAULT_NORETURN.
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target-delegates.c: Rebuild.
9823 * target.c (update_current_target): Don't inherit or default
9824 to_trace_set_readonly_regions.
9825 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9826 Use TARGET_DEFAULT_NORETURN.
9828 2014-02-19 Tom Tromey <tromey@redhat.com>
9830 * target-delegates.c: Rebuild.
9831 * target.c (update_current_target): Don't inherit or default
9832 to_disable_tracepoint.
9833 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9834 TARGET_DEFAULT_NORETURN.
9836 2014-02-19 Tom Tromey <tromey@redhat.com>
9838 * target-delegates.c: Rebuild.
9839 * target.c (update_current_target): Don't inherit or default
9840 to_enable_tracepoint.
9841 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9842 TARGET_DEFAULT_NORETURN.
9844 2014-02-19 Tom Tromey <tromey@redhat.com>
9846 * target-delegates.c: Rebuild.
9847 * target.c (update_current_target): Don't inherit or default
9848 to_download_trace_state_variable.
9849 * target.h (struct target_ops) <to_download_trace_state_variable>:
9850 Use TARGET_DEFAULT_NORETURN.
9852 2014-02-19 Tom Tromey <tromey@redhat.com>
9854 * target-delegates.c: Rebuild.
9855 * target.c (update_current_target): Don't inherit or default
9856 to_can_download_tracepoint.
9857 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9858 TARGET_DEFAULT_RETURN.
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9862 * target-delegates.c: Rebuild.
9863 * target.c (update_current_target): Don't inherit or default
9864 to_download_tracepoint.
9865 * target.h (struct target_ops) <to_download_tracepoint>: Use
9866 TARGET_DEFAULT_NORETURN.
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9870 * target-delegates.c: Rebuild.
9871 * target.c (update_current_target): Don't inherit or default
9873 * target.h (struct target_ops) <to_trace_init>: Use
9874 TARGET_DEFAULT_RETURN.
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9878 * target-delegates.c: Rebuild.
9879 * target.c (update_current_target): Don't inherit or default
9880 to_supports_string_tracing.
9881 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9882 TARGET_DEFAULT_RETURN.
9884 2014-02-19 Tom Tromey <tromey@redhat.com>
9886 * target-delegates.c: Rebuild.
9887 * target.c (update_current_target): Don't inherit or default
9888 to_supports_enable_disable_tracepoint.
9889 * target.h (struct target_ops)
9890 <to_supports_enable_disable_tracepoint>: Use
9891 TARGET_DEFAULT_RETURN.
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9895 * target-delegates.c: Rebuild.
9896 * target.c (update_current_target): Don't inherit or default
9897 to_supports_multi_process.
9898 * target.h (struct target_ops) <to_supports_multi_process>: Use
9899 TARGET_DEFAULT_RETURN.
9901 2014-02-19 Tom Tromey <tromey@redhat.com>
9903 * target-delegates.c: Rebuild.
9904 * target.c (update_current_target): Don't inherit or default
9905 to_get_ada_task_ptid.
9906 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9907 TARGET_DEFAULT_FUNC.
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9911 * target-delegates.c: Rebuild.
9912 * target.c (update_current_target): Don't inherit or default
9913 to_thread_architecture.
9914 * target.h (struct target_ops) <to_thread_architecture>: Use
9915 TARGET_DEFAULT_FUNC.
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9919 * target-delegates.c: Rebuild.
9920 * target.c (update_current_target): Don't inherit or default
9921 to_execution_direction.
9922 * target.h (struct target_ops) <to_execution_direction>: Use
9923 TARGET_DEFAULT_FUNC.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target-delegates.c: Rebuild.
9928 * target.c (update_current_target): Don't inherit or default
9929 to_can_execute_reverse.
9930 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9931 TARGET_DEFAULT_RETURN.
9932 (target_can_execute_reverse): Unconditionally delegate.
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9936 * target-delegates.c: Rebuild.
9937 * target.c (update_current_target): Don't inherit or default
9939 (dummy_goto_bookmark): Remove.
9940 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9941 * target.h (struct target_ops) <to_goto_bookmark>: Use
9942 TARGET_DEFAULT_NORETURN.
9944 2014-02-19 Tom Tromey <tromey@redhat.com>
9946 * target-delegates.c: Rebuild.
9947 * target.c (update_current_target): Don't inherit or default
9949 (dummy_get_bookmark): Remove.
9950 (init_dummy_target): Don't inherit or default to_get_bookmark.
9951 * target.h (struct target_ops) <to_get_bookmark>: Use
9952 TARGET_DEFAULT_NORETURN
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * target-delegates.c: Rebuild.
9957 * target.c (update_current_target): Don't inherit or default
9958 to_make_corefile_notes.
9959 (init_dummy_target): Don't initialize to_make_corefile_notes.
9960 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9961 TARGET_DEFAULT_FUNC.
9963 2014-02-19 Tom Tromey <tromey@redhat.com>
9965 * target-delegates.c: Rebuild.
9966 * target.c (update_current_target): Don't inherit or default
9967 to_find_memory_regions.
9968 (init_dummy_target): Don't initialize to_find_memory_regions.
9969 * target.h (struct target_ops) <to_find_memory_regions>: Use
9970 TARGET_DEFAULT_FUNC.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9977 * target.h (struct target_ops) <to_log_command>: Use
9978 TARGET_DEFAULT_IGNORE.
9979 (target_log_command): Unconditionally delegate.
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9983 * target-delegates.c: Rebuild.
9984 * target.c (update_current_target): Don't inherit or default
9985 to_pid_to_exec_file.
9986 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9987 TARGET_DEFAULT_RETURN.
9989 2014-02-19 Tom Tromey <tromey@redhat.com>
9991 * target-delegates.c: Rebuild.
9992 * target.c (update_current_target): Don't inherit or default
9994 (target_thread_name): Unconditionally delegate.
9995 * target.h (struct target_ops) <to_thread_name>: Use
9996 TARGET_DEFAULT_RETURN.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target-delegates.c: Rebuild.
10001 * target.c (update_current_target): Don't inherit or default
10002 to_extra_thread_info.
10003 * target.h (struct target_ops) <to_extra_thread_info>: Use
10004 TARGET_DEFAULT_RETURN.
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't inherit or default
10011 * target.h (struct target_ops) <to_has_exited>: Use
10012 TARGET_DEFAULT_RETURN..
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_set_syscall_catchpoint.
10019 (return_one): Remove.
10020 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10021 TARGET_DEFAULT_RETURN.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target-delegates.c: Rebuild.
10026 * target.c (update_current_target): Don't inherit or default
10027 to_insert_exec_catchpoint.
10028 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10029 TARGET_DEFAULT_RETURN.
10031 2014-01-08 Tom Tromey <tromey@redhat.com>
10033 * target-delegates.c: Rebuild.
10034 * target.c (update_current_target): Don't inherit or default
10035 to_insert_exec_catchpoint.
10036 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10037 TARGET_DEFAULT_RETURN.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target-delegates.c: Rebuild.
10042 * target.c (update_current_target): Don't inherit or default
10043 to_remove_vfork_catchpoint.
10044 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10045 TARGET_DEFAULT_RETURN.
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10049 * target-delegates.c: Rebuild.
10050 * target.c (update_current_target): Don't inherit or default
10051 to_insert_vfork_catchpoint.
10052 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10053 TARGET_DEFAULT_RETURN.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * target-delegates.c: Rebuild.
10058 * target.c (update_current_target): Don't inherit or default
10059 to_remove_fork_catchpoint.
10060 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10061 TARGET_DEFAULT_RETURN.
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10065 * target-delegates.c: Rebuild.
10066 * target.c (update_current_target): Don't inherit or default
10067 to_insert_fork_catchpoint.
10068 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10069 TARGET_DEFAULT_RETURN.
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10073 * target-delegates.c: Rebuild.
10074 * target.c (update_current_target): Don't inherit or default
10075 to_post_startup_inferior.
10076 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10077 TARGET_DEFAULT_IGNORE.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * target-delegates.c: Rebuild.
10082 * target.c (update_current_target): Don't inherit or default
10084 * target.h (struct target_ops) <to_load>: Use
10085 TARGET_DEFAULT_NORETURN.
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10089 * target-delegates.c: Rebuild.
10090 * target.c (update_current_target): Don't inherit or default
10092 * target.h (struct target_ops) <to_terminal_info>: Use
10093 TARGET_DEFAULT_FUNC.
10095 2014-02-19 Tom Tromey <tromey@redhat.com>
10097 * target-delegates.c: Rebuild.
10098 * target.c (update_current_target): Don't inherit or default
10099 to_terminal_save_ours.
10100 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10101 TARGET_DEFAULT_IGNORE.
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10105 * target-delegates.c: Rebuild.
10106 * target.c (update_current_target): Don't inherit or default
10108 * target.h (struct target_ops) <to_terminal_ours>: Use
10109 TARGET_DEFAULT_IGNORE.
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10113 * target-delegates.c: Rebuild.
10114 * target.c (update_current_target): Don't inherit or default
10115 to_terminal_ours_for_output.
10116 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10117 TARGET_DEFAULT_IGNORE.
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * target-delegates.c: Rebuild.
10122 * target.c (update_current_target): Don't inherit or default
10123 to_terminal_inferior.
10124 * target.h (struct target_ops) <to_terminal_inferior>: Use
10125 TARGET_DEFAULT_IGNORE.
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target-delegates.c: Rebuild.
10130 * target.c (update_current_target): Don't inherit or default
10132 * target.h (struct target_ops) <to_terminal_init>: Use
10133 TARGET_DEFAULT_IGNORE.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * target-delegates.c: Rebuild.
10138 * target.c (update_current_target): Don't inherit or default
10139 to_can_accel_watchpoint_condition.
10140 * target.h (struct target_ops)
10141 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target-delegates.c: Rebuild.
10146 * target.c (update_current_target): Don't inherit or default
10147 to_region_ok_for_hw_watchpoint.
10148 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10149 Use TARGET_DEFAULT_FUNC.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target-delegates.c: Rebuild.
10154 * target.c (update_current_target): Don't inherit or default
10155 to_watchpoint_addr_within_range.
10156 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10157 Use TARGET_DEFAULT_FUNC.
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target-delegates.c: Rebuild.
10162 * target.c (update_current_target): Don't inherit or default
10163 to_remove_watchpoint.
10164 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10165 TARGET_DEFAULT_NORETURN.
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10169 * target-delegates.c: Rebuild.
10170 * target.c (update_current_target): Don't inherit or default
10171 to_insert_watchpoint.
10172 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10173 TARGET_DEFAULT_RETURN.
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target-delegates.c: Rebuild.
10178 * target.c (update_current_target): Don't inherit or default
10179 to_remove_hw_breakpoint.
10180 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10181 TARGET_DEFAULT_RETURN.
10183 2014-02-19 Tom Tromey <tromey@redhat.com>
10185 * target-delegates.c: Rebuild.
10186 * target.c (update_current_target): Don't inherit or default
10187 to_insert_hw_breakpoint.
10188 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10189 TARGET_DEFAULT_RETURN.
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10193 * target-delegates.c: Rebuild.
10194 * target.c (update_current_target): Don't inherit or default
10195 to_can_use_hw_breakpoint.
10196 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10197 TARGET_DEFAULT_RETURN.
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10201 * target-delegates.c: Rebuild.
10202 * target.c (update_current_target): Don't inherit or default
10204 * target.h (struct target_ops) <to_files_info>: Use
10205 TARGET_DEFAULT_IGNORE.
10207 2014-02-19 Tom Tromey <tromey@redhat.com>
10209 * target-delegates.c: Rebuild.
10210 * target.c (update_current_target): Don't inherit or default
10212 * target.h (struct target_ops) <to_store>: Use
10213 TARGET_DEFAULT_NORETURN.
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target-delegates.c: Rebuild.
10218 * target.c (update_current_target): Don't inherit or default
10220 * target.h (struct target_ops) <to_post_attach>: Use
10221 TARGET_DEFAULT_IGNORE.
10223 2014-02-19 Tom Tromey <tromey@redhat.com>
10225 * target-delegates.c: Rebuild.
10226 * target.c (update_current_target): Don't inherit or default
10228 (default_rcmd): New function.
10229 (do_monitor_command): Unconditionally delegate.
10230 * target.h (struct target_ops) <to_rmcd>: Use
10231 TARGET_DEFAULT_FUNC.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target-delegates.c: Rebuild.
10236 * target.c (init_dummy_target): Don't initialize to_attach.
10237 (target_attach): Unconditionally delegate.
10238 * target.h (struct target_ops) <to_attach>: Use
10239 TARGET_DEFAULT_FUNC.
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target-delegates.c: Rebuild.
10244 * target.c (target_detach): Unconditionally delegate.
10245 (init_dummy_target): Don't initialize to_detach.
10246 * target.h (struct target_ops) <to_detach>: Use
10247 TARGET_DEFAULT_IGNORE.
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10253 (target_augmented_libraries_svr4_read): Add argument.
10254 * target.c (update_current_target): Update.
10255 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10258 2014-02-19 Tom Tromey <tromey@redhat.com>
10260 * target.h (struct target_ops) <to_call_history_range>: Add
10262 * target.c (target_call_history_range): Add argument.
10263 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10265 (record_btrace_call_history_from): Update.
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * target.h (struct target_ops) <to_call_history_from>: Add
10271 * target.c (target_call_history_from): Add argument.
10272 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10277 * target.h (struct target_ops) <to_call_history>: Add argument.
10278 * target.c (target_call_history): Add argument.
10279 * record-btrace.c (record_btrace_call_history): Add 'self'
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10284 * target.h (struct target_ops) <to_insn_history_range>: Add
10286 * target.c (target_insn_history_range): Add argument.
10287 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10289 (record_btrace_insn_history_from): Update.
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10293 * target.h (struct target_ops) <to_insn_history_from>: Add
10295 * target.c (target_insn_history_from): Add argument.
10296 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10301 * target.h (struct target_ops) <to_insn_history>: Add argument.
10302 * target.c (target_insn_history): Add argument.
10303 * record-btrace.c (record_btrace_insn_history): Add 'self'
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10308 * target.h (struct target_ops) <to_goto_record>: Add argument.
10309 * target.c (target_goto_record): Add argument.
10310 * record-full.c (record_full_goto): Add 'self' argument.
10311 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10315 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10316 * target.c (target_goto_record_end): Add argument.
10317 * record-full.c (record_full_goto_end): Add 'self' argument.
10318 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10322 * target.h (struct target_ops) <to_goto_record_begin>: Add
10324 * target.c (target_goto_record_begin): Add argument.
10325 * record-full.c (record_full_goto_begin): Add 'self' argument.
10326 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target.h (struct target_ops) <to_record_is_replaying>: Add
10333 * target.c (target_record_is_replaying): Add argument.
10334 * record-full.c (record_full_is_replaying): Add 'self' argument.
10335 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10337 (record_btrace_xfer_partial, record_btrace_store_registers)
10338 (record_btrace_prepare_to_store, record_btrace_resume)
10339 (record_btrace_wait, record_btrace_decr_pc_after_break)
10340 (record_btrace_find_new_threads, record_btrace_thread_alive):
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10345 * target.h (struct target_ops) <to_delete_record>: Add argument.
10346 * target.c (target_delete_record): Add argument.
10347 * record-full.c (record_full_delete): Add 'self' argument.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * target.h (struct target_ops) <to_save_record>: Add argument.
10352 * target.c (target_save_record): Add argument.
10353 * record-full.c (record_full_save): Add 'self' argument.
10354 (record_full_save): Add 'self' argument.
10356 2014-02-19 Tom Tromey <tromey@redhat.com>
10358 * target.h (struct target_ops) <to_info_record>: Add argument.
10359 * target.c (target_info_record): Add argument.
10360 * record.c (info_record_command): Add argument.
10361 * record-full.c (record_full_info): Add 'self' argument.
10362 * record-btrace.c (record_btrace_info): Add 'self' argument.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10367 * target.c (target_stop_recording): Add argument.
10368 * record.c (record_stop): Add argument.
10369 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10374 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10375 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10376 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10378 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10379 (_initialize_amd64_linux_nat): Use it.
10380 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10381 (_initialize_i386_linux_nat): Use it.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10386 * target.c (target_teardown_btrace): Add argument.
10387 * remote.c (remote_teardown_btrace): Add 'self' argument.
10388 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10390 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10395 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10396 * target.c (target_disable_btrace): Add argument.
10397 * remote.c (remote_disable_btrace): Add 'self' argument.
10398 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10400 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10405 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10406 * target.c (target_enable_btrace): Add argument.
10407 * remote.c (remote_enable_btrace): Add 'self' argument.
10408 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10410 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10415 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10416 (target_can_use_agent): Add argument.
10417 * target.c (update_current_target): Update.
10418 * remote.c (remote_can_use_agent): Add 'self' argument.
10419 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10423 * target.h (struct target_ops) <to_use_agent>: Add argument.
10424 (target_use_agent): Add argument.
10425 * target.c (update_current_target): Update.
10426 * remote.c (remote_use_agent): Add 'self' argument.
10427 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10431 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10432 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10433 (target_traceframe_info): Add argument.
10434 * target.c (update_current_target): Update.
10435 * remote.c (remote_traceframe_info): Add 'self' argument.
10436 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10440 * target.h (target_static_tracepoint_markers_by_strid): Add
10442 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10444 * target.c (update_current_target): Update.
10445 * remote.c (struct target_ops)
10446 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10447 * linux-nat.c (struct target_ops)
10448 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10452 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10454 (target_static_tracepoint_marker_at): Add argument.
10455 * target.c (update_current_target): Update.
10456 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10461 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10462 (target_set_permissions): Add argument.
10463 * target.c (update_current_target): Update.
10464 * remote.c (remote_set_permissions): Add 'self' argument.
10465 (remote_start_remote): Update.
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10470 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10471 (target_get_tib_address): Add argument.
10472 * target.c (update_current_target): Update.
10473 * remote.c (remote_get_tib_address): Add 'self' argument.
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10477 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10478 (target_set_trace_notes): Add argument.
10479 * target.c (update_current_target): Update.
10480 * remote.c (remote_set_trace_notes): Add 'self' argument.
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10484 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10486 (target_set_trace_buffer_size): Add argument.
10487 * target.c (update_current_target): Update.
10488 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10494 (target_set_circular_trace_buffer): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10499 2014-02-19 Tom Tromey <tromey@redhat.com>
10501 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10503 (target_set_disconnected_tracing): Add argument.
10504 * target.c (update_current_target): Update.
10505 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10509 * target.h (struct target_ops)
10510 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10511 (target_get_min_fast_tracepoint_insn_len): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10518 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10520 (target_get_raw_trace_data): Add argument.
10521 * target.c (update_current_target): Update.
10522 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10528 (target_upload_trace_state_variables): Add argument.
10529 * target.c (update_current_target): Update.
10530 * remote.c (remote_upload_trace_state_variables): Add 'self'
10532 (remote_start_remote): Update.
10534 2014-02-19 Tom Tromey <tromey@redhat.com>
10536 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10538 (target_upload_tracepoints): Add argument.
10539 * target.c (update_current_target): Update.
10540 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10541 (remote_start_remote): Update.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10546 (target_save_trace_data): Add argument.
10547 * target.c (update_current_target): Update.
10548 * remote.c (remote_save_trace_data): Add 'self' argument.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10554 * target.h (struct target_ops)
10555 <to_get_trace_state_variable_value>: Add argument.
10556 (target_get_trace_state_variable_value): Add argument.
10557 * target.c (update_current_target): Update.
10558 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10560 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10562 2014-02-19 Tom Tromey <tromey@redhat.com>
10564 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10565 * target.h (struct target_ops) <to_trace_find>: Add argument.
10566 (target_trace_find): Add argument.
10567 * target.c (update_current_target): Update.
10568 * remote.c (remote_trace_find): Add 'self' argument.
10569 * ctf.c (ctf_trace_find): Add 'self' argument.
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10573 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10574 (target_trace_stop): Add argument.
10575 * target.c (update_current_target): Update.
10576 * remote.c (remote_trace_stop): Add 'self' argument.
10578 2014-02-19 Tom Tromey <tromey@redhat.com>
10580 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10581 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10583 (target_get_tracepoint_status): Add argument.
10584 * target.c (update_current_target): Update.
10585 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10589 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10590 * target.h (struct target_ops) <to_get_trace_status>: Add
10592 (target_get_trace_status): Add argument.
10593 * target.c (update_current_target): Update.
10594 * remote.c (remote_get_trace_status): Add 'self' argument.
10595 (remote_start_remote, remote_can_download_tracepoint): Update.
10596 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10598 2014-02-19 Tom Tromey <tromey@redhat.com>
10600 * target.h (struct target_ops) <to_trace_start>: Add argument.
10601 (target_trace_start): Add argument.
10602 * target.c (update_current_target): Update.
10603 * remote.c (remote_trace_start): Add 'self' argument.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10609 (target_trace_set_readonly_regions): Add argument.
10610 * target.c (update_current_target): Update.
10611 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10618 (target_disable_tracepoint): Add argument.
10619 * target.c (update_current_target): Update.
10620 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10626 (target_enable_tracepoint): Add argument.
10627 * target.c (update_current_target): Update.
10628 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10632 * target.h (struct target_ops) <to_download_trace_state_variable>:
10634 (target_download_trace_state_variable): Add argument.
10635 * target.c (update_current_target): Update.
10636 * remote.c (remote_download_trace_state_variable): Add 'self'
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10641 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10643 (target_can_download_tracepoint): Add argument.
10644 * target.c (update_current_target): Update.
10645 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * target.h (struct target_ops) <to_download_tracepoint>: Add
10651 (target_download_tracepoint): Add argument.
10652 * target.c (update_current_target): Update.
10653 * remote.c (remote_download_tracepoint): Add 'self' argument.
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10657 * target.h (struct target_ops) <to_trace_init>: Add argument.
10658 (target_trace_init): Add argument.
10659 * target.c (update_current_target): Update.
10660 * remote.c (remote_trace_init): Add 'self' argument.
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10664 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10665 * target.c (target_fileio_readlink): Add argument.
10666 * remote.c (remote_hostio_readlink): Add 'self' argument.
10667 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10672 * target.c (target_fileio_unlink): Add argument.
10673 * remote.c (remote_hostio_unlink): Add 'self' argument.
10674 (remote_file_delete): Update.
10675 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10680 * target.c (target_fileio_close): Add argument.
10681 * remote.c (remote_hostio_close): Add 'self' argument.
10682 (remote_hostio_close_cleanup): Update.
10683 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10685 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10689 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10690 * target.c (target_fileio_pread): Add argument.
10691 * remote.c (remote_hostio_pread): Add 'self' argument.
10692 (remote_bfd_iovec_pread, remote_file_get): Update.
10693 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10698 * target.c (target_fileio_pwrite): Add argument.
10699 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10700 (remote_file_put): Update.
10701 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10706 * target.c (target_fileio_open): Add argument.
10707 * remote.c (remote_hostio_open): Add 'self' argument.
10708 (remote_bfd_iovec_open): Add 'self' argument.
10709 (remote_file_put): Add 'self' argument.
10710 (remote_file_get): Add 'self' argument.
10711 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10715 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10717 (target_can_run_breakpoint_commands): Add argument.
10718 * target.c (update_current_target): Update.
10719 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10721 (remote_insert_breakpoint): Add 'self' argument.
10722 (remote_insert_hw_breakpoint): Add 'self' argument.
10723 (remote_can_run_breakpoint_commands): Add 'self' argument.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target.h (struct target_ops)
10728 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10729 (target_supports_evaluation_of_breakpoint_conditions): Add
10731 * target.c (update_current_target): Update.
10732 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10734 (remote_insert_breakpoint): Add 'self' argument.
10735 (remote_insert_hw_breakpoint): Add 'self' argument.
10736 (remote_supports_cond_breakpoints): Add 'self' argument.
10738 2014-02-19 Tom Tromey <tromey@redhat.com>
10740 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10742 (target_supports_string_tracing): Add argument.
10743 * target.c (update_current_target): Update.
10744 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10748 * target.h (struct target_ops)
10749 <to_supports_disable_randomization>: Add argument.
10750 * target.c (find_default_supports_disable_randomization): Add
10752 (target_supports_disable_randomization): Add argument.
10753 (find_default_supports_disable_randomization): Add 'self'
10755 * remote.c (extended_remote_supports_disable_randomization): Add
10757 (remote_supports_disable_randomization): Add 'self' argument.
10758 (extended_remote_create_inferior): Update.
10759 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10764 * target.h (struct target_ops)
10765 <to_supports_enable_disable_tracepoint>: Add argument.
10766 (target_supports_enable_disable_tracepoint): Add argument.
10767 * target.c (update_current_target): Update.
10768 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10773 * target.h (struct target_ops) <to_supports_multi_process>: Add
10775 (target_supports_multi_process): Add argument.
10776 * target.c (update_current_target): Update.
10777 * remote.c (remote_supports_multi_process): Add 'self' argument.
10778 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10780 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10785 * target.h (struct target_ops) <to_execution_direction>: Add
10787 (target_execution_direction): Add argument.
10788 * target.c (default_execution_direction): Add 'self' argument.
10789 * record-full.c (record_full_execution_direction): Add 'self'
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10794 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10796 (target_can_execute_reverse): Add argument.
10797 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10798 * record-full.c (record_full_can_execute_reverse): Add 'self'
10800 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10806 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10808 (target_get_ada_task_ptid): Add argument.
10809 * target.c (update_current_target): Update.
10810 (default_get_ada_task_ptid): Add 'self' argument.
10811 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10812 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10813 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10815 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10817 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10819 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10821 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10822 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10827 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10828 (target_goto_bookmark): Add argument.
10829 * target.c (dummy_goto_bookmark): Add 'self' argument.
10830 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10835 (target_get_bookmark): Add argument.
10836 * target.c (dummy_get_bookmark): Add 'self' argument.
10837 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10839 2014-02-19 Tom Tromey <tromey@redhat.com>
10841 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10843 (target_make_corefile_notes): Add argument.
10844 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10845 * procfs.c (procfs_make_note_section): Add 'self' argument.
10846 (procfs_make_note_section): Add 'self' argument.
10847 (procfs_make_note_section): Add 'self' argument.
10848 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10850 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10851 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10852 * exec.c (exec_make_note_section): Add 'self' argument.
10853 (exec_make_note_section): Add 'self' argument.
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target.h (struct target_ops) <to_find_memory_regions>: Add
10859 (target_find_memory_regions): Add argument.
10860 * target.c (dummy_find_memory_regions): Add 'self' argument.
10861 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10862 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10863 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10864 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10865 * exec. (exec_do_find_memory_regions): New global.
10866 (exec_set_find_memory_regions): Rewrite.
10867 (exec_find_memory_regions): New function.
10868 (init_exec_ops): Use exec_find_memory_regions.
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10872 * target.h (struct target_ops) <to_supports_non_stop>: Add
10874 * target.c (find_default_supports_non_stop): Add argument.
10875 (target_supports_non_stop): Add argument.
10876 (find_default_supports_non_stop): Add 'self' argument.
10877 * remote.c (remote_supports_non_stop): Add 'self' argument.
10878 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target.h (struct target_ops) <to_log_command>: Add argument.
10883 (target_log_command): Add argument.
10884 * serial.h (serial_log_command): Add 'self' argument.
10885 * serial.c (serial_log_command): Add 'self' argument.
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10889 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10890 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10892 (target_pid_to_exec_file): Add argument.
10893 * target.c (debug_to_pid_to_exec_file): Add argument.
10894 (update_current_target): Update.
10895 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10896 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10897 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10898 (linux_handle_extended_wait): Update.
10899 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10900 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10901 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10902 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10904 2014-02-19 Tom Tromey <tromey@redhat.com>
10906 * target.h (struct target_ops) <to_rcmd>: Add argument.
10907 (target_rcmd): Add argument.
10908 * target.c (debug_to_rcmd): Add argument.
10909 (update_current_target, do_monitor_command): Update.
10910 * remote.c (remote_rcmd): Add 'self' argument.
10911 * monitor.c (monitor_rcmd): Add 'self' argument.
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * windows-nat.c (windows_stop): Add 'self' argument.
10916 * target.h (struct target_ops) <to_stop>: Add argument.
10917 * target.c (target_stop): Add argument.
10918 (debug_to_stop): Add argument.
10919 (update_current_target): Update.
10920 * remote.c (remote_stop): Add 'self' argument.
10921 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10922 (gdbsim_cntrl_c): Update.
10923 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10924 * procfs.c (procfs_stop): Add 'self' argument.
10925 * nto-procfs.c (procfs_stop): Add 'self' argument.
10926 * monitor.c (monitor_stop): Add 'self' argument.
10927 (monitor_open): Update.
10928 * linux-nat.c (linux_nat_stop): Add argument.
10929 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10930 * gnu-nat.c (gnu_stop): Add 'self' argument.
10931 * darwin-nat.c (darwin_stop): Add 'self' argument.
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * target.h (struct target_ops) <to_thread_name>: Add argument.
10936 * target.c (target_thread_name): Add argument.
10937 (update_current_target): Update.
10938 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target.h (struct target_ops) <to_extra_thread_info>: Add
10944 (target_extra_thread_info): Add argument.
10945 * target.c (update_current_target): Update.
10946 * remote.c (remote_threads_extra_info): Add 'self' argument.
10947 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10949 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10950 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10951 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10953 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10955 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10957 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10962 * target.h (struct target_ops) <to_program_signals>: Add argument.
10963 * target.c (target_program_signals): Add argument.
10964 * remote.c (remote_program_signals): Add 'self' argument.
10966 2014-02-19 Tom Tromey <tromey@redhat.com>
10968 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10969 * target.c (target_pass_signals): Add argument.
10970 * remote.c (remote_pass_signals): Add 'self' argument.
10971 (remote_start_remote): Update.
10972 * procfs.c (procfs_pass_signals): Add 'self' argument.
10973 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10974 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10975 (linux_nat_create_inferior, linux_nat_attach): Update.
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10979 * windows-nat.c (windows_can_run): Add 'self' argument.
10980 * target.h (struct target_ops) <to_can_run>: Add argument.
10981 (target_can_run): Add argument.
10982 * target.c (debug_to_can_run): Add argument.
10983 (update_current_target): Update.
10984 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10985 * inf-child.c (inf_child_can_run): Add 'self' argument.
10986 * go32-nat.c (go32_can_run): Add 'self' argument.
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target.h (struct target_ops) <to_has_exited>: Add argument.
10991 (target_has_exited): Add argument.
10992 * target.c (debug_to_has_exited): Add argument.
10993 (update_current_target): Update.
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10997 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10999 (target_set_syscall_catchpoint): Add argument.
11000 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11002 * target.c (update_current_target): Update.
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11006 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11008 (target_remove_exec_catchpoint): Add argument.
11009 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11010 (update_current_target): Update.
11011 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11014 2014-02-19 Tom Tromey <tromey@redhat.com>
11016 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11018 (target_insert_exec_catchpoint): Add argument.
11019 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11020 (update_current_target): Update.
11021 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11028 (target_remove_vfork_catchpoint): Add argument.
11029 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11030 (update_current_target): Update.
11031 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11038 (target_insert_vfork_catchpoint): Add argument.
11039 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11040 (update_current_target): Update.
11041 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11046 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11048 (target_remove_fork_catchpoint): Add argument.
11049 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11050 (update_current_target): Update.
11051 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11056 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11058 (target_insert_fork_catchpoint): Add argument.
11059 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11060 (update_current_target): Update.
11061 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11068 (target_post_startup_inferior): Add argument.
11069 * target.c (debug_to_post_startup_inferior): Add argument.
11070 (update_current_target): Update.
11071 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11073 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11075 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11077 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11079 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11081 (super_post_startup_inferior): Likewise.
11082 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11084 (super_post_startup_inferior): Likewise.
11085 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11086 Add 'self' argument.
11087 (super_post_startup_inferior): Likewise.
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11091 * target.h (struct target_ops) <to_load>: Add argument.
11092 * target.c (target_load): Add argument.
11093 (debug_to_load): Add argument.
11094 (update_current_target): Update.
11095 * remote.c (remote_load): Add 'self' argument.
11096 * remote-sim.c (gdbsim_load): Add 'self' argument.
11097 * remote-mips.c (mips_load): Add 'self' argument.
11098 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11099 * monitor.c (monitor_load): Add 'self' argument.
11100 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11104 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11105 (target_terminal_info): Add argument.
11106 * target.c (debug_to_terminal_info): Add argument.
11107 (default_terminal_info): Likewise.
11108 * inflow.c (child_terminal_info): Add 'self' argument.
11109 * inferior.h (child_terminal_info): Add 'self' argument.
11110 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11114 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11116 (target_terminal_save_ours): Add argument.
11117 * target.c (debug_to_terminal_save_ours): Add argument.
11118 (update_current_target): Update.
11119 * inflow.c (terminal_save_ours): Add 'self' argument.
11120 * inferior.h (terminal_save_ours): Add 'self' argument.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11125 (target_terminal_ours): Add argument.
11126 * target.c (debug_to_terminal_ours): Add argument.
11127 (update_current_target): Update.
11128 * remote.c (remote_terminal_ours): Add 'self' argument.
11129 (remote_close): Update.
11130 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11131 * inflow.c (terminal_ours): Add 'self' argument.
11132 * inferior.h (terminal_ours): Add 'self' argument.
11133 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11135 2014-02-19 Pedro Alves <palves@redhat.com>
11136 Tom Tromey <tromey@redhat.com>
11138 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11140 (target_terminal_ours_for_output): Add argument.
11141 * target.c (debug_to_terminal_ours_for_output): Add argument.
11142 (update_current_target): Update.
11143 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11144 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11145 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11149 * target.h (struct target_ops) <to_terminal_inferior>: Add
11151 * target.c (target_terminal_inferior): Add argument.
11152 (update_current_target): Update.
11153 * remote.c (remote_terminal_inferior): Add 'self' argument.
11154 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11155 * inflow.c (terminal_inferior): Add 'self' argument.
11156 * inferior.h (terminal_inferior): Add 'self' argument.
11157 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11158 (go32_terminal_inferior): Add 'self' argument.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11163 (target_terminal_init): Add argument.
11164 * target.c (debug_to_terminal_init): Add argument.
11165 (update_current_target): Update.
11166 * inflow.c (terminal_init_inferior): Add 'self' argument.
11167 * inferior.h (terminal_init_inferior): Add 'self' argument.
11168 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11169 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11171 2014-02-19 Tom Tromey <tromey@redhat.com>
11173 * target.h (struct target_ops)
11174 <to_can_accel_watchpoint_condition>: Add argument.
11175 (target_can_accel_watchpoint_condition): Add argument.
11176 * target.c (debug_to_can_accel_watchpoint_condition): Add
11178 (update_current_target): Update.
11179 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11184 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11186 (target_region_ok_for_hw_watchpoint): Add argument.
11187 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11188 (default_region_ok_for_hw_watchpoint): Add argument.
11189 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11190 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11192 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11194 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11196 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11198 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11200 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11202 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11203 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11205 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11206 Add 'self' argument.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11212 (target_insert_watchpoint): Add argument.
11213 * target.c (debug_to_insert_watchpoint): Add argument.
11214 (update_current_target): Update.
11215 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11216 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11217 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11218 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11219 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11220 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11222 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11223 (procfs_insert_hw_watchpoint): Add 'self' argument.
11224 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11226 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11228 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11230 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11231 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11233 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11236 2014-02-19 Tom Tromey <tromey@redhat.com>
11238 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11240 (target_remove_watchpoint): Add argument.
11241 * target.c (debug_to_remove_watchpoint): Add argument.
11242 (update_current_target): Update.
11243 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11244 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11245 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11246 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11247 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11248 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11250 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11251 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11253 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11255 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11257 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11258 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11260 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11263 2014-02-19 Tom Tromey <tromey@redhat.com>
11265 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11267 (target_remove_hw_breakpoint): Add argument.
11268 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11269 (update_current_target): Update.
11270 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11271 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11273 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11274 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11276 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11279 2014-02-19 Tom Tromey <tromey@redhat.com>
11281 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11283 (target_insert_hw_breakpoint): Add argument.
11284 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11285 (update_current_target): Update.
11286 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11287 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11289 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11290 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11291 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11293 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11300 (target_can_use_hardware_watchpoint): Add argument.
11301 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11302 (update_current_target): Update.
11303 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11305 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11307 * remote.c (remote_check_watch_resources): Add 'self' argument.
11308 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11309 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11311 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11312 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11314 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11316 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11318 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11320 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11322 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11324 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11325 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11327 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11330 2014-02-19 Tom Tromey <tromey@redhat.com>
11332 * target.h (struct target_ops) <to_post_attach>: Add argument.
11333 (target_post_attach): Add argument.
11334 * target.c (debug_to_post_attach): Add argument.
11335 (update_current_target): Update.
11336 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11337 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11338 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11339 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11340 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * windows-nat.c (windows_close): Add 'self' argument.
11345 * tracepoint.c (tfile_close): Add 'self' argument.
11346 * target.h (struct target_ops) <to_close>: Add argument.
11347 * target.c (target_close): Add argument.
11348 (update_current_target): Update.
11349 * remote.c (remote_close): Add 'self' argument.
11350 * remote-sim.c (gdbsim_close): Add 'self' argument.
11351 * remote-mips.c (mips_close): Add 'self' argument.
11352 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11353 * record-full.c (record_full_close): Add 'self' argument.
11354 * record-btrace.c (record_btrace_close): Add 'self' argument.
11355 * monitor.h (monitor_close): Add 'self' argument.
11356 * monitor.c (monitor_close): Add 'self' argument.
11357 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11358 * linux-nat.c (linux_nat_close): Add argument.
11359 * go32-nat.c (go32_close): Add 'self' argument.
11360 * exec.c (exec_close_1): Add 'self' argument.
11361 * ctf.c (ctf_close): Add 'self' argument.
11362 * corelow.c (core_close): Add 'self' argument.
11363 (core_close_cleanup): Update.
11364 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11365 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11369 * remote.c (remote_load): New function.
11370 (init_remote_ops): Use it.
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11376 * common/linux-btrace.h (linux_supports_btrace): Update.
11377 * remote.c (remote_supports_btrace): Add "self" argument.
11378 * target-delegates.c: Rebuild.
11379 * target.c (target_supports_btrace): Remove.
11380 * target.h (struct target_ops) <to_supports_btrace>: Add
11381 target_ops argument.
11382 (target_supports_btrace): New define.
11384 2014-02-19 Tom Tromey <tromey@redhat.com>
11386 * record-full.c (record_full_beneath_to_resume_ops)
11387 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11388 (record_full_beneath_to_wait)
11389 (record_full_beneath_to_store_registers_ops)
11390 (record_full_beneath_to_store_registers)
11391 (record_full_beneath_to_xfer_partial_ops)
11392 (record_full_beneath_to_xfer_partial)
11393 (record_full_beneath_to_insert_breakpoint_ops)
11394 (record_full_beneath_to_insert_breakpoint)
11395 (record_full_beneath_to_remove_breakpoint_ops)
11396 (record_full_beneath_to_remove_breakpoint)
11397 (record_full_beneath_to_stopped_by_watchpoint)
11398 (record_full_beneath_to_stopped_data_address)
11399 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11400 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11401 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11402 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11403 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11404 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11405 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11406 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11407 (record_full_resume, record_full_wait_1)
11408 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11409 (record_full_store_registers, record_full_xfer_partial)
11410 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11411 (record_full_async, record_full_core_xfer_partial): Use target
11413 * target-delegates.c: Rebuild.
11414 * target.c (current_xfer_partial): Remove.
11415 (update_current_target): Do not INHERIT or de_fault
11416 to_insert_breakpoint, to_remove_breakpoint,
11417 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11418 to_is_async_p, to_async. Do not set to_xfer_partial field.
11419 (default_xfer_partial): Simplify.
11420 (current_xfer_partial): Remove.
11421 (target_wait, target_resume): Simplify.
11422 (find_default_can_async_p, find_default_is_async_p): Update.
11423 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11424 to_xfer_partial, to_stopped_by_watchpoint,
11425 to_stopped_data_address.
11426 (target_store_registers): Simplify.
11427 (forward_target_remove_breakpoint)
11428 (forward_target_insert_breakpoint): Remove.
11429 (target_remove_breakpoint, target_insert_breakpoint)
11430 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11431 * target.h (struct target_ops) <to_resume, to_wait,
11432 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11433 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11434 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11436 (forward_target_remove_breakpoint)
11437 (forward_target_insert_breakpoint): Remove.
11438 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11440 (record_btrace_insert_breakpoint): Delegate directly.
11442 2014-02-19 Tom Tromey <tromey@redhat.com>
11445 * target-delegates.c: New file.
11446 * target.c: Include target-delegates.c.
11447 (init_dummy_target): Call install_dummy_methods.
11448 (complete_target_initialization): Call install_delegators.
11449 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11450 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11451 * make-target-delegates: New file.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * record.c (find_record_target): Use find_target_at.
11456 * target.c (find_target_at): New function.
11457 * target.h (find_target_at): Declare.
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11461 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11462 Add 'ops' argument.
11463 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11465 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11466 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11468 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11470 * linux-nat.c (save_sigtrap): Update.
11471 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11472 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11473 (linux_nat_close): Update.
11474 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11476 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11478 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11479 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11480 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11481 (tmp_to_async): Add 'ops' argument.
11482 (record_full_stopped_by_watchpoint, record_full_async)
11483 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11485 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11486 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11487 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11488 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11489 (remote_is_async_p, remote_async): Add 'ops' argument.
11490 (remote_stopped_data_address): Update.
11491 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11492 * target.c (update_current_target)
11493 (find_default_can_async_p, find_default_is_async_p): Update.
11494 (init_dummy_target): Update.
11495 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11496 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11497 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11498 (target_can_async_p, target_is_async_p, target_async)
11499 (target_stopped_by_watchpoint): Update.
11501 2014-02-19 Yao Qi <yao@codesourcery.com>
11504 * gdbarch.sh: Remove startup_gdbarch.
11505 * gdbarch.c: Regenerated.
11506 * gdbarch.h: Likewise.
11508 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11510 * rl78-tdep.c (rl78_g10_register_name): New function.
11511 (rl78_return_value): Add g10 support.
11512 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11515 2014-02-17 Doug Evans <xdje42@gmail.com>
11517 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11518 (SUBDIR_GUILE_SRCS): Ditto.
11519 (scm-gsmob.o): Ditto.
11521 2014-02-17 Yao Qi <yao@codesourcery.com>
11523 * gnu-nat.c (ILL_RPC): Declare defined function.
11525 2014-02-17 Yao Qi <yao@codesourcery.com>
11527 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11528 mach_msg_type_number_t.
11529 (gnu_write_inferior): Likewise.
11531 2014-02-17 Yao Qi <yao@codesourcery.com>
11533 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11535 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11536 (inf_validate_procs, inf_signal): Likewise.
11537 (S_exception_raise_request): Likewise.
11538 (do_mach_notify_dead_name): Likewise.
11539 (steal_exc_port): Likewise.
11540 (gnu_read_inferior): Change 'copy_count''s type to
11541 mach_msg_type_number_t.
11542 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11545 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11547 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11548 flag. Adjust all users; in particular...
11549 (gnu_wait): ..., don't decrement its value in here...
11550 (gnu_create_inferior): ..., and instead set the flag in here,
11551 around the startup_inferior call, and call that one with
11552 START_INFERIOR_TRAPS_EXPECTED.
11554 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11555 (ILL_RPC): ... new macro.
11556 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11557 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11558 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11559 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11560 functions with ILL_RPC macro.
11561 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11562 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11563 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11564 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11565 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11566 (S_proc_getlogin_reply, S_proc_getsid_reply)
11567 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11568 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11569 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11570 (S_proc_getnports_reply, S_proc_is_important_reply)
11571 (S_proc_get_code_reply): New stub functions, generated with
11574 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11575 collected the type check structures.
11577 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11579 2014-02-14 Doug Evans <dje@google.com>
11581 * target.c (target_write_partial): Fix result type.
11583 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11585 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11586 the proper offsets to access fpregset_t.
11588 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11590 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11591 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11592 * h8300-tdep.c (setmachinelist): Remove global.
11593 * hppa-tdep.c (hppa_sigtramp): Remove global.
11594 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11595 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11596 * ravenscar-thread.c (update_target_observer): Remove global.
11597 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11599 2014-02-12 Tom Tromey <tromey@redhat.com>
11601 * common/rsp-low.c: Update comments.
11602 * common/rsp-low.h: Update comments.
11604 2014-02-12 Tom Tromey <tromey@redhat.com>
11606 * common/rsp-low.c (convert_ascii_to_int): Remove.
11607 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11609 2014-02-12 Tom Tromey <tromey@redhat.com>
11611 * common/rsp-low.h (unhexify): Don't declare.
11612 * common/rsp-low.c (unhexify): Remove.
11614 2014-02-12 Tom Tromey <tromey@redhat.com>
11616 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11617 * common/rsp-low.c (convert_int_to_ascii): Remove.
11619 2014-02-12 Tom Tromey <tromey@redhat.com>
11621 * common/rsp-low.h (hexify): Don't declare.
11622 * common/rsp-low.c (hexify): Remove.
11624 2014-02-12 Tom Tromey <tromey@redhat.com>
11626 * common/rsp-low.c (hexify): Never take strlen of argument.
11628 2014-02-12 Tom Tromey <tromey@redhat.com>
11630 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11631 * remote.c (extended_remote_run, remote_rcmd)
11632 (remote_download_trace_state_variable, remote_save_trace_data)
11633 (remote_set_trace_notes): Update.
11634 * tracepoint.c (encode_source_string, tfile_write_status)
11635 (tfile_write_uploaded_tsv): Update.
11637 2014-02-12 Tom Tromey <tromey@redhat.com>
11639 * tracepoint.c: Include rsp-low.h.
11640 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11641 * remote.c: Include rsp-low.h.
11642 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11643 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11644 (remote_unescape_input): Move to common/rsp-low.c.
11645 * common/rsp-low.h: New file.
11646 * common/rsp-low.c: New file.
11647 * Makefile.in (SFILES): Add common/rsp-low.c.
11648 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11649 (COMMON_OBS): Add rsp-low.o.
11650 (rsp-low.o): New target.
11652 2014-02-12 Tom Tromey <tromey@redhat.com>
11654 * utils.h: Include print-utils.h.
11655 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11656 (int_string, core_addr_to_string, core_addr_to_string_nz)
11657 (hex_string, hex_string_custom): Don't declare.
11658 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11659 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11660 (hex_string_custom, int_string, core_addr_to_string)
11661 (core_addr_to_string_nz, host_address_to_string): Move to
11662 common/print-utils.c.
11663 * common/print-utils.h: New file.
11664 * common/print-utils.c: New file
11665 * Makefile.in (SFILES): Add common/print-utils.c.
11666 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11667 (COMMON_OBS): Add print-utils.o.
11668 (print-utils.o): New target.
11670 2014-02-12 Tom Tromey <tromey@redhat.com>
11672 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11674 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11676 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11678 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11680 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11681 if a PT_IO ptrace request returns sucessfully but indicates that 0
11682 bytes were transferred.
11684 2014-02-12 Pedro Alves <palves@redhat.com>
11685 Kevin Buettner <kevinb@redhat.com>
11687 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11688 TYPE_INSTANCE_FLAG_CODE_SPACE.
11690 2014-02-12 Pedro Alves <palves@redhat.com>
11692 * h8300-tdep.c (pseudo_from_raw_register)
11693 (raw_from_pseudo_register): New functions.
11694 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11697 2014-02-12 Pedro Alves <palves@redhat.com>
11699 * h8300-tdep.c (h8300_register_sim_regno): New function.
11700 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11701 gdbarch_register_sim_regno hook.
11703 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11705 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11707 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11709 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11711 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11713 * obsd-tdep.h (obsd_init_abi): New prototype.
11714 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11715 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11716 (obsd_init_abi): New functions.
11717 * i386obsd-tdep.c: Include "obsd-tdep.h".
11718 (i386obsd_init_abi): Call obsd_init_abi.
11719 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11720 (amd64obsd_init_abi): Call obsd_init_abi.
11721 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11722 obsd-tdep.c to gdb_target_obs.
11724 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11726 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11727 double float arguments to 16-byte in the argument slots.
11729 2014-02-11 Doug Evans <xdje42@gmail.com>
11731 * configure.ac: Don't crash if pkg-config is not found and guile
11732 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11734 * configure: Regenerate.
11736 2014-02-11 Yao Qi <yao@codesourcery.com>
11738 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11739 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11740 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11741 * gnu-nat.c (gnu_xfer_memory): Likewise.
11742 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11743 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11744 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11745 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11747 2014-02-11 Yao Qi <yao@codesourcery.com>
11749 * target.h (enum target_xfer_error): Rename to ...
11750 (enum target_xfer_status): ... it. New. All users updated.
11751 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11753 (TARGET_XFER_STATUS_ERROR_P): New macro.
11754 (target_xfer_error_to_string): Remove declaration.
11755 (target_xfer_status_to_string): Declare.
11756 (target_xfer_partial_ftype): Adjust it.
11757 (struct target_ops) <to_xfer_partial>: Return
11758 target_xfer_status. Add argument xfered_len. Update
11760 * target.c (target_xfer_error_to_string): Rename to ...
11761 (target_xfer_status_to_string): ... it. New. All callers
11763 (target_read_live_memory): Likewise. Call target_xfer_partial
11764 instead of target_read.
11765 (memory_xfer_live_readonly_partial): Return
11766 target_xfer_status. Add argument xfered_len.
11767 (raw_memory_xfer_partial): Likewise.
11768 (memory_xfer_partial_1): Likewise.
11769 (memory_xfer_partial): Likewise.
11770 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11771 properly. Update debug message.
11772 (default_xfer_partial, current_xfer_partial): Likewise.
11773 (target_write_partial): Likewise.
11774 (target_read_partial): Likewise. All callers updated.
11775 (read_whatever_is_readable): Likewise.
11776 (target_write_with_progress): Likewise.
11777 (target_read_alloc_1): Likewise.
11779 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11780 * auxv.c (procfs_xfer_auxv): Likewise.
11781 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11782 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11783 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11784 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11785 * corefile.c (read_memory): Adjust.
11786 * corelow.c (core_xfer_partial): Likewise.
11787 * ctf.c (ctf_xfer_partial): Likewise.
11788 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11790 (darwin_xfer_partial): Likewise.
11791 * exec.c (section_table_xfer_memory_partial): Likewise. All
11793 (exec_xfer_partial): Likewise.
11794 * exec.h (section_table_xfer_memory_partial): Update
11796 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11798 (gnu_xfer_partial): Likewise.
11799 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11800 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11801 (ia64_hpux_xfer_solib_got): Likewise.
11802 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11803 type of 'partial_len' to ULONGEST.
11804 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11805 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11806 (linux_nat_xfer_partial): Likewise.
11807 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11808 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11809 * monitor.c (monitor_xfer_memory): Likewise.
11810 (monitor_xfer_partial): Likewise.
11811 * procfs.c (procfs_xfer_partial): Likewise.
11812 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11813 * record-full.c (record_full_xfer_partial): Likewise.
11814 (record_full_core_xfer_partial): Likewise.
11815 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11816 (gdbsim_xfer_partial): Likewise.
11817 * remote.c (remote_write_bytes_aux): Likewise. All callers
11819 (remote_write_bytes, remote_read_bytes): Likewise. All
11821 (remote_flash_erase): Likewise. All callers updated.
11822 (remote_write_qxfer): Likewise. All callers updated.
11823 (remote_read_qxfer): Likewise. All callers updated.
11824 (remote_xfer_partial): Likewise.
11825 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11826 (rs6000_xfer_shared_libraries): Likewise.
11827 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11828 (sol_thread_xfer_partial): Likewise.
11829 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11830 (sparc_xfer_partial): Likewise.
11831 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11833 (spu_xfer_partial): Likewise.
11834 * spu-multiarch.c (spu_xfer_partial): Likewise.
11835 * tracepoint.c (tfile_xfer_partial): Likewise.
11836 * windows-nat.c (windows_xfer_memory): Likewise.
11837 (windows_xfer_shared_libraries): Likewise.
11838 (windows_xfer_partial): Likewise.
11839 * valprint.c: Replace 'target_xfer_error' with
11840 'target_xfer_status' in comments.
11842 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11844 Checked in by Joel Brobecker <brobecker@adacore.com>.
11845 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11847 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11849 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11850 function parameters.
11852 2014-02-10 Will Newton <will.newton@linaro.org>
11854 * elfread.c (elf_rel_plt_read): Look for a .got section if
11855 looking up .got.plt fails.
11856 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11857 on address passed to elf_gnu_ifunc_record_cache.
11858 (elf_gnu_ifunc_resolve_addr): Likewise.
11859 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11861 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11863 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11864 (X_RETTURN): New macro.
11865 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11867 * sparc64-tdep.c (sparc64_init_abi): Hook
11868 sparc_in_function_epilogue_p.
11870 2014-02-10 Gary Benson <gbenson@redhat.com>
11872 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11873 Rename name_matcher to symbol_matcher.
11875 2014-02-10 Gary Benson <gbenson@redhat.com>
11877 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11878 Use expand_symtabs_file_matcher_ftype and
11879 expand_symtabs_symbol_matcher_ftype.
11881 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11883 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11884 (struct ada_symbol_cache): New.
11885 (ada_free_symbol_cache): Forward declare.
11886 (struct ada_pspace_data): New.
11887 (ada_pspace_data_handle): New static global.
11888 (get_ada_pspace_data, ada_pspace_data_cleanup)
11889 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11890 (cache_space, cache): Delete, now folded inside struct
11892 (ada_get_symbol_cache): New function.
11893 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11895 (_initialize_ada_language): Remove initialization of cache_space.
11896 Move call to observer_attach_inferior_exit up, grouping it
11897 with the other observer registrations inside this function.
11898 Rename command to be more general. Add call to
11899 register_program_space_data_with_cleanup.
11901 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11903 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11904 ada_new_objfile_observer.
11905 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11906 (_initialize_tasks): Update uses of ada_new_objfile_observer
11907 and ada_tasks_normal_stop_observer.
11909 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11911 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11912 returned by the 'Length attribute to integer.
11914 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11916 * ada-lang.c (_initialize_ada_language): Initialize
11917 cache_space obstack.
11919 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11921 * ada-lang.c (HASH_SIZE): New macro.
11922 (struct cache_entry): New type.
11923 (cache_space, cache): New static globals.
11924 (ada_clear_symbol_cache, find_entry): New functions.
11925 (lookup_cached_symbol, cache_symbol): Implement.
11926 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11927 (_initialize_ada_language): Attach ada_new_objfile_observer
11928 and ada_free_objfile_observer.
11930 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11932 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11933 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11934 struct block * parameter.
11935 (ada_lookup_symbol_list_worker): Constify local variable "block".
11936 Remove cast which is no longer necessary.
11938 2014-02-10 Doug Evans <xdje42@gmail.com>
11940 Add Guile as an extension language.
11941 * NEWS: Mention Guile scripting.
11942 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11943 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11944 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11945 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11946 (CLIBS): Add GUILE_LIBS.
11947 (install-guile): New rule.
11948 (guile.o): New rule.
11949 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11950 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11951 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11952 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11953 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11954 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11955 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11956 * configure.ac: New option --with-guile.
11957 * configure: Regenerate.
11958 * config.in: Regenerate.
11959 * auto-load.c: Remove #include "python/python.h". Add #include
11960 "gdb/section-scripts.h".
11961 (source_section_scripts): Handle Guile scripts.
11962 (_initialize_auto_load): Add name of Guile objfile script to
11963 scripts-directory help text.
11964 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11965 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11966 (struct breakpoint): New member scm_bp_object.
11967 * defs.h (enum command_control_type): New value guile_control.
11968 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11970 (show_user): Update comment.
11971 (_initialize_cli_cmds): Update help text for "show user". Update help
11972 text for max-user-call-depth.
11973 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11975 (multi_line_command_p): Add guile_control.
11976 (print_command_lines): Handle guile_control.
11977 (execute_control_command, recurse_read_control_structure): Ditto.
11978 (process_next_line): Recognize "guile" commands.
11979 * disasm.c (gdb_disassemble_info): Make non-static.
11980 * disasm.h: #include "dis-asm.h".
11981 (struct gdbarch): Add forward decl.
11982 (gdb_disassemble_info): Declare.
11983 * extension.c: #include "guile/guile.h".
11984 (extension_languages): Add guile.
11985 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11986 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11987 * gdbtypes.c (get_unsigned_type_max): New function.
11988 (get_signed_type_minmax): New function.
11989 * gdbtypes.h (get_unsigned_type_max): Declare.
11990 (get_signed_type_minmax): Declare.
11991 * guile/README: New file.
11992 * guile/guile-internal.h: New file.
11993 * guile/guile.c: New file.
11994 * guile/guile.h: New file.
11995 * guile/scm-arch.c: New file.
11996 * guile/scm-auto-load.c: New file.
11997 * guile/scm-block.c: New file.
11998 * guile/scm-breakpoint.c: New file.
11999 * guile/scm-disasm.c: New file.
12000 * guile/scm-exception.c: New file.
12001 * guile/scm-frame.c: New file.
12002 * guile/scm-gsmob.c: New file.
12003 * guile/scm-iterator.c: New file.
12004 * guile/scm-lazy-string.c: New file.
12005 * guile/scm-math.c: New file.
12006 * guile/scm-objfile.c: New file.
12007 * guile/scm-ports.c: New file.
12008 * guile/scm-pretty-print.c: New file.
12009 * guile/scm-safe-call.c: New file.
12010 * guile/scm-string.c: New file.
12011 * guile/scm-symbol.c: New file.
12012 * guile/scm-symtab.c: New file.
12013 * guile/scm-type.c: New file.
12014 * guile/scm-utils.c: New file.
12015 * guile/scm-value.c: New file.
12016 * guile/lib/gdb.scm: New file.
12017 * guile/lib/gdb/boot.scm: New file.
12018 * guile/lib/gdb/experimental.scm: New file.
12019 * guile/lib/gdb/init.scm: New file.
12020 * guile/lib/gdb/iterator.scm: New file.
12021 * guile/lib/gdb/printing.scm: New file.
12022 * guile/lib/gdb/types.scm: New file.
12023 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12024 (VPATH): Add $(GUILE_SRCDIR).
12025 (GUILE_DIR): New variable.
12026 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12027 (all): Add stamp-guile dependency.
12028 (stamp-guile): New rule.
12029 (clean-guile, install-guile, uninstall-guile): New rules.
12030 (install-only): Add install-guile dependency.
12031 (uninstall): Add uninstall-guile dependency.
12032 (clean): Add clean-guile dependency.
12034 2014-02-09 Doug Evans <xdje42@gmail.com>
12036 Revert this patch (which I approved, mea culpa).
12038 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12040 * Makefile.in (all-lib): Remove.
12041 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12043 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12045 Fix Python stack corruption.
12046 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12049 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12051 * Makefile.in (all-lib): Remove.
12052 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12054 2014-02-07 Doug Evans <dje@google.com>
12056 * extension-priv.h (extension_language_script_ops): Add comment.
12057 (extension_language_ops): Add comment.
12058 (active_ext_lang_state): Fix typo in comment.
12060 2014-02-07 Pedro Alves <palves@redhat.com>
12062 PR breakpoints/16292
12063 * infrun.c (handle_signal_stop) <signal arrives while stepping
12064 over a breakpoint>: Switch back to the stepping thread.
12066 2014-02-07 Yao Qi <yao@codesourcery.com>
12068 * target.c (target_xfer_partial): Return zero if LEN is zero.
12070 2014-02-07 Yao Qi <yao@codesourcery.com>
12072 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12073 (ld_so_xfer_auxv): Likewise.
12074 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12075 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12076 * corelow.c (core_xfer_partial): Likewise.
12077 * ctf.c (ctf_xfer_partial): Likewise.
12078 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12079 (darwin_xfer_partial): Likewise.
12080 * exec.c (exec_xfer_partial): Likewise.
12081 * gnu-nat.c (gnu_xfer_partial): Likewise.
12082 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12083 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12084 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12085 * linux-nat.c (linux_xfer_siginfo): Likewise.
12086 (linux_proc_xfer_spu): Likewise.
12087 * procfs.c (procfs_xfer_partial): Likewise.
12088 * record-full.c (record_full_xfer_partial): Likewise.
12089 (record_full_core_xfer_partial): Likewise.
12090 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12091 * remote.c (remote_write_qxfer): Likewise.
12092 (remote_write_qxfer, remote_read_qxfer): Likewise.
12093 (remote_xfer_partial): Likewise.
12094 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12095 (rs6000_xfer_shared_libraries): Likewise.
12096 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12097 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12098 (spu_xfer_partial): Likewise.
12099 * target.c (memory_xfer_partial_1): Likewise.
12100 * tracepoint.c (tfile_xfer_partial): Likewise.
12101 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12102 (windows_xfer_partial): Likewise.
12104 2014-02-07 Yao Qi <yao@codesourcery.com>
12106 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12108 (core_xfer_shared_libraries_aix): Likewise.
12109 * gdbarch.c, gdbarch.h: Regenerated.
12110 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12111 ULONGEST. Change 'len_avail' type to ULONGEST.
12112 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12113 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12115 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12117 2014-02-07 Yao Qi <yao@codesourcery.com>
12119 * corefile.c (memory_error): Get 'exception' from ERR and pass
12120 'exception' to throw_error.
12122 2014-02-06 Doug Evans <xdje42@gmail.com>
12124 * configure.ac (libpython checking): Remove all but python.o from
12125 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12126 * configure: Regenerate.
12128 * Makefile.in (SFILES): Add extension.c.
12129 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12130 (COMMON_OBS): Add extension.o.
12131 * extension.h: New file.
12132 * extension-priv.h: New file.
12133 * extension.c: New file.
12135 * python/python-internal.h: #include "extension.h".
12136 (gdbpy_auto_load_enabled): Declare.
12137 (gdbpy_apply_val_pretty_printer): Declare.
12138 (gdbpy_apply_frame_filter): Declare.
12139 (gdbpy_preserve_values): Declare.
12140 (gdbpy_breakpoint_cond_says_stop): Declare.
12141 (gdbpy_breakpoint_has_cond): Declare.
12142 (void source_python_script_for_objfile): Delete.
12143 * python/python.c: #include "extension-priv.h".
12144 Delete inclusion of "observer.h".
12145 (extension_language_python): Moved here and renamed from
12146 script_language_python in py-auto-load.c.
12147 Redefined to be of type extension_language_defn.
12148 (python_extension_script_ops): New global.
12149 (python_extension_ops): New global.
12150 (struct python_env): New member previous_active.
12151 (restore_python_env): Call restore_active_ext_lang.
12152 (ensure_python_env): Call set_active_ext_lang.
12153 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12155 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12157 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12159 (gdbpy_eval_from_control_command): Renamed from
12160 eval_python_from_control_command, made static. New arg extlang.
12161 (gdbpy_source_script) Renamed from source_python_script, made static.
12163 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12164 result to int. New arg extlang.
12165 (gdbpy_source_objfile_script): Renamed from
12166 source_python_script_for_objfile, made static. New arg extlang.
12167 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12168 static. New args extlang, extlang_printers. Change result type to
12170 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12171 static. New arg extlang. Rename arg printers to extlang_printers
12172 and change type to ext_lang_type_printers *.
12173 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12174 static. Replace argument arg with extlang, extlang_printers.
12175 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12176 (!HAVE_PYTHON, source_python_script): Delete.
12177 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12178 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12179 (!HAVE_PYTHON, start_type_printers): Delete.
12180 (!HAVE_PYTHON, apply_type_printers): Delete.
12181 (!HAVE_PYTHON, free_type_printers): Delete.
12182 (_initialize_python): Delete call to observer_attach_before_prompt.
12183 (finalize_python): Set/restore active extension language.
12184 (gdbpy_finish_initialization) Renamed from
12185 finish_python_initialization, made static. New arg extlang.
12186 (gdbpy_initialized): New function.
12187 * python/python.h: #include "extension.h". Delete #include
12188 "value.h", "mi/mi-cmds.h".
12189 (extension_language_python): Declare.
12190 (GDBPY_AUTO_FILE_NAME): Delete.
12191 (enum py_bt_status): Moved to extension.h and renamed to
12192 ext_lang_bt_status.
12193 (enum frame_filter_flags): Moved to extension.h.
12194 (enum py_frame_args): Moved to extension.h and renamed to
12195 ext_lang_frame_args.
12196 (finish_python_initialization): Delete.
12197 (eval_python_from_control_command): Delete.
12198 (source_python_script): Delete.
12199 (apply_val_pretty_printer): Delete.
12200 (apply_frame_filter): Delete.
12201 (preserve_python_values): Delete.
12202 (gdbpy_script_language_defn): Delete.
12203 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12204 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12206 * auto-load.c: #include "extension.h".
12207 (GDB_AUTO_FILE_NAME): Delete.
12208 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12209 (script_language_gdb): Delete, moved to extension.c and renamed to
12210 extension_language_gdb.
12211 (source_gdb_script_for_objfile): Delete.
12212 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12213 (loaded_script): Change type of language member to
12214 struct extension_language_defn *.
12215 (init_loaded_scripts_info): Initialize
12216 unsupported_script_warning_printed.
12217 (maybe_add_script): Make static. Change type of language arg to
12218 struct extension_language_defn *.
12219 (clear_section_scripts): Reset unsupported_script_warning_printed.
12220 (auto_load_objfile_script_1): Rewrite to use extension language API.
12221 (auto_load_objfile_script): Make public. Remove support-compiled-in
12222 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12223 (source_section_scripts): Rewrite to use extension language API.
12224 (load_auto_scripts_for_objfile): Rewrite to use
12225 auto_load_scripts_for_objfile.
12226 (collect_matching_scripts_data): Change type of language member to
12227 struct extension_language_defn *.
12228 (auto_load_info_scripts): Change type of language arg to
12229 struct extension_language_defn *.
12230 (unsupported_script_warning_print): New function.
12231 (script_not_found_warning_print): Make static.
12232 (_initialize_auto_load): Rewrite construction of scripts-directory
12234 * auto-load.h (struct objfile): Add forward decl.
12235 (struct script_language): Delete.
12236 (struct auto_load_pspace_info): Add forward decl.
12237 (struct extension_language_defn): Add forward decl.
12238 (maybe_add_script): Delete.
12239 (auto_load_objfile_script): Declare.
12240 (script_not_found_warning_print): Delete.
12241 (auto_load_info_scripts): Update prototype.
12242 (auto_load_gdb_scripts_enabled): Declare.
12243 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12244 auto_load_python_scripts_enabled and made public.
12245 (script_language_python): Delete, moved to python.c.
12246 (gdbpy_script_language_defn): Delete.
12247 (info_auto_load_python_scripts): Update to use
12248 extension_language_python.
12250 * breakpoint.c (condition_command): Replace call to
12251 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12252 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12253 with call to breakpoint_ext_lang_cond_says_stop.
12254 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12255 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12256 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12257 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12259 (local_setattro): Print name of extension language with existing
12262 * valprint.c (val_print, value_print): Update to call
12263 apply_ext_lang_val_pretty_printer.
12264 * cp-valprint.c (cp_print_value): Update call to
12265 apply_ext_lang_val_pretty_printer.
12266 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12267 (gdbpy_apply_val_pretty_printer): Renamed from
12268 apply_val_pretty_printer. New arg extlang.
12269 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12271 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12272 extension language API.
12273 * cli/cli-script.c (execute_control_command): Update to call
12274 eval_ext_lang_from_control_command.
12276 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12277 enum ext_lang_bt_status values. Update call to
12278 apply_ext_lang_frame_filter.
12279 (mi_cmd_stack_list_locals): Ditto.
12280 (mi_cmd_stack_list_args): Ditto.
12281 (mi_cmd_stack_list_variables): Ditto.
12282 * mi/mi-main.c: Delete #include "python/python-internal.h".
12283 Add #include "extension.h".
12284 (mi_cmd_list_features): Replace reference to python internal variable
12285 gdb_python_initialized with call to ext_lang_initialized_p.
12287 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12288 Update to use enum ext_lang_frame_args. Update to call
12289 apply_ext_lang_frame_filter.
12290 * python/py-framefilter.c (extract_sym): Update to use enum
12291 ext_lang_bt_status.
12292 (extract_value, py_print_type, py_print_value): Ditto.
12293 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12294 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12295 (py_print_frame): Ditto.
12296 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12297 New arg extlang. Update to use enum ext_lang_bt_status.
12299 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12300 finish_python_initialization. Replace with call to
12301 finish_ext_lang_initialization.
12303 * typeprint.c (do_free_global_table): Update to call
12304 free_ext_lang_type_printers.
12305 (create_global_typedef_table): Update to call
12306 start_ext_lang_type_printers.
12307 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12308 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12309 (type_print_options): Change type of global_printers from "void *"
12310 to "struct ext_lang_type_printers *".
12312 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12313 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12314 (gdbpy_preserve_values): Renamed from preserve_python_values.
12316 (!HAVE_PYTHON, preserve_python_values): Delete.
12318 * utils.c (quit_flag): Delete, moved to extension.c.
12319 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12322 * eval.c: Delete #include "python/python.h".
12323 * main.c: Delete #include "python/python.h".
12325 * defs.h: Update comment.
12327 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12331 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12333 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12336 2014-02-05 Yao Qi <yao@codesourcery.com>
12338 * remote.c (remote_pass_signals): Remove local 'buf' and use
12340 (remote_program_signals): Likewise.
12342 2014-02-05 Yao Qi <yao@codesourcery.com>
12344 * ctf.c: Include "inferior.h" and "gdbthread.h".
12345 (CTF_PID): A new macro.
12346 (ctf_open): Call inferior_appeared and add_thread_silent.
12347 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12348 (ctf_thread_alive): New function.
12349 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12351 2014-02-05 Yao Qi <yao@codesourcery.com>
12355 2013-05-24 Yao Qi <yao@codesourcery.com>
12357 * tracepoint.c (TFILE_PID): Remove.
12358 (tfile_open): Don't add thread and inferior.
12359 (tfile_close): Don't set 'inferior_ptid'. Don't call
12360 exit_inferior_silent.
12361 (tfile_thread_alive): Remove.
12362 (init_tfile_ops): Don't set field 'to_thread_alive' of
12365 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12367 * remote.c (remote_start_remote): Call remote_check_symbols even
12368 if only symbol-file (not file) has been given.
12370 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12372 * gdbarch.sh (skip_entrypoint): New callback.
12373 * gdbarch.c, gdbarch.h: Regenerate.
12374 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12375 * infrun.c (fill_in_stop_func): Likewise.
12376 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12377 (ppc_elfv2_elf_make_msymbol_special): New function.
12378 (ppc_elfv2_skip_entrypoint): Likewise.
12379 (ppc_linux_init_abi): Install them for ELFv2.
12381 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12383 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12384 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12385 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12386 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12387 structures returned in GPRs.
12389 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12391 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12392 offset to the stack parameter list for the ELFv2 ABI.
12394 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12396 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12397 set_gdbarch_convert_from_func_ptr_addr and
12398 set_gdbarch_elf_make_msymbol_special for ELFv1.
12399 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12400 function descriptors on ELFv1.
12401 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12402 set up r12 at function entry.
12404 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12406 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12407 (struct gdbarch_tdep): New member elf_abi.
12409 * rs6000-tdep.c: Include "elf/ppc64.h".
12410 (rs6000_gdbarch_init): Detect ELF ABI version.
12412 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12414 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12415 within a register pair holding a DFP 128-bit value on little-endian.
12416 (ppc64_sysv_abi_return_value_base): Likewise.
12417 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12418 (dfp_pseudo_register_write): Likewise.
12420 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12423 offset on little-endian when passing _Decimal32.
12424 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12426 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12428 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12429 of the overlapped FP register within the VSX register on little-
12431 (efpr_pseudo_register_write): Likewise.
12433 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12435 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12436 offset on little-endian when passing small structures.
12438 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12440 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12441 (struct ppc64_sysv_argpos): New data structure.
12442 (ppc64_sysv_abi_push_float): Remove.
12443 (ppc64_sysv_abi_push_val): New function.
12444 (ppc64_sysv_abi_push_integer): Likewise.
12445 (ppc64_sysv_abi_push_freg): Likewise.
12446 (ppc64_sysv_abi_push_vreg): Likewise.
12447 (ppc64_sysv_abi_push_param): Likewise.
12448 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12449 (ppc64_sysv_abi_return_value_base): New function.
12450 (ppc64_sysv_abi_return_value): Refactor to use it.
12452 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12454 * NEWS: Document new target powerpc64le-*-linux*.
12456 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12458 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12459 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12461 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12462 register set used in ELF core dumps. Add floating-point register set.
12464 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12466 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12467 dwarf2_to_gdb[] table using symbolic constants. Adjust
12468 penultimate entry from number representing the PC register
12469 to symbolic constant representing the MDR register. Add
12470 constant for the PC register to the end of the table.
12472 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12474 * bsd-kvm.c: Include <sys/param.h>
12476 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12478 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12480 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12482 * ada-lang.h (clear_ada_sym_cache): Delete.
12484 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12486 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12488 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12490 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12491 the sigreturn register save area only if the syscall is
12494 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12496 * valops.c (value_slice): Minor reformatting.
12498 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12500 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12502 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12504 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12505 New static globals.
12506 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12507 (ada_ignore_descriptive_types_p): New static global.
12508 (find_parallel_type_by_descriptive_type): Return immediately
12509 if ada_ignore_descriptive_types_p is set.
12510 (_initialize_ada_language): Register new commands "maintenance
12511 set ada", "maintenance show ada", "maintenance set ada
12512 ignore-descriptive-types" and "maintenance show ada
12513 ignore-descriptive-types".
12514 * NEWS: Add entry for new "maint ada set/show
12515 ignore-descriptive-types" commands.
12517 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12519 * record-btrace.c (record_btrace_close): Call btrace_teardown
12522 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12524 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12527 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12529 * ada-typeprint (type_is_full_subrange_of_target_type):
12531 (print_range): Add parameter bounds_prefered_p. If not set,
12532 try printing range types using the name of their base type.
12533 (print_range_type): Add parameter bounds_prefered_p.
12534 Use it in call to print_range.
12535 (print_array_type, ada_print_type): Update calls to print_range
12536 and print_range_type.
12538 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12540 * ada-typeprint.c (print_array_type, print_choices, print_range)
12541 (print_range_bound, print_dynamic_range_bound, print_range_type):
12542 Remove declaration.
12544 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12546 * ada-typeprint.c (print_range): Add missing empty line
12547 after local declaration.
12549 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12551 * ada-valprint.c (print_optional_low_bound): Get index_type's
12552 target type for as long as it is a TYPE_CODE_RANGE.
12554 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12556 * procfs.c (procfs_make_note_section): Remove assertion and
12557 associated comment.
12559 2014-01-24 Yao Qi <yao@codesourcery.com>
12561 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12562 * corelow.c (get_core_siginfo): Likewise.
12564 2014-01-24 Yao Qi <yao@codesourcery.com>
12566 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12567 ULONGEST. Don't check 'len' is negative.
12568 (remote_write_bytes): Change type of 'len' to ULONGEST.
12570 2014-01-23 Tom Tromey <tromey@redhat.com>
12573 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12574 Handle exception from frame.block.
12575 (FrameVars.fetch_frame_locals): Likewise.
12577 2014-01-23 Tom Tromey <tromey@redhat.com>
12580 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12581 on a NULL pointer. Move "goto error" to correct place.
12583 2014-01-23 Tom Tromey <tromey@redhat.com>
12586 * python/py-framefilter.c (apply_frame_filter): Call
12587 ensure_python_env after computing gdbarch.
12589 2014-01-23 Yao Qi <yao@codesourcery.com>
12591 * target.c (raw_memory_xfer_partial): Change argument type
12592 from void * to gdb_byte *.
12593 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12595 2014-01-22 Doug Evans <dje@google.com>
12597 New gdbserver option --debug-format=timestamp.
12598 * NEWS: Mention it.
12600 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12602 * syscalls/s390x-linux.xml: New file.
12603 * syscalls/s390-linux.xml: New file.
12604 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12605 (XML_SYSCALL_FILENAME_S390X): Likewise.
12606 (op_svc): New enum value for SVC opcode.
12607 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12608 (s390_linux_get_syscall_number): New function.
12609 (s390_gdbarch_init): Register '*get_syscall_number' and the
12610 syscall xml file name.
12611 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12612 "s390-linux.xml" and "s390x-linux.xml".
12613 * NEWS: Announce new feature.
12615 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12617 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12619 2014-01-22 Pedro Alves <palves@redhat.com>
12621 * xtensa-config.c: Include defs.h.
12623 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12625 * common/common-utils.h: Add "ARI:" comment beside __func__
12628 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12630 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12631 documentation a bit.
12633 2014-01-21 Roland McGrath <mcgrathr@google.com>
12635 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12636 * configure: Regenerate.
12637 * aclocal.m4: Regenerate.
12638 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12639 New substituted variables.
12640 (install-strip): New target.
12641 (INSTALL_SCRIPT): New substituted variable.
12642 (FLAGS_TO_PASS): Add it.
12643 (install-only): Use $(INSTALL_SCRIPT) rather than
12644 $(INSTALL_PROGRAM) for gcore.
12646 2014-01-20 Tom Tromey <tromey@redhat.com>
12648 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12651 2014-01-20 Tom Tromey <tromey@redhat.com>
12653 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12654 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12655 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12656 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12657 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12658 (struct cmd_list_element) <flags>: Remove.
12659 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12660 doc_allocated>: New fields.
12661 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12663 * maint.c (maintenance_do_deprecate): Update.
12664 * top.c (execute_command): Update.
12666 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12668 * xtensa-linux-nat.c: Include asm/ptrace.h.
12670 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12672 * Makefile.in (SFILES): Add d-support.c.
12673 (COMMON_OBS): Add d-support.o.
12674 * d-lang.h (d_parse_symbol): Add comment, now defined in
12676 * d-lang.c (parse_call_convention)
12677 (parse_attributes, parse_function_types)
12678 (parse_function_args, parse_type, parse_identifier)
12679 (call_convention_p, d_parse_symbol): Move functions to ...
12680 * d-support.c: ... New file.
12682 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12684 * d-lang.h (d_parse_symbol): Add declaration.
12685 * d-lang.c (extract_identifiers)
12686 (extract_type_info): Remove functions.
12687 (parse_call_convention, parse_attributes)
12688 (parse_function_types, parse_function_args)
12689 (parse_type, parse_identifier, call_convention_p)
12690 (d_parse_symbol): New functions.
12691 (d_demangle): Use d_parse_symbol to demangle D symbols.
12693 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12695 * d-lang.h (struct builtin_d_type): New data type.
12696 (builtin_d_type): Add declaration.
12697 * d-lang.c (d_language_arch_info, build_d_types)
12698 (builtin_d_type): New functions.
12699 (enum d_primitive_types): New data type.
12700 (d_language_defn): Change c_language_arch_info to
12701 d_language_arch_info.
12702 (d_type_data): New static variable.
12703 (_initialize_d_language): Initialize d_type_data.
12705 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12707 * d-lang.h (d_main_name): Add declaration.
12708 * d-lang.c (d_main_name): New function.
12709 * symtab.c (find_main_name): Add call to d_main_name.
12711 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12713 * d-lang.c (d_language_defn): Change macro_expansion_c to
12714 macro_expansion_no.
12716 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12718 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12720 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12722 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12723 gdb_exception" declaration.
12724 * remote.c (getpkt_or_notif_sane): Likewise.
12726 2014-01-17 Doug Evans <dje@google.com>
12728 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12729 function, contents of dirnames_to_char_ptr_vec_append moved here.
12730 (delim_string_to_char_ptr_vec): New function.
12731 (dirnames_to_char_ptr_vec_append): Rewrite.
12732 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12734 2014-01-17 Doug Evans <dje@google.com>
12736 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12738 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12739 #include "common-utils.h".
12740 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12741 * common/vec.h (VEC_ASSERT_PASS): Update.
12742 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12743 (MACH_CHECK_ERROR): Update.
12745 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12747 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12749 * gdbarch.h: Regenerate.
12751 2014-01-16 Tom Tromey <tromey@redhat.com>
12753 * value.c (struct value) <regnum>: Move earlier.
12755 2014-01-16 Tom Tromey <tromey@redhat.com>
12757 * remote.c (extended_remote_create_inferior): Rename from
12758 extended_remote_create_inferior_1. Add "ops" argument. Remove
12759 old implementation.
12761 2014-01-16 Pedro Alves <palves@redhat.com>
12763 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12764 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12767 2014-01-16 Doug Evans <dje@google.com>
12769 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12773 * btrace.h (btrace_thread_flag): New.
12774 (struct btrace_thread_info) <flags>: New.
12775 * record-btrace.c (record_btrace_resume_thread)
12776 (record_btrace_find_thread_to_move, btrace_step_no_history)
12777 (btrace_step_stopped, record_btrace_start_replaying)
12778 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12779 (record_btrace_find_resume_thread): New.
12780 (record_btrace_resume, record_btrace_wait): Extend.
12781 (record_btrace_can_execute_reverse): New.
12782 (record_btrace_open): Fail in non-stop mode.
12783 (record_btrace_set_replay): Split into this, ...
12784 (record_btrace_stop_replaying): ... this, ...
12785 (record_btrace_clear_histories): ... and this.
12786 (init_record_btrace_ops): Init to_can_execute_reverse.
12787 * NEWS: Announce it.
12789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12791 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12792 (forward_target_decr_pc_after_break)
12793 (target_decr_pc_after_break): New.
12794 * target.c (forward_target_decr_pc_after_break)
12795 (target_decr_pc_after_break): New.
12796 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12797 instead of gdbarch_decr_pc_after_break.
12798 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12799 instead of gdbarch_decr_pc_after_break.
12800 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12801 instead of gdbarch_decr_pc_after_break.
12802 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12803 instead of gdbarch_decr_pc_after_break.
12804 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12805 instead of gdbarch_decr_pc_after_break.
12806 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12807 instead of gdbarch_decr_pc_after_break.
12809 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12811 * btrace.c: Include regcache.h.
12812 (btrace_add_pc): New.
12813 (btrace_enable): Call btrace_add_pc.
12814 (btrace_is_empty): New.
12815 * btrace.h (btrace_is_empty): New.
12816 * record-btrace.c (require_btrace, record_btrace_info): Call
12819 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12821 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12822 Support delta reads.
12823 (linux_disable_btrace): Change return type.
12824 * common/linux-btrace.h (linux_read_btrace): Change parameters
12825 and return type to allow error reporting. Update users.
12826 (linux_disable_btrace): Change return type. Update users.
12827 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12829 (btrace_error): New.
12830 (btrace_block) <begin>: Comment on BEGIN == 0.
12831 * btrace.c (btrace_compute_ftrace): Start from the end of
12833 (btrace_stitch_trace, btrace_clear_history): New.
12834 (btrace_fetch): Read delta trace, return if replaying.
12835 (btrace_clear): Move clear history code to btrace_clear_history.
12836 (parse_xml_btrace): Throw an error if parsing failed.
12837 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12838 and return type to allow error reporting.
12839 (target_read_btrace): Change parameters and return type to allow
12841 * target.c (target_read_btrace): Update.
12842 * remote.c (remote_read_btrace): Support delta reads. Pass
12844 * NEWS: Announce it.
12846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12848 * record.h (record_btrace_frame_unwind)
12849 (record_btrace_tailcall_frame_unwind): New declarations.
12850 * dwarf2-frame: Include record.h
12851 (dwarf2_frame_cfa): Throw an error for btrace frames.
12852 * record-btrace.c: Include hashtab.h.
12853 (btrace_get_bfun_name): New.
12854 (btrace_call_history): Call btrace_get_bfun_name.
12855 (struct btrace_frame_cache): New.
12857 (bfcache_hash, bfcache_eq, bfcache_new): New.
12858 (btrace_get_frame_function): New.
12859 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12860 (record_btrace_frame_this_id): Compute own id.
12861 (record_btrace_frame_prev_register): Provide PC, throw_error
12862 for all other registers.
12863 (record_btrace_frame_sniffer): Detect btrace frames.
12864 (record_btrace_tailcall_frame_sniffer): New.
12865 (record_btrace_frame_dealloc_cache): New.
12866 (record_btrace_frame_unwind): Add new functions.
12867 (record_btrace_tailcall_frame_unwind): New.
12868 (_initialize_record_btrace): Allocate cache.
12869 * btrace.c (btrace_clear): Call reinit_frame_cache.
12870 * NEWS: Announce it.
12872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12874 * record-btrace.c (record_btrace_set_replay)
12875 (record_btrace_goto_begin, record_btrace_goto_end)
12876 (record_btrace_goto): New.
12877 (init_record_btrace_ops): Initialize them.
12878 * NEWS: Announce it.
12880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12882 * record-btrace.c (record_btrace_find_new_threads)
12883 (record_btrace_thread_alive): New.
12884 (init_record_btrace_ops): Initialize to_find_new_threads and
12887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12889 * record-btrace.c (record_btrace_resume): New.
12890 (record_btrace_wait): New.
12891 (init_record_btrace_ops): Initialize to_wait and to_resume.
12893 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12895 * record-btrace.c (record_btrace_xfer_partial)
12896 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12897 (record_btrace_allow_memory_access): New.
12898 (init_record_btrace_ops): Initialize new methods.
12899 * target.c (raw_memory_xfer_partial): Bail out if target reports
12900 that this memory is not available.
12902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12904 * target.h (target_ops) <to_insert_breakpoint>
12905 <to_remove_breakpoint>: Add target_ops parameter.
12906 (forward_target_insert_breakpoint): New.
12907 (forward_target_remove_breakpoint): New.
12908 (memory_remove_breakpoint, memory_insert_breakpoint):
12909 Add target_ops parameter.
12910 * target.c (target_insert_breakpoint): Split into this and ...
12911 (forward_target_insert_breakpoint): ... this.
12912 (target_remove_breakpoint): Split into this and ...
12913 (forward_target_remove_breakpoint): ... this.
12914 (debug_to_insert_breakpoint): Add target_ops parameter.
12915 Call forward_target_insert_breakpoint.
12916 (debug_to_remove_breakpoint): Add target_ops parameter.
12917 Call forward_target_remove_breakpoint.
12918 (update_current_target): Do not inherit or default to_insert_breakpoint
12919 and to_remove_breakpoint.
12920 * corelow.c (ignore): Add target_ops parameter.
12921 * exec.c (ignore): Add target_ops parameter.
12922 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12923 Add target_ops parameter.
12924 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12925 Add target_ops parameter.
12926 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12927 Add target_ops parameter.
12928 * record-full.c (record_full_beneath_to_insert_breakpoint)
12929 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12930 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12931 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12932 (record_full_core_remove_breakpoint): Add target_ops parameter.
12934 (record_full_beneath_to_insert_breakpoint_ops)
12935 (record_full_beneath_to_remove_breakpoint_ops)
12936 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12937 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12938 tmp_to_remove_breakpoint_ops,
12939 record_full_beneath_to_insert_breakpoint_ops, and
12940 record_full_beneath_to_remove_breakpoint_ops.
12941 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12942 (m32r_remove_breakpoint): Add target_ops parameter.
12943 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12944 Add target_ops parameter.
12945 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12946 Add target_ops parameter.
12948 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12949 Markus Metzger <markus.t.metzger@intel.com>
12951 * record-btrace.c: Include frame-unwind.h.
12952 (record_btrace_frame_unwind_stop_reason)
12953 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12954 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12956 (init_record_btrace_ops): Install it.
12958 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12960 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12963 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12965 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12968 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12970 * frame-unwind.c: Include target.h.
12971 (frame_unwind_try_unwinder): New function with code from ...
12972 (frame_unwind_find_by_frame): ... here. New variable
12973 unwinder_from_target, call also target_get_unwinder)
12974 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12975 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12976 * target.h (struct target_ops): New fields to_get_unwinder and
12977 to_get_tailcall_unwinder.
12978 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12980 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12982 * record-btrace.c (record_btrace_fetch_registers)
12983 (record_btrace_store_registers)
12984 (record_btrace_to_prepare_to_store): New.
12985 (init_record_btrace_ops): Add the above.
12987 2014-01-16 Tom Tromey <tromey@redhat.com>
12989 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12990 * target.h (struct target_ops) <to_prepare_to_store>: Add
12992 (target_prepare_to_store): Add argument.
12993 * target.c (debug_to_prepare_to_store): Add argument.
12994 (update_current_target): Update.
12995 * remote.c (remote_prepare_to_store): Add 'self' argument.
12996 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12997 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12998 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12999 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13001 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13002 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13003 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13004 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13005 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13009 * btrace.h (replay) <replay>: New.
13010 (btrace_is_replaying): New.
13011 * btrace.c (btrace_clear): Free replay iterator.
13012 (btrace_is_replaying): New.
13013 * record-btrace.c (record_btrace_is_replaying): New.
13014 (record_btrace_info): Print insn number if replaying.
13015 (record_btrace_insn_history): Start at replay position.
13016 (record_btrace_call_history): Start at replay position.
13017 (init_record_btrace_ops): Init to_record_is_replaying.
13019 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13021 * record-btrace.c (record_btrace_insn_history_range): Include
13023 (record_btrace_insn_history_from): Adjust range.
13024 (record_btrace_call_history_range): Include
13026 (record_btrace_call_history_from): Adjust range.
13027 * NEWS: Announce changes.
13029 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13031 * record.h (enum record_print_flag)
13032 <record_print_indent_calls>: New.
13033 * record.c (get_call_history_modifiers): Recognize /c modifier.
13034 (_initialize_record): Document /c modifier.
13035 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13036 Reorder fields. Optionally indent the function name. Update
13038 * NEWS: Announce changes.
13040 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13042 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13044 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13046 * btrace.c (ftrace_new_function): Start counting at one.
13047 * record-btrace.c (record_btrace_info): Adjust number of calls
13049 * NEWS: Announce it.
13051 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13053 * record-btrace.c (btrace_call_history_insn_range): Print
13054 insn range as [begin, end].
13056 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13058 * btrace.h (struct btrace_func_link): New.
13059 (enum btrace_function_flag): New.
13060 (struct btrace_inst): Rename to ...
13061 (struct btrace_insn): ...this. Update all users.
13062 (struct btrace_func) <ibegin, iend>: Remove.
13063 (struct btrace_func_link): New.
13064 (struct btrace_func): Rename to ...
13065 (struct btrace_function): ...this. Update all users.
13066 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13067 (number, level, flags>: New.
13068 (struct btrace_insn_iterator): Rename to ...
13069 (struct btrace_insn_history): ...this.
13071 (struct btrace_insn_iterator, btrace_call_iterator): New.
13072 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13073 (struct btrace_target_info) <begin, end, level>
13074 <insn_history, call_history>: New.
13075 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13076 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13077 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13078 (btrace_call_number, btrace_call_begin, btrace_call_end)
13079 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13080 (btrace_find_function_by_number, btrace_set_insn_history)
13081 (btrace_set_call_history): New.
13082 * btrace.c (btrace_init_insn_iterator)
13083 (btrace_init_func_iterator, compute_itrace): Remove.
13084 (ftrace_print_function_name, ftrace_print_filename)
13085 (ftrace_skip_file): Change
13086 parameter to const.
13087 (ftrace_init_func): Remove.
13088 (ftrace_debug): Use new btrace_function fields.
13089 (ftrace_function_switched): Also consider gaining and
13090 losing symbol information).
13091 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13092 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13093 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13095 (ftrace_new_function): Move. Remove debug print.
13096 (ftrace_update_lines, ftrace_update_insns): New.
13097 (ftrace_update_function): Check for call, ret, and jump.
13098 (compute_ftrace): Renamed to ...
13099 (btrace_compute_ftrace): ...this. Rewritten to compute call
13101 (btrace_fetch, btrace_clear): Updated.
13102 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13103 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13104 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13105 (btrace_call_number, btrace_call_begin, btrace_call_end)
13106 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13107 (btrace_find_function_by_number, btrace_set_insn_history)
13108 (btrace_set_call_history): New.
13109 * record-btrace.c (require_btrace): Use new btrace thread
13111 (record_btrace_info, btrace_insn_history)
13112 (record_btrace_insn_history, record_btrace_insn_history_range):
13113 Use new btrace thread info fields and new iterator.
13114 (btrace_func_history_src_line): Rename to ...
13115 (btrace_call_history_src_line): ...this. Use new btrace
13116 thread info fields.
13117 (btrace_func_history): Rename to ...
13118 (btrace_call_history): ...this. Use new btrace thread info
13119 fields and new iterator.
13120 (record_btrace_call_history, record_btrace_call_history_range):
13121 Use new btrace thread info fields and new iterator.
13123 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13125 * frame.h (frame_id_build_unavailable_stack_special): New.
13126 * frame.c (frame_id_build_unavailable_stack_special): New.
13128 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13130 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13131 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13132 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13134 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13135 (i386_insn_is_jump, i386_jmp_p): New.
13136 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13137 insn_is_jump to gdbarch.
13138 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13139 * gdbarch.h: Regenerated.
13140 * gdbarch.c: Regenerated.
13141 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13142 (default_insn_is_jump): New.
13143 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13144 (default_insn_is_jump): New.
13146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13148 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13150 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13151 (btrace_read_type) <btrace_read_new>: Change to ...
13152 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13156 * common/linux-btrace.c (linux_read_btrace): Free trace from
13157 previous iteration.
13159 2014-01-15 Doug Evans <dje@google.com>
13161 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13164 2014-01-15 Tom Tromey <tromey@redhat.com>
13166 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13167 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13168 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13169 (set_objfile_main_name): New function.
13170 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13171 language_of_main>: New fields.
13172 (set_objfile_main_name): Declare.
13173 * symtab.c (find_main_name): Loop over objfiles to find the main
13175 (set_main_name): Now static.
13176 (get_main_info): Add comment.
13177 * symtab.h (set_main_name): Don't declare.
13179 2014-01-15 Tom Tromey <tromey@redhat.com>
13181 * symtab.c (main_progspace_key): New global.
13182 (struct main_info): New.
13183 (name_of_main, language_of_main): Remove.
13184 (get_main_info, main_info_cleanup): New function.
13185 (set_main_name, main_name, main_language): Use get_main_info.
13186 (_initialize_symtab): Initialize main_progspace_key.
13188 2014-01-15 Tom Tromey <tromey@redhat.com>
13190 * dbxread.c (process_one_symbol): Update.
13191 * dwarf2read.c (read_partial_die): Update.
13192 * symfile.c (set_initial_language): Call main_language.
13193 * symtab.c (language_of_main): Now static.
13194 (set_main_name): Add 'lang' parameter.
13195 (find_main_name): Update.
13196 (main_language): New function.
13197 (symtab_observer_executable_changed): Update.
13198 * symtab.h (set_main_name): Update.
13199 (language_of_main): Remove.
13200 (main_language): Declare.
13202 2014-01-15 Tom Tromey <tromey@redhat.com>
13204 * symfile.c (init_entry_point_info): Use new "initialized" field.
13206 * objfiles.h (struct entry_point) <initialized>: New field.
13207 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13208 (struct objfile) <ei>: ...here. Remove.
13209 * objfiles.c (entry_point_address_query): Update.
13211 2014-01-15 Tom Tromey <tromey@redhat.com>
13213 * objfiles.c (entry_point_address_query): Relocate entry point
13215 (objfile_relocate1): Do not relocate entry point address.
13216 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13217 <the_bfd_section_index>: New field.
13218 * symfile.c (init_entry_point_info): Find the entry point's
13221 2014-01-15 Tom Tromey <tromey@redhat.com>
13223 * solib-frv.c (enable_break): Use entry_point_address_query.
13225 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13227 * NEWS: Add note on improved process record-replay on
13228 arm*-linux* targets.
13230 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13232 * arm-tdep.c (enum arm_record_result): New enum.
13233 (arm_record_unsupported_insn): New function.
13234 (arm_record_coproc_data_proc): Removed.
13235 (thumb2_record_ld_st_multiple): New function.
13236 (thumb2_record_ld_st_dual_ex_tbb): New function.
13237 (thumb2_record_data_proc_sreg_mimm): New function.
13238 (thumb2_record_ps_dest_generic): New function.
13239 (thumb2_record_branch_misc_cntrl): New function.
13240 (thumb2_record_str_single_data): New function.
13241 (thumb2_record_ld_mem_hints): New function.
13242 (thumb2_record_ld_word): New function.
13243 (thumb2_record_lmul_lmla_div): New function.
13244 (thumb2_record_decode_insn_handler): New function.
13245 (decode_insn): Add thumb32 instruction handlers.
13247 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13249 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13250 (struct arm_linux_record_tdep): Declare.
13251 (arm_canonicalize_syscall): New function.
13252 (arm_all_but_pc_registers_record): New function.
13253 (arm_linux_syscall_record): New function.
13254 (arm_linux_init_abi): Add syscall recording constructs.
13255 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13256 decoding. (arm_record_coproc_data_proc): Update arm syscall
13258 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13259 <arm_syscall_record>: New field.
13260 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13263 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13265 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13266 register for push instruction recording.
13268 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13270 * arm-tdep.c (thumb_record_misc): Update to correct logical
13271 error while recording ldm, ldmia and pop instructions.
13273 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13275 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13277 2014-01-15 Pedro Alves <palves@redhat.com>
13279 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13280 (go32_resume, go32_fetch_registers, store_register)
13281 (go32_store_registers, go32_prepare_to_store)
13282 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13283 (go32_create_inferior, go32_can_run, go32_terminal_init)
13284 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13287 2014-01-15 Tom Tromey <tromey@redhat.com>
13289 * target.h (async_callback_ftype): New typedef.
13290 (struct target_ops) <to_async>: Use it.
13292 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13294 * python/py-value.c (get_field_type): Remove unnecessary curly
13295 braces for single-statement if block.
13297 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13299 * python/py-type.c (convert_field): Add missing empty line
13300 after declarations.
13302 2014-01-14 Doug Evans <dje@google.com>
13304 * symfile.h (expand_symtabs_matching): Renamed from
13305 expand_partial_symbol_names. Update prototype.
13306 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13307 * symfile.c (expand_symtabs_matching): Renamed from
13308 expand_partial_symbol_names. New args file_matcher, kind.
13309 Rename arg fun to symbol_matcher.
13310 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13311 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13312 ada_expand_partial_symbol_name.
13313 (ada_make_symbol_completion_list): Update to call
13314 expand_symtabs_matching.
13315 (ada_add_global_exceptions): Call expand_symtabs_matching.
13316 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13317 call map_symbol_filenames.
13318 * symtab.c (sources_info): Update to call map_symbol_filenames.
13319 (search_symbols): Call expand_symtabs_matching.
13320 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13321 (default_make_symbol_completion_list_break_on): Update to call
13322 expand_symtabs_matching.
13323 (make_source_files_completion_list): Update to call
13324 map_symbol_filenames.
13326 2014-01-14 Doug Evans <dje@google.com>
13328 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13329 (expand_symtabs_symbol_matcher_ftype): New typedef.
13330 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13331 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13332 * symfile.c (expand_partial_symbol_names): Update to use
13333 expand_symtabs_symbol_matcher_ftype.
13334 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13335 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13336 Arg name_matcher renamed to symbol_matcher.
13337 * psymtab.c (recursively_search_psymtabs): Update to use
13338 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13340 (expand_symtabs_matching_via_partial): Update to use
13341 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13342 Arg name_matcher renamed to symbol_matcher.
13344 2014-01-14 Doug Evans <dje@google.com>
13346 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13347 (map_partial_symbol_filenames): Ditto.
13348 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13349 (map_partial_symbol_filenames): Ditto.
13350 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13351 (map_partial_symbol_filenames): Ditto.
13352 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13353 (map_partial_symbol_filenames): Ditto.
13354 * symtab.c: Delete #include "psymtab.h".
13356 2014-01-14 Pedro Alves <palves@redhat.com>
13357 Tom Tromey <tromey@redhat.com>
13359 * infrun.c (use_displaced_stepping): Use find_record_target
13360 instead of RECORD_IS_USED.
13361 (adjust_pc_after_break): Use record_full_is_used instead of
13363 * record-btrace.c (record_btrace_open): Call record_preopen
13364 instead of checking RECORD_IS_USED.
13365 * record-full.c (record_full_shortname)
13366 (record_full_core_shortname): New globals.
13367 (record_full_is_used): New function.
13368 (find_full_open): Call record_preopen instead of checking
13370 (init_record_full_ops): Set the target's shortname to
13371 record_full_shortname.
13372 (init_record_full_core_ops): Set the target's shortname to
13373 record_full_core_shortname.
13374 * record-full.h (record_full_is_used): Declare.
13375 * record.c (find_record_target): Make extern.
13376 (record_preopen): New function.
13377 * record.h (RECORD_IS_USED): Delete macro.
13378 (find_record_target, record_preopen): Declare functions.
13380 2014-01-14 Yao Qi <yao@codesourcery.com>
13382 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13383 'len''s type to ULONGEST.
13384 (core_xfer_shared_libraries_aix): Likewise.
13385 * gdbarch.c, gdbarch.h: Regenerated.
13386 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13387 Change type of 'len' to ULONGEST.
13388 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13389 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13391 2014-01-14 Yao Qi <yao@codesourcery.com>
13393 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13394 type of 'len' to ULONGEST.
13395 (linux_xfer_osdata_processgroups): Likewise.
13396 (linux_xfer_osdata_threads): Likewise.
13397 (linux_xfer_osdata_fds): Likewise.
13398 (linux_xfer_osdata_isockets): Likewise.
13399 (linux_xfer_osdata_shm): Likewise.
13400 (linux_xfer_osdata_sem): Likewise.
13401 (linux_xfer_osdata_msg): Likewise.
13402 (linux_common_xfer_osdata): Likewise.
13403 (struct osdata_type) <getter>: Likewise.
13404 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13407 2014-01-14 Yao Qi <yao@codesourcery.com>
13409 * target.h (target_xfer_partial_ftype): Update.
13410 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13412 * aix-thread.c (aix_thread_xfer_partial): Change type of
13413 argument 'len' to ULONGEST.
13414 * auxv.c (procfs_xfer_auxv): Likewise.
13415 (ld_so_xfer_auxv): Likewise.
13416 (memory_xfer_auxv): Likewise.
13417 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13418 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13419 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13420 * corelow.c (core_xfer_partial): Likewise.
13421 * ctf.c (ctf_xfer_partial): Likewise.
13422 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13424 (darwin_read_dyld_info): Likewise.
13425 (darwin_xfer_partial): Likewise.
13426 * exec.c (section_table_xfer_memory_partial): Likewise.
13427 (exec_xfer_partial): Likewise.
13428 * exec.h (section_table_xfer_memory_partial): Update
13430 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13431 instead of plongest.
13432 (gnu_xfer_partial): Likewise.
13433 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13434 (ia64_hpux_xfer_solib_got): Likewise.
13435 (ia64_hpux_xfer_partial): Likewise.
13436 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13437 * inf-ptrace.c (inf_ptrace_xfer_partial):
13438 * inf-ttrace.c (inf_ttrace_xfer_partial):
13439 * linux-nat.c (linux_xfer_siginfo): Likewise.
13440 (linux_nat_xfer_partial): Likewise.
13441 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13442 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13443 * monitor.c (monitor_xfer_memory): Likewise.
13444 (monitor_xfer_partial): Likewise.
13445 * procfs.c (procfs_xfer_partial): Likewise.
13446 * record-full.c (record_full_xfer_partial): Likewise.
13447 (record_full_core_xfer_partial): Likewise.
13448 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13449 instead of plongest.
13450 (gdbsim_xfer_partial): Likewise.
13451 * remote.c (remote_xfer_partial): Likewise.
13452 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13453 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13455 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13456 (rs6000_xfer_shared_libraries): Likewise.
13457 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13458 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13459 (sparc_xfer_partial): Likewise.
13460 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13461 (spu_xfer_partial): Likewise.
13462 * spu-multiarch.c (spu_xfer_partial): Likewise.
13463 * target.c (target_read_live_memory): Likewise.
13464 (memory_xfer_live_readonly_partial): Likewise.
13465 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13466 (target_xfer_partial, default_xfer_partial): Likewise.
13467 (current_xfer_partial): Likewise.
13468 * tracepoint.c (tfile_xfer_partial): Likewise.
13469 * windows-nat.c (windows_xfer_memory): Likewise. Call
13470 pulongest instead of plongest.
13471 (windows_xfer_partial): Likewise.
13472 (windows_xfer_shared_libraries): Likewise.
13474 2014-01-14 Yao Qi <yao@codesourcery.com>
13476 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13477 target_xfer_partial_ftype.
13479 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13483 * valops.c (value_struct_elt_bitpos): New function
13484 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13485 object to 'None' if the field name is an empty string ("").
13486 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13487 attribute to look for a field when 'name' is 'None'.
13488 (get_field_type): New function
13490 2014-01-13 Doug Evans <dje@google.com>
13493 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13494 (try_open_dwop_file): Ditto.
13495 * gdb_bfd.c: #include "vec.h".
13496 (bfdp): New typedef.
13497 (struct gdb_bfd_data): New member included_bfds.
13498 (gdb_bfd_unref): Unref all included bfds.
13499 (gdb_bfd_record_inclusion): New function.
13500 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13502 2014-01-13 Tom Tromey <tromey@redhat.com>
13504 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13506 2014-01-13 Tom Tromey <tromey@redhat.com>
13508 * defs.h (use_windows): Remove.
13509 * gdb.c (main): Update.
13510 * main.c (captured_main, gdb_main): Update.
13511 * main.h (struct captured_main_args) <use_windows>: Remove.
13512 * top.c (use_windows): Remove.
13514 2014-01-13 Tom Tromey <tromey@redhat.com>
13516 * defs.h (deprecated_flush_hook): Remove.
13518 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13521 * linux-thread-db.c (try_thread_db_load): Add parameter
13522 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13523 (try_thread_db_load_from_pdir_1): Move it there from here.
13524 (try_thread_db_load_from_sdir): Update caller.
13525 (try_thread_db_load_from_dir): Move it there from here.
13527 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13529 * regformats/regdat.sh: Always rewrite the register file.
13531 2014-01-13 Pedro Alves <palves@redhat.com>
13533 * Makefile.in (CHECK_HEADERS): New variable.
13534 (check-headers:): New rule.
13536 2014-01-13 Tom Tromey <tromey@redhat.com>
13538 * cli/cli-setshow.c (do_set_command): Update.
13539 * defs.h (deprecated_set_hook): Remove.
13540 * top.c (deprecated_set_hook): Remove.
13542 2014-01-13 Pedro Alves <palves@redhat.com>
13544 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13545 the tracepoint if the PC is a pseudo-register.
13547 2014-01-13 Tom Tromey <tromey@redhat.com>
13549 * defs.h (XCALLOC): Remove.
13550 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13551 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13552 * dwarf2loc.c (allocate_piece_closure): Likewise.
13553 * elfread.c (elf_symfile_segments): Likewise.
13554 (elf_symfile_segments): Likewise.
13555 * gdbtypes.c (copy_type_recursive): Likewise.
13556 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13557 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13558 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13560 * mt-tdep.c (mt_gdbarch_init): Likewise.
13561 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13563 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13564 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13565 * registry.c (registry_alloc_data): Likewise.
13566 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13567 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13568 * serial.c (serial_fdopen_ops): Likewise.
13569 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13571 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13572 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13575 2014-01-13 Tom Tromey <tromey@redhat.com>
13577 * defs.h (XMALLOC): Remove.
13578 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13579 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13580 * cli-out.c (struct ui_out *): Likewise.
13581 * cli/cli-dump.c (add_dump_command): Likewise.
13582 (add_dump_command): Likewise.
13583 * complaints.c (get_complaints): Likewise.
13584 (find_complaint): Likewise.
13585 * dwarf2-frame.c (execute_cfa_program): Likewise.
13586 * dwarf2read.c (abbrev_table_read_table): Likewise.
13587 * gdbarch.sh: Likewise.
13588 * gdbarch.c: Rebuild.
13589 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13590 * interps.c (interp_new): Likewise.
13591 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13592 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13593 * mi/mi-console.c (mi_console_file_new): Likewise.
13594 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13595 * mi/mi-out.c (mi_out_new): Likewise.
13596 * mi/mi-parse.c (mi_parse): Likewise.
13597 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13598 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13599 * observer.c (xalloc_observer_list_node): Likewise.
13600 * regcache.c (regcache_xmalloc_1): Likewise.
13601 * reggroups.c (reggroup_new): Likewise.
13602 (_initialize_reggroup): Likewise.
13603 * registry.c (register_data_with_cleanup): Likewise.
13604 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13605 * ser-base.c (serial_ttystate): Likewise.
13606 * ser-mingw.c (make_pipe_state): Likewise.
13607 * ser-pipe.c (pipe_open): Likewise.
13608 * serial.c (serial_open): Likewise.
13609 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13610 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13611 (tui_alloc_win_info): Likewise.
13612 (tui_add_content_elements): Likewise.
13613 * tui/tui-file.c (tui_file_new): Likewise.
13614 * tui/tui-out.c (tui_out_new): Likewise.
13615 * ui-file.c (mem_file_new): Likewise.
13616 * ui-out.c (push_level): Likewise.
13617 (make_cleanup_ui_out_end): Likewise.
13618 (append_header_to_list): Likewise.
13619 (ui_out_new): Likewise.
13620 * user-regs.c (user_reg_add_builtin): Likewise.
13622 2014-01-13 Tom Tromey <tromey@redhat.com>
13624 * defs.h (XZALLOC): Remove.
13625 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13626 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13627 (get_ada_tasks_inferior_data): Likewise.
13628 * auto-load.c (get_auto_load_pspace_data): Likewise.
13629 * auxv.c (get_auxv_inferior_data): Likewise.
13630 * bfd-target.c (target_bfd_reopen): Likewise.
13631 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13632 (deprecated_insert_raw_breakpoint): Likewise.
13633 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13634 * corelow.c (core_open): Likewise.
13635 * darwin-nat.c (darwin_check_new_threads): Likewise.
13636 (darwin_attach_pid): Likewise.
13637 * dummy-frame.c (dummy_frame_push): Likewise.
13638 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13639 * dwarf2loc.c (allocate_piece_closure): Likewise.
13640 * elfread.c (elf_symfile_segments): Likewise.
13641 * eval.c (ptrmath_type_p): Likewise.
13642 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13643 * gdbtypes.c (alloc_type_arch): Likewise.
13644 (alloc_type_instance): Likewise.
13645 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13646 * inf-child.c (inf_child_can_use_agent): Likewise.
13647 * inflow.c (get_inflow_inferior_data): Likewise.
13648 * infrun.c (save_infcall_suspend_state): Likewise.
13649 * jit.c (jit_reader_load): Likewise.
13650 (get_jit_objfile_data): Likewise.
13651 (get_jit_program_space_data): Likewise.
13652 (jit_object_open_impl): Likewise.
13653 (jit_symtab_open_impl): Likewise.
13654 (jit_block_open_impl): Likewise.
13655 (jit_frame_sniffer): Likewise.
13656 * linux-fork.c (add_fork): Likewise.
13657 * maint.c (make_command_stats_cleanup): Likewise.
13658 * objfiles.c (get_objfile_pspace_data): Likewise.
13659 * opencl-lang.c (struct lval_closure): Likewise.
13660 * osdata.c (osdata_start_osdata): Likewise.
13661 * progspace.c (new_address_space): Likewise.
13662 (add_program_space): Likewise.
13663 * remote-sim.c (get_sim_inferior_data): Likewise.
13664 * sh-tdep.c (sh_gdbarch_init): Likewise.
13665 * skip.c (Ignore): Likewise.
13666 (skip_delete_command): Likewise.
13667 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13668 (library_list_start_library): Likewise.
13669 (solib_aix_current_sos): Likewise.
13670 * solib-darwin.c (get_darwin_info): Likewise.
13671 (darwin_current_sos): Likewise.
13672 * solib-dsbt.c (get_dsbt_info): Likewise.
13673 * solib-ia64-hpux.c (new_so_list): Likewise.
13674 (ia64_hpux_get_solib_linkage_addr): Likewise.
13675 * solib-spu.c (append_ocl_sos): Likewise.
13676 (spu_current_sos): Likewise.
13677 * solib-svr4.c (get_svr4_info): Likewise.
13678 (svr4_keep_data_in_core): Likewise.
13679 (library_list_start_library): Likewise.
13680 (svr4_default_sos): Likewise.
13681 (svr4_read_so_list): Likewise.
13682 * solib-target.c (library_list_start_library): Likewise.
13683 (solib_target_current_sos): Likewise.
13684 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13685 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13686 * symfile.c (default_symfile_segments): Likewise.
13687 * target-descriptions.c (tdesc_data_init): Likewise.
13688 (tdesc_create_reg): Likewise.
13689 (struct tdesc_type *): Likewise.
13690 (tdesc_create_vector): Likewise.
13691 (tdesc_set_struct_size): Likewise.
13692 (struct tdesc_type *): Likewise.
13693 (tdesc_free_feature): Likewise.
13694 (tdesc_create_feature): Likewise.
13695 * windows-nat.c (windows_add_thread): Likewise.
13696 (windows_make_so): Likewise.
13697 * xml-support.c (gdb_xml_body_text): Likewise.
13698 (gdb_xml_create_parser_and_cleanup): Likewise.
13699 (xml_process_xincludes): Likewise.
13700 * xml-syscall.c (allocate_syscalls_info): Likewise.
13701 (syscall_create_syscall_desc): Likewise.
13703 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13705 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13706 function, with code from i386_stap_parse_special_token.
13707 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13708 (i386_stap_parse_special_token): Move code to the two functions
13709 above; simplify it.
13711 2014-01-09 Pedro Alves <palves@redhat.com>
13712 Hui Zhu <hui@codesourcery.com>
13715 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13716 bp_err_string. Don't mark the location shlib_disabled if the
13717 error thrown wasn't a generic or memory error. Catch errors
13718 thrown while inserting breakpoints in overlayed code. Output
13719 error message of software breakpoints.
13720 * remote.c (remote_insert_breakpoint): If this breakpoint has
13721 target-side commands but this stub doesn't support Z0 packets,
13722 throw NOT_SUPPORTED_ERROR error.
13723 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13724 * target.h (target_insert_breakpoint): Extend comment.
13725 (target_insert_hw_breakpoint): Add comment.
13727 2014-01-08 Pedro Alves <palves@redhat.com>
13729 * remote.c (remote_add_thread): Add threads silently if starting
13731 (remote_notice_new_inferior): If in all-stop, and starting up,
13732 don't call notice_new_inferior.
13733 (get_current_thread): New function, factored out from ...
13734 (add_current_inferior_and_thread): ... this. Adjust.
13735 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13736 found any thread, then select the remote's current thread as GDB's
13737 current thread too.
13739 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13741 * NEWS: Create a new section for the next release branch.
13742 Rename the section of the current branch, now that it has
13745 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13747 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13748 * version.in: Bump version to 7.7.50.DATE-cvs.
13750 2014-01-08 Yao Qi <yao@codesourcery.com>
13752 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13753 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13754 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13756 2014-01-08 Yao Qi <yao@codesourcery.com>
13758 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13759 return value of bfd_get_filename to symbol_file_add_from_bfd.
13761 2014-01-08 Pierre Muller <muller@sourceware.org>
13764 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13765 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13766 to prim_record_mininal_symbol_and_info.
13767 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13768 in call to prim_record_minimal_symbol_and_info.
13769 (read_pe_exported_syms): Set index field of section_data.
13771 2014-01-07 Andrew Pinski <apinski@cavium.com>
13773 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13774 * features/aarch64.c: Regenerate.
13776 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13778 * target.c (return_null): Define.
13779 (update_current_target): Use it instead of return_zero for
13780 functions that return a pointer.
13782 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13784 * source.c (add_path): Fix check for duplicated paths in the previously
13787 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13789 * ada-lang.c: Remove duplicated include statements.
13790 * alphabsd-nat.c: Ditto.
13791 * amd64-darwin-tdep.c: Ditto.
13792 * amd64fbsd-nat.c: Ditto.
13793 * auto-load.c: Ditto.
13795 * breakpoint.c: Ditto.
13796 * dbxread.c: Ditto.
13797 * fork-child.c: Ditto.
13798 * gdb_usleep.c: Ditto.
13799 * i386-darwin-tdep.c: Ditto.
13800 * i386fbsd-nat.c: Ditto.
13802 * inferior.c: Ditto.
13803 * jv-lang.c: Ditto.
13804 * linux-nat.c: Ditto.
13805 * linux-tdep.c: Ditto.
13806 * m68kbsd-nat.c: Ditto.
13807 * m68klinux-nat.c: Ditto.
13808 * microblaze-tdep.c: Ditto.
13809 * mips-linux-tdep.c: Ditto.
13810 * mn10300-tdep.c: Ditto.
13811 * nto-tdep.c: Ditto.
13812 * opencl-lang.c: Ditto.
13814 * printcmd.c: Ditto.
13815 * regcache.c: Ditto.
13816 * remote-m32r-sdi.c: Ditto.
13818 * symfile.c: Ditto.
13820 * tilegx-linux-nat.c: Ditto.
13821 * tilegx-tdep.c: Ditto.
13822 * tracepoint.c: Ditto.
13824 * vaxbsd-nat.c: Ditto.
13825 * windows-nat.c: Ditto.
13826 * xtensa-tdep.c: Ditto.
13828 2014-01-07 Yao Qi <yao@codesourcery.com>
13830 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13832 2014-01-07 Yao Qi <yao@codesourcery.com>
13833 Joel Brobecker <brobecker@adacore.com>
13835 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13836 (pdc_write_regs): Likewise.
13837 (fetch_regs_kernel_thread): Likewise.
13838 (store_regs_kernel_thread): Likewise.
13840 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13842 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13843 tagged type objects to their actual type.
13845 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13847 * ada-valprint.c (print_field_values): Add "language" parameter.
13848 Update calls to print_field_values and print_variant_part.
13849 Pass new parameter "language" in call to val_print instead
13850 of "current_language". Replace call to ada_val_print by call
13852 (print_variant_part): Add "language" parameter.
13853 (ada_val_print_struct_union): Update call to print_field_values.
13855 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13857 * ada-valprint.c (ui_memcpy): Delete.
13858 (ada_print_floating): Update documentation. Add empty line
13859 between between function documentation and implementation.
13860 Delete variable "buffer". Use ui_file_xstrdup in place of
13861 ui_file_put. Minor adjustments following this change.
13863 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13865 * ada-valprint.c (ada_val_print_string): New function,
13866 extracted from ada_val_print_array.
13867 (ada_val_print_array): Replace extracted code by call
13868 to ada_val_print_string followed by a return. Move
13869 "else" branch to the function's top block.
13871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13873 * ada-valprint.c (ada_val_print_array): Move implementation
13874 down. Rename parameter "offset" and "val" into "offset_aligned"
13875 and "original_value" respectively. Add parameter "offset".
13877 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13879 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13880 re-organizing the code. Change the "???" message printed
13881 when target type is a TYPE_CODE_UNDEF into
13882 "<ref to undefined type>".
13884 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13886 * ada-valprint.c (print_record): Delete, implementation inlined...
13887 (ada_val_print_struct_union): ... here. Remove call to
13888 ada_check_typedef in inlined implementation.
13890 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13892 * ada-valprint.c (ada_val_print_gnat_array): New function,
13893 extracted from ada_val_print_1;
13894 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13895 (ada_val_print_flt, ada_val_print_struct_union)
13896 (ada_val_print_ref): Likewise.
13897 (ada_val_print_1): Delete variables i and elttype.
13898 Replace extracted-out code by call to corresponding
13901 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13903 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13905 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13907 * ada-valprint.c (ada_val_print_1): Replace calls to
13908 ada_val_print_1 by calls to val_print.
13910 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13912 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13913 Update calls to self accordingly. Replace calls to c_val_print
13914 by calls to val_print.
13916 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13918 * ada-valprint.c (print_record): Delete declaration.
13919 (adjust_type_signedness, ada_val_print_1): Likewise.
13920 (ada_val_print): Move function implementation down.
13921 (print_variant_part, print_field_values, print_record):
13922 Move function implementation up.
13924 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13926 * python/py-type.c (typy_get_name): New function.
13927 (type_object_getset): Add entry for attribute "name".
13928 * NEWS: Add entry mentioning this new attribute.
13930 2014-01-07 Yao Qi <yao@codesourcery.com>
13932 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13935 2014-01-07 Yao Qi <yao@codesourcery.com>
13937 * gnu-nat.c (info_port_rights): Add qualifier const to
13940 2014-01-07 Yao Qi <yao@codesourcery.com>
13942 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13944 2014-01-07 Yao Qi <yao@codesourcery.com>
13946 * gnu-nat.c (make_inf) Update declaration.
13947 (make_inf): Make it static.
13948 (inf_set_traced): Likewise.
13949 (inf_port_to_thread, inf_task_died_status): Likewise.
13951 2014-01-07 Yao Qi <yao@codesourcery.com>
13953 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13955 2014-01-07 Yao Qi <yao@codesourcery.com>
13957 * gnu-nat.c (_initialize_gnu_nat): Declare.
13959 2014-01-07 Yao Qi <yao@codesourcery.com>
13961 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13963 (struct gdbarch_info) <byte_order>: Change type to
13965 <byte_order_for_code>: Likewise.
13966 * gdbarch.c, gdbarch.h: Regenerated.
13968 2014-01-06 Sasha Smundak <asmundak@google.com>
13970 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13972 2014-01-06 Tom Tromey <tromey@redhat.com>
13974 * doublest.c (convert_doublest_to_floatformat): Use const, not
13976 * somread.c (som_symtab_read): Likewise.
13978 2014-01-07 Hui Zhu <hui@codesourcery.com>
13980 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13981 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13982 (gdb_bfd_fopen): Ditto.
13983 (gdb_bfd_openr): Ditto.
13984 (gdb_bfd_openw): Ditto.
13985 (gdb_bfd_openr_iovec): Ditto.
13986 (gdb_bfd_fdopenr): Ditto.
13987 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13988 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13990 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13992 * symfile-mem.c (symbol_file_add_from_memory): Removed
13993 gdb_bfd_stash_filename.
13995 2014-01-03 Doug Evans <dje@google.com>
13997 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14000 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14002 Update year range in copyright notice of all files.
14004 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14006 * top.c (print_gdb_version): Set copyright year to 2014.
14008 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14010 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14012 For older changes see ChangeLog-2013.
14018 version-control: never