1 2014-10-15 Doug Evans <dje@google.com>
2 Walfred Tedeschi <walfred.tedeschi@intel.com>
5 * python/lib/gdb/__init__.py (packages): Add "printer".
6 * python/lib/gdb/command/bound_registers.py: Moved to ...
7 * python/lib/gdb/printer/bound_registers.py: ... here.
8 Add printer to global set of builtin printers. Rename printer from
9 "bound" to "mpx_bound128".
10 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
11 registered as global "builtin" printer.
12 (add_builtin_pretty_printer): New function.
13 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
14 gdb/printer/__init__.py.
16 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
18 * Makefile.in (SFILES): Remove d-support.c.
19 (COMMON_OBS): Remove d-support.o.
20 * d-lang.h (d_parse_symbol): Remove declaration.
21 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
22 * d-support.c: Remove file.
24 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
26 * gdb/infrun.c (process_event_stop_test): Apply
27 gdbarch_addr_bits_remove to longjmp resume address.
29 2014-10-15 Pedro Alves <palves@redhat.com>
31 * regformats/microblaze.dat: Delete file.
33 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
35 * features/Makefile (microblaze-expedite): Replace pc with rpc.
36 * regformats/microblaze-with-stack-protect.dat: Regenerate.
38 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
40 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
43 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
47 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
50 2014-10-14 Joel Brobecker <brobecker@adacore.com>
52 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
53 of the case where the second operand is a pointer.
54 <BINOP_SUB>: Likewise.
56 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
58 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
59 only if it is not NULL.
60 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
61 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
62 (struct probe_ops) <clear_semaphore>: Likewise.
63 * tracepoint.c (start_tracing): Call set_semaphore only if it is
65 (stop_tracing): Likewise, for clear_semaphore.
67 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
69 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
70 using language_c, instead of current_language.
72 2014-10-13 Doug Evans <dje@google.com>
74 * python/py-objfile.c (objfpy_initialize): New function.
75 (objfpy_new, objfile_to_objfile_object): Call it.
76 * python/py-progspace.c (pspy_initialize): New function.
77 (pspy_new, pspace_to_pspace_object): Call it.
79 2014-10-13 Miroslav Franc <mfranc@redhat.com>
80 Jan Kratochvil <jan.kratochvil@redhat.com>
82 Fix "save breakpoints" for "catch" command.
83 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
86 2014-10-12 Miroslav Franc <mfranc@redhat.com>
88 Fix "save breakpoints" for "disable $bpnum" command.
89 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
91 2014-10-10 Pedro Alves <palves@redhat.com>
93 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
94 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
95 (HFILES_NO_SRCDIR): Remove solib-irix.h.
96 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
98 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
99 * configure.ac: Remove references to IRIX.
100 * configure.host: Add *-*-irix* to the obsolete hosts section.
101 Remove all other references to irix.
102 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
105 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
107 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
108 isn't valid, release the tdesc arch data and return NULL.
110 2014-10-10 Pedro Alves <palves@redhat.com>
112 * linux-tdep.c: Include observer.h.
113 (linux_inferior_data): New global.
114 (struct linux_info): New structure.
115 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
116 (get_linux_inferior_data): New functions.
117 (linux_vsyscall_range): Rename to ...
118 (linux_vsyscall_range_raw): ... this.
119 (linux_vsyscall_range): New function; handles caching.
120 (_initialize_linux_tdep): Register linux_inferior_data. Install
121 inferior_exit and inferior_appeared observers.
123 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
124 Pedro Alves <palves@redhat.com>
127 * solib-svr4.c (svr4_read_so_list): Rename to ...
128 (svr4_current_sos_1): ... this and change the function comment.
129 (svr4_current_sos): New function.
131 2014-10-10 Pedro Alves <palves@redhat.com>
133 * arch-utils.c (default_vsyscall_range): New function.
134 * arch-utils.h (default_vsyscall_range): New declaration.
135 * gdbarch.sh (vsyscall_range): New hook.
136 * gdbarch.h, gdbarch.c: Regenerate.
137 * linux-tdep.c (linux_vsyscall_range): New function.
138 (linux_init_abi): Install linux_vsyscall_range as
139 vsyscall_range gdbarch hook.
140 * memrange.c (address_in_mem_range): New function.
141 * memrange.h (address_in_mem_range): New declaration.
142 * symfile-mem.c (find_vdso_size): Delete function.
143 (add_vsyscall_page): Use gdbarch_vsyscall_range.
145 2014-10-10 Pedro Alves <palves@redhat.com>
147 * infrun.c (normal_stop): Fix typo in comment.
149 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
152 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
153 typo when using logical AND to determine instruction type.
155 2014-10-09 Yao Qi <yao@codesourcery.com>
157 * infrun.c (handle_signal_stop): Remove local variable
160 2014-10-08 Stan Shebs <stan@codesourcery.com>
162 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
164 2014-10-08 Gary Benson <gbenson@redhat.com>
166 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
168 2014-10-08 Gary Benson <gbenson@redhat.com>
170 * common/common-defs.h: Include common-exceptions.h.
171 * exceptions.h: Do not include common-exceptions.h.
173 2014-10-08 Gary Benson <gbenson@redhat.com>
175 * common/common-defs.h: Include cleanups.h.
176 * common/common-exceptions.c: Do not include cleanups.h.
179 2014-10-08 Gary Benson <gbenson@redhat.com>
181 * ada-lang.c: Do not include exceptions.h.
182 * ada-valprint.c: Likewise.
183 * amd64-tdep.c: Likewise.
184 * auto-load.c: Likewise.
186 * break-catch-throw.c: Likewise.
187 * breakpoint.c: Likewise.
188 * btrace.c: Likewise.
189 * c-lang.c: Likewise.
190 * cli/cli-cmds.c: Likewise.
191 * cli/cli-interp.c: Likewise.
192 * cli/cli-script.c: Likewise.
193 * completer.c: Likewise.
194 * corefile.c: Likewise.
195 * corelow.c: Likewise.
196 * cp-abi.c: Likewise.
197 * cp-support.c: Likewise.
198 * cp-valprint.c: Likewise.
199 * darwin-nat.c: Likewise.
200 * dwarf2-frame-tailcall.c: Likewise.
201 * dwarf2-frame.c: Likewise.
202 * dwarf2loc.c: Likewise.
203 * dwarf2read.c: Likewise.
205 * event-loop.c: Likewise.
206 * event-top.c: Likewise.
207 * f-valprint.c: Likewise.
208 * frame-unwind.c: Likewise.
210 * gdbtypes.c: Likewise.
211 * gnu-v2-abi.c: Likewise.
212 * gnu-v3-abi.c: Likewise.
213 * guile/scm-auto-load.c: Likewise.
214 * guile/scm-breakpoint.c: Likewise.
215 * guile/scm-cmd.c: Likewise.
216 * guile/scm-frame.c: Likewise.
217 * guile/scm-lazy-string.c: Likewise.
218 * guile/scm-param.c: Likewise.
219 * guile/scm-symbol.c: Likewise.
220 * guile/scm-type.c: Likewise.
221 * hppa-hpux-tdep.c: Likewise.
222 * i386-tdep.c: Likewise.
223 * inf-loop.c: Likewise.
224 * infcall.c: Likewise.
225 * infcmd.c: Likewise.
226 * infrun.c: Likewise.
227 * interps.c: Likewise.
228 * interps.h: Likewise.
230 * linespec.c: Likewise.
231 * linux-nat.c: Likewise.
232 * linux-thread-db.c: Likewise.
233 * m32r-rom.c: Likewise.
235 * memory-map.c: Likewise.
236 * mi/mi-cmd-break.c: Likewise.
237 * mi/mi-cmd-stack.c: Likewise.
238 * mi/mi-interp.c: Likewise.
239 * mi/mi-main.c: Likewise.
240 * monitor.c: Likewise.
241 * nto-procfs.c: Likewise.
242 * objc-lang.c: Likewise.
243 * p-valprint.c: Likewise.
245 * ppc-linux-tdep.c: Likewise.
246 * printcmd.c: Likewise.
248 * python/py-auto-load.c: Likewise.
249 * python/py-breakpoint.c: Likewise.
250 * python/py-cmd.c: Likewise.
251 * python/py-finishbreakpoint.c: Likewise.
252 * python/py-frame.c: Likewise.
253 * python/py-framefilter.c: Likewise.
254 * python/py-function.c: Likewise.
255 * python/py-gdb-readline.c: Likewise.
256 * python/py-inferior.c: Likewise.
257 * python/py-infthread.c: Likewise.
258 * python/py-lazy-string.c: Likewise.
259 * python/py-linetable.c: Likewise.
260 * python/py-param.c: Likewise.
261 * python/py-prettyprint.c: Likewise.
262 * python/py-symbol.c: Likewise.
263 * python/py-type.c: Likewise.
264 * python/py-value.c: Likewise.
265 * python/python-internal.h: Likewise.
266 * python/python.c: Likewise.
267 * record-btrace.c: Likewise.
268 * record-full.c: Likewise.
269 * regcache.c: Likewise.
270 * remote-fileio.c: Likewise.
271 * remote-mips.c: Likewise.
272 * remote.c: Likewise.
273 * rs6000-aix-tdep.c: Likewise.
274 * rs6000-nat.c: Likewise.
276 * solib-darwin.c: Likewise.
277 * solib-dsbt.c: Likewise.
278 * solib-frv.c: Likewise.
279 * solib-ia64-hpux.c: Likewise.
280 * solib-spu.c: Likewise.
281 * solib-svr4.c: Likewise.
283 * spu-tdep.c: Likewise.
285 * stap-probe.c: Likewise.
286 * symfile-mem.c: Likewise.
287 * symmisc.c: Likewise.
288 * target.c: Likewise.
289 * thread.c: Likewise.
291 * tracepoint.c: Likewise.
292 * tui/tui-interp.c: Likewise.
293 * typeprint.c: Likewise.
295 * valarith.c: Likewise.
296 * valops.c: Likewise.
297 * valprint.c: Likewise.
299 * varobj.c: Likewise.
300 * windows-nat.c: Likewise.
301 * xml-support.c: Likewise.
303 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
305 * mips-tdep.c (add_offset_16): Rewrite to implement what the
307 (extended_mips16_next_pc): Update accordingly.
309 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
311 * mips-tdep.c (mips16_instruction_is_compact_branch): New
313 (micromips_instruction_is_compact_branch): Likewise.
314 (mips16_scan_prologue): Terminate scanning upon seeing a branch
315 or a compact jump, reaching a jump delay slot, or seeing a
316 second non-prologue instruction.
317 (micromips_scan_prologue): Also terminate scanning upon seeing a
318 compact branch or jump, or reaching a branch or jump delay slot.
319 (mips32_scan_prologue): Terminate scanning upon reaching a branch
320 or jump delay slot, or seeing a second non-prologue instruction.
321 (mips32_instruction_has_delay_slot): Retain instruction
322 examination code only, update arguments accordingly and move
323 instruction fetch pieces to...
324 (mips32_insn_at_pc_has_delay_slot): ... this new function.
325 (micromips_instruction_has_delay_slot): Likewise and to...
326 (micromips_insn_at_pc_has_delay_slot): ... this new function.
327 (mips16_instruction_has_delay_slot): Likewise and to...
328 (mips16_insn_at_pc_has_delay_slot): ... this new function.
329 (mips_single_step_through_delay): Update accordingly.
330 (mips_adjust_breakpoint_address): Likewise.
332 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
334 * mips-tdep.c (micromips_instruction_has_delay_slot): When
335 !mustbe32 also return 1 for 32-bit instructions.
336 (mips16_instruction_has_delay_slot): Likewise. Add an
339 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
341 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
344 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
346 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
348 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
349 for the breakpoint's address. Don't preinitialize `placed_size'.
350 (insert_bp_location): Set `reqstd_address' rather than
352 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
353 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
355 (bkpt_remove_location): Likewise.
356 (deprecated_insert_raw_breakpoint): Likewise.
357 (deprecated_remove_raw_breakpoint): Likewise.
358 (find_single_step_breakpoint): Likewise.
359 * mem-break.c (default_memory_insert_breakpoint): Use
360 `reqstd_address' for the breakpoint's address. Don't set
361 `placed_address' or `placed_size' if breakpoint contents couldn't
362 have been determined.
363 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
364 the breakpoint's address.
365 (remote_insert_hw_breakpoint): Likewise. Don't set
366 `placed_address' or `placed_size' if breakpoint couldn't have been
368 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
369 `reqstd_address' for the breakpoint's address.
370 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
371 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
372 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
373 * microblaze-linux-tdep.c
374 (microblaze_linux_memory_remove_breakpoint): Likewise.
375 * monitor.c (monitor_insert_breakpoint): Likewise.
376 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
377 (procfs_insert_hw_breakpoint): Likewise.
378 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
379 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
380 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
381 * remote-mips.c (mips_insert_breakpoint): Likewise.
382 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
384 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
386 * valops.c (value_assign): Check for bit field assignments
387 before calling architecture-specific register value
388 conversion functions.
390 2014-10-03 Pierre Muller <muller@sourceware.org>
392 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
394 2014-10-02 Pedro Alves <palves@redhat.com>
396 * breakpoint.c (breakpoints_should_be_inserted_now): Use
397 threads_are_executing.
398 * breakpoint.h (breakpoints_should_be_inserted_now): Add
400 * gdbthread.h (threads_are_executing): Declare.
401 (handle_signal_stop) <random signals>: Don't print about the
402 signal here if stopping.
403 (end_stepping_range): Don't notify observers here.
404 (normal_stop): Update the thread list. If stopped by a random
405 signal or a stepping range ended, notify observers.
406 * thread.c (threads_executing): New global.
407 (init_thread_list): Clear 'threads_executing'.
408 (set_executing): Set or clear 'threads_executing'.
409 (threads_are_executing): New function.
410 (update_threads_executing): New function.
411 (update_thread_list): Use it.
413 2014-10-02 Pedro Alves <palves@redhat.com>
416 * breakpoint.c (update_breakpoints_after_exec): Don't create
417 overlay, longjmp, std terminate nor exception breakpoints here.
419 2014-10-02 Pedro Alves <palves@redhat.com>
421 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
423 * inferior.c (find_inferior_for_program_space): Give preference to
424 the current inferior.
425 * inferior.h (find_inferior_for_program_space): Update comment.
426 * progspace.c (switch_to_program_space_and_thread): Prefer the
427 current inferior if it's bound to the program space requested. If
428 the inferior found doesn't have a PID yet, don't bother looking up
430 * progspace.h (switch_to_program_space_and_thread): Adjust
432 * thread.c (any_thread_of_process, any_live_thread_of_process):
433 Give preference to the current thread.
435 2014-10-01 Pedro Alves <palves@redhat.com>
437 * breakpoint.c (insert_bp_location): Error out if inserting a
438 software breakpoint at a read-only address.
439 * target.c (memory_xfer_check_region): New function, factored out
441 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
443 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
444 against the memory region attributes.
446 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
448 * NEWS: Announce new exit-code field in -list-thread-groups
450 * inferior.c (exit_inferior_1): Don't clear exit code.
451 (inferior_appeared): Clear exit code.
452 * mi/mi-main.c (print_one_inferior): Add printing of the exit
455 2014-10-01 Pedro Alves <palves@redhat.com>
457 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
458 GENERATED" along with emacs/vi read-only markers.
459 * regformats/aarch64.dat: Regenerate.
460 * regformats/arm-with-iwmmxt.dat: Regenerate.
461 * regformats/arm-with-neon.dat: Regenerate.
462 * regformats/arm-with-vfpv2.dat: Regenerate.
463 * regformats/arm-with-vfpv3.dat: Regenerate.
464 * regformats/i386/amd64-avx-linux.dat: Regenerate.
465 * regformats/i386/amd64-avx.dat: Regenerate.
466 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
467 * regformats/i386/amd64-avx512.dat: Regenerate.
468 * regformats/i386/amd64-linux.dat: Regenerate.
469 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
470 * regformats/i386/amd64-mpx.dat: Regenerate.
471 * regformats/i386/amd64.dat: Regenerate.
472 * regformats/i386/i386-avx-linux.dat: Regenerate.
473 * regformats/i386/i386-avx.dat: Regenerate.
474 * regformats/i386/i386-avx512-linux.dat: Regenerate.
475 * regformats/i386/i386-avx512.dat: Regenerate.
476 * regformats/i386/i386-linux.dat: Regenerate.
477 * regformats/i386/i386-mmx-linux.dat: Regenerate.
478 * regformats/i386/i386-mmx.dat: Regenerate.
479 * regformats/i386/i386-mpx-linux.dat: Regenerate.
480 * regformats/i386/i386-mpx.dat: Regenerate.
481 * regformats/i386/i386.dat: Regenerate.
482 * regformats/i386/x32-avx-linux.dat: Regenerate.
483 * regformats/i386/x32-avx.dat: Regenerate.
484 * regformats/i386/x32-avx512-linux.dat: Regenerate.
485 * regformats/i386/x32-avx512.dat: Regenerate.
486 * regformats/i386/x32-linux.dat: Regenerate.
487 * regformats/i386/x32.dat: Regenerate.
488 * regformats/microblaze-with-stack-protect.dat: Regenerate.
489 * regformats/mips-dsp-linux.dat: Regenerate.
490 * regformats/mips-linux.dat: Regenerate.
491 * regformats/mips64-dsp-linux.dat: Regenerate.
492 * regformats/mips64-linux.dat: Regenerate.
493 * regformats/nios2-linux.dat: Regenerate.
494 * regformats/rs6000/powerpc-32.dat: Regenerate.
495 * regformats/rs6000/powerpc-32l.dat: Regenerate.
496 * regformats/rs6000/powerpc-64l.dat: Regenerate.
497 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
498 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
499 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
500 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
501 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
502 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
503 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
504 * regformats/s390-linux32.dat: Regenerate.
505 * regformats/s390-linux32v1.dat: Regenerate.
506 * regformats/s390-linux32v2.dat: Regenerate.
507 * regformats/s390-linux64.dat: Regenerate.
508 * regformats/s390-linux64v1.dat: Regenerate.
509 * regformats/s390-linux64v2.dat: Regenerate.
510 * regformats/s390-te-linux64.dat: Regenerate.
511 * regformats/s390x-linux64.dat: Regenerate.
512 * regformats/s390x-linux64v1.dat: Regenerate.
513 * regformats/s390x-linux64v2.dat: Regenerate.
514 * regformats/s390x-te-linux64.dat: Regenerate.
515 * regformats/tic6x-c62x-linux.dat: Regenerate.
516 * regformats/tic6x-c62x.dat: Regenerate.
517 * regformats/tic6x-c64x-linux.dat: Regenerate.
518 * regformats/tic6x-c64x.dat: Regenerate.
519 * regformats/tic6x-c64xp-linux.dat: Regenerate.
520 * regformats/tic6x-c64xp.dat: Regenerate.
522 2014-10-01 Pedro Alves <palves@redhat.com>
524 * features/Makefile: Update comments.
525 (XMLTOC): List all xml files we build C files from.
526 (clean-cfiles): New rule.
528 2014-10-01 Pedro Alves <palves@redhat.com>
530 * features/i386/amd64-avx512-linux.c: Regenerate.
531 * features/i386/amd64-avx512.c: Regenerate.
532 * features/i386/x32-avx512-linux.c: Regenerate.
533 * features/i386/x32-avx512.c: Regenerate.
535 2014-10-01 Pedro Alves <palves@redhat.com>
537 * features/Makefile (WHICH): Remove arm-with-m,
538 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
540 2014-10-01 Pedro Alves <palves@redhat.com>
542 * features/Makefile (clean): New rule.
544 2014-10-01 Pedro Alves <palves@redhat.com>
546 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
547 (zmm14h): Add missing end quotes.
549 2014-10-01 Pedro Alves <palves@redhat.com>
551 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
552 * features/aarch64.c: Regenerate.
554 2014-09-30 Don Breazeal <donb@codesourcery.com>
556 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
557 code so as to work with follow_fork_inferior.
558 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
559 (inf_ttrace_create_inferior): Remove reference to
560 inf_ttrace_vfork_ppid.
561 (inf_ttrace_attach): Ditto.
562 (inf_ttrace_detach): Ditto.
563 (inf_ttrace_kill): Use current_inferior instead of
564 inf_ttrace_vfork_ppid.
565 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
566 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
567 inferior away from the parent.
568 * infrun.c (follow_fork): Call follow_fork_inferior instead of
570 (follow_fork_inferior): New function.
571 (follow_inferior_reset_breakpoints): Make function static.
572 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
573 * linux-nat.c (linux_child_follow_fork): Move target-independent
574 code to infrun.c:follow_fork_inferior.
576 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
578 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
579 * gdbarch.c: Regenerate.
580 * gdbarch.h: Likewise.
581 * corelow.c (sniff_core_bfd): Drop presence check for deleted
582 gdbarch method 'regset_from_core_section'.
583 (get_core_register_section): Remove handling for the case that
584 regset == NULL and regset_from_core_section is defined.
585 (get_core_registers): Drop check for deleted method.
586 * procfs.c (procfs_do_thread_registers): Adjust comment.
588 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
590 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
591 (linux_nat_make_corefile_notes): Remove.
592 (linux_target_install_ops): Do not set target method
593 'make_corefile_notes'.
594 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
596 (linux_corefile_thread_callback): Instead of args->collect, call
597 linux_collect_thread_registers.
598 (linux_make_corefile_notes): Remove 'collect' parameter. Return
599 NULL unless there is a regset iterator.
600 (linux_make_corefile_notes_1): Remove.
601 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
602 by linux_make_corefile_notes.
603 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
605 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
607 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
608 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
610 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
612 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
614 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
615 (xtensa_iterate_over_regset_sections): New.
616 (xtensa_gdbarch_init): Adjust gdbarch initialization.
618 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
620 * vax-tdep.c (vax_regset_from_core_section): Remove.
621 (vax_iterate_over_regset_sections): New.
622 (vax_gdbarch_init): Adjust gdbarch initialization.
624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
626 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
627 (tilegx_regset_from_core_section): Remove.
628 (tilegx_iterate_over_regset_sections): New.
629 (tilegx_linux_init_abi): Adjust gdbarch initialization.
631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
633 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
634 (sparc_iterate_over_regset_sections): New.
635 (sparc32_gdbarch_init): Adjust gdbarch initialization.
636 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
638 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
639 (sparc64fbsd_init_abi): Call fbsd_init_abi.
640 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
641 target method 'make_corefile_notes'.
643 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
645 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
646 'sizeof_gregset' and 'sizeof_fpregset'.
647 * sh-tdep.c (sh_regset_from_core_section): Remove.
648 (sh_iterate_over_regset_sections): New.
649 (sh_gdbarch_init): Adjust gdbarch initialization.
650 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
652 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
655 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
657 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
658 (score7_linux_iterate_over_regset_sections): New.
659 (score_gdbarch_init): Adjust gdbarch initialization.
661 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
663 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
665 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
666 method 'make_corefile_notes'.
667 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
668 (ppcfbsd_regset_from_core_section): Remove.
669 (ppcfbsd_iterate_over_regset_sections): New.
670 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
672 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
673 (ppcnbsd_iterate_over_regset_sections): New.
674 (ppcnbsd_init_abi): Adjust.
675 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
676 (ppcobsd_iterate_over_regset_sections): New.
677 (ppcobsd_init_abi): Adjust.
678 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
679 (rs6000_aix_iterate_over_regset_sections): New.
680 (rs6000_aix_init_osabi): Adjust.
682 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
684 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
685 (nios2_regset_from_core_section): Remove.
686 (nios2_iterate_over_regset_sections): New.
687 (nios2_linux_init_abi): Adjust gdbarch initialization.
689 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
691 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
692 (am33_iterate_over_regset_sections): New.
693 (am33_linux_init_osabi): Adjust gdbarch initialization.
695 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
697 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
698 (mips_linux_iterate_over_regset_sections): New.
699 (mips_linux_init_abi): Adjust gdbarch initialization.
700 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
701 (mips64obsd_iterate_over_regset_sections): New.
702 (mips64obsd_init_abi): Adjust.
703 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
704 (mipsnbsd_iterate_over_regset_sections): New.
705 (mipsnbsd_init_abi): Adjust.
707 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
709 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
710 (m88k_iterate_over_regset_sections): New.
711 (m88k_gdbarch_init): Adjust gdbarch initialization.
713 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
715 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
716 (ia64_linux_iterate_over_regset_sections): New.
717 (ia64_linux_init_abi): Adjust gdbarch initialization.
719 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
721 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
722 (m68kbsd_iterate_over_regset_sections): New.
723 (m68kbsd_init_abi): Adjust gdbarch initialization.
724 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
725 (m68k_linux_iterate_over_regset_sections): New.
726 (m68k_linux_init_abi): Adjust gdbarch initialization.
728 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
730 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
731 (m32r_linux_regset_from_core_section): Remove.
732 (m32r_linux_iterate_over_regset_sections): New.
733 (m32r_linux_init_abi): Adjust gdbarch initialization.
735 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
737 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
738 (amd64obsd_iterate_over_regset_sections): New.
739 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
740 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
742 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
743 regset_from_core_section initialization.
744 * i386-tdep.c (i386_regset_from_core_section): Remove.
745 (i386_iterate_over_regset_sections): New.
746 (i386_gdbarch_init): Adjust gdbarch initialization.
747 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
748 (i386_iterate_over_regset_sections): New prototype.
749 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
751 (i386obsd_aout_iterate_over_regset_sections): New.
752 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
753 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
755 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
756 (amd64fbsd_init_abi): Call fbsd_init_abi.
757 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
758 (i386fbsd4_init_abi): Call fbsd_init_abi.
759 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
760 target method 'make_corefile_notes'.
761 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
763 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
765 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
766 (hppa_hpux_iterate_over_regset_sections): New.
767 (hppa_hpux_init_abi): Adjust gdbarch initialization.
768 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
769 (hppa_linux_iterate_over_regset_sections): New.
770 (hppa_linux_init_abi): Adjust.
771 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
772 (hppanbsd_iterate_over_regset_sections): New.
773 (hppanbsd_init_abi): Adjust.
774 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
775 (hppaobsd_iterate_over_regset_sections): New.
776 (hppaobsd_init_abi): Adjust.
778 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
780 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
781 (frv_linux_iterate_over_regset_sections): New.
782 (frv_linux_init_abi): Adjust gdbarch initialization.
784 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
786 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
787 (armbsd_iterate_over_regset_sections): New prototype.
788 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
789 (armbsd_iterate_over_regset_sections): New.
790 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
793 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
795 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
796 (alpha_linux_iterate_over_regset_sections): New.
797 (alpha_linux_init_abi): Adjust gdbarch initialization.
798 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
800 (alphanbsd_iterate_over_regset_sections): New prototype.
802 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
804 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
806 (aarch64_linux_iterate_over_regset_sections): New.
807 (aarch64_linux_init_abi): Adjust gdbarch initialization.
809 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
811 * fbsd-tdep.c: New file.
812 * fbsd-tdep.h: New file.
813 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
814 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
815 (ALLDEPFILES): Add fbsd-tdep.c.
817 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
819 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
821 * gdbarch.h: Regenerate.
822 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
824 (get_core_register_section): Add parameter 'regset' and use it, if
825 set. Add parameter 'min_size' and verify the bfd section size
827 (get_core_registers_cb): Add parameter 'regset' and pass it to
828 get_core_register section. For the "standard" register sections
829 ".reg" and ".reg2", set an appropriate default for human_name.
830 (get_core_registers): Don't abort when the gdbarch has an iterator
831 but no regset_from_core_section. Add NULL/0 for parameters
832 'regset'/'min_size' in calls to get_core_register_section.
833 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
834 'regset' and use it instead of calling the
835 regset_from_core_section gdbarch method.
836 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
837 * i386-tdep.c (i386_supply_xstateregset)
838 (i386_collect_xstateregset, i386_xstateregset): Moved to
840 (i386_regset_from_core_section): Drop handling for .reg-xfp and
842 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
843 core file support only if the regset iterator hasn't been set.
844 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
845 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
846 Moved from i386-tdep.c and renamed to *_linux*.
847 (i386_linux_iterate_over_regset_sections): Add regset parameter to
848 each callback invocation. Allow any .reg-xstate size when reading
850 * amd64-tdep.c (amd64_supply_xstateregset)
851 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
853 (amd64_regset_from_core_section): Remove.
854 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
855 install an amd64-specific regset_from_core_section gdbarch method.
856 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
857 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
858 Moved from amd64-tdep.c and renamed to *_linux*.
859 (amd64_linux_iterate_over_regset_sections): Add regset parameter
860 to each callback invocation. Allow any .reg-xstate size when
861 reading from a core file.
862 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
863 (arm_linux_iterate_over_regset_sections): Add regset parameter to
864 each callback invocation.
865 (arm_linux_init_abi): No longer set the regset_from_core_section
867 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
868 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
869 each callback invocation.
870 (ppc_linux_init_abi): No longer set the regset_from_core_section
872 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
873 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
874 (s390_regset_from_core_section): Remove.
875 (s390_iterate_over_regset_sections): Add regset parameter to each
877 (s390_gdbarch_init): No longer set the regset_from_core_section
878 gdbarch method. Drop initialization of deleted tdep fields.
880 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
882 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
883 (amd64_linux_iterate_over_regset_sections): New.
884 (amd64_linux_init_abi_common): Don't install the regset section
885 list, but the new iterator in gdbarch.
886 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
887 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
888 (arm_linux_iterate_over_regset_sections): ...here. New function.
889 (arm_linux_init_abi): Set iterator instead of section list.
890 * corelow.c (get_core_registers_cb): New function, logic moved
892 (get_core_registers): ...loop body here. Use new iterator method
893 instead of walking through the regset section list.
894 * gdbarch.sh: Remove 'core_regset_sections'. New method
895 'iterate_over_regset_sections'. New typedef
896 'iterate_over_regset_sections_cb'.
897 * gdbarch.c: Regenerate.
898 * gdbarch.h: Likewise.
899 * i386-linux-tdep.c (i386_linux_regset_sections)
900 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
902 (i386_linux_iterate_over_regset_sections): New.
903 (i386_linux_init_abi): Don't choose a regset section list, but
904 install new iterator in gdbarch.
905 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
906 (linux_collect_regset_section_cb): New function, logic moved
908 (linux_collect_thread_registers): ...loop body here. Use iterator
909 method instead of walking through list.
910 (linux_make_corefile_notes_1): Check for presence of iterator
911 method instead of regset section list.
912 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
913 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
914 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
915 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
916 (ppc_linux_iterate_over_regset_sections): ...here. New function.
917 (ppc_linux_init_abi): Don't choose from above regset section
918 lists, but install new iterator in gdbarch.
919 * regset.h (struct core_regset_section): Remove.
920 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
921 have_linux_v1, have_linux_v2, and have_tdb.
922 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
923 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
924 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
925 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
926 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
927 (s390_iterate_over_regset_sections): ...here. New function. Use
929 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
930 regset section lists, but install new iterator.
932 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
934 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
936 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
938 * progspace.c (print_program_space): Don't prune program spaces
939 before printing them.
941 2014-09-25 Pedro Alves <palves@redhat.com>
943 * infrun.c (user_visible_resume_ptid): Don't check
944 singlestep_breakpoints_inserted_p.
946 2014-09-25 Pedro Alves <palves@redhat.com>
948 * breakpoint.c (should_be_inserted): Add debug output.
950 2014-09-25 Pedro Alves <palves@redhat.com>
952 * infrun.c (stepping_past_instruction_at)
953 (clear_exit_convenience_vars): Point at infrun.h instead of
955 (handle_signal_stop): Fix typo.
957 2014-09-24 Yao Qi <yao@codesourcery.com>
959 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
962 2014-09-22 Gary Benson <gbenson@redhat.com>
964 * target.c (target_stop): Updated comment.
966 2014-09-22 Gary Benson <gbenson@redhat.com>
968 * target/target.h (target_stop_ptid): Renamed as...
969 (target_stop_and_wait): New function. Updated comment.
971 (target_continue_ptid): Renamed as...
972 (target_continue_no_signal): New function. Updated comment.
975 2014-09-22 Pedro Alves <palves@redhat.com>
977 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
979 * breakpoint.c (enum ugll_insert_mode): New enum.
980 (always_inserted_mode): Now a plain boolean.
981 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
982 (breakpoints_always_inserted_mode): Delete.
983 (breakpoints_should_be_inserted_now): New function.
984 (insert_breakpoints): Pass UGLL_INSERT to
985 update_global_location_list instead of calling
986 insert_breakpoint_locations manually.
987 (create_solib_event_breakpoint_1): New, factored out from ...
988 (create_solib_event_breakpoint): ... this.
989 (create_and_insert_solib_event_breakpoint): Use
990 create_solib_event_breakpoint_1 instead of calling
991 insert_breakpoint_locations manually.
992 (update_global_location_list): Change parameter type from boolean
993 to enum ugll_insert_mode. All callers adjusted. Adjust to use
994 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
995 (update_global_location_list_nothrow): Change parameter type from
996 boolean to enum ugll_insert_mode.
997 (_initialize_breakpoint): "breakpoint always-inserted" option is
998 now a boolean command. Update help text.
999 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1000 (breakpoints_should_be_inserted_now): New declaration.
1001 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1002 Remove breakpoints_always_inserted_mode check.
1003 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1004 * remote.c (remote_start_remote): Likewise.
1006 2014-09-22 Pedro Alves <palves@redhat.com>
1008 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1009 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1010 Instead, pass UGLL_INSERT to update_global_location_list.
1011 (update_global_location_list): Change parameter type from boolean
1012 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1013 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1014 (create_solib_event_breakpoint_1): New, factored out from ...
1015 (create_solib_event_breakpoint): ... this.
1016 (create_and_insert_solib_event_breakpoint): Use
1017 create_solib_event_breakpoint_1 instead of calling
1018 insert_breakpoint_locations manually.
1019 (update_global_location_list): Handle UGLL_INSERT.
1021 2014-09-22 Pedro Alves <palves@redhat.com>
1023 * breakpoint.c (enum ugll_insert_mode): New enum.
1024 (update_global_location_list)
1025 (update_global_location_list_nothrow): Change parameter type from
1026 boolean to enum ugll_insert_mode. All callers adjusted.
1028 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1030 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1031 SystemTap support in GDB.
1033 2014-09-19 Don Breazeal <donb@codesourcery.com>
1035 * linux-nat.c (linux_handle_extended_wait): Call
1036 linux_ptrace_get_extended_event.
1037 (wait_lwp): Call linux_is_extended_waitstatus.
1038 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1039 and linux_is_extended_waitstatus.
1040 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1041 linux_ptrace_get_extended_event.
1042 (linux_ptrace_get_extended_event): New function.
1043 (linux_is_extended_waitstatus): New function.
1044 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1045 (linux_is_extended_waitstatus): New declarations.
1047 2014-09-19 Yao Qi <yao@codesourcery.com>
1049 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1050 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1051 comments. Callers update.
1052 (dwarf_decode_lines): Likewise.
1053 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1054 comments. Skip the line table if 'lowpc' is greater than
1055 'address'. Don't check
1056 dwarf2_per_objfile->has_section_at_zero.
1058 2014-09-18 Doug Evans <dje@google.com>
1060 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1061 * python/py-symtab.c (stpy_get_producer): New function.
1062 (symtab_object_getset): Add "producer" attribute.
1064 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1067 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1068 (do_captured_read_memory_integer): Remove.
1069 (safe_read_memory_integer): Use target_read_memory directly instead
1070 of catching errors in do_captured_read_memory_integer.
1072 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1074 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1077 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1079 * objc-lang.c (find_implementation_from_class): Remove dead code.
1081 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1084 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1085 "fprintf_unfiltered (gdb_stdlog...)".
1087 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1089 PR breakpoints/12526
1090 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1092 * breakpoint.c (watch_command_1): Use these fields to retain
1093 bitfield information.
1094 (extract_bitfield_from_watchpoint_value): New function.
1095 (watchpoint_check): Use it.
1096 (update_watchpoint): Use it. Optimize the address and length of a
1097 HW watchpoint pointing to a bitfield.
1098 * value.h (unpack_value_bitfield): New prototype.
1099 * value.c (unpack_value_bitfield): Make extern.
1101 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1103 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1105 * gnu-nat.c (inf_threads): New function.
1106 * gnu-nat.h (inf_threads_ftype): New typedef.
1107 (inf_threads): New declaration.
1108 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1109 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1110 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1111 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1112 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1113 (i386_gnu_dr_get_control): New functions.
1114 (reg_addr): New structure.
1115 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1116 i386 debugging register hooks.
1117 * NEWS: Mention this.
1119 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1121 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1122 vector data transfer instructions.
1123 (arm_record_coproc_data_proc): Updated.
1125 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1127 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1128 arm_record_exreg_ld_st_insn.
1129 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1132 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1134 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1135 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1136 processing instructions.
1138 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1140 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1141 for advance SIMD struct ld/st insn.
1142 (thumb2_record_decode_insn_handler): Replace stub handler with
1143 thumb2_record_asimd_struct_ld_st.
1145 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1147 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1148 for asimd, vfp and coprocessor insns.
1149 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1150 and coprocessor insns.
1151 (thumb2_record_coproc_insn): New function.
1152 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1154 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1157 2014-09-13 Doug Evans <xdje42@gmail.com>
1159 * NEWS: Mention new "queue-signal" command.
1160 * infcmd.c (queue_signal_command): New function.
1161 (_initialize_infcmd): Add new queue-signal command.
1163 2014-09-13 Doug Evans <xdje42@gmail.com>
1165 * linux-nat.c (wait_lwp): Add debugging printf.
1166 (linux_nat_wait_1): Ditto.
1168 2014-09-12 Pedro Alves <palves@redhat.com>
1170 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1171 (create_and_insert_solib_event_breakpoint): New functions.
1172 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1173 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1174 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1175 (remove_dbx_link_breakpoint): Delete function.
1176 (insert_dbx_link_bpt_in_file): Use
1177 create_and_insert_solib_event_breakpoint instead of
1178 deprecated_insert_raw_breakpoint.
1179 (procfs_wait): Don't check whether we hit __dbx_link here.
1180 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1182 * solib-irix.c (base_breakpoint): Delete global.
1183 (disable_break): Delete function.
1184 (enable_break): Use create_solib_event_breakpoint
1185 instead of deprecated_insert_raw_breakpoint.
1186 (irix_solib_handle_event): New function.
1187 (irix_solib_create_inferior_hook): Don't run the target or disable
1188 the mapping-complete breakpoint here.
1189 (_initialize_irix_solib): Install irix_solib_handle_event as
1190 so_ops->handle_event hook.
1192 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1193 Ulrich Weigand <uweigand@de.ibm.com>
1196 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1197 instead of read_memory_unsigned_integer.
1199 2014-09-12 Gary Benson <gbenson@redhat.com>
1201 * nat/linux-waitpid.c: Include common-defs.h.
1202 [GDBSERVER]: Add FIXME comment.
1203 [!GDBSERVER]: Don't include defs.h or signal.h.
1204 (linux_debug) [!GDBSERVER]: Remove empty block.
1206 2014-09-12 Gary Benson <gbenson@redhat.com>
1208 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1209 Don't include defs.h or server.h.
1211 2014-09-12 Gary Benson <gbenson@redhat.com>
1213 * nat/linux-btrace.c: Include common-defs.h.
1214 Don't include defs.h, server.h or gdbthread.h.
1215 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1217 2014-09-12 Gary Benson <gbenson@redhat.com>
1219 * common/agent.c: Include common-defs.h.
1220 Don't include defs.h or server.h.
1221 * common/buffer.c: Likewise.
1222 * common/common-debug.c: Likewise.
1223 * common/common-utils.c: Likewise.
1224 * common/errors.c: Likewise.
1225 * common/filestuff.c: Likewise.
1226 * common/format.c: Likewise.
1227 * common/gdb_vecs.c: Likewise.
1228 * common/print-utils.c: Likewise.
1229 * common/ptid.c: Likewise.
1230 * common/rsp-low.c: Likewise.
1231 * common/signals.c: Likewise.
1232 * common/vec.c: Likewise.
1233 * common/xml-utils.c: Likewise.
1234 * nat/linux-osdata.c: Likewise.
1235 * nat/linux-procfs.c: Likewise.
1236 * nat/linux-ptrace.c: Likewise.
1237 * nat/mips-linux-watch.c: Likewise.
1238 * target/waitstatus.c: Likewise.
1240 2014-09-12 Tom Tromey <tromey@redhat.com>
1241 Gary Benson <gbenson@redhat.com>
1243 * common/common-regcache.h: New file.
1244 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1245 * regcache.h: Include common-regcache.h.
1246 (regcache_read_pc): Don't declare.
1247 * regcache.c (get_thread_regcache_for_ptid): New function.
1248 * nat/linux-btrace.c: Don't include regcache.h.
1249 Include common-regcache.h.
1250 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1252 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1254 * regcache.h (struct regset): Declare.
1256 2014-09-11 Pedro Alves <palves@redhat.com>
1259 * main.c: Include "infrun.h".
1260 (catch_command_errors, catch_command_errors_const): Wait for the
1261 foreground command to complete.
1262 * top.c (maybe_wait_sync_command_done): New function, factored out
1264 (maybe_wait_sync_command_done): ... here.
1265 * top.h (maybe_wait_sync_command_done): New declaration.
1267 2014-09-11 Tom Tromey <tromey@redhat.com>
1268 Gary Benson <gbenson@redhat.com>
1270 * common/symbol.h: New file.
1271 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1272 * minsyms.c (find_minimal_symbol_address): New function.
1273 * common/agent.c: Include common/symbol.h.
1274 [!GDBSERVER]: Don't include objfiles.h.
1275 (agent_look_up_symbols): Use find_minimal_symbol_address.
1277 2014-09-11 Gary Benson <gbenson@redhat.com>
1279 * target/target.h (target_stop_ptid, target_continue_ptid):
1281 * target.c (target_stop_ptid, target_continue_ptid): New
1283 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1284 (agent_run_command): Always use target_stop_ptid and
1285 target_continue_ptid.
1287 2014-09-11 Tom Tromey <tromey@redhat.com>
1288 Gary Benson <gbenson@redhat.com>
1290 * target/target.h: New file.
1291 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1292 * target.h: Include target/target.h.
1293 (target_read_memory, target_write_memory): Don't declare.
1294 * target.c (target_read_uint32): New function.
1295 * common/agent.c: Include target/target.h.
1296 [!GDBSERVER]: Don't include target.h.
1297 (helper_thread_id): Type changed to uint32_t.
1298 (agent_get_helper_thread_id): Use target_read_uint32.
1299 (agent_run_command): Always use target_read_memory and
1300 target_write_memory.
1301 (agent_capability): Type changed to uint32_t.
1302 (agent_capability_check): Use target_read_uint32.
1304 2014-09-11 Gary Benson <gbenson@redhat.com>
1306 * common/common-debug.h (show_debug_regs): Declare.
1307 * common/common-debug.c (show_debug_regs): Define.
1308 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1309 all uses with show_debug_regs. Replace all uses that considered
1310 debug_hw_points as a multi-value integer with straight boolean
1312 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1313 with show_debug_regs.
1314 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1315 all uses with show_debug_regs.
1316 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1317 uses with show_debug_regs.
1319 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1321 * findvar.c (address_from_register): Handle targets requiring
1322 a special conversion routine even for plain pointer types.
1324 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1326 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1327 (store_register): Do not call exec_one_dummy_insn.
1329 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1331 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1332 dereference it first. Use value_enclosing_type instead of
1334 (ada_array_length): Likewise.
1336 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1338 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1339 Adjust function implementation and documentation accordingly.
1340 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1341 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1342 Update call to ada_value_ptr_subscript.
1344 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1346 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1347 instead of VAL's type.
1349 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1351 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1353 2014-09-09 Doug Evans <xdje42@gmail.com>
1356 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1357 last parameter to pkg-config, not first.
1358 * configure.ac: Pass --with-guile provided pkg-config path to
1359 GDB_GUILE_PROGRAM_NAMES.
1360 * configure: Regenerate.
1362 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1364 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1367 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1369 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1370 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1371 the list of sections determining GDB_OSABI_IRIX.
1373 2014-09-09 James Hogan <james.hogan@imgtec.com>
1375 * MAINTAINERS (Write After Approval): Add "James Hogan".
1377 2014-09-09 James Hogan <james.hogan@imgtec.com>
1379 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1381 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1383 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1385 2014-09-08 Doug Evans <xdje42@gmail.com>
1388 * guile.c: #include <signal.h>.
1389 (_initialize_guile): Block SIGCHLD while initializing Guile.
1391 Replaces the following, which is reverted.
1393 2014-07-26 Doug Evans <xdje42@gmail.com>
1396 * configure.ac: Add check for header gc/gc.h.
1397 Add check for function setenv.
1398 * configure: Regenerate.
1399 * config.in: Regenerate.
1400 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1402 2014-09-08 Doug Evans <xdje42@gmail.com>
1404 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1405 with named constant. Fix style of pointer comparison.
1406 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1408 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1411 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1412 decide whether we display the command on "show user".
1413 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1414 printing command name.
1415 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1416 * cli/cli-decode.c (cli_user_command_p): Create helper function
1417 to verify whether cmd_list_element is a user-defined command.
1419 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1422 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1423 Fix goto out of TRY_CATCH.
1425 2014-09-06 Doug Evans <xdje42@gmail.com>
1426 Tom Tromey <tromey@redhat.com>
1429 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1430 $_any_caller_matches.
1431 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1432 * python/lib/gdb/function/caller_is.py: New file.
1434 2014-09-06 Doug Evans <xdje42@gmail.com>
1436 * infcmd.c (program_info): Fix typo.
1438 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1441 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1442 'number'. New variable 'has_digit'. Rewrite code to deal with
1443 subexpressions on SDT probes.
1445 2014-09-04 Pedro Alves <palves@redhat.com>
1447 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1448 the input is only one character long.
1450 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1453 * f-valprint.c (f_val_print): Specify the correct print option to
1454 use when printing integer values.
1456 2014-09-04 Gary Benson <gbenson@redhat.com>
1458 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1459 Remove code to cope with LWPs wrapped as PIDs.
1460 Add assertions to ensure no wrapped LWPs are passed.
1462 2014-09-04 Pedro Alves <palves@redhat.com>
1464 * value.c (value_ranges_copy_adjusted): New function, factored out
1466 (value_contents_copy_raw): ... here.
1467 (unpack_value_bits_as_long_1): Rename back to ...
1468 (unpack_bits_as_long): ... this. Remove 'original_value' and
1469 'result' parameters. Change return type to LONGEST.
1470 (unpack_value_bits_as_long): Delete.
1471 (unpack_value_field_as_long_1): Delete.
1472 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1473 (unpack_value_bitfield): New function.
1474 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1475 (value_fetch_lazy): Use unpack_value_bitfield.
1476 * value.h (unpack_value_bits_as_long): Delete declaration.
1478 2014-09-03 Sasha Smundak <asmundak@google.com>
1480 * python/py-frame.c (frapy_read_register): New function.
1482 2014-09-03 James Hogan <james.hogan@imgtec.com>
1484 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1485 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1487 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1490 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1492 (add_cmd): Set "completer_handle_brkchars" to NULL.
1493 * cli/cli-decode.h (struct cmd_list_element)
1494 <completer_handle_brkchars>: New field.
1495 * command.h (completer_ftype_void): New typedef.
1496 (set_cmd_completer_handle_brkchars): New prototype.
1497 * completer.c (set_gdb_completion_word_break_characters): New
1499 (complete_line_internal): Call "completer_handle_brkchars"
1500 callback from command.
1501 * completer.h: Include "command.h".
1502 (set_gdb_completion_word_break_characters): New prototype.
1503 * python/py-cmd.c (cmdpy_completer_helper): New function.
1504 (cmdpy_completer_handle_brkchars): New function.
1505 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1506 (cmdpy_init): Set completer_handle_brkchars to
1507 cmdpy_completer_handle_brkchars.
1509 2014-09-03 Gary Benson <gbenson@redhat.com>
1511 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1512 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1513 Loop conditions changed to equivalent form.
1514 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1515 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1516 ALL_DEBUG_ADDRESS_REGISTERS.
1518 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1520 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1523 2014-09-02 Doug Evans <dje@google.com>
1525 * typeprint.c (find_global_typedef): Fix comment.
1527 2014-09-02 Gary Benson <gbenson@redhat.com>
1529 * i386-nat.h: Renamed as...
1530 * x86-nat.h: New file. All type, function and variable name
1531 prefixes changed from "i386_" to "x86_". All references updated.
1532 * i386-nat.c: Renamed as...
1533 * x86-nat.c: New file. All type, function and variable name
1534 prefixes changed from "i386_" to "x86_". All references updated.
1535 * common/i386-xstate.h: Renamed as...
1536 * common/x86-xstate.h: New file. All type, function and variable
1537 name prefixes changed from "i386_" to "x86_". All references
1539 * nat/i386-cpuid.h: Renamed as...
1540 * nat/x86-cpuid.h: New file. All type, function and variable name
1541 prefixes changed from "i386_" to "x86_". All references updated.
1542 * nat/i386-gcc-cpuid.h: Renamed as...
1543 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1544 name prefixes changed from "i386_" to "x86_". All references
1546 * nat/i386-dregs.h: Renamed as...
1547 * nat/x86-dregs.h: New file. All type, function and variable name
1548 prefixes changed from "i386_" to "x86_". All references updated.
1549 * nat/i386-dregs.c: Renamed as...
1550 * nat/x86-dregs.c: New file. All type, function and variable name
1551 prefixes changed from "i386_" to "x86_". All references updated.
1553 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1555 * varobj.c (_initialize_varobj): Move to the end of file.
1557 2014-08-29 Gary Benson <gbenson@redhat.com>
1559 * common/common-exceptions.h: New file.
1560 * common/common-exceptions.c: Likewise.
1561 * Makefile.in (SFILES): Add common/common-exceptions.c.
1562 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1563 (COMMON_OBS): Add common-exceptions.o.
1564 (common-exceptions.o): New rule.
1565 * exceptions.h (common-exceptions.h): Include.
1566 (gdb_setjmp.h): Do not include.
1567 (return_reason): Moved to common-exceptions.h.
1568 (enum return_reason): Likewise.
1569 (RETURN_MASK): Likewise.
1570 (typedef return_mask): Likewise.
1571 (enum errors): Likewise.
1572 (struct gdb_exception): Likewise.
1573 (exceptions_state_mc_init): Likewise.
1574 (exceptions_state_mc_action_iter): Likewise.
1575 (exceptions_state_mc_action_iter_1): Likewise.
1576 (TRY_CATCH): Likewise.
1577 (throw_exception): Likewise.
1578 (throw_verror): Likewise.
1579 (throw_vquit): Likewise.
1580 (throw_error): Likewise.
1581 (throw_quit): Likewise.
1582 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1583 (enum catcher_action): Likewise.
1584 (struct catcher): Likewise.
1585 (current_catcher): Likewise.
1586 (catcher_list_size): Likewise.
1587 (exceptions_state_mc_init): Likewise.
1588 (catcher_pop): Likewise.
1589 (exceptions_state_mc): Likewise.
1590 (exceptions_state_mc_action_iter): Likewise.
1591 (exceptions_state_mc_action_iter_1): Likewise.
1592 (throw_exception): Likewise.
1593 (exception_messages): Likewise.
1594 (exception_messages_size): Likewise.
1595 (throw_it): Likewise.
1596 (throw_verror): Likewise.
1597 (throw_vquit): Likewise.
1598 (throw_error): Likewise.
1599 (throw_quit): Likewise.
1600 (prepare_to_throw_exception): New function.
1602 2014-08-29 Gary Benson <gbenson@redhat.com>
1604 * common/gdb_setjmp.h: New file.
1605 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1606 * configure.ac: Move sigsetjmp check...
1607 * common/common.m4: ...here.
1608 * configure: Regenerate.
1609 * cp-support.c (SIGJMP_BUF): Delete.
1610 (SIGSETJMP): Likewise.
1611 (SIGLONGJMP): Likewise.
1612 * exceptions.h (gdb_setjmp.h): Include.
1613 (setjmp.h): Do not include.
1614 (EXCEPTIONS_SIGJMP_BUF): Delete.
1615 (EXCEPTIONS_SIGSETJMP): Likewise.
1616 (EXCEPTIONS_SIGLONGJMP): Likewise.
1617 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1619 * exceptions.c: Likewise.
1621 2014-08-29 Gary Benson <gbenson@redhat.com>
1623 * cleanups.h: Moved to...
1624 * common/cleanups.h: New file.
1625 * cleanups.c: Moved to...
1626 * common/cleanups.c: New file. Include common-defs.h and
1627 cleanups.h. Do not include defs.h.
1628 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1629 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1630 (cleanups.o): New rule.
1632 2014-08-29 Gary Benson <gbenson@redhat.com>
1634 * common/errors.h (internal_warning): New declaration.
1635 (internal_vwarning): Likewise.
1636 * common/errors.c (internal_warning): New function.
1637 * utils.h (internal_warning): Don't declare.
1638 (internal_vwarning): Likewise.
1639 * utils.c (internal_warning): Removed.
1641 2014-08-29 Gary Benson <gbenson@redhat.com>
1643 * main.c (captured_main): Use warning during startup.
1644 Prefix startup warning messages with command name.
1646 2014-08-29 Gary Benson <gbenson@redhat.com>
1648 * main.c (captured_main): Handle usage errors with error.
1650 2014-08-29 Gary Benson <gbenson@redhat.com>
1652 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1653 exit pair with a call to error. Wrap the message with _().
1655 2014-08-29 Gary Benson <gbenson@redhat.com>
1657 * main.c (captured_main): Replace a fprintf/exit
1658 pair with a call to error. Wrap the message with _().
1660 2014-08-29 Gary Benson <gbenson@redhat.com>
1662 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1663 pairs with calls to error. Wrap the message with _().
1665 2014-08-29 Gary Benson <gbenson@redhat.com>
1667 * utils.c (vwarning): Protect calls to target_terminal_ours
1670 2014-08-29 Gary Benson <gbenson@redhat.com>
1672 * exceptions.c (print_flush): Protect calls to
1673 target_terminal_ours and wrap_here.
1675 2014-08-29 Gary Benson <gbenson@redhat.com>
1677 * utils.h (filtered_printing_initialized): New declaration.
1678 * utils.c (abort_with_message): New function.
1679 (internal_vproblem): Use abort_with_message for first level
1680 recursive internal problems, and if gdb_stderr is not set up.
1681 Protect calls to target_terminal_ours, begin_line and query.
1683 2014-08-28 Doug Evans <dje@google.com>
1685 * symtab.c (in_prologue): Move definition to better spot.
1686 (skip_prologue_using_sal): Ditto.
1688 2014-08-28 Doug Evans <dje@google.com>
1690 * symtab.c (find_function_start_sal): Move definition to better spot.
1692 2014-08-28 Yao Qi <yao@codesourcery.com>
1694 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1695 found_stack_adjust in forward scan. Remove condition check
1696 on found_stack_adjust which is always true. Indent the code.
1698 2014-08-28 Yao Qi <yao@codesourcery.com>
1700 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1701 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1702 (dwarf_decode_lines): Remove argument
1703 want_line_info. Remove condition check on want_line_info.
1706 2014-08-27 Doug Evans <dje@google.com>
1708 * dwarf2read.c (dwarf_record_line): Fix typo.
1710 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1712 * target.h (struct target_ops::to_terminal_save_ours): Remove
1714 (target_terminal_save_ours): Remove macro.
1715 * target-delegates.c: Regenerate.
1716 * inf-child.c (inf_child_target): Don't set the nonexistent
1717 field to_terminal_save_ours.
1718 * inferior.h (child_terminal_save_ours): Remove declaration.
1719 * terminal.h (gdb_save_tty_state): New declaration.
1720 * inflow.c (child_terminal_save_ours): Rename to ...
1721 (gdb_save_tty_state): ... this.
1722 * tui/tui.c: Include terminal.h.
1723 (tui_enable): Use gdb_save_tty_state instead of
1724 target_terminal_save_ours.
1725 (tui_disable): Likewise.
1727 2014-08-25 Doug Evans <dje@google.com>
1729 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1730 Pass NULL instead of 0 for context pointer.
1732 2014-08-25 Yao Qi <yao@codesourcery.com>
1734 * dwarf2read.c: Fix grammatical error.
1736 2014-08-24 Yao Qi <yao@codesourcery.com>
1738 * dwarf2read.c (scan_partial_symbols): Update comments.
1739 Rename argument 'need_pc' with 'set_addrmap'.
1740 (add_partial_namespace): Rename argument 'need_pc' with
1742 (add_partial_module): Likewise.
1743 (add_partial_subprogram): Likewise. Update comments.
1744 (dwarf2_name): Fix typo.
1746 2014-08-22 Doug Evans <dje@google.com>
1749 * dwarf2read.c (dwarf_record_line_p): New function.
1750 (dwarf_decode_lines_1): Ignore subsequent line number entries
1751 for the same line if any entry had a non-zero discriminator.
1753 2014-08-22 Doug Evans <dje@google.com>
1755 * buildsym.h (record_line_ftype): New typedef.
1756 (record_line): Use it.
1757 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1758 (dwarf_decode_lines_1): Call them.
1760 2014-08-22 Yao Qi <yao@codesourcery.com>
1762 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1763 (ctf_end): Remove code.
1765 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1767 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1768 (linux_make_corefile_notes): call update_thread_list, protected against
1771 2014-08-21 Pedro Alves <palves@redhat.com>
1773 * infcmd.c (attach_command): Remove comment.
1775 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1777 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1778 unsigned LONGEST to ULONGEST.
1780 2014-08-20 Pedro Alves <palves@redhat.com>
1782 * Makefile.in (check-read1): New rule.
1784 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1786 * value.c (value_from_contents_and_address): Strip resolved_type's
1787 typedef layers before checking its TYPE_DATA_LOCATION.
1789 2014-08-20 Pedro Alves <palves@redhat.com>
1791 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1793 2014-08-20 Yao Qi <yao@codesourcery.com>
1795 * amd64-tdep.c (amd64_classify): Add a blank line after the
1796 example. Move "*/" to a new line.
1797 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1798 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1799 * dwarf2read.c (psymtab_include_file_name): Likewise.
1801 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1802 Pedro Alves <palves@redhat.com>
1806 * ada-lang.c (coerce_unspec_val_to_type): Use
1807 value_contents_copy_raw.
1808 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1809 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1810 * cp-valprint.c (cp_print_value_fields): Let the common printing
1811 code handle optimized out values.
1812 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1813 * d-valprint.c (dynamic_array_type): Use
1814 value_bits_any_optimized_out.
1815 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1816 check_any_valid fields.
1817 (check_pieced_value_bits): Delete and inline ...
1818 (check_pieced_synthetic_pointer): ... here.
1819 (check_pieced_value_validity): Delete.
1820 (check_pieced_value_invalid): Delete.
1821 (pieced_value_funcs): Remove check_validity and check_any_valid
1823 (read_pieced_value): Use mark_value_bits_optimized_out.
1824 (write_pieced_value): Switch to use
1825 mark_value_bytes_optimized_out.
1826 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1827 of assuming the whole value is optimized out.
1828 * findvar.c (read_frame_register_value): Remove special handling
1829 of optimized out registers.
1830 (value_from_register): Use mark_value_bytes_optimized_out.
1831 * frame-unwind.c (frame_unwind_got_optimized): Use
1832 mark_value_bytes_optimized_out.
1833 * jv-valprint.c (java_value_print): Adjust.
1834 (java_print_value_fields): Let the common printing code handle
1835 optimized out values.
1836 * mips-tdep.c (mips_print_register): Remove special handling of
1837 optimized out registers.
1838 * opencl-lang.c (lval_func_check_validity): Delete.
1839 (lval_func_check_any_valid): Delete.
1840 (opencl_value_funcs): Remove check_validity and check_any_valid
1842 * p-valprint.c (pascal_object_print_value_fields): Let the common
1843 printing code handle optimized out values.
1844 * stack.c (read_frame_arg): Remove special handling of optimized
1845 out values. Fetch both VAL and ENTRYVAL before comparing
1846 contents. Adjust to value_available_contents_eq rename.
1847 * valprint.c (valprint_check_validity)
1848 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1849 (val_print_array_elements): Adjust.
1850 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1851 (value_bits_any_optimized_out): New function.
1852 (value_entirely_covered_by_range_vector): New function, factored
1853 out from value_entirely_unavailable.
1854 (value_entirely_unavailable): Reimplement.
1855 (value_entirely_optimized_out): New function.
1856 (insert_into_bit_range_vector): New function, factored out from
1857 mark_value_bits_unavailable.
1858 (mark_value_bits_unavailable): Reimplement.
1859 (struct ranges_and_idx): New struct.
1860 (find_first_range_overlap_and_match): New function, factored out
1861 from value_available_contents_bits_eq.
1862 (value_available_contents_bits_eq): Rename to ...
1863 (value_contents_bits_eq): ... this. Check both unavailable
1864 contents and optimized out contents.
1865 (value_available_contents_eq): Rename to ...
1866 (value_contents_eq): ... this.
1867 (allocate_value_lazy): Remove reference to the old optimized_out
1869 (allocate_optimized_out_value): Use
1870 mark_value_bytes_optimized_out.
1871 (require_not_optimized_out): Adjust to check whether the
1872 optimized_out vec is empty.
1873 (ranges_copy_adjusted): New function, factored out from
1874 value_contents_copy_raw.
1875 (value_contents_copy_raw): Also copy the optimized out ranges.
1876 Assert the destination ranges aren't optimized out.
1877 (value_contents_copy): Update comment, remove call to
1878 require_not_optimized_out.
1879 (value_contents_equal): Adjust to check whether the optimized_out
1881 (set_value_optimized_out, value_optimized_out_const): Delete.
1882 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1884 (value_entirely_optimized_out, value_bits_valid): Delete.
1885 (value_copy): Take a VEC copy of the 'optimized_out' field.
1886 (value_primitive_field): Remove special handling of optimized out.
1887 (value_fetch_lazy): Assert that lazy values have no unavailable
1888 regions. Use value_bits_any_optimized_out. Remove some special
1889 handling for optimized out values.
1890 * value.h: Add intro comment about <optimized out> and
1892 (struct lval_funcs): Remove check_validity and check_any_valid
1894 (set_value_optimized_out, value_optimized_out_const): Remove.
1895 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1897 (value_bits_any_optimized_out): New declaration.
1898 (value_bits_valid): Delete declaration.
1899 (value_available_contents_eq): Rename to ...
1900 (value_contents_eq): ... this, and extend comments.
1902 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1904 Fix -fsanitize=address on unreadable inferior strings.
1905 * valprint.c (val_print_string): Fix access before BUFFER.
1907 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
1909 * target.c (target_struct_size): Remove.
1910 (target_struct_allocsize): Remove.
1911 (DEFAULT_ALLOCSIZE): Remove.
1912 (target_ops_p): New typedef.
1913 (DEF_VEC_P (target_ops_p)): New vector type.
1914 (target_structs): Change type to VEC (target_ops_p).
1915 (add_target_with_completer): Replace "push" code by VEC_safe_push.
1916 (find_default_run_target): Rewrite for loop following changes to
1919 2014-08-19 Joel Brobecker <brobecker@adacore.com>
1921 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1922 Adjust code accordingly. Adjust function description comment.
1924 2014-08-19 Yao Qi <yao@codesourcery.com>
1926 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1929 2014-08-19 Alan Modra <amodra@gmail.com>
1931 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1932 * config.in: Regenerate.
1933 * configure: Regenerate.
1935 2014-08-19 Tom Tromey <tromey@redhat.com>
1936 Gary Benson <gbenson@redhat.com>
1938 * common/common-debug.h: New file.
1939 * common/common-debug.c: Likewise.
1940 * debug.c: Likewise.
1941 * Makefile.in (SFILES): Add common/common-debug.c.
1942 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1943 (COMMON_OBS): Add common-debug.o and debug.o.
1944 (common-debug.o): New rule.
1945 * common/common-defs.h: Include common-debug.h.
1946 * common/agent.c (debug_agent_printf): New function.
1947 (DEBUG_AGENT): Redefine.
1948 * nat/i386-dregs.c (debug_printf): Undefine.
1950 2014-08-19 Gary Benson <gbenson@redhat.com>
1952 * common/common-defs.h: Include print-utils.h.
1953 * utils.h: Do not include print-utils.h.
1955 2014-08-19 Tom Tromey <tromey@redhat.com>
1956 Gary Benson <gbenson@redhat.com>
1958 * common/common-types.h: New file.
1959 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1960 * common/common-defs.h: Include common-types.h.
1961 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1964 2014-08-19 Tom Tromey <tromey@redhat.com>
1965 Gary Benson <gbenson@redhat.com>
1967 * common/errors.h: New file.
1968 * common/errors.c: Likewise.
1969 * Makefile.in (SFILES): Add common/errors.c.
1970 (HFILES_NO_SRCDIR): Add common/errors.h.
1971 (COMMON_OBS): Add errors.o.
1972 (errors.o): New rule.
1973 * common/common-defs.h: Include errors.h.
1974 * utils.h (perror_with_name, error, verror, warning, vwarning):
1976 * common/common-utils.h: (malloc_failure, internal_error):
1979 2014-08-19 Gary Benson <gbenson@redhat.com>
1981 * utils.c (internal_vproblem): Always print the message.
1983 2014-08-18 Doug Evans <dje@google.com>
1985 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1987 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1989 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1990 Return 0 if TYPE is dynamic.
1991 (print_range): Add handling of dynamic ranges.
1993 2014-08-18 Keven Boell <keven.boell@intel.com>
1994 Joel Brobecker <brobecker@adacore.com>
1996 * gdbtypes.h (struct main_type): Add field "data_location".
1997 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1998 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1999 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2000 a dynamic data location.
2001 (resolve_dynamic_type): Add DW_AT_data_location handling.
2002 (copy_recursive, copy_type): Copy the data_location information
2004 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2005 * value.c (value_from_contents_and_address): Add
2006 DW_AT_data_location handling.
2008 2014-08-18 Keven Boell <keven.boell@intel.com>
2009 Joel Brobecker <brobecker@adacore.com>
2011 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2012 field "get_object_address".
2013 * dwarf2expr.c (execute_stack_op): Add handling for
2014 DW_OP_push_object_address.
2015 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2016 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2017 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2018 (dwarf_expr_get_obj_addr): New function.
2019 (dwarf_expr_ctx_funcs): Add get_object_address field.
2020 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2021 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2022 (dwarf2_evaluate_property): Add parameter "address". Use it.
2023 (needs_get_obj_addr): New function.
2024 (needs_frame_ctx_funcs): Add get_object_address field.
2025 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2026 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2027 (resolve_dynamic_array): Likewise.
2029 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2031 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2032 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2033 fixed value for records and unions for which some GNAT encodings
2036 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2038 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2039 rewrite to avoid "else if" and "else" constructs. Should be
2040 a no-op in practice.
2042 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2044 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2047 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2050 * eval.c: Update all calls to find_overload_match.
2051 * valarith.c: Likewise.
2052 (value_user_defined_cpp_op, value_user_defined_op): New
2053 argument NOSIDE. Update all callers.
2054 * valops.c (find_overload_match): New argument NOSIDE.
2055 * value.h (find_overload_match): Update signature.
2057 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2059 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2060 'items' methods instead of 'iteritems' method on dictionaries.
2062 2014-08-15 Doug Evans <dje@google.com>
2064 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2067 2014-08-15 Doug Evans <dje@google.com>
2069 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2071 2014-08-15 Doug Evans <dje@google.com>
2073 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2075 2014-08-15 Doug Evans <dje@google.com>
2077 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2080 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2082 * dcache.h: Include target.h, to avoid compile time warnings.
2084 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2086 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2087 frame_info" partial declaration.
2088 * gdbarch.h: Regenerate.
2090 2014-08-15 Yao Qi <yao@codesourcery.com>
2092 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2093 Add parameter 'decode_for_pst_p'. Callers update.
2095 2014-08-13 Yao Qi <yao@codesourcery.com>
2098 * configure.ac: Use local variable 'pos'.
2099 * configure: Regenerated.
2101 2014-08-11 Doug Evans <dje@google.com>
2103 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2104 message, it is redundant with "Reading symbols from ..." message.
2106 2014-08-10 Doug Evans <xdje42@gmail.com>
2108 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2110 2014-08-09 Yao Qi <yao@codesourcery.com>
2113 * remote.c (remote_xfer_partial): Remove dead code.
2115 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2117 * ia64-linux-tdep.c: Include "regset.h".
2118 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2119 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2120 (ia64_linux_supply_fpregset): New function.
2121 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2122 (ia64_linux_regset_from_core_section): New function.
2123 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2126 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2128 * m68klinux-tdep.c: Include "regset.h".
2129 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2130 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2131 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2132 (m68k_linux_regset_from_core_section): New function.
2133 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2136 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2138 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2139 function. Move logic to...
2140 (tilegx_linux_regmap): ... this new register map.
2141 (tilegx_linux_regset): Refer to register map, replace supply
2142 method by regcache_supply_regset, and add collect method.
2143 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2144 TILEGX_FIRST_EASY_REGNUM.
2146 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2148 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2149 that calls regcache_supply_regset and handles the EPC register
2150 separately. Move main logic to...
2151 (score7_linux_gregmap): ... this new register map.
2152 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2153 (score7_linux_gregset): Refer to register map. Add collect method.
2154 (score7_linux_regset_from_core_section): Replace
2155 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2156 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2157 (struct regset): Delete unused forward declaraction.
2158 (struct pt_regs): Delete structure definition.
2159 (elf_gregset_t): Delete typedef.
2161 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2163 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2164 (nios2_core_regset): Add collect method.
2166 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2168 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2169 platform-independent and don't write to read-only input buffer.
2170 (m32r_linux_collect_gregset): New function.
2171 (m32r_linux_gregset): Add collect method.
2173 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2175 * hppa-linux-tdep.c (greg_map): Rename to...
2176 (hppa_linux_gregmap): ... this. Also convert to
2177 regcache_map_entry format.
2178 (hppa_linux_supply_regset): Delete function.
2179 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2180 (hppa_linux_fpregmap): ... this new register map.
2181 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2182 register map, replace supply method by regcache_supply_regset, and
2183 add collect method regcache_collect_regset.
2185 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2187 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2188 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2189 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2190 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2191 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2192 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2193 (frv_linux_supply_gregset): Replace main logic by call to
2194 regcache_supply_regset, but keep clearing gr32-gr63.
2195 (frv_linux_supply_fpregset): Delete function.
2196 (frv_linux_gregset): Refer to appropriate register map and add
2197 regcache_collect_regset as the collect method.
2198 (frv_linux_fpregset): Likewise. Also exchange the supply method
2199 by regcache_supply_regset.
2201 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2203 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2204 by call to alpha_supply_int_regs.
2205 (alpha_linux_collect_gregset): New function.
2206 (alpha_linux_supply_fpregset): Replace logic by call to
2207 alpha_supply_fp_regs.
2208 (alpha_linux_collect_fpregset): New function.
2209 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2211 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2213 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2214 by call to regcache_collect_regset.
2215 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2216 instead of aarch64_linux_supply_gregset/_fpregset.
2217 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2218 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2219 header file instead.
2220 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2221 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2222 functions. Move logic to ...
2223 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2225 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2226 refer to new register maps, replace *_regset_from_core by
2227 regcache_supply_regset, and also use regcache_collect_regset.
2228 * aarch64-linux-tdep.h: Include "regset.h".
2229 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2231 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2232 macros, moved from C source file.
2233 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2234 variable declarations.
2236 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2238 * s390-linux-nat.c: Include "regset.h".
2239 (regmap_gregset): Delete macro.
2240 (s390_64_regmap_gregset): New register map for
2241 regcache_supply/_collect_regset.
2242 (s390_64_gregset): New regset.
2243 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2244 (regmap_fpregset): Delete macro.
2245 (s390_native_supply, s390_native_collect): Delete functions.
2246 (supply_gregset, fill_gregset): Replace s390-specific regmap
2247 handling by a call to regcache_supply/_collect_regset.
2248 (supply_fpregset, fill_fpregset): Call regcache_supply/
2249 _collect_regset instead of s390_native_supply/_collect.
2250 (fetch_regset, store_regset): Likewise. Also change the last
2251 parameter to a regset instead of a regmap.
2252 (s390_linux_fetch_inferior_registers)
2253 (390_linux_store_inferior_registers): Adjust last parameter in
2254 calls to fetch_regset and store_regset.
2255 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2256 (s390_gregmap): ... this. Also make static const and convert to
2257 regcache_map_entry format.
2258 (s390x_regmap_gregset): Delete.
2259 (s390_regmap_fpregset): Rename to...
2260 (s390_fpregmap): ... this. Make static const and convert to
2261 regcache_map_entry format.
2262 (s390_regmap_upper, s390_regmap_last_break)
2263 (s390x_regmap_last_break, s390_regmap_system_call)
2264 (s390_regmap_tdb): Likewise.
2265 (s390_supply_regset, s390_collect_regset): Remove functions.
2266 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2268 (s390_gregset, s390_fpregset, s390_upper_regset)
2269 (s390_last_break_regset, s390x_last_break_regset)
2270 (s390_system_call_regset, s390_tdb_regset): Make global and
2271 replace s390_supply/_collect_regset by regcache_supply/
2273 (s390x_gregset): Delete.
2274 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2275 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2276 (s390_regmap_fpregset, s390_regmap_last_break)
2277 (s390x_regmap_last_break, s390_regmap_system_call)
2278 (s390_regmap_tdb): Delete global variable declarations.
2279 (s390_gregset, s390_fpregset, s390_last_break_regset)
2280 (s390x_last_break_regset, s390_system_call_regset)
2281 (s390_tdb_regset): New global variable declarations.
2283 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2285 * regcache.c: Include "regset.h".
2286 (regcache_transfer_regset): New local function.
2287 (regcache_supply_regset, regcache_collect_regset): New functions.
2288 * regcache.h (struct regcache_map_entry): New structure.
2289 (REGCACHE_MAP_SKIP): New enum value.
2290 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2292 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2294 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2295 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2296 (ppc_linux_collect_gregset ): Likewise.
2297 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2298 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2299 (ppc_collect_vrregset): Likewise.
2300 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2303 2014-08-07 Yao Qi <yao@codesourcery.com>
2305 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2306 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2307 * remote.c (remote_read_bytes): Likewise.
2309 2014-08-07 Yao Qi <yao@codesourcery.com>
2311 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2313 2014-08-07 Yao Qi <yao@codesourcery.com>
2316 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2317 TARGET_XFER_OK instead of 0.
2319 2014-08-07 Gary Benson <gbenson@redhat.com>
2321 * common/common-defs.h: Include errno.h.
2322 * defs.h: Do not include errno.h.
2323 * ada-typeprint.c: Likewise.
2324 * c-typeprint.c: Likewise.
2325 * core-regset.c: Likewise.
2326 * corefile.c: Likewise.
2327 * corelow.c: Likewise.
2328 * event-loop.c: Likewise.
2329 * f-typeprint.c: Likewise.
2330 * gnu-nat.c: Likewise.
2331 * go32-nat.c: Likewise.
2332 * i386gnu-nat.c: Likewise.
2333 * m2-typeprint.c: Likewise.
2334 * nat/linux-btrace.c: Likewise.
2335 * p-typeprint.c: Likewise.
2336 * procfs.c: Likewise.
2337 * remote-sim.c: Likewise.
2338 * rs6000-nat.c: Likewise.
2339 * target.c: Likewise.
2340 * typeprint.c: Likewise.
2341 * ui-file.c: Likewise.
2342 * valops.c: Likewise.
2343 * valprint.c: Likewise.
2345 2014-08-07 Gary Benson <gbenson@redhat.com>
2347 * common/common-defs.h: Include string.h.
2348 * aarch64-tdep.c: Do not include string.h.
2349 * ada-exp.y: Likewise.
2350 * ada-lang.c: Likewise.
2351 * ada-lex.l: Likewise.
2352 * ada-typeprint.c: Likewise.
2353 * ada-valprint.c: Likewise.
2354 * aix-thread.c: Likewise.
2355 * alpha-linux-tdep.c: Likewise.
2356 * alpha-mdebug-tdep.c: Likewise.
2357 * alpha-nat.c: Likewise.
2358 * alpha-osf1-tdep.c: Likewise.
2359 * alpha-tdep.c: Likewise.
2360 * alphanbsd-tdep.c: Likewise.
2361 * amd64-dicos-tdep.c: Likewise.
2362 * amd64-linux-tdep.c: Likewise.
2363 * amd64-nat.c: Likewise.
2364 * amd64-sol2-tdep.c: Likewise.
2365 * amd64fbsd-tdep.c: Likewise.
2366 * amd64obsd-tdep.c: Likewise.
2367 * arch-utils.c: Likewise.
2368 * arm-linux-nat.c: Likewise.
2369 * arm-linux-tdep.c: Likewise.
2370 * arm-tdep.c: Likewise.
2371 * arm-wince-tdep.c: Likewise.
2372 * armbsd-tdep.c: Likewise.
2373 * armnbsd-nat.c: Likewise.
2374 * armnbsd-tdep.c: Likewise.
2375 * armobsd-tdep.c: Likewise.
2376 * avr-tdep.c: Likewise.
2377 * ax-gdb.c: Likewise.
2378 * ax-general.c: Likewise.
2379 * bcache.c: Likewise.
2380 * bfin-tdep.c: Likewise.
2381 * breakpoint.c: Likewise.
2382 * build-id.c: Likewise.
2383 * buildsym.c: Likewise.
2384 * c-exp.y: Likewise.
2385 * c-lang.c: Likewise.
2386 * c-typeprint.c: Likewise.
2387 * c-valprint.c: Likewise.
2388 * charset.c: Likewise.
2389 * cli-out.c: Likewise.
2390 * cli/cli-cmds.c: Likewise.
2391 * cli/cli-decode.c: Likewise.
2392 * cli/cli-dump.c: Likewise.
2393 * cli/cli-interp.c: Likewise.
2394 * cli/cli-logging.c: Likewise.
2395 * cli/cli-script.c: Likewise.
2396 * cli/cli-setshow.c: Likewise.
2397 * cli/cli-utils.c: Likewise.
2398 * coffread.c: Likewise.
2399 * common/agent.c: Likewise.
2400 * common/buffer.c: Likewise.
2401 * common/buffer.h: Likewise.
2402 * common/common-utils.c: Likewise.
2403 * common/filestuff.c: Likewise.
2404 * common/filestuff.c: Likewise.
2405 * common/format.c: Likewise.
2406 * common/print-utils.c: Likewise.
2407 * common/rsp-low.c: Likewise.
2408 * common/signals.c: Likewise.
2409 * common/vec.h: Likewise.
2410 * common/xml-utils.c: Likewise.
2411 * core-regset.c: Likewise.
2412 * corefile.c: Likewise.
2413 * corelow.c: Likewise.
2414 * cp-abi.c: Likewise.
2415 * cp-name-parser.y: Likewise.
2416 * cp-support.c: Likewise.
2417 * cp-valprint.c: Likewise.
2418 * cris-tdep.c: Likewise.
2419 * d-exp.y: Likewise.
2420 * darwin-nat.c: Likewise.
2421 * dbxread.c: Likewise.
2422 * dcache.c: Likewise.
2423 * demangle.c: Likewise.
2424 * dicos-tdep.c: Likewise.
2425 * disasm.c: Likewise.
2426 * doublest.c: Likewise.
2427 * dsrec.c: Likewise.
2428 * dummy-frame.c: Likewise.
2429 * dwarf2-frame.c: Likewise.
2430 * dwarf2loc.c: Likewise.
2431 * dwarf2read.c: Likewise.
2432 * elfread.c: Likewise.
2433 * environ.c: Likewise.
2435 * event-loop.c: Likewise.
2436 * exceptions.c: Likewise.
2438 * expprint.c: Likewise.
2439 * f-exp.y: Likewise.
2440 * f-lang.c: Likewise.
2441 * f-typeprint.c: Likewise.
2442 * f-valprint.c: Likewise.
2443 * fbsd-nat.c: Likewise.
2444 * findcmd.c: Likewise.
2445 * findvar.c: Likewise.
2446 * fork-child.c: Likewise.
2447 * frame.c: Likewise.
2448 * frv-linux-tdep.c: Likewise.
2449 * frv-tdep.c: Likewise.
2451 * gdb_bfd.c: Likewise.
2452 * gdbarch.c: Likewise.
2453 * gdbarch.sh: Likewise.
2454 * gdbtypes.c: Likewise.
2455 * gnu-nat.c: Likewise.
2456 * gnu-v2-abi.c: Likewise.
2457 * gnu-v3-abi.c: Likewise.
2458 * go-exp.y: Likewise.
2459 * go-lang.c: Likewise.
2460 * go32-nat.c: Likewise.
2461 * guile/guile.c: Likewise.
2462 * guile/scm-auto-load.c: Likewise.
2463 * hppa-hpux-tdep.c: Likewise.
2464 * hppa-linux-nat.c: Likewise.
2465 * hppanbsd-tdep.c: Likewise.
2466 * hppaobsd-tdep.c: Likewise.
2467 * i386-cygwin-tdep.c: Likewise.
2468 * i386-dicos-tdep.c: Likewise.
2469 * i386-linux-tdep.c: Likewise.
2470 * i386-nto-tdep.c: Likewise.
2471 * i386-sol2-tdep.c: Likewise.
2472 * i386-tdep.c: Likewise.
2473 * i386bsd-tdep.c: Likewise.
2474 * i386gnu-nat.c: Likewise.
2475 * i386nbsd-tdep.c: Likewise.
2476 * i386obsd-tdep.c: Likewise.
2477 * i387-tdep.c: Likewise.
2478 * ia64-libunwind-tdep.c: Likewise.
2479 * ia64-linux-nat.c: Likewise.
2480 * inf-child.c: Likewise.
2481 * inf-ptrace.c: Likewise.
2482 * inf-ttrace.c: Likewise.
2483 * infcall.c: Likewise.
2484 * infcmd.c: Likewise.
2485 * inflow.c: Likewise.
2486 * infrun.c: Likewise.
2487 * interps.c: Likewise.
2488 * iq2000-tdep.c: Likewise.
2489 * irix5-nat.c: Likewise.
2490 * jv-exp.y: Likewise.
2491 * jv-lang.c: Likewise.
2492 * jv-typeprint.c: Likewise.
2493 * jv-valprint.c: Likewise.
2494 * language.c: Likewise.
2495 * linux-fork.c: Likewise.
2496 * linux-nat.c: Likewise.
2497 * lm32-tdep.c: Likewise.
2498 * m2-exp.y: Likewise.
2499 * m2-typeprint.c: Likewise.
2500 * m32c-tdep.c: Likewise.
2501 * m32r-linux-nat.c: Likewise.
2502 * m32r-linux-tdep.c: Likewise.
2503 * m32r-rom.c: Likewise.
2504 * m32r-tdep.c: Likewise.
2505 * m68hc11-tdep.c: Likewise.
2506 * m68k-tdep.c: Likewise.
2507 * m68kbsd-tdep.c: Likewise.
2508 * m68klinux-nat.c: Likewise.
2509 * m68klinux-tdep.c: Likewise.
2510 * m88k-tdep.c: Likewise.
2511 * machoread.c: Likewise.
2512 * macrocmd.c: Likewise.
2514 * mdebugread.c: Likewise.
2515 * mem-break.c: Likewise.
2516 * memattr.c: Likewise.
2517 * memory-map.c: Likewise.
2518 * mep-tdep.c: Likewise.
2519 * mi/mi-cmd-break.c: Likewise.
2520 * mi/mi-cmd-disas.c: Likewise.
2521 * mi/mi-cmd-env.c: Likewise.
2522 * mi/mi-cmd-stack.c: Likewise.
2523 * mi/mi-cmd-var.c: Likewise.
2524 * mi/mi-cmds.c: Likewise.
2525 * mi/mi-console.c: Likewise.
2526 * mi/mi-getopt.c: Likewise.
2527 * mi/mi-interp.c: Likewise.
2528 * mi/mi-main.c: Likewise.
2529 * mi/mi-parse.c: Likewise.
2530 * microblaze-rom.c: Likewise.
2531 * microblaze-tdep.c: Likewise.
2532 * mingw-hdep.c: Likewise.
2533 * minidebug.c: Likewise.
2534 * minsyms.c: Likewise.
2535 * mips-irix-tdep.c: Likewise.
2536 * mips-linux-tdep.c: Likewise.
2537 * mips-tdep.c: Likewise.
2538 * mips64obsd-tdep.c: Likewise.
2539 * mipsnbsd-tdep.c: Likewise.
2540 * mipsread.c: Likewise.
2541 * mn10300-linux-tdep.c: Likewise.
2542 * mn10300-tdep.c: Likewise.
2543 * monitor.c: Likewise.
2544 * moxie-tdep.c: Likewise.
2545 * mt-tdep.c: Likewise.
2546 * nat/linux-btrace.c: Likewise.
2547 * nat/linux-osdata.c: Likewise.
2548 * nat/linux-procfs.c: Likewise.
2549 * nat/linux-ptrace.c: Likewise.
2550 * nat/linux-waitpid.c: Likewise.
2551 * nbsd-tdep.c: Likewise.
2552 * nios2-linux-tdep.c: Likewise.
2553 * nto-procfs.c: Likewise.
2554 * nto-tdep.c: Likewise.
2555 * objc-lang.c: Likewise.
2556 * objfiles.c: Likewise.
2557 * opencl-lang.c: Likewise.
2558 * osabi.c: Likewise.
2559 * osdata.c: Likewise.
2560 * p-exp.y: Likewise.
2561 * p-lang.c: Likewise.
2562 * p-typeprint.c: Likewise.
2563 * parse.c: Likewise.
2564 * posix-hdep.c: Likewise.
2565 * ppc-linux-nat.c: Likewise.
2566 * ppc-sysv-tdep.c: Likewise.
2567 * ppcfbsd-tdep.c: Likewise.
2568 * ppcnbsd-tdep.c: Likewise.
2569 * ppcobsd-tdep.c: Likewise.
2570 * printcmd.c: Likewise.
2571 * procfs.c: Likewise.
2572 * prologue-value.c: Likewise.
2573 * python/py-auto-load.c: Likewise.
2574 * python/py-gdb-readline.c: Likewise.
2575 * ravenscar-thread.c: Likewise.
2576 * regcache.c: Likewise.
2577 * registry.c: Likewise.
2578 * remote-fileio.c: Likewise.
2579 * remote-m32r-sdi.c: Likewise.
2580 * remote-mips.c: Likewise.
2581 * remote-notif.c: Likewise.
2582 * remote-sim.c: Likewise.
2583 * remote.c: Likewise.
2584 * reverse.c: Likewise.
2585 * rs6000-aix-tdep.c: Likewise.
2586 * ser-base.c: Likewise.
2587 * ser-go32.c: Likewise.
2588 * ser-mingw.c: Likewise.
2589 * ser-pipe.c: Likewise.
2590 * ser-tcp.c: Likewise.
2591 * ser-unix.c: Likewise.
2592 * serial.c: Likewise.
2593 * sh-tdep.c: Likewise.
2594 * sh64-tdep.c: Likewise.
2595 * shnbsd-tdep.c: Likewise.
2597 * sol-thread.c: Likewise.
2598 * solib-dsbt.c: Likewise.
2599 * solib-frv.c: Likewise.
2600 * solib-osf.c: Likewise.
2601 * solib-som.c: Likewise.
2602 * solib-spu.c: Likewise.
2603 * solib-target.c: Likewise.
2604 * solib.c: Likewise.
2605 * somread.c: Likewise.
2606 * source.c: Likewise.
2607 * sparc-nat.c: Likewise.
2608 * sparc-sol2-tdep.c: Likewise.
2609 * sparc-tdep.c: Likewise.
2610 * sparc64-tdep.c: Likewise.
2611 * sparc64fbsd-tdep.c: Likewise.
2612 * sparc64nbsd-tdep.c: Likewise.
2613 * sparcnbsd-tdep.c: Likewise.
2614 * spu-linux-nat.c: Likewise.
2615 * spu-multiarch.c: Likewise.
2616 * spu-tdep.c: Likewise.
2617 * stabsread.c: Likewise.
2618 * stack.c: Likewise.
2619 * std-regs.c: Likewise.
2620 * symfile.c: Likewise.
2621 * symmisc.c: Likewise.
2622 * symtab.c: Likewise.
2623 * target.c: Likewise.
2624 * thread.c: Likewise.
2625 * tilegx-linux-nat.c: Likewise.
2626 * tilegx-tdep.c: Likewise.
2628 * tracepoint.c: Likewise.
2629 * tui/tui-command.c: Likewise.
2630 * tui/tui-data.c: Likewise.
2631 * tui/tui-disasm.c: Likewise.
2632 * tui/tui-file.c: Likewise.
2633 * tui/tui-layout.c: Likewise.
2634 * tui/tui-out.c: Likewise.
2635 * tui/tui-regs.c: Likewise.
2636 * tui/tui-source.c: Likewise.
2637 * tui/tui-stack.c: Likewise.
2638 * tui/tui-win.c: Likewise.
2639 * tui/tui-windata.c: Likewise.
2640 * tui/tui-winsource.c: Likewise.
2641 * typeprint.c: Likewise.
2642 * ui-file.c: Likewise.
2643 * ui-out.c: Likewise.
2644 * user-regs.c: Likewise.
2645 * utils.c: Likewise.
2646 * v850-tdep.c: Likewise.
2647 * valarith.c: Likewise.
2648 * valops.c: Likewise.
2649 * valprint.c: Likewise.
2650 * value.c: Likewise.
2651 * varobj.c: Likewise.
2652 * vax-tdep.c: Likewise.
2653 * vaxnbsd-tdep.c: Likewise.
2654 * vaxobsd-tdep.c: Likewise.
2655 * windows-nat.c: Likewise.
2656 * xcoffread.c: Likewise.
2657 * xml-support.c: Likewise.
2658 * xstormy16-tdep.c: Likewise.
2659 * xtensa-linux-nat.c: Likewise.
2661 2014-08-07 Gary Benson <gbenson@redhat.com>
2663 * common/common-defs.h: Include gdb_assert.h.
2664 * aarch64-tdep.c: Do not include gdb_assert.h.
2665 * addrmap.c: Likewise.
2666 * aix-thread.c: Likewise.
2667 * alpha-linux-tdep.c: Likewise.
2668 * alpha-mdebug-tdep.c: Likewise.
2669 * alphanbsd-tdep.c: Likewise.
2670 * amd64-nat.c: Likewise.
2671 * amd64-tdep.c: Likewise.
2672 * amd64bsd-nat.c: Likewise.
2673 * amd64fbsd-nat.c: Likewise.
2674 * amd64fbsd-tdep.c: Likewise.
2675 * amd64nbsd-nat.c: Likewise.
2676 * amd64nbsd-tdep.c: Likewise.
2677 * amd64obsd-nat.c: Likewise.
2678 * amd64obsd-tdep.c: Likewise.
2679 * arch-utils.c: Likewise.
2680 * arm-tdep.c: Likewise.
2681 * armbsd-tdep.c: Likewise.
2683 * bcache.c: Likewise.
2684 * bfin-tdep.c: Likewise.
2685 * blockframe.c: Likewise.
2686 * breakpoint.c: Likewise.
2687 * bsd-kvm.c: Likewise.
2688 * bsd-uthread.c: Likewise.
2689 * buildsym.c: Likewise.
2690 * c-exp.y: Likewise.
2691 * c-lang.c: Likewise.
2692 * charset.c: Likewise.
2693 * cleanups.c: Likewise.
2694 * cli-out.c: Likewise.
2695 * cli/cli-decode.c: Likewise.
2696 * cli/cli-dump.c: Likewise.
2697 * cli/cli-logging.c: Likewise.
2698 * cli/cli-script.c: Likewise.
2699 * cli/cli-utils.c: Likewise.
2700 * coffread.c: Likewise.
2701 * common/common-utils.c: Likewise.
2702 * common/queue.h: Likewise.
2703 * common/signals.c: Likewise.
2704 * common/vec.h: Likewise.
2705 * complaints.c: Likewise.
2706 * completer.c: Likewise.
2707 * corelow.c: Likewise.
2708 * cp-abi.c: Likewise.
2709 * cp-name-parser.y: Likewise.
2710 * cp-namespace.c: Likewise.
2711 * cp-support.c: Likewise.
2712 * cris-tdep.c: Likewise.
2713 * dbxread.c: Likewise.
2714 * dictionary.c: Likewise.
2715 * doublest.c: Likewise.
2716 * dsrec.c: Likewise.
2717 * dummy-frame.c: Likewise.
2718 * dwarf2-frame-tailcall.c: Likewise.
2719 * dwarf2-frame.c: Likewise.
2720 * dwarf2expr.c: Likewise.
2721 * dwarf2loc.c: Likewise.
2722 * dwarf2read.c: Likewise.
2724 * event-loop.c: Likewise.
2725 * exceptions.c: Likewise.
2726 * expprint.c: Likewise.
2727 * f-valprint.c: Likewise.
2728 * fbsd-nat.c: Likewise.
2729 * findvar.c: Likewise.
2730 * frame-unwind.c: Likewise.
2731 * frame.c: Likewise.
2732 * frv-tdep.c: Likewise.
2733 * gcore.c: Likewise.
2734 * gdb-dlfcn.c: Likewise.
2735 * gdb_bfd.c: Likewise.
2736 * gdbarch.c: Likewise.
2737 * gdbarch.sh: Likewise.
2738 * gdbtypes.c: Likewise.
2739 * gnu-nat.c: Likewise.
2740 * gnu-v3-abi.c: Likewise.
2741 * go-lang.c: Likewise.
2742 * guile/scm-exception.c: Likewise.
2743 * guile/scm-gsmob.c: Likewise.
2744 * guile/scm-lazy-string.c: Likewise.
2745 * guile/scm-math.c: Likewise.
2746 * guile/scm-pretty-print.c: Likewise.
2747 * guile/scm-safe-call.c: Likewise.
2748 * guile/scm-utils.c: Likewise.
2749 * guile/scm-value.c: Likewise.
2750 * h8300-tdep.c: Likewise.
2751 * hppa-hpux-nat.c: Likewise.
2752 * hppa-tdep.c: Likewise.
2753 * hppanbsd-tdep.c: Likewise.
2754 * hppaobsd-tdep.c: Likewise.
2755 * i386-darwin-nat.c: Likewise.
2756 * i386-darwin-tdep.c: Likewise.
2757 * i386-nto-tdep.c: Likewise.
2758 * i386-tdep.c: Likewise.
2759 * i386bsd-nat.c: Likewise.
2760 * i386fbsd-tdep.c: Likewise.
2761 * i386gnu-nat.c: Likewise.
2762 * i386nbsd-tdep.c: Likewise.
2763 * i386obsd-tdep.c: Likewise.
2764 * i387-tdep.c: Likewise.
2765 * ia64-libunwind-tdep.c: Likewise.
2766 * ia64-tdep.c: Likewise.
2767 * inf-ptrace.c: Likewise.
2768 * inf-ttrace.c: Likewise.
2769 * infcall.c: Likewise.
2770 * infcmd.c: Likewise.
2771 * infrun.c: Likewise.
2772 * inline-frame.c: Likewise.
2773 * interps.c: Likewise.
2774 * jv-lang.c: Likewise.
2775 * jv-typeprint.c: Likewise.
2776 * linux-fork.c: Likewise.
2777 * linux-nat.c: Likewise.
2778 * linux-thread-db.c: Likewise.
2779 * m32c-tdep.c: Likewise.
2780 * m32r-linux-nat.c: Likewise.
2781 * m32r-tdep.c: Likewise.
2782 * m68k-tdep.c: Likewise.
2783 * m68kbsd-nat.c: Likewise.
2784 * m68kbsd-tdep.c: Likewise.
2785 * m88k-tdep.c: Likewise.
2786 * machoread.c: Likewise.
2787 * macroexp.c: Likewise.
2788 * macrotab.c: Likewise.
2789 * maint.c: Likewise.
2790 * mdebugread.c: Likewise.
2791 * memory-map.c: Likewise.
2792 * mep-tdep.c: Likewise.
2793 * mi/mi-common.c: Likewise.
2794 * microblaze-tdep.c: Likewise.
2795 * mingw-hdep.c: Likewise.
2796 * mips-linux-nat.c: Likewise.
2797 * mips-linux-tdep.c: Likewise.
2798 * mips-tdep.c: Likewise.
2799 * mips64obsd-tdep.c: Likewise.
2800 * mipsnbsd-tdep.c: Likewise.
2801 * mn10300-linux-tdep.c: Likewise.
2802 * mn10300-tdep.c: Likewise.
2803 * moxie-tdep.c: Likewise.
2804 * mt-tdep.c: Likewise.
2805 * nat/linux-btrace.c: Likewise.
2806 * nat/linux-osdata.c: Likewise.
2807 * nat/linux-ptrace.c: Likewise.
2808 * nat/mips-linux-watch.c: Likewise.
2809 * nios2-linux-tdep.c: Likewise.
2810 * nios2-tdep.c: Likewise.
2811 * objc-lang.c: Likewise.
2812 * objfiles.c: Likewise.
2813 * obsd-nat.c: Likewise.
2814 * opencl-lang.c: Likewise.
2815 * osabi.c: Likewise.
2816 * parse.c: Likewise.
2817 * ppc-linux-nat.c: Likewise.
2818 * ppc-sysv-tdep.c: Likewise.
2819 * ppcfbsd-nat.c: Likewise.
2820 * ppcfbsd-tdep.c: Likewise.
2821 * ppcnbsd-nat.c: Likewise.
2822 * ppcnbsd-tdep.c: Likewise.
2823 * ppcobsd-nat.c: Likewise.
2824 * ppcobsd-tdep.c: Likewise.
2825 * printcmd.c: Likewise.
2826 * procfs.c: Likewise.
2827 * prologue-value.c: Likewise.
2828 * psymtab.c: Likewise.
2829 * python/py-lazy-string.c: Likewise.
2830 * python/py-value.c: Likewise.
2831 * regcache.c: Likewise.
2832 * reggroups.c: Likewise.
2833 * registry.c: Likewise.
2834 * remote-sim.c: Likewise.
2835 * remote.c: Likewise.
2836 * rs6000-aix-tdep.c: Likewise.
2837 * rs6000-tdep.c: Likewise.
2838 * s390-linux-tdep.c: Likewise.
2839 * score-tdep.c: Likewise.
2840 * ser-base.c: Likewise.
2841 * ser-mingw.c: Likewise.
2842 * sh-tdep.c: Likewise.
2843 * sh64-tdep.c: Likewise.
2844 * solib-darwin.c: Likewise.
2845 * solib-spu.c: Likewise.
2846 * solib-svr4.c: Likewise.
2847 * source.c: Likewise.
2848 * sparc-nat.c: Likewise.
2849 * sparc-sol2-tdep.c: Likewise.
2850 * sparc-tdep.c: Likewise.
2851 * sparc64-sol2-tdep.c: Likewise.
2852 * sparc64-tdep.c: Likewise.
2853 * sparc64fbsd-tdep.c: Likewise.
2854 * sparc64nbsd-tdep.c: Likewise.
2855 * sparc64obsd-tdep.c: Likewise.
2856 * sparcnbsd-tdep.c: Likewise.
2857 * sparcobsd-tdep.c: Likewise.
2858 * spu-multiarch.c: Likewise.
2859 * spu-tdep.c: Likewise.
2860 * stabsread.c: Likewise.
2861 * stack.c: Likewise.
2862 * symfile.c: Likewise.
2863 * symtab.c: Likewise.
2864 * target-descriptions.c: Likewise.
2865 * target-memory.c: Likewise.
2866 * target.c: Likewise.
2867 * tic6x-linux-tdep.c: Likewise.
2868 * tic6x-tdep.c: Likewise.
2869 * tilegx-linux-nat.c: Likewise.
2870 * tilegx-tdep.c: Likewise.
2872 * tramp-frame.c: Likewise.
2873 * tui/tui-out.c: Likewise.
2874 * tui/tui-winsource.c: Likewise.
2875 * ui-out.c: Likewise.
2876 * user-regs.c: Likewise.
2877 * utils.c: Likewise.
2878 * v850-tdep.c: Likewise.
2879 * valops.c: Likewise.
2880 * value.c: Likewise.
2881 * varobj.c: Likewise.
2882 * vax-nat.c: Likewise.
2883 * xml-syscall.c: Likewise.
2884 * xml-tdesc.c: Likewise.
2885 * xstormy16-tdep.c: Likewise.
2886 * xtensa-linux-nat.c: Likewise.
2887 * xtensa-tdep.c: Likewise.
2889 2014-08-07 Gary Benson <gbenson@redhat.com>
2891 * common/common-defs.h: Include common-utils.h.
2892 * defs.h: Do not include common-utils.h.
2893 * common/gdb_assert.h: Likewise.
2894 * darwin-nat.h: Likewise.
2895 * nat/linux-btrace.c: Likewise.
2896 * target/waitstatus.h: Likewise.
2898 2014-08-07 Gary Benson <gbenson@redhat.com>
2900 * common/common-defs.h: Include ptid.h.
2901 * defs.h: Do not include ptid.h.
2902 * inferior.h: Likewise.
2903 * infrun.h: Likewise.
2904 * nat/linux-btrace.h: Likewise.
2905 * nat/linux-osdata.h: Likewise.
2906 * target/waitstatus.h: Likewise.
2908 2014-08-07 Gary Benson <gbenson@redhat.com>
2910 * common/common-defs.h: Include gdb_locale.h.
2911 * defs.h: Do not include gdb_locale.h.
2913 2014-08-07 Gary Benson <gbenson@redhat.com>
2915 * common/common-defs.h: Include gdb/signals.h.
2916 * defs.h: Do not include gdb/signals.h.
2918 2014-08-07 Gary Benson <gbenson@redhat.com>
2920 * common/common-defs.h: Include pathmax.h.
2921 * defs.h: Do not include pathmax.h.
2923 2014-08-07 Gary Benson <gbenson@redhat.com>
2925 * common/common-defs.h: Include libiberty.h.
2926 * defs.h: Do not include libiberty.h.
2927 * common/queue.h: Likewise.
2928 * cp-name-parser.y: Likewise.
2929 * mi/mi-cmd-catch.c: Likewise.
2930 * python/python.c: Likewise.
2932 2014-08-07 Gary Benson <gbenson@redhat.com>
2934 * common/common-defs.h: Include ansidecl.h.
2935 * defs.h: Do not include ansidecl.h.
2936 * common/buffer.h: Likewise.
2937 * common/common-utils.h: Likewise.
2939 2014-08-07 Gary Benson <gbenson@redhat.com>
2941 * common/common-defs.h: Include stddef.h.
2942 * defs.h: Do not include stddef.h.
2943 * common/common-utils.h: Likewise.
2944 * amd64fbsd-nat.c: Likewise.
2945 * bcache.c: Likewise.
2946 * charset.c: Likewise.
2947 * common/buffer.h: Likewise.
2948 * common/vec.h: Likewise.
2949 * i386bsd-nat.c: Likewise.
2950 * nat/linux-btrace.h: Likewise.
2951 * ppcfbsd-nat.c: Likewise.
2952 * ppcnbsd-tdep.h: Likewise.
2953 * ppcobsd-nat.c: Likewise.
2954 * ppcobsd-tdep.h: Likewise.
2955 * python/py-gdb-readline.c: Likewise.
2957 2014-08-07 Gary Benson <gbenson@redhat.com>
2959 * common/common-defs.h: Include stdarg.h.
2960 * defs.h: Do not include stdarg.h.
2961 * ada-lang.c: Likewise.
2962 * common/common-utils.h: Likewise.
2963 * guile/scm-string.c: Likewise.
2964 * guile/scm-utils.c: Likewise.
2965 * m32c-tdep.c: Likewise.
2967 2014-08-07 Gary Benson <gbenson@redhat.com>
2969 * common/common-defs.h: Include stdlib.h.
2970 * defs.h: Do not include stdlib.h.
2971 * addrmap.c: Likewise.
2972 * bcache.c: Likewise.
2973 * common/buffer.c: Likewise.
2974 * common/common-utils.c: Likewise.
2975 * cp-name-parser.y: Likewise.
2976 * go32-nat.c: Likewise.
2977 * mn10300-linux-tdep.c: Likewise.
2978 * nat/linux-osdata.c: Likewise.
2979 * tui/tui.c: Likewise.
2980 * windows-nat.c: Likewise.
2982 2014-08-07 Gary Benson <gbenson@redhat.com>
2984 * common/common-defs.h: Include stdio.h.
2985 * defs.h: Do not include stdio.h.
2986 * ada-lang.c: Likewise.
2987 * common/buffer.c: Likewise.
2988 * common/common-utils.c: Likewise.
2989 * cp-name-parser.y: Likewise.
2990 * gnu-nat.c: Likewise.
2991 * go32-nat.c: Likewise.
2992 * i386gnu-nat.c: Likewise.
2993 * proc-api.c: Likewise.
2994 * proc-events.c: Likewise.
2995 * proc-flags.c: Likewise.
2996 * proc-why.c: Likewise.
2997 * python/python-internal.h: Likewise.
2998 * target-memory.c: Likewise.
2999 * tui/tui-io.c: Likewise.
3000 * tui/tui.c: Likewise.
3002 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3004 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3005 (scan_dyntag_auxv): Same.
3007 2014-08-06 Yao Qi <yao@codesourcery.com>
3009 * amd64-linux-nat.c: Remove duplicated include
3011 * i386-linux-nat.c: Likewise.
3013 2014-08-06 Yao Qi <yao@codesourcery.com>
3015 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3016 operand" with "Special opcode" in comments.
3018 2014-08-05 Gary Benson <gbenson@redhat.com>
3020 * interps.c (initialize_interps): Remove prototype.
3021 (interpreter_initialized): Remove static global.
3022 (interp_add): Do not call initialize_interps.
3023 (initialize_interps): Remove function.
3025 2014-08-05 Gary Benson <gbenson@redhat.com>
3027 * utils.c (vwarning): Remove spurious va_end.
3029 2014-08-05 Alan Modra <amodra@gmail.com>
3031 * charset.c (convert_between_encodings): Cast result of obstack_base.
3032 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3033 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3034 (read_unwind_info): Use size_t for some locals.
3035 * jit.c (finalize_symtab): Likewise.
3036 * utils.c (hashtab_obstack_allocate): Likewise.
3037 * symmisc.c (print_objfile_statistics): Update format strings.
3039 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3041 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3042 (Changes in GDB 7.8): ... here.
3044 2014-08-04 Tom Tromey <tromey@redhat.com>
3046 * target.c (set_targetdebug): New function.
3047 (initialize_targets): Pass set_targetdebug when creating "set
3050 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3052 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3053 if detecting a variable-sized field that is not the last field.
3054 Fix struct type length computation.
3056 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3058 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3061 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3063 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3064 Remove "+ 8" offset in computation of CHAIN_VMA.
3066 2014-07-31 Doug Evans <dje@google.com>
3068 * inflow.c (child_terminal_inferior): Add comment.
3069 (child_terminal_ours_for_output): Add comment.
3070 (child_terminal_ours): Add comment.
3071 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3072 (linux_nat_terminal_ours): Add comment.
3074 2014-07-31 Gary Benson <gbenson@redhat.com>
3076 * common/btrace-common.h: Do not include defs.h or server.h.
3077 * nat/mips-linux-watch.h: Likewise.
3078 * gdb-dlfcn.h: Do not include defs.h.
3079 * tracefile.h: Likewise.
3081 2014-07-30 Roland McGrath <mcgrathr@google.com>
3083 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3085 2014-07-30 Tom Tromey <tromey@redhat.com>
3087 * bsd-kvm.c (bsd_kvm_open): Constify.
3088 * corelow.c (core_open): Constify.
3089 * ctf.c (ctf_open): Constify.
3090 * dbug-rom.c (dbug_open): Constify.
3091 * exec.c (exec_open): Constify.
3092 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3093 * microblaze-rom.c (picobug_open): Constify.
3094 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3096 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3097 * record-btrace.c (record_btrace_open): Constify.
3098 * record-full.c (record_full_core_open_1, record_full_open_1)
3099 (record_full_open): Constify.
3100 * remote-m32r-sdi.c (m32r_open): Constify.
3101 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3102 (rockhopper_open, lsi_open): Constify.
3103 * remote-sim.c (gdbsim_open): Constify.
3104 * remote.c (remote_open, extended_remote_open, remote_open_1):
3106 * target.h (struct target_ops) <to_open>: Make "arg" const.
3107 * tracefile-tfile.c (tfile_open): Constify.
3109 2014-07-30 Tom Tromey <tromey@redhat.com>
3111 * breakpoint.c (map_breakpoint_numbers): Update.
3112 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3113 (get_number_const): New function.
3114 (get_number): Rewrite using get_number_const.
3115 (init_number_or_range): Make "string" const.
3116 (number_is_in_list): Make "list" const.
3117 * cli/cli-utils.h (get_number_const): Declare.
3118 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3119 (init_number_or_range, number_is_in_list): Update.
3120 * printcmd.c (map_display_numbers): Update.
3121 * value.c (value_from_history_ref): Constify.
3122 * value.h (value_from_history_ref): Update.
3124 2014-07-30 Tom Tromey <tromey@redhat.com>
3126 * corefile.c (hook_type, call_extra_exec_file_hooks)
3127 (specify_exec_file_hook): Constify.
3128 * exec.c (exec_file_attach): Make "filename" const.
3129 * gdbcore.h (deprecated_exec_file_display_hook)
3130 (specify_exec_file_hook, exec_file_attach): Constify.
3131 * main.c (captured_main): Use catch_command_errors_const.
3133 2014-07-30 Tom Tromey <tromey@redhat.com>
3135 * target.c (open_target): New function.
3136 (add_target_with_completer, add_deprecated_target_alias): Use
3137 set_cmd_sfunc, set_cmd_context.
3138 (debug_to_open): Remove.
3139 (setup_target_debug): Update.
3141 2014-07-30 Yao Qi <yao@codesourcery.com>
3143 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3145 * parse.c (exp_iterate): Update comments.
3147 2014-07-30 Gary Benson <gbenson@redhat.com>
3149 * common/common-defs.h: New file.
3150 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3151 * defs.h: Include common-defs.h.
3152 Do not include config.h or build-gnulib/config.h.
3154 2014-07-30 Gary Benson <gbenson@redhat.com>
3156 * common/common-utils.h: Do not include config.h.
3157 * nat/linux-btrace.h: Likewise.
3159 2014-07-30 Gary Benson <gbenson@redhat.com>
3161 * btrace.c: Include defs.h.
3162 * common/ptid.c: Include defs.h or server.h as appropriate.
3163 * nat/mips-linux-watch.c: Likewise.
3165 2014-07-29 Tom Tromey <tromey@redhat.com>
3167 * target.c (target_is_pushed): Simplify.
3169 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3173 2014-07-29 Yao Qi <yao@codesourcery.com>
3176 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3178 2014-07-28 Doug Evans <xdje42@gmail.com>
3181 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3182 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3185 2014-07-28 Will Newton <will.newton@linaro.org>
3187 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3188 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3189 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3190 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3191 (THUMB2_EABI_SYSCALL): Likewise.
3192 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3194 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3195 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3197 2014-07-27 Doug Evans <xdje42@gmail.com>
3199 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3201 2014-07-27 Doug Evans <xdje42@gmail.com>
3203 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3205 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3206 Doug Evans <xdje42@gmail.com>
3209 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3210 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3211 * configure.ac: Try to use guild to compile an scm file, if it fails
3212 then disable guile support.
3213 * configure: Regenerate.
3214 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3216 (GUILE_COMPILED_FILES): New variable.
3217 (GUILE_FILES) Update.
3218 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3219 (stamp-guile): Compile scm files.
3220 * guile/guile.c (boot_guile_support): New function.
3221 (standard_throw_args_p): New function.
3222 (print_standard_throw_error, print_throw_error): New functions.
3223 (handle_boot_error): New function.
3224 (initialize_scheme_side): Rewrite to call boot_guile_support.
3225 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3226 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3228 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3229 Doug Evans <xdje42@gmail.com>
3232 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3233 * guile/lib/gdb/support.scm: New file.
3234 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3235 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3237 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3239 (%assert-type): Ditto, and renamed to assert-type.
3240 (%exception-print-style): Delete.
3242 2014-07-26 Doug Evans <xdje42@gmail.com>
3245 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3246 * configure: Regenerate.
3247 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3249 (PYTHON_FILES): New variable.
3250 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3251 (GUILE_FILES): New variable.
3252 (stamp-python, install-python, uninstall-python): Handle empty
3254 (stamp-guile, install-guile, uninstall-guile): Ditto.
3256 2014-07-26 Doug Evans <xdje42@gmail.com>
3259 * guile/lib/gdb.scm (pretty-printers): Export.
3260 (set-pretty-printers!): Export.
3261 * guile/lib/gdb/printing.scm (gdb module): Update.
3262 (prepend-pretty-printer!, append-pretty-printer!): Update.
3263 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3264 (pretty_printer_list_var): Delete.
3265 (pretty_printer_list): New static global.
3266 (gdbscm_pretty_printers): New function.
3267 (gdbscm_set_pretty_printers_x): New function.
3268 (ppscm_find_pretty_printer_from_gdb): Update.
3269 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3270 (gdbscm_initialize_pretty_printers): Update.
3272 2014-07-26 Doug Evans <xdje42@gmail.com>
3275 * configure.ac: Add check for header gc/gc.h.
3276 Add check for function setenv.
3277 * configure: Regenerate.
3278 * config.in: Regenerate.
3279 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3281 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3283 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3284 variation in gdbarch matching.
3286 2014-07-25 Tom Tromey <tromey@redhat.com>
3288 * exec.c (using_exec_ops): Remove.
3289 (exec_close_1): Update. Remove extraneous block, reindent.
3290 (add_target_sections): Use target_is_pushed.
3292 2014-07-25 Pedro Alves <palves@redhat.com>
3294 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3295 * monitor.c (monitor_create_inferior): Likewise.
3296 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3297 * remote-sim.c (gdbsim_create_inferior): Likewise.
3298 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3299 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3300 * windows-nat.c (do_initial_windows_stuff): Likewise.
3302 2014-07-25 Pedro Alves <palves@redhat.com>
3304 * NEWS: Mention signal passing and "signal" command changes.
3305 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3307 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3309 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3310 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3311 (jump_command): Adjust clear_proceed_status call.
3312 (signal_command): Warn if other thread that are resumed have
3313 signals that will be delivered. Adjust clear_proceed_status call.
3314 (until_next_command, finish_command)
3315 (proceed_after_attach_callback, attach_command_post_wait)
3316 (attach_command): Adjust clear_proceed_status call.
3317 * infrun.c (proceed_after_vfork_done): Likewise.
3318 (proceed_after_attach_callback): Adjust comment.
3319 (clear_proceed_status_thread): Clear stop_signal if not in pass
3321 (clear_proceed_status_callback): Delete.
3322 (clear_proceed_status): New 'step' parameter. Only clear the
3323 proceed status of threads the command being prepared is about to
3325 (proceed): If passed in an explicit signal, override stop_signal
3326 with it. Don't pass the last stop signal to the thread we're
3328 (init_wait_for_inferior): Adjust clear_proceed_status call.
3329 (switch_back_to_stepped_thread): Clear the signal if it should not
3331 * infrun.h (clear_proceed_status): New 'step' parameter.
3332 (user_visible_resume_ptid): Add comment.
3333 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3334 signal is in pass state.
3335 * remote.c (append_pending_thread_resumptions): Likewise.
3336 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3338 2014-07-25 Tom Tromey <tromey@redhat.com>
3340 * target.h (target_stopped_data_address)
3341 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3344 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3346 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3348 (avr_pointer_to_address): Likewise.
3350 2014-07-24 Tom Tromey <tromey@redhat.com>
3352 * monitor.c (compile_pattern): Update.
3353 * target.h (struct target_ops) <to_shortname, to_longname,
3356 2014-07-24 Tom Tromey <tromey@redhat.com>
3358 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3359 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3360 (add_info_alias, add_com): Make "doc" const.
3361 (print_doc_line): Make "str" const.
3362 (delete_cmd): Update.
3363 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3364 (print_doc_line): Update.
3365 * cli/cli-script.c (document_command): Update.
3366 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3367 (add_com, add_info, add_info_alias): Update.
3368 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3369 * python/py-cmd.c (cmdpy_destroyer): Update.
3371 2014-07-24 Tom Tromey <tromey@redhat.com>
3373 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3374 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3375 (help_cmd_list): Constify.
3376 (lookup_cmd): Update.
3377 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3379 (help_cmd_list, apropos_cmd): Update.
3380 * cli/cli-script.c (show_user): Update.
3381 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3382 * cli/cli-setshow.h (cmd_show_list): Update.
3383 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3384 (cmd_show_list): Update.
3385 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3386 * python/py-cmd.c (cmdpy_destroyer): Update.
3388 2014-07-24 Tom Tromey <tromey@redhat.com>
3390 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3391 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3393 * command.h (deprecate_cmd): Update.
3394 * maint.c (maintenance_do_deprecate): Add casts.
3396 2014-07-24 Tom Tromey <tromey@redhat.com>
3398 * cli/cli-decode.c (help_cmd): Make parameter "const".
3399 * cli/cli-decode.h (help_cmd): Update.
3401 2014-07-24 Tom Tromey <tromey@redhat.com>
3403 * stack.c (up_silently_base, down_silently_base): Make argument
3406 2014-07-24 Tom Tromey <tromey@redhat.com>
3408 * solib.c (solib_add): Make "pattern" const.
3409 * solib.h (solib_add): Update.
3411 2014-07-24 Tom Tromey <tromey@redhat.com>
3413 * remote.c (remote_serial_open, print_packet, putpkt)
3414 (putpkt_binary): Constify.
3415 * remote.h (putpkt): Update.
3417 2014-07-24 Tom Tromey <tromey@redhat.com>
3419 * monitor.c (monitor_open): Make "args" const.
3420 * monitor.h (monitor_open): Update.
3422 2014-07-24 Tom Tromey <tromey@redhat.com>
3424 * maint.c (match_bfd_flags): Make "string" const.
3425 (print_bfd_section_info): Remove casts.
3426 (print_objfile_section_info): Make "string" const.
3428 2014-07-24 Tom Tromey <tromey@redhat.com>
3430 * inf-child.c (inf_child_open_target): Make "arg" const.
3431 * inf-child.h (inf_child_open_target): Update.
3433 2014-07-24 Tom Tromey <tromey@redhat.com>
3435 * environ.c (unset_in_environ): Make "var" const.
3436 * environ.h (unset_in_environ): Update.
3438 2014-07-24 Tom Tromey <tromey@redhat.com>
3440 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3442 (scan_filename_with_cleanup): Likewise.
3443 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3444 Make arguments const.
3445 (restore_command): Update.
3447 2014-07-24 Pedro Alves <palves@redhat.com>
3449 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3451 2014-07-24 Tom Tromey <tromey@redhat.com>
3452 Gary Benson <gbenson@redhat.com>
3454 * nat/linux-ptrace.c (additional_flags): New global.
3455 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3456 additional_flags; don't check GDBSERVER.
3457 (linux_ptrace_set_additional_flags): New function.
3458 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3460 * linux-nat.c (_initialize_linux_nat): Call
3461 linux_ptrace_set_additional_flags.
3463 2014-07-24 Tom Tromey <tromey@redhat.com>
3465 * make-target-delegates (munge_type, write_debugmethod): New
3467 (debug_names): New global.
3468 ($TARGET_DEBUG_PRINTER): New global.
3469 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3471 Write debug methods. Generate init_debug_target.
3472 * target-debug.h: New file.
3473 * target-delegates.c: Rebuild.
3474 * target.c: Include target-debug.h.
3475 (debug_target): Hoist definition.
3476 (target_kill, target_get_section_table, target_memory_map)
3477 (target_flash_erase, target_flash_done, target_detach)
3478 (target_disconnect, target_wait, target_resume)
3479 (target_pass_signals, target_program_signals, target_follow_fork)
3480 (target_mourn_inferior, target_search_memory)
3481 (target_thread_address_space, target_close)
3482 (target_find_new_threads, target_core_of_thread)
3483 (target_verify_memory, target_insert_mask_watchpoint)
3484 (target_remove_mask_watchpoint): Remove targetdebug code.
3485 (debug_to_post_attach, debug_to_prepare_to_store)
3486 (debug_to_files_info, debug_to_insert_breakpoint)
3487 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3488 (debug_to_region_ok_for_hw_watchpoint)
3489 (debug_to_can_accel_watchpoint_condition)
3490 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3491 (debug_to_watchpoint_addr_within_range)
3492 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3493 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3494 (debug_to_terminal_init, debug_to_terminal_inferior)
3495 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3496 (debug_to_terminal_save_ours, debug_to_terminal_info)
3497 (debug_to_load, debug_to_post_startup_inferior)
3498 (debug_to_insert_fork_catchpoint)
3499 (debug_to_remove_fork_catchpoint)
3500 (debug_to_insert_vfork_catchpoint)
3501 (debug_to_remove_vfork_catchpoint)
3502 (debug_to_insert_exec_catchpoint)
3503 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3504 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3505 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3506 (setup_target_debug): Call init_debug_target.
3507 * target.h (TARGET_DEBUG_PRINTER): New macro.
3508 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3509 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3511 2014-07-24 Gary Benson <gbenson@redhat.com>
3513 * exceptions.h (throw_vfatal): Renamed to...
3514 (throw_vquit): New declaration.
3515 (throw_quit): Likewise.
3516 * exceptions.c (throw_vfatal): Renamed to...
3517 (throw_vquit): New function.
3518 (throw_quit): Likewise.
3519 (throw_error): Call throw_verror rather than throw_it.
3520 * utils.h (vfatal): Removed.
3522 * utils.c (vfatal): Removed.
3524 (internal_verror): Replaced call to fatal with call to throw_quit.
3525 (quit): Replaced calls to fatal with calls to throw_quit.
3527 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3529 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3532 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3534 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3535 less than zero in conditional expression.
3537 2014-07-23 Tom Tromey <tromey@redhat.com>
3539 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3540 ($INTRO_PART): Don't match whitespace.
3541 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3543 ($METHOD): Add $METHOD_TRAILER.
3545 (scan_target_h): New sub.
3546 Change main loop not to collect state.
3547 * target-delegates.c: Rebuild.
3549 2014-07-23 Gary Benson <gbenson@redhat.com>
3551 * cp-support.c (gdb_demangle): Fix build on systems without
3554 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3556 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3557 for reference entry value target data value.
3559 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3561 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3562 value_available_contents_eq.
3564 2014-07-22 Pedro Alves <palves@redhat.com>
3566 * value.c (allocate_optimized_out_value): Don't mark value as
3569 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3571 * MAINTAINERS (Write After Approval): Update my email address.
3573 2014-07-20 Doug Evans <dje@google.com>
3576 * remote.c (putpkt_binary): Add text to error message.
3578 2014-07-20 Yao Qi <yao@codesourcery.com>
3580 * eval.c: Remove "Chill" from comments.
3581 * gdbtypes.h: Likewise.
3582 * symtab.h: Likewise.
3584 2014-07-20 Yao Qi <yao@codesourcery.com>
3586 * std-operator.def: Update comments to TERNOP_SLICE.
3588 2014-07-20 Yao Qi <yao@codesourcery.com>
3590 * std-operator.def: Remove BINOP_RANGE.
3591 * breakpoint.c (watchpoint_exp_is_const): Update.
3592 * expprint.c (dump_subexp_body_standard): Likewise.
3593 * eval.c (init_array_element): Remove dead code.
3594 (evaluate_subexp_standard): Likewise.
3596 2014-07-20 Yao Qi <yao@codesourcery.com>
3598 * std-operator.def: Remove BINOP_IN.
3599 * breakpoint.c (watchpoint_exp_is_const): Update.
3600 * eval.c (evaluate_subexp_standard): Likewise.
3601 * expprint.c (dump_subexp_body_standard): Likewise.
3603 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3605 * microblaze-tdep.c (microblaze_register_names): Add
3606 the rshr and rslr register names.
3607 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3608 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3609 Use of tdesc_numbered_register. Use of
3610 microblaze_register_g_packet_guesses. Use of
3611 tdesc_use_registers. Use of set_gdbarch_register_type.
3612 (microblaze_register_g_packet_guesses): New.
3613 * microblaze-tdep.h (microblaze_reg_num): Add
3614 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3615 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3616 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3617 * features/microblaze-core.xml: New file.
3618 * features/microblaze-stack-protect.xml: New file.
3619 * features/microblaze-with-stack-protect.c: New file.
3620 * features/microblaze-with-stack-protect.xml: New file.
3621 * features/microblaze.xml: New file.
3622 * features/microblaze.c: New file.
3623 * features/Makefile (microblaze-with-stack-protect): Add
3624 microblaze-with-stack-protect microblaze and microblaze-expedite.
3625 * regformats/microblaze-with-stack-protect.dat: New file.
3626 * regformats/microblaze.dat: New file.
3627 * doc/gdb.texinfo (MicroBlaze Features): Added.
3629 2014-07-18 Tom Tromey <tromey@redhat.com>
3631 * exec.c (exec_ops): Now static.
3632 * exec.h (exec_ops): Don't declare.
3634 2014-07-18 Tom Tromey <tromey@redhat.com>
3636 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3637 to find_target_beneath.
3638 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3639 find_target_beneath.
3640 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3642 2014-07-18 Tom Tromey <tromey@redhat.com>
3645 * utils.c (quit): Use target_supports_terminal_ours.
3646 * target.h (target_supports_terminal_ours): Declare.
3647 * target.c (target_supports_delete_record): Don't check
3648 to_delete_record against NULL.
3649 (target_supports_terminal_ours): New function.
3651 2014-07-18 Tom Tromey <tromey@redhat.com>
3654 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3655 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3656 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3657 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3658 * windows-nat.c (windows_xfer_partial): Always delegate.
3659 * record-btrace.c (record_btrace_xfer_partial): Simplify
3661 (record_btrace_fetch_registers, record_btrace_store_registers)
3662 (record_btrace_prepare_to_store, record_btrace_resume)
3663 (record_btrace_wait, record_btrace_find_new_threads)
3664 (record_btrace_thread_alive): Likewise.
3665 * procfs.c (procfs_xfer_partial): Always delegate.
3666 * corelow.c (core_xfer_partial): Always delegate.
3667 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3669 2014-07-18 Tom Tromey <tromey@redhat.com>
3671 * exec.c (exec_make_note_section): Move earlier.
3673 2014-07-17 Doug Evans <dje@google.com>
3676 * maint.c (count_symtabs_and_blocks): Handle NULL
3677 current_program_space.
3678 (report_command_stats): Check global enabled flag in addition to
3679 recorded enabled flag.
3680 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3682 2014-07-16 Pedro Alves <palves@redhat.com>
3684 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3686 2014-07-16 Tom Tromey <tromey@redhat.com>
3688 * target.h (struct target_ops) <to_delete_record>: Reformat
3691 2014-07-16 Tom Tromey <tromey@redhat.com>
3693 * target-delegates.c: Rebuild.
3695 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3697 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3698 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3699 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3700 (avr_pointer_to_address): Likewise.
3701 (avr_address_class_type_flags): New function.
3702 (avr_address_class_type_flags_to_name): Likewise.
3703 (avr_address_class_name_to_type_flags): Likewise.
3704 (avr_gdbarch_init): Set address_class_type_flags,
3705 address_class_type_flags_to_name and
3706 address_class_name_to_type_flags.
3708 2014-07-15 Pedro Alves <palves@redhat.com>
3710 * linux-nat.c (kill_callback): Save errno and work with saved
3713 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3715 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3717 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3719 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3720 breakpoint support correctly.
3722 2014-07-14 Pedro Alves <palves@redhat.com>
3724 * utils.c (prompt_for_continue): Call target_terminal_ours.
3726 2014-07-14 Pedro Alves <palves@redhat.com>
3728 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3729 catch_errors. Don't re-enable stdin or notify observers where,
3731 (fetch_inferior_event_wrapper): Delete.
3733 2014-07-14 Pedro Alves <palves@redhat.com>
3736 * top.c: Include "inf-loop.h".
3737 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3739 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3741 (gdb_readline_wrapper): Store whether the target is async, and
3744 2014-07-14 Pedro Alves <palves@redhat.com>
3747 * top.c (gdb_readline_wrapper_line): Tweak comment.
3748 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3749 the input handler callback.
3751 2014-07-14 Pedro Alves <palves@redhat.com>
3754 * main.c: Include event-top.h.
3755 (handle_command_errors): New function.
3756 (catch_command_errors, catch_command_errors_const): Use it.
3758 2014-07-14 Pedro Alves <palves@redhat.com>
3760 * exceptions.c (catch_command_errors, catch_command_errors_const):
3762 * exceptions.h (catch_command_errors_ftype)
3763 (catch_command_errors_const_ftype): Moved to main.c.
3764 (catch_command_errors, catch_command_errors_const): Delete
3766 * main.c (catch_command_errors_ftype)
3767 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3768 (catch_command_errors, catch_command_errors_const)): Moved here
3769 from exceptions.c and make static.
3771 2014-07-14 Pedro Alves <palves@redhat.com>
3773 * exceptions.c (print_any_exception): Delete.
3774 (catch_exceptions_with_msg): Use exception_print instead of
3775 print_any_exception.
3776 (catch_errors): Use exception_fprintf instead of
3777 print_any_exception.
3778 (catch_command_errors, catch_command_errors_const): Use
3779 exception_print instead of print_any_exception.
3781 2014-07-14 Pedro Alves <palves@redhat.com>
3783 * infcall.c (run_inferior_call): Set 'sync_execution' while
3784 running the inferior call.
3786 2014-07-14 Pedro Alves <palves@redhat.com>
3788 * value.c (value_contents_equal): Delete function.
3789 * value.h (value_contents_equal): Delete declaration.
3791 2014-07-14 Tom Tromey <tromey@redhat.com>
3794 * gdbtypes.c (is_dynamic_type_internal): New function, from
3796 (is_dynamic_type): Rewrite.
3797 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3798 (resolve_dynamic_struct): Likewise.
3799 (resolve_dynamic_type_internal): New function, from
3800 resolve_dynamic_type.
3801 (resolve_dynamic_type): Rewrite.
3803 2014-07-14 Tom Tromey <tromey@redhat.com>
3805 * target.c (target_require_runnable): Also check record_stratum.
3808 2014-07-11 Yao Qi <yao@codesourcery.com>
3810 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3811 thumb_instruction_restores_sp return true.
3813 2014-07-11 Yao Qi <yao@codesourcery.com>
3815 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3816 (thumb_in_function_epilogue_p): Call
3817 thumb_instruction_restores_sp.
3819 2014-07-11 Yao Qi <yao@codesourcery.com>
3821 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3823 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3825 2014-07-11 Gary Benson <gbenson@redhat.com>
3827 * amd64-linux-nat.c (gdbcore.h): Remove include.
3828 (regset.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/debugreg.h): Likewise.
3835 (sys/syscall.h): Likewise.
3836 (sys/procfs.h): Likewise.
3837 (sys/user.h): Likewise.
3838 (asm/ptrace.h): Likewise.
3839 (i386-nat.h): Likewise.
3840 * i386-linux-nat.c (i386-nat.h): Likewise.
3841 (regset.h): Likewise.
3842 (target.h): Likewise.
3843 (linux-nat.h): Likewise.
3844 (nat/linux-btrace.h): Likewise.
3845 (btrace.h): Likewise.
3846 (gdb_assert.h): Likewise.
3847 (string.h): Likewise.
3848 (sys/uio.h): Likewise.
3849 (sys/user.h): Likewise.
3850 (sys/procfs.h): Likewise.
3851 (sys/reg.h): Likewise.
3852 (sys/debugreg.h): Likewise.
3853 (ORIG_EAX): Remove definition.
3855 2014-07-11 Gary Benson <gbenson@redhat.com>
3857 * i386-linux-nat.h: New file.
3858 * x86-linux-nat.h: Likewise.
3859 * x86-linux-nat.c: Likewise.
3860 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3861 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3862 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3863 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3864 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3865 (PTRACE_SETREGSET): Likewise.
3866 (arch_lwp_info): Now in x86-linux-nat.c.
3867 (have_ptrace_getregset): Now in x86-linux-nat.h.
3868 (x86_linux_dr_get): Now in x86-linux-nat.c.
3869 (x86_linux_dr_set): Likewise.
3870 (x86_linux_dr_get_addr): Likewise.
3871 (x86_linux_dr_get_control): Likewise.
3872 (x86_linux_dr_get_status): Likewise.
3873 (update_debug_registers_callback): Likewise.
3874 (x86_linux_dr_set_control): Likewise.
3875 (x86_linux_dr_set_addr): Likewise.
3876 (x86_linux_prepare_to_resume): Likewise.
3877 (x86_linux_new_thread): Likewise.
3878 (x86_linux_new_fork): Likewise.
3879 (x86_linux_get_thread_area): Likewise.
3880 (super_post_startup_inferior): Likewise.
3881 (x86_linux_child_post_startup_inferior): Likewise.
3882 (AMD64_LINUX_USER64_CS): Likewise.
3883 (AMD64_LINUX_X32_DS): Likewise.
3884 (x86_linux_read_description): Likewise.
3885 (x86_linux_enable_btrace): Likewise.
3886 (x86_linux_disable_btrace): Likewise.
3887 (x86_linux_teardown_btrace): Likewise.
3888 (x86_linux_read_btrace): Likewise.
3889 (x86_linux_create_target): Likewise.
3890 (x86_linux_add_target): Likewise.
3891 * i386-linux-nat.c (x86-linux-nat.h): New include.
3892 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3893 (PTRACE_SETREGSET): Likewise.
3894 (arch_lwp_info): Now in x86-linux-nat.c.
3895 (have_ptrace_getregset): Now in x86-linux-nat.h.
3896 (x86_linux_dr_get): Now in x86-linux-nat.c.
3897 (x86_linux_dr_set): Likewise.
3898 (x86_linux_dr_get_addr): Likewise.
3899 (x86_linux_dr_get_control): Likewise.
3900 (x86_linux_dr_get_status): Likewise.
3901 (update_debug_registers_callback): Likewise.
3902 (x86_linux_dr_set_control): Likewise.
3903 (x86_linux_dr_set_addr): Likewise.
3904 (x86_linux_prepare_to_resume): Likewise.
3905 (x86_linux_new_thread): Likewise.
3906 (x86_linux_new_fork): Likewise.
3907 (x86_linux_get_thread_area): Likewise.
3908 (super_post_startup_inferior): Likewise.
3909 (x86_linux_child_post_startup_inferior): Likewise.
3910 (AMD64_LINUX_USER64_CS): Likewise.
3911 (AMD64_LINUX_X32_DS): Likewise.
3912 (x86_linux_read_description): Likewise.
3913 (x86_linux_enable_btrace): Likewise.
3914 (x86_linux_disable_btrace): Likewise.
3915 (x86_linux_teardown_btrace): Likewise.
3916 (x86_linux_read_btrace): Likewise.
3917 (x86_linux_create_target): Likewise.
3918 (x86_linux_add_target): Likewise.
3920 2014-07-11 Gary Benson <gbenson@redhat.com>
3922 * amd64-linux-nat.c: Comment and whitespace changes.
3923 * i386-linux-nat.c: Comment and whitespace changes.
3925 2014-07-11 Gary Benson <gbenson@redhat.com>
3927 * amd64-linux-nat.c (x86_linux_create_target): New function.
3928 (x86_linux_add_target): Likewise.
3929 (_initialize_amd64_linux_nat): Delegate to the above new functions.
3930 * i386-linux-nat.c (x86_linux_create_target): New function.
3931 (x86_linux_add_target): Likewise.
3932 (_initialize_i386_linux_nat): Delegate to the above new functions.
3934 2014-07-11 Gary Benson <gbenson@redhat.com>
3936 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3937 (ps_get_thread_area): Delegate to the above in 32-bit mode.
3938 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3939 (ps_get_thread_area): Delegate to the above.
3941 2014-07-11 Gary Benson <gbenson@redhat.com>
3943 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3944 x86_linux_read_description. All uses updated. amd64-specific
3945 code conditionalized. Conditionalized i386-specific code added.
3946 Redundant cast removed.
3947 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3948 x86_linux_read_description. All uses updated. i386-specific
3949 code conditionalized. Conditionalized amd64-specific code added.
3950 One sizeof replaced with the actual type it is describing.
3952 2014-07-11 Gary Benson <gbenson@redhat.com>
3954 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3955 x86_linux_dr_get. All uses updated.
3956 (amd64_linux_dr_set): Renamed to
3957 x86_linux_dr_set. All uses updated.
3958 (amd64_linux_dr_get_addr): Renamed to
3959 x86_linux_dr_get_addr. All uses updated.
3960 (amd64_linux_dr_get_control): Renamed to
3961 x86_linux_dr_get_control. All uses updated.
3962 (amd64_linux_dr_get_status): Renamed to
3963 x86_linux_dr_get_status. All uses updated.
3964 (amd64_linux_dr_set_control): Renamed to
3965 x86_linux_dr_set_control. All uses updated.
3966 (amd64_linux_dr_set_addr): Renamed to
3967 x86_linux_dr_set_addr. All uses updated.
3968 (amd64_linux_prepare_to_resume): Renamed to
3969 x86_linux_prepare_to_resume. All uses updated.
3970 (amd64_linux_new_thread): Renamed to
3971 x86_linux_new_thread. All uses updated.
3972 (amd64_linux_new_fork): Renamed to
3973 x86_linux_new_fork. All uses updated.
3974 (amd64_linux_child_post_startup_inferior): Renamed to
3975 x86_linux_child_post_startup_inferior. All uses updated.
3976 (amd64_linux_enable_btrace): Renamed to
3977 x86_linux_enable_btrace. All uses updated.
3978 (amd64_linux_disable_btrace): Renamed to
3979 x86_linux_disable_btrace. All uses updated.
3980 (amd64_linux_teardown_btrace): Renamed to
3981 x86_linux_teardown_btrace. All uses updated.
3982 (amd64_linux_read_btrace): Renamed to
3983 x86_linux_read_btrace. All uses updated.
3984 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3985 x86_linux_dr_get. All uses updated.
3986 (i386_linux_dr_set): Renamed to
3987 x86_linux_dr_set. All uses updated.
3988 (i386_linux_dr_get_addr): Renamed to
3989 x86_linux_dr_get_addr. All uses updated.
3990 (i386_linux_dr_get_control): Renamed to
3991 x86_linux_dr_get_control. All uses updated.
3992 (i386_linux_dr_get_status): Renamed to
3993 x86_linux_dr_get_status. All uses updated.
3994 (i386_linux_dr_set_control): Renamed to
3995 x86_linux_dr_set_control. All uses updated.
3996 (i386_linux_dr_set_addr): Renamed to
3997 x86_linux_dr_set_addr. All uses updated.
3998 (i386_linux_prepare_to_resume): Renamed to
3999 x86_linux_prepare_to_resume. All uses updated.
4000 (i386_linux_new_thread): Renamed to
4001 x86_linux_new_thread. All uses updated.
4002 (i386_linux_new_fork): Renamed to
4003 x86_linux_new_fork. All uses updated.
4004 (i386_linux_child_post_startup_inferior): Renamed to
4005 x86_linux_child_post_startup_inferior. All uses updated.
4006 (i386_linux_enable_btrace): Renamed to
4007 x86_linux_enable_btrace. All uses updated.
4008 (i386_linux_disable_btrace): Renamed to
4009 x86_linux_disable_btrace. All uses updated.
4010 (i386_linux_teardown_btrace): Renamed to
4011 x86_linux_teardown_btrace. All uses updated.
4012 (i386_linux_read_btrace): Renamed to
4013 x86_linux_read_btrace. All uses updated.
4015 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4017 * remote.c (extended_remote_post_attach): New function.
4018 (init_extended_remote_ops): Install it as to_post_attach method.
4020 2014-07-09 Pedro Alves <palves@redhat.com>
4022 * infcmd.c (attach_command_post_wait): Don't call
4023 target_terminal_inferior here.
4024 (attach_command): Call it here instead.
4026 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4028 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4030 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4031 from varobj.c, with additional checks.
4032 (c_varobj_ops): Fill in is_path_expr_parent field.
4033 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4034 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4036 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4038 (varobj_default_is_path_expr_parent): New function.
4039 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4040 (varobj_default_is_path_expr_parent): Declare new function.
4042 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4044 * infcmd.c (finish_backward): Turn internal error into normal error.
4046 2014-07-07 Pedro Alves <palves@redhat.com>
4049 * remote.c (async_handle_remote_sigint)
4050 (async_handle_remote_sigint_twice): Call
4051 gdb_call_async_signal_handler instead of
4052 mark_async_signal_handler.
4054 2014-07-07 Tom Tromey <tromey@redhat.com>
4056 * target-delegates.c: Rebuild.
4057 * target.c (target_info_record): Remove.
4058 * record.c (info_record_command): Unconditionally call
4060 * target.h (struct target_ops) <to_info_record>: Use
4061 TARGET_DEFAULT_IGNORE.
4062 (target_info_record): Remove.
4064 2014-07-07 Tom Tromey <tromey@redhat.com>
4066 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4067 TARGET_DEFAULT_NORETURN.
4068 * target.c (generic_tls_error): New function.
4069 (target_translate_tls_address): Don't search target stack.
4070 * target-delegates.c: Rebuild.
4071 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4073 * linux-thread-db.c (thread_db_get_thread_local_address):
4074 Unconditionally call beneath target.
4076 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4078 * cli/cli-logging.c (pop_output_files): Assign targerr to
4081 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4083 * MAINTAINERS (Write After Approval): Update my email address.
4085 2014-07-02 Gary Benson <gbenson@redhat.com>
4087 * proc-service.c (ps_xfer_memory): Update comment.
4088 (ps_pstop): Remove unused function.
4089 (ps_pcontinue): Likewise.
4090 (ps_lstop): Likewise.
4091 (ps_lcontinue): Likewise.
4092 (ps_lgetxregsize): Likewise.
4093 (ps_lgetxregs): Likewise.
4094 (ps_lsetxregs): Likewise.
4095 (ps_plog): Likewise.
4096 (ps_ptread): Likewise.
4097 (ps_ptwrite): Likewise.
4099 2014-07-01 Mark Wielaard <mjw@redhat.com>
4101 * dwarf2read.c (add_array_cv_type): New function.
4102 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4103 (read_tag_volatile_type): Likewise.
4105 2014-07-01 Tom Tromey <tromey@redhat.com>
4107 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4108 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4109 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4110 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4111 * command.h (cmd_cfunc_ftype): Move earlier.
4112 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4113 (add_com, add_info): Use cmd_cfunc_ftype.
4115 2014-06-30 Tom Tromey <tromey@redhat.com>
4117 * symtab.c (operator_chars): Make parameters and return type
4119 (file_matches): Make "files" const.
4120 (struct search_symbols_data) <files>: Now const.
4121 (search_symbols): Make "regexp" and "files" parameters const.
4123 (symtab_symbol_info): Remove cast.
4124 (rbreak_command): Update.
4125 * symtab.h (search_symbols): Update.
4127 2014-06-27 Yao Qi <yao@codesourcery.com>
4129 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4130 Change parameter type to 'struct thread_info *'. Caller
4132 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4134 * dummy-frame.c (struct dummy_frame_id): New.
4135 (dummy_frame_id_eq): New function.
4136 (struct dummy_frame) <id>: Change its type to 'struct
4138 (dummy_frame_push): Add parameter ptid and save it in
4140 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4142 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4144 (lookup_dummy_frame): Change parameter type to 'struct
4145 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4146 instead of frame_id_eq.
4147 (dummy_frame_pop): Add parameter ptid. Callers updated.
4148 Update comments. Compose dummy_frame_id and pass it to
4150 (dummy_frame_discard): Add parameter ptid.
4151 (dummy_frame_sniffer): Compose dummy_frame_id and call
4152 dummy_frame_id_eq instead of frame_id_eq.
4153 (fprint_dummy_frames): Print ptid.
4154 * dummy-frame.h: Remove comments.
4155 (dummy_frame_push): Add ptid in declaration.
4156 (dummy_frame_pop, dummy_frame_discard): Likewise.
4158 2014-06-26 Tom Tromey <tromey@redhat.com>
4160 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4161 * command.h (error_no_arg): Update.
4163 2014-06-26 Tom Tromey <tromey@redhat.com>
4165 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4166 (do_show_command): Make "arg" const.
4167 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4169 2014-06-26 Tom Tromey <tromey@redhat.com>
4171 * record-full.c (record_full_get_bookmark): Make "args" const.
4172 (record_full_goto_bookmark): Make "raw_bookmark" const.
4173 * record.c (record_goto): New function.
4174 (cmd_record_goto): Use it. Now static.
4175 * record.h (record_goto): Declare.
4176 (cmd_record_goto): Remove declaration.
4177 * target-delegates.c: Rebuild.
4178 * target.h (struct target_ops) <to_get_bookmark,
4179 to_goto_bookmark>: Make parameter const.
4181 2014-06-26 Tom Tromey <tromey@redhat.com>
4183 * defs.h (generic_load): Update.
4184 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4185 * monitor.c (monitor_load): Make "args" const.
4186 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4187 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4189 (mips_load): Make "file" const.
4190 * remote-sim.c (gdbsim_load): Make "args" const.
4191 * remote.c (remote_load): Make "name" const.
4192 * symfile.c (generic_load): Make "args" const.
4193 * target-delegates.c: Rebuild.
4194 * target.c (target_load): Make "arg" const.
4195 (debug_to_load): Make "args" const.
4196 * target.h (struct target_ops) <to_load>: Make parameter const.
4197 (target_load): Update.
4199 2014-06-26 Tom Tromey <tromey@redhat.com>
4202 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4203 (dwarf2_physname, read_partial_die)
4204 (guess_partial_die_structure_name, fixup_partial_die)
4205 (guess_full_die_structure_name, anonymous_struct_prefix)
4206 (dwarf2_name): Use per-BFD obstack.
4208 2014-06-26 Yao Qi <yao@codesourcery.com>
4210 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4211 dummyframe and this_id into inner block below.
4213 2014-06-26 Yao Qi <yao@codesourcery.com>
4215 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4216 with "signal_pass[0]" in the initialization of signal_pass.
4218 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4220 * record-btrace.c (record_btrace_generating_corefile)
4221 (record_btrace_prepare_to_generate_core)
4222 (record_btrace_done_generating_core): New.
4223 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4224 (record_btrace_store_registers, record_btrace_prepare_to_store):
4225 Forward request when generating a core file.
4226 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4227 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4228 to_done_generating_core.
4230 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4232 * target.h (target_ops) <to_prepare_to_generate_core>
4233 <to_done_generating_core>: New.
4234 (target_prepare_to_generate_core, target_done_generating_core): New.
4235 * target.c (target_prepare_to_generate_core)
4236 (target_done_generating_core): New.
4237 * target-delegates.c: Regenerate.
4238 * gcore.c: (write_gcore_file): Rename to ...
4239 (write_gcore_file_1): ...this.
4240 (write_gcore_file): Call target_prepare_to_generate_core
4241 and target_done_generating_core.
4243 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4245 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4246 * gcore.c (write_gcore_file): Free memory returned from
4247 make_corefile_notes.
4248 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4249 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4251 2014-06-24 Yao Qi <yao@codesourcery.com>
4253 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4254 (arm_linux_init_abi): Set skip_trampoline_code with
4255 gdbarch_skip_trampoline_code instead of
4256 find_solib_trampoline_target.
4258 2014-06-24 Yao Qi <yao@codesourcery.com>
4260 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4261 arm_skip_bx_reg returns non-zero.
4263 2014-06-24 Yao Qi <yao@codesourcery.com>
4265 * arm-tdep.c (arm_skip_bx_reg): New function.
4266 (arm_skip_stub): Call arm_skip_bx_reg.
4268 2014-06-23 Don Breazeal <donb@codesourcery.com>
4270 * MAINTAINERS: Add myself as write-after-approval maintainer.
4272 2014-06-23 Pedro Alves <palves@redhat.com>
4274 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4275 DR_CONTROL before setting DR0..DR3.
4276 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4277 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4278 bits of DR_CONTROL related to the debug register slot being
4279 disabled. If all slots are vacant, clear local slowdown as well,
4280 and assert DR_CONTROL is 0.
4282 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4284 * python/lib/gdb/command/xmethods.py
4285 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4286 current progspace only if the string "progspace" matches LOCUS_RE.
4288 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4290 Fix --with-system-readline with readline-6.3 patch 5.
4291 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4292 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4295 2014-06-20 Tom Tromey <tromey@redhat.com>
4297 * dwarf2read.c (dw2_get_real_path): Use correct type in
4299 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4301 2014-06-20 Gary Benson <gbenson@redhat.com>
4303 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4304 * common/glibc_thread_db.h: Likewise.
4305 * common/i386-cpuid.h: Likewise.
4306 * common/i386-gcc-cpuid.h: Likewise.
4307 * common/linux-btrace.h: Likewise.
4308 * common/linux-osdata.h: Likewise.
4309 * common/linux-procfs.h: Likewise.
4310 * common/linux-ptrace.h: Likewise.
4311 * common/mips-linux-watch.h: Likewise.
4312 * common/linux-btrace.c: Moved to nat.
4313 * common/linux-osdata.c: Likewise.
4314 * common/linux-procfs.c: Likewise.
4315 * common/linux-ptrace.c: Likewise.
4316 * common/mips-linux-watch.c: Likewise.
4317 * nat/gdb_thread_db.h: Moved from common.
4318 * nat/glibc_thread_db.h: Likewise.
4319 * nat/i386-cpuid.h: Likewise.
4320 * nat/i386-gcc-cpuid.h: Likewise.
4321 * nat/linux-btrace.c: Likewise.
4322 * nat/linux-btrace.h: Likewise.
4323 * nat/linux-osdata.c: Likewise.
4324 * nat/linux-osdata.h: Likewise.
4325 * nat/linux-procfs.c: Likewise.
4326 * nat/linux-procfs.h: Likewise.
4327 * nat/linux-ptrace.c: Likewise.
4328 * nat/linux-ptrace.h: Likewise.
4329 * nat/mips-linux-watch.c: Likewise.
4330 * nat/mips-linux-watch.h: Likewise.
4331 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4332 (object file files): Reordered.
4333 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4334 of glibc_thread_db.h.
4336 2014-06-20 Gary Benson <gbenson@redhat.com>
4338 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4339 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4340 (i386_dr_low): Likewise.
4341 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4342 (i386_dr_low_set_addr): Likewise.
4343 (i386_dr_low_get_addr): Likewise.
4344 (i386_dr_low_can_set_control): Likewise.
4345 (i386_dr_low_set_control): Likewise.
4346 (i386_dr_low_get_control): Likewise.
4347 (i386_dr_low_get_status): Likewise.
4348 (i386_get_debug_register_length): Likewise.
4349 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4350 (i386_dr_low): Likewise.
4351 * nat/i386-dregs.c (i386-low.h): Remove include.
4352 (i386-nat.h): Likewise.
4353 (nat/i386-dregs.h): New include.
4354 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4355 (i386_dr_low_set_addr): Likewise.
4356 (i386_dr_low_get_addr): Likewise.
4357 (i386_dr_low_can_set_control): Likewise.
4358 (i386_dr_low_set_control): Likewise.
4359 (i386_dr_low_get_control): Likewise.
4360 (i386_dr_low_get_status): Likewise.
4361 (i386_get_debug_register_length): Likewise.
4362 (debug_hw_points): Likewise.
4364 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4366 * Makefile.in (SFILES): Add d-exp.y.
4367 (YYFILES): Add d-exp.c.
4368 (YYOBJ): Add d-exp.o.
4369 (local-maintainer-clean): Delete d-exp.c.
4370 * d-exp.y: New file.
4371 * d-lang.h (d_parse): New declaration.
4372 (d_error): New declaration.
4373 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4374 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4375 PREC_ORDER operators.
4376 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4378 2014-06-19 Yao Qi <yao@codesourcery.com>
4380 * gdbthread.h (any_running): Remove the declaration.
4381 * thread.c (any_running): Remove.
4383 2014-06-19 Yao Qi <yao@codesourcery.com>
4385 * gdbthread.h (struct thread_info) <state>: Change its type to
4386 'enum thread_state'. Update comments.
4388 2014-06-19 Pedro Alves <palves@redhat.com>
4390 * gdbthread.h (ALL_THREADS): Delete.
4391 (ALL_NON_EXITED_THREADS): New macro.
4392 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4393 instead of ALL_THREADS.
4394 * infrun.c (find_thread_needs_step_over)
4395 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4396 instead of ALL_THREADS.
4397 * record-btrace.c (record_btrace_open)
4398 (record_btrace_stop_recording, record_btrace_close)
4399 (record_btrace_is_replaying, record_btrace_resume)
4400 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4401 * remote.c (append_pending_thread_resumptions): Likewise.
4402 * thread.c (thread_apply_all_command): Likewise.
4404 2014-06-19 Gary Benson <gbenson@redhat.com>
4406 * i386-nat.c (i386_stopped_by_watchpoint):
4407 Use i386_dr_stopped_by_watchpoint.
4408 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4409 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4411 2014-06-19 Gary Benson <gbenson@redhat.com>
4413 * nat/i386-dregs.c: New file.
4414 * Makefile.in (i386-dregs.o): New rule.
4415 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4416 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4417 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4418 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4419 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4420 * config/i386/go32.mh (NATDEPFILES): Likewise.
4421 * config/i386/linux.mh (NATDEPFILES): Likewise.
4422 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4423 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4424 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4425 * i386-nat.h (debug_hw_points): New declaration.
4426 * i386-nat.c (breakpoint.h): Remove include.
4427 (command.h): Likewise.
4428 (target.h): Likewise.
4429 (gdb_assert.h): Likewise.
4430 (debug_hw_points): Made nonstatic.
4431 (debug_printf): Now in i386-dregs.c.
4432 (TARGET_HAS_DR_LEN_8): Likewise.
4433 (DR_CONTROL_SHIFT): Likewise.
4434 (DR_CONTROL_SIZE): Likewise.
4435 (DR_RW_EXECUTE): Likewise.
4436 (DR_RW_WRITE): Likewise.
4437 (DR_RW_READ): Likewise.
4438 (DR_RW_IORW): Likewise.
4439 (DR_LEN_1): Likewise.
4440 (DR_LEN_2): Likewise.
4441 (DR_LEN_4): Likewise.
4442 (DR_LEN_8): Likewise.
4443 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4444 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4445 (DR_ENABLE_SIZE): Likewise.
4446 (DR_LOCAL_SLOWDOWN): Likewise.
4447 (DR_GLOBAL_SLOWDOWN): Likewise.
4448 (DR_CONTROL_RESERVED): Likewise.
4449 (I386_DR_CONTROL_MASK): Likewise.
4450 (I386_DR_VACANT): Likewise.
4451 (I386_DR_LOCAL_ENABLE): Likewise.
4452 (I386_DR_GLOBAL_ENABLE): Likewise.
4453 (I386_DR_DISABLE): Likewise.
4454 (I386_DR_SET_RW_LEN): Likewise.
4455 (I386_DR_GET_RW_LEN): Likewise.
4456 (I386_DR_WATCH_HIT): Likewise.
4457 (i386_wp_op_t): Likewise.
4458 (i386_show_dr): Likewise.
4459 (i386_length_and_rw_bits): Likewise.
4460 (i386_insert_aligned_watchpoint): Likewise.
4461 (i386_remove_aligned_watchpoint): Likewise.
4462 (i386_handle_nonaligned_watchpoint): Likewise.
4463 (i386_update_inferior_debug_regs): Likewise.
4464 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4465 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4466 (i386_region_ok_for_watchpoint):
4467 Use i386_dr_region_ok_for_watchpoint.
4468 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4470 2014-06-19 Gary Benson <gbenson@redhat.com>
4472 * i386-nat.c (i386_insert_hw_breakpoint): Use
4473 i386_insert_watchpoint.
4474 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4476 2014-06-19 Gary Benson <gbenson@redhat.com>
4478 * i386-nat.c (i386_dr_show): Renamed to
4479 i386_show_dr and made static. All uses updated.
4480 (i386_dr_length_and_rw_bits): Renamed to
4481 i386_length_and_rw_bits and made static.
4483 (i386_dr_insert_aligned_watchpoint): Renamed to
4484 i386_insert_aligned_watchpoint and made static.
4486 (i386_dr_remove_aligned_watchpoint): Renamed to
4487 i386_remove_aligned_watchpoint and made static.
4489 (i386_dr_update_inferior_debug_regs): Renamed to
4490 i386_update_inferior_debug_regs and made static.
4492 * nat/i386-dregs.h (i386_dr_show): Removed.
4493 (i386_dr_length_and_rw_bits): Likewise.
4494 (i386_dr_insert_aligned_watchpoint): Likewise.
4495 (i386_dr_remove_aligned_watchpoint): Likewise.
4496 (i386_dr_update_inferior_debug_regs): Likewise.
4498 2014-06-19 Gary Benson <gbenson@redhat.com>
4500 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4501 * configure: Regenerate.
4502 * config.in: Likewise.
4503 * main.c (signal.h): New include.
4504 (setup_alternate_signal_stack): New function.
4505 (captured_main): Call the above.
4506 * cp-support.c (signal.h): New include.
4507 (catch_demangler_crashes): New flag.
4508 (SIGJMP_BUF): New define.
4509 (SIGSETJMP): Likewise.
4510 (SIGLONGJMP): Likewise.
4511 (gdb_demangle_jmp_buf): New static global.
4512 (gdb_demangle_attempt_core_dump): Likewise.
4513 (gdb_demangle_signal_handler): New function.
4514 (gdb_demangle): If catch_demangler_crashes is set, install the
4515 above signal handler before calling bfd_demangle, and restore
4516 the original signal handler afterwards. Display the offending
4517 symbol and call demangler_warning the first time a segmentation
4519 (_initialize_cp_support): New maint set/show command.
4521 2014-06-19 Gary Benson <gbenson@redhat.com>
4523 * utils.h (resource_limit_kind): New enum.
4524 (can_dump_core): New declaration.
4525 (warn_cant_dump_core): Likewise.
4526 (dump_core): Likewise.
4527 * utils.c (dump_core): Made nonstatic. Added new
4528 parameter "limit_kind".
4529 (can_dump_core): Made nonstatic. Moved printing code to...
4530 (warn_cant_dump_core): New function.
4531 (can_dump_core_warn): Likewise.
4532 (internal_vproblem): Replace calls to can_dump_core with
4533 calls to can_dump_core_warn. Supply new argument to each.
4535 2014-06-19 Gary Benson <gbenson@redhat.com>
4537 * utils.h (demangler_vwarning): New declaration.
4538 (demangler_warning): Likewise.
4539 * utils.c (struct internal_problem)
4540 <user_settable_should_quit>: New field.
4541 <user_settable_should_dump_core>: Likewise
4542 (internal_error_problem): Add values for above new fields.
4543 (internal_warning_problem): Likewise.
4544 (demangler_warning_problem): New static global.
4545 (demangler_vwarning): New function.
4546 (demangler_warning): Likewise.
4547 (add_internal_problem_command): Selectively add commands.
4548 (_initialize_utils): New internal problem command.
4549 * maint.c (maintenance_demangler_warning): New function.
4550 (_initialize_maint_cmds): New command.
4552 2014-06-18 Tom Tromey <tromey@redhat.com>
4554 * f-valprint.c (info_common_command_for_block): Update.
4555 * symtab.h (struct general_symbol_info) <common_block>: Now
4558 2014-06-18 Tom Tromey <tromey@redhat.com>
4560 * symtab.h (struct symtab) <blockvector>: Now const.
4561 * ada-lang.c (ada_add_global_exceptions): Update.
4562 * buildsym.c (augment_type_symtab): Update.
4563 * dwarf2read.c (dw2_lookup_symbol): Update.
4564 * jit.c (finalize_symtab): Update.
4565 * jv-lang.c (add_class_symtab_symbol): Update.
4566 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4568 * objfiles.c (objfile_relocate1): Update.
4569 * psymtab.c (lookup_symbol_aux_psymtabs)
4570 (maintenance_check_psymtabs): Update.
4571 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4573 * spu-tdep.c (spu_catch_start): Update.
4574 * symmisc.c (dump_symtab_1): Update.
4575 * symtab.c (lookup_global_symbol_from_objfile)
4576 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4577 (basic_lookup_transparent_type_quick)
4578 (basic_lookup_transparent_type, find_pc_sect_symtab)
4579 (find_pc_sect_line, search_symbols): Update.
4580 * block.c (find_block_in_blockvector): Make "bl" const.
4581 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4583 (blockvector_contains_pc): Make "bv" const.
4584 (block_for_pc_sect): Update.
4585 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4586 (blockvector_contains_pc): Update.
4587 * breakpoint.c (resolve_sal_pc): Update.
4588 * inline-frame.c (block_starting_point_at): Update.
4590 2014-06-18 Tom Tromey <tromey@redhat.com>
4592 * completer.c (complete_line): Make "line_buffer" const.
4593 * completer.h (complete_line): Update.
4595 2014-06-18 Tom Tromey <tromey@redhat.com>
4597 * symtab.c (add_macro_name): Remove unneeded cast.
4599 2014-06-18 Tom Tromey <tromey@redhat.com>
4601 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4602 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4604 2014-06-18 Tom Tromey <tromey@redhat.com>
4606 * probe.c (info_probes_for_ops): Make "arg" const.
4607 * probe.h (info_probes_for_ops): Update.
4609 2014-06-18 Tom Tromey <tromey@redhat.com>
4611 * varobj.c (varobj_create): Update.
4612 * valops.c (value_of_this): Update.
4613 * tracepoint.c (add_local_symbols, scope_info): Update.
4614 * symtab.h (struct general_symbol_info) <block>: Now const.
4615 * symtab.c (skip_prologue_sal)
4616 (default_make_symbol_completion_list_break_on)
4617 (skip_prologue_using_sal): Update.
4618 * stack.h (iterate_over_block_locals)
4619 (iterate_over_block_local_vars): Update.
4620 * stack.c (print_frame_args): Update.
4621 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4623 (get_selected_block): Make return type const.
4624 * python/py-frame.c (frapy_block): Update.
4625 * python/py-block.c (gdbpy_block_for_pc): Update.
4626 * p-exp.y (%union) <bval>: Now const.
4627 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4628 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4629 * m2-exp.y (%union) <bval>: Now const.
4630 * linespec.c (get_current_search_block): Make return type const.
4631 (create_sals_line_offset, find_label_symbols): Update.
4632 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4634 (block_starting_point_at): Make "block" const.
4635 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4636 (check_exception_resume): Update.
4637 * guile/scm-frame.c (gdbscm_frame_block): Update.
4638 * guile/scm-block.c (gdbscm_lookup_block): Update.
4639 * frame.h (get_frame_block): Update.
4640 (get_selected_block): Make return type const.
4641 * frame.c (frame_id_inner): Update.
4642 * f-valprint.c (info_common_command_for_block)
4643 (info_common_command): Update.
4644 * dwarf2loc.c (dwarf2_find_location_expression)
4645 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4646 (locexpr_describe_location_piece): Update.
4647 * c-exp.y (%union) <bval>: Now const.
4648 * breakpoint.c (resolve_sal_pc): Update.
4649 * blockframe.c (get_frame_block):Make return type const.
4650 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4651 (block_innermost_frame): Update.
4652 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4653 (block_for_pc, block_for_pc_sect): Update.
4654 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4656 (block_for_pc_sect, block_for_pc): Make return type const.
4657 * ax-gdb.c (gen_expr): Update.
4658 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4659 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4660 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4661 (ada_read_var_value): Update.
4662 * ada-exp.y (struct name_info) <block>: Now const.
4664 (block_lookup): Constify.
4666 2014-06-18 Gary Benson <gbenson@redhat.com>
4668 * nat/i386-dregs.h: New file.
4669 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4670 * i386-nat.h (i386-dregs.h): New include.
4671 (DR_FIRSTADDR): Now in i386-dregs.h.
4672 (DR_LASTADDR): Likewise.
4673 (DR_NADDR): Likewise.
4674 (DR_STATUS): Likewise.
4675 (DR_CONTROL): Likewise.
4676 (i386_debug_reg_state): Likewise.
4677 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4679 2014-06-18 Don Breazeal <donb@codesourcery.com>
4681 * breakpoint.c (set_longjmp_breakpoint): Call
4682 momentary_breakpoint_from_master with additional argument.
4683 (set_longjmp_breakpoint_for_call_dummy): Call
4684 momentary_breakpoint_from_master with additional argument.
4685 (set_std_terminate_breakpoint): Call
4686 momentary_breakpoint_from_master with additional argument.
4687 (momentary_breakpoint_from_master): Add argument to function
4688 definition and use it to initialize structure member flag.
4689 (clone_momentary_breakpoint): Call
4690 momentary_breakpoint_from_master with additional argument.
4691 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4692 member flags set in momentary_breakpoint_from_master.
4694 2014-06-18 Gary Benson <gbenson@redhat.com>
4696 * i386-nat.c (i386_show_dr): Renamed to
4697 i386_dr_show and made nonstatic. All uses updated.
4698 (i386_length_and_rw_bits): Renamed to
4699 i386_dr_length_and_rw_bits and made nonstatic.
4701 (i386_insert_aligned_watchpoint): Renamed to
4702 i386_dr_insert_aligned_watchpoint and made nonstatic.
4704 (i386_remove_aligned_watchpoint): Renamed to
4705 i386_dr_remove_aligned_watchpoint and made nonstatic.
4707 (i386_update_inferior_debug_regs): Renamed to
4708 i386_dr_update_inferior_debug_regs and made nonstatic.
4711 2014-06-18 Gary Benson <gbenson@redhat.com>
4713 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4714 (i386_dr_low_can_set_control): Likewise.
4715 (i386_dr_low_set_addr): Likewise.
4716 (i386_dr_low_set_control): Likewise.
4717 (i386_dr_low_get_addr): Likewise.
4718 (i386_dr_low_get_status): Likewise.
4719 (i386_dr_low_get_control): Likewise.
4720 (i386_insert_aligned_watchpoint): Use new macros.
4721 (i386_update_inferior_debug_regs): Likewise.
4722 (i386_stopped_data_address): Likewise.
4724 2014-06-18 Gary Benson <gbenson@redhat.com>
4726 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4727 New parameter. All uses updated.
4729 2014-06-18 Gary Benson <gbenson@redhat.com>
4731 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4734 2014-06-18 Gary Benson <gbenson@redhat.com>
4736 * i386-nat.c (debug_printf): New macro.
4737 (i386_get_debug_register_length): Likewise.
4738 (TARGET_HAS_DR_LEN_8): Use above macro.
4739 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4740 and printf_unfiltered. Use phex to format values.
4742 2014-06-18 Gary Benson <gbenson@redhat.com>
4744 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4747 2014-06-18 Gary Benson <gbenson@redhat.com>
4749 * i386-nat.c: Comment changes.
4751 2014-06-18 Gary Benson <gbenson@redhat.com>
4753 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4755 2014-06-18 Gary Benson <gbenson@redhat.com>
4757 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4758 (i386_insert_aligned_watchpoint): Likewise.
4759 (i386_remove_aligned_watchpoint): Likewise.
4760 (i386_handle_nonaligned_watchpoint): Likewise.
4762 2014-06-18 Gary Benson <gbenson@redhat.com>
4764 * i386-nat.c: Whitespace changes.
4766 2014-06-17 Samuel Bronson <naesten@gmail.com>
4768 * MAINTAINERS: Update Roland McGrath's email address.
4769 Thanks to Sergio Durigan Junior for pointing out that he left
4770 Red Hat a while ago, and giving me a current address.
4772 2014-06-17 Tom Tromey <tromey@redhat.com>
4774 * utils.h (savestring): Remove declaration.
4776 2014-06-17 Tom Tromey <tromey@redhat.com>
4778 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4780 2014-06-16 Keith Seitz <keiths@redhat.com>
4783 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4784 to update the varobj if inferior_ptid is null_ptid.
4786 2014-06-16 Tom Tromey <tromey@redhat.com>
4788 * target.h (struct target_ops) <to_info_proc>: Make parameter
4790 (target_info_proc): Update.
4791 * target.c (target_info_proc): Make "args" const.
4792 * procfs.c (procfs_info_proc): Update.
4793 * linux-tdep.c (linux_info_proc): Update.
4794 (linux_core_info_proc_mappings): Make "args" const.
4795 (linux_core_info_proc): Update.
4796 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4797 * gdbarch.c: Rebuild.
4798 * gdbarch.h: Rebuild.
4799 * corelow.c (core_info_proc): Update.
4801 2014-06-16 Tom Tromey <tromey@redhat.com>
4803 * target.h (struct target_ops) <to_disconnect>: Make parameter
4805 (target_disconnect): Update.
4806 * target.c (target_disconnect): Make "args" const.
4807 * target-delegates.c: Rebuild.
4808 * remote.c (remote_disconnect): Update.
4809 * record.h (record_disconnect): Update.
4810 * record.c (record_disconnect): Update.
4811 * inf-child.c (inf_child_disconnect): Update.
4813 2014-06-16 Tom Tromey <tromey@redhat.com>
4815 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4816 * target.c (debug_to_rcmd, default_rcmd): Update.
4817 * target-delegates.c: Rebuild.
4818 * remote.c (remote_rcmd): Update.
4819 * monitor.c (monitor_rcmd): Update.
4821 2014-06-16 Pedro Alves <palves@redhat.com>
4823 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4824 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4825 have OBJF_SHARED set.
4826 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4827 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4828 instead of OBJF_USERLOADED.
4829 * objfiles.h (OBJF_SHARED): Update comment.
4830 (userloaded_objfile_contains_address_p): Rename to ...
4831 (shared_objfile_contains_address_p): ... this, and update
4833 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4835 (remove_symbol_file_command): Skip objfiles that don't have
4838 2014-06-16 Tom Tromey <tromey@redhat.com>
4840 * minsyms.h (prim_record_minimal_symbol)
4841 (prim_record_minimal_symbol_and_info): Update comments.
4843 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4845 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4846 or --without-guile, according to how GDB was built.
4848 2014-06-13 Tom Tromey <tromey@redhat.com>
4850 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4852 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4854 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4856 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4857 help_list.Pass all_commands, not -1, to help_list.
4858 * cli/cli-dump.c (dump_command, append_command)
4859 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4860 (binary_dump_command, binary_append_command): Pass all_commands,
4861 not -1, to help_list.
4862 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4864 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4866 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4868 * top.c (set_history): Pass all_commands, not -1, to help_list.
4869 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4870 all_commands, not -1, to help_list.
4871 * symfile.c (overlay_command): Pass all_commands, not -1, to
4873 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4875 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4877 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4879 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4880 not -1, to help_list.
4881 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4882 not -1, to help_list.
4883 * maint.c (maintenance_command, maintenance_info_command)
4884 (maintenance_print_command, maintenance_set_cmd): Pass
4885 all_commands, not -1, to help_list.
4886 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4888 * language.c (set_check): Pass all_commands, not -1, to help_list.
4889 * infcmd.c (unset_command): Pass all_commands, not -1, to
4891 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4893 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4895 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4897 * breakpoint.c (save_command): Pass all_commands, not -1, to
4899 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4900 all_commands, not -1, to help_list.
4902 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
4904 * regcache.c (struct register_to_invalidate): New structure.
4905 (do_register_invalidate, make_cleanup_regcache_invalidate): New
4907 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4909 2014-06-12 Yao Qi <yao@codesourcery.com>
4911 * varobj.c (varobj_get_num_children): Call
4912 varobj_is_dynamic_p.
4913 (varobj_list_children): Likewise.
4914 (varobj_update): Likewise. Update comments.
4916 2014-06-12 Yao Qi <yao@codesourcery.com>
4918 * varobj.c (varobj_pretty_printed_p): Rename to ...
4919 (varobj_is_dynamic_p): ... this. New function.
4920 * varobj.h (varobj_pretty_printed_p): Remove declaration.
4921 (varobj_is_dynamic_p): Declare.
4922 * mi/mi-cmd-var.c (print_varobj): All callers updated.
4923 (mi_print_value_p, varobj_update_one): Likewise.
4925 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4926 Yao Qi <yao@codesourcery.com>
4928 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4929 (varobj_get_iterator): Wrap up code for pretty-printer by
4930 "#if HAVE_PYTHON" and "#endif".
4931 (update_dynamic_varobj_children): Likewise.
4933 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4934 Yao Qi <yao@codesourcery.com>
4936 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4937 gdb_python_initialized is false. Move some code from varobj.c.
4938 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4939 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4940 (struct varobj_item): Moved to varobj-iter.h".
4941 (varobj_clear_saved_item): New function.
4942 (update_dynamic_varobj_children): Move python-related code to
4944 (free_variable): Call varobj_clear_saved_item and
4947 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4948 Yao Qi <yao@codesourcery.com>
4950 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4951 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4952 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4953 (py-varobj.o): New rule.
4954 * python/py-varobj.c: New file.
4955 * python/python-internal.h (py_varobj_get_iterator): Declare.
4956 * varobj-iter.h: New file.
4957 * varobj.c: Include "varobj-iter.h"
4958 (struct varobj) <child_iter>: Change its type from "PyObject *"
4959 to "struct varobj_iter *".
4960 <saved_item>: Likewise.
4961 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4962 [HAVE_PYTHON] (varobj_get_iterator): New function.
4963 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4964 python-specific code to python/py-varobj.c.
4965 (install_visualizer): Call varobj_iter_delete instead of
4967 * varobj.h (varobj_ensure_python_env): Declare.
4969 2014-06-12 Yao Qi <yao@codesourcery.com>
4971 * varobj.c (struct varobj_item): New structure.
4972 (create_child_with_value): Update declaration.
4973 (varobj_add_child): Replace arguments 'name' and 'value' with
4974 'item'. All callers updated.
4975 (install_dynamic_child): Likewise.
4976 (update_dynamic_varobj_children): Likewise.
4977 (varobj_add_child): Likewise.
4978 (create_child_with_value): Likewise.
4980 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4982 * NEWS: Create a new section for the next release branch.
4983 Rename the section of the current branch, now that it has
4986 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4988 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4989 * version.in: Bump version to 7.8.50.DATE-cvs.
4991 2014-06-11 Pedro Alves <palves@redhat.com>
4994 * ser-mingw.c (net_windows_socket_check_pending): New function.
4995 (net_windows_select_thread): Ignore spurious wakeups. Use
4996 net_windows_socket_check_pending.
4997 (net_windows_wait_handle): Check for pending events with
4998 ioctlsocket, through net_windows_socket_check_pending, instead of
4999 checking the socket's event.
5001 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5003 * python/python-internal.h (gdb_PyObject_GetAttrString)
5004 (gdb_PyObject_HasAttrString): New inline function definitions.
5005 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5006 char * of the second argument to PyObject_GetAttrString.
5008 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5010 * serial.c (serial_write): Fix index of character to be printed
5011 in call to serial_logchar when serial debug traces are enabled.
5013 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5015 * gdbtypes (resolve_dynamic_range): Add function description.
5017 2014-06-09 Pedro Alves <palves@redhat.com>
5019 * linux-nat.c (linux_child_follow_fork): Initialize status with
5020 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5021 inner block. Only pass the signal to PTRACE_DETACH if in pass
5024 2014-06-09 Gary Benson <gbenson@redhat.com>
5026 * common/signals.c (gdb_signal_from_host): Reorder to separate
5027 the always-available ANSI-standard signals from the signals that
5029 (do_gdb_signal_to_host): Likewise.
5030 * proc-events.c (signal_table): Likewise.
5032 2014-06-08 Hui Zhu <hui@codesourcery.com>
5034 * common/linux-ptrace.c (linux_disable_event_reporting): New
5036 * common/linux-ptrace.h (linux_disable_event_reporting): New
5038 * linux-nat.c (linux_child_follow_fork): Do a single step before
5041 2014-06-07 Keith Seitz <keiths@redhat.com>
5045 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5046 from symbol_matches_domain in symtab.c. All local callers
5047 of symbol_matches_domain updated.
5048 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5049 search STRUCT_DOMAIN.
5050 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5051 independently. standard_lookup will do that automatically.
5052 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5053 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5054 (cp_lookup_symbol_in_namespace): Likewise.
5055 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5056 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5057 may return a STRUCT_DOMAIN match.
5058 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5059 * cp-support.c: Include language.h.
5060 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5062 * psymtab.c (match_partial_symbol): Compare the requested
5063 domain with the symbol's domain directly.
5064 (lookup_partial_symbol): Likewise.
5065 * symtab.c (lookup_symbol_in_language): Explain when/why
5066 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5067 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5068 appropriate languages.
5069 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5070 and moved to ada-lang.c
5071 (lookup_block_symbol): Explain that this function only returns
5072 symbol matching the requested DOMAIN.
5073 Compare the requested domain with the symbol's domain directly.
5074 (iterate_over_symbols): Compare the requested domain with the
5075 symbol's domain directly.
5076 * symtab.h (symbol_matches_domain): Remove.
5078 2014-06-06 Doug Evans <xdje42@gmail.com>
5080 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5081 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5082 (gdbscm_guile_version_is_at_least): Declare.
5083 (gdbscm_scm_string_to_int): Declare.
5084 * guile/guile.c (gdbscm_guile_major_version): New global.
5085 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5086 (guile_datadir): New static global.
5087 (gdbscm_guile_data_directory): New function.
5088 (initialize_scheme_side): Update.
5089 (misc_guile_functions): Add guile-data-directory.
5090 (initialize_gdb_module): Fetch guile version number.
5091 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5092 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5093 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5094 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5096 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5097 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5098 * guile/scm-value.c (gdbscm_value_to_string): Only call
5099 scm_port_conversion_strategy if Guile version >= 2.0.6.
5101 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5103 * main.c (print_gdb_help): Add -q and --silent.
5105 2014-06-06 Gary Benson <gbenson@redhat.com>
5107 * common/signals.c: Remove preprocessor conditionals for
5108 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5109 SIGSEGV and SIGTERM.
5110 * proc-events.c: Likewise.
5112 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5114 * symfile.c (symfile_free_objfile): Remove restriction to
5116 * symfile-mem.c (symbol_file_add_from_memory): Call
5117 add_target_sections_of_objfile.
5119 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5121 * guile/scm-value.c (gdbscm_history_append_x): Use
5122 'vlscm_get_value_smob_arg_unsafe' instead of
5123 'vlscm_scm_to_value'.
5125 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5128 * utils.c (printchar): Don't escape at all if quoter is NUL.
5129 Update function documentation to clarify effect of parameter
5131 * remote.c (escape_buffer): Pass '\\' as the quoter to
5132 fputstrn_unfiltered.
5133 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5134 generate the output.
5135 (mi_solib_unloaded): Same.
5137 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5139 * development.sh: Delete.
5140 * Makefile.in (config.status): Adjust dependency on development.sh.
5141 * configure.ac: Adjust development.sh source call.
5142 * configure: Regenerate.
5144 2014-06-04 Doug Evans <xdje42@gmail.com>
5146 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5147 is_scheme_bkpt, spec.
5148 (bpscm_make_breakpoint_smob): Initialize new members.
5149 (gdbscm_create_breakpoint_x): Split into two ...
5150 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5151 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5152 (scheme_function breakpoint_functions): Update.
5153 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5154 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5155 register-breakpoint!.
5157 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5160 * mem-break.c (z_type_supported): Return zero if
5161 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5163 2014-06-04 Tom Tromey <tromey@redhat.com>
5165 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5166 value_from_contents_and_address_unresolved.
5167 (ada_template_to_fixed_record_type_1): Likewise.
5168 (ada_which_variant_applies): Likewise.
5169 * value.h (value_from_contents_and_address_unresolved): Declare.
5170 * value.c (value_from_contents_and_address_unresolved): New
5172 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5173 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5174 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5176 2014-06-04 Tom Tromey <tromey@redhat.com>
5178 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5180 2014-06-04 Tom Tromey <tromey@redhat.com>
5182 * procfs.c (procfs_attach): Make "args" const.
5183 * windows-nat.c (windows_attach): Make "args" const.
5184 * nto-procfs.c (procfs_attach): Make "args" const.
5185 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5186 * go32-nat.c (go32_attach): Make "args" const.
5187 * gnu-nat.c (gnu_attach): Make "args" const.
5188 * darwin-nat.c (darwin_attach): Make "args" const.
5189 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5190 * linux-nat.c (linux_nat_attach): Make "args" const.
5191 * remote.c (extended_remote_attach_1, extended_remote_attach):
5193 * target.h (struct target_ops) <to_attach>: Make "args" const.
5194 (find_default_attach): Likewise.
5195 * utils.c (parse_pid_to_attach): Make "args" const.
5196 * utils.h (parse_pid_to_attach): Update.
5198 2014-06-04 Tom Tromey <tromey@redhat.com>
5200 * target-delegates.c: Rebuild.
5201 * target.c (default_thread_address_space): New function.
5202 (target_thread_address_space): Simplify.
5203 * target.h (struct target_ops) <to_thread_address_space>: Add
5204 TARGET_DEFAULT_FUNC.
5206 2014-06-04 Doug Evans <xdje42@gmail.com>
5208 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5210 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5212 * record-btrace.c: Include event-loop.h and inf-loop.h.
5213 (record_btrace_resume_exec_dir)
5214 (record_btrace_async_inferior_event_handler)
5215 (record_btrace_handle_async_inferior_event): New.
5216 (record_btrace_open): Create async event handler.
5217 (record_btrace_close): Delete async event handler.
5218 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5219 Mark async event handler.
5220 (record_btrace_execution_direction): New.
5221 (init_record_btrace_ops): Initialize to_execution_direction.
5223 2014-06-03 Doug Evans <xdje42@gmail.com>
5225 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5226 (gdbscm_make_parameter): Ditto.
5228 2014-06-03 Doug Evans <dje@google.com>
5230 * exec.c (exec_close_1): Call clear_section_table instead of
5231 resize_section_table.
5232 (clear_section_table): New function.
5233 (resize_section_table): Make static. Rename arg num_added to
5235 * exec.h (clear_section_table): Declare.
5236 (resize_section_table): Delete.
5237 * progspace.c (release_program_space): Call clear_section_table
5238 instead of resize_section_table.
5240 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5242 * NEWS (Python Scripting): Add entry about the new xmethods
5245 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5247 * python/py-xmethods.c: New file.
5248 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5249 (objfpy_dealloc): XDECREF on the new xmethods field.
5250 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5252 (objfpy_get_xmethods): New function.
5253 (objfile_getset): New entry 'xmethods'.
5254 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5255 (pspy_dealloc): XDECREF on the new xmethods field.
5256 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5258 (pspy_get_xmethods): New function.
5259 (pspace_getset): New entry 'xmethods'.
5260 * python/python-internal.h: Add declarations for new functions.
5261 * python/python.c (_initialize_python): Invoke
5262 gdbpy_initialize_xmethods.
5263 * python/lib/gdb/__init__.py (xmethods): New
5265 * python/lib/gdb/xmethod.py: New file.
5266 * python/lib/gdb/command/xmethods.py: New file.
5268 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5270 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5271 best match method returned by find_overload_match is an xmethod.
5272 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5273 the best matching operator returned by find_overload_match is an
5275 * valops.c: #include "extension.h".
5276 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5277 Return void. The list of matching source methods is returned in
5278 "fn_list" and a vector of matching debug method workers is
5279 returned in "xm_worker_vec". Update all callers.
5280 (value_find_oload_method_list): Likewise.
5281 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5282 non-NULL, then the index of the best matching method in this
5283 vector is returned. Update all callers.
5284 (find_overload_match): Include xmethods while performing overload
5287 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5289 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5290 * extension-priv.h (struct extension_language_ops): Add the
5292 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5293 get_matching_xmethod_workers, get_xmethod_argtypes,
5294 invoke_xmethod, free_xmethod_worker,
5295 free_xmethod_worker_vec): New functions.
5296 * extension.h: #include "common/vec.h".
5297 New function declarations.
5298 (struct xmethod_worker): New struct.
5299 (VEC (xmethod_worker_ptr)): New vector type.
5300 (xmethod_worker_ptr): New typedef.
5301 (xmethod_worker_vec): Likewise.
5302 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5304 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5305 (struct builtin_type): New field "xmethod".
5306 * valarith.c (value_ptradd): Assert that the value argument is not
5308 * valops.c (value_must_coerce_to_target): Return 0 for
5309 lval_xcallable values.
5310 * value.c (struct value): New field XM_WORKER in the field
5312 (value_address, value_raw_address): Return 0 for lval_xcallable
5314 (set_value_address): Assert that the value is not an
5316 (value_free): Free the associated xmethod worker when freeing
5317 lval_xcallable values.
5318 (set_value_component_location): Assert that the WHOLE value is not
5320 (value_of_xmethod, call_xmethod): New functions.
5321 * value.h: Declare "struct xmethod_worker".
5322 Declare new functions value_of_xmethod, call_xmethod.
5324 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5325 Pedro Alves <palves@redhat.com>
5327 PR breakpoints/17000
5328 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5329 New function, extracted from software_breakpoint_inserted_here_p.
5330 (software_breakpoint_inserted_here_p): Replace factored out code
5331 by call to find_non_raw_software_breakpoint_inserted_here.
5332 (bp_target_info_copy_insertion_state): New function.
5333 (bkpt_insert_location): Handle the case of a single-step
5334 breakpoint already inserted at the same address.
5335 (bkpt_remove_location): Handle the case of a single-step
5336 breakpoint still inserted at the same address.
5337 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5338 breakpoint already inserted at the same address.
5339 (deprecated_remove_raw_breakpoint): Handle the case of a
5340 non-raw breakpoint still inserted at the same address.
5341 (find_single_step_breakpoint): New function, extracted from
5342 single_step_breakpoint_inserted_here_p.
5343 (find_single_step_breakpoint): New function,
5344 factored out from single_step_breakpoint_inserted_here_p.
5345 (single_step_breakpoint_inserted_here_p): Reimplement.
5347 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5349 Pushed by Joel Brobecker <brobecker@adacore.com>
5350 * source.c (show_substitute_path_command): Fix display of matching
5353 2014-06-03 Gary Benson <gbenson@redhat.com>
5355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5357 2014-06-02 Doug Evans <xdje42@gmail.com>
5359 Add parameter support for Guile.
5360 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5361 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5362 (scm-param.o): New rule.
5363 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5364 (gdbscm_misc_error): Declare.
5365 (gdbscm_canonicalize_command_name): Declare.
5366 (gdbscm_scm_to_host_string): Declare.
5367 (gdbscm_scm_from_host_string): Declare.
5368 (gdbscm_initialize_parameters): Declare.
5369 * guile/guile.c (initialize_gdb_module): Call
5370 gdbscm_initialize_parameters.
5371 * guile/lib/gdb.scm: Export parameter symbols.
5372 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5373 cmdscm_canonicalize_name and made public. All callers updated.
5374 * guile/scm-exception.c (gdbscm_misc_error): New function.
5375 * guile/scm-param.c: New file.
5376 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5377 (gdbscm_scm_to_host_string): New function.
5378 (gdbscm_scm_from_host_string): New function.
5379 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5381 2014-06-02 Doug Evans <xdje42@gmail.com>
5383 Add command support for Guile.
5384 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5385 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5386 (scm-cmd.o): New rule.
5387 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5388 (gdbscm_user_error_p): Declare.
5389 (gdbscm_parse_command_name): Declare.
5390 (gdbscm_valid_command_class_p): Declare.
5391 (gdbscm_initialize_commands): Declare.
5392 * guile/guile.c (initialize_gdb_module): Call
5393 gdbscm_initialize_commands.
5394 * guile/lib/gdb.scm: Export command symbols.
5395 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5396 (throw-user-error): New function.
5397 * guile/scm-cmd.c: New file.
5398 * guile/scm-exception.c (user_error_symbol): New static global.
5399 (gdbscm_user_error_p): New function.
5400 (gdbscm_initialize_exceptions): Set user_error_symbol.
5401 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5403 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5405 * top.c (command_loop): Handle comments here...
5406 (command_line_input): ... not here.
5408 2014-06-02 Doug Evans <xdje42@gmail.com>
5410 Add progspace support for Guile.
5411 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5412 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5413 (scm-progspace.o): New rule.
5414 * guile/guile-internal.h (pspace_smob): New typedef.
5415 (psscm_pspace_smob_pretty_printers): Declare.
5416 (psscm_pspace_smob_from_pspace): Declare.
5417 (psscm_scm_from_pspace): Declare.
5418 * guile/guile.c (initialize_gdb_module): Call
5419 gdbscm_initialize_pspaces.
5420 * guile/lib/gdb.scm: Export progspace symbols.
5421 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5423 (append-pretty-printer!): Ditto.
5424 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5426 * guile/scm-progspace.c: New file.
5428 2014-06-03 Alan Modra <amodra@gmail.com>
5430 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5431 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5433 2014-06-02 Doug Evans <dje@google.com>
5435 Add support for skeletonless type units.
5436 * dwarf2read.c (struct dwarf2_per_objfile): New member
5437 n_allocated_type_units.
5438 (struct dwarf2_per_objfile) <tu_stats>: New member
5439 nr_all_type_units_reallocs.
5440 (create_signatured_type_table_from_index): Initialize
5441 n_allocated_type_units
5442 (create_all_type_units): Ditto.
5443 (add_type_unit): Move up in file. New arg slot.
5444 All callers updated. Increase space for all_type_units more
5446 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5447 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5448 (lookup_dwp_signatured_type): Ditto.
5449 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5450 All callers updated.
5451 (build_type_psymtabs_1): Leave type_unit_groups as
5452 NULL if no TUs present.
5453 (print_tu_stats): New function.
5454 (process_skeletonless_type_unit): New function.
5455 (process_dwo_file_for_skeletonless_type_units): New
5457 (process_skeletonless_type_units): New function.
5458 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5459 Call print tu_stats if debugging enabled.
5461 2014-06-02 Pedro Alves <palves@redhat.com>
5463 * breakpoint.c (build_target_command_list): Don't build a command
5464 list if we have any duplicate location that isn't a dprintf.
5466 2014-06-02 Pedro Alves <palves@redhat.com>
5468 * breakpoint.c (dprintf_breakpoint_hit): New function.
5469 (initialize_breakpoint_ops): Install it as dprintf's
5470 breakpoint_hit method.
5472 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5474 * source.c (substitute_path_rule_matches): Simplify using
5475 filename_ncmp instead of FILENAME_CMP.
5477 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5479 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5481 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5483 * configure.ac: When Guile is available, check for the
5484 availability of 'scm_new_smob'.
5485 * configure, config.h.in: Regenerate.
5486 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5489 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5491 * frame.c (struct frame_info): Add stop_string field.
5492 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5493 (get_prev_frame_always): Old content moved into
5494 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5495 TRY_CATCH, handle MEMORY_ERROR exceptions.
5496 (frame_stop_reason_string): New function definition.
5497 * frame.h (unwind_stop_reason_to_string): Extend comment to
5498 mention frame_stop_reason_string.
5499 (frame_stop_reason_string): New function declaration.
5500 * stack.c (frame_info): Switch to frame_stop_reason_string.
5501 (backtrace_command_1): Switch to frame_stop_reason_string.
5502 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5503 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5504 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5506 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5508 * frame.c (frame_stop_reason_string): Rename to ...
5509 (unwind_stop_reason_to_string): this.
5510 * frame.h (frame_stop_reason_string): Rename to ...
5511 (unwind_stop_reason_to_string): this.
5512 * stack.c (frame_info): Update call to frame_stop_reason_string.
5513 (backtrace_command_1): Likewise.
5514 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5515 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5517 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5519 * frame.c (remove_prev_frame): New function.
5520 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5523 2014-05-29 Pedro Alves <palves@redhat.com>
5525 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5526 and make it const. When a single-step decays to a continue,
5527 clear 'step', not 'hw_step'. Pass whether the caller wanted
5528 to step to user_visible_resume_ptid, not what we ask the
5531 2014-05-29 Pedro Alves <palves@redhat.com>
5533 * infrun.c (process_event_stop_test, handle_step_into_function)
5534 (handle_step_into_function_backward): Adjust.
5535 Don't set the even thread's stop_step and call stop_waiting before
5536 calling end_stepping_range. Instead do that ...
5537 (end_stepping_range): ... here. Take an ecs pointer parameter.
5539 2014-05-29 Pedro Alves <palves@redhat.com>
5541 * infrun.c (stop_stepping): Rename to ...
5542 (stop_waiting): ... this.
5543 (proceed): Update comment.
5544 (process_event_stop_test, handle_inferior_event)
5545 (handle_signal_stop, handle_step_into_function)
5546 (handle_step_into_function_backward): Update.
5548 2014-05-29 Pedro Alves <palves@redhat.com>
5550 * infcall.c (run_inferior_call): Don't check whether the current
5551 thread is running after the proceed call.
5553 2014-05-29 Pedro Alves <palves@redhat.com>
5554 Tom Tromey <tromey@redhat.com>
5556 * NEWS: Mention "maint set target-async", "set mi-async", and that
5557 background execution commands are now always available.
5558 * target.h (target_async_permitted): Update comment.
5559 * target.c (target_async_permitted, target_async_permitted_1):
5561 (set_target_async_command): Rename to ...
5562 (maint_set_target_async_command): ... this.
5563 (show_target_async_command): Rename to ...
5564 (maint_show_target_async_command): ... this.
5565 (_initialize_target): Adjust.
5566 * infcmd.c (prepare_execution_command): Make extern.
5567 * inferior.h (prepare_execution_command): Declare.
5568 * infrun.c (set_observer_mode): Leave target async alone.
5569 * mi/mi-interp.c (mi_interpreter_init): Install
5570 mi_on_sync_execution_done as sync_execution_done observer.
5571 (mi_on_sync_execution_done): New function.
5572 (mi_execute_command_input_handler): Don't print the prompt if we
5573 just started a synchronous command with an async target.
5574 (mi_on_resume): Check sync_execution before printing prompt.
5575 * mi/mi-main.h (mi_async_p): Declare.
5576 * mi/mi-main.c: Include gdbcmd.h.
5577 (mi_async_p): New function.
5578 (mi_async, mi_async_1): New globals.
5579 (set_mi_async_command, show_mi_async_command, mi_async): New
5581 (exec_continue): Call prepare_execution_command.
5582 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5583 (mi_execute_async_cli_command): Use mi_async_p.
5584 (_initialize_mi_main): Install "set mi-async". Make
5585 "target-async" a deprecated alias.
5587 2014-05-29 Pedro Alves <palves@redhat.com>
5589 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5590 (_initialize_cli_interp): Adjust.
5591 * event-loop.c: Include "observer.h".
5592 (start_event_loop): Notify 'command_error' observers instead of
5593 calling display_gdb_prompt. Remove FIXME comment.
5594 * event-top.c (display_gdb_prompt): Remove call into the
5596 * inf-loop.c: Include "observer.h".
5597 (inferior_event_handler): Notify 'command_error' observers instead
5598 of calling display_gdb_prompt.
5599 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5600 observers instead of calling display_gdb_prompt.
5601 * interps.c (interp_set): Don't call display_gdb_prompt.
5602 (current_interp_display_prompt_p): Delete.
5603 * interps.h (interp_prompt_p): Delete declaration.
5604 (interp_prompt_p_ftype): Delete.
5605 (struct interp_procs) <prompt_proc_p>: Delete field.
5606 (current_interp_display_prompt_p): Delete declaration.
5607 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5608 (_initialize_mi_interp): Adjust.
5609 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5610 'command_error' observers.
5611 (tui_on_sync_execution_done, tui_on_command_error): New
5613 (tui_display_prompt_p): Delete.
5614 (_initialize_tui_interp): Adjust.
5616 2014-05-29 Pedro Alves <palves@redhat.com>
5619 * cli/cli-interp.c: Include infrun.h and observer.h.
5620 (cli_uiout, cli_interp): New globals.
5621 (cli_on_signal_received, cli_on_end_stepping_range)
5622 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5624 (cli_interpreter_init): Install them as 'end_stepping_range',
5625 'signal_received' 'signal_exited', 'exited' and 'no_history'
5627 (_initialize_cli_interp): Remove cli_interp local.
5628 * infrun.c (handle_inferior_event): Call the several stop reason
5629 observers instead of printing the stop reason directly.
5630 (end_stepping_range): New function.
5631 (print_end_stepping_range_reason, print_signal_exited_reason)
5632 (print_exited_reason, print_signal_received_reason)
5633 (print_no_history_reason): Make static, and add an uiout
5634 parameter. Print to that instead of to CURRENT_UIOUT.
5635 * infrun.h (print_end_stepping_range_reason)
5636 (print_signal_exited_reason, print_exited_reason)
5637 (print_signal_received_reason print_no_history_reason): New
5639 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5641 <cli_uiout>: New field.
5642 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5643 uiout for CLI output. Install 'signal_received',
5644 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5646 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5647 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5648 (mi_on_no_history): New functions.
5649 (ui_out_free_cleanup): Delete function.
5650 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5651 instead use the one already stored in the MI interpreter data.
5652 (mi_ui_out): Adjust.
5653 * tui/tui-interp.c: Include infrun.h and observer.h.
5654 (tui_interp): New global.
5655 (tui_on_signal_received, tui_on_end_stepping_range)
5656 (tui_on_signal_exited, tui_on_exited)
5657 (tui_on_no_history): New functions.
5658 (tui_init): Install them as 'end_stepping_range',
5659 'signal_received' 'signal_exited', 'exited' and 'no_history'
5661 (_initialize_tui_interp): Delete tui_interp local.
5663 2014-05-29 Pedro Alves <palves@redhat.com>
5666 * linux-nat.c (linux_nat_resume_callback): Rename the second
5667 parameter to 'except'. Skip LP if it points to EXCEPT.
5668 (linux_nat_resume): Don't mark the event lwp as not stopped
5669 before resuming sibling lwps. Instead ask
5670 linux_nat_resume_callback to skip the event lwp. Mark it as not
5671 stopped after actually resuming it.
5672 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5674 (wait_lwp): Mark the lwp as stopped here.
5675 (stop_wait_callback): Mark the lwp as not stopped right after
5676 resuming it. Don't mark lwps as stopped here.
5677 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5678 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5680 2014-05-29 Pedro Alves <palves@redhat.com>
5683 * infrun.c (resume): Determine how much to resume depending on
5684 whether the caller wanted a step, not whether we can hardware step
5685 the target. Mark all threads that we intend to run as running,
5686 unless we're calling an inferior function.
5687 (normal_stop): If the thread is running an infcall, don't finish
5689 * target.c (target_resume): Don't mark threads as running here.
5691 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5693 * serial.c (_initialize_serial): Remove support for
5694 the "set remotebaud" and "show remotebaud" commands.
5695 * NEWS: Add entry documenting the removal of that command.
5697 2014-05-28 Yao Qi <yao@codesourcery.com>
5699 * charset.c: Fix typo in comments.
5701 2014-05-27 Gary Benson <gbenson@redhat.com>
5703 * utils.c (internal_vproblem): Prompt for a bug report.
5705 2014-05-26 Andy Wingo <wingo@igalia.com>
5707 * guile/scm-arch.c (arscm_mark_arch_smob):
5708 * guile/scm-block.c (bkscm_mark_block_smob)
5709 (bkscm_mark_block_syms_progress_smob):
5710 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5711 * guile/scm-exception.c (exscm_mark_exception_smob):
5712 * guile/scm-frame.c (frscm_mark_frame_smob):
5713 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5714 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5715 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5716 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5717 (ppscm_mark_pretty_printer_worker_smob):
5718 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5719 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5720 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5721 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5723 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5726 2014-05-26 Andy Wingo <wingo@igalia.com>
5727 Doug Evans <xdje42@gmail.com>
5729 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5730 empty_base_class. All uses updated.
5731 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5732 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5734 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5735 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5736 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5737 (gdbscm_gsmob_has_property_p, add_property_name)
5738 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5739 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5740 (gdb-object-has-property?, gdb-object-properties): Remove.
5741 (gdb-object-kind): Renamed from gsmob-kind.
5743 2014-05-26 Andy Wingo <wingo@igalia.com>
5745 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5746 * configure: Regenerate.
5748 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5750 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5752 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5754 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5755 (replay_memory_access_read_only, replay_memory_access_read_write)
5756 (replay_memory_access_types, replay_memory_access)
5757 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5758 (cmd_set_record_btrace, cmd_show_record_btrace)
5759 (cmd_show_replay_memory_access): New.
5760 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5761 (record_btrace_remove_breakpoint): Replace
5762 record_btrace_allow_memory_access with replay_memory_access.
5763 (_initialize_record_btrace): Add commands.
5764 * NEWS: Announce it.
5766 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5768 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5770 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5772 * MAINTAINERS (Write After Approval): Move self back from
5775 2014-05-22 Pedro Alves <palves@redhat.com>
5777 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5778 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5779 (disable_randomization, enum exec_direction_kind)
5780 (execution_direction, stop_registers, start_remote)
5781 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5782 (wait_for_inferior, normal_stop, get_last_target_status)
5783 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5784 (insert_step_resume_breakpoint_at_sal)
5785 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5786 (set_step_info, print_stop_event, signal_stop_state)
5787 (signal_print_state, signal_pass_state, signal_stop_update)
5788 (signal_print_update, signal_pass_update)
5789 (update_signals_program_target, clear_exit_convenience_vars)
5790 (displaced_step_dump_bytes, update_observer_mode)
5791 (signal_catch_update, gdb_signal_from_command): Move
5793 * infrun.h: ... to this new file.
5794 * amd64-tdep.c: Include infrun.h.
5795 * annotate.c: Include infrun.h.
5796 * arch-utils.c: Include infrun.h.
5797 * arm-linux-tdep.c: Include infrun.h.
5798 * arm-tdep.c: Include infrun.h.
5799 * break-catch-sig.c: Include infrun.h.
5800 * breakpoint.c: Include infrun.h.
5801 * common/agent.c: Include infrun.h instead of inferior.h.
5802 * corelow.c: Include infrun.h.
5803 * event-top.c: Include infrun.h.
5804 * go32-nat.c: Include infrun.h.
5805 * i386-tdep.c: Include infrun.h.
5806 * inf-loop.c: Include infrun.h.
5807 * infcall.c: Include infrun.h.
5808 * infcmd.c: Include infrun.h.
5809 * infrun.c: Include infrun.h.
5810 * linux-fork.c: Include infrun.h.
5811 * linux-nat.c: Include infrun.h.
5812 * linux-thread-db.c: Include infrun.h.
5813 * monitor.c: Include infrun.h.
5814 * nto-tdep.c: Include infrun.h.
5815 * procfs.c: Include infrun.h.
5816 * record-btrace.c: Include infrun.h.
5817 * record-full.c: Include infrun.h.
5818 * remote-m32r-sdi.c: Include infrun.h.
5819 * remote-mips.c: Include infrun.h.
5820 * remote-notif.c: Include infrun.h.
5821 * remote-sim.c: Include infrun.h.
5822 * remote.c: Include infrun.h.
5823 * reverse.c: Include infrun.h.
5824 * rs6000-tdep.c: Include infrun.h.
5825 * s390-linux-tdep.c: Include infrun.h.
5826 * solib-irix.c: Include infrun.h.
5827 * solib-osf.c: Include infrun.h.
5828 * solib-svr4.c: Include infrun.h.
5829 * target.c: Include infrun.h.
5830 * top.c: Include infrun.h.
5831 * windows-nat.c: Include infrun.h.
5832 * mi/mi-interp.c: Include infrun.h.
5833 * mi/mi-main.c: Include infrun.h.
5834 * python/py-threadevent.c: Include infrun.h.
5836 2014-05-22 Pedro Alves <palves@redhat.com>
5838 * infrun.c (handle_inferior_event): Store the exit code for
5839 --return-child-result here, instead of ...
5840 (print_exited_reason): ... here.
5842 2014-05-21 Pedro Alves <palves@redhat.com>
5845 * gdbthread.h (struct thread_control_state): New field
5847 * infrun.c (follow_fork): Copy the new thread control field to the
5849 (clear_proceed_status_thread): Clear the new thread control field.
5850 (proceed): Set the new thread control field.
5851 * interps.h (command_interp): Declare.
5852 * interps.c (command_interpreter): New global.
5853 (command_interp): New function.
5854 (interp_exec): Set `command_interpreter' while here.
5855 * cli-out.c (cli_uiout_dtor): New function.
5856 (cli_ui_out_impl): Install it.
5857 * mi/mi-interp.c: Include cli-out.h.
5858 (mi_cmd_interpreter_exec): Add comment.
5859 (restore_current_uiout_cleanup): New function.
5860 (ui_out_free_cleanup): New function.
5861 (mi_on_normal_stop): If finishing an execution command started by
5862 a CLI command, or any kind of breakpoint-like event triggered,
5863 print the stop event to the output (CLI) stream.
5864 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5866 2014-05-21 Pedro Alves <palves@redhat.com>
5868 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5869 current source line having changed.
5870 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5871 * infrun.c (normal_stop): Adjust call to
5872 set_current_sal_from_frame.
5873 * source.c (clear_lines_listed_range): New function.
5874 (set_current_source_symtab_and_line, identify_source_line): Clear
5875 the lines listed range.
5876 (line_info): Handle the first "info line" after the current source
5877 line having changed.
5878 * stack.c (print_stack_frame): Remove center handling.
5879 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5882 2014-05-21 Pedro Alves <palves@redhat.com>
5884 * inf-child.c (inf_child_mourn_inferior): New function.
5885 * inf-child.h (inf_child_mourn_inferior): New declaration.
5886 * darwin-nat.c (darwin_mourn_inferior): Use
5887 inf_child_mourn_inferior.
5888 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5889 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5890 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5891 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5892 * windows-nat.c (windows_mourn_inferior): Likewise.
5894 2014-05-21 Doug Evans <xdje42@gmail.com>
5896 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5898 2014-05-21 Doug Evans <xdje42@gmail.com>
5900 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5901 (gdbscm_out_of_range_error): Ditto.
5902 (gdbscm_memory_error): Ditto.
5903 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5904 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5905 (gdbscm_out_of_range_error): Update.
5906 (gdbscm_memory_error): Update.
5907 (gdbscm_scm_to_target_string_unsafe): Delete.
5909 2014-05-21 Pedro Alves <palves@redhat.com>
5911 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5913 (inf_child_open_target): New function.
5914 (inf_child_open): Use inf_child_open_target to push the target
5915 instead of erroring out.
5916 (inf_child_disconnect, inf_child_close)
5917 (inf_child_maybe_unpush_target): New functions.
5918 (inf_child_target): Install inf_child_disconnect and
5919 inf_child_close. Store a pointer to the returned object.
5920 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5922 * target.c (auto_connect_native_target): New global.
5923 (show_default_run_target): New function.
5924 (find_default_run_target): Return NULL if automatically connecting
5925 to the native target is disabled.
5926 (_initialize_target): Install set/show auto-connect-native-target.
5927 * NEWS: Mention "set auto-connect-native-target", and "target
5929 * linux-nat.c (super_close): New global.
5930 (linux_nat_close): Call super_close.
5931 (linux_nat_add_target): Store a pointer to the base class's
5933 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5934 inf_child_maybe_unpush.
5935 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5937 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5938 the inferior. Use inf_child_maybe_unpush_target.
5939 (inf_ttrace_attach): Don't push the target if it is already
5941 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5942 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5943 after mourning the inferior. Use inf_child_maybe_unpush_target.
5944 (darwin_attach_pid): Don't push the target if it is already
5946 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5947 mourning the inferior. Use inf_child_maybe_unpush_target.
5948 (gnu_detach): Use inf_child_maybe_unpush_target.
5949 * go32-nat.c (go32_create_inferior): Don't push the target if it
5951 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5952 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5953 (procfs_open): Rename to ...
5954 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5955 comments. Can target_preopen before changing node. Call
5956 inf_child_open_target to push the target explicitly.
5957 (procfs_attach): Don't push the target if it is already pushed.
5958 (procfs_detach): Use inf_child_maybe_unpush_target.
5959 (procfs_create_inferior): Don't push the target if it is already
5961 (nto_native_ops): New global.
5962 (procfs_open): Reimplement.
5963 (procfs_native_open): New function.
5964 (init_procfs_targets): Install procfs_native_open as to_open of
5965 "target native". Store a pointer to the "native" target in
5967 * procfs.c (procfs_attach): Don't push the target if it is already
5969 (procfs_detach): Use inf_child_maybe_unpush_target.
5970 (procfs_mourn_inferior): Only unpush the target after mourning the
5971 inferior. Use inf_child_maybe_unpush_target.
5972 (procfs_init_inferior): Don't push the target if it is already
5974 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5975 if it is already pushed.
5977 2014-05-21 Pedro Alves <palves@redhat.com>
5979 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5980 and "procfs" targets are now called "native" instead.
5982 2014-05-21 Pedro Alves <palves@redhat.com>
5984 * go32-nat.c (go32_open): Delete.
5985 (go32_target): Don't override the to_open method.
5987 2014-05-21 Pedro Alves <palves@redhat.com>
5989 * nto-procfs.c (procfs_can_run): New function.
5990 (nto_procfs_ops): New global.
5991 (init_procfs_targets): New, based on procfs_target. Install
5992 "target native" in addition to "target procfs".
5993 (_initialize_procfs): Call init_procfs_targets instead of adding
5996 2014-05-21 Pedro Alves <palves@redhat.com>
5998 * windows-nat.c (windows_target): Don't override to_shortname,
5999 to_longname or to_doc.
6001 2014-05-21 Pedro Alves <palves@redhat.com>
6003 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6006 2014-05-21 Pedro Alves <palves@redhat.com>
6008 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6009 to_shortname, to_longname or to_doc.
6011 2014-05-21 Pedro Alves <palves@redhat.com>
6013 * go32-nat.c (go32_target): Don't override to_shortname,
6014 to_longname or to_doc.
6016 2014-05-21 Pedro Alves <palves@redhat.com>
6018 * inf-child.c (inf_child_open): Remove mention of "child".
6019 (inf_child_target): Rename target to "native" instead of "child".
6021 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6023 * Makefile.in (SFILES): Delete "regset.c".
6024 (COMMON_OBS): Delete "regset.o".
6026 * regset.h (regset_alloc): Delete prototype.
6028 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6030 * sparc-linux-tdep.c (sparc32_linux_gregset)
6031 (sparc32_linux_fpregset): New static regset structures.
6032 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6033 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6035 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6036 (sparc64_linux_fpregset): New static regset structures.
6037 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6038 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6039 New static regset structures.
6040 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6041 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6042 New static regset structures.
6043 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6044 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6045 New static regset structures.
6046 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6047 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6048 New static regset structures.
6049 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6051 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6053 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6054 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6055 register maps ("regmaps") from "*regset" to "*regmap". Do this
6056 for all regmap types and variables.
6057 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6058 (sparc32_linux_supply_core_gregset)
6059 (sparc32_linux_collect_core_gregset)
6060 (sparc32_linux_supply_core_fpregset)
6061 (sparc32_linux_collect_core_fpregset): Likewise.
6062 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6063 (sparc_gregmap, sparc_fpregmap): ... these.
6064 (sparc_supply_gregset, sparc_collect_gregset)
6065 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6066 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6067 (_initialize_sparc_nat): Rename regmaps.
6068 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6069 (sparc_gregmap, sparc_fpregmap): ... these.
6070 (sparc_supply_gregset, sparc_collect_gregset)
6071 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6072 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6074 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6075 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6077 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6079 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6080 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6081 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6083 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6084 (sparc32_bsd_fpregset): Rename to...
6085 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6086 (sparc32_bsd_fpregmap): ... these.
6087 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6088 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6089 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6090 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6091 (struct sparc_gregmap, struct sparc_fpregmap)
6092 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6093 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6094 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6095 (sparc32_supply_regset, sparc32_collect_gregset)
6096 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6098 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6099 (sparc64_linux_ptrace_gregmap): ... this.
6100 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6101 (_initialize_sparc64_linux_nat): Rename regmaps.
6102 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6103 (sparc64_linux_core_gregmap): ... this.
6104 (sparc64_linux_supply_core_gregset)
6105 (sparc64_linux_collect_core_gregset)
6106 (sparc64_linux_supply_core_fpregset)
6107 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6108 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6109 (sparc64_sol2_fpregset): Rename to...
6110 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6111 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6112 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6114 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6115 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6116 (sparc64_bsd_fpregset): Rename to...
6117 (struct sparc_gregmap, sparc64_sol2_gregmap)
6118 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6119 (sparc64_bsd_fpregmap): ... these.
6120 (sparc64_supply_gregset, sparc64_collect_gregset)
6121 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6123 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6124 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6125 (sparc64fbsd_gregmap): ... this.
6126 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6127 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6129 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6130 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6131 (sparc64nbsd_collect_fpregset): Likewise.
6132 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6133 (sparc64nbsd_gregmap): ... this.
6134 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6136 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6137 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6138 (sparc64obsd_gregmap): ... this.
6139 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6141 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6142 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6143 (sparc32nbsd_gregmap): ... this.
6144 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6147 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6149 * score-tdep.c (score7_linux_gregset): New static regset
6151 (score7_linux_regset_from_core_section): Remove dynamic regset
6153 (score_gdbarch_init): Drop allocation of tdep structure.
6154 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6156 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6158 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6160 (am33_regset_from_core_section): Remove dynamic regset
6163 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6165 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6166 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6168 (mips_linux_regset_from_core_section): Remove dynamic regset
6170 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6171 'gregset64', 'fpregset', and 'fpregset64'.
6172 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6173 deleted tdep fields.
6175 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6177 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6179 (amd64_regset_from_core_section): Remove dynamic regset
6181 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6183 (amd64obsd_regset_from_core_section): Remove dynamic regset
6185 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6187 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6188 x86-common regset supply function.
6189 * i386-tdep.c (i386_collect_gregset): Make static.
6190 (i386_gregset): New global regset structure.
6191 (i386_fpregset, i386_xstateregset): New static regset structures.
6192 (i386_regset_from_core_section): Remove dynamic regset
6194 (i386_gdbarch_init): Remove initialization of tdep fields
6195 'gregset', 'fpregset', and 'xstateregset'.
6196 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6197 'fpregset', and 'xstateregset'.
6198 (i386_collect_gregset): Remove prototype.
6199 (i386_gregset): New declaration.
6200 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6202 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6205 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6207 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6208 (arm_linux_vfpregset): New static regset structures.
6209 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6211 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6212 and 'vfpregset' fields.
6214 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6216 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6217 (aarch64_linux_fpregset): New static regset structures.
6218 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6219 of regset structures.
6220 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6223 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6225 * regset.h (struct regset): Remove gdbarch field.
6226 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6227 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6228 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6230 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6231 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6232 (ppc32_linux_vsxregset): Likewise.
6233 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6234 via the regcache instead of the regset.
6235 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6236 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6237 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6238 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6241 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6243 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6244 Constify structures.
6245 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6246 (alphanbsd_aout_gregset): Likewise.
6247 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6248 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6250 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6251 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6253 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6254 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6255 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6256 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6257 * m88k-tdep.c (m88k_gregset): Likewise.
6258 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6259 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6260 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6261 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6262 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6263 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6264 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6265 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6266 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6268 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6269 * sh-tdep.h (sh_corefile_gregset): Likewise.
6270 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6271 * vax-tdep.c (vax_gregset): Likewise.
6273 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6275 Fix TLS access for -static -pthread.
6276 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6277 (try_thread_db_load_1): Initialize it.
6278 (thread_db_get_thread_local_address): Call it if LM is zero.
6279 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6280 * target.h (struct target_ops) (to_get_thread_local_address): Add
6281 load_module_addr comment.
6283 2014-05-21 Pedro Alves <palves@redhat.com>
6285 * dcache.c (dcache_read_memory_partial): If reading the cache line
6286 fails, fallback to reading just the memory the caller wanted.
6288 2014-05-20 Doug Evans <dje@google.com>
6290 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6291 instead of get_current_arch.
6293 2014-05-20 Pedro Alves <palves@redhat.com>
6295 * NEWS: Mention that compare-sections now works with all targets.
6297 * remote.c (PACKET_qCRC): New enum value.
6298 (remote_verify_memory): Don't send qCRC if the target has no
6299 execution. Use packet_support/packet_ok. If the target doesn't
6300 support the qCRC packet, fallback to a deep memory copy.
6301 (compare_sections_command): Say "target image" instead of "remote
6303 (_initialize_remote): Add PACKET_qCRC to the list of config
6304 packets that have no associated command. Extend comment.
6305 * target.c (simple_verify_memory, default_verify_memory): New
6307 * target.h (struct target_ops) <to_verify_memory>: Default to
6308 default_verify_memory.
6309 (simple_verify_memory): New declaration.
6310 * target-delegates.c: Regenerate.
6312 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6314 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6316 2014-05-20 Hui Zhu <hui@codesourcery.com>
6317 Yao Qi <yao@codesourcery.com>
6320 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6321 and change address of sp and pc.
6323 2014-05-19 Tom Tromey <tromey@redhat.com>
6325 * gdbtypes.c (rank_function): Use XNEWVEC.
6326 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6328 2014-05-19 Doug Evans <dje@google.com>
6330 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6331 build_type_unit_groups and moved closer to only caller. Remove
6332 arguments. All references updated. Remove outdated .gdb_index
6334 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6335 build_type_psymtabs_1.
6337 2014-05-19 Doug Evans <dje@google.com>
6339 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6340 n_type_unit_groups, all_type_unit_groups. All uses removed.
6341 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6342 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6343 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6344 (add_type_unit_group_to_table): Delete.
6346 2014-05-19 Doug Evans <dje@google.com>
6348 * eval.c (evaluate_subexp_standard): Add some comments.
6350 2014-05-17 Doug Evans <xdje42@gmail.com>
6352 * progspace.c (remove_program_space): Delete, unused.
6353 * progspace.h (remove_program_space): Ditto.
6355 2014-05-17 Doug Evans <xdje42@gmail.com>
6357 * inferior.c (prune_inferiors): Fix comment.
6358 (remove_inferior_command): Call prune_program_spaces.
6360 2014-05-16 Doug Evans <dje@google.com>
6362 New command line option -D.
6364 * main.c (set_gdb_data_directory): New function.
6365 (captured_main): Recognize -D. Flag error for --data-directory "".
6366 Call set_gdb_data_directory.
6367 (print_gdb_help): Print --data-directory, -D.
6368 * main.h (set_gdb_data_directory): Declare.
6369 * top.c (staged_gdb_datadir): New static global.
6370 (set_gdb_datadir): Call set_gdb_data_directory
6371 (show_gdb_datadir): New function.
6372 (init_main): Update init of data-directory parameter.
6374 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6376 Import the "dirfd" gnulib module.
6377 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6378 * gnulib/aclocal.m4: Update.
6379 * gnulib/config.in: Update.
6380 * gnulib/configure: Update.
6381 * gnulib/import/Makefile.am: Update.
6382 * gnulib/import/Makefile.in: Update.
6383 * gnulib/import/dirfd.c: New.
6384 * gnulib/import/m4/dirfd.m4: New.
6385 * gnulib/import/m4/gnulib-cache.m4: Update.
6386 * gnulib/import/m4/gnulib-comp.m4: Update.
6388 2014-05-16 Pierre Muller <muller@sourceware.org>
6389 Yao Qi <yao@codesourcery.com>
6391 * valprint.c (print_wchar): Move the code on checking whether
6392 W is a printable wide char to the default branch of switch
6393 statement below. Call wchar_printable instead of gdb_iswprint.
6395 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6397 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6398 ldr.w and ldrd instructions.
6400 2014-05-15 Doug Evans <dje@google.com>
6402 * dwarf2read.c (read_structure_type): Delete outdated comments.
6404 2014-05-14 Tom Tromey <tromey@redhat.com>
6406 * macrocmd.c (print_macro_definition): Reindent.
6408 2014-05-13 Doug Evans <xdje42@gmail.com>
6410 * python/py-cmd.c (cmdpy_completer): Add comment.
6411 (completers): Make const.
6413 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6415 * infrun.c (resume): Remove should_resume (unused). Move up
6416 declaration of resume_ptid.
6418 2014-05-13 Tom Tromey <tromey@redhat.com>
6420 * language.h (unop_type_check): Remove.
6421 (binop_type_check): Don't declare.
6423 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6425 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6426 call to regcache_raw_collect.
6428 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6430 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6431 mi_console->quote as the quoting character.
6433 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6435 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6437 2014-04-29 Tom Tromey <tromey@redhat.com>
6439 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6440 "show debug varobj".
6442 2014-05-07 Kyle McMartin <kyle@redhat.com>
6444 Pushed by Joel Brobecker <brobecker@adacore.com>.
6445 * aarch64-tdep.c (aarch64_software_single_step): New function.
6446 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6447 with aarch64_software_single_step.
6449 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6453 2014-05-05 Keith Seitz <keiths@redhat.com>
6455 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6456 variable or history value is successfully parsed.
6458 2014-05-05 Yao Qi <yao@codesourcery.com>
6459 Pedro Alves <palves@redhat.com>
6461 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6462 address of blocks that intersects the requested range. Trim
6463 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6465 * ctf.c (ctf_xfer_partial): Likewise.
6467 2014-05-05 Yao Qi <yao@codesourcery.com>
6469 * printcmd.c (display_command): Remove the check to
6470 target_has_execution.
6472 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6474 * ppcobsd-nat.c: Include "obsd-nat.h".
6475 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6477 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6479 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6481 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6482 and 16-bit signed and unsigned arguments. Update comment.
6483 (stap_parse_probe_arguments): Extend code to handle such
6484 arguments. Use warning instead of complaint to notify about
6485 unrecognized bitness.
6487 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6489 PR breakpoints/16889
6490 * stap-probe.c (stap_parse_probe_arguments): Simplify
6491 check for non-prefixed probes (i.e., probes whose
6492 arguments do not start with "N@"). Always set the
6493 argument type to a sane value.
6495 2014-05-01 David Taylor <dtaylor@emc.com>
6497 * remote.c (compare_sections_command): Add -r option to compare
6498 all loadable read-only sections.
6500 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6502 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6503 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6505 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6506 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6507 Remove unused CORE_ADDR argument. Update all callers.
6509 2014-04-29 Pedro Alves <palves@redhat.com>
6511 * remote.c (struct packet_config) <detect>: Extend comment.
6512 (add_packet_config_cmd): Don't set the config's detect or support
6514 (init_all_packet_configs): Also initialize the config's 'detect'
6516 (reset_all_packet_configs_support): New function.
6517 (remote_open_1): Call reset_all_packet_configs_support instead of
6518 init_all_packet_configs.
6519 (_initialize_remote): Initialize all packet configs. Assert that
6520 all packets have an associated command, except a few known
6523 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6525 * dwarf2read.c (read_subrange_type): Handle dynamic
6526 DW_AT_lower_bound attributes.
6528 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6530 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6531 dynamic bounds before computing its upper bound.
6532 (ada_discrete_type_low_bound): Same as above with the lower bound.
6534 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6536 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6537 range types. Adjust the array handling implementation to
6538 take advantage of this change.
6539 (resolve_dynamic_range): New function, mostly extracted from
6540 resolve_dynamic_bounds.
6541 (resolve_dynamic_array): New function, mostly extracted from
6542 resolve_dynamic_bounds.
6543 (resolve_dynamic_bounds): Delete.
6544 (resolve_dynamic_type): Reimplement. Add handling of
6545 TYPE_CODE_RANGE types.
6547 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6549 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6550 handling of parallel ___XA types.
6552 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6554 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6555 unnecessary second call to static_unwrap_type.
6557 2014-04-27 Hui Zhu <hui@codesourcery.com>
6559 * stack.c (print_frame_info): Call do_gdb_disassembly with
6560 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6562 2014-04-26 Doug Evans <xdje42@gmail.com>
6564 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6566 2014-04-25 Pedro Alves <palves@redhat.com>
6569 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6570 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6571 and newline from built string.
6572 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6573 (linux_ptrace_attach_fail_reason): ... this.
6574 * linux-nat.c (linux_nat_attach): Adjust to use
6575 linux_ptrace_attach_fail_reason.
6577 2014-04-25 Pedro Alves <palves@redhat.com>
6579 * remote.c (struct remote_state): Remove multi_process_aware,
6580 non_stop_aware, cond_tracepoints, cond_breakpoints,
6581 breakpoint_commands, fast_tracepoints, static_tracepoints,
6582 install_in_trace, disconnected_tracing,
6583 enable_disable_tracepoints, string_tracing, and
6584 augmented_libraries_svr4_read fields.
6585 (remote_multi_process_p): Move further below in the file.
6586 (struct packet_config): Add comments.
6587 (update_packet_config): Delete function.
6588 (show_packet_config_cmd): Use packet_config_support.
6589 (add_packet_config_cmd): Use NULL as set callback.
6590 (packet_ok): "set remote foo-packet"-style commands no longer
6591 change config->supported -- adjust.
6592 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6593 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6594 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6595 (PACKET_QNonStop, PACKET_multiprocess_feature)
6596 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6597 (PACKET_DisconnectedTracing_feature)
6598 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6599 (set_remote_protocol_packet_cmd): Delete function.
6600 (packet_config_support, packet_support): New functions.
6601 (set_remote_protocol_Z_packet_cmd): Don't call
6602 update_packet_config.
6603 (remote_query_attached, remote_pass_signals)
6604 (remote_program_signals, remote_threads_info)
6605 (remote_threads_extra_info, remote_start_remote): Use
6607 (remote_start_remote): Use packet_config_support and
6609 (init_all_packet_configs): Set all packets to unknown support,
6610 instead of calling update_packet_config.
6611 (remote_check_symbols): Use packet_support.
6612 (remote_supported_packet): Unconditionally set the packet config's
6614 (remote_multi_process_feature, remote_non_stop_feature)
6615 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6616 (remote_breakpoint_commands_feature)
6617 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6618 (remote_install_in_trace_feature)
6619 (remote_disconnected_tracing_feature)
6620 (remote_enable_disable_tracepoint_feature)
6621 (remote_string_tracing_feature)
6622 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6623 (remote_protocol_features): Adjust to use remote_supported_packet
6624 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6625 "ConditionalTracepoints", "ConditionalBreakpoints",
6626 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6627 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6628 "EnableDisableTracepoints", and "tracenz".
6629 (remote_query_supported): Use packet_support.
6630 (remote_open_1): Adjust.
6631 (extended_remote_attach_1): Use packet_support. Switch on the
6632 result of packet_ok instead of checking whether the packet ended
6634 (remote_vcont_resume): Use packet_support.
6635 (remote_resume, remote_stop_ns, fetch_register_using_p)
6636 (remote_prepare_to_store, store_register_using_P)
6637 (check_binary_download, remote_write_bytes): Use packet_support.
6638 (remote_vkill): Use packet_support. Switch on the result of
6639 packet_ok instead of checking whether the packet ended up
6641 (extended_remote_supports_disable_randomization): Use
6643 (extended_remote_run): Switch on the result of packet_ok instead
6644 of checking whether the packet ended up disabled.
6645 (remote_insert_breakpoint, remote_remove_breakpoint)
6646 (remote_insert_watchpoint, remote_remove_watchpoint)
6647 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6649 (remote_search_memory): Use packet_config_support.
6650 (remote_get_thread_local_address, remote_get_tib_address)
6651 (remote_hostio_send_command, remote_can_execute_reverse): Use
6653 (remote_supports_cond_tracepoints)
6654 (remote_supports_cond_breakpoints)
6655 (remote_supports_fast_tracepoints)
6656 (remote_supports_static_tracepoints)
6657 (remote_supports_install_in_trace)
6658 (remote_supports_enable_disable_tracepoint)
6659 (remote_supports_string_tracing)
6660 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6661 the packet config says the feature is enabled or disabled.
6662 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6663 (remote_get_trace_status): Use packet_support.
6664 (remote_set_disconnected_tracing): Adjust to check whether the
6665 feature is enabled with packet_support.
6666 (remote_set_trace_buffer_size, remote_use_agent)
6667 (remote_can_use_agent, remote_supports_btrace): Use
6669 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6670 Use packet_config_support.
6671 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6672 the packet config says the feature is enabled or disabled.
6673 (set_range_stepping): Use packet_support.
6675 2014-04-25 Tom Tromey <tromey@redhat.com>
6677 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6680 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6682 * NEWS: Mention support for C99 variable length arrays.
6684 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6686 * ada-lang.c (standard_exc): Expand introductory comment.
6688 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6689 Walfred Tedeschi <walfred.tedeschi@intel.com>
6691 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6693 (amd64_linux_read_description): Add code to handle AVX512 xstate
6694 mask and return respective tdesc.
6695 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6696 and features/i386/x32-avx512-linux.c.
6697 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6698 (amd64_linux_core_read_description): Add code to handle AVX512
6699 xstate mask and return respective tdesc.
6700 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6701 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6703 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6704 (tdesc_amd64_avx512_linux): New prototype.
6705 (tdesc_x32_avx512_linux): Likewise.
6706 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6707 features/i386/x32-avx512.c.
6708 (amd64_ymm_avx512_names): New register names for pseudo
6710 (amd64_ymmh_avx512_names): New register names for raw registers
6712 (amd64_k_names): New register names for K registers.
6713 (amd64_zmmh_names): New register names for ZMM raw registers.
6714 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6715 (amd64_xmm_avx512_names): New register names for XMM16-31
6717 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6719 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6720 if feature is present.
6721 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6722 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6723 (AMD64_NUM_REGS): Adjust to new number of registers.
6724 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6725 registers supplied via XSTATE by AVX512 registers.
6726 (i386_linux_read_description): Add case for AVX512.
6727 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6728 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6729 (i386_linux_core_read_description): Add case for AVX512.
6730 (i386_linux_init_abi): Install supported register note section
6732 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6734 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6735 registers to be number of zmm7h + 1.
6736 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6737 * i386-tdep.c: Include features/i386/i386-avx512.c.
6738 (i386_zmm_names): Add ZMM pseudo register names array.
6739 (i386_zmmh_names): Add ZMM raw register names array.
6740 (i386_k_names): Add K raw register names array.
6741 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6742 registers. AVX512 has 16 more ZMM registers than there are YMM
6744 (i386_zmmh_regnum_p): Add function to look up register number of
6746 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6747 (i386_k_regnum_p): Likewise for K raw registers.
6748 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6749 registers added by AVX512.
6750 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6751 registers added by AVX512.
6752 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6754 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6755 (i386_pseudo_register_name): Add ZMM pseudo registers.
6756 (i386_zmm_type): Construct and return vector registers type for ZMM
6758 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6759 ZMM0-31 pseudo registers and K registers.
6760 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6761 and YMM16-31 registers from register cache.
6762 (i386_pseudo_register_write): Add code to write K, ZMM and
6764 (i386_register_reggroup_p): Add code to include/exclude AVX512
6765 registers in/from respective register groups.
6766 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6767 registers if feature is present in xcr0.
6768 (i386_gdbarch_init): Add code to initialize AVX512 feature
6769 variables in tdep structure, wire in pseudo registers and call
6770 initialize_tdesc_i386_avx512.
6771 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6773 (i386_regnum): Add AVX512 registers.
6774 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6775 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6776 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6777 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6779 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6780 (i386_ymm_avx512_regnum_p): Likewise.
6781 (i386_k_regnum_p): Likewise.
6782 (i386_zmm_regnum_p): Likewise.
6783 (i386_zmmh_regnum_p): Likewise.
6784 * i387-tdep.c : Update year in copyright notice.
6785 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6787 (XSAVE_YMM_AVX512_ADDR): New macro.
6788 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6790 (XSAVE_XMM_AVX512_ADDR): New macro.
6791 (xsave_avx512_k_offset): New table for K register offsets in
6793 (XSAVE_AVX512_K_ADDR): New macro.
6794 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6796 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6797 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6799 (i387_collect_xsave): Add code to collect AVX512 registers from
6801 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6802 of XMM16-31 registers.
6803 (I387_NUM_K_REGS): New define for number of K registers.
6804 (I387_K0_REGNUM): New define for K0 register number.
6805 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6806 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6807 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6809 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6810 (I387_XMM16_REGNUM): New define for XMM16 register number.
6811 (I387_YMM0_REGNUM): New define for YMM0 register number.
6812 (I387_KEND_REGNUM): New define for last K register number.
6813 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6814 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6816 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6818 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6820 * features/Makefile: Add AVX512 related files.
6821 * features/i386/32bit-avx512.xml: New file.
6822 * features/i386/64bit-avx512.xml: Likewise.
6823 * features/i386/amd64-avx512-linux.c: Likewise.
6824 * features/i386/amd64-avx512-linux.xml: Likewise.
6825 * features/i386/amd64-avx512.c: Likewise.
6826 * features/i386/amd64-avx512.xml: Likewise.
6827 * features/i386/i386-avx512-linux.c: Likewise.
6828 * features/i386/i386-avx512-linux.xml: Likewise.
6829 * features/i386/i386-avx512.c: Likewise.
6830 * features/i386/i386-avx512.xml: Likewise.
6831 * features/i386/x32-avx512-linux.c: Likewise.
6832 * features/i386/x32-avx512-linux.xml: Likewise.
6833 * features/i386/x32-avx512.c: Likewise.
6834 * features/i386/x32-avx512.xml: Likewise.
6835 * regformats/i386/amd64-avx512-linux.dat: New file.
6836 * regformats/i386/amd64-avx512.dat: Likewise.
6837 * regformats/i386/i386-avx512-linux.dat: Likewise.
6838 * regformats/i386/i386-avx512.dat: Likewise.
6839 * regformats/i386/x32-avx512-linux.dat: Likewise.
6840 * regformats/i386/x32-avx512.dat: Likewise.
6841 * NEWS: Add note about new support for AVX512.
6844 2014-04-23 Pedro Alves <palves@redhat.com>
6846 * breakpoint.c (insert_bp_location): Tolerate errors if the
6847 breakpoint is set in a user-loaded objfile.
6848 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6849 location is marked shlib_disabled. If the breakpoint is set in a
6850 user-loaded objfile is a GDB-side memory breakpoint, validate it
6851 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6852 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6854 * mem-break.c (memory_validate_breakpoint): New function.
6855 * objfiles.c (userloaded_objfile_contains_address_p): New
6857 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6858 * target.h (memory_validate_breakpoint): New declaration.
6860 2014-04-23 Pedro Alves <palves@redhat.com>
6862 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6863 the breakpoint is set in a shared library, only suppress
6864 errors for software breakpoints, not hardware breakpoints.
6866 2014-04-22 Pedro Alves <palves@redhat.com>
6868 * infrun.c (schedlock_applies): New function, factored out from
6869 find_thread_needs_step_over.
6870 (find_thread_needs_step_over): Use it.
6871 (switch_back_to_stepped_thread): Always clear trap_expected if the
6872 step over is finished. Return early if scheduler locking applies.
6873 Look for the stepping thread and a potential step-over thread with
6875 (currently_stepping_or_nexting_callback): Delete.
6877 2014-04-22 Nick Clifton <nickc@redhat.com>
6879 * NEWS: Mention that ARM sim now supports tracing.
6881 2014-04-22 Yao Qi <yao@codesourcery.com>
6883 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6885 * tracefile.c (tracefile_fetch_registers): ... it. New
6887 * tracefile.h (tracefile_fetch_registers): Declare.
6888 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6889 tracefile_fetch_registers.
6891 2014-04-19 Eli Zaretskii <eliz@gnu.org>
6894 * windows-nat.c (thread_rec): Don't display a warning when
6895 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
6896 fails for any reason, set th->suspended to -1, so that we don't
6897 try to resume such a thread. Also, don't return NULL in these
6898 cases, to avoid completely ruin the session due to "PC register is
6899 not available" error.
6900 (do_windows_fetch_inferior_registers): Check errors in
6901 GetThreadContext call.
6902 (windows_continue): Accept an additional argument KILLED; if not
6903 zero, ignore errors in the SetThreadContext call, since the
6904 inferior was killed and is shutting down.
6905 (windows_resume, get_windows_debug_event)
6906 (windows_create_inferior, windows_mourn_inferior)
6907 (windows_kill_inferior): All callers of windows_continue changed
6908 to adjust to its new calling sequence.
6910 2014-04-19 Yao Qi <yao@codesourcery.com>
6912 * ctf.c (ctf_open): Call post_create_inferior.
6914 2014-04-19 Yao Qi <yao@codesourcery.com>
6916 * ctf.c (handle_id): New static variable.
6917 (ctf_open_dir): Get handle_id from bt_context_add_trace return
6918 value. Get the declaration of event "register" and get length
6919 of field "contents".
6921 2014-04-19 Yao Qi <yao@codesourcery.com>
6923 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6925 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
6927 * valops.c (oload_method_static): Remove unnecessary argument
6928 METHOD. Update all callers.
6930 2014-04-18 Pedro alves <palves@redhat.com>
6931 Tom Tromey <tromey@redhat.com>
6934 * frame.c (get_prev_frame_1): Rename to ...
6935 (get_prev_frame_always): ... this, and make extern. Adjust.
6936 (skip_artificial_frames): Use get_prev_frame_always.
6937 (frame_unwind_caller_id, frame_pop, get_prev_frame)
6938 (get_frame_unwind_stop_reason): Adjust to rename.
6939 * frame.h (get_prev_frame_always): Declare.
6940 * inline-frame.c: Include frame.h.
6941 (inline_frame_this_id): Use get_prev_frame_always.
6943 2014-04-18 Tristan Gingold <gingold@adacore.com>
6945 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6946 code by using bfd_mach_o_get_base_address.
6948 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6950 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6951 (spu_ax_pseudo_register_collect): New function.
6952 (spu_ax_pseudo_register_push_stack): Likewise.
6953 (spu_dwarf_reg_to_regnum): Likewise.
6954 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6956 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6958 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6959 Replace FRAME argument with FRAME_ID.
6960 * gdbarch.c, gdbarch.h: Regenerate.
6961 * findvar.c (default_value_from_register): Add GDBARCH argument;
6962 replace FRAME by FRAME_ID. No longer call get_frame_id.
6963 (value_from_register): Update call to gdbarch_value_from_register.
6964 * value.h (default_value_from_register): Update prototype.
6965 * s390-linux-tdep.c (s390_value_from_register): Update interface
6966 and call to default_value_from_register.
6967 * spu-tdep.c (spu_value_from_register): Likewise.
6969 * findvar.c (address_from_register): Remove TYPE argument.
6970 Do not call value_from_register; use gdbarch_value_from_register
6971 with null_frame_id instead.
6972 * value.h (address_from_register): Update prototype.
6973 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6974 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6975 address_from_register interface change.
6977 2014-04-17 Yao Qi <yao@codesourcery.com>
6979 * gdbtypes.h: Update comments to link to types and macros'
6982 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6984 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6986 2014-04-16 Keith Seitz <keiths@redhat.com>
6989 * dwarf2read.c (skip_one_die): Check that all relative-offset
6990 sibling DIEs fall within range of the current reader's buffer.
6991 (read_partial_die): Likewise.
6993 2014-04-16 Keith Seitz <keiths@redhat.com>
6996 * cp-namespace.c (lookup_symbol_file): If the type name of
6997 `this' is NULL, return immediately.
6999 2014-04-14 Keith Seitz <keiths@redhat.com>
7002 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7003 from symbol_matches_domain in symtab.c. All local callers
7004 of symbol_matches_domain updated.
7005 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7006 search STRUCT_DOMAIN.
7007 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7008 independently. standard_lookup will do that automatically.
7009 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7010 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7011 (cp_lookup_symbol_in_namespace): Likewise.
7012 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7013 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7014 may return a STRUCT_DOMAIN match.
7015 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7016 * cp-support.c: Include language.h.
7017 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7019 * psymtab.c (match_partial_symbol): Compare the requested
7020 domain with the symbol's domain directly.
7021 (lookup_partial_symbol): Likewise.
7022 * symtab.c (lookup_symbol_in_language): Explain when/why
7023 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7024 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7025 appropriate languages.
7026 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7027 and moved to ada-lang.c
7028 (lookup_block_symbol): Explain that this function only returns
7029 symbol matching the requested DOMAIN.
7030 Compare the requested domain with the symbol's domain directly.
7031 (iterate_over_symbols): Compare the requested domain with the
7032 symbol's domain directly.
7033 * symtab.h (symbol_matches_domain): Remove.
7035 2014-04-14 Tom Tromey <tromey@redhat.com>
7038 * c-exp.y (type_aggregate_p): New function.
7039 (qualified_name, classify_inner_name): Use it.
7040 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7041 and TYPE_TARGET_TYPE of an enum type.
7042 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7044 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7045 handle TYPE_DECLARED_CLASS.
7046 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7048 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7049 * valops.c (enum_constant_from_type): New function.
7050 (value_aggregate_elt): Use it.
7051 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7054 2014-04-14 Tom Tromey <tromey@redhat.com>
7056 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7057 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7059 * value.h (value_aggregate_elt): Update.
7061 2014-04-14 Tom Tromey <tromey@redhat.com>
7063 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7065 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7067 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7068 (evaluate_subexp_standard): Pass noside argument.
7069 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7070 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7071 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7072 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7073 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7075 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7077 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7078 points to a constant blob.
7080 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7082 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7083 property and store it as the high bound and flag the range accordingly.
7084 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7085 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7086 * gdbtypes.h (enum range_flags): New enum.
7087 (struct range_bounds): Add flags member.
7089 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7091 * c-typeprint.c (c_type_print_varspec_suffix): Added
7092 check for not yet resolved high bound. If unresolved, print
7093 "variable length" string to the console instead of random
7096 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7098 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7100 (ada_template_to_fixed_record_type_1): Likewise.
7101 (ada_to_fixed_type_1): Likewise.
7102 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7103 (cp_print_value): Likewise.
7104 * d-valprint.c (dynamic_array_type): Likewise.
7105 * findvar.c (address_of_variable): Likewise.
7106 * jv-valprint.c (java_value_print): Likewise.
7107 * valops.c (value_ind): Likewise.
7108 * value.c (coerce_ref): Likewise.
7110 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7112 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7113 value and retrieve the dynamic type size.
7115 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7117 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7118 passed to sizeof is dynamic evaluate the argument to compute the length.
7120 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7121 Joel Brobecker <brobecker@adacore.com>
7123 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7124 (dwarf2_evaluate_property): New function.
7125 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7126 * dwarf2read.c (attr_to_dynamic_prop): New function.
7127 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7129 * gdbtypes.c: Include dwarf2loc.h.
7130 (is_dynamic_type): New function.
7131 (resolve_dynamic_type): New function.
7132 (resolve_dynamic_bounds): New function.
7133 (get_type_length): New function.
7134 (check_typedef): Use get_type_length to compute type length.
7135 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7136 (TYPE_LOW_BOUND_KIND): New macro.
7137 (is_dynamic_type): New function prototype.
7138 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7139 to resolve dynamic properties of the type. Update comment.
7140 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7142 2014-04-14 Richard Henderson <rth@redhat.com>
7144 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7146 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7147 Doug Evans <xdje42@gmail.com>
7149 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7150 dereference TYPE_CODE_REF values.
7152 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7154 Revert the following changes due to regressions:
7156 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7157 (dwarf2_evaluate_property): New function.
7158 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7159 * dwarf2read.c (attr_to_dynamic_prop): New function.
7160 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7162 * gdbtypes.c: Include dwarf2loc.h.
7163 (is_dynamic_type): New function.
7164 (resolve_dynamic_type): New function.
7165 (resolve_dynamic_bounds): New function.
7166 (get_type_length): New function.
7167 (check_typedef): Use get_type_length to compute type length.
7168 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7169 (TYPE_LOW_BOUND_KIND): New macro.
7170 (is_dynamic_type): New function prototype.
7171 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7172 to resolve dynamic properties of the type. Update comment.
7173 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7175 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7176 passed to sizeof is dynamic evaluate the argument to compute the length.
7178 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7179 value and retrieve the dynamic type size.
7181 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7182 (ada_template_to_fixed_record_type_1): Likewise.
7183 (ada_to_fixed_type_1): Likewise.
7184 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7185 (cp_print_value): Likewise.
7186 * d-valprint.c (dynamic_array_type): Likewise.
7187 * eval.c (evaluate_subexp_with_coercion): Likewise.
7188 * findvar.c (address_of_variable): Likewise.
7189 * jv-valprint.c (java_value_print): Likewise.
7190 * valops.c (value_ind): Likewise.
7191 * value.c (coerce_ref): Likewise.
7193 * c-typeprint.c (c_type_print_varspec_suffix): Added
7194 check for not yet resolved high bound. If unresolved, print
7195 "variable length" string to the console instead of random
7198 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7199 property and store it as the high bound and flag the range accordingly.
7200 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7201 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7202 * gdbtypes.h (enum range_flags): New enum.
7203 (struct range_bounds): Add flags member.
7205 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7206 points to a constant blob.
7208 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7209 (evaluate_subexp_standard): Pass noside argument.
7210 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7211 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7212 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7213 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7214 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7216 2014-04-11 Keith Seitz <keiths@redhat.com>
7219 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7220 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7223 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7225 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7226 (evaluate_subexp_standard): Pass noside argument.
7227 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7228 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7229 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7230 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7231 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7233 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7235 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7236 points to a constant blob.
7238 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7240 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7241 property and store it as the high bound and flag the range accordingly.
7242 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7243 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7244 * gdbtypes.h (enum range_flags): New enum.
7245 (struct range_bounds): Add flags member.
7247 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7249 * c-typeprint.c (c_type_print_varspec_suffix): Added
7250 check for not yet resolved high bound. If unresolved, print
7251 "variable length" string to the console instead of random
7254 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7256 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7257 (ada_template_to_fixed_record_type_1): Likewise.
7258 (ada_to_fixed_type_1): Likewise.
7259 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7260 (cp_print_value): Likewise.
7261 * d-valprint.c (dynamic_array_type): Likewise.
7262 * eval.c (evaluate_subexp_with_coercion): Likewise.
7263 * findvar.c (address_of_variable): Likewise.
7264 * jv-valprint.c (java_value_print): Likewise.
7265 * valops.c (value_ind): Likewise.
7266 * value.c (coerce_ref): Likewise.
7268 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7270 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7271 value and retrieve the dynamic type size.
7273 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7275 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7276 passed to sizeof is dynamic evaluate the argument to compute the length.
7278 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7280 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7281 (dwarf2_evaluate_property): New function.
7282 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7283 * dwarf2read.c (attr_to_dynamic_prop): New function.
7284 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7286 * gdbtypes.c: Include dwarf2loc.h.
7287 (is_dynamic_type): New function.
7288 (resolve_dynamic_type): New function.
7289 (resolve_dynamic_bounds): New function.
7290 (get_type_length): New function.
7291 (check_typedef): Use get_type_length to compute type length.
7292 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7293 (TYPE_LOW_BOUND_KIND): New macro.
7294 (is_dynamic_type): New function prototype.
7295 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7296 to resolve dynamic properties of the type. Update comment.
7297 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7299 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7301 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7302 declaring high/low bounds and change uses accordingly. Call
7303 create_range_type instead of create_static_range_type.
7304 * gdbtypes.c (create_range_type): New function.
7305 (create_range_type): Convert bounds into struct bound_prop and pass
7306 them to create_range_type.
7307 * gdbtypes.h (struct bound_prop): New struct.
7308 (create_range_type): New function prototype.
7309 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7310 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7311 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7313 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7315 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7317 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7318 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7319 * ada-lang.c: All uses of create_range_type updated.
7320 * coffread.c: All uses of create_range_type updated.
7321 * dwarf2read.c: All uses of create_range_type updated.
7322 * f-exp.y: All uses of create_range_type updated.
7323 * m2-valprint.c: All uses of create_range_type updated.
7324 * mdebugread.c: All uses of create_range_type updated.
7325 * stabsread.c: All uses of create_range_type updated.
7326 * valops.c: All uses of create_range_type updated.
7327 * valprint.c: All uses of create_range_type updated.
7329 2014-04-10 Pedro Alves <palves@redhat.com>
7331 * breakpoint.c (single_step_breakpoints)
7332 (single_step_gdbarch): Move up in the file.
7333 (one_breakpoint_xfer_memory): New function, factored out from ...
7334 (breakpoint_xfer_memory): ... here. Also process single-step
7337 2014-04-09 Tristan Gingold <gingold@adacore.com>
7339 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7341 (darwin_decode_exception_message): Free port only after use.
7343 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7345 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7346 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7347 when setting the size of call_length.
7349 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7351 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7352 dereference TYPE_CODE_REF values.
7354 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7356 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7357 end of warning message.
7359 2014-04-03 Doug Evans <dje@google.com>
7361 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7362 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7364 2014-04-02 Alan Modra <amodra@gmail.com>
7366 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7367 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7368 (struct symbol_file_add_from_memory_args): Add size field.
7369 (find_vdso_size): New function.
7370 (add_vsyscall_page): Attempt to find vdso size.
7372 2014-04-01 Doug Evans <dje@google.com>
7374 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7376 2014-04-01 Tristan Gingold <gingold@adacore.com>
7378 * darwin-nat.c (darwin_encode_reply): Add prototype.
7379 (darwin_decode_exception_message): Reply to unknown inferiors.
7380 (darwin_decode_message): Handle message by id. Ignore message
7381 to unknown inferior.
7382 (darwin_wait): Discard unknown messages, add debug trace.
7384 2014-03-31 Doug Evans <dje@google.com>
7386 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7389 2014-03-31 Doug Evans <dje@google.com>
7391 New option "set print symbol-loading".
7393 * solib.c (solib_read_symbols): Only print symbol loading messages
7395 (solib_add): If symbol loading is in "brief" mode, notify user
7396 symbols are being loaded.
7397 (reload_shared_libraries_1): Ditto.
7398 * symfile.c (print_symbol_loading_off): New static global.
7399 (print_symbol_loading_brief): New static global.
7400 (print_symbol_loading_full): New static global.
7401 (print_symbol_loading_enums): New static global.
7402 (print_symbol_loading): New static global.
7403 (print_symbol_loading_p): New function.
7404 (symbol_file_add_with_addrs): Only print symbol loading messages
7406 (_initialize_symfile): Register "print symbol-loading" set/show
7408 * symfile.h (print_symbol_loading_p): Declare.
7410 2014-03-30 Doug Evans <xdje42@gmail.com>
7412 * infrun.c (set_last_target_status): New function.
7413 (handle_inferior_event): Call it.
7415 2014-03-30 Doug Evans <xdje42@gmail.com>
7417 * inferior.h (enum stop_kind): Improve comment.
7419 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7421 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7422 a reference, strip the reference layer before calling
7423 the lang_ops value_has_mutated callback.
7425 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7427 Remove some globals from our parser.
7428 * language.c (unk_lang_parser): Add "struct parser_state"
7430 * language.h (struct language_defn) <la_parser>: Likewise.
7431 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7432 (initialize_expout): Add "struct parser_state" argument.
7433 Rewrite function to use the parser state.
7434 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7435 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7436 write_exp_elt_longcst, write_exp_elt_dblcst,
7437 write_exp_elt_decfloatcst, write_exp_elt_type,
7438 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7439 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7440 write_dollar_variable): Likewise.
7441 (parse_exp_in_context_1): Use parser state.
7442 (insert_type_address_space): Add "struct parser_state" argument.
7444 (increase_expout_size): New function.
7445 * parser-defs.h: Forward declare "struct language_defn" and
7446 "struct parser_state".
7447 (expout, expout_size, expout_ptr): Remove extern declarations.
7448 (parse_gdbarch, parse_language): Rewrite macro declarations to
7449 accept the parser state.
7450 (struct parser_state): New struct.
7451 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7452 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7453 write_exp_elt_decfloatcst, write_exp_elt_type,
7454 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7455 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7456 write_exp_msymbol, write_dollar_variable,
7457 mark_struct_expression, insert_type_address_space): Add "struct
7458 parser_state" argument.
7459 (increase_expout_size): New function.
7460 * utils.c (do_clear_parser_state): New function.
7461 (make_cleanup_clear_parser_state): Likewise.
7462 * utils.h (make_cleanup_clear_parser_state): New function
7464 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7465 Update calls to write_exp* in order to pass the parser state.
7466 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7467 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7468 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7469 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7470 * stap-probe.c (stap_parse_register_operand): Likewise.
7471 (stap_parse_single_operand): Likewise.
7472 (stap_parse_argument_1): Likewise.
7473 (stap_parse_argument): Use parser state.
7474 * stap-probe.h: Include "parser-defs.h".
7475 (struct stap_parse_info) <pstate>: New field.
7476 * c-exp.y (parse_type): Rewrite to use parser state.
7477 (yyparse): Redefine to c_parse_internal.
7478 (pstate): New global variable.
7479 (parse_number): Add "struct parser_state" argument.
7480 (write_destructor_name): Likewise.
7481 (type_exp): Update calls to write_exp* and similars in order to
7483 (exp1, exp, variable, qualified_name, space_identifier,
7484 typename, typebase): Likewise.
7485 (write_destructor_name, parse_number, lex_one_token,
7486 classify_name, classify_inner_name, c_parse): Add "struct
7487 parser_state" argument. Update function to use parser state.
7488 * c-lang.h: Forward declare "struct parser_state".
7489 (c_parse): Add "struct parser_state" argument.
7490 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7491 (yyparse): Redefine macro to ada_parse_internal.
7492 (pstate): New variable.
7493 (write_int, write_object_renaming, write_var_or_type,
7494 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7495 type_int, type_long, type_long_long, type_float, type_double,
7496 type_long_double, type_char, type_boolean, type_system_address):
7497 Add "struct parser_state" argument.
7498 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7499 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7500 var_or_type, aggregate, aggregate_component_list,
7501 positional_list, others, component_group,
7502 component_associations): Update calls to write_exp* and similar
7503 functions in order to use parser state.
7504 (ada_parse, write_var_from_sym, write_int,
7505 write_exp_op_with_string, write_object_renaming,
7506 find_primitive_type, write_selectors, write_ambiguous_var,
7507 write_var_or_type, write_name_assoc, type_int, type_long,
7508 type_long_long, type_float, type_double, type_long_double,
7509 type_char, type_boolean, type_system_address): Add "struct
7510 parser_state" argument. Adjust function to use parser state.
7511 * ada-lang.c (parse): Likewise.
7512 * ada-lang.h: Forward declare "struct parser_state".
7513 (ada_parse): Add "struct parser_state" argument.
7514 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7515 calls to both functions.
7516 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7518 (yyparse): Redefine macro to f_parse_internal.
7519 (pstate): New variable.
7520 (parse_number): Add "struct parser_state" argument.
7521 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7522 and similars in order to use parser state.
7523 (parse_number): Adjust code to use parser state.
7525 (f_parse): New function.
7526 * f-lang.h: Forward declare "struct parser_state".
7527 (f_parse): Add "struct parser_state" argument.
7528 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7530 (yyparse): Redefine macro for java_parse_internal.
7531 (pstate): New variable.
7532 (push_expression_name, push_expression_name, insert_exp): Add
7533 "struct parser_state" argument.
7534 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7535 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7536 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7537 PostIncrementExpression, PostDecrementExpression,
7538 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7539 UnaryExpressionNotPlusMinus, CastExpression,
7540 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7541 RelationalExpression, EqualityExpression, AndExpression,
7542 ExclusiveOrExpression, InclusiveOrExpression,
7543 ConditionalAndExpression, ConditionalOrExpression,
7544 ConditionalExpression, Assignment, LeftHandSide): Update
7545 calls to write_exp* and similars in order to use parser state.
7546 (parse_number): Ajust code to use parser state.
7548 (java_parse): New function.
7549 (push_variable): Add "struct parser_state" argument. Adjust
7550 code to user parser state.
7551 (push_fieldnames, push_qualified_expression_name,
7552 push_expression_name, insert_exp): Likewise.
7553 * jv-lang.h: Forward declare "struct parser_state".
7554 (java_parse): Add "struct parser_state" argument.
7555 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7557 (yyparse): Redefine macro to m2_parse_internal.
7558 (pstate): New variable.
7559 (type_exp, exp, fblock, variable, type): Update calls to
7560 write_exp* and similars to use parser state.
7562 (m2_parse): New function.
7563 * m2-lang.h: Forward declare "struct parser_state".
7564 (m2_parse): Add "struct parser_state" argument.
7565 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7566 * objc-lang.h: Forward declare "struct parser_state".
7567 (end_msglist): Add "struct parser_state" argument.
7568 * p-exp.y (parse_type): Rewrite macro to use parser state.
7569 (yyparse): Redefine macro to pascal_parse_internal.
7570 (pstate): New variable.
7571 (parse_number): Add "struct parser_state" argument.
7572 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7573 write_exp* and similars in order to use parser state.
7574 (parse_number, yylex): Adjust code to use parser state.
7575 (pascal_parse): New function.
7576 * p-lang.h: Forward declare "struct parser_state".
7577 (pascal_parse): Add "struct parser_state" argument.
7578 * go-exp.y (parse_type): Rewrite macro to use parser state.
7579 (yyparse): Redefine macro to go_parse_internal.
7580 (pstate): New variable.
7581 (parse_number): Add "struct parser_state" argument.
7582 (type_exp, exp1, exp, variable, type): Update calls to
7583 write_exp* and similars in order to use parser state.
7584 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7585 to use parser state.
7586 (go_parse): Likewise.
7587 * go-lang.h: Forward declare "struct parser_state".
7588 (go_parse): Add "struct parser_state" argument.
7590 2014-03-27 Doug Evans <dje@google.com>
7592 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7594 2014-03-27 Doug Evans <dje@google.com>
7596 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7597 Remove argument abbrev_section. All callers updated.
7599 2014-03-27 Doug Evans <dje@google.com>
7601 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7602 addr_base, ranges_base.
7604 2014-03-26 Keith Seitz <keiths@redhat.com>
7606 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7607 types, not VAR_DOMAIN.
7609 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7611 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7613 * features/nios2-linux.c: Regenerated.
7614 * features/nios2.c: Regenerated.
7616 2014-03-25 Pedro Alves <palves@redhat.com>
7618 * cli/cli-script.c (script_from_file): Force the interpreter to
7621 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7623 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7624 small stack allocation.
7626 2014-03-24 Tristan Gingold <gingold@adacore.com>
7628 * darwin-nat.c (exc_server): Remove unused prototype.
7629 (darwin_dump_message): Correctly display data on x86_64.
7630 (darwin_encode_reply): Fix style.
7631 Add comments and fix indentation.
7633 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7635 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7637 2014-03-22 Doug Evans <xdje42@gmail.com>
7639 * infcmd.c: Whitespace fixes.
7640 (interrupt_command): Merge two function comments into one.
7642 2014-03-22 Doug Evans <xdje42@gmail.com>
7644 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7647 2014-03-22 Yao Qi <yao@codesourcery.com>
7649 * remote.c (target_read_live_memory): Remove.
7650 (memory_xfer_live_readonly_partial): Rename it to
7651 remote_xfer_live_readonly_partial. Remove argument 'object'.
7652 All callers updated. Call remote_read_bytes_1
7653 instead of target_read_live_memory.
7654 * tracepoint.c (set_traceframe_number): Remove.
7655 (make_cleanup_restore_traceframe_number): Likewise .
7656 * tracepoint.h (set_traceframe_number): Remove declaration.
7657 (make_cleanup_restore_traceframe_number): Likewise.
7659 2014-03-22 Yao Qi <yao@codesourcery.com>
7661 * remote.c (remote_read_bytes): Move code on reading from the
7663 (remote_read_bytes_1): ... here. New function.
7665 2014-03-22 Yao Qi <yao@codesourcery.com>
7667 * ctf.c (ctf_xfer_partial): Check the return value of
7668 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7669 return TARGET_XFER_UNAVAILABLE.
7670 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7671 * target.c (target_read_live_memory): Move it to remote.c.
7672 (memory_xfer_live_readonly_partial): Likewise.
7673 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7674 * remote.c (target_read_live_memory): Moved from target.c.
7675 (memory_xfer_live_readonly_partial): Likewise.
7676 (remote_read_bytes): Factored out from
7677 memory_xfer_partial_1.
7679 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7681 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7684 2014-03-21 Pedro Alves <palves@redhat.com>
7686 * infrun.c (normal_stop): Extend comment.
7688 2014-03-21 Hui Zhu <hui@codesourcery.com>
7689 Pedro Alves <palves@redhat.com>
7691 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7693 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7694 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7695 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7697 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7699 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7700 `z' formatted output modifier.
7702 2014-03-20 Tom Tromey <tromey@redhat.com>
7703 Sergio Durigan Junior <sergiodj@redhat.com>
7705 * probe.c (parse_probes): Turn assert into an ordinary error.
7706 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7707 exceptions when parsing probes. Rearrange the code for clarity.
7709 2014-03-20 Tom Tromey <tromey@redhat.com>
7712 * top.c (execute_command): Only dispatch events if the command
7715 2014-03-20 Tom Tromey <tromey@redhat.com>
7718 * infcall.c: Include event-top.h.
7719 (run_inferior_call): Call async_disable_stdin if needed.
7721 2014-03-20 Pedro Alves <palves@redhat.com>
7723 * infrun.c (prepare_to_proceed): Delete.
7724 (thread_still_needs_step_over): New function.
7725 (find_thread_needs_step_over): New function.
7726 (proceed): If the current thread needs a step-over, set its
7727 steping_over_breakpoint flag. Adjust to use
7728 find_thread_needs_step_over instead of prepare_to_proceed.
7729 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7730 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7732 (switch_back_to_stepped_thread): Step over breakpoints of all
7733 threads not the stepping thread, before switching back to the
7736 2014-03-20 Pedro Alves <palves@redhat.com>
7738 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7740 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7741 * infrun.c (saved_singlestep_ptid)
7742 (stepping_past_singlestep_breakpoint): Delete.
7743 (resume): Remove stepping_past_singlestep_breakpoint handling.
7744 (proceed): Store the prev_pc of the stepping thread too.
7745 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7747 (enum infwait_states): Delete infwait_thread_hop_state.
7748 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7750 (handle_inferior_event): Adjust.
7751 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7752 handling and the thread-hop code. Before removing single-step
7753 breakpoints, check whether the thread hit a single-step breakpoint
7754 of another thread. If it did, the trap is not a random signal.
7755 (switch_back_to_stepped_thread): If the event thread hit a
7756 single-step breakpoint, unblock it before switching to the
7757 stepping thread. Handle the case of the stepped thread having
7759 (keep_going): Handle the case of the current thread moving past a
7760 single-step breakpoint.
7762 2014-03-20 Pedro Alves <palves@redhat.com>
7765 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7766 are being stepped over.
7767 (breakpoint_address_match): Make extern.
7768 * breakpoint.h (breakpoint_address_match): New declaration.
7769 * inferior.h (stepping_past_instruction_at): New declaration.
7770 * infrun.c (struct step_over_info): New type.
7771 (step_over_info): New global.
7772 (set_step_over_info, clear_step_over_info)
7773 (stepping_past_instruction_at): New functions.
7774 (handle_inferior_event): Clear the step-over info when
7775 trap_expected is cleared.
7776 (resume): Remove now stale comment.
7777 (clear_proceed_status): Clear step-over info.
7778 (proceed): Adjust step-over handling to set or clear the step-over
7779 info instead of removing all breakpoints.
7780 (handle_signal_stop): When setting up a thread-hop, don't remove
7782 (stop_stepping): Clear step-over info.
7783 (keep_going): Adjust step-over handling to set or clear step-over
7784 info and then always inserting breakpoints, instead of removing
7785 all breakpoints when stepping over one.
7787 2014-03-20 Pedro Alves <palves@redhat.com>
7789 * infrun.c (previous_inferior_ptid): Adjust comment.
7790 (deferred_step_ptid): Delete.
7791 (infrun_thread_ptid_changed, prepare_to_proceed)
7792 (init_wait_for_inferior): Adjust.
7793 (handle_signal_stop): Delete deferred_step_ptid handling.
7795 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7798 * defs.h (sync_quit_force_run): New declaration.
7799 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7800 * event-top.c (async_sigterm_handler): New declaration.
7801 (async_sigterm_token): New variable.
7802 (async_init_signals): Create also async_sigterm_token.
7803 (async_sigterm_handler): New function.
7804 (sync_quit_force_run): New variable.
7805 (handle_sigterm): Replace quit_force call by other calls.
7806 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7808 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7810 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7811 offset into SPE pseudo registers.
7813 2014-03-18 Pedro Alves <palves@redhat.com>
7816 * inferior.h (print_stop_event): Declare.
7817 * infrun.c (print_stop_event): New, factored out from ...
7818 (normal_stop): ... this.
7819 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7820 of bpstat_print/print_stack_frame.
7822 2014-03-17 Tom Tromey <tromey@redhat.com>
7824 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7826 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7828 * ada-lang.c (decode_constrained_packed_array): Perform a
7829 minimal coercion for reference with coerce_ref instead of
7832 2014-03-17 Tristan Gingold <gingold@adacore.com>
7834 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7835 (darwin_solib_create_inferior_hook): Emit a warning if version
7838 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7840 * python/py-value.c (get_field_flag): Cast flag_name argument to
7841 PyObject_GetAttrString to support Python 2.4.
7843 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7845 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7846 (Global Maintainers): Remove Jan Kratochvil.
7848 2014-03-14 Pedro Alves <palves@redhat.com>
7850 * inferior.h (terminal_ours_for_output): Rename to ...
7851 (child_terminal_ours_for_output): ... this.
7852 (terminal_save_ours): Rename to ...
7853 (child_terminal_save_ours): ... this.
7854 (terminal_ours): Rename to ...
7855 (child_terminal_ours): ... this.
7856 (terminal_inferior): Rename to ...
7857 (child_terminal_inferior): ... this.
7858 (terminal_init_inferior): Rename to ...
7859 (child_terminal_init_inferior): ... this.
7860 (terminal_init_inferior_with_pgrp): Rename to ...
7861 (child_terminal_init_inferior_with_pgrp): ... this.
7862 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7863 (child_terminal_init_with_pgrp): ... this.
7864 (terminal_save_ours): Rename to ...
7865 (child_terminal_save_ours): ... this.
7866 (terminal_init_inferior): Rename to ...
7867 (child_terminal_init): ... this. Adjust.
7868 (terminal_inferior): Rename to ...
7869 (child_terminal_inferior): ... this.
7870 (terminal_ours_for_output): Rename to ...
7871 (child_terminal_ours_for_output): ... this. Adjust.
7872 (terminal_ours): Rename to ...
7873 (child_terminal_ours): ... this.
7874 (terminal_ours_1): Rename to ...
7875 (child_terminal_ours_1): ... this. Adjust.
7876 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7877 * windows-nat.c (do_initial_windows_stuff): Adjust.
7878 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7879 (gnu_terminal_init): ... this. Adjust.
7880 (gnu_target): Adjust.
7881 * inf-child.c (inf_child_target): Adjust.
7883 2014-03-13 Doug Evans <xdje42@gmail.com>
7886 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7889 2014-03-13 Doug Evans <xdje42@gmail.com>
7891 * value.c (record_latest_value): Call release_value_or_incref
7892 instead of release_value.
7894 2014-03-13 Pedro Alves <palves@redhat.com>
7896 * procfs.c (procfs_target): Don't override to_shortname,
7897 to_longname or to_doc.
7899 2014-03-13 Pedro Alves <palves@redhat.com>
7901 * inf-child.c (inf_child_open, inf_child_target): Don't mention
7902 Unix in user visible strings.
7904 2014-03-12 Stan Shebs <stan@codesourcery.com>
7906 * gdbtypes.h: Annotate comments for Doxygen, add a page
7907 block comment with some general info.
7909 2014-03-12 Pedro Alves <palves@redhat.com>
7911 * infcmd.c (prepare_execution_command): New function, factored out
7912 from several execution commands.
7913 (run_command_1, continue_command, step_1, jump_command)
7914 (signal_command, until_command, advance_command, finish_command)
7915 (attach_command): Use prepare_execution_command.
7917 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
7919 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7922 (struct arm_linux_thread_points): Removed.
7923 (struct arm_linux_process_info): New.
7924 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7925 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7926 (arm_linux_find_breakpoints_by_tid): Removed.
7927 (struct arch_lwp_info): New.
7928 (arm_linux_find_process_pid): New functions.
7929 (arm_linux_add_process): New functions.
7930 (arm_linux_process_info_get): New functions.
7931 (arm_linux_forget_process): New function.
7932 (arm_linux_get_debug_reg_state): New function.
7933 (struct update_registers_data): New.
7934 (update_registers_callback): New function.
7935 (arm_linux_insert_hw_breakpoint1): Updated.
7936 (arm_linux_remove_hw_breakpoint1): Updated.
7937 (arm_linux_insert_hw_breakpoint): Updated.
7938 (arm_linux_remove_hw_breakpoint): Updated.
7939 (arm_linux_insert_watchpoint): Updated.
7940 (arm_linux_remove_watchpoint): Updated.
7941 (arm_linux_new_thread): Updated.
7942 (arm_linux_prepare_to_resume): New function.
7943 (arm_linux_new_fork): New function.
7944 (_initialize_arm_linux_nat): Updated.
7946 2014-03-12 Pedro Alves <palves@redhat.com>
7948 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7950 2014-03-12 Tom Tromey <tromey@redhat.com>
7952 * inf-child.c (return_zero): New function.
7953 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7954 * aix-thread.c (aix_thread_inferior_created): New function.
7955 (aix_thread_attach): Remove.
7956 (init_aix_thread_ops): Don't set to_attach.
7957 (_initialize_aix_thread): Register inferior_created observer.
7958 * corelow.c (init_core_ops): Don't set to_attach or
7960 * exec.c (init_exec_ops): Don't set to_attach or
7962 * infcmd.c (run_command_1): Use find_run_target. Make direct
7964 (attach_command): Use find_attach_target. Make direct target
7966 * record-btrace.c (init_record_btrace_ops): Don't set
7968 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7970 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7971 set to_create_inferior.
7972 * target.c (complete_target_initialization): Add assertion.
7973 (target_create_inferior): Remove.
7974 (find_default_attach, find_default_create_inferior): Remove.
7975 (find_attach_target, find_run_target): New functions.
7976 (find_default_is_async_p, find_default_can_async_p)
7977 (target_supports_non_stop, target_attach): Remove.
7978 (init_dummy_target): Don't set to_create_inferior or
7979 to_supports_non_stop.
7980 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7981 TARGET_DEFAULT_FUNC.
7982 <to_create_inferior>: Add comment.
7983 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7984 TARGET_DEFAULT_RETURN.
7985 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7986 (find_attach_target, find_run_target): Declare.
7987 (target_create_inferior): Remove.
7988 (target_has_execution_1): Update comment.
7989 (target_supports_non_stop): Remove.
7990 * target-delegates.c: Rebuild.
7992 2014-03-12 Pedro Alves <palves@redhat.com>
7994 * inf-child.h: Update comment to not mention Unix.
7996 2014-03-12 Pedro Alves <palves@redhat.com>
7998 * inf-child.c: Update top comment to not mention Unix. Add
7999 generic comment describing how this target is meant to be used.
8000 (inf_child_post_attach, inf_child_post_startup_inferior)
8001 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8004 2014-03-12 Pedro Alves <palves@redhat.com>
8006 * nto-procfs.c: Include inf-child.h.
8007 (procfs_ops): Delete global.
8008 (procfs_can_run): Delete method.
8009 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8010 target pointer instead of referencing procfs_ops.
8011 (procfs_prepare_to_store): Delete.
8012 (init_procfs_ops): Delete function.
8013 (procfs_target): New function, based on init_procfs_ops, but
8014 inherit inf_child_target.
8015 (_initialize_procfs): Use procfs_target.
8017 2014-03-12 Pedro Alves <palves@redhat.com>
8019 * windows-nat.c: Include inf-child.h.
8020 (windows_ops): Delete global.
8021 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8023 (init_windows_ops): Delete function.
8024 (windows_target): New function, based on init_windows_ops, but
8025 inherit inf_child_target.
8026 (_initialize_windows_nat): Use windows_target. Install x86
8027 specific target methods here.
8029 2014-03-10 Doug Evans <xdje42@gmail.com>
8031 * guile/guile.c (call_initialize_gdb_module): New function.
8032 (initialize_guile): Replace call to scm_init_guile with call to
8035 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8037 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8038 in call to TYPE_CODE macro.
8040 2014-03-10 Jerome Guitton <guitton@adacore.com>
8042 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8043 Resolve tagged types to full view.
8045 2014-03-10 Hui Zhu <hui@codesourcery.com>
8047 * target.h (target_insert_breakpoint): Remove "hardware" from its
8050 2014-03-07 Doug Evans <dje@google.com>
8052 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8054 2014-03-07 Doug Evans <dje@google.com>
8056 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8057 Remove unused local comp_dir_attr. Assert exactly one of
8058 stub_comp_unit_die, stub_comp_dir is non-NULL.
8060 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8062 * target.h (complete_target_initialization, add_target):
8065 2014-03-07 Pedro Alves <palves@redhat.com>
8067 * go32-nat.c: Include inf-child.h.
8068 (go32_ops): Delete global.
8069 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8071 (go32_create_inferior): Push the passed in target pointer instead
8072 of referencing go32_ops.
8073 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8074 (go32_target): New function, based on init_go32_ops, but inherit
8076 (_initialize_go32_nat): Use go32_target. Move parts of
8079 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8081 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8082 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8083 SYMBOL_VALUE_ADDRESS.
8084 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8086 2014-03-06 Yao Qi <yao@codesourcery.com>
8088 * breakpoint.c (get_tracepoint_by_number): Remove argument
8089 optional_p. All callers updated. Adjust comments. Update
8091 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8093 2014-03-06 Yao Qi <yao@codesourcery.com>
8095 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8096 early if get_number returns zero. Use 'p' instead of 'args'.
8098 2014-03-06 Yao Qi <yao@codesourcery.com>
8100 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8103 2014-03-06 Yao Qi <yao@codesourcery.com>
8105 PR breakpoints/16508
8106 * tracepoint.c (check_trace_running): New function.
8107 (trace_find_command): Move code to check_trace_running and
8108 call check_trace_running.
8109 (trace_find_pc_command): Likewise.
8110 (trace_find_tracepoint_command): Likewise.
8111 (trace_find_line_command): Likewise.
8112 (trace_find_range_command): Likewise.
8113 * tracepoint.h (check_trace_running): Likewise.
8114 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8116 2014-03-06 Yao Qi <yao@codesourcery.com>
8118 * target.h (struct target_ops) <to_traceframe_info>: Use
8119 TARGET_DEFAULT_NORETURN (tcomplain ()).
8120 * target-delegates.c: Regenerated.
8122 2014-03-05 Pedro Alves <palves@redhat.com>
8125 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8126 void. Update comment.
8127 (dcache_xfer_memory): Delete.
8128 (dcache_read_memory_partial): New, based on the read bits of
8130 (dcache_update): Add status parameter. Use ULONGEST for len, and
8131 adjust. Discard cache lines if the reason for the update was
8133 * dcache.h (dcache_xfer_memory): Delete declaration.
8134 (dcache_read_memory_partial): New declaration.
8135 (dcache_update): Update prototype.
8136 * target.c (raw_memory_xfer_partial): Update the dcache here.
8137 (memory_xfer_partial_1): Don't handle dcache writes here.
8139 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8141 * remote-sim.c (gdbsim_load): Add const to prog.
8143 2014-03-03 Tom Tromey <tromey@redhat.com>
8145 * elfread.c (probe_key): Change to bfd_data.
8146 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8147 now per-BFD, not per-objfile.
8148 * stap-probe.c (stap_probe_destroy): Update comment.
8149 (handle_stap_probe): Allocate on the per-BFD obstack.
8151 2014-03-03 Tom Tromey <tromey@redhat.com>
8153 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8154 * breakpoint.c (create_longjmp_master_breakpoint): Use
8156 (add_location_to_breakpoint, bkpt_probe_insert_location)
8157 (bkpt_probe_remove_location): Update.
8158 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8159 * elfread.c (elf_symfile_relocate_probe): Remove.
8160 (elf_probe_fns): Update.
8161 (insert_exception_resume_breakpoint): Change type of "probe"
8162 parameter to bound_probe.
8163 (check_exception_resume): Update.
8164 * objfiles.c (objfile_relocate1): Don't relocate probes.
8165 * probe.c (bound_probe_s): New typedef.
8166 (parse_probes): Use get_probe_address. Set sal's objfile.
8167 (find_probe_by_pc): Return a bound_probe.
8168 (collect_probes): Return a VEC(bound_probe_s).
8169 (compare_probes): Update.
8170 (gen_ui_out_table_header_info): Change type of "probes"
8172 (info_probes_for_ops): Update.
8173 (get_probe_address): New function.
8174 (probe_safe_evaluate_at_pc): Update.
8175 * probe.h (struct probe_ops) <get_probe_address>: New field.
8176 <set_semaphore, clear_semaphore>: Add objfile parameter.
8177 (struct probe) <objfile>: Remove field.
8179 <address>: Update comment.
8180 (struct bound_probe): New.
8181 (find_probe_by_pc): Return a bound_probe.
8182 (get_probe_address): Declare.
8183 * solib-svr4.c (struct probe_and_action) <address>: New field.
8184 (hash_probe_and_action, equal_probe_and_action): Update.
8185 (register_solib_event_probe): Add address parameter.
8186 (solib_event_probe_at): Update.
8187 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8189 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8190 (stap_get_probe_address): New function.
8191 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8192 (compile_probe_arg): Update.
8193 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8195 (handle_stap_probe): Don't relocate the probe.
8196 (stap_relocate): Remove.
8197 (stap_gen_info_probes_table_values): Update.
8198 (stap_probe_ops): Remove stap_relocate.
8199 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8200 (debug_sym_probe_fns): Update.
8201 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8202 * symtab.c (init_sal): Use memset.
8203 * symtab.h (struct symtab_and_line) <objfile>: New field.
8204 * tracepoint.c (start_tracing, stop_tracing): Update.
8206 2014-03-03 Tom Tromey <tromey@redhat.com>
8208 * probe.h (parse_probes, find_probe_by_pc)
8209 (find_probes_in_objfile): Fix comments.
8211 2014-03-02 Doug Evans <xdje42@gmail.com>
8213 * infrun.c (handle_signal_stop): Replace test for
8214 TARGET_WAITKIND_STOPPED with an assert.
8216 2014-03-02 Doug Evans <xdje42@gmail.com>
8218 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8220 2014-03-02 Doug Evans <xdje42@gmail.com>
8222 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8224 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8226 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8228 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8230 * i386obsd-nat.c: Include "obsd-nat.h".
8231 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8233 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8235 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8237 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8239 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8241 * mips64obsd-nat.c: Include "obsd-nath".
8242 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8244 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8246 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8248 * amd64obsd-nat.c: Include "obsd-nat,h.
8249 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8251 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8253 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8255 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8256 (find_overload_match): Update call to find_oload_champ.
8257 (find_oload_champ_namespace_loop): Likewise
8259 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8261 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8263 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8264 * config/sparc/obsd64.mh: New file.
8265 * sparc64obsd-nat.c: New file.
8267 * obsd-nat.h: New file.
8268 * obsd-nat.c: New file.
8269 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8270 (ALLDEPFILES): Add obsd-nat.c.
8272 2014-02-28 Tom Tromey <tromey@redhat.com>
8274 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8275 * cli-out.h (cli_ui_out_impl): Now const.
8276 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8277 * ui-out.c (struct ui_out) <impl>: Now const.
8278 (default_ui_out_impl): Now const.
8279 (ui_out_new): Make 'impl' parameter const.
8280 * ui-out.h (ui_out_new): Update.
8282 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8284 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8286 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8288 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8290 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8292 Additional PR 8882 fix.
8293 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8295 2014-02-27 Pedro Alves <palves@redhat.com>
8297 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8300 2014-02-27 Pedro Alves <palves@redhat.com>
8303 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8304 * nat/linux-waitpid.c: Include string.h.
8305 (status_to_str): Moved here and made extern.
8306 * nat/linux-waitpid.h (status_to_str): New declaration.
8308 2014-02-27 Hui Zhu <hui@codesourcery.com>
8311 * infrun.c (ptid_match): Move ...
8312 * common/ptid.c (ptid_match): ... here.
8313 * inferior.h (ptid_match): Move ...
8314 * common/ptid.h (ptid_match): ... here.
8316 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8318 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8319 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8322 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8324 * obsd-tdep.c (obsd_auxv_parse): New function.
8325 (obsd_init_abi): Set auxv_parse.
8327 * gdbarch.sh (auxv_parse): New.
8328 * gdbarch.h: Regenerated.
8329 * gdbarch.c: Regenerated.
8330 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8332 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8334 * guile/scm-value.c (gdbscm_history_append_x): New function.
8335 (value_functions): Add it.
8337 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8339 * dwarf2read.c (attr_value_as_address): New function.
8340 (dwarf2_find_base_address, read_call_site_scope): Use
8341 attr_value_as_address in place of DW_ADDR.
8342 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8343 the low and high addresses. Slight rework of the handling
8344 of the high pc being a constant form, and limit it to
8345 DWARF verson 4 or higher.
8346 (dwarf2_record_block_ranges): Likewise.
8347 (read_partial_die): Likewise.
8348 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8350 2014-02-26 Tom Tromey <tromey@redhat.com>
8352 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8354 2014-02-26 Tom Tromey <tromey@redhat.com>
8356 * elfread.c (elf_read_minimal_symbols): Return early if
8357 minimal symbols have already been read. Add "ei" parameter.
8358 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8359 * minsyms.c (prim_record_minimal_symbol_full): Update.
8360 * objfiles.h (struct objstats) <n_minsyms>: Move...
8361 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8362 * symmisc.c (print_objfile_statistics): Update.
8364 2014-02-26 Tom Tromey <tromey@redhat.com>
8366 * elfread.c (elf_read_minimal_symbols): New function, from
8368 (elf_symfile_read): Call it.
8370 2014-02-26 Tom Tromey <tromey@redhat.com>
8372 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8373 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8374 (lookup_minimal_symbol_solib_trampoline)
8375 (lookup_minimal_symbol_by_pc_section_1)
8376 (lookup_minimal_symbol_and_objfile): Update.
8377 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8378 Don't allocate a minimal symbol if minsyms have already been read.
8379 (build_minimal_symbol_hash_tables): Update.
8380 (install_minimal_symbols): Do nothing if minsyms already read.
8381 Use the per-BFD obstack.
8382 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8383 * objfiles.c (allocate_objfile): Call
8384 terminate_minimal_symbol_table later.
8385 (have_minimal_symbols): Update.
8386 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8387 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8388 Move from struct objfile.
8389 <minsyms_read>: New field.
8390 (struct objfile) <msymbols, minimal_symbol_count,
8391 msymbol_hash, msymbol_demangled_hash>: Move.
8392 (ALL_OBJFILE_MSYMBOLS): Update.
8393 * symfile.c (read_symbols): Set minsyms_read.
8394 (reread_symbols): Update.
8395 * symmisc.c (dump_objfile, dump_msymbols): Update.
8397 2014-02-26 Tom Tromey <tromey@redhat.com>
8399 * minsyms.c (msymbols_sort): Remove.
8400 * minsyms.h (msymbols_sort): Remove.
8401 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8402 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8403 * elfread.c (elf_symtab_read): Don't add section offsets.
8404 * xcoffread.c (record_minimal_symbol): Don't add section offset
8405 to minimal symbol address.
8406 * somread.c (text_offset, data_offset): Remove.
8407 (som_symtab_read): Don't add section offsets to minimal symbol
8409 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8410 Don't add section offsets to minimal symbols.
8411 * coffread.c (coff_symtab_read): Don't add section offsets
8412 to minimal symbol addresses.
8413 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8414 to minimal symbol addresses.
8415 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8416 section offset to minimal symbol addresses.
8417 * mdebugread.c (parse_partial_symbols): Don't add section
8418 offset to minimal symbol addresses.
8419 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8420 offset to minimal symbol addresses.
8422 2014-02-26 Tom Tromey <tromey@redhat.com>
8424 * ada-lang.c (ada_main_name): Update.
8425 (ada_add_standard_exceptions): Update.
8426 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8427 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8428 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8429 * auxv.c (ld_so_xfer_auxv): Update.
8430 * avr-tdep.c (avr_scan_prologue): Update.
8431 * ax-gdb.c (gen_var_ref): Update.
8432 * blockframe.c (get_pc_function_start)
8433 (find_pc_partial_function_gnu_ifunc): Update.
8434 * breakpoint.c (create_overlay_event_breakpoint)
8435 (create_longjmp_master_breakpoint)
8436 (create_std_terminate_master_breakpoint)
8437 (create_exception_master_breakpoint): Update.
8438 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8439 * c-valprint.c (c_val_print): Update.
8440 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8441 * common/agent.c (agent_look_up_symbols): Update.
8442 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8443 * dwarf2loc.c (call_site_to_target_addr): Update.
8444 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8445 * elfread.c (elf_gnu_ifunc_record_cache)
8446 (elf_gnu_ifunc_resolve_by_got): Update.
8447 * findvar.c (default_read_var_value): Update.
8448 * frame.c (inside_main_func): Update.
8449 * frv-tdep.c (frv_frame_this_id): Update.
8450 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8451 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8453 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8454 (hppa_hpux_find_dummy_bpaddr): Update.
8455 * hppa-tdep.c (hppa_symbol_address): Update.
8456 * infcmd.c (until_next_command): Update.
8457 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8459 * linespec.c (minsym_found, add_minsym): Update.
8460 * linux-nat.c (get_signo): Update.
8461 * linux-thread-db.c (inferior_has_bug): Update.
8462 * m32c-tdep.c (m32c_return_value)
8463 (m32c_m16c_address_to_pointer): Update.
8464 * m32r-tdep.c (m32r_frame_this_id): Update.
8465 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8466 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8467 * maint.c (maintenance_translate_address): Update.
8468 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8469 (frob_address): New function.
8470 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8471 frob_address. Rename parameter to "pc_in".
8472 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8474 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8476 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8477 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8478 * objc-lang.c (find_objc_msgsend): Update.
8479 * objfiles.c (objfile_relocate1): Update.
8480 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8481 * p-valprint.c (pascal_val_print): Update.
8482 * parse.c (write_exp_msymbol): Update.
8483 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8484 (ppc_elfv2_skip_entrypoint): Update.
8485 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8486 * printcmd.c (build_address_symbolic, msym_info)
8487 (address_info): Update.
8488 * proc-service.c (ps_pglobal_lookup): Update.
8489 * psymtab.c (find_pc_sect_psymtab_closer)
8490 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8491 Change msymbol parameter to bound_minimal_symbol.
8492 * ravenscar-thread.c (get_running_thread_id): Update.
8493 * remote.c (remote_check_symbols): Update.
8494 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8496 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8497 * solib-dsbt.c (lm_base): Update.
8498 * solib-frv.c (lm_base, main_got): Update.
8499 * solib-irix.c (locate_base): Update.
8500 * solib-som.c (som_solib_create_inferior_hook)
8501 (link_map_start): Update.
8502 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8503 * solib-svr4.c (elf_locate_base, enable_break): Update.
8504 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8505 (flush_ea_cache): Update.
8506 * stabsread.c (define_symbol, scan_file_globals): Update.
8507 * stack.c (find_frame_funname): Update.
8508 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8509 (debug_qf_find_pc_sect_symtab): Update.
8510 * symfile.c (simple_read_overlay_table)
8511 (simple_overlay_update): Update.
8512 * symfile.h (struct quick_symbol_functions)
8513 <find_pc_sect_symtab>: Change type of msymbol to
8514 bound_minimal_symbol.
8515 * symmisc.c (dump_msymbols): Update.
8516 * symtab.c (find_pc_sect_symtab_via_partial)
8517 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8518 (search_symbols, print_msymbol_info): Update.
8519 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8520 (MSYMBOL_VALUE_ADDRESS): Redefine.
8521 (BMSYMBOL_VALUE_ADDRESS): New macro.
8522 * tracepoint.c (scope_info): Update.
8523 * tui/tui-disasm.c (tui_find_disassembly_address)
8524 (tui_get_begin_asm_address): Update.
8525 * valops.c (find_function_in_inferior): Update.
8526 * value.c (value_static_field, value_fn_field): Update.
8528 2014-02-26 Tom Tromey <tromey@redhat.com>
8530 * ada-lang.c (ada_update_initial_language): Update.
8531 (ada_main_name, ada_has_this_exception_support): Update.
8532 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8533 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8534 * arm-tdep.c (arm_skip_stub): Update.
8535 * auxv.c (ld_so_xfer_auxv): Update.
8536 * avr-tdep.c (avr_scan_prologue): Update.
8537 * ax-gdb.c (gen_var_ref): Update.
8538 * breakpoint.c (struct breakpoint_objfile_data)
8539 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8540 type to bound_minimal_symbol.
8541 (create_overlay_event_breakpoint)
8542 (create_longjmp_master_breakpoint)
8543 (create_std_terminate_master_breakpoint)
8544 (create_exception_master_breakpoint): Update.
8545 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8546 * c-exp.y (classify_name): Update.
8547 * coffread.c (coff_symfile_read): Update.
8548 * common/agent.c (agent_look_up_symbols): Update.
8549 * d-lang.c (d_main_name): Update.
8550 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8551 * dec-thread.c (enable_dec_thread): Update.
8552 * dwarf2loc.c (call_site_to_target_addr): Update.
8553 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8554 * eval.c (evaluate_subexp_standard): Update.
8555 * findvar.c (struct minsym_lookup_data) <result>: Change type
8556 to bound_minimal_symbol.
8558 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8559 * frame.c (inside_main_func): Update.
8560 * frv-tdep.c (frv_frame_this_id): Update.
8561 * gcore.c (call_target_sbrk): Update.
8562 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8563 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8565 * go-lang.c (go_main_name): Update.
8566 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8567 (hppa_hpux_find_import_stub_for_addr): Update.
8568 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8569 Update. Change return type.
8570 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8572 * jit.c (jit_breakpoint_re_set_internal): Update.
8573 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8575 * linux-nat.c (get_signo): Update.
8576 * linux-thread-db.c (inferior_has_bug): Update
8577 * m32c-tdep.c (m32c_return_value)
8578 (m32c_m16c_address_to_pointer): Update.
8579 * m32r-tdep.c (m32r_frame_this_id): Update.
8580 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8581 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8582 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8583 lookup_minimal_symbol. Change return type.
8584 (lookup_minimal_symbol): Remove.
8585 (lookup_bound_minimal_symbol): Update.
8586 (lookup_minimal_symbol_text): Change return type.
8587 (lookup_minimal_symbol_solib_trampoline): Change return type.
8588 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8589 (lookup_minimal_symbol_solib_trampoline): Change return type.
8590 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8591 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8592 (value_nsstring, find_imps): Update.
8593 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8594 * p-lang.c (pascal_main_name): Update.
8595 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8596 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8597 * proc-service.c (ps_pglobal_lookup): Update.
8598 * ravenscar-thread.c (get_running_thread_msymbol): Change
8600 (has_ravenscar_runtime, get_running_thread_id): Update.
8601 * remote.c (remote_check_symbols): Update.
8602 * sol-thread.c (ps_pglobal_lookup): Update.
8603 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8604 * solib-dsbt.c (lm_base): Update.
8605 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8607 * solib-irix.c (locate_base): Update.
8608 * solib-som.c (som_solib_create_inferior_hook)
8609 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8611 * solib-spu.c (spu_enable_break): Update.
8612 * solib-svr4.c (elf_locate_base, enable_break): Update.
8613 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8614 (flush_ea_cache): Update.
8615 * stabsread.c (define_symbol): Update.
8616 * symfile.c (simple_read_overlay_table): Update.
8617 * symtab.c (find_pc_sect_line): Update.
8618 * tracepoint.c (scope_info): Update.
8619 * tui-disasm.c (tui_get_begin_asm_address): Update.
8620 * value.c (value_static_field): Update.
8622 2014-02-26 Tom Tromey <tromey@redhat.com>
8624 * minsyms.c (prim_record_minimal_symbol_full): Use
8625 SET_MSYMBOL_VALUE_ADDRESS.
8626 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8627 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8628 SET_MSYMBOL_VALUE_ADDRESS.
8629 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8630 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8632 2014-02-26 Tom Tromey <tromey@redhat.com>
8634 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8635 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8636 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8637 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8638 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8639 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8640 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8641 * ada-lang.c (ada_main_name): Update.
8642 (ada_lookup_simple_minsym): Update.
8643 (ada_make_symbol_completion_list): Update.
8644 (ada_add_standard_exceptions): Update.
8645 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8646 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8647 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8648 * arm-tdep.c (skip_prologue_function): Update.
8649 (arm_skip_stack_protector, arm_skip_stub): Update.
8650 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8651 (arm_wince_skip_main_prologue): Update.
8652 * auxv.c (ld_so_xfer_auxv): Update.
8653 * avr-tdep.c (avr_scan_prologue): Update.
8654 * ax-gdb.c (gen_var_ref): Update.
8655 * block.c (call_site_for_pc): Update.
8656 * blockframe.c (get_pc_function_start): Update.
8657 (find_pc_partial_function_gnu_ifunc): Update.
8658 * breakpoint.c (create_overlay_event_breakpoint): Update.
8659 (create_longjmp_master_breakpoint): Update.
8660 (create_std_terminate_master_breakpoint): Update.
8661 (create_exception_master_breakpoint): Update.
8662 (resolve_sal_pc): Update.
8663 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8664 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8666 * c-valprint.c (c_val_print): Update.
8667 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8668 * coffread.c (coff_symfile_read): Update.
8669 * common/agent.c (agent_look_up_symbols): Update.
8670 * dbxread.c (find_stab_function_addr): Update.
8671 (end_psymtab): Update.
8672 * dwarf2loc.c (call_site_to_target_addr): Update.
8673 (func_verify_no_selftailcall): Update.
8674 (tailcall_dump): Update.
8675 (call_site_find_chain_1): Update.
8676 (dwarf_expr_reg_to_entry_parameter): Update.
8677 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8678 (elf_gnu_ifunc_resolve_by_got): Update.
8679 * f-valprint.c (info_common_command): Update.
8680 * findvar.c (read_var_value): Update.
8681 * frame.c (get_prev_frame_1): Update.
8682 (inside_main_func): Update.
8683 * frv-tdep.c (frv_skip_main_prologue): Update.
8684 (frv_frame_this_id): Update.
8685 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8686 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8687 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8688 (gnuv3_skip_trampoline): Update.
8689 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8690 (hppa64_hpux_in_solib_call_trampoline): Update.
8691 (hppa_hpux_skip_trampoline_code): Update.
8692 (hppa64_hpux_search_dummy_call_sequence): Update.
8693 (hppa_hpux_find_import_stub_for_addr): Update.
8694 (hppa_hpux_find_dummy_bpaddr): Update.
8695 * hppa-tdep.c (hppa_symbol_address)
8696 (hppa_lookup_stub_minimal_symbol): Update.
8697 * i386-tdep.c (i386_skip_main_prologue): Update.
8698 (i386_pe_skip_trampoline_code): Update.
8699 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8700 * infcall.c (get_function_name): Update.
8701 * infcmd.c (until_next_command): Update.
8702 * jit.c (jit_breakpoint_re_set_internal): Update.
8703 (jit_inferior_init): Update.
8704 * linespec.c (minsym_found): Update.
8705 (add_minsym): Update.
8706 * linux-fork.c (info_checkpoints_command): Update.
8707 * linux-nat.c (get_signo): Update.
8708 * linux-thread-db.c (inferior_has_bug): Update.
8709 * m32c-tdep.c (m32c_return_value): Update.
8710 (m32c_m16c_address_to_pointer): Update.
8711 (m32c_m16c_pointer_to_address): Update.
8712 * m32r-tdep.c (m32r_frame_this_id): Update.
8713 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8714 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8715 * maint.c (maintenance_translate_address): Update.
8716 * minsyms.c (add_minsym_to_hash_table): Update.
8717 (add_minsym_to_demangled_hash_table): Update.
8718 (msymbol_objfile): Update.
8719 (lookup_minimal_symbol): Update.
8720 (iterate_over_minimal_symbols): Update.
8721 (lookup_minimal_symbol_text): Update.
8722 (lookup_minimal_symbol_by_pc_name): Update.
8723 (lookup_minimal_symbol_solib_trampoline): Update.
8724 (lookup_minimal_symbol_by_pc_section_1): Update.
8725 (lookup_minimal_symbol_and_objfile): Update.
8726 (prim_record_minimal_symbol_full): Update.
8727 (compare_minimal_symbols): Update.
8728 (compact_minimal_symbols): Update.
8729 (build_minimal_symbol_hash_tables): Update.
8730 (install_minimal_symbols): Update.
8731 (terminate_minimal_symbol_table): Update.
8732 (find_solib_trampoline_target): Update.
8733 (minimal_symbol_upper_bound): Update.
8734 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8735 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8736 (mips_skip_pic_trampoline_code): Update.
8737 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8738 * objc-lang.c (selectors_info): Update.
8739 (classes_info): Update.
8740 (find_methods): Update.
8741 (find_imps): Update.
8742 (find_objc_msgsend): Update.
8743 * objfiles.c (objfile_relocate1): Update.
8744 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8745 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8746 * p-valprint.c (pascal_val_print): Update.
8747 * parse.c (write_exp_msymbol): Update.
8748 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8749 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8750 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8751 * printcmd.c (build_address_symbolic): Update.
8753 (address_info): Update.
8754 * proc-service.c (ps_pglobal_lookup): Update.
8755 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8756 (find_pc_sect_psymtab): Update.
8757 * python/py-framefilter.c (py_print_frame): Update.
8758 * ravenscar-thread.c (get_running_thread_id): Update.
8759 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8761 * remote.c (remote_check_symbols): Update.
8762 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8763 (rs6000_skip_trampoline_code): Update.
8764 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8765 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8766 * solib-dsbt.c (lm_base): Update.
8767 * solib-frv.c (lm_base): Update.
8769 * solib-irix.c (locate_base): Update.
8770 * solib-som.c (som_solib_create_inferior_hook): Update.
8771 (som_solib_desire_dynamic_linker_symbols): Update.
8772 (link_map_start): Update.
8773 * solib-spu.c (spu_enable_break): Update.
8774 (ocl_enable_break): Update.
8775 * solib-svr4.c (elf_locate_base): Update.
8776 (enable_break): Update.
8777 * spu-tdep.c (spu_get_overlay_table): Update.
8778 (spu_catch_start): Update.
8779 (flush_ea_cache): Update.
8780 * stabsread.c (define_symbol): Update.
8781 (scan_file_globals): Update.
8782 * stack.c (find_frame_funname): Update.
8783 (frame_info): Update.
8784 * symfile.c (simple_read_overlay_table): Update.
8785 (simple_overlay_update): Update.
8786 * symmisc.c (dump_msymbols): Update.
8787 * symtab.c (fixup_section): Update.
8788 (find_pc_sect_line): Update.
8789 (skip_prologue_sal): Update.
8790 (search_symbols): Update.
8791 (print_msymbol_info): Update.
8792 (rbreak_command): Update.
8793 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8794 (completion_list_objc_symbol): Update.
8795 (default_make_symbol_completion_list_break_on): Update.
8796 * tracepoint.c (scope_info): Update.
8797 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8798 (tui_get_begin_asm_address): Update.
8799 * valops.c (find_function_in_inferior): Update.
8800 * value.c (value_static_field): Update.
8801 (value_fn_field): Update.
8803 2014-02-26 Tom Tromey <tromey@redhat.com>
8805 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8806 bound minimal symbols. Move code that knows about minsym
8808 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8810 * minsyms.h (minimal_symbol_upper_bound): Declare.
8811 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8812 minimal_symbol_upper_bound.
8814 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8816 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8817 Use the type's name if its basic type does not have a tag.
8819 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8821 * dwarf2read.c (read_subrange_type): Add comment.
8823 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8825 * dwarf2read.c (update_enumeration_type_from_children): New
8826 function, mostly extracted from process_structure_scope.
8827 (read_enumeration_type): Call update_enumeration_type_from_children.
8828 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8829 and flag_flag_enum fields.
8831 2014-02-26 Pedro Alves <palves@redhat.com>
8833 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8834 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8835 to_xfer_partial method.
8837 2014-02-26 Pedro Alves <palves@redhat.com>
8839 * target.c (complete_target_initialization): Don't install
8840 default_xfer_partial as to_xfer_partial hook.
8842 (update_current_target): Don't INHERIT nor de_fault
8843 deprecated_xfer_memory. Delete de_fault macro.
8844 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8845 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8846 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8849 2014-02-26 Pedro Alves <palves@redhat.com>
8851 * go32-nat.c (my_write_child): New function.
8852 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8853 (go32_xfer_partial): New function.
8854 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8855 Instead install a to_xfer_partial hook.
8857 2014-02-26 Pedro Alves <palves@redhat.com>
8859 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8860 to_xfer_partial helper. Rewrite.
8861 (procfs_xfer_partial): New function.
8862 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8863 Install a to_xfer_partial hook.
8865 2014-02-26 Pedro Alves <palves@redhat.com>
8867 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8868 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8869 (m32r_xfer_partial): New function.
8870 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8871 Install a to_xfer_partial hook.
8873 2014-02-26 Pedro Alves <palves@redhat.com>
8875 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8877 (mips_xfer_partial): New function.
8878 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8879 hook. Install a to_xfer_partial hook.
8881 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8883 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8884 * gdbtypes.c (create_array_type_with_stride): New function,
8885 renaming create_array_type, but with an added parameter
8886 called "bit_stride".
8887 (create_array_type): Re-implement using
8888 create_array_type_with_stride.
8889 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8890 and DW_AT_bit_stride attributes.
8892 2014-02-26 Pedro Alves <palves@redhat.com>
8894 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8895 task-specific breakpoints.
8897 2014-02-25 Pedro Alves <palves@redhat.com>
8899 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8900 handling of object == TARGET_OBJECT_UNWIND_TABLE.
8902 2014-02-25 Stan Shebs <stan@codesourcery.com>
8904 * defs.h: Annotate comments for Doxygen.
8906 2014-02-25 Tom Tromey <tromey@redhat.com>
8908 * target.h (target_ignore): Don't declare.
8909 * target.c (target_ignore): Remove.
8911 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8914 * auto-load.c (auto_load_objfile_script_1): Change filename to
8917 2014-02-25 Joel Brobecker <brobecker@adacore.com>
8919 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8920 documentation. Adjust prototype to match the target_ops
8921 to_xfer_partial method. Adjust implementation accordingly.
8923 2014-02-25 Hui Zhu <hui@codesourcery.com>
8925 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8928 2014-02-25 Kevin Buettner <kevinb@redhat.com>
8930 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8931 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8932 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8933 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8934 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8935 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8936 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8937 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8939 (rl78_register_type): Use a data pointer type for SP and
8940 new pseudo registers mentioned above. Use a 16 bit integer
8941 type for all other register pairs.
8942 (rl78_register_name, rl78_g10_register_name): Update for
8943 new pseudo registers.
8944 (rl78_pseudo_register_read): Likewise.
8945 (rl78_pseudo_register_write): Likewise.
8946 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8947 to the newly added pseudo registers.
8949 2014-02-24 Doug Evans <dje@google.com>
8951 * value.c (record_latest_value): Fix comment.
8952 * printcmd.c (print_command_1): Remove code to handle -1 return from
8953 record_latest_value.
8955 2014-02-24 Pedro Alves <palves@redhat.com>
8957 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8958 deprecated_xfer_memory hook.
8959 (procfs_xfer_partial): Call procfs_xfer_memory instead
8960 of the deprecated_xfer_memory target hook.
8961 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8964 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8966 * windows-nat.c (windows_xfer_shared_libraries): Return
8967 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8968 requested object is TARGET_OBJECT_LIBRARIES.
8970 2014-02-24 Yao Qi <yao@codesourcery.com>
8972 * target.h (enum target_xfer_status)
8973 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8974 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8976 * corefile.c (memory_error_message): User updated.
8977 * exec.c (section_table_read_available_memory): Likewise.
8978 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8979 * target.c (target_xfer_status_to_string): Likewise.
8980 (raw_memory_xfer_partial): Likewise.
8981 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8982 * valops.c (read_value_memory): Likewise.
8983 * exec.h: Update comments.
8985 2014-02-24 Yao Qi <yao@codesourcery.com>
8987 * target.c (target_xfer_status_to_string): Rename argument err
8989 * target.h (target_xfer_status_to_string): Update declaration.
8990 Replace target_xfer_error_to_string with
8991 target_xfer_status_to_string in comment.
8993 2014-02-24 Yao Qi <yao@codesourcery.com>
8995 * mips-linux-nat.c (super_close): Update its type.
8996 (mips_linux_close): Pass 'self' to super_close.
8998 2014-02-24 Yao Qi <yao@codesourcery.com>
9000 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9001 * corefile.c (read_memory): Adjusted.
9002 * target.c (target_write_with_progress): Adjusted.
9004 2014-02-23 Yao Qi <yao@codesourcery.com>
9008 2013-10-25 Yao Qi <yao@codesourcery.com>
9010 * remote.c (remote_traceframe_info): Return early if
9011 traceframe is not selected.
9013 2013-07-19 Yao Qi <yao@codesourcery.com>
9015 * target.c (update_current_target): Change the default action
9016 of 'to_traceframe_info' from tcomplain to return_zero.
9017 * target.h (struct target_ops) <to_traceframe_info>: Add more
9020 2014-02-23 Yao Qi <yao@codesourcery.com>
9022 * valops.c (read_value_memory): Rewrite it. Call
9023 target_xfer_partial in a loop.
9024 * exec.h (section_table_available_memory): Remove declaration.
9025 Move comments to ...
9026 * exec.c (section_table_available_memory): ... here. Make it
9029 2014-02-23 Yao Qi <yao@codesourcery.com>
9031 * exec.c (section_table_read_available_memory): New function.
9032 * exec.h (section_table_read_available_memory): Declare.
9033 * ctf.c (ctf_xfer_partial): Call
9034 section_table_read_available_memory.
9035 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9037 2014-02-23 Yao Qi <yao@codesourcery.com>
9039 * ctf.c (ctf_xfer_partial): Move code to ...
9040 * exec.c (exec_read_partial_read_only): ... it. New function.
9041 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9042 * tracefile.c: Include "exec.h".
9043 * exec.h (exec_read_partial_read_only): Declare.
9045 2014-02-23 Yao Qi <yao@codesourcery.com>
9047 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9048 (tfile_has_memory): Remove.
9049 (init_tfile_ops): Don't set fields to_has_all_memory and
9050 to_has_memory of tfile_ops.
9051 * tracefile.c (tracefile_has_all_memory): New function.
9052 (tracefile_has_memory): New function.
9053 (init_tracefile_ops): Initialize fields to_has_all_memory and
9054 to_has_memory of 'ops'.
9056 2014-02-23 Yao Qi <yao@codesourcery.com>
9058 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9059 (ctf_thread_alive, ctf_get_trace_status): Remove.
9060 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9062 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9063 (tfile_has_stack, tfile_has_registers): Remove.
9064 (tfile_thread_alive): Remove.
9065 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9067 * tracefile.c (tracefile_has_stack): New function.
9068 (tracefile_has_registers): New function.
9069 (tracefile_thread_alive): New function.
9070 (tracefile_get_trace_status): New function.
9071 (init_tracefile_ops): New function.
9072 * tracefile.h (init_tracefile_ops): Declare.
9074 2014-02-23 Yao Qi <yao@codesourcery.com>
9076 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9077 (O_LARGEFILE): Likewise.
9078 (tfile_ops): Likewise.
9079 (TRACE_HEADER_SIZE): Likewise.
9080 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9081 (cur_data_size): Likewise.
9082 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9083 (tfile_close, tfile_files_info): Likewise.
9084 (tfile_get_trace_status): Likewise.
9085 (tfile_get_tracepoint_status): Likewise.
9086 (tfile_get_traceframe_address): Likewise.
9087 (tfile_trace_find, match_blocktype): Likewise.
9088 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9089 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9090 (tfile_get_trace_state_variable_value): Likewise.
9091 (tfile_has_all_memory, tfile_has_memory): Likewise.
9092 (tfile_has_stack, tfile_has_registers): Likewise.
9093 (tfile_thread_alive, build_traceframe_info): Likewise.
9094 (tfile_traceframe_info, init_tfile_ops): Likewise.
9095 (_initialize_tracepoint): Don't call init_tfile_ops
9096 and add_target_with_completer.
9097 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9098 exec.h, completer.h and filenames.h.
9099 (_initialize_tracefile_tfile): New function.
9101 2014-02-23 Yao Qi <yao@codesourcery.com>
9103 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9105 (HFILES_NO_SRCDIR): Add tracefile.h.
9106 * ctf.c: Include "tracefile.h".
9107 * tracefile.h: New file.
9108 * tracefile.c: New file
9109 * tracefile-tfile.c: New file.
9110 * tracepoint.c: Include "tracefile.h".
9111 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9112 (stop_reason_names): Add const.
9113 (trace_file_writer_xfree): Move it to tracefile.c.
9114 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9115 (trace_save_ctf): Likewise.
9116 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9117 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9118 (tfile_write_header, tfile_write_regblock_type): Likewise.
9119 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9120 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9121 (tfile_write_raw_data, tfile_end): Likewise.
9122 (tfile_trace_file_writer_new): Likewise.
9123 (free_uploaded_tp): Make it extern.
9124 (free_uploaded_tsv): Make it extern.
9125 (_initialize_tracepoint): Move code to register command 'tsave'
9127 * tracepoint.h (stop_reason_names): Declare.
9128 (struct trace_frame_write_ops): Move it to tracefile.h.
9129 (struct trace_file_write_ops): Likewise.
9130 (struct trace_file_writer): Likewise.
9131 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9133 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9136 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9138 (get_cores_used_by_process): New parameter num_cores, use it.
9139 (linux_xfer_osdata_processes): Pass num_cores to it.
9140 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9143 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9145 * target.c (memory_xfer_partial): Fix length arg in call to
9146 breakpoint_xfer_memory.
9148 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9151 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9152 number comes after the + or - signs. Adjust length of register
9153 name to be extracted.
9155 2014-02-20 Tom Tromey <tromey@redhat.com>
9157 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9158 (ada_varobj_ops): Mark "extern".
9160 2014-02-20 Tom Tromey <tromey@redhat.com>
9162 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9164 2014-02-20 Doug Evans <xdje42@gmail.com>
9166 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9167 All callers updated.
9168 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9169 All callers updated.
9170 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9171 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9173 2014-02-20 lin zuojian <manjian2006@gmail.com>
9174 Joel Brobecker <brobecker@adacore.com>
9175 Doug Evans <xdje42@gmail.com>
9178 * dwarf2read.c (struct die_info): New member in_process.
9179 (reset_die_in_process): New function.
9180 (process_die): Set it at the start, reset when returning.
9181 (inherit_abstract_dies): Only call process_die if origin_child_die
9182 not already being processed.
9184 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9186 * windows-nat.c (handle_unload_dll): Add function documentation.
9187 (do_initial_windows_stuff): Add comment explaining why we wait
9188 until after inferior initialization has finished before
9189 processing all DLLs.
9191 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9193 * windows-nat.c (get_module_name): Delete.
9194 (windows_get_exec_module_filename): New function, mostly
9195 inspired from get_module_name.
9196 (windows_pid_to_exec_file): Replace call to get_module_name
9197 by call to windows_get_exec_module_filename.
9199 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9201 * windows-nat.c (handle_load_dll): Rewrite this function's
9202 introductory comment. Remove code using get_module_name
9203 to get the DLL's name.
9205 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9207 * windows-nat.c (get_windows_debug_event): Ignore
9208 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9209 if windows_initialization_done == 0.
9210 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9211 Adjust implementation to always load all DLLs.
9212 (do_initial_windows_stuff): Replace call to
9213 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9215 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9217 * windows-nat.c (_initialize_windows_nat): Deprecate the
9218 "dll-symbols" command. Turn the "add-shared-symbol-files"
9219 and "assf" aliases into commands, and deprecate them as well.
9220 * NEWS: Add entry explaining that "dll-symbols" and its two
9221 aliases are now deprecated.
9223 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9225 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9226 new-line in debug string. Remove trailing spaces.
9228 2014-02-19 Stan Shebs <stan@codesourcery.com>
9230 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9232 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9234 * NEWS: Add entry for the new feature
9235 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9238 2014-02-19 Stan Shebs <stan@codesourcery.com>
9240 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9242 2014-02-19 Pedro Alves <palves@redhat.com>
9244 * common/ptid.h (struct ptid): Mention that process_stratum
9245 targets should prefer ptid.lwp.
9247 2014-02-19 Pedro Alves <palves@redhat.com>
9249 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9250 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9251 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9252 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9253 store remote thread ids rather than ptid.tid.
9254 (_initialize_remote): Adjust.
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9258 * target.c (target_get_unwinder): Rewrite.
9259 (target_get_tailcall_unwinder): Rewrite.
9260 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9261 (record_btrace_to_get_tailcall_unwinder): New function.
9262 (init_record_btrace_ops): Update.
9263 * target.h (struct target_ops) <to_get_unwinder,
9264 to_get_tailcall_unwinder>: Now function pointers. Use
9265 TARGET_DEFAULT_RETURN.
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9269 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9271 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9277 * target-delegates.c: Rebuild.
9278 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9279 TARGET_DEFAULT_FUNC.
9280 * target.c (default_target_decr_pc_after_break): Rename from
9281 forward_target_decr_pc_after_break. Simplify.
9282 (target_decr_pc_after_break): Rely on delegation.
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9286 * target.c (update_current_target): Do not INHERIT to_doc or
9287 to_magic. Do not de_fault to_open or to_close.
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9291 * gcore.h (objfile_find_memory_regions): Declare.
9292 * gcore.c (objfile_find_memory_regions): No longer static. Add
9294 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9295 * exec.c: Include gcore.h.
9296 (exec_set_find_memory_regions): Remove.
9297 (exec_find_memory_regions): Remove.
9298 (exec_do_find_memory_regions): Remove.
9299 (init_exec_ops): Update.
9300 * defs.h (exec_set_find_memory_regions): Remove.
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9304 * target-delegates.c: Rebuild.
9305 * target.h (struct target_ops) <to_extra_thread_info,
9306 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9307 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9308 not 0, in TARGET_DEFAULT_RETURN.
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9312 * target.c (complete_target_initialization): Remove casts. Use
9313 return_zero_has_execution.
9314 (return_zero): Add "ignore" argument.
9315 (return_zero_has_execution): New function.
9316 (init_dummy_target): Remove casts. Use
9317 return_zero_has_execution.
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9321 * target.c (update_current_target): Update comments. Do not
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9328 * corelow.c (core_read_description): Delegate when needed.
9329 * remote.c (remote_read_description): Delegate when needed.
9330 * target-delegates.c: Rebuild.
9331 * target.c (target_read_description): Rewrite.
9332 * target.h (struct target_ops) <to_read_description>: Update
9333 comment. Use TARGET_DEFAULT_RETURN.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target-delegates.c: Rebuild.
9338 * target.c (update_current_target): Don't inherit or default
9340 (find_default_run_target): Check against delegate_can_run.
9341 * target.h (struct target_ops) <to_can_run>: Use
9342 TARGET_DEFAULT_RETURN.
9344 2014-02-19 Tom Tromey <tromey@redhat.com>
9346 * target-delegates.c: Rebuild.
9347 * target.c (target_disconnect): Unconditionally delegate.
9348 * target.h (struct target_ops) <to_disconnect>: Use
9349 TARGET_DEFAULT_NORETURN.
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * record.c (record_stop): Unconditionally delegate.
9354 * target-delegates.c: Rebuild.
9355 * target.c (target_stop_recording): Unconditionally delegate.
9356 * target.h (struct target_ops) <to_stop_recording>: Use
9357 TARGET_DEFAULT_IGNORE.
9359 2014-02-19 Tom Tromey <tromey@redhat.com>
9361 * target-delegates.c: Rebuild.
9362 * target.c (target_enable_btrace): Unconditionally delegate.
9363 * target.h (struct target_ops) <to_enable_btrace>: Use
9364 TARGET_DEFAULT_NORETURN.
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * target-delegates.c: Rebuild.
9369 * target.c (target_read_btrace): Unconditionally delegate.
9370 * target.h (struct target_ops) <to_read_btrace>: Use
9371 TARGET_DEFAULT_NORETURN.
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * target-delegates.c: Rebuild.
9376 * target.c (target_teardown_btrace): Unconditionally delegate.
9377 * target.h (struct target_ops) <to_teardown_btrace>: Use
9378 TARGET_DEFAULT_NORETURN.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target-delegates.c: Rebuild.
9383 * target.c (target_disable_btrace): Unconditionally delegate.
9384 * target.h (struct target_ops) <to_disable_btrace>: Use
9385 TARGET_DEFAULT_NORETURN.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target-delegates.c: Rebuild.
9390 * target.c (default_search_memory): New function.
9391 (simple_search_memory): Update comment.
9392 (target_search_memory): Unconditionally delegate.
9393 * target.h (struct target_ops) <to_search_memory>: Use
9394 TARGET_DEFAULT_FUNC.
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9398 * auxv.c (default_auxv_parse): No longer static.
9399 (target_auxv_parse): Unconditionally delegate.
9400 * auxv.h (default_auxv_parse): Declare.
9401 * target-delegates.c: Rebuild.
9402 * target.c: Include auxv.h.
9403 * target.h (struct target_ops) <to_auxv_parse>: Use
9404 TARGET_DEFAULT_FUNC.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * target-delegates.c: Rebuild.
9409 * target.c (target_memory_map): Unconditionally delegate.
9410 * target.h (struct target_ops) <to_memory_map>: Use
9411 TARGET_DEFAULT_RETURN.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target-delegates.c: Rebuild.
9416 * target.c (target_thread_alive): Unconditionally delegate.
9417 * target.h (struct target_ops) <to_thread_alive>: Use
9418 TARGET_DEFAULT_RETURN.
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9422 * target-delegates.c: Rebuild.
9423 * target.c (target_save_record): Unconditionally delegate.
9424 * target.h (struct target_ops) <to_save_record>: Use
9425 TARGET_DEFAULT_NORETURN.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target-delegates.c: Rebuild.
9430 * target.c (target_delete_record): Unconditionally delegate.
9431 * target.h (struct target_ops) <to_delete_record>: Use
9432 TARGET_DEFAULT_NORETURN.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target-delegates.c: Rebuild.
9437 * target.c (target_record_is_replaying): Unconditionally
9439 * target.h (struct target_ops) <to_record_is_replaying>: Use
9440 TARGET_DEFAULT_RETURN.
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target-delegates.c: Rebuild.
9445 * target.c (target_goto_record_begin): Unconditionally delegate.
9446 * target.h (struct target_ops) <to_goto_record_begin>: Use
9447 TARGET_DEFAULT_NORETURN.
9449 2014-02-19 Tom Tromey <tromey@redhat.com>
9451 * target-delegates.c: Rebuild.
9452 * target.c (target_goto_record_end): Unconditionally delegate.
9453 * target.h (struct target_ops) <to_goto_record_end>: Use
9454 TARGET_DEFAULT_NORETURN.
9456 2014-02-19 Tom Tromey <tromey@redhat.com>
9458 * target-delegates.c: Rebuild.
9459 * target.c (target_goto_record): Unconditionally delegate.
9460 * target.h (struct target_ops) <to_goto_record>: Use
9461 TARGET_DEFAULT_NORETURN.
9463 2014-02-19 Tom Tromey <tromey@redhat.com>
9465 * target-delegates.c: Rebuild.
9466 * target.c (target_insn_history): Unconditionally delegate.
9467 * target.h (struct target_ops) <to_insn_history>: Use
9468 TARGET_DEFAULT_NORETURN.
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9472 * target-delegates.c: Rebuild.
9473 * target.c (target_insn_history_from): Unconditionally delegate.
9474 * target.h (struct target_ops) <to_insn_history_from>: Use
9475 TARGET_DEFAULT_NORETURN.
9477 2014-02-19 Tom Tromey <tromey@redhat.com>
9479 * target-delegates.c: Rebuild.
9480 * target.c (target_insn_history_range): Unconditionally delegate.
9481 * target.h (struct target_ops) <to_insn_history_range>: Use
9482 TARGET_DEFAULT_NORETURN.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * target-delegates.c: Rebuild.
9487 * target.c (target_call_history): Unconditionally delegate.
9488 * target.h (struct target_ops) <to_call_history>: Use
9489 TARGET_DEFAULT_NORETURN.
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9493 * target-delegates.c: Rebuild.
9494 * target.c (target_call_history_from): Unconditionally delegate.
9495 * target.h (struct target_ops) <to_call_history_from>: Use
9496 TARGET_DEFAULT_NORETURN.
9498 2014-02-19 Tom Tromey <tromey@redhat.com>
9500 * target-delegates.c: Rebuild.
9501 * target.c (target_call_history_range): Unconditionally delegate.
9502 * target.h (struct target_ops) <to_call_history_range>: Use
9503 TARGET_DEFAULT_NORETURN.
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target-delegates.c: Rebuild.
9508 * target.c (target_verify_memory): Unconditionally delegate.
9509 * target.h (struct target_ops) <to_verify_memory>: Use
9510 TARGET_DEFAULT_NORETURN.
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9514 * target-delegates.c: Rebuild.
9515 * target.c (target_core_of_thread): Unconditionally delegate.
9516 * target.h (struct target_ops) <to_core_of_thread>: Use
9517 TARGET_DEFAULT_RETURN.
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target-delegates.c: Rebuild.
9522 * target.c (target_flash_done): Unconditionally delegate.
9523 * target.h (struct target_ops) <to_flash_done>: Use
9524 TARGET_DEFAULT_NORETURN.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * target-delegates.c: Rebuild.
9529 * target.c (target_flash_erase): Unconditionally delegate.
9530 * target.h (struct target_ops) <to_flash_erase>: Use
9531 TARGET_DEFAULT_NORETURN.
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9535 * target-delegates.c: Rebuild.
9536 * target.c (target_get_section_table): Unconditionally delegate.
9537 * target.h (struct target_ops) <to_get_section_table>: Use
9538 TARGET_DEFAULT_RETURN.
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target-delegates.c: Rebuild.
9543 * target.c (target_pid_to_str): Unconditionally delegate.
9544 (init_dummy_target): Don't initialize to_pid_to_str.
9545 (default_pid_to_str): Rename from dummy_pid_to_str.
9546 * target.h (struct target_ops) <to_pid_to_str>: Use
9547 TARGET_DEFAULT_FUNC.
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9551 * target-delegates.c: Rebuild.
9552 * target.c (target_find_new_threads): Unconditionally delegate.
9553 * target.h (struct target_ops) <to_find_new_threads>: Use
9554 TARGET_DEFAULT_RETURN.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target-delegates.c: Rebuild.
9559 * target.c (target_program_signals): Unconditionally delegate.
9560 * target.h (struct target_ops) <to_program_signals>: Use
9561 TARGET_DEFAULT_IGNORE.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target-delegates.c: Rebuild.
9566 * target.c (target_pass_signals): Unconditionally delegate.
9567 * target.h (struct target_ops) <to_pass_signals>: Use
9568 TARGET_DEFAULT_IGNORE.
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9572 * target-delegates.c: Rebuild.
9573 * target.c (default_mourn_inferior): New function.
9574 (target_mourn_inferior): Unconditionally delegate.
9575 * target.h (struct target_ops) <to_mourn_inferior>: Use
9576 TARGET_DEFAULT_FUNC.
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target-delegates.c: Rebuild.
9581 * target.c (default_follow_fork): New function.
9582 (target_follow_fork): Unconditionally delegate.
9583 * target.h (struct target_ops) <to_follow_fork>: Use
9584 TARGET_DEFAULT_FUNC.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target-delegates.c: Rebuild.
9589 * target.c (target_kill): Unconditionally delegate.
9590 * target.h (struct target_ops) <to_kill>: Use
9591 TARGET_DEFAULT_NORETURN.
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target-delegates.c: Rebuild.
9596 * target.c (target_masked_watch_num_registers): Unconditionally
9598 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9599 Use TARGET_DEFAULT_RETURN.
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9603 * target-delegates.c: Rebuild.
9604 * target.c (target_remove_mask_watchpoint): Unconditionally
9606 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9607 TARGET_DEFAULT_RETURN.
9609 2014-02-19 Tom Tromey <tromey@redhat.com>
9611 * target-delegates.c: Rebuild.
9612 * target.c (target_insert_mask_watchpoint): Unconditionally
9614 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9615 TARGET_DEFAULT_RETURN.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target-delegates.c: Rebuild.
9620 * target.c (target_ranged_break_num_registers): Unconditionally
9622 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9623 Use TARGET_DEFAULT_RETURN.
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9627 * target-delegates.c: Rebuild.
9628 * target.c (target_fetch_registers): Unconditionally delegate.
9629 * target.h (struct target_ops) <to_fetch_registers>: Use
9630 TARGET_DEFAULT_NORETURN.
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target-delegates.c: Rebuild.
9635 * target.c (update_current_target): Don't inherit or default
9637 * target.h (struct target_ops) <to_stop>: Use
9638 TARGET_DEFAULT_IGNORE.
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9642 * target-delegates.c: Rebuild.
9643 * target.c (update_current_target): Don't inherit or default
9644 to_can_run_breakpoint_commands.
9645 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9646 Use TARGET_DEFAULT_RETURN.
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9650 * target-delegates.c: Rebuild.
9651 * target.c (update_current_target): Don't inherit or default
9652 to_supports_evaluation_of_breakpoint_conditions.
9653 * target.h (struct target_ops)
9654 <to_supports_evaluation_of_breakpoint_conditions>: Use
9655 TARGET_DEFAULT_RETURN.
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target-delegates.c: Rebuild.
9660 * target.c (update_current_target): Don't inherit or default
9661 to_augmented_libraries_svr4_read.
9662 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9663 Use TARGET_DEFAULT_RETURN.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target-delegates.c: Rebuild.
9668 * target.c (update_current_target): Don't inherit or default
9670 * target.h (struct target_ops) <to_can_use_agent>: Use
9671 TARGET_DEFAULT_RETURN.
9673 2014-02-19 Tom Tromey <tromey@redhat.com>
9675 * target-delegates.c: Rebuild.
9676 * target.c (update_current_target): Don't inherit or default
9678 * target.h (struct target_ops) <to_use_agent>: Use
9679 TARGET_DEFAULT_NORETURN.
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target-delegates.c: Rebuild.
9684 * target.c (update_current_target): Don't inherit or default
9686 (return_null): Remove.
9687 * target.h (struct target_ops) <to_traceframe_info>: Use
9688 TARGET_DEFAULT_RETURN.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * target-delegates.c: Rebuild.
9693 * target.c (update_current_target): Don't inherit or default
9694 to_static_tracepoint_markers_by_strid.
9695 * target.h (struct target_ops)
9696 <to_static_tracepoint_markers_by_strid>: Use
9697 TARGET_DEFAULT_NORETURN.
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target-delegates.c: Rebuild.
9702 * target.c (update_current_target): Don't inherit or default
9703 to_static_tracepoint_marker_at.
9704 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9705 Use TARGET_DEFAULT_RETURN.
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * target-delegates.c: Rebuild.
9710 * target.c (update_current_target): Don't inherit or default
9712 * target.h (struct target_ops) <to_set_permissions>: Use
9713 TARGET_DEFAULT_IGNORE.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target-delegates.c: Rebuild.
9718 * target.c (update_current_target): Don't inherit or default
9720 * target.h (struct target_ops) <to_get_tib_address>: Use
9721 TARGET_DEFAULT_NORETURN.
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target-delegates.c: Rebuild.
9726 * target.c (update_current_target): Don't inherit or default
9728 * target.h (struct target_ops) <to_set_trace_notes>: Use
9729 TARGET_DEFAULT_RETURN.
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9733 * target-delegates.c: Rebuild.
9734 * target.c (update_current_target): Don't initialize
9735 to_set_trace_buffer_size.
9736 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9737 TARGET_DEFAULT_IGNORE.
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target-delegates.c: Rebuild.
9742 * target.c (update_current_target): Don't inherit or default
9743 to_set_circular_trace_buffer.
9744 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9745 TARGET_DEFAULT_IGNORE.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target-delegates.c: Rebuild.
9750 * target.c (update_current_target): Don't inherit or default
9751 to_set_disconnected_tracing.
9752 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9753 TARGET_DEFAULT_IGNORE.
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * target-delegates.c: Rebuild.
9758 * target.c (update_current_target): Don't inherit or default
9759 to_get_min_fast_tracepoint_insn_len.
9760 (return_minus_one): Remove.
9761 * target.h (struct target_ops)
9762 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9766 * target-delegates.c: Rebuild.
9767 * target.c (update_current_target): Don't inherit or default
9768 to_get_raw_trace_data.
9769 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9770 TARGET_DEFAULT_NORETURN.
9772 2014-02-19 Tom Tromey <tromey@redhat.com>
9774 * target-delegates.c: Rebuild.
9775 * target.c (update_current_target): Don't inherit or default
9776 to_upload_trace_state_variables.
9777 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9778 Use TARGET_DEFAULT_RETURN.
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9782 * target-delegates.c: Rebuild.
9783 * target.c (update_current_target): Don't inherit or default
9784 to_upload_tracepoints.
9785 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9786 TARGET_DEFAULT_RETURN.
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9790 * target-delegates.c: Rebuild.
9791 * target.c (update_current_target): Don't inherit or default
9793 * target.h (struct target_ops) <to_save_trace_data>: Use
9794 TARGET_DEFAULT_NORETURN.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target-delegates.c: Rebuild.
9799 * target.c (update_current_target): Don't inherit or default
9800 to_get_trace_state_variable_value.
9801 * target.h (struct target_ops)
9802 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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
9809 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * target-delegates.c: Rebuild.
9814 * target.c (update_current_target): Don't inherit or default
9816 * target.h (struct target_ops) <to_trace_stop>: Use
9817 TARGET_DEFAULT_NORETURN.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target-delegates.c: Rebuild.
9822 * target.c (update_current_target): Don't inherit or default
9823 to_get_tracepoint_status.
9824 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9825 TARGET_DEFAULT_NORETURN.
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target-delegates.c: Rebuild.
9830 * target.c (update_current_target): Don't inherit or default
9831 to_get_trace_status.
9832 * target.h (struct target_ops) <to_get_trace_status>: Use
9833 TARGET_DEFAULT_RETURN.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target-delegates.c: Rebuild.
9838 * target.c (update_current_target): Don't inherit or default
9840 * target.h (struct target_ops) <to_trace_start>: Use
9841 TARGET_DEFAULT_NORETURN.
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9845 * target-delegates.c: Rebuild.
9846 * target.c (update_current_target): Don't inherit or default
9847 to_trace_set_readonly_regions.
9848 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9849 Use TARGET_DEFAULT_NORETURN.
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * target-delegates.c: Rebuild.
9854 * target.c (update_current_target): Don't inherit or default
9855 to_disable_tracepoint.
9856 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9857 TARGET_DEFAULT_NORETURN.
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9861 * target-delegates.c: Rebuild.
9862 * target.c (update_current_target): Don't inherit or default
9863 to_enable_tracepoint.
9864 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9865 TARGET_DEFAULT_NORETURN.
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9869 * target-delegates.c: Rebuild.
9870 * target.c (update_current_target): Don't inherit or default
9871 to_download_trace_state_variable.
9872 * target.h (struct target_ops) <to_download_trace_state_variable>:
9873 Use TARGET_DEFAULT_NORETURN.
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9877 * target-delegates.c: Rebuild.
9878 * target.c (update_current_target): Don't inherit or default
9879 to_can_download_tracepoint.
9880 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9881 TARGET_DEFAULT_RETURN.
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9885 * target-delegates.c: Rebuild.
9886 * target.c (update_current_target): Don't inherit or default
9887 to_download_tracepoint.
9888 * target.h (struct target_ops) <to_download_tracepoint>: Use
9889 TARGET_DEFAULT_NORETURN.
9891 2014-02-19 Tom Tromey <tromey@redhat.com>
9893 * target-delegates.c: Rebuild.
9894 * target.c (update_current_target): Don't inherit or default
9896 * target.h (struct target_ops) <to_trace_init>: Use
9897 TARGET_DEFAULT_RETURN.
9899 2014-02-19 Tom Tromey <tromey@redhat.com>
9901 * target-delegates.c: Rebuild.
9902 * target.c (update_current_target): Don't inherit or default
9903 to_supports_string_tracing.
9904 * target.h (struct target_ops) <to_supports_string_tracing>: Use
9905 TARGET_DEFAULT_RETURN.
9907 2014-02-19 Tom Tromey <tromey@redhat.com>
9909 * target-delegates.c: Rebuild.
9910 * target.c (update_current_target): Don't inherit or default
9911 to_supports_enable_disable_tracepoint.
9912 * target.h (struct target_ops)
9913 <to_supports_enable_disable_tracepoint>: Use
9914 TARGET_DEFAULT_RETURN.
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9918 * target-delegates.c: Rebuild.
9919 * target.c (update_current_target): Don't inherit or default
9920 to_supports_multi_process.
9921 * target.h (struct target_ops) <to_supports_multi_process>: Use
9922 TARGET_DEFAULT_RETURN.
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9926 * target-delegates.c: Rebuild.
9927 * target.c (update_current_target): Don't inherit or default
9928 to_get_ada_task_ptid.
9929 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9930 TARGET_DEFAULT_FUNC.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * target-delegates.c: Rebuild.
9935 * target.c (update_current_target): Don't inherit or default
9936 to_thread_architecture.
9937 * target.h (struct target_ops) <to_thread_architecture>: Use
9938 TARGET_DEFAULT_FUNC.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target-delegates.c: Rebuild.
9943 * target.c (update_current_target): Don't inherit or default
9944 to_execution_direction.
9945 * target.h (struct target_ops) <to_execution_direction>: Use
9946 TARGET_DEFAULT_FUNC.
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9950 * target-delegates.c: Rebuild.
9951 * target.c (update_current_target): Don't inherit or default
9952 to_can_execute_reverse.
9953 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9954 TARGET_DEFAULT_RETURN.
9955 (target_can_execute_reverse): Unconditionally delegate.
9957 2014-02-19 Tom Tromey <tromey@redhat.com>
9959 * target-delegates.c: Rebuild.
9960 * target.c (update_current_target): Don't inherit or default
9962 (dummy_goto_bookmark): Remove.
9963 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9964 * target.h (struct target_ops) <to_goto_bookmark>: Use
9965 TARGET_DEFAULT_NORETURN.
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9969 * target-delegates.c: Rebuild.
9970 * target.c (update_current_target): Don't inherit or default
9972 (dummy_get_bookmark): Remove.
9973 (init_dummy_target): Don't inherit or default to_get_bookmark.
9974 * target.h (struct target_ops) <to_get_bookmark>: Use
9975 TARGET_DEFAULT_NORETURN
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9979 * target-delegates.c: Rebuild.
9980 * target.c (update_current_target): Don't inherit or default
9981 to_make_corefile_notes.
9982 (init_dummy_target): Don't initialize to_make_corefile_notes.
9983 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9984 TARGET_DEFAULT_FUNC.
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target-delegates.c: Rebuild.
9989 * target.c (update_current_target): Don't inherit or default
9990 to_find_memory_regions.
9991 (init_dummy_target): Don't initialize to_find_memory_regions.
9992 * target.h (struct target_ops) <to_find_memory_regions>: Use
9993 TARGET_DEFAULT_FUNC.
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9997 * target-delegates.c: Rebuild.
9998 * target.c (update_current_target): Don't inherit or default
10000 * target.h (struct target_ops) <to_log_command>: Use
10001 TARGET_DEFAULT_IGNORE.
10002 (target_log_command): Unconditionally delegate.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target-delegates.c: Rebuild.
10007 * target.c (update_current_target): Don't inherit or default
10008 to_pid_to_exec_file.
10009 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10010 TARGET_DEFAULT_RETURN.
10012 2014-02-19 Tom Tromey <tromey@redhat.com>
10014 * target-delegates.c: Rebuild.
10015 * target.c (update_current_target): Don't inherit or default
10017 (target_thread_name): Unconditionally delegate.
10018 * target.h (struct target_ops) <to_thread_name>: Use
10019 TARGET_DEFAULT_RETURN.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target-delegates.c: Rebuild.
10024 * target.c (update_current_target): Don't inherit or default
10025 to_extra_thread_info.
10026 * target.h (struct target_ops) <to_extra_thread_info>: Use
10027 TARGET_DEFAULT_RETURN.
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10031 * target-delegates.c: Rebuild.
10032 * target.c (update_current_target): Don't inherit or default
10034 * target.h (struct target_ops) <to_has_exited>: Use
10035 TARGET_DEFAULT_RETURN..
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target-delegates.c: Rebuild.
10040 * target.c (update_current_target): Don't inherit or default
10041 to_set_syscall_catchpoint.
10042 (return_one): Remove.
10043 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10044 TARGET_DEFAULT_RETURN.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target-delegates.c: Rebuild.
10049 * target.c (update_current_target): Don't inherit or default
10050 to_insert_exec_catchpoint.
10051 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10052 TARGET_DEFAULT_RETURN.
10054 2014-01-08 Tom Tromey <tromey@redhat.com>
10056 * target-delegates.c: Rebuild.
10057 * target.c (update_current_target): Don't inherit or default
10058 to_insert_exec_catchpoint.
10059 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10060 TARGET_DEFAULT_RETURN.
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * target-delegates.c: Rebuild.
10065 * target.c (update_current_target): Don't inherit or default
10066 to_remove_vfork_catchpoint.
10067 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10068 TARGET_DEFAULT_RETURN.
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_insert_vfork_catchpoint.
10075 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10076 TARGET_DEFAULT_RETURN.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_remove_fork_catchpoint.
10083 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10084 TARGET_DEFAULT_RETURN.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10090 to_insert_fork_catchpoint.
10091 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10092 TARGET_DEFAULT_RETURN.
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_post_startup_inferior.
10099 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10100 TARGET_DEFAULT_IGNORE.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10107 * target.h (struct target_ops) <to_load>: Use
10108 TARGET_DEFAULT_NORETURN.
10110 2014-02-19 Tom Tromey <tromey@redhat.com>
10112 * target-delegates.c: Rebuild.
10113 * target.c (update_current_target): Don't inherit or default
10115 * target.h (struct target_ops) <to_terminal_info>: Use
10116 TARGET_DEFAULT_FUNC.
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * target-delegates.c: Rebuild.
10121 * target.c (update_current_target): Don't inherit or default
10122 to_terminal_save_ours.
10123 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10124 TARGET_DEFAULT_IGNORE.
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10128 * target-delegates.c: Rebuild.
10129 * target.c (update_current_target): Don't inherit or default
10131 * target.h (struct target_ops) <to_terminal_ours>: Use
10132 TARGET_DEFAULT_IGNORE.
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10136 * target-delegates.c: Rebuild.
10137 * target.c (update_current_target): Don't inherit or default
10138 to_terminal_ours_for_output.
10139 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10140 TARGET_DEFAULT_IGNORE.
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target-delegates.c: Rebuild.
10145 * target.c (update_current_target): Don't inherit or default
10146 to_terminal_inferior.
10147 * target.h (struct target_ops) <to_terminal_inferior>: Use
10148 TARGET_DEFAULT_IGNORE.
10150 2014-02-19 Tom Tromey <tromey@redhat.com>
10152 * target-delegates.c: Rebuild.
10153 * target.c (update_current_target): Don't inherit or default
10155 * target.h (struct target_ops) <to_terminal_init>: Use
10156 TARGET_DEFAULT_IGNORE.
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10160 * target-delegates.c: Rebuild.
10161 * target.c (update_current_target): Don't inherit or default
10162 to_can_accel_watchpoint_condition.
10163 * target.h (struct target_ops)
10164 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10166 2014-02-19 Tom Tromey <tromey@redhat.com>
10168 * target-delegates.c: Rebuild.
10169 * target.c (update_current_target): Don't inherit or default
10170 to_region_ok_for_hw_watchpoint.
10171 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10172 Use TARGET_DEFAULT_FUNC.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * target-delegates.c: Rebuild.
10177 * target.c (update_current_target): Don't inherit or default
10178 to_watchpoint_addr_within_range.
10179 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10180 Use TARGET_DEFAULT_FUNC.
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10184 * target-delegates.c: Rebuild.
10185 * target.c (update_current_target): Don't inherit or default
10186 to_remove_watchpoint.
10187 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10188 TARGET_DEFAULT_NORETURN.
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10192 * target-delegates.c: Rebuild.
10193 * target.c (update_current_target): Don't inherit or default
10194 to_insert_watchpoint.
10195 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10196 TARGET_DEFAULT_RETURN.
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10200 * target-delegates.c: Rebuild.
10201 * target.c (update_current_target): Don't inherit or default
10202 to_remove_hw_breakpoint.
10203 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10204 TARGET_DEFAULT_RETURN.
10206 2014-02-19 Tom Tromey <tromey@redhat.com>
10208 * target-delegates.c: Rebuild.
10209 * target.c (update_current_target): Don't inherit or default
10210 to_insert_hw_breakpoint.
10211 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10212 TARGET_DEFAULT_RETURN.
10214 2014-02-19 Tom Tromey <tromey@redhat.com>
10216 * target-delegates.c: Rebuild.
10217 * target.c (update_current_target): Don't inherit or default
10218 to_can_use_hw_breakpoint.
10219 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10220 TARGET_DEFAULT_RETURN.
10222 2014-02-19 Tom Tromey <tromey@redhat.com>
10224 * target-delegates.c: Rebuild.
10225 * target.c (update_current_target): Don't inherit or default
10227 * target.h (struct target_ops) <to_files_info>: Use
10228 TARGET_DEFAULT_IGNORE.
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10232 * target-delegates.c: Rebuild.
10233 * target.c (update_current_target): Don't inherit or default
10235 * target.h (struct target_ops) <to_store>: Use
10236 TARGET_DEFAULT_NORETURN.
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * target-delegates.c: Rebuild.
10241 * target.c (update_current_target): Don't inherit or default
10243 * target.h (struct target_ops) <to_post_attach>: Use
10244 TARGET_DEFAULT_IGNORE.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target-delegates.c: Rebuild.
10249 * target.c (update_current_target): Don't inherit or default
10251 (default_rcmd): New function.
10252 (do_monitor_command): Unconditionally delegate.
10253 * target.h (struct target_ops) <to_rmcd>: Use
10254 TARGET_DEFAULT_FUNC.
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10258 * target-delegates.c: Rebuild.
10259 * target.c (init_dummy_target): Don't initialize to_attach.
10260 (target_attach): Unconditionally delegate.
10261 * target.h (struct target_ops) <to_attach>: Use
10262 TARGET_DEFAULT_FUNC.
10264 2014-02-19 Tom Tromey <tromey@redhat.com>
10266 * target-delegates.c: Rebuild.
10267 * target.c (target_detach): Unconditionally delegate.
10268 (init_dummy_target): Don't initialize to_detach.
10269 * target.h (struct target_ops) <to_detach>: Use
10270 TARGET_DEFAULT_IGNORE.
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10276 (target_augmented_libraries_svr4_read): Add argument.
10277 * target.c (update_current_target): Update.
10278 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * target.h (struct target_ops) <to_call_history_range>: Add
10285 * target.c (target_call_history_range): Add argument.
10286 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10288 (record_btrace_call_history_from): Update.
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10292 * target.h (struct target_ops) <to_call_history_from>: Add
10294 * target.c (target_call_history_from): Add argument.
10295 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10298 2014-02-19 Tom Tromey <tromey@redhat.com>
10300 * target.h (struct target_ops) <to_call_history>: Add argument.
10301 * target.c (target_call_history): Add argument.
10302 * record-btrace.c (record_btrace_call_history): Add 'self'
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10307 * target.h (struct target_ops) <to_insn_history_range>: Add
10309 * target.c (target_insn_history_range): Add argument.
10310 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10312 (record_btrace_insn_history_from): Update.
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10316 * target.h (struct target_ops) <to_insn_history_from>: Add
10318 * target.c (target_insn_history_from): Add argument.
10319 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10324 * target.h (struct target_ops) <to_insn_history>: Add argument.
10325 * target.c (target_insn_history): Add argument.
10326 * record-btrace.c (record_btrace_insn_history): Add 'self'
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target.h (struct target_ops) <to_goto_record>: Add argument.
10332 * target.c (target_goto_record): Add argument.
10333 * record-full.c (record_full_goto): Add 'self' argument.
10334 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10338 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10339 * target.c (target_goto_record_end): Add argument.
10340 * record-full.c (record_full_goto_end): Add 'self' argument.
10341 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10345 * target.h (struct target_ops) <to_goto_record_begin>: Add
10347 * target.c (target_goto_record_begin): Add argument.
10348 * record-full.c (record_full_goto_begin): Add 'self' argument.
10349 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10352 2014-02-19 Tom Tromey <tromey@redhat.com>
10354 * target.h (struct target_ops) <to_record_is_replaying>: Add
10356 * target.c (target_record_is_replaying): Add argument.
10357 * record-full.c (record_full_is_replaying): Add 'self' argument.
10358 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10360 (record_btrace_xfer_partial, record_btrace_store_registers)
10361 (record_btrace_prepare_to_store, record_btrace_resume)
10362 (record_btrace_wait, record_btrace_decr_pc_after_break)
10363 (record_btrace_find_new_threads, record_btrace_thread_alive):
10366 2014-02-19 Tom Tromey <tromey@redhat.com>
10368 * target.h (struct target_ops) <to_delete_record>: Add argument.
10369 * target.c (target_delete_record): Add argument.
10370 * record-full.c (record_full_delete): Add 'self' argument.
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10374 * target.h (struct target_ops) <to_save_record>: Add argument.
10375 * target.c (target_save_record): Add argument.
10376 * record-full.c (record_full_save): Add 'self' argument.
10377 (record_full_save): Add 'self' argument.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target.h (struct target_ops) <to_info_record>: Add argument.
10382 * target.c (target_info_record): Add argument.
10383 * record.c (info_record_command): Add argument.
10384 * record-full.c (record_full_info): Add 'self' argument.
10385 * record-btrace.c (record_btrace_info): Add 'self' argument.
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10390 * target.c (target_stop_recording): Add argument.
10391 * record.c (record_stop): Add argument.
10392 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10398 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10399 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10401 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10402 (_initialize_amd64_linux_nat): Use it.
10403 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10404 (_initialize_i386_linux_nat): Use it.
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10408 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10409 * target.c (target_teardown_btrace): Add argument.
10410 * remote.c (remote_teardown_btrace): Add 'self' argument.
10411 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10413 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10416 2014-02-19 Tom Tromey <tromey@redhat.com>
10418 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10419 * target.c (target_disable_btrace): Add argument.
10420 * remote.c (remote_disable_btrace): Add 'self' argument.
10421 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10423 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10426 2014-02-19 Tom Tromey <tromey@redhat.com>
10428 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10429 * target.c (target_enable_btrace): Add argument.
10430 * remote.c (remote_enable_btrace): Add 'self' argument.
10431 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10433 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10439 (target_can_use_agent): Add argument.
10440 * target.c (update_current_target): Update.
10441 * remote.c (remote_can_use_agent): Add 'self' argument.
10442 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10446 * target.h (struct target_ops) <to_use_agent>: Add argument.
10447 (target_use_agent): Add argument.
10448 * target.c (update_current_target): Update.
10449 * remote.c (remote_use_agent): Add 'self' argument.
10450 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10455 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10456 (target_traceframe_info): Add argument.
10457 * target.c (update_current_target): Update.
10458 * remote.c (remote_traceframe_info): Add 'self' argument.
10459 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10463 * target.h (target_static_tracepoint_markers_by_strid): Add
10465 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10467 * target.c (update_current_target): Update.
10468 * remote.c (struct target_ops)
10469 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10470 * linux-nat.c (struct target_ops)
10471 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10475 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10477 (target_static_tracepoint_marker_at): Add argument.
10478 * target.c (update_current_target): Update.
10479 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10484 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10485 (target_set_permissions): Add argument.
10486 * target.c (update_current_target): Update.
10487 * remote.c (remote_set_permissions): Add 'self' argument.
10488 (remote_start_remote): Update.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10493 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10494 (target_get_tib_address): Add argument.
10495 * target.c (update_current_target): Update.
10496 * remote.c (remote_get_tib_address): Add 'self' argument.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10501 (target_set_trace_notes): Add argument.
10502 * target.c (update_current_target): Update.
10503 * remote.c (remote_set_trace_notes): Add 'self' argument.
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10507 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10509 (target_set_trace_buffer_size): Add argument.
10510 * target.c (update_current_target): Update.
10511 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10517 (target_set_circular_trace_buffer): Add argument.
10518 * target.c (update_current_target): Update.
10519 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10522 2014-02-19 Tom Tromey <tromey@redhat.com>
10524 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10526 (target_set_disconnected_tracing): Add argument.
10527 * target.c (update_current_target): Update.
10528 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10530 2014-02-19 Tom Tromey <tromey@redhat.com>
10532 * target.h (struct target_ops)
10533 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10534 (target_get_min_fast_tracepoint_insn_len): Add argument.
10535 * target.c (update_current_target): Update.
10536 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10541 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10543 (target_get_raw_trace_data): Add argument.
10544 * target.c (update_current_target): Update.
10545 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10549 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10551 (target_upload_trace_state_variables): Add argument.
10552 * target.c (update_current_target): Update.
10553 * remote.c (remote_upload_trace_state_variables): Add 'self'
10555 (remote_start_remote): Update.
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10559 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10561 (target_upload_tracepoints): Add argument.
10562 * target.c (update_current_target): Update.
10563 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10564 (remote_start_remote): Update.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10569 (target_save_trace_data): Add argument.
10570 * target.c (update_current_target): Update.
10571 * remote.c (remote_save_trace_data): Add 'self' argument.
10573 2014-02-19 Tom Tromey <tromey@redhat.com>
10575 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10577 * target.h (struct target_ops)
10578 <to_get_trace_state_variable_value>: Add argument.
10579 (target_get_trace_state_variable_value): Add argument.
10580 * target.c (update_current_target): Update.
10581 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10583 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10587 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10588 * target.h (struct target_ops) <to_trace_find>: Add argument.
10589 (target_trace_find): Add argument.
10590 * target.c (update_current_target): Update.
10591 * remote.c (remote_trace_find): Add 'self' argument.
10592 * ctf.c (ctf_trace_find): Add 'self' argument.
10594 2014-02-19 Tom Tromey <tromey@redhat.com>
10596 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10597 (target_trace_stop): Add argument.
10598 * target.c (update_current_target): Update.
10599 * remote.c (remote_trace_stop): Add 'self' argument.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10604 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10606 (target_get_tracepoint_status): Add argument.
10607 * target.c (update_current_target): Update.
10608 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10610 2014-02-19 Tom Tromey <tromey@redhat.com>
10612 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10613 * target.h (struct target_ops) <to_get_trace_status>: Add
10615 (target_get_trace_status): Add argument.
10616 * target.c (update_current_target): Update.
10617 * remote.c (remote_get_trace_status): Add 'self' argument.
10618 (remote_start_remote, remote_can_download_tracepoint): Update.
10619 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target.h (struct target_ops) <to_trace_start>: Add argument.
10624 (target_trace_start): Add argument.
10625 * target.c (update_current_target): Update.
10626 * remote.c (remote_trace_start): Add 'self' argument.
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10630 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10632 (target_trace_set_readonly_regions): Add argument.
10633 * target.c (update_current_target): Update.
10634 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10639 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10641 (target_disable_tracepoint): Add argument.
10642 * target.c (update_current_target): Update.
10643 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10647 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10649 (target_enable_tracepoint): Add argument.
10650 * target.c (update_current_target): Update.
10651 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10655 * target.h (struct target_ops) <to_download_trace_state_variable>:
10657 (target_download_trace_state_variable): Add argument.
10658 * target.c (update_current_target): Update.
10659 * remote.c (remote_download_trace_state_variable): Add 'self'
10662 2014-02-19 Tom Tromey <tromey@redhat.com>
10664 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10666 (target_can_download_tracepoint): Add argument.
10667 * target.c (update_current_target): Update.
10668 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10672 * target.h (struct target_ops) <to_download_tracepoint>: Add
10674 (target_download_tracepoint): Add argument.
10675 * target.c (update_current_target): Update.
10676 * remote.c (remote_download_tracepoint): Add 'self' argument.
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10680 * target.h (struct target_ops) <to_trace_init>: Add argument.
10681 (target_trace_init): Add argument.
10682 * target.c (update_current_target): Update.
10683 * remote.c (remote_trace_init): Add 'self' argument.
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10687 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10688 * target.c (target_fileio_readlink): Add argument.
10689 * remote.c (remote_hostio_readlink): Add 'self' argument.
10690 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10692 2014-02-19 Tom Tromey <tromey@redhat.com>
10694 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10695 * target.c (target_fileio_unlink): Add argument.
10696 * remote.c (remote_hostio_unlink): Add 'self' argument.
10697 (remote_file_delete): Update.
10698 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10702 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10703 * target.c (target_fileio_close): Add argument.
10704 * remote.c (remote_hostio_close): Add 'self' argument.
10705 (remote_hostio_close_cleanup): Update.
10706 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10708 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10713 * target.c (target_fileio_pread): Add argument.
10714 * remote.c (remote_hostio_pread): Add 'self' argument.
10715 (remote_bfd_iovec_pread, remote_file_get): Update.
10716 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10721 * target.c (target_fileio_pwrite): Add argument.
10722 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10723 (remote_file_put): Update.
10724 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10729 * target.c (target_fileio_open): Add argument.
10730 * remote.c (remote_hostio_open): Add 'self' argument.
10731 (remote_bfd_iovec_open): Add 'self' argument.
10732 (remote_file_put): Add 'self' argument.
10733 (remote_file_get): Add 'self' argument.
10734 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10740 (target_can_run_breakpoint_commands): Add argument.
10741 * target.c (update_current_target): Update.
10742 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10744 (remote_insert_breakpoint): Add 'self' argument.
10745 (remote_insert_hw_breakpoint): Add 'self' argument.
10746 (remote_can_run_breakpoint_commands): Add 'self' argument.
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10750 * target.h (struct target_ops)
10751 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10752 (target_supports_evaluation_of_breakpoint_conditions): Add
10754 * target.c (update_current_target): Update.
10755 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10757 (remote_insert_breakpoint): Add 'self' argument.
10758 (remote_insert_hw_breakpoint): Add 'self' argument.
10759 (remote_supports_cond_breakpoints): Add 'self' argument.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10765 (target_supports_string_tracing): Add argument.
10766 * target.c (update_current_target): Update.
10767 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10771 * target.h (struct target_ops)
10772 <to_supports_disable_randomization>: Add argument.
10773 * target.c (find_default_supports_disable_randomization): Add
10775 (target_supports_disable_randomization): Add argument.
10776 (find_default_supports_disable_randomization): Add 'self'
10778 * remote.c (extended_remote_supports_disable_randomization): Add
10780 (remote_supports_disable_randomization): Add 'self' argument.
10781 (extended_remote_create_inferior): Update.
10782 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target.h (struct target_ops)
10788 <to_supports_enable_disable_tracepoint>: Add argument.
10789 (target_supports_enable_disable_tracepoint): Add argument.
10790 * target.c (update_current_target): Update.
10791 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * target.h (struct target_ops) <to_supports_multi_process>: Add
10798 (target_supports_multi_process): Add argument.
10799 * target.c (update_current_target): Update.
10800 * remote.c (remote_supports_multi_process): Add 'self' argument.
10801 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10803 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target.h (struct target_ops) <to_execution_direction>: Add
10810 (target_execution_direction): Add argument.
10811 * target.c (default_execution_direction): Add 'self' argument.
10812 * record-full.c (record_full_execution_direction): Add 'self'
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10819 (target_can_execute_reverse): Add argument.
10820 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10821 * record-full.c (record_full_can_execute_reverse): Add 'self'
10823 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10829 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10831 (target_get_ada_task_ptid): Add argument.
10832 * target.c (update_current_target): Update.
10833 (default_get_ada_task_ptid): Add 'self' argument.
10834 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10835 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10836 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10838 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10840 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10842 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10844 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10845 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10851 (target_goto_bookmark): Add argument.
10852 * target.c (dummy_goto_bookmark): Add 'self' argument.
10853 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10858 (target_get_bookmark): Add argument.
10859 * target.c (dummy_get_bookmark): Add 'self' argument.
10860 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10864 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10866 (target_make_corefile_notes): Add argument.
10867 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10868 * procfs.c (procfs_make_note_section): Add 'self' argument.
10869 (procfs_make_note_section): Add 'self' argument.
10870 (procfs_make_note_section): Add 'self' argument.
10871 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10873 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10874 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10875 * exec.c (exec_make_note_section): Add 'self' argument.
10876 (exec_make_note_section): Add 'self' argument.
10878 2014-02-19 Tom Tromey <tromey@redhat.com>
10880 * target.h (struct target_ops) <to_find_memory_regions>: Add
10882 (target_find_memory_regions): Add argument.
10883 * target.c (dummy_find_memory_regions): Add 'self' argument.
10884 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10885 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10886 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10887 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10888 * exec. (exec_do_find_memory_regions): New global.
10889 (exec_set_find_memory_regions): Rewrite.
10890 (exec_find_memory_regions): New function.
10891 (init_exec_ops): Use exec_find_memory_regions.
10893 2014-02-19 Tom Tromey <tromey@redhat.com>
10895 * target.h (struct target_ops) <to_supports_non_stop>: Add
10897 * target.c (find_default_supports_non_stop): Add argument.
10898 (target_supports_non_stop): Add argument.
10899 (find_default_supports_non_stop): Add 'self' argument.
10900 * remote.c (remote_supports_non_stop): Add 'self' argument.
10901 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10903 2014-02-19 Tom Tromey <tromey@redhat.com>
10905 * target.h (struct target_ops) <to_log_command>: Add argument.
10906 (target_log_command): Add argument.
10907 * serial.h (serial_log_command): Add 'self' argument.
10908 * serial.c (serial_log_command): Add 'self' argument.
10910 2014-02-19 Tom Tromey <tromey@redhat.com>
10912 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10913 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10915 (target_pid_to_exec_file): Add argument.
10916 * target.c (debug_to_pid_to_exec_file): Add argument.
10917 (update_current_target): Update.
10918 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10919 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10920 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10921 (linux_handle_extended_wait): Update.
10922 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10923 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10924 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10925 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10929 * target.h (struct target_ops) <to_rcmd>: Add argument.
10930 (target_rcmd): Add argument.
10931 * target.c (debug_to_rcmd): Add argument.
10932 (update_current_target, do_monitor_command): Update.
10933 * remote.c (remote_rcmd): Add 'self' argument.
10934 * monitor.c (monitor_rcmd): Add 'self' argument.
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10938 * windows-nat.c (windows_stop): Add 'self' argument.
10939 * target.h (struct target_ops) <to_stop>: Add argument.
10940 * target.c (target_stop): Add argument.
10941 (debug_to_stop): Add argument.
10942 (update_current_target): Update.
10943 * remote.c (remote_stop): Add 'self' argument.
10944 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10945 (gdbsim_cntrl_c): Update.
10946 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10947 * procfs.c (procfs_stop): Add 'self' argument.
10948 * nto-procfs.c (procfs_stop): Add 'self' argument.
10949 * monitor.c (monitor_stop): Add 'self' argument.
10950 (monitor_open): Update.
10951 * linux-nat.c (linux_nat_stop): Add argument.
10952 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10953 * gnu-nat.c (gnu_stop): Add 'self' argument.
10954 * darwin-nat.c (darwin_stop): Add 'self' argument.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target.h (struct target_ops) <to_thread_name>: Add argument.
10959 * target.c (target_thread_name): Add argument.
10960 (update_current_target): Update.
10961 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10965 * target.h (struct target_ops) <to_extra_thread_info>: Add
10967 (target_extra_thread_info): Add argument.
10968 * target.c (update_current_target): Update.
10969 * remote.c (remote_threads_extra_info): Add 'self' argument.
10970 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10972 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10973 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10974 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10976 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10978 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10980 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10985 * target.h (struct target_ops) <to_program_signals>: Add argument.
10986 * target.c (target_program_signals): Add argument.
10987 * remote.c (remote_program_signals): Add 'self' argument.
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10992 * target.c (target_pass_signals): Add argument.
10993 * remote.c (remote_pass_signals): Add 'self' argument.
10994 (remote_start_remote): Update.
10995 * procfs.c (procfs_pass_signals): Add 'self' argument.
10996 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10997 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10998 (linux_nat_create_inferior, linux_nat_attach): Update.
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * windows-nat.c (windows_can_run): Add 'self' argument.
11003 * target.h (struct target_ops) <to_can_run>: Add argument.
11004 (target_can_run): Add argument.
11005 * target.c (debug_to_can_run): Add argument.
11006 (update_current_target): Update.
11007 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11008 * inf-child.c (inf_child_can_run): Add 'self' argument.
11009 * go32-nat.c (go32_can_run): Add 'self' argument.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target.h (struct target_ops) <to_has_exited>: Add argument.
11014 (target_has_exited): Add argument.
11015 * target.c (debug_to_has_exited): Add argument.
11016 (update_current_target): Update.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11022 (target_set_syscall_catchpoint): Add argument.
11023 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11025 * target.c (update_current_target): Update.
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11031 (target_remove_exec_catchpoint): Add argument.
11032 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11033 (update_current_target): Update.
11034 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11037 2014-02-19 Tom Tromey <tromey@redhat.com>
11039 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11041 (target_insert_exec_catchpoint): Add argument.
11042 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11043 (update_current_target): Update.
11044 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11049 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11051 (target_remove_vfork_catchpoint): Add argument.
11052 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11053 (update_current_target): Update.
11054 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11059 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11061 (target_insert_vfork_catchpoint): Add argument.
11062 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11063 (update_current_target): Update.
11064 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11071 (target_remove_fork_catchpoint): Add argument.
11072 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11073 (update_current_target): Update.
11074 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11077 2014-02-19 Tom Tromey <tromey@redhat.com>
11079 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11081 (target_insert_fork_catchpoint): Add argument.
11082 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11083 (update_current_target): Update.
11084 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11089 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11091 (target_post_startup_inferior): Add argument.
11092 * target.c (debug_to_post_startup_inferior): Add argument.
11093 (update_current_target): Update.
11094 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11096 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11098 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11100 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11102 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11104 (super_post_startup_inferior): Likewise.
11105 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11107 (super_post_startup_inferior): Likewise.
11108 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11109 Add 'self' argument.
11110 (super_post_startup_inferior): Likewise.
11112 2014-02-19 Tom Tromey <tromey@redhat.com>
11114 * target.h (struct target_ops) <to_load>: Add argument.
11115 * target.c (target_load): Add argument.
11116 (debug_to_load): Add argument.
11117 (update_current_target): Update.
11118 * remote.c (remote_load): Add 'self' argument.
11119 * remote-sim.c (gdbsim_load): Add 'self' argument.
11120 * remote-mips.c (mips_load): Add 'self' argument.
11121 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11122 * monitor.c (monitor_load): Add 'self' argument.
11123 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11127 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11128 (target_terminal_info): Add argument.
11129 * target.c (debug_to_terminal_info): Add argument.
11130 (default_terminal_info): Likewise.
11131 * inflow.c (child_terminal_info): Add 'self' argument.
11132 * inferior.h (child_terminal_info): Add 'self' argument.
11133 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11135 2014-02-19 Tom Tromey <tromey@redhat.com>
11137 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11139 (target_terminal_save_ours): Add argument.
11140 * target.c (debug_to_terminal_save_ours): Add argument.
11141 (update_current_target): Update.
11142 * inflow.c (terminal_save_ours): Add 'self' argument.
11143 * inferior.h (terminal_save_ours): Add 'self' argument.
11145 2014-02-19 Tom Tromey <tromey@redhat.com>
11147 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11148 (target_terminal_ours): Add argument.
11149 * target.c (debug_to_terminal_ours): Add argument.
11150 (update_current_target): Update.
11151 * remote.c (remote_terminal_ours): Add 'self' argument.
11152 (remote_close): Update.
11153 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11154 * inflow.c (terminal_ours): Add 'self' argument.
11155 * inferior.h (terminal_ours): Add 'self' argument.
11156 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11158 2014-02-19 Pedro Alves <palves@redhat.com>
11159 Tom Tromey <tromey@redhat.com>
11161 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11163 (target_terminal_ours_for_output): Add argument.
11164 * target.c (debug_to_terminal_ours_for_output): Add argument.
11165 (update_current_target): Update.
11166 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11167 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11168 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11170 2014-02-19 Tom Tromey <tromey@redhat.com>
11172 * target.h (struct target_ops) <to_terminal_inferior>: Add
11174 * target.c (target_terminal_inferior): Add argument.
11175 (update_current_target): Update.
11176 * remote.c (remote_terminal_inferior): Add 'self' argument.
11177 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11178 * inflow.c (terminal_inferior): Add 'self' argument.
11179 * inferior.h (terminal_inferior): Add 'self' argument.
11180 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11181 (go32_terminal_inferior): Add 'self' argument.
11183 2014-02-19 Tom Tromey <tromey@redhat.com>
11185 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11186 (target_terminal_init): Add argument.
11187 * target.c (debug_to_terminal_init): Add argument.
11188 (update_current_target): Update.
11189 * inflow.c (terminal_init_inferior): Add 'self' argument.
11190 * inferior.h (terminal_init_inferior): Add 'self' argument.
11191 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11192 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11196 * target.h (struct target_ops)
11197 <to_can_accel_watchpoint_condition>: Add argument.
11198 (target_can_accel_watchpoint_condition): Add argument.
11199 * target.c (debug_to_can_accel_watchpoint_condition): Add
11201 (update_current_target): Update.
11202 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11207 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11209 (target_region_ok_for_hw_watchpoint): Add argument.
11210 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11211 (default_region_ok_for_hw_watchpoint): Add argument.
11212 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11213 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11215 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11217 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11219 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11221 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11223 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11225 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11226 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11228 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11229 Add 'self' argument.
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11233 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11235 (target_insert_watchpoint): Add argument.
11236 * target.c (debug_to_insert_watchpoint): Add argument.
11237 (update_current_target): Update.
11238 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11239 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11240 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11241 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11242 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11243 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11245 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11246 (procfs_insert_hw_watchpoint): Add 'self' argument.
11247 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11249 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11251 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11253 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11254 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11256 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11261 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11263 (target_remove_watchpoint): Add argument.
11264 * target.c (debug_to_remove_watchpoint): Add argument.
11265 (update_current_target): Update.
11266 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11267 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11268 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11269 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11270 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11271 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11273 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11274 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11276 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11278 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11280 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11281 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11283 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11290 (target_remove_hw_breakpoint): Add argument.
11291 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11292 (update_current_target): Update.
11293 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11294 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11296 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11297 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11299 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11304 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11306 (target_insert_hw_breakpoint): Add argument.
11307 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11308 (update_current_target): Update.
11309 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11310 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11312 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11313 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11314 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11316 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11321 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11323 (target_can_use_hardware_watchpoint): Add argument.
11324 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11325 (update_current_target): Update.
11326 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11328 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11330 * remote.c (remote_check_watch_resources): Add 'self' argument.
11331 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11332 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11334 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11335 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11337 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11339 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11341 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11343 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11345 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11347 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11348 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11350 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11355 * target.h (struct target_ops) <to_post_attach>: Add argument.
11356 (target_post_attach): Add argument.
11357 * target.c (debug_to_post_attach): Add argument.
11358 (update_current_target): Update.
11359 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11360 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11361 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11362 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11363 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11367 * windows-nat.c (windows_close): Add 'self' argument.
11368 * tracepoint.c (tfile_close): Add 'self' argument.
11369 * target.h (struct target_ops) <to_close>: Add argument.
11370 * target.c (target_close): Add argument.
11371 (update_current_target): Update.
11372 * remote.c (remote_close): Add 'self' argument.
11373 * remote-sim.c (gdbsim_close): Add 'self' argument.
11374 * remote-mips.c (mips_close): Add 'self' argument.
11375 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11376 * record-full.c (record_full_close): Add 'self' argument.
11377 * record-btrace.c (record_btrace_close): Add 'self' argument.
11378 * monitor.h (monitor_close): Add 'self' argument.
11379 * monitor.c (monitor_close): Add 'self' argument.
11380 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11381 * linux-nat.c (linux_nat_close): Add argument.
11382 * go32-nat.c (go32_close): Add 'self' argument.
11383 * exec.c (exec_close_1): Add 'self' argument.
11384 * ctf.c (ctf_close): Add 'self' argument.
11385 * corelow.c (core_close): Add 'self' argument.
11386 (core_close_cleanup): Update.
11387 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11388 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11390 2014-02-19 Tom Tromey <tromey@redhat.com>
11392 * remote.c (remote_load): New function.
11393 (init_remote_ops): Use it.
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11397 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11399 * common/linux-btrace.h (linux_supports_btrace): Update.
11400 * remote.c (remote_supports_btrace): Add "self" argument.
11401 * target-delegates.c: Rebuild.
11402 * target.c (target_supports_btrace): Remove.
11403 * target.h (struct target_ops) <to_supports_btrace>: Add
11404 target_ops argument.
11405 (target_supports_btrace): New define.
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11409 * record-full.c (record_full_beneath_to_resume_ops)
11410 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11411 (record_full_beneath_to_wait)
11412 (record_full_beneath_to_store_registers_ops)
11413 (record_full_beneath_to_store_registers)
11414 (record_full_beneath_to_xfer_partial_ops)
11415 (record_full_beneath_to_xfer_partial)
11416 (record_full_beneath_to_insert_breakpoint_ops)
11417 (record_full_beneath_to_insert_breakpoint)
11418 (record_full_beneath_to_remove_breakpoint_ops)
11419 (record_full_beneath_to_remove_breakpoint)
11420 (record_full_beneath_to_stopped_by_watchpoint)
11421 (record_full_beneath_to_stopped_data_address)
11422 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11423 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11424 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11425 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11426 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11427 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11428 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11429 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11430 (record_full_resume, record_full_wait_1)
11431 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11432 (record_full_store_registers, record_full_xfer_partial)
11433 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11434 (record_full_async, record_full_core_xfer_partial): Use target
11436 * target-delegates.c: Rebuild.
11437 * target.c (current_xfer_partial): Remove.
11438 (update_current_target): Do not INHERIT or de_fault
11439 to_insert_breakpoint, to_remove_breakpoint,
11440 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11441 to_is_async_p, to_async. Do not set to_xfer_partial field.
11442 (default_xfer_partial): Simplify.
11443 (current_xfer_partial): Remove.
11444 (target_wait, target_resume): Simplify.
11445 (find_default_can_async_p, find_default_is_async_p): Update.
11446 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11447 to_xfer_partial, to_stopped_by_watchpoint,
11448 to_stopped_data_address.
11449 (target_store_registers): Simplify.
11450 (forward_target_remove_breakpoint)
11451 (forward_target_insert_breakpoint): Remove.
11452 (target_remove_breakpoint, target_insert_breakpoint)
11453 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11454 * target.h (struct target_ops) <to_resume, to_wait,
11455 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11456 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11457 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11459 (forward_target_remove_breakpoint)
11460 (forward_target_insert_breakpoint): Remove.
11461 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11463 (record_btrace_insert_breakpoint): Delegate directly.
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target-delegates.c: New file.
11469 * target.c: Include target-delegates.c.
11470 (init_dummy_target): Call install_dummy_methods.
11471 (complete_target_initialization): Call install_delegators.
11472 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11473 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11474 * make-target-delegates: New file.
11476 2014-02-19 Tom Tromey <tromey@redhat.com>
11478 * record.c (find_record_target): Use find_target_at.
11479 * target.c (find_target_at): New function.
11480 * target.h (find_target_at): Declare.
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11484 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11485 Add 'ops' argument.
11486 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11488 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11489 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11491 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11493 * linux-nat.c (save_sigtrap): Update.
11494 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11495 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11496 (linux_nat_close): Update.
11497 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11499 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11501 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11502 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11503 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11504 (tmp_to_async): Add 'ops' argument.
11505 (record_full_stopped_by_watchpoint, record_full_async)
11506 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11508 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11509 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11510 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11511 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11512 (remote_is_async_p, remote_async): Add 'ops' argument.
11513 (remote_stopped_data_address): Update.
11514 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11515 * target.c (update_current_target)
11516 (find_default_can_async_p, find_default_is_async_p): Update.
11517 (init_dummy_target): Update.
11518 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11519 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11520 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11521 (target_can_async_p, target_is_async_p, target_async)
11522 (target_stopped_by_watchpoint): Update.
11524 2014-02-19 Yao Qi <yao@codesourcery.com>
11527 * gdbarch.sh: Remove startup_gdbarch.
11528 * gdbarch.c: Regenerated.
11529 * gdbarch.h: Likewise.
11531 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11533 * rl78-tdep.c (rl78_g10_register_name): New function.
11534 (rl78_return_value): Add g10 support.
11535 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11538 2014-02-17 Doug Evans <xdje42@gmail.com>
11540 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11541 (SUBDIR_GUILE_SRCS): Ditto.
11542 (scm-gsmob.o): Ditto.
11544 2014-02-17 Yao Qi <yao@codesourcery.com>
11546 * gnu-nat.c (ILL_RPC): Declare defined function.
11548 2014-02-17 Yao Qi <yao@codesourcery.com>
11550 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11551 mach_msg_type_number_t.
11552 (gnu_write_inferior): Likewise.
11554 2014-02-17 Yao Qi <yao@codesourcery.com>
11556 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11558 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11559 (inf_validate_procs, inf_signal): Likewise.
11560 (S_exception_raise_request): Likewise.
11561 (do_mach_notify_dead_name): Likewise.
11562 (steal_exc_port): Likewise.
11563 (gnu_read_inferior): Change 'copy_count''s type to
11564 mach_msg_type_number_t.
11565 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11568 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11570 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11571 flag. Adjust all users; in particular...
11572 (gnu_wait): ..., don't decrement its value in here...
11573 (gnu_create_inferior): ..., and instead set the flag in here,
11574 around the startup_inferior call, and call that one with
11575 START_INFERIOR_TRAPS_EXPECTED.
11577 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11578 (ILL_RPC): ... new macro.
11579 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11580 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11581 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11582 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11583 functions with ILL_RPC macro.
11584 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11585 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11586 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11587 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11588 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11589 (S_proc_getlogin_reply, S_proc_getsid_reply)
11590 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11591 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11592 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11593 (S_proc_getnports_reply, S_proc_is_important_reply)
11594 (S_proc_get_code_reply): New stub functions, generated with
11597 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11598 collected the type check structures.
11600 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11602 2014-02-14 Doug Evans <dje@google.com>
11604 * target.c (target_write_partial): Fix result type.
11606 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11608 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11609 the proper offsets to access fpregset_t.
11611 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11613 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11614 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11615 * h8300-tdep.c (setmachinelist): Remove global.
11616 * hppa-tdep.c (hppa_sigtramp): Remove global.
11617 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11618 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11619 * ravenscar-thread.c (update_target_observer): Remove global.
11620 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11622 2014-02-12 Tom Tromey <tromey@redhat.com>
11624 * common/rsp-low.c: Update comments.
11625 * common/rsp-low.h: Update comments.
11627 2014-02-12 Tom Tromey <tromey@redhat.com>
11629 * common/rsp-low.c (convert_ascii_to_int): Remove.
11630 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11632 2014-02-12 Tom Tromey <tromey@redhat.com>
11634 * common/rsp-low.h (unhexify): Don't declare.
11635 * common/rsp-low.c (unhexify): Remove.
11637 2014-02-12 Tom Tromey <tromey@redhat.com>
11639 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11640 * common/rsp-low.c (convert_int_to_ascii): Remove.
11642 2014-02-12 Tom Tromey <tromey@redhat.com>
11644 * common/rsp-low.h (hexify): Don't declare.
11645 * common/rsp-low.c (hexify): Remove.
11647 2014-02-12 Tom Tromey <tromey@redhat.com>
11649 * common/rsp-low.c (hexify): Never take strlen of argument.
11651 2014-02-12 Tom Tromey <tromey@redhat.com>
11653 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11654 * remote.c (extended_remote_run, remote_rcmd)
11655 (remote_download_trace_state_variable, remote_save_trace_data)
11656 (remote_set_trace_notes): Update.
11657 * tracepoint.c (encode_source_string, tfile_write_status)
11658 (tfile_write_uploaded_tsv): Update.
11660 2014-02-12 Tom Tromey <tromey@redhat.com>
11662 * tracepoint.c: Include rsp-low.h.
11663 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11664 * remote.c: Include rsp-low.h.
11665 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11666 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11667 (remote_unescape_input): Move to common/rsp-low.c.
11668 * common/rsp-low.h: New file.
11669 * common/rsp-low.c: New file.
11670 * Makefile.in (SFILES): Add common/rsp-low.c.
11671 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11672 (COMMON_OBS): Add rsp-low.o.
11673 (rsp-low.o): New target.
11675 2014-02-12 Tom Tromey <tromey@redhat.com>
11677 * utils.h: Include print-utils.h.
11678 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11679 (int_string, core_addr_to_string, core_addr_to_string_nz)
11680 (hex_string, hex_string_custom): Don't declare.
11681 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11682 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11683 (hex_string_custom, int_string, core_addr_to_string)
11684 (core_addr_to_string_nz, host_address_to_string): Move to
11685 common/print-utils.c.
11686 * common/print-utils.h: New file.
11687 * common/print-utils.c: New file
11688 * Makefile.in (SFILES): Add common/print-utils.c.
11689 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11690 (COMMON_OBS): Add print-utils.o.
11691 (print-utils.o): New target.
11693 2014-02-12 Tom Tromey <tromey@redhat.com>
11695 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11697 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11699 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11701 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11703 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11704 if a PT_IO ptrace request returns sucessfully but indicates that 0
11705 bytes were transferred.
11707 2014-02-12 Pedro Alves <palves@redhat.com>
11708 Kevin Buettner <kevinb@redhat.com>
11710 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11711 TYPE_INSTANCE_FLAG_CODE_SPACE.
11713 2014-02-12 Pedro Alves <palves@redhat.com>
11715 * h8300-tdep.c (pseudo_from_raw_register)
11716 (raw_from_pseudo_register): New functions.
11717 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11720 2014-02-12 Pedro Alves <palves@redhat.com>
11722 * h8300-tdep.c (h8300_register_sim_regno): New function.
11723 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11724 gdbarch_register_sim_regno hook.
11726 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11728 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11730 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11732 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11734 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11736 * obsd-tdep.h (obsd_init_abi): New prototype.
11737 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11738 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11739 (obsd_init_abi): New functions.
11740 * i386obsd-tdep.c: Include "obsd-tdep.h".
11741 (i386obsd_init_abi): Call obsd_init_abi.
11742 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11743 (amd64obsd_init_abi): Call obsd_init_abi.
11744 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11745 obsd-tdep.c to gdb_target_obs.
11747 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11749 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11750 double float arguments to 16-byte in the argument slots.
11752 2014-02-11 Doug Evans <xdje42@gmail.com>
11754 * configure.ac: Don't crash if pkg-config is not found and guile
11755 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11757 * configure: Regenerate.
11759 2014-02-11 Yao Qi <yao@codesourcery.com>
11761 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11762 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11763 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11764 * gnu-nat.c (gnu_xfer_memory): Likewise.
11765 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11766 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11767 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11768 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11770 2014-02-11 Yao Qi <yao@codesourcery.com>
11772 * target.h (enum target_xfer_error): Rename to ...
11773 (enum target_xfer_status): ... it. New. All users updated.
11774 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11776 (TARGET_XFER_STATUS_ERROR_P): New macro.
11777 (target_xfer_error_to_string): Remove declaration.
11778 (target_xfer_status_to_string): Declare.
11779 (target_xfer_partial_ftype): Adjust it.
11780 (struct target_ops) <to_xfer_partial>: Return
11781 target_xfer_status. Add argument xfered_len. Update
11783 * target.c (target_xfer_error_to_string): Rename to ...
11784 (target_xfer_status_to_string): ... it. New. All callers
11786 (target_read_live_memory): Likewise. Call target_xfer_partial
11787 instead of target_read.
11788 (memory_xfer_live_readonly_partial): Return
11789 target_xfer_status. Add argument xfered_len.
11790 (raw_memory_xfer_partial): Likewise.
11791 (memory_xfer_partial_1): Likewise.
11792 (memory_xfer_partial): Likewise.
11793 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11794 properly. Update debug message.
11795 (default_xfer_partial, current_xfer_partial): Likewise.
11796 (target_write_partial): Likewise.
11797 (target_read_partial): Likewise. All callers updated.
11798 (read_whatever_is_readable): Likewise.
11799 (target_write_with_progress): Likewise.
11800 (target_read_alloc_1): Likewise.
11802 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11803 * auxv.c (procfs_xfer_auxv): Likewise.
11804 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11805 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11806 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11807 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11808 * corefile.c (read_memory): Adjust.
11809 * corelow.c (core_xfer_partial): Likewise.
11810 * ctf.c (ctf_xfer_partial): Likewise.
11811 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11813 (darwin_xfer_partial): Likewise.
11814 * exec.c (section_table_xfer_memory_partial): Likewise. All
11816 (exec_xfer_partial): Likewise.
11817 * exec.h (section_table_xfer_memory_partial): Update
11819 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11821 (gnu_xfer_partial): Likewise.
11822 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11823 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11824 (ia64_hpux_xfer_solib_got): Likewise.
11825 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11826 type of 'partial_len' to ULONGEST.
11827 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11828 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11829 (linux_nat_xfer_partial): Likewise.
11830 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11831 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11832 * monitor.c (monitor_xfer_memory): Likewise.
11833 (monitor_xfer_partial): Likewise.
11834 * procfs.c (procfs_xfer_partial): Likewise.
11835 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11836 * record-full.c (record_full_xfer_partial): Likewise.
11837 (record_full_core_xfer_partial): Likewise.
11838 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11839 (gdbsim_xfer_partial): Likewise.
11840 * remote.c (remote_write_bytes_aux): Likewise. All callers
11842 (remote_write_bytes, remote_read_bytes): Likewise. All
11844 (remote_flash_erase): Likewise. All callers updated.
11845 (remote_write_qxfer): Likewise. All callers updated.
11846 (remote_read_qxfer): Likewise. All callers updated.
11847 (remote_xfer_partial): Likewise.
11848 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11849 (rs6000_xfer_shared_libraries): Likewise.
11850 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11851 (sol_thread_xfer_partial): Likewise.
11852 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11853 (sparc_xfer_partial): Likewise.
11854 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11856 (spu_xfer_partial): Likewise.
11857 * spu-multiarch.c (spu_xfer_partial): Likewise.
11858 * tracepoint.c (tfile_xfer_partial): Likewise.
11859 * windows-nat.c (windows_xfer_memory): Likewise.
11860 (windows_xfer_shared_libraries): Likewise.
11861 (windows_xfer_partial): Likewise.
11862 * valprint.c: Replace 'target_xfer_error' with
11863 'target_xfer_status' in comments.
11865 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11867 Checked in by Joel Brobecker <brobecker@adacore.com>.
11868 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11870 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11872 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11873 function parameters.
11875 2014-02-10 Will Newton <will.newton@linaro.org>
11877 * elfread.c (elf_rel_plt_read): Look for a .got section if
11878 looking up .got.plt fails.
11879 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11880 on address passed to elf_gnu_ifunc_record_cache.
11881 (elf_gnu_ifunc_resolve_addr): Likewise.
11882 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11884 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11886 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11887 (X_RETTURN): New macro.
11888 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11890 * sparc64-tdep.c (sparc64_init_abi): Hook
11891 sparc_in_function_epilogue_p.
11893 2014-02-10 Gary Benson <gbenson@redhat.com>
11895 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11896 Rename name_matcher to symbol_matcher.
11898 2014-02-10 Gary Benson <gbenson@redhat.com>
11900 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11901 Use expand_symtabs_file_matcher_ftype and
11902 expand_symtabs_symbol_matcher_ftype.
11904 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11906 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11907 (struct ada_symbol_cache): New.
11908 (ada_free_symbol_cache): Forward declare.
11909 (struct ada_pspace_data): New.
11910 (ada_pspace_data_handle): New static global.
11911 (get_ada_pspace_data, ada_pspace_data_cleanup)
11912 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11913 (cache_space, cache): Delete, now folded inside struct
11915 (ada_get_symbol_cache): New function.
11916 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11918 (_initialize_ada_language): Remove initialization of cache_space.
11919 Move call to observer_attach_inferior_exit up, grouping it
11920 with the other observer registrations inside this function.
11921 Rename command to be more general. Add call to
11922 register_program_space_data_with_cleanup.
11924 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11926 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11927 ada_new_objfile_observer.
11928 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11929 (_initialize_tasks): Update uses of ada_new_objfile_observer
11930 and ada_tasks_normal_stop_observer.
11932 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11934 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11935 returned by the 'Length attribute to integer.
11937 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11939 * ada-lang.c (_initialize_ada_language): Initialize
11940 cache_space obstack.
11942 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11944 * ada-lang.c (HASH_SIZE): New macro.
11945 (struct cache_entry): New type.
11946 (cache_space, cache): New static globals.
11947 (ada_clear_symbol_cache, find_entry): New functions.
11948 (lookup_cached_symbol, cache_symbol): Implement.
11949 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11950 (_initialize_ada_language): Attach ada_new_objfile_observer
11951 and ada_free_objfile_observer.
11953 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11955 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11956 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11957 struct block * parameter.
11958 (ada_lookup_symbol_list_worker): Constify local variable "block".
11959 Remove cast which is no longer necessary.
11961 2014-02-10 Doug Evans <xdje42@gmail.com>
11963 Add Guile as an extension language.
11964 * NEWS: Mention Guile scripting.
11965 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11966 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11967 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11968 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11969 (CLIBS): Add GUILE_LIBS.
11970 (install-guile): New rule.
11971 (guile.o): New rule.
11972 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11973 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11974 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11975 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11976 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11977 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11978 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11979 * configure.ac: New option --with-guile.
11980 * configure: Regenerate.
11981 * config.in: Regenerate.
11982 * auto-load.c: Remove #include "python/python.h". Add #include
11983 "gdb/section-scripts.h".
11984 (source_section_scripts): Handle Guile scripts.
11985 (_initialize_auto_load): Add name of Guile objfile script to
11986 scripts-directory help text.
11987 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11988 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11989 (struct breakpoint): New member scm_bp_object.
11990 * defs.h (enum command_control_type): New value guile_control.
11991 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11993 (show_user): Update comment.
11994 (_initialize_cli_cmds): Update help text for "show user". Update help
11995 text for max-user-call-depth.
11996 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11998 (multi_line_command_p): Add guile_control.
11999 (print_command_lines): Handle guile_control.
12000 (execute_control_command, recurse_read_control_structure): Ditto.
12001 (process_next_line): Recognize "guile" commands.
12002 * disasm.c (gdb_disassemble_info): Make non-static.
12003 * disasm.h: #include "dis-asm.h".
12004 (struct gdbarch): Add forward decl.
12005 (gdb_disassemble_info): Declare.
12006 * extension.c: #include "guile/guile.h".
12007 (extension_languages): Add guile.
12008 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12009 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12010 * gdbtypes.c (get_unsigned_type_max): New function.
12011 (get_signed_type_minmax): New function.
12012 * gdbtypes.h (get_unsigned_type_max): Declare.
12013 (get_signed_type_minmax): Declare.
12014 * guile/README: New file.
12015 * guile/guile-internal.h: New file.
12016 * guile/guile.c: New file.
12017 * guile/guile.h: New file.
12018 * guile/scm-arch.c: New file.
12019 * guile/scm-auto-load.c: New file.
12020 * guile/scm-block.c: New file.
12021 * guile/scm-breakpoint.c: New file.
12022 * guile/scm-disasm.c: New file.
12023 * guile/scm-exception.c: New file.
12024 * guile/scm-frame.c: New file.
12025 * guile/scm-gsmob.c: New file.
12026 * guile/scm-iterator.c: New file.
12027 * guile/scm-lazy-string.c: New file.
12028 * guile/scm-math.c: New file.
12029 * guile/scm-objfile.c: New file.
12030 * guile/scm-ports.c: New file.
12031 * guile/scm-pretty-print.c: New file.
12032 * guile/scm-safe-call.c: New file.
12033 * guile/scm-string.c: New file.
12034 * guile/scm-symbol.c: New file.
12035 * guile/scm-symtab.c: New file.
12036 * guile/scm-type.c: New file.
12037 * guile/scm-utils.c: New file.
12038 * guile/scm-value.c: New file.
12039 * guile/lib/gdb.scm: New file.
12040 * guile/lib/gdb/boot.scm: New file.
12041 * guile/lib/gdb/experimental.scm: New file.
12042 * guile/lib/gdb/init.scm: New file.
12043 * guile/lib/gdb/iterator.scm: New file.
12044 * guile/lib/gdb/printing.scm: New file.
12045 * guile/lib/gdb/types.scm: New file.
12046 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12047 (VPATH): Add $(GUILE_SRCDIR).
12048 (GUILE_DIR): New variable.
12049 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12050 (all): Add stamp-guile dependency.
12051 (stamp-guile): New rule.
12052 (clean-guile, install-guile, uninstall-guile): New rules.
12053 (install-only): Add install-guile dependency.
12054 (uninstall): Add uninstall-guile dependency.
12055 (clean): Add clean-guile dependency.
12057 2014-02-09 Doug Evans <xdje42@gmail.com>
12059 Revert this patch (which I approved, mea culpa).
12061 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12063 * Makefile.in (all-lib): Remove.
12064 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12066 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12068 Fix Python stack corruption.
12069 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12072 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12074 * Makefile.in (all-lib): Remove.
12075 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12077 2014-02-07 Doug Evans <dje@google.com>
12079 * extension-priv.h (extension_language_script_ops): Add comment.
12080 (extension_language_ops): Add comment.
12081 (active_ext_lang_state): Fix typo in comment.
12083 2014-02-07 Pedro Alves <palves@redhat.com>
12085 PR breakpoints/16292
12086 * infrun.c (handle_signal_stop) <signal arrives while stepping
12087 over a breakpoint>: Switch back to the stepping thread.
12089 2014-02-07 Yao Qi <yao@codesourcery.com>
12091 * target.c (target_xfer_partial): Return zero if LEN is zero.
12093 2014-02-07 Yao Qi <yao@codesourcery.com>
12095 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12096 (ld_so_xfer_auxv): Likewise.
12097 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12098 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12099 * corelow.c (core_xfer_partial): Likewise.
12100 * ctf.c (ctf_xfer_partial): Likewise.
12101 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12102 (darwin_xfer_partial): Likewise.
12103 * exec.c (exec_xfer_partial): Likewise.
12104 * gnu-nat.c (gnu_xfer_partial): Likewise.
12105 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12106 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12107 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12108 * linux-nat.c (linux_xfer_siginfo): Likewise.
12109 (linux_proc_xfer_spu): Likewise.
12110 * procfs.c (procfs_xfer_partial): Likewise.
12111 * record-full.c (record_full_xfer_partial): Likewise.
12112 (record_full_core_xfer_partial): Likewise.
12113 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12114 * remote.c (remote_write_qxfer): Likewise.
12115 (remote_write_qxfer, remote_read_qxfer): Likewise.
12116 (remote_xfer_partial): Likewise.
12117 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12118 (rs6000_xfer_shared_libraries): Likewise.
12119 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12120 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12121 (spu_xfer_partial): Likewise.
12122 * target.c (memory_xfer_partial_1): Likewise.
12123 * tracepoint.c (tfile_xfer_partial): Likewise.
12124 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12125 (windows_xfer_partial): Likewise.
12127 2014-02-07 Yao Qi <yao@codesourcery.com>
12129 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12131 (core_xfer_shared_libraries_aix): Likewise.
12132 * gdbarch.c, gdbarch.h: Regenerated.
12133 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12134 ULONGEST. Change 'len_avail' type to ULONGEST.
12135 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12136 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12138 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12140 2014-02-07 Yao Qi <yao@codesourcery.com>
12142 * corefile.c (memory_error): Get 'exception' from ERR and pass
12143 'exception' to throw_error.
12145 2014-02-06 Doug Evans <xdje42@gmail.com>
12147 * configure.ac (libpython checking): Remove all but python.o from
12148 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12149 * configure: Regenerate.
12151 * Makefile.in (SFILES): Add extension.c.
12152 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12153 (COMMON_OBS): Add extension.o.
12154 * extension.h: New file.
12155 * extension-priv.h: New file.
12156 * extension.c: New file.
12158 * python/python-internal.h: #include "extension.h".
12159 (gdbpy_auto_load_enabled): Declare.
12160 (gdbpy_apply_val_pretty_printer): Declare.
12161 (gdbpy_apply_frame_filter): Declare.
12162 (gdbpy_preserve_values): Declare.
12163 (gdbpy_breakpoint_cond_says_stop): Declare.
12164 (gdbpy_breakpoint_has_cond): Declare.
12165 (void source_python_script_for_objfile): Delete.
12166 * python/python.c: #include "extension-priv.h".
12167 Delete inclusion of "observer.h".
12168 (extension_language_python): Moved here and renamed from
12169 script_language_python in py-auto-load.c.
12170 Redefined to be of type extension_language_defn.
12171 (python_extension_script_ops): New global.
12172 (python_extension_ops): New global.
12173 (struct python_env): New member previous_active.
12174 (restore_python_env): Call restore_active_ext_lang.
12175 (ensure_python_env): Call set_active_ext_lang.
12176 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12178 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12180 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12182 (gdbpy_eval_from_control_command): Renamed from
12183 eval_python_from_control_command, made static. New arg extlang.
12184 (gdbpy_source_script) Renamed from source_python_script, made static.
12186 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12187 result to int. New arg extlang.
12188 (gdbpy_source_objfile_script): Renamed from
12189 source_python_script_for_objfile, made static. New arg extlang.
12190 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12191 static. New args extlang, extlang_printers. Change result type to
12193 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12194 static. New arg extlang. Rename arg printers to extlang_printers
12195 and change type to ext_lang_type_printers *.
12196 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12197 static. Replace argument arg with extlang, extlang_printers.
12198 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12199 (!HAVE_PYTHON, source_python_script): Delete.
12200 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12201 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12202 (!HAVE_PYTHON, start_type_printers): Delete.
12203 (!HAVE_PYTHON, apply_type_printers): Delete.
12204 (!HAVE_PYTHON, free_type_printers): Delete.
12205 (_initialize_python): Delete call to observer_attach_before_prompt.
12206 (finalize_python): Set/restore active extension language.
12207 (gdbpy_finish_initialization) Renamed from
12208 finish_python_initialization, made static. New arg extlang.
12209 (gdbpy_initialized): New function.
12210 * python/python.h: #include "extension.h". Delete #include
12211 "value.h", "mi/mi-cmds.h".
12212 (extension_language_python): Declare.
12213 (GDBPY_AUTO_FILE_NAME): Delete.
12214 (enum py_bt_status): Moved to extension.h and renamed to
12215 ext_lang_bt_status.
12216 (enum frame_filter_flags): Moved to extension.h.
12217 (enum py_frame_args): Moved to extension.h and renamed to
12218 ext_lang_frame_args.
12219 (finish_python_initialization): Delete.
12220 (eval_python_from_control_command): Delete.
12221 (source_python_script): Delete.
12222 (apply_val_pretty_printer): Delete.
12223 (apply_frame_filter): Delete.
12224 (preserve_python_values): Delete.
12225 (gdbpy_script_language_defn): Delete.
12226 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12227 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12229 * auto-load.c: #include "extension.h".
12230 (GDB_AUTO_FILE_NAME): Delete.
12231 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12232 (script_language_gdb): Delete, moved to extension.c and renamed to
12233 extension_language_gdb.
12234 (source_gdb_script_for_objfile): Delete.
12235 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12236 (loaded_script): Change type of language member to
12237 struct extension_language_defn *.
12238 (init_loaded_scripts_info): Initialize
12239 unsupported_script_warning_printed.
12240 (maybe_add_script): Make static. Change type of language arg to
12241 struct extension_language_defn *.
12242 (clear_section_scripts): Reset unsupported_script_warning_printed.
12243 (auto_load_objfile_script_1): Rewrite to use extension language API.
12244 (auto_load_objfile_script): Make public. Remove support-compiled-in
12245 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12246 (source_section_scripts): Rewrite to use extension language API.
12247 (load_auto_scripts_for_objfile): Rewrite to use
12248 auto_load_scripts_for_objfile.
12249 (collect_matching_scripts_data): Change type of language member to
12250 struct extension_language_defn *.
12251 (auto_load_info_scripts): Change type of language arg to
12252 struct extension_language_defn *.
12253 (unsupported_script_warning_print): New function.
12254 (script_not_found_warning_print): Make static.
12255 (_initialize_auto_load): Rewrite construction of scripts-directory
12257 * auto-load.h (struct objfile): Add forward decl.
12258 (struct script_language): Delete.
12259 (struct auto_load_pspace_info): Add forward decl.
12260 (struct extension_language_defn): Add forward decl.
12261 (maybe_add_script): Delete.
12262 (auto_load_objfile_script): Declare.
12263 (script_not_found_warning_print): Delete.
12264 (auto_load_info_scripts): Update prototype.
12265 (auto_load_gdb_scripts_enabled): Declare.
12266 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12267 auto_load_python_scripts_enabled and made public.
12268 (script_language_python): Delete, moved to python.c.
12269 (gdbpy_script_language_defn): Delete.
12270 (info_auto_load_python_scripts): Update to use
12271 extension_language_python.
12273 * breakpoint.c (condition_command): Replace call to
12274 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12275 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12276 with call to breakpoint_ext_lang_cond_says_stop.
12277 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12278 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12279 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12280 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12282 (local_setattro): Print name of extension language with existing
12285 * valprint.c (val_print, value_print): Update to call
12286 apply_ext_lang_val_pretty_printer.
12287 * cp-valprint.c (cp_print_value): Update call to
12288 apply_ext_lang_val_pretty_printer.
12289 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12290 (gdbpy_apply_val_pretty_printer): Renamed from
12291 apply_val_pretty_printer. New arg extlang.
12292 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12294 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12295 extension language API.
12296 * cli/cli-script.c (execute_control_command): Update to call
12297 eval_ext_lang_from_control_command.
12299 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12300 enum ext_lang_bt_status values. Update call to
12301 apply_ext_lang_frame_filter.
12302 (mi_cmd_stack_list_locals): Ditto.
12303 (mi_cmd_stack_list_args): Ditto.
12304 (mi_cmd_stack_list_variables): Ditto.
12305 * mi/mi-main.c: Delete #include "python/python-internal.h".
12306 Add #include "extension.h".
12307 (mi_cmd_list_features): Replace reference to python internal variable
12308 gdb_python_initialized with call to ext_lang_initialized_p.
12310 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12311 Update to use enum ext_lang_frame_args. Update to call
12312 apply_ext_lang_frame_filter.
12313 * python/py-framefilter.c (extract_sym): Update to use enum
12314 ext_lang_bt_status.
12315 (extract_value, py_print_type, py_print_value): Ditto.
12316 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12317 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12318 (py_print_frame): Ditto.
12319 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12320 New arg extlang. Update to use enum ext_lang_bt_status.
12322 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12323 finish_python_initialization. Replace with call to
12324 finish_ext_lang_initialization.
12326 * typeprint.c (do_free_global_table): Update to call
12327 free_ext_lang_type_printers.
12328 (create_global_typedef_table): Update to call
12329 start_ext_lang_type_printers.
12330 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12331 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12332 (type_print_options): Change type of global_printers from "void *"
12333 to "struct ext_lang_type_printers *".
12335 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12336 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12337 (gdbpy_preserve_values): Renamed from preserve_python_values.
12339 (!HAVE_PYTHON, preserve_python_values): Delete.
12341 * utils.c (quit_flag): Delete, moved to extension.c.
12342 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12345 * eval.c: Delete #include "python/python.h".
12346 * main.c: Delete #include "python/python.h".
12348 * defs.h: Update comment.
12350 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12354 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12356 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12359 2014-02-05 Yao Qi <yao@codesourcery.com>
12361 * remote.c (remote_pass_signals): Remove local 'buf' and use
12363 (remote_program_signals): Likewise.
12365 2014-02-05 Yao Qi <yao@codesourcery.com>
12367 * ctf.c: Include "inferior.h" and "gdbthread.h".
12368 (CTF_PID): A new macro.
12369 (ctf_open): Call inferior_appeared and add_thread_silent.
12370 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12371 (ctf_thread_alive): New function.
12372 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12374 2014-02-05 Yao Qi <yao@codesourcery.com>
12378 2013-05-24 Yao Qi <yao@codesourcery.com>
12380 * tracepoint.c (TFILE_PID): Remove.
12381 (tfile_open): Don't add thread and inferior.
12382 (tfile_close): Don't set 'inferior_ptid'. Don't call
12383 exit_inferior_silent.
12384 (tfile_thread_alive): Remove.
12385 (init_tfile_ops): Don't set field 'to_thread_alive' of
12388 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12390 * remote.c (remote_start_remote): Call remote_check_symbols even
12391 if only symbol-file (not file) has been given.
12393 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12395 * gdbarch.sh (skip_entrypoint): New callback.
12396 * gdbarch.c, gdbarch.h: Regenerate.
12397 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12398 * infrun.c (fill_in_stop_func): Likewise.
12399 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12400 (ppc_elfv2_elf_make_msymbol_special): New function.
12401 (ppc_elfv2_skip_entrypoint): Likewise.
12402 (ppc_linux_init_abi): Install them for ELFv2.
12404 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12406 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12407 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12408 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12409 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12410 structures returned in GPRs.
12412 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12414 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12415 offset to the stack parameter list for the ELFv2 ABI.
12417 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12419 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12420 set_gdbarch_convert_from_func_ptr_addr and
12421 set_gdbarch_elf_make_msymbol_special for ELFv1.
12422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12423 function descriptors on ELFv1.
12424 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12425 set up r12 at function entry.
12427 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12429 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12430 (struct gdbarch_tdep): New member elf_abi.
12432 * rs6000-tdep.c: Include "elf/ppc64.h".
12433 (rs6000_gdbarch_init): Detect ELF ABI version.
12435 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12437 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12438 within a register pair holding a DFP 128-bit value on little-endian.
12439 (ppc64_sysv_abi_return_value_base): Likewise.
12440 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12441 (dfp_pseudo_register_write): Likewise.
12443 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12445 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12446 offset on little-endian when passing _Decimal32.
12447 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12449 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12451 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12452 of the overlapped FP register within the VSX register on little-
12454 (efpr_pseudo_register_write): Likewise.
12456 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12458 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12459 offset on little-endian when passing small structures.
12461 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12463 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12464 (struct ppc64_sysv_argpos): New data structure.
12465 (ppc64_sysv_abi_push_float): Remove.
12466 (ppc64_sysv_abi_push_val): New function.
12467 (ppc64_sysv_abi_push_integer): Likewise.
12468 (ppc64_sysv_abi_push_freg): Likewise.
12469 (ppc64_sysv_abi_push_vreg): Likewise.
12470 (ppc64_sysv_abi_push_param): Likewise.
12471 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12472 (ppc64_sysv_abi_return_value_base): New function.
12473 (ppc64_sysv_abi_return_value): Refactor to use it.
12475 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12477 * NEWS: Document new target powerpc64le-*-linux*.
12479 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12481 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12482 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12484 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12485 register set used in ELF core dumps. Add floating-point register set.
12487 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12489 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12490 dwarf2_to_gdb[] table using symbolic constants. Adjust
12491 penultimate entry from number representing the PC register
12492 to symbolic constant representing the MDR register. Add
12493 constant for the PC register to the end of the table.
12495 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12497 * bsd-kvm.c: Include <sys/param.h>
12499 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12501 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12503 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12505 * ada-lang.h (clear_ada_sym_cache): Delete.
12507 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12509 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12511 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12513 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12514 the sigreturn register save area only if the syscall is
12517 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12519 * valops.c (value_slice): Minor reformatting.
12521 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12523 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12525 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12527 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12528 New static globals.
12529 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12530 (ada_ignore_descriptive_types_p): New static global.
12531 (find_parallel_type_by_descriptive_type): Return immediately
12532 if ada_ignore_descriptive_types_p is set.
12533 (_initialize_ada_language): Register new commands "maintenance
12534 set ada", "maintenance show ada", "maintenance set ada
12535 ignore-descriptive-types" and "maintenance show ada
12536 ignore-descriptive-types".
12537 * NEWS: Add entry for new "maint ada set/show
12538 ignore-descriptive-types" commands.
12540 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12542 * record-btrace.c (record_btrace_close): Call btrace_teardown
12545 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12547 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12550 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12552 * ada-typeprint (type_is_full_subrange_of_target_type):
12554 (print_range): Add parameter bounds_prefered_p. If not set,
12555 try printing range types using the name of their base type.
12556 (print_range_type): Add parameter bounds_prefered_p.
12557 Use it in call to print_range.
12558 (print_array_type, ada_print_type): Update calls to print_range
12559 and print_range_type.
12561 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12563 * ada-typeprint.c (print_array_type, print_choices, print_range)
12564 (print_range_bound, print_dynamic_range_bound, print_range_type):
12565 Remove declaration.
12567 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12569 * ada-typeprint.c (print_range): Add missing empty line
12570 after local declaration.
12572 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12574 * ada-valprint.c (print_optional_low_bound): Get index_type's
12575 target type for as long as it is a TYPE_CODE_RANGE.
12577 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12579 * procfs.c (procfs_make_note_section): Remove assertion and
12580 associated comment.
12582 2014-01-24 Yao Qi <yao@codesourcery.com>
12584 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12585 * corelow.c (get_core_siginfo): Likewise.
12587 2014-01-24 Yao Qi <yao@codesourcery.com>
12589 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12590 ULONGEST. Don't check 'len' is negative.
12591 (remote_write_bytes): Change type of 'len' to ULONGEST.
12593 2014-01-23 Tom Tromey <tromey@redhat.com>
12596 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12597 Handle exception from frame.block.
12598 (FrameVars.fetch_frame_locals): Likewise.
12600 2014-01-23 Tom Tromey <tromey@redhat.com>
12603 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12604 on a NULL pointer. Move "goto error" to correct place.
12606 2014-01-23 Tom Tromey <tromey@redhat.com>
12609 * python/py-framefilter.c (apply_frame_filter): Call
12610 ensure_python_env after computing gdbarch.
12612 2014-01-23 Yao Qi <yao@codesourcery.com>
12614 * target.c (raw_memory_xfer_partial): Change argument type
12615 from void * to gdb_byte *.
12616 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12618 2014-01-22 Doug Evans <dje@google.com>
12620 New gdbserver option --debug-format=timestamp.
12621 * NEWS: Mention it.
12623 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12625 * syscalls/s390x-linux.xml: New file.
12626 * syscalls/s390-linux.xml: New file.
12627 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12628 (XML_SYSCALL_FILENAME_S390X): Likewise.
12629 (op_svc): New enum value for SVC opcode.
12630 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12631 (s390_linux_get_syscall_number): New function.
12632 (s390_gdbarch_init): Register '*get_syscall_number' and the
12633 syscall xml file name.
12634 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12635 "s390-linux.xml" and "s390x-linux.xml".
12636 * NEWS: Announce new feature.
12638 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12640 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12642 2014-01-22 Pedro Alves <palves@redhat.com>
12644 * xtensa-config.c: Include defs.h.
12646 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12648 * common/common-utils.h: Add "ARI:" comment beside __func__
12651 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12653 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12654 documentation a bit.
12656 2014-01-21 Roland McGrath <mcgrathr@google.com>
12658 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12659 * configure: Regenerate.
12660 * aclocal.m4: Regenerate.
12661 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12662 New substituted variables.
12663 (install-strip): New target.
12664 (INSTALL_SCRIPT): New substituted variable.
12665 (FLAGS_TO_PASS): Add it.
12666 (install-only): Use $(INSTALL_SCRIPT) rather than
12667 $(INSTALL_PROGRAM) for gcore.
12669 2014-01-20 Tom Tromey <tromey@redhat.com>
12671 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12674 2014-01-20 Tom Tromey <tromey@redhat.com>
12676 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12677 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12678 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12679 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12680 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12681 (struct cmd_list_element) <flags>: Remove.
12682 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12683 doc_allocated>: New fields.
12684 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12686 * maint.c (maintenance_do_deprecate): Update.
12687 * top.c (execute_command): Update.
12689 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12691 * xtensa-linux-nat.c: Include asm/ptrace.h.
12693 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12695 * Makefile.in (SFILES): Add d-support.c.
12696 (COMMON_OBS): Add d-support.o.
12697 * d-lang.h (d_parse_symbol): Add comment, now defined in
12699 * d-lang.c (parse_call_convention)
12700 (parse_attributes, parse_function_types)
12701 (parse_function_args, parse_type, parse_identifier)
12702 (call_convention_p, d_parse_symbol): Move functions to ...
12703 * d-support.c: ... New file.
12705 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12707 * d-lang.h (d_parse_symbol): Add declaration.
12708 * d-lang.c (extract_identifiers)
12709 (extract_type_info): Remove functions.
12710 (parse_call_convention, parse_attributes)
12711 (parse_function_types, parse_function_args)
12712 (parse_type, parse_identifier, call_convention_p)
12713 (d_parse_symbol): New functions.
12714 (d_demangle): Use d_parse_symbol to demangle D symbols.
12716 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12718 * d-lang.h (struct builtin_d_type): New data type.
12719 (builtin_d_type): Add declaration.
12720 * d-lang.c (d_language_arch_info, build_d_types)
12721 (builtin_d_type): New functions.
12722 (enum d_primitive_types): New data type.
12723 (d_language_defn): Change c_language_arch_info to
12724 d_language_arch_info.
12725 (d_type_data): New static variable.
12726 (_initialize_d_language): Initialize d_type_data.
12728 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12730 * d-lang.h (d_main_name): Add declaration.
12731 * d-lang.c (d_main_name): New function.
12732 * symtab.c (find_main_name): Add call to d_main_name.
12734 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12736 * d-lang.c (d_language_defn): Change macro_expansion_c to
12737 macro_expansion_no.
12739 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12741 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12743 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12745 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12746 gdb_exception" declaration.
12747 * remote.c (getpkt_or_notif_sane): Likewise.
12749 2014-01-17 Doug Evans <dje@google.com>
12751 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12752 function, contents of dirnames_to_char_ptr_vec_append moved here.
12753 (delim_string_to_char_ptr_vec): New function.
12754 (dirnames_to_char_ptr_vec_append): Rewrite.
12755 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12757 2014-01-17 Doug Evans <dje@google.com>
12759 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12761 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12762 #include "common-utils.h".
12763 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12764 * common/vec.h (VEC_ASSERT_PASS): Update.
12765 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12766 (MACH_CHECK_ERROR): Update.
12768 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12770 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12772 * gdbarch.h: Regenerate.
12774 2014-01-16 Tom Tromey <tromey@redhat.com>
12776 * value.c (struct value) <regnum>: Move earlier.
12778 2014-01-16 Tom Tromey <tromey@redhat.com>
12780 * remote.c (extended_remote_create_inferior): Rename from
12781 extended_remote_create_inferior_1. Add "ops" argument. Remove
12782 old implementation.
12784 2014-01-16 Pedro Alves <palves@redhat.com>
12786 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12787 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12790 2014-01-16 Doug Evans <dje@google.com>
12792 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12794 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12796 * btrace.h (btrace_thread_flag): New.
12797 (struct btrace_thread_info) <flags>: New.
12798 * record-btrace.c (record_btrace_resume_thread)
12799 (record_btrace_find_thread_to_move, btrace_step_no_history)
12800 (btrace_step_stopped, record_btrace_start_replaying)
12801 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12802 (record_btrace_find_resume_thread): New.
12803 (record_btrace_resume, record_btrace_wait): Extend.
12804 (record_btrace_can_execute_reverse): New.
12805 (record_btrace_open): Fail in non-stop mode.
12806 (record_btrace_set_replay): Split into this, ...
12807 (record_btrace_stop_replaying): ... this, ...
12808 (record_btrace_clear_histories): ... and this.
12809 (init_record_btrace_ops): Init to_can_execute_reverse.
12810 * NEWS: Announce it.
12812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12814 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12815 (forward_target_decr_pc_after_break)
12816 (target_decr_pc_after_break): New.
12817 * target.c (forward_target_decr_pc_after_break)
12818 (target_decr_pc_after_break): New.
12819 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12820 instead of gdbarch_decr_pc_after_break.
12821 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12822 instead of gdbarch_decr_pc_after_break.
12823 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12824 instead of gdbarch_decr_pc_after_break.
12825 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12826 instead of gdbarch_decr_pc_after_break.
12827 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12828 instead of gdbarch_decr_pc_after_break.
12829 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12830 instead of gdbarch_decr_pc_after_break.
12832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12834 * btrace.c: Include regcache.h.
12835 (btrace_add_pc): New.
12836 (btrace_enable): Call btrace_add_pc.
12837 (btrace_is_empty): New.
12838 * btrace.h (btrace_is_empty): New.
12839 * record-btrace.c (require_btrace, record_btrace_info): Call
12842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12844 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12845 Support delta reads.
12846 (linux_disable_btrace): Change return type.
12847 * common/linux-btrace.h (linux_read_btrace): Change parameters
12848 and return type to allow error reporting. Update users.
12849 (linux_disable_btrace): Change return type. Update users.
12850 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12852 (btrace_error): New.
12853 (btrace_block) <begin>: Comment on BEGIN == 0.
12854 * btrace.c (btrace_compute_ftrace): Start from the end of
12856 (btrace_stitch_trace, btrace_clear_history): New.
12857 (btrace_fetch): Read delta trace, return if replaying.
12858 (btrace_clear): Move clear history code to btrace_clear_history.
12859 (parse_xml_btrace): Throw an error if parsing failed.
12860 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12861 and return type to allow error reporting.
12862 (target_read_btrace): Change parameters and return type to allow
12864 * target.c (target_read_btrace): Update.
12865 * remote.c (remote_read_btrace): Support delta reads. Pass
12867 * NEWS: Announce it.
12869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12871 * record.h (record_btrace_frame_unwind)
12872 (record_btrace_tailcall_frame_unwind): New declarations.
12873 * dwarf2-frame: Include record.h
12874 (dwarf2_frame_cfa): Throw an error for btrace frames.
12875 * record-btrace.c: Include hashtab.h.
12876 (btrace_get_bfun_name): New.
12877 (btrace_call_history): Call btrace_get_bfun_name.
12878 (struct btrace_frame_cache): New.
12880 (bfcache_hash, bfcache_eq, bfcache_new): New.
12881 (btrace_get_frame_function): New.
12882 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12883 (record_btrace_frame_this_id): Compute own id.
12884 (record_btrace_frame_prev_register): Provide PC, throw_error
12885 for all other registers.
12886 (record_btrace_frame_sniffer): Detect btrace frames.
12887 (record_btrace_tailcall_frame_sniffer): New.
12888 (record_btrace_frame_dealloc_cache): New.
12889 (record_btrace_frame_unwind): Add new functions.
12890 (record_btrace_tailcall_frame_unwind): New.
12891 (_initialize_record_btrace): Allocate cache.
12892 * btrace.c (btrace_clear): Call reinit_frame_cache.
12893 * NEWS: Announce it.
12895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12897 * record-btrace.c (record_btrace_set_replay)
12898 (record_btrace_goto_begin, record_btrace_goto_end)
12899 (record_btrace_goto): New.
12900 (init_record_btrace_ops): Initialize them.
12901 * NEWS: Announce it.
12903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12905 * record-btrace.c (record_btrace_find_new_threads)
12906 (record_btrace_thread_alive): New.
12907 (init_record_btrace_ops): Initialize to_find_new_threads and
12910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12912 * record-btrace.c (record_btrace_resume): New.
12913 (record_btrace_wait): New.
12914 (init_record_btrace_ops): Initialize to_wait and to_resume.
12916 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12918 * record-btrace.c (record_btrace_xfer_partial)
12919 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12920 (record_btrace_allow_memory_access): New.
12921 (init_record_btrace_ops): Initialize new methods.
12922 * target.c (raw_memory_xfer_partial): Bail out if target reports
12923 that this memory is not available.
12925 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12927 * target.h (target_ops) <to_insert_breakpoint>
12928 <to_remove_breakpoint>: Add target_ops parameter.
12929 (forward_target_insert_breakpoint): New.
12930 (forward_target_remove_breakpoint): New.
12931 (memory_remove_breakpoint, memory_insert_breakpoint):
12932 Add target_ops parameter.
12933 * target.c (target_insert_breakpoint): Split into this and ...
12934 (forward_target_insert_breakpoint): ... this.
12935 (target_remove_breakpoint): Split into this and ...
12936 (forward_target_remove_breakpoint): ... this.
12937 (debug_to_insert_breakpoint): Add target_ops parameter.
12938 Call forward_target_insert_breakpoint.
12939 (debug_to_remove_breakpoint): Add target_ops parameter.
12940 Call forward_target_remove_breakpoint.
12941 (update_current_target): Do not inherit or default to_insert_breakpoint
12942 and to_remove_breakpoint.
12943 * corelow.c (ignore): Add target_ops parameter.
12944 * exec.c (ignore): Add target_ops parameter.
12945 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12946 Add target_ops parameter.
12947 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12948 Add target_ops parameter.
12949 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12950 Add target_ops parameter.
12951 * record-full.c (record_full_beneath_to_insert_breakpoint)
12952 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12953 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12954 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12955 (record_full_core_remove_breakpoint): Add target_ops parameter.
12957 (record_full_beneath_to_insert_breakpoint_ops)
12958 (record_full_beneath_to_remove_breakpoint_ops)
12959 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12960 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12961 tmp_to_remove_breakpoint_ops,
12962 record_full_beneath_to_insert_breakpoint_ops, and
12963 record_full_beneath_to_remove_breakpoint_ops.
12964 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12965 (m32r_remove_breakpoint): Add target_ops parameter.
12966 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12967 Add target_ops parameter.
12968 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12969 Add target_ops parameter.
12971 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12972 Markus Metzger <markus.t.metzger@intel.com>
12974 * record-btrace.c: Include frame-unwind.h.
12975 (record_btrace_frame_unwind_stop_reason)
12976 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12977 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12979 (init_record_btrace_ops): Install it.
12981 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12983 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12986 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12988 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12991 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12993 * frame-unwind.c: Include target.h.
12994 (frame_unwind_try_unwinder): New function with code from ...
12995 (frame_unwind_find_by_frame): ... here. New variable
12996 unwinder_from_target, call also target_get_unwinder)
12997 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12998 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12999 * target.h (struct target_ops): New fields to_get_unwinder and
13000 to_get_tailcall_unwinder.
13001 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13005 * record-btrace.c (record_btrace_fetch_registers)
13006 (record_btrace_store_registers)
13007 (record_btrace_to_prepare_to_store): New.
13008 (init_record_btrace_ops): Add the above.
13010 2014-01-16 Tom Tromey <tromey@redhat.com>
13012 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13013 * target.h (struct target_ops) <to_prepare_to_store>: Add
13015 (target_prepare_to_store): Add argument.
13016 * target.c (debug_to_prepare_to_store): Add argument.
13017 (update_current_target): Update.
13018 * remote.c (remote_prepare_to_store): Add 'self' argument.
13019 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13020 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13021 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13022 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13024 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13025 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13026 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13027 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13028 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13030 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13032 * btrace.h (replay) <replay>: New.
13033 (btrace_is_replaying): New.
13034 * btrace.c (btrace_clear): Free replay iterator.
13035 (btrace_is_replaying): New.
13036 * record-btrace.c (record_btrace_is_replaying): New.
13037 (record_btrace_info): Print insn number if replaying.
13038 (record_btrace_insn_history): Start at replay position.
13039 (record_btrace_call_history): Start at replay position.
13040 (init_record_btrace_ops): Init to_record_is_replaying.
13042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13044 * record-btrace.c (record_btrace_insn_history_range): Include
13046 (record_btrace_insn_history_from): Adjust range.
13047 (record_btrace_call_history_range): Include
13049 (record_btrace_call_history_from): Adjust range.
13050 * NEWS: Announce changes.
13052 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13054 * record.h (enum record_print_flag)
13055 <record_print_indent_calls>: New.
13056 * record.c (get_call_history_modifiers): Recognize /c modifier.
13057 (_initialize_record): Document /c modifier.
13058 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13059 Reorder fields. Optionally indent the function name. Update
13061 * NEWS: Announce changes.
13063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13065 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13067 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13069 * btrace.c (ftrace_new_function): Start counting at one.
13070 * record-btrace.c (record_btrace_info): Adjust number of calls
13072 * NEWS: Announce it.
13074 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13076 * record-btrace.c (btrace_call_history_insn_range): Print
13077 insn range as [begin, end].
13079 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13081 * btrace.h (struct btrace_func_link): New.
13082 (enum btrace_function_flag): New.
13083 (struct btrace_inst): Rename to ...
13084 (struct btrace_insn): ...this. Update all users.
13085 (struct btrace_func) <ibegin, iend>: Remove.
13086 (struct btrace_func_link): New.
13087 (struct btrace_func): Rename to ...
13088 (struct btrace_function): ...this. Update all users.
13089 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13090 (number, level, flags>: New.
13091 (struct btrace_insn_iterator): Rename to ...
13092 (struct btrace_insn_history): ...this.
13094 (struct btrace_insn_iterator, btrace_call_iterator): New.
13095 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13096 (struct btrace_target_info) <begin, end, level>
13097 <insn_history, call_history>: New.
13098 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13099 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13100 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13101 (btrace_call_number, btrace_call_begin, btrace_call_end)
13102 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13103 (btrace_find_function_by_number, btrace_set_insn_history)
13104 (btrace_set_call_history): New.
13105 * btrace.c (btrace_init_insn_iterator)
13106 (btrace_init_func_iterator, compute_itrace): Remove.
13107 (ftrace_print_function_name, ftrace_print_filename)
13108 (ftrace_skip_file): Change
13109 parameter to const.
13110 (ftrace_init_func): Remove.
13111 (ftrace_debug): Use new btrace_function fields.
13112 (ftrace_function_switched): Also consider gaining and
13113 losing symbol information).
13114 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13115 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13116 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13118 (ftrace_new_function): Move. Remove debug print.
13119 (ftrace_update_lines, ftrace_update_insns): New.
13120 (ftrace_update_function): Check for call, ret, and jump.
13121 (compute_ftrace): Renamed to ...
13122 (btrace_compute_ftrace): ...this. Rewritten to compute call
13124 (btrace_fetch, btrace_clear): Updated.
13125 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13126 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13127 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13128 (btrace_call_number, btrace_call_begin, btrace_call_end)
13129 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13130 (btrace_find_function_by_number, btrace_set_insn_history)
13131 (btrace_set_call_history): New.
13132 * record-btrace.c (require_btrace): Use new btrace thread
13134 (record_btrace_info, btrace_insn_history)
13135 (record_btrace_insn_history, record_btrace_insn_history_range):
13136 Use new btrace thread info fields and new iterator.
13137 (btrace_func_history_src_line): Rename to ...
13138 (btrace_call_history_src_line): ...this. Use new btrace
13139 thread info fields.
13140 (btrace_func_history): Rename to ...
13141 (btrace_call_history): ...this. Use new btrace thread info
13142 fields and new iterator.
13143 (record_btrace_call_history, record_btrace_call_history_range):
13144 Use new btrace thread info fields and new iterator.
13146 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13148 * frame.h (frame_id_build_unavailable_stack_special): New.
13149 * frame.c (frame_id_build_unavailable_stack_special): New.
13151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13153 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13154 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13155 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13157 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13158 (i386_insn_is_jump, i386_jmp_p): New.
13159 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13160 insn_is_jump to gdbarch.
13161 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13162 * gdbarch.h: Regenerated.
13163 * gdbarch.c: Regenerated.
13164 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13165 (default_insn_is_jump): New.
13166 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13167 (default_insn_is_jump): New.
13169 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13171 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13173 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13174 (btrace_read_type) <btrace_read_new>: Change to ...
13175 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13179 * common/linux-btrace.c (linux_read_btrace): Free trace from
13180 previous iteration.
13182 2014-01-15 Doug Evans <dje@google.com>
13184 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13187 2014-01-15 Tom Tromey <tromey@redhat.com>
13189 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13190 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13191 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13192 (set_objfile_main_name): New function.
13193 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13194 language_of_main>: New fields.
13195 (set_objfile_main_name): Declare.
13196 * symtab.c (find_main_name): Loop over objfiles to find the main
13198 (set_main_name): Now static.
13199 (get_main_info): Add comment.
13200 * symtab.h (set_main_name): Don't declare.
13202 2014-01-15 Tom Tromey <tromey@redhat.com>
13204 * symtab.c (main_progspace_key): New global.
13205 (struct main_info): New.
13206 (name_of_main, language_of_main): Remove.
13207 (get_main_info, main_info_cleanup): New function.
13208 (set_main_name, main_name, main_language): Use get_main_info.
13209 (_initialize_symtab): Initialize main_progspace_key.
13211 2014-01-15 Tom Tromey <tromey@redhat.com>
13213 * dbxread.c (process_one_symbol): Update.
13214 * dwarf2read.c (read_partial_die): Update.
13215 * symfile.c (set_initial_language): Call main_language.
13216 * symtab.c (language_of_main): Now static.
13217 (set_main_name): Add 'lang' parameter.
13218 (find_main_name): Update.
13219 (main_language): New function.
13220 (symtab_observer_executable_changed): Update.
13221 * symtab.h (set_main_name): Update.
13222 (language_of_main): Remove.
13223 (main_language): Declare.
13225 2014-01-15 Tom Tromey <tromey@redhat.com>
13227 * symfile.c (init_entry_point_info): Use new "initialized" field.
13229 * objfiles.h (struct entry_point) <initialized>: New field.
13230 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13231 (struct objfile) <ei>: ...here. Remove.
13232 * objfiles.c (entry_point_address_query): Update.
13234 2014-01-15 Tom Tromey <tromey@redhat.com>
13236 * objfiles.c (entry_point_address_query): Relocate entry point
13238 (objfile_relocate1): Do not relocate entry point address.
13239 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13240 <the_bfd_section_index>: New field.
13241 * symfile.c (init_entry_point_info): Find the entry point's
13244 2014-01-15 Tom Tromey <tromey@redhat.com>
13246 * solib-frv.c (enable_break): Use entry_point_address_query.
13248 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13250 * NEWS: Add note on improved process record-replay on
13251 arm*-linux* targets.
13253 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13255 * arm-tdep.c (enum arm_record_result): New enum.
13256 (arm_record_unsupported_insn): New function.
13257 (arm_record_coproc_data_proc): Removed.
13258 (thumb2_record_ld_st_multiple): New function.
13259 (thumb2_record_ld_st_dual_ex_tbb): New function.
13260 (thumb2_record_data_proc_sreg_mimm): New function.
13261 (thumb2_record_ps_dest_generic): New function.
13262 (thumb2_record_branch_misc_cntrl): New function.
13263 (thumb2_record_str_single_data): New function.
13264 (thumb2_record_ld_mem_hints): New function.
13265 (thumb2_record_ld_word): New function.
13266 (thumb2_record_lmul_lmla_div): New function.
13267 (thumb2_record_decode_insn_handler): New function.
13268 (decode_insn): Add thumb32 instruction handlers.
13270 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13272 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13273 (struct arm_linux_record_tdep): Declare.
13274 (arm_canonicalize_syscall): New function.
13275 (arm_all_but_pc_registers_record): New function.
13276 (arm_linux_syscall_record): New function.
13277 (arm_linux_init_abi): Add syscall recording constructs.
13278 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13279 decoding. (arm_record_coproc_data_proc): Update arm syscall
13281 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13282 <arm_syscall_record>: New field.
13283 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13286 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13288 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13289 register for push instruction recording.
13291 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13293 * arm-tdep.c (thumb_record_misc): Update to correct logical
13294 error while recording ldm, ldmia and pop instructions.
13296 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13298 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13300 2014-01-15 Pedro Alves <palves@redhat.com>
13302 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13303 (go32_resume, go32_fetch_registers, store_register)
13304 (go32_store_registers, go32_prepare_to_store)
13305 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13306 (go32_create_inferior, go32_can_run, go32_terminal_init)
13307 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13310 2014-01-15 Tom Tromey <tromey@redhat.com>
13312 * target.h (async_callback_ftype): New typedef.
13313 (struct target_ops) <to_async>: Use it.
13315 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13317 * python/py-value.c (get_field_type): Remove unnecessary curly
13318 braces for single-statement if block.
13320 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13322 * python/py-type.c (convert_field): Add missing empty line
13323 after declarations.
13325 2014-01-14 Doug Evans <dje@google.com>
13327 * symfile.h (expand_symtabs_matching): Renamed from
13328 expand_partial_symbol_names. Update prototype.
13329 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13330 * symfile.c (expand_symtabs_matching): Renamed from
13331 expand_partial_symbol_names. New args file_matcher, kind.
13332 Rename arg fun to symbol_matcher.
13333 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13334 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13335 ada_expand_partial_symbol_name.
13336 (ada_make_symbol_completion_list): Update to call
13337 expand_symtabs_matching.
13338 (ada_add_global_exceptions): Call expand_symtabs_matching.
13339 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13340 call map_symbol_filenames.
13341 * symtab.c (sources_info): Update to call map_symbol_filenames.
13342 (search_symbols): Call expand_symtabs_matching.
13343 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13344 (default_make_symbol_completion_list_break_on): Update to call
13345 expand_symtabs_matching.
13346 (make_source_files_completion_list): Update to call
13347 map_symbol_filenames.
13349 2014-01-14 Doug Evans <dje@google.com>
13351 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13352 (expand_symtabs_symbol_matcher_ftype): New typedef.
13353 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13354 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13355 * symfile.c (expand_partial_symbol_names): Update to use
13356 expand_symtabs_symbol_matcher_ftype.
13357 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13358 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13359 Arg name_matcher renamed to symbol_matcher.
13360 * psymtab.c (recursively_search_psymtabs): Update to use
13361 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13363 (expand_symtabs_matching_via_partial): Update to use
13364 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13365 Arg name_matcher renamed to symbol_matcher.
13367 2014-01-14 Doug Evans <dje@google.com>
13369 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13370 (map_partial_symbol_filenames): Ditto.
13371 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13372 (map_partial_symbol_filenames): Ditto.
13373 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13374 (map_partial_symbol_filenames): Ditto.
13375 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13376 (map_partial_symbol_filenames): Ditto.
13377 * symtab.c: Delete #include "psymtab.h".
13379 2014-01-14 Pedro Alves <palves@redhat.com>
13380 Tom Tromey <tromey@redhat.com>
13382 * infrun.c (use_displaced_stepping): Use find_record_target
13383 instead of RECORD_IS_USED.
13384 (adjust_pc_after_break): Use record_full_is_used instead of
13386 * record-btrace.c (record_btrace_open): Call record_preopen
13387 instead of checking RECORD_IS_USED.
13388 * record-full.c (record_full_shortname)
13389 (record_full_core_shortname): New globals.
13390 (record_full_is_used): New function.
13391 (find_full_open): Call record_preopen instead of checking
13393 (init_record_full_ops): Set the target's shortname to
13394 record_full_shortname.
13395 (init_record_full_core_ops): Set the target's shortname to
13396 record_full_core_shortname.
13397 * record-full.h (record_full_is_used): Declare.
13398 * record.c (find_record_target): Make extern.
13399 (record_preopen): New function.
13400 * record.h (RECORD_IS_USED): Delete macro.
13401 (find_record_target, record_preopen): Declare functions.
13403 2014-01-14 Yao Qi <yao@codesourcery.com>
13405 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13406 'len''s type to ULONGEST.
13407 (core_xfer_shared_libraries_aix): Likewise.
13408 * gdbarch.c, gdbarch.h: Regenerated.
13409 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13410 Change type of 'len' to ULONGEST.
13411 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13412 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13414 2014-01-14 Yao Qi <yao@codesourcery.com>
13416 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13417 type of 'len' to ULONGEST.
13418 (linux_xfer_osdata_processgroups): Likewise.
13419 (linux_xfer_osdata_threads): Likewise.
13420 (linux_xfer_osdata_fds): Likewise.
13421 (linux_xfer_osdata_isockets): Likewise.
13422 (linux_xfer_osdata_shm): Likewise.
13423 (linux_xfer_osdata_sem): Likewise.
13424 (linux_xfer_osdata_msg): Likewise.
13425 (linux_common_xfer_osdata): Likewise.
13426 (struct osdata_type) <getter>: Likewise.
13427 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13430 2014-01-14 Yao Qi <yao@codesourcery.com>
13432 * target.h (target_xfer_partial_ftype): Update.
13433 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13435 * aix-thread.c (aix_thread_xfer_partial): Change type of
13436 argument 'len' to ULONGEST.
13437 * auxv.c (procfs_xfer_auxv): Likewise.
13438 (ld_so_xfer_auxv): Likewise.
13439 (memory_xfer_auxv): Likewise.
13440 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13441 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13442 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13443 * corelow.c (core_xfer_partial): Likewise.
13444 * ctf.c (ctf_xfer_partial): Likewise.
13445 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13447 (darwin_read_dyld_info): Likewise.
13448 (darwin_xfer_partial): Likewise.
13449 * exec.c (section_table_xfer_memory_partial): Likewise.
13450 (exec_xfer_partial): Likewise.
13451 * exec.h (section_table_xfer_memory_partial): Update
13453 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13454 instead of plongest.
13455 (gnu_xfer_partial): Likewise.
13456 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13457 (ia64_hpux_xfer_solib_got): Likewise.
13458 (ia64_hpux_xfer_partial): Likewise.
13459 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13460 * inf-ptrace.c (inf_ptrace_xfer_partial):
13461 * inf-ttrace.c (inf_ttrace_xfer_partial):
13462 * linux-nat.c (linux_xfer_siginfo): Likewise.
13463 (linux_nat_xfer_partial): Likewise.
13464 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13465 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13466 * monitor.c (monitor_xfer_memory): Likewise.
13467 (monitor_xfer_partial): Likewise.
13468 * procfs.c (procfs_xfer_partial): Likewise.
13469 * record-full.c (record_full_xfer_partial): Likewise.
13470 (record_full_core_xfer_partial): Likewise.
13471 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13472 instead of plongest.
13473 (gdbsim_xfer_partial): Likewise.
13474 * remote.c (remote_xfer_partial): Likewise.
13475 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13476 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13478 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13479 (rs6000_xfer_shared_libraries): Likewise.
13480 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13481 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13482 (sparc_xfer_partial): Likewise.
13483 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13484 (spu_xfer_partial): Likewise.
13485 * spu-multiarch.c (spu_xfer_partial): Likewise.
13486 * target.c (target_read_live_memory): Likewise.
13487 (memory_xfer_live_readonly_partial): Likewise.
13488 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13489 (target_xfer_partial, default_xfer_partial): Likewise.
13490 (current_xfer_partial): Likewise.
13491 * tracepoint.c (tfile_xfer_partial): Likewise.
13492 * windows-nat.c (windows_xfer_memory): Likewise. Call
13493 pulongest instead of plongest.
13494 (windows_xfer_partial): Likewise.
13495 (windows_xfer_shared_libraries): Likewise.
13497 2014-01-14 Yao Qi <yao@codesourcery.com>
13499 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13500 target_xfer_partial_ftype.
13502 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13506 * valops.c (value_struct_elt_bitpos): New function
13507 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13508 object to 'None' if the field name is an empty string ("").
13509 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13510 attribute to look for a field when 'name' is 'None'.
13511 (get_field_type): New function
13513 2014-01-13 Doug Evans <dje@google.com>
13516 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13517 (try_open_dwop_file): Ditto.
13518 * gdb_bfd.c: #include "vec.h".
13519 (bfdp): New typedef.
13520 (struct gdb_bfd_data): New member included_bfds.
13521 (gdb_bfd_unref): Unref all included bfds.
13522 (gdb_bfd_record_inclusion): New function.
13523 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13525 2014-01-13 Tom Tromey <tromey@redhat.com>
13527 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13529 2014-01-13 Tom Tromey <tromey@redhat.com>
13531 * defs.h (use_windows): Remove.
13532 * gdb.c (main): Update.
13533 * main.c (captured_main, gdb_main): Update.
13534 * main.h (struct captured_main_args) <use_windows>: Remove.
13535 * top.c (use_windows): Remove.
13537 2014-01-13 Tom Tromey <tromey@redhat.com>
13539 * defs.h (deprecated_flush_hook): Remove.
13541 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13544 * linux-thread-db.c (try_thread_db_load): Add parameter
13545 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13546 (try_thread_db_load_from_pdir_1): Move it there from here.
13547 (try_thread_db_load_from_sdir): Update caller.
13548 (try_thread_db_load_from_dir): Move it there from here.
13550 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13552 * regformats/regdat.sh: Always rewrite the register file.
13554 2014-01-13 Pedro Alves <palves@redhat.com>
13556 * Makefile.in (CHECK_HEADERS): New variable.
13557 (check-headers:): New rule.
13559 2014-01-13 Tom Tromey <tromey@redhat.com>
13561 * cli/cli-setshow.c (do_set_command): Update.
13562 * defs.h (deprecated_set_hook): Remove.
13563 * top.c (deprecated_set_hook): Remove.
13565 2014-01-13 Pedro Alves <palves@redhat.com>
13567 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13568 the tracepoint if the PC is a pseudo-register.
13570 2014-01-13 Tom Tromey <tromey@redhat.com>
13572 * defs.h (XCALLOC): Remove.
13573 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13574 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13575 * dwarf2loc.c (allocate_piece_closure): Likewise.
13576 * elfread.c (elf_symfile_segments): Likewise.
13577 (elf_symfile_segments): Likewise.
13578 * gdbtypes.c (copy_type_recursive): Likewise.
13579 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13580 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13581 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13583 * mt-tdep.c (mt_gdbarch_init): Likewise.
13584 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13586 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13587 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13588 * registry.c (registry_alloc_data): Likewise.
13589 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13590 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13591 * serial.c (serial_fdopen_ops): Likewise.
13592 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13594 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13595 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13598 2014-01-13 Tom Tromey <tromey@redhat.com>
13600 * defs.h (XMALLOC): Remove.
13601 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13602 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13603 * cli-out.c (struct ui_out *): Likewise.
13604 * cli/cli-dump.c (add_dump_command): Likewise.
13605 (add_dump_command): Likewise.
13606 * complaints.c (get_complaints): Likewise.
13607 (find_complaint): Likewise.
13608 * dwarf2-frame.c (execute_cfa_program): Likewise.
13609 * dwarf2read.c (abbrev_table_read_table): Likewise.
13610 * gdbarch.sh: Likewise.
13611 * gdbarch.c: Rebuild.
13612 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13613 * interps.c (interp_new): Likewise.
13614 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13615 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13616 * mi/mi-console.c (mi_console_file_new): Likewise.
13617 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13618 * mi/mi-out.c (mi_out_new): Likewise.
13619 * mi/mi-parse.c (mi_parse): Likewise.
13620 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13621 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13622 * observer.c (xalloc_observer_list_node): Likewise.
13623 * regcache.c (regcache_xmalloc_1): Likewise.
13624 * reggroups.c (reggroup_new): Likewise.
13625 (_initialize_reggroup): Likewise.
13626 * registry.c (register_data_with_cleanup): Likewise.
13627 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13628 * ser-base.c (serial_ttystate): Likewise.
13629 * ser-mingw.c (make_pipe_state): Likewise.
13630 * ser-pipe.c (pipe_open): Likewise.
13631 * serial.c (serial_open): Likewise.
13632 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13633 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13634 (tui_alloc_win_info): Likewise.
13635 (tui_add_content_elements): Likewise.
13636 * tui/tui-file.c (tui_file_new): Likewise.
13637 * tui/tui-out.c (tui_out_new): Likewise.
13638 * ui-file.c (mem_file_new): Likewise.
13639 * ui-out.c (push_level): Likewise.
13640 (make_cleanup_ui_out_end): Likewise.
13641 (append_header_to_list): Likewise.
13642 (ui_out_new): Likewise.
13643 * user-regs.c (user_reg_add_builtin): Likewise.
13645 2014-01-13 Tom Tromey <tromey@redhat.com>
13647 * defs.h (XZALLOC): Remove.
13648 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13649 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13650 (get_ada_tasks_inferior_data): Likewise.
13651 * auto-load.c (get_auto_load_pspace_data): Likewise.
13652 * auxv.c (get_auxv_inferior_data): Likewise.
13653 * bfd-target.c (target_bfd_reopen): Likewise.
13654 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13655 (deprecated_insert_raw_breakpoint): Likewise.
13656 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13657 * corelow.c (core_open): Likewise.
13658 * darwin-nat.c (darwin_check_new_threads): Likewise.
13659 (darwin_attach_pid): Likewise.
13660 * dummy-frame.c (dummy_frame_push): Likewise.
13661 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13662 * dwarf2loc.c (allocate_piece_closure): Likewise.
13663 * elfread.c (elf_symfile_segments): Likewise.
13664 * eval.c (ptrmath_type_p): Likewise.
13665 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13666 * gdbtypes.c (alloc_type_arch): Likewise.
13667 (alloc_type_instance): Likewise.
13668 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13669 * inf-child.c (inf_child_can_use_agent): Likewise.
13670 * inflow.c (get_inflow_inferior_data): Likewise.
13671 * infrun.c (save_infcall_suspend_state): Likewise.
13672 * jit.c (jit_reader_load): Likewise.
13673 (get_jit_objfile_data): Likewise.
13674 (get_jit_program_space_data): Likewise.
13675 (jit_object_open_impl): Likewise.
13676 (jit_symtab_open_impl): Likewise.
13677 (jit_block_open_impl): Likewise.
13678 (jit_frame_sniffer): Likewise.
13679 * linux-fork.c (add_fork): Likewise.
13680 * maint.c (make_command_stats_cleanup): Likewise.
13681 * objfiles.c (get_objfile_pspace_data): Likewise.
13682 * opencl-lang.c (struct lval_closure): Likewise.
13683 * osdata.c (osdata_start_osdata): Likewise.
13684 * progspace.c (new_address_space): Likewise.
13685 (add_program_space): Likewise.
13686 * remote-sim.c (get_sim_inferior_data): Likewise.
13687 * sh-tdep.c (sh_gdbarch_init): Likewise.
13688 * skip.c (Ignore): Likewise.
13689 (skip_delete_command): Likewise.
13690 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13691 (library_list_start_library): Likewise.
13692 (solib_aix_current_sos): Likewise.
13693 * solib-darwin.c (get_darwin_info): Likewise.
13694 (darwin_current_sos): Likewise.
13695 * solib-dsbt.c (get_dsbt_info): Likewise.
13696 * solib-ia64-hpux.c (new_so_list): Likewise.
13697 (ia64_hpux_get_solib_linkage_addr): Likewise.
13698 * solib-spu.c (append_ocl_sos): Likewise.
13699 (spu_current_sos): Likewise.
13700 * solib-svr4.c (get_svr4_info): Likewise.
13701 (svr4_keep_data_in_core): Likewise.
13702 (library_list_start_library): Likewise.
13703 (svr4_default_sos): Likewise.
13704 (svr4_read_so_list): Likewise.
13705 * solib-target.c (library_list_start_library): Likewise.
13706 (solib_target_current_sos): Likewise.
13707 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13708 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13709 * symfile.c (default_symfile_segments): Likewise.
13710 * target-descriptions.c (tdesc_data_init): Likewise.
13711 (tdesc_create_reg): Likewise.
13712 (struct tdesc_type *): Likewise.
13713 (tdesc_create_vector): Likewise.
13714 (tdesc_set_struct_size): Likewise.
13715 (struct tdesc_type *): Likewise.
13716 (tdesc_free_feature): Likewise.
13717 (tdesc_create_feature): Likewise.
13718 * windows-nat.c (windows_add_thread): Likewise.
13719 (windows_make_so): Likewise.
13720 * xml-support.c (gdb_xml_body_text): Likewise.
13721 (gdb_xml_create_parser_and_cleanup): Likewise.
13722 (xml_process_xincludes): Likewise.
13723 * xml-syscall.c (allocate_syscalls_info): Likewise.
13724 (syscall_create_syscall_desc): Likewise.
13726 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13728 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13729 function, with code from i386_stap_parse_special_token.
13730 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13731 (i386_stap_parse_special_token): Move code to the two functions
13732 above; simplify it.
13734 2014-01-09 Pedro Alves <palves@redhat.com>
13735 Hui Zhu <hui@codesourcery.com>
13738 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13739 bp_err_string. Don't mark the location shlib_disabled if the
13740 error thrown wasn't a generic or memory error. Catch errors
13741 thrown while inserting breakpoints in overlayed code. Output
13742 error message of software breakpoints.
13743 * remote.c (remote_insert_breakpoint): If this breakpoint has
13744 target-side commands but this stub doesn't support Z0 packets,
13745 throw NOT_SUPPORTED_ERROR error.
13746 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13747 * target.h (target_insert_breakpoint): Extend comment.
13748 (target_insert_hw_breakpoint): Add comment.
13750 2014-01-08 Pedro Alves <palves@redhat.com>
13752 * remote.c (remote_add_thread): Add threads silently if starting
13754 (remote_notice_new_inferior): If in all-stop, and starting up,
13755 don't call notice_new_inferior.
13756 (get_current_thread): New function, factored out from ...
13757 (add_current_inferior_and_thread): ... this. Adjust.
13758 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13759 found any thread, then select the remote's current thread as GDB's
13760 current thread too.
13762 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13764 * NEWS: Create a new section for the next release branch.
13765 Rename the section of the current branch, now that it has
13768 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13770 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13771 * version.in: Bump version to 7.7.50.DATE-cvs.
13773 2014-01-08 Yao Qi <yao@codesourcery.com>
13775 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13776 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13777 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13779 2014-01-08 Yao Qi <yao@codesourcery.com>
13781 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13782 return value of bfd_get_filename to symbol_file_add_from_bfd.
13784 2014-01-08 Pierre Muller <muller@sourceware.org>
13787 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13788 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13789 to prim_record_mininal_symbol_and_info.
13790 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13791 in call to prim_record_minimal_symbol_and_info.
13792 (read_pe_exported_syms): Set index field of section_data.
13794 2014-01-07 Andrew Pinski <apinski@cavium.com>
13796 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13797 * features/aarch64.c: Regenerate.
13799 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13801 * target.c (return_null): Define.
13802 (update_current_target): Use it instead of return_zero for
13803 functions that return a pointer.
13805 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13807 * source.c (add_path): Fix check for duplicated paths in the previously
13810 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13812 * ada-lang.c: Remove duplicated include statements.
13813 * alphabsd-nat.c: Ditto.
13814 * amd64-darwin-tdep.c: Ditto.
13815 * amd64fbsd-nat.c: Ditto.
13816 * auto-load.c: Ditto.
13818 * breakpoint.c: Ditto.
13819 * dbxread.c: Ditto.
13820 * fork-child.c: Ditto.
13821 * gdb_usleep.c: Ditto.
13822 * i386-darwin-tdep.c: Ditto.
13823 * i386fbsd-nat.c: Ditto.
13825 * inferior.c: Ditto.
13826 * jv-lang.c: Ditto.
13827 * linux-nat.c: Ditto.
13828 * linux-tdep.c: Ditto.
13829 * m68kbsd-nat.c: Ditto.
13830 * m68klinux-nat.c: Ditto.
13831 * microblaze-tdep.c: Ditto.
13832 * mips-linux-tdep.c: Ditto.
13833 * mn10300-tdep.c: Ditto.
13834 * nto-tdep.c: Ditto.
13835 * opencl-lang.c: Ditto.
13837 * printcmd.c: Ditto.
13838 * regcache.c: Ditto.
13839 * remote-m32r-sdi.c: Ditto.
13841 * symfile.c: Ditto.
13843 * tilegx-linux-nat.c: Ditto.
13844 * tilegx-tdep.c: Ditto.
13845 * tracepoint.c: Ditto.
13847 * vaxbsd-nat.c: Ditto.
13848 * windows-nat.c: Ditto.
13849 * xtensa-tdep.c: Ditto.
13851 2014-01-07 Yao Qi <yao@codesourcery.com>
13853 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13855 2014-01-07 Yao Qi <yao@codesourcery.com>
13856 Joel Brobecker <brobecker@adacore.com>
13858 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13859 (pdc_write_regs): Likewise.
13860 (fetch_regs_kernel_thread): Likewise.
13861 (store_regs_kernel_thread): Likewise.
13863 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13865 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13866 tagged type objects to their actual type.
13868 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13870 * ada-valprint.c (print_field_values): Add "language" parameter.
13871 Update calls to print_field_values and print_variant_part.
13872 Pass new parameter "language" in call to val_print instead
13873 of "current_language". Replace call to ada_val_print by call
13875 (print_variant_part): Add "language" parameter.
13876 (ada_val_print_struct_union): Update call to print_field_values.
13878 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13880 * ada-valprint.c (ui_memcpy): Delete.
13881 (ada_print_floating): Update documentation. Add empty line
13882 between between function documentation and implementation.
13883 Delete variable "buffer". Use ui_file_xstrdup in place of
13884 ui_file_put. Minor adjustments following this change.
13886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13888 * ada-valprint.c (ada_val_print_string): New function,
13889 extracted from ada_val_print_array.
13890 (ada_val_print_array): Replace extracted code by call
13891 to ada_val_print_string followed by a return. Move
13892 "else" branch to the function's top block.
13894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13896 * ada-valprint.c (ada_val_print_array): Move implementation
13897 down. Rename parameter "offset" and "val" into "offset_aligned"
13898 and "original_value" respectively. Add parameter "offset".
13900 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13902 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13903 re-organizing the code. Change the "???" message printed
13904 when target type is a TYPE_CODE_UNDEF into
13905 "<ref to undefined type>".
13907 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13909 * ada-valprint.c (print_record): Delete, implementation inlined...
13910 (ada_val_print_struct_union): ... here. Remove call to
13911 ada_check_typedef in inlined implementation.
13913 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13915 * ada-valprint.c (ada_val_print_gnat_array): New function,
13916 extracted from ada_val_print_1;
13917 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13918 (ada_val_print_flt, ada_val_print_struct_union)
13919 (ada_val_print_ref): Likewise.
13920 (ada_val_print_1): Delete variables i and elttype.
13921 Replace extracted-out code by call to corresponding
13924 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13926 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13928 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13930 * ada-valprint.c (ada_val_print_1): Replace calls to
13931 ada_val_print_1 by calls to val_print.
13933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13935 * ada-valprint.c (ada_val_print_1): Add parameter "language".
13936 Update calls to self accordingly. Replace calls to c_val_print
13937 by calls to val_print.
13939 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13941 * ada-valprint.c (print_record): Delete declaration.
13942 (adjust_type_signedness, ada_val_print_1): Likewise.
13943 (ada_val_print): Move function implementation down.
13944 (print_variant_part, print_field_values, print_record):
13945 Move function implementation up.
13947 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13949 * python/py-type.c (typy_get_name): New function.
13950 (type_object_getset): Add entry for attribute "name".
13951 * NEWS: Add entry mentioning this new attribute.
13953 2014-01-07 Yao Qi <yao@codesourcery.com>
13955 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13958 2014-01-07 Yao Qi <yao@codesourcery.com>
13960 * gnu-nat.c (info_port_rights): Add qualifier const to
13963 2014-01-07 Yao Qi <yao@codesourcery.com>
13965 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13967 2014-01-07 Yao Qi <yao@codesourcery.com>
13969 * gnu-nat.c (make_inf) Update declaration.
13970 (make_inf): Make it static.
13971 (inf_set_traced): Likewise.
13972 (inf_port_to_thread, inf_task_died_status): Likewise.
13974 2014-01-07 Yao Qi <yao@codesourcery.com>
13976 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13978 2014-01-07 Yao Qi <yao@codesourcery.com>
13980 * gnu-nat.c (_initialize_gnu_nat): Declare.
13982 2014-01-07 Yao Qi <yao@codesourcery.com>
13984 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13986 (struct gdbarch_info) <byte_order>: Change type to
13988 <byte_order_for_code>: Likewise.
13989 * gdbarch.c, gdbarch.h: Regenerated.
13991 2014-01-06 Sasha Smundak <asmundak@google.com>
13993 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13995 2014-01-06 Tom Tromey <tromey@redhat.com>
13997 * doublest.c (convert_doublest_to_floatformat): Use const, not
13999 * somread.c (som_symtab_read): Likewise.
14001 2014-01-07 Hui Zhu <hui@codesourcery.com>
14003 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14004 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14005 (gdb_bfd_fopen): Ditto.
14006 (gdb_bfd_openr): Ditto.
14007 (gdb_bfd_openw): Ditto.
14008 (gdb_bfd_openr_iovec): Ditto.
14009 (gdb_bfd_fdopenr): Ditto.
14010 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14011 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14013 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14015 * symfile-mem.c (symbol_file_add_from_memory): Removed
14016 gdb_bfd_stash_filename.
14018 2014-01-03 Doug Evans <dje@google.com>
14020 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14023 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14025 Update year range in copyright notice of all files.
14027 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14029 * top.c (print_gdb_version): Set copyright year to 2014.
14031 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14033 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14035 For older changes see ChangeLog-2013.
14041 version-control: never