1 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
3 * Makefile.in (SFILES): Remove d-support.c.
4 (COMMON_OBS): Remove d-support.o.
5 * d-lang.h (d_parse_symbol): Remove declaration.
6 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
7 * d-support.c: Remove file.
9 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
11 * gdb/infrun.c (process_event_stop_test): Apply
12 gdbarch_addr_bits_remove to longjmp resume address.
14 2014-10-15 Pedro Alves <palves@redhat.com>
16 * regformats/microblaze.dat: Delete file.
18 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
20 * features/Makefile (microblaze-expedite): Replace pc with rpc.
21 * regformats/microblaze-with-stack-protect.dat: Regenerate.
23 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
25 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
28 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
32 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
35 2014-10-14 Joel Brobecker <brobecker@adacore.com>
37 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
38 of the case where the second operand is a pointer.
39 <BINOP_SUB>: Likewise.
41 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
43 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
44 only if it is not NULL.
45 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
46 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
47 (struct probe_ops) <clear_semaphore>: Likewise.
48 * tracepoint.c (start_tracing): Call set_semaphore only if it is
50 (stop_tracing): Likewise, for clear_semaphore.
52 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
54 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
55 using language_c, instead of current_language.
57 2014-10-13 Doug Evans <dje@google.com>
59 * python/py-objfile.c (objfpy_initialize): New function.
60 (objfpy_new, objfile_to_objfile_object): Call it.
61 * python/py-progspace.c (pspy_initialize): New function.
62 (pspy_new, pspace_to_pspace_object): Call it.
64 2014-10-13 Miroslav Franc <mfranc@redhat.com>
65 Jan Kratochvil <jan.kratochvil@redhat.com>
67 Fix "save breakpoints" for "catch" command.
68 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
71 2014-10-12 Miroslav Franc <mfranc@redhat.com>
73 Fix "save breakpoints" for "disable $bpnum" command.
74 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
76 2014-10-10 Pedro Alves <palves@redhat.com>
78 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
79 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
80 (HFILES_NO_SRCDIR): Remove solib-irix.h.
81 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
83 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
84 * configure.ac: Remove references to IRIX.
85 * configure.host: Add *-*-irix* to the obsolete hosts section.
86 Remove all other references to irix.
87 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
90 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
92 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
93 isn't valid, release the tdesc arch data and return NULL.
95 2014-10-10 Pedro Alves <palves@redhat.com>
97 * linux-tdep.c: Include observer.h.
98 (linux_inferior_data): New global.
99 (struct linux_info): New structure.
100 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
101 (get_linux_inferior_data): New functions.
102 (linux_vsyscall_range): Rename to ...
103 (linux_vsyscall_range_raw): ... this.
104 (linux_vsyscall_range): New function; handles caching.
105 (_initialize_linux_tdep): Register linux_inferior_data. Install
106 inferior_exit and inferior_appeared observers.
108 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
109 Pedro Alves <palves@redhat.com>
112 * solib-svr4.c (svr4_read_so_list): Rename to ...
113 (svr4_current_sos_1): ... this and change the function comment.
114 (svr4_current_sos): New function.
116 2014-10-10 Pedro Alves <palves@redhat.com>
118 * arch-utils.c (default_vsyscall_range): New function.
119 * arch-utils.h (default_vsyscall_range): New declaration.
120 * gdbarch.sh (vsyscall_range): New hook.
121 * gdbarch.h, gdbarch.c: Regenerate.
122 * linux-tdep.c (linux_vsyscall_range): New function.
123 (linux_init_abi): Install linux_vsyscall_range as
124 vsyscall_range gdbarch hook.
125 * memrange.c (address_in_mem_range): New function.
126 * memrange.h (address_in_mem_range): New declaration.
127 * symfile-mem.c (find_vdso_size): Delete function.
128 (add_vsyscall_page): Use gdbarch_vsyscall_range.
130 2014-10-10 Pedro Alves <palves@redhat.com>
132 * infrun.c (normal_stop): Fix typo in comment.
134 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
137 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
138 typo when using logical AND to determine instruction type.
140 2014-10-09 Yao Qi <yao@codesourcery.com>
142 * infrun.c (handle_signal_stop): Remove local variable
145 2014-10-08 Stan Shebs <stan@codesourcery.com>
147 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
149 2014-10-08 Gary Benson <gbenson@redhat.com>
151 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
153 2014-10-08 Gary Benson <gbenson@redhat.com>
155 * common/common-defs.h: Include common-exceptions.h.
156 * exceptions.h: Do not include common-exceptions.h.
158 2014-10-08 Gary Benson <gbenson@redhat.com>
160 * common/common-defs.h: Include cleanups.h.
161 * common/common-exceptions.c: Do not include cleanups.h.
164 2014-10-08 Gary Benson <gbenson@redhat.com>
166 * ada-lang.c: Do not include exceptions.h.
167 * ada-valprint.c: Likewise.
168 * amd64-tdep.c: Likewise.
169 * auto-load.c: Likewise.
171 * break-catch-throw.c: Likewise.
172 * breakpoint.c: Likewise.
173 * btrace.c: Likewise.
174 * c-lang.c: Likewise.
175 * cli/cli-cmds.c: Likewise.
176 * cli/cli-interp.c: Likewise.
177 * cli/cli-script.c: Likewise.
178 * completer.c: Likewise.
179 * corefile.c: Likewise.
180 * corelow.c: Likewise.
181 * cp-abi.c: Likewise.
182 * cp-support.c: Likewise.
183 * cp-valprint.c: Likewise.
184 * darwin-nat.c: Likewise.
185 * dwarf2-frame-tailcall.c: Likewise.
186 * dwarf2-frame.c: Likewise.
187 * dwarf2loc.c: Likewise.
188 * dwarf2read.c: Likewise.
190 * event-loop.c: Likewise.
191 * event-top.c: Likewise.
192 * f-valprint.c: Likewise.
193 * frame-unwind.c: Likewise.
195 * gdbtypes.c: Likewise.
196 * gnu-v2-abi.c: Likewise.
197 * gnu-v3-abi.c: Likewise.
198 * guile/scm-auto-load.c: Likewise.
199 * guile/scm-breakpoint.c: Likewise.
200 * guile/scm-cmd.c: Likewise.
201 * guile/scm-frame.c: Likewise.
202 * guile/scm-lazy-string.c: Likewise.
203 * guile/scm-param.c: Likewise.
204 * guile/scm-symbol.c: Likewise.
205 * guile/scm-type.c: Likewise.
206 * hppa-hpux-tdep.c: Likewise.
207 * i386-tdep.c: Likewise.
208 * inf-loop.c: Likewise.
209 * infcall.c: Likewise.
210 * infcmd.c: Likewise.
211 * infrun.c: Likewise.
212 * interps.c: Likewise.
213 * interps.h: Likewise.
215 * linespec.c: Likewise.
216 * linux-nat.c: Likewise.
217 * linux-thread-db.c: Likewise.
218 * m32r-rom.c: Likewise.
220 * memory-map.c: Likewise.
221 * mi/mi-cmd-break.c: Likewise.
222 * mi/mi-cmd-stack.c: Likewise.
223 * mi/mi-interp.c: Likewise.
224 * mi/mi-main.c: Likewise.
225 * monitor.c: Likewise.
226 * nto-procfs.c: Likewise.
227 * objc-lang.c: Likewise.
228 * p-valprint.c: Likewise.
230 * ppc-linux-tdep.c: Likewise.
231 * printcmd.c: Likewise.
233 * python/py-auto-load.c: Likewise.
234 * python/py-breakpoint.c: Likewise.
235 * python/py-cmd.c: Likewise.
236 * python/py-finishbreakpoint.c: Likewise.
237 * python/py-frame.c: Likewise.
238 * python/py-framefilter.c: Likewise.
239 * python/py-function.c: Likewise.
240 * python/py-gdb-readline.c: Likewise.
241 * python/py-inferior.c: Likewise.
242 * python/py-infthread.c: Likewise.
243 * python/py-lazy-string.c: Likewise.
244 * python/py-linetable.c: Likewise.
245 * python/py-param.c: Likewise.
246 * python/py-prettyprint.c: Likewise.
247 * python/py-symbol.c: Likewise.
248 * python/py-type.c: Likewise.
249 * python/py-value.c: Likewise.
250 * python/python-internal.h: Likewise.
251 * python/python.c: Likewise.
252 * record-btrace.c: Likewise.
253 * record-full.c: Likewise.
254 * regcache.c: Likewise.
255 * remote-fileio.c: Likewise.
256 * remote-mips.c: Likewise.
257 * remote.c: Likewise.
258 * rs6000-aix-tdep.c: Likewise.
259 * rs6000-nat.c: Likewise.
261 * solib-darwin.c: Likewise.
262 * solib-dsbt.c: Likewise.
263 * solib-frv.c: Likewise.
264 * solib-ia64-hpux.c: Likewise.
265 * solib-spu.c: Likewise.
266 * solib-svr4.c: Likewise.
268 * spu-tdep.c: Likewise.
270 * stap-probe.c: Likewise.
271 * symfile-mem.c: Likewise.
272 * symmisc.c: Likewise.
273 * target.c: Likewise.
274 * thread.c: Likewise.
276 * tracepoint.c: Likewise.
277 * tui/tui-interp.c: Likewise.
278 * typeprint.c: Likewise.
280 * valarith.c: Likewise.
281 * valops.c: Likewise.
282 * valprint.c: Likewise.
284 * varobj.c: Likewise.
285 * windows-nat.c: Likewise.
286 * xml-support.c: Likewise.
288 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
290 * mips-tdep.c (add_offset_16): Rewrite to implement what the
292 (extended_mips16_next_pc): Update accordingly.
294 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
296 * mips-tdep.c (mips16_instruction_is_compact_branch): New
298 (micromips_instruction_is_compact_branch): Likewise.
299 (mips16_scan_prologue): Terminate scanning upon seeing a branch
300 or a compact jump, reaching a jump delay slot, or seeing a
301 second non-prologue instruction.
302 (micromips_scan_prologue): Also terminate scanning upon seeing a
303 compact branch or jump, or reaching a branch or jump delay slot.
304 (mips32_scan_prologue): Terminate scanning upon reaching a branch
305 or jump delay slot, or seeing a second non-prologue instruction.
306 (mips32_instruction_has_delay_slot): Retain instruction
307 examination code only, update arguments accordingly and move
308 instruction fetch pieces to...
309 (mips32_insn_at_pc_has_delay_slot): ... this new function.
310 (micromips_instruction_has_delay_slot): Likewise and to...
311 (micromips_insn_at_pc_has_delay_slot): ... this new function.
312 (mips16_instruction_has_delay_slot): Likewise and to...
313 (mips16_insn_at_pc_has_delay_slot): ... this new function.
314 (mips_single_step_through_delay): Update accordingly.
315 (mips_adjust_breakpoint_address): Likewise.
317 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
319 * mips-tdep.c (micromips_instruction_has_delay_slot): When
320 !mustbe32 also return 1 for 32-bit instructions.
321 (mips16_instruction_has_delay_slot): Likewise. Add an
324 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
326 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
329 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
331 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
333 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
334 for the breakpoint's address. Don't preinitialize `placed_size'.
335 (insert_bp_location): Set `reqstd_address' rather than
337 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
338 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
340 (bkpt_remove_location): Likewise.
341 (deprecated_insert_raw_breakpoint): Likewise.
342 (deprecated_remove_raw_breakpoint): Likewise.
343 (find_single_step_breakpoint): Likewise.
344 * mem-break.c (default_memory_insert_breakpoint): Use
345 `reqstd_address' for the breakpoint's address. Don't set
346 `placed_address' or `placed_size' if breakpoint contents couldn't
347 have been determined.
348 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
349 the breakpoint's address.
350 (remote_insert_hw_breakpoint): Likewise. Don't set
351 `placed_address' or `placed_size' if breakpoint couldn't have been
353 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
354 `reqstd_address' for the breakpoint's address.
355 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
356 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
357 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
358 * microblaze-linux-tdep.c
359 (microblaze_linux_memory_remove_breakpoint): Likewise.
360 * monitor.c (monitor_insert_breakpoint): Likewise.
361 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
362 (procfs_insert_hw_breakpoint): Likewise.
363 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
364 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
365 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
366 * remote-mips.c (mips_insert_breakpoint): Likewise.
367 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
369 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
371 * valops.c (value_assign): Check for bit field assignments
372 before calling architecture-specific register value
373 conversion functions.
375 2014-10-03 Pierre Muller <muller@sourceware.org>
377 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
379 2014-10-02 Pedro Alves <palves@redhat.com>
381 * breakpoint.c (breakpoints_should_be_inserted_now): Use
382 threads_are_executing.
383 * breakpoint.h (breakpoints_should_be_inserted_now): Add
385 * gdbthread.h (threads_are_executing): Declare.
386 (handle_signal_stop) <random signals>: Don't print about the
387 signal here if stopping.
388 (end_stepping_range): Don't notify observers here.
389 (normal_stop): Update the thread list. If stopped by a random
390 signal or a stepping range ended, notify observers.
391 * thread.c (threads_executing): New global.
392 (init_thread_list): Clear 'threads_executing'.
393 (set_executing): Set or clear 'threads_executing'.
394 (threads_are_executing): New function.
395 (update_threads_executing): New function.
396 (update_thread_list): Use it.
398 2014-10-02 Pedro Alves <palves@redhat.com>
401 * breakpoint.c (update_breakpoints_after_exec): Don't create
402 overlay, longjmp, std terminate nor exception breakpoints here.
404 2014-10-02 Pedro Alves <palves@redhat.com>
406 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
408 * inferior.c (find_inferior_for_program_space): Give preference to
409 the current inferior.
410 * inferior.h (find_inferior_for_program_space): Update comment.
411 * progspace.c (switch_to_program_space_and_thread): Prefer the
412 current inferior if it's bound to the program space requested. If
413 the inferior found doesn't have a PID yet, don't bother looking up
415 * progspace.h (switch_to_program_space_and_thread): Adjust
417 * thread.c (any_thread_of_process, any_live_thread_of_process):
418 Give preference to the current thread.
420 2014-10-01 Pedro Alves <palves@redhat.com>
422 * breakpoint.c (insert_bp_location): Error out if inserting a
423 software breakpoint at a read-only address.
424 * target.c (memory_xfer_check_region): New function, factored out
426 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
428 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
429 against the memory region attributes.
431 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
433 * NEWS: Announce new exit-code field in -list-thread-groups
435 * inferior.c (exit_inferior_1): Don't clear exit code.
436 (inferior_appeared): Clear exit code.
437 * mi/mi-main.c (print_one_inferior): Add printing of the exit
440 2014-10-01 Pedro Alves <palves@redhat.com>
442 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
443 GENERATED" along with emacs/vi read-only markers.
444 * regformats/aarch64.dat: Regenerate.
445 * regformats/arm-with-iwmmxt.dat: Regenerate.
446 * regformats/arm-with-neon.dat: Regenerate.
447 * regformats/arm-with-vfpv2.dat: Regenerate.
448 * regformats/arm-with-vfpv3.dat: Regenerate.
449 * regformats/i386/amd64-avx-linux.dat: Regenerate.
450 * regformats/i386/amd64-avx.dat: Regenerate.
451 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
452 * regformats/i386/amd64-avx512.dat: Regenerate.
453 * regformats/i386/amd64-linux.dat: Regenerate.
454 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
455 * regformats/i386/amd64-mpx.dat: Regenerate.
456 * regformats/i386/amd64.dat: Regenerate.
457 * regformats/i386/i386-avx-linux.dat: Regenerate.
458 * regformats/i386/i386-avx.dat: Regenerate.
459 * regformats/i386/i386-avx512-linux.dat: Regenerate.
460 * regformats/i386/i386-avx512.dat: Regenerate.
461 * regformats/i386/i386-linux.dat: Regenerate.
462 * regformats/i386/i386-mmx-linux.dat: Regenerate.
463 * regformats/i386/i386-mmx.dat: Regenerate.
464 * regformats/i386/i386-mpx-linux.dat: Regenerate.
465 * regformats/i386/i386-mpx.dat: Regenerate.
466 * regformats/i386/i386.dat: Regenerate.
467 * regformats/i386/x32-avx-linux.dat: Regenerate.
468 * regformats/i386/x32-avx.dat: Regenerate.
469 * regformats/i386/x32-avx512-linux.dat: Regenerate.
470 * regformats/i386/x32-avx512.dat: Regenerate.
471 * regformats/i386/x32-linux.dat: Regenerate.
472 * regformats/i386/x32.dat: Regenerate.
473 * regformats/microblaze-with-stack-protect.dat: Regenerate.
474 * regformats/mips-dsp-linux.dat: Regenerate.
475 * regformats/mips-linux.dat: Regenerate.
476 * regformats/mips64-dsp-linux.dat: Regenerate.
477 * regformats/mips64-linux.dat: Regenerate.
478 * regformats/nios2-linux.dat: Regenerate.
479 * regformats/rs6000/powerpc-32.dat: Regenerate.
480 * regformats/rs6000/powerpc-32l.dat: Regenerate.
481 * regformats/rs6000/powerpc-64l.dat: Regenerate.
482 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
483 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
484 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
485 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
486 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
487 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
488 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
489 * regformats/s390-linux32.dat: Regenerate.
490 * regformats/s390-linux32v1.dat: Regenerate.
491 * regformats/s390-linux32v2.dat: Regenerate.
492 * regformats/s390-linux64.dat: Regenerate.
493 * regformats/s390-linux64v1.dat: Regenerate.
494 * regformats/s390-linux64v2.dat: Regenerate.
495 * regformats/s390-te-linux64.dat: Regenerate.
496 * regformats/s390x-linux64.dat: Regenerate.
497 * regformats/s390x-linux64v1.dat: Regenerate.
498 * regformats/s390x-linux64v2.dat: Regenerate.
499 * regformats/s390x-te-linux64.dat: Regenerate.
500 * regformats/tic6x-c62x-linux.dat: Regenerate.
501 * regformats/tic6x-c62x.dat: Regenerate.
502 * regformats/tic6x-c64x-linux.dat: Regenerate.
503 * regformats/tic6x-c64x.dat: Regenerate.
504 * regformats/tic6x-c64xp-linux.dat: Regenerate.
505 * regformats/tic6x-c64xp.dat: Regenerate.
507 2014-10-01 Pedro Alves <palves@redhat.com>
509 * features/Makefile: Update comments.
510 (XMLTOC): List all xml files we build C files from.
511 (clean-cfiles): New rule.
513 2014-10-01 Pedro Alves <palves@redhat.com>
515 * features/i386/amd64-avx512-linux.c: Regenerate.
516 * features/i386/amd64-avx512.c: Regenerate.
517 * features/i386/x32-avx512-linux.c: Regenerate.
518 * features/i386/x32-avx512.c: Regenerate.
520 2014-10-01 Pedro Alves <palves@redhat.com>
522 * features/Makefile (WHICH): Remove arm-with-m,
523 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
525 2014-10-01 Pedro Alves <palves@redhat.com>
527 * features/Makefile (clean): New rule.
529 2014-10-01 Pedro Alves <palves@redhat.com>
531 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
532 (zmm14h): Add missing end quotes.
534 2014-10-01 Pedro Alves <palves@redhat.com>
536 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
537 * features/aarch64.c: Regenerate.
539 2014-09-30 Don Breazeal <donb@codesourcery.com>
541 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
542 code so as to work with follow_fork_inferior.
543 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
544 (inf_ttrace_create_inferior): Remove reference to
545 inf_ttrace_vfork_ppid.
546 (inf_ttrace_attach): Ditto.
547 (inf_ttrace_detach): Ditto.
548 (inf_ttrace_kill): Use current_inferior instead of
549 inf_ttrace_vfork_ppid.
550 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
551 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
552 inferior away from the parent.
553 * infrun.c (follow_fork): Call follow_fork_inferior instead of
555 (follow_fork_inferior): New function.
556 (follow_inferior_reset_breakpoints): Make function static.
557 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
558 * linux-nat.c (linux_child_follow_fork): Move target-independent
559 code to infrun.c:follow_fork_inferior.
561 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
563 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
564 * gdbarch.c: Regenerate.
565 * gdbarch.h: Likewise.
566 * corelow.c (sniff_core_bfd): Drop presence check for deleted
567 gdbarch method 'regset_from_core_section'.
568 (get_core_register_section): Remove handling for the case that
569 regset == NULL and regset_from_core_section is defined.
570 (get_core_registers): Drop check for deleted method.
571 * procfs.c (procfs_do_thread_registers): Adjust comment.
573 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
575 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
576 (linux_nat_make_corefile_notes): Remove.
577 (linux_target_install_ops): Do not set target method
578 'make_corefile_notes'.
579 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
581 (linux_corefile_thread_callback): Instead of args->collect, call
582 linux_collect_thread_registers.
583 (linux_make_corefile_notes): Remove 'collect' parameter. Return
584 NULL unless there is a regset iterator.
585 (linux_make_corefile_notes_1): Remove.
586 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
587 by linux_make_corefile_notes.
588 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
590 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
592 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
593 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
595 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
597 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
599 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
600 (xtensa_iterate_over_regset_sections): New.
601 (xtensa_gdbarch_init): Adjust gdbarch initialization.
603 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
605 * vax-tdep.c (vax_regset_from_core_section): Remove.
606 (vax_iterate_over_regset_sections): New.
607 (vax_gdbarch_init): Adjust gdbarch initialization.
609 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
611 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
612 (tilegx_regset_from_core_section): Remove.
613 (tilegx_iterate_over_regset_sections): New.
614 (tilegx_linux_init_abi): Adjust gdbarch initialization.
616 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
618 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
619 (sparc_iterate_over_regset_sections): New.
620 (sparc32_gdbarch_init): Adjust gdbarch initialization.
621 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
623 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
624 (sparc64fbsd_init_abi): Call fbsd_init_abi.
625 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
626 target method 'make_corefile_notes'.
628 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
630 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
631 'sizeof_gregset' and 'sizeof_fpregset'.
632 * sh-tdep.c (sh_regset_from_core_section): Remove.
633 (sh_iterate_over_regset_sections): New.
634 (sh_gdbarch_init): Adjust gdbarch initialization.
635 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
637 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
640 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
642 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
643 (score7_linux_iterate_over_regset_sections): New.
644 (score_gdbarch_init): Adjust gdbarch initialization.
646 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
648 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
650 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
651 method 'make_corefile_notes'.
652 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
653 (ppcfbsd_regset_from_core_section): Remove.
654 (ppcfbsd_iterate_over_regset_sections): New.
655 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
657 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
658 (ppcnbsd_iterate_over_regset_sections): New.
659 (ppcnbsd_init_abi): Adjust.
660 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
661 (ppcobsd_iterate_over_regset_sections): New.
662 (ppcobsd_init_abi): Adjust.
663 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
664 (rs6000_aix_iterate_over_regset_sections): New.
665 (rs6000_aix_init_osabi): Adjust.
667 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
669 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
670 (nios2_regset_from_core_section): Remove.
671 (nios2_iterate_over_regset_sections): New.
672 (nios2_linux_init_abi): Adjust gdbarch initialization.
674 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
676 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
677 (am33_iterate_over_regset_sections): New.
678 (am33_linux_init_osabi): Adjust gdbarch initialization.
680 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
682 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
683 (mips_linux_iterate_over_regset_sections): New.
684 (mips_linux_init_abi): Adjust gdbarch initialization.
685 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
686 (mips64obsd_iterate_over_regset_sections): New.
687 (mips64obsd_init_abi): Adjust.
688 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
689 (mipsnbsd_iterate_over_regset_sections): New.
690 (mipsnbsd_init_abi): Adjust.
692 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
694 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
695 (m88k_iterate_over_regset_sections): New.
696 (m88k_gdbarch_init): Adjust gdbarch initialization.
698 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
700 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
701 (ia64_linux_iterate_over_regset_sections): New.
702 (ia64_linux_init_abi): Adjust gdbarch initialization.
704 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
706 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
707 (m68kbsd_iterate_over_regset_sections): New.
708 (m68kbsd_init_abi): Adjust gdbarch initialization.
709 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
710 (m68k_linux_iterate_over_regset_sections): New.
711 (m68k_linux_init_abi): Adjust gdbarch initialization.
713 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
715 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
716 (m32r_linux_regset_from_core_section): Remove.
717 (m32r_linux_iterate_over_regset_sections): New.
718 (m32r_linux_init_abi): Adjust gdbarch initialization.
720 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
722 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
723 (amd64obsd_iterate_over_regset_sections): New.
724 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
725 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
727 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
728 regset_from_core_section initialization.
729 * i386-tdep.c (i386_regset_from_core_section): Remove.
730 (i386_iterate_over_regset_sections): New.
731 (i386_gdbarch_init): Adjust gdbarch initialization.
732 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
733 (i386_iterate_over_regset_sections): New prototype.
734 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
736 (i386obsd_aout_iterate_over_regset_sections): New.
737 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
738 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
740 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
741 (amd64fbsd_init_abi): Call fbsd_init_abi.
742 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
743 (i386fbsd4_init_abi): Call fbsd_init_abi.
744 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
745 target method 'make_corefile_notes'.
746 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
748 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
750 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
751 (hppa_hpux_iterate_over_regset_sections): New.
752 (hppa_hpux_init_abi): Adjust gdbarch initialization.
753 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
754 (hppa_linux_iterate_over_regset_sections): New.
755 (hppa_linux_init_abi): Adjust.
756 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
757 (hppanbsd_iterate_over_regset_sections): New.
758 (hppanbsd_init_abi): Adjust.
759 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
760 (hppaobsd_iterate_over_regset_sections): New.
761 (hppaobsd_init_abi): Adjust.
763 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
765 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
766 (frv_linux_iterate_over_regset_sections): New.
767 (frv_linux_init_abi): Adjust gdbarch initialization.
769 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
771 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
772 (armbsd_iterate_over_regset_sections): New prototype.
773 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
774 (armbsd_iterate_over_regset_sections): New.
775 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
778 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
780 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
781 (alpha_linux_iterate_over_regset_sections): New.
782 (alpha_linux_init_abi): Adjust gdbarch initialization.
783 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
785 (alphanbsd_iterate_over_regset_sections): New prototype.
787 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
789 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
791 (aarch64_linux_iterate_over_regset_sections): New.
792 (aarch64_linux_init_abi): Adjust gdbarch initialization.
794 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
796 * fbsd-tdep.c: New file.
797 * fbsd-tdep.h: New file.
798 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
799 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
800 (ALLDEPFILES): Add fbsd-tdep.c.
802 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
804 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
806 * gdbarch.h: Regenerate.
807 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
809 (get_core_register_section): Add parameter 'regset' and use it, if
810 set. Add parameter 'min_size' and verify the bfd section size
812 (get_core_registers_cb): Add parameter 'regset' and pass it to
813 get_core_register section. For the "standard" register sections
814 ".reg" and ".reg2", set an appropriate default for human_name.
815 (get_core_registers): Don't abort when the gdbarch has an iterator
816 but no regset_from_core_section. Add NULL/0 for parameters
817 'regset'/'min_size' in calls to get_core_register_section.
818 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
819 'regset' and use it instead of calling the
820 regset_from_core_section gdbarch method.
821 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
822 * i386-tdep.c (i386_supply_xstateregset)
823 (i386_collect_xstateregset, i386_xstateregset): Moved to
825 (i386_regset_from_core_section): Drop handling for .reg-xfp and
827 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
828 core file support only if the regset iterator hasn't been set.
829 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
830 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
831 Moved from i386-tdep.c and renamed to *_linux*.
832 (i386_linux_iterate_over_regset_sections): Add regset parameter to
833 each callback invocation. Allow any .reg-xstate size when reading
835 * amd64-tdep.c (amd64_supply_xstateregset)
836 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
838 (amd64_regset_from_core_section): Remove.
839 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
840 install an amd64-specific regset_from_core_section gdbarch method.
841 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
842 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
843 Moved from amd64-tdep.c and renamed to *_linux*.
844 (amd64_linux_iterate_over_regset_sections): Add regset parameter
845 to each callback invocation. Allow any .reg-xstate size when
846 reading from a core file.
847 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
848 (arm_linux_iterate_over_regset_sections): Add regset parameter to
849 each callback invocation.
850 (arm_linux_init_abi): No longer set the regset_from_core_section
852 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
853 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
854 each callback invocation.
855 (ppc_linux_init_abi): No longer set the regset_from_core_section
857 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
858 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
859 (s390_regset_from_core_section): Remove.
860 (s390_iterate_over_regset_sections): Add regset parameter to each
862 (s390_gdbarch_init): No longer set the regset_from_core_section
863 gdbarch method. Drop initialization of deleted tdep fields.
865 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
867 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
868 (amd64_linux_iterate_over_regset_sections): New.
869 (amd64_linux_init_abi_common): Don't install the regset section
870 list, but the new iterator in gdbarch.
871 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
872 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
873 (arm_linux_iterate_over_regset_sections): ...here. New function.
874 (arm_linux_init_abi): Set iterator instead of section list.
875 * corelow.c (get_core_registers_cb): New function, logic moved
877 (get_core_registers): ...loop body here. Use new iterator method
878 instead of walking through the regset section list.
879 * gdbarch.sh: Remove 'core_regset_sections'. New method
880 'iterate_over_regset_sections'. New typedef
881 'iterate_over_regset_sections_cb'.
882 * gdbarch.c: Regenerate.
883 * gdbarch.h: Likewise.
884 * i386-linux-tdep.c (i386_linux_regset_sections)
885 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
887 (i386_linux_iterate_over_regset_sections): New.
888 (i386_linux_init_abi): Don't choose a regset section list, but
889 install new iterator in gdbarch.
890 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
891 (linux_collect_regset_section_cb): New function, logic moved
893 (linux_collect_thread_registers): ...loop body here. Use iterator
894 method instead of walking through list.
895 (linux_make_corefile_notes_1): Check for presence of iterator
896 method instead of regset section list.
897 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
898 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
899 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
900 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
901 (ppc_linux_iterate_over_regset_sections): ...here. New function.
902 (ppc_linux_init_abi): Don't choose from above regset section
903 lists, but install new iterator in gdbarch.
904 * regset.h (struct core_regset_section): Remove.
905 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
906 have_linux_v1, have_linux_v2, and have_tdb.
907 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
908 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
909 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
910 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
911 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
912 (s390_iterate_over_regset_sections): ...here. New function. Use
914 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
915 regset section lists, but install new iterator.
917 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
919 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
921 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
923 * progspace.c (print_program_space): Don't prune program spaces
924 before printing them.
926 2014-09-25 Pedro Alves <palves@redhat.com>
928 * infrun.c (user_visible_resume_ptid): Don't check
929 singlestep_breakpoints_inserted_p.
931 2014-09-25 Pedro Alves <palves@redhat.com>
933 * breakpoint.c (should_be_inserted): Add debug output.
935 2014-09-25 Pedro Alves <palves@redhat.com>
937 * infrun.c (stepping_past_instruction_at)
938 (clear_exit_convenience_vars): Point at infrun.h instead of
940 (handle_signal_stop): Fix typo.
942 2014-09-24 Yao Qi <yao@codesourcery.com>
944 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
947 2014-09-22 Gary Benson <gbenson@redhat.com>
949 * target.c (target_stop): Updated comment.
951 2014-09-22 Gary Benson <gbenson@redhat.com>
953 * target/target.h (target_stop_ptid): Renamed as...
954 (target_stop_and_wait): New function. Updated comment.
956 (target_continue_ptid): Renamed as...
957 (target_continue_no_signal): New function. Updated comment.
960 2014-09-22 Pedro Alves <palves@redhat.com>
962 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
964 * breakpoint.c (enum ugll_insert_mode): New enum.
965 (always_inserted_mode): Now a plain boolean.
966 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
967 (breakpoints_always_inserted_mode): Delete.
968 (breakpoints_should_be_inserted_now): New function.
969 (insert_breakpoints): Pass UGLL_INSERT to
970 update_global_location_list instead of calling
971 insert_breakpoint_locations manually.
972 (create_solib_event_breakpoint_1): New, factored out from ...
973 (create_solib_event_breakpoint): ... this.
974 (create_and_insert_solib_event_breakpoint): Use
975 create_solib_event_breakpoint_1 instead of calling
976 insert_breakpoint_locations manually.
977 (update_global_location_list): Change parameter type from boolean
978 to enum ugll_insert_mode. All callers adjusted. Adjust to use
979 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
980 (update_global_location_list_nothrow): Change parameter type from
981 boolean to enum ugll_insert_mode.
982 (_initialize_breakpoint): "breakpoint always-inserted" option is
983 now a boolean command. Update help text.
984 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
985 (breakpoints_should_be_inserted_now): New declaration.
986 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
987 Remove breakpoints_always_inserted_mode check.
988 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
989 * remote.c (remote_start_remote): Likewise.
991 2014-09-22 Pedro Alves <palves@redhat.com>
993 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
994 (insert_breakpoints): Don't call insert_breakpoint_locations here.
995 Instead, pass UGLL_INSERT to update_global_location_list.
996 (update_global_location_list): Change parameter type from boolean
997 to enum ugll_insert_mode. All callers adjusted. Adjust to use
998 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
999 (create_solib_event_breakpoint_1): New, factored out from ...
1000 (create_solib_event_breakpoint): ... this.
1001 (create_and_insert_solib_event_breakpoint): Use
1002 create_solib_event_breakpoint_1 instead of calling
1003 insert_breakpoint_locations manually.
1004 (update_global_location_list): Handle UGLL_INSERT.
1006 2014-09-22 Pedro Alves <palves@redhat.com>
1008 * breakpoint.c (enum ugll_insert_mode): New enum.
1009 (update_global_location_list)
1010 (update_global_location_list_nothrow): Change parameter type from
1011 boolean to enum ugll_insert_mode. All callers adjusted.
1013 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1015 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1016 SystemTap support in GDB.
1018 2014-09-19 Don Breazeal <donb@codesourcery.com>
1020 * linux-nat.c (linux_handle_extended_wait): Call
1021 linux_ptrace_get_extended_event.
1022 (wait_lwp): Call linux_is_extended_waitstatus.
1023 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1024 and linux_is_extended_waitstatus.
1025 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1026 linux_ptrace_get_extended_event.
1027 (linux_ptrace_get_extended_event): New function.
1028 (linux_is_extended_waitstatus): New function.
1029 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1030 (linux_is_extended_waitstatus): New declarations.
1032 2014-09-19 Yao Qi <yao@codesourcery.com>
1034 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1035 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1036 comments. Callers update.
1037 (dwarf_decode_lines): Likewise.
1038 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1039 comments. Skip the line table if 'lowpc' is greater than
1040 'address'. Don't check
1041 dwarf2_per_objfile->has_section_at_zero.
1043 2014-09-18 Doug Evans <dje@google.com>
1045 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1046 * python/py-symtab.c (stpy_get_producer): New function.
1047 (symtab_object_getset): Add "producer" attribute.
1049 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1052 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1053 (do_captured_read_memory_integer): Remove.
1054 (safe_read_memory_integer): Use target_read_memory directly instead
1055 of catching errors in do_captured_read_memory_integer.
1057 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1059 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1062 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1064 * objc-lang.c (find_implementation_from_class): Remove dead code.
1066 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1069 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1070 "fprintf_unfiltered (gdb_stdlog...)".
1072 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1074 PR breakpoints/12526
1075 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1077 * breakpoint.c (watch_command_1): Use these fields to retain
1078 bitfield information.
1079 (extract_bitfield_from_watchpoint_value): New function.
1080 (watchpoint_check): Use it.
1081 (update_watchpoint): Use it. Optimize the address and length of a
1082 HW watchpoint pointing to a bitfield.
1083 * value.h (unpack_value_bitfield): New prototype.
1084 * value.c (unpack_value_bitfield): Make extern.
1086 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1088 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1090 * gnu-nat.c (inf_threads): New function.
1091 * gnu-nat.h (inf_threads_ftype): New typedef.
1092 (inf_threads): New declaration.
1093 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1094 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1095 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1096 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1097 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1098 (i386_gnu_dr_get_control): New functions.
1099 (reg_addr): New structure.
1100 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1101 i386 debugging register hooks.
1102 * NEWS: Mention this.
1104 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1106 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1107 vector data transfer instructions.
1108 (arm_record_coproc_data_proc): Updated.
1110 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1112 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1113 arm_record_exreg_ld_st_insn.
1114 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1117 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1119 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1120 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1121 processing instructions.
1123 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1125 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1126 for advance SIMD struct ld/st insn.
1127 (thumb2_record_decode_insn_handler): Replace stub handler with
1128 thumb2_record_asimd_struct_ld_st.
1130 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1132 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1133 for asimd, vfp and coprocessor insns.
1134 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1135 and coprocessor insns.
1136 (thumb2_record_coproc_insn): New function.
1137 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1139 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1142 2014-09-13 Doug Evans <xdje42@gmail.com>
1144 * NEWS: Mention new "queue-signal" command.
1145 * infcmd.c (queue_signal_command): New function.
1146 (_initialize_infcmd): Add new queue-signal command.
1148 2014-09-13 Doug Evans <xdje42@gmail.com>
1150 * linux-nat.c (wait_lwp): Add debugging printf.
1151 (linux_nat_wait_1): Ditto.
1153 2014-09-12 Pedro Alves <palves@redhat.com>
1155 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1156 (create_and_insert_solib_event_breakpoint): New functions.
1157 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1158 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1159 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1160 (remove_dbx_link_breakpoint): Delete function.
1161 (insert_dbx_link_bpt_in_file): Use
1162 create_and_insert_solib_event_breakpoint instead of
1163 deprecated_insert_raw_breakpoint.
1164 (procfs_wait): Don't check whether we hit __dbx_link here.
1165 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1167 * solib-irix.c (base_breakpoint): Delete global.
1168 (disable_break): Delete function.
1169 (enable_break): Use create_solib_event_breakpoint
1170 instead of deprecated_insert_raw_breakpoint.
1171 (irix_solib_handle_event): New function.
1172 (irix_solib_create_inferior_hook): Don't run the target or disable
1173 the mapping-complete breakpoint here.
1174 (_initialize_irix_solib): Install irix_solib_handle_event as
1175 so_ops->handle_event hook.
1177 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1178 Ulrich Weigand <uweigand@de.ibm.com>
1181 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1182 instead of read_memory_unsigned_integer.
1184 2014-09-12 Gary Benson <gbenson@redhat.com>
1186 * nat/linux-waitpid.c: Include common-defs.h.
1187 [GDBSERVER]: Add FIXME comment.
1188 [!GDBSERVER]: Don't include defs.h or signal.h.
1189 (linux_debug) [!GDBSERVER]: Remove empty block.
1191 2014-09-12 Gary Benson <gbenson@redhat.com>
1193 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1194 Don't include defs.h or server.h.
1196 2014-09-12 Gary Benson <gbenson@redhat.com>
1198 * nat/linux-btrace.c: Include common-defs.h.
1199 Don't include defs.h, server.h or gdbthread.h.
1200 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1202 2014-09-12 Gary Benson <gbenson@redhat.com>
1204 * common/agent.c: Include common-defs.h.
1205 Don't include defs.h or server.h.
1206 * common/buffer.c: Likewise.
1207 * common/common-debug.c: Likewise.
1208 * common/common-utils.c: Likewise.
1209 * common/errors.c: Likewise.
1210 * common/filestuff.c: Likewise.
1211 * common/format.c: Likewise.
1212 * common/gdb_vecs.c: Likewise.
1213 * common/print-utils.c: Likewise.
1214 * common/ptid.c: Likewise.
1215 * common/rsp-low.c: Likewise.
1216 * common/signals.c: Likewise.
1217 * common/vec.c: Likewise.
1218 * common/xml-utils.c: Likewise.
1219 * nat/linux-osdata.c: Likewise.
1220 * nat/linux-procfs.c: Likewise.
1221 * nat/linux-ptrace.c: Likewise.
1222 * nat/mips-linux-watch.c: Likewise.
1223 * target/waitstatus.c: Likewise.
1225 2014-09-12 Tom Tromey <tromey@redhat.com>
1226 Gary Benson <gbenson@redhat.com>
1228 * common/common-regcache.h: New file.
1229 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1230 * regcache.h: Include common-regcache.h.
1231 (regcache_read_pc): Don't declare.
1232 * regcache.c (get_thread_regcache_for_ptid): New function.
1233 * nat/linux-btrace.c: Don't include regcache.h.
1234 Include common-regcache.h.
1235 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1237 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1239 * regcache.h (struct regset): Declare.
1241 2014-09-11 Pedro Alves <palves@redhat.com>
1244 * main.c: Include "infrun.h".
1245 (catch_command_errors, catch_command_errors_const): Wait for the
1246 foreground command to complete.
1247 * top.c (maybe_wait_sync_command_done): New function, factored out
1249 (maybe_wait_sync_command_done): ... here.
1250 * top.h (maybe_wait_sync_command_done): New declaration.
1252 2014-09-11 Tom Tromey <tromey@redhat.com>
1253 Gary Benson <gbenson@redhat.com>
1255 * common/symbol.h: New file.
1256 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1257 * minsyms.c (find_minimal_symbol_address): New function.
1258 * common/agent.c: Include common/symbol.h.
1259 [!GDBSERVER]: Don't include objfiles.h.
1260 (agent_look_up_symbols): Use find_minimal_symbol_address.
1262 2014-09-11 Gary Benson <gbenson@redhat.com>
1264 * target/target.h (target_stop_ptid, target_continue_ptid):
1266 * target.c (target_stop_ptid, target_continue_ptid): New
1268 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1269 (agent_run_command): Always use target_stop_ptid and
1270 target_continue_ptid.
1272 2014-09-11 Tom Tromey <tromey@redhat.com>
1273 Gary Benson <gbenson@redhat.com>
1275 * target/target.h: New file.
1276 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1277 * target.h: Include target/target.h.
1278 (target_read_memory, target_write_memory): Don't declare.
1279 * target.c (target_read_uint32): New function.
1280 * common/agent.c: Include target/target.h.
1281 [!GDBSERVER]: Don't include target.h.
1282 (helper_thread_id): Type changed to uint32_t.
1283 (agent_get_helper_thread_id): Use target_read_uint32.
1284 (agent_run_command): Always use target_read_memory and
1285 target_write_memory.
1286 (agent_capability): Type changed to uint32_t.
1287 (agent_capability_check): Use target_read_uint32.
1289 2014-09-11 Gary Benson <gbenson@redhat.com>
1291 * common/common-debug.h (show_debug_regs): Declare.
1292 * common/common-debug.c (show_debug_regs): Define.
1293 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1294 all uses with show_debug_regs. Replace all uses that considered
1295 debug_hw_points as a multi-value integer with straight boolean
1297 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1298 with show_debug_regs.
1299 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1300 all uses with show_debug_regs.
1301 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1302 uses with show_debug_regs.
1304 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1306 * findvar.c (address_from_register): Handle targets requiring
1307 a special conversion routine even for plain pointer types.
1309 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1311 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1312 (store_register): Do not call exec_one_dummy_insn.
1314 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1316 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1317 dereference it first. Use value_enclosing_type instead of
1319 (ada_array_length): Likewise.
1321 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1323 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1324 Adjust function implementation and documentation accordingly.
1325 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1326 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1327 Update call to ada_value_ptr_subscript.
1329 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1331 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1332 instead of VAL's type.
1334 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1336 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1338 2014-09-09 Doug Evans <xdje42@gmail.com>
1341 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1342 last parameter to pkg-config, not first.
1343 * configure.ac: Pass --with-guile provided pkg-config path to
1344 GDB_GUILE_PROGRAM_NAMES.
1345 * configure: Regenerate.
1347 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1349 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1352 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1354 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1355 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1356 the list of sections determining GDB_OSABI_IRIX.
1358 2014-09-09 James Hogan <james.hogan@imgtec.com>
1360 * MAINTAINERS (Write After Approval): Add "James Hogan".
1362 2014-09-09 James Hogan <james.hogan@imgtec.com>
1364 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1366 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1368 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1370 2014-09-08 Doug Evans <xdje42@gmail.com>
1373 * guile.c: #include <signal.h>.
1374 (_initialize_guile): Block SIGCHLD while initializing Guile.
1376 Replaces the following, which is reverted.
1378 2014-07-26 Doug Evans <xdje42@gmail.com>
1381 * configure.ac: Add check for header gc/gc.h.
1382 Add check for function setenv.
1383 * configure: Regenerate.
1384 * config.in: Regenerate.
1385 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1387 2014-09-08 Doug Evans <xdje42@gmail.com>
1389 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1390 with named constant. Fix style of pointer comparison.
1391 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1393 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1396 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1397 decide whether we display the command on "show user".
1398 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1399 printing command name.
1400 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1401 * cli/cli-decode.c (cli_user_command_p): Create helper function
1402 to verify whether cmd_list_element is a user-defined command.
1404 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1407 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1408 Fix goto out of TRY_CATCH.
1410 2014-09-06 Doug Evans <xdje42@gmail.com>
1411 Tom Tromey <tromey@redhat.com>
1414 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1415 $_any_caller_matches.
1416 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1417 * python/lib/gdb/function/caller_is.py: New file.
1419 2014-09-06 Doug Evans <xdje42@gmail.com>
1421 * infcmd.c (program_info): Fix typo.
1423 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1426 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1427 'number'. New variable 'has_digit'. Rewrite code to deal with
1428 subexpressions on SDT probes.
1430 2014-09-04 Pedro Alves <palves@redhat.com>
1432 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1433 the input is only one character long.
1435 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1438 * f-valprint.c (f_val_print): Specify the correct print option to
1439 use when printing integer values.
1441 2014-09-04 Gary Benson <gbenson@redhat.com>
1443 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1444 Remove code to cope with LWPs wrapped as PIDs.
1445 Add assertions to ensure no wrapped LWPs are passed.
1447 2014-09-04 Pedro Alves <palves@redhat.com>
1449 * value.c (value_ranges_copy_adjusted): New function, factored out
1451 (value_contents_copy_raw): ... here.
1452 (unpack_value_bits_as_long_1): Rename back to ...
1453 (unpack_bits_as_long): ... this. Remove 'original_value' and
1454 'result' parameters. Change return type to LONGEST.
1455 (unpack_value_bits_as_long): Delete.
1456 (unpack_value_field_as_long_1): Delete.
1457 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1458 (unpack_value_bitfield): New function.
1459 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1460 (value_fetch_lazy): Use unpack_value_bitfield.
1461 * value.h (unpack_value_bits_as_long): Delete declaration.
1463 2014-09-03 Sasha Smundak <asmundak@google.com>
1465 * python/py-frame.c (frapy_read_register): New function.
1467 2014-09-03 James Hogan <james.hogan@imgtec.com>
1469 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1470 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1472 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1475 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1477 (add_cmd): Set "completer_handle_brkchars" to NULL.
1478 * cli/cli-decode.h (struct cmd_list_element)
1479 <completer_handle_brkchars>: New field.
1480 * command.h (completer_ftype_void): New typedef.
1481 (set_cmd_completer_handle_brkchars): New prototype.
1482 * completer.c (set_gdb_completion_word_break_characters): New
1484 (complete_line_internal): Call "completer_handle_brkchars"
1485 callback from command.
1486 * completer.h: Include "command.h".
1487 (set_gdb_completion_word_break_characters): New prototype.
1488 * python/py-cmd.c (cmdpy_completer_helper): New function.
1489 (cmdpy_completer_handle_brkchars): New function.
1490 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1491 (cmdpy_init): Set completer_handle_brkchars to
1492 cmdpy_completer_handle_brkchars.
1494 2014-09-03 Gary Benson <gbenson@redhat.com>
1496 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1497 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1498 Loop conditions changed to equivalent form.
1499 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1500 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1501 ALL_DEBUG_ADDRESS_REGISTERS.
1503 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1505 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1508 2014-09-02 Doug Evans <dje@google.com>
1510 * typeprint.c (find_global_typedef): Fix comment.
1512 2014-09-02 Gary Benson <gbenson@redhat.com>
1514 * i386-nat.h: Renamed as...
1515 * x86-nat.h: New file. All type, function and variable name
1516 prefixes changed from "i386_" to "x86_". All references updated.
1517 * i386-nat.c: Renamed as...
1518 * x86-nat.c: New file. All type, function and variable name
1519 prefixes changed from "i386_" to "x86_". All references updated.
1520 * common/i386-xstate.h: Renamed as...
1521 * common/x86-xstate.h: New file. All type, function and variable
1522 name prefixes changed from "i386_" to "x86_". All references
1524 * nat/i386-cpuid.h: Renamed as...
1525 * nat/x86-cpuid.h: New file. All type, function and variable name
1526 prefixes changed from "i386_" to "x86_". All references updated.
1527 * nat/i386-gcc-cpuid.h: Renamed as...
1528 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1529 name prefixes changed from "i386_" to "x86_". All references
1531 * nat/i386-dregs.h: Renamed as...
1532 * nat/x86-dregs.h: New file. All type, function and variable name
1533 prefixes changed from "i386_" to "x86_". All references updated.
1534 * nat/i386-dregs.c: Renamed as...
1535 * nat/x86-dregs.c: New file. All type, function and variable name
1536 prefixes changed from "i386_" to "x86_". All references updated.
1538 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1540 * varobj.c (_initialize_varobj): Move to the end of file.
1542 2014-08-29 Gary Benson <gbenson@redhat.com>
1544 * common/common-exceptions.h: New file.
1545 * common/common-exceptions.c: Likewise.
1546 * Makefile.in (SFILES): Add common/common-exceptions.c.
1547 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1548 (COMMON_OBS): Add common-exceptions.o.
1549 (common-exceptions.o): New rule.
1550 * exceptions.h (common-exceptions.h): Include.
1551 (gdb_setjmp.h): Do not include.
1552 (return_reason): Moved to common-exceptions.h.
1553 (enum return_reason): Likewise.
1554 (RETURN_MASK): Likewise.
1555 (typedef return_mask): Likewise.
1556 (enum errors): Likewise.
1557 (struct gdb_exception): Likewise.
1558 (exceptions_state_mc_init): Likewise.
1559 (exceptions_state_mc_action_iter): Likewise.
1560 (exceptions_state_mc_action_iter_1): Likewise.
1561 (TRY_CATCH): Likewise.
1562 (throw_exception): Likewise.
1563 (throw_verror): Likewise.
1564 (throw_vquit): Likewise.
1565 (throw_error): Likewise.
1566 (throw_quit): Likewise.
1567 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1568 (enum catcher_action): Likewise.
1569 (struct catcher): Likewise.
1570 (current_catcher): Likewise.
1571 (catcher_list_size): Likewise.
1572 (exceptions_state_mc_init): Likewise.
1573 (catcher_pop): Likewise.
1574 (exceptions_state_mc): Likewise.
1575 (exceptions_state_mc_action_iter): Likewise.
1576 (exceptions_state_mc_action_iter_1): Likewise.
1577 (throw_exception): Likewise.
1578 (exception_messages): Likewise.
1579 (exception_messages_size): Likewise.
1580 (throw_it): Likewise.
1581 (throw_verror): Likewise.
1582 (throw_vquit): Likewise.
1583 (throw_error): Likewise.
1584 (throw_quit): Likewise.
1585 (prepare_to_throw_exception): New function.
1587 2014-08-29 Gary Benson <gbenson@redhat.com>
1589 * common/gdb_setjmp.h: New file.
1590 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1591 * configure.ac: Move sigsetjmp check...
1592 * common/common.m4: ...here.
1593 * configure: Regenerate.
1594 * cp-support.c (SIGJMP_BUF): Delete.
1595 (SIGSETJMP): Likewise.
1596 (SIGLONGJMP): Likewise.
1597 * exceptions.h (gdb_setjmp.h): Include.
1598 (setjmp.h): Do not include.
1599 (EXCEPTIONS_SIGJMP_BUF): Delete.
1600 (EXCEPTIONS_SIGSETJMP): Likewise.
1601 (EXCEPTIONS_SIGLONGJMP): Likewise.
1602 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1604 * exceptions.c: Likewise.
1606 2014-08-29 Gary Benson <gbenson@redhat.com>
1608 * cleanups.h: Moved to...
1609 * common/cleanups.h: New file.
1610 * cleanups.c: Moved to...
1611 * common/cleanups.c: New file. Include common-defs.h and
1612 cleanups.h. Do not include defs.h.
1613 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1614 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1615 (cleanups.o): New rule.
1617 2014-08-29 Gary Benson <gbenson@redhat.com>
1619 * common/errors.h (internal_warning): New declaration.
1620 (internal_vwarning): Likewise.
1621 * common/errors.c (internal_warning): New function.
1622 * utils.h (internal_warning): Don't declare.
1623 (internal_vwarning): Likewise.
1624 * utils.c (internal_warning): Removed.
1626 2014-08-29 Gary Benson <gbenson@redhat.com>
1628 * main.c (captured_main): Use warning during startup.
1629 Prefix startup warning messages with command name.
1631 2014-08-29 Gary Benson <gbenson@redhat.com>
1633 * main.c (captured_main): Handle usage errors with error.
1635 2014-08-29 Gary Benson <gbenson@redhat.com>
1637 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1638 exit pair with a call to error. Wrap the message with _().
1640 2014-08-29 Gary Benson <gbenson@redhat.com>
1642 * main.c (captured_main): Replace a fprintf/exit
1643 pair with a call to error. Wrap the message with _().
1645 2014-08-29 Gary Benson <gbenson@redhat.com>
1647 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1648 pairs with calls to error. Wrap the message with _().
1650 2014-08-29 Gary Benson <gbenson@redhat.com>
1652 * utils.c (vwarning): Protect calls to target_terminal_ours
1655 2014-08-29 Gary Benson <gbenson@redhat.com>
1657 * exceptions.c (print_flush): Protect calls to
1658 target_terminal_ours and wrap_here.
1660 2014-08-29 Gary Benson <gbenson@redhat.com>
1662 * utils.h (filtered_printing_initialized): New declaration.
1663 * utils.c (abort_with_message): New function.
1664 (internal_vproblem): Use abort_with_message for first level
1665 recursive internal problems, and if gdb_stderr is not set up.
1666 Protect calls to target_terminal_ours, begin_line and query.
1668 2014-08-28 Doug Evans <dje@google.com>
1670 * symtab.c (in_prologue): Move definition to better spot.
1671 (skip_prologue_using_sal): Ditto.
1673 2014-08-28 Doug Evans <dje@google.com>
1675 * symtab.c (find_function_start_sal): Move definition to better spot.
1677 2014-08-28 Yao Qi <yao@codesourcery.com>
1679 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1680 found_stack_adjust in forward scan. Remove condition check
1681 on found_stack_adjust which is always true. Indent the code.
1683 2014-08-28 Yao Qi <yao@codesourcery.com>
1685 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1686 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1687 (dwarf_decode_lines): Remove argument
1688 want_line_info. Remove condition check on want_line_info.
1691 2014-08-27 Doug Evans <dje@google.com>
1693 * dwarf2read.c (dwarf_record_line): Fix typo.
1695 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1697 * target.h (struct target_ops::to_terminal_save_ours): Remove
1699 (target_terminal_save_ours): Remove macro.
1700 * target-delegates.c: Regenerate.
1701 * inf-child.c (inf_child_target): Don't set the nonexistent
1702 field to_terminal_save_ours.
1703 * inferior.h (child_terminal_save_ours): Remove declaration.
1704 * terminal.h (gdb_save_tty_state): New declaration.
1705 * inflow.c (child_terminal_save_ours): Rename to ...
1706 (gdb_save_tty_state): ... this.
1707 * tui/tui.c: Include terminal.h.
1708 (tui_enable): Use gdb_save_tty_state instead of
1709 target_terminal_save_ours.
1710 (tui_disable): Likewise.
1712 2014-08-25 Doug Evans <dje@google.com>
1714 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1715 Pass NULL instead of 0 for context pointer.
1717 2014-08-25 Yao Qi <yao@codesourcery.com>
1719 * dwarf2read.c: Fix grammatical error.
1721 2014-08-24 Yao Qi <yao@codesourcery.com>
1723 * dwarf2read.c (scan_partial_symbols): Update comments.
1724 Rename argument 'need_pc' with 'set_addrmap'.
1725 (add_partial_namespace): Rename argument 'need_pc' with
1727 (add_partial_module): Likewise.
1728 (add_partial_subprogram): Likewise. Update comments.
1729 (dwarf2_name): Fix typo.
1731 2014-08-22 Doug Evans <dje@google.com>
1734 * dwarf2read.c (dwarf_record_line_p): New function.
1735 (dwarf_decode_lines_1): Ignore subsequent line number entries
1736 for the same line if any entry had a non-zero discriminator.
1738 2014-08-22 Doug Evans <dje@google.com>
1740 * buildsym.h (record_line_ftype): New typedef.
1741 (record_line): Use it.
1742 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1743 (dwarf_decode_lines_1): Call them.
1745 2014-08-22 Yao Qi <yao@codesourcery.com>
1747 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1748 (ctf_end): Remove code.
1750 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1752 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1753 (linux_make_corefile_notes): call update_thread_list, protected against
1756 2014-08-21 Pedro Alves <palves@redhat.com>
1758 * infcmd.c (attach_command): Remove comment.
1760 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1762 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1763 unsigned LONGEST to ULONGEST.
1765 2014-08-20 Pedro Alves <palves@redhat.com>
1767 * Makefile.in (check-read1): New rule.
1769 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1771 * value.c (value_from_contents_and_address): Strip resolved_type's
1772 typedef layers before checking its TYPE_DATA_LOCATION.
1774 2014-08-20 Pedro Alves <palves@redhat.com>
1776 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1778 2014-08-20 Yao Qi <yao@codesourcery.com>
1780 * amd64-tdep.c (amd64_classify): Add a blank line after the
1781 example. Move "*/" to a new line.
1782 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1783 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1784 * dwarf2read.c (psymtab_include_file_name): Likewise.
1786 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1787 Pedro Alves <palves@redhat.com>
1791 * ada-lang.c (coerce_unspec_val_to_type): Use
1792 value_contents_copy_raw.
1793 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1794 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1795 * cp-valprint.c (cp_print_value_fields): Let the common printing
1796 code handle optimized out values.
1797 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1798 * d-valprint.c (dynamic_array_type): Use
1799 value_bits_any_optimized_out.
1800 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1801 check_any_valid fields.
1802 (check_pieced_value_bits): Delete and inline ...
1803 (check_pieced_synthetic_pointer): ... here.
1804 (check_pieced_value_validity): Delete.
1805 (check_pieced_value_invalid): Delete.
1806 (pieced_value_funcs): Remove check_validity and check_any_valid
1808 (read_pieced_value): Use mark_value_bits_optimized_out.
1809 (write_pieced_value): Switch to use
1810 mark_value_bytes_optimized_out.
1811 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1812 of assuming the whole value is optimized out.
1813 * findvar.c (read_frame_register_value): Remove special handling
1814 of optimized out registers.
1815 (value_from_register): Use mark_value_bytes_optimized_out.
1816 * frame-unwind.c (frame_unwind_got_optimized): Use
1817 mark_value_bytes_optimized_out.
1818 * jv-valprint.c (java_value_print): Adjust.
1819 (java_print_value_fields): Let the common printing code handle
1820 optimized out values.
1821 * mips-tdep.c (mips_print_register): Remove special handling of
1822 optimized out registers.
1823 * opencl-lang.c (lval_func_check_validity): Delete.
1824 (lval_func_check_any_valid): Delete.
1825 (opencl_value_funcs): Remove check_validity and check_any_valid
1827 * p-valprint.c (pascal_object_print_value_fields): Let the common
1828 printing code handle optimized out values.
1829 * stack.c (read_frame_arg): Remove special handling of optimized
1830 out values. Fetch both VAL and ENTRYVAL before comparing
1831 contents. Adjust to value_available_contents_eq rename.
1832 * valprint.c (valprint_check_validity)
1833 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1834 (val_print_array_elements): Adjust.
1835 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1836 (value_bits_any_optimized_out): New function.
1837 (value_entirely_covered_by_range_vector): New function, factored
1838 out from value_entirely_unavailable.
1839 (value_entirely_unavailable): Reimplement.
1840 (value_entirely_optimized_out): New function.
1841 (insert_into_bit_range_vector): New function, factored out from
1842 mark_value_bits_unavailable.
1843 (mark_value_bits_unavailable): Reimplement.
1844 (struct ranges_and_idx): New struct.
1845 (find_first_range_overlap_and_match): New function, factored out
1846 from value_available_contents_bits_eq.
1847 (value_available_contents_bits_eq): Rename to ...
1848 (value_contents_bits_eq): ... this. Check both unavailable
1849 contents and optimized out contents.
1850 (value_available_contents_eq): Rename to ...
1851 (value_contents_eq): ... this.
1852 (allocate_value_lazy): Remove reference to the old optimized_out
1854 (allocate_optimized_out_value): Use
1855 mark_value_bytes_optimized_out.
1856 (require_not_optimized_out): Adjust to check whether the
1857 optimized_out vec is empty.
1858 (ranges_copy_adjusted): New function, factored out from
1859 value_contents_copy_raw.
1860 (value_contents_copy_raw): Also copy the optimized out ranges.
1861 Assert the destination ranges aren't optimized out.
1862 (value_contents_copy): Update comment, remove call to
1863 require_not_optimized_out.
1864 (value_contents_equal): Adjust to check whether the optimized_out
1866 (set_value_optimized_out, value_optimized_out_const): Delete.
1867 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1869 (value_entirely_optimized_out, value_bits_valid): Delete.
1870 (value_copy): Take a VEC copy of the 'optimized_out' field.
1871 (value_primitive_field): Remove special handling of optimized out.
1872 (value_fetch_lazy): Assert that lazy values have no unavailable
1873 regions. Use value_bits_any_optimized_out. Remove some special
1874 handling for optimized out values.
1875 * value.h: Add intro comment about <optimized out> and
1877 (struct lval_funcs): Remove check_validity and check_any_valid
1879 (set_value_optimized_out, value_optimized_out_const): Remove.
1880 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1882 (value_bits_any_optimized_out): New declaration.
1883 (value_bits_valid): Delete declaration.
1884 (value_available_contents_eq): Rename to ...
1885 (value_contents_eq): ... this, and extend comments.
1887 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1889 Fix -fsanitize=address on unreadable inferior strings.
1890 * valprint.c (val_print_string): Fix access before BUFFER.
1892 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1894 * target.c (target_struct_size): Remove.
1895 (target_struct_allocsize): Remove.
1896 (DEFAULT_ALLOCSIZE): Remove.
1897 (target_ops_p): New typedef.
1898 (DEF_VEC_P (target_ops_p)): New vector type.
1899 (target_structs): Change type to VEC (target_ops_p).
1900 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1901 (find_default_run_target): Rewrite for loop following changes to
1904 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1906 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1907 Adjust code accordingly. Adjust function description comment.
1909 2014-08-19 Yao Qi <yao@codesourcery.com>
1911 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1914 2014-08-19 Alan Modra <amodra@gmail.com>
1916 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1917 * config.in: Regenerate.
1918 * configure: Regenerate.
1920 2014-08-19 Tom Tromey <tromey@redhat.com>
1921 Gary Benson <gbenson@redhat.com>
1923 * common/common-debug.h: New file.
1924 * common/common-debug.c: Likewise.
1925 * debug.c: Likewise.
1926 * Makefile.in (SFILES): Add common/common-debug.c.
1927 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1928 (COMMON_OBS): Add common-debug.o and debug.o.
1929 (common-debug.o): New rule.
1930 * common/common-defs.h: Include common-debug.h.
1931 * common/agent.c (debug_agent_printf): New function.
1932 (DEBUG_AGENT): Redefine.
1933 * nat/i386-dregs.c (debug_printf): Undefine.
1935 2014-08-19 Gary Benson <gbenson@redhat.com>
1937 * common/common-defs.h: Include print-utils.h.
1938 * utils.h: Do not include print-utils.h.
1940 2014-08-19 Tom Tromey <tromey@redhat.com>
1941 Gary Benson <gbenson@redhat.com>
1943 * common/common-types.h: New file.
1944 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1945 * common/common-defs.h: Include common-types.h.
1946 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1949 2014-08-19 Tom Tromey <tromey@redhat.com>
1950 Gary Benson <gbenson@redhat.com>
1952 * common/errors.h: New file.
1953 * common/errors.c: Likewise.
1954 * Makefile.in (SFILES): Add common/errors.c.
1955 (HFILES_NO_SRCDIR): Add common/errors.h.
1956 (COMMON_OBS): Add errors.o.
1957 (errors.o): New rule.
1958 * common/common-defs.h: Include errors.h.
1959 * utils.h (perror_with_name, error, verror, warning, vwarning):
1961 * common/common-utils.h: (malloc_failure, internal_error):
1964 2014-08-19 Gary Benson <gbenson@redhat.com>
1966 * utils.c (internal_vproblem): Always print the message.
1968 2014-08-18 Doug Evans <dje@google.com>
1970 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1972 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1974 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1975 Return 0 if TYPE is dynamic.
1976 (print_range): Add handling of dynamic ranges.
1978 2014-08-18 Keven Boell <keven.boell@intel.com>
1979 Joel Brobecker <brobecker@adacore.com>
1981 * gdbtypes.h (struct main_type): Add field "data_location".
1982 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1983 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1984 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1985 a dynamic data location.
1986 (resolve_dynamic_type): Add DW_AT_data_location handling.
1987 (copy_recursive, copy_type): Copy the data_location information
1989 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1990 * value.c (value_from_contents_and_address): Add
1991 DW_AT_data_location handling.
1993 2014-08-18 Keven Boell <keven.boell@intel.com>
1994 Joel Brobecker <brobecker@adacore.com>
1996 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1997 field "get_object_address".
1998 * dwarf2expr.c (execute_stack_op): Add handling for
1999 DW_OP_push_object_address.
2000 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2001 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2002 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2003 (dwarf_expr_get_obj_addr): New function.
2004 (dwarf_expr_ctx_funcs): Add get_object_address field.
2005 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2006 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2007 (dwarf2_evaluate_property): Add parameter "address". Use it.
2008 (needs_get_obj_addr): New function.
2009 (needs_frame_ctx_funcs): Add get_object_address field.
2010 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2011 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2012 (resolve_dynamic_array): Likewise.
2014 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2016 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2017 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2018 fixed value for records and unions for which some GNAT encodings
2021 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2023 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2024 rewrite to avoid "else if" and "else" constructs. Should be
2025 a no-op in practice.
2027 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2029 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2032 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2035 * eval.c: Update all calls to find_overload_match.
2036 * valarith.c: Likewise.
2037 (value_user_defined_cpp_op, value_user_defined_op): New
2038 argument NOSIDE. Update all callers.
2039 * valops.c (find_overload_match): New argument NOSIDE.
2040 * value.h (find_overload_match): Update signature.
2042 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2044 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2045 'items' methods instead of 'iteritems' method on dictionaries.
2047 2014-08-15 Doug Evans <dje@google.com>
2049 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2052 2014-08-15 Doug Evans <dje@google.com>
2054 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2056 2014-08-15 Doug Evans <dje@google.com>
2058 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2060 2014-08-15 Doug Evans <dje@google.com>
2062 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2065 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2067 * dcache.h: Include target.h, to avoid compile time warnings.
2069 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2071 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2072 frame_info" partial declaration.
2073 * gdbarch.h: Regenerate.
2075 2014-08-15 Yao Qi <yao@codesourcery.com>
2077 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2078 Add parameter 'decode_for_pst_p'. Callers update.
2080 2014-08-13 Yao Qi <yao@codesourcery.com>
2083 * configure.ac: Use local variable 'pos'.
2084 * configure: Regenerated.
2086 2014-08-11 Doug Evans <dje@google.com>
2088 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2089 message, it is redundant with "Reading symbols from ..." message.
2091 2014-08-10 Doug Evans <xdje42@gmail.com>
2093 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2095 2014-08-09 Yao Qi <yao@codesourcery.com>
2098 * remote.c (remote_xfer_partial): Remove dead code.
2100 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2102 * ia64-linux-tdep.c: Include "regset.h".
2103 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2104 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2105 (ia64_linux_supply_fpregset): New function.
2106 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2107 (ia64_linux_regset_from_core_section): New function.
2108 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2111 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2113 * m68klinux-tdep.c: Include "regset.h".
2114 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2115 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2116 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2117 (m68k_linux_regset_from_core_section): New function.
2118 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2121 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2123 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2124 function. Move logic to...
2125 (tilegx_linux_regmap): ... this new register map.
2126 (tilegx_linux_regset): Refer to register map, replace supply
2127 method by regcache_supply_regset, and add collect method.
2128 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2129 TILEGX_FIRST_EASY_REGNUM.
2131 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2133 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2134 that calls regcache_supply_regset and handles the EPC register
2135 separately. Move main logic to...
2136 (score7_linux_gregmap): ... this new register map.
2137 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2138 (score7_linux_gregset): Refer to register map. Add collect method.
2139 (score7_linux_regset_from_core_section): Replace
2140 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2141 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2142 (struct regset): Delete unused forward declaraction.
2143 (struct pt_regs): Delete structure definition.
2144 (elf_gregset_t): Delete typedef.
2146 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2148 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2149 (nios2_core_regset): Add collect method.
2151 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2153 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2154 platform-independent and don't write to read-only input buffer.
2155 (m32r_linux_collect_gregset): New function.
2156 (m32r_linux_gregset): Add collect method.
2158 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2160 * hppa-linux-tdep.c (greg_map): Rename to...
2161 (hppa_linux_gregmap): ... this. Also convert to
2162 regcache_map_entry format.
2163 (hppa_linux_supply_regset): Delete function.
2164 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2165 (hppa_linux_fpregmap): ... this new register map.
2166 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2167 register map, replace supply method by regcache_supply_regset, and
2168 add collect method regcache_collect_regset.
2170 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2172 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2173 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2174 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2175 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2176 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2177 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2178 (frv_linux_supply_gregset): Replace main logic by call to
2179 regcache_supply_regset, but keep clearing gr32-gr63.
2180 (frv_linux_supply_fpregset): Delete function.
2181 (frv_linux_gregset): Refer to appropriate register map and add
2182 regcache_collect_regset as the collect method.
2183 (frv_linux_fpregset): Likewise. Also exchange the supply method
2184 by regcache_supply_regset.
2186 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2188 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2189 by call to alpha_supply_int_regs.
2190 (alpha_linux_collect_gregset): New function.
2191 (alpha_linux_supply_fpregset): Replace logic by call to
2192 alpha_supply_fp_regs.
2193 (alpha_linux_collect_fpregset): New function.
2194 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2196 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2198 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2199 by call to regcache_collect_regset.
2200 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2201 instead of aarch64_linux_supply_gregset/_fpregset.
2202 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2203 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2204 header file instead.
2205 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2206 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2207 functions. Move logic to ...
2208 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2210 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2211 refer to new register maps, replace *_regset_from_core by
2212 regcache_supply_regset, and also use regcache_collect_regset.
2213 * aarch64-linux-tdep.h: Include "regset.h".
2214 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2216 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2217 macros, moved from C source file.
2218 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2219 variable declarations.
2221 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2223 * s390-linux-nat.c: Include "regset.h".
2224 (regmap_gregset): Delete macro.
2225 (s390_64_regmap_gregset): New register map for
2226 regcache_supply/_collect_regset.
2227 (s390_64_gregset): New regset.
2228 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2229 (regmap_fpregset): Delete macro.
2230 (s390_native_supply, s390_native_collect): Delete functions.
2231 (supply_gregset, fill_gregset): Replace s390-specific regmap
2232 handling by a call to regcache_supply/_collect_regset.
2233 (supply_fpregset, fill_fpregset): Call regcache_supply/
2234 _collect_regset instead of s390_native_supply/_collect.
2235 (fetch_regset, store_regset): Likewise. Also change the last
2236 parameter to a regset instead of a regmap.
2237 (s390_linux_fetch_inferior_registers)
2238 (390_linux_store_inferior_registers): Adjust last parameter in
2239 calls to fetch_regset and store_regset.
2240 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2241 (s390_gregmap): ... this. Also make static const and convert to
2242 regcache_map_entry format.
2243 (s390x_regmap_gregset): Delete.
2244 (s390_regmap_fpregset): Rename to...
2245 (s390_fpregmap): ... this. Make static const and convert to
2246 regcache_map_entry format.
2247 (s390_regmap_upper, s390_regmap_last_break)
2248 (s390x_regmap_last_break, s390_regmap_system_call)
2249 (s390_regmap_tdb): Likewise.
2250 (s390_supply_regset, s390_collect_regset): Remove functions.
2251 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2253 (s390_gregset, s390_fpregset, s390_upper_regset)
2254 (s390_last_break_regset, s390x_last_break_regset)
2255 (s390_system_call_regset, s390_tdb_regset): Make global and
2256 replace s390_supply/_collect_regset by regcache_supply/
2258 (s390x_gregset): Delete.
2259 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2260 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2261 (s390_regmap_fpregset, s390_regmap_last_break)
2262 (s390x_regmap_last_break, s390_regmap_system_call)
2263 (s390_regmap_tdb): Delete global variable declarations.
2264 (s390_gregset, s390_fpregset, s390_last_break_regset)
2265 (s390x_last_break_regset, s390_system_call_regset)
2266 (s390_tdb_regset): New global variable declarations.
2268 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2270 * regcache.c: Include "regset.h".
2271 (regcache_transfer_regset): New local function.
2272 (regcache_supply_regset, regcache_collect_regset): New functions.
2273 * regcache.h (struct regcache_map_entry): New structure.
2274 (REGCACHE_MAP_SKIP): New enum value.
2275 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2277 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2279 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2280 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2281 (ppc_linux_collect_gregset ): Likewise.
2282 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2283 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2284 (ppc_collect_vrregset): Likewise.
2285 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2288 2014-08-07 Yao Qi <yao@codesourcery.com>
2290 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2291 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2292 * remote.c (remote_read_bytes): Likewise.
2294 2014-08-07 Yao Qi <yao@codesourcery.com>
2296 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2298 2014-08-07 Yao Qi <yao@codesourcery.com>
2301 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2302 TARGET_XFER_OK instead of 0.
2304 2014-08-07 Gary Benson <gbenson@redhat.com>
2306 * common/common-defs.h: Include errno.h.
2307 * defs.h: Do not include errno.h.
2308 * ada-typeprint.c: Likewise.
2309 * c-typeprint.c: Likewise.
2310 * core-regset.c: Likewise.
2311 * corefile.c: Likewise.
2312 * corelow.c: Likewise.
2313 * event-loop.c: Likewise.
2314 * f-typeprint.c: Likewise.
2315 * gnu-nat.c: Likewise.
2316 * go32-nat.c: Likewise.
2317 * i386gnu-nat.c: Likewise.
2318 * m2-typeprint.c: Likewise.
2319 * nat/linux-btrace.c: Likewise.
2320 * p-typeprint.c: Likewise.
2321 * procfs.c: Likewise.
2322 * remote-sim.c: Likewise.
2323 * rs6000-nat.c: Likewise.
2324 * target.c: Likewise.
2325 * typeprint.c: Likewise.
2326 * ui-file.c: Likewise.
2327 * valops.c: Likewise.
2328 * valprint.c: Likewise.
2330 2014-08-07 Gary Benson <gbenson@redhat.com>
2332 * common/common-defs.h: Include string.h.
2333 * aarch64-tdep.c: Do not include string.h.
2334 * ada-exp.y: Likewise.
2335 * ada-lang.c: Likewise.
2336 * ada-lex.l: Likewise.
2337 * ada-typeprint.c: Likewise.
2338 * ada-valprint.c: Likewise.
2339 * aix-thread.c: Likewise.
2340 * alpha-linux-tdep.c: Likewise.
2341 * alpha-mdebug-tdep.c: Likewise.
2342 * alpha-nat.c: Likewise.
2343 * alpha-osf1-tdep.c: Likewise.
2344 * alpha-tdep.c: Likewise.
2345 * alphanbsd-tdep.c: Likewise.
2346 * amd64-dicos-tdep.c: Likewise.
2347 * amd64-linux-tdep.c: Likewise.
2348 * amd64-nat.c: Likewise.
2349 * amd64-sol2-tdep.c: Likewise.
2350 * amd64fbsd-tdep.c: Likewise.
2351 * amd64obsd-tdep.c: Likewise.
2352 * arch-utils.c: Likewise.
2353 * arm-linux-nat.c: Likewise.
2354 * arm-linux-tdep.c: Likewise.
2355 * arm-tdep.c: Likewise.
2356 * arm-wince-tdep.c: Likewise.
2357 * armbsd-tdep.c: Likewise.
2358 * armnbsd-nat.c: Likewise.
2359 * armnbsd-tdep.c: Likewise.
2360 * armobsd-tdep.c: Likewise.
2361 * avr-tdep.c: Likewise.
2362 * ax-gdb.c: Likewise.
2363 * ax-general.c: Likewise.
2364 * bcache.c: Likewise.
2365 * bfin-tdep.c: Likewise.
2366 * breakpoint.c: Likewise.
2367 * build-id.c: Likewise.
2368 * buildsym.c: Likewise.
2369 * c-exp.y: Likewise.
2370 * c-lang.c: Likewise.
2371 * c-typeprint.c: Likewise.
2372 * c-valprint.c: Likewise.
2373 * charset.c: Likewise.
2374 * cli-out.c: Likewise.
2375 * cli/cli-cmds.c: Likewise.
2376 * cli/cli-decode.c: Likewise.
2377 * cli/cli-dump.c: Likewise.
2378 * cli/cli-interp.c: Likewise.
2379 * cli/cli-logging.c: Likewise.
2380 * cli/cli-script.c: Likewise.
2381 * cli/cli-setshow.c: Likewise.
2382 * cli/cli-utils.c: Likewise.
2383 * coffread.c: Likewise.
2384 * common/agent.c: Likewise.
2385 * common/buffer.c: Likewise.
2386 * common/buffer.h: Likewise.
2387 * common/common-utils.c: Likewise.
2388 * common/filestuff.c: Likewise.
2389 * common/filestuff.c: Likewise.
2390 * common/format.c: Likewise.
2391 * common/print-utils.c: Likewise.
2392 * common/rsp-low.c: Likewise.
2393 * common/signals.c: Likewise.
2394 * common/vec.h: Likewise.
2395 * common/xml-utils.c: Likewise.
2396 * core-regset.c: Likewise.
2397 * corefile.c: Likewise.
2398 * corelow.c: Likewise.
2399 * cp-abi.c: Likewise.
2400 * cp-name-parser.y: Likewise.
2401 * cp-support.c: Likewise.
2402 * cp-valprint.c: Likewise.
2403 * cris-tdep.c: Likewise.
2404 * d-exp.y: Likewise.
2405 * darwin-nat.c: Likewise.
2406 * dbxread.c: Likewise.
2407 * dcache.c: Likewise.
2408 * demangle.c: Likewise.
2409 * dicos-tdep.c: Likewise.
2410 * disasm.c: Likewise.
2411 * doublest.c: Likewise.
2412 * dsrec.c: Likewise.
2413 * dummy-frame.c: Likewise.
2414 * dwarf2-frame.c: Likewise.
2415 * dwarf2loc.c: Likewise.
2416 * dwarf2read.c: Likewise.
2417 * elfread.c: Likewise.
2418 * environ.c: Likewise.
2420 * event-loop.c: Likewise.
2421 * exceptions.c: Likewise.
2423 * expprint.c: Likewise.
2424 * f-exp.y: Likewise.
2425 * f-lang.c: Likewise.
2426 * f-typeprint.c: Likewise.
2427 * f-valprint.c: Likewise.
2428 * fbsd-nat.c: Likewise.
2429 * findcmd.c: Likewise.
2430 * findvar.c: Likewise.
2431 * fork-child.c: Likewise.
2432 * frame.c: Likewise.
2433 * frv-linux-tdep.c: Likewise.
2434 * frv-tdep.c: Likewise.
2436 * gdb_bfd.c: Likewise.
2437 * gdbarch.c: Likewise.
2438 * gdbarch.sh: Likewise.
2439 * gdbtypes.c: Likewise.
2440 * gnu-nat.c: Likewise.
2441 * gnu-v2-abi.c: Likewise.
2442 * gnu-v3-abi.c: Likewise.
2443 * go-exp.y: Likewise.
2444 * go-lang.c: Likewise.
2445 * go32-nat.c: Likewise.
2446 * guile/guile.c: Likewise.
2447 * guile/scm-auto-load.c: Likewise.
2448 * hppa-hpux-tdep.c: Likewise.
2449 * hppa-linux-nat.c: Likewise.
2450 * hppanbsd-tdep.c: Likewise.
2451 * hppaobsd-tdep.c: Likewise.
2452 * i386-cygwin-tdep.c: Likewise.
2453 * i386-dicos-tdep.c: Likewise.
2454 * i386-linux-tdep.c: Likewise.
2455 * i386-nto-tdep.c: Likewise.
2456 * i386-sol2-tdep.c: Likewise.
2457 * i386-tdep.c: Likewise.
2458 * i386bsd-tdep.c: Likewise.
2459 * i386gnu-nat.c: Likewise.
2460 * i386nbsd-tdep.c: Likewise.
2461 * i386obsd-tdep.c: Likewise.
2462 * i387-tdep.c: Likewise.
2463 * ia64-libunwind-tdep.c: Likewise.
2464 * ia64-linux-nat.c: Likewise.
2465 * inf-child.c: Likewise.
2466 * inf-ptrace.c: Likewise.
2467 * inf-ttrace.c: Likewise.
2468 * infcall.c: Likewise.
2469 * infcmd.c: Likewise.
2470 * inflow.c: Likewise.
2471 * infrun.c: Likewise.
2472 * interps.c: Likewise.
2473 * iq2000-tdep.c: Likewise.
2474 * irix5-nat.c: Likewise.
2475 * jv-exp.y: Likewise.
2476 * jv-lang.c: Likewise.
2477 * jv-typeprint.c: Likewise.
2478 * jv-valprint.c: Likewise.
2479 * language.c: Likewise.
2480 * linux-fork.c: Likewise.
2481 * linux-nat.c: Likewise.
2482 * lm32-tdep.c: Likewise.
2483 * m2-exp.y: Likewise.
2484 * m2-typeprint.c: Likewise.
2485 * m32c-tdep.c: Likewise.
2486 * m32r-linux-nat.c: Likewise.
2487 * m32r-linux-tdep.c: Likewise.
2488 * m32r-rom.c: Likewise.
2489 * m32r-tdep.c: Likewise.
2490 * m68hc11-tdep.c: Likewise.
2491 * m68k-tdep.c: Likewise.
2492 * m68kbsd-tdep.c: Likewise.
2493 * m68klinux-nat.c: Likewise.
2494 * m68klinux-tdep.c: Likewise.
2495 * m88k-tdep.c: Likewise.
2496 * machoread.c: Likewise.
2497 * macrocmd.c: Likewise.
2499 * mdebugread.c: Likewise.
2500 * mem-break.c: Likewise.
2501 * memattr.c: Likewise.
2502 * memory-map.c: Likewise.
2503 * mep-tdep.c: Likewise.
2504 * mi/mi-cmd-break.c: Likewise.
2505 * mi/mi-cmd-disas.c: Likewise.
2506 * mi/mi-cmd-env.c: Likewise.
2507 * mi/mi-cmd-stack.c: Likewise.
2508 * mi/mi-cmd-var.c: Likewise.
2509 * mi/mi-cmds.c: Likewise.
2510 * mi/mi-console.c: Likewise.
2511 * mi/mi-getopt.c: Likewise.
2512 * mi/mi-interp.c: Likewise.
2513 * mi/mi-main.c: Likewise.
2514 * mi/mi-parse.c: Likewise.
2515 * microblaze-rom.c: Likewise.
2516 * microblaze-tdep.c: Likewise.
2517 * mingw-hdep.c: Likewise.
2518 * minidebug.c: Likewise.
2519 * minsyms.c: Likewise.
2520 * mips-irix-tdep.c: Likewise.
2521 * mips-linux-tdep.c: Likewise.
2522 * mips-tdep.c: Likewise.
2523 * mips64obsd-tdep.c: Likewise.
2524 * mipsnbsd-tdep.c: Likewise.
2525 * mipsread.c: Likewise.
2526 * mn10300-linux-tdep.c: Likewise.
2527 * mn10300-tdep.c: Likewise.
2528 * monitor.c: Likewise.
2529 * moxie-tdep.c: Likewise.
2530 * mt-tdep.c: Likewise.
2531 * nat/linux-btrace.c: Likewise.
2532 * nat/linux-osdata.c: Likewise.
2533 * nat/linux-procfs.c: Likewise.
2534 * nat/linux-ptrace.c: Likewise.
2535 * nat/linux-waitpid.c: Likewise.
2536 * nbsd-tdep.c: Likewise.
2537 * nios2-linux-tdep.c: Likewise.
2538 * nto-procfs.c: Likewise.
2539 * nto-tdep.c: Likewise.
2540 * objc-lang.c: Likewise.
2541 * objfiles.c: Likewise.
2542 * opencl-lang.c: Likewise.
2543 * osabi.c: Likewise.
2544 * osdata.c: Likewise.
2545 * p-exp.y: Likewise.
2546 * p-lang.c: Likewise.
2547 * p-typeprint.c: Likewise.
2548 * parse.c: Likewise.
2549 * posix-hdep.c: Likewise.
2550 * ppc-linux-nat.c: Likewise.
2551 * ppc-sysv-tdep.c: Likewise.
2552 * ppcfbsd-tdep.c: Likewise.
2553 * ppcnbsd-tdep.c: Likewise.
2554 * ppcobsd-tdep.c: Likewise.
2555 * printcmd.c: Likewise.
2556 * procfs.c: Likewise.
2557 * prologue-value.c: Likewise.
2558 * python/py-auto-load.c: Likewise.
2559 * python/py-gdb-readline.c: Likewise.
2560 * ravenscar-thread.c: Likewise.
2561 * regcache.c: Likewise.
2562 * registry.c: Likewise.
2563 * remote-fileio.c: Likewise.
2564 * remote-m32r-sdi.c: Likewise.
2565 * remote-mips.c: Likewise.
2566 * remote-notif.c: Likewise.
2567 * remote-sim.c: Likewise.
2568 * remote.c: Likewise.
2569 * reverse.c: Likewise.
2570 * rs6000-aix-tdep.c: Likewise.
2571 * ser-base.c: Likewise.
2572 * ser-go32.c: Likewise.
2573 * ser-mingw.c: Likewise.
2574 * ser-pipe.c: Likewise.
2575 * ser-tcp.c: Likewise.
2576 * ser-unix.c: Likewise.
2577 * serial.c: Likewise.
2578 * sh-tdep.c: Likewise.
2579 * sh64-tdep.c: Likewise.
2580 * shnbsd-tdep.c: Likewise.
2582 * sol-thread.c: Likewise.
2583 * solib-dsbt.c: Likewise.
2584 * solib-frv.c: Likewise.
2585 * solib-osf.c: Likewise.
2586 * solib-som.c: Likewise.
2587 * solib-spu.c: Likewise.
2588 * solib-target.c: Likewise.
2589 * solib.c: Likewise.
2590 * somread.c: Likewise.
2591 * source.c: Likewise.
2592 * sparc-nat.c: Likewise.
2593 * sparc-sol2-tdep.c: Likewise.
2594 * sparc-tdep.c: Likewise.
2595 * sparc64-tdep.c: Likewise.
2596 * sparc64fbsd-tdep.c: Likewise.
2597 * sparc64nbsd-tdep.c: Likewise.
2598 * sparcnbsd-tdep.c: Likewise.
2599 * spu-linux-nat.c: Likewise.
2600 * spu-multiarch.c: Likewise.
2601 * spu-tdep.c: Likewise.
2602 * stabsread.c: Likewise.
2603 * stack.c: Likewise.
2604 * std-regs.c: Likewise.
2605 * symfile.c: Likewise.
2606 * symmisc.c: Likewise.
2607 * symtab.c: Likewise.
2608 * target.c: Likewise.
2609 * thread.c: Likewise.
2610 * tilegx-linux-nat.c: Likewise.
2611 * tilegx-tdep.c: Likewise.
2613 * tracepoint.c: Likewise.
2614 * tui/tui-command.c: Likewise.
2615 * tui/tui-data.c: Likewise.
2616 * tui/tui-disasm.c: Likewise.
2617 * tui/tui-file.c: Likewise.
2618 * tui/tui-layout.c: Likewise.
2619 * tui/tui-out.c: Likewise.
2620 * tui/tui-regs.c: Likewise.
2621 * tui/tui-source.c: Likewise.
2622 * tui/tui-stack.c: Likewise.
2623 * tui/tui-win.c: Likewise.
2624 * tui/tui-windata.c: Likewise.
2625 * tui/tui-winsource.c: Likewise.
2626 * typeprint.c: Likewise.
2627 * ui-file.c: Likewise.
2628 * ui-out.c: Likewise.
2629 * user-regs.c: Likewise.
2630 * utils.c: Likewise.
2631 * v850-tdep.c: Likewise.
2632 * valarith.c: Likewise.
2633 * valops.c: Likewise.
2634 * valprint.c: Likewise.
2635 * value.c: Likewise.
2636 * varobj.c: Likewise.
2637 * vax-tdep.c: Likewise.
2638 * vaxnbsd-tdep.c: Likewise.
2639 * vaxobsd-tdep.c: Likewise.
2640 * windows-nat.c: Likewise.
2641 * xcoffread.c: Likewise.
2642 * xml-support.c: Likewise.
2643 * xstormy16-tdep.c: Likewise.
2644 * xtensa-linux-nat.c: Likewise.
2646 2014-08-07 Gary Benson <gbenson@redhat.com>
2648 * common/common-defs.h: Include gdb_assert.h.
2649 * aarch64-tdep.c: Do not include gdb_assert.h.
2650 * addrmap.c: Likewise.
2651 * aix-thread.c: Likewise.
2652 * alpha-linux-tdep.c: Likewise.
2653 * alpha-mdebug-tdep.c: Likewise.
2654 * alphanbsd-tdep.c: Likewise.
2655 * amd64-nat.c: Likewise.
2656 * amd64-tdep.c: Likewise.
2657 * amd64bsd-nat.c: Likewise.
2658 * amd64fbsd-nat.c: Likewise.
2659 * amd64fbsd-tdep.c: Likewise.
2660 * amd64nbsd-nat.c: Likewise.
2661 * amd64nbsd-tdep.c: Likewise.
2662 * amd64obsd-nat.c: Likewise.
2663 * amd64obsd-tdep.c: Likewise.
2664 * arch-utils.c: Likewise.
2665 * arm-tdep.c: Likewise.
2666 * armbsd-tdep.c: Likewise.
2668 * bcache.c: Likewise.
2669 * bfin-tdep.c: Likewise.
2670 * blockframe.c: Likewise.
2671 * breakpoint.c: Likewise.
2672 * bsd-kvm.c: Likewise.
2673 * bsd-uthread.c: Likewise.
2674 * buildsym.c: Likewise.
2675 * c-exp.y: Likewise.
2676 * c-lang.c: Likewise.
2677 * charset.c: Likewise.
2678 * cleanups.c: Likewise.
2679 * cli-out.c: Likewise.
2680 * cli/cli-decode.c: Likewise.
2681 * cli/cli-dump.c: Likewise.
2682 * cli/cli-logging.c: Likewise.
2683 * cli/cli-script.c: Likewise.
2684 * cli/cli-utils.c: Likewise.
2685 * coffread.c: Likewise.
2686 * common/common-utils.c: Likewise.
2687 * common/queue.h: Likewise.
2688 * common/signals.c: Likewise.
2689 * common/vec.h: Likewise.
2690 * complaints.c: Likewise.
2691 * completer.c: Likewise.
2692 * corelow.c: Likewise.
2693 * cp-abi.c: Likewise.
2694 * cp-name-parser.y: Likewise.
2695 * cp-namespace.c: Likewise.
2696 * cp-support.c: Likewise.
2697 * cris-tdep.c: Likewise.
2698 * dbxread.c: Likewise.
2699 * dictionary.c: Likewise.
2700 * doublest.c: Likewise.
2701 * dsrec.c: Likewise.
2702 * dummy-frame.c: Likewise.
2703 * dwarf2-frame-tailcall.c: Likewise.
2704 * dwarf2-frame.c: Likewise.
2705 * dwarf2expr.c: Likewise.
2706 * dwarf2loc.c: Likewise.
2707 * dwarf2read.c: Likewise.
2709 * event-loop.c: Likewise.
2710 * exceptions.c: Likewise.
2711 * expprint.c: Likewise.
2712 * f-valprint.c: Likewise.
2713 * fbsd-nat.c: Likewise.
2714 * findvar.c: Likewise.
2715 * frame-unwind.c: Likewise.
2716 * frame.c: Likewise.
2717 * frv-tdep.c: Likewise.
2718 * gcore.c: Likewise.
2719 * gdb-dlfcn.c: Likewise.
2720 * gdb_bfd.c: Likewise.
2721 * gdbarch.c: Likewise.
2722 * gdbarch.sh: Likewise.
2723 * gdbtypes.c: Likewise.
2724 * gnu-nat.c: Likewise.
2725 * gnu-v3-abi.c: Likewise.
2726 * go-lang.c: Likewise.
2727 * guile/scm-exception.c: Likewise.
2728 * guile/scm-gsmob.c: Likewise.
2729 * guile/scm-lazy-string.c: Likewise.
2730 * guile/scm-math.c: Likewise.
2731 * guile/scm-pretty-print.c: Likewise.
2732 * guile/scm-safe-call.c: Likewise.
2733 * guile/scm-utils.c: Likewise.
2734 * guile/scm-value.c: Likewise.
2735 * h8300-tdep.c: Likewise.
2736 * hppa-hpux-nat.c: Likewise.
2737 * hppa-tdep.c: Likewise.
2738 * hppanbsd-tdep.c: Likewise.
2739 * hppaobsd-tdep.c: Likewise.
2740 * i386-darwin-nat.c: Likewise.
2741 * i386-darwin-tdep.c: Likewise.
2742 * i386-nto-tdep.c: Likewise.
2743 * i386-tdep.c: Likewise.
2744 * i386bsd-nat.c: Likewise.
2745 * i386fbsd-tdep.c: Likewise.
2746 * i386gnu-nat.c: Likewise.
2747 * i386nbsd-tdep.c: Likewise.
2748 * i386obsd-tdep.c: Likewise.
2749 * i387-tdep.c: Likewise.
2750 * ia64-libunwind-tdep.c: Likewise.
2751 * ia64-tdep.c: Likewise.
2752 * inf-ptrace.c: Likewise.
2753 * inf-ttrace.c: Likewise.
2754 * infcall.c: Likewise.
2755 * infcmd.c: Likewise.
2756 * infrun.c: Likewise.
2757 * inline-frame.c: Likewise.
2758 * interps.c: Likewise.
2759 * jv-lang.c: Likewise.
2760 * jv-typeprint.c: Likewise.
2761 * linux-fork.c: Likewise.
2762 * linux-nat.c: Likewise.
2763 * linux-thread-db.c: Likewise.
2764 * m32c-tdep.c: Likewise.
2765 * m32r-linux-nat.c: Likewise.
2766 * m32r-tdep.c: Likewise.
2767 * m68k-tdep.c: Likewise.
2768 * m68kbsd-nat.c: Likewise.
2769 * m68kbsd-tdep.c: Likewise.
2770 * m88k-tdep.c: Likewise.
2771 * machoread.c: Likewise.
2772 * macroexp.c: Likewise.
2773 * macrotab.c: Likewise.
2774 * maint.c: Likewise.
2775 * mdebugread.c: Likewise.
2776 * memory-map.c: Likewise.
2777 * mep-tdep.c: Likewise.
2778 * mi/mi-common.c: Likewise.
2779 * microblaze-tdep.c: Likewise.
2780 * mingw-hdep.c: Likewise.
2781 * mips-linux-nat.c: Likewise.
2782 * mips-linux-tdep.c: Likewise.
2783 * mips-tdep.c: Likewise.
2784 * mips64obsd-tdep.c: Likewise.
2785 * mipsnbsd-tdep.c: Likewise.
2786 * mn10300-linux-tdep.c: Likewise.
2787 * mn10300-tdep.c: Likewise.
2788 * moxie-tdep.c: Likewise.
2789 * mt-tdep.c: Likewise.
2790 * nat/linux-btrace.c: Likewise.
2791 * nat/linux-osdata.c: Likewise.
2792 * nat/linux-ptrace.c: Likewise.
2793 * nat/mips-linux-watch.c: Likewise.
2794 * nios2-linux-tdep.c: Likewise.
2795 * nios2-tdep.c: Likewise.
2796 * objc-lang.c: Likewise.
2797 * objfiles.c: Likewise.
2798 * obsd-nat.c: Likewise.
2799 * opencl-lang.c: Likewise.
2800 * osabi.c: Likewise.
2801 * parse.c: Likewise.
2802 * ppc-linux-nat.c: Likewise.
2803 * ppc-sysv-tdep.c: Likewise.
2804 * ppcfbsd-nat.c: Likewise.
2805 * ppcfbsd-tdep.c: Likewise.
2806 * ppcnbsd-nat.c: Likewise.
2807 * ppcnbsd-tdep.c: Likewise.
2808 * ppcobsd-nat.c: Likewise.
2809 * ppcobsd-tdep.c: Likewise.
2810 * printcmd.c: Likewise.
2811 * procfs.c: Likewise.
2812 * prologue-value.c: Likewise.
2813 * psymtab.c: Likewise.
2814 * python/py-lazy-string.c: Likewise.
2815 * python/py-value.c: Likewise.
2816 * regcache.c: Likewise.
2817 * reggroups.c: Likewise.
2818 * registry.c: Likewise.
2819 * remote-sim.c: Likewise.
2820 * remote.c: Likewise.
2821 * rs6000-aix-tdep.c: Likewise.
2822 * rs6000-tdep.c: Likewise.
2823 * s390-linux-tdep.c: Likewise.
2824 * score-tdep.c: Likewise.
2825 * ser-base.c: Likewise.
2826 * ser-mingw.c: Likewise.
2827 * sh-tdep.c: Likewise.
2828 * sh64-tdep.c: Likewise.
2829 * solib-darwin.c: Likewise.
2830 * solib-spu.c: Likewise.
2831 * solib-svr4.c: Likewise.
2832 * source.c: Likewise.
2833 * sparc-nat.c: Likewise.
2834 * sparc-sol2-tdep.c: Likewise.
2835 * sparc-tdep.c: Likewise.
2836 * sparc64-sol2-tdep.c: Likewise.
2837 * sparc64-tdep.c: Likewise.
2838 * sparc64fbsd-tdep.c: Likewise.
2839 * sparc64nbsd-tdep.c: Likewise.
2840 * sparc64obsd-tdep.c: Likewise.
2841 * sparcnbsd-tdep.c: Likewise.
2842 * sparcobsd-tdep.c: Likewise.
2843 * spu-multiarch.c: Likewise.
2844 * spu-tdep.c: Likewise.
2845 * stabsread.c: Likewise.
2846 * stack.c: Likewise.
2847 * symfile.c: Likewise.
2848 * symtab.c: Likewise.
2849 * target-descriptions.c: Likewise.
2850 * target-memory.c: Likewise.
2851 * target.c: Likewise.
2852 * tic6x-linux-tdep.c: Likewise.
2853 * tic6x-tdep.c: Likewise.
2854 * tilegx-linux-nat.c: Likewise.
2855 * tilegx-tdep.c: Likewise.
2857 * tramp-frame.c: Likewise.
2858 * tui/tui-out.c: Likewise.
2859 * tui/tui-winsource.c: Likewise.
2860 * ui-out.c: Likewise.
2861 * user-regs.c: Likewise.
2862 * utils.c: Likewise.
2863 * v850-tdep.c: Likewise.
2864 * valops.c: Likewise.
2865 * value.c: Likewise.
2866 * varobj.c: Likewise.
2867 * vax-nat.c: Likewise.
2868 * xml-syscall.c: Likewise.
2869 * xml-tdesc.c: Likewise.
2870 * xstormy16-tdep.c: Likewise.
2871 * xtensa-linux-nat.c: Likewise.
2872 * xtensa-tdep.c: Likewise.
2874 2014-08-07 Gary Benson <gbenson@redhat.com>
2876 * common/common-defs.h: Include common-utils.h.
2877 * defs.h: Do not include common-utils.h.
2878 * common/gdb_assert.h: Likewise.
2879 * darwin-nat.h: Likewise.
2880 * nat/linux-btrace.c: Likewise.
2881 * target/waitstatus.h: Likewise.
2883 2014-08-07 Gary Benson <gbenson@redhat.com>
2885 * common/common-defs.h: Include ptid.h.
2886 * defs.h: Do not include ptid.h.
2887 * inferior.h: Likewise.
2888 * infrun.h: Likewise.
2889 * nat/linux-btrace.h: Likewise.
2890 * nat/linux-osdata.h: Likewise.
2891 * target/waitstatus.h: Likewise.
2893 2014-08-07 Gary Benson <gbenson@redhat.com>
2895 * common/common-defs.h: Include gdb_locale.h.
2896 * defs.h: Do not include gdb_locale.h.
2898 2014-08-07 Gary Benson <gbenson@redhat.com>
2900 * common/common-defs.h: Include gdb/signals.h.
2901 * defs.h: Do not include gdb/signals.h.
2903 2014-08-07 Gary Benson <gbenson@redhat.com>
2905 * common/common-defs.h: Include pathmax.h.
2906 * defs.h: Do not include pathmax.h.
2908 2014-08-07 Gary Benson <gbenson@redhat.com>
2910 * common/common-defs.h: Include libiberty.h.
2911 * defs.h: Do not include libiberty.h.
2912 * common/queue.h: Likewise.
2913 * cp-name-parser.y: Likewise.
2914 * mi/mi-cmd-catch.c: Likewise.
2915 * python/python.c: Likewise.
2917 2014-08-07 Gary Benson <gbenson@redhat.com>
2919 * common/common-defs.h: Include ansidecl.h.
2920 * defs.h: Do not include ansidecl.h.
2921 * common/buffer.h: Likewise.
2922 * common/common-utils.h: Likewise.
2924 2014-08-07 Gary Benson <gbenson@redhat.com>
2926 * common/common-defs.h: Include stddef.h.
2927 * defs.h: Do not include stddef.h.
2928 * common/common-utils.h: Likewise.
2929 * amd64fbsd-nat.c: Likewise.
2930 * bcache.c: Likewise.
2931 * charset.c: Likewise.
2932 * common/buffer.h: Likewise.
2933 * common/vec.h: Likewise.
2934 * i386bsd-nat.c: Likewise.
2935 * nat/linux-btrace.h: Likewise.
2936 * ppcfbsd-nat.c: Likewise.
2937 * ppcnbsd-tdep.h: Likewise.
2938 * ppcobsd-nat.c: Likewise.
2939 * ppcobsd-tdep.h: Likewise.
2940 * python/py-gdb-readline.c: Likewise.
2942 2014-08-07 Gary Benson <gbenson@redhat.com>
2944 * common/common-defs.h: Include stdarg.h.
2945 * defs.h: Do not include stdarg.h.
2946 * ada-lang.c: Likewise.
2947 * common/common-utils.h: Likewise.
2948 * guile/scm-string.c: Likewise.
2949 * guile/scm-utils.c: Likewise.
2950 * m32c-tdep.c: Likewise.
2952 2014-08-07 Gary Benson <gbenson@redhat.com>
2954 * common/common-defs.h: Include stdlib.h.
2955 * defs.h: Do not include stdlib.h.
2956 * addrmap.c: Likewise.
2957 * bcache.c: Likewise.
2958 * common/buffer.c: Likewise.
2959 * common/common-utils.c: Likewise.
2960 * cp-name-parser.y: Likewise.
2961 * go32-nat.c: Likewise.
2962 * mn10300-linux-tdep.c: Likewise.
2963 * nat/linux-osdata.c: Likewise.
2964 * tui/tui.c: Likewise.
2965 * windows-nat.c: Likewise.
2967 2014-08-07 Gary Benson <gbenson@redhat.com>
2969 * common/common-defs.h: Include stdio.h.
2970 * defs.h: Do not include stdio.h.
2971 * ada-lang.c: Likewise.
2972 * common/buffer.c: Likewise.
2973 * common/common-utils.c: Likewise.
2974 * cp-name-parser.y: Likewise.
2975 * gnu-nat.c: Likewise.
2976 * go32-nat.c: Likewise.
2977 * i386gnu-nat.c: Likewise.
2978 * proc-api.c: Likewise.
2979 * proc-events.c: Likewise.
2980 * proc-flags.c: Likewise.
2981 * proc-why.c: Likewise.
2982 * python/python-internal.h: Likewise.
2983 * target-memory.c: Likewise.
2984 * tui/tui-io.c: Likewise.
2985 * tui/tui.c: Likewise.
2987 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2989 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2990 (scan_dyntag_auxv): Same.
2992 2014-08-06 Yao Qi <yao@codesourcery.com>
2994 * amd64-linux-nat.c: Remove duplicated include
2996 * i386-linux-nat.c: Likewise.
2998 2014-08-06 Yao Qi <yao@codesourcery.com>
3000 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3001 operand" with "Special opcode" in comments.
3003 2014-08-05 Gary Benson <gbenson@redhat.com>
3005 * interps.c (initialize_interps): Remove prototype.
3006 (interpreter_initialized): Remove static global.
3007 (interp_add): Do not call initialize_interps.
3008 (initialize_interps): Remove function.
3010 2014-08-05 Gary Benson <gbenson@redhat.com>
3012 * utils.c (vwarning): Remove spurious va_end.
3014 2014-08-05 Alan Modra <amodra@gmail.com>
3016 * charset.c (convert_between_encodings): Cast result of obstack_base.
3017 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3018 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3019 (read_unwind_info): Use size_t for some locals.
3020 * jit.c (finalize_symtab): Likewise.
3021 * utils.c (hashtab_obstack_allocate): Likewise.
3022 * symmisc.c (print_objfile_statistics): Update format strings.
3024 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3026 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3027 (Changes in GDB 7.8): ... here.
3029 2014-08-04 Tom Tromey <tromey@redhat.com>
3031 * target.c (set_targetdebug): New function.
3032 (initialize_targets): Pass set_targetdebug when creating "set
3035 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3037 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3038 if detecting a variable-sized field that is not the last field.
3039 Fix struct type length computation.
3041 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3043 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3046 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3048 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3049 Remove "+ 8" offset in computation of CHAIN_VMA.
3051 2014-07-31 Doug Evans <dje@google.com>
3053 * inflow.c (child_terminal_inferior): Add comment.
3054 (child_terminal_ours_for_output): Add comment.
3055 (child_terminal_ours): Add comment.
3056 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3057 (linux_nat_terminal_ours): Add comment.
3059 2014-07-31 Gary Benson <gbenson@redhat.com>
3061 * common/btrace-common.h: Do not include defs.h or server.h.
3062 * nat/mips-linux-watch.h: Likewise.
3063 * gdb-dlfcn.h: Do not include defs.h.
3064 * tracefile.h: Likewise.
3066 2014-07-30 Roland McGrath <mcgrathr@google.com>
3068 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3070 2014-07-30 Tom Tromey <tromey@redhat.com>
3072 * bsd-kvm.c (bsd_kvm_open): Constify.
3073 * corelow.c (core_open): Constify.
3074 * ctf.c (ctf_open): Constify.
3075 * dbug-rom.c (dbug_open): Constify.
3076 * exec.c (exec_open): Constify.
3077 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3078 * microblaze-rom.c (picobug_open): Constify.
3079 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3081 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3082 * record-btrace.c (record_btrace_open): Constify.
3083 * record-full.c (record_full_core_open_1, record_full_open_1)
3084 (record_full_open): Constify.
3085 * remote-m32r-sdi.c (m32r_open): Constify.
3086 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3087 (rockhopper_open, lsi_open): Constify.
3088 * remote-sim.c (gdbsim_open): Constify.
3089 * remote.c (remote_open, extended_remote_open, remote_open_1):
3091 * target.h (struct target_ops) <to_open>: Make "arg" const.
3092 * tracefile-tfile.c (tfile_open): Constify.
3094 2014-07-30 Tom Tromey <tromey@redhat.com>
3096 * breakpoint.c (map_breakpoint_numbers): Update.
3097 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3098 (get_number_const): New function.
3099 (get_number): Rewrite using get_number_const.
3100 (init_number_or_range): Make "string" const.
3101 (number_is_in_list): Make "list" const.
3102 * cli/cli-utils.h (get_number_const): Declare.
3103 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3104 (init_number_or_range, number_is_in_list): Update.
3105 * printcmd.c (map_display_numbers): Update.
3106 * value.c (value_from_history_ref): Constify.
3107 * value.h (value_from_history_ref): Update.
3109 2014-07-30 Tom Tromey <tromey@redhat.com>
3111 * corefile.c (hook_type, call_extra_exec_file_hooks)
3112 (specify_exec_file_hook): Constify.
3113 * exec.c (exec_file_attach): Make "filename" const.
3114 * gdbcore.h (deprecated_exec_file_display_hook)
3115 (specify_exec_file_hook, exec_file_attach): Constify.
3116 * main.c (captured_main): Use catch_command_errors_const.
3118 2014-07-30 Tom Tromey <tromey@redhat.com>
3120 * target.c (open_target): New function.
3121 (add_target_with_completer, add_deprecated_target_alias): Use
3122 set_cmd_sfunc, set_cmd_context.
3123 (debug_to_open): Remove.
3124 (setup_target_debug): Update.
3126 2014-07-30 Yao Qi <yao@codesourcery.com>
3128 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3130 * parse.c (exp_iterate): Update comments.
3132 2014-07-30 Gary Benson <gbenson@redhat.com>
3134 * common/common-defs.h: New file.
3135 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3136 * defs.h: Include common-defs.h.
3137 Do not include config.h or build-gnulib/config.h.
3139 2014-07-30 Gary Benson <gbenson@redhat.com>
3141 * common/common-utils.h: Do not include config.h.
3142 * nat/linux-btrace.h: Likewise.
3144 2014-07-30 Gary Benson <gbenson@redhat.com>
3146 * btrace.c: Include defs.h.
3147 * common/ptid.c: Include defs.h or server.h as appropriate.
3148 * nat/mips-linux-watch.c: Likewise.
3150 2014-07-29 Tom Tromey <tromey@redhat.com>
3152 * target.c (target_is_pushed): Simplify.
3154 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3158 2014-07-29 Yao Qi <yao@codesourcery.com>
3161 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3163 2014-07-28 Doug Evans <xdje42@gmail.com>
3166 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3167 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3170 2014-07-28 Will Newton <will.newton@linaro.org>
3172 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3173 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3174 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3175 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3176 (THUMB2_EABI_SYSCALL): Likewise.
3177 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3179 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3180 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3182 2014-07-27 Doug Evans <xdje42@gmail.com>
3184 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3186 2014-07-27 Doug Evans <xdje42@gmail.com>
3188 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3190 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3191 Doug Evans <xdje42@gmail.com>
3194 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3195 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3196 * configure.ac: Try to use guild to compile an scm file, if it fails
3197 then disable guile support.
3198 * configure: Regenerate.
3199 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3201 (GUILE_COMPILED_FILES): New variable.
3202 (GUILE_FILES) Update.
3203 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3204 (stamp-guile): Compile scm files.
3205 * guile/guile.c (boot_guile_support): New function.
3206 (standard_throw_args_p): New function.
3207 (print_standard_throw_error, print_throw_error): New functions.
3208 (handle_boot_error): New function.
3209 (initialize_scheme_side): Rewrite to call boot_guile_support.
3210 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3211 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3213 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3214 Doug Evans <xdje42@gmail.com>
3217 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3218 * guile/lib/gdb/support.scm: New file.
3219 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3220 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3222 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3224 (%assert-type): Ditto, and renamed to assert-type.
3225 (%exception-print-style): Delete.
3227 2014-07-26 Doug Evans <xdje42@gmail.com>
3230 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3231 * configure: Regenerate.
3232 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3234 (PYTHON_FILES): New variable.
3235 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3236 (GUILE_FILES): New variable.
3237 (stamp-python, install-python, uninstall-python): Handle empty
3239 (stamp-guile, install-guile, uninstall-guile): Ditto.
3241 2014-07-26 Doug Evans <xdje42@gmail.com>
3244 * guile/lib/gdb.scm (pretty-printers): Export.
3245 (set-pretty-printers!): Export.
3246 * guile/lib/gdb/printing.scm (gdb module): Update.
3247 (prepend-pretty-printer!, append-pretty-printer!): Update.
3248 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3249 (pretty_printer_list_var): Delete.
3250 (pretty_printer_list): New static global.
3251 (gdbscm_pretty_printers): New function.
3252 (gdbscm_set_pretty_printers_x): New function.
3253 (ppscm_find_pretty_printer_from_gdb): Update.
3254 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3255 (gdbscm_initialize_pretty_printers): Update.
3257 2014-07-26 Doug Evans <xdje42@gmail.com>
3260 * configure.ac: Add check for header gc/gc.h.
3261 Add check for function setenv.
3262 * configure: Regenerate.
3263 * config.in: Regenerate.
3264 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3266 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3268 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3269 variation in gdbarch matching.
3271 2014-07-25 Tom Tromey <tromey@redhat.com>
3273 * exec.c (using_exec_ops): Remove.
3274 (exec_close_1): Update. Remove extraneous block, reindent.
3275 (add_target_sections): Use target_is_pushed.
3277 2014-07-25 Pedro Alves <palves@redhat.com>
3279 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3280 * monitor.c (monitor_create_inferior): Likewise.
3281 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3282 * remote-sim.c (gdbsim_create_inferior): Likewise.
3283 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3284 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3285 * windows-nat.c (do_initial_windows_stuff): Likewise.
3287 2014-07-25 Pedro Alves <palves@redhat.com>
3289 * NEWS: Mention signal passing and "signal" command changes.
3290 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3292 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3294 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3295 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3296 (jump_command): Adjust clear_proceed_status call.
3297 (signal_command): Warn if other thread that are resumed have
3298 signals that will be delivered. Adjust clear_proceed_status call.
3299 (until_next_command, finish_command)
3300 (proceed_after_attach_callback, attach_command_post_wait)
3301 (attach_command): Adjust clear_proceed_status call.
3302 * infrun.c (proceed_after_vfork_done): Likewise.
3303 (proceed_after_attach_callback): Adjust comment.
3304 (clear_proceed_status_thread): Clear stop_signal if not in pass
3306 (clear_proceed_status_callback): Delete.
3307 (clear_proceed_status): New 'step' parameter. Only clear the
3308 proceed status of threads the command being prepared is about to
3310 (proceed): If passed in an explicit signal, override stop_signal
3311 with it. Don't pass the last stop signal to the thread we're
3313 (init_wait_for_inferior): Adjust clear_proceed_status call.
3314 (switch_back_to_stepped_thread): Clear the signal if it should not
3316 * infrun.h (clear_proceed_status): New 'step' parameter.
3317 (user_visible_resume_ptid): Add comment.
3318 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3319 signal is in pass state.
3320 * remote.c (append_pending_thread_resumptions): Likewise.
3321 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3323 2014-07-25 Tom Tromey <tromey@redhat.com>
3325 * target.h (target_stopped_data_address)
3326 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3329 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3331 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3333 (avr_pointer_to_address): Likewise.
3335 2014-07-24 Tom Tromey <tromey@redhat.com>
3337 * monitor.c (compile_pattern): Update.
3338 * target.h (struct target_ops) <to_shortname, to_longname,
3341 2014-07-24 Tom Tromey <tromey@redhat.com>
3343 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3344 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3345 (add_info_alias, add_com): Make "doc" const.
3346 (print_doc_line): Make "str" const.
3347 (delete_cmd): Update.
3348 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3349 (print_doc_line): Update.
3350 * cli/cli-script.c (document_command): Update.
3351 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3352 (add_com, add_info, add_info_alias): Update.
3353 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3354 * python/py-cmd.c (cmdpy_destroyer): Update.
3356 2014-07-24 Tom Tromey <tromey@redhat.com>
3358 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3359 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3360 (help_cmd_list): Constify.
3361 (lookup_cmd): Update.
3362 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3364 (help_cmd_list, apropos_cmd): Update.
3365 * cli/cli-script.c (show_user): Update.
3366 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3367 * cli/cli-setshow.h (cmd_show_list): Update.
3368 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3369 (cmd_show_list): Update.
3370 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3371 * python/py-cmd.c (cmdpy_destroyer): Update.
3373 2014-07-24 Tom Tromey <tromey@redhat.com>
3375 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3376 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3378 * command.h (deprecate_cmd): Update.
3379 * maint.c (maintenance_do_deprecate): Add casts.
3381 2014-07-24 Tom Tromey <tromey@redhat.com>
3383 * cli/cli-decode.c (help_cmd): Make parameter "const".
3384 * cli/cli-decode.h (help_cmd): Update.
3386 2014-07-24 Tom Tromey <tromey@redhat.com>
3388 * stack.c (up_silently_base, down_silently_base): Make argument
3391 2014-07-24 Tom Tromey <tromey@redhat.com>
3393 * solib.c (solib_add): Make "pattern" const.
3394 * solib.h (solib_add): Update.
3396 2014-07-24 Tom Tromey <tromey@redhat.com>
3398 * remote.c (remote_serial_open, print_packet, putpkt)
3399 (putpkt_binary): Constify.
3400 * remote.h (putpkt): Update.
3402 2014-07-24 Tom Tromey <tromey@redhat.com>
3404 * monitor.c (monitor_open): Make "args" const.
3405 * monitor.h (monitor_open): Update.
3407 2014-07-24 Tom Tromey <tromey@redhat.com>
3409 * maint.c (match_bfd_flags): Make "string" const.
3410 (print_bfd_section_info): Remove casts.
3411 (print_objfile_section_info): Make "string" const.
3413 2014-07-24 Tom Tromey <tromey@redhat.com>
3415 * inf-child.c (inf_child_open_target): Make "arg" const.
3416 * inf-child.h (inf_child_open_target): Update.
3418 2014-07-24 Tom Tromey <tromey@redhat.com>
3420 * environ.c (unset_in_environ): Make "var" const.
3421 * environ.h (unset_in_environ): Update.
3423 2014-07-24 Tom Tromey <tromey@redhat.com>
3425 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3427 (scan_filename_with_cleanup): Likewise.
3428 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3429 Make arguments const.
3430 (restore_command): Update.
3432 2014-07-24 Pedro Alves <palves@redhat.com>
3434 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3436 2014-07-24 Tom Tromey <tromey@redhat.com>
3437 Gary Benson <gbenson@redhat.com>
3439 * nat/linux-ptrace.c (additional_flags): New global.
3440 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3441 additional_flags; don't check GDBSERVER.
3442 (linux_ptrace_set_additional_flags): New function.
3443 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3445 * linux-nat.c (_initialize_linux_nat): Call
3446 linux_ptrace_set_additional_flags.
3448 2014-07-24 Tom Tromey <tromey@redhat.com>
3450 * make-target-delegates (munge_type, write_debugmethod): New
3452 (debug_names): New global.
3453 ($TARGET_DEBUG_PRINTER): New global.
3454 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3456 Write debug methods. Generate init_debug_target.
3457 * target-debug.h: New file.
3458 * target-delegates.c: Rebuild.
3459 * target.c: Include target-debug.h.
3460 (debug_target): Hoist definition.
3461 (target_kill, target_get_section_table, target_memory_map)
3462 (target_flash_erase, target_flash_done, target_detach)
3463 (target_disconnect, target_wait, target_resume)
3464 (target_pass_signals, target_program_signals, target_follow_fork)
3465 (target_mourn_inferior, target_search_memory)
3466 (target_thread_address_space, target_close)
3467 (target_find_new_threads, target_core_of_thread)
3468 (target_verify_memory, target_insert_mask_watchpoint)
3469 (target_remove_mask_watchpoint): Remove targetdebug code.
3470 (debug_to_post_attach, debug_to_prepare_to_store)
3471 (debug_to_files_info, debug_to_insert_breakpoint)
3472 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3473 (debug_to_region_ok_for_hw_watchpoint)
3474 (debug_to_can_accel_watchpoint_condition)
3475 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3476 (debug_to_watchpoint_addr_within_range)
3477 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3478 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3479 (debug_to_terminal_init, debug_to_terminal_inferior)
3480 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3481 (debug_to_terminal_save_ours, debug_to_terminal_info)
3482 (debug_to_load, debug_to_post_startup_inferior)
3483 (debug_to_insert_fork_catchpoint)
3484 (debug_to_remove_fork_catchpoint)
3485 (debug_to_insert_vfork_catchpoint)
3486 (debug_to_remove_vfork_catchpoint)
3487 (debug_to_insert_exec_catchpoint)
3488 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3489 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3490 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3491 (setup_target_debug): Call init_debug_target.
3492 * target.h (TARGET_DEBUG_PRINTER): New macro.
3493 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3494 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3496 2014-07-24 Gary Benson <gbenson@redhat.com>
3498 * exceptions.h (throw_vfatal): Renamed to...
3499 (throw_vquit): New declaration.
3500 (throw_quit): Likewise.
3501 * exceptions.c (throw_vfatal): Renamed to...
3502 (throw_vquit): New function.
3503 (throw_quit): Likewise.
3504 (throw_error): Call throw_verror rather than throw_it.
3505 * utils.h (vfatal): Removed.
3507 * utils.c (vfatal): Removed.
3509 (internal_verror): Replaced call to fatal with call to throw_quit.
3510 (quit): Replaced calls to fatal with calls to throw_quit.
3512 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3514 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3517 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3519 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3520 less than zero in conditional expression.
3522 2014-07-23 Tom Tromey <tromey@redhat.com>
3524 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3525 ($INTRO_PART): Don't match whitespace.
3526 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3528 ($METHOD): Add $METHOD_TRAILER.
3530 (scan_target_h): New sub.
3531 Change main loop not to collect state.
3532 * target-delegates.c: Rebuild.
3534 2014-07-23 Gary Benson <gbenson@redhat.com>
3536 * cp-support.c (gdb_demangle): Fix build on systems without
3539 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3541 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3542 for reference entry value target data value.
3544 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3546 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3547 value_available_contents_eq.
3549 2014-07-22 Pedro Alves <palves@redhat.com>
3551 * value.c (allocate_optimized_out_value): Don't mark value as
3554 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3556 * MAINTAINERS (Write After Approval): Update my email address.
3558 2014-07-20 Doug Evans <dje@google.com>
3561 * remote.c (putpkt_binary): Add text to error message.
3563 2014-07-20 Yao Qi <yao@codesourcery.com>
3565 * eval.c: Remove "Chill" from comments.
3566 * gdbtypes.h: Likewise.
3567 * symtab.h: Likewise.
3569 2014-07-20 Yao Qi <yao@codesourcery.com>
3571 * std-operator.def: Update comments to TERNOP_SLICE.
3573 2014-07-20 Yao Qi <yao@codesourcery.com>
3575 * std-operator.def: Remove BINOP_RANGE.
3576 * breakpoint.c (watchpoint_exp_is_const): Update.
3577 * expprint.c (dump_subexp_body_standard): Likewise.
3578 * eval.c (init_array_element): Remove dead code.
3579 (evaluate_subexp_standard): Likewise.
3581 2014-07-20 Yao Qi <yao@codesourcery.com>
3583 * std-operator.def: Remove BINOP_IN.
3584 * breakpoint.c (watchpoint_exp_is_const): Update.
3585 * eval.c (evaluate_subexp_standard): Likewise.
3586 * expprint.c (dump_subexp_body_standard): Likewise.
3588 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3590 * microblaze-tdep.c (microblaze_register_names): Add
3591 the rshr and rslr register names.
3592 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3593 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3594 Use of tdesc_numbered_register. Use of
3595 microblaze_register_g_packet_guesses. Use of
3596 tdesc_use_registers. Use of set_gdbarch_register_type.
3597 (microblaze_register_g_packet_guesses): New.
3598 * microblaze-tdep.h (microblaze_reg_num): Add
3599 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3600 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3601 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3602 * features/microblaze-core.xml: New file.
3603 * features/microblaze-stack-protect.xml: New file.
3604 * features/microblaze-with-stack-protect.c: New file.
3605 * features/microblaze-with-stack-protect.xml: New file.
3606 * features/microblaze.xml: New file.
3607 * features/microblaze.c: New file.
3608 * features/Makefile (microblaze-with-stack-protect): Add
3609 microblaze-with-stack-protect microblaze and microblaze-expedite.
3610 * regformats/microblaze-with-stack-protect.dat: New file.
3611 * regformats/microblaze.dat: New file.
3612 * doc/gdb.texinfo (MicroBlaze Features): Added.
3614 2014-07-18 Tom Tromey <tromey@redhat.com>
3616 * exec.c (exec_ops): Now static.
3617 * exec.h (exec_ops): Don't declare.
3619 2014-07-18 Tom Tromey <tromey@redhat.com>
3621 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3622 to find_target_beneath.
3623 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3624 find_target_beneath.
3625 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3627 2014-07-18 Tom Tromey <tromey@redhat.com>
3630 * utils.c (quit): Use target_supports_terminal_ours.
3631 * target.h (target_supports_terminal_ours): Declare.
3632 * target.c (target_supports_delete_record): Don't check
3633 to_delete_record against NULL.
3634 (target_supports_terminal_ours): New function.
3636 2014-07-18 Tom Tromey <tromey@redhat.com>
3639 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3640 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3641 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3642 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3643 * windows-nat.c (windows_xfer_partial): Always delegate.
3644 * record-btrace.c (record_btrace_xfer_partial): Simplify
3646 (record_btrace_fetch_registers, record_btrace_store_registers)
3647 (record_btrace_prepare_to_store, record_btrace_resume)
3648 (record_btrace_wait, record_btrace_find_new_threads)
3649 (record_btrace_thread_alive): Likewise.
3650 * procfs.c (procfs_xfer_partial): Always delegate.
3651 * corelow.c (core_xfer_partial): Always delegate.
3652 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3654 2014-07-18 Tom Tromey <tromey@redhat.com>
3656 * exec.c (exec_make_note_section): Move earlier.
3658 2014-07-17 Doug Evans <dje@google.com>
3661 * maint.c (count_symtabs_and_blocks): Handle NULL
3662 current_program_space.
3663 (report_command_stats): Check global enabled flag in addition to
3664 recorded enabled flag.
3665 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3667 2014-07-16 Pedro Alves <palves@redhat.com>
3669 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3671 2014-07-16 Tom Tromey <tromey@redhat.com>
3673 * target.h (struct target_ops) <to_delete_record>: Reformat
3676 2014-07-16 Tom Tromey <tromey@redhat.com>
3678 * target-delegates.c: Rebuild.
3680 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3682 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3683 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3684 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3685 (avr_pointer_to_address): Likewise.
3686 (avr_address_class_type_flags): New function.
3687 (avr_address_class_type_flags_to_name): Likewise.
3688 (avr_address_class_name_to_type_flags): Likewise.
3689 (avr_gdbarch_init): Set address_class_type_flags,
3690 address_class_type_flags_to_name and
3691 address_class_name_to_type_flags.
3693 2014-07-15 Pedro Alves <palves@redhat.com>
3695 * linux-nat.c (kill_callback): Save errno and work with saved
3698 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3700 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3702 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3704 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3705 breakpoint support correctly.
3707 2014-07-14 Pedro Alves <palves@redhat.com>
3709 * utils.c (prompt_for_continue): Call target_terminal_ours.
3711 2014-07-14 Pedro Alves <palves@redhat.com>
3713 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3714 catch_errors. Don't re-enable stdin or notify observers where,
3716 (fetch_inferior_event_wrapper): Delete.
3718 2014-07-14 Pedro Alves <palves@redhat.com>
3721 * top.c: Include "inf-loop.h".
3722 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3724 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3726 (gdb_readline_wrapper): Store whether the target is async, and
3729 2014-07-14 Pedro Alves <palves@redhat.com>
3732 * top.c (gdb_readline_wrapper_line): Tweak comment.
3733 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3734 the input handler callback.
3736 2014-07-14 Pedro Alves <palves@redhat.com>
3739 * main.c: Include event-top.h.
3740 (handle_command_errors): New function.
3741 (catch_command_errors, catch_command_errors_const): Use it.
3743 2014-07-14 Pedro Alves <palves@redhat.com>
3745 * exceptions.c (catch_command_errors, catch_command_errors_const):
3747 * exceptions.h (catch_command_errors_ftype)
3748 (catch_command_errors_const_ftype): Moved to main.c.
3749 (catch_command_errors, catch_command_errors_const): Delete
3751 * main.c (catch_command_errors_ftype)
3752 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3753 (catch_command_errors, catch_command_errors_const)): Moved here
3754 from exceptions.c and make static.
3756 2014-07-14 Pedro Alves <palves@redhat.com>
3758 * exceptions.c (print_any_exception): Delete.
3759 (catch_exceptions_with_msg): Use exception_print instead of
3760 print_any_exception.
3761 (catch_errors): Use exception_fprintf instead of
3762 print_any_exception.
3763 (catch_command_errors, catch_command_errors_const): Use
3764 exception_print instead of print_any_exception.
3766 2014-07-14 Pedro Alves <palves@redhat.com>
3768 * infcall.c (run_inferior_call): Set 'sync_execution' while
3769 running the inferior call.
3771 2014-07-14 Pedro Alves <palves@redhat.com>
3773 * value.c (value_contents_equal): Delete function.
3774 * value.h (value_contents_equal): Delete declaration.
3776 2014-07-14 Tom Tromey <tromey@redhat.com>
3779 * gdbtypes.c (is_dynamic_type_internal): New function, from
3781 (is_dynamic_type): Rewrite.
3782 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3783 (resolve_dynamic_struct): Likewise.
3784 (resolve_dynamic_type_internal): New function, from
3785 resolve_dynamic_type.
3786 (resolve_dynamic_type): Rewrite.
3788 2014-07-14 Tom Tromey <tromey@redhat.com>
3790 * target.c (target_require_runnable): Also check record_stratum.
3793 2014-07-11 Yao Qi <yao@codesourcery.com>
3795 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3796 thumb_instruction_restores_sp return true.
3798 2014-07-11 Yao Qi <yao@codesourcery.com>
3800 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3801 (thumb_in_function_epilogue_p): Call
3802 thumb_instruction_restores_sp.
3804 2014-07-11 Yao Qi <yao@codesourcery.com>
3806 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3808 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3810 2014-07-11 Gary Benson <gbenson@redhat.com>
3812 * amd64-linux-nat.c (gdbcore.h): Remove include.
3813 (regset.h): Likewise.
3814 (nat/linux-btrace.h): Likewise.
3815 (btrace.h): Likewise.
3816 (gdb_assert.h): Likewise.
3817 (string.h): Likewise.
3818 (sys/uio.h): Likewise.
3819 (sys/debugreg.h): Likewise.
3820 (sys/syscall.h): Likewise.
3821 (sys/procfs.h): Likewise.
3822 (sys/user.h): Likewise.
3823 (asm/ptrace.h): Likewise.
3824 (i386-nat.h): Likewise.
3825 * i386-linux-nat.c (i386-nat.h): Likewise.
3826 (regset.h): Likewise.
3827 (target.h): Likewise.
3828 (linux-nat.h): Likewise.
3829 (nat/linux-btrace.h): Likewise.
3830 (btrace.h): Likewise.
3831 (gdb_assert.h): Likewise.
3832 (string.h): Likewise.
3833 (sys/uio.h): Likewise.
3834 (sys/user.h): Likewise.
3835 (sys/procfs.h): Likewise.
3836 (sys/reg.h): Likewise.
3837 (sys/debugreg.h): Likewise.
3838 (ORIG_EAX): Remove definition.
3840 2014-07-11 Gary Benson <gbenson@redhat.com>
3842 * i386-linux-nat.h: New file.
3843 * x86-linux-nat.h: Likewise.
3844 * x86-linux-nat.c: Likewise.
3845 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3846 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3847 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3848 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3849 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3850 (PTRACE_SETREGSET): Likewise.
3851 (arch_lwp_info): Now in x86-linux-nat.c.
3852 (have_ptrace_getregset): Now in x86-linux-nat.h.
3853 (x86_linux_dr_get): Now in x86-linux-nat.c.
3854 (x86_linux_dr_set): Likewise.
3855 (x86_linux_dr_get_addr): Likewise.
3856 (x86_linux_dr_get_control): Likewise.
3857 (x86_linux_dr_get_status): Likewise.
3858 (update_debug_registers_callback): Likewise.
3859 (x86_linux_dr_set_control): Likewise.
3860 (x86_linux_dr_set_addr): Likewise.
3861 (x86_linux_prepare_to_resume): Likewise.
3862 (x86_linux_new_thread): Likewise.
3863 (x86_linux_new_fork): Likewise.
3864 (x86_linux_get_thread_area): Likewise.
3865 (super_post_startup_inferior): Likewise.
3866 (x86_linux_child_post_startup_inferior): Likewise.
3867 (AMD64_LINUX_USER64_CS): Likewise.
3868 (AMD64_LINUX_X32_DS): Likewise.
3869 (x86_linux_read_description): Likewise.
3870 (x86_linux_enable_btrace): Likewise.
3871 (x86_linux_disable_btrace): Likewise.
3872 (x86_linux_teardown_btrace): Likewise.
3873 (x86_linux_read_btrace): Likewise.
3874 (x86_linux_create_target): Likewise.
3875 (x86_linux_add_target): Likewise.
3876 * i386-linux-nat.c (x86-linux-nat.h): New include.
3877 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3878 (PTRACE_SETREGSET): Likewise.
3879 (arch_lwp_info): Now in x86-linux-nat.c.
3880 (have_ptrace_getregset): Now in x86-linux-nat.h.
3881 (x86_linux_dr_get): Now in x86-linux-nat.c.
3882 (x86_linux_dr_set): Likewise.
3883 (x86_linux_dr_get_addr): Likewise.
3884 (x86_linux_dr_get_control): Likewise.
3885 (x86_linux_dr_get_status): Likewise.
3886 (update_debug_registers_callback): Likewise.
3887 (x86_linux_dr_set_control): Likewise.
3888 (x86_linux_dr_set_addr): Likewise.
3889 (x86_linux_prepare_to_resume): Likewise.
3890 (x86_linux_new_thread): Likewise.
3891 (x86_linux_new_fork): Likewise.
3892 (x86_linux_get_thread_area): Likewise.
3893 (super_post_startup_inferior): Likewise.
3894 (x86_linux_child_post_startup_inferior): Likewise.
3895 (AMD64_LINUX_USER64_CS): Likewise.
3896 (AMD64_LINUX_X32_DS): Likewise.
3897 (x86_linux_read_description): Likewise.
3898 (x86_linux_enable_btrace): Likewise.
3899 (x86_linux_disable_btrace): Likewise.
3900 (x86_linux_teardown_btrace): Likewise.
3901 (x86_linux_read_btrace): Likewise.
3902 (x86_linux_create_target): Likewise.
3903 (x86_linux_add_target): Likewise.
3905 2014-07-11 Gary Benson <gbenson@redhat.com>
3907 * amd64-linux-nat.c: Comment and whitespace changes.
3908 * i386-linux-nat.c: Comment and whitespace changes.
3910 2014-07-11 Gary Benson <gbenson@redhat.com>
3912 * amd64-linux-nat.c (x86_linux_create_target): New function.
3913 (x86_linux_add_target): Likewise.
3914 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3915 * i386-linux-nat.c (x86_linux_create_target): New function.
3916 (x86_linux_add_target): Likewise.
3917 (_initialize_i386_linux_nat): Delegate to the above new functions.
3919 2014-07-11 Gary Benson <gbenson@redhat.com>
3921 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3922 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3923 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3924 (ps_get_thread_area): Delegate to the above.
3926 2014-07-11 Gary Benson <gbenson@redhat.com>
3928 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3929 x86_linux_read_description. All uses updated. amd64-specific
3930 code conditionalized. Conditionalized i386-specific code added.
3931 Redundant cast removed.
3932 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3933 x86_linux_read_description. All uses updated. i386-specific
3934 code conditionalized. Conditionalized amd64-specific code added.
3935 One sizeof replaced with the actual type it is describing.
3937 2014-07-11 Gary Benson <gbenson@redhat.com>
3939 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3940 x86_linux_dr_get. All uses updated.
3941 (amd64_linux_dr_set): Renamed to
3942 x86_linux_dr_set. All uses updated.
3943 (amd64_linux_dr_get_addr): Renamed to
3944 x86_linux_dr_get_addr. All uses updated.
3945 (amd64_linux_dr_get_control): Renamed to
3946 x86_linux_dr_get_control. All uses updated.
3947 (amd64_linux_dr_get_status): Renamed to
3948 x86_linux_dr_get_status. All uses updated.
3949 (amd64_linux_dr_set_control): Renamed to
3950 x86_linux_dr_set_control. All uses updated.
3951 (amd64_linux_dr_set_addr): Renamed to
3952 x86_linux_dr_set_addr. All uses updated.
3953 (amd64_linux_prepare_to_resume): Renamed to
3954 x86_linux_prepare_to_resume. All uses updated.
3955 (amd64_linux_new_thread): Renamed to
3956 x86_linux_new_thread. All uses updated.
3957 (amd64_linux_new_fork): Renamed to
3958 x86_linux_new_fork. All uses updated.
3959 (amd64_linux_child_post_startup_inferior): Renamed to
3960 x86_linux_child_post_startup_inferior. All uses updated.
3961 (amd64_linux_enable_btrace): Renamed to
3962 x86_linux_enable_btrace. All uses updated.
3963 (amd64_linux_disable_btrace): Renamed to
3964 x86_linux_disable_btrace. All uses updated.
3965 (amd64_linux_teardown_btrace): Renamed to
3966 x86_linux_teardown_btrace. All uses updated.
3967 (amd64_linux_read_btrace): Renamed to
3968 x86_linux_read_btrace. All uses updated.
3969 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3970 x86_linux_dr_get. All uses updated.
3971 (i386_linux_dr_set): Renamed to
3972 x86_linux_dr_set. All uses updated.
3973 (i386_linux_dr_get_addr): Renamed to
3974 x86_linux_dr_get_addr. All uses updated.
3975 (i386_linux_dr_get_control): Renamed to
3976 x86_linux_dr_get_control. All uses updated.
3977 (i386_linux_dr_get_status): Renamed to
3978 x86_linux_dr_get_status. All uses updated.
3979 (i386_linux_dr_set_control): Renamed to
3980 x86_linux_dr_set_control. All uses updated.
3981 (i386_linux_dr_set_addr): Renamed to
3982 x86_linux_dr_set_addr. All uses updated.
3983 (i386_linux_prepare_to_resume): Renamed to
3984 x86_linux_prepare_to_resume. All uses updated.
3985 (i386_linux_new_thread): Renamed to
3986 x86_linux_new_thread. All uses updated.
3987 (i386_linux_new_fork): Renamed to
3988 x86_linux_new_fork. All uses updated.
3989 (i386_linux_child_post_startup_inferior): Renamed to
3990 x86_linux_child_post_startup_inferior. All uses updated.
3991 (i386_linux_enable_btrace): Renamed to
3992 x86_linux_enable_btrace. All uses updated.
3993 (i386_linux_disable_btrace): Renamed to
3994 x86_linux_disable_btrace. All uses updated.
3995 (i386_linux_teardown_btrace): Renamed to
3996 x86_linux_teardown_btrace. All uses updated.
3997 (i386_linux_read_btrace): Renamed to
3998 x86_linux_read_btrace. All uses updated.
4000 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4002 * remote.c (extended_remote_post_attach): New function.
4003 (init_extended_remote_ops): Install it as to_post_attach method.
4005 2014-07-09 Pedro Alves <palves@redhat.com>
4007 * infcmd.c (attach_command_post_wait): Don't call
4008 target_terminal_inferior here.
4009 (attach_command): Call it here instead.
4011 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4013 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4015 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4016 from varobj.c, with additional checks.
4017 (c_varobj_ops): Fill in is_path_expr_parent field.
4018 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4019 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4021 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4023 (varobj_default_is_path_expr_parent): New function.
4024 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4025 (varobj_default_is_path_expr_parent): Declare new function.
4027 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4029 * infcmd.c (finish_backward): Turn internal error into normal error.
4031 2014-07-07 Pedro Alves <palves@redhat.com>
4034 * remote.c (async_handle_remote_sigint)
4035 (async_handle_remote_sigint_twice): Call
4036 gdb_call_async_signal_handler instead of
4037 mark_async_signal_handler.
4039 2014-07-07 Tom Tromey <tromey@redhat.com>
4041 * target-delegates.c: Rebuild.
4042 * target.c (target_info_record): Remove.
4043 * record.c (info_record_command): Unconditionally call
4045 * target.h (struct target_ops) <to_info_record>: Use
4046 TARGET_DEFAULT_IGNORE.
4047 (target_info_record): Remove.
4049 2014-07-07 Tom Tromey <tromey@redhat.com>
4051 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4052 TARGET_DEFAULT_NORETURN.
4053 * target.c (generic_tls_error): New function.
4054 (target_translate_tls_address): Don't search target stack.
4055 * target-delegates.c: Rebuild.
4056 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4058 * linux-thread-db.c (thread_db_get_thread_local_address):
4059 Unconditionally call beneath target.
4061 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4063 * cli/cli-logging.c (pop_output_files): Assign targerr to
4066 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4068 * MAINTAINERS (Write After Approval): Update my email address.
4070 2014-07-02 Gary Benson <gbenson@redhat.com>
4072 * proc-service.c (ps_xfer_memory): Update comment.
4073 (ps_pstop): Remove unused function.
4074 (ps_pcontinue): Likewise.
4075 (ps_lstop): Likewise.
4076 (ps_lcontinue): Likewise.
4077 (ps_lgetxregsize): Likewise.
4078 (ps_lgetxregs): Likewise.
4079 (ps_lsetxregs): Likewise.
4080 (ps_plog): Likewise.
4081 (ps_ptread): Likewise.
4082 (ps_ptwrite): Likewise.
4084 2014-07-01 Mark Wielaard <mjw@redhat.com>
4086 * dwarf2read.c (add_array_cv_type): New function.
4087 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4088 (read_tag_volatile_type): Likewise.
4090 2014-07-01 Tom Tromey <tromey@redhat.com>
4092 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4093 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4094 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4095 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4096 * command.h (cmd_cfunc_ftype): Move earlier.
4097 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4098 (add_com, add_info): Use cmd_cfunc_ftype.
4100 2014-06-30 Tom Tromey <tromey@redhat.com>
4102 * symtab.c (operator_chars): Make parameters and return type
4104 (file_matches): Make "files" const.
4105 (struct search_symbols_data) <files>: Now const.
4106 (search_symbols): Make "regexp" and "files" parameters const.
4108 (symtab_symbol_info): Remove cast.
4109 (rbreak_command): Update.
4110 * symtab.h (search_symbols): Update.
4112 2014-06-27 Yao Qi <yao@codesourcery.com>
4114 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4115 Change parameter type to 'struct thread_info *'. Caller
4117 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4119 * dummy-frame.c (struct dummy_frame_id): New.
4120 (dummy_frame_id_eq): New function.
4121 (struct dummy_frame) <id>: Change its type to 'struct
4123 (dummy_frame_push): Add parameter ptid and save it in
4125 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4127 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4129 (lookup_dummy_frame): Change parameter type to 'struct
4130 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4131 instead of frame_id_eq.
4132 (dummy_frame_pop): Add parameter ptid. Callers updated.
4133 Update comments. Compose dummy_frame_id and pass it to
4135 (dummy_frame_discard): Add parameter ptid.
4136 (dummy_frame_sniffer): Compose dummy_frame_id and call
4137 dummy_frame_id_eq instead of frame_id_eq.
4138 (fprint_dummy_frames): Print ptid.
4139 * dummy-frame.h: Remove comments.
4140 (dummy_frame_push): Add ptid in declaration.
4141 (dummy_frame_pop, dummy_frame_discard): Likewise.
4143 2014-06-26 Tom Tromey <tromey@redhat.com>
4145 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4146 * command.h (error_no_arg): Update.
4148 2014-06-26 Tom Tromey <tromey@redhat.com>
4150 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4151 (do_show_command): Make "arg" const.
4152 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4154 2014-06-26 Tom Tromey <tromey@redhat.com>
4156 * record-full.c (record_full_get_bookmark): Make "args" const.
4157 (record_full_goto_bookmark): Make "raw_bookmark" const.
4158 * record.c (record_goto): New function.
4159 (cmd_record_goto): Use it. Now static.
4160 * record.h (record_goto): Declare.
4161 (cmd_record_goto): Remove declaration.
4162 * target-delegates.c: Rebuild.
4163 * target.h (struct target_ops) <to_get_bookmark,
4164 to_goto_bookmark>: Make parameter const.
4166 2014-06-26 Tom Tromey <tromey@redhat.com>
4168 * defs.h (generic_load): Update.
4169 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4170 * monitor.c (monitor_load): Make "args" const.
4171 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4172 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4174 (mips_load): Make "file" const.
4175 * remote-sim.c (gdbsim_load): Make "args" const.
4176 * remote.c (remote_load): Make "name" const.
4177 * symfile.c (generic_load): Make "args" const.
4178 * target-delegates.c: Rebuild.
4179 * target.c (target_load): Make "arg" const.
4180 (debug_to_load): Make "args" const.
4181 * target.h (struct target_ops) <to_load>: Make parameter const.
4182 (target_load): Update.
4184 2014-06-26 Tom Tromey <tromey@redhat.com>
4187 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4188 (dwarf2_physname, read_partial_die)
4189 (guess_partial_die_structure_name, fixup_partial_die)
4190 (guess_full_die_structure_name, anonymous_struct_prefix)
4191 (dwarf2_name): Use per-BFD obstack.
4193 2014-06-26 Yao Qi <yao@codesourcery.com>
4195 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4196 dummyframe and this_id into inner block below.
4198 2014-06-26 Yao Qi <yao@codesourcery.com>
4200 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4201 with "signal_pass[0]" in the initialization of signal_pass.
4203 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4205 * record-btrace.c (record_btrace_generating_corefile)
4206 (record_btrace_prepare_to_generate_core)
4207 (record_btrace_done_generating_core): New.
4208 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4209 (record_btrace_store_registers, record_btrace_prepare_to_store):
4210 Forward request when generating a core file.
4211 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4212 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4213 to_done_generating_core.
4215 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4217 * target.h (target_ops) <to_prepare_to_generate_core>
4218 <to_done_generating_core>: New.
4219 (target_prepare_to_generate_core, target_done_generating_core): New.
4220 * target.c (target_prepare_to_generate_core)
4221 (target_done_generating_core): New.
4222 * target-delegates.c: Regenerate.
4223 * gcore.c: (write_gcore_file): Rename to ...
4224 (write_gcore_file_1): ...this.
4225 (write_gcore_file): Call target_prepare_to_generate_core
4226 and target_done_generating_core.
4228 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4230 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4231 * gcore.c (write_gcore_file): Free memory returned from
4232 make_corefile_notes.
4233 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4234 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4236 2014-06-24 Yao Qi <yao@codesourcery.com>
4238 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4239 (arm_linux_init_abi): Set skip_trampoline_code with
4240 gdbarch_skip_trampoline_code instead of
4241 find_solib_trampoline_target.
4243 2014-06-24 Yao Qi <yao@codesourcery.com>
4245 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4246 arm_skip_bx_reg returns non-zero.
4248 2014-06-24 Yao Qi <yao@codesourcery.com>
4250 * arm-tdep.c (arm_skip_bx_reg): New function.
4251 (arm_skip_stub): Call arm_skip_bx_reg.
4253 2014-06-23 Don Breazeal <donb@codesourcery.com>
4255 * MAINTAINERS: Add myself as write-after-approval maintainer.
4257 2014-06-23 Pedro Alves <palves@redhat.com>
4259 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4260 DR_CONTROL before setting DR0..DR3.
4261 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4262 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4263 bits of DR_CONTROL related to the debug register slot being
4264 disabled. If all slots are vacant, clear local slowdown as well,
4265 and assert DR_CONTROL is 0.
4267 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4269 * python/lib/gdb/command/xmethods.py
4270 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4271 current progspace only if the string "progspace" matches LOCUS_RE.
4273 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4275 Fix --with-system-readline with readline-6.3 patch 5.
4276 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4277 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4280 2014-06-20 Tom Tromey <tromey@redhat.com>
4282 * dwarf2read.c (dw2_get_real_path): Use correct type in
4284 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4286 2014-06-20 Gary Benson <gbenson@redhat.com>
4288 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4289 * common/glibc_thread_db.h: Likewise.
4290 * common/i386-cpuid.h: Likewise.
4291 * common/i386-gcc-cpuid.h: Likewise.
4292 * common/linux-btrace.h: Likewise.
4293 * common/linux-osdata.h: Likewise.
4294 * common/linux-procfs.h: Likewise.
4295 * common/linux-ptrace.h: Likewise.
4296 * common/mips-linux-watch.h: Likewise.
4297 * common/linux-btrace.c: Moved to nat.
4298 * common/linux-osdata.c: Likewise.
4299 * common/linux-procfs.c: Likewise.
4300 * common/linux-ptrace.c: Likewise.
4301 * common/mips-linux-watch.c: Likewise.
4302 * nat/gdb_thread_db.h: Moved from common.
4303 * nat/glibc_thread_db.h: Likewise.
4304 * nat/i386-cpuid.h: Likewise.
4305 * nat/i386-gcc-cpuid.h: Likewise.
4306 * nat/linux-btrace.c: Likewise.
4307 * nat/linux-btrace.h: Likewise.
4308 * nat/linux-osdata.c: Likewise.
4309 * nat/linux-osdata.h: Likewise.
4310 * nat/linux-procfs.c: Likewise.
4311 * nat/linux-procfs.h: Likewise.
4312 * nat/linux-ptrace.c: Likewise.
4313 * nat/linux-ptrace.h: Likewise.
4314 * nat/mips-linux-watch.c: Likewise.
4315 * nat/mips-linux-watch.h: Likewise.
4316 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4317 (object file files): Reordered.
4318 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4319 of glibc_thread_db.h.
4321 2014-06-20 Gary Benson <gbenson@redhat.com>
4323 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4324 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4325 (i386_dr_low): Likewise.
4326 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4327 (i386_dr_low_set_addr): Likewise.
4328 (i386_dr_low_get_addr): Likewise.
4329 (i386_dr_low_can_set_control): Likewise.
4330 (i386_dr_low_set_control): Likewise.
4331 (i386_dr_low_get_control): Likewise.
4332 (i386_dr_low_get_status): Likewise.
4333 (i386_get_debug_register_length): Likewise.
4334 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4335 (i386_dr_low): Likewise.
4336 * nat/i386-dregs.c (i386-low.h): Remove include.
4337 (i386-nat.h): Likewise.
4338 (nat/i386-dregs.h): New include.
4339 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4340 (i386_dr_low_set_addr): Likewise.
4341 (i386_dr_low_get_addr): Likewise.
4342 (i386_dr_low_can_set_control): Likewise.
4343 (i386_dr_low_set_control): Likewise.
4344 (i386_dr_low_get_control): Likewise.
4345 (i386_dr_low_get_status): Likewise.
4346 (i386_get_debug_register_length): Likewise.
4347 (debug_hw_points): Likewise.
4349 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4351 * Makefile.in (SFILES): Add d-exp.y.
4352 (YYFILES): Add d-exp.c.
4353 (YYOBJ): Add d-exp.o.
4354 (local-maintainer-clean): Delete d-exp.c.
4355 * d-exp.y: New file.
4356 * d-lang.h (d_parse): New declaration.
4357 (d_error): New declaration.
4358 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4359 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4360 PREC_ORDER operators.
4361 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4363 2014-06-19 Yao Qi <yao@codesourcery.com>
4365 * gdbthread.h (any_running): Remove the declaration.
4366 * thread.c (any_running): Remove.
4368 2014-06-19 Yao Qi <yao@codesourcery.com>
4370 * gdbthread.h (struct thread_info) <state>: Change its type to
4371 'enum thread_state'. Update comments.
4373 2014-06-19 Pedro Alves <palves@redhat.com>
4375 * gdbthread.h (ALL_THREADS): Delete.
4376 (ALL_NON_EXITED_THREADS): New macro.
4377 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4378 instead of ALL_THREADS.
4379 * infrun.c (find_thread_needs_step_over)
4380 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4381 instead of ALL_THREADS.
4382 * record-btrace.c (record_btrace_open)
4383 (record_btrace_stop_recording, record_btrace_close)
4384 (record_btrace_is_replaying, record_btrace_resume)
4385 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4386 * remote.c (append_pending_thread_resumptions): Likewise.
4387 * thread.c (thread_apply_all_command): Likewise.
4389 2014-06-19 Gary Benson <gbenson@redhat.com>
4391 * i386-nat.c (i386_stopped_by_watchpoint):
4392 Use i386_dr_stopped_by_watchpoint.
4393 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4394 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4396 2014-06-19 Gary Benson <gbenson@redhat.com>
4398 * nat/i386-dregs.c: New file.
4399 * Makefile.in (i386-dregs.o): New rule.
4400 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4401 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4402 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4403 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4404 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4405 * config/i386/go32.mh (NATDEPFILES): Likewise.
4406 * config/i386/linux.mh (NATDEPFILES): Likewise.
4407 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4408 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4409 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4410 * i386-nat.h (debug_hw_points): New declaration.
4411 * i386-nat.c (breakpoint.h): Remove include.
4412 (command.h): Likewise.
4413 (target.h): Likewise.
4414 (gdb_assert.h): Likewise.
4415 (debug_hw_points): Made nonstatic.
4416 (debug_printf): Now in i386-dregs.c.
4417 (TARGET_HAS_DR_LEN_8): Likewise.
4418 (DR_CONTROL_SHIFT): Likewise.
4419 (DR_CONTROL_SIZE): Likewise.
4420 (DR_RW_EXECUTE): Likewise.
4421 (DR_RW_WRITE): Likewise.
4422 (DR_RW_READ): Likewise.
4423 (DR_RW_IORW): Likewise.
4424 (DR_LEN_1): Likewise.
4425 (DR_LEN_2): Likewise.
4426 (DR_LEN_4): Likewise.
4427 (DR_LEN_8): Likewise.
4428 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4429 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4430 (DR_ENABLE_SIZE): Likewise.
4431 (DR_LOCAL_SLOWDOWN): Likewise.
4432 (DR_GLOBAL_SLOWDOWN): Likewise.
4433 (DR_CONTROL_RESERVED): Likewise.
4434 (I386_DR_CONTROL_MASK): Likewise.
4435 (I386_DR_VACANT): Likewise.
4436 (I386_DR_LOCAL_ENABLE): Likewise.
4437 (I386_DR_GLOBAL_ENABLE): Likewise.
4438 (I386_DR_DISABLE): Likewise.
4439 (I386_DR_SET_RW_LEN): Likewise.
4440 (I386_DR_GET_RW_LEN): Likewise.
4441 (I386_DR_WATCH_HIT): Likewise.
4442 (i386_wp_op_t): Likewise.
4443 (i386_show_dr): Likewise.
4444 (i386_length_and_rw_bits): Likewise.
4445 (i386_insert_aligned_watchpoint): Likewise.
4446 (i386_remove_aligned_watchpoint): Likewise.
4447 (i386_handle_nonaligned_watchpoint): Likewise.
4448 (i386_update_inferior_debug_regs): Likewise.
4449 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4450 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4451 (i386_region_ok_for_watchpoint):
4452 Use i386_dr_region_ok_for_watchpoint.
4453 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4455 2014-06-19 Gary Benson <gbenson@redhat.com>
4457 * i386-nat.c (i386_insert_hw_breakpoint): Use
4458 i386_insert_watchpoint.
4459 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4461 2014-06-19 Gary Benson <gbenson@redhat.com>
4463 * i386-nat.c (i386_dr_show): Renamed to
4464 i386_show_dr and made static. All uses updated.
4465 (i386_dr_length_and_rw_bits): Renamed to
4466 i386_length_and_rw_bits and made static.
4468 (i386_dr_insert_aligned_watchpoint): Renamed to
4469 i386_insert_aligned_watchpoint and made static.
4471 (i386_dr_remove_aligned_watchpoint): Renamed to
4472 i386_remove_aligned_watchpoint and made static.
4474 (i386_dr_update_inferior_debug_regs): Renamed to
4475 i386_update_inferior_debug_regs and made static.
4477 * nat/i386-dregs.h (i386_dr_show): Removed.
4478 (i386_dr_length_and_rw_bits): Likewise.
4479 (i386_dr_insert_aligned_watchpoint): Likewise.
4480 (i386_dr_remove_aligned_watchpoint): Likewise.
4481 (i386_dr_update_inferior_debug_regs): Likewise.
4483 2014-06-19 Gary Benson <gbenson@redhat.com>
4485 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4486 * configure: Regenerate.
4487 * config.in: Likewise.
4488 * main.c (signal.h): New include.
4489 (setup_alternate_signal_stack): New function.
4490 (captured_main): Call the above.
4491 * cp-support.c (signal.h): New include.
4492 (catch_demangler_crashes): New flag.
4493 (SIGJMP_BUF): New define.
4494 (SIGSETJMP): Likewise.
4495 (SIGLONGJMP): Likewise.
4496 (gdb_demangle_jmp_buf): New static global.
4497 (gdb_demangle_attempt_core_dump): Likewise.
4498 (gdb_demangle_signal_handler): New function.
4499 (gdb_demangle): If catch_demangler_crashes is set, install the
4500 above signal handler before calling bfd_demangle, and restore
4501 the original signal handler afterwards. Display the offending
4502 symbol and call demangler_warning the first time a segmentation
4504 (_initialize_cp_support): New maint set/show command.
4506 2014-06-19 Gary Benson <gbenson@redhat.com>
4508 * utils.h (resource_limit_kind): New enum.
4509 (can_dump_core): New declaration.
4510 (warn_cant_dump_core): Likewise.
4511 (dump_core): Likewise.
4512 * utils.c (dump_core): Made nonstatic. Added new
4513 parameter "limit_kind".
4514 (can_dump_core): Made nonstatic. Moved printing code to...
4515 (warn_cant_dump_core): New function.
4516 (can_dump_core_warn): Likewise.
4517 (internal_vproblem): Replace calls to can_dump_core with
4518 calls to can_dump_core_warn. Supply new argument to each.
4520 2014-06-19 Gary Benson <gbenson@redhat.com>
4522 * utils.h (demangler_vwarning): New declaration.
4523 (demangler_warning): Likewise.
4524 * utils.c (struct internal_problem)
4525 <user_settable_should_quit>: New field.
4526 <user_settable_should_dump_core>: Likewise
4527 (internal_error_problem): Add values for above new fields.
4528 (internal_warning_problem): Likewise.
4529 (demangler_warning_problem): New static global.
4530 (demangler_vwarning): New function.
4531 (demangler_warning): Likewise.
4532 (add_internal_problem_command): Selectively add commands.
4533 (_initialize_utils): New internal problem command.
4534 * maint.c (maintenance_demangler_warning): New function.
4535 (_initialize_maint_cmds): New command.
4537 2014-06-18 Tom Tromey <tromey@redhat.com>
4539 * f-valprint.c (info_common_command_for_block): Update.
4540 * symtab.h (struct general_symbol_info) <common_block>: Now
4543 2014-06-18 Tom Tromey <tromey@redhat.com>
4545 * symtab.h (struct symtab) <blockvector>: Now const.
4546 * ada-lang.c (ada_add_global_exceptions): Update.
4547 * buildsym.c (augment_type_symtab): Update.
4548 * dwarf2read.c (dw2_lookup_symbol): Update.
4549 * jit.c (finalize_symtab): Update.
4550 * jv-lang.c (add_class_symtab_symbol): Update.
4551 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4553 * objfiles.c (objfile_relocate1): Update.
4554 * psymtab.c (lookup_symbol_aux_psymtabs)
4555 (maintenance_check_psymtabs): Update.
4556 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4558 * spu-tdep.c (spu_catch_start): Update.
4559 * symmisc.c (dump_symtab_1): Update.
4560 * symtab.c (lookup_global_symbol_from_objfile)
4561 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4562 (basic_lookup_transparent_type_quick)
4563 (basic_lookup_transparent_type, find_pc_sect_symtab)
4564 (find_pc_sect_line, search_symbols): Update.
4565 * block.c (find_block_in_blockvector): Make "bl" const.
4566 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4568 (blockvector_contains_pc): Make "bv" const.
4569 (block_for_pc_sect): Update.
4570 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4571 (blockvector_contains_pc): Update.
4572 * breakpoint.c (resolve_sal_pc): Update.
4573 * inline-frame.c (block_starting_point_at): Update.
4575 2014-06-18 Tom Tromey <tromey@redhat.com>
4577 * completer.c (complete_line): Make "line_buffer" const.
4578 * completer.h (complete_line): Update.
4580 2014-06-18 Tom Tromey <tromey@redhat.com>
4582 * symtab.c (add_macro_name): Remove unneeded cast.
4584 2014-06-18 Tom Tromey <tromey@redhat.com>
4586 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4587 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4589 2014-06-18 Tom Tromey <tromey@redhat.com>
4591 * probe.c (info_probes_for_ops): Make "arg" const.
4592 * probe.h (info_probes_for_ops): Update.
4594 2014-06-18 Tom Tromey <tromey@redhat.com>
4596 * varobj.c (varobj_create): Update.
4597 * valops.c (value_of_this): Update.
4598 * tracepoint.c (add_local_symbols, scope_info): Update.
4599 * symtab.h (struct general_symbol_info) <block>: Now const.
4600 * symtab.c (skip_prologue_sal)
4601 (default_make_symbol_completion_list_break_on)
4602 (skip_prologue_using_sal): Update.
4603 * stack.h (iterate_over_block_locals)
4604 (iterate_over_block_local_vars): Update.
4605 * stack.c (print_frame_args): Update.
4606 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4608 (get_selected_block): Make return type const.
4609 * python/py-frame.c (frapy_block): Update.
4610 * python/py-block.c (gdbpy_block_for_pc): Update.
4611 * p-exp.y (%union) <bval>: Now const.
4612 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4613 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4614 * m2-exp.y (%union) <bval>: Now const.
4615 * linespec.c (get_current_search_block): Make return type const.
4616 (create_sals_line_offset, find_label_symbols): Update.
4617 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4619 (block_starting_point_at): Make "block" const.
4620 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4621 (check_exception_resume): Update.
4622 * guile/scm-frame.c (gdbscm_frame_block): Update.
4623 * guile/scm-block.c (gdbscm_lookup_block): Update.
4624 * frame.h (get_frame_block): Update.
4625 (get_selected_block): Make return type const.
4626 * frame.c (frame_id_inner): Update.
4627 * f-valprint.c (info_common_command_for_block)
4628 (info_common_command): Update.
4629 * dwarf2loc.c (dwarf2_find_location_expression)
4630 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4631 (locexpr_describe_location_piece): Update.
4632 * c-exp.y (%union) <bval>: Now const.
4633 * breakpoint.c (resolve_sal_pc): Update.
4634 * blockframe.c (get_frame_block):Make return type const.
4635 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4636 (block_innermost_frame): Update.
4637 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4638 (block_for_pc, block_for_pc_sect): Update.
4639 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4641 (block_for_pc_sect, block_for_pc): Make return type const.
4642 * ax-gdb.c (gen_expr): Update.
4643 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4644 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4645 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4646 (ada_read_var_value): Update.
4647 * ada-exp.y (struct name_info) <block>: Now const.
4649 (block_lookup): Constify.
4651 2014-06-18 Gary Benson <gbenson@redhat.com>
4653 * nat/i386-dregs.h: New file.
4654 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4655 * i386-nat.h (i386-dregs.h): New include.
4656 (DR_FIRSTADDR): Now in i386-dregs.h.
4657 (DR_LASTADDR): Likewise.
4658 (DR_NADDR): Likewise.
4659 (DR_STATUS): Likewise.
4660 (DR_CONTROL): Likewise.
4661 (i386_debug_reg_state): Likewise.
4662 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4664 2014-06-18 Don Breazeal <donb@codesourcery.com>
4666 * breakpoint.c (set_longjmp_breakpoint): Call
4667 momentary_breakpoint_from_master with additional argument.
4668 (set_longjmp_breakpoint_for_call_dummy): Call
4669 momentary_breakpoint_from_master with additional argument.
4670 (set_std_terminate_breakpoint): Call
4671 momentary_breakpoint_from_master with additional argument.
4672 (momentary_breakpoint_from_master): Add argument to function
4673 definition and use it to initialize structure member flag.
4674 (clone_momentary_breakpoint): Call
4675 momentary_breakpoint_from_master with additional argument.
4676 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4677 member flags set in momentary_breakpoint_from_master.
4679 2014-06-18 Gary Benson <gbenson@redhat.com>
4681 * i386-nat.c (i386_show_dr): Renamed to
4682 i386_dr_show and made nonstatic. All uses updated.
4683 (i386_length_and_rw_bits): Renamed to
4684 i386_dr_length_and_rw_bits and made nonstatic.
4686 (i386_insert_aligned_watchpoint): Renamed to
4687 i386_dr_insert_aligned_watchpoint and made nonstatic.
4689 (i386_remove_aligned_watchpoint): Renamed to
4690 i386_dr_remove_aligned_watchpoint and made nonstatic.
4692 (i386_update_inferior_debug_regs): Renamed to
4693 i386_dr_update_inferior_debug_regs and made nonstatic.
4696 2014-06-18 Gary Benson <gbenson@redhat.com>
4698 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4699 (i386_dr_low_can_set_control): Likewise.
4700 (i386_dr_low_set_addr): Likewise.
4701 (i386_dr_low_set_control): Likewise.
4702 (i386_dr_low_get_addr): Likewise.
4703 (i386_dr_low_get_status): Likewise.
4704 (i386_dr_low_get_control): Likewise.
4705 (i386_insert_aligned_watchpoint): Use new macros.
4706 (i386_update_inferior_debug_regs): Likewise.
4707 (i386_stopped_data_address): Likewise.
4709 2014-06-18 Gary Benson <gbenson@redhat.com>
4711 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4712 New parameter. All uses updated.
4714 2014-06-18 Gary Benson <gbenson@redhat.com>
4716 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4719 2014-06-18 Gary Benson <gbenson@redhat.com>
4721 * i386-nat.c (debug_printf): New macro.
4722 (i386_get_debug_register_length): Likewise.
4723 (TARGET_HAS_DR_LEN_8): Use above macro.
4724 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4725 and printf_unfiltered. Use phex to format values.
4727 2014-06-18 Gary Benson <gbenson@redhat.com>
4729 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4732 2014-06-18 Gary Benson <gbenson@redhat.com>
4734 * i386-nat.c: Comment changes.
4736 2014-06-18 Gary Benson <gbenson@redhat.com>
4738 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4740 2014-06-18 Gary Benson <gbenson@redhat.com>
4742 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4743 (i386_insert_aligned_watchpoint): Likewise.
4744 (i386_remove_aligned_watchpoint): Likewise.
4745 (i386_handle_nonaligned_watchpoint): Likewise.
4747 2014-06-18 Gary Benson <gbenson@redhat.com>
4749 * i386-nat.c: Whitespace changes.
4751 2014-06-17 Samuel Bronson <naesten@gmail.com>
4753 * MAINTAINERS: Update Roland McGrath's email address.
4754 Thanks to Sergio Durigan Junior for pointing out that he left
4755 Red Hat a while ago, and giving me a current address.
4757 2014-06-17 Tom Tromey <tromey@redhat.com>
4759 * utils.h (savestring): Remove declaration.
4761 2014-06-17 Tom Tromey <tromey@redhat.com>
4763 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4765 2014-06-16 Keith Seitz <keiths@redhat.com>
4768 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4769 to update the varobj if inferior_ptid is null_ptid.
4771 2014-06-16 Tom Tromey <tromey@redhat.com>
4773 * target.h (struct target_ops) <to_info_proc>: Make parameter
4775 (target_info_proc): Update.
4776 * target.c (target_info_proc): Make "args" const.
4777 * procfs.c (procfs_info_proc): Update.
4778 * linux-tdep.c (linux_info_proc): Update.
4779 (linux_core_info_proc_mappings): Make "args" const.
4780 (linux_core_info_proc): Update.
4781 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4782 * gdbarch.c: Rebuild.
4783 * gdbarch.h: Rebuild.
4784 * corelow.c (core_info_proc): Update.
4786 2014-06-16 Tom Tromey <tromey@redhat.com>
4788 * target.h (struct target_ops) <to_disconnect>: Make parameter
4790 (target_disconnect): Update.
4791 * target.c (target_disconnect): Make "args" const.
4792 * target-delegates.c: Rebuild.
4793 * remote.c (remote_disconnect): Update.
4794 * record.h (record_disconnect): Update.
4795 * record.c (record_disconnect): Update.
4796 * inf-child.c (inf_child_disconnect): Update.
4798 2014-06-16 Tom Tromey <tromey@redhat.com>
4800 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4801 * target.c (debug_to_rcmd, default_rcmd): Update.
4802 * target-delegates.c: Rebuild.
4803 * remote.c (remote_rcmd): Update.
4804 * monitor.c (monitor_rcmd): Update.
4806 2014-06-16 Pedro Alves <palves@redhat.com>
4808 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4809 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4810 have OBJF_SHARED set.
4811 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4812 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4813 instead of OBJF_USERLOADED.
4814 * objfiles.h (OBJF_SHARED): Update comment.
4815 (userloaded_objfile_contains_address_p): Rename to ...
4816 (shared_objfile_contains_address_p): ... this, and update
4818 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4820 (remove_symbol_file_command): Skip objfiles that don't have
4823 2014-06-16 Tom Tromey <tromey@redhat.com>
4825 * minsyms.h (prim_record_minimal_symbol)
4826 (prim_record_minimal_symbol_and_info): Update comments.
4828 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4830 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4831 or --without-guile, according to how GDB was built.
4833 2014-06-13 Tom Tromey <tromey@redhat.com>
4835 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4837 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4839 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4841 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4842 help_list.Pass all_commands, not -1, to help_list.
4843 * cli/cli-dump.c (dump_command, append_command)
4844 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4845 (binary_dump_command, binary_append_command): Pass all_commands,
4846 not -1, to help_list.
4847 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4849 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4851 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4853 * top.c (set_history): Pass all_commands, not -1, to help_list.
4854 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4855 all_commands, not -1, to help_list.
4856 * symfile.c (overlay_command): Pass all_commands, not -1, to
4858 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4860 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4862 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4864 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4865 not -1, to help_list.
4866 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4867 not -1, to help_list.
4868 * maint.c (maintenance_command, maintenance_info_command)
4869 (maintenance_print_command, maintenance_set_cmd): Pass
4870 all_commands, not -1, to help_list.
4871 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4873 * language.c (set_check): Pass all_commands, not -1, to help_list.
4874 * infcmd.c (unset_command): Pass all_commands, not -1, to
4876 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4878 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4880 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4882 * breakpoint.c (save_command): Pass all_commands, not -1, to
4884 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4885 all_commands, not -1, to help_list.
4887 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4889 * regcache.c (struct register_to_invalidate): New structure.
4890 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4892 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4894 2014-06-12 Yao Qi <yao@codesourcery.com>
4896 * varobj.c (varobj_get_num_children): Call
4897 varobj_is_dynamic_p.
4898 (varobj_list_children): Likewise.
4899 (varobj_update): Likewise. Update comments.
4901 2014-06-12 Yao Qi <yao@codesourcery.com>
4903 * varobj.c (varobj_pretty_printed_p): Rename to ...
4904 (varobj_is_dynamic_p): ... this. New function.
4905 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4906 (varobj_is_dynamic_p): Declare.
4907 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4908 (mi_print_value_p, varobj_update_one): Likewise.
4910 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4911 Yao Qi <yao@codesourcery.com>
4913 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4914 (varobj_get_iterator): Wrap up code for pretty-printer by
4915 "#if HAVE_PYTHON" and "#endif".
4916 (update_dynamic_varobj_children): Likewise.
4918 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4919 Yao Qi <yao@codesourcery.com>
4921 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4922 gdb_python_initialized is false. Move some code from varobj.c.
4923 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4924 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4925 (struct varobj_item): Moved to varobj-iter.h".
4926 (varobj_clear_saved_item): New function.
4927 (update_dynamic_varobj_children): Move python-related code to
4929 (free_variable): Call varobj_clear_saved_item and
4932 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4933 Yao Qi <yao@codesourcery.com>
4935 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4936 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4937 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4938 (py-varobj.o): New rule.
4939 * python/py-varobj.c: New file.
4940 * python/python-internal.h (py_varobj_get_iterator): Declare.
4941 * varobj-iter.h: New file.
4942 * varobj.c: Include "varobj-iter.h"
4943 (struct varobj) <child_iter>: Change its type from "PyObject *"
4944 to "struct varobj_iter *".
4945 <saved_item>: Likewise.
4946 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4947 [HAVE_PYTHON] (varobj_get_iterator): New function.
4948 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4949 python-specific code to python/py-varobj.c.
4950 (install_visualizer): Call varobj_iter_delete instead of
4952 * varobj.h (varobj_ensure_python_env): Declare.
4954 2014-06-12 Yao Qi <yao@codesourcery.com>
4956 * varobj.c (struct varobj_item): New structure.
4957 (create_child_with_value): Update declaration.
4958 (varobj_add_child): Replace arguments 'name' and 'value' with
4959 'item'. All callers updated.
4960 (install_dynamic_child): Likewise.
4961 (update_dynamic_varobj_children): Likewise.
4962 (varobj_add_child): Likewise.
4963 (create_child_with_value): Likewise.
4965 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4967 * NEWS: Create a new section for the next release branch.
4968 Rename the section of the current branch, now that it has
4971 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4973 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4974 * version.in: Bump version to 7.8.50.DATE-cvs.
4976 2014-06-11 Pedro Alves <palves@redhat.com>
4979 * ser-mingw.c (net_windows_socket_check_pending): New function.
4980 (net_windows_select_thread): Ignore spurious wakeups. Use
4981 net_windows_socket_check_pending.
4982 (net_windows_wait_handle): Check for pending events with
4983 ioctlsocket, through net_windows_socket_check_pending, instead of
4984 checking the socket's event.
4986 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4988 * python/python-internal.h (gdb_PyObject_GetAttrString)
4989 (gdb_PyObject_HasAttrString): New inline function definitions.
4990 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4991 char * of the second argument to PyObject_GetAttrString.
4993 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4995 * serial.c (serial_write): Fix index of character to be printed
4996 in call to serial_logchar when serial debug traces are enabled.
4998 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5000 * gdbtypes (resolve_dynamic_range): Add function description.
5002 2014-06-09 Pedro Alves <palves@redhat.com>
5004 * linux-nat.c (linux_child_follow_fork): Initialize status with
5005 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5006 inner block. Only pass the signal to PTRACE_DETACH if in pass
5009 2014-06-09 Gary Benson <gbenson@redhat.com>
5011 * common/signals.c (gdb_signal_from_host): Reorder to separate
5012 the always-available ANSI-standard signals from the signals that
5014 (do_gdb_signal_to_host): Likewise.
5015 * proc-events.c (signal_table): Likewise.
5017 2014-06-08 Hui Zhu <hui@codesourcery.com>
5019 * common/linux-ptrace.c (linux_disable_event_reporting): New
5021 * common/linux-ptrace.h (linux_disable_event_reporting): New
5023 * linux-nat.c (linux_child_follow_fork): Do a single step before
5026 2014-06-07 Keith Seitz <keiths@redhat.com>
5030 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5031 from symbol_matches_domain in symtab.c. All local callers
5032 of symbol_matches_domain updated.
5033 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5034 search STRUCT_DOMAIN.
5035 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5036 independently. standard_lookup will do that automatically.
5037 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5038 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5039 (cp_lookup_symbol_in_namespace): Likewise.
5040 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5041 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5042 may return a STRUCT_DOMAIN match.
5043 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5044 * cp-support.c: Include language.h.
5045 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5047 * psymtab.c (match_partial_symbol): Compare the requested
5048 domain with the symbol's domain directly.
5049 (lookup_partial_symbol): Likewise.
5050 * symtab.c (lookup_symbol_in_language): Explain when/why
5051 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5052 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5053 appropriate languages.
5054 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5055 and moved to ada-lang.c
5056 (lookup_block_symbol): Explain that this function only returns
5057 symbol matching the requested DOMAIN.
5058 Compare the requested domain with the symbol's domain directly.
5059 (iterate_over_symbols): Compare the requested domain with the
5060 symbol's domain directly.
5061 * symtab.h (symbol_matches_domain): Remove.
5063 2014-06-06 Doug Evans <xdje42@gmail.com>
5065 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5066 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5067 (gdbscm_guile_version_is_at_least): Declare.
5068 (gdbscm_scm_string_to_int): Declare.
5069 * guile/guile.c (gdbscm_guile_major_version): New global.
5070 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5071 (guile_datadir): New static global.
5072 (gdbscm_guile_data_directory): New function.
5073 (initialize_scheme_side): Update.
5074 (misc_guile_functions): Add guile-data-directory.
5075 (initialize_gdb_module): Fetch guile version number.
5076 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5077 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5078 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5079 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5081 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5082 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5083 * guile/scm-value.c (gdbscm_value_to_string): Only call
5084 scm_port_conversion_strategy if Guile version >= 2.0.6.
5086 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5088 * main.c (print_gdb_help): Add -q and --silent.
5090 2014-06-06 Gary Benson <gbenson@redhat.com>
5092 * common/signals.c: Remove preprocessor conditionals for
5093 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5094 SIGSEGV and SIGTERM.
5095 * proc-events.c: Likewise.
5097 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5099 * symfile.c (symfile_free_objfile): Remove restriction to
5101 * symfile-mem.c (symbol_file_add_from_memory): Call
5102 add_target_sections_of_objfile.
5104 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5106 * guile/scm-value.c (gdbscm_history_append_x): Use
5107 'vlscm_get_value_smob_arg_unsafe' instead of
5108 'vlscm_scm_to_value'.
5110 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5113 * utils.c (printchar): Don't escape at all if quoter is NUL.
5114 Update function documentation to clarify effect of parameter
5116 * remote.c (escape_buffer): Pass '\\' as the quoter to
5117 fputstrn_unfiltered.
5118 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5119 generate the output.
5120 (mi_solib_unloaded): Same.
5122 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5124 * development.sh: Delete.
5125 * Makefile.in (config.status): Adjust dependency on development.sh.
5126 * configure.ac: Adjust development.sh source call.
5127 * configure: Regenerate.
5129 2014-06-04 Doug Evans <xdje42@gmail.com>
5131 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5132 is_scheme_bkpt, spec.
5133 (bpscm_make_breakpoint_smob): Initialize new members.
5134 (gdbscm_create_breakpoint_x): Split into two ...
5135 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5136 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5137 (scheme_function breakpoint_functions): Update.
5138 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5139 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5140 register-breakpoint!.
5142 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5145 * mem-break.c (z_type_supported): Return zero if
5146 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5148 2014-06-04 Tom Tromey <tromey@redhat.com>
5150 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5151 value_from_contents_and_address_unresolved.
5152 (ada_template_to_fixed_record_type_1): Likewise.
5153 (ada_which_variant_applies): Likewise.
5154 * value.h (value_from_contents_and_address_unresolved): Declare.
5155 * value.c (value_from_contents_and_address_unresolved): New
5157 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5158 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5159 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5161 2014-06-04 Tom Tromey <tromey@redhat.com>
5163 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5165 2014-06-04 Tom Tromey <tromey@redhat.com>
5167 * procfs.c (procfs_attach): Make "args" const.
5168 * windows-nat.c (windows_attach): Make "args" const.
5169 * nto-procfs.c (procfs_attach): Make "args" const.
5170 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5171 * go32-nat.c (go32_attach): Make "args" const.
5172 * gnu-nat.c (gnu_attach): Make "args" const.
5173 * darwin-nat.c (darwin_attach): Make "args" const.
5174 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5175 * linux-nat.c (linux_nat_attach): Make "args" const.
5176 * remote.c (extended_remote_attach_1, extended_remote_attach):
5178 * target.h (struct target_ops) <to_attach>: Make "args" const.
5179 (find_default_attach): Likewise.
5180 * utils.c (parse_pid_to_attach): Make "args" const.
5181 * utils.h (parse_pid_to_attach): Update.
5183 2014-06-04 Tom Tromey <tromey@redhat.com>
5185 * target-delegates.c: Rebuild.
5186 * target.c (default_thread_address_space): New function.
5187 (target_thread_address_space): Simplify.
5188 * target.h (struct target_ops) <to_thread_address_space>: Add
5189 TARGET_DEFAULT_FUNC.
5191 2014-06-04 Doug Evans <xdje42@gmail.com>
5193 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5195 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5197 * record-btrace.c: Include event-loop.h and inf-loop.h.
5198 (record_btrace_resume_exec_dir)
5199 (record_btrace_async_inferior_event_handler)
5200 (record_btrace_handle_async_inferior_event): New.
5201 (record_btrace_open): Create async event handler.
5202 (record_btrace_close): Delete async event handler.
5203 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5204 Mark async event handler.
5205 (record_btrace_execution_direction): New.
5206 (init_record_btrace_ops): Initialize to_execution_direction.
5208 2014-06-03 Doug Evans <xdje42@gmail.com>
5210 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5211 (gdbscm_make_parameter): Ditto.
5213 2014-06-03 Doug Evans <dje@google.com>
5215 * exec.c (exec_close_1): Call clear_section_table instead of
5216 resize_section_table.
5217 (clear_section_table): New function.
5218 (resize_section_table): Make static. Rename arg num_added to
5220 * exec.h (clear_section_table): Declare.
5221 (resize_section_table): Delete.
5222 * progspace.c (release_program_space): Call clear_section_table
5223 instead of resize_section_table.
5225 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5227 * NEWS (Python Scripting): Add entry about the new xmethods
5230 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5232 * python/py-xmethods.c: New file.
5233 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5234 (objfpy_dealloc): XDECREF on the new xmethods field.
5235 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5237 (objfpy_get_xmethods): New function.
5238 (objfile_getset): New entry 'xmethods'.
5239 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5240 (pspy_dealloc): XDECREF on the new xmethods field.
5241 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5243 (pspy_get_xmethods): New function.
5244 (pspace_getset): New entry 'xmethods'.
5245 * python/python-internal.h: Add declarations for new functions.
5246 * python/python.c (_initialize_python): Invoke
5247 gdbpy_initialize_xmethods.
5248 * python/lib/gdb/__init__.py (xmethods): New
5250 * python/lib/gdb/xmethod.py: New file.
5251 * python/lib/gdb/command/xmethods.py: New file.
5253 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5255 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5256 best match method returned by find_overload_match is an xmethod.
5257 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5258 the best matching operator returned by find_overload_match is an
5260 * valops.c: #include "extension.h".
5261 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5262 Return void. The list of matching source methods is returned in
5263 "fn_list" and a vector of matching debug method workers is
5264 returned in "xm_worker_vec". Update all callers.
5265 (value_find_oload_method_list): Likewise.
5266 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5267 non-NULL, then the index of the best matching method in this
5268 vector is returned. Update all callers.
5269 (find_overload_match): Include xmethods while performing overload
5272 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5274 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5275 * extension-priv.h (struct extension_language_ops): Add the
5277 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5278 get_matching_xmethod_workers, get_xmethod_argtypes,
5279 invoke_xmethod, free_xmethod_worker,
5280 free_xmethod_worker_vec): New functions.
5281 * extension.h: #include "common/vec.h".
5282 New function declarations.
5283 (struct xmethod_worker): New struct.
5284 (VEC (xmethod_worker_ptr)): New vector type.
5285 (xmethod_worker_ptr): New typedef.
5286 (xmethod_worker_vec): Likewise.
5287 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5289 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5290 (struct builtin_type): New field "xmethod".
5291 * valarith.c (value_ptradd): Assert that the value argument is not
5293 * valops.c (value_must_coerce_to_target): Return 0 for
5294 lval_xcallable values.
5295 * value.c (struct value): New field XM_WORKER in the field
5297 (value_address, value_raw_address): Return 0 for lval_xcallable
5299 (set_value_address): Assert that the value is not an
5301 (value_free): Free the associated xmethod worker when freeing
5302 lval_xcallable values.
5303 (set_value_component_location): Assert that the WHOLE value is not
5305 (value_of_xmethod, call_xmethod): New functions.
5306 * value.h: Declare "struct xmethod_worker".
5307 Declare new functions value_of_xmethod, call_xmethod.
5309 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5310 Pedro Alves <palves@redhat.com>
5312 PR breakpoints/17000
5313 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5314 New function, extracted from software_breakpoint_inserted_here_p.
5315 (software_breakpoint_inserted_here_p): Replace factored out code
5316 by call to find_non_raw_software_breakpoint_inserted_here.
5317 (bp_target_info_copy_insertion_state): New function.
5318 (bkpt_insert_location): Handle the case of a single-step
5319 breakpoint already inserted at the same address.
5320 (bkpt_remove_location): Handle the case of a single-step
5321 breakpoint still inserted at the same address.
5322 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5323 breakpoint already inserted at the same address.
5324 (deprecated_remove_raw_breakpoint): Handle the case of a
5325 non-raw breakpoint still inserted at the same address.
5326 (find_single_step_breakpoint): New function, extracted from
5327 single_step_breakpoint_inserted_here_p.
5328 (find_single_step_breakpoint): New function,
5329 factored out from single_step_breakpoint_inserted_here_p.
5330 (single_step_breakpoint_inserted_here_p): Reimplement.
5332 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5334 Pushed by Joel Brobecker <brobecker@adacore.com>
5335 * source.c (show_substitute_path_command): Fix display of matching
5338 2014-06-03 Gary Benson <gbenson@redhat.com>
5340 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5342 2014-06-02 Doug Evans <xdje42@gmail.com>
5344 Add parameter support for Guile.
5345 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5346 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5347 (scm-param.o): New rule.
5348 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5349 (gdbscm_misc_error): Declare.
5350 (gdbscm_canonicalize_command_name): Declare.
5351 (gdbscm_scm_to_host_string): Declare.
5352 (gdbscm_scm_from_host_string): Declare.
5353 (gdbscm_initialize_parameters): Declare.
5354 * guile/guile.c (initialize_gdb_module): Call
5355 gdbscm_initialize_parameters.
5356 * guile/lib/gdb.scm: Export parameter symbols.
5357 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5358 cmdscm_canonicalize_name and made public. All callers updated.
5359 * guile/scm-exception.c (gdbscm_misc_error): New function.
5360 * guile/scm-param.c: New file.
5361 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5362 (gdbscm_scm_to_host_string): New function.
5363 (gdbscm_scm_from_host_string): New function.
5364 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5366 2014-06-02 Doug Evans <xdje42@gmail.com>
5368 Add command support for Guile.
5369 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5370 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5371 (scm-cmd.o): New rule.
5372 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5373 (gdbscm_user_error_p): Declare.
5374 (gdbscm_parse_command_name): Declare.
5375 (gdbscm_valid_command_class_p): Declare.
5376 (gdbscm_initialize_commands): Declare.
5377 * guile/guile.c (initialize_gdb_module): Call
5378 gdbscm_initialize_commands.
5379 * guile/lib/gdb.scm: Export command symbols.
5380 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5381 (throw-user-error): New function.
5382 * guile/scm-cmd.c: New file.
5383 * guile/scm-exception.c (user_error_symbol): New static global.
5384 (gdbscm_user_error_p): New function.
5385 (gdbscm_initialize_exceptions): Set user_error_symbol.
5386 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5388 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5390 * top.c (command_loop): Handle comments here...
5391 (command_line_input): ... not here.
5393 2014-06-02 Doug Evans <xdje42@gmail.com>
5395 Add progspace support for Guile.
5396 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5397 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5398 (scm-progspace.o): New rule.
5399 * guile/guile-internal.h (pspace_smob): New typedef.
5400 (psscm_pspace_smob_pretty_printers): Declare.
5401 (psscm_pspace_smob_from_pspace): Declare.
5402 (psscm_scm_from_pspace): Declare.
5403 * guile/guile.c (initialize_gdb_module): Call
5404 gdbscm_initialize_pspaces.
5405 * guile/lib/gdb.scm: Export progspace symbols.
5406 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5408 (append-pretty-printer!): Ditto.
5409 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5411 * guile/scm-progspace.c: New file.
5413 2014-06-03 Alan Modra <amodra@gmail.com>
5415 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5416 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5418 2014-06-02 Doug Evans <dje@google.com>
5420 Add support for skeletonless type units.
5421 * dwarf2read.c (struct dwarf2_per_objfile): New member
5422 n_allocated_type_units.
5423 (struct dwarf2_per_objfile) <tu_stats>: New member
5424 nr_all_type_units_reallocs.
5425 (create_signatured_type_table_from_index): Initialize
5426 n_allocated_type_units
5427 (create_all_type_units): Ditto.
5428 (add_type_unit): Move up in file. New arg slot.
5429 All callers updated. Increase space for all_type_units more
5431 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5432 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5433 (lookup_dwp_signatured_type): Ditto.
5434 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5435 All callers updated.
5436 (build_type_psymtabs_1): Leave type_unit_groups as
5437 NULL if no TUs present.
5438 (print_tu_stats): New function.
5439 (process_skeletonless_type_unit): New function.
5440 (process_dwo_file_for_skeletonless_type_units): New
5442 (process_skeletonless_type_units): New function.
5443 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5444 Call print tu_stats if debugging enabled.
5446 2014-06-02 Pedro Alves <palves@redhat.com>
5448 * breakpoint.c (build_target_command_list): Don't build a command
5449 list if we have any duplicate location that isn't a dprintf.
5451 2014-06-02 Pedro Alves <palves@redhat.com>
5453 * breakpoint.c (dprintf_breakpoint_hit): New function.
5454 (initialize_breakpoint_ops): Install it as dprintf's
5455 breakpoint_hit method.
5457 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5459 * source.c (substitute_path_rule_matches): Simplify using
5460 filename_ncmp instead of FILENAME_CMP.
5462 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5464 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5466 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5468 * configure.ac: When Guile is available, check for the
5469 availability of 'scm_new_smob'.
5470 * configure, config.h.in: Regenerate.
5471 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5474 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5476 * frame.c (struct frame_info): Add stop_string field.
5477 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5478 (get_prev_frame_always): Old content moved into
5479 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5480 TRY_CATCH, handle MEMORY_ERROR exceptions.
5481 (frame_stop_reason_string): New function definition.
5482 * frame.h (unwind_stop_reason_to_string): Extend comment to
5483 mention frame_stop_reason_string.
5484 (frame_stop_reason_string): New function declaration.
5485 * stack.c (frame_info): Switch to frame_stop_reason_string.
5486 (backtrace_command_1): Switch to frame_stop_reason_string.
5487 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5488 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5489 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5491 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5493 * frame.c (frame_stop_reason_string): Rename to ...
5494 (unwind_stop_reason_to_string): this.
5495 * frame.h (frame_stop_reason_string): Rename to ...
5496 (unwind_stop_reason_to_string): this.
5497 * stack.c (frame_info): Update call to frame_stop_reason_string.
5498 (backtrace_command_1): Likewise.
5499 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5500 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5502 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5504 * frame.c (remove_prev_frame): New function.
5505 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5508 2014-05-29 Pedro Alves <palves@redhat.com>
5510 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5511 and make it const. When a single-step decays to a continue,
5512 clear 'step', not 'hw_step'. Pass whether the caller wanted
5513 to step to user_visible_resume_ptid, not what we ask the
5516 2014-05-29 Pedro Alves <palves@redhat.com>
5518 * infrun.c (process_event_stop_test, handle_step_into_function)
5519 (handle_step_into_function_backward): Adjust.
5520 Don't set the even thread's stop_step and call stop_waiting before
5521 calling end_stepping_range. Instead do that ...
5522 (end_stepping_range): ... here. Take an ecs pointer parameter.
5524 2014-05-29 Pedro Alves <palves@redhat.com>
5526 * infrun.c (stop_stepping): Rename to ...
5527 (stop_waiting): ... this.
5528 (proceed): Update comment.
5529 (process_event_stop_test, handle_inferior_event)
5530 (handle_signal_stop, handle_step_into_function)
5531 (handle_step_into_function_backward): Update.
5533 2014-05-29 Pedro Alves <palves@redhat.com>
5535 * infcall.c (run_inferior_call): Don't check whether the current
5536 thread is running after the proceed call.
5538 2014-05-29 Pedro Alves <palves@redhat.com>
5539 Tom Tromey <tromey@redhat.com>
5541 * NEWS: Mention "maint set target-async", "set mi-async", and that
5542 background execution commands are now always available.
5543 * target.h (target_async_permitted): Update comment.
5544 * target.c (target_async_permitted, target_async_permitted_1):
5546 (set_target_async_command): Rename to ...
5547 (maint_set_target_async_command): ... this.
5548 (show_target_async_command): Rename to ...
5549 (maint_show_target_async_command): ... this.
5550 (_initialize_target): Adjust.
5551 * infcmd.c (prepare_execution_command): Make extern.
5552 * inferior.h (prepare_execution_command): Declare.
5553 * infrun.c (set_observer_mode): Leave target async alone.
5554 * mi/mi-interp.c (mi_interpreter_init): Install
5555 mi_on_sync_execution_done as sync_execution_done observer.
5556 (mi_on_sync_execution_done): New function.
5557 (mi_execute_command_input_handler): Don't print the prompt if we
5558 just started a synchronous command with an async target.
5559 (mi_on_resume): Check sync_execution before printing prompt.
5560 * mi/mi-main.h (mi_async_p): Declare.
5561 * mi/mi-main.c: Include gdbcmd.h.
5562 (mi_async_p): New function.
5563 (mi_async, mi_async_1): New globals.
5564 (set_mi_async_command, show_mi_async_command, mi_async): New
5566 (exec_continue): Call prepare_execution_command.
5567 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5568 (mi_execute_async_cli_command): Use mi_async_p.
5569 (_initialize_mi_main): Install "set mi-async". Make
5570 "target-async" a deprecated alias.
5572 2014-05-29 Pedro Alves <palves@redhat.com>
5574 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5575 (_initialize_cli_interp): Adjust.
5576 * event-loop.c: Include "observer.h".
5577 (start_event_loop): Notify 'command_error' observers instead of
5578 calling display_gdb_prompt. Remove FIXME comment.
5579 * event-top.c (display_gdb_prompt): Remove call into the
5581 * inf-loop.c: Include "observer.h".
5582 (inferior_event_handler): Notify 'command_error' observers instead
5583 of calling display_gdb_prompt.
5584 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5585 observers instead of calling display_gdb_prompt.
5586 * interps.c (interp_set): Don't call display_gdb_prompt.
5587 (current_interp_display_prompt_p): Delete.
5588 * interps.h (interp_prompt_p): Delete declaration.
5589 (interp_prompt_p_ftype): Delete.
5590 (struct interp_procs) <prompt_proc_p>: Delete field.
5591 (current_interp_display_prompt_p): Delete declaration.
5592 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5593 (_initialize_mi_interp): Adjust.
5594 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5595 'command_error' observers.
5596 (tui_on_sync_execution_done, tui_on_command_error): New
5598 (tui_display_prompt_p): Delete.
5599 (_initialize_tui_interp): Adjust.
5601 2014-05-29 Pedro Alves <palves@redhat.com>
5604 * cli/cli-interp.c: Include infrun.h and observer.h.
5605 (cli_uiout, cli_interp): New globals.
5606 (cli_on_signal_received, cli_on_end_stepping_range)
5607 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5609 (cli_interpreter_init): Install them as 'end_stepping_range',
5610 'signal_received' 'signal_exited', 'exited' and 'no_history'
5612 (_initialize_cli_interp): Remove cli_interp local.
5613 * infrun.c (handle_inferior_event): Call the several stop reason
5614 observers instead of printing the stop reason directly.
5615 (end_stepping_range): New function.
5616 (print_end_stepping_range_reason, print_signal_exited_reason)
5617 (print_exited_reason, print_signal_received_reason)
5618 (print_no_history_reason): Make static, and add an uiout
5619 parameter. Print to that instead of to CURRENT_UIOUT.
5620 * infrun.h (print_end_stepping_range_reason)
5621 (print_signal_exited_reason, print_exited_reason)
5622 (print_signal_received_reason print_no_history_reason): New
5624 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5626 <cli_uiout>: New field.
5627 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5628 uiout for CLI output. Install 'signal_received',
5629 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5631 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5632 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5633 (mi_on_no_history): New functions.
5634 (ui_out_free_cleanup): Delete function.
5635 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5636 instead use the one already stored in the MI interpreter data.
5637 (mi_ui_out): Adjust.
5638 * tui/tui-interp.c: Include infrun.h and observer.h.
5639 (tui_interp): New global.
5640 (tui_on_signal_received, tui_on_end_stepping_range)
5641 (tui_on_signal_exited, tui_on_exited)
5642 (tui_on_no_history): New functions.
5643 (tui_init): Install them as 'end_stepping_range',
5644 'signal_received' 'signal_exited', 'exited' and 'no_history'
5646 (_initialize_tui_interp): Delete tui_interp local.
5648 2014-05-29 Pedro Alves <palves@redhat.com>
5651 * linux-nat.c (linux_nat_resume_callback): Rename the second
5652 parameter to 'except'. Skip LP if it points to EXCEPT.
5653 (linux_nat_resume): Don't mark the event lwp as not stopped
5654 before resuming sibling lwps. Instead ask
5655 linux_nat_resume_callback to skip the event lwp. Mark it as not
5656 stopped after actually resuming it.
5657 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5659 (wait_lwp): Mark the lwp as stopped here.
5660 (stop_wait_callback): Mark the lwp as not stopped right after
5661 resuming it. Don't mark lwps as stopped here.
5662 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5663 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5665 2014-05-29 Pedro Alves <palves@redhat.com>
5668 * infrun.c (resume): Determine how much to resume depending on
5669 whether the caller wanted a step, not whether we can hardware step
5670 the target. Mark all threads that we intend to run as running,
5671 unless we're calling an inferior function.
5672 (normal_stop): If the thread is running an infcall, don't finish
5674 * target.c (target_resume): Don't mark threads as running here.
5676 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5678 * serial.c (_initialize_serial): Remove support for
5679 the "set remotebaud" and "show remotebaud" commands.
5680 * NEWS: Add entry documenting the removal of that command.
5682 2014-05-28 Yao Qi <yao@codesourcery.com>
5684 * charset.c: Fix typo in comments.
5686 2014-05-27 Gary Benson <gbenson@redhat.com>
5688 * utils.c (internal_vproblem): Prompt for a bug report.
5690 2014-05-26 Andy Wingo <wingo@igalia.com>
5692 * guile/scm-arch.c (arscm_mark_arch_smob):
5693 * guile/scm-block.c (bkscm_mark_block_smob)
5694 (bkscm_mark_block_syms_progress_smob):
5695 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5696 * guile/scm-exception.c (exscm_mark_exception_smob):
5697 * guile/scm-frame.c (frscm_mark_frame_smob):
5698 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5699 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5700 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5701 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5702 (ppscm_mark_pretty_printer_worker_smob):
5703 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5704 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5705 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5706 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5708 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5711 2014-05-26 Andy Wingo <wingo@igalia.com>
5712 Doug Evans <xdje42@gmail.com>
5714 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5715 empty_base_class. All uses updated.
5716 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5717 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5719 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5720 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5721 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5722 (gdbscm_gsmob_has_property_p, add_property_name)
5723 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5724 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5725 (gdb-object-has-property?, gdb-object-properties): Remove.
5726 (gdb-object-kind): Renamed from gsmob-kind.
5728 2014-05-26 Andy Wingo <wingo@igalia.com>
5730 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5731 * configure: Regenerate.
5733 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5735 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5737 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5739 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5740 (replay_memory_access_read_only, replay_memory_access_read_write)
5741 (replay_memory_access_types, replay_memory_access)
5742 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5743 (cmd_set_record_btrace, cmd_show_record_btrace)
5744 (cmd_show_replay_memory_access): New.
5745 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5746 (record_btrace_remove_breakpoint): Replace
5747 record_btrace_allow_memory_access with replay_memory_access.
5748 (_initialize_record_btrace): Add commands.
5749 * NEWS: Announce it.
5751 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5753 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5755 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5757 * MAINTAINERS (Write After Approval): Move self back from
5760 2014-05-22 Pedro Alves <palves@redhat.com>
5762 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5763 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5764 (disable_randomization, enum exec_direction_kind)
5765 (execution_direction, stop_registers, start_remote)
5766 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5767 (wait_for_inferior, normal_stop, get_last_target_status)
5768 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5769 (insert_step_resume_breakpoint_at_sal)
5770 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5771 (set_step_info, print_stop_event, signal_stop_state)
5772 (signal_print_state, signal_pass_state, signal_stop_update)
5773 (signal_print_update, signal_pass_update)
5774 (update_signals_program_target, clear_exit_convenience_vars)
5775 (displaced_step_dump_bytes, update_observer_mode)
5776 (signal_catch_update, gdb_signal_from_command): Move
5778 * infrun.h: ... to this new file.
5779 * amd64-tdep.c: Include infrun.h.
5780 * annotate.c: Include infrun.h.
5781 * arch-utils.c: Include infrun.h.
5782 * arm-linux-tdep.c: Include infrun.h.
5783 * arm-tdep.c: Include infrun.h.
5784 * break-catch-sig.c: Include infrun.h.
5785 * breakpoint.c: Include infrun.h.
5786 * common/agent.c: Include infrun.h instead of inferior.h.
5787 * corelow.c: Include infrun.h.
5788 * event-top.c: Include infrun.h.
5789 * go32-nat.c: Include infrun.h.
5790 * i386-tdep.c: Include infrun.h.
5791 * inf-loop.c: Include infrun.h.
5792 * infcall.c: Include infrun.h.
5793 * infcmd.c: Include infrun.h.
5794 * infrun.c: Include infrun.h.
5795 * linux-fork.c: Include infrun.h.
5796 * linux-nat.c: Include infrun.h.
5797 * linux-thread-db.c: Include infrun.h.
5798 * monitor.c: Include infrun.h.
5799 * nto-tdep.c: Include infrun.h.
5800 * procfs.c: Include infrun.h.
5801 * record-btrace.c: Include infrun.h.
5802 * record-full.c: Include infrun.h.
5803 * remote-m32r-sdi.c: Include infrun.h.
5804 * remote-mips.c: Include infrun.h.
5805 * remote-notif.c: Include infrun.h.
5806 * remote-sim.c: Include infrun.h.
5807 * remote.c: Include infrun.h.
5808 * reverse.c: Include infrun.h.
5809 * rs6000-tdep.c: Include infrun.h.
5810 * s390-linux-tdep.c: Include infrun.h.
5811 * solib-irix.c: Include infrun.h.
5812 * solib-osf.c: Include infrun.h.
5813 * solib-svr4.c: Include infrun.h.
5814 * target.c: Include infrun.h.
5815 * top.c: Include infrun.h.
5816 * windows-nat.c: Include infrun.h.
5817 * mi/mi-interp.c: Include infrun.h.
5818 * mi/mi-main.c: Include infrun.h.
5819 * python/py-threadevent.c: Include infrun.h.
5821 2014-05-22 Pedro Alves <palves@redhat.com>
5823 * infrun.c (handle_inferior_event): Store the exit code for
5824 --return-child-result here, instead of ...
5825 (print_exited_reason): ... here.
5827 2014-05-21 Pedro Alves <palves@redhat.com>
5830 * gdbthread.h (struct thread_control_state): New field
5832 * infrun.c (follow_fork): Copy the new thread control field to the
5834 (clear_proceed_status_thread): Clear the new thread control field.
5835 (proceed): Set the new thread control field.
5836 * interps.h (command_interp): Declare.
5837 * interps.c (command_interpreter): New global.
5838 (command_interp): New function.
5839 (interp_exec): Set `command_interpreter' while here.
5840 * cli-out.c (cli_uiout_dtor): New function.
5841 (cli_ui_out_impl): Install it.
5842 * mi/mi-interp.c: Include cli-out.h.
5843 (mi_cmd_interpreter_exec): Add comment.
5844 (restore_current_uiout_cleanup): New function.
5845 (ui_out_free_cleanup): New function.
5846 (mi_on_normal_stop): If finishing an execution command started by
5847 a CLI command, or any kind of breakpoint-like event triggered,
5848 print the stop event to the output (CLI) stream.
5849 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5851 2014-05-21 Pedro Alves <palves@redhat.com>
5853 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5854 current source line having changed.
5855 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5856 * infrun.c (normal_stop): Adjust call to
5857 set_current_sal_from_frame.
5858 * source.c (clear_lines_listed_range): New function.
5859 (set_current_source_symtab_and_line, identify_source_line): Clear
5860 the lines listed range.
5861 (line_info): Handle the first "info line" after the current source
5862 line having changed.
5863 * stack.c (print_stack_frame): Remove center handling.
5864 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5867 2014-05-21 Pedro Alves <palves@redhat.com>
5869 * inf-child.c (inf_child_mourn_inferior): New function.
5870 * inf-child.h (inf_child_mourn_inferior): New declaration.
5871 * darwin-nat.c (darwin_mourn_inferior): Use
5872 inf_child_mourn_inferior.
5873 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5874 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5875 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5876 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5877 * windows-nat.c (windows_mourn_inferior): Likewise.
5879 2014-05-21 Doug Evans <xdje42@gmail.com>
5881 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5883 2014-05-21 Doug Evans <xdje42@gmail.com>
5885 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5886 (gdbscm_out_of_range_error): Ditto.
5887 (gdbscm_memory_error): Ditto.
5888 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5889 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5890 (gdbscm_out_of_range_error): Update.
5891 (gdbscm_memory_error): Update.
5892 (gdbscm_scm_to_target_string_unsafe): Delete.
5894 2014-05-21 Pedro Alves <palves@redhat.com>
5896 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5898 (inf_child_open_target): New function.
5899 (inf_child_open): Use inf_child_open_target to push the target
5900 instead of erroring out.
5901 (inf_child_disconnect, inf_child_close)
5902 (inf_child_maybe_unpush_target): New functions.
5903 (inf_child_target): Install inf_child_disconnect and
5904 inf_child_close. Store a pointer to the returned object.
5905 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5907 * target.c (auto_connect_native_target): New global.
5908 (show_default_run_target): New function.
5909 (find_default_run_target): Return NULL if automatically connecting
5910 to the native target is disabled.
5911 (_initialize_target): Install set/show auto-connect-native-target.
5912 * NEWS: Mention "set auto-connect-native-target", and "target
5914 * linux-nat.c (super_close): New global.
5915 (linux_nat_close): Call super_close.
5916 (linux_nat_add_target): Store a pointer to the base class's
5918 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5919 inf_child_maybe_unpush.
5920 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5922 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5923 the inferior. Use inf_child_maybe_unpush_target.
5924 (inf_ttrace_attach): Don't push the target if it is already
5926 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5927 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5928 after mourning the inferior. Use inf_child_maybe_unpush_target.
5929 (darwin_attach_pid): Don't push the target if it is already
5931 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5932 mourning the inferior. Use inf_child_maybe_unpush_target.
5933 (gnu_detach): Use inf_child_maybe_unpush_target.
5934 * go32-nat.c (go32_create_inferior): Don't push the target if it
5936 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5937 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5938 (procfs_open): Rename to ...
5939 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5940 comments. Can target_preopen before changing node. Call
5941 inf_child_open_target to push the target explicitly.
5942 (procfs_attach): Don't push the target if it is already pushed.
5943 (procfs_detach): Use inf_child_maybe_unpush_target.
5944 (procfs_create_inferior): Don't push the target if it is already
5946 (nto_native_ops): New global.
5947 (procfs_open): Reimplement.
5948 (procfs_native_open): New function.
5949 (init_procfs_targets): Install procfs_native_open as to_open of
5950 "target native". Store a pointer to the "native" target in
5952 * procfs.c (procfs_attach): Don't push the target if it is already
5954 (procfs_detach): Use inf_child_maybe_unpush_target.
5955 (procfs_mourn_inferior): Only unpush the target after mourning the
5956 inferior. Use inf_child_maybe_unpush_target.
5957 (procfs_init_inferior): Don't push the target if it is already
5959 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5960 if it is already pushed.
5962 2014-05-21 Pedro Alves <palves@redhat.com>
5964 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5965 and "procfs" targets are now called "native" instead.
5967 2014-05-21 Pedro Alves <palves@redhat.com>
5969 * go32-nat.c (go32_open): Delete.
5970 (go32_target): Don't override the to_open method.
5972 2014-05-21 Pedro Alves <palves@redhat.com>
5974 * nto-procfs.c (procfs_can_run): New function.
5975 (nto_procfs_ops): New global.
5976 (init_procfs_targets): New, based on procfs_target. Install
5977 "target native" in addition to "target procfs".
5978 (_initialize_procfs): Call init_procfs_targets instead of adding
5981 2014-05-21 Pedro Alves <palves@redhat.com>
5983 * windows-nat.c (windows_target): Don't override to_shortname,
5984 to_longname or to_doc.
5986 2014-05-21 Pedro Alves <palves@redhat.com>
5988 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5991 2014-05-21 Pedro Alves <palves@redhat.com>
5993 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5994 to_shortname, to_longname or to_doc.
5996 2014-05-21 Pedro Alves <palves@redhat.com>
5998 * go32-nat.c (go32_target): Don't override to_shortname,
5999 to_longname or to_doc.
6001 2014-05-21 Pedro Alves <palves@redhat.com>
6003 * inf-child.c (inf_child_open): Remove mention of "child".
6004 (inf_child_target): Rename target to "native" instead of "child".
6006 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6008 * Makefile.in (SFILES): Delete "regset.c".
6009 (COMMON_OBS): Delete "regset.o".
6011 * regset.h (regset_alloc): Delete prototype.
6013 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6015 * sparc-linux-tdep.c (sparc32_linux_gregset)
6016 (sparc32_linux_fpregset): New static regset structures.
6017 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6018 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6020 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6021 (sparc64_linux_fpregset): New static regset structures.
6022 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6023 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6024 New static regset structures.
6025 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6026 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6027 New static regset structures.
6028 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6029 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6030 New static regset structures.
6031 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6032 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6033 New static regset structures.
6034 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6036 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6038 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6039 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6040 register maps ("regmaps") from "*regset" to "*regmap". Do this
6041 for all regmap types and variables.
6042 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6043 (sparc32_linux_supply_core_gregset)
6044 (sparc32_linux_collect_core_gregset)
6045 (sparc32_linux_supply_core_fpregset)
6046 (sparc32_linux_collect_core_fpregset): Likewise.
6047 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6048 (sparc_gregmap, sparc_fpregmap): ... these.
6049 (sparc_supply_gregset, sparc_collect_gregset)
6050 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6051 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6052 (_initialize_sparc_nat): Rename regmaps.
6053 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6054 (sparc_gregmap, sparc_fpregmap): ... these.
6055 (sparc_supply_gregset, sparc_collect_gregset)
6056 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6057 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6059 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6060 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6062 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6064 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6065 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6066 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6068 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6069 (sparc32_bsd_fpregset): Rename to...
6070 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6071 (sparc32_bsd_fpregmap): ... these.
6072 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6073 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6074 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6075 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6076 (struct sparc_gregmap, struct sparc_fpregmap)
6077 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6078 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6079 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6080 (sparc32_supply_regset, sparc32_collect_gregset)
6081 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6083 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6084 (sparc64_linux_ptrace_gregmap): ... this.
6085 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6086 (_initialize_sparc64_linux_nat): Rename regmaps.
6087 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6088 (sparc64_linux_core_gregmap): ... this.
6089 (sparc64_linux_supply_core_gregset)
6090 (sparc64_linux_collect_core_gregset)
6091 (sparc64_linux_supply_core_fpregset)
6092 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6093 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6094 (sparc64_sol2_fpregset): Rename to...
6095 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6096 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6097 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6099 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6100 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6101 (sparc64_bsd_fpregset): Rename to...
6102 (struct sparc_gregmap, sparc64_sol2_gregmap)
6103 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6104 (sparc64_bsd_fpregmap): ... these.
6105 (sparc64_supply_gregset, sparc64_collect_gregset)
6106 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6108 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6109 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6110 (sparc64fbsd_gregmap): ... this.
6111 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6112 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6114 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6115 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6116 (sparc64nbsd_collect_fpregset): Likewise.
6117 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6118 (sparc64nbsd_gregmap): ... this.
6119 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6121 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6122 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6123 (sparc64obsd_gregmap): ... this.
6124 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6126 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6127 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6128 (sparc32nbsd_gregmap): ... this.
6129 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6132 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6134 * score-tdep.c (score7_linux_gregset): New static regset
6136 (score7_linux_regset_from_core_section): Remove dynamic regset
6138 (score_gdbarch_init): Drop allocation of tdep structure.
6139 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6141 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6143 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6145 (am33_regset_from_core_section): Remove dynamic regset
6148 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6150 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6151 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6153 (mips_linux_regset_from_core_section): Remove dynamic regset
6155 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6156 'gregset64', 'fpregset', and 'fpregset64'.
6157 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6158 deleted tdep fields.
6160 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6162 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6164 (amd64_regset_from_core_section): Remove dynamic regset
6166 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6168 (amd64obsd_regset_from_core_section): Remove dynamic regset
6170 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6172 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6173 x86-common regset supply function.
6174 * i386-tdep.c (i386_collect_gregset): Make static.
6175 (i386_gregset): New global regset structure.
6176 (i386_fpregset, i386_xstateregset): New static regset structures.
6177 (i386_regset_from_core_section): Remove dynamic regset
6179 (i386_gdbarch_init): Remove initialization of tdep fields
6180 'gregset', 'fpregset', and 'xstateregset'.
6181 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6182 'fpregset', and 'xstateregset'.
6183 (i386_collect_gregset): Remove prototype.
6184 (i386_gregset): New declaration.
6185 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6187 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6190 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6192 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6193 (arm_linux_vfpregset): New static regset structures.
6194 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6196 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6197 and 'vfpregset' fields.
6199 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6201 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6202 (aarch64_linux_fpregset): New static regset structures.
6203 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6204 of regset structures.
6205 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6208 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6210 * regset.h (struct regset): Remove gdbarch field.
6211 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6212 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6213 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6215 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6216 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6217 (ppc32_linux_vsxregset): Likewise.
6218 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6219 via the regcache instead of the regset.
6220 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6221 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6222 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6223 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6226 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6228 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6229 Constify structures.
6230 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6231 (alphanbsd_aout_gregset): Likewise.
6232 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6233 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6235 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6236 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6238 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6239 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6240 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6241 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6242 * m88k-tdep.c (m88k_gregset): Likewise.
6243 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6244 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6245 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6246 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6247 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6248 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6249 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6250 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6251 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6253 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6254 * sh-tdep.h (sh_corefile_gregset): Likewise.
6255 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6256 * vax-tdep.c (vax_gregset): Likewise.
6258 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6260 Fix TLS access for -static -pthread.
6261 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6262 (try_thread_db_load_1): Initialize it.
6263 (thread_db_get_thread_local_address): Call it if LM is zero.
6264 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6265 * target.h (struct target_ops) (to_get_thread_local_address): Add
6266 load_module_addr comment.
6268 2014-05-21 Pedro Alves <palves@redhat.com>
6270 * dcache.c (dcache_read_memory_partial): If reading the cache line
6271 fails, fallback to reading just the memory the caller wanted.
6273 2014-05-20 Doug Evans <dje@google.com>
6275 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6276 instead of get_current_arch.
6278 2014-05-20 Pedro Alves <palves@redhat.com>
6280 * NEWS: Mention that compare-sections now works with all targets.
6282 * remote.c (PACKET_qCRC): New enum value.
6283 (remote_verify_memory): Don't send qCRC if the target has no
6284 execution. Use packet_support/packet_ok. If the target doesn't
6285 support the qCRC packet, fallback to a deep memory copy.
6286 (compare_sections_command): Say "target image" instead of "remote
6288 (_initialize_remote): Add PACKET_qCRC to the list of config
6289 packets that have no associated command. Extend comment.
6290 * target.c (simple_verify_memory, default_verify_memory): New
6292 * target.h (struct target_ops) <to_verify_memory>: Default to
6293 default_verify_memory.
6294 (simple_verify_memory): New declaration.
6295 * target-delegates.c: Regenerate.
6297 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6299 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6301 2014-05-20 Hui Zhu <hui@codesourcery.com>
6302 Yao Qi <yao@codesourcery.com>
6305 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6306 and change address of sp and pc.
6308 2014-05-19 Tom Tromey <tromey@redhat.com>
6310 * gdbtypes.c (rank_function): Use XNEWVEC.
6311 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6313 2014-05-19 Doug Evans <dje@google.com>
6315 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6316 build_type_unit_groups and moved closer to only caller. Remove
6317 arguments. All references updated. Remove outdated .gdb_index
6319 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6320 build_type_psymtabs_1.
6322 2014-05-19 Doug Evans <dje@google.com>
6324 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6325 n_type_unit_groups, all_type_unit_groups. All uses removed.
6326 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6327 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6328 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6329 (add_type_unit_group_to_table): Delete.
6331 2014-05-19 Doug Evans <dje@google.com>
6333 * eval.c (evaluate_subexp_standard): Add some comments.
6335 2014-05-17 Doug Evans <xdje42@gmail.com>
6337 * progspace.c (remove_program_space): Delete, unused.
6338 * progspace.h (remove_program_space): Ditto.
6340 2014-05-17 Doug Evans <xdje42@gmail.com>
6342 * inferior.c (prune_inferiors): Fix comment.
6343 (remove_inferior_command): Call prune_program_spaces.
6345 2014-05-16 Doug Evans <dje@google.com>
6347 New command line option -D.
6349 * main.c (set_gdb_data_directory): New function.
6350 (captured_main): Recognize -D. Flag error for --data-directory "".
6351 Call set_gdb_data_directory.
6352 (print_gdb_help): Print --data-directory, -D.
6353 * main.h (set_gdb_data_directory): Declare.
6354 * top.c (staged_gdb_datadir): New static global.
6355 (set_gdb_datadir): Call set_gdb_data_directory
6356 (show_gdb_datadir): New function.
6357 (init_main): Update init of data-directory parameter.
6359 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6361 Import the "dirfd" gnulib module.
6362 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6363 * gnulib/aclocal.m4: Update.
6364 * gnulib/config.in: Update.
6365 * gnulib/configure: Update.
6366 * gnulib/import/Makefile.am: Update.
6367 * gnulib/import/Makefile.in: Update.
6368 * gnulib/import/dirfd.c: New.
6369 * gnulib/import/m4/dirfd.m4: New.
6370 * gnulib/import/m4/gnulib-cache.m4: Update.
6371 * gnulib/import/m4/gnulib-comp.m4: Update.
6373 2014-05-16 Pierre Muller <muller@sourceware.org>
6374 Yao Qi <yao@codesourcery.com>
6376 * valprint.c (print_wchar): Move the code on checking whether
6377 W is a printable wide char to the default branch of switch
6378 statement below. Call wchar_printable instead of gdb_iswprint.
6380 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6382 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6383 ldr.w and ldrd instructions.
6385 2014-05-15 Doug Evans <dje@google.com>
6387 * dwarf2read.c (read_structure_type): Delete outdated comments.
6389 2014-05-14 Tom Tromey <tromey@redhat.com>
6391 * macrocmd.c (print_macro_definition): Reindent.
6393 2014-05-13 Doug Evans <xdje42@gmail.com>
6395 * python/py-cmd.c (cmdpy_completer): Add comment.
6396 (completers): Make const.
6398 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6400 * infrun.c (resume): Remove should_resume (unused). Move up
6401 declaration of resume_ptid.
6403 2014-05-13 Tom Tromey <tromey@redhat.com>
6405 * language.h (unop_type_check): Remove.
6406 (binop_type_check): Don't declare.
6408 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6410 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6411 call to regcache_raw_collect.
6413 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6415 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6416 mi_console->quote as the quoting character.
6418 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6420 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6422 2014-04-29 Tom Tromey <tromey@redhat.com>
6424 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6425 "show debug varobj".
6427 2014-05-07 Kyle McMartin <kyle@redhat.com>
6429 Pushed by Joel Brobecker <brobecker@adacore.com>.
6430 * aarch64-tdep.c (aarch64_software_single_step): New function.
6431 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6432 with aarch64_software_single_step.
6434 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6438 2014-05-05 Keith Seitz <keiths@redhat.com>
6440 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6441 variable or history value is successfully parsed.
6443 2014-05-05 Yao Qi <yao@codesourcery.com>
6444 Pedro Alves <palves@redhat.com>
6446 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6447 address of blocks that intersects the requested range. Trim
6448 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6450 * ctf.c (ctf_xfer_partial): Likewise.
6452 2014-05-05 Yao Qi <yao@codesourcery.com>
6454 * printcmd.c (display_command): Remove the check to
6455 target_has_execution.
6457 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6459 * ppcobsd-nat.c: Include "obsd-nat.h".
6460 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6462 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6464 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6466 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6467 and 16-bit signed and unsigned arguments. Update comment.
6468 (stap_parse_probe_arguments): Extend code to handle such
6469 arguments. Use warning instead of complaint to notify about
6470 unrecognized bitness.
6472 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6474 PR breakpoints/16889
6475 * stap-probe.c (stap_parse_probe_arguments): Simplify
6476 check for non-prefixed probes (i.e., probes whose
6477 arguments do not start with "N@"). Always set the
6478 argument type to a sane value.
6480 2014-05-01 David Taylor <dtaylor@emc.com>
6482 * remote.c (compare_sections_command): Add -r option to compare
6483 all loadable read-only sections.
6485 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6487 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6488 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6490 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6491 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6492 Remove unused CORE_ADDR argument. Update all callers.
6494 2014-04-29 Pedro Alves <palves@redhat.com>
6496 * remote.c (struct packet_config) <detect>: Extend comment.
6497 (add_packet_config_cmd): Don't set the config's detect or support
6499 (init_all_packet_configs): Also initialize the config's 'detect'
6501 (reset_all_packet_configs_support): New function.
6502 (remote_open_1): Call reset_all_packet_configs_support instead of
6503 init_all_packet_configs.
6504 (_initialize_remote): Initialize all packet configs. Assert that
6505 all packets have an associated command, except a few known
6508 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6510 * dwarf2read.c (read_subrange_type): Handle dynamic
6511 DW_AT_lower_bound attributes.
6513 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6515 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6516 dynamic bounds before computing its upper bound.
6517 (ada_discrete_type_low_bound): Same as above with the lower bound.
6519 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6521 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6522 range types. Adjust the array handling implementation to
6523 take advantage of this change.
6524 (resolve_dynamic_range): New function, mostly extracted from
6525 resolve_dynamic_bounds.
6526 (resolve_dynamic_array): New function, mostly extracted from
6527 resolve_dynamic_bounds.
6528 (resolve_dynamic_bounds): Delete.
6529 (resolve_dynamic_type): Reimplement. Add handling of
6530 TYPE_CODE_RANGE types.
6532 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6534 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6535 handling of parallel ___XA types.
6537 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6539 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6540 unnecessary second call to static_unwrap_type.
6542 2014-04-27 Hui Zhu <hui@codesourcery.com>
6544 * stack.c (print_frame_info): Call do_gdb_disassembly with
6545 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6547 2014-04-26 Doug Evans <xdje42@gmail.com>
6549 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6551 2014-04-25 Pedro Alves <palves@redhat.com>
6554 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6555 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6556 and newline from built string.
6557 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6558 (linux_ptrace_attach_fail_reason): ... this.
6559 * linux-nat.c (linux_nat_attach): Adjust to use
6560 linux_ptrace_attach_fail_reason.
6562 2014-04-25 Pedro Alves <palves@redhat.com>
6564 * remote.c (struct remote_state): Remove multi_process_aware,
6565 non_stop_aware, cond_tracepoints, cond_breakpoints,
6566 breakpoint_commands, fast_tracepoints, static_tracepoints,
6567 install_in_trace, disconnected_tracing,
6568 enable_disable_tracepoints, string_tracing, and
6569 augmented_libraries_svr4_read fields.
6570 (remote_multi_process_p): Move further below in the file.
6571 (struct packet_config): Add comments.
6572 (update_packet_config): Delete function.
6573 (show_packet_config_cmd): Use packet_config_support.
6574 (add_packet_config_cmd): Use NULL as set callback.
6575 (packet_ok): "set remote foo-packet"-style commands no longer
6576 change config->supported -- adjust.
6577 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6578 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6579 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6580 (PACKET_QNonStop, PACKET_multiprocess_feature)
6581 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6582 (PACKET_DisconnectedTracing_feature)
6583 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6584 (set_remote_protocol_packet_cmd): Delete function.
6585 (packet_config_support, packet_support): New functions.
6586 (set_remote_protocol_Z_packet_cmd): Don't call
6587 update_packet_config.
6588 (remote_query_attached, remote_pass_signals)
6589 (remote_program_signals, remote_threads_info)
6590 (remote_threads_extra_info, remote_start_remote): Use
6592 (remote_start_remote): Use packet_config_support and
6594 (init_all_packet_configs): Set all packets to unknown support,
6595 instead of calling update_packet_config.
6596 (remote_check_symbols): Use packet_support.
6597 (remote_supported_packet): Unconditionally set the packet config's
6599 (remote_multi_process_feature, remote_non_stop_feature)
6600 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6601 (remote_breakpoint_commands_feature)
6602 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6603 (remote_install_in_trace_feature)
6604 (remote_disconnected_tracing_feature)
6605 (remote_enable_disable_tracepoint_feature)
6606 (remote_string_tracing_feature)
6607 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6608 (remote_protocol_features): Adjust to use remote_supported_packet
6609 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6610 "ConditionalTracepoints", "ConditionalBreakpoints",
6611 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6612 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6613 "EnableDisableTracepoints", and "tracenz".
6614 (remote_query_supported): Use packet_support.
6615 (remote_open_1): Adjust.
6616 (extended_remote_attach_1): Use packet_support. Switch on the
6617 result of packet_ok instead of checking whether the packet ended
6619 (remote_vcont_resume): Use packet_support.
6620 (remote_resume, remote_stop_ns, fetch_register_using_p)
6621 (remote_prepare_to_store, store_register_using_P)
6622 (check_binary_download, remote_write_bytes): Use packet_support.
6623 (remote_vkill): Use packet_support. Switch on the result of
6624 packet_ok instead of checking whether the packet ended up
6626 (extended_remote_supports_disable_randomization): Use
6628 (extended_remote_run): Switch on the result of packet_ok instead
6629 of checking whether the packet ended up disabled.
6630 (remote_insert_breakpoint, remote_remove_breakpoint)
6631 (remote_insert_watchpoint, remote_remove_watchpoint)
6632 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6634 (remote_search_memory): Use packet_config_support.
6635 (remote_get_thread_local_address, remote_get_tib_address)
6636 (remote_hostio_send_command, remote_can_execute_reverse): Use
6638 (remote_supports_cond_tracepoints)
6639 (remote_supports_cond_breakpoints)
6640 (remote_supports_fast_tracepoints)
6641 (remote_supports_static_tracepoints)
6642 (remote_supports_install_in_trace)
6643 (remote_supports_enable_disable_tracepoint)
6644 (remote_supports_string_tracing)
6645 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6646 the packet config says the feature is enabled or disabled.
6647 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6648 (remote_get_trace_status): Use packet_support.
6649 (remote_set_disconnected_tracing): Adjust to check whether the
6650 feature is enabled with packet_support.
6651 (remote_set_trace_buffer_size, remote_use_agent)
6652 (remote_can_use_agent, remote_supports_btrace): Use
6654 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6655 Use packet_config_support.
6656 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6657 the packet config says the feature is enabled or disabled.
6658 (set_range_stepping): Use packet_support.
6660 2014-04-25 Tom Tromey <tromey@redhat.com>
6662 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6665 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6667 * NEWS: Mention support for C99 variable length arrays.
6669 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6671 * ada-lang.c (standard_exc): Expand introductory comment.
6673 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6674 Walfred Tedeschi <walfred.tedeschi@intel.com>
6676 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6678 (amd64_linux_read_description): Add code to handle AVX512 xstate
6679 mask and return respective tdesc.
6680 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6681 and features/i386/x32-avx512-linux.c.
6682 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6683 (amd64_linux_core_read_description): Add code to handle AVX512
6684 xstate mask and return respective tdesc.
6685 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6686 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6688 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6689 (tdesc_amd64_avx512_linux): New prototype.
6690 (tdesc_x32_avx512_linux): Likewise.
6691 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6692 features/i386/x32-avx512.c.
6693 (amd64_ymm_avx512_names): New register names for pseudo
6695 (amd64_ymmh_avx512_names): New register names for raw registers
6697 (amd64_k_names): New register names for K registers.
6698 (amd64_zmmh_names): New register names for ZMM raw registers.
6699 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6700 (amd64_xmm_avx512_names): New register names for XMM16-31
6702 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6704 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6705 if feature is present.
6706 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6707 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6708 (AMD64_NUM_REGS): Adjust to new number of registers.
6709 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6710 registers supplied via XSTATE by AVX512 registers.
6711 (i386_linux_read_description): Add case for AVX512.
6712 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6713 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6714 (i386_linux_core_read_description): Add case for AVX512.
6715 (i386_linux_init_abi): Install supported register note section
6717 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6719 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6720 registers to be number of zmm7h + 1.
6721 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6722 * i386-tdep.c: Include features/i386/i386-avx512.c.
6723 (i386_zmm_names): Add ZMM pseudo register names array.
6724 (i386_zmmh_names): Add ZMM raw register names array.
6725 (i386_k_names): Add K raw register names array.
6726 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6727 registers. AVX512 has 16 more ZMM registers than there are YMM
6729 (i386_zmmh_regnum_p): Add function to look up register number of
6731 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6732 (i386_k_regnum_p): Likewise for K raw registers.
6733 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6734 registers added by AVX512.
6735 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6736 registers added by AVX512.
6737 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6739 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6740 (i386_pseudo_register_name): Add ZMM pseudo registers.
6741 (i386_zmm_type): Construct and return vector registers type for ZMM
6743 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6744 ZMM0-31 pseudo registers and K registers.
6745 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6746 and YMM16-31 registers from register cache.
6747 (i386_pseudo_register_write): Add code to write K, ZMM and
6749 (i386_register_reggroup_p): Add code to include/exclude AVX512
6750 registers in/from respective register groups.
6751 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6752 registers if feature is present in xcr0.
6753 (i386_gdbarch_init): Add code to initialize AVX512 feature
6754 variables in tdep structure, wire in pseudo registers and call
6755 initialize_tdesc_i386_avx512.
6756 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6758 (i386_regnum): Add AVX512 registers.
6759 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6760 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6761 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6762 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6764 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6765 (i386_ymm_avx512_regnum_p): Likewise.
6766 (i386_k_regnum_p): Likewise.
6767 (i386_zmm_regnum_p): Likewise.
6768 (i386_zmmh_regnum_p): Likewise.
6769 * i387-tdep.c : Update year in copyright notice.
6770 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6772 (XSAVE_YMM_AVX512_ADDR): New macro.
6773 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6775 (XSAVE_XMM_AVX512_ADDR): New macro.
6776 (xsave_avx512_k_offset): New table for K register offsets in
6778 (XSAVE_AVX512_K_ADDR): New macro.
6779 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6781 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6782 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6784 (i387_collect_xsave): Add code to collect AVX512 registers from
6786 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6787 of XMM16-31 registers.
6788 (I387_NUM_K_REGS): New define for number of K registers.
6789 (I387_K0_REGNUM): New define for K0 register number.
6790 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6791 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6792 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6794 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6795 (I387_XMM16_REGNUM): New define for XMM16 register number.
6796 (I387_YMM0_REGNUM): New define for YMM0 register number.
6797 (I387_KEND_REGNUM): New define for last K register number.
6798 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6799 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6801 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6803 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6805 * features/Makefile: Add AVX512 related files.
6806 * features/i386/32bit-avx512.xml: New file.
6807 * features/i386/64bit-avx512.xml: Likewise.
6808 * features/i386/amd64-avx512-linux.c: Likewise.
6809 * features/i386/amd64-avx512-linux.xml: Likewise.
6810 * features/i386/amd64-avx512.c: Likewise.
6811 * features/i386/amd64-avx512.xml: Likewise.
6812 * features/i386/i386-avx512-linux.c: Likewise.
6813 * features/i386/i386-avx512-linux.xml: Likewise.
6814 * features/i386/i386-avx512.c: Likewise.
6815 * features/i386/i386-avx512.xml: Likewise.
6816 * features/i386/x32-avx512-linux.c: Likewise.
6817 * features/i386/x32-avx512-linux.xml: Likewise.
6818 * features/i386/x32-avx512.c: Likewise.
6819 * features/i386/x32-avx512.xml: Likewise.
6820 * regformats/i386/amd64-avx512-linux.dat: New file.
6821 * regformats/i386/amd64-avx512.dat: Likewise.
6822 * regformats/i386/i386-avx512-linux.dat: Likewise.
6823 * regformats/i386/i386-avx512.dat: Likewise.
6824 * regformats/i386/x32-avx512-linux.dat: Likewise.
6825 * regformats/i386/x32-avx512.dat: Likewise.
6826 * NEWS: Add note about new support for AVX512.
6829 2014-04-23 Pedro Alves <palves@redhat.com>
6831 * breakpoint.c (insert_bp_location): Tolerate errors if the
6832 breakpoint is set in a user-loaded objfile.
6833 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6834 location is marked shlib_disabled. If the breakpoint is set in a
6835 user-loaded objfile is a GDB-side memory breakpoint, validate it
6836 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6837 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6839 * mem-break.c (memory_validate_breakpoint): New function.
6840 * objfiles.c (userloaded_objfile_contains_address_p): New
6842 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6843 * target.h (memory_validate_breakpoint): New declaration.
6845 2014-04-23 Pedro Alves <palves@redhat.com>
6847 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6848 the breakpoint is set in a shared library, only suppress
6849 errors for software breakpoints, not hardware breakpoints.
6851 2014-04-22 Pedro Alves <palves@redhat.com>
6853 * infrun.c (schedlock_applies): New function, factored out from
6854 find_thread_needs_step_over.
6855 (find_thread_needs_step_over): Use it.
6856 (switch_back_to_stepped_thread): Always clear trap_expected if the
6857 step over is finished. Return early if scheduler locking applies.
6858 Look for the stepping thread and a potential step-over thread with
6860 (currently_stepping_or_nexting_callback): Delete.
6862 2014-04-22 Nick Clifton <nickc@redhat.com>
6864 * NEWS: Mention that ARM sim now supports tracing.
6866 2014-04-22 Yao Qi <yao@codesourcery.com>
6868 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6870 * tracefile.c (tracefile_fetch_registers): ... it. New
6872 * tracefile.h (tracefile_fetch_registers): Declare.
6873 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6874 tracefile_fetch_registers.
6876 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6879 * windows-nat.c (thread_rec): Don't display a warning when
6880 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6881 fails for any reason, set th->suspended to -1, so that we don't
6882 try to resume such a thread. Also, don't return NULL in these
6883 cases, to avoid completely ruin the session due to "PC register is
6884 not available" error.
6885 (do_windows_fetch_inferior_registers): Check errors in
6886 GetThreadContext call.
6887 (windows_continue): Accept an additional argument KILLED; if not
6888 zero, ignore errors in the SetThreadContext call, since the
6889 inferior was killed and is shutting down.
6890 (windows_resume, get_windows_debug_event)
6891 (windows_create_inferior, windows_mourn_inferior)
6892 (windows_kill_inferior): All callers of windows_continue changed
6893 to adjust to its new calling sequence.
6895 2014-04-19 Yao Qi <yao@codesourcery.com>
6897 * ctf.c (ctf_open): Call post_create_inferior.
6899 2014-04-19 Yao Qi <yao@codesourcery.com>
6901 * ctf.c (handle_id): New static variable.
6902 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6903 value. Get the declaration of event "register" and get length
6904 of field "contents".
6906 2014-04-19 Yao Qi <yao@codesourcery.com>
6908 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6910 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6912 * valops.c (oload_method_static): Remove unnecessary argument
6913 METHOD. Update all callers.
6915 2014-04-18 Pedro alves <palves@redhat.com>
6916 Tom Tromey <tromey@redhat.com>
6919 * frame.c (get_prev_frame_1): Rename to ...
6920 (get_prev_frame_always): ... this, and make extern. Adjust.
6921 (skip_artificial_frames): Use get_prev_frame_always.
6922 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6923 (get_frame_unwind_stop_reason): Adjust to rename.
6924 * frame.h (get_prev_frame_always): Declare.
6925 * inline-frame.c: Include frame.h.
6926 (inline_frame_this_id): Use get_prev_frame_always.
6928 2014-04-18 Tristan Gingold <gingold@adacore.com>
6930 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6931 code by using bfd_mach_o_get_base_address.
6933 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6935 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6936 (spu_ax_pseudo_register_collect): New function.
6937 (spu_ax_pseudo_register_push_stack): Likewise.
6938 (spu_dwarf_reg_to_regnum): Likewise.
6939 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6941 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6943 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6944 Replace FRAME argument with FRAME_ID.
6945 * gdbarch.c, gdbarch.h: Regenerate.
6946 * findvar.c (default_value_from_register): Add GDBARCH argument;
6947 replace FRAME by FRAME_ID. No longer call get_frame_id.
6948 (value_from_register): Update call to gdbarch_value_from_register.
6949 * value.h (default_value_from_register): Update prototype.
6950 * s390-linux-tdep.c (s390_value_from_register): Update interface
6951 and call to default_value_from_register.
6952 * spu-tdep.c (spu_value_from_register): Likewise.
6954 * findvar.c (address_from_register): Remove TYPE argument.
6955 Do not call value_from_register; use gdbarch_value_from_register
6956 with null_frame_id instead.
6957 * value.h (address_from_register): Update prototype.
6958 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6959 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6960 address_from_register interface change.
6962 2014-04-17 Yao Qi <yao@codesourcery.com>
6964 * gdbtypes.h: Update comments to link to types and macros'
6967 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6969 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6971 2014-04-16 Keith Seitz <keiths@redhat.com>
6974 * dwarf2read.c (skip_one_die): Check that all relative-offset
6975 sibling DIEs fall within range of the current reader's buffer.
6976 (read_partial_die): Likewise.
6978 2014-04-16 Keith Seitz <keiths@redhat.com>
6981 * cp-namespace.c (lookup_symbol_file): If the type name of
6982 `this' is NULL, return immediately.
6984 2014-04-14 Keith Seitz <keiths@redhat.com>
6987 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6988 from symbol_matches_domain in symtab.c. All local callers
6989 of symbol_matches_domain updated.
6990 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6991 search STRUCT_DOMAIN.
6992 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6993 independently. standard_lookup will do that automatically.
6994 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6995 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6996 (cp_lookup_symbol_in_namespace): Likewise.
6997 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6998 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6999 may return a STRUCT_DOMAIN match.
7000 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7001 * cp-support.c: Include language.h.
7002 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7004 * psymtab.c (match_partial_symbol): Compare the requested
7005 domain with the symbol's domain directly.
7006 (lookup_partial_symbol): Likewise.
7007 * symtab.c (lookup_symbol_in_language): Explain when/why
7008 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7009 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7010 appropriate languages.
7011 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7012 and moved to ada-lang.c
7013 (lookup_block_symbol): Explain that this function only returns
7014 symbol matching the requested DOMAIN.
7015 Compare the requested domain with the symbol's domain directly.
7016 (iterate_over_symbols): Compare the requested domain with the
7017 symbol's domain directly.
7018 * symtab.h (symbol_matches_domain): Remove.
7020 2014-04-14 Tom Tromey <tromey@redhat.com>
7023 * c-exp.y (type_aggregate_p): New function.
7024 (qualified_name, classify_inner_name): Use it.
7025 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7026 and TYPE_TARGET_TYPE of an enum type.
7027 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7029 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7030 handle TYPE_DECLARED_CLASS.
7031 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7033 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7034 * valops.c (enum_constant_from_type): New function.
7035 (value_aggregate_elt): Use it.
7036 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7039 2014-04-14 Tom Tromey <tromey@redhat.com>
7041 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7042 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7044 * value.h (value_aggregate_elt): Update.
7046 2014-04-14 Tom Tromey <tromey@redhat.com>
7048 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7050 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7052 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7053 (evaluate_subexp_standard): Pass noside argument.
7054 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7055 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7056 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7057 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7058 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7060 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7062 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7063 points to a constant blob.
7065 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7067 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7068 property and store it as the high bound and flag the range accordingly.
7069 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7070 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7071 * gdbtypes.h (enum range_flags): New enum.
7072 (struct range_bounds): Add flags member.
7074 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7076 * c-typeprint.c (c_type_print_varspec_suffix): Added
7077 check for not yet resolved high bound. If unresolved, print
7078 "variable length" string to the console instead of random
7081 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7083 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7085 (ada_template_to_fixed_record_type_1): Likewise.
7086 (ada_to_fixed_type_1): Likewise.
7087 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7088 (cp_print_value): Likewise.
7089 * d-valprint.c (dynamic_array_type): Likewise.
7090 * findvar.c (address_of_variable): Likewise.
7091 * jv-valprint.c (java_value_print): Likewise.
7092 * valops.c (value_ind): Likewise.
7093 * value.c (coerce_ref): Likewise.
7095 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7097 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7098 value and retrieve the dynamic type size.
7100 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7102 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7103 passed to sizeof is dynamic evaluate the argument to compute the length.
7105 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7106 Joel Brobecker <brobecker@adacore.com>
7108 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7109 (dwarf2_evaluate_property): New function.
7110 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7111 * dwarf2read.c (attr_to_dynamic_prop): New function.
7112 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7114 * gdbtypes.c: Include dwarf2loc.h.
7115 (is_dynamic_type): New function.
7116 (resolve_dynamic_type): New function.
7117 (resolve_dynamic_bounds): New function.
7118 (get_type_length): New function.
7119 (check_typedef): Use get_type_length to compute type length.
7120 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7121 (TYPE_LOW_BOUND_KIND): New macro.
7122 (is_dynamic_type): New function prototype.
7123 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7124 to resolve dynamic properties of the type. Update comment.
7125 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7127 2014-04-14 Richard Henderson <rth@redhat.com>
7129 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7131 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7132 Doug Evans <xdje42@gmail.com>
7134 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7135 dereference TYPE_CODE_REF values.
7137 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7139 Revert the following changes due to regressions:
7141 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7142 (dwarf2_evaluate_property): New function.
7143 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7144 * dwarf2read.c (attr_to_dynamic_prop): New function.
7145 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7147 * gdbtypes.c: Include dwarf2loc.h.
7148 (is_dynamic_type): New function.
7149 (resolve_dynamic_type): New function.
7150 (resolve_dynamic_bounds): New function.
7151 (get_type_length): New function.
7152 (check_typedef): Use get_type_length to compute type length.
7153 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7154 (TYPE_LOW_BOUND_KIND): New macro.
7155 (is_dynamic_type): New function prototype.
7156 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7157 to resolve dynamic properties of the type. Update comment.
7158 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7160 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7161 passed to sizeof is dynamic evaluate the argument to compute the length.
7163 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7164 value and retrieve the dynamic type size.
7166 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7167 (ada_template_to_fixed_record_type_1): Likewise.
7168 (ada_to_fixed_type_1): Likewise.
7169 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7170 (cp_print_value): Likewise.
7171 * d-valprint.c (dynamic_array_type): Likewise.
7172 * eval.c (evaluate_subexp_with_coercion): Likewise.
7173 * findvar.c (address_of_variable): Likewise.
7174 * jv-valprint.c (java_value_print): Likewise.
7175 * valops.c (value_ind): Likewise.
7176 * value.c (coerce_ref): Likewise.
7178 * c-typeprint.c (c_type_print_varspec_suffix): Added
7179 check for not yet resolved high bound. If unresolved, print
7180 "variable length" string to the console instead of random
7183 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7184 property and store it as the high bound and flag the range accordingly.
7185 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7186 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7187 * gdbtypes.h (enum range_flags): New enum.
7188 (struct range_bounds): Add flags member.
7190 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7191 points to a constant blob.
7193 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7194 (evaluate_subexp_standard): Pass noside argument.
7195 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7196 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7197 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7198 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7199 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7201 2014-04-11 Keith Seitz <keiths@redhat.com>
7204 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7205 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7208 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7210 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7211 (evaluate_subexp_standard): Pass noside argument.
7212 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7213 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7214 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7215 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7216 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7218 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7220 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7221 points to a constant blob.
7223 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7225 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7226 property and store it as the high bound and flag the range accordingly.
7227 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7228 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7229 * gdbtypes.h (enum range_flags): New enum.
7230 (struct range_bounds): Add flags member.
7232 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7234 * c-typeprint.c (c_type_print_varspec_suffix): Added
7235 check for not yet resolved high bound. If unresolved, print
7236 "variable length" string to the console instead of random
7239 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7241 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7242 (ada_template_to_fixed_record_type_1): Likewise.
7243 (ada_to_fixed_type_1): Likewise.
7244 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7245 (cp_print_value): Likewise.
7246 * d-valprint.c (dynamic_array_type): Likewise.
7247 * eval.c (evaluate_subexp_with_coercion): Likewise.
7248 * findvar.c (address_of_variable): Likewise.
7249 * jv-valprint.c (java_value_print): Likewise.
7250 * valops.c (value_ind): Likewise.
7251 * value.c (coerce_ref): Likewise.
7253 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7255 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7256 value and retrieve the dynamic type size.
7258 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7260 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7261 passed to sizeof is dynamic evaluate the argument to compute the length.
7263 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7265 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7266 (dwarf2_evaluate_property): New function.
7267 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7268 * dwarf2read.c (attr_to_dynamic_prop): New function.
7269 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7271 * gdbtypes.c: Include dwarf2loc.h.
7272 (is_dynamic_type): New function.
7273 (resolve_dynamic_type): New function.
7274 (resolve_dynamic_bounds): New function.
7275 (get_type_length): New function.
7276 (check_typedef): Use get_type_length to compute type length.
7277 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7278 (TYPE_LOW_BOUND_KIND): New macro.
7279 (is_dynamic_type): New function prototype.
7280 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7281 to resolve dynamic properties of the type. Update comment.
7282 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7284 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7286 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7287 declaring high/low bounds and change uses accordingly. Call
7288 create_range_type instead of create_static_range_type.
7289 * gdbtypes.c (create_range_type): New function.
7290 (create_range_type): Convert bounds into struct bound_prop and pass
7291 them to create_range_type.
7292 * gdbtypes.h (struct bound_prop): New struct.
7293 (create_range_type): New function prototype.
7294 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7295 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7296 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7298 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7300 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7302 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7303 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7304 * ada-lang.c: All uses of create_range_type updated.
7305 * coffread.c: All uses of create_range_type updated.
7306 * dwarf2read.c: All uses of create_range_type updated.
7307 * f-exp.y: All uses of create_range_type updated.
7308 * m2-valprint.c: All uses of create_range_type updated.
7309 * mdebugread.c: All uses of create_range_type updated.
7310 * stabsread.c: All uses of create_range_type updated.
7311 * valops.c: All uses of create_range_type updated.
7312 * valprint.c: All uses of create_range_type updated.
7314 2014-04-10 Pedro Alves <palves@redhat.com>
7316 * breakpoint.c (single_step_breakpoints)
7317 (single_step_gdbarch): Move up in the file.
7318 (one_breakpoint_xfer_memory): New function, factored out from ...
7319 (breakpoint_xfer_memory): ... here. Also process single-step
7322 2014-04-09 Tristan Gingold <gingold@adacore.com>
7324 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7326 (darwin_decode_exception_message): Free port only after use.
7328 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7330 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7331 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7332 when setting the size of call_length.
7334 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7336 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7337 dereference TYPE_CODE_REF values.
7339 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7341 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7342 end of warning message.
7344 2014-04-03 Doug Evans <dje@google.com>
7346 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7347 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7349 2014-04-02 Alan Modra <amodra@gmail.com>
7351 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7352 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7353 (struct symbol_file_add_from_memory_args): Add size field.
7354 (find_vdso_size): New function.
7355 (add_vsyscall_page): Attempt to find vdso size.
7357 2014-04-01 Doug Evans <dje@google.com>
7359 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7361 2014-04-01 Tristan Gingold <gingold@adacore.com>
7363 * darwin-nat.c (darwin_encode_reply): Add prototype.
7364 (darwin_decode_exception_message): Reply to unknown inferiors.
7365 (darwin_decode_message): Handle message by id. Ignore message
7366 to unknown inferior.
7367 (darwin_wait): Discard unknown messages, add debug trace.
7369 2014-03-31 Doug Evans <dje@google.com>
7371 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7374 2014-03-31 Doug Evans <dje@google.com>
7376 New option "set print symbol-loading".
7378 * solib.c (solib_read_symbols): Only print symbol loading messages
7380 (solib_add): If symbol loading is in "brief" mode, notify user
7381 symbols are being loaded.
7382 (reload_shared_libraries_1): Ditto.
7383 * symfile.c (print_symbol_loading_off): New static global.
7384 (print_symbol_loading_brief): New static global.
7385 (print_symbol_loading_full): New static global.
7386 (print_symbol_loading_enums): New static global.
7387 (print_symbol_loading): New static global.
7388 (print_symbol_loading_p): New function.
7389 (symbol_file_add_with_addrs): Only print symbol loading messages
7391 (_initialize_symfile): Register "print symbol-loading" set/show
7393 * symfile.h (print_symbol_loading_p): Declare.
7395 2014-03-30 Doug Evans <xdje42@gmail.com>
7397 * infrun.c (set_last_target_status): New function.
7398 (handle_inferior_event): Call it.
7400 2014-03-30 Doug Evans <xdje42@gmail.com>
7402 * inferior.h (enum stop_kind): Improve comment.
7404 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7406 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7407 a reference, strip the reference layer before calling
7408 the lang_ops value_has_mutated callback.
7410 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7412 Remove some globals from our parser.
7413 * language.c (unk_lang_parser): Add "struct parser_state"
7415 * language.h (struct language_defn) <la_parser>: Likewise.
7416 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7417 (initialize_expout): Add "struct parser_state" argument.
7418 Rewrite function to use the parser state.
7419 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7420 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7421 write_exp_elt_longcst, write_exp_elt_dblcst,
7422 write_exp_elt_decfloatcst, write_exp_elt_type,
7423 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7424 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7425 write_dollar_variable): Likewise.
7426 (parse_exp_in_context_1): Use parser state.
7427 (insert_type_address_space): Add "struct parser_state" argument.
7429 (increase_expout_size): New function.
7430 * parser-defs.h: Forward declare "struct language_defn" and
7431 "struct parser_state".
7432 (expout, expout_size, expout_ptr): Remove extern declarations.
7433 (parse_gdbarch, parse_language): Rewrite macro declarations to
7434 accept the parser state.
7435 (struct parser_state): New struct.
7436 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7437 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7438 write_exp_elt_decfloatcst, write_exp_elt_type,
7439 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7440 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7441 write_exp_msymbol, write_dollar_variable,
7442 mark_struct_expression, insert_type_address_space): Add "struct
7443 parser_state" argument.
7444 (increase_expout_size): New function.
7445 * utils.c (do_clear_parser_state): New function.
7446 (make_cleanup_clear_parser_state): Likewise.
7447 * utils.h (make_cleanup_clear_parser_state): New function
7449 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7450 Update calls to write_exp* in order to pass the parser state.
7451 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7452 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7453 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7454 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7455 * stap-probe.c (stap_parse_register_operand): Likewise.
7456 (stap_parse_single_operand): Likewise.
7457 (stap_parse_argument_1): Likewise.
7458 (stap_parse_argument): Use parser state.
7459 * stap-probe.h: Include "parser-defs.h".
7460 (struct stap_parse_info) <pstate>: New field.
7461 * c-exp.y (parse_type): Rewrite to use parser state.
7462 (yyparse): Redefine to c_parse_internal.
7463 (pstate): New global variable.
7464 (parse_number): Add "struct parser_state" argument.
7465 (write_destructor_name): Likewise.
7466 (type_exp): Update calls to write_exp* and similars in order to
7468 (exp1, exp, variable, qualified_name, space_identifier,
7469 typename, typebase): Likewise.
7470 (write_destructor_name, parse_number, lex_one_token,
7471 classify_name, classify_inner_name, c_parse): Add "struct
7472 parser_state" argument. Update function to use parser state.
7473 * c-lang.h: Forward declare "struct parser_state".
7474 (c_parse): Add "struct parser_state" argument.
7475 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7476 (yyparse): Redefine macro to ada_parse_internal.
7477 (pstate): New variable.
7478 (write_int, write_object_renaming, write_var_or_type,
7479 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7480 type_int, type_long, type_long_long, type_float, type_double,
7481 type_long_double, type_char, type_boolean, type_system_address):
7482 Add "struct parser_state" argument.
7483 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7484 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7485 var_or_type, aggregate, aggregate_component_list,
7486 positional_list, others, component_group,
7487 component_associations): Update calls to write_exp* and similar
7488 functions in order to use parser state.
7489 (ada_parse, write_var_from_sym, write_int,
7490 write_exp_op_with_string, write_object_renaming,
7491 find_primitive_type, write_selectors, write_ambiguous_var,
7492 write_var_or_type, write_name_assoc, type_int, type_long,
7493 type_long_long, type_float, type_double, type_long_double,
7494 type_char, type_boolean, type_system_address): Add "struct
7495 parser_state" argument. Adjust function to use parser state.
7496 * ada-lang.c (parse): Likewise.
7497 * ada-lang.h: Forward declare "struct parser_state".
7498 (ada_parse): Add "struct parser_state" argument.
7499 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7500 calls to both functions.
7501 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7503 (yyparse): Redefine macro to f_parse_internal.
7504 (pstate): New variable.
7505 (parse_number): Add "struct parser_state" argument.
7506 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7507 and similars in order to use parser state.
7508 (parse_number): Adjust code to use parser state.
7510 (f_parse): New function.
7511 * f-lang.h: Forward declare "struct parser_state".
7512 (f_parse): Add "struct parser_state" argument.
7513 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7515 (yyparse): Redefine macro for java_parse_internal.
7516 (pstate): New variable.
7517 (push_expression_name, push_expression_name, insert_exp): Add
7518 "struct parser_state" argument.
7519 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7520 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7521 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7522 PostIncrementExpression, PostDecrementExpression,
7523 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7524 UnaryExpressionNotPlusMinus, CastExpression,
7525 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7526 RelationalExpression, EqualityExpression, AndExpression,
7527 ExclusiveOrExpression, InclusiveOrExpression,
7528 ConditionalAndExpression, ConditionalOrExpression,
7529 ConditionalExpression, Assignment, LeftHandSide): Update
7530 calls to write_exp* and similars in order to use parser state.
7531 (parse_number): Ajust code to use parser state.
7533 (java_parse): New function.
7534 (push_variable): Add "struct parser_state" argument. Adjust
7535 code to user parser state.
7536 (push_fieldnames, push_qualified_expression_name,
7537 push_expression_name, insert_exp): Likewise.
7538 * jv-lang.h: Forward declare "struct parser_state".
7539 (java_parse): Add "struct parser_state" argument.
7540 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7542 (yyparse): Redefine macro to m2_parse_internal.
7543 (pstate): New variable.
7544 (type_exp, exp, fblock, variable, type): Update calls to
7545 write_exp* and similars to use parser state.
7547 (m2_parse): New function.
7548 * m2-lang.h: Forward declare "struct parser_state".
7549 (m2_parse): Add "struct parser_state" argument.
7550 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7551 * objc-lang.h: Forward declare "struct parser_state".
7552 (end_msglist): Add "struct parser_state" argument.
7553 * p-exp.y (parse_type): Rewrite macro to use parser state.
7554 (yyparse): Redefine macro to pascal_parse_internal.
7555 (pstate): New variable.
7556 (parse_number): Add "struct parser_state" argument.
7557 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7558 write_exp* and similars in order to use parser state.
7559 (parse_number, yylex): Adjust code to use parser state.
7560 (pascal_parse): New function.
7561 * p-lang.h: Forward declare "struct parser_state".
7562 (pascal_parse): Add "struct parser_state" argument.
7563 * go-exp.y (parse_type): Rewrite macro to use parser state.
7564 (yyparse): Redefine macro to go_parse_internal.
7565 (pstate): New variable.
7566 (parse_number): Add "struct parser_state" argument.
7567 (type_exp, exp1, exp, variable, type): Update calls to
7568 write_exp* and similars in order to use parser state.
7569 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7570 to use parser state.
7571 (go_parse): Likewise.
7572 * go-lang.h: Forward declare "struct parser_state".
7573 (go_parse): Add "struct parser_state" argument.
7575 2014-03-27 Doug Evans <dje@google.com>
7577 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7579 2014-03-27 Doug Evans <dje@google.com>
7581 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7582 Remove argument abbrev_section. All callers updated.
7584 2014-03-27 Doug Evans <dje@google.com>
7586 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7587 addr_base, ranges_base.
7589 2014-03-26 Keith Seitz <keiths@redhat.com>
7591 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7592 types, not VAR_DOMAIN.
7594 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7596 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7598 * features/nios2-linux.c: Regenerated.
7599 * features/nios2.c: Regenerated.
7601 2014-03-25 Pedro Alves <palves@redhat.com>
7603 * cli/cli-script.c (script_from_file): Force the interpreter to
7606 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7608 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7609 small stack allocation.
7611 2014-03-24 Tristan Gingold <gingold@adacore.com>
7613 * darwin-nat.c (exc_server): Remove unused prototype.
7614 (darwin_dump_message): Correctly display data on x86_64.
7615 (darwin_encode_reply): Fix style.
7616 Add comments and fix indentation.
7618 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7620 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7622 2014-03-22 Doug Evans <xdje42@gmail.com>
7624 * infcmd.c: Whitespace fixes.
7625 (interrupt_command): Merge two function comments into one.
7627 2014-03-22 Doug Evans <xdje42@gmail.com>
7629 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7632 2014-03-22 Yao Qi <yao@codesourcery.com>
7634 * remote.c (target_read_live_memory): Remove.
7635 (memory_xfer_live_readonly_partial): Rename it to
7636 remote_xfer_live_readonly_partial. Remove argument 'object'.
7637 All callers updated. Call remote_read_bytes_1
7638 instead of target_read_live_memory.
7639 * tracepoint.c (set_traceframe_number): Remove.
7640 (make_cleanup_restore_traceframe_number): Likewise .
7641 * tracepoint.h (set_traceframe_number): Remove declaration.
7642 (make_cleanup_restore_traceframe_number): Likewise.
7644 2014-03-22 Yao Qi <yao@codesourcery.com>
7646 * remote.c (remote_read_bytes): Move code on reading from the
7648 (remote_read_bytes_1): ... here. New function.
7650 2014-03-22 Yao Qi <yao@codesourcery.com>
7652 * ctf.c (ctf_xfer_partial): Check the return value of
7653 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7654 return TARGET_XFER_UNAVAILABLE.
7655 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7656 * target.c (target_read_live_memory): Move it to remote.c.
7657 (memory_xfer_live_readonly_partial): Likewise.
7658 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7659 * remote.c (target_read_live_memory): Moved from target.c.
7660 (memory_xfer_live_readonly_partial): Likewise.
7661 (remote_read_bytes): Factored out from
7662 memory_xfer_partial_1.
7664 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7666 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7669 2014-03-21 Pedro Alves <palves@redhat.com>
7671 * infrun.c (normal_stop): Extend comment.
7673 2014-03-21 Hui Zhu <hui@codesourcery.com>
7674 Pedro Alves <palves@redhat.com>
7676 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7678 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7679 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7680 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7682 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7684 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7685 `z' formatted output modifier.
7687 2014-03-20 Tom Tromey <tromey@redhat.com>
7688 Sergio Durigan Junior <sergiodj@redhat.com>
7690 * probe.c (parse_probes): Turn assert into an ordinary error.
7691 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7692 exceptions when parsing probes. Rearrange the code for clarity.
7694 2014-03-20 Tom Tromey <tromey@redhat.com>
7697 * top.c (execute_command): Only dispatch events if the command
7700 2014-03-20 Tom Tromey <tromey@redhat.com>
7703 * infcall.c: Include event-top.h.
7704 (run_inferior_call): Call async_disable_stdin if needed.
7706 2014-03-20 Pedro Alves <palves@redhat.com>
7708 * infrun.c (prepare_to_proceed): Delete.
7709 (thread_still_needs_step_over): New function.
7710 (find_thread_needs_step_over): New function.
7711 (proceed): If the current thread needs a step-over, set its
7712 steping_over_breakpoint flag. Adjust to use
7713 find_thread_needs_step_over instead of prepare_to_proceed.
7714 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7715 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7717 (switch_back_to_stepped_thread): Step over breakpoints of all
7718 threads not the stepping thread, before switching back to the
7721 2014-03-20 Pedro Alves <palves@redhat.com>
7723 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7725 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7726 * infrun.c (saved_singlestep_ptid)
7727 (stepping_past_singlestep_breakpoint): Delete.
7728 (resume): Remove stepping_past_singlestep_breakpoint handling.
7729 (proceed): Store the prev_pc of the stepping thread too.
7730 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7732 (enum infwait_states): Delete infwait_thread_hop_state.
7733 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7735 (handle_inferior_event): Adjust.
7736 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7737 handling and the thread-hop code. Before removing single-step
7738 breakpoints, check whether the thread hit a single-step breakpoint
7739 of another thread. If it did, the trap is not a random signal.
7740 (switch_back_to_stepped_thread): If the event thread hit a
7741 single-step breakpoint, unblock it before switching to the
7742 stepping thread. Handle the case of the stepped thread having
7744 (keep_going): Handle the case of the current thread moving past a
7745 single-step breakpoint.
7747 2014-03-20 Pedro Alves <palves@redhat.com>
7750 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7751 are being stepped over.
7752 (breakpoint_address_match): Make extern.
7753 * breakpoint.h (breakpoint_address_match): New declaration.
7754 * inferior.h (stepping_past_instruction_at): New declaration.
7755 * infrun.c (struct step_over_info): New type.
7756 (step_over_info): New global.
7757 (set_step_over_info, clear_step_over_info)
7758 (stepping_past_instruction_at): New functions.
7759 (handle_inferior_event): Clear the step-over info when
7760 trap_expected is cleared.
7761 (resume): Remove now stale comment.
7762 (clear_proceed_status): Clear step-over info.
7763 (proceed): Adjust step-over handling to set or clear the step-over
7764 info instead of removing all breakpoints.
7765 (handle_signal_stop): When setting up a thread-hop, don't remove
7767 (stop_stepping): Clear step-over info.
7768 (keep_going): Adjust step-over handling to set or clear step-over
7769 info and then always inserting breakpoints, instead of removing
7770 all breakpoints when stepping over one.
7772 2014-03-20 Pedro Alves <palves@redhat.com>
7774 * infrun.c (previous_inferior_ptid): Adjust comment.
7775 (deferred_step_ptid): Delete.
7776 (infrun_thread_ptid_changed, prepare_to_proceed)
7777 (init_wait_for_inferior): Adjust.
7778 (handle_signal_stop): Delete deferred_step_ptid handling.
7780 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7783 * defs.h (sync_quit_force_run): New declaration.
7784 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7785 * event-top.c (async_sigterm_handler): New declaration.
7786 (async_sigterm_token): New variable.
7787 (async_init_signals): Create also async_sigterm_token.
7788 (async_sigterm_handler): New function.
7789 (sync_quit_force_run): New variable.
7790 (handle_sigterm): Replace quit_force call by other calls.
7791 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7793 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7795 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7796 offset into SPE pseudo registers.
7798 2014-03-18 Pedro Alves <palves@redhat.com>
7801 * inferior.h (print_stop_event): Declare.
7802 * infrun.c (print_stop_event): New, factored out from ...
7803 (normal_stop): ... this.
7804 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7805 of bpstat_print/print_stack_frame.
7807 2014-03-17 Tom Tromey <tromey@redhat.com>
7809 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7811 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7813 * ada-lang.c (decode_constrained_packed_array): Perform a
7814 minimal coercion for reference with coerce_ref instead of
7817 2014-03-17 Tristan Gingold <gingold@adacore.com>
7819 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7820 (darwin_solib_create_inferior_hook): Emit a warning if version
7823 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7825 * python/py-value.c (get_field_flag): Cast flag_name argument to
7826 PyObject_GetAttrString to support Python 2.4.
7828 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7830 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7831 (Global Maintainers): Remove Jan Kratochvil.
7833 2014-03-14 Pedro Alves <palves@redhat.com>
7835 * inferior.h (terminal_ours_for_output): Rename to ...
7836 (child_terminal_ours_for_output): ... this.
7837 (terminal_save_ours): Rename to ...
7838 (child_terminal_save_ours): ... this.
7839 (terminal_ours): Rename to ...
7840 (child_terminal_ours): ... this.
7841 (terminal_inferior): Rename to ...
7842 (child_terminal_inferior): ... this.
7843 (terminal_init_inferior): Rename to ...
7844 (child_terminal_init_inferior): ... this.
7845 (terminal_init_inferior_with_pgrp): Rename to ...
7846 (child_terminal_init_inferior_with_pgrp): ... this.
7847 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7848 (child_terminal_init_with_pgrp): ... this.
7849 (terminal_save_ours): Rename to ...
7850 (child_terminal_save_ours): ... this.
7851 (terminal_init_inferior): Rename to ...
7852 (child_terminal_init): ... this. Adjust.
7853 (terminal_inferior): Rename to ...
7854 (child_terminal_inferior): ... this.
7855 (terminal_ours_for_output): Rename to ...
7856 (child_terminal_ours_for_output): ... this. Adjust.
7857 (terminal_ours): Rename to ...
7858 (child_terminal_ours): ... this.
7859 (terminal_ours_1): Rename to ...
7860 (child_terminal_ours_1): ... this. Adjust.
7861 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7862 * windows-nat.c (do_initial_windows_stuff): Adjust.
7863 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7864 (gnu_terminal_init): ... this. Adjust.
7865 (gnu_target): Adjust.
7866 * inf-child.c (inf_child_target): Adjust.
7868 2014-03-13 Doug Evans <xdje42@gmail.com>
7871 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7874 2014-03-13 Doug Evans <xdje42@gmail.com>
7876 * value.c (record_latest_value): Call release_value_or_incref
7877 instead of release_value.
7879 2014-03-13 Pedro Alves <palves@redhat.com>
7881 * procfs.c (procfs_target): Don't override to_shortname,
7882 to_longname or to_doc.
7884 2014-03-13 Pedro Alves <palves@redhat.com>
7886 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7887 Unix in user visible strings.
7889 2014-03-12 Stan Shebs <stan@codesourcery.com>
7891 * gdbtypes.h: Annotate comments for Doxygen, add a page
7892 block comment with some general info.
7894 2014-03-12 Pedro Alves <palves@redhat.com>
7896 * infcmd.c (prepare_execution_command): New function, factored out
7897 from several execution commands.
7898 (run_command_1, continue_command, step_1, jump_command)
7899 (signal_command, until_command, advance_command, finish_command)
7900 (attach_command): Use prepare_execution_command.
7902 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7904 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7907 (struct arm_linux_thread_points): Removed.
7908 (struct arm_linux_process_info): New.
7909 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7910 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7911 (arm_linux_find_breakpoints_by_tid): Removed.
7912 (struct arch_lwp_info): New.
7913 (arm_linux_find_process_pid): New functions.
7914 (arm_linux_add_process): New functions.
7915 (arm_linux_process_info_get): New functions.
7916 (arm_linux_forget_process): New function.
7917 (arm_linux_get_debug_reg_state): New function.
7918 (struct update_registers_data): New.
7919 (update_registers_callback): New function.
7920 (arm_linux_insert_hw_breakpoint1): Updated.
7921 (arm_linux_remove_hw_breakpoint1): Updated.
7922 (arm_linux_insert_hw_breakpoint): Updated.
7923 (arm_linux_remove_hw_breakpoint): Updated.
7924 (arm_linux_insert_watchpoint): Updated.
7925 (arm_linux_remove_watchpoint): Updated.
7926 (arm_linux_new_thread): Updated.
7927 (arm_linux_prepare_to_resume): New function.
7928 (arm_linux_new_fork): New function.
7929 (_initialize_arm_linux_nat): Updated.
7931 2014-03-12 Pedro Alves <palves@redhat.com>
7933 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7935 2014-03-12 Tom Tromey <tromey@redhat.com>
7937 * inf-child.c (return_zero): New function.
7938 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7939 * aix-thread.c (aix_thread_inferior_created): New function.
7940 (aix_thread_attach): Remove.
7941 (init_aix_thread_ops): Don't set to_attach.
7942 (_initialize_aix_thread): Register inferior_created observer.
7943 * corelow.c (init_core_ops): Don't set to_attach or
7945 * exec.c (init_exec_ops): Don't set to_attach or
7947 * infcmd.c (run_command_1): Use find_run_target. Make direct
7949 (attach_command): Use find_attach_target. Make direct target
7951 * record-btrace.c (init_record_btrace_ops): Don't set
7953 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7955 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7956 set to_create_inferior.
7957 * target.c (complete_target_initialization): Add assertion.
7958 (target_create_inferior): Remove.
7959 (find_default_attach, find_default_create_inferior): Remove.
7960 (find_attach_target, find_run_target): New functions.
7961 (find_default_is_async_p, find_default_can_async_p)
7962 (target_supports_non_stop, target_attach): Remove.
7963 (init_dummy_target): Don't set to_create_inferior or
7964 to_supports_non_stop.
7965 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7966 TARGET_DEFAULT_FUNC.
7967 <to_create_inferior>: Add comment.
7968 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7969 TARGET_DEFAULT_RETURN.
7970 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7971 (find_attach_target, find_run_target): Declare.
7972 (target_create_inferior): Remove.
7973 (target_has_execution_1): Update comment.
7974 (target_supports_non_stop): Remove.
7975 * target-delegates.c: Rebuild.
7977 2014-03-12 Pedro Alves <palves@redhat.com>
7979 * inf-child.h: Update comment to not mention Unix.
7981 2014-03-12 Pedro Alves <palves@redhat.com>
7983 * inf-child.c: Update top comment to not mention Unix. Add
7984 generic comment describing how this target is meant to be used.
7985 (inf_child_post_attach, inf_child_post_startup_inferior)
7986 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7989 2014-03-12 Pedro Alves <palves@redhat.com>
7991 * nto-procfs.c: Include inf-child.h.
7992 (procfs_ops): Delete global.
7993 (procfs_can_run): Delete method.
7994 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7995 target pointer instead of referencing procfs_ops.
7996 (procfs_prepare_to_store): Delete.
7997 (init_procfs_ops): Delete function.
7998 (procfs_target): New function, based on init_procfs_ops, but
7999 inherit inf_child_target.
8000 (_initialize_procfs): Use procfs_target.
8002 2014-03-12 Pedro Alves <palves@redhat.com>
8004 * windows-nat.c: Include inf-child.h.
8005 (windows_ops): Delete global.
8006 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8008 (init_windows_ops): Delete function.
8009 (windows_target): New function, based on init_windows_ops, but
8010 inherit inf_child_target.
8011 (_initialize_windows_nat): Use windows_target. Install x86
8012 specific target methods here.
8014 2014-03-10 Doug Evans <xdje42@gmail.com>
8016 * guile/guile.c (call_initialize_gdb_module): New function.
8017 (initialize_guile): Replace call to scm_init_guile with call to
8020 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8022 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8023 in call to TYPE_CODE macro.
8025 2014-03-10 Jerome Guitton <guitton@adacore.com>
8027 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8028 Resolve tagged types to full view.
8030 2014-03-10 Hui Zhu <hui@codesourcery.com>
8032 * target.h (target_insert_breakpoint): Remove "hardware" from its
8035 2014-03-07 Doug Evans <dje@google.com>
8037 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8039 2014-03-07 Doug Evans <dje@google.com>
8041 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8042 Remove unused local comp_dir_attr. Assert exactly one of
8043 stub_comp_unit_die, stub_comp_dir is non-NULL.
8045 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8047 * target.h (complete_target_initialization, add_target):
8050 2014-03-07 Pedro Alves <palves@redhat.com>
8052 * go32-nat.c: Include inf-child.h.
8053 (go32_ops): Delete global.
8054 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8056 (go32_create_inferior): Push the passed in target pointer instead
8057 of referencing go32_ops.
8058 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8059 (go32_target): New function, based on init_go32_ops, but inherit
8061 (_initialize_go32_nat): Use go32_target. Move parts of
8064 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8066 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8067 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8068 SYMBOL_VALUE_ADDRESS.
8069 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8071 2014-03-06 Yao Qi <yao@codesourcery.com>
8073 * breakpoint.c (get_tracepoint_by_number): Remove argument
8074 optional_p. All callers updated. Adjust comments. Update
8076 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8078 2014-03-06 Yao Qi <yao@codesourcery.com>
8080 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8081 early if get_number returns zero. Use 'p' instead of 'args'.
8083 2014-03-06 Yao Qi <yao@codesourcery.com>
8085 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8088 2014-03-06 Yao Qi <yao@codesourcery.com>
8090 PR breakpoints/16508
8091 * tracepoint.c (check_trace_running): New function.
8092 (trace_find_command): Move code to check_trace_running and
8093 call check_trace_running.
8094 (trace_find_pc_command): Likewise.
8095 (trace_find_tracepoint_command): Likewise.
8096 (trace_find_line_command): Likewise.
8097 (trace_find_range_command): Likewise.
8098 * tracepoint.h (check_trace_running): Likewise.
8099 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8101 2014-03-06 Yao Qi <yao@codesourcery.com>
8103 * target.h (struct target_ops) <to_traceframe_info>: Use
8104 TARGET_DEFAULT_NORETURN (tcomplain ()).
8105 * target-delegates.c: Regenerated.
8107 2014-03-05 Pedro Alves <palves@redhat.com>
8110 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8111 void. Update comment.
8112 (dcache_xfer_memory): Delete.
8113 (dcache_read_memory_partial): New, based on the read bits of
8115 (dcache_update): Add status parameter. Use ULONGEST for len, and
8116 adjust. Discard cache lines if the reason for the update was
8118 * dcache.h (dcache_xfer_memory): Delete declaration.
8119 (dcache_read_memory_partial): New declaration.
8120 (dcache_update): Update prototype.
8121 * target.c (raw_memory_xfer_partial): Update the dcache here.
8122 (memory_xfer_partial_1): Don't handle dcache writes here.
8124 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8126 * remote-sim.c (gdbsim_load): Add const to prog.
8128 2014-03-03 Tom Tromey <tromey@redhat.com>
8130 * elfread.c (probe_key): Change to bfd_data.
8131 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8132 now per-BFD, not per-objfile.
8133 * stap-probe.c (stap_probe_destroy): Update comment.
8134 (handle_stap_probe): Allocate on the per-BFD obstack.
8136 2014-03-03 Tom Tromey <tromey@redhat.com>
8138 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8139 * breakpoint.c (create_longjmp_master_breakpoint): Use
8141 (add_location_to_breakpoint, bkpt_probe_insert_location)
8142 (bkpt_probe_remove_location): Update.
8143 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8144 * elfread.c (elf_symfile_relocate_probe): Remove.
8145 (elf_probe_fns): Update.
8146 (insert_exception_resume_breakpoint): Change type of "probe"
8147 parameter to bound_probe.
8148 (check_exception_resume): Update.
8149 * objfiles.c (objfile_relocate1): Don't relocate probes.
8150 * probe.c (bound_probe_s): New typedef.
8151 (parse_probes): Use get_probe_address. Set sal's objfile.
8152 (find_probe_by_pc): Return a bound_probe.
8153 (collect_probes): Return a VEC(bound_probe_s).
8154 (compare_probes): Update.
8155 (gen_ui_out_table_header_info): Change type of "probes"
8157 (info_probes_for_ops): Update.
8158 (get_probe_address): New function.
8159 (probe_safe_evaluate_at_pc): Update.
8160 * probe.h (struct probe_ops) <get_probe_address>: New field.
8161 <set_semaphore, clear_semaphore>: Add objfile parameter.
8162 (struct probe) <objfile>: Remove field.
8164 <address>: Update comment.
8165 (struct bound_probe): New.
8166 (find_probe_by_pc): Return a bound_probe.
8167 (get_probe_address): Declare.
8168 * solib-svr4.c (struct probe_and_action) <address>: New field.
8169 (hash_probe_and_action, equal_probe_and_action): Update.
8170 (register_solib_event_probe): Add address parameter.
8171 (solib_event_probe_at): Update.
8172 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8174 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8175 (stap_get_probe_address): New function.
8176 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8177 (compile_probe_arg): Update.
8178 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8180 (handle_stap_probe): Don't relocate the probe.
8181 (stap_relocate): Remove.
8182 (stap_gen_info_probes_table_values): Update.
8183 (stap_probe_ops): Remove stap_relocate.
8184 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8185 (debug_sym_probe_fns): Update.
8186 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8187 * symtab.c (init_sal): Use memset.
8188 * symtab.h (struct symtab_and_line) <objfile>: New field.
8189 * tracepoint.c (start_tracing, stop_tracing): Update.
8191 2014-03-03 Tom Tromey <tromey@redhat.com>
8193 * probe.h (parse_probes, find_probe_by_pc)
8194 (find_probes_in_objfile): Fix comments.
8196 2014-03-02 Doug Evans <xdje42@gmail.com>
8198 * infrun.c (handle_signal_stop): Replace test for
8199 TARGET_WAITKIND_STOPPED with an assert.
8201 2014-03-02 Doug Evans <xdje42@gmail.com>
8203 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8205 2014-03-02 Doug Evans <xdje42@gmail.com>
8207 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8209 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8211 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8213 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8215 * i386obsd-nat.c: Include "obsd-nat.h".
8216 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8218 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8220 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8222 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8224 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8226 * mips64obsd-nat.c: Include "obsd-nath".
8227 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8229 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8231 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8233 * amd64obsd-nat.c: Include "obsd-nat,h.
8234 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8236 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8238 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8240 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8241 (find_overload_match): Update call to find_oload_champ.
8242 (find_oload_champ_namespace_loop): Likewise
8244 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8246 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8248 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8249 * config/sparc/obsd64.mh: New file.
8250 * sparc64obsd-nat.c: New file.
8252 * obsd-nat.h: New file.
8253 * obsd-nat.c: New file.
8254 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8255 (ALLDEPFILES): Add obsd-nat.c.
8257 2014-02-28 Tom Tromey <tromey@redhat.com>
8259 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8260 * cli-out.h (cli_ui_out_impl): Now const.
8261 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8262 * ui-out.c (struct ui_out) <impl>: Now const.
8263 (default_ui_out_impl): Now const.
8264 (ui_out_new): Make 'impl' parameter const.
8265 * ui-out.h (ui_out_new): Update.
8267 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8269 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8271 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8273 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8275 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8277 Additional PR 8882 fix.
8278 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8280 2014-02-27 Pedro Alves <palves@redhat.com>
8282 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8285 2014-02-27 Pedro Alves <palves@redhat.com>
8288 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8289 * nat/linux-waitpid.c: Include string.h.
8290 (status_to_str): Moved here and made extern.
8291 * nat/linux-waitpid.h (status_to_str): New declaration.
8293 2014-02-27 Hui Zhu <hui@codesourcery.com>
8296 * infrun.c (ptid_match): Move ...
8297 * common/ptid.c (ptid_match): ... here.
8298 * inferior.h (ptid_match): Move ...
8299 * common/ptid.h (ptid_match): ... here.
8301 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8303 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8304 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8307 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8309 * obsd-tdep.c (obsd_auxv_parse): New function.
8310 (obsd_init_abi): Set auxv_parse.
8312 * gdbarch.sh (auxv_parse): New.
8313 * gdbarch.h: Regenerated.
8314 * gdbarch.c: Regenerated.
8315 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8317 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8319 * guile/scm-value.c (gdbscm_history_append_x): New function.
8320 (value_functions): Add it.
8322 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8324 * dwarf2read.c (attr_value_as_address): New function.
8325 (dwarf2_find_base_address, read_call_site_scope): Use
8326 attr_value_as_address in place of DW_ADDR.
8327 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8328 the low and high addresses. Slight rework of the handling
8329 of the high pc being a constant form, and limit it to
8330 DWARF verson 4 or higher.
8331 (dwarf2_record_block_ranges): Likewise.
8332 (read_partial_die): Likewise.
8333 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8335 2014-02-26 Tom Tromey <tromey@redhat.com>
8337 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8339 2014-02-26 Tom Tromey <tromey@redhat.com>
8341 * elfread.c (elf_read_minimal_symbols): Return early if
8342 minimal symbols have already been read. Add "ei" parameter.
8343 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8344 * minsyms.c (prim_record_minimal_symbol_full): Update.
8345 * objfiles.h (struct objstats) <n_minsyms>: Move...
8346 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8347 * symmisc.c (print_objfile_statistics): Update.
8349 2014-02-26 Tom Tromey <tromey@redhat.com>
8351 * elfread.c (elf_read_minimal_symbols): New function, from
8353 (elf_symfile_read): Call it.
8355 2014-02-26 Tom Tromey <tromey@redhat.com>
8357 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8358 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8359 (lookup_minimal_symbol_solib_trampoline)
8360 (lookup_minimal_symbol_by_pc_section_1)
8361 (lookup_minimal_symbol_and_objfile): Update.
8362 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8363 Don't allocate a minimal symbol if minsyms have already been read.
8364 (build_minimal_symbol_hash_tables): Update.
8365 (install_minimal_symbols): Do nothing if minsyms already read.
8366 Use the per-BFD obstack.
8367 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8368 * objfiles.c (allocate_objfile): Call
8369 terminate_minimal_symbol_table later.
8370 (have_minimal_symbols): Update.
8371 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8372 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8373 Move from struct objfile.
8374 <minsyms_read>: New field.
8375 (struct objfile) <msymbols, minimal_symbol_count,
8376 msymbol_hash, msymbol_demangled_hash>: Move.
8377 (ALL_OBJFILE_MSYMBOLS): Update.
8378 * symfile.c (read_symbols): Set minsyms_read.
8379 (reread_symbols): Update.
8380 * symmisc.c (dump_objfile, dump_msymbols): Update.
8382 2014-02-26 Tom Tromey <tromey@redhat.com>
8384 * minsyms.c (msymbols_sort): Remove.
8385 * minsyms.h (msymbols_sort): Remove.
8386 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8387 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8388 * elfread.c (elf_symtab_read): Don't add section offsets.
8389 * xcoffread.c (record_minimal_symbol): Don't add section offset
8390 to minimal symbol address.
8391 * somread.c (text_offset, data_offset): Remove.
8392 (som_symtab_read): Don't add section offsets to minimal symbol
8394 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8395 Don't add section offsets to minimal symbols.
8396 * coffread.c (coff_symtab_read): Don't add section offsets
8397 to minimal symbol addresses.
8398 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8399 to minimal symbol addresses.
8400 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8401 section offset to minimal symbol addresses.
8402 * mdebugread.c (parse_partial_symbols): Don't add section
8403 offset to minimal symbol addresses.
8404 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8405 offset to minimal symbol addresses.
8407 2014-02-26 Tom Tromey <tromey@redhat.com>
8409 * ada-lang.c (ada_main_name): Update.
8410 (ada_add_standard_exceptions): Update.
8411 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8412 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8413 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8414 * auxv.c (ld_so_xfer_auxv): Update.
8415 * avr-tdep.c (avr_scan_prologue): Update.
8416 * ax-gdb.c (gen_var_ref): Update.
8417 * blockframe.c (get_pc_function_start)
8418 (find_pc_partial_function_gnu_ifunc): Update.
8419 * breakpoint.c (create_overlay_event_breakpoint)
8420 (create_longjmp_master_breakpoint)
8421 (create_std_terminate_master_breakpoint)
8422 (create_exception_master_breakpoint): Update.
8423 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8424 * c-valprint.c (c_val_print): Update.
8425 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8426 * common/agent.c (agent_look_up_symbols): Update.
8427 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8428 * dwarf2loc.c (call_site_to_target_addr): Update.
8429 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8430 * elfread.c (elf_gnu_ifunc_record_cache)
8431 (elf_gnu_ifunc_resolve_by_got): Update.
8432 * findvar.c (default_read_var_value): Update.
8433 * frame.c (inside_main_func): Update.
8434 * frv-tdep.c (frv_frame_this_id): Update.
8435 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8436 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8438 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8439 (hppa_hpux_find_dummy_bpaddr): Update.
8440 * hppa-tdep.c (hppa_symbol_address): Update.
8441 * infcmd.c (until_next_command): Update.
8442 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8444 * linespec.c (minsym_found, add_minsym): Update.
8445 * linux-nat.c (get_signo): Update.
8446 * linux-thread-db.c (inferior_has_bug): Update.
8447 * m32c-tdep.c (m32c_return_value)
8448 (m32c_m16c_address_to_pointer): Update.
8449 * m32r-tdep.c (m32r_frame_this_id): Update.
8450 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8451 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8452 * maint.c (maintenance_translate_address): Update.
8453 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8454 (frob_address): New function.
8455 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8456 frob_address. Rename parameter to "pc_in".
8457 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8459 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8461 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8462 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8463 * objc-lang.c (find_objc_msgsend): Update.
8464 * objfiles.c (objfile_relocate1): Update.
8465 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8466 * p-valprint.c (pascal_val_print): Update.
8467 * parse.c (write_exp_msymbol): Update.
8468 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8469 (ppc_elfv2_skip_entrypoint): Update.
8470 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8471 * printcmd.c (build_address_symbolic, msym_info)
8472 (address_info): Update.
8473 * proc-service.c (ps_pglobal_lookup): Update.
8474 * psymtab.c (find_pc_sect_psymtab_closer)
8475 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8476 Change msymbol parameter to bound_minimal_symbol.
8477 * ravenscar-thread.c (get_running_thread_id): Update.
8478 * remote.c (remote_check_symbols): Update.
8479 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8481 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8482 * solib-dsbt.c (lm_base): Update.
8483 * solib-frv.c (lm_base, main_got): Update.
8484 * solib-irix.c (locate_base): Update.
8485 * solib-som.c (som_solib_create_inferior_hook)
8486 (link_map_start): Update.
8487 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8488 * solib-svr4.c (elf_locate_base, enable_break): Update.
8489 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8490 (flush_ea_cache): Update.
8491 * stabsread.c (define_symbol, scan_file_globals): Update.
8492 * stack.c (find_frame_funname): Update.
8493 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8494 (debug_qf_find_pc_sect_symtab): Update.
8495 * symfile.c (simple_read_overlay_table)
8496 (simple_overlay_update): Update.
8497 * symfile.h (struct quick_symbol_functions)
8498 <find_pc_sect_symtab>: Change type of msymbol to
8499 bound_minimal_symbol.
8500 * symmisc.c (dump_msymbols): Update.
8501 * symtab.c (find_pc_sect_symtab_via_partial)
8502 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8503 (search_symbols, print_msymbol_info): Update.
8504 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8505 (MSYMBOL_VALUE_ADDRESS): Redefine.
8506 (BMSYMBOL_VALUE_ADDRESS): New macro.
8507 * tracepoint.c (scope_info): Update.
8508 * tui/tui-disasm.c (tui_find_disassembly_address)
8509 (tui_get_begin_asm_address): Update.
8510 * valops.c (find_function_in_inferior): Update.
8511 * value.c (value_static_field, value_fn_field): Update.
8513 2014-02-26 Tom Tromey <tromey@redhat.com>
8515 * ada-lang.c (ada_update_initial_language): Update.
8516 (ada_main_name, ada_has_this_exception_support): Update.
8517 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8518 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8519 * arm-tdep.c (arm_skip_stub): Update.
8520 * auxv.c (ld_so_xfer_auxv): Update.
8521 * avr-tdep.c (avr_scan_prologue): Update.
8522 * ax-gdb.c (gen_var_ref): Update.
8523 * breakpoint.c (struct breakpoint_objfile_data)
8524 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8525 type to bound_minimal_symbol.
8526 (create_overlay_event_breakpoint)
8527 (create_longjmp_master_breakpoint)
8528 (create_std_terminate_master_breakpoint)
8529 (create_exception_master_breakpoint): Update.
8530 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8531 * c-exp.y (classify_name): Update.
8532 * coffread.c (coff_symfile_read): Update.
8533 * common/agent.c (agent_look_up_symbols): Update.
8534 * d-lang.c (d_main_name): Update.
8535 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8536 * dec-thread.c (enable_dec_thread): Update.
8537 * dwarf2loc.c (call_site_to_target_addr): Update.
8538 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8539 * eval.c (evaluate_subexp_standard): Update.
8540 * findvar.c (struct minsym_lookup_data) <result>: Change type
8541 to bound_minimal_symbol.
8543 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8544 * frame.c (inside_main_func): Update.
8545 * frv-tdep.c (frv_frame_this_id): Update.
8546 * gcore.c (call_target_sbrk): Update.
8547 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8548 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8550 * go-lang.c (go_main_name): Update.
8551 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8552 (hppa_hpux_find_import_stub_for_addr): Update.
8553 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8554 Update. Change return type.
8555 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8557 * jit.c (jit_breakpoint_re_set_internal): Update.
8558 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8560 * linux-nat.c (get_signo): Update.
8561 * linux-thread-db.c (inferior_has_bug): Update
8562 * m32c-tdep.c (m32c_return_value)
8563 (m32c_m16c_address_to_pointer): Update.
8564 * m32r-tdep.c (m32r_frame_this_id): Update.
8565 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8566 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8567 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8568 lookup_minimal_symbol. Change return type.
8569 (lookup_minimal_symbol): Remove.
8570 (lookup_bound_minimal_symbol): Update.
8571 (lookup_minimal_symbol_text): Change return type.
8572 (lookup_minimal_symbol_solib_trampoline): Change return type.
8573 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8574 (lookup_minimal_symbol_solib_trampoline): Change return type.
8575 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8576 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8577 (value_nsstring, find_imps): Update.
8578 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8579 * p-lang.c (pascal_main_name): Update.
8580 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8581 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8582 * proc-service.c (ps_pglobal_lookup): Update.
8583 * ravenscar-thread.c (get_running_thread_msymbol): Change
8585 (has_ravenscar_runtime, get_running_thread_id): Update.
8586 * remote.c (remote_check_symbols): Update.
8587 * sol-thread.c (ps_pglobal_lookup): Update.
8588 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8589 * solib-dsbt.c (lm_base): Update.
8590 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8592 * solib-irix.c (locate_base): Update.
8593 * solib-som.c (som_solib_create_inferior_hook)
8594 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8596 * solib-spu.c (spu_enable_break): Update.
8597 * solib-svr4.c (elf_locate_base, enable_break): Update.
8598 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8599 (flush_ea_cache): Update.
8600 * stabsread.c (define_symbol): Update.
8601 * symfile.c (simple_read_overlay_table): Update.
8602 * symtab.c (find_pc_sect_line): Update.
8603 * tracepoint.c (scope_info): Update.
8604 * tui-disasm.c (tui_get_begin_asm_address): Update.
8605 * value.c (value_static_field): Update.
8607 2014-02-26 Tom Tromey <tromey@redhat.com>
8609 * minsyms.c (prim_record_minimal_symbol_full): Use
8610 SET_MSYMBOL_VALUE_ADDRESS.
8611 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8612 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8613 SET_MSYMBOL_VALUE_ADDRESS.
8614 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8615 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8617 2014-02-26 Tom Tromey <tromey@redhat.com>
8619 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8620 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8621 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8622 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8623 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8624 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8625 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8626 * ada-lang.c (ada_main_name): Update.
8627 (ada_lookup_simple_minsym): Update.
8628 (ada_make_symbol_completion_list): Update.
8629 (ada_add_standard_exceptions): Update.
8630 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8631 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8632 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8633 * arm-tdep.c (skip_prologue_function): Update.
8634 (arm_skip_stack_protector, arm_skip_stub): Update.
8635 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8636 (arm_wince_skip_main_prologue): Update.
8637 * auxv.c (ld_so_xfer_auxv): Update.
8638 * avr-tdep.c (avr_scan_prologue): Update.
8639 * ax-gdb.c (gen_var_ref): Update.
8640 * block.c (call_site_for_pc): Update.
8641 * blockframe.c (get_pc_function_start): Update.
8642 (find_pc_partial_function_gnu_ifunc): Update.
8643 * breakpoint.c (create_overlay_event_breakpoint): Update.
8644 (create_longjmp_master_breakpoint): Update.
8645 (create_std_terminate_master_breakpoint): Update.
8646 (create_exception_master_breakpoint): Update.
8647 (resolve_sal_pc): Update.
8648 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8649 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8651 * c-valprint.c (c_val_print): Update.
8652 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8653 * coffread.c (coff_symfile_read): Update.
8654 * common/agent.c (agent_look_up_symbols): Update.
8655 * dbxread.c (find_stab_function_addr): Update.
8656 (end_psymtab): Update.
8657 * dwarf2loc.c (call_site_to_target_addr): Update.
8658 (func_verify_no_selftailcall): Update.
8659 (tailcall_dump): Update.
8660 (call_site_find_chain_1): Update.
8661 (dwarf_expr_reg_to_entry_parameter): Update.
8662 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8663 (elf_gnu_ifunc_resolve_by_got): Update.
8664 * f-valprint.c (info_common_command): Update.
8665 * findvar.c (read_var_value): Update.
8666 * frame.c (get_prev_frame_1): Update.
8667 (inside_main_func): Update.
8668 * frv-tdep.c (frv_skip_main_prologue): Update.
8669 (frv_frame_this_id): Update.
8670 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8671 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8672 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8673 (gnuv3_skip_trampoline): Update.
8674 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8675 (hppa64_hpux_in_solib_call_trampoline): Update.
8676 (hppa_hpux_skip_trampoline_code): Update.
8677 (hppa64_hpux_search_dummy_call_sequence): Update.
8678 (hppa_hpux_find_import_stub_for_addr): Update.
8679 (hppa_hpux_find_dummy_bpaddr): Update.
8680 * hppa-tdep.c (hppa_symbol_address)
8681 (hppa_lookup_stub_minimal_symbol): Update.
8682 * i386-tdep.c (i386_skip_main_prologue): Update.
8683 (i386_pe_skip_trampoline_code): Update.
8684 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8685 * infcall.c (get_function_name): Update.
8686 * infcmd.c (until_next_command): Update.
8687 * jit.c (jit_breakpoint_re_set_internal): Update.
8688 (jit_inferior_init): Update.
8689 * linespec.c (minsym_found): Update.
8690 (add_minsym): Update.
8691 * linux-fork.c (info_checkpoints_command): Update.
8692 * linux-nat.c (get_signo): Update.
8693 * linux-thread-db.c (inferior_has_bug): Update.
8694 * m32c-tdep.c (m32c_return_value): Update.
8695 (m32c_m16c_address_to_pointer): Update.
8696 (m32c_m16c_pointer_to_address): Update.
8697 * m32r-tdep.c (m32r_frame_this_id): Update.
8698 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8699 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8700 * maint.c (maintenance_translate_address): Update.
8701 * minsyms.c (add_minsym_to_hash_table): Update.
8702 (add_minsym_to_demangled_hash_table): Update.
8703 (msymbol_objfile): Update.
8704 (lookup_minimal_symbol): Update.
8705 (iterate_over_minimal_symbols): Update.
8706 (lookup_minimal_symbol_text): Update.
8707 (lookup_minimal_symbol_by_pc_name): Update.
8708 (lookup_minimal_symbol_solib_trampoline): Update.
8709 (lookup_minimal_symbol_by_pc_section_1): Update.
8710 (lookup_minimal_symbol_and_objfile): Update.
8711 (prim_record_minimal_symbol_full): Update.
8712 (compare_minimal_symbols): Update.
8713 (compact_minimal_symbols): Update.
8714 (build_minimal_symbol_hash_tables): Update.
8715 (install_minimal_symbols): Update.
8716 (terminate_minimal_symbol_table): Update.
8717 (find_solib_trampoline_target): Update.
8718 (minimal_symbol_upper_bound): Update.
8719 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8720 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8721 (mips_skip_pic_trampoline_code): Update.
8722 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8723 * objc-lang.c (selectors_info): Update.
8724 (classes_info): Update.
8725 (find_methods): Update.
8726 (find_imps): Update.
8727 (find_objc_msgsend): Update.
8728 * objfiles.c (objfile_relocate1): Update.
8729 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8730 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8731 * p-valprint.c (pascal_val_print): Update.
8732 * parse.c (write_exp_msymbol): Update.
8733 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8734 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8735 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8736 * printcmd.c (build_address_symbolic): Update.
8738 (address_info): Update.
8739 * proc-service.c (ps_pglobal_lookup): Update.
8740 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8741 (find_pc_sect_psymtab): Update.
8742 * python/py-framefilter.c (py_print_frame): Update.
8743 * ravenscar-thread.c (get_running_thread_id): Update.
8744 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8746 * remote.c (remote_check_symbols): Update.
8747 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8748 (rs6000_skip_trampoline_code): Update.
8749 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8750 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8751 * solib-dsbt.c (lm_base): Update.
8752 * solib-frv.c (lm_base): Update.
8754 * solib-irix.c (locate_base): Update.
8755 * solib-som.c (som_solib_create_inferior_hook): Update.
8756 (som_solib_desire_dynamic_linker_symbols): Update.
8757 (link_map_start): Update.
8758 * solib-spu.c (spu_enable_break): Update.
8759 (ocl_enable_break): Update.
8760 * solib-svr4.c (elf_locate_base): Update.
8761 (enable_break): Update.
8762 * spu-tdep.c (spu_get_overlay_table): Update.
8763 (spu_catch_start): Update.
8764 (flush_ea_cache): Update.
8765 * stabsread.c (define_symbol): Update.
8766 (scan_file_globals): Update.
8767 * stack.c (find_frame_funname): Update.
8768 (frame_info): Update.
8769 * symfile.c (simple_read_overlay_table): Update.
8770 (simple_overlay_update): Update.
8771 * symmisc.c (dump_msymbols): Update.
8772 * symtab.c (fixup_section): Update.
8773 (find_pc_sect_line): Update.
8774 (skip_prologue_sal): Update.
8775 (search_symbols): Update.
8776 (print_msymbol_info): Update.
8777 (rbreak_command): Update.
8778 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8779 (completion_list_objc_symbol): Update.
8780 (default_make_symbol_completion_list_break_on): Update.
8781 * tracepoint.c (scope_info): Update.
8782 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8783 (tui_get_begin_asm_address): Update.
8784 * valops.c (find_function_in_inferior): Update.
8785 * value.c (value_static_field): Update.
8786 (value_fn_field): Update.
8788 2014-02-26 Tom Tromey <tromey@redhat.com>
8790 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8791 bound minimal symbols. Move code that knows about minsym
8793 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8795 * minsyms.h (minimal_symbol_upper_bound): Declare.
8796 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8797 minimal_symbol_upper_bound.
8799 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8801 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8802 Use the type's name if its basic type does not have a tag.
8804 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8806 * dwarf2read.c (read_subrange_type): Add comment.
8808 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8810 * dwarf2read.c (update_enumeration_type_from_children): New
8811 function, mostly extracted from process_structure_scope.
8812 (read_enumeration_type): Call update_enumeration_type_from_children.
8813 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8814 and flag_flag_enum fields.
8816 2014-02-26 Pedro Alves <palves@redhat.com>
8818 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8819 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8820 to_xfer_partial method.
8822 2014-02-26 Pedro Alves <palves@redhat.com>
8824 * target.c (complete_target_initialization): Don't install
8825 default_xfer_partial as to_xfer_partial hook.
8827 (update_current_target): Don't INHERIT nor de_fault
8828 deprecated_xfer_memory. Delete de_fault macro.
8829 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8830 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8831 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8834 2014-02-26 Pedro Alves <palves@redhat.com>
8836 * go32-nat.c (my_write_child): New function.
8837 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8838 (go32_xfer_partial): New function.
8839 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8840 Instead install a to_xfer_partial hook.
8842 2014-02-26 Pedro Alves <palves@redhat.com>
8844 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8845 to_xfer_partial helper. Rewrite.
8846 (procfs_xfer_partial): New function.
8847 (init_procfs_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-m32r-sdi.c (send_data): Constify 'buf' parameter.
8853 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8854 (m32r_xfer_partial): New function.
8855 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8856 Install a to_xfer_partial hook.
8858 2014-02-26 Pedro Alves <palves@redhat.com>
8860 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8862 (mips_xfer_partial): New function.
8863 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8864 hook. Install a to_xfer_partial hook.
8866 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8868 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8869 * gdbtypes.c (create_array_type_with_stride): New function,
8870 renaming create_array_type, but with an added parameter
8871 called "bit_stride".
8872 (create_array_type): Re-implement using
8873 create_array_type_with_stride.
8874 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8875 and DW_AT_bit_stride attributes.
8877 2014-02-26 Pedro Alves <palves@redhat.com>
8879 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8880 task-specific breakpoints.
8882 2014-02-25 Pedro Alves <palves@redhat.com>
8884 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8885 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8887 2014-02-25 Stan Shebs <stan@codesourcery.com>
8889 * defs.h: Annotate comments for Doxygen.
8891 2014-02-25 Tom Tromey <tromey@redhat.com>
8893 * target.h (target_ignore): Don't declare.
8894 * target.c (target_ignore): Remove.
8896 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8899 * auto-load.c (auto_load_objfile_script_1): Change filename to
8902 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8904 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8905 documentation. Adjust prototype to match the target_ops
8906 to_xfer_partial method. Adjust implementation accordingly.
8908 2014-02-25 Hui Zhu <hui@codesourcery.com>
8910 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8913 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8915 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8916 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8917 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8918 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8919 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8920 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8921 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8922 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8924 (rl78_register_type): Use a data pointer type for SP and
8925 new pseudo registers mentioned above. Use a 16 bit integer
8926 type for all other register pairs.
8927 (rl78_register_name, rl78_g10_register_name): Update for
8928 new pseudo registers.
8929 (rl78_pseudo_register_read): Likewise.
8930 (rl78_pseudo_register_write): Likewise.
8931 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8932 to the newly added pseudo registers.
8934 2014-02-24 Doug Evans <dje@google.com>
8936 * value.c (record_latest_value): Fix comment.
8937 * printcmd.c (print_command_1): Remove code to handle -1 return from
8938 record_latest_value.
8940 2014-02-24 Pedro Alves <palves@redhat.com>
8942 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8943 deprecated_xfer_memory hook.
8944 (procfs_xfer_partial): Call procfs_xfer_memory instead
8945 of the deprecated_xfer_memory target hook.
8946 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8949 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8951 * windows-nat.c (windows_xfer_shared_libraries): Return
8952 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8953 requested object is TARGET_OBJECT_LIBRARIES.
8955 2014-02-24 Yao Qi <yao@codesourcery.com>
8957 * target.h (enum target_xfer_status)
8958 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8959 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8961 * corefile.c (memory_error_message): User updated.
8962 * exec.c (section_table_read_available_memory): Likewise.
8963 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8964 * target.c (target_xfer_status_to_string): Likewise.
8965 (raw_memory_xfer_partial): Likewise.
8966 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8967 * valops.c (read_value_memory): Likewise.
8968 * exec.h: Update comments.
8970 2014-02-24 Yao Qi <yao@codesourcery.com>
8972 * target.c (target_xfer_status_to_string): Rename argument err
8974 * target.h (target_xfer_status_to_string): Update declaration.
8975 Replace target_xfer_error_to_string with
8976 target_xfer_status_to_string in comment.
8978 2014-02-24 Yao Qi <yao@codesourcery.com>
8980 * mips-linux-nat.c (super_close): Update its type.
8981 (mips_linux_close): Pass 'self' to super_close.
8983 2014-02-24 Yao Qi <yao@codesourcery.com>
8985 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8986 * corefile.c (read_memory): Adjusted.
8987 * target.c (target_write_with_progress): Adjusted.
8989 2014-02-23 Yao Qi <yao@codesourcery.com>
8993 2013-10-25 Yao Qi <yao@codesourcery.com>
8995 * remote.c (remote_traceframe_info): Return early if
8996 traceframe is not selected.
8998 2013-07-19 Yao Qi <yao@codesourcery.com>
9000 * target.c (update_current_target): Change the default action
9001 of 'to_traceframe_info' from tcomplain to return_zero.
9002 * target.h (struct target_ops) <to_traceframe_info>: Add more
9005 2014-02-23 Yao Qi <yao@codesourcery.com>
9007 * valops.c (read_value_memory): Rewrite it. Call
9008 target_xfer_partial in a loop.
9009 * exec.h (section_table_available_memory): Remove declaration.
9010 Move comments to ...
9011 * exec.c (section_table_available_memory): ... here. Make it
9014 2014-02-23 Yao Qi <yao@codesourcery.com>
9016 * exec.c (section_table_read_available_memory): New function.
9017 * exec.h (section_table_read_available_memory): Declare.
9018 * ctf.c (ctf_xfer_partial): Call
9019 section_table_read_available_memory.
9020 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9022 2014-02-23 Yao Qi <yao@codesourcery.com>
9024 * ctf.c (ctf_xfer_partial): Move code to ...
9025 * exec.c (exec_read_partial_read_only): ... it. New function.
9026 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9027 * tracefile.c: Include "exec.h".
9028 * exec.h (exec_read_partial_read_only): Declare.
9030 2014-02-23 Yao Qi <yao@codesourcery.com>
9032 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9033 (tfile_has_memory): Remove.
9034 (init_tfile_ops): Don't set fields to_has_all_memory and
9035 to_has_memory of tfile_ops.
9036 * tracefile.c (tracefile_has_all_memory): New function.
9037 (tracefile_has_memory): New function.
9038 (init_tracefile_ops): Initialize fields to_has_all_memory and
9039 to_has_memory of 'ops'.
9041 2014-02-23 Yao Qi <yao@codesourcery.com>
9043 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9044 (ctf_thread_alive, ctf_get_trace_status): Remove.
9045 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9047 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9048 (tfile_has_stack, tfile_has_registers): Remove.
9049 (tfile_thread_alive): Remove.
9050 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9052 * tracefile.c (tracefile_has_stack): New function.
9053 (tracefile_has_registers): New function.
9054 (tracefile_thread_alive): New function.
9055 (tracefile_get_trace_status): New function.
9056 (init_tracefile_ops): New function.
9057 * tracefile.h (init_tracefile_ops): Declare.
9059 2014-02-23 Yao Qi <yao@codesourcery.com>
9061 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9062 (O_LARGEFILE): Likewise.
9063 (tfile_ops): Likewise.
9064 (TRACE_HEADER_SIZE): Likewise.
9065 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9066 (cur_data_size): Likewise.
9067 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9068 (tfile_close, tfile_files_info): Likewise.
9069 (tfile_get_trace_status): Likewise.
9070 (tfile_get_tracepoint_status): Likewise.
9071 (tfile_get_traceframe_address): Likewise.
9072 (tfile_trace_find, match_blocktype): Likewise.
9073 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9074 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9075 (tfile_get_trace_state_variable_value): Likewise.
9076 (tfile_has_all_memory, tfile_has_memory): Likewise.
9077 (tfile_has_stack, tfile_has_registers): Likewise.
9078 (tfile_thread_alive, build_traceframe_info): Likewise.
9079 (tfile_traceframe_info, init_tfile_ops): Likewise.
9080 (_initialize_tracepoint): Don't call init_tfile_ops
9081 and add_target_with_completer.
9082 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9083 exec.h, completer.h and filenames.h.
9084 (_initialize_tracefile_tfile): New function.
9086 2014-02-23 Yao Qi <yao@codesourcery.com>
9088 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9090 (HFILES_NO_SRCDIR): Add tracefile.h.
9091 * ctf.c: Include "tracefile.h".
9092 * tracefile.h: New file.
9093 * tracefile.c: New file
9094 * tracefile-tfile.c: New file.
9095 * tracepoint.c: Include "tracefile.h".
9096 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9097 (stop_reason_names): Add const.
9098 (trace_file_writer_xfree): Move it to tracefile.c.
9099 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9100 (trace_save_ctf): Likewise.
9101 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9102 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9103 (tfile_write_header, tfile_write_regblock_type): Likewise.
9104 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9105 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9106 (tfile_write_raw_data, tfile_end): Likewise.
9107 (tfile_trace_file_writer_new): Likewise.
9108 (free_uploaded_tp): Make it extern.
9109 (free_uploaded_tsv): Make it extern.
9110 (_initialize_tracepoint): Move code to register command 'tsave'
9112 * tracepoint.h (stop_reason_names): Declare.
9113 (struct trace_frame_write_ops): Move it to tracefile.h.
9114 (struct trace_file_write_ops): Likewise.
9115 (struct trace_file_writer): Likewise.
9116 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9118 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9121 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9123 (get_cores_used_by_process): New parameter num_cores, use it.
9124 (linux_xfer_osdata_processes): Pass num_cores to it.
9125 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9128 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9130 * target.c (memory_xfer_partial): Fix length arg in call to
9131 breakpoint_xfer_memory.
9133 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9136 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9137 number comes after the + or - signs. Adjust length of register
9138 name to be extracted.
9140 2014-02-20 Tom Tromey <tromey@redhat.com>
9142 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9143 (ada_varobj_ops): Mark "extern".
9145 2014-02-20 Tom Tromey <tromey@redhat.com>
9147 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9149 2014-02-20 Doug Evans <xdje42@gmail.com>
9151 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9152 All callers updated.
9153 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9154 All callers updated.
9155 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9156 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9158 2014-02-20 lin zuojian <manjian2006@gmail.com>
9159 Joel Brobecker <brobecker@adacore.com>
9160 Doug Evans <xdje42@gmail.com>
9163 * dwarf2read.c (struct die_info): New member in_process.
9164 (reset_die_in_process): New function.
9165 (process_die): Set it at the start, reset when returning.
9166 (inherit_abstract_dies): Only call process_die if origin_child_die
9167 not already being processed.
9169 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9171 * windows-nat.c (handle_unload_dll): Add function documentation.
9172 (do_initial_windows_stuff): Add comment explaining why we wait
9173 until after inferior initialization has finished before
9174 processing all DLLs.
9176 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9178 * windows-nat.c (get_module_name): Delete.
9179 (windows_get_exec_module_filename): New function, mostly
9180 inspired from get_module_name.
9181 (windows_pid_to_exec_file): Replace call to get_module_name
9182 by call to windows_get_exec_module_filename.
9184 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9186 * windows-nat.c (handle_load_dll): Rewrite this function's
9187 introductory comment. Remove code using get_module_name
9188 to get the DLL's name.
9190 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9192 * windows-nat.c (get_windows_debug_event): Ignore
9193 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9194 if windows_initialization_done == 0.
9195 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9196 Adjust implementation to always load all DLLs.
9197 (do_initial_windows_stuff): Replace call to
9198 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9200 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9202 * windows-nat.c (_initialize_windows_nat): Deprecate the
9203 "dll-symbols" command. Turn the "add-shared-symbol-files"
9204 and "assf" aliases into commands, and deprecate them as well.
9205 * NEWS: Add entry explaining that "dll-symbols" and its two
9206 aliases are now deprecated.
9208 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9210 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9211 new-line in debug string. Remove trailing spaces.
9213 2014-02-19 Stan Shebs <stan@codesourcery.com>
9215 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9217 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9219 * NEWS: Add entry for the new feature
9220 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9223 2014-02-19 Stan Shebs <stan@codesourcery.com>
9225 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9227 2014-02-19 Pedro Alves <palves@redhat.com>
9229 * common/ptid.h (struct ptid): Mention that process_stratum
9230 targets should prefer ptid.lwp.
9232 2014-02-19 Pedro Alves <palves@redhat.com>
9234 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9235 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9236 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9237 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9238 store remote thread ids rather than ptid.tid.
9239 (_initialize_remote): Adjust.
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9243 * target.c (target_get_unwinder): Rewrite.
9244 (target_get_tailcall_unwinder): Rewrite.
9245 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9246 (record_btrace_to_get_tailcall_unwinder): New function.
9247 (init_record_btrace_ops): Update.
9248 * target.h (struct target_ops) <to_get_unwinder,
9249 to_get_tailcall_unwinder>: Now function pointers. Use
9250 TARGET_DEFAULT_RETURN.
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9256 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9262 * target-delegates.c: Rebuild.
9263 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9264 TARGET_DEFAULT_FUNC.
9265 * target.c (default_target_decr_pc_after_break): Rename from
9266 forward_target_decr_pc_after_break. Simplify.
9267 (target_decr_pc_after_break): Rely on delegation.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target.c (update_current_target): Do not INHERIT to_doc or
9272 to_magic. Do not de_fault to_open or to_close.
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * gcore.h (objfile_find_memory_regions): Declare.
9277 * gcore.c (objfile_find_memory_regions): No longer static. Add
9279 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9280 * exec.c: Include gcore.h.
9281 (exec_set_find_memory_regions): Remove.
9282 (exec_find_memory_regions): Remove.
9283 (exec_do_find_memory_regions): Remove.
9284 (init_exec_ops): Update.
9285 * defs.h (exec_set_find_memory_regions): Remove.
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9289 * target-delegates.c: Rebuild.
9290 * target.h (struct target_ops) <to_extra_thread_info,
9291 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9292 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9293 not 0, in TARGET_DEFAULT_RETURN.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target.c (complete_target_initialization): Remove casts. Use
9298 return_zero_has_execution.
9299 (return_zero): Add "ignore" argument.
9300 (return_zero_has_execution): New function.
9301 (init_dummy_target): Remove casts. Use
9302 return_zero_has_execution.
9304 2014-02-19 Tom Tromey <tromey@redhat.com>
9306 * target.c (update_current_target): Update comments. Do not
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9313 * corelow.c (core_read_description): Delegate when needed.
9314 * remote.c (remote_read_description): Delegate when needed.
9315 * target-delegates.c: Rebuild.
9316 * target.c (target_read_description): Rewrite.
9317 * target.h (struct target_ops) <to_read_description>: Update
9318 comment. Use TARGET_DEFAULT_RETURN.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target-delegates.c: Rebuild.
9323 * target.c (update_current_target): Don't inherit or default
9325 (find_default_run_target): Check against delegate_can_run.
9326 * target.h (struct target_ops) <to_can_run>: Use
9327 TARGET_DEFAULT_RETURN.
9329 2014-02-19 Tom Tromey <tromey@redhat.com>
9331 * target-delegates.c: Rebuild.
9332 * target.c (target_disconnect): Unconditionally delegate.
9333 * target.h (struct target_ops) <to_disconnect>: Use
9334 TARGET_DEFAULT_NORETURN.
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * record.c (record_stop): Unconditionally delegate.
9339 * target-delegates.c: Rebuild.
9340 * target.c (target_stop_recording): Unconditionally delegate.
9341 * target.h (struct target_ops) <to_stop_recording>: Use
9342 TARGET_DEFAULT_IGNORE.
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9346 * target-delegates.c: Rebuild.
9347 * target.c (target_enable_btrace): Unconditionally delegate.
9348 * target.h (struct target_ops) <to_enable_btrace>: Use
9349 TARGET_DEFAULT_NORETURN.
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target-delegates.c: Rebuild.
9354 * target.c (target_read_btrace): Unconditionally delegate.
9355 * target.h (struct target_ops) <to_read_btrace>: Use
9356 TARGET_DEFAULT_NORETURN.
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target-delegates.c: Rebuild.
9361 * target.c (target_teardown_btrace): Unconditionally delegate.
9362 * target.h (struct target_ops) <to_teardown_btrace>: Use
9363 TARGET_DEFAULT_NORETURN.
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9367 * target-delegates.c: Rebuild.
9368 * target.c (target_disable_btrace): Unconditionally delegate.
9369 * target.h (struct target_ops) <to_disable_btrace>: Use
9370 TARGET_DEFAULT_NORETURN.
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9374 * target-delegates.c: Rebuild.
9375 * target.c (default_search_memory): New function.
9376 (simple_search_memory): Update comment.
9377 (target_search_memory): Unconditionally delegate.
9378 * target.h (struct target_ops) <to_search_memory>: Use
9379 TARGET_DEFAULT_FUNC.
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * auxv.c (default_auxv_parse): No longer static.
9384 (target_auxv_parse): Unconditionally delegate.
9385 * auxv.h (default_auxv_parse): Declare.
9386 * target-delegates.c: Rebuild.
9387 * target.c: Include auxv.h.
9388 * target.h (struct target_ops) <to_auxv_parse>: Use
9389 TARGET_DEFAULT_FUNC.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target-delegates.c: Rebuild.
9394 * target.c (target_memory_map): Unconditionally delegate.
9395 * target.h (struct target_ops) <to_memory_map>: Use
9396 TARGET_DEFAULT_RETURN.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target-delegates.c: Rebuild.
9401 * target.c (target_thread_alive): Unconditionally delegate.
9402 * target.h (struct target_ops) <to_thread_alive>: Use
9403 TARGET_DEFAULT_RETURN.
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9407 * target-delegates.c: Rebuild.
9408 * target.c (target_save_record): Unconditionally delegate.
9409 * target.h (struct target_ops) <to_save_record>: Use
9410 TARGET_DEFAULT_NORETURN.
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target-delegates.c: Rebuild.
9415 * target.c (target_delete_record): Unconditionally delegate.
9416 * target.h (struct target_ops) <to_delete_record>: Use
9417 TARGET_DEFAULT_NORETURN.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * target-delegates.c: Rebuild.
9422 * target.c (target_record_is_replaying): Unconditionally
9424 * target.h (struct target_ops) <to_record_is_replaying>: Use
9425 TARGET_DEFAULT_RETURN.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target-delegates.c: Rebuild.
9430 * target.c (target_goto_record_begin): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_goto_record_begin>: Use
9432 TARGET_DEFAULT_NORETURN.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target-delegates.c: Rebuild.
9437 * target.c (target_goto_record_end): Unconditionally delegate.
9438 * target.h (struct target_ops) <to_goto_record_end>: Use
9439 TARGET_DEFAULT_NORETURN.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target-delegates.c: Rebuild.
9444 * target.c (target_goto_record): Unconditionally delegate.
9445 * target.h (struct target_ops) <to_goto_record>: Use
9446 TARGET_DEFAULT_NORETURN.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target-delegates.c: Rebuild.
9451 * target.c (target_insn_history): Unconditionally delegate.
9452 * target.h (struct target_ops) <to_insn_history>: Use
9453 TARGET_DEFAULT_NORETURN.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target-delegates.c: Rebuild.
9458 * target.c (target_insn_history_from): Unconditionally delegate.
9459 * target.h (struct target_ops) <to_insn_history_from>: Use
9460 TARGET_DEFAULT_NORETURN.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target-delegates.c: Rebuild.
9465 * target.c (target_insn_history_range): Unconditionally delegate.
9466 * target.h (struct target_ops) <to_insn_history_range>: Use
9467 TARGET_DEFAULT_NORETURN.
9469 2014-02-19 Tom Tromey <tromey@redhat.com>
9471 * target-delegates.c: Rebuild.
9472 * target.c (target_call_history): Unconditionally delegate.
9473 * target.h (struct target_ops) <to_call_history>: Use
9474 TARGET_DEFAULT_NORETURN.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target-delegates.c: Rebuild.
9479 * target.c (target_call_history_from): Unconditionally delegate.
9480 * target.h (struct target_ops) <to_call_history_from>: Use
9481 TARGET_DEFAULT_NORETURN.
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9485 * target-delegates.c: Rebuild.
9486 * target.c (target_call_history_range): Unconditionally delegate.
9487 * target.h (struct target_ops) <to_call_history_range>: Use
9488 TARGET_DEFAULT_NORETURN.
9490 2014-02-19 Tom Tromey <tromey@redhat.com>
9492 * target-delegates.c: Rebuild.
9493 * target.c (target_verify_memory): Unconditionally delegate.
9494 * target.h (struct target_ops) <to_verify_memory>: Use
9495 TARGET_DEFAULT_NORETURN.
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9499 * target-delegates.c: Rebuild.
9500 * target.c (target_core_of_thread): Unconditionally delegate.
9501 * target.h (struct target_ops) <to_core_of_thread>: Use
9502 TARGET_DEFAULT_RETURN.
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9506 * target-delegates.c: Rebuild.
9507 * target.c (target_flash_done): Unconditionally delegate.
9508 * target.h (struct target_ops) <to_flash_done>: Use
9509 TARGET_DEFAULT_NORETURN.
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * target-delegates.c: Rebuild.
9514 * target.c (target_flash_erase): Unconditionally delegate.
9515 * target.h (struct target_ops) <to_flash_erase>: Use
9516 TARGET_DEFAULT_NORETURN.
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9520 * target-delegates.c: Rebuild.
9521 * target.c (target_get_section_table): Unconditionally delegate.
9522 * target.h (struct target_ops) <to_get_section_table>: Use
9523 TARGET_DEFAULT_RETURN.
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target-delegates.c: Rebuild.
9528 * target.c (target_pid_to_str): Unconditionally delegate.
9529 (init_dummy_target): Don't initialize to_pid_to_str.
9530 (default_pid_to_str): Rename from dummy_pid_to_str.
9531 * target.h (struct target_ops) <to_pid_to_str>: Use
9532 TARGET_DEFAULT_FUNC.
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9536 * target-delegates.c: Rebuild.
9537 * target.c (target_find_new_threads): Unconditionally delegate.
9538 * target.h (struct target_ops) <to_find_new_threads>: Use
9539 TARGET_DEFAULT_RETURN.
9541 2014-02-19 Tom Tromey <tromey@redhat.com>
9543 * target-delegates.c: Rebuild.
9544 * target.c (target_program_signals): Unconditionally delegate.
9545 * target.h (struct target_ops) <to_program_signals>: Use
9546 TARGET_DEFAULT_IGNORE.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * target-delegates.c: Rebuild.
9551 * target.c (target_pass_signals): Unconditionally delegate.
9552 * target.h (struct target_ops) <to_pass_signals>: Use
9553 TARGET_DEFAULT_IGNORE.
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * target-delegates.c: Rebuild.
9558 * target.c (default_mourn_inferior): New function.
9559 (target_mourn_inferior): Unconditionally delegate.
9560 * target.h (struct target_ops) <to_mourn_inferior>: Use
9561 TARGET_DEFAULT_FUNC.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target-delegates.c: Rebuild.
9566 * target.c (default_follow_fork): New function.
9567 (target_follow_fork): Unconditionally delegate.
9568 * target.h (struct target_ops) <to_follow_fork>: Use
9569 TARGET_DEFAULT_FUNC.
9571 2014-02-19 Tom Tromey <tromey@redhat.com>
9573 * target-delegates.c: Rebuild.
9574 * target.c (target_kill): Unconditionally delegate.
9575 * target.h (struct target_ops) <to_kill>: Use
9576 TARGET_DEFAULT_NORETURN.
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target-delegates.c: Rebuild.
9581 * target.c (target_masked_watch_num_registers): Unconditionally
9583 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9584 Use TARGET_DEFAULT_RETURN.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target-delegates.c: Rebuild.
9589 * target.c (target_remove_mask_watchpoint): Unconditionally
9591 * target.h (struct target_ops) <to_remove_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_insert_mask_watchpoint): Unconditionally
9599 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9600 TARGET_DEFAULT_RETURN.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target-delegates.c: Rebuild.
9605 * target.c (target_ranged_break_num_registers): Unconditionally
9607 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9608 Use TARGET_DEFAULT_RETURN.
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9612 * target-delegates.c: Rebuild.
9613 * target.c (target_fetch_registers): Unconditionally delegate.
9614 * target.h (struct target_ops) <to_fetch_registers>: Use
9615 TARGET_DEFAULT_NORETURN.
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
9622 * target.h (struct target_ops) <to_stop>: Use
9623 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
9630 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9631 Use TARGET_DEFAULT_RETURN.
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target-delegates.c: Rebuild.
9636 * target.c (update_current_target): Don't inherit or default
9637 to_supports_evaluation_of_breakpoint_conditions.
9638 * target.h (struct target_ops)
9639 <to_supports_evaluation_of_breakpoint_conditions>: Use
9640 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
9646 to_augmented_libraries_svr4_read.
9647 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9648 Use 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_can_use_agent>: Use
9656 TARGET_DEFAULT_RETURN.
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 * target.h (struct target_ops) <to_use_agent>: Use
9664 TARGET_DEFAULT_NORETURN.
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9668 * target-delegates.c: Rebuild.
9669 * target.c (update_current_target): Don't inherit or default
9671 (return_null): Remove.
9672 * target.h (struct target_ops) <to_traceframe_info>: Use
9673 TARGET_DEFAULT_RETURN.
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9677 * target-delegates.c: Rebuild.
9678 * target.c (update_current_target): Don't inherit or default
9679 to_static_tracepoint_markers_by_strid.
9680 * target.h (struct target_ops)
9681 <to_static_tracepoint_markers_by_strid>: Use
9682 TARGET_DEFAULT_NORETURN.
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
9688 to_static_tracepoint_marker_at.
9689 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9690 Use TARGET_DEFAULT_RETURN.
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_set_permissions>: Use
9698 TARGET_DEFAULT_IGNORE.
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_get_tib_address>: Use
9706 TARGET_DEFAULT_NORETURN.
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9710 * target-delegates.c: Rebuild.
9711 * target.c (update_current_target): Don't inherit or default
9713 * target.h (struct target_ops) <to_set_trace_notes>: Use
9714 TARGET_DEFAULT_RETURN.
9716 2014-02-19 Tom Tromey <tromey@redhat.com>
9718 * target-delegates.c: Rebuild.
9719 * target.c (update_current_target): Don't initialize
9720 to_set_trace_buffer_size.
9721 * target.h (struct target_ops) <to_set_trace_buffer_size>: 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_circular_trace_buffer.
9729 * target.h (struct target_ops) <to_set_circular_trace_buffer>: 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_set_disconnected_tracing.
9737 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9738 TARGET_DEFAULT_IGNORE.
9740 2014-02-19 Tom Tromey <tromey@redhat.com>
9742 * target-delegates.c: Rebuild.
9743 * target.c (update_current_target): Don't inherit or default
9744 to_get_min_fast_tracepoint_insn_len.
9745 (return_minus_one): Remove.
9746 * target.h (struct target_ops)
9747 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_get_raw_trace_data.
9754 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9755 TARGET_DEFAULT_NORETURN.
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_trace_state_variables.
9762 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9763 Use 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
9769 to_upload_tracepoints.
9770 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9771 TARGET_DEFAULT_RETURN.
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
9778 * target.h (struct target_ops) <to_save_trace_data>: Use
9779 TARGET_DEFAULT_NORETURN.
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
9785 to_get_trace_state_variable_value.
9786 * target.h (struct target_ops)
9787 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9789 2014-02-19 Tom Tromey <tromey@redhat.com>
9791 * target-delegates.c: Rebuild.
9792 * target.c (update_current_target): Don't inherit or default
9794 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
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
9801 * target.h (struct target_ops) <to_trace_stop>: 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_tracepoint_status.
9809 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9810 TARGET_DEFAULT_NORETURN.
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
9816 to_get_trace_status.
9817 * target.h (struct target_ops) <to_get_trace_status>: Use
9818 TARGET_DEFAULT_RETURN.
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
9825 * target.h (struct target_ops) <to_trace_start>: Use
9826 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_trace_set_readonly_regions.
9833 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9834 Use 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_disable_tracepoint.
9841 * target.h (struct target_ops) <to_disable_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_enable_tracepoint.
9849 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9850 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_download_trace_state_variable.
9857 * target.h (struct target_ops) <to_download_trace_state_variable>:
9858 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
9865 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9866 TARGET_DEFAULT_RETURN.
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
9872 to_download_tracepoint.
9873 * target.h (struct target_ops) <to_download_tracepoint>: Use
9874 TARGET_DEFAULT_NORETURN.
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
9881 * target.h (struct target_ops) <to_trace_init>: 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_string_tracing.
9889 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9890 TARGET_DEFAULT_RETURN.
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9894 * target-delegates.c: Rebuild.
9895 * target.c (update_current_target): Don't inherit or default
9896 to_supports_enable_disable_tracepoint.
9897 * target.h (struct target_ops)
9898 <to_supports_enable_disable_tracepoint>: 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_supports_multi_process.
9906 * target.h (struct target_ops) <to_supports_multi_process>: Use
9907 TARGET_DEFAULT_RETURN.
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_get_ada_task_ptid.
9914 * target.h (struct target_ops) <to_get_ada_task_ptid>: 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_thread_architecture.
9922 * target.h (struct target_ops) <to_thread_architecture>: 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_execution_direction.
9930 * target.h (struct target_ops) <to_execution_direction>: Use
9931 TARGET_DEFAULT_FUNC.
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target-delegates.c: Rebuild.
9936 * target.c (update_current_target): Don't inherit or default
9937 to_can_execute_reverse.
9938 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9939 TARGET_DEFAULT_RETURN.
9940 (target_can_execute_reverse): Unconditionally delegate.
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9944 * target-delegates.c: Rebuild.
9945 * target.c (update_current_target): Don't inherit or default
9947 (dummy_goto_bookmark): Remove.
9948 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9949 * target.h (struct target_ops) <to_goto_bookmark>: Use
9950 TARGET_DEFAULT_NORETURN.
9952 2014-02-19 Tom Tromey <tromey@redhat.com>
9954 * target-delegates.c: Rebuild.
9955 * target.c (update_current_target): Don't inherit or default
9957 (dummy_get_bookmark): Remove.
9958 (init_dummy_target): Don't inherit or default to_get_bookmark.
9959 * target.h (struct target_ops) <to_get_bookmark>: Use
9960 TARGET_DEFAULT_NORETURN
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9964 * target-delegates.c: Rebuild.
9965 * target.c (update_current_target): Don't inherit or default
9966 to_make_corefile_notes.
9967 (init_dummy_target): Don't initialize to_make_corefile_notes.
9968 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9969 TARGET_DEFAULT_FUNC.
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9973 * target-delegates.c: Rebuild.
9974 * target.c (update_current_target): Don't inherit or default
9975 to_find_memory_regions.
9976 (init_dummy_target): Don't initialize to_find_memory_regions.
9977 * target.h (struct target_ops) <to_find_memory_regions>: Use
9978 TARGET_DEFAULT_FUNC.
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9982 * target-delegates.c: Rebuild.
9983 * target.c (update_current_target): Don't inherit or default
9985 * target.h (struct target_ops) <to_log_command>: Use
9986 TARGET_DEFAULT_IGNORE.
9987 (target_log_command): Unconditionally delegate.
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
9993 to_pid_to_exec_file.
9994 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9995 TARGET_DEFAULT_RETURN.
9997 2014-02-19 Tom Tromey <tromey@redhat.com>
9999 * target-delegates.c: Rebuild.
10000 * target.c (update_current_target): Don't inherit or default
10002 (target_thread_name): Unconditionally delegate.
10003 * target.h (struct target_ops) <to_thread_name>: 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
10010 to_extra_thread_info.
10011 * target.h (struct target_ops) <to_extra_thread_info>: 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
10019 * target.h (struct target_ops) <to_has_exited>: Use
10020 TARGET_DEFAULT_RETURN..
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10024 * target-delegates.c: Rebuild.
10025 * target.c (update_current_target): Don't inherit or default
10026 to_set_syscall_catchpoint.
10027 (return_one): Remove.
10028 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10029 TARGET_DEFAULT_RETURN.
10031 2014-02-19 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-01-08 Tom Tromey <tromey@redhat.com>
10041 * target-delegates.c: Rebuild.
10042 * target.c (update_current_target): Don't inherit or default
10043 to_insert_exec_catchpoint.
10044 * target.h (struct target_ops) <to_insert_exec_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_remove_vfork_catchpoint.
10052 * target.h (struct target_ops) <to_remove_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_insert_vfork_catchpoint.
10060 * target.h (struct target_ops) <to_insert_vfork_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_remove_fork_catchpoint.
10068 * target.h (struct target_ops) <to_remove_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_insert_fork_catchpoint.
10076 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10077 TARGET_DEFAULT_RETURN.
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
10083 to_post_startup_inferior.
10084 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10085 TARGET_DEFAULT_IGNORE.
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_load>: Use
10093 TARGET_DEFAULT_NORETURN.
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
10100 * target.h (struct target_ops) <to_terminal_info>: Use
10101 TARGET_DEFAULT_FUNC.
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
10107 to_terminal_save_ours.
10108 * target.h (struct target_ops) <to_terminal_save_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
10116 * target.h (struct target_ops) <to_terminal_ours>: 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_ours_for_output.
10124 * target.h (struct target_ops) <to_terminal_ours_for_output>: 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
10131 to_terminal_inferior.
10132 * target.h (struct target_ops) <to_terminal_inferior>: 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
10140 * target.h (struct target_ops) <to_terminal_init>: Use
10141 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
10148 * target.h (struct target_ops)
10149 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
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_region_ok_for_hw_watchpoint.
10156 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
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_watchpoint_addr_within_range.
10164 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10165 Use TARGET_DEFAULT_FUNC.
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_remove_watchpoint.
10172 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10173 TARGET_DEFAULT_NORETURN.
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_insert_watchpoint.
10180 * target.h (struct target_ops) <to_insert_watchpoint>: 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_remove_hw_breakpoint.
10188 * target.h (struct target_ops) <to_remove_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_insert_hw_breakpoint.
10196 * target.h (struct target_ops) <to_insert_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
10203 to_can_use_hw_breakpoint.
10204 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10205 TARGET_DEFAULT_RETURN.
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_files_info>: Use
10213 TARGET_DEFAULT_IGNORE.
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_store>: Use
10221 TARGET_DEFAULT_NORETURN.
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 * target.h (struct target_ops) <to_post_attach>: Use
10229 TARGET_DEFAULT_IGNORE.
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10233 * target-delegates.c: Rebuild.
10234 * target.c (update_current_target): Don't inherit or default
10236 (default_rcmd): New function.
10237 (do_monitor_command): Unconditionally delegate.
10238 * target.h (struct target_ops) <to_rmcd>: Use
10239 TARGET_DEFAULT_FUNC.
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target-delegates.c: Rebuild.
10244 * target.c (init_dummy_target): Don't initialize to_attach.
10245 (target_attach): Unconditionally delegate.
10246 * target.h (struct target_ops) <to_attach>: Use
10247 TARGET_DEFAULT_FUNC.
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target-delegates.c: Rebuild.
10252 * target.c (target_detach): Unconditionally delegate.
10253 (init_dummy_target): Don't initialize to_detach.
10254 * target.h (struct target_ops) <to_detach>: Use
10255 TARGET_DEFAULT_IGNORE.
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10259 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10261 (target_augmented_libraries_svr4_read): Add argument.
10262 * target.c (update_current_target): Update.
10263 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * target.h (struct target_ops) <to_call_history_range>: Add
10270 * target.c (target_call_history_range): Add argument.
10271 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10273 (record_btrace_call_history_from): Update.
10275 2014-02-19 Tom Tromey <tromey@redhat.com>
10277 * target.h (struct target_ops) <to_call_history_from>: Add
10279 * target.c (target_call_history_from): Add argument.
10280 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10283 2014-02-19 Tom Tromey <tromey@redhat.com>
10285 * target.h (struct target_ops) <to_call_history>: Add argument.
10286 * target.c (target_call_history): Add argument.
10287 * record-btrace.c (record_btrace_call_history): Add 'self'
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10292 * target.h (struct target_ops) <to_insn_history_range>: Add
10294 * target.c (target_insn_history_range): Add argument.
10295 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10297 (record_btrace_insn_history_from): Update.
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10301 * target.h (struct target_ops) <to_insn_history_from>: Add
10303 * target.c (target_insn_history_from): Add argument.
10304 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10307 2014-02-19 Tom Tromey <tromey@redhat.com>
10309 * target.h (struct target_ops) <to_insn_history>: Add argument.
10310 * target.c (target_insn_history): Add argument.
10311 * record-btrace.c (record_btrace_insn_history): Add 'self'
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10316 * target.h (struct target_ops) <to_goto_record>: Add argument.
10317 * target.c (target_goto_record): Add argument.
10318 * record-full.c (record_full_goto): Add 'self' argument.
10319 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10323 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10324 * target.c (target_goto_record_end): Add argument.
10325 * record-full.c (record_full_goto_end): Add 'self' argument.
10326 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10330 * target.h (struct target_ops) <to_goto_record_begin>: Add
10332 * target.c (target_goto_record_begin): Add argument.
10333 * record-full.c (record_full_goto_begin): Add 'self' argument.
10334 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10339 * target.h (struct target_ops) <to_record_is_replaying>: Add
10341 * target.c (target_record_is_replaying): Add argument.
10342 * record-full.c (record_full_is_replaying): Add 'self' argument.
10343 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10345 (record_btrace_xfer_partial, record_btrace_store_registers)
10346 (record_btrace_prepare_to_store, record_btrace_resume)
10347 (record_btrace_wait, record_btrace_decr_pc_after_break)
10348 (record_btrace_find_new_threads, record_btrace_thread_alive):
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10353 * target.h (struct target_ops) <to_delete_record>: Add argument.
10354 * target.c (target_delete_record): Add argument.
10355 * record-full.c (record_full_delete): Add 'self' argument.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target.h (struct target_ops) <to_save_record>: Add argument.
10360 * target.c (target_save_record): Add argument.
10361 * record-full.c (record_full_save): Add 'self' argument.
10362 (record_full_save): Add 'self' argument.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * target.h (struct target_ops) <to_info_record>: Add argument.
10367 * target.c (target_info_record): Add argument.
10368 * record.c (info_record_command): Add argument.
10369 * record-full.c (record_full_info): Add 'self' argument.
10370 * record-btrace.c (record_btrace_info): Add 'self' argument.
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10374 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10375 * target.c (target_stop_recording): Add argument.
10376 * record.c (record_stop): Add argument.
10377 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10382 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10383 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10384 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10386 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10387 (_initialize_amd64_linux_nat): Use it.
10388 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10389 (_initialize_i386_linux_nat): Use it.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10394 * target.c (target_teardown_btrace): Add argument.
10395 * remote.c (remote_teardown_btrace): Add 'self' argument.
10396 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10398 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10403 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10404 * target.c (target_disable_btrace): Add argument.
10405 * remote.c (remote_disable_btrace): Add 'self' argument.
10406 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10408 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10413 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10414 * target.c (target_enable_btrace): Add argument.
10415 * remote.c (remote_enable_btrace): Add 'self' argument.
10416 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10418 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10423 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10424 (target_can_use_agent): Add argument.
10425 * target.c (update_current_target): Update.
10426 * remote.c (remote_can_use_agent): Add 'self' argument.
10427 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10431 * target.h (struct target_ops) <to_use_agent>: Add argument.
10432 (target_use_agent): Add argument.
10433 * target.c (update_current_target): Update.
10434 * remote.c (remote_use_agent): Add 'self' argument.
10435 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10437 2014-02-19 Tom Tromey <tromey@redhat.com>
10439 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10440 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10441 (target_traceframe_info): Add argument.
10442 * target.c (update_current_target): Update.
10443 * remote.c (remote_traceframe_info): Add 'self' argument.
10444 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10446 2014-02-19 Tom Tromey <tromey@redhat.com>
10448 * target.h (target_static_tracepoint_markers_by_strid): Add
10450 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10452 * target.c (update_current_target): Update.
10453 * remote.c (struct target_ops)
10454 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10455 * linux-nat.c (struct target_ops)
10456 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10460 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10462 (target_static_tracepoint_marker_at): Add argument.
10463 * target.c (update_current_target): Update.
10464 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10470 (target_set_permissions): Add argument.
10471 * target.c (update_current_target): Update.
10472 * remote.c (remote_set_permissions): Add 'self' argument.
10473 (remote_start_remote): Update.
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10477 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10478 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10479 (target_get_tib_address): Add argument.
10480 * target.c (update_current_target): Update.
10481 * remote.c (remote_get_tib_address): Add 'self' argument.
10483 2014-02-19 Tom Tromey <tromey@redhat.com>
10485 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10486 (target_set_trace_notes): Add argument.
10487 * target.c (update_current_target): Update.
10488 * remote.c (remote_set_trace_notes): Add 'self' argument.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10494 (target_set_trace_buffer_size): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10502 (target_set_circular_trace_buffer): Add argument.
10503 * target.c (update_current_target): Update.
10504 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10509 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10511 (target_set_disconnected_tracing): Add argument.
10512 * target.c (update_current_target): Update.
10513 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10517 * target.h (struct target_ops)
10518 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10519 (target_get_min_fast_tracepoint_insn_len): Add argument.
10520 * target.c (update_current_target): Update.
10521 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10528 (target_get_raw_trace_data): Add argument.
10529 * target.c (update_current_target): Update.
10530 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10532 2014-02-19 Tom Tromey <tromey@redhat.com>
10534 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10536 (target_upload_trace_state_variables): Add argument.
10537 * target.c (update_current_target): Update.
10538 * remote.c (remote_upload_trace_state_variables): Add 'self'
10540 (remote_start_remote): Update.
10542 2014-02-19 Tom Tromey <tromey@redhat.com>
10544 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10546 (target_upload_tracepoints): Add argument.
10547 * target.c (update_current_target): Update.
10548 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10549 (remote_start_remote): Update.
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10553 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10554 (target_save_trace_data): Add argument.
10555 * target.c (update_current_target): Update.
10556 * remote.c (remote_save_trace_data): Add 'self' argument.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10562 * target.h (struct target_ops)
10563 <to_get_trace_state_variable_value>: Add argument.
10564 (target_get_trace_state_variable_value): Add argument.
10565 * target.c (update_current_target): Update.
10566 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10568 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10572 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10573 * target.h (struct target_ops) <to_trace_find>: Add argument.
10574 (target_trace_find): Add argument.
10575 * target.c (update_current_target): Update.
10576 * remote.c (remote_trace_find): Add 'self' argument.
10577 * ctf.c (ctf_trace_find): Add 'self' argument.
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10581 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10582 (target_trace_stop): Add argument.
10583 * target.c (update_current_target): Update.
10584 * remote.c (remote_trace_stop): Add 'self' argument.
10586 2014-02-19 Tom Tromey <tromey@redhat.com>
10588 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10589 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10591 (target_get_tracepoint_status): Add argument.
10592 * target.c (update_current_target): Update.
10593 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10597 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10598 * target.h (struct target_ops) <to_get_trace_status>: Add
10600 (target_get_trace_status): Add argument.
10601 * target.c (update_current_target): Update.
10602 * remote.c (remote_get_trace_status): Add 'self' argument.
10603 (remote_start_remote, remote_can_download_tracepoint): Update.
10604 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10608 * target.h (struct target_ops) <to_trace_start>: Add argument.
10609 (target_trace_start): Add argument.
10610 * target.c (update_current_target): Update.
10611 * remote.c (remote_trace_start): Add 'self' argument.
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10615 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10617 (target_trace_set_readonly_regions): Add argument.
10618 * target.c (update_current_target): Update.
10619 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10626 (target_disable_tracepoint): Add argument.
10627 * target.c (update_current_target): Update.
10628 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10632 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10634 (target_enable_tracepoint): Add argument.
10635 * target.c (update_current_target): Update.
10636 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10640 * target.h (struct target_ops) <to_download_trace_state_variable>:
10642 (target_download_trace_state_variable): Add argument.
10643 * target.c (update_current_target): Update.
10644 * remote.c (remote_download_trace_state_variable): Add 'self'
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10651 (target_can_download_tracepoint): Add argument.
10652 * target.c (update_current_target): Update.
10653 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10657 * target.h (struct target_ops) <to_download_tracepoint>: Add
10659 (target_download_tracepoint): Add argument.
10660 * target.c (update_current_target): Update.
10661 * remote.c (remote_download_tracepoint): Add 'self' argument.
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10665 * target.h (struct target_ops) <to_trace_init>: Add argument.
10666 (target_trace_init): Add argument.
10667 * target.c (update_current_target): Update.
10668 * remote.c (remote_trace_init): Add 'self' argument.
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10672 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10673 * target.c (target_fileio_readlink): Add argument.
10674 * remote.c (remote_hostio_readlink): Add 'self' argument.
10675 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10680 * target.c (target_fileio_unlink): Add argument.
10681 * remote.c (remote_hostio_unlink): Add 'self' argument.
10682 (remote_file_delete): Update.
10683 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10687 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10688 * target.c (target_fileio_close): Add argument.
10689 * remote.c (remote_hostio_close): Add 'self' argument.
10690 (remote_hostio_close_cleanup): Update.
10691 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10693 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10698 * target.c (target_fileio_pread): Add argument.
10699 * remote.c (remote_hostio_pread): Add 'self' argument.
10700 (remote_bfd_iovec_pread, remote_file_get): Update.
10701 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10706 * target.c (target_fileio_pwrite): Add argument.
10707 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10708 (remote_file_put): Update.
10709 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10714 * target.c (target_fileio_open): Add argument.
10715 * remote.c (remote_hostio_open): Add 'self' argument.
10716 (remote_bfd_iovec_open): Add 'self' argument.
10717 (remote_file_put): Add 'self' argument.
10718 (remote_file_get): Add 'self' argument.
10719 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10725 (target_can_run_breakpoint_commands): Add argument.
10726 * target.c (update_current_target): Update.
10727 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10729 (remote_insert_breakpoint): Add 'self' argument.
10730 (remote_insert_hw_breakpoint): Add 'self' argument.
10731 (remote_can_run_breakpoint_commands): Add 'self' argument.
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10735 * target.h (struct target_ops)
10736 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10737 (target_supports_evaluation_of_breakpoint_conditions): Add
10739 * target.c (update_current_target): Update.
10740 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10742 (remote_insert_breakpoint): Add 'self' argument.
10743 (remote_insert_hw_breakpoint): Add 'self' argument.
10744 (remote_supports_cond_breakpoints): Add 'self' argument.
10746 2014-02-19 Tom Tromey <tromey@redhat.com>
10748 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10750 (target_supports_string_tracing): Add argument.
10751 * target.c (update_current_target): Update.
10752 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10756 * target.h (struct target_ops)
10757 <to_supports_disable_randomization>: Add argument.
10758 * target.c (find_default_supports_disable_randomization): Add
10760 (target_supports_disable_randomization): Add argument.
10761 (find_default_supports_disable_randomization): Add 'self'
10763 * remote.c (extended_remote_supports_disable_randomization): Add
10765 (remote_supports_disable_randomization): Add 'self' argument.
10766 (extended_remote_create_inferior): Update.
10767 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10772 * target.h (struct target_ops)
10773 <to_supports_enable_disable_tracepoint>: Add argument.
10774 (target_supports_enable_disable_tracepoint): Add argument.
10775 * target.c (update_current_target): Update.
10776 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10779 2014-02-19 Tom Tromey <tromey@redhat.com>
10781 * target.h (struct target_ops) <to_supports_multi_process>: Add
10783 (target_supports_multi_process): Add argument.
10784 * target.c (update_current_target): Update.
10785 * remote.c (remote_supports_multi_process): Add 'self' argument.
10786 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10788 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target.h (struct target_ops) <to_execution_direction>: Add
10795 (target_execution_direction): Add argument.
10796 * target.c (default_execution_direction): Add 'self' argument.
10797 * record-full.c (record_full_execution_direction): Add 'self'
10800 2014-02-19 Tom Tromey <tromey@redhat.com>
10802 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10804 (target_can_execute_reverse): Add argument.
10805 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10806 * record-full.c (record_full_can_execute_reverse): Add 'self'
10808 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10811 2014-02-19 Tom Tromey <tromey@redhat.com>
10813 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10814 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10816 (target_get_ada_task_ptid): Add argument.
10817 * target.c (update_current_target): Update.
10818 (default_get_ada_task_ptid): Add 'self' argument.
10819 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10820 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10821 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10823 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10825 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10827 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10829 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10830 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10836 (target_goto_bookmark): Add argument.
10837 * target.c (dummy_goto_bookmark): Add 'self' argument.
10838 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10843 (target_get_bookmark): Add argument.
10844 * target.c (dummy_get_bookmark): Add 'self' argument.
10845 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10849 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10851 (target_make_corefile_notes): Add argument.
10852 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10853 * procfs.c (procfs_make_note_section): Add 'self' argument.
10854 (procfs_make_note_section): Add 'self' argument.
10855 (procfs_make_note_section): Add 'self' argument.
10856 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10858 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10859 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10860 * exec.c (exec_make_note_section): Add 'self' argument.
10861 (exec_make_note_section): Add 'self' argument.
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10865 * target.h (struct target_ops) <to_find_memory_regions>: Add
10867 (target_find_memory_regions): Add argument.
10868 * target.c (dummy_find_memory_regions): Add 'self' argument.
10869 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10870 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10871 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10872 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10873 * exec. (exec_do_find_memory_regions): New global.
10874 (exec_set_find_memory_regions): Rewrite.
10875 (exec_find_memory_regions): New function.
10876 (init_exec_ops): Use exec_find_memory_regions.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * target.h (struct target_ops) <to_supports_non_stop>: Add
10882 * target.c (find_default_supports_non_stop): Add argument.
10883 (target_supports_non_stop): Add argument.
10884 (find_default_supports_non_stop): Add 'self' argument.
10885 * remote.c (remote_supports_non_stop): Add 'self' argument.
10886 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10888 2014-02-19 Tom Tromey <tromey@redhat.com>
10890 * target.h (struct target_ops) <to_log_command>: Add argument.
10891 (target_log_command): Add argument.
10892 * serial.h (serial_log_command): Add 'self' argument.
10893 * serial.c (serial_log_command): Add 'self' argument.
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10897 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10898 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10900 (target_pid_to_exec_file): Add argument.
10901 * target.c (debug_to_pid_to_exec_file): Add argument.
10902 (update_current_target): Update.
10903 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10904 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10905 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10906 (linux_handle_extended_wait): Update.
10907 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10908 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10909 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10910 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target.h (struct target_ops) <to_rcmd>: Add argument.
10915 (target_rcmd): Add argument.
10916 * target.c (debug_to_rcmd): Add argument.
10917 (update_current_target, do_monitor_command): Update.
10918 * remote.c (remote_rcmd): Add 'self' argument.
10919 * monitor.c (monitor_rcmd): Add 'self' argument.
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * windows-nat.c (windows_stop): Add 'self' argument.
10924 * target.h (struct target_ops) <to_stop>: Add argument.
10925 * target.c (target_stop): Add argument.
10926 (debug_to_stop): Add argument.
10927 (update_current_target): Update.
10928 * remote.c (remote_stop): Add 'self' argument.
10929 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10930 (gdbsim_cntrl_c): Update.
10931 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10932 * procfs.c (procfs_stop): Add 'self' argument.
10933 * nto-procfs.c (procfs_stop): Add 'self' argument.
10934 * monitor.c (monitor_stop): Add 'self' argument.
10935 (monitor_open): Update.
10936 * linux-nat.c (linux_nat_stop): Add argument.
10937 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10938 * gnu-nat.c (gnu_stop): Add 'self' argument.
10939 * darwin-nat.c (darwin_stop): Add 'self' argument.
10941 2014-02-19 Tom Tromey <tromey@redhat.com>
10943 * target.h (struct target_ops) <to_thread_name>: Add argument.
10944 * target.c (target_thread_name): Add argument.
10945 (update_current_target): Update.
10946 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target.h (struct target_ops) <to_extra_thread_info>: Add
10952 (target_extra_thread_info): Add argument.
10953 * target.c (update_current_target): Update.
10954 * remote.c (remote_threads_extra_info): Add 'self' argument.
10955 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10957 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10958 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10959 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10961 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10963 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10965 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10970 * target.h (struct target_ops) <to_program_signals>: Add argument.
10971 * target.c (target_program_signals): Add argument.
10972 * remote.c (remote_program_signals): Add 'self' argument.
10974 2014-02-19 Tom Tromey <tromey@redhat.com>
10976 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10977 * target.c (target_pass_signals): Add argument.
10978 * remote.c (remote_pass_signals): Add 'self' argument.
10979 (remote_start_remote): Update.
10980 * procfs.c (procfs_pass_signals): Add 'self' argument.
10981 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10982 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10983 (linux_nat_create_inferior, linux_nat_attach): Update.
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10987 * windows-nat.c (windows_can_run): Add 'self' argument.
10988 * target.h (struct target_ops) <to_can_run>: Add argument.
10989 (target_can_run): Add argument.
10990 * target.c (debug_to_can_run): Add argument.
10991 (update_current_target): Update.
10992 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10993 * inf-child.c (inf_child_can_run): Add 'self' argument.
10994 * go32-nat.c (go32_can_run): Add 'self' argument.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target.h (struct target_ops) <to_has_exited>: Add argument.
10999 (target_has_exited): Add argument.
11000 * target.c (debug_to_has_exited): Add argument.
11001 (update_current_target): Update.
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11005 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11007 (target_set_syscall_catchpoint): Add argument.
11008 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11010 * target.c (update_current_target): Update.
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11014 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11016 (target_remove_exec_catchpoint): Add argument.
11017 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11018 (update_current_target): Update.
11019 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11024 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11026 (target_insert_exec_catchpoint): Add argument.
11027 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11028 (update_current_target): Update.
11029 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11032 2014-02-19 Tom Tromey <tromey@redhat.com>
11034 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11036 (target_remove_vfork_catchpoint): Add argument.
11037 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11038 (update_current_target): Update.
11039 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11042 2014-02-19 Tom Tromey <tromey@redhat.com>
11044 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11046 (target_insert_vfork_catchpoint): Add argument.
11047 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11048 (update_current_target): Update.
11049 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11052 2014-02-19 Tom Tromey <tromey@redhat.com>
11054 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11056 (target_remove_fork_catchpoint): Add argument.
11057 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11058 (update_current_target): Update.
11059 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11064 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11066 (target_insert_fork_catchpoint): Add argument.
11067 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11068 (update_current_target): Update.
11069 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11072 2014-02-19 Tom Tromey <tromey@redhat.com>
11074 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11076 (target_post_startup_inferior): Add argument.
11077 * target.c (debug_to_post_startup_inferior): Add argument.
11078 (update_current_target): Update.
11079 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11081 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11083 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11085 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11087 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11089 (super_post_startup_inferior): Likewise.
11090 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11092 (super_post_startup_inferior): Likewise.
11093 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11094 Add 'self' argument.
11095 (super_post_startup_inferior): Likewise.
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * target.h (struct target_ops) <to_load>: Add argument.
11100 * target.c (target_load): Add argument.
11101 (debug_to_load): Add argument.
11102 (update_current_target): Update.
11103 * remote.c (remote_load): Add 'self' argument.
11104 * remote-sim.c (gdbsim_load): Add 'self' argument.
11105 * remote-mips.c (mips_load): Add 'self' argument.
11106 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11107 * monitor.c (monitor_load): Add 'self' argument.
11108 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11113 (target_terminal_info): Add argument.
11114 * target.c (debug_to_terminal_info): Add argument.
11115 (default_terminal_info): Likewise.
11116 * inflow.c (child_terminal_info): Add 'self' argument.
11117 * inferior.h (child_terminal_info): Add 'self' argument.
11118 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11120 2014-02-19 Tom Tromey <tromey@redhat.com>
11122 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11124 (target_terminal_save_ours): Add argument.
11125 * target.c (debug_to_terminal_save_ours): Add argument.
11126 (update_current_target): Update.
11127 * inflow.c (terminal_save_ours): Add 'self' argument.
11128 * inferior.h (terminal_save_ours): Add 'self' argument.
11130 2014-02-19 Tom Tromey <tromey@redhat.com>
11132 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11133 (target_terminal_ours): Add argument.
11134 * target.c (debug_to_terminal_ours): Add argument.
11135 (update_current_target): Update.
11136 * remote.c (remote_terminal_ours): Add 'self' argument.
11137 (remote_close): Update.
11138 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11139 * inflow.c (terminal_ours): Add 'self' argument.
11140 * inferior.h (terminal_ours): Add 'self' argument.
11141 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11143 2014-02-19 Pedro Alves <palves@redhat.com>
11144 Tom Tromey <tromey@redhat.com>
11146 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11148 (target_terminal_ours_for_output): Add argument.
11149 * target.c (debug_to_terminal_ours_for_output): Add argument.
11150 (update_current_target): Update.
11151 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11152 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11153 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11157 * target.h (struct target_ops) <to_terminal_inferior>: Add
11159 * target.c (target_terminal_inferior): Add argument.
11160 (update_current_target): Update.
11161 * remote.c (remote_terminal_inferior): Add 'self' argument.
11162 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11163 * inflow.c (terminal_inferior): Add 'self' argument.
11164 * inferior.h (terminal_inferior): Add 'self' argument.
11165 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11166 (go32_terminal_inferior): Add 'self' argument.
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11171 (target_terminal_init): Add argument.
11172 * target.c (debug_to_terminal_init): Add argument.
11173 (update_current_target): Update.
11174 * inflow.c (terminal_init_inferior): Add 'self' argument.
11175 * inferior.h (terminal_init_inferior): Add 'self' argument.
11176 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11177 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11179 2014-02-19 Tom Tromey <tromey@redhat.com>
11181 * target.h (struct target_ops)
11182 <to_can_accel_watchpoint_condition>: Add argument.
11183 (target_can_accel_watchpoint_condition): Add argument.
11184 * target.c (debug_to_can_accel_watchpoint_condition): Add
11186 (update_current_target): Update.
11187 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11190 2014-02-19 Tom Tromey <tromey@redhat.com>
11192 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11194 (target_region_ok_for_hw_watchpoint): Add argument.
11195 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11196 (default_region_ok_for_hw_watchpoint): Add argument.
11197 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11198 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11200 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11202 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11204 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11206 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11208 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11210 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11211 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11213 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11214 Add 'self' argument.
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11218 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11220 (target_insert_watchpoint): Add argument.
11221 * target.c (debug_to_insert_watchpoint): Add argument.
11222 (update_current_target): Update.
11223 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11224 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11225 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11226 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11227 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11228 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11230 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11231 (procfs_insert_hw_watchpoint): Add 'self' argument.
11232 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11234 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11236 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11238 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11239 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11241 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11244 2014-02-19 Tom Tromey <tromey@redhat.com>
11246 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11248 (target_remove_watchpoint): Add argument.
11249 * target.c (debug_to_remove_watchpoint): Add argument.
11250 (update_current_target): Update.
11251 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11252 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11253 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11254 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11255 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11256 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11258 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11259 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11261 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11263 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11265 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11266 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11268 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11273 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11275 (target_remove_hw_breakpoint): Add argument.
11276 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11277 (update_current_target): Update.
11278 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11279 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11281 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11282 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11284 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11287 2014-02-19 Tom Tromey <tromey@redhat.com>
11289 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11291 (target_insert_hw_breakpoint): Add argument.
11292 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11293 (update_current_target): Update.
11294 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11295 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11297 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11298 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11299 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11301 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11304 2014-02-19 Tom Tromey <tromey@redhat.com>
11306 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11308 (target_can_use_hardware_watchpoint): Add argument.
11309 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11310 (update_current_target): Update.
11311 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11313 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11315 * remote.c (remote_check_watch_resources): Add 'self' argument.
11316 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11317 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11319 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11320 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11322 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11324 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11326 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11328 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11330 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11332 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11333 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11335 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * target.h (struct target_ops) <to_post_attach>: Add argument.
11341 (target_post_attach): Add argument.
11342 * target.c (debug_to_post_attach): Add argument.
11343 (update_current_target): Update.
11344 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11345 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11346 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11347 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11348 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11350 2014-02-19 Tom Tromey <tromey@redhat.com>
11352 * windows-nat.c (windows_close): Add 'self' argument.
11353 * tracepoint.c (tfile_close): Add 'self' argument.
11354 * target.h (struct target_ops) <to_close>: Add argument.
11355 * target.c (target_close): Add argument.
11356 (update_current_target): Update.
11357 * remote.c (remote_close): Add 'self' argument.
11358 * remote-sim.c (gdbsim_close): Add 'self' argument.
11359 * remote-mips.c (mips_close): Add 'self' argument.
11360 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11361 * record-full.c (record_full_close): Add 'self' argument.
11362 * record-btrace.c (record_btrace_close): Add 'self' argument.
11363 * monitor.h (monitor_close): Add 'self' argument.
11364 * monitor.c (monitor_close): Add 'self' argument.
11365 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11366 * linux-nat.c (linux_nat_close): Add argument.
11367 * go32-nat.c (go32_close): Add 'self' argument.
11368 * exec.c (exec_close_1): Add 'self' argument.
11369 * ctf.c (ctf_close): Add 'self' argument.
11370 * corelow.c (core_close): Add 'self' argument.
11371 (core_close_cleanup): Update.
11372 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11373 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11375 2014-02-19 Tom Tromey <tromey@redhat.com>
11377 * remote.c (remote_load): New function.
11378 (init_remote_ops): Use it.
11380 2014-02-19 Tom Tromey <tromey@redhat.com>
11382 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11384 * common/linux-btrace.h (linux_supports_btrace): Update.
11385 * remote.c (remote_supports_btrace): Add "self" argument.
11386 * target-delegates.c: Rebuild.
11387 * target.c (target_supports_btrace): Remove.
11388 * target.h (struct target_ops) <to_supports_btrace>: Add
11389 target_ops argument.
11390 (target_supports_btrace): New define.
11392 2014-02-19 Tom Tromey <tromey@redhat.com>
11394 * record-full.c (record_full_beneath_to_resume_ops)
11395 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11396 (record_full_beneath_to_wait)
11397 (record_full_beneath_to_store_registers_ops)
11398 (record_full_beneath_to_store_registers)
11399 (record_full_beneath_to_xfer_partial_ops)
11400 (record_full_beneath_to_xfer_partial)
11401 (record_full_beneath_to_insert_breakpoint_ops)
11402 (record_full_beneath_to_insert_breakpoint)
11403 (record_full_beneath_to_remove_breakpoint_ops)
11404 (record_full_beneath_to_remove_breakpoint)
11405 (record_full_beneath_to_stopped_by_watchpoint)
11406 (record_full_beneath_to_stopped_data_address)
11407 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11408 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11409 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11410 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11411 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11412 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11413 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11414 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11415 (record_full_resume, record_full_wait_1)
11416 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11417 (record_full_store_registers, record_full_xfer_partial)
11418 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11419 (record_full_async, record_full_core_xfer_partial): Use target
11421 * target-delegates.c: Rebuild.
11422 * target.c (current_xfer_partial): Remove.
11423 (update_current_target): Do not INHERIT or de_fault
11424 to_insert_breakpoint, to_remove_breakpoint,
11425 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11426 to_is_async_p, to_async. Do not set to_xfer_partial field.
11427 (default_xfer_partial): Simplify.
11428 (current_xfer_partial): Remove.
11429 (target_wait, target_resume): Simplify.
11430 (find_default_can_async_p, find_default_is_async_p): Update.
11431 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11432 to_xfer_partial, to_stopped_by_watchpoint,
11433 to_stopped_data_address.
11434 (target_store_registers): Simplify.
11435 (forward_target_remove_breakpoint)
11436 (forward_target_insert_breakpoint): Remove.
11437 (target_remove_breakpoint, target_insert_breakpoint)
11438 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11439 * target.h (struct target_ops) <to_resume, to_wait,
11440 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11441 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11442 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11444 (forward_target_remove_breakpoint)
11445 (forward_target_insert_breakpoint): Remove.
11446 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11448 (record_btrace_insert_breakpoint): Delegate directly.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11453 * target-delegates.c: New file.
11454 * target.c: Include target-delegates.c.
11455 (init_dummy_target): Call install_dummy_methods.
11456 (complete_target_initialization): Call install_delegators.
11457 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11458 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11459 * make-target-delegates: New file.
11461 2014-02-19 Tom Tromey <tromey@redhat.com>
11463 * record.c (find_record_target): Use find_target_at.
11464 * target.c (find_target_at): New function.
11465 * target.h (find_target_at): Declare.
11467 2014-02-19 Tom Tromey <tromey@redhat.com>
11469 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11470 Add 'ops' argument.
11471 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11473 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11474 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11476 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11478 * linux-nat.c (save_sigtrap): Update.
11479 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11480 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11481 (linux_nat_close): Update.
11482 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11484 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11486 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11487 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11488 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11489 (tmp_to_async): Add 'ops' argument.
11490 (record_full_stopped_by_watchpoint, record_full_async)
11491 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11493 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11494 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11495 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11496 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11497 (remote_is_async_p, remote_async): Add 'ops' argument.
11498 (remote_stopped_data_address): Update.
11499 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11500 * target.c (update_current_target)
11501 (find_default_can_async_p, find_default_is_async_p): Update.
11502 (init_dummy_target): Update.
11503 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11504 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11505 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11506 (target_can_async_p, target_is_async_p, target_async)
11507 (target_stopped_by_watchpoint): Update.
11509 2014-02-19 Yao Qi <yao@codesourcery.com>
11512 * gdbarch.sh: Remove startup_gdbarch.
11513 * gdbarch.c: Regenerated.
11514 * gdbarch.h: Likewise.
11516 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11518 * rl78-tdep.c (rl78_g10_register_name): New function.
11519 (rl78_return_value): Add g10 support.
11520 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11523 2014-02-17 Doug Evans <xdje42@gmail.com>
11525 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11526 (SUBDIR_GUILE_SRCS): Ditto.
11527 (scm-gsmob.o): Ditto.
11529 2014-02-17 Yao Qi <yao@codesourcery.com>
11531 * gnu-nat.c (ILL_RPC): Declare defined function.
11533 2014-02-17 Yao Qi <yao@codesourcery.com>
11535 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11536 mach_msg_type_number_t.
11537 (gnu_write_inferior): Likewise.
11539 2014-02-17 Yao Qi <yao@codesourcery.com>
11541 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11543 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11544 (inf_validate_procs, inf_signal): Likewise.
11545 (S_exception_raise_request): Likewise.
11546 (do_mach_notify_dead_name): Likewise.
11547 (steal_exc_port): Likewise.
11548 (gnu_read_inferior): Change 'copy_count''s type to
11549 mach_msg_type_number_t.
11550 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11553 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11555 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11556 flag. Adjust all users; in particular...
11557 (gnu_wait): ..., don't decrement its value in here...
11558 (gnu_create_inferior): ..., and instead set the flag in here,
11559 around the startup_inferior call, and call that one with
11560 START_INFERIOR_TRAPS_EXPECTED.
11562 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11563 (ILL_RPC): ... new macro.
11564 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11565 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11566 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11567 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11568 functions with ILL_RPC macro.
11569 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11570 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11571 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11572 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11573 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11574 (S_proc_getlogin_reply, S_proc_getsid_reply)
11575 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11576 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11577 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11578 (S_proc_getnports_reply, S_proc_is_important_reply)
11579 (S_proc_get_code_reply): New stub functions, generated with
11582 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11583 collected the type check structures.
11585 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11587 2014-02-14 Doug Evans <dje@google.com>
11589 * target.c (target_write_partial): Fix result type.
11591 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11593 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11594 the proper offsets to access fpregset_t.
11596 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11598 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11599 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11600 * h8300-tdep.c (setmachinelist): Remove global.
11601 * hppa-tdep.c (hppa_sigtramp): Remove global.
11602 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11603 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11604 * ravenscar-thread.c (update_target_observer): Remove global.
11605 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11607 2014-02-12 Tom Tromey <tromey@redhat.com>
11609 * common/rsp-low.c: Update comments.
11610 * common/rsp-low.h: Update comments.
11612 2014-02-12 Tom Tromey <tromey@redhat.com>
11614 * common/rsp-low.c (convert_ascii_to_int): Remove.
11615 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11617 2014-02-12 Tom Tromey <tromey@redhat.com>
11619 * common/rsp-low.h (unhexify): Don't declare.
11620 * common/rsp-low.c (unhexify): Remove.
11622 2014-02-12 Tom Tromey <tromey@redhat.com>
11624 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11625 * common/rsp-low.c (convert_int_to_ascii): Remove.
11627 2014-02-12 Tom Tromey <tromey@redhat.com>
11629 * common/rsp-low.h (hexify): Don't declare.
11630 * common/rsp-low.c (hexify): Remove.
11632 2014-02-12 Tom Tromey <tromey@redhat.com>
11634 * common/rsp-low.c (hexify): Never take strlen of argument.
11636 2014-02-12 Tom Tromey <tromey@redhat.com>
11638 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11639 * remote.c (extended_remote_run, remote_rcmd)
11640 (remote_download_trace_state_variable, remote_save_trace_data)
11641 (remote_set_trace_notes): Update.
11642 * tracepoint.c (encode_source_string, tfile_write_status)
11643 (tfile_write_uploaded_tsv): Update.
11645 2014-02-12 Tom Tromey <tromey@redhat.com>
11647 * tracepoint.c: Include rsp-low.h.
11648 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11649 * remote.c: Include rsp-low.h.
11650 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11651 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11652 (remote_unescape_input): Move to common/rsp-low.c.
11653 * common/rsp-low.h: New file.
11654 * common/rsp-low.c: New file.
11655 * Makefile.in (SFILES): Add common/rsp-low.c.
11656 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11657 (COMMON_OBS): Add rsp-low.o.
11658 (rsp-low.o): New target.
11660 2014-02-12 Tom Tromey <tromey@redhat.com>
11662 * utils.h: Include print-utils.h.
11663 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11664 (int_string, core_addr_to_string, core_addr_to_string_nz)
11665 (hex_string, hex_string_custom): Don't declare.
11666 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11667 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11668 (hex_string_custom, int_string, core_addr_to_string)
11669 (core_addr_to_string_nz, host_address_to_string): Move to
11670 common/print-utils.c.
11671 * common/print-utils.h: New file.
11672 * common/print-utils.c: New file
11673 * Makefile.in (SFILES): Add common/print-utils.c.
11674 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11675 (COMMON_OBS): Add print-utils.o.
11676 (print-utils.o): New target.
11678 2014-02-12 Tom Tromey <tromey@redhat.com>
11680 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11682 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11684 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11686 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11688 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11689 if a PT_IO ptrace request returns sucessfully but indicates that 0
11690 bytes were transferred.
11692 2014-02-12 Pedro Alves <palves@redhat.com>
11693 Kevin Buettner <kevinb@redhat.com>
11695 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11696 TYPE_INSTANCE_FLAG_CODE_SPACE.
11698 2014-02-12 Pedro Alves <palves@redhat.com>
11700 * h8300-tdep.c (pseudo_from_raw_register)
11701 (raw_from_pseudo_register): New functions.
11702 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11705 2014-02-12 Pedro Alves <palves@redhat.com>
11707 * h8300-tdep.c (h8300_register_sim_regno): New function.
11708 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11709 gdbarch_register_sim_regno hook.
11711 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11713 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11715 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11717 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11719 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11721 * obsd-tdep.h (obsd_init_abi): New prototype.
11722 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11723 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11724 (obsd_init_abi): New functions.
11725 * i386obsd-tdep.c: Include "obsd-tdep.h".
11726 (i386obsd_init_abi): Call obsd_init_abi.
11727 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11728 (amd64obsd_init_abi): Call obsd_init_abi.
11729 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11730 obsd-tdep.c to gdb_target_obs.
11732 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11734 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11735 double float arguments to 16-byte in the argument slots.
11737 2014-02-11 Doug Evans <xdje42@gmail.com>
11739 * configure.ac: Don't crash if pkg-config is not found and guile
11740 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11742 * configure: Regenerate.
11744 2014-02-11 Yao Qi <yao@codesourcery.com>
11746 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11747 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11748 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11749 * gnu-nat.c (gnu_xfer_memory): Likewise.
11750 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11751 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11752 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11753 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11755 2014-02-11 Yao Qi <yao@codesourcery.com>
11757 * target.h (enum target_xfer_error): Rename to ...
11758 (enum target_xfer_status): ... it. New. All users updated.
11759 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11761 (TARGET_XFER_STATUS_ERROR_P): New macro.
11762 (target_xfer_error_to_string): Remove declaration.
11763 (target_xfer_status_to_string): Declare.
11764 (target_xfer_partial_ftype): Adjust it.
11765 (struct target_ops) <to_xfer_partial>: Return
11766 target_xfer_status. Add argument xfered_len. Update
11768 * target.c (target_xfer_error_to_string): Rename to ...
11769 (target_xfer_status_to_string): ... it. New. All callers
11771 (target_read_live_memory): Likewise. Call target_xfer_partial
11772 instead of target_read.
11773 (memory_xfer_live_readonly_partial): Return
11774 target_xfer_status. Add argument xfered_len.
11775 (raw_memory_xfer_partial): Likewise.
11776 (memory_xfer_partial_1): Likewise.
11777 (memory_xfer_partial): Likewise.
11778 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11779 properly. Update debug message.
11780 (default_xfer_partial, current_xfer_partial): Likewise.
11781 (target_write_partial): Likewise.
11782 (target_read_partial): Likewise. All callers updated.
11783 (read_whatever_is_readable): Likewise.
11784 (target_write_with_progress): Likewise.
11785 (target_read_alloc_1): Likewise.
11787 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11788 * auxv.c (procfs_xfer_auxv): Likewise.
11789 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11790 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11791 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11792 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11793 * corefile.c (read_memory): Adjust.
11794 * corelow.c (core_xfer_partial): Likewise.
11795 * ctf.c (ctf_xfer_partial): Likewise.
11796 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11798 (darwin_xfer_partial): Likewise.
11799 * exec.c (section_table_xfer_memory_partial): Likewise. All
11801 (exec_xfer_partial): Likewise.
11802 * exec.h (section_table_xfer_memory_partial): Update
11804 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11806 (gnu_xfer_partial): Likewise.
11807 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11808 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11809 (ia64_hpux_xfer_solib_got): Likewise.
11810 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11811 type of 'partial_len' to ULONGEST.
11812 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11813 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11814 (linux_nat_xfer_partial): Likewise.
11815 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11816 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11817 * monitor.c (monitor_xfer_memory): Likewise.
11818 (monitor_xfer_partial): Likewise.
11819 * procfs.c (procfs_xfer_partial): Likewise.
11820 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11821 * record-full.c (record_full_xfer_partial): Likewise.
11822 (record_full_core_xfer_partial): Likewise.
11823 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11824 (gdbsim_xfer_partial): Likewise.
11825 * remote.c (remote_write_bytes_aux): Likewise. All callers
11827 (remote_write_bytes, remote_read_bytes): Likewise. All
11829 (remote_flash_erase): Likewise. All callers updated.
11830 (remote_write_qxfer): Likewise. All callers updated.
11831 (remote_read_qxfer): Likewise. All callers updated.
11832 (remote_xfer_partial): Likewise.
11833 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11834 (rs6000_xfer_shared_libraries): Likewise.
11835 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11836 (sol_thread_xfer_partial): Likewise.
11837 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11838 (sparc_xfer_partial): Likewise.
11839 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11841 (spu_xfer_partial): Likewise.
11842 * spu-multiarch.c (spu_xfer_partial): Likewise.
11843 * tracepoint.c (tfile_xfer_partial): Likewise.
11844 * windows-nat.c (windows_xfer_memory): Likewise.
11845 (windows_xfer_shared_libraries): Likewise.
11846 (windows_xfer_partial): Likewise.
11847 * valprint.c: Replace 'target_xfer_error' with
11848 'target_xfer_status' in comments.
11850 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11852 Checked in by Joel Brobecker <brobecker@adacore.com>.
11853 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11855 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11857 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11858 function parameters.
11860 2014-02-10 Will Newton <will.newton@linaro.org>
11862 * elfread.c (elf_rel_plt_read): Look for a .got section if
11863 looking up .got.plt fails.
11864 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11865 on address passed to elf_gnu_ifunc_record_cache.
11866 (elf_gnu_ifunc_resolve_addr): Likewise.
11867 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11869 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11871 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11872 (X_RETTURN): New macro.
11873 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11875 * sparc64-tdep.c (sparc64_init_abi): Hook
11876 sparc_in_function_epilogue_p.
11878 2014-02-10 Gary Benson <gbenson@redhat.com>
11880 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11881 Rename name_matcher to symbol_matcher.
11883 2014-02-10 Gary Benson <gbenson@redhat.com>
11885 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11886 Use expand_symtabs_file_matcher_ftype and
11887 expand_symtabs_symbol_matcher_ftype.
11889 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11891 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11892 (struct ada_symbol_cache): New.
11893 (ada_free_symbol_cache): Forward declare.
11894 (struct ada_pspace_data): New.
11895 (ada_pspace_data_handle): New static global.
11896 (get_ada_pspace_data, ada_pspace_data_cleanup)
11897 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11898 (cache_space, cache): Delete, now folded inside struct
11900 (ada_get_symbol_cache): New function.
11901 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11903 (_initialize_ada_language): Remove initialization of cache_space.
11904 Move call to observer_attach_inferior_exit up, grouping it
11905 with the other observer registrations inside this function.
11906 Rename command to be more general. Add call to
11907 register_program_space_data_with_cleanup.
11909 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11911 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11912 ada_new_objfile_observer.
11913 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11914 (_initialize_tasks): Update uses of ada_new_objfile_observer
11915 and ada_tasks_normal_stop_observer.
11917 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11919 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11920 returned by the 'Length attribute to integer.
11922 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11924 * ada-lang.c (_initialize_ada_language): Initialize
11925 cache_space obstack.
11927 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11929 * ada-lang.c (HASH_SIZE): New macro.
11930 (struct cache_entry): New type.
11931 (cache_space, cache): New static globals.
11932 (ada_clear_symbol_cache, find_entry): New functions.
11933 (lookup_cached_symbol, cache_symbol): Implement.
11934 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11935 (_initialize_ada_language): Attach ada_new_objfile_observer
11936 and ada_free_objfile_observer.
11938 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11940 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11941 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11942 struct block * parameter.
11943 (ada_lookup_symbol_list_worker): Constify local variable "block".
11944 Remove cast which is no longer necessary.
11946 2014-02-10 Doug Evans <xdje42@gmail.com>
11948 Add Guile as an extension language.
11949 * NEWS: Mention Guile scripting.
11950 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11951 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11952 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11953 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11954 (CLIBS): Add GUILE_LIBS.
11955 (install-guile): New rule.
11956 (guile.o): New rule.
11957 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11958 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11959 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11960 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11961 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11962 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11963 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11964 * configure.ac: New option --with-guile.
11965 * configure: Regenerate.
11966 * config.in: Regenerate.
11967 * auto-load.c: Remove #include "python/python.h". Add #include
11968 "gdb/section-scripts.h".
11969 (source_section_scripts): Handle Guile scripts.
11970 (_initialize_auto_load): Add name of Guile objfile script to
11971 scripts-directory help text.
11972 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11973 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11974 (struct breakpoint): New member scm_bp_object.
11975 * defs.h (enum command_control_type): New value guile_control.
11976 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11978 (show_user): Update comment.
11979 (_initialize_cli_cmds): Update help text for "show user". Update help
11980 text for max-user-call-depth.
11981 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11983 (multi_line_command_p): Add guile_control.
11984 (print_command_lines): Handle guile_control.
11985 (execute_control_command, recurse_read_control_structure): Ditto.
11986 (process_next_line): Recognize "guile" commands.
11987 * disasm.c (gdb_disassemble_info): Make non-static.
11988 * disasm.h: #include "dis-asm.h".
11989 (struct gdbarch): Add forward decl.
11990 (gdb_disassemble_info): Declare.
11991 * extension.c: #include "guile/guile.h".
11992 (extension_languages): Add guile.
11993 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11994 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11995 * gdbtypes.c (get_unsigned_type_max): New function.
11996 (get_signed_type_minmax): New function.
11997 * gdbtypes.h (get_unsigned_type_max): Declare.
11998 (get_signed_type_minmax): Declare.
11999 * guile/README: New file.
12000 * guile/guile-internal.h: New file.
12001 * guile/guile.c: New file.
12002 * guile/guile.h: New file.
12003 * guile/scm-arch.c: New file.
12004 * guile/scm-auto-load.c: New file.
12005 * guile/scm-block.c: New file.
12006 * guile/scm-breakpoint.c: New file.
12007 * guile/scm-disasm.c: New file.
12008 * guile/scm-exception.c: New file.
12009 * guile/scm-frame.c: New file.
12010 * guile/scm-gsmob.c: New file.
12011 * guile/scm-iterator.c: New file.
12012 * guile/scm-lazy-string.c: New file.
12013 * guile/scm-math.c: New file.
12014 * guile/scm-objfile.c: New file.
12015 * guile/scm-ports.c: New file.
12016 * guile/scm-pretty-print.c: New file.
12017 * guile/scm-safe-call.c: New file.
12018 * guile/scm-string.c: New file.
12019 * guile/scm-symbol.c: New file.
12020 * guile/scm-symtab.c: New file.
12021 * guile/scm-type.c: New file.
12022 * guile/scm-utils.c: New file.
12023 * guile/scm-value.c: New file.
12024 * guile/lib/gdb.scm: New file.
12025 * guile/lib/gdb/boot.scm: New file.
12026 * guile/lib/gdb/experimental.scm: New file.
12027 * guile/lib/gdb/init.scm: New file.
12028 * guile/lib/gdb/iterator.scm: New file.
12029 * guile/lib/gdb/printing.scm: New file.
12030 * guile/lib/gdb/types.scm: New file.
12031 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12032 (VPATH): Add $(GUILE_SRCDIR).
12033 (GUILE_DIR): New variable.
12034 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12035 (all): Add stamp-guile dependency.
12036 (stamp-guile): New rule.
12037 (clean-guile, install-guile, uninstall-guile): New rules.
12038 (install-only): Add install-guile dependency.
12039 (uninstall): Add uninstall-guile dependency.
12040 (clean): Add clean-guile dependency.
12042 2014-02-09 Doug Evans <xdje42@gmail.com>
12044 Revert this patch (which I approved, mea culpa).
12046 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12048 * Makefile.in (all-lib): Remove.
12049 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12051 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12053 Fix Python stack corruption.
12054 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12057 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12059 * Makefile.in (all-lib): Remove.
12060 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12062 2014-02-07 Doug Evans <dje@google.com>
12064 * extension-priv.h (extension_language_script_ops): Add comment.
12065 (extension_language_ops): Add comment.
12066 (active_ext_lang_state): Fix typo in comment.
12068 2014-02-07 Pedro Alves <palves@redhat.com>
12070 PR breakpoints/16292
12071 * infrun.c (handle_signal_stop) <signal arrives while stepping
12072 over a breakpoint>: Switch back to the stepping thread.
12074 2014-02-07 Yao Qi <yao@codesourcery.com>
12076 * target.c (target_xfer_partial): Return zero if LEN is zero.
12078 2014-02-07 Yao Qi <yao@codesourcery.com>
12080 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12081 (ld_so_xfer_auxv): Likewise.
12082 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12083 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12084 * corelow.c (core_xfer_partial): Likewise.
12085 * ctf.c (ctf_xfer_partial): Likewise.
12086 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12087 (darwin_xfer_partial): Likewise.
12088 * exec.c (exec_xfer_partial): Likewise.
12089 * gnu-nat.c (gnu_xfer_partial): Likewise.
12090 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12091 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12092 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12093 * linux-nat.c (linux_xfer_siginfo): Likewise.
12094 (linux_proc_xfer_spu): Likewise.
12095 * procfs.c (procfs_xfer_partial): Likewise.
12096 * record-full.c (record_full_xfer_partial): Likewise.
12097 (record_full_core_xfer_partial): Likewise.
12098 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12099 * remote.c (remote_write_qxfer): Likewise.
12100 (remote_write_qxfer, remote_read_qxfer): Likewise.
12101 (remote_xfer_partial): Likewise.
12102 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12103 (rs6000_xfer_shared_libraries): Likewise.
12104 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12105 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12106 (spu_xfer_partial): Likewise.
12107 * target.c (memory_xfer_partial_1): Likewise.
12108 * tracepoint.c (tfile_xfer_partial): Likewise.
12109 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12110 (windows_xfer_partial): Likewise.
12112 2014-02-07 Yao Qi <yao@codesourcery.com>
12114 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12116 (core_xfer_shared_libraries_aix): Likewise.
12117 * gdbarch.c, gdbarch.h: Regenerated.
12118 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12119 ULONGEST. Change 'len_avail' type to ULONGEST.
12120 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12121 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12123 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12125 2014-02-07 Yao Qi <yao@codesourcery.com>
12127 * corefile.c (memory_error): Get 'exception' from ERR and pass
12128 'exception' to throw_error.
12130 2014-02-06 Doug Evans <xdje42@gmail.com>
12132 * configure.ac (libpython checking): Remove all but python.o from
12133 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12134 * configure: Regenerate.
12136 * Makefile.in (SFILES): Add extension.c.
12137 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12138 (COMMON_OBS): Add extension.o.
12139 * extension.h: New file.
12140 * extension-priv.h: New file.
12141 * extension.c: New file.
12143 * python/python-internal.h: #include "extension.h".
12144 (gdbpy_auto_load_enabled): Declare.
12145 (gdbpy_apply_val_pretty_printer): Declare.
12146 (gdbpy_apply_frame_filter): Declare.
12147 (gdbpy_preserve_values): Declare.
12148 (gdbpy_breakpoint_cond_says_stop): Declare.
12149 (gdbpy_breakpoint_has_cond): Declare.
12150 (void source_python_script_for_objfile): Delete.
12151 * python/python.c: #include "extension-priv.h".
12152 Delete inclusion of "observer.h".
12153 (extension_language_python): Moved here and renamed from
12154 script_language_python in py-auto-load.c.
12155 Redefined to be of type extension_language_defn.
12156 (python_extension_script_ops): New global.
12157 (python_extension_ops): New global.
12158 (struct python_env): New member previous_active.
12159 (restore_python_env): Call restore_active_ext_lang.
12160 (ensure_python_env): Call set_active_ext_lang.
12161 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12163 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12165 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12167 (gdbpy_eval_from_control_command): Renamed from
12168 eval_python_from_control_command, made static. New arg extlang.
12169 (gdbpy_source_script) Renamed from source_python_script, made static.
12171 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12172 result to int. New arg extlang.
12173 (gdbpy_source_objfile_script): Renamed from
12174 source_python_script_for_objfile, made static. New arg extlang.
12175 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12176 static. New args extlang, extlang_printers. Change result type to
12178 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12179 static. New arg extlang. Rename arg printers to extlang_printers
12180 and change type to ext_lang_type_printers *.
12181 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12182 static. Replace argument arg with extlang, extlang_printers.
12183 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12184 (!HAVE_PYTHON, source_python_script): Delete.
12185 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12186 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12187 (!HAVE_PYTHON, start_type_printers): Delete.
12188 (!HAVE_PYTHON, apply_type_printers): Delete.
12189 (!HAVE_PYTHON, free_type_printers): Delete.
12190 (_initialize_python): Delete call to observer_attach_before_prompt.
12191 (finalize_python): Set/restore active extension language.
12192 (gdbpy_finish_initialization) Renamed from
12193 finish_python_initialization, made static. New arg extlang.
12194 (gdbpy_initialized): New function.
12195 * python/python.h: #include "extension.h". Delete #include
12196 "value.h", "mi/mi-cmds.h".
12197 (extension_language_python): Declare.
12198 (GDBPY_AUTO_FILE_NAME): Delete.
12199 (enum py_bt_status): Moved to extension.h and renamed to
12200 ext_lang_bt_status.
12201 (enum frame_filter_flags): Moved to extension.h.
12202 (enum py_frame_args): Moved to extension.h and renamed to
12203 ext_lang_frame_args.
12204 (finish_python_initialization): Delete.
12205 (eval_python_from_control_command): Delete.
12206 (source_python_script): Delete.
12207 (apply_val_pretty_printer): Delete.
12208 (apply_frame_filter): Delete.
12209 (preserve_python_values): Delete.
12210 (gdbpy_script_language_defn): Delete.
12211 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12212 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12214 * auto-load.c: #include "extension.h".
12215 (GDB_AUTO_FILE_NAME): Delete.
12216 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12217 (script_language_gdb): Delete, moved to extension.c and renamed to
12218 extension_language_gdb.
12219 (source_gdb_script_for_objfile): Delete.
12220 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12221 (loaded_script): Change type of language member to
12222 struct extension_language_defn *.
12223 (init_loaded_scripts_info): Initialize
12224 unsupported_script_warning_printed.
12225 (maybe_add_script): Make static. Change type of language arg to
12226 struct extension_language_defn *.
12227 (clear_section_scripts): Reset unsupported_script_warning_printed.
12228 (auto_load_objfile_script_1): Rewrite to use extension language API.
12229 (auto_load_objfile_script): Make public. Remove support-compiled-in
12230 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12231 (source_section_scripts): Rewrite to use extension language API.
12232 (load_auto_scripts_for_objfile): Rewrite to use
12233 auto_load_scripts_for_objfile.
12234 (collect_matching_scripts_data): Change type of language member to
12235 struct extension_language_defn *.
12236 (auto_load_info_scripts): Change type of language arg to
12237 struct extension_language_defn *.
12238 (unsupported_script_warning_print): New function.
12239 (script_not_found_warning_print): Make static.
12240 (_initialize_auto_load): Rewrite construction of scripts-directory
12242 * auto-load.h (struct objfile): Add forward decl.
12243 (struct script_language): Delete.
12244 (struct auto_load_pspace_info): Add forward decl.
12245 (struct extension_language_defn): Add forward decl.
12246 (maybe_add_script): Delete.
12247 (auto_load_objfile_script): Declare.
12248 (script_not_found_warning_print): Delete.
12249 (auto_load_info_scripts): Update prototype.
12250 (auto_load_gdb_scripts_enabled): Declare.
12251 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12252 auto_load_python_scripts_enabled and made public.
12253 (script_language_python): Delete, moved to python.c.
12254 (gdbpy_script_language_defn): Delete.
12255 (info_auto_load_python_scripts): Update to use
12256 extension_language_python.
12258 * breakpoint.c (condition_command): Replace call to
12259 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12260 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12261 with call to breakpoint_ext_lang_cond_says_stop.
12262 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12263 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12264 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12265 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12267 (local_setattro): Print name of extension language with existing
12270 * valprint.c (val_print, value_print): Update to call
12271 apply_ext_lang_val_pretty_printer.
12272 * cp-valprint.c (cp_print_value): Update call to
12273 apply_ext_lang_val_pretty_printer.
12274 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12275 (gdbpy_apply_val_pretty_printer): Renamed from
12276 apply_val_pretty_printer. New arg extlang.
12277 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12279 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12280 extension language API.
12281 * cli/cli-script.c (execute_control_command): Update to call
12282 eval_ext_lang_from_control_command.
12284 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12285 enum ext_lang_bt_status values. Update call to
12286 apply_ext_lang_frame_filter.
12287 (mi_cmd_stack_list_locals): Ditto.
12288 (mi_cmd_stack_list_args): Ditto.
12289 (mi_cmd_stack_list_variables): Ditto.
12290 * mi/mi-main.c: Delete #include "python/python-internal.h".
12291 Add #include "extension.h".
12292 (mi_cmd_list_features): Replace reference to python internal variable
12293 gdb_python_initialized with call to ext_lang_initialized_p.
12295 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12296 Update to use enum ext_lang_frame_args. Update to call
12297 apply_ext_lang_frame_filter.
12298 * python/py-framefilter.c (extract_sym): Update to use enum
12299 ext_lang_bt_status.
12300 (extract_value, py_print_type, py_print_value): Ditto.
12301 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12302 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12303 (py_print_frame): Ditto.
12304 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12305 New arg extlang. Update to use enum ext_lang_bt_status.
12307 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12308 finish_python_initialization. Replace with call to
12309 finish_ext_lang_initialization.
12311 * typeprint.c (do_free_global_table): Update to call
12312 free_ext_lang_type_printers.
12313 (create_global_typedef_table): Update to call
12314 start_ext_lang_type_printers.
12315 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12316 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12317 (type_print_options): Change type of global_printers from "void *"
12318 to "struct ext_lang_type_printers *".
12320 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12321 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12322 (gdbpy_preserve_values): Renamed from preserve_python_values.
12324 (!HAVE_PYTHON, preserve_python_values): Delete.
12326 * utils.c (quit_flag): Delete, moved to extension.c.
12327 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12330 * eval.c: Delete #include "python/python.h".
12331 * main.c: Delete #include "python/python.h".
12333 * defs.h: Update comment.
12335 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12339 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12341 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12344 2014-02-05 Yao Qi <yao@codesourcery.com>
12346 * remote.c (remote_pass_signals): Remove local 'buf' and use
12348 (remote_program_signals): Likewise.
12350 2014-02-05 Yao Qi <yao@codesourcery.com>
12352 * ctf.c: Include "inferior.h" and "gdbthread.h".
12353 (CTF_PID): A new macro.
12354 (ctf_open): Call inferior_appeared and add_thread_silent.
12355 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12356 (ctf_thread_alive): New function.
12357 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12359 2014-02-05 Yao Qi <yao@codesourcery.com>
12363 2013-05-24 Yao Qi <yao@codesourcery.com>
12365 * tracepoint.c (TFILE_PID): Remove.
12366 (tfile_open): Don't add thread and inferior.
12367 (tfile_close): Don't set 'inferior_ptid'. Don't call
12368 exit_inferior_silent.
12369 (tfile_thread_alive): Remove.
12370 (init_tfile_ops): Don't set field 'to_thread_alive' of
12373 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12375 * remote.c (remote_start_remote): Call remote_check_symbols even
12376 if only symbol-file (not file) has been given.
12378 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12380 * gdbarch.sh (skip_entrypoint): New callback.
12381 * gdbarch.c, gdbarch.h: Regenerate.
12382 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12383 * infrun.c (fill_in_stop_func): Likewise.
12384 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12385 (ppc_elfv2_elf_make_msymbol_special): New function.
12386 (ppc_elfv2_skip_entrypoint): Likewise.
12387 (ppc_linux_init_abi): Install them for ELFv2.
12389 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12391 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12392 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12393 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12394 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12395 structures returned in GPRs.
12397 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12399 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12400 offset to the stack parameter list for the ELFv2 ABI.
12402 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12404 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12405 set_gdbarch_convert_from_func_ptr_addr and
12406 set_gdbarch_elf_make_msymbol_special for ELFv1.
12407 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12408 function descriptors on ELFv1.
12409 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12410 set up r12 at function entry.
12412 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12414 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12415 (struct gdbarch_tdep): New member elf_abi.
12417 * rs6000-tdep.c: Include "elf/ppc64.h".
12418 (rs6000_gdbarch_init): Detect ELF ABI version.
12420 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12423 within a register pair holding a DFP 128-bit value on little-endian.
12424 (ppc64_sysv_abi_return_value_base): Likewise.
12425 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12426 (dfp_pseudo_register_write): Likewise.
12428 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12431 offset on little-endian when passing _Decimal32.
12432 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12434 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12436 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12437 of the overlapped FP register within the VSX register on little-
12439 (efpr_pseudo_register_write): Likewise.
12441 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12443 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12444 offset on little-endian when passing small structures.
12446 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12448 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12449 (struct ppc64_sysv_argpos): New data structure.
12450 (ppc64_sysv_abi_push_float): Remove.
12451 (ppc64_sysv_abi_push_val): New function.
12452 (ppc64_sysv_abi_push_integer): Likewise.
12453 (ppc64_sysv_abi_push_freg): Likewise.
12454 (ppc64_sysv_abi_push_vreg): Likewise.
12455 (ppc64_sysv_abi_push_param): Likewise.
12456 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12457 (ppc64_sysv_abi_return_value_base): New function.
12458 (ppc64_sysv_abi_return_value): Refactor to use it.
12460 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12462 * NEWS: Document new target powerpc64le-*-linux*.
12464 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12466 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12467 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12469 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12470 register set used in ELF core dumps. Add floating-point register set.
12472 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12474 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12475 dwarf2_to_gdb[] table using symbolic constants. Adjust
12476 penultimate entry from number representing the PC register
12477 to symbolic constant representing the MDR register. Add
12478 constant for the PC register to the end of the table.
12480 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12482 * bsd-kvm.c: Include <sys/param.h>
12484 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12486 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12488 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12490 * ada-lang.h (clear_ada_sym_cache): Delete.
12492 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12494 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12496 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12498 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12499 the sigreturn register save area only if the syscall is
12502 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12504 * valops.c (value_slice): Minor reformatting.
12506 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12508 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12510 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12512 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12513 New static globals.
12514 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12515 (ada_ignore_descriptive_types_p): New static global.
12516 (find_parallel_type_by_descriptive_type): Return immediately
12517 if ada_ignore_descriptive_types_p is set.
12518 (_initialize_ada_language): Register new commands "maintenance
12519 set ada", "maintenance show ada", "maintenance set ada
12520 ignore-descriptive-types" and "maintenance show ada
12521 ignore-descriptive-types".
12522 * NEWS: Add entry for new "maint ada set/show
12523 ignore-descriptive-types" commands.
12525 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12527 * record-btrace.c (record_btrace_close): Call btrace_teardown
12530 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12532 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12535 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12537 * ada-typeprint (type_is_full_subrange_of_target_type):
12539 (print_range): Add parameter bounds_prefered_p. If not set,
12540 try printing range types using the name of their base type.
12541 (print_range_type): Add parameter bounds_prefered_p.
12542 Use it in call to print_range.
12543 (print_array_type, ada_print_type): Update calls to print_range
12544 and print_range_type.
12546 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12548 * ada-typeprint.c (print_array_type, print_choices, print_range)
12549 (print_range_bound, print_dynamic_range_bound, print_range_type):
12550 Remove declaration.
12552 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12554 * ada-typeprint.c (print_range): Add missing empty line
12555 after local declaration.
12557 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12559 * ada-valprint.c (print_optional_low_bound): Get index_type's
12560 target type for as long as it is a TYPE_CODE_RANGE.
12562 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12564 * procfs.c (procfs_make_note_section): Remove assertion and
12565 associated comment.
12567 2014-01-24 Yao Qi <yao@codesourcery.com>
12569 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12570 * corelow.c (get_core_siginfo): Likewise.
12572 2014-01-24 Yao Qi <yao@codesourcery.com>
12574 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12575 ULONGEST. Don't check 'len' is negative.
12576 (remote_write_bytes): Change type of 'len' to ULONGEST.
12578 2014-01-23 Tom Tromey <tromey@redhat.com>
12581 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12582 Handle exception from frame.block.
12583 (FrameVars.fetch_frame_locals): Likewise.
12585 2014-01-23 Tom Tromey <tromey@redhat.com>
12588 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12589 on a NULL pointer. Move "goto error" to correct place.
12591 2014-01-23 Tom Tromey <tromey@redhat.com>
12594 * python/py-framefilter.c (apply_frame_filter): Call
12595 ensure_python_env after computing gdbarch.
12597 2014-01-23 Yao Qi <yao@codesourcery.com>
12599 * target.c (raw_memory_xfer_partial): Change argument type
12600 from void * to gdb_byte *.
12601 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12603 2014-01-22 Doug Evans <dje@google.com>
12605 New gdbserver option --debug-format=timestamp.
12606 * NEWS: Mention it.
12608 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12610 * syscalls/s390x-linux.xml: New file.
12611 * syscalls/s390-linux.xml: New file.
12612 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12613 (XML_SYSCALL_FILENAME_S390X): Likewise.
12614 (op_svc): New enum value for SVC opcode.
12615 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12616 (s390_linux_get_syscall_number): New function.
12617 (s390_gdbarch_init): Register '*get_syscall_number' and the
12618 syscall xml file name.
12619 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12620 "s390-linux.xml" and "s390x-linux.xml".
12621 * NEWS: Announce new feature.
12623 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12625 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12627 2014-01-22 Pedro Alves <palves@redhat.com>
12629 * xtensa-config.c: Include defs.h.
12631 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12633 * common/common-utils.h: Add "ARI:" comment beside __func__
12636 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12638 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12639 documentation a bit.
12641 2014-01-21 Roland McGrath <mcgrathr@google.com>
12643 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12644 * configure: Regenerate.
12645 * aclocal.m4: Regenerate.
12646 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12647 New substituted variables.
12648 (install-strip): New target.
12649 (INSTALL_SCRIPT): New substituted variable.
12650 (FLAGS_TO_PASS): Add it.
12651 (install-only): Use $(INSTALL_SCRIPT) rather than
12652 $(INSTALL_PROGRAM) for gcore.
12654 2014-01-20 Tom Tromey <tromey@redhat.com>
12656 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12659 2014-01-20 Tom Tromey <tromey@redhat.com>
12661 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12662 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12663 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12664 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12665 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12666 (struct cmd_list_element) <flags>: Remove.
12667 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12668 doc_allocated>: New fields.
12669 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12671 * maint.c (maintenance_do_deprecate): Update.
12672 * top.c (execute_command): Update.
12674 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12676 * xtensa-linux-nat.c: Include asm/ptrace.h.
12678 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12680 * Makefile.in (SFILES): Add d-support.c.
12681 (COMMON_OBS): Add d-support.o.
12682 * d-lang.h (d_parse_symbol): Add comment, now defined in
12684 * d-lang.c (parse_call_convention)
12685 (parse_attributes, parse_function_types)
12686 (parse_function_args, parse_type, parse_identifier)
12687 (call_convention_p, d_parse_symbol): Move functions to ...
12688 * d-support.c: ... New file.
12690 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12692 * d-lang.h (d_parse_symbol): Add declaration.
12693 * d-lang.c (extract_identifiers)
12694 (extract_type_info): Remove functions.
12695 (parse_call_convention, parse_attributes)
12696 (parse_function_types, parse_function_args)
12697 (parse_type, parse_identifier, call_convention_p)
12698 (d_parse_symbol): New functions.
12699 (d_demangle): Use d_parse_symbol to demangle D symbols.
12701 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12703 * d-lang.h (struct builtin_d_type): New data type.
12704 (builtin_d_type): Add declaration.
12705 * d-lang.c (d_language_arch_info, build_d_types)
12706 (builtin_d_type): New functions.
12707 (enum d_primitive_types): New data type.
12708 (d_language_defn): Change c_language_arch_info to
12709 d_language_arch_info.
12710 (d_type_data): New static variable.
12711 (_initialize_d_language): Initialize d_type_data.
12713 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12715 * d-lang.h (d_main_name): Add declaration.
12716 * d-lang.c (d_main_name): New function.
12717 * symtab.c (find_main_name): Add call to d_main_name.
12719 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12721 * d-lang.c (d_language_defn): Change macro_expansion_c to
12722 macro_expansion_no.
12724 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12726 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12728 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12730 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12731 gdb_exception" declaration.
12732 * remote.c (getpkt_or_notif_sane): Likewise.
12734 2014-01-17 Doug Evans <dje@google.com>
12736 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12737 function, contents of dirnames_to_char_ptr_vec_append moved here.
12738 (delim_string_to_char_ptr_vec): New function.
12739 (dirnames_to_char_ptr_vec_append): Rewrite.
12740 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12742 2014-01-17 Doug Evans <dje@google.com>
12744 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12746 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12747 #include "common-utils.h".
12748 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12749 * common/vec.h (VEC_ASSERT_PASS): Update.
12750 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12751 (MACH_CHECK_ERROR): Update.
12753 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12755 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12757 * gdbarch.h: Regenerate.
12759 2014-01-16 Tom Tromey <tromey@redhat.com>
12761 * value.c (struct value) <regnum>: Move earlier.
12763 2014-01-16 Tom Tromey <tromey@redhat.com>
12765 * remote.c (extended_remote_create_inferior): Rename from
12766 extended_remote_create_inferior_1. Add "ops" argument. Remove
12767 old implementation.
12769 2014-01-16 Pedro Alves <palves@redhat.com>
12771 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12772 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12775 2014-01-16 Doug Evans <dje@google.com>
12777 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12781 * btrace.h (btrace_thread_flag): New.
12782 (struct btrace_thread_info) <flags>: New.
12783 * record-btrace.c (record_btrace_resume_thread)
12784 (record_btrace_find_thread_to_move, btrace_step_no_history)
12785 (btrace_step_stopped, record_btrace_start_replaying)
12786 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12787 (record_btrace_find_resume_thread): New.
12788 (record_btrace_resume, record_btrace_wait): Extend.
12789 (record_btrace_can_execute_reverse): New.
12790 (record_btrace_open): Fail in non-stop mode.
12791 (record_btrace_set_replay): Split into this, ...
12792 (record_btrace_stop_replaying): ... this, ...
12793 (record_btrace_clear_histories): ... and this.
12794 (init_record_btrace_ops): Init to_can_execute_reverse.
12795 * NEWS: Announce it.
12797 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12799 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12800 (forward_target_decr_pc_after_break)
12801 (target_decr_pc_after_break): New.
12802 * target.c (forward_target_decr_pc_after_break)
12803 (target_decr_pc_after_break): New.
12804 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12805 instead of gdbarch_decr_pc_after_break.
12806 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12807 instead of gdbarch_decr_pc_after_break.
12808 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12809 instead of gdbarch_decr_pc_after_break.
12810 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12811 instead of gdbarch_decr_pc_after_break.
12812 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12813 instead of gdbarch_decr_pc_after_break.
12814 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12815 instead of gdbarch_decr_pc_after_break.
12817 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12819 * btrace.c: Include regcache.h.
12820 (btrace_add_pc): New.
12821 (btrace_enable): Call btrace_add_pc.
12822 (btrace_is_empty): New.
12823 * btrace.h (btrace_is_empty): New.
12824 * record-btrace.c (require_btrace, record_btrace_info): Call
12827 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12829 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12830 Support delta reads.
12831 (linux_disable_btrace): Change return type.
12832 * common/linux-btrace.h (linux_read_btrace): Change parameters
12833 and return type to allow error reporting. Update users.
12834 (linux_disable_btrace): Change return type. Update users.
12835 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12837 (btrace_error): New.
12838 (btrace_block) <begin>: Comment on BEGIN == 0.
12839 * btrace.c (btrace_compute_ftrace): Start from the end of
12841 (btrace_stitch_trace, btrace_clear_history): New.
12842 (btrace_fetch): Read delta trace, return if replaying.
12843 (btrace_clear): Move clear history code to btrace_clear_history.
12844 (parse_xml_btrace): Throw an error if parsing failed.
12845 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12846 and return type to allow error reporting.
12847 (target_read_btrace): Change parameters and return type to allow
12849 * target.c (target_read_btrace): Update.
12850 * remote.c (remote_read_btrace): Support delta reads. Pass
12852 * NEWS: Announce it.
12854 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12856 * record.h (record_btrace_frame_unwind)
12857 (record_btrace_tailcall_frame_unwind): New declarations.
12858 * dwarf2-frame: Include record.h
12859 (dwarf2_frame_cfa): Throw an error for btrace frames.
12860 * record-btrace.c: Include hashtab.h.
12861 (btrace_get_bfun_name): New.
12862 (btrace_call_history): Call btrace_get_bfun_name.
12863 (struct btrace_frame_cache): New.
12865 (bfcache_hash, bfcache_eq, bfcache_new): New.
12866 (btrace_get_frame_function): New.
12867 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12868 (record_btrace_frame_this_id): Compute own id.
12869 (record_btrace_frame_prev_register): Provide PC, throw_error
12870 for all other registers.
12871 (record_btrace_frame_sniffer): Detect btrace frames.
12872 (record_btrace_tailcall_frame_sniffer): New.
12873 (record_btrace_frame_dealloc_cache): New.
12874 (record_btrace_frame_unwind): Add new functions.
12875 (record_btrace_tailcall_frame_unwind): New.
12876 (_initialize_record_btrace): Allocate cache.
12877 * btrace.c (btrace_clear): Call reinit_frame_cache.
12878 * NEWS: Announce it.
12880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12882 * record-btrace.c (record_btrace_set_replay)
12883 (record_btrace_goto_begin, record_btrace_goto_end)
12884 (record_btrace_goto): New.
12885 (init_record_btrace_ops): Initialize them.
12886 * NEWS: Announce it.
12888 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12890 * record-btrace.c (record_btrace_find_new_threads)
12891 (record_btrace_thread_alive): New.
12892 (init_record_btrace_ops): Initialize to_find_new_threads and
12895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12897 * record-btrace.c (record_btrace_resume): New.
12898 (record_btrace_wait): New.
12899 (init_record_btrace_ops): Initialize to_wait and to_resume.
12901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12903 * record-btrace.c (record_btrace_xfer_partial)
12904 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12905 (record_btrace_allow_memory_access): New.
12906 (init_record_btrace_ops): Initialize new methods.
12907 * target.c (raw_memory_xfer_partial): Bail out if target reports
12908 that this memory is not available.
12910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12912 * target.h (target_ops) <to_insert_breakpoint>
12913 <to_remove_breakpoint>: Add target_ops parameter.
12914 (forward_target_insert_breakpoint): New.
12915 (forward_target_remove_breakpoint): New.
12916 (memory_remove_breakpoint, memory_insert_breakpoint):
12917 Add target_ops parameter.
12918 * target.c (target_insert_breakpoint): Split into this and ...
12919 (forward_target_insert_breakpoint): ... this.
12920 (target_remove_breakpoint): Split into this and ...
12921 (forward_target_remove_breakpoint): ... this.
12922 (debug_to_insert_breakpoint): Add target_ops parameter.
12923 Call forward_target_insert_breakpoint.
12924 (debug_to_remove_breakpoint): Add target_ops parameter.
12925 Call forward_target_remove_breakpoint.
12926 (update_current_target): Do not inherit or default to_insert_breakpoint
12927 and to_remove_breakpoint.
12928 * corelow.c (ignore): Add target_ops parameter.
12929 * exec.c (ignore): Add target_ops parameter.
12930 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12931 Add target_ops parameter.
12932 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12933 Add target_ops parameter.
12934 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12935 Add target_ops parameter.
12936 * record-full.c (record_full_beneath_to_insert_breakpoint)
12937 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12938 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12939 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12940 (record_full_core_remove_breakpoint): Add target_ops parameter.
12942 (record_full_beneath_to_insert_breakpoint_ops)
12943 (record_full_beneath_to_remove_breakpoint_ops)
12944 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12945 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12946 tmp_to_remove_breakpoint_ops,
12947 record_full_beneath_to_insert_breakpoint_ops, and
12948 record_full_beneath_to_remove_breakpoint_ops.
12949 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12950 (m32r_remove_breakpoint): Add target_ops parameter.
12951 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12952 Add target_ops parameter.
12953 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12954 Add target_ops parameter.
12956 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12957 Markus Metzger <markus.t.metzger@intel.com>
12959 * record-btrace.c: Include frame-unwind.h.
12960 (record_btrace_frame_unwind_stop_reason)
12961 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12962 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12964 (init_record_btrace_ops): Install it.
12966 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12968 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12971 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12973 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12976 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12978 * frame-unwind.c: Include target.h.
12979 (frame_unwind_try_unwinder): New function with code from ...
12980 (frame_unwind_find_by_frame): ... here. New variable
12981 unwinder_from_target, call also target_get_unwinder)
12982 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12983 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12984 * target.h (struct target_ops): New fields to_get_unwinder and
12985 to_get_tailcall_unwinder.
12986 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12988 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12990 * record-btrace.c (record_btrace_fetch_registers)
12991 (record_btrace_store_registers)
12992 (record_btrace_to_prepare_to_store): New.
12993 (init_record_btrace_ops): Add the above.
12995 2014-01-16 Tom Tromey <tromey@redhat.com>
12997 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12998 * target.h (struct target_ops) <to_prepare_to_store>: Add
13000 (target_prepare_to_store): Add argument.
13001 * target.c (debug_to_prepare_to_store): Add argument.
13002 (update_current_target): Update.
13003 * remote.c (remote_prepare_to_store): Add 'self' argument.
13004 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13005 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13006 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13007 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13009 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13010 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13011 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13012 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13013 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13017 * btrace.h (replay) <replay>: New.
13018 (btrace_is_replaying): New.
13019 * btrace.c (btrace_clear): Free replay iterator.
13020 (btrace_is_replaying): New.
13021 * record-btrace.c (record_btrace_is_replaying): New.
13022 (record_btrace_info): Print insn number if replaying.
13023 (record_btrace_insn_history): Start at replay position.
13024 (record_btrace_call_history): Start at replay position.
13025 (init_record_btrace_ops): Init to_record_is_replaying.
13027 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13029 * record-btrace.c (record_btrace_insn_history_range): Include
13031 (record_btrace_insn_history_from): Adjust range.
13032 (record_btrace_call_history_range): Include
13034 (record_btrace_call_history_from): Adjust range.
13035 * NEWS: Announce changes.
13037 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13039 * record.h (enum record_print_flag)
13040 <record_print_indent_calls>: New.
13041 * record.c (get_call_history_modifiers): Recognize /c modifier.
13042 (_initialize_record): Document /c modifier.
13043 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13044 Reorder fields. Optionally indent the function name. Update
13046 * NEWS: Announce changes.
13048 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13050 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13052 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13054 * btrace.c (ftrace_new_function): Start counting at one.
13055 * record-btrace.c (record_btrace_info): Adjust number of calls
13057 * NEWS: Announce it.
13059 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13061 * record-btrace.c (btrace_call_history_insn_range): Print
13062 insn range as [begin, end].
13064 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13066 * btrace.h (struct btrace_func_link): New.
13067 (enum btrace_function_flag): New.
13068 (struct btrace_inst): Rename to ...
13069 (struct btrace_insn): ...this. Update all users.
13070 (struct btrace_func) <ibegin, iend>: Remove.
13071 (struct btrace_func_link): New.
13072 (struct btrace_func): Rename to ...
13073 (struct btrace_function): ...this. Update all users.
13074 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13075 (number, level, flags>: New.
13076 (struct btrace_insn_iterator): Rename to ...
13077 (struct btrace_insn_history): ...this.
13079 (struct btrace_insn_iterator, btrace_call_iterator): New.
13080 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13081 (struct btrace_target_info) <begin, end, level>
13082 <insn_history, call_history>: New.
13083 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13084 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13085 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13086 (btrace_call_number, btrace_call_begin, btrace_call_end)
13087 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13088 (btrace_find_function_by_number, btrace_set_insn_history)
13089 (btrace_set_call_history): New.
13090 * btrace.c (btrace_init_insn_iterator)
13091 (btrace_init_func_iterator, compute_itrace): Remove.
13092 (ftrace_print_function_name, ftrace_print_filename)
13093 (ftrace_skip_file): Change
13094 parameter to const.
13095 (ftrace_init_func): Remove.
13096 (ftrace_debug): Use new btrace_function fields.
13097 (ftrace_function_switched): Also consider gaining and
13098 losing symbol information).
13099 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13100 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13101 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13103 (ftrace_new_function): Move. Remove debug print.
13104 (ftrace_update_lines, ftrace_update_insns): New.
13105 (ftrace_update_function): Check for call, ret, and jump.
13106 (compute_ftrace): Renamed to ...
13107 (btrace_compute_ftrace): ...this. Rewritten to compute call
13109 (btrace_fetch, btrace_clear): Updated.
13110 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13111 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13112 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13113 (btrace_call_number, btrace_call_begin, btrace_call_end)
13114 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13115 (btrace_find_function_by_number, btrace_set_insn_history)
13116 (btrace_set_call_history): New.
13117 * record-btrace.c (require_btrace): Use new btrace thread
13119 (record_btrace_info, btrace_insn_history)
13120 (record_btrace_insn_history, record_btrace_insn_history_range):
13121 Use new btrace thread info fields and new iterator.
13122 (btrace_func_history_src_line): Rename to ...
13123 (btrace_call_history_src_line): ...this. Use new btrace
13124 thread info fields.
13125 (btrace_func_history): Rename to ...
13126 (btrace_call_history): ...this. Use new btrace thread info
13127 fields and new iterator.
13128 (record_btrace_call_history, record_btrace_call_history_range):
13129 Use new btrace thread info fields and new iterator.
13131 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13133 * frame.h (frame_id_build_unavailable_stack_special): New.
13134 * frame.c (frame_id_build_unavailable_stack_special): New.
13136 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13138 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13139 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13140 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13142 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13143 (i386_insn_is_jump, i386_jmp_p): New.
13144 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13145 insn_is_jump to gdbarch.
13146 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13147 * gdbarch.h: Regenerated.
13148 * gdbarch.c: Regenerated.
13149 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13150 (default_insn_is_jump): New.
13151 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13152 (default_insn_is_jump): New.
13154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13156 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13158 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13159 (btrace_read_type) <btrace_read_new>: Change to ...
13160 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13164 * common/linux-btrace.c (linux_read_btrace): Free trace from
13165 previous iteration.
13167 2014-01-15 Doug Evans <dje@google.com>
13169 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13172 2014-01-15 Tom Tromey <tromey@redhat.com>
13174 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13175 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13176 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13177 (set_objfile_main_name): New function.
13178 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13179 language_of_main>: New fields.
13180 (set_objfile_main_name): Declare.
13181 * symtab.c (find_main_name): Loop over objfiles to find the main
13183 (set_main_name): Now static.
13184 (get_main_info): Add comment.
13185 * symtab.h (set_main_name): Don't declare.
13187 2014-01-15 Tom Tromey <tromey@redhat.com>
13189 * symtab.c (main_progspace_key): New global.
13190 (struct main_info): New.
13191 (name_of_main, language_of_main): Remove.
13192 (get_main_info, main_info_cleanup): New function.
13193 (set_main_name, main_name, main_language): Use get_main_info.
13194 (_initialize_symtab): Initialize main_progspace_key.
13196 2014-01-15 Tom Tromey <tromey@redhat.com>
13198 * dbxread.c (process_one_symbol): Update.
13199 * dwarf2read.c (read_partial_die): Update.
13200 * symfile.c (set_initial_language): Call main_language.
13201 * symtab.c (language_of_main): Now static.
13202 (set_main_name): Add 'lang' parameter.
13203 (find_main_name): Update.
13204 (main_language): New function.
13205 (symtab_observer_executable_changed): Update.
13206 * symtab.h (set_main_name): Update.
13207 (language_of_main): Remove.
13208 (main_language): Declare.
13210 2014-01-15 Tom Tromey <tromey@redhat.com>
13212 * symfile.c (init_entry_point_info): Use new "initialized" field.
13214 * objfiles.h (struct entry_point) <initialized>: New field.
13215 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13216 (struct objfile) <ei>: ...here. Remove.
13217 * objfiles.c (entry_point_address_query): Update.
13219 2014-01-15 Tom Tromey <tromey@redhat.com>
13221 * objfiles.c (entry_point_address_query): Relocate entry point
13223 (objfile_relocate1): Do not relocate entry point address.
13224 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13225 <the_bfd_section_index>: New field.
13226 * symfile.c (init_entry_point_info): Find the entry point's
13229 2014-01-15 Tom Tromey <tromey@redhat.com>
13231 * solib-frv.c (enable_break): Use entry_point_address_query.
13233 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13235 * NEWS: Add note on improved process record-replay on
13236 arm*-linux* targets.
13238 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13240 * arm-tdep.c (enum arm_record_result): New enum.
13241 (arm_record_unsupported_insn): New function.
13242 (arm_record_coproc_data_proc): Removed.
13243 (thumb2_record_ld_st_multiple): New function.
13244 (thumb2_record_ld_st_dual_ex_tbb): New function.
13245 (thumb2_record_data_proc_sreg_mimm): New function.
13246 (thumb2_record_ps_dest_generic): New function.
13247 (thumb2_record_branch_misc_cntrl): New function.
13248 (thumb2_record_str_single_data): New function.
13249 (thumb2_record_ld_mem_hints): New function.
13250 (thumb2_record_ld_word): New function.
13251 (thumb2_record_lmul_lmla_div): New function.
13252 (thumb2_record_decode_insn_handler): New function.
13253 (decode_insn): Add thumb32 instruction handlers.
13255 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13257 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13258 (struct arm_linux_record_tdep): Declare.
13259 (arm_canonicalize_syscall): New function.
13260 (arm_all_but_pc_registers_record): New function.
13261 (arm_linux_syscall_record): New function.
13262 (arm_linux_init_abi): Add syscall recording constructs.
13263 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13264 decoding. (arm_record_coproc_data_proc): Update arm syscall
13266 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13267 <arm_syscall_record>: New field.
13268 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13271 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13273 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13274 register for push instruction recording.
13276 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13278 * arm-tdep.c (thumb_record_misc): Update to correct logical
13279 error while recording ldm, ldmia and pop instructions.
13281 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13283 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13285 2014-01-15 Pedro Alves <palves@redhat.com>
13287 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13288 (go32_resume, go32_fetch_registers, store_register)
13289 (go32_store_registers, go32_prepare_to_store)
13290 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13291 (go32_create_inferior, go32_can_run, go32_terminal_init)
13292 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13295 2014-01-15 Tom Tromey <tromey@redhat.com>
13297 * target.h (async_callback_ftype): New typedef.
13298 (struct target_ops) <to_async>: Use it.
13300 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13302 * python/py-value.c (get_field_type): Remove unnecessary curly
13303 braces for single-statement if block.
13305 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13307 * python/py-type.c (convert_field): Add missing empty line
13308 after declarations.
13310 2014-01-14 Doug Evans <dje@google.com>
13312 * symfile.h (expand_symtabs_matching): Renamed from
13313 expand_partial_symbol_names. Update prototype.
13314 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13315 * symfile.c (expand_symtabs_matching): Renamed from
13316 expand_partial_symbol_names. New args file_matcher, kind.
13317 Rename arg fun to symbol_matcher.
13318 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13319 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13320 ada_expand_partial_symbol_name.
13321 (ada_make_symbol_completion_list): Update to call
13322 expand_symtabs_matching.
13323 (ada_add_global_exceptions): Call expand_symtabs_matching.
13324 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13325 call map_symbol_filenames.
13326 * symtab.c (sources_info): Update to call map_symbol_filenames.
13327 (search_symbols): Call expand_symtabs_matching.
13328 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13329 (default_make_symbol_completion_list_break_on): Update to call
13330 expand_symtabs_matching.
13331 (make_source_files_completion_list): Update to call
13332 map_symbol_filenames.
13334 2014-01-14 Doug Evans <dje@google.com>
13336 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13337 (expand_symtabs_symbol_matcher_ftype): New typedef.
13338 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13339 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13340 * symfile.c (expand_partial_symbol_names): Update to use
13341 expand_symtabs_symbol_matcher_ftype.
13342 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13343 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13344 Arg name_matcher renamed to symbol_matcher.
13345 * psymtab.c (recursively_search_psymtabs): Update to use
13346 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13348 (expand_symtabs_matching_via_partial): Update to use
13349 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13350 Arg name_matcher renamed to symbol_matcher.
13352 2014-01-14 Doug Evans <dje@google.com>
13354 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13355 (map_partial_symbol_filenames): Ditto.
13356 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13357 (map_partial_symbol_filenames): Ditto.
13358 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13359 (map_partial_symbol_filenames): Ditto.
13360 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13361 (map_partial_symbol_filenames): Ditto.
13362 * symtab.c: Delete #include "psymtab.h".
13364 2014-01-14 Pedro Alves <palves@redhat.com>
13365 Tom Tromey <tromey@redhat.com>
13367 * infrun.c (use_displaced_stepping): Use find_record_target
13368 instead of RECORD_IS_USED.
13369 (adjust_pc_after_break): Use record_full_is_used instead of
13371 * record-btrace.c (record_btrace_open): Call record_preopen
13372 instead of checking RECORD_IS_USED.
13373 * record-full.c (record_full_shortname)
13374 (record_full_core_shortname): New globals.
13375 (record_full_is_used): New function.
13376 (find_full_open): Call record_preopen instead of checking
13378 (init_record_full_ops): Set the target's shortname to
13379 record_full_shortname.
13380 (init_record_full_core_ops): Set the target's shortname to
13381 record_full_core_shortname.
13382 * record-full.h (record_full_is_used): Declare.
13383 * record.c (find_record_target): Make extern.
13384 (record_preopen): New function.
13385 * record.h (RECORD_IS_USED): Delete macro.
13386 (find_record_target, record_preopen): Declare functions.
13388 2014-01-14 Yao Qi <yao@codesourcery.com>
13390 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13391 'len''s type to ULONGEST.
13392 (core_xfer_shared_libraries_aix): Likewise.
13393 * gdbarch.c, gdbarch.h: Regenerated.
13394 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13395 Change type of 'len' to ULONGEST.
13396 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13397 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13399 2014-01-14 Yao Qi <yao@codesourcery.com>
13401 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13402 type of 'len' to ULONGEST.
13403 (linux_xfer_osdata_processgroups): Likewise.
13404 (linux_xfer_osdata_threads): Likewise.
13405 (linux_xfer_osdata_fds): Likewise.
13406 (linux_xfer_osdata_isockets): Likewise.
13407 (linux_xfer_osdata_shm): Likewise.
13408 (linux_xfer_osdata_sem): Likewise.
13409 (linux_xfer_osdata_msg): Likewise.
13410 (linux_common_xfer_osdata): Likewise.
13411 (struct osdata_type) <getter>: Likewise.
13412 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13415 2014-01-14 Yao Qi <yao@codesourcery.com>
13417 * target.h (target_xfer_partial_ftype): Update.
13418 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13420 * aix-thread.c (aix_thread_xfer_partial): Change type of
13421 argument 'len' to ULONGEST.
13422 * auxv.c (procfs_xfer_auxv): Likewise.
13423 (ld_so_xfer_auxv): Likewise.
13424 (memory_xfer_auxv): Likewise.
13425 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13426 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13427 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13428 * corelow.c (core_xfer_partial): Likewise.
13429 * ctf.c (ctf_xfer_partial): Likewise.
13430 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13432 (darwin_read_dyld_info): Likewise.
13433 (darwin_xfer_partial): Likewise.
13434 * exec.c (section_table_xfer_memory_partial): Likewise.
13435 (exec_xfer_partial): Likewise.
13436 * exec.h (section_table_xfer_memory_partial): Update
13438 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13439 instead of plongest.
13440 (gnu_xfer_partial): Likewise.
13441 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13442 (ia64_hpux_xfer_solib_got): Likewise.
13443 (ia64_hpux_xfer_partial): Likewise.
13444 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13445 * inf-ptrace.c (inf_ptrace_xfer_partial):
13446 * inf-ttrace.c (inf_ttrace_xfer_partial):
13447 * linux-nat.c (linux_xfer_siginfo): Likewise.
13448 (linux_nat_xfer_partial): Likewise.
13449 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13450 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13451 * monitor.c (monitor_xfer_memory): Likewise.
13452 (monitor_xfer_partial): Likewise.
13453 * procfs.c (procfs_xfer_partial): Likewise.
13454 * record-full.c (record_full_xfer_partial): Likewise.
13455 (record_full_core_xfer_partial): Likewise.
13456 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13457 instead of plongest.
13458 (gdbsim_xfer_partial): Likewise.
13459 * remote.c (remote_xfer_partial): Likewise.
13460 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13461 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13463 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13464 (rs6000_xfer_shared_libraries): Likewise.
13465 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13466 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13467 (sparc_xfer_partial): Likewise.
13468 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13469 (spu_xfer_partial): Likewise.
13470 * spu-multiarch.c (spu_xfer_partial): Likewise.
13471 * target.c (target_read_live_memory): Likewise.
13472 (memory_xfer_live_readonly_partial): Likewise.
13473 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13474 (target_xfer_partial, default_xfer_partial): Likewise.
13475 (current_xfer_partial): Likewise.
13476 * tracepoint.c (tfile_xfer_partial): Likewise.
13477 * windows-nat.c (windows_xfer_memory): Likewise. Call
13478 pulongest instead of plongest.
13479 (windows_xfer_partial): Likewise.
13480 (windows_xfer_shared_libraries): Likewise.
13482 2014-01-14 Yao Qi <yao@codesourcery.com>
13484 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13485 target_xfer_partial_ftype.
13487 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13491 * valops.c (value_struct_elt_bitpos): New function
13492 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13493 object to 'None' if the field name is an empty string ("").
13494 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13495 attribute to look for a field when 'name' is 'None'.
13496 (get_field_type): New function
13498 2014-01-13 Doug Evans <dje@google.com>
13501 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13502 (try_open_dwop_file): Ditto.
13503 * gdb_bfd.c: #include "vec.h".
13504 (bfdp): New typedef.
13505 (struct gdb_bfd_data): New member included_bfds.
13506 (gdb_bfd_unref): Unref all included bfds.
13507 (gdb_bfd_record_inclusion): New function.
13508 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13510 2014-01-13 Tom Tromey <tromey@redhat.com>
13512 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13514 2014-01-13 Tom Tromey <tromey@redhat.com>
13516 * defs.h (use_windows): Remove.
13517 * gdb.c (main): Update.
13518 * main.c (captured_main, gdb_main): Update.
13519 * main.h (struct captured_main_args) <use_windows>: Remove.
13520 * top.c (use_windows): Remove.
13522 2014-01-13 Tom Tromey <tromey@redhat.com>
13524 * defs.h (deprecated_flush_hook): Remove.
13526 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13529 * linux-thread-db.c (try_thread_db_load): Add parameter
13530 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13531 (try_thread_db_load_from_pdir_1): Move it there from here.
13532 (try_thread_db_load_from_sdir): Update caller.
13533 (try_thread_db_load_from_dir): Move it there from here.
13535 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13537 * regformats/regdat.sh: Always rewrite the register file.
13539 2014-01-13 Pedro Alves <palves@redhat.com>
13541 * Makefile.in (CHECK_HEADERS): New variable.
13542 (check-headers:): New rule.
13544 2014-01-13 Tom Tromey <tromey@redhat.com>
13546 * cli/cli-setshow.c (do_set_command): Update.
13547 * defs.h (deprecated_set_hook): Remove.
13548 * top.c (deprecated_set_hook): Remove.
13550 2014-01-13 Pedro Alves <palves@redhat.com>
13552 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13553 the tracepoint if the PC is a pseudo-register.
13555 2014-01-13 Tom Tromey <tromey@redhat.com>
13557 * defs.h (XCALLOC): Remove.
13558 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13559 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13560 * dwarf2loc.c (allocate_piece_closure): Likewise.
13561 * elfread.c (elf_symfile_segments): Likewise.
13562 (elf_symfile_segments): Likewise.
13563 * gdbtypes.c (copy_type_recursive): Likewise.
13564 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13565 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13566 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13568 * mt-tdep.c (mt_gdbarch_init): Likewise.
13569 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13571 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13572 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13573 * registry.c (registry_alloc_data): Likewise.
13574 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13575 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13576 * serial.c (serial_fdopen_ops): Likewise.
13577 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13579 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13580 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13583 2014-01-13 Tom Tromey <tromey@redhat.com>
13585 * defs.h (XMALLOC): Remove.
13586 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13587 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13588 * cli-out.c (struct ui_out *): Likewise.
13589 * cli/cli-dump.c (add_dump_command): Likewise.
13590 (add_dump_command): Likewise.
13591 * complaints.c (get_complaints): Likewise.
13592 (find_complaint): Likewise.
13593 * dwarf2-frame.c (execute_cfa_program): Likewise.
13594 * dwarf2read.c (abbrev_table_read_table): Likewise.
13595 * gdbarch.sh: Likewise.
13596 * gdbarch.c: Rebuild.
13597 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13598 * interps.c (interp_new): Likewise.
13599 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13600 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13601 * mi/mi-console.c (mi_console_file_new): Likewise.
13602 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13603 * mi/mi-out.c (mi_out_new): Likewise.
13604 * mi/mi-parse.c (mi_parse): Likewise.
13605 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13606 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13607 * observer.c (xalloc_observer_list_node): Likewise.
13608 * regcache.c (regcache_xmalloc_1): Likewise.
13609 * reggroups.c (reggroup_new): Likewise.
13610 (_initialize_reggroup): Likewise.
13611 * registry.c (register_data_with_cleanup): Likewise.
13612 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13613 * ser-base.c (serial_ttystate): Likewise.
13614 * ser-mingw.c (make_pipe_state): Likewise.
13615 * ser-pipe.c (pipe_open): Likewise.
13616 * serial.c (serial_open): Likewise.
13617 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13618 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13619 (tui_alloc_win_info): Likewise.
13620 (tui_add_content_elements): Likewise.
13621 * tui/tui-file.c (tui_file_new): Likewise.
13622 * tui/tui-out.c (tui_out_new): Likewise.
13623 * ui-file.c (mem_file_new): Likewise.
13624 * ui-out.c (push_level): Likewise.
13625 (make_cleanup_ui_out_end): Likewise.
13626 (append_header_to_list): Likewise.
13627 (ui_out_new): Likewise.
13628 * user-regs.c (user_reg_add_builtin): Likewise.
13630 2014-01-13 Tom Tromey <tromey@redhat.com>
13632 * defs.h (XZALLOC): Remove.
13633 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13634 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13635 (get_ada_tasks_inferior_data): Likewise.
13636 * auto-load.c (get_auto_load_pspace_data): Likewise.
13637 * auxv.c (get_auxv_inferior_data): Likewise.
13638 * bfd-target.c (target_bfd_reopen): Likewise.
13639 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13640 (deprecated_insert_raw_breakpoint): Likewise.
13641 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13642 * corelow.c (core_open): Likewise.
13643 * darwin-nat.c (darwin_check_new_threads): Likewise.
13644 (darwin_attach_pid): Likewise.
13645 * dummy-frame.c (dummy_frame_push): Likewise.
13646 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13647 * dwarf2loc.c (allocate_piece_closure): Likewise.
13648 * elfread.c (elf_symfile_segments): Likewise.
13649 * eval.c (ptrmath_type_p): Likewise.
13650 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13651 * gdbtypes.c (alloc_type_arch): Likewise.
13652 (alloc_type_instance): Likewise.
13653 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13654 * inf-child.c (inf_child_can_use_agent): Likewise.
13655 * inflow.c (get_inflow_inferior_data): Likewise.
13656 * infrun.c (save_infcall_suspend_state): Likewise.
13657 * jit.c (jit_reader_load): Likewise.
13658 (get_jit_objfile_data): Likewise.
13659 (get_jit_program_space_data): Likewise.
13660 (jit_object_open_impl): Likewise.
13661 (jit_symtab_open_impl): Likewise.
13662 (jit_block_open_impl): Likewise.
13663 (jit_frame_sniffer): Likewise.
13664 * linux-fork.c (add_fork): Likewise.
13665 * maint.c (make_command_stats_cleanup): Likewise.
13666 * objfiles.c (get_objfile_pspace_data): Likewise.
13667 * opencl-lang.c (struct lval_closure): Likewise.
13668 * osdata.c (osdata_start_osdata): Likewise.
13669 * progspace.c (new_address_space): Likewise.
13670 (add_program_space): Likewise.
13671 * remote-sim.c (get_sim_inferior_data): Likewise.
13672 * sh-tdep.c (sh_gdbarch_init): Likewise.
13673 * skip.c (Ignore): Likewise.
13674 (skip_delete_command): Likewise.
13675 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13676 (library_list_start_library): Likewise.
13677 (solib_aix_current_sos): Likewise.
13678 * solib-darwin.c (get_darwin_info): Likewise.
13679 (darwin_current_sos): Likewise.
13680 * solib-dsbt.c (get_dsbt_info): Likewise.
13681 * solib-ia64-hpux.c (new_so_list): Likewise.
13682 (ia64_hpux_get_solib_linkage_addr): Likewise.
13683 * solib-spu.c (append_ocl_sos): Likewise.
13684 (spu_current_sos): Likewise.
13685 * solib-svr4.c (get_svr4_info): Likewise.
13686 (svr4_keep_data_in_core): Likewise.
13687 (library_list_start_library): Likewise.
13688 (svr4_default_sos): Likewise.
13689 (svr4_read_so_list): Likewise.
13690 * solib-target.c (library_list_start_library): Likewise.
13691 (solib_target_current_sos): Likewise.
13692 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13693 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13694 * symfile.c (default_symfile_segments): Likewise.
13695 * target-descriptions.c (tdesc_data_init): Likewise.
13696 (tdesc_create_reg): Likewise.
13697 (struct tdesc_type *): Likewise.
13698 (tdesc_create_vector): Likewise.
13699 (tdesc_set_struct_size): Likewise.
13700 (struct tdesc_type *): Likewise.
13701 (tdesc_free_feature): Likewise.
13702 (tdesc_create_feature): Likewise.
13703 * windows-nat.c (windows_add_thread): Likewise.
13704 (windows_make_so): Likewise.
13705 * xml-support.c (gdb_xml_body_text): Likewise.
13706 (gdb_xml_create_parser_and_cleanup): Likewise.
13707 (xml_process_xincludes): Likewise.
13708 * xml-syscall.c (allocate_syscalls_info): Likewise.
13709 (syscall_create_syscall_desc): Likewise.
13711 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13713 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13714 function, with code from i386_stap_parse_special_token.
13715 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13716 (i386_stap_parse_special_token): Move code to the two functions
13717 above; simplify it.
13719 2014-01-09 Pedro Alves <palves@redhat.com>
13720 Hui Zhu <hui@codesourcery.com>
13723 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13724 bp_err_string. Don't mark the location shlib_disabled if the
13725 error thrown wasn't a generic or memory error. Catch errors
13726 thrown while inserting breakpoints in overlayed code. Output
13727 error message of software breakpoints.
13728 * remote.c (remote_insert_breakpoint): If this breakpoint has
13729 target-side commands but this stub doesn't support Z0 packets,
13730 throw NOT_SUPPORTED_ERROR error.
13731 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13732 * target.h (target_insert_breakpoint): Extend comment.
13733 (target_insert_hw_breakpoint): Add comment.
13735 2014-01-08 Pedro Alves <palves@redhat.com>
13737 * remote.c (remote_add_thread): Add threads silently if starting
13739 (remote_notice_new_inferior): If in all-stop, and starting up,
13740 don't call notice_new_inferior.
13741 (get_current_thread): New function, factored out from ...
13742 (add_current_inferior_and_thread): ... this. Adjust.
13743 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13744 found any thread, then select the remote's current thread as GDB's
13745 current thread too.
13747 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13749 * NEWS: Create a new section for the next release branch.
13750 Rename the section of the current branch, now that it has
13753 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13755 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13756 * version.in: Bump version to 7.7.50.DATE-cvs.
13758 2014-01-08 Yao Qi <yao@codesourcery.com>
13760 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13761 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13762 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13764 2014-01-08 Yao Qi <yao@codesourcery.com>
13766 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13767 return value of bfd_get_filename to symbol_file_add_from_bfd.
13769 2014-01-08 Pierre Muller <muller@sourceware.org>
13772 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13773 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13774 to prim_record_mininal_symbol_and_info.
13775 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13776 in call to prim_record_minimal_symbol_and_info.
13777 (read_pe_exported_syms): Set index field of section_data.
13779 2014-01-07 Andrew Pinski <apinski@cavium.com>
13781 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13782 * features/aarch64.c: Regenerate.
13784 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13786 * target.c (return_null): Define.
13787 (update_current_target): Use it instead of return_zero for
13788 functions that return a pointer.
13790 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13792 * source.c (add_path): Fix check for duplicated paths in the previously
13795 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13797 * ada-lang.c: Remove duplicated include statements.
13798 * alphabsd-nat.c: Ditto.
13799 * amd64-darwin-tdep.c: Ditto.
13800 * amd64fbsd-nat.c: Ditto.
13801 * auto-load.c: Ditto.
13803 * breakpoint.c: Ditto.
13804 * dbxread.c: Ditto.
13805 * fork-child.c: Ditto.
13806 * gdb_usleep.c: Ditto.
13807 * i386-darwin-tdep.c: Ditto.
13808 * i386fbsd-nat.c: Ditto.
13810 * inferior.c: Ditto.
13811 * jv-lang.c: Ditto.
13812 * linux-nat.c: Ditto.
13813 * linux-tdep.c: Ditto.
13814 * m68kbsd-nat.c: Ditto.
13815 * m68klinux-nat.c: Ditto.
13816 * microblaze-tdep.c: Ditto.
13817 * mips-linux-tdep.c: Ditto.
13818 * mn10300-tdep.c: Ditto.
13819 * nto-tdep.c: Ditto.
13820 * opencl-lang.c: Ditto.
13822 * printcmd.c: Ditto.
13823 * regcache.c: Ditto.
13824 * remote-m32r-sdi.c: Ditto.
13826 * symfile.c: Ditto.
13828 * tilegx-linux-nat.c: Ditto.
13829 * tilegx-tdep.c: Ditto.
13830 * tracepoint.c: Ditto.
13832 * vaxbsd-nat.c: Ditto.
13833 * windows-nat.c: Ditto.
13834 * xtensa-tdep.c: Ditto.
13836 2014-01-07 Yao Qi <yao@codesourcery.com>
13838 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13840 2014-01-07 Yao Qi <yao@codesourcery.com>
13841 Joel Brobecker <brobecker@adacore.com>
13843 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13844 (pdc_write_regs): Likewise.
13845 (fetch_regs_kernel_thread): Likewise.
13846 (store_regs_kernel_thread): Likewise.
13848 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13850 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13851 tagged type objects to their actual type.
13853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13855 * ada-valprint.c (print_field_values): Add "language" parameter.
13856 Update calls to print_field_values and print_variant_part.
13857 Pass new parameter "language" in call to val_print instead
13858 of "current_language". Replace call to ada_val_print by call
13860 (print_variant_part): Add "language" parameter.
13861 (ada_val_print_struct_union): Update call to print_field_values.
13863 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13865 * ada-valprint.c (ui_memcpy): Delete.
13866 (ada_print_floating): Update documentation. Add empty line
13867 between between function documentation and implementation.
13868 Delete variable "buffer". Use ui_file_xstrdup in place of
13869 ui_file_put. Minor adjustments following this change.
13871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13873 * ada-valprint.c (ada_val_print_string): New function,
13874 extracted from ada_val_print_array.
13875 (ada_val_print_array): Replace extracted code by call
13876 to ada_val_print_string followed by a return. Move
13877 "else" branch to the function's top block.
13879 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13881 * ada-valprint.c (ada_val_print_array): Move implementation
13882 down. Rename parameter "offset" and "val" into "offset_aligned"
13883 and "original_value" respectively. Add parameter "offset".
13885 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13887 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13888 re-organizing the code. Change the "???" message printed
13889 when target type is a TYPE_CODE_UNDEF into
13890 "<ref to undefined type>".
13892 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13894 * ada-valprint.c (print_record): Delete, implementation inlined...
13895 (ada_val_print_struct_union): ... here. Remove call to
13896 ada_check_typedef in inlined implementation.
13898 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13900 * ada-valprint.c (ada_val_print_gnat_array): New function,
13901 extracted from ada_val_print_1;
13902 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13903 (ada_val_print_flt, ada_val_print_struct_union)
13904 (ada_val_print_ref): Likewise.
13905 (ada_val_print_1): Delete variables i and elttype.
13906 Replace extracted-out code by call to corresponding
13909 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13911 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13913 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13915 * ada-valprint.c (ada_val_print_1): Replace calls to
13916 ada_val_print_1 by calls to val_print.
13918 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13920 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13921 Update calls to self accordingly. Replace calls to c_val_print
13922 by calls to val_print.
13924 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13926 * ada-valprint.c (print_record): Delete declaration.
13927 (adjust_type_signedness, ada_val_print_1): Likewise.
13928 (ada_val_print): Move function implementation down.
13929 (print_variant_part, print_field_values, print_record):
13930 Move function implementation up.
13932 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13934 * python/py-type.c (typy_get_name): New function.
13935 (type_object_getset): Add entry for attribute "name".
13936 * NEWS: Add entry mentioning this new attribute.
13938 2014-01-07 Yao Qi <yao@codesourcery.com>
13940 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13943 2014-01-07 Yao Qi <yao@codesourcery.com>
13945 * gnu-nat.c (info_port_rights): Add qualifier const to
13948 2014-01-07 Yao Qi <yao@codesourcery.com>
13950 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13952 2014-01-07 Yao Qi <yao@codesourcery.com>
13954 * gnu-nat.c (make_inf) Update declaration.
13955 (make_inf): Make it static.
13956 (inf_set_traced): Likewise.
13957 (inf_port_to_thread, inf_task_died_status): Likewise.
13959 2014-01-07 Yao Qi <yao@codesourcery.com>
13961 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13963 2014-01-07 Yao Qi <yao@codesourcery.com>
13965 * gnu-nat.c (_initialize_gnu_nat): Declare.
13967 2014-01-07 Yao Qi <yao@codesourcery.com>
13969 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13971 (struct gdbarch_info) <byte_order>: Change type to
13973 <byte_order_for_code>: Likewise.
13974 * gdbarch.c, gdbarch.h: Regenerated.
13976 2014-01-06 Sasha Smundak <asmundak@google.com>
13978 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13980 2014-01-06 Tom Tromey <tromey@redhat.com>
13982 * doublest.c (convert_doublest_to_floatformat): Use const, not
13984 * somread.c (som_symtab_read): Likewise.
13986 2014-01-07 Hui Zhu <hui@codesourcery.com>
13988 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13989 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13990 (gdb_bfd_fopen): Ditto.
13991 (gdb_bfd_openr): Ditto.
13992 (gdb_bfd_openw): Ditto.
13993 (gdb_bfd_openr_iovec): Ditto.
13994 (gdb_bfd_fdopenr): Ditto.
13995 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13996 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13998 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14000 * symfile-mem.c (symbol_file_add_from_memory): Removed
14001 gdb_bfd_stash_filename.
14003 2014-01-03 Doug Evans <dje@google.com>
14005 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14008 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14010 Update year range in copyright notice of all files.
14012 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14014 * top.c (print_gdb_version): Set copyright year to 2014.
14016 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14018 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14020 For older changes see ChangeLog-2013.
14026 version-control: never