1 2014-10-15 Pedro Alves <palves@redhat.com>
3 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
4 (breakpoint_inserted_here_p): ... here. Remove special case for
5 software single-step breakpoints.
6 (find_non_raw_software_breakpoint_inserted_here): Inline ...
7 (software_breakpoint_inserted_here_p): ... here. Remove special
8 case for software single-step breakpoints.
9 (bp_target_info_copy_insertion_state)
10 (deprecated_insert_raw_breakpoint)
11 (deprecated_remove_raw_breakpoint): Delete functions.
12 * breakpoint.h (deprecated_insert_raw_breakpoint)
13 (deprecated_remove_raw_breakpoint): Remove declarations.
15 2014-10-15 Pedro Alves <palves@redhat.com>
18 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
20 (single_step_breakpoints): New global.
21 (breakpoint_xfer_memory): Remove special handling for single-step
23 (update_breakpoints_after_exec): Delete bp_single_step
25 (detach_breakpoints): Remove special handling for single-step
27 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
28 (bpstat_stop_status): Add comment.
29 (bpstat_what, bptype_string, print_one_breakpoint_location)
30 (adjust_breakpoint_address, init_bp_location): Handle
32 (new_single_step_breakpoint): New function.
33 (set_momentary_breakpoint, bkpt_remove_location): Remove special
34 handling for single-step breakpoints.
35 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
36 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
38 (detach_single_step_breakpoints, find_single_step_breakpoint):
40 (breakpoint_has_location_inserted_here): New function.
41 (single_step_breakpoint_inserted_here_p): Rewrite.
42 * breakpoint.h: Remove FIXME.
43 (enum bptype) <bp_single_step>: New enum value.
44 (insert_single_step_breakpoint): Update comment.
45 * infrun.c (resume_cleanups)
46 (delete_step_thread_step_resume_breakpoint): Remove single-step
48 (fetch_inferior_event): Install a cleanup that removes infrun
50 (switch_back_to_stepped_thread) <expect thread advanced also>:
53 2014-10-15 Pedro Alves <palves@redhat.com>
55 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
56 (delete_thread_infrun_breakpoints): New function, with parts
57 salvaged from delete_step_resume_breakpoint_callback.
58 (delete_step_thread_step_resume_breakpoint): Delete.
59 (for_each_just_stopped_thread_callback_func): New typedef.
60 (for_each_just_stopped_thread): New function.
61 (delete_just_stopped_threads_infrun_breakpoints): New function.
62 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
63 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
65 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
67 2014-10-15 Pedro Alves <palves@redhat.com>
69 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
70 trying to step past a non-steppable watchpoint.
71 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
73 * infrun.c (struct step_over_info): Add new field
74 'nonsteppable_watchpoint_p' and adjust comments.
75 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
77 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
78 (stepping_past_nonsteppable_watchpoint): New function.
79 (step_over_info_valid_p): Also return true if stepping past a
80 nonsteppable watchpoint.
81 (proceed): Adjust call to set_step_over_info. Remove reference to
83 (init_wait_for_inferior): Remove reference to init_infwait_state.
84 (waiton_ptid): Delete global.
85 (struct execution_control_state)
86 <stepped_after_stopped_by_watchpoint>: Delete field.
87 (wait_for_inferior, fetch_inferior_event): Always pass
88 minus_one_ptid to target_wait.
89 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
91 (init_infwait_state): Delete function.
92 (handle_inferior_event): Remove infwait_state handling.
93 (handle_signal_stop) <watchpoints handling>: Adjust after
94 stepped_after_stopped_by_watchpoint removal. Don't remove
95 breakpoints here nor set infwait_state. Set the thread's
96 stepping_over_watchpoint flag, and call keep_going instead.
97 (keep_going): Handle stepping_over_watchpoint. Adjust
98 set_step_over_info calls.
99 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
102 2014-10-15 Pedro Alves <palves@redhat.com>
104 * infrun.c (step_over_info_valid_p): New function.
105 (resume): Use step_over_info_valid_p instead of checking the
106 threads's trap_expected flag.
108 2014-10-15 Doug Evans <dje@google.com>
109 Walfred Tedeschi <walfred.tedeschi@intel.com>
112 * python/lib/gdb/__init__.py (packages): Add "printer".
113 * python/lib/gdb/command/bound_registers.py: Moved to ...
114 * python/lib/gdb/printer/bound_registers.py: ... here.
115 Add printer to global set of builtin printers. Rename printer from
116 "bound" to "mpx_bound128".
117 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
118 registered as global "builtin" printer.
119 (add_builtin_pretty_printer): New function.
120 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
121 gdb/printer/__init__.py.
123 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
125 * Makefile.in (SFILES): Remove d-support.c.
126 (COMMON_OBS): Remove d-support.o.
127 * d-lang.h (d_parse_symbol): Remove declaration.
128 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
129 * d-support.c: Remove file.
131 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
133 * gdb/infrun.c (process_event_stop_test): Apply
134 gdbarch_addr_bits_remove to longjmp resume address.
136 2014-10-15 Pedro Alves <palves@redhat.com>
138 * regformats/microblaze.dat: Delete file.
140 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
142 * features/Makefile (microblaze-expedite): Replace pc with rpc.
143 * regformats/microblaze-with-stack-protect.dat: Regenerate.
145 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
147 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
150 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
154 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
157 2014-10-14 Joel Brobecker <brobecker@adacore.com>
159 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
160 of the case where the second operand is a pointer.
161 <BINOP_SUB>: Likewise.
163 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
165 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
166 only if it is not NULL.
167 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
168 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
169 (struct probe_ops) <clear_semaphore>: Likewise.
170 * tracepoint.c (start_tracing): Call set_semaphore only if it is
172 (stop_tracing): Likewise, for clear_semaphore.
174 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
176 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
177 using language_c, instead of current_language.
179 2014-10-13 Doug Evans <dje@google.com>
181 * python/py-objfile.c (objfpy_initialize): New function.
182 (objfpy_new, objfile_to_objfile_object): Call it.
183 * python/py-progspace.c (pspy_initialize): New function.
184 (pspy_new, pspace_to_pspace_object): Call it.
186 2014-10-13 Miroslav Franc <mfranc@redhat.com>
187 Jan Kratochvil <jan.kratochvil@redhat.com>
189 Fix "save breakpoints" for "catch" command.
190 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
193 2014-10-12 Miroslav Franc <mfranc@redhat.com>
195 Fix "save breakpoints" for "disable $bpnum" command.
196 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
198 2014-10-10 Pedro Alves <palves@redhat.com>
200 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
201 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
202 (HFILES_NO_SRCDIR): Remove solib-irix.h.
203 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
205 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
206 * configure.ac: Remove references to IRIX.
207 * configure.host: Add *-*-irix* to the obsolete hosts section.
208 Remove all other references to irix.
209 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
212 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
214 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
215 isn't valid, release the tdesc arch data and return NULL.
217 2014-10-10 Pedro Alves <palves@redhat.com>
219 * linux-tdep.c: Include observer.h.
220 (linux_inferior_data): New global.
221 (struct linux_info): New structure.
222 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
223 (get_linux_inferior_data): New functions.
224 (linux_vsyscall_range): Rename to ...
225 (linux_vsyscall_range_raw): ... this.
226 (linux_vsyscall_range): New function; handles caching.
227 (_initialize_linux_tdep): Register linux_inferior_data. Install
228 inferior_exit and inferior_appeared observers.
230 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
231 Pedro Alves <palves@redhat.com>
234 * solib-svr4.c (svr4_read_so_list): Rename to ...
235 (svr4_current_sos_1): ... this and change the function comment.
236 (svr4_current_sos): New function.
238 2014-10-10 Pedro Alves <palves@redhat.com>
240 * arch-utils.c (default_vsyscall_range): New function.
241 * arch-utils.h (default_vsyscall_range): New declaration.
242 * gdbarch.sh (vsyscall_range): New hook.
243 * gdbarch.h, gdbarch.c: Regenerate.
244 * linux-tdep.c (linux_vsyscall_range): New function.
245 (linux_init_abi): Install linux_vsyscall_range as
246 vsyscall_range gdbarch hook.
247 * memrange.c (address_in_mem_range): New function.
248 * memrange.h (address_in_mem_range): New declaration.
249 * symfile-mem.c (find_vdso_size): Delete function.
250 (add_vsyscall_page): Use gdbarch_vsyscall_range.
252 2014-10-10 Pedro Alves <palves@redhat.com>
254 * infrun.c (normal_stop): Fix typo in comment.
256 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
259 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
260 typo when using logical AND to determine instruction type.
262 2014-10-09 Yao Qi <yao@codesourcery.com>
264 * infrun.c (handle_signal_stop): Remove local variable
267 2014-10-08 Stan Shebs <stan@codesourcery.com>
269 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
271 2014-10-08 Gary Benson <gbenson@redhat.com>
273 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
275 2014-10-08 Gary Benson <gbenson@redhat.com>
277 * common/common-defs.h: Include common-exceptions.h.
278 * exceptions.h: Do not include common-exceptions.h.
280 2014-10-08 Gary Benson <gbenson@redhat.com>
282 * common/common-defs.h: Include cleanups.h.
283 * common/common-exceptions.c: Do not include cleanups.h.
286 2014-10-08 Gary Benson <gbenson@redhat.com>
288 * ada-lang.c: Do not include exceptions.h.
289 * ada-valprint.c: Likewise.
290 * amd64-tdep.c: Likewise.
291 * auto-load.c: Likewise.
293 * break-catch-throw.c: Likewise.
294 * breakpoint.c: Likewise.
295 * btrace.c: Likewise.
296 * c-lang.c: Likewise.
297 * cli/cli-cmds.c: Likewise.
298 * cli/cli-interp.c: Likewise.
299 * cli/cli-script.c: Likewise.
300 * completer.c: Likewise.
301 * corefile.c: Likewise.
302 * corelow.c: Likewise.
303 * cp-abi.c: Likewise.
304 * cp-support.c: Likewise.
305 * cp-valprint.c: Likewise.
306 * darwin-nat.c: Likewise.
307 * dwarf2-frame-tailcall.c: Likewise.
308 * dwarf2-frame.c: Likewise.
309 * dwarf2loc.c: Likewise.
310 * dwarf2read.c: Likewise.
312 * event-loop.c: Likewise.
313 * event-top.c: Likewise.
314 * f-valprint.c: Likewise.
315 * frame-unwind.c: Likewise.
317 * gdbtypes.c: Likewise.
318 * gnu-v2-abi.c: Likewise.
319 * gnu-v3-abi.c: Likewise.
320 * guile/scm-auto-load.c: Likewise.
321 * guile/scm-breakpoint.c: Likewise.
322 * guile/scm-cmd.c: Likewise.
323 * guile/scm-frame.c: Likewise.
324 * guile/scm-lazy-string.c: Likewise.
325 * guile/scm-param.c: Likewise.
326 * guile/scm-symbol.c: Likewise.
327 * guile/scm-type.c: Likewise.
328 * hppa-hpux-tdep.c: Likewise.
329 * i386-tdep.c: Likewise.
330 * inf-loop.c: Likewise.
331 * infcall.c: Likewise.
332 * infcmd.c: Likewise.
333 * infrun.c: Likewise.
334 * interps.c: Likewise.
335 * interps.h: Likewise.
337 * linespec.c: Likewise.
338 * linux-nat.c: Likewise.
339 * linux-thread-db.c: Likewise.
340 * m32r-rom.c: Likewise.
342 * memory-map.c: Likewise.
343 * mi/mi-cmd-break.c: Likewise.
344 * mi/mi-cmd-stack.c: Likewise.
345 * mi/mi-interp.c: Likewise.
346 * mi/mi-main.c: Likewise.
347 * monitor.c: Likewise.
348 * nto-procfs.c: Likewise.
349 * objc-lang.c: Likewise.
350 * p-valprint.c: Likewise.
352 * ppc-linux-tdep.c: Likewise.
353 * printcmd.c: Likewise.
355 * python/py-auto-load.c: Likewise.
356 * python/py-breakpoint.c: Likewise.
357 * python/py-cmd.c: Likewise.
358 * python/py-finishbreakpoint.c: Likewise.
359 * python/py-frame.c: Likewise.
360 * python/py-framefilter.c: Likewise.
361 * python/py-function.c: Likewise.
362 * python/py-gdb-readline.c: Likewise.
363 * python/py-inferior.c: Likewise.
364 * python/py-infthread.c: Likewise.
365 * python/py-lazy-string.c: Likewise.
366 * python/py-linetable.c: Likewise.
367 * python/py-param.c: Likewise.
368 * python/py-prettyprint.c: Likewise.
369 * python/py-symbol.c: Likewise.
370 * python/py-type.c: Likewise.
371 * python/py-value.c: Likewise.
372 * python/python-internal.h: Likewise.
373 * python/python.c: Likewise.
374 * record-btrace.c: Likewise.
375 * record-full.c: Likewise.
376 * regcache.c: Likewise.
377 * remote-fileio.c: Likewise.
378 * remote-mips.c: Likewise.
379 * remote.c: Likewise.
380 * rs6000-aix-tdep.c: Likewise.
381 * rs6000-nat.c: Likewise.
383 * solib-darwin.c: Likewise.
384 * solib-dsbt.c: Likewise.
385 * solib-frv.c: Likewise.
386 * solib-ia64-hpux.c: Likewise.
387 * solib-spu.c: Likewise.
388 * solib-svr4.c: Likewise.
390 * spu-tdep.c: Likewise.
392 * stap-probe.c: Likewise.
393 * symfile-mem.c: Likewise.
394 * symmisc.c: Likewise.
395 * target.c: Likewise.
396 * thread.c: Likewise.
398 * tracepoint.c: Likewise.
399 * tui/tui-interp.c: Likewise.
400 * typeprint.c: Likewise.
402 * valarith.c: Likewise.
403 * valops.c: Likewise.
404 * valprint.c: Likewise.
406 * varobj.c: Likewise.
407 * windows-nat.c: Likewise.
408 * xml-support.c: Likewise.
410 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
412 * mips-tdep.c (add_offset_16): Rewrite to implement what the
414 (extended_mips16_next_pc): Update accordingly.
416 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
418 * mips-tdep.c (mips16_instruction_is_compact_branch): New
420 (micromips_instruction_is_compact_branch): Likewise.
421 (mips16_scan_prologue): Terminate scanning upon seeing a branch
422 or a compact jump, reaching a jump delay slot, or seeing a
423 second non-prologue instruction.
424 (micromips_scan_prologue): Also terminate scanning upon seeing a
425 compact branch or jump, or reaching a branch or jump delay slot.
426 (mips32_scan_prologue): Terminate scanning upon reaching a branch
427 or jump delay slot, or seeing a second non-prologue instruction.
428 (mips32_instruction_has_delay_slot): Retain instruction
429 examination code only, update arguments accordingly and move
430 instruction fetch pieces to...
431 (mips32_insn_at_pc_has_delay_slot): ... this new function.
432 (micromips_instruction_has_delay_slot): Likewise and to...
433 (micromips_insn_at_pc_has_delay_slot): ... this new function.
434 (mips16_instruction_has_delay_slot): Likewise and to...
435 (mips16_insn_at_pc_has_delay_slot): ... this new function.
436 (mips_single_step_through_delay): Update accordingly.
437 (mips_adjust_breakpoint_address): Likewise.
439 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
441 * mips-tdep.c (micromips_instruction_has_delay_slot): When
442 !mustbe32 also return 1 for 32-bit instructions.
443 (mips16_instruction_has_delay_slot): Likewise. Add an
446 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
448 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
451 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
453 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
455 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
456 for the breakpoint's address. Don't preinitialize `placed_size'.
457 (insert_bp_location): Set `reqstd_address' rather than
459 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
460 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
462 (bkpt_remove_location): Likewise.
463 (deprecated_insert_raw_breakpoint): Likewise.
464 (deprecated_remove_raw_breakpoint): Likewise.
465 (find_single_step_breakpoint): Likewise.
466 * mem-break.c (default_memory_insert_breakpoint): Use
467 `reqstd_address' for the breakpoint's address. Don't set
468 `placed_address' or `placed_size' if breakpoint contents couldn't
469 have been determined.
470 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
471 the breakpoint's address.
472 (remote_insert_hw_breakpoint): Likewise. Don't set
473 `placed_address' or `placed_size' if breakpoint couldn't have been
475 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
476 `reqstd_address' for the breakpoint's address.
477 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
478 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
479 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
480 * microblaze-linux-tdep.c
481 (microblaze_linux_memory_remove_breakpoint): Likewise.
482 * monitor.c (monitor_insert_breakpoint): Likewise.
483 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
484 (procfs_insert_hw_breakpoint): Likewise.
485 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
486 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
487 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
488 * remote-mips.c (mips_insert_breakpoint): Likewise.
489 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
491 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
493 * valops.c (value_assign): Check for bit field assignments
494 before calling architecture-specific register value
495 conversion functions.
497 2014-10-03 Pierre Muller <muller@sourceware.org>
499 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
501 2014-10-02 Pedro Alves <palves@redhat.com>
503 * breakpoint.c (breakpoints_should_be_inserted_now): Use
504 threads_are_executing.
505 * breakpoint.h (breakpoints_should_be_inserted_now): Add
507 * gdbthread.h (threads_are_executing): Declare.
508 (handle_signal_stop) <random signals>: Don't print about the
509 signal here if stopping.
510 (end_stepping_range): Don't notify observers here.
511 (normal_stop): Update the thread list. If stopped by a random
512 signal or a stepping range ended, notify observers.
513 * thread.c (threads_executing): New global.
514 (init_thread_list): Clear 'threads_executing'.
515 (set_executing): Set or clear 'threads_executing'.
516 (threads_are_executing): New function.
517 (update_threads_executing): New function.
518 (update_thread_list): Use it.
520 2014-10-02 Pedro Alves <palves@redhat.com>
523 * breakpoint.c (update_breakpoints_after_exec): Don't create
524 overlay, longjmp, std terminate nor exception breakpoints here.
526 2014-10-02 Pedro Alves <palves@redhat.com>
528 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
530 * inferior.c (find_inferior_for_program_space): Give preference to
531 the current inferior.
532 * inferior.h (find_inferior_for_program_space): Update comment.
533 * progspace.c (switch_to_program_space_and_thread): Prefer the
534 current inferior if it's bound to the program space requested. If
535 the inferior found doesn't have a PID yet, don't bother looking up
537 * progspace.h (switch_to_program_space_and_thread): Adjust
539 * thread.c (any_thread_of_process, any_live_thread_of_process):
540 Give preference to the current thread.
542 2014-10-01 Pedro Alves <palves@redhat.com>
544 * breakpoint.c (insert_bp_location): Error out if inserting a
545 software breakpoint at a read-only address.
546 * target.c (memory_xfer_check_region): New function, factored out
548 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
550 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
551 against the memory region attributes.
553 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
555 * NEWS: Announce new exit-code field in -list-thread-groups
557 * inferior.c (exit_inferior_1): Don't clear exit code.
558 (inferior_appeared): Clear exit code.
559 * mi/mi-main.c (print_one_inferior): Add printing of the exit
562 2014-10-01 Pedro Alves <palves@redhat.com>
564 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
565 GENERATED" along with emacs/vi read-only markers.
566 * regformats/aarch64.dat: Regenerate.
567 * regformats/arm-with-iwmmxt.dat: Regenerate.
568 * regformats/arm-with-neon.dat: Regenerate.
569 * regformats/arm-with-vfpv2.dat: Regenerate.
570 * regformats/arm-with-vfpv3.dat: Regenerate.
571 * regformats/i386/amd64-avx-linux.dat: Regenerate.
572 * regformats/i386/amd64-avx.dat: Regenerate.
573 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
574 * regformats/i386/amd64-avx512.dat: Regenerate.
575 * regformats/i386/amd64-linux.dat: Regenerate.
576 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
577 * regformats/i386/amd64-mpx.dat: Regenerate.
578 * regformats/i386/amd64.dat: Regenerate.
579 * regformats/i386/i386-avx-linux.dat: Regenerate.
580 * regformats/i386/i386-avx.dat: Regenerate.
581 * regformats/i386/i386-avx512-linux.dat: Regenerate.
582 * regformats/i386/i386-avx512.dat: Regenerate.
583 * regformats/i386/i386-linux.dat: Regenerate.
584 * regformats/i386/i386-mmx-linux.dat: Regenerate.
585 * regformats/i386/i386-mmx.dat: Regenerate.
586 * regformats/i386/i386-mpx-linux.dat: Regenerate.
587 * regformats/i386/i386-mpx.dat: Regenerate.
588 * regformats/i386/i386.dat: Regenerate.
589 * regformats/i386/x32-avx-linux.dat: Regenerate.
590 * regformats/i386/x32-avx.dat: Regenerate.
591 * regformats/i386/x32-avx512-linux.dat: Regenerate.
592 * regformats/i386/x32-avx512.dat: Regenerate.
593 * regformats/i386/x32-linux.dat: Regenerate.
594 * regformats/i386/x32.dat: Regenerate.
595 * regformats/microblaze-with-stack-protect.dat: Regenerate.
596 * regformats/mips-dsp-linux.dat: Regenerate.
597 * regformats/mips-linux.dat: Regenerate.
598 * regformats/mips64-dsp-linux.dat: Regenerate.
599 * regformats/mips64-linux.dat: Regenerate.
600 * regformats/nios2-linux.dat: Regenerate.
601 * regformats/rs6000/powerpc-32.dat: Regenerate.
602 * regformats/rs6000/powerpc-32l.dat: Regenerate.
603 * regformats/rs6000/powerpc-64l.dat: Regenerate.
604 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
605 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
606 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
607 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
608 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
609 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
610 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
611 * regformats/s390-linux32.dat: Regenerate.
612 * regformats/s390-linux32v1.dat: Regenerate.
613 * regformats/s390-linux32v2.dat: Regenerate.
614 * regformats/s390-linux64.dat: Regenerate.
615 * regformats/s390-linux64v1.dat: Regenerate.
616 * regformats/s390-linux64v2.dat: Regenerate.
617 * regformats/s390-te-linux64.dat: Regenerate.
618 * regformats/s390x-linux64.dat: Regenerate.
619 * regformats/s390x-linux64v1.dat: Regenerate.
620 * regformats/s390x-linux64v2.dat: Regenerate.
621 * regformats/s390x-te-linux64.dat: Regenerate.
622 * regformats/tic6x-c62x-linux.dat: Regenerate.
623 * regformats/tic6x-c62x.dat: Regenerate.
624 * regformats/tic6x-c64x-linux.dat: Regenerate.
625 * regformats/tic6x-c64x.dat: Regenerate.
626 * regformats/tic6x-c64xp-linux.dat: Regenerate.
627 * regformats/tic6x-c64xp.dat: Regenerate.
629 2014-10-01 Pedro Alves <palves@redhat.com>
631 * features/Makefile: Update comments.
632 (XMLTOC): List all xml files we build C files from.
633 (clean-cfiles): New rule.
635 2014-10-01 Pedro Alves <palves@redhat.com>
637 * features/i386/amd64-avx512-linux.c: Regenerate.
638 * features/i386/amd64-avx512.c: Regenerate.
639 * features/i386/x32-avx512-linux.c: Regenerate.
640 * features/i386/x32-avx512.c: Regenerate.
642 2014-10-01 Pedro Alves <palves@redhat.com>
644 * features/Makefile (WHICH): Remove arm-with-m,
645 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
647 2014-10-01 Pedro Alves <palves@redhat.com>
649 * features/Makefile (clean): New rule.
651 2014-10-01 Pedro Alves <palves@redhat.com>
653 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
654 (zmm14h): Add missing end quotes.
656 2014-10-01 Pedro Alves <palves@redhat.com>
658 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
659 * features/aarch64.c: Regenerate.
661 2014-09-30 Don Breazeal <donb@codesourcery.com>
663 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
664 code so as to work with follow_fork_inferior.
665 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
666 (inf_ttrace_create_inferior): Remove reference to
667 inf_ttrace_vfork_ppid.
668 (inf_ttrace_attach): Ditto.
669 (inf_ttrace_detach): Ditto.
670 (inf_ttrace_kill): Use current_inferior instead of
671 inf_ttrace_vfork_ppid.
672 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
673 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
674 inferior away from the parent.
675 * infrun.c (follow_fork): Call follow_fork_inferior instead of
677 (follow_fork_inferior): New function.
678 (follow_inferior_reset_breakpoints): Make function static.
679 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
680 * linux-nat.c (linux_child_follow_fork): Move target-independent
681 code to infrun.c:follow_fork_inferior.
683 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
685 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
686 * gdbarch.c: Regenerate.
687 * gdbarch.h: Likewise.
688 * corelow.c (sniff_core_bfd): Drop presence check for deleted
689 gdbarch method 'regset_from_core_section'.
690 (get_core_register_section): Remove handling for the case that
691 regset == NULL and regset_from_core_section is defined.
692 (get_core_registers): Drop check for deleted method.
693 * procfs.c (procfs_do_thread_registers): Adjust comment.
695 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
697 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
698 (linux_nat_make_corefile_notes): Remove.
699 (linux_target_install_ops): Do not set target method
700 'make_corefile_notes'.
701 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
703 (linux_corefile_thread_callback): Instead of args->collect, call
704 linux_collect_thread_registers.
705 (linux_make_corefile_notes): Remove 'collect' parameter. Return
706 NULL unless there is a regset iterator.
707 (linux_make_corefile_notes_1): Remove.
708 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
709 by linux_make_corefile_notes.
710 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
712 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
714 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
715 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
717 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
719 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
721 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
722 (xtensa_iterate_over_regset_sections): New.
723 (xtensa_gdbarch_init): Adjust gdbarch initialization.
725 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
727 * vax-tdep.c (vax_regset_from_core_section): Remove.
728 (vax_iterate_over_regset_sections): New.
729 (vax_gdbarch_init): Adjust gdbarch initialization.
731 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
733 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
734 (tilegx_regset_from_core_section): Remove.
735 (tilegx_iterate_over_regset_sections): New.
736 (tilegx_linux_init_abi): Adjust gdbarch initialization.
738 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
740 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
741 (sparc_iterate_over_regset_sections): New.
742 (sparc32_gdbarch_init): Adjust gdbarch initialization.
743 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
745 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
746 (sparc64fbsd_init_abi): Call fbsd_init_abi.
747 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
748 target method 'make_corefile_notes'.
750 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
752 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
753 'sizeof_gregset' and 'sizeof_fpregset'.
754 * sh-tdep.c (sh_regset_from_core_section): Remove.
755 (sh_iterate_over_regset_sections): New.
756 (sh_gdbarch_init): Adjust gdbarch initialization.
757 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
759 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
762 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
764 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
765 (score7_linux_iterate_over_regset_sections): New.
766 (score_gdbarch_init): Adjust gdbarch initialization.
768 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
770 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
772 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
773 method 'make_corefile_notes'.
774 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
775 (ppcfbsd_regset_from_core_section): Remove.
776 (ppcfbsd_iterate_over_regset_sections): New.
777 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
779 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
780 (ppcnbsd_iterate_over_regset_sections): New.
781 (ppcnbsd_init_abi): Adjust.
782 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
783 (ppcobsd_iterate_over_regset_sections): New.
784 (ppcobsd_init_abi): Adjust.
785 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
786 (rs6000_aix_iterate_over_regset_sections): New.
787 (rs6000_aix_init_osabi): Adjust.
789 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
791 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
792 (nios2_regset_from_core_section): Remove.
793 (nios2_iterate_over_regset_sections): New.
794 (nios2_linux_init_abi): Adjust gdbarch initialization.
796 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
798 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
799 (am33_iterate_over_regset_sections): New.
800 (am33_linux_init_osabi): Adjust gdbarch initialization.
802 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
804 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
805 (mips_linux_iterate_over_regset_sections): New.
806 (mips_linux_init_abi): Adjust gdbarch initialization.
807 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
808 (mips64obsd_iterate_over_regset_sections): New.
809 (mips64obsd_init_abi): Adjust.
810 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
811 (mipsnbsd_iterate_over_regset_sections): New.
812 (mipsnbsd_init_abi): Adjust.
814 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
816 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
817 (m88k_iterate_over_regset_sections): New.
818 (m88k_gdbarch_init): Adjust gdbarch initialization.
820 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
822 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
823 (ia64_linux_iterate_over_regset_sections): New.
824 (ia64_linux_init_abi): Adjust gdbarch initialization.
826 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
828 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
829 (m68kbsd_iterate_over_regset_sections): New.
830 (m68kbsd_init_abi): Adjust gdbarch initialization.
831 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
832 (m68k_linux_iterate_over_regset_sections): New.
833 (m68k_linux_init_abi): Adjust gdbarch initialization.
835 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
837 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
838 (m32r_linux_regset_from_core_section): Remove.
839 (m32r_linux_iterate_over_regset_sections): New.
840 (m32r_linux_init_abi): Adjust gdbarch initialization.
842 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
844 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
845 (amd64obsd_iterate_over_regset_sections): New.
846 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
847 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
849 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
850 regset_from_core_section initialization.
851 * i386-tdep.c (i386_regset_from_core_section): Remove.
852 (i386_iterate_over_regset_sections): New.
853 (i386_gdbarch_init): Adjust gdbarch initialization.
854 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
855 (i386_iterate_over_regset_sections): New prototype.
856 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
858 (i386obsd_aout_iterate_over_regset_sections): New.
859 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
860 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
862 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
863 (amd64fbsd_init_abi): Call fbsd_init_abi.
864 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
865 (i386fbsd4_init_abi): Call fbsd_init_abi.
866 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
867 target method 'make_corefile_notes'.
868 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
870 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
872 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
873 (hppa_hpux_iterate_over_regset_sections): New.
874 (hppa_hpux_init_abi): Adjust gdbarch initialization.
875 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
876 (hppa_linux_iterate_over_regset_sections): New.
877 (hppa_linux_init_abi): Adjust.
878 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
879 (hppanbsd_iterate_over_regset_sections): New.
880 (hppanbsd_init_abi): Adjust.
881 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
882 (hppaobsd_iterate_over_regset_sections): New.
883 (hppaobsd_init_abi): Adjust.
885 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
887 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
888 (frv_linux_iterate_over_regset_sections): New.
889 (frv_linux_init_abi): Adjust gdbarch initialization.
891 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
893 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
894 (armbsd_iterate_over_regset_sections): New prototype.
895 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
896 (armbsd_iterate_over_regset_sections): New.
897 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
900 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
902 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
903 (alpha_linux_iterate_over_regset_sections): New.
904 (alpha_linux_init_abi): Adjust gdbarch initialization.
905 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
907 (alphanbsd_iterate_over_regset_sections): New prototype.
909 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
911 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
913 (aarch64_linux_iterate_over_regset_sections): New.
914 (aarch64_linux_init_abi): Adjust gdbarch initialization.
916 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
918 * fbsd-tdep.c: New file.
919 * fbsd-tdep.h: New file.
920 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
921 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
922 (ALLDEPFILES): Add fbsd-tdep.c.
924 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
926 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
928 * gdbarch.h: Regenerate.
929 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
931 (get_core_register_section): Add parameter 'regset' and use it, if
932 set. Add parameter 'min_size' and verify the bfd section size
934 (get_core_registers_cb): Add parameter 'regset' and pass it to
935 get_core_register section. For the "standard" register sections
936 ".reg" and ".reg2", set an appropriate default for human_name.
937 (get_core_registers): Don't abort when the gdbarch has an iterator
938 but no regset_from_core_section. Add NULL/0 for parameters
939 'regset'/'min_size' in calls to get_core_register_section.
940 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
941 'regset' and use it instead of calling the
942 regset_from_core_section gdbarch method.
943 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
944 * i386-tdep.c (i386_supply_xstateregset)
945 (i386_collect_xstateregset, i386_xstateregset): Moved to
947 (i386_regset_from_core_section): Drop handling for .reg-xfp and
949 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
950 core file support only if the regset iterator hasn't been set.
951 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
952 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
953 Moved from i386-tdep.c and renamed to *_linux*.
954 (i386_linux_iterate_over_regset_sections): Add regset parameter to
955 each callback invocation. Allow any .reg-xstate size when reading
957 * amd64-tdep.c (amd64_supply_xstateregset)
958 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
960 (amd64_regset_from_core_section): Remove.
961 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
962 install an amd64-specific regset_from_core_section gdbarch method.
963 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
964 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
965 Moved from amd64-tdep.c and renamed to *_linux*.
966 (amd64_linux_iterate_over_regset_sections): Add regset parameter
967 to each callback invocation. Allow any .reg-xstate size when
968 reading from a core file.
969 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
970 (arm_linux_iterate_over_regset_sections): Add regset parameter to
971 each callback invocation.
972 (arm_linux_init_abi): No longer set the regset_from_core_section
974 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
975 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
976 each callback invocation.
977 (ppc_linux_init_abi): No longer set the regset_from_core_section
979 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
980 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
981 (s390_regset_from_core_section): Remove.
982 (s390_iterate_over_regset_sections): Add regset parameter to each
984 (s390_gdbarch_init): No longer set the regset_from_core_section
985 gdbarch method. Drop initialization of deleted tdep fields.
987 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
989 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
990 (amd64_linux_iterate_over_regset_sections): New.
991 (amd64_linux_init_abi_common): Don't install the regset section
992 list, but the new iterator in gdbarch.
993 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
994 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
995 (arm_linux_iterate_over_regset_sections): ...here. New function.
996 (arm_linux_init_abi): Set iterator instead of section list.
997 * corelow.c (get_core_registers_cb): New function, logic moved
999 (get_core_registers): ...loop body here. Use new iterator method
1000 instead of walking through the regset section list.
1001 * gdbarch.sh: Remove 'core_regset_sections'. New method
1002 'iterate_over_regset_sections'. New typedef
1003 'iterate_over_regset_sections_cb'.
1004 * gdbarch.c: Regenerate.
1005 * gdbarch.h: Likewise.
1006 * i386-linux-tdep.c (i386_linux_regset_sections)
1007 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1009 (i386_linux_iterate_over_regset_sections): New.
1010 (i386_linux_init_abi): Don't choose a regset section list, but
1011 install new iterator in gdbarch.
1012 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1013 (linux_collect_regset_section_cb): New function, logic moved
1015 (linux_collect_thread_registers): ...loop body here. Use iterator
1016 method instead of walking through list.
1017 (linux_make_corefile_notes_1): Check for presence of iterator
1018 method instead of regset section list.
1019 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1020 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1021 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1022 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1023 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1024 (ppc_linux_init_abi): Don't choose from above regset section
1025 lists, but install new iterator in gdbarch.
1026 * regset.h (struct core_regset_section): Remove.
1027 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1028 have_linux_v1, have_linux_v2, and have_tdb.
1029 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1030 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1031 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1032 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1033 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1034 (s390_iterate_over_regset_sections): ...here. New function. Use
1036 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1037 regset section lists, but install new iterator.
1039 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1041 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1043 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1045 * progspace.c (print_program_space): Don't prune program spaces
1046 before printing them.
1048 2014-09-25 Pedro Alves <palves@redhat.com>
1050 * infrun.c (user_visible_resume_ptid): Don't check
1051 singlestep_breakpoints_inserted_p.
1053 2014-09-25 Pedro Alves <palves@redhat.com>
1055 * breakpoint.c (should_be_inserted): Add debug output.
1057 2014-09-25 Pedro Alves <palves@redhat.com>
1059 * infrun.c (stepping_past_instruction_at)
1060 (clear_exit_convenience_vars): Point at infrun.h instead of
1062 (handle_signal_stop): Fix typo.
1064 2014-09-24 Yao Qi <yao@codesourcery.com>
1066 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1069 2014-09-22 Gary Benson <gbenson@redhat.com>
1071 * target.c (target_stop): Updated comment.
1073 2014-09-22 Gary Benson <gbenson@redhat.com>
1075 * target/target.h (target_stop_ptid): Renamed as...
1076 (target_stop_and_wait): New function. Updated comment.
1078 (target_continue_ptid): Renamed as...
1079 (target_continue_no_signal): New function. Updated comment.
1082 2014-09-22 Pedro Alves <palves@redhat.com>
1084 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1086 * breakpoint.c (enum ugll_insert_mode): New enum.
1087 (always_inserted_mode): Now a plain boolean.
1088 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1089 (breakpoints_always_inserted_mode): Delete.
1090 (breakpoints_should_be_inserted_now): New function.
1091 (insert_breakpoints): Pass UGLL_INSERT to
1092 update_global_location_list instead of calling
1093 insert_breakpoint_locations manually.
1094 (create_solib_event_breakpoint_1): New, factored out from ...
1095 (create_solib_event_breakpoint): ... this.
1096 (create_and_insert_solib_event_breakpoint): Use
1097 create_solib_event_breakpoint_1 instead of calling
1098 insert_breakpoint_locations manually.
1099 (update_global_location_list): Change parameter type from boolean
1100 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1101 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1102 (update_global_location_list_nothrow): Change parameter type from
1103 boolean to enum ugll_insert_mode.
1104 (_initialize_breakpoint): "breakpoint always-inserted" option is
1105 now a boolean command. Update help text.
1106 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1107 (breakpoints_should_be_inserted_now): New declaration.
1108 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1109 Remove breakpoints_always_inserted_mode check.
1110 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1111 * remote.c (remote_start_remote): Likewise.
1113 2014-09-22 Pedro Alves <palves@redhat.com>
1115 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1116 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1117 Instead, pass UGLL_INSERT to update_global_location_list.
1118 (update_global_location_list): Change parameter type from boolean
1119 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1120 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1121 (create_solib_event_breakpoint_1): New, factored out from ...
1122 (create_solib_event_breakpoint): ... this.
1123 (create_and_insert_solib_event_breakpoint): Use
1124 create_solib_event_breakpoint_1 instead of calling
1125 insert_breakpoint_locations manually.
1126 (update_global_location_list): Handle UGLL_INSERT.
1128 2014-09-22 Pedro Alves <palves@redhat.com>
1130 * breakpoint.c (enum ugll_insert_mode): New enum.
1131 (update_global_location_list)
1132 (update_global_location_list_nothrow): Change parameter type from
1133 boolean to enum ugll_insert_mode. All callers adjusted.
1135 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1137 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1138 SystemTap support in GDB.
1140 2014-09-19 Don Breazeal <donb@codesourcery.com>
1142 * linux-nat.c (linux_handle_extended_wait): Call
1143 linux_ptrace_get_extended_event.
1144 (wait_lwp): Call linux_is_extended_waitstatus.
1145 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1146 and linux_is_extended_waitstatus.
1147 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1148 linux_ptrace_get_extended_event.
1149 (linux_ptrace_get_extended_event): New function.
1150 (linux_is_extended_waitstatus): New function.
1151 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1152 (linux_is_extended_waitstatus): New declarations.
1154 2014-09-19 Yao Qi <yao@codesourcery.com>
1156 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1157 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1158 comments. Callers update.
1159 (dwarf_decode_lines): Likewise.
1160 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1161 comments. Skip the line table if 'lowpc' is greater than
1162 'address'. Don't check
1163 dwarf2_per_objfile->has_section_at_zero.
1165 2014-09-18 Doug Evans <dje@google.com>
1167 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1168 * python/py-symtab.c (stpy_get_producer): New function.
1169 (symtab_object_getset): Add "producer" attribute.
1171 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1174 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1175 (do_captured_read_memory_integer): Remove.
1176 (safe_read_memory_integer): Use target_read_memory directly instead
1177 of catching errors in do_captured_read_memory_integer.
1179 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1181 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1184 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1186 * objc-lang.c (find_implementation_from_class): Remove dead code.
1188 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1191 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1192 "fprintf_unfiltered (gdb_stdlog...)".
1194 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1196 PR breakpoints/12526
1197 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1199 * breakpoint.c (watch_command_1): Use these fields to retain
1200 bitfield information.
1201 (extract_bitfield_from_watchpoint_value): New function.
1202 (watchpoint_check): Use it.
1203 (update_watchpoint): Use it. Optimize the address and length of a
1204 HW watchpoint pointing to a bitfield.
1205 * value.h (unpack_value_bitfield): New prototype.
1206 * value.c (unpack_value_bitfield): Make extern.
1208 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1210 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1212 * gnu-nat.c (inf_threads): New function.
1213 * gnu-nat.h (inf_threads_ftype): New typedef.
1214 (inf_threads): New declaration.
1215 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1216 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1217 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1218 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1219 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1220 (i386_gnu_dr_get_control): New functions.
1221 (reg_addr): New structure.
1222 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1223 i386 debugging register hooks.
1224 * NEWS: Mention this.
1226 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1228 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1229 vector data transfer instructions.
1230 (arm_record_coproc_data_proc): Updated.
1232 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1234 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1235 arm_record_exreg_ld_st_insn.
1236 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1239 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1241 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1242 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1243 processing instructions.
1245 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1247 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1248 for advance SIMD struct ld/st insn.
1249 (thumb2_record_decode_insn_handler): Replace stub handler with
1250 thumb2_record_asimd_struct_ld_st.
1252 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1254 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1255 for asimd, vfp and coprocessor insns.
1256 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1257 and coprocessor insns.
1258 (thumb2_record_coproc_insn): New function.
1259 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1261 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1264 2014-09-13 Doug Evans <xdje42@gmail.com>
1266 * NEWS: Mention new "queue-signal" command.
1267 * infcmd.c (queue_signal_command): New function.
1268 (_initialize_infcmd): Add new queue-signal command.
1270 2014-09-13 Doug Evans <xdje42@gmail.com>
1272 * linux-nat.c (wait_lwp): Add debugging printf.
1273 (linux_nat_wait_1): Ditto.
1275 2014-09-12 Pedro Alves <palves@redhat.com>
1277 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1278 (create_and_insert_solib_event_breakpoint): New functions.
1279 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1280 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1281 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1282 (remove_dbx_link_breakpoint): Delete function.
1283 (insert_dbx_link_bpt_in_file): Use
1284 create_and_insert_solib_event_breakpoint instead of
1285 deprecated_insert_raw_breakpoint.
1286 (procfs_wait): Don't check whether we hit __dbx_link here.
1287 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1289 * solib-irix.c (base_breakpoint): Delete global.
1290 (disable_break): Delete function.
1291 (enable_break): Use create_solib_event_breakpoint
1292 instead of deprecated_insert_raw_breakpoint.
1293 (irix_solib_handle_event): New function.
1294 (irix_solib_create_inferior_hook): Don't run the target or disable
1295 the mapping-complete breakpoint here.
1296 (_initialize_irix_solib): Install irix_solib_handle_event as
1297 so_ops->handle_event hook.
1299 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1300 Ulrich Weigand <uweigand@de.ibm.com>
1303 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1304 instead of read_memory_unsigned_integer.
1306 2014-09-12 Gary Benson <gbenson@redhat.com>
1308 * nat/linux-waitpid.c: Include common-defs.h.
1309 [GDBSERVER]: Add FIXME comment.
1310 [!GDBSERVER]: Don't include defs.h or signal.h.
1311 (linux_debug) [!GDBSERVER]: Remove empty block.
1313 2014-09-12 Gary Benson <gbenson@redhat.com>
1315 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1316 Don't include defs.h or server.h.
1318 2014-09-12 Gary Benson <gbenson@redhat.com>
1320 * nat/linux-btrace.c: Include common-defs.h.
1321 Don't include defs.h, server.h or gdbthread.h.
1322 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1324 2014-09-12 Gary Benson <gbenson@redhat.com>
1326 * common/agent.c: Include common-defs.h.
1327 Don't include defs.h or server.h.
1328 * common/buffer.c: Likewise.
1329 * common/common-debug.c: Likewise.
1330 * common/common-utils.c: Likewise.
1331 * common/errors.c: Likewise.
1332 * common/filestuff.c: Likewise.
1333 * common/format.c: Likewise.
1334 * common/gdb_vecs.c: Likewise.
1335 * common/print-utils.c: Likewise.
1336 * common/ptid.c: Likewise.
1337 * common/rsp-low.c: Likewise.
1338 * common/signals.c: Likewise.
1339 * common/vec.c: Likewise.
1340 * common/xml-utils.c: Likewise.
1341 * nat/linux-osdata.c: Likewise.
1342 * nat/linux-procfs.c: Likewise.
1343 * nat/linux-ptrace.c: Likewise.
1344 * nat/mips-linux-watch.c: Likewise.
1345 * target/waitstatus.c: Likewise.
1347 2014-09-12 Tom Tromey <tromey@redhat.com>
1348 Gary Benson <gbenson@redhat.com>
1350 * common/common-regcache.h: New file.
1351 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1352 * regcache.h: Include common-regcache.h.
1353 (regcache_read_pc): Don't declare.
1354 * regcache.c (get_thread_regcache_for_ptid): New function.
1355 * nat/linux-btrace.c: Don't include regcache.h.
1356 Include common-regcache.h.
1357 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1359 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1361 * regcache.h (struct regset): Declare.
1363 2014-09-11 Pedro Alves <palves@redhat.com>
1366 * main.c: Include "infrun.h".
1367 (catch_command_errors, catch_command_errors_const): Wait for the
1368 foreground command to complete.
1369 * top.c (maybe_wait_sync_command_done): New function, factored out
1371 (maybe_wait_sync_command_done): ... here.
1372 * top.h (maybe_wait_sync_command_done): New declaration.
1374 2014-09-11 Tom Tromey <tromey@redhat.com>
1375 Gary Benson <gbenson@redhat.com>
1377 * common/symbol.h: New file.
1378 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1379 * minsyms.c (find_minimal_symbol_address): New function.
1380 * common/agent.c: Include common/symbol.h.
1381 [!GDBSERVER]: Don't include objfiles.h.
1382 (agent_look_up_symbols): Use find_minimal_symbol_address.
1384 2014-09-11 Gary Benson <gbenson@redhat.com>
1386 * target/target.h (target_stop_ptid, target_continue_ptid):
1388 * target.c (target_stop_ptid, target_continue_ptid): New
1390 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1391 (agent_run_command): Always use target_stop_ptid and
1392 target_continue_ptid.
1394 2014-09-11 Tom Tromey <tromey@redhat.com>
1395 Gary Benson <gbenson@redhat.com>
1397 * target/target.h: New file.
1398 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1399 * target.h: Include target/target.h.
1400 (target_read_memory, target_write_memory): Don't declare.
1401 * target.c (target_read_uint32): New function.
1402 * common/agent.c: Include target/target.h.
1403 [!GDBSERVER]: Don't include target.h.
1404 (helper_thread_id): Type changed to uint32_t.
1405 (agent_get_helper_thread_id): Use target_read_uint32.
1406 (agent_run_command): Always use target_read_memory and
1407 target_write_memory.
1408 (agent_capability): Type changed to uint32_t.
1409 (agent_capability_check): Use target_read_uint32.
1411 2014-09-11 Gary Benson <gbenson@redhat.com>
1413 * common/common-debug.h (show_debug_regs): Declare.
1414 * common/common-debug.c (show_debug_regs): Define.
1415 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1416 all uses with show_debug_regs. Replace all uses that considered
1417 debug_hw_points as a multi-value integer with straight boolean
1419 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1420 with show_debug_regs.
1421 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1422 all uses with show_debug_regs.
1423 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1424 uses with show_debug_regs.
1426 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1428 * findvar.c (address_from_register): Handle targets requiring
1429 a special conversion routine even for plain pointer types.
1431 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1433 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1434 (store_register): Do not call exec_one_dummy_insn.
1436 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1438 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1439 dereference it first. Use value_enclosing_type instead of
1441 (ada_array_length): Likewise.
1443 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1445 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1446 Adjust function implementation and documentation accordingly.
1447 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1448 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1449 Update call to ada_value_ptr_subscript.
1451 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1453 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1454 instead of VAL's type.
1456 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1458 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1460 2014-09-09 Doug Evans <xdje42@gmail.com>
1463 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1464 last parameter to pkg-config, not first.
1465 * configure.ac: Pass --with-guile provided pkg-config path to
1466 GDB_GUILE_PROGRAM_NAMES.
1467 * configure: Regenerate.
1469 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1471 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1474 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1476 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1477 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1478 the list of sections determining GDB_OSABI_IRIX.
1480 2014-09-09 James Hogan <james.hogan@imgtec.com>
1482 * MAINTAINERS (Write After Approval): Add "James Hogan".
1484 2014-09-09 James Hogan <james.hogan@imgtec.com>
1486 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1488 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1490 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1492 2014-09-08 Doug Evans <xdje42@gmail.com>
1495 * guile.c: #include <signal.h>.
1496 (_initialize_guile): Block SIGCHLD while initializing Guile.
1498 Replaces the following, which is reverted.
1500 2014-07-26 Doug Evans <xdje42@gmail.com>
1503 * configure.ac: Add check for header gc/gc.h.
1504 Add check for function setenv.
1505 * configure: Regenerate.
1506 * config.in: Regenerate.
1507 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1509 2014-09-08 Doug Evans <xdje42@gmail.com>
1511 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1512 with named constant. Fix style of pointer comparison.
1513 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1515 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1518 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1519 decide whether we display the command on "show user".
1520 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1521 printing command name.
1522 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1523 * cli/cli-decode.c (cli_user_command_p): Create helper function
1524 to verify whether cmd_list_element is a user-defined command.
1526 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1529 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1530 Fix goto out of TRY_CATCH.
1532 2014-09-06 Doug Evans <xdje42@gmail.com>
1533 Tom Tromey <tromey@redhat.com>
1536 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1537 $_any_caller_matches.
1538 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1539 * python/lib/gdb/function/caller_is.py: New file.
1541 2014-09-06 Doug Evans <xdje42@gmail.com>
1543 * infcmd.c (program_info): Fix typo.
1545 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1548 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1549 'number'. New variable 'has_digit'. Rewrite code to deal with
1550 subexpressions on SDT probes.
1552 2014-09-04 Pedro Alves <palves@redhat.com>
1554 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1555 the input is only one character long.
1557 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1560 * f-valprint.c (f_val_print): Specify the correct print option to
1561 use when printing integer values.
1563 2014-09-04 Gary Benson <gbenson@redhat.com>
1565 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1566 Remove code to cope with LWPs wrapped as PIDs.
1567 Add assertions to ensure no wrapped LWPs are passed.
1569 2014-09-04 Pedro Alves <palves@redhat.com>
1571 * value.c (value_ranges_copy_adjusted): New function, factored out
1573 (value_contents_copy_raw): ... here.
1574 (unpack_value_bits_as_long_1): Rename back to ...
1575 (unpack_bits_as_long): ... this. Remove 'original_value' and
1576 'result' parameters. Change return type to LONGEST.
1577 (unpack_value_bits_as_long): Delete.
1578 (unpack_value_field_as_long_1): Delete.
1579 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1580 (unpack_value_bitfield): New function.
1581 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1582 (value_fetch_lazy): Use unpack_value_bitfield.
1583 * value.h (unpack_value_bits_as_long): Delete declaration.
1585 2014-09-03 Sasha Smundak <asmundak@google.com>
1587 * python/py-frame.c (frapy_read_register): New function.
1589 2014-09-03 James Hogan <james.hogan@imgtec.com>
1591 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1592 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1594 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1597 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1599 (add_cmd): Set "completer_handle_brkchars" to NULL.
1600 * cli/cli-decode.h (struct cmd_list_element)
1601 <completer_handle_brkchars>: New field.
1602 * command.h (completer_ftype_void): New typedef.
1603 (set_cmd_completer_handle_brkchars): New prototype.
1604 * completer.c (set_gdb_completion_word_break_characters): New
1606 (complete_line_internal): Call "completer_handle_brkchars"
1607 callback from command.
1608 * completer.h: Include "command.h".
1609 (set_gdb_completion_word_break_characters): New prototype.
1610 * python/py-cmd.c (cmdpy_completer_helper): New function.
1611 (cmdpy_completer_handle_brkchars): New function.
1612 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1613 (cmdpy_init): Set completer_handle_brkchars to
1614 cmdpy_completer_handle_brkchars.
1616 2014-09-03 Gary Benson <gbenson@redhat.com>
1618 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1619 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1620 Loop conditions changed to equivalent form.
1621 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1622 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1623 ALL_DEBUG_ADDRESS_REGISTERS.
1625 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1627 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1630 2014-09-02 Doug Evans <dje@google.com>
1632 * typeprint.c (find_global_typedef): Fix comment.
1634 2014-09-02 Gary Benson <gbenson@redhat.com>
1636 * i386-nat.h: Renamed as...
1637 * x86-nat.h: New file. All type, function and variable name
1638 prefixes changed from "i386_" to "x86_". All references updated.
1639 * i386-nat.c: Renamed as...
1640 * x86-nat.c: New file. All type, function and variable name
1641 prefixes changed from "i386_" to "x86_". All references updated.
1642 * common/i386-xstate.h: Renamed as...
1643 * common/x86-xstate.h: New file. All type, function and variable
1644 name prefixes changed from "i386_" to "x86_". All references
1646 * nat/i386-cpuid.h: Renamed as...
1647 * nat/x86-cpuid.h: New file. All type, function and variable name
1648 prefixes changed from "i386_" to "x86_". All references updated.
1649 * nat/i386-gcc-cpuid.h: Renamed as...
1650 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1651 name prefixes changed from "i386_" to "x86_". All references
1653 * nat/i386-dregs.h: Renamed as...
1654 * nat/x86-dregs.h: New file. All type, function and variable name
1655 prefixes changed from "i386_" to "x86_". All references updated.
1656 * nat/i386-dregs.c: Renamed as...
1657 * nat/x86-dregs.c: New file. All type, function and variable name
1658 prefixes changed from "i386_" to "x86_". All references updated.
1660 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1662 * varobj.c (_initialize_varobj): Move to the end of file.
1664 2014-08-29 Gary Benson <gbenson@redhat.com>
1666 * common/common-exceptions.h: New file.
1667 * common/common-exceptions.c: Likewise.
1668 * Makefile.in (SFILES): Add common/common-exceptions.c.
1669 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1670 (COMMON_OBS): Add common-exceptions.o.
1671 (common-exceptions.o): New rule.
1672 * exceptions.h (common-exceptions.h): Include.
1673 (gdb_setjmp.h): Do not include.
1674 (return_reason): Moved to common-exceptions.h.
1675 (enum return_reason): Likewise.
1676 (RETURN_MASK): Likewise.
1677 (typedef return_mask): Likewise.
1678 (enum errors): Likewise.
1679 (struct gdb_exception): Likewise.
1680 (exceptions_state_mc_init): Likewise.
1681 (exceptions_state_mc_action_iter): Likewise.
1682 (exceptions_state_mc_action_iter_1): Likewise.
1683 (TRY_CATCH): Likewise.
1684 (throw_exception): Likewise.
1685 (throw_verror): Likewise.
1686 (throw_vquit): Likewise.
1687 (throw_error): Likewise.
1688 (throw_quit): Likewise.
1689 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1690 (enum catcher_action): Likewise.
1691 (struct catcher): Likewise.
1692 (current_catcher): Likewise.
1693 (catcher_list_size): Likewise.
1694 (exceptions_state_mc_init): Likewise.
1695 (catcher_pop): Likewise.
1696 (exceptions_state_mc): Likewise.
1697 (exceptions_state_mc_action_iter): Likewise.
1698 (exceptions_state_mc_action_iter_1): Likewise.
1699 (throw_exception): Likewise.
1700 (exception_messages): Likewise.
1701 (exception_messages_size): Likewise.
1702 (throw_it): Likewise.
1703 (throw_verror): Likewise.
1704 (throw_vquit): Likewise.
1705 (throw_error): Likewise.
1706 (throw_quit): Likewise.
1707 (prepare_to_throw_exception): New function.
1709 2014-08-29 Gary Benson <gbenson@redhat.com>
1711 * common/gdb_setjmp.h: New file.
1712 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1713 * configure.ac: Move sigsetjmp check...
1714 * common/common.m4: ...here.
1715 * configure: Regenerate.
1716 * cp-support.c (SIGJMP_BUF): Delete.
1717 (SIGSETJMP): Likewise.
1718 (SIGLONGJMP): Likewise.
1719 * exceptions.h (gdb_setjmp.h): Include.
1720 (setjmp.h): Do not include.
1721 (EXCEPTIONS_SIGJMP_BUF): Delete.
1722 (EXCEPTIONS_SIGSETJMP): Likewise.
1723 (EXCEPTIONS_SIGLONGJMP): Likewise.
1724 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1726 * exceptions.c: Likewise.
1728 2014-08-29 Gary Benson <gbenson@redhat.com>
1730 * cleanups.h: Moved to...
1731 * common/cleanups.h: New file.
1732 * cleanups.c: Moved to...
1733 * common/cleanups.c: New file. Include common-defs.h and
1734 cleanups.h. Do not include defs.h.
1735 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1736 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1737 (cleanups.o): New rule.
1739 2014-08-29 Gary Benson <gbenson@redhat.com>
1741 * common/errors.h (internal_warning): New declaration.
1742 (internal_vwarning): Likewise.
1743 * common/errors.c (internal_warning): New function.
1744 * utils.h (internal_warning): Don't declare.
1745 (internal_vwarning): Likewise.
1746 * utils.c (internal_warning): Removed.
1748 2014-08-29 Gary Benson <gbenson@redhat.com>
1750 * main.c (captured_main): Use warning during startup.
1751 Prefix startup warning messages with command name.
1753 2014-08-29 Gary Benson <gbenson@redhat.com>
1755 * main.c (captured_main): Handle usage errors with error.
1757 2014-08-29 Gary Benson <gbenson@redhat.com>
1759 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1760 exit pair with a call to error. Wrap the message with _().
1762 2014-08-29 Gary Benson <gbenson@redhat.com>
1764 * main.c (captured_main): Replace a fprintf/exit
1765 pair with a call to error. Wrap the message with _().
1767 2014-08-29 Gary Benson <gbenson@redhat.com>
1769 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1770 pairs with calls to error. Wrap the message with _().
1772 2014-08-29 Gary Benson <gbenson@redhat.com>
1774 * utils.c (vwarning): Protect calls to target_terminal_ours
1777 2014-08-29 Gary Benson <gbenson@redhat.com>
1779 * exceptions.c (print_flush): Protect calls to
1780 target_terminal_ours and wrap_here.
1782 2014-08-29 Gary Benson <gbenson@redhat.com>
1784 * utils.h (filtered_printing_initialized): New declaration.
1785 * utils.c (abort_with_message): New function.
1786 (internal_vproblem): Use abort_with_message for first level
1787 recursive internal problems, and if gdb_stderr is not set up.
1788 Protect calls to target_terminal_ours, begin_line and query.
1790 2014-08-28 Doug Evans <dje@google.com>
1792 * symtab.c (in_prologue): Move definition to better spot.
1793 (skip_prologue_using_sal): Ditto.
1795 2014-08-28 Doug Evans <dje@google.com>
1797 * symtab.c (find_function_start_sal): Move definition to better spot.
1799 2014-08-28 Yao Qi <yao@codesourcery.com>
1801 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1802 found_stack_adjust in forward scan. Remove condition check
1803 on found_stack_adjust which is always true. Indent the code.
1805 2014-08-28 Yao Qi <yao@codesourcery.com>
1807 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1808 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1809 (dwarf_decode_lines): Remove argument
1810 want_line_info. Remove condition check on want_line_info.
1813 2014-08-27 Doug Evans <dje@google.com>
1815 * dwarf2read.c (dwarf_record_line): Fix typo.
1817 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1819 * target.h (struct target_ops::to_terminal_save_ours): Remove
1821 (target_terminal_save_ours): Remove macro.
1822 * target-delegates.c: Regenerate.
1823 * inf-child.c (inf_child_target): Don't set the nonexistent
1824 field to_terminal_save_ours.
1825 * inferior.h (child_terminal_save_ours): Remove declaration.
1826 * terminal.h (gdb_save_tty_state): New declaration.
1827 * inflow.c (child_terminal_save_ours): Rename to ...
1828 (gdb_save_tty_state): ... this.
1829 * tui/tui.c: Include terminal.h.
1830 (tui_enable): Use gdb_save_tty_state instead of
1831 target_terminal_save_ours.
1832 (tui_disable): Likewise.
1834 2014-08-25 Doug Evans <dje@google.com>
1836 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1837 Pass NULL instead of 0 for context pointer.
1839 2014-08-25 Yao Qi <yao@codesourcery.com>
1841 * dwarf2read.c: Fix grammatical error.
1843 2014-08-24 Yao Qi <yao@codesourcery.com>
1845 * dwarf2read.c (scan_partial_symbols): Update comments.
1846 Rename argument 'need_pc' with 'set_addrmap'.
1847 (add_partial_namespace): Rename argument 'need_pc' with
1849 (add_partial_module): Likewise.
1850 (add_partial_subprogram): Likewise. Update comments.
1851 (dwarf2_name): Fix typo.
1853 2014-08-22 Doug Evans <dje@google.com>
1856 * dwarf2read.c (dwarf_record_line_p): New function.
1857 (dwarf_decode_lines_1): Ignore subsequent line number entries
1858 for the same line if any entry had a non-zero discriminator.
1860 2014-08-22 Doug Evans <dje@google.com>
1862 * buildsym.h (record_line_ftype): New typedef.
1863 (record_line): Use it.
1864 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1865 (dwarf_decode_lines_1): Call them.
1867 2014-08-22 Yao Qi <yao@codesourcery.com>
1869 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1870 (ctf_end): Remove code.
1872 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1874 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1875 (linux_make_corefile_notes): call update_thread_list, protected against
1878 2014-08-21 Pedro Alves <palves@redhat.com>
1880 * infcmd.c (attach_command): Remove comment.
1882 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1884 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1885 unsigned LONGEST to ULONGEST.
1887 2014-08-20 Pedro Alves <palves@redhat.com>
1889 * Makefile.in (check-read1): New rule.
1891 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1893 * value.c (value_from_contents_and_address): Strip resolved_type's
1894 typedef layers before checking its TYPE_DATA_LOCATION.
1896 2014-08-20 Pedro Alves <palves@redhat.com>
1898 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1900 2014-08-20 Yao Qi <yao@codesourcery.com>
1902 * amd64-tdep.c (amd64_classify): Add a blank line after the
1903 example. Move "*/" to a new line.
1904 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1905 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1906 * dwarf2read.c (psymtab_include_file_name): Likewise.
1908 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1909 Pedro Alves <palves@redhat.com>
1913 * ada-lang.c (coerce_unspec_val_to_type): Use
1914 value_contents_copy_raw.
1915 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1916 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1917 * cp-valprint.c (cp_print_value_fields): Let the common printing
1918 code handle optimized out values.
1919 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1920 * d-valprint.c (dynamic_array_type): Use
1921 value_bits_any_optimized_out.
1922 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1923 check_any_valid fields.
1924 (check_pieced_value_bits): Delete and inline ...
1925 (check_pieced_synthetic_pointer): ... here.
1926 (check_pieced_value_validity): Delete.
1927 (check_pieced_value_invalid): Delete.
1928 (pieced_value_funcs): Remove check_validity and check_any_valid
1930 (read_pieced_value): Use mark_value_bits_optimized_out.
1931 (write_pieced_value): Switch to use
1932 mark_value_bytes_optimized_out.
1933 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1934 of assuming the whole value is optimized out.
1935 * findvar.c (read_frame_register_value): Remove special handling
1936 of optimized out registers.
1937 (value_from_register): Use mark_value_bytes_optimized_out.
1938 * frame-unwind.c (frame_unwind_got_optimized): Use
1939 mark_value_bytes_optimized_out.
1940 * jv-valprint.c (java_value_print): Adjust.
1941 (java_print_value_fields): Let the common printing code handle
1942 optimized out values.
1943 * mips-tdep.c (mips_print_register): Remove special handling of
1944 optimized out registers.
1945 * opencl-lang.c (lval_func_check_validity): Delete.
1946 (lval_func_check_any_valid): Delete.
1947 (opencl_value_funcs): Remove check_validity and check_any_valid
1949 * p-valprint.c (pascal_object_print_value_fields): Let the common
1950 printing code handle optimized out values.
1951 * stack.c (read_frame_arg): Remove special handling of optimized
1952 out values. Fetch both VAL and ENTRYVAL before comparing
1953 contents. Adjust to value_available_contents_eq rename.
1954 * valprint.c (valprint_check_validity)
1955 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1956 (val_print_array_elements): Adjust.
1957 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1958 (value_bits_any_optimized_out): New function.
1959 (value_entirely_covered_by_range_vector): New function, factored
1960 out from value_entirely_unavailable.
1961 (value_entirely_unavailable): Reimplement.
1962 (value_entirely_optimized_out): New function.
1963 (insert_into_bit_range_vector): New function, factored out from
1964 mark_value_bits_unavailable.
1965 (mark_value_bits_unavailable): Reimplement.
1966 (struct ranges_and_idx): New struct.
1967 (find_first_range_overlap_and_match): New function, factored out
1968 from value_available_contents_bits_eq.
1969 (value_available_contents_bits_eq): Rename to ...
1970 (value_contents_bits_eq): ... this. Check both unavailable
1971 contents and optimized out contents.
1972 (value_available_contents_eq): Rename to ...
1973 (value_contents_eq): ... this.
1974 (allocate_value_lazy): Remove reference to the old optimized_out
1976 (allocate_optimized_out_value): Use
1977 mark_value_bytes_optimized_out.
1978 (require_not_optimized_out): Adjust to check whether the
1979 optimized_out vec is empty.
1980 (ranges_copy_adjusted): New function, factored out from
1981 value_contents_copy_raw.
1982 (value_contents_copy_raw): Also copy the optimized out ranges.
1983 Assert the destination ranges aren't optimized out.
1984 (value_contents_copy): Update comment, remove call to
1985 require_not_optimized_out.
1986 (value_contents_equal): Adjust to check whether the optimized_out
1988 (set_value_optimized_out, value_optimized_out_const): Delete.
1989 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1991 (value_entirely_optimized_out, value_bits_valid): Delete.
1992 (value_copy): Take a VEC copy of the 'optimized_out' field.
1993 (value_primitive_field): Remove special handling of optimized out.
1994 (value_fetch_lazy): Assert that lazy values have no unavailable
1995 regions. Use value_bits_any_optimized_out. Remove some special
1996 handling for optimized out values.
1997 * value.h: Add intro comment about <optimized out> and
1999 (struct lval_funcs): Remove check_validity and check_any_valid
2001 (set_value_optimized_out, value_optimized_out_const): Remove.
2002 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2004 (value_bits_any_optimized_out): New declaration.
2005 (value_bits_valid): Delete declaration.
2006 (value_available_contents_eq): Rename to ...
2007 (value_contents_eq): ... this, and extend comments.
2009 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2011 Fix -fsanitize=address on unreadable inferior strings.
2012 * valprint.c (val_print_string): Fix access before BUFFER.
2014 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2016 * target.c (target_struct_size): Remove.
2017 (target_struct_allocsize): Remove.
2018 (DEFAULT_ALLOCSIZE): Remove.
2019 (target_ops_p): New typedef.
2020 (DEF_VEC_P (target_ops_p)): New vector type.
2021 (target_structs): Change type to VEC (target_ops_p).
2022 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2023 (find_default_run_target): Rewrite for loop following changes to
2026 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2028 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2029 Adjust code accordingly. Adjust function description comment.
2031 2014-08-19 Yao Qi <yao@codesourcery.com>
2033 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2036 2014-08-19 Alan Modra <amodra@gmail.com>
2038 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2039 * config.in: Regenerate.
2040 * configure: Regenerate.
2042 2014-08-19 Tom Tromey <tromey@redhat.com>
2043 Gary Benson <gbenson@redhat.com>
2045 * common/common-debug.h: New file.
2046 * common/common-debug.c: Likewise.
2047 * debug.c: Likewise.
2048 * Makefile.in (SFILES): Add common/common-debug.c.
2049 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2050 (COMMON_OBS): Add common-debug.o and debug.o.
2051 (common-debug.o): New rule.
2052 * common/common-defs.h: Include common-debug.h.
2053 * common/agent.c (debug_agent_printf): New function.
2054 (DEBUG_AGENT): Redefine.
2055 * nat/i386-dregs.c (debug_printf): Undefine.
2057 2014-08-19 Gary Benson <gbenson@redhat.com>
2059 * common/common-defs.h: Include print-utils.h.
2060 * utils.h: Do not include print-utils.h.
2062 2014-08-19 Tom Tromey <tromey@redhat.com>
2063 Gary Benson <gbenson@redhat.com>
2065 * common/common-types.h: New file.
2066 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2067 * common/common-defs.h: Include common-types.h.
2068 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2071 2014-08-19 Tom Tromey <tromey@redhat.com>
2072 Gary Benson <gbenson@redhat.com>
2074 * common/errors.h: New file.
2075 * common/errors.c: Likewise.
2076 * Makefile.in (SFILES): Add common/errors.c.
2077 (HFILES_NO_SRCDIR): Add common/errors.h.
2078 (COMMON_OBS): Add errors.o.
2079 (errors.o): New rule.
2080 * common/common-defs.h: Include errors.h.
2081 * utils.h (perror_with_name, error, verror, warning, vwarning):
2083 * common/common-utils.h: (malloc_failure, internal_error):
2086 2014-08-19 Gary Benson <gbenson@redhat.com>
2088 * utils.c (internal_vproblem): Always print the message.
2090 2014-08-18 Doug Evans <dje@google.com>
2092 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2094 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2096 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2097 Return 0 if TYPE is dynamic.
2098 (print_range): Add handling of dynamic ranges.
2100 2014-08-18 Keven Boell <keven.boell@intel.com>
2101 Joel Brobecker <brobecker@adacore.com>
2103 * gdbtypes.h (struct main_type): Add field "data_location".
2104 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2105 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2106 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2107 a dynamic data location.
2108 (resolve_dynamic_type): Add DW_AT_data_location handling.
2109 (copy_recursive, copy_type): Copy the data_location information
2111 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2112 * value.c (value_from_contents_and_address): Add
2113 DW_AT_data_location handling.
2115 2014-08-18 Keven Boell <keven.boell@intel.com>
2116 Joel Brobecker <brobecker@adacore.com>
2118 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2119 field "get_object_address".
2120 * dwarf2expr.c (execute_stack_op): Add handling for
2121 DW_OP_push_object_address.
2122 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2123 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2124 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2125 (dwarf_expr_get_obj_addr): New function.
2126 (dwarf_expr_ctx_funcs): Add get_object_address field.
2127 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2128 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2129 (dwarf2_evaluate_property): Add parameter "address". Use it.
2130 (needs_get_obj_addr): New function.
2131 (needs_frame_ctx_funcs): Add get_object_address field.
2132 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2133 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2134 (resolve_dynamic_array): Likewise.
2136 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2138 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2139 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2140 fixed value for records and unions for which some GNAT encodings
2143 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2145 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2146 rewrite to avoid "else if" and "else" constructs. Should be
2147 a no-op in practice.
2149 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2151 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2154 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2157 * eval.c: Update all calls to find_overload_match.
2158 * valarith.c: Likewise.
2159 (value_user_defined_cpp_op, value_user_defined_op): New
2160 argument NOSIDE. Update all callers.
2161 * valops.c (find_overload_match): New argument NOSIDE.
2162 * value.h (find_overload_match): Update signature.
2164 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2166 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2167 'items' methods instead of 'iteritems' method on dictionaries.
2169 2014-08-15 Doug Evans <dje@google.com>
2171 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2174 2014-08-15 Doug Evans <dje@google.com>
2176 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2178 2014-08-15 Doug Evans <dje@google.com>
2180 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2182 2014-08-15 Doug Evans <dje@google.com>
2184 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2187 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2189 * dcache.h: Include target.h, to avoid compile time warnings.
2191 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2193 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2194 frame_info" partial declaration.
2195 * gdbarch.h: Regenerate.
2197 2014-08-15 Yao Qi <yao@codesourcery.com>
2199 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2200 Add parameter 'decode_for_pst_p'. Callers update.
2202 2014-08-13 Yao Qi <yao@codesourcery.com>
2205 * configure.ac: Use local variable 'pos'.
2206 * configure: Regenerated.
2208 2014-08-11 Doug Evans <dje@google.com>
2210 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2211 message, it is redundant with "Reading symbols from ..." message.
2213 2014-08-10 Doug Evans <xdje42@gmail.com>
2215 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2217 2014-08-09 Yao Qi <yao@codesourcery.com>
2220 * remote.c (remote_xfer_partial): Remove dead code.
2222 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2224 * ia64-linux-tdep.c: Include "regset.h".
2225 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2226 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2227 (ia64_linux_supply_fpregset): New function.
2228 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2229 (ia64_linux_regset_from_core_section): New function.
2230 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2233 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2235 * m68klinux-tdep.c: Include "regset.h".
2236 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2237 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2238 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2239 (m68k_linux_regset_from_core_section): New function.
2240 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2243 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2245 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2246 function. Move logic to...
2247 (tilegx_linux_regmap): ... this new register map.
2248 (tilegx_linux_regset): Refer to register map, replace supply
2249 method by regcache_supply_regset, and add collect method.
2250 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2251 TILEGX_FIRST_EASY_REGNUM.
2253 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2255 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2256 that calls regcache_supply_regset and handles the EPC register
2257 separately. Move main logic to...
2258 (score7_linux_gregmap): ... this new register map.
2259 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2260 (score7_linux_gregset): Refer to register map. Add collect method.
2261 (score7_linux_regset_from_core_section): Replace
2262 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2263 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2264 (struct regset): Delete unused forward declaraction.
2265 (struct pt_regs): Delete structure definition.
2266 (elf_gregset_t): Delete typedef.
2268 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2270 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2271 (nios2_core_regset): Add collect method.
2273 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2275 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2276 platform-independent and don't write to read-only input buffer.
2277 (m32r_linux_collect_gregset): New function.
2278 (m32r_linux_gregset): Add collect method.
2280 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2282 * hppa-linux-tdep.c (greg_map): Rename to...
2283 (hppa_linux_gregmap): ... this. Also convert to
2284 regcache_map_entry format.
2285 (hppa_linux_supply_regset): Delete function.
2286 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2287 (hppa_linux_fpregmap): ... this new register map.
2288 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2289 register map, replace supply method by regcache_supply_regset, and
2290 add collect method regcache_collect_regset.
2292 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2294 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2295 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2296 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2297 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2298 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2299 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2300 (frv_linux_supply_gregset): Replace main logic by call to
2301 regcache_supply_regset, but keep clearing gr32-gr63.
2302 (frv_linux_supply_fpregset): Delete function.
2303 (frv_linux_gregset): Refer to appropriate register map and add
2304 regcache_collect_regset as the collect method.
2305 (frv_linux_fpregset): Likewise. Also exchange the supply method
2306 by regcache_supply_regset.
2308 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2310 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2311 by call to alpha_supply_int_regs.
2312 (alpha_linux_collect_gregset): New function.
2313 (alpha_linux_supply_fpregset): Replace logic by call to
2314 alpha_supply_fp_regs.
2315 (alpha_linux_collect_fpregset): New function.
2316 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2318 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2320 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2321 by call to regcache_collect_regset.
2322 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2323 instead of aarch64_linux_supply_gregset/_fpregset.
2324 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2325 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2326 header file instead.
2327 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2328 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2329 functions. Move logic to ...
2330 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2332 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2333 refer to new register maps, replace *_regset_from_core by
2334 regcache_supply_regset, and also use regcache_collect_regset.
2335 * aarch64-linux-tdep.h: Include "regset.h".
2336 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2338 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2339 macros, moved from C source file.
2340 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2341 variable declarations.
2343 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2345 * s390-linux-nat.c: Include "regset.h".
2346 (regmap_gregset): Delete macro.
2347 (s390_64_regmap_gregset): New register map for
2348 regcache_supply/_collect_regset.
2349 (s390_64_gregset): New regset.
2350 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2351 (regmap_fpregset): Delete macro.
2352 (s390_native_supply, s390_native_collect): Delete functions.
2353 (supply_gregset, fill_gregset): Replace s390-specific regmap
2354 handling by a call to regcache_supply/_collect_regset.
2355 (supply_fpregset, fill_fpregset): Call regcache_supply/
2356 _collect_regset instead of s390_native_supply/_collect.
2357 (fetch_regset, store_regset): Likewise. Also change the last
2358 parameter to a regset instead of a regmap.
2359 (s390_linux_fetch_inferior_registers)
2360 (390_linux_store_inferior_registers): Adjust last parameter in
2361 calls to fetch_regset and store_regset.
2362 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2363 (s390_gregmap): ... this. Also make static const and convert to
2364 regcache_map_entry format.
2365 (s390x_regmap_gregset): Delete.
2366 (s390_regmap_fpregset): Rename to...
2367 (s390_fpregmap): ... this. Make static const and convert to
2368 regcache_map_entry format.
2369 (s390_regmap_upper, s390_regmap_last_break)
2370 (s390x_regmap_last_break, s390_regmap_system_call)
2371 (s390_regmap_tdb): Likewise.
2372 (s390_supply_regset, s390_collect_regset): Remove functions.
2373 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2375 (s390_gregset, s390_fpregset, s390_upper_regset)
2376 (s390_last_break_regset, s390x_last_break_regset)
2377 (s390_system_call_regset, s390_tdb_regset): Make global and
2378 replace s390_supply/_collect_regset by regcache_supply/
2380 (s390x_gregset): Delete.
2381 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2382 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2383 (s390_regmap_fpregset, s390_regmap_last_break)
2384 (s390x_regmap_last_break, s390_regmap_system_call)
2385 (s390_regmap_tdb): Delete global variable declarations.
2386 (s390_gregset, s390_fpregset, s390_last_break_regset)
2387 (s390x_last_break_regset, s390_system_call_regset)
2388 (s390_tdb_regset): New global variable declarations.
2390 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2392 * regcache.c: Include "regset.h".
2393 (regcache_transfer_regset): New local function.
2394 (regcache_supply_regset, regcache_collect_regset): New functions.
2395 * regcache.h (struct regcache_map_entry): New structure.
2396 (REGCACHE_MAP_SKIP): New enum value.
2397 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2399 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2401 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2402 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2403 (ppc_linux_collect_gregset ): Likewise.
2404 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2405 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2406 (ppc_collect_vrregset): Likewise.
2407 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2410 2014-08-07 Yao Qi <yao@codesourcery.com>
2412 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2413 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2414 * remote.c (remote_read_bytes): Likewise.
2416 2014-08-07 Yao Qi <yao@codesourcery.com>
2418 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2420 2014-08-07 Yao Qi <yao@codesourcery.com>
2423 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2424 TARGET_XFER_OK instead of 0.
2426 2014-08-07 Gary Benson <gbenson@redhat.com>
2428 * common/common-defs.h: Include errno.h.
2429 * defs.h: Do not include errno.h.
2430 * ada-typeprint.c: Likewise.
2431 * c-typeprint.c: Likewise.
2432 * core-regset.c: Likewise.
2433 * corefile.c: Likewise.
2434 * corelow.c: Likewise.
2435 * event-loop.c: Likewise.
2436 * f-typeprint.c: Likewise.
2437 * gnu-nat.c: Likewise.
2438 * go32-nat.c: Likewise.
2439 * i386gnu-nat.c: Likewise.
2440 * m2-typeprint.c: Likewise.
2441 * nat/linux-btrace.c: Likewise.
2442 * p-typeprint.c: Likewise.
2443 * procfs.c: Likewise.
2444 * remote-sim.c: Likewise.
2445 * rs6000-nat.c: Likewise.
2446 * target.c: Likewise.
2447 * typeprint.c: Likewise.
2448 * ui-file.c: Likewise.
2449 * valops.c: Likewise.
2450 * valprint.c: Likewise.
2452 2014-08-07 Gary Benson <gbenson@redhat.com>
2454 * common/common-defs.h: Include string.h.
2455 * aarch64-tdep.c: Do not include string.h.
2456 * ada-exp.y: Likewise.
2457 * ada-lang.c: Likewise.
2458 * ada-lex.l: Likewise.
2459 * ada-typeprint.c: Likewise.
2460 * ada-valprint.c: Likewise.
2461 * aix-thread.c: Likewise.
2462 * alpha-linux-tdep.c: Likewise.
2463 * alpha-mdebug-tdep.c: Likewise.
2464 * alpha-nat.c: Likewise.
2465 * alpha-osf1-tdep.c: Likewise.
2466 * alpha-tdep.c: Likewise.
2467 * alphanbsd-tdep.c: Likewise.
2468 * amd64-dicos-tdep.c: Likewise.
2469 * amd64-linux-tdep.c: Likewise.
2470 * amd64-nat.c: Likewise.
2471 * amd64-sol2-tdep.c: Likewise.
2472 * amd64fbsd-tdep.c: Likewise.
2473 * amd64obsd-tdep.c: Likewise.
2474 * arch-utils.c: Likewise.
2475 * arm-linux-nat.c: Likewise.
2476 * arm-linux-tdep.c: Likewise.
2477 * arm-tdep.c: Likewise.
2478 * arm-wince-tdep.c: Likewise.
2479 * armbsd-tdep.c: Likewise.
2480 * armnbsd-nat.c: Likewise.
2481 * armnbsd-tdep.c: Likewise.
2482 * armobsd-tdep.c: Likewise.
2483 * avr-tdep.c: Likewise.
2484 * ax-gdb.c: Likewise.
2485 * ax-general.c: Likewise.
2486 * bcache.c: Likewise.
2487 * bfin-tdep.c: Likewise.
2488 * breakpoint.c: Likewise.
2489 * build-id.c: Likewise.
2490 * buildsym.c: Likewise.
2491 * c-exp.y: Likewise.
2492 * c-lang.c: Likewise.
2493 * c-typeprint.c: Likewise.
2494 * c-valprint.c: Likewise.
2495 * charset.c: Likewise.
2496 * cli-out.c: Likewise.
2497 * cli/cli-cmds.c: Likewise.
2498 * cli/cli-decode.c: Likewise.
2499 * cli/cli-dump.c: Likewise.
2500 * cli/cli-interp.c: Likewise.
2501 * cli/cli-logging.c: Likewise.
2502 * cli/cli-script.c: Likewise.
2503 * cli/cli-setshow.c: Likewise.
2504 * cli/cli-utils.c: Likewise.
2505 * coffread.c: Likewise.
2506 * common/agent.c: Likewise.
2507 * common/buffer.c: Likewise.
2508 * common/buffer.h: Likewise.
2509 * common/common-utils.c: Likewise.
2510 * common/filestuff.c: Likewise.
2511 * common/filestuff.c: Likewise.
2512 * common/format.c: Likewise.
2513 * common/print-utils.c: Likewise.
2514 * common/rsp-low.c: Likewise.
2515 * common/signals.c: Likewise.
2516 * common/vec.h: Likewise.
2517 * common/xml-utils.c: Likewise.
2518 * core-regset.c: Likewise.
2519 * corefile.c: Likewise.
2520 * corelow.c: Likewise.
2521 * cp-abi.c: Likewise.
2522 * cp-name-parser.y: Likewise.
2523 * cp-support.c: Likewise.
2524 * cp-valprint.c: Likewise.
2525 * cris-tdep.c: Likewise.
2526 * d-exp.y: Likewise.
2527 * darwin-nat.c: Likewise.
2528 * dbxread.c: Likewise.
2529 * dcache.c: Likewise.
2530 * demangle.c: Likewise.
2531 * dicos-tdep.c: Likewise.
2532 * disasm.c: Likewise.
2533 * doublest.c: Likewise.
2534 * dsrec.c: Likewise.
2535 * dummy-frame.c: Likewise.
2536 * dwarf2-frame.c: Likewise.
2537 * dwarf2loc.c: Likewise.
2538 * dwarf2read.c: Likewise.
2539 * elfread.c: Likewise.
2540 * environ.c: Likewise.
2542 * event-loop.c: Likewise.
2543 * exceptions.c: Likewise.
2545 * expprint.c: Likewise.
2546 * f-exp.y: Likewise.
2547 * f-lang.c: Likewise.
2548 * f-typeprint.c: Likewise.
2549 * f-valprint.c: Likewise.
2550 * fbsd-nat.c: Likewise.
2551 * findcmd.c: Likewise.
2552 * findvar.c: Likewise.
2553 * fork-child.c: Likewise.
2554 * frame.c: Likewise.
2555 * frv-linux-tdep.c: Likewise.
2556 * frv-tdep.c: Likewise.
2558 * gdb_bfd.c: Likewise.
2559 * gdbarch.c: Likewise.
2560 * gdbarch.sh: Likewise.
2561 * gdbtypes.c: Likewise.
2562 * gnu-nat.c: Likewise.
2563 * gnu-v2-abi.c: Likewise.
2564 * gnu-v3-abi.c: Likewise.
2565 * go-exp.y: Likewise.
2566 * go-lang.c: Likewise.
2567 * go32-nat.c: Likewise.
2568 * guile/guile.c: Likewise.
2569 * guile/scm-auto-load.c: Likewise.
2570 * hppa-hpux-tdep.c: Likewise.
2571 * hppa-linux-nat.c: Likewise.
2572 * hppanbsd-tdep.c: Likewise.
2573 * hppaobsd-tdep.c: Likewise.
2574 * i386-cygwin-tdep.c: Likewise.
2575 * i386-dicos-tdep.c: Likewise.
2576 * i386-linux-tdep.c: Likewise.
2577 * i386-nto-tdep.c: Likewise.
2578 * i386-sol2-tdep.c: Likewise.
2579 * i386-tdep.c: Likewise.
2580 * i386bsd-tdep.c: Likewise.
2581 * i386gnu-nat.c: Likewise.
2582 * i386nbsd-tdep.c: Likewise.
2583 * i386obsd-tdep.c: Likewise.
2584 * i387-tdep.c: Likewise.
2585 * ia64-libunwind-tdep.c: Likewise.
2586 * ia64-linux-nat.c: Likewise.
2587 * inf-child.c: Likewise.
2588 * inf-ptrace.c: Likewise.
2589 * inf-ttrace.c: Likewise.
2590 * infcall.c: Likewise.
2591 * infcmd.c: Likewise.
2592 * inflow.c: Likewise.
2593 * infrun.c: Likewise.
2594 * interps.c: Likewise.
2595 * iq2000-tdep.c: Likewise.
2596 * irix5-nat.c: Likewise.
2597 * jv-exp.y: Likewise.
2598 * jv-lang.c: Likewise.
2599 * jv-typeprint.c: Likewise.
2600 * jv-valprint.c: Likewise.
2601 * language.c: Likewise.
2602 * linux-fork.c: Likewise.
2603 * linux-nat.c: Likewise.
2604 * lm32-tdep.c: Likewise.
2605 * m2-exp.y: Likewise.
2606 * m2-typeprint.c: Likewise.
2607 * m32c-tdep.c: Likewise.
2608 * m32r-linux-nat.c: Likewise.
2609 * m32r-linux-tdep.c: Likewise.
2610 * m32r-rom.c: Likewise.
2611 * m32r-tdep.c: Likewise.
2612 * m68hc11-tdep.c: Likewise.
2613 * m68k-tdep.c: Likewise.
2614 * m68kbsd-tdep.c: Likewise.
2615 * m68klinux-nat.c: Likewise.
2616 * m68klinux-tdep.c: Likewise.
2617 * m88k-tdep.c: Likewise.
2618 * machoread.c: Likewise.
2619 * macrocmd.c: Likewise.
2621 * mdebugread.c: Likewise.
2622 * mem-break.c: Likewise.
2623 * memattr.c: Likewise.
2624 * memory-map.c: Likewise.
2625 * mep-tdep.c: Likewise.
2626 * mi/mi-cmd-break.c: Likewise.
2627 * mi/mi-cmd-disas.c: Likewise.
2628 * mi/mi-cmd-env.c: Likewise.
2629 * mi/mi-cmd-stack.c: Likewise.
2630 * mi/mi-cmd-var.c: Likewise.
2631 * mi/mi-cmds.c: Likewise.
2632 * mi/mi-console.c: Likewise.
2633 * mi/mi-getopt.c: Likewise.
2634 * mi/mi-interp.c: Likewise.
2635 * mi/mi-main.c: Likewise.
2636 * mi/mi-parse.c: Likewise.
2637 * microblaze-rom.c: Likewise.
2638 * microblaze-tdep.c: Likewise.
2639 * mingw-hdep.c: Likewise.
2640 * minidebug.c: Likewise.
2641 * minsyms.c: Likewise.
2642 * mips-irix-tdep.c: Likewise.
2643 * mips-linux-tdep.c: Likewise.
2644 * mips-tdep.c: Likewise.
2645 * mips64obsd-tdep.c: Likewise.
2646 * mipsnbsd-tdep.c: Likewise.
2647 * mipsread.c: Likewise.
2648 * mn10300-linux-tdep.c: Likewise.
2649 * mn10300-tdep.c: Likewise.
2650 * monitor.c: Likewise.
2651 * moxie-tdep.c: Likewise.
2652 * mt-tdep.c: Likewise.
2653 * nat/linux-btrace.c: Likewise.
2654 * nat/linux-osdata.c: Likewise.
2655 * nat/linux-procfs.c: Likewise.
2656 * nat/linux-ptrace.c: Likewise.
2657 * nat/linux-waitpid.c: Likewise.
2658 * nbsd-tdep.c: Likewise.
2659 * nios2-linux-tdep.c: Likewise.
2660 * nto-procfs.c: Likewise.
2661 * nto-tdep.c: Likewise.
2662 * objc-lang.c: Likewise.
2663 * objfiles.c: Likewise.
2664 * opencl-lang.c: Likewise.
2665 * osabi.c: Likewise.
2666 * osdata.c: Likewise.
2667 * p-exp.y: Likewise.
2668 * p-lang.c: Likewise.
2669 * p-typeprint.c: Likewise.
2670 * parse.c: Likewise.
2671 * posix-hdep.c: Likewise.
2672 * ppc-linux-nat.c: Likewise.
2673 * ppc-sysv-tdep.c: Likewise.
2674 * ppcfbsd-tdep.c: Likewise.
2675 * ppcnbsd-tdep.c: Likewise.
2676 * ppcobsd-tdep.c: Likewise.
2677 * printcmd.c: Likewise.
2678 * procfs.c: Likewise.
2679 * prologue-value.c: Likewise.
2680 * python/py-auto-load.c: Likewise.
2681 * python/py-gdb-readline.c: Likewise.
2682 * ravenscar-thread.c: Likewise.
2683 * regcache.c: Likewise.
2684 * registry.c: Likewise.
2685 * remote-fileio.c: Likewise.
2686 * remote-m32r-sdi.c: Likewise.
2687 * remote-mips.c: Likewise.
2688 * remote-notif.c: Likewise.
2689 * remote-sim.c: Likewise.
2690 * remote.c: Likewise.
2691 * reverse.c: Likewise.
2692 * rs6000-aix-tdep.c: Likewise.
2693 * ser-base.c: Likewise.
2694 * ser-go32.c: Likewise.
2695 * ser-mingw.c: Likewise.
2696 * ser-pipe.c: Likewise.
2697 * ser-tcp.c: Likewise.
2698 * ser-unix.c: Likewise.
2699 * serial.c: Likewise.
2700 * sh-tdep.c: Likewise.
2701 * sh64-tdep.c: Likewise.
2702 * shnbsd-tdep.c: Likewise.
2704 * sol-thread.c: Likewise.
2705 * solib-dsbt.c: Likewise.
2706 * solib-frv.c: Likewise.
2707 * solib-osf.c: Likewise.
2708 * solib-som.c: Likewise.
2709 * solib-spu.c: Likewise.
2710 * solib-target.c: Likewise.
2711 * solib.c: Likewise.
2712 * somread.c: Likewise.
2713 * source.c: Likewise.
2714 * sparc-nat.c: Likewise.
2715 * sparc-sol2-tdep.c: Likewise.
2716 * sparc-tdep.c: Likewise.
2717 * sparc64-tdep.c: Likewise.
2718 * sparc64fbsd-tdep.c: Likewise.
2719 * sparc64nbsd-tdep.c: Likewise.
2720 * sparcnbsd-tdep.c: Likewise.
2721 * spu-linux-nat.c: Likewise.
2722 * spu-multiarch.c: Likewise.
2723 * spu-tdep.c: Likewise.
2724 * stabsread.c: Likewise.
2725 * stack.c: Likewise.
2726 * std-regs.c: Likewise.
2727 * symfile.c: Likewise.
2728 * symmisc.c: Likewise.
2729 * symtab.c: Likewise.
2730 * target.c: Likewise.
2731 * thread.c: Likewise.
2732 * tilegx-linux-nat.c: Likewise.
2733 * tilegx-tdep.c: Likewise.
2735 * tracepoint.c: Likewise.
2736 * tui/tui-command.c: Likewise.
2737 * tui/tui-data.c: Likewise.
2738 * tui/tui-disasm.c: Likewise.
2739 * tui/tui-file.c: Likewise.
2740 * tui/tui-layout.c: Likewise.
2741 * tui/tui-out.c: Likewise.
2742 * tui/tui-regs.c: Likewise.
2743 * tui/tui-source.c: Likewise.
2744 * tui/tui-stack.c: Likewise.
2745 * tui/tui-win.c: Likewise.
2746 * tui/tui-windata.c: Likewise.
2747 * tui/tui-winsource.c: Likewise.
2748 * typeprint.c: Likewise.
2749 * ui-file.c: Likewise.
2750 * ui-out.c: Likewise.
2751 * user-regs.c: Likewise.
2752 * utils.c: Likewise.
2753 * v850-tdep.c: Likewise.
2754 * valarith.c: Likewise.
2755 * valops.c: Likewise.
2756 * valprint.c: Likewise.
2757 * value.c: Likewise.
2758 * varobj.c: Likewise.
2759 * vax-tdep.c: Likewise.
2760 * vaxnbsd-tdep.c: Likewise.
2761 * vaxobsd-tdep.c: Likewise.
2762 * windows-nat.c: Likewise.
2763 * xcoffread.c: Likewise.
2764 * xml-support.c: Likewise.
2765 * xstormy16-tdep.c: Likewise.
2766 * xtensa-linux-nat.c: Likewise.
2768 2014-08-07 Gary Benson <gbenson@redhat.com>
2770 * common/common-defs.h: Include gdb_assert.h.
2771 * aarch64-tdep.c: Do not include gdb_assert.h.
2772 * addrmap.c: Likewise.
2773 * aix-thread.c: Likewise.
2774 * alpha-linux-tdep.c: Likewise.
2775 * alpha-mdebug-tdep.c: Likewise.
2776 * alphanbsd-tdep.c: Likewise.
2777 * amd64-nat.c: Likewise.
2778 * amd64-tdep.c: Likewise.
2779 * amd64bsd-nat.c: Likewise.
2780 * amd64fbsd-nat.c: Likewise.
2781 * amd64fbsd-tdep.c: Likewise.
2782 * amd64nbsd-nat.c: Likewise.
2783 * amd64nbsd-tdep.c: Likewise.
2784 * amd64obsd-nat.c: Likewise.
2785 * amd64obsd-tdep.c: Likewise.
2786 * arch-utils.c: Likewise.
2787 * arm-tdep.c: Likewise.
2788 * armbsd-tdep.c: Likewise.
2790 * bcache.c: Likewise.
2791 * bfin-tdep.c: Likewise.
2792 * blockframe.c: Likewise.
2793 * breakpoint.c: Likewise.
2794 * bsd-kvm.c: Likewise.
2795 * bsd-uthread.c: Likewise.
2796 * buildsym.c: Likewise.
2797 * c-exp.y: Likewise.
2798 * c-lang.c: Likewise.
2799 * charset.c: Likewise.
2800 * cleanups.c: Likewise.
2801 * cli-out.c: Likewise.
2802 * cli/cli-decode.c: Likewise.
2803 * cli/cli-dump.c: Likewise.
2804 * cli/cli-logging.c: Likewise.
2805 * cli/cli-script.c: Likewise.
2806 * cli/cli-utils.c: Likewise.
2807 * coffread.c: Likewise.
2808 * common/common-utils.c: Likewise.
2809 * common/queue.h: Likewise.
2810 * common/signals.c: Likewise.
2811 * common/vec.h: Likewise.
2812 * complaints.c: Likewise.
2813 * completer.c: Likewise.
2814 * corelow.c: Likewise.
2815 * cp-abi.c: Likewise.
2816 * cp-name-parser.y: Likewise.
2817 * cp-namespace.c: Likewise.
2818 * cp-support.c: Likewise.
2819 * cris-tdep.c: Likewise.
2820 * dbxread.c: Likewise.
2821 * dictionary.c: Likewise.
2822 * doublest.c: Likewise.
2823 * dsrec.c: Likewise.
2824 * dummy-frame.c: Likewise.
2825 * dwarf2-frame-tailcall.c: Likewise.
2826 * dwarf2-frame.c: Likewise.
2827 * dwarf2expr.c: Likewise.
2828 * dwarf2loc.c: Likewise.
2829 * dwarf2read.c: Likewise.
2831 * event-loop.c: Likewise.
2832 * exceptions.c: Likewise.
2833 * expprint.c: Likewise.
2834 * f-valprint.c: Likewise.
2835 * fbsd-nat.c: Likewise.
2836 * findvar.c: Likewise.
2837 * frame-unwind.c: Likewise.
2838 * frame.c: Likewise.
2839 * frv-tdep.c: Likewise.
2840 * gcore.c: Likewise.
2841 * gdb-dlfcn.c: Likewise.
2842 * gdb_bfd.c: Likewise.
2843 * gdbarch.c: Likewise.
2844 * gdbarch.sh: Likewise.
2845 * gdbtypes.c: Likewise.
2846 * gnu-nat.c: Likewise.
2847 * gnu-v3-abi.c: Likewise.
2848 * go-lang.c: Likewise.
2849 * guile/scm-exception.c: Likewise.
2850 * guile/scm-gsmob.c: Likewise.
2851 * guile/scm-lazy-string.c: Likewise.
2852 * guile/scm-math.c: Likewise.
2853 * guile/scm-pretty-print.c: Likewise.
2854 * guile/scm-safe-call.c: Likewise.
2855 * guile/scm-utils.c: Likewise.
2856 * guile/scm-value.c: Likewise.
2857 * h8300-tdep.c: Likewise.
2858 * hppa-hpux-nat.c: Likewise.
2859 * hppa-tdep.c: Likewise.
2860 * hppanbsd-tdep.c: Likewise.
2861 * hppaobsd-tdep.c: Likewise.
2862 * i386-darwin-nat.c: Likewise.
2863 * i386-darwin-tdep.c: Likewise.
2864 * i386-nto-tdep.c: Likewise.
2865 * i386-tdep.c: Likewise.
2866 * i386bsd-nat.c: Likewise.
2867 * i386fbsd-tdep.c: Likewise.
2868 * i386gnu-nat.c: Likewise.
2869 * i386nbsd-tdep.c: Likewise.
2870 * i386obsd-tdep.c: Likewise.
2871 * i387-tdep.c: Likewise.
2872 * ia64-libunwind-tdep.c: Likewise.
2873 * ia64-tdep.c: Likewise.
2874 * inf-ptrace.c: Likewise.
2875 * inf-ttrace.c: Likewise.
2876 * infcall.c: Likewise.
2877 * infcmd.c: Likewise.
2878 * infrun.c: Likewise.
2879 * inline-frame.c: Likewise.
2880 * interps.c: Likewise.
2881 * jv-lang.c: Likewise.
2882 * jv-typeprint.c: Likewise.
2883 * linux-fork.c: Likewise.
2884 * linux-nat.c: Likewise.
2885 * linux-thread-db.c: Likewise.
2886 * m32c-tdep.c: Likewise.
2887 * m32r-linux-nat.c: Likewise.
2888 * m32r-tdep.c: Likewise.
2889 * m68k-tdep.c: Likewise.
2890 * m68kbsd-nat.c: Likewise.
2891 * m68kbsd-tdep.c: Likewise.
2892 * m88k-tdep.c: Likewise.
2893 * machoread.c: Likewise.
2894 * macroexp.c: Likewise.
2895 * macrotab.c: Likewise.
2896 * maint.c: Likewise.
2897 * mdebugread.c: Likewise.
2898 * memory-map.c: Likewise.
2899 * mep-tdep.c: Likewise.
2900 * mi/mi-common.c: Likewise.
2901 * microblaze-tdep.c: Likewise.
2902 * mingw-hdep.c: Likewise.
2903 * mips-linux-nat.c: Likewise.
2904 * mips-linux-tdep.c: Likewise.
2905 * mips-tdep.c: Likewise.
2906 * mips64obsd-tdep.c: Likewise.
2907 * mipsnbsd-tdep.c: Likewise.
2908 * mn10300-linux-tdep.c: Likewise.
2909 * mn10300-tdep.c: Likewise.
2910 * moxie-tdep.c: Likewise.
2911 * mt-tdep.c: Likewise.
2912 * nat/linux-btrace.c: Likewise.
2913 * nat/linux-osdata.c: Likewise.
2914 * nat/linux-ptrace.c: Likewise.
2915 * nat/mips-linux-watch.c: Likewise.
2916 * nios2-linux-tdep.c: Likewise.
2917 * nios2-tdep.c: Likewise.
2918 * objc-lang.c: Likewise.
2919 * objfiles.c: Likewise.
2920 * obsd-nat.c: Likewise.
2921 * opencl-lang.c: Likewise.
2922 * osabi.c: Likewise.
2923 * parse.c: Likewise.
2924 * ppc-linux-nat.c: Likewise.
2925 * ppc-sysv-tdep.c: Likewise.
2926 * ppcfbsd-nat.c: Likewise.
2927 * ppcfbsd-tdep.c: Likewise.
2928 * ppcnbsd-nat.c: Likewise.
2929 * ppcnbsd-tdep.c: Likewise.
2930 * ppcobsd-nat.c: Likewise.
2931 * ppcobsd-tdep.c: Likewise.
2932 * printcmd.c: Likewise.
2933 * procfs.c: Likewise.
2934 * prologue-value.c: Likewise.
2935 * psymtab.c: Likewise.
2936 * python/py-lazy-string.c: Likewise.
2937 * python/py-value.c: Likewise.
2938 * regcache.c: Likewise.
2939 * reggroups.c: Likewise.
2940 * registry.c: Likewise.
2941 * remote-sim.c: Likewise.
2942 * remote.c: Likewise.
2943 * rs6000-aix-tdep.c: Likewise.
2944 * rs6000-tdep.c: Likewise.
2945 * s390-linux-tdep.c: Likewise.
2946 * score-tdep.c: Likewise.
2947 * ser-base.c: Likewise.
2948 * ser-mingw.c: Likewise.
2949 * sh-tdep.c: Likewise.
2950 * sh64-tdep.c: Likewise.
2951 * solib-darwin.c: Likewise.
2952 * solib-spu.c: Likewise.
2953 * solib-svr4.c: Likewise.
2954 * source.c: Likewise.
2955 * sparc-nat.c: Likewise.
2956 * sparc-sol2-tdep.c: Likewise.
2957 * sparc-tdep.c: Likewise.
2958 * sparc64-sol2-tdep.c: Likewise.
2959 * sparc64-tdep.c: Likewise.
2960 * sparc64fbsd-tdep.c: Likewise.
2961 * sparc64nbsd-tdep.c: Likewise.
2962 * sparc64obsd-tdep.c: Likewise.
2963 * sparcnbsd-tdep.c: Likewise.
2964 * sparcobsd-tdep.c: Likewise.
2965 * spu-multiarch.c: Likewise.
2966 * spu-tdep.c: Likewise.
2967 * stabsread.c: Likewise.
2968 * stack.c: Likewise.
2969 * symfile.c: Likewise.
2970 * symtab.c: Likewise.
2971 * target-descriptions.c: Likewise.
2972 * target-memory.c: Likewise.
2973 * target.c: Likewise.
2974 * tic6x-linux-tdep.c: Likewise.
2975 * tic6x-tdep.c: Likewise.
2976 * tilegx-linux-nat.c: Likewise.
2977 * tilegx-tdep.c: Likewise.
2979 * tramp-frame.c: Likewise.
2980 * tui/tui-out.c: Likewise.
2981 * tui/tui-winsource.c: Likewise.
2982 * ui-out.c: Likewise.
2983 * user-regs.c: Likewise.
2984 * utils.c: Likewise.
2985 * v850-tdep.c: Likewise.
2986 * valops.c: Likewise.
2987 * value.c: Likewise.
2988 * varobj.c: Likewise.
2989 * vax-nat.c: Likewise.
2990 * xml-syscall.c: Likewise.
2991 * xml-tdesc.c: Likewise.
2992 * xstormy16-tdep.c: Likewise.
2993 * xtensa-linux-nat.c: Likewise.
2994 * xtensa-tdep.c: Likewise.
2996 2014-08-07 Gary Benson <gbenson@redhat.com>
2998 * common/common-defs.h: Include common-utils.h.
2999 * defs.h: Do not include common-utils.h.
3000 * common/gdb_assert.h: Likewise.
3001 * darwin-nat.h: Likewise.
3002 * nat/linux-btrace.c: Likewise.
3003 * target/waitstatus.h: Likewise.
3005 2014-08-07 Gary Benson <gbenson@redhat.com>
3007 * common/common-defs.h: Include ptid.h.
3008 * defs.h: Do not include ptid.h.
3009 * inferior.h: Likewise.
3010 * infrun.h: Likewise.
3011 * nat/linux-btrace.h: Likewise.
3012 * nat/linux-osdata.h: Likewise.
3013 * target/waitstatus.h: Likewise.
3015 2014-08-07 Gary Benson <gbenson@redhat.com>
3017 * common/common-defs.h: Include gdb_locale.h.
3018 * defs.h: Do not include gdb_locale.h.
3020 2014-08-07 Gary Benson <gbenson@redhat.com>
3022 * common/common-defs.h: Include gdb/signals.h.
3023 * defs.h: Do not include gdb/signals.h.
3025 2014-08-07 Gary Benson <gbenson@redhat.com>
3027 * common/common-defs.h: Include pathmax.h.
3028 * defs.h: Do not include pathmax.h.
3030 2014-08-07 Gary Benson <gbenson@redhat.com>
3032 * common/common-defs.h: Include libiberty.h.
3033 * defs.h: Do not include libiberty.h.
3034 * common/queue.h: Likewise.
3035 * cp-name-parser.y: Likewise.
3036 * mi/mi-cmd-catch.c: Likewise.
3037 * python/python.c: Likewise.
3039 2014-08-07 Gary Benson <gbenson@redhat.com>
3041 * common/common-defs.h: Include ansidecl.h.
3042 * defs.h: Do not include ansidecl.h.
3043 * common/buffer.h: Likewise.
3044 * common/common-utils.h: Likewise.
3046 2014-08-07 Gary Benson <gbenson@redhat.com>
3048 * common/common-defs.h: Include stddef.h.
3049 * defs.h: Do not include stddef.h.
3050 * common/common-utils.h: Likewise.
3051 * amd64fbsd-nat.c: Likewise.
3052 * bcache.c: Likewise.
3053 * charset.c: Likewise.
3054 * common/buffer.h: Likewise.
3055 * common/vec.h: Likewise.
3056 * i386bsd-nat.c: Likewise.
3057 * nat/linux-btrace.h: Likewise.
3058 * ppcfbsd-nat.c: Likewise.
3059 * ppcnbsd-tdep.h: Likewise.
3060 * ppcobsd-nat.c: Likewise.
3061 * ppcobsd-tdep.h: Likewise.
3062 * python/py-gdb-readline.c: Likewise.
3064 2014-08-07 Gary Benson <gbenson@redhat.com>
3066 * common/common-defs.h: Include stdarg.h.
3067 * defs.h: Do not include stdarg.h.
3068 * ada-lang.c: Likewise.
3069 * common/common-utils.h: Likewise.
3070 * guile/scm-string.c: Likewise.
3071 * guile/scm-utils.c: Likewise.
3072 * m32c-tdep.c: Likewise.
3074 2014-08-07 Gary Benson <gbenson@redhat.com>
3076 * common/common-defs.h: Include stdlib.h.
3077 * defs.h: Do not include stdlib.h.
3078 * addrmap.c: Likewise.
3079 * bcache.c: Likewise.
3080 * common/buffer.c: Likewise.
3081 * common/common-utils.c: Likewise.
3082 * cp-name-parser.y: Likewise.
3083 * go32-nat.c: Likewise.
3084 * mn10300-linux-tdep.c: Likewise.
3085 * nat/linux-osdata.c: Likewise.
3086 * tui/tui.c: Likewise.
3087 * windows-nat.c: Likewise.
3089 2014-08-07 Gary Benson <gbenson@redhat.com>
3091 * common/common-defs.h: Include stdio.h.
3092 * defs.h: Do not include stdio.h.
3093 * ada-lang.c: Likewise.
3094 * common/buffer.c: Likewise.
3095 * common/common-utils.c: Likewise.
3096 * cp-name-parser.y: Likewise.
3097 * gnu-nat.c: Likewise.
3098 * go32-nat.c: Likewise.
3099 * i386gnu-nat.c: Likewise.
3100 * proc-api.c: Likewise.
3101 * proc-events.c: Likewise.
3102 * proc-flags.c: Likewise.
3103 * proc-why.c: Likewise.
3104 * python/python-internal.h: Likewise.
3105 * target-memory.c: Likewise.
3106 * tui/tui-io.c: Likewise.
3107 * tui/tui.c: Likewise.
3109 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3111 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3112 (scan_dyntag_auxv): Same.
3114 2014-08-06 Yao Qi <yao@codesourcery.com>
3116 * amd64-linux-nat.c: Remove duplicated include
3118 * i386-linux-nat.c: Likewise.
3120 2014-08-06 Yao Qi <yao@codesourcery.com>
3122 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3123 operand" with "Special opcode" in comments.
3125 2014-08-05 Gary Benson <gbenson@redhat.com>
3127 * interps.c (initialize_interps): Remove prototype.
3128 (interpreter_initialized): Remove static global.
3129 (interp_add): Do not call initialize_interps.
3130 (initialize_interps): Remove function.
3132 2014-08-05 Gary Benson <gbenson@redhat.com>
3134 * utils.c (vwarning): Remove spurious va_end.
3136 2014-08-05 Alan Modra <amodra@gmail.com>
3138 * charset.c (convert_between_encodings): Cast result of obstack_base.
3139 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3140 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3141 (read_unwind_info): Use size_t for some locals.
3142 * jit.c (finalize_symtab): Likewise.
3143 * utils.c (hashtab_obstack_allocate): Likewise.
3144 * symmisc.c (print_objfile_statistics): Update format strings.
3146 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3148 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3149 (Changes in GDB 7.8): ... here.
3151 2014-08-04 Tom Tromey <tromey@redhat.com>
3153 * target.c (set_targetdebug): New function.
3154 (initialize_targets): Pass set_targetdebug when creating "set
3157 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3159 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3160 if detecting a variable-sized field that is not the last field.
3161 Fix struct type length computation.
3163 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3165 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3168 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3170 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3171 Remove "+ 8" offset in computation of CHAIN_VMA.
3173 2014-07-31 Doug Evans <dje@google.com>
3175 * inflow.c (child_terminal_inferior): Add comment.
3176 (child_terminal_ours_for_output): Add comment.
3177 (child_terminal_ours): Add comment.
3178 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3179 (linux_nat_terminal_ours): Add comment.
3181 2014-07-31 Gary Benson <gbenson@redhat.com>
3183 * common/btrace-common.h: Do not include defs.h or server.h.
3184 * nat/mips-linux-watch.h: Likewise.
3185 * gdb-dlfcn.h: Do not include defs.h.
3186 * tracefile.h: Likewise.
3188 2014-07-30 Roland McGrath <mcgrathr@google.com>
3190 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3192 2014-07-30 Tom Tromey <tromey@redhat.com>
3194 * bsd-kvm.c (bsd_kvm_open): Constify.
3195 * corelow.c (core_open): Constify.
3196 * ctf.c (ctf_open): Constify.
3197 * dbug-rom.c (dbug_open): Constify.
3198 * exec.c (exec_open): Constify.
3199 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3200 * microblaze-rom.c (picobug_open): Constify.
3201 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3203 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3204 * record-btrace.c (record_btrace_open): Constify.
3205 * record-full.c (record_full_core_open_1, record_full_open_1)
3206 (record_full_open): Constify.
3207 * remote-m32r-sdi.c (m32r_open): Constify.
3208 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3209 (rockhopper_open, lsi_open): Constify.
3210 * remote-sim.c (gdbsim_open): Constify.
3211 * remote.c (remote_open, extended_remote_open, remote_open_1):
3213 * target.h (struct target_ops) <to_open>: Make "arg" const.
3214 * tracefile-tfile.c (tfile_open): Constify.
3216 2014-07-30 Tom Tromey <tromey@redhat.com>
3218 * breakpoint.c (map_breakpoint_numbers): Update.
3219 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3220 (get_number_const): New function.
3221 (get_number): Rewrite using get_number_const.
3222 (init_number_or_range): Make "string" const.
3223 (number_is_in_list): Make "list" const.
3224 * cli/cli-utils.h (get_number_const): Declare.
3225 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3226 (init_number_or_range, number_is_in_list): Update.
3227 * printcmd.c (map_display_numbers): Update.
3228 * value.c (value_from_history_ref): Constify.
3229 * value.h (value_from_history_ref): Update.
3231 2014-07-30 Tom Tromey <tromey@redhat.com>
3233 * corefile.c (hook_type, call_extra_exec_file_hooks)
3234 (specify_exec_file_hook): Constify.
3235 * exec.c (exec_file_attach): Make "filename" const.
3236 * gdbcore.h (deprecated_exec_file_display_hook)
3237 (specify_exec_file_hook, exec_file_attach): Constify.
3238 * main.c (captured_main): Use catch_command_errors_const.
3240 2014-07-30 Tom Tromey <tromey@redhat.com>
3242 * target.c (open_target): New function.
3243 (add_target_with_completer, add_deprecated_target_alias): Use
3244 set_cmd_sfunc, set_cmd_context.
3245 (debug_to_open): Remove.
3246 (setup_target_debug): Update.
3248 2014-07-30 Yao Qi <yao@codesourcery.com>
3250 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3252 * parse.c (exp_iterate): Update comments.
3254 2014-07-30 Gary Benson <gbenson@redhat.com>
3256 * common/common-defs.h: New file.
3257 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3258 * defs.h: Include common-defs.h.
3259 Do not include config.h or build-gnulib/config.h.
3261 2014-07-30 Gary Benson <gbenson@redhat.com>
3263 * common/common-utils.h: Do not include config.h.
3264 * nat/linux-btrace.h: Likewise.
3266 2014-07-30 Gary Benson <gbenson@redhat.com>
3268 * btrace.c: Include defs.h.
3269 * common/ptid.c: Include defs.h or server.h as appropriate.
3270 * nat/mips-linux-watch.c: Likewise.
3272 2014-07-29 Tom Tromey <tromey@redhat.com>
3274 * target.c (target_is_pushed): Simplify.
3276 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3280 2014-07-29 Yao Qi <yao@codesourcery.com>
3283 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3285 2014-07-28 Doug Evans <xdje42@gmail.com>
3288 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3289 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3292 2014-07-28 Will Newton <will.newton@linaro.org>
3294 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3295 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3296 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3297 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3298 (THUMB2_EABI_SYSCALL): Likewise.
3299 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3301 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3302 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3304 2014-07-27 Doug Evans <xdje42@gmail.com>
3306 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3308 2014-07-27 Doug Evans <xdje42@gmail.com>
3310 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3312 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3313 Doug Evans <xdje42@gmail.com>
3316 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3317 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3318 * configure.ac: Try to use guild to compile an scm file, if it fails
3319 then disable guile support.
3320 * configure: Regenerate.
3321 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3323 (GUILE_COMPILED_FILES): New variable.
3324 (GUILE_FILES) Update.
3325 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3326 (stamp-guile): Compile scm files.
3327 * guile/guile.c (boot_guile_support): New function.
3328 (standard_throw_args_p): New function.
3329 (print_standard_throw_error, print_throw_error): New functions.
3330 (handle_boot_error): New function.
3331 (initialize_scheme_side): Rewrite to call boot_guile_support.
3332 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3333 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3335 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3336 Doug Evans <xdje42@gmail.com>
3339 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3340 * guile/lib/gdb/support.scm: New file.
3341 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3342 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3344 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3346 (%assert-type): Ditto, and renamed to assert-type.
3347 (%exception-print-style): Delete.
3349 2014-07-26 Doug Evans <xdje42@gmail.com>
3352 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3353 * configure: Regenerate.
3354 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3356 (PYTHON_FILES): New variable.
3357 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3358 (GUILE_FILES): New variable.
3359 (stamp-python, install-python, uninstall-python): Handle empty
3361 (stamp-guile, install-guile, uninstall-guile): Ditto.
3363 2014-07-26 Doug Evans <xdje42@gmail.com>
3366 * guile/lib/gdb.scm (pretty-printers): Export.
3367 (set-pretty-printers!): Export.
3368 * guile/lib/gdb/printing.scm (gdb module): Update.
3369 (prepend-pretty-printer!, append-pretty-printer!): Update.
3370 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3371 (pretty_printer_list_var): Delete.
3372 (pretty_printer_list): New static global.
3373 (gdbscm_pretty_printers): New function.
3374 (gdbscm_set_pretty_printers_x): New function.
3375 (ppscm_find_pretty_printer_from_gdb): Update.
3376 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3377 (gdbscm_initialize_pretty_printers): Update.
3379 2014-07-26 Doug Evans <xdje42@gmail.com>
3382 * configure.ac: Add check for header gc/gc.h.
3383 Add check for function setenv.
3384 * configure: Regenerate.
3385 * config.in: Regenerate.
3386 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3388 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3390 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3391 variation in gdbarch matching.
3393 2014-07-25 Tom Tromey <tromey@redhat.com>
3395 * exec.c (using_exec_ops): Remove.
3396 (exec_close_1): Update. Remove extraneous block, reindent.
3397 (add_target_sections): Use target_is_pushed.
3399 2014-07-25 Pedro Alves <palves@redhat.com>
3401 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3402 * monitor.c (monitor_create_inferior): Likewise.
3403 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3404 * remote-sim.c (gdbsim_create_inferior): Likewise.
3405 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3406 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3407 * windows-nat.c (do_initial_windows_stuff): Likewise.
3409 2014-07-25 Pedro Alves <palves@redhat.com>
3411 * NEWS: Mention signal passing and "signal" command changes.
3412 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3414 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3416 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3417 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3418 (jump_command): Adjust clear_proceed_status call.
3419 (signal_command): Warn if other thread that are resumed have
3420 signals that will be delivered. Adjust clear_proceed_status call.
3421 (until_next_command, finish_command)
3422 (proceed_after_attach_callback, attach_command_post_wait)
3423 (attach_command): Adjust clear_proceed_status call.
3424 * infrun.c (proceed_after_vfork_done): Likewise.
3425 (proceed_after_attach_callback): Adjust comment.
3426 (clear_proceed_status_thread): Clear stop_signal if not in pass
3428 (clear_proceed_status_callback): Delete.
3429 (clear_proceed_status): New 'step' parameter. Only clear the
3430 proceed status of threads the command being prepared is about to
3432 (proceed): If passed in an explicit signal, override stop_signal
3433 with it. Don't pass the last stop signal to the thread we're
3435 (init_wait_for_inferior): Adjust clear_proceed_status call.
3436 (switch_back_to_stepped_thread): Clear the signal if it should not
3438 * infrun.h (clear_proceed_status): New 'step' parameter.
3439 (user_visible_resume_ptid): Add comment.
3440 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3441 signal is in pass state.
3442 * remote.c (append_pending_thread_resumptions): Likewise.
3443 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3445 2014-07-25 Tom Tromey <tromey@redhat.com>
3447 * target.h (target_stopped_data_address)
3448 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3451 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3453 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3455 (avr_pointer_to_address): Likewise.
3457 2014-07-24 Tom Tromey <tromey@redhat.com>
3459 * monitor.c (compile_pattern): Update.
3460 * target.h (struct target_ops) <to_shortname, to_longname,
3463 2014-07-24 Tom Tromey <tromey@redhat.com>
3465 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3466 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3467 (add_info_alias, add_com): Make "doc" const.
3468 (print_doc_line): Make "str" const.
3469 (delete_cmd): Update.
3470 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3471 (print_doc_line): Update.
3472 * cli/cli-script.c (document_command): Update.
3473 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3474 (add_com, add_info, add_info_alias): Update.
3475 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3476 * python/py-cmd.c (cmdpy_destroyer): Update.
3478 2014-07-24 Tom Tromey <tromey@redhat.com>
3480 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3481 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3482 (help_cmd_list): Constify.
3483 (lookup_cmd): Update.
3484 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3486 (help_cmd_list, apropos_cmd): Update.
3487 * cli/cli-script.c (show_user): Update.
3488 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3489 * cli/cli-setshow.h (cmd_show_list): Update.
3490 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3491 (cmd_show_list): Update.
3492 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3493 * python/py-cmd.c (cmdpy_destroyer): Update.
3495 2014-07-24 Tom Tromey <tromey@redhat.com>
3497 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3498 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3500 * command.h (deprecate_cmd): Update.
3501 * maint.c (maintenance_do_deprecate): Add casts.
3503 2014-07-24 Tom Tromey <tromey@redhat.com>
3505 * cli/cli-decode.c (help_cmd): Make parameter "const".
3506 * cli/cli-decode.h (help_cmd): Update.
3508 2014-07-24 Tom Tromey <tromey@redhat.com>
3510 * stack.c (up_silently_base, down_silently_base): Make argument
3513 2014-07-24 Tom Tromey <tromey@redhat.com>
3515 * solib.c (solib_add): Make "pattern" const.
3516 * solib.h (solib_add): Update.
3518 2014-07-24 Tom Tromey <tromey@redhat.com>
3520 * remote.c (remote_serial_open, print_packet, putpkt)
3521 (putpkt_binary): Constify.
3522 * remote.h (putpkt): Update.
3524 2014-07-24 Tom Tromey <tromey@redhat.com>
3526 * monitor.c (monitor_open): Make "args" const.
3527 * monitor.h (monitor_open): Update.
3529 2014-07-24 Tom Tromey <tromey@redhat.com>
3531 * maint.c (match_bfd_flags): Make "string" const.
3532 (print_bfd_section_info): Remove casts.
3533 (print_objfile_section_info): Make "string" const.
3535 2014-07-24 Tom Tromey <tromey@redhat.com>
3537 * inf-child.c (inf_child_open_target): Make "arg" const.
3538 * inf-child.h (inf_child_open_target): Update.
3540 2014-07-24 Tom Tromey <tromey@redhat.com>
3542 * environ.c (unset_in_environ): Make "var" const.
3543 * environ.h (unset_in_environ): Update.
3545 2014-07-24 Tom Tromey <tromey@redhat.com>
3547 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3549 (scan_filename_with_cleanup): Likewise.
3550 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3551 Make arguments const.
3552 (restore_command): Update.
3554 2014-07-24 Pedro Alves <palves@redhat.com>
3556 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3558 2014-07-24 Tom Tromey <tromey@redhat.com>
3559 Gary Benson <gbenson@redhat.com>
3561 * nat/linux-ptrace.c (additional_flags): New global.
3562 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3563 additional_flags; don't check GDBSERVER.
3564 (linux_ptrace_set_additional_flags): New function.
3565 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3567 * linux-nat.c (_initialize_linux_nat): Call
3568 linux_ptrace_set_additional_flags.
3570 2014-07-24 Tom Tromey <tromey@redhat.com>
3572 * make-target-delegates (munge_type, write_debugmethod): New
3574 (debug_names): New global.
3575 ($TARGET_DEBUG_PRINTER): New global.
3576 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3578 Write debug methods. Generate init_debug_target.
3579 * target-debug.h: New file.
3580 * target-delegates.c: Rebuild.
3581 * target.c: Include target-debug.h.
3582 (debug_target): Hoist definition.
3583 (target_kill, target_get_section_table, target_memory_map)
3584 (target_flash_erase, target_flash_done, target_detach)
3585 (target_disconnect, target_wait, target_resume)
3586 (target_pass_signals, target_program_signals, target_follow_fork)
3587 (target_mourn_inferior, target_search_memory)
3588 (target_thread_address_space, target_close)
3589 (target_find_new_threads, target_core_of_thread)
3590 (target_verify_memory, target_insert_mask_watchpoint)
3591 (target_remove_mask_watchpoint): Remove targetdebug code.
3592 (debug_to_post_attach, debug_to_prepare_to_store)
3593 (debug_to_files_info, debug_to_insert_breakpoint)
3594 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3595 (debug_to_region_ok_for_hw_watchpoint)
3596 (debug_to_can_accel_watchpoint_condition)
3597 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3598 (debug_to_watchpoint_addr_within_range)
3599 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3600 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3601 (debug_to_terminal_init, debug_to_terminal_inferior)
3602 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3603 (debug_to_terminal_save_ours, debug_to_terminal_info)
3604 (debug_to_load, debug_to_post_startup_inferior)
3605 (debug_to_insert_fork_catchpoint)
3606 (debug_to_remove_fork_catchpoint)
3607 (debug_to_insert_vfork_catchpoint)
3608 (debug_to_remove_vfork_catchpoint)
3609 (debug_to_insert_exec_catchpoint)
3610 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3611 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3612 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3613 (setup_target_debug): Call init_debug_target.
3614 * target.h (TARGET_DEBUG_PRINTER): New macro.
3615 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3616 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3618 2014-07-24 Gary Benson <gbenson@redhat.com>
3620 * exceptions.h (throw_vfatal): Renamed to...
3621 (throw_vquit): New declaration.
3622 (throw_quit): Likewise.
3623 * exceptions.c (throw_vfatal): Renamed to...
3624 (throw_vquit): New function.
3625 (throw_quit): Likewise.
3626 (throw_error): Call throw_verror rather than throw_it.
3627 * utils.h (vfatal): Removed.
3629 * utils.c (vfatal): Removed.
3631 (internal_verror): Replaced call to fatal with call to throw_quit.
3632 (quit): Replaced calls to fatal with calls to throw_quit.
3634 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3636 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3639 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3641 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3642 less than zero in conditional expression.
3644 2014-07-23 Tom Tromey <tromey@redhat.com>
3646 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3647 ($INTRO_PART): Don't match whitespace.
3648 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3650 ($METHOD): Add $METHOD_TRAILER.
3652 (scan_target_h): New sub.
3653 Change main loop not to collect state.
3654 * target-delegates.c: Rebuild.
3656 2014-07-23 Gary Benson <gbenson@redhat.com>
3658 * cp-support.c (gdb_demangle): Fix build on systems without
3661 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3663 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3664 for reference entry value target data value.
3666 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3668 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3669 value_available_contents_eq.
3671 2014-07-22 Pedro Alves <palves@redhat.com>
3673 * value.c (allocate_optimized_out_value): Don't mark value as
3676 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3678 * MAINTAINERS (Write After Approval): Update my email address.
3680 2014-07-20 Doug Evans <dje@google.com>
3683 * remote.c (putpkt_binary): Add text to error message.
3685 2014-07-20 Yao Qi <yao@codesourcery.com>
3687 * eval.c: Remove "Chill" from comments.
3688 * gdbtypes.h: Likewise.
3689 * symtab.h: Likewise.
3691 2014-07-20 Yao Qi <yao@codesourcery.com>
3693 * std-operator.def: Update comments to TERNOP_SLICE.
3695 2014-07-20 Yao Qi <yao@codesourcery.com>
3697 * std-operator.def: Remove BINOP_RANGE.
3698 * breakpoint.c (watchpoint_exp_is_const): Update.
3699 * expprint.c (dump_subexp_body_standard): Likewise.
3700 * eval.c (init_array_element): Remove dead code.
3701 (evaluate_subexp_standard): Likewise.
3703 2014-07-20 Yao Qi <yao@codesourcery.com>
3705 * std-operator.def: Remove BINOP_IN.
3706 * breakpoint.c (watchpoint_exp_is_const): Update.
3707 * eval.c (evaluate_subexp_standard): Likewise.
3708 * expprint.c (dump_subexp_body_standard): Likewise.
3710 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3712 * microblaze-tdep.c (microblaze_register_names): Add
3713 the rshr and rslr register names.
3714 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3715 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3716 Use of tdesc_numbered_register. Use of
3717 microblaze_register_g_packet_guesses. Use of
3718 tdesc_use_registers. Use of set_gdbarch_register_type.
3719 (microblaze_register_g_packet_guesses): New.
3720 * microblaze-tdep.h (microblaze_reg_num): Add
3721 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3722 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3723 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3724 * features/microblaze-core.xml: New file.
3725 * features/microblaze-stack-protect.xml: New file.
3726 * features/microblaze-with-stack-protect.c: New file.
3727 * features/microblaze-with-stack-protect.xml: New file.
3728 * features/microblaze.xml: New file.
3729 * features/microblaze.c: New file.
3730 * features/Makefile (microblaze-with-stack-protect): Add
3731 microblaze-with-stack-protect microblaze and microblaze-expedite.
3732 * regformats/microblaze-with-stack-protect.dat: New file.
3733 * regformats/microblaze.dat: New file.
3734 * doc/gdb.texinfo (MicroBlaze Features): Added.
3736 2014-07-18 Tom Tromey <tromey@redhat.com>
3738 * exec.c (exec_ops): Now static.
3739 * exec.h (exec_ops): Don't declare.
3741 2014-07-18 Tom Tromey <tromey@redhat.com>
3743 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3744 to find_target_beneath.
3745 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3746 find_target_beneath.
3747 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3749 2014-07-18 Tom Tromey <tromey@redhat.com>
3752 * utils.c (quit): Use target_supports_terminal_ours.
3753 * target.h (target_supports_terminal_ours): Declare.
3754 * target.c (target_supports_delete_record): Don't check
3755 to_delete_record against NULL.
3756 (target_supports_terminal_ours): New function.
3758 2014-07-18 Tom Tromey <tromey@redhat.com>
3761 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3762 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3763 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3764 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3765 * windows-nat.c (windows_xfer_partial): Always delegate.
3766 * record-btrace.c (record_btrace_xfer_partial): Simplify
3768 (record_btrace_fetch_registers, record_btrace_store_registers)
3769 (record_btrace_prepare_to_store, record_btrace_resume)
3770 (record_btrace_wait, record_btrace_find_new_threads)
3771 (record_btrace_thread_alive): Likewise.
3772 * procfs.c (procfs_xfer_partial): Always delegate.
3773 * corelow.c (core_xfer_partial): Always delegate.
3774 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3776 2014-07-18 Tom Tromey <tromey@redhat.com>
3778 * exec.c (exec_make_note_section): Move earlier.
3780 2014-07-17 Doug Evans <dje@google.com>
3783 * maint.c (count_symtabs_and_blocks): Handle NULL
3784 current_program_space.
3785 (report_command_stats): Check global enabled flag in addition to
3786 recorded enabled flag.
3787 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3789 2014-07-16 Pedro Alves <palves@redhat.com>
3791 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3793 2014-07-16 Tom Tromey <tromey@redhat.com>
3795 * target.h (struct target_ops) <to_delete_record>: Reformat
3798 2014-07-16 Tom Tromey <tromey@redhat.com>
3800 * target-delegates.c: Rebuild.
3802 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3804 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3805 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3806 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3807 (avr_pointer_to_address): Likewise.
3808 (avr_address_class_type_flags): New function.
3809 (avr_address_class_type_flags_to_name): Likewise.
3810 (avr_address_class_name_to_type_flags): Likewise.
3811 (avr_gdbarch_init): Set address_class_type_flags,
3812 address_class_type_flags_to_name and
3813 address_class_name_to_type_flags.
3815 2014-07-15 Pedro Alves <palves@redhat.com>
3817 * linux-nat.c (kill_callback): Save errno and work with saved
3820 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3822 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3824 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3826 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3827 breakpoint support correctly.
3829 2014-07-14 Pedro Alves <palves@redhat.com>
3831 * utils.c (prompt_for_continue): Call target_terminal_ours.
3833 2014-07-14 Pedro Alves <palves@redhat.com>
3835 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3836 catch_errors. Don't re-enable stdin or notify observers where,
3838 (fetch_inferior_event_wrapper): Delete.
3840 2014-07-14 Pedro Alves <palves@redhat.com>
3843 * top.c: Include "inf-loop.h".
3844 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3846 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3848 (gdb_readline_wrapper): Store whether the target is async, and
3851 2014-07-14 Pedro Alves <palves@redhat.com>
3854 * top.c (gdb_readline_wrapper_line): Tweak comment.
3855 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3856 the input handler callback.
3858 2014-07-14 Pedro Alves <palves@redhat.com>
3861 * main.c: Include event-top.h.
3862 (handle_command_errors): New function.
3863 (catch_command_errors, catch_command_errors_const): Use it.
3865 2014-07-14 Pedro Alves <palves@redhat.com>
3867 * exceptions.c (catch_command_errors, catch_command_errors_const):
3869 * exceptions.h (catch_command_errors_ftype)
3870 (catch_command_errors_const_ftype): Moved to main.c.
3871 (catch_command_errors, catch_command_errors_const): Delete
3873 * main.c (catch_command_errors_ftype)
3874 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3875 (catch_command_errors, catch_command_errors_const)): Moved here
3876 from exceptions.c and make static.
3878 2014-07-14 Pedro Alves <palves@redhat.com>
3880 * exceptions.c (print_any_exception): Delete.
3881 (catch_exceptions_with_msg): Use exception_print instead of
3882 print_any_exception.
3883 (catch_errors): Use exception_fprintf instead of
3884 print_any_exception.
3885 (catch_command_errors, catch_command_errors_const): Use
3886 exception_print instead of print_any_exception.
3888 2014-07-14 Pedro Alves <palves@redhat.com>
3890 * infcall.c (run_inferior_call): Set 'sync_execution' while
3891 running the inferior call.
3893 2014-07-14 Pedro Alves <palves@redhat.com>
3895 * value.c (value_contents_equal): Delete function.
3896 * value.h (value_contents_equal): Delete declaration.
3898 2014-07-14 Tom Tromey <tromey@redhat.com>
3901 * gdbtypes.c (is_dynamic_type_internal): New function, from
3903 (is_dynamic_type): Rewrite.
3904 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3905 (resolve_dynamic_struct): Likewise.
3906 (resolve_dynamic_type_internal): New function, from
3907 resolve_dynamic_type.
3908 (resolve_dynamic_type): Rewrite.
3910 2014-07-14 Tom Tromey <tromey@redhat.com>
3912 * target.c (target_require_runnable): Also check record_stratum.
3915 2014-07-11 Yao Qi <yao@codesourcery.com>
3917 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3918 thumb_instruction_restores_sp return true.
3920 2014-07-11 Yao Qi <yao@codesourcery.com>
3922 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3923 (thumb_in_function_epilogue_p): Call
3924 thumb_instruction_restores_sp.
3926 2014-07-11 Yao Qi <yao@codesourcery.com>
3928 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3930 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3932 2014-07-11 Gary Benson <gbenson@redhat.com>
3934 * amd64-linux-nat.c (gdbcore.h): Remove include.
3935 (regset.h): Likewise.
3936 (nat/linux-btrace.h): Likewise.
3937 (btrace.h): Likewise.
3938 (gdb_assert.h): Likewise.
3939 (string.h): Likewise.
3940 (sys/uio.h): Likewise.
3941 (sys/debugreg.h): Likewise.
3942 (sys/syscall.h): Likewise.
3943 (sys/procfs.h): Likewise.
3944 (sys/user.h): Likewise.
3945 (asm/ptrace.h): Likewise.
3946 (i386-nat.h): Likewise.
3947 * i386-linux-nat.c (i386-nat.h): Likewise.
3948 (regset.h): Likewise.
3949 (target.h): Likewise.
3950 (linux-nat.h): Likewise.
3951 (nat/linux-btrace.h): Likewise.
3952 (btrace.h): Likewise.
3953 (gdb_assert.h): Likewise.
3954 (string.h): Likewise.
3955 (sys/uio.h): Likewise.
3956 (sys/user.h): Likewise.
3957 (sys/procfs.h): Likewise.
3958 (sys/reg.h): Likewise.
3959 (sys/debugreg.h): Likewise.
3960 (ORIG_EAX): Remove definition.
3962 2014-07-11 Gary Benson <gbenson@redhat.com>
3964 * i386-linux-nat.h: New file.
3965 * x86-linux-nat.h: Likewise.
3966 * x86-linux-nat.c: Likewise.
3967 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3968 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3969 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3970 * amd64-linux-nat.c (x86-linux-nat.h): New include.
3971 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3972 (PTRACE_SETREGSET): Likewise.
3973 (arch_lwp_info): Now in x86-linux-nat.c.
3974 (have_ptrace_getregset): Now in x86-linux-nat.h.
3975 (x86_linux_dr_get): Now in x86-linux-nat.c.
3976 (x86_linux_dr_set): Likewise.
3977 (x86_linux_dr_get_addr): Likewise.
3978 (x86_linux_dr_get_control): Likewise.
3979 (x86_linux_dr_get_status): Likewise.
3980 (update_debug_registers_callback): Likewise.
3981 (x86_linux_dr_set_control): Likewise.
3982 (x86_linux_dr_set_addr): Likewise.
3983 (x86_linux_prepare_to_resume): Likewise.
3984 (x86_linux_new_thread): Likewise.
3985 (x86_linux_new_fork): Likewise.
3986 (x86_linux_get_thread_area): Likewise.
3987 (super_post_startup_inferior): Likewise.
3988 (x86_linux_child_post_startup_inferior): Likewise.
3989 (AMD64_LINUX_USER64_CS): Likewise.
3990 (AMD64_LINUX_X32_DS): Likewise.
3991 (x86_linux_read_description): Likewise.
3992 (x86_linux_enable_btrace): Likewise.
3993 (x86_linux_disable_btrace): Likewise.
3994 (x86_linux_teardown_btrace): Likewise.
3995 (x86_linux_read_btrace): Likewise.
3996 (x86_linux_create_target): Likewise.
3997 (x86_linux_add_target): Likewise.
3998 * i386-linux-nat.c (x86-linux-nat.h): New include.
3999 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4000 (PTRACE_SETREGSET): Likewise.
4001 (arch_lwp_info): Now in x86-linux-nat.c.
4002 (have_ptrace_getregset): Now in x86-linux-nat.h.
4003 (x86_linux_dr_get): Now in x86-linux-nat.c.
4004 (x86_linux_dr_set): Likewise.
4005 (x86_linux_dr_get_addr): Likewise.
4006 (x86_linux_dr_get_control): Likewise.
4007 (x86_linux_dr_get_status): Likewise.
4008 (update_debug_registers_callback): Likewise.
4009 (x86_linux_dr_set_control): Likewise.
4010 (x86_linux_dr_set_addr): Likewise.
4011 (x86_linux_prepare_to_resume): Likewise.
4012 (x86_linux_new_thread): Likewise.
4013 (x86_linux_new_fork): Likewise.
4014 (x86_linux_get_thread_area): Likewise.
4015 (super_post_startup_inferior): Likewise.
4016 (x86_linux_child_post_startup_inferior): Likewise.
4017 (AMD64_LINUX_USER64_CS): Likewise.
4018 (AMD64_LINUX_X32_DS): Likewise.
4019 (x86_linux_read_description): Likewise.
4020 (x86_linux_enable_btrace): Likewise.
4021 (x86_linux_disable_btrace): Likewise.
4022 (x86_linux_teardown_btrace): Likewise.
4023 (x86_linux_read_btrace): Likewise.
4024 (x86_linux_create_target): Likewise.
4025 (x86_linux_add_target): Likewise.
4027 2014-07-11 Gary Benson <gbenson@redhat.com>
4029 * amd64-linux-nat.c: Comment and whitespace changes.
4030 * i386-linux-nat.c: Comment and whitespace changes.
4032 2014-07-11 Gary Benson <gbenson@redhat.com>
4034 * amd64-linux-nat.c (x86_linux_create_target): New function.
4035 (x86_linux_add_target): Likewise.
4036 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4037 * i386-linux-nat.c (x86_linux_create_target): New function.
4038 (x86_linux_add_target): Likewise.
4039 (_initialize_i386_linux_nat): Delegate to the above new functions.
4041 2014-07-11 Gary Benson <gbenson@redhat.com>
4043 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4044 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4045 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4046 (ps_get_thread_area): Delegate to the above.
4048 2014-07-11 Gary Benson <gbenson@redhat.com>
4050 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4051 x86_linux_read_description. All uses updated. amd64-specific
4052 code conditionalized. Conditionalized i386-specific code added.
4053 Redundant cast removed.
4054 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4055 x86_linux_read_description. All uses updated. i386-specific
4056 code conditionalized. Conditionalized amd64-specific code added.
4057 One sizeof replaced with the actual type it is describing.
4059 2014-07-11 Gary Benson <gbenson@redhat.com>
4061 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4062 x86_linux_dr_get. All uses updated.
4063 (amd64_linux_dr_set): Renamed to
4064 x86_linux_dr_set. All uses updated.
4065 (amd64_linux_dr_get_addr): Renamed to
4066 x86_linux_dr_get_addr. All uses updated.
4067 (amd64_linux_dr_get_control): Renamed to
4068 x86_linux_dr_get_control. All uses updated.
4069 (amd64_linux_dr_get_status): Renamed to
4070 x86_linux_dr_get_status. All uses updated.
4071 (amd64_linux_dr_set_control): Renamed to
4072 x86_linux_dr_set_control. All uses updated.
4073 (amd64_linux_dr_set_addr): Renamed to
4074 x86_linux_dr_set_addr. All uses updated.
4075 (amd64_linux_prepare_to_resume): Renamed to
4076 x86_linux_prepare_to_resume. All uses updated.
4077 (amd64_linux_new_thread): Renamed to
4078 x86_linux_new_thread. All uses updated.
4079 (amd64_linux_new_fork): Renamed to
4080 x86_linux_new_fork. All uses updated.
4081 (amd64_linux_child_post_startup_inferior): Renamed to
4082 x86_linux_child_post_startup_inferior. All uses updated.
4083 (amd64_linux_enable_btrace): Renamed to
4084 x86_linux_enable_btrace. All uses updated.
4085 (amd64_linux_disable_btrace): Renamed to
4086 x86_linux_disable_btrace. All uses updated.
4087 (amd64_linux_teardown_btrace): Renamed to
4088 x86_linux_teardown_btrace. All uses updated.
4089 (amd64_linux_read_btrace): Renamed to
4090 x86_linux_read_btrace. All uses updated.
4091 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4092 x86_linux_dr_get. All uses updated.
4093 (i386_linux_dr_set): Renamed to
4094 x86_linux_dr_set. All uses updated.
4095 (i386_linux_dr_get_addr): Renamed to
4096 x86_linux_dr_get_addr. All uses updated.
4097 (i386_linux_dr_get_control): Renamed to
4098 x86_linux_dr_get_control. All uses updated.
4099 (i386_linux_dr_get_status): Renamed to
4100 x86_linux_dr_get_status. All uses updated.
4101 (i386_linux_dr_set_control): Renamed to
4102 x86_linux_dr_set_control. All uses updated.
4103 (i386_linux_dr_set_addr): Renamed to
4104 x86_linux_dr_set_addr. All uses updated.
4105 (i386_linux_prepare_to_resume): Renamed to
4106 x86_linux_prepare_to_resume. All uses updated.
4107 (i386_linux_new_thread): Renamed to
4108 x86_linux_new_thread. All uses updated.
4109 (i386_linux_new_fork): Renamed to
4110 x86_linux_new_fork. All uses updated.
4111 (i386_linux_child_post_startup_inferior): Renamed to
4112 x86_linux_child_post_startup_inferior. All uses updated.
4113 (i386_linux_enable_btrace): Renamed to
4114 x86_linux_enable_btrace. All uses updated.
4115 (i386_linux_disable_btrace): Renamed to
4116 x86_linux_disable_btrace. All uses updated.
4117 (i386_linux_teardown_btrace): Renamed to
4118 x86_linux_teardown_btrace. All uses updated.
4119 (i386_linux_read_btrace): Renamed to
4120 x86_linux_read_btrace. All uses updated.
4122 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4124 * remote.c (extended_remote_post_attach): New function.
4125 (init_extended_remote_ops): Install it as to_post_attach method.
4127 2014-07-09 Pedro Alves <palves@redhat.com>
4129 * infcmd.c (attach_command_post_wait): Don't call
4130 target_terminal_inferior here.
4131 (attach_command): Call it here instead.
4133 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4135 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4137 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4138 from varobj.c, with additional checks.
4139 (c_varobj_ops): Fill in is_path_expr_parent field.
4140 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4141 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4143 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4145 (varobj_default_is_path_expr_parent): New function.
4146 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4147 (varobj_default_is_path_expr_parent): Declare new function.
4149 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4151 * infcmd.c (finish_backward): Turn internal error into normal error.
4153 2014-07-07 Pedro Alves <palves@redhat.com>
4156 * remote.c (async_handle_remote_sigint)
4157 (async_handle_remote_sigint_twice): Call
4158 gdb_call_async_signal_handler instead of
4159 mark_async_signal_handler.
4161 2014-07-07 Tom Tromey <tromey@redhat.com>
4163 * target-delegates.c: Rebuild.
4164 * target.c (target_info_record): Remove.
4165 * record.c (info_record_command): Unconditionally call
4167 * target.h (struct target_ops) <to_info_record>: Use
4168 TARGET_DEFAULT_IGNORE.
4169 (target_info_record): Remove.
4171 2014-07-07 Tom Tromey <tromey@redhat.com>
4173 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4174 TARGET_DEFAULT_NORETURN.
4175 * target.c (generic_tls_error): New function.
4176 (target_translate_tls_address): Don't search target stack.
4177 * target-delegates.c: Rebuild.
4178 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4180 * linux-thread-db.c (thread_db_get_thread_local_address):
4181 Unconditionally call beneath target.
4183 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4185 * cli/cli-logging.c (pop_output_files): Assign targerr to
4188 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4190 * MAINTAINERS (Write After Approval): Update my email address.
4192 2014-07-02 Gary Benson <gbenson@redhat.com>
4194 * proc-service.c (ps_xfer_memory): Update comment.
4195 (ps_pstop): Remove unused function.
4196 (ps_pcontinue): Likewise.
4197 (ps_lstop): Likewise.
4198 (ps_lcontinue): Likewise.
4199 (ps_lgetxregsize): Likewise.
4200 (ps_lgetxregs): Likewise.
4201 (ps_lsetxregs): Likewise.
4202 (ps_plog): Likewise.
4203 (ps_ptread): Likewise.
4204 (ps_ptwrite): Likewise.
4206 2014-07-01 Mark Wielaard <mjw@redhat.com>
4208 * dwarf2read.c (add_array_cv_type): New function.
4209 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4210 (read_tag_volatile_type): Likewise.
4212 2014-07-01 Tom Tromey <tromey@redhat.com>
4214 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4215 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4216 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4217 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4218 * command.h (cmd_cfunc_ftype): Move earlier.
4219 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4220 (add_com, add_info): Use cmd_cfunc_ftype.
4222 2014-06-30 Tom Tromey <tromey@redhat.com>
4224 * symtab.c (operator_chars): Make parameters and return type
4226 (file_matches): Make "files" const.
4227 (struct search_symbols_data) <files>: Now const.
4228 (search_symbols): Make "regexp" and "files" parameters const.
4230 (symtab_symbol_info): Remove cast.
4231 (rbreak_command): Update.
4232 * symtab.h (search_symbols): Update.
4234 2014-06-27 Yao Qi <yao@codesourcery.com>
4236 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4237 Change parameter type to 'struct thread_info *'. Caller
4239 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4241 * dummy-frame.c (struct dummy_frame_id): New.
4242 (dummy_frame_id_eq): New function.
4243 (struct dummy_frame) <id>: Change its type to 'struct
4245 (dummy_frame_push): Add parameter ptid and save it in
4247 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4249 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4251 (lookup_dummy_frame): Change parameter type to 'struct
4252 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4253 instead of frame_id_eq.
4254 (dummy_frame_pop): Add parameter ptid. Callers updated.
4255 Update comments. Compose dummy_frame_id and pass it to
4257 (dummy_frame_discard): Add parameter ptid.
4258 (dummy_frame_sniffer): Compose dummy_frame_id and call
4259 dummy_frame_id_eq instead of frame_id_eq.
4260 (fprint_dummy_frames): Print ptid.
4261 * dummy-frame.h: Remove comments.
4262 (dummy_frame_push): Add ptid in declaration.
4263 (dummy_frame_pop, dummy_frame_discard): Likewise.
4265 2014-06-26 Tom Tromey <tromey@redhat.com>
4267 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4268 * command.h (error_no_arg): Update.
4270 2014-06-26 Tom Tromey <tromey@redhat.com>
4272 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4273 (do_show_command): Make "arg" const.
4274 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4276 2014-06-26 Tom Tromey <tromey@redhat.com>
4278 * record-full.c (record_full_get_bookmark): Make "args" const.
4279 (record_full_goto_bookmark): Make "raw_bookmark" const.
4280 * record.c (record_goto): New function.
4281 (cmd_record_goto): Use it. Now static.
4282 * record.h (record_goto): Declare.
4283 (cmd_record_goto): Remove declaration.
4284 * target-delegates.c: Rebuild.
4285 * target.h (struct target_ops) <to_get_bookmark,
4286 to_goto_bookmark>: Make parameter const.
4288 2014-06-26 Tom Tromey <tromey@redhat.com>
4290 * defs.h (generic_load): Update.
4291 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4292 * monitor.c (monitor_load): Make "args" const.
4293 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4294 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4296 (mips_load): Make "file" const.
4297 * remote-sim.c (gdbsim_load): Make "args" const.
4298 * remote.c (remote_load): Make "name" const.
4299 * symfile.c (generic_load): Make "args" const.
4300 * target-delegates.c: Rebuild.
4301 * target.c (target_load): Make "arg" const.
4302 (debug_to_load): Make "args" const.
4303 * target.h (struct target_ops) <to_load>: Make parameter const.
4304 (target_load): Update.
4306 2014-06-26 Tom Tromey <tromey@redhat.com>
4309 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4310 (dwarf2_physname, read_partial_die)
4311 (guess_partial_die_structure_name, fixup_partial_die)
4312 (guess_full_die_structure_name, anonymous_struct_prefix)
4313 (dwarf2_name): Use per-BFD obstack.
4315 2014-06-26 Yao Qi <yao@codesourcery.com>
4317 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4318 dummyframe and this_id into inner block below.
4320 2014-06-26 Yao Qi <yao@codesourcery.com>
4322 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4323 with "signal_pass[0]" in the initialization of signal_pass.
4325 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4327 * record-btrace.c (record_btrace_generating_corefile)
4328 (record_btrace_prepare_to_generate_core)
4329 (record_btrace_done_generating_core): New.
4330 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4331 (record_btrace_store_registers, record_btrace_prepare_to_store):
4332 Forward request when generating a core file.
4333 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4334 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4335 to_done_generating_core.
4337 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4339 * target.h (target_ops) <to_prepare_to_generate_core>
4340 <to_done_generating_core>: New.
4341 (target_prepare_to_generate_core, target_done_generating_core): New.
4342 * target.c (target_prepare_to_generate_core)
4343 (target_done_generating_core): New.
4344 * target-delegates.c: Regenerate.
4345 * gcore.c: (write_gcore_file): Rename to ...
4346 (write_gcore_file_1): ...this.
4347 (write_gcore_file): Call target_prepare_to_generate_core
4348 and target_done_generating_core.
4350 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4352 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4353 * gcore.c (write_gcore_file): Free memory returned from
4354 make_corefile_notes.
4355 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4356 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4358 2014-06-24 Yao Qi <yao@codesourcery.com>
4360 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4361 (arm_linux_init_abi): Set skip_trampoline_code with
4362 gdbarch_skip_trampoline_code instead of
4363 find_solib_trampoline_target.
4365 2014-06-24 Yao Qi <yao@codesourcery.com>
4367 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4368 arm_skip_bx_reg returns non-zero.
4370 2014-06-24 Yao Qi <yao@codesourcery.com>
4372 * arm-tdep.c (arm_skip_bx_reg): New function.
4373 (arm_skip_stub): Call arm_skip_bx_reg.
4375 2014-06-23 Don Breazeal <donb@codesourcery.com>
4377 * MAINTAINERS: Add myself as write-after-approval maintainer.
4379 2014-06-23 Pedro Alves <palves@redhat.com>
4381 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4382 DR_CONTROL before setting DR0..DR3.
4383 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4384 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4385 bits of DR_CONTROL related to the debug register slot being
4386 disabled. If all slots are vacant, clear local slowdown as well,
4387 and assert DR_CONTROL is 0.
4389 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4391 * python/lib/gdb/command/xmethods.py
4392 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4393 current progspace only if the string "progspace" matches LOCUS_RE.
4395 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4397 Fix --with-system-readline with readline-6.3 patch 5.
4398 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4399 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4402 2014-06-20 Tom Tromey <tromey@redhat.com>
4404 * dwarf2read.c (dw2_get_real_path): Use correct type in
4406 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4408 2014-06-20 Gary Benson <gbenson@redhat.com>
4410 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4411 * common/glibc_thread_db.h: Likewise.
4412 * common/i386-cpuid.h: Likewise.
4413 * common/i386-gcc-cpuid.h: Likewise.
4414 * common/linux-btrace.h: Likewise.
4415 * common/linux-osdata.h: Likewise.
4416 * common/linux-procfs.h: Likewise.
4417 * common/linux-ptrace.h: Likewise.
4418 * common/mips-linux-watch.h: Likewise.
4419 * common/linux-btrace.c: Moved to nat.
4420 * common/linux-osdata.c: Likewise.
4421 * common/linux-procfs.c: Likewise.
4422 * common/linux-ptrace.c: Likewise.
4423 * common/mips-linux-watch.c: Likewise.
4424 * nat/gdb_thread_db.h: Moved from common.
4425 * nat/glibc_thread_db.h: Likewise.
4426 * nat/i386-cpuid.h: Likewise.
4427 * nat/i386-gcc-cpuid.h: Likewise.
4428 * nat/linux-btrace.c: Likewise.
4429 * nat/linux-btrace.h: Likewise.
4430 * nat/linux-osdata.c: Likewise.
4431 * nat/linux-osdata.h: Likewise.
4432 * nat/linux-procfs.c: Likewise.
4433 * nat/linux-procfs.h: Likewise.
4434 * nat/linux-ptrace.c: Likewise.
4435 * nat/linux-ptrace.h: Likewise.
4436 * nat/mips-linux-watch.c: Likewise.
4437 * nat/mips-linux-watch.h: Likewise.
4438 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4439 (object file files): Reordered.
4440 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4441 of glibc_thread_db.h.
4443 2014-06-20 Gary Benson <gbenson@redhat.com>
4445 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4446 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4447 (i386_dr_low): Likewise.
4448 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4449 (i386_dr_low_set_addr): Likewise.
4450 (i386_dr_low_get_addr): Likewise.
4451 (i386_dr_low_can_set_control): Likewise.
4452 (i386_dr_low_set_control): Likewise.
4453 (i386_dr_low_get_control): Likewise.
4454 (i386_dr_low_get_status): Likewise.
4455 (i386_get_debug_register_length): Likewise.
4456 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4457 (i386_dr_low): Likewise.
4458 * nat/i386-dregs.c (i386-low.h): Remove include.
4459 (i386-nat.h): Likewise.
4460 (nat/i386-dregs.h): New include.
4461 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4462 (i386_dr_low_set_addr): Likewise.
4463 (i386_dr_low_get_addr): Likewise.
4464 (i386_dr_low_can_set_control): Likewise.
4465 (i386_dr_low_set_control): Likewise.
4466 (i386_dr_low_get_control): Likewise.
4467 (i386_dr_low_get_status): Likewise.
4468 (i386_get_debug_register_length): Likewise.
4469 (debug_hw_points): Likewise.
4471 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4473 * Makefile.in (SFILES): Add d-exp.y.
4474 (YYFILES): Add d-exp.c.
4475 (YYOBJ): Add d-exp.o.
4476 (local-maintainer-clean): Delete d-exp.c.
4477 * d-exp.y: New file.
4478 * d-lang.h (d_parse): New declaration.
4479 (d_error): New declaration.
4480 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4481 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4482 PREC_ORDER operators.
4483 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4485 2014-06-19 Yao Qi <yao@codesourcery.com>
4487 * gdbthread.h (any_running): Remove the declaration.
4488 * thread.c (any_running): Remove.
4490 2014-06-19 Yao Qi <yao@codesourcery.com>
4492 * gdbthread.h (struct thread_info) <state>: Change its type to
4493 'enum thread_state'. Update comments.
4495 2014-06-19 Pedro Alves <palves@redhat.com>
4497 * gdbthread.h (ALL_THREADS): Delete.
4498 (ALL_NON_EXITED_THREADS): New macro.
4499 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4500 instead of ALL_THREADS.
4501 * infrun.c (find_thread_needs_step_over)
4502 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4503 instead of ALL_THREADS.
4504 * record-btrace.c (record_btrace_open)
4505 (record_btrace_stop_recording, record_btrace_close)
4506 (record_btrace_is_replaying, record_btrace_resume)
4507 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4508 * remote.c (append_pending_thread_resumptions): Likewise.
4509 * thread.c (thread_apply_all_command): Likewise.
4511 2014-06-19 Gary Benson <gbenson@redhat.com>
4513 * i386-nat.c (i386_stopped_by_watchpoint):
4514 Use i386_dr_stopped_by_watchpoint.
4515 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4516 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4518 2014-06-19 Gary Benson <gbenson@redhat.com>
4520 * nat/i386-dregs.c: New file.
4521 * Makefile.in (i386-dregs.o): New rule.
4522 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4523 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4524 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4525 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4526 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4527 * config/i386/go32.mh (NATDEPFILES): Likewise.
4528 * config/i386/linux.mh (NATDEPFILES): Likewise.
4529 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4530 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4531 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4532 * i386-nat.h (debug_hw_points): New declaration.
4533 * i386-nat.c (breakpoint.h): Remove include.
4534 (command.h): Likewise.
4535 (target.h): Likewise.
4536 (gdb_assert.h): Likewise.
4537 (debug_hw_points): Made nonstatic.
4538 (debug_printf): Now in i386-dregs.c.
4539 (TARGET_HAS_DR_LEN_8): Likewise.
4540 (DR_CONTROL_SHIFT): Likewise.
4541 (DR_CONTROL_SIZE): Likewise.
4542 (DR_RW_EXECUTE): Likewise.
4543 (DR_RW_WRITE): Likewise.
4544 (DR_RW_READ): Likewise.
4545 (DR_RW_IORW): Likewise.
4546 (DR_LEN_1): Likewise.
4547 (DR_LEN_2): Likewise.
4548 (DR_LEN_4): Likewise.
4549 (DR_LEN_8): Likewise.
4550 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4551 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4552 (DR_ENABLE_SIZE): Likewise.
4553 (DR_LOCAL_SLOWDOWN): Likewise.
4554 (DR_GLOBAL_SLOWDOWN): Likewise.
4555 (DR_CONTROL_RESERVED): Likewise.
4556 (I386_DR_CONTROL_MASK): Likewise.
4557 (I386_DR_VACANT): Likewise.
4558 (I386_DR_LOCAL_ENABLE): Likewise.
4559 (I386_DR_GLOBAL_ENABLE): Likewise.
4560 (I386_DR_DISABLE): Likewise.
4561 (I386_DR_SET_RW_LEN): Likewise.
4562 (I386_DR_GET_RW_LEN): Likewise.
4563 (I386_DR_WATCH_HIT): Likewise.
4564 (i386_wp_op_t): Likewise.
4565 (i386_show_dr): Likewise.
4566 (i386_length_and_rw_bits): Likewise.
4567 (i386_insert_aligned_watchpoint): Likewise.
4568 (i386_remove_aligned_watchpoint): Likewise.
4569 (i386_handle_nonaligned_watchpoint): Likewise.
4570 (i386_update_inferior_debug_regs): Likewise.
4571 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4572 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4573 (i386_region_ok_for_watchpoint):
4574 Use i386_dr_region_ok_for_watchpoint.
4575 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4577 2014-06-19 Gary Benson <gbenson@redhat.com>
4579 * i386-nat.c (i386_insert_hw_breakpoint): Use
4580 i386_insert_watchpoint.
4581 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4583 2014-06-19 Gary Benson <gbenson@redhat.com>
4585 * i386-nat.c (i386_dr_show): Renamed to
4586 i386_show_dr and made static. All uses updated.
4587 (i386_dr_length_and_rw_bits): Renamed to
4588 i386_length_and_rw_bits and made static.
4590 (i386_dr_insert_aligned_watchpoint): Renamed to
4591 i386_insert_aligned_watchpoint and made static.
4593 (i386_dr_remove_aligned_watchpoint): Renamed to
4594 i386_remove_aligned_watchpoint and made static.
4596 (i386_dr_update_inferior_debug_regs): Renamed to
4597 i386_update_inferior_debug_regs and made static.
4599 * nat/i386-dregs.h (i386_dr_show): Removed.
4600 (i386_dr_length_and_rw_bits): Likewise.
4601 (i386_dr_insert_aligned_watchpoint): Likewise.
4602 (i386_dr_remove_aligned_watchpoint): Likewise.
4603 (i386_dr_update_inferior_debug_regs): Likewise.
4605 2014-06-19 Gary Benson <gbenson@redhat.com>
4607 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4608 * configure: Regenerate.
4609 * config.in: Likewise.
4610 * main.c (signal.h): New include.
4611 (setup_alternate_signal_stack): New function.
4612 (captured_main): Call the above.
4613 * cp-support.c (signal.h): New include.
4614 (catch_demangler_crashes): New flag.
4615 (SIGJMP_BUF): New define.
4616 (SIGSETJMP): Likewise.
4617 (SIGLONGJMP): Likewise.
4618 (gdb_demangle_jmp_buf): New static global.
4619 (gdb_demangle_attempt_core_dump): Likewise.
4620 (gdb_demangle_signal_handler): New function.
4621 (gdb_demangle): If catch_demangler_crashes is set, install the
4622 above signal handler before calling bfd_demangle, and restore
4623 the original signal handler afterwards. Display the offending
4624 symbol and call demangler_warning the first time a segmentation
4626 (_initialize_cp_support): New maint set/show command.
4628 2014-06-19 Gary Benson <gbenson@redhat.com>
4630 * utils.h (resource_limit_kind): New enum.
4631 (can_dump_core): New declaration.
4632 (warn_cant_dump_core): Likewise.
4633 (dump_core): Likewise.
4634 * utils.c (dump_core): Made nonstatic. Added new
4635 parameter "limit_kind".
4636 (can_dump_core): Made nonstatic. Moved printing code to...
4637 (warn_cant_dump_core): New function.
4638 (can_dump_core_warn): Likewise.
4639 (internal_vproblem): Replace calls to can_dump_core with
4640 calls to can_dump_core_warn. Supply new argument to each.
4642 2014-06-19 Gary Benson <gbenson@redhat.com>
4644 * utils.h (demangler_vwarning): New declaration.
4645 (demangler_warning): Likewise.
4646 * utils.c (struct internal_problem)
4647 <user_settable_should_quit>: New field.
4648 <user_settable_should_dump_core>: Likewise
4649 (internal_error_problem): Add values for above new fields.
4650 (internal_warning_problem): Likewise.
4651 (demangler_warning_problem): New static global.
4652 (demangler_vwarning): New function.
4653 (demangler_warning): Likewise.
4654 (add_internal_problem_command): Selectively add commands.
4655 (_initialize_utils): New internal problem command.
4656 * maint.c (maintenance_demangler_warning): New function.
4657 (_initialize_maint_cmds): New command.
4659 2014-06-18 Tom Tromey <tromey@redhat.com>
4661 * f-valprint.c (info_common_command_for_block): Update.
4662 * symtab.h (struct general_symbol_info) <common_block>: Now
4665 2014-06-18 Tom Tromey <tromey@redhat.com>
4667 * symtab.h (struct symtab) <blockvector>: Now const.
4668 * ada-lang.c (ada_add_global_exceptions): Update.
4669 * buildsym.c (augment_type_symtab): Update.
4670 * dwarf2read.c (dw2_lookup_symbol): Update.
4671 * jit.c (finalize_symtab): Update.
4672 * jv-lang.c (add_class_symtab_symbol): Update.
4673 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4675 * objfiles.c (objfile_relocate1): Update.
4676 * psymtab.c (lookup_symbol_aux_psymtabs)
4677 (maintenance_check_psymtabs): Update.
4678 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4680 * spu-tdep.c (spu_catch_start): Update.
4681 * symmisc.c (dump_symtab_1): Update.
4682 * symtab.c (lookup_global_symbol_from_objfile)
4683 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4684 (basic_lookup_transparent_type_quick)
4685 (basic_lookup_transparent_type, find_pc_sect_symtab)
4686 (find_pc_sect_line, search_symbols): Update.
4687 * block.c (find_block_in_blockvector): Make "bl" const.
4688 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4690 (blockvector_contains_pc): Make "bv" const.
4691 (block_for_pc_sect): Update.
4692 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4693 (blockvector_contains_pc): Update.
4694 * breakpoint.c (resolve_sal_pc): Update.
4695 * inline-frame.c (block_starting_point_at): Update.
4697 2014-06-18 Tom Tromey <tromey@redhat.com>
4699 * completer.c (complete_line): Make "line_buffer" const.
4700 * completer.h (complete_line): Update.
4702 2014-06-18 Tom Tromey <tromey@redhat.com>
4704 * symtab.c (add_macro_name): Remove unneeded cast.
4706 2014-06-18 Tom Tromey <tromey@redhat.com>
4708 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4709 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4711 2014-06-18 Tom Tromey <tromey@redhat.com>
4713 * probe.c (info_probes_for_ops): Make "arg" const.
4714 * probe.h (info_probes_for_ops): Update.
4716 2014-06-18 Tom Tromey <tromey@redhat.com>
4718 * varobj.c (varobj_create): Update.
4719 * valops.c (value_of_this): Update.
4720 * tracepoint.c (add_local_symbols, scope_info): Update.
4721 * symtab.h (struct general_symbol_info) <block>: Now const.
4722 * symtab.c (skip_prologue_sal)
4723 (default_make_symbol_completion_list_break_on)
4724 (skip_prologue_using_sal): Update.
4725 * stack.h (iterate_over_block_locals)
4726 (iterate_over_block_local_vars): Update.
4727 * stack.c (print_frame_args): Update.
4728 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4730 (get_selected_block): Make return type const.
4731 * python/py-frame.c (frapy_block): Update.
4732 * python/py-block.c (gdbpy_block_for_pc): Update.
4733 * p-exp.y (%union) <bval>: Now const.
4734 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4735 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4736 * m2-exp.y (%union) <bval>: Now const.
4737 * linespec.c (get_current_search_block): Make return type const.
4738 (create_sals_line_offset, find_label_symbols): Update.
4739 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4741 (block_starting_point_at): Make "block" const.
4742 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4743 (check_exception_resume): Update.
4744 * guile/scm-frame.c (gdbscm_frame_block): Update.
4745 * guile/scm-block.c (gdbscm_lookup_block): Update.
4746 * frame.h (get_frame_block): Update.
4747 (get_selected_block): Make return type const.
4748 * frame.c (frame_id_inner): Update.
4749 * f-valprint.c (info_common_command_for_block)
4750 (info_common_command): Update.
4751 * dwarf2loc.c (dwarf2_find_location_expression)
4752 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4753 (locexpr_describe_location_piece): Update.
4754 * c-exp.y (%union) <bval>: Now const.
4755 * breakpoint.c (resolve_sal_pc): Update.
4756 * blockframe.c (get_frame_block):Make return type const.
4757 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4758 (block_innermost_frame): Update.
4759 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4760 (block_for_pc, block_for_pc_sect): Update.
4761 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4763 (block_for_pc_sect, block_for_pc): Make return type const.
4764 * ax-gdb.c (gen_expr): Update.
4765 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4766 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4767 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4768 (ada_read_var_value): Update.
4769 * ada-exp.y (struct name_info) <block>: Now const.
4771 (block_lookup): Constify.
4773 2014-06-18 Gary Benson <gbenson@redhat.com>
4775 * nat/i386-dregs.h: New file.
4776 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4777 * i386-nat.h (i386-dregs.h): New include.
4778 (DR_FIRSTADDR): Now in i386-dregs.h.
4779 (DR_LASTADDR): Likewise.
4780 (DR_NADDR): Likewise.
4781 (DR_STATUS): Likewise.
4782 (DR_CONTROL): Likewise.
4783 (i386_debug_reg_state): Likewise.
4784 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4786 2014-06-18 Don Breazeal <donb@codesourcery.com>
4788 * breakpoint.c (set_longjmp_breakpoint): Call
4789 momentary_breakpoint_from_master with additional argument.
4790 (set_longjmp_breakpoint_for_call_dummy): Call
4791 momentary_breakpoint_from_master with additional argument.
4792 (set_std_terminate_breakpoint): Call
4793 momentary_breakpoint_from_master with additional argument.
4794 (momentary_breakpoint_from_master): Add argument to function
4795 definition and use it to initialize structure member flag.
4796 (clone_momentary_breakpoint): Call
4797 momentary_breakpoint_from_master with additional argument.
4798 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4799 member flags set in momentary_breakpoint_from_master.
4801 2014-06-18 Gary Benson <gbenson@redhat.com>
4803 * i386-nat.c (i386_show_dr): Renamed to
4804 i386_dr_show and made nonstatic. All uses updated.
4805 (i386_length_and_rw_bits): Renamed to
4806 i386_dr_length_and_rw_bits and made nonstatic.
4808 (i386_insert_aligned_watchpoint): Renamed to
4809 i386_dr_insert_aligned_watchpoint and made nonstatic.
4811 (i386_remove_aligned_watchpoint): Renamed to
4812 i386_dr_remove_aligned_watchpoint and made nonstatic.
4814 (i386_update_inferior_debug_regs): Renamed to
4815 i386_dr_update_inferior_debug_regs and made nonstatic.
4818 2014-06-18 Gary Benson <gbenson@redhat.com>
4820 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4821 (i386_dr_low_can_set_control): Likewise.
4822 (i386_dr_low_set_addr): Likewise.
4823 (i386_dr_low_set_control): Likewise.
4824 (i386_dr_low_get_addr): Likewise.
4825 (i386_dr_low_get_status): Likewise.
4826 (i386_dr_low_get_control): Likewise.
4827 (i386_insert_aligned_watchpoint): Use new macros.
4828 (i386_update_inferior_debug_regs): Likewise.
4829 (i386_stopped_data_address): Likewise.
4831 2014-06-18 Gary Benson <gbenson@redhat.com>
4833 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4834 New parameter. All uses updated.
4836 2014-06-18 Gary Benson <gbenson@redhat.com>
4838 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4841 2014-06-18 Gary Benson <gbenson@redhat.com>
4843 * i386-nat.c (debug_printf): New macro.
4844 (i386_get_debug_register_length): Likewise.
4845 (TARGET_HAS_DR_LEN_8): Use above macro.
4846 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4847 and printf_unfiltered. Use phex to format values.
4849 2014-06-18 Gary Benson <gbenson@redhat.com>
4851 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4854 2014-06-18 Gary Benson <gbenson@redhat.com>
4856 * i386-nat.c: Comment changes.
4858 2014-06-18 Gary Benson <gbenson@redhat.com>
4860 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4862 2014-06-18 Gary Benson <gbenson@redhat.com>
4864 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4865 (i386_insert_aligned_watchpoint): Likewise.
4866 (i386_remove_aligned_watchpoint): Likewise.
4867 (i386_handle_nonaligned_watchpoint): Likewise.
4869 2014-06-18 Gary Benson <gbenson@redhat.com>
4871 * i386-nat.c: Whitespace changes.
4873 2014-06-17 Samuel Bronson <naesten@gmail.com>
4875 * MAINTAINERS: Update Roland McGrath's email address.
4876 Thanks to Sergio Durigan Junior for pointing out that he left
4877 Red Hat a while ago, and giving me a current address.
4879 2014-06-17 Tom Tromey <tromey@redhat.com>
4881 * utils.h (savestring): Remove declaration.
4883 2014-06-17 Tom Tromey <tromey@redhat.com>
4885 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4887 2014-06-16 Keith Seitz <keiths@redhat.com>
4890 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4891 to update the varobj if inferior_ptid is null_ptid.
4893 2014-06-16 Tom Tromey <tromey@redhat.com>
4895 * target.h (struct target_ops) <to_info_proc>: Make parameter
4897 (target_info_proc): Update.
4898 * target.c (target_info_proc): Make "args" const.
4899 * procfs.c (procfs_info_proc): Update.
4900 * linux-tdep.c (linux_info_proc): Update.
4901 (linux_core_info_proc_mappings): Make "args" const.
4902 (linux_core_info_proc): Update.
4903 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4904 * gdbarch.c: Rebuild.
4905 * gdbarch.h: Rebuild.
4906 * corelow.c (core_info_proc): Update.
4908 2014-06-16 Tom Tromey <tromey@redhat.com>
4910 * target.h (struct target_ops) <to_disconnect>: Make parameter
4912 (target_disconnect): Update.
4913 * target.c (target_disconnect): Make "args" const.
4914 * target-delegates.c: Rebuild.
4915 * remote.c (remote_disconnect): Update.
4916 * record.h (record_disconnect): Update.
4917 * record.c (record_disconnect): Update.
4918 * inf-child.c (inf_child_disconnect): Update.
4920 2014-06-16 Tom Tromey <tromey@redhat.com>
4922 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4923 * target.c (debug_to_rcmd, default_rcmd): Update.
4924 * target-delegates.c: Rebuild.
4925 * remote.c (remote_rcmd): Update.
4926 * monitor.c (monitor_rcmd): Update.
4928 2014-06-16 Pedro Alves <palves@redhat.com>
4930 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4931 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4932 have OBJF_SHARED set.
4933 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4934 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4935 instead of OBJF_USERLOADED.
4936 * objfiles.h (OBJF_SHARED): Update comment.
4937 (userloaded_objfile_contains_address_p): Rename to ...
4938 (shared_objfile_contains_address_p): ... this, and update
4940 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4942 (remove_symbol_file_command): Skip objfiles that don't have
4945 2014-06-16 Tom Tromey <tromey@redhat.com>
4947 * minsyms.h (prim_record_minimal_symbol)
4948 (prim_record_minimal_symbol_and_info): Update comments.
4950 2014-06-14 Eli Zaretskii <eliz@gnu.org>
4952 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4953 or --without-guile, according to how GDB was built.
4955 2014-06-13 Tom Tromey <tromey@redhat.com>
4957 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4959 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4961 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4963 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4964 help_list.Pass all_commands, not -1, to help_list.
4965 * cli/cli-dump.c (dump_command, append_command)
4966 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4967 (binary_dump_command, binary_append_command): Pass all_commands,
4968 not -1, to help_list.
4969 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4971 * valprint.c (set_print, set_print_raw): Pass all_commands, not
4973 * typeprint.c (set_print_type): Pass all_commands, not -1, to
4975 * top.c (set_history): Pass all_commands, not -1, to help_list.
4976 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4977 all_commands, not -1, to help_list.
4978 * symfile.c (overlay_command): Pass all_commands, not -1, to
4980 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4982 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4984 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4986 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4987 not -1, to help_list.
4988 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4989 not -1, to help_list.
4990 * maint.c (maintenance_command, maintenance_info_command)
4991 (maintenance_print_command, maintenance_set_cmd): Pass
4992 all_commands, not -1, to help_list.
4993 * macrocmd.c (macro_command): Pass all_commands, not -1, to
4995 * language.c (set_check): Pass all_commands, not -1, to help_list.
4996 * infcmd.c (unset_command): Pass all_commands, not -1, to
4998 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5000 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5002 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5004 * breakpoint.c (save_command): Pass all_commands, not -1, to
5006 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5007 all_commands, not -1, to help_list.
5009 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5011 * regcache.c (struct register_to_invalidate): New structure.
5012 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5014 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5016 2014-06-12 Yao Qi <yao@codesourcery.com>
5018 * varobj.c (varobj_get_num_children): Call
5019 varobj_is_dynamic_p.
5020 (varobj_list_children): Likewise.
5021 (varobj_update): Likewise. Update comments.
5023 2014-06-12 Yao Qi <yao@codesourcery.com>
5025 * varobj.c (varobj_pretty_printed_p): Rename to ...
5026 (varobj_is_dynamic_p): ... this. New function.
5027 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5028 (varobj_is_dynamic_p): Declare.
5029 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5030 (mi_print_value_p, varobj_update_one): Likewise.
5032 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5033 Yao Qi <yao@codesourcery.com>
5035 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5036 (varobj_get_iterator): Wrap up code for pretty-printer by
5037 "#if HAVE_PYTHON" and "#endif".
5038 (update_dynamic_varobj_children): Likewise.
5040 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5041 Yao Qi <yao@codesourcery.com>
5043 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5044 gdb_python_initialized is false. Move some code from varobj.c.
5045 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5046 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5047 (struct varobj_item): Moved to varobj-iter.h".
5048 (varobj_clear_saved_item): New function.
5049 (update_dynamic_varobj_children): Move python-related code to
5051 (free_variable): Call varobj_clear_saved_item and
5054 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5055 Yao Qi <yao@codesourcery.com>
5057 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5058 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5059 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5060 (py-varobj.o): New rule.
5061 * python/py-varobj.c: New file.
5062 * python/python-internal.h (py_varobj_get_iterator): Declare.
5063 * varobj-iter.h: New file.
5064 * varobj.c: Include "varobj-iter.h"
5065 (struct varobj) <child_iter>: Change its type from "PyObject *"
5066 to "struct varobj_iter *".
5067 <saved_item>: Likewise.
5068 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5069 [HAVE_PYTHON] (varobj_get_iterator): New function.
5070 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5071 python-specific code to python/py-varobj.c.
5072 (install_visualizer): Call varobj_iter_delete instead of
5074 * varobj.h (varobj_ensure_python_env): Declare.
5076 2014-06-12 Yao Qi <yao@codesourcery.com>
5078 * varobj.c (struct varobj_item): New structure.
5079 (create_child_with_value): Update declaration.
5080 (varobj_add_child): Replace arguments 'name' and 'value' with
5081 'item'. All callers updated.
5082 (install_dynamic_child): Likewise.
5083 (update_dynamic_varobj_children): Likewise.
5084 (varobj_add_child): Likewise.
5085 (create_child_with_value): Likewise.
5087 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5089 * NEWS: Create a new section for the next release branch.
5090 Rename the section of the current branch, now that it has
5093 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5095 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5096 * version.in: Bump version to 7.8.50.DATE-cvs.
5098 2014-06-11 Pedro Alves <palves@redhat.com>
5101 * ser-mingw.c (net_windows_socket_check_pending): New function.
5102 (net_windows_select_thread): Ignore spurious wakeups. Use
5103 net_windows_socket_check_pending.
5104 (net_windows_wait_handle): Check for pending events with
5105 ioctlsocket, through net_windows_socket_check_pending, instead of
5106 checking the socket's event.
5108 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5110 * python/python-internal.h (gdb_PyObject_GetAttrString)
5111 (gdb_PyObject_HasAttrString): New inline function definitions.
5112 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5113 char * of the second argument to PyObject_GetAttrString.
5115 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5117 * serial.c (serial_write): Fix index of character to be printed
5118 in call to serial_logchar when serial debug traces are enabled.
5120 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5122 * gdbtypes (resolve_dynamic_range): Add function description.
5124 2014-06-09 Pedro Alves <palves@redhat.com>
5126 * linux-nat.c (linux_child_follow_fork): Initialize status with
5127 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5128 inner block. Only pass the signal to PTRACE_DETACH if in pass
5131 2014-06-09 Gary Benson <gbenson@redhat.com>
5133 * common/signals.c (gdb_signal_from_host): Reorder to separate
5134 the always-available ANSI-standard signals from the signals that
5136 (do_gdb_signal_to_host): Likewise.
5137 * proc-events.c (signal_table): Likewise.
5139 2014-06-08 Hui Zhu <hui@codesourcery.com>
5141 * common/linux-ptrace.c (linux_disable_event_reporting): New
5143 * common/linux-ptrace.h (linux_disable_event_reporting): New
5145 * linux-nat.c (linux_child_follow_fork): Do a single step before
5148 2014-06-07 Keith Seitz <keiths@redhat.com>
5152 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5153 from symbol_matches_domain in symtab.c. All local callers
5154 of symbol_matches_domain updated.
5155 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5156 search STRUCT_DOMAIN.
5157 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5158 independently. standard_lookup will do that automatically.
5159 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5160 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5161 (cp_lookup_symbol_in_namespace): Likewise.
5162 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5163 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5164 may return a STRUCT_DOMAIN match.
5165 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5166 * cp-support.c: Include language.h.
5167 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5169 * psymtab.c (match_partial_symbol): Compare the requested
5170 domain with the symbol's domain directly.
5171 (lookup_partial_symbol): Likewise.
5172 * symtab.c (lookup_symbol_in_language): Explain when/why
5173 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5174 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5175 appropriate languages.
5176 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5177 and moved to ada-lang.c
5178 (lookup_block_symbol): Explain that this function only returns
5179 symbol matching the requested DOMAIN.
5180 Compare the requested domain with the symbol's domain directly.
5181 (iterate_over_symbols): Compare the requested domain with the
5182 symbol's domain directly.
5183 * symtab.h (symbol_matches_domain): Remove.
5185 2014-06-06 Doug Evans <xdje42@gmail.com>
5187 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5188 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5189 (gdbscm_guile_version_is_at_least): Declare.
5190 (gdbscm_scm_string_to_int): Declare.
5191 * guile/guile.c (gdbscm_guile_major_version): New global.
5192 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5193 (guile_datadir): New static global.
5194 (gdbscm_guile_data_directory): New function.
5195 (initialize_scheme_side): Update.
5196 (misc_guile_functions): Add guile-data-directory.
5197 (initialize_gdb_module): Fetch guile version number.
5198 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5199 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5200 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5201 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5203 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5204 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5205 * guile/scm-value.c (gdbscm_value_to_string): Only call
5206 scm_port_conversion_strategy if Guile version >= 2.0.6.
5208 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5210 * main.c (print_gdb_help): Add -q and --silent.
5212 2014-06-06 Gary Benson <gbenson@redhat.com>
5214 * common/signals.c: Remove preprocessor conditionals for
5215 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5216 SIGSEGV and SIGTERM.
5217 * proc-events.c: Likewise.
5219 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5221 * symfile.c (symfile_free_objfile): Remove restriction to
5223 * symfile-mem.c (symbol_file_add_from_memory): Call
5224 add_target_sections_of_objfile.
5226 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5228 * guile/scm-value.c (gdbscm_history_append_x): Use
5229 'vlscm_get_value_smob_arg_unsafe' instead of
5230 'vlscm_scm_to_value'.
5232 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5235 * utils.c (printchar): Don't escape at all if quoter is NUL.
5236 Update function documentation to clarify effect of parameter
5238 * remote.c (escape_buffer): Pass '\\' as the quoter to
5239 fputstrn_unfiltered.
5240 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5241 generate the output.
5242 (mi_solib_unloaded): Same.
5244 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5246 * development.sh: Delete.
5247 * Makefile.in (config.status): Adjust dependency on development.sh.
5248 * configure.ac: Adjust development.sh source call.
5249 * configure: Regenerate.
5251 2014-06-04 Doug Evans <xdje42@gmail.com>
5253 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5254 is_scheme_bkpt, spec.
5255 (bpscm_make_breakpoint_smob): Initialize new members.
5256 (gdbscm_create_breakpoint_x): Split into two ...
5257 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5258 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5259 (scheme_function breakpoint_functions): Update.
5260 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5261 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5262 register-breakpoint!.
5264 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5267 * mem-break.c (z_type_supported): Return zero if
5268 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5270 2014-06-04 Tom Tromey <tromey@redhat.com>
5272 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5273 value_from_contents_and_address_unresolved.
5274 (ada_template_to_fixed_record_type_1): Likewise.
5275 (ada_which_variant_applies): Likewise.
5276 * value.h (value_from_contents_and_address_unresolved): Declare.
5277 * value.c (value_from_contents_and_address_unresolved): New
5279 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5280 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5281 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5283 2014-06-04 Tom Tromey <tromey@redhat.com>
5285 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5287 2014-06-04 Tom Tromey <tromey@redhat.com>
5289 * procfs.c (procfs_attach): Make "args" const.
5290 * windows-nat.c (windows_attach): Make "args" const.
5291 * nto-procfs.c (procfs_attach): Make "args" const.
5292 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5293 * go32-nat.c (go32_attach): Make "args" const.
5294 * gnu-nat.c (gnu_attach): Make "args" const.
5295 * darwin-nat.c (darwin_attach): Make "args" const.
5296 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5297 * linux-nat.c (linux_nat_attach): Make "args" const.
5298 * remote.c (extended_remote_attach_1, extended_remote_attach):
5300 * target.h (struct target_ops) <to_attach>: Make "args" const.
5301 (find_default_attach): Likewise.
5302 * utils.c (parse_pid_to_attach): Make "args" const.
5303 * utils.h (parse_pid_to_attach): Update.
5305 2014-06-04 Tom Tromey <tromey@redhat.com>
5307 * target-delegates.c: Rebuild.
5308 * target.c (default_thread_address_space): New function.
5309 (target_thread_address_space): Simplify.
5310 * target.h (struct target_ops) <to_thread_address_space>: Add
5311 TARGET_DEFAULT_FUNC.
5313 2014-06-04 Doug Evans <xdje42@gmail.com>
5315 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5317 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5319 * record-btrace.c: Include event-loop.h and inf-loop.h.
5320 (record_btrace_resume_exec_dir)
5321 (record_btrace_async_inferior_event_handler)
5322 (record_btrace_handle_async_inferior_event): New.
5323 (record_btrace_open): Create async event handler.
5324 (record_btrace_close): Delete async event handler.
5325 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5326 Mark async event handler.
5327 (record_btrace_execution_direction): New.
5328 (init_record_btrace_ops): Initialize to_execution_direction.
5330 2014-06-03 Doug Evans <xdje42@gmail.com>
5332 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5333 (gdbscm_make_parameter): Ditto.
5335 2014-06-03 Doug Evans <dje@google.com>
5337 * exec.c (exec_close_1): Call clear_section_table instead of
5338 resize_section_table.
5339 (clear_section_table): New function.
5340 (resize_section_table): Make static. Rename arg num_added to
5342 * exec.h (clear_section_table): Declare.
5343 (resize_section_table): Delete.
5344 * progspace.c (release_program_space): Call clear_section_table
5345 instead of resize_section_table.
5347 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5349 * NEWS (Python Scripting): Add entry about the new xmethods
5352 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5354 * python/py-xmethods.c: New file.
5355 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5356 (objfpy_dealloc): XDECREF on the new xmethods field.
5357 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5359 (objfpy_get_xmethods): New function.
5360 (objfile_getset): New entry 'xmethods'.
5361 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5362 (pspy_dealloc): XDECREF on the new xmethods field.
5363 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5365 (pspy_get_xmethods): New function.
5366 (pspace_getset): New entry 'xmethods'.
5367 * python/python-internal.h: Add declarations for new functions.
5368 * python/python.c (_initialize_python): Invoke
5369 gdbpy_initialize_xmethods.
5370 * python/lib/gdb/__init__.py (xmethods): New
5372 * python/lib/gdb/xmethod.py: New file.
5373 * python/lib/gdb/command/xmethods.py: New file.
5375 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5377 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5378 best match method returned by find_overload_match is an xmethod.
5379 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5380 the best matching operator returned by find_overload_match is an
5382 * valops.c: #include "extension.h".
5383 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5384 Return void. The list of matching source methods is returned in
5385 "fn_list" and a vector of matching debug method workers is
5386 returned in "xm_worker_vec". Update all callers.
5387 (value_find_oload_method_list): Likewise.
5388 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5389 non-NULL, then the index of the best matching method in this
5390 vector is returned. Update all callers.
5391 (find_overload_match): Include xmethods while performing overload
5394 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5396 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5397 * extension-priv.h (struct extension_language_ops): Add the
5399 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5400 get_matching_xmethod_workers, get_xmethod_argtypes,
5401 invoke_xmethod, free_xmethod_worker,
5402 free_xmethod_worker_vec): New functions.
5403 * extension.h: #include "common/vec.h".
5404 New function declarations.
5405 (struct xmethod_worker): New struct.
5406 (VEC (xmethod_worker_ptr)): New vector type.
5407 (xmethod_worker_ptr): New typedef.
5408 (xmethod_worker_vec): Likewise.
5409 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5411 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5412 (struct builtin_type): New field "xmethod".
5413 * valarith.c (value_ptradd): Assert that the value argument is not
5415 * valops.c (value_must_coerce_to_target): Return 0 for
5416 lval_xcallable values.
5417 * value.c (struct value): New field XM_WORKER in the field
5419 (value_address, value_raw_address): Return 0 for lval_xcallable
5421 (set_value_address): Assert that the value is not an
5423 (value_free): Free the associated xmethod worker when freeing
5424 lval_xcallable values.
5425 (set_value_component_location): Assert that the WHOLE value is not
5427 (value_of_xmethod, call_xmethod): New functions.
5428 * value.h: Declare "struct xmethod_worker".
5429 Declare new functions value_of_xmethod, call_xmethod.
5431 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5432 Pedro Alves <palves@redhat.com>
5434 PR breakpoints/17000
5435 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5436 New function, extracted from software_breakpoint_inserted_here_p.
5437 (software_breakpoint_inserted_here_p): Replace factored out code
5438 by call to find_non_raw_software_breakpoint_inserted_here.
5439 (bp_target_info_copy_insertion_state): New function.
5440 (bkpt_insert_location): Handle the case of a single-step
5441 breakpoint already inserted at the same address.
5442 (bkpt_remove_location): Handle the case of a single-step
5443 breakpoint still inserted at the same address.
5444 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5445 breakpoint already inserted at the same address.
5446 (deprecated_remove_raw_breakpoint): Handle the case of a
5447 non-raw breakpoint still inserted at the same address.
5448 (find_single_step_breakpoint): New function, extracted from
5449 single_step_breakpoint_inserted_here_p.
5450 (find_single_step_breakpoint): New function,
5451 factored out from single_step_breakpoint_inserted_here_p.
5452 (single_step_breakpoint_inserted_here_p): Reimplement.
5454 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5456 Pushed by Joel Brobecker <brobecker@adacore.com>
5457 * source.c (show_substitute_path_command): Fix display of matching
5460 2014-06-03 Gary Benson <gbenson@redhat.com>
5462 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5464 2014-06-02 Doug Evans <xdje42@gmail.com>
5466 Add parameter support for Guile.
5467 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5468 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5469 (scm-param.o): New rule.
5470 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5471 (gdbscm_misc_error): Declare.
5472 (gdbscm_canonicalize_command_name): Declare.
5473 (gdbscm_scm_to_host_string): Declare.
5474 (gdbscm_scm_from_host_string): Declare.
5475 (gdbscm_initialize_parameters): Declare.
5476 * guile/guile.c (initialize_gdb_module): Call
5477 gdbscm_initialize_parameters.
5478 * guile/lib/gdb.scm: Export parameter symbols.
5479 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5480 cmdscm_canonicalize_name and made public. All callers updated.
5481 * guile/scm-exception.c (gdbscm_misc_error): New function.
5482 * guile/scm-param.c: New file.
5483 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5484 (gdbscm_scm_to_host_string): New function.
5485 (gdbscm_scm_from_host_string): New function.
5486 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5488 2014-06-02 Doug Evans <xdje42@gmail.com>
5490 Add command support for Guile.
5491 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5492 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5493 (scm-cmd.o): New rule.
5494 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5495 (gdbscm_user_error_p): Declare.
5496 (gdbscm_parse_command_name): Declare.
5497 (gdbscm_valid_command_class_p): Declare.
5498 (gdbscm_initialize_commands): Declare.
5499 * guile/guile.c (initialize_gdb_module): Call
5500 gdbscm_initialize_commands.
5501 * guile/lib/gdb.scm: Export command symbols.
5502 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5503 (throw-user-error): New function.
5504 * guile/scm-cmd.c: New file.
5505 * guile/scm-exception.c (user_error_symbol): New static global.
5506 (gdbscm_user_error_p): New function.
5507 (gdbscm_initialize_exceptions): Set user_error_symbol.
5508 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5510 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5512 * top.c (command_loop): Handle comments here...
5513 (command_line_input): ... not here.
5515 2014-06-02 Doug Evans <xdje42@gmail.com>
5517 Add progspace support for Guile.
5518 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5519 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5520 (scm-progspace.o): New rule.
5521 * guile/guile-internal.h (pspace_smob): New typedef.
5522 (psscm_pspace_smob_pretty_printers): Declare.
5523 (psscm_pspace_smob_from_pspace): Declare.
5524 (psscm_scm_from_pspace): Declare.
5525 * guile/guile.c (initialize_gdb_module): Call
5526 gdbscm_initialize_pspaces.
5527 * guile/lib/gdb.scm: Export progspace symbols.
5528 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5530 (append-pretty-printer!): Ditto.
5531 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5533 * guile/scm-progspace.c: New file.
5535 2014-06-03 Alan Modra <amodra@gmail.com>
5537 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5538 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5540 2014-06-02 Doug Evans <dje@google.com>
5542 Add support for skeletonless type units.
5543 * dwarf2read.c (struct dwarf2_per_objfile): New member
5544 n_allocated_type_units.
5545 (struct dwarf2_per_objfile) <tu_stats>: New member
5546 nr_all_type_units_reallocs.
5547 (create_signatured_type_table_from_index): Initialize
5548 n_allocated_type_units
5549 (create_all_type_units): Ditto.
5550 (add_type_unit): Move up in file. New arg slot.
5551 All callers updated. Increase space for all_type_units more
5553 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5554 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5555 (lookup_dwp_signatured_type): Ditto.
5556 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5557 All callers updated.
5558 (build_type_psymtabs_1): Leave type_unit_groups as
5559 NULL if no TUs present.
5560 (print_tu_stats): New function.
5561 (process_skeletonless_type_unit): New function.
5562 (process_dwo_file_for_skeletonless_type_units): New
5564 (process_skeletonless_type_units): New function.
5565 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5566 Call print tu_stats if debugging enabled.
5568 2014-06-02 Pedro Alves <palves@redhat.com>
5570 * breakpoint.c (build_target_command_list): Don't build a command
5571 list if we have any duplicate location that isn't a dprintf.
5573 2014-06-02 Pedro Alves <palves@redhat.com>
5575 * breakpoint.c (dprintf_breakpoint_hit): New function.
5576 (initialize_breakpoint_ops): Install it as dprintf's
5577 breakpoint_hit method.
5579 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5581 * source.c (substitute_path_rule_matches): Simplify using
5582 filename_ncmp instead of FILENAME_CMP.
5584 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5586 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5588 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5590 * configure.ac: When Guile is available, check for the
5591 availability of 'scm_new_smob'.
5592 * configure, config.h.in: Regenerate.
5593 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5596 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5598 * frame.c (struct frame_info): Add stop_string field.
5599 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5600 (get_prev_frame_always): Old content moved into
5601 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5602 TRY_CATCH, handle MEMORY_ERROR exceptions.
5603 (frame_stop_reason_string): New function definition.
5604 * frame.h (unwind_stop_reason_to_string): Extend comment to
5605 mention frame_stop_reason_string.
5606 (frame_stop_reason_string): New function declaration.
5607 * stack.c (frame_info): Switch to frame_stop_reason_string.
5608 (backtrace_command_1): Switch to frame_stop_reason_string.
5609 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5610 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5611 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5613 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5615 * frame.c (frame_stop_reason_string): Rename to ...
5616 (unwind_stop_reason_to_string): this.
5617 * frame.h (frame_stop_reason_string): Rename to ...
5618 (unwind_stop_reason_to_string): this.
5619 * stack.c (frame_info): Update call to frame_stop_reason_string.
5620 (backtrace_command_1): Likewise.
5621 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5622 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5624 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5626 * frame.c (remove_prev_frame): New function.
5627 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5630 2014-05-29 Pedro Alves <palves@redhat.com>
5632 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5633 and make it const. When a single-step decays to a continue,
5634 clear 'step', not 'hw_step'. Pass whether the caller wanted
5635 to step to user_visible_resume_ptid, not what we ask the
5638 2014-05-29 Pedro Alves <palves@redhat.com>
5640 * infrun.c (process_event_stop_test, handle_step_into_function)
5641 (handle_step_into_function_backward): Adjust.
5642 Don't set the even thread's stop_step and call stop_waiting before
5643 calling end_stepping_range. Instead do that ...
5644 (end_stepping_range): ... here. Take an ecs pointer parameter.
5646 2014-05-29 Pedro Alves <palves@redhat.com>
5648 * infrun.c (stop_stepping): Rename to ...
5649 (stop_waiting): ... this.
5650 (proceed): Update comment.
5651 (process_event_stop_test, handle_inferior_event)
5652 (handle_signal_stop, handle_step_into_function)
5653 (handle_step_into_function_backward): Update.
5655 2014-05-29 Pedro Alves <palves@redhat.com>
5657 * infcall.c (run_inferior_call): Don't check whether the current
5658 thread is running after the proceed call.
5660 2014-05-29 Pedro Alves <palves@redhat.com>
5661 Tom Tromey <tromey@redhat.com>
5663 * NEWS: Mention "maint set target-async", "set mi-async", and that
5664 background execution commands are now always available.
5665 * target.h (target_async_permitted): Update comment.
5666 * target.c (target_async_permitted, target_async_permitted_1):
5668 (set_target_async_command): Rename to ...
5669 (maint_set_target_async_command): ... this.
5670 (show_target_async_command): Rename to ...
5671 (maint_show_target_async_command): ... this.
5672 (_initialize_target): Adjust.
5673 * infcmd.c (prepare_execution_command): Make extern.
5674 * inferior.h (prepare_execution_command): Declare.
5675 * infrun.c (set_observer_mode): Leave target async alone.
5676 * mi/mi-interp.c (mi_interpreter_init): Install
5677 mi_on_sync_execution_done as sync_execution_done observer.
5678 (mi_on_sync_execution_done): New function.
5679 (mi_execute_command_input_handler): Don't print the prompt if we
5680 just started a synchronous command with an async target.
5681 (mi_on_resume): Check sync_execution before printing prompt.
5682 * mi/mi-main.h (mi_async_p): Declare.
5683 * mi/mi-main.c: Include gdbcmd.h.
5684 (mi_async_p): New function.
5685 (mi_async, mi_async_1): New globals.
5686 (set_mi_async_command, show_mi_async_command, mi_async): New
5688 (exec_continue): Call prepare_execution_command.
5689 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5690 (mi_execute_async_cli_command): Use mi_async_p.
5691 (_initialize_mi_main): Install "set mi-async". Make
5692 "target-async" a deprecated alias.
5694 2014-05-29 Pedro Alves <palves@redhat.com>
5696 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5697 (_initialize_cli_interp): Adjust.
5698 * event-loop.c: Include "observer.h".
5699 (start_event_loop): Notify 'command_error' observers instead of
5700 calling display_gdb_prompt. Remove FIXME comment.
5701 * event-top.c (display_gdb_prompt): Remove call into the
5703 * inf-loop.c: Include "observer.h".
5704 (inferior_event_handler): Notify 'command_error' observers instead
5705 of calling display_gdb_prompt.
5706 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5707 observers instead of calling display_gdb_prompt.
5708 * interps.c (interp_set): Don't call display_gdb_prompt.
5709 (current_interp_display_prompt_p): Delete.
5710 * interps.h (interp_prompt_p): Delete declaration.
5711 (interp_prompt_p_ftype): Delete.
5712 (struct interp_procs) <prompt_proc_p>: Delete field.
5713 (current_interp_display_prompt_p): Delete declaration.
5714 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5715 (_initialize_mi_interp): Adjust.
5716 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5717 'command_error' observers.
5718 (tui_on_sync_execution_done, tui_on_command_error): New
5720 (tui_display_prompt_p): Delete.
5721 (_initialize_tui_interp): Adjust.
5723 2014-05-29 Pedro Alves <palves@redhat.com>
5726 * cli/cli-interp.c: Include infrun.h and observer.h.
5727 (cli_uiout, cli_interp): New globals.
5728 (cli_on_signal_received, cli_on_end_stepping_range)
5729 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5731 (cli_interpreter_init): Install them as 'end_stepping_range',
5732 'signal_received' 'signal_exited', 'exited' and 'no_history'
5734 (_initialize_cli_interp): Remove cli_interp local.
5735 * infrun.c (handle_inferior_event): Call the several stop reason
5736 observers instead of printing the stop reason directly.
5737 (end_stepping_range): New function.
5738 (print_end_stepping_range_reason, print_signal_exited_reason)
5739 (print_exited_reason, print_signal_received_reason)
5740 (print_no_history_reason): Make static, and add an uiout
5741 parameter. Print to that instead of to CURRENT_UIOUT.
5742 * infrun.h (print_end_stepping_range_reason)
5743 (print_signal_exited_reason, print_exited_reason)
5744 (print_signal_received_reason print_no_history_reason): New
5746 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5748 <cli_uiout>: New field.
5749 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5750 uiout for CLI output. Install 'signal_received',
5751 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5753 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5754 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5755 (mi_on_no_history): New functions.
5756 (ui_out_free_cleanup): Delete function.
5757 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5758 instead use the one already stored in the MI interpreter data.
5759 (mi_ui_out): Adjust.
5760 * tui/tui-interp.c: Include infrun.h and observer.h.
5761 (tui_interp): New global.
5762 (tui_on_signal_received, tui_on_end_stepping_range)
5763 (tui_on_signal_exited, tui_on_exited)
5764 (tui_on_no_history): New functions.
5765 (tui_init): Install them as 'end_stepping_range',
5766 'signal_received' 'signal_exited', 'exited' and 'no_history'
5768 (_initialize_tui_interp): Delete tui_interp local.
5770 2014-05-29 Pedro Alves <palves@redhat.com>
5773 * linux-nat.c (linux_nat_resume_callback): Rename the second
5774 parameter to 'except'. Skip LP if it points to EXCEPT.
5775 (linux_nat_resume): Don't mark the event lwp as not stopped
5776 before resuming sibling lwps. Instead ask
5777 linux_nat_resume_callback to skip the event lwp. Mark it as not
5778 stopped after actually resuming it.
5779 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5781 (wait_lwp): Mark the lwp as stopped here.
5782 (stop_wait_callback): Mark the lwp as not stopped right after
5783 resuming it. Don't mark lwps as stopped here.
5784 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5785 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5787 2014-05-29 Pedro Alves <palves@redhat.com>
5790 * infrun.c (resume): Determine how much to resume depending on
5791 whether the caller wanted a step, not whether we can hardware step
5792 the target. Mark all threads that we intend to run as running,
5793 unless we're calling an inferior function.
5794 (normal_stop): If the thread is running an infcall, don't finish
5796 * target.c (target_resume): Don't mark threads as running here.
5798 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5800 * serial.c (_initialize_serial): Remove support for
5801 the "set remotebaud" and "show remotebaud" commands.
5802 * NEWS: Add entry documenting the removal of that command.
5804 2014-05-28 Yao Qi <yao@codesourcery.com>
5806 * charset.c: Fix typo in comments.
5808 2014-05-27 Gary Benson <gbenson@redhat.com>
5810 * utils.c (internal_vproblem): Prompt for a bug report.
5812 2014-05-26 Andy Wingo <wingo@igalia.com>
5814 * guile/scm-arch.c (arscm_mark_arch_smob):
5815 * guile/scm-block.c (bkscm_mark_block_smob)
5816 (bkscm_mark_block_syms_progress_smob):
5817 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5818 * guile/scm-exception.c (exscm_mark_exception_smob):
5819 * guile/scm-frame.c (frscm_mark_frame_smob):
5820 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5821 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5822 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5823 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5824 (ppscm_mark_pretty_printer_worker_smob):
5825 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5826 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5827 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5828 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5830 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5833 2014-05-26 Andy Wingo <wingo@igalia.com>
5834 Doug Evans <xdje42@gmail.com>
5836 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5837 empty_base_class. All uses updated.
5838 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5839 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5841 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5842 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5843 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5844 (gdbscm_gsmob_has_property_p, add_property_name)
5845 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5846 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5847 (gdb-object-has-property?, gdb-object-properties): Remove.
5848 (gdb-object-kind): Renamed from gsmob-kind.
5850 2014-05-26 Andy Wingo <wingo@igalia.com>
5852 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5853 * configure: Regenerate.
5855 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5857 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5859 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5861 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5862 (replay_memory_access_read_only, replay_memory_access_read_write)
5863 (replay_memory_access_types, replay_memory_access)
5864 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5865 (cmd_set_record_btrace, cmd_show_record_btrace)
5866 (cmd_show_replay_memory_access): New.
5867 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5868 (record_btrace_remove_breakpoint): Replace
5869 record_btrace_allow_memory_access with replay_memory_access.
5870 (_initialize_record_btrace): Add commands.
5871 * NEWS: Announce it.
5873 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5875 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5877 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5879 * MAINTAINERS (Write After Approval): Move self back from
5882 2014-05-22 Pedro Alves <palves@redhat.com>
5884 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5885 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5886 (disable_randomization, enum exec_direction_kind)
5887 (execution_direction, stop_registers, start_remote)
5888 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5889 (wait_for_inferior, normal_stop, get_last_target_status)
5890 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5891 (insert_step_resume_breakpoint_at_sal)
5892 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5893 (set_step_info, print_stop_event, signal_stop_state)
5894 (signal_print_state, signal_pass_state, signal_stop_update)
5895 (signal_print_update, signal_pass_update)
5896 (update_signals_program_target, clear_exit_convenience_vars)
5897 (displaced_step_dump_bytes, update_observer_mode)
5898 (signal_catch_update, gdb_signal_from_command): Move
5900 * infrun.h: ... to this new file.
5901 * amd64-tdep.c: Include infrun.h.
5902 * annotate.c: Include infrun.h.
5903 * arch-utils.c: Include infrun.h.
5904 * arm-linux-tdep.c: Include infrun.h.
5905 * arm-tdep.c: Include infrun.h.
5906 * break-catch-sig.c: Include infrun.h.
5907 * breakpoint.c: Include infrun.h.
5908 * common/agent.c: Include infrun.h instead of inferior.h.
5909 * corelow.c: Include infrun.h.
5910 * event-top.c: Include infrun.h.
5911 * go32-nat.c: Include infrun.h.
5912 * i386-tdep.c: Include infrun.h.
5913 * inf-loop.c: Include infrun.h.
5914 * infcall.c: Include infrun.h.
5915 * infcmd.c: Include infrun.h.
5916 * infrun.c: Include infrun.h.
5917 * linux-fork.c: Include infrun.h.
5918 * linux-nat.c: Include infrun.h.
5919 * linux-thread-db.c: Include infrun.h.
5920 * monitor.c: Include infrun.h.
5921 * nto-tdep.c: Include infrun.h.
5922 * procfs.c: Include infrun.h.
5923 * record-btrace.c: Include infrun.h.
5924 * record-full.c: Include infrun.h.
5925 * remote-m32r-sdi.c: Include infrun.h.
5926 * remote-mips.c: Include infrun.h.
5927 * remote-notif.c: Include infrun.h.
5928 * remote-sim.c: Include infrun.h.
5929 * remote.c: Include infrun.h.
5930 * reverse.c: Include infrun.h.
5931 * rs6000-tdep.c: Include infrun.h.
5932 * s390-linux-tdep.c: Include infrun.h.
5933 * solib-irix.c: Include infrun.h.
5934 * solib-osf.c: Include infrun.h.
5935 * solib-svr4.c: Include infrun.h.
5936 * target.c: Include infrun.h.
5937 * top.c: Include infrun.h.
5938 * windows-nat.c: Include infrun.h.
5939 * mi/mi-interp.c: Include infrun.h.
5940 * mi/mi-main.c: Include infrun.h.
5941 * python/py-threadevent.c: Include infrun.h.
5943 2014-05-22 Pedro Alves <palves@redhat.com>
5945 * infrun.c (handle_inferior_event): Store the exit code for
5946 --return-child-result here, instead of ...
5947 (print_exited_reason): ... here.
5949 2014-05-21 Pedro Alves <palves@redhat.com>
5952 * gdbthread.h (struct thread_control_state): New field
5954 * infrun.c (follow_fork): Copy the new thread control field to the
5956 (clear_proceed_status_thread): Clear the new thread control field.
5957 (proceed): Set the new thread control field.
5958 * interps.h (command_interp): Declare.
5959 * interps.c (command_interpreter): New global.
5960 (command_interp): New function.
5961 (interp_exec): Set `command_interpreter' while here.
5962 * cli-out.c (cli_uiout_dtor): New function.
5963 (cli_ui_out_impl): Install it.
5964 * mi/mi-interp.c: Include cli-out.h.
5965 (mi_cmd_interpreter_exec): Add comment.
5966 (restore_current_uiout_cleanup): New function.
5967 (ui_out_free_cleanup): New function.
5968 (mi_on_normal_stop): If finishing an execution command started by
5969 a CLI command, or any kind of breakpoint-like event triggered,
5970 print the stop event to the output (CLI) stream.
5971 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5973 2014-05-21 Pedro Alves <palves@redhat.com>
5975 * cli/cli-cmds.c (list_command): Handle the first "list" after the
5976 current source line having changed.
5977 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5978 * infrun.c (normal_stop): Adjust call to
5979 set_current_sal_from_frame.
5980 * source.c (clear_lines_listed_range): New function.
5981 (set_current_source_symtab_and_line, identify_source_line): Clear
5982 the lines listed range.
5983 (line_info): Handle the first "info line" after the current source
5984 line having changed.
5985 * stack.c (print_stack_frame): Remove center handling.
5986 (set_current_sal_from_frame): Remove 'center' parameter. Don't
5989 2014-05-21 Pedro Alves <palves@redhat.com>
5991 * inf-child.c (inf_child_mourn_inferior): New function.
5992 * inf-child.h (inf_child_mourn_inferior): New declaration.
5993 * darwin-nat.c (darwin_mourn_inferior): Use
5994 inf_child_mourn_inferior.
5995 * gnu-nat.c (gnu_mourn_inferior): Likewise.
5996 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5997 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5998 * nto-procfs.c (procfs_mourn_inferior): Likewise.
5999 * windows-nat.c (windows_mourn_inferior): Likewise.
6001 2014-05-21 Doug Evans <xdje42@gmail.com>
6003 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6005 2014-05-21 Doug Evans <xdje42@gmail.com>
6007 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6008 (gdbscm_out_of_range_error): Ditto.
6009 (gdbscm_memory_error): Ditto.
6010 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6011 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6012 (gdbscm_out_of_range_error): Update.
6013 (gdbscm_memory_error): Update.
6014 (gdbscm_scm_to_target_string_unsafe): Delete.
6016 2014-05-21 Pedro Alves <palves@redhat.com>
6018 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6020 (inf_child_open_target): New function.
6021 (inf_child_open): Use inf_child_open_target to push the target
6022 instead of erroring out.
6023 (inf_child_disconnect, inf_child_close)
6024 (inf_child_maybe_unpush_target): New functions.
6025 (inf_child_target): Install inf_child_disconnect and
6026 inf_child_close. Store a pointer to the returned object.
6027 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6029 * target.c (auto_connect_native_target): New global.
6030 (show_default_run_target): New function.
6031 (find_default_run_target): Return NULL if automatically connecting
6032 to the native target is disabled.
6033 (_initialize_target): Install set/show auto-connect-native-target.
6034 * NEWS: Mention "set auto-connect-native-target", and "target
6036 * linux-nat.c (super_close): New global.
6037 (linux_nat_close): Call super_close.
6038 (linux_nat_add_target): Store a pointer to the base class's
6040 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6041 inf_child_maybe_unpush.
6042 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6044 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6045 the inferior. Use inf_child_maybe_unpush_target.
6046 (inf_ttrace_attach): Don't push the target if it is already
6048 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6049 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6050 after mourning the inferior. Use inf_child_maybe_unpush_target.
6051 (darwin_attach_pid): Don't push the target if it is already
6053 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6054 mourning the inferior. Use inf_child_maybe_unpush_target.
6055 (gnu_detach): Use inf_child_maybe_unpush_target.
6056 * go32-nat.c (go32_create_inferior): Don't push the target if it
6058 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6059 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6060 (procfs_open): Rename to ...
6061 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6062 comments. Can target_preopen before changing node. Call
6063 inf_child_open_target to push the target explicitly.
6064 (procfs_attach): Don't push the target if it is already pushed.
6065 (procfs_detach): Use inf_child_maybe_unpush_target.
6066 (procfs_create_inferior): Don't push the target if it is already
6068 (nto_native_ops): New global.
6069 (procfs_open): Reimplement.
6070 (procfs_native_open): New function.
6071 (init_procfs_targets): Install procfs_native_open as to_open of
6072 "target native". Store a pointer to the "native" target in
6074 * procfs.c (procfs_attach): Don't push the target if it is already
6076 (procfs_detach): Use inf_child_maybe_unpush_target.
6077 (procfs_mourn_inferior): Only unpush the target after mourning the
6078 inferior. Use inf_child_maybe_unpush_target.
6079 (procfs_init_inferior): Don't push the target if it is already
6081 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6082 if it is already pushed.
6084 2014-05-21 Pedro Alves <palves@redhat.com>
6086 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6087 and "procfs" targets are now called "native" instead.
6089 2014-05-21 Pedro Alves <palves@redhat.com>
6091 * go32-nat.c (go32_open): Delete.
6092 (go32_target): Don't override the to_open method.
6094 2014-05-21 Pedro Alves <palves@redhat.com>
6096 * nto-procfs.c (procfs_can_run): New function.
6097 (nto_procfs_ops): New global.
6098 (init_procfs_targets): New, based on procfs_target. Install
6099 "target native" in addition to "target procfs".
6100 (_initialize_procfs): Call init_procfs_targets instead of adding
6103 2014-05-21 Pedro Alves <palves@redhat.com>
6105 * windows-nat.c (windows_target): Don't override to_shortname,
6106 to_longname or to_doc.
6108 2014-05-21 Pedro Alves <palves@redhat.com>
6110 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6113 2014-05-21 Pedro Alves <palves@redhat.com>
6115 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6116 to_shortname, to_longname or to_doc.
6118 2014-05-21 Pedro Alves <palves@redhat.com>
6120 * go32-nat.c (go32_target): Don't override to_shortname,
6121 to_longname or to_doc.
6123 2014-05-21 Pedro Alves <palves@redhat.com>
6125 * inf-child.c (inf_child_open): Remove mention of "child".
6126 (inf_child_target): Rename target to "native" instead of "child".
6128 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6130 * Makefile.in (SFILES): Delete "regset.c".
6131 (COMMON_OBS): Delete "regset.o".
6133 * regset.h (regset_alloc): Delete prototype.
6135 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6137 * sparc-linux-tdep.c (sparc32_linux_gregset)
6138 (sparc32_linux_fpregset): New static regset structures.
6139 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6140 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6142 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6143 (sparc64_linux_fpregset): New static regset structures.
6144 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6145 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6146 New static regset structures.
6147 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6148 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6149 New static regset structures.
6150 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6151 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6152 New static regset structures.
6153 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6154 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6155 New static regset structures.
6156 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6158 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6160 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6161 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6162 register maps ("regmaps") from "*regset" to "*regmap". Do this
6163 for all regmap types and variables.
6164 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6165 (sparc32_linux_supply_core_gregset)
6166 (sparc32_linux_collect_core_gregset)
6167 (sparc32_linux_supply_core_fpregset)
6168 (sparc32_linux_collect_core_fpregset): Likewise.
6169 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6170 (sparc_gregmap, sparc_fpregmap): ... these.
6171 (sparc_supply_gregset, sparc_collect_gregset)
6172 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6173 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6174 (_initialize_sparc_nat): Rename regmaps.
6175 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6176 (sparc_gregmap, sparc_fpregmap): ... these.
6177 (sparc_supply_gregset, sparc_collect_gregset)
6178 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6179 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6181 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6182 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6184 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6186 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6187 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6188 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6190 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6191 (sparc32_bsd_fpregset): Rename to...
6192 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6193 (sparc32_bsd_fpregmap): ... these.
6194 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6195 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6196 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6197 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6198 (struct sparc_gregmap, struct sparc_fpregmap)
6199 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6200 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6201 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6202 (sparc32_supply_regset, sparc32_collect_gregset)
6203 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6205 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6206 (sparc64_linux_ptrace_gregmap): ... this.
6207 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6208 (_initialize_sparc64_linux_nat): Rename regmaps.
6209 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6210 (sparc64_linux_core_gregmap): ... this.
6211 (sparc64_linux_supply_core_gregset)
6212 (sparc64_linux_collect_core_gregset)
6213 (sparc64_linux_supply_core_fpregset)
6214 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6215 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6216 (sparc64_sol2_fpregset): Rename to...
6217 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6218 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6219 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6221 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6222 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6223 (sparc64_bsd_fpregset): Rename to...
6224 (struct sparc_gregmap, sparc64_sol2_gregmap)
6225 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6226 (sparc64_bsd_fpregmap): ... these.
6227 (sparc64_supply_gregset, sparc64_collect_gregset)
6228 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6230 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6231 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6232 (sparc64fbsd_gregmap): ... this.
6233 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6234 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6236 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6237 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6238 (sparc64nbsd_collect_fpregset): Likewise.
6239 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6240 (sparc64nbsd_gregmap): ... this.
6241 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6243 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6244 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6245 (sparc64obsd_gregmap): ... this.
6246 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6248 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6249 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6250 (sparc32nbsd_gregmap): ... this.
6251 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6254 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6256 * score-tdep.c (score7_linux_gregset): New static regset
6258 (score7_linux_regset_from_core_section): Remove dynamic regset
6260 (score_gdbarch_init): Drop allocation of tdep structure.
6261 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6263 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6265 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6267 (am33_regset_from_core_section): Remove dynamic regset
6270 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6272 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6273 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6275 (mips_linux_regset_from_core_section): Remove dynamic regset
6277 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6278 'gregset64', 'fpregset', and 'fpregset64'.
6279 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6280 deleted tdep fields.
6282 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6284 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6286 (amd64_regset_from_core_section): Remove dynamic regset
6288 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6290 (amd64obsd_regset_from_core_section): Remove dynamic regset
6292 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6294 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6295 x86-common regset supply function.
6296 * i386-tdep.c (i386_collect_gregset): Make static.
6297 (i386_gregset): New global regset structure.
6298 (i386_fpregset, i386_xstateregset): New static regset structures.
6299 (i386_regset_from_core_section): Remove dynamic regset
6301 (i386_gdbarch_init): Remove initialization of tdep fields
6302 'gregset', 'fpregset', and 'xstateregset'.
6303 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6304 'fpregset', and 'xstateregset'.
6305 (i386_collect_gregset): Remove prototype.
6306 (i386_gregset): New declaration.
6307 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6309 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6312 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6314 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6315 (arm_linux_vfpregset): New static regset structures.
6316 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6318 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6319 and 'vfpregset' fields.
6321 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6323 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6324 (aarch64_linux_fpregset): New static regset structures.
6325 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6326 of regset structures.
6327 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6330 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6332 * regset.h (struct regset): Remove gdbarch field.
6333 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6334 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6335 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6337 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6338 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6339 (ppc32_linux_vsxregset): Likewise.
6340 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6341 via the regcache instead of the regset.
6342 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6343 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6344 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6345 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6348 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6350 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6351 Constify structures.
6352 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6353 (alphanbsd_aout_gregset): Likewise.
6354 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6355 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6357 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6358 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6360 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6361 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6362 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6363 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6364 * m88k-tdep.c (m88k_gregset): Likewise.
6365 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6366 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6367 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6368 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6369 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6370 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6371 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6372 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6373 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6375 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6376 * sh-tdep.h (sh_corefile_gregset): Likewise.
6377 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6378 * vax-tdep.c (vax_gregset): Likewise.
6380 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6382 Fix TLS access for -static -pthread.
6383 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6384 (try_thread_db_load_1): Initialize it.
6385 (thread_db_get_thread_local_address): Call it if LM is zero.
6386 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6387 * target.h (struct target_ops) (to_get_thread_local_address): Add
6388 load_module_addr comment.
6390 2014-05-21 Pedro Alves <palves@redhat.com>
6392 * dcache.c (dcache_read_memory_partial): If reading the cache line
6393 fails, fallback to reading just the memory the caller wanted.
6395 2014-05-20 Doug Evans <dje@google.com>
6397 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6398 instead of get_current_arch.
6400 2014-05-20 Pedro Alves <palves@redhat.com>
6402 * NEWS: Mention that compare-sections now works with all targets.
6404 * remote.c (PACKET_qCRC): New enum value.
6405 (remote_verify_memory): Don't send qCRC if the target has no
6406 execution. Use packet_support/packet_ok. If the target doesn't
6407 support the qCRC packet, fallback to a deep memory copy.
6408 (compare_sections_command): Say "target image" instead of "remote
6410 (_initialize_remote): Add PACKET_qCRC to the list of config
6411 packets that have no associated command. Extend comment.
6412 * target.c (simple_verify_memory, default_verify_memory): New
6414 * target.h (struct target_ops) <to_verify_memory>: Default to
6415 default_verify_memory.
6416 (simple_verify_memory): New declaration.
6417 * target-delegates.c: Regenerate.
6419 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6421 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6423 2014-05-20 Hui Zhu <hui@codesourcery.com>
6424 Yao Qi <yao@codesourcery.com>
6427 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6428 and change address of sp and pc.
6430 2014-05-19 Tom Tromey <tromey@redhat.com>
6432 * gdbtypes.c (rank_function): Use XNEWVEC.
6433 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6435 2014-05-19 Doug Evans <dje@google.com>
6437 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6438 build_type_unit_groups and moved closer to only caller. Remove
6439 arguments. All references updated. Remove outdated .gdb_index
6441 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6442 build_type_psymtabs_1.
6444 2014-05-19 Doug Evans <dje@google.com>
6446 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6447 n_type_unit_groups, all_type_unit_groups. All uses removed.
6448 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6449 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6450 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6451 (add_type_unit_group_to_table): Delete.
6453 2014-05-19 Doug Evans <dje@google.com>
6455 * eval.c (evaluate_subexp_standard): Add some comments.
6457 2014-05-17 Doug Evans <xdje42@gmail.com>
6459 * progspace.c (remove_program_space): Delete, unused.
6460 * progspace.h (remove_program_space): Ditto.
6462 2014-05-17 Doug Evans <xdje42@gmail.com>
6464 * inferior.c (prune_inferiors): Fix comment.
6465 (remove_inferior_command): Call prune_program_spaces.
6467 2014-05-16 Doug Evans <dje@google.com>
6469 New command line option -D.
6471 * main.c (set_gdb_data_directory): New function.
6472 (captured_main): Recognize -D. Flag error for --data-directory "".
6473 Call set_gdb_data_directory.
6474 (print_gdb_help): Print --data-directory, -D.
6475 * main.h (set_gdb_data_directory): Declare.
6476 * top.c (staged_gdb_datadir): New static global.
6477 (set_gdb_datadir): Call set_gdb_data_directory
6478 (show_gdb_datadir): New function.
6479 (init_main): Update init of data-directory parameter.
6481 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6483 Import the "dirfd" gnulib module.
6484 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6485 * gnulib/aclocal.m4: Update.
6486 * gnulib/config.in: Update.
6487 * gnulib/configure: Update.
6488 * gnulib/import/Makefile.am: Update.
6489 * gnulib/import/Makefile.in: Update.
6490 * gnulib/import/dirfd.c: New.
6491 * gnulib/import/m4/dirfd.m4: New.
6492 * gnulib/import/m4/gnulib-cache.m4: Update.
6493 * gnulib/import/m4/gnulib-comp.m4: Update.
6495 2014-05-16 Pierre Muller <muller@sourceware.org>
6496 Yao Qi <yao@codesourcery.com>
6498 * valprint.c (print_wchar): Move the code on checking whether
6499 W is a printable wide char to the default branch of switch
6500 statement below. Call wchar_printable instead of gdb_iswprint.
6502 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6504 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6505 ldr.w and ldrd instructions.
6507 2014-05-15 Doug Evans <dje@google.com>
6509 * dwarf2read.c (read_structure_type): Delete outdated comments.
6511 2014-05-14 Tom Tromey <tromey@redhat.com>
6513 * macrocmd.c (print_macro_definition): Reindent.
6515 2014-05-13 Doug Evans <xdje42@gmail.com>
6517 * python/py-cmd.c (cmdpy_completer): Add comment.
6518 (completers): Make const.
6520 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6522 * infrun.c (resume): Remove should_resume (unused). Move up
6523 declaration of resume_ptid.
6525 2014-05-13 Tom Tromey <tromey@redhat.com>
6527 * language.h (unop_type_check): Remove.
6528 (binop_type_check): Don't declare.
6530 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6532 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6533 call to regcache_raw_collect.
6535 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6537 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6538 mi_console->quote as the quoting character.
6540 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6542 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6544 2014-04-29 Tom Tromey <tromey@redhat.com>
6546 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6547 "show debug varobj".
6549 2014-05-07 Kyle McMartin <kyle@redhat.com>
6551 Pushed by Joel Brobecker <brobecker@adacore.com>.
6552 * aarch64-tdep.c (aarch64_software_single_step): New function.
6553 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6554 with aarch64_software_single_step.
6556 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6560 2014-05-05 Keith Seitz <keiths@redhat.com>
6562 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6563 variable or history value is successfully parsed.
6565 2014-05-05 Yao Qi <yao@codesourcery.com>
6566 Pedro Alves <palves@redhat.com>
6568 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6569 address of blocks that intersects the requested range. Trim
6570 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6572 * ctf.c (ctf_xfer_partial): Likewise.
6574 2014-05-05 Yao Qi <yao@codesourcery.com>
6576 * printcmd.c (display_command): Remove the check to
6577 target_has_execution.
6579 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6581 * ppcobsd-nat.c: Include "obsd-nat.h".
6582 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6584 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6586 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6588 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6589 and 16-bit signed and unsigned arguments. Update comment.
6590 (stap_parse_probe_arguments): Extend code to handle such
6591 arguments. Use warning instead of complaint to notify about
6592 unrecognized bitness.
6594 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6596 PR breakpoints/16889
6597 * stap-probe.c (stap_parse_probe_arguments): Simplify
6598 check for non-prefixed probes (i.e., probes whose
6599 arguments do not start with "N@"). Always set the
6600 argument type to a sane value.
6602 2014-05-01 David Taylor <dtaylor@emc.com>
6604 * remote.c (compare_sections_command): Add -r option to compare
6605 all loadable read-only sections.
6607 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6609 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6610 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6612 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6613 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6614 Remove unused CORE_ADDR argument. Update all callers.
6616 2014-04-29 Pedro Alves <palves@redhat.com>
6618 * remote.c (struct packet_config) <detect>: Extend comment.
6619 (add_packet_config_cmd): Don't set the config's detect or support
6621 (init_all_packet_configs): Also initialize the config's 'detect'
6623 (reset_all_packet_configs_support): New function.
6624 (remote_open_1): Call reset_all_packet_configs_support instead of
6625 init_all_packet_configs.
6626 (_initialize_remote): Initialize all packet configs. Assert that
6627 all packets have an associated command, except a few known
6630 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6632 * dwarf2read.c (read_subrange_type): Handle dynamic
6633 DW_AT_lower_bound attributes.
6635 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6637 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6638 dynamic bounds before computing its upper bound.
6639 (ada_discrete_type_low_bound): Same as above with the lower bound.
6641 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6643 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6644 range types. Adjust the array handling implementation to
6645 take advantage of this change.
6646 (resolve_dynamic_range): New function, mostly extracted from
6647 resolve_dynamic_bounds.
6648 (resolve_dynamic_array): New function, mostly extracted from
6649 resolve_dynamic_bounds.
6650 (resolve_dynamic_bounds): Delete.
6651 (resolve_dynamic_type): Reimplement. Add handling of
6652 TYPE_CODE_RANGE types.
6654 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6656 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6657 handling of parallel ___XA types.
6659 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6661 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6662 unnecessary second call to static_unwrap_type.
6664 2014-04-27 Hui Zhu <hui@codesourcery.com>
6666 * stack.c (print_frame_info): Call do_gdb_disassembly with
6667 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6669 2014-04-26 Doug Evans <xdje42@gmail.com>
6671 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6673 2014-04-25 Pedro Alves <palves@redhat.com>
6676 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6677 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6678 and newline from built string.
6679 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6680 (linux_ptrace_attach_fail_reason): ... this.
6681 * linux-nat.c (linux_nat_attach): Adjust to use
6682 linux_ptrace_attach_fail_reason.
6684 2014-04-25 Pedro Alves <palves@redhat.com>
6686 * remote.c (struct remote_state): Remove multi_process_aware,
6687 non_stop_aware, cond_tracepoints, cond_breakpoints,
6688 breakpoint_commands, fast_tracepoints, static_tracepoints,
6689 install_in_trace, disconnected_tracing,
6690 enable_disable_tracepoints, string_tracing, and
6691 augmented_libraries_svr4_read fields.
6692 (remote_multi_process_p): Move further below in the file.
6693 (struct packet_config): Add comments.
6694 (update_packet_config): Delete function.
6695 (show_packet_config_cmd): Use packet_config_support.
6696 (add_packet_config_cmd): Use NULL as set callback.
6697 (packet_ok): "set remote foo-packet"-style commands no longer
6698 change config->supported -- adjust.
6699 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6700 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6701 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6702 (PACKET_QNonStop, PACKET_multiprocess_feature)
6703 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6704 (PACKET_DisconnectedTracing_feature)
6705 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6706 (set_remote_protocol_packet_cmd): Delete function.
6707 (packet_config_support, packet_support): New functions.
6708 (set_remote_protocol_Z_packet_cmd): Don't call
6709 update_packet_config.
6710 (remote_query_attached, remote_pass_signals)
6711 (remote_program_signals, remote_threads_info)
6712 (remote_threads_extra_info, remote_start_remote): Use
6714 (remote_start_remote): Use packet_config_support and
6716 (init_all_packet_configs): Set all packets to unknown support,
6717 instead of calling update_packet_config.
6718 (remote_check_symbols): Use packet_support.
6719 (remote_supported_packet): Unconditionally set the packet config's
6721 (remote_multi_process_feature, remote_non_stop_feature)
6722 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6723 (remote_breakpoint_commands_feature)
6724 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6725 (remote_install_in_trace_feature)
6726 (remote_disconnected_tracing_feature)
6727 (remote_enable_disable_tracepoint_feature)
6728 (remote_string_tracing_feature)
6729 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6730 (remote_protocol_features): Adjust to use remote_supported_packet
6731 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6732 "ConditionalTracepoints", "ConditionalBreakpoints",
6733 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6734 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6735 "EnableDisableTracepoints", and "tracenz".
6736 (remote_query_supported): Use packet_support.
6737 (remote_open_1): Adjust.
6738 (extended_remote_attach_1): Use packet_support. Switch on the
6739 result of packet_ok instead of checking whether the packet ended
6741 (remote_vcont_resume): Use packet_support.
6742 (remote_resume, remote_stop_ns, fetch_register_using_p)
6743 (remote_prepare_to_store, store_register_using_P)
6744 (check_binary_download, remote_write_bytes): Use packet_support.
6745 (remote_vkill): Use packet_support. Switch on the result of
6746 packet_ok instead of checking whether the packet ended up
6748 (extended_remote_supports_disable_randomization): Use
6750 (extended_remote_run): Switch on the result of packet_ok instead
6751 of checking whether the packet ended up disabled.
6752 (remote_insert_breakpoint, remote_remove_breakpoint)
6753 (remote_insert_watchpoint, remote_remove_watchpoint)
6754 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6756 (remote_search_memory): Use packet_config_support.
6757 (remote_get_thread_local_address, remote_get_tib_address)
6758 (remote_hostio_send_command, remote_can_execute_reverse): Use
6760 (remote_supports_cond_tracepoints)
6761 (remote_supports_cond_breakpoints)
6762 (remote_supports_fast_tracepoints)
6763 (remote_supports_static_tracepoints)
6764 (remote_supports_install_in_trace)
6765 (remote_supports_enable_disable_tracepoint)
6766 (remote_supports_string_tracing)
6767 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6768 the packet config says the feature is enabled or disabled.
6769 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6770 (remote_get_trace_status): Use packet_support.
6771 (remote_set_disconnected_tracing): Adjust to check whether the
6772 feature is enabled with packet_support.
6773 (remote_set_trace_buffer_size, remote_use_agent)
6774 (remote_can_use_agent, remote_supports_btrace): Use
6776 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6777 Use packet_config_support.
6778 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6779 the packet config says the feature is enabled or disabled.
6780 (set_range_stepping): Use packet_support.
6782 2014-04-25 Tom Tromey <tromey@redhat.com>
6784 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6787 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6789 * NEWS: Mention support for C99 variable length arrays.
6791 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6793 * ada-lang.c (standard_exc): Expand introductory comment.
6795 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6796 Walfred Tedeschi <walfred.tedeschi@intel.com>
6798 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6800 (amd64_linux_read_description): Add code to handle AVX512 xstate
6801 mask and return respective tdesc.
6802 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6803 and features/i386/x32-avx512-linux.c.
6804 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6805 (amd64_linux_core_read_description): Add code to handle AVX512
6806 xstate mask and return respective tdesc.
6807 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6808 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6810 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6811 (tdesc_amd64_avx512_linux): New prototype.
6812 (tdesc_x32_avx512_linux): Likewise.
6813 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6814 features/i386/x32-avx512.c.
6815 (amd64_ymm_avx512_names): New register names for pseudo
6817 (amd64_ymmh_avx512_names): New register names for raw registers
6819 (amd64_k_names): New register names for K registers.
6820 (amd64_zmmh_names): New register names for ZMM raw registers.
6821 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6822 (amd64_xmm_avx512_names): New register names for XMM16-31
6824 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6826 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6827 if feature is present.
6828 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6829 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6830 (AMD64_NUM_REGS): Adjust to new number of registers.
6831 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6832 registers supplied via XSTATE by AVX512 registers.
6833 (i386_linux_read_description): Add case for AVX512.
6834 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6835 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6836 (i386_linux_core_read_description): Add case for AVX512.
6837 (i386_linux_init_abi): Install supported register note section
6839 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6841 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6842 registers to be number of zmm7h + 1.
6843 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6844 * i386-tdep.c: Include features/i386/i386-avx512.c.
6845 (i386_zmm_names): Add ZMM pseudo register names array.
6846 (i386_zmmh_names): Add ZMM raw register names array.
6847 (i386_k_names): Add K raw register names array.
6848 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6849 registers. AVX512 has 16 more ZMM registers than there are YMM
6851 (i386_zmmh_regnum_p): Add function to look up register number of
6853 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6854 (i386_k_regnum_p): Likewise for K raw registers.
6855 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6856 registers added by AVX512.
6857 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6858 registers added by AVX512.
6859 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6861 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6862 (i386_pseudo_register_name): Add ZMM pseudo registers.
6863 (i386_zmm_type): Construct and return vector registers type for ZMM
6865 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6866 ZMM0-31 pseudo registers and K registers.
6867 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6868 and YMM16-31 registers from register cache.
6869 (i386_pseudo_register_write): Add code to write K, ZMM and
6871 (i386_register_reggroup_p): Add code to include/exclude AVX512
6872 registers in/from respective register groups.
6873 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6874 registers if feature is present in xcr0.
6875 (i386_gdbarch_init): Add code to initialize AVX512 feature
6876 variables in tdep structure, wire in pseudo registers and call
6877 initialize_tdesc_i386_avx512.
6878 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6880 (i386_regnum): Add AVX512 registers.
6881 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6882 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6883 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6884 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6886 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6887 (i386_ymm_avx512_regnum_p): Likewise.
6888 (i386_k_regnum_p): Likewise.
6889 (i386_zmm_regnum_p): Likewise.
6890 (i386_zmmh_regnum_p): Likewise.
6891 * i387-tdep.c : Update year in copyright notice.
6892 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6894 (XSAVE_YMM_AVX512_ADDR): New macro.
6895 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6897 (XSAVE_XMM_AVX512_ADDR): New macro.
6898 (xsave_avx512_k_offset): New table for K register offsets in
6900 (XSAVE_AVX512_K_ADDR): New macro.
6901 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6903 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6904 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6906 (i387_collect_xsave): Add code to collect AVX512 registers from
6908 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6909 of XMM16-31 registers.
6910 (I387_NUM_K_REGS): New define for number of K registers.
6911 (I387_K0_REGNUM): New define for K0 register number.
6912 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6913 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6914 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6916 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6917 (I387_XMM16_REGNUM): New define for XMM16 register number.
6918 (I387_YMM0_REGNUM): New define for YMM0 register number.
6919 (I387_KEND_REGNUM): New define for last K register number.
6920 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6921 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6923 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6925 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6927 * features/Makefile: Add AVX512 related files.
6928 * features/i386/32bit-avx512.xml: New file.
6929 * features/i386/64bit-avx512.xml: Likewise.
6930 * features/i386/amd64-avx512-linux.c: Likewise.
6931 * features/i386/amd64-avx512-linux.xml: Likewise.
6932 * features/i386/amd64-avx512.c: Likewise.
6933 * features/i386/amd64-avx512.xml: Likewise.
6934 * features/i386/i386-avx512-linux.c: Likewise.
6935 * features/i386/i386-avx512-linux.xml: Likewise.
6936 * features/i386/i386-avx512.c: Likewise.
6937 * features/i386/i386-avx512.xml: Likewise.
6938 * features/i386/x32-avx512-linux.c: Likewise.
6939 * features/i386/x32-avx512-linux.xml: Likewise.
6940 * features/i386/x32-avx512.c: Likewise.
6941 * features/i386/x32-avx512.xml: Likewise.
6942 * regformats/i386/amd64-avx512-linux.dat: New file.
6943 * regformats/i386/amd64-avx512.dat: Likewise.
6944 * regformats/i386/i386-avx512-linux.dat: Likewise.
6945 * regformats/i386/i386-avx512.dat: Likewise.
6946 * regformats/i386/x32-avx512-linux.dat: Likewise.
6947 * regformats/i386/x32-avx512.dat: Likewise.
6948 * NEWS: Add note about new support for AVX512.
6951 2014-04-23 Pedro Alves <palves@redhat.com>
6953 * breakpoint.c (insert_bp_location): Tolerate errors if the
6954 breakpoint is set in a user-loaded objfile.
6955 (remove_breakpoint_1): Likewise. Also tolerate errors if the
6956 location is marked shlib_disabled. If the breakpoint is set in a
6957 user-loaded objfile is a GDB-side memory breakpoint, validate it
6958 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
6959 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
6961 * mem-break.c (memory_validate_breakpoint): New function.
6962 * objfiles.c (userloaded_objfile_contains_address_p): New
6964 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6965 * target.h (memory_validate_breakpoint): New declaration.
6967 2014-04-23 Pedro Alves <palves@redhat.com>
6969 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6970 the breakpoint is set in a shared library, only suppress
6971 errors for software breakpoints, not hardware breakpoints.
6973 2014-04-22 Pedro Alves <palves@redhat.com>
6975 * infrun.c (schedlock_applies): New function, factored out from
6976 find_thread_needs_step_over.
6977 (find_thread_needs_step_over): Use it.
6978 (switch_back_to_stepped_thread): Always clear trap_expected if the
6979 step over is finished. Return early if scheduler locking applies.
6980 Look for the stepping thread and a potential step-over thread with
6982 (currently_stepping_or_nexting_callback): Delete.
6984 2014-04-22 Nick Clifton <nickc@redhat.com>
6986 * NEWS: Mention that ARM sim now supports tracing.
6988 2014-04-22 Yao Qi <yao@codesourcery.com>
6990 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6992 * tracefile.c (tracefile_fetch_registers): ... it. New
6994 * tracefile.h (tracefile_fetch_registers): Declare.
6995 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
6996 tracefile_fetch_registers.
6998 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7001 * windows-nat.c (thread_rec): Don't display a warning when
7002 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7003 fails for any reason, set th->suspended to -1, so that we don't
7004 try to resume such a thread. Also, don't return NULL in these
7005 cases, to avoid completely ruin the session due to "PC register is
7006 not available" error.
7007 (do_windows_fetch_inferior_registers): Check errors in
7008 GetThreadContext call.
7009 (windows_continue): Accept an additional argument KILLED; if not
7010 zero, ignore errors in the SetThreadContext call, since the
7011 inferior was killed and is shutting down.
7012 (windows_resume, get_windows_debug_event)
7013 (windows_create_inferior, windows_mourn_inferior)
7014 (windows_kill_inferior): All callers of windows_continue changed
7015 to adjust to its new calling sequence.
7017 2014-04-19 Yao Qi <yao@codesourcery.com>
7019 * ctf.c (ctf_open): Call post_create_inferior.
7021 2014-04-19 Yao Qi <yao@codesourcery.com>
7023 * ctf.c (handle_id): New static variable.
7024 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7025 value. Get the declaration of event "register" and get length
7026 of field "contents".
7028 2014-04-19 Yao Qi <yao@codesourcery.com>
7030 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7032 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7034 * valops.c (oload_method_static): Remove unnecessary argument
7035 METHOD. Update all callers.
7037 2014-04-18 Pedro alves <palves@redhat.com>
7038 Tom Tromey <tromey@redhat.com>
7041 * frame.c (get_prev_frame_1): Rename to ...
7042 (get_prev_frame_always): ... this, and make extern. Adjust.
7043 (skip_artificial_frames): Use get_prev_frame_always.
7044 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7045 (get_frame_unwind_stop_reason): Adjust to rename.
7046 * frame.h (get_prev_frame_always): Declare.
7047 * inline-frame.c: Include frame.h.
7048 (inline_frame_this_id): Use get_prev_frame_always.
7050 2014-04-18 Tristan Gingold <gingold@adacore.com>
7052 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7053 code by using bfd_mach_o_get_base_address.
7055 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7057 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7058 (spu_ax_pseudo_register_collect): New function.
7059 (spu_ax_pseudo_register_push_stack): Likewise.
7060 (spu_dwarf_reg_to_regnum): Likewise.
7061 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7063 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7065 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7066 Replace FRAME argument with FRAME_ID.
7067 * gdbarch.c, gdbarch.h: Regenerate.
7068 * findvar.c (default_value_from_register): Add GDBARCH argument;
7069 replace FRAME by FRAME_ID. No longer call get_frame_id.
7070 (value_from_register): Update call to gdbarch_value_from_register.
7071 * value.h (default_value_from_register): Update prototype.
7072 * s390-linux-tdep.c (s390_value_from_register): Update interface
7073 and call to default_value_from_register.
7074 * spu-tdep.c (spu_value_from_register): Likewise.
7076 * findvar.c (address_from_register): Remove TYPE argument.
7077 Do not call value_from_register; use gdbarch_value_from_register
7078 with null_frame_id instead.
7079 * value.h (address_from_register): Update prototype.
7080 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7081 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7082 address_from_register interface change.
7084 2014-04-17 Yao Qi <yao@codesourcery.com>
7086 * gdbtypes.h: Update comments to link to types and macros'
7089 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7091 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7093 2014-04-16 Keith Seitz <keiths@redhat.com>
7096 * dwarf2read.c (skip_one_die): Check that all relative-offset
7097 sibling DIEs fall within range of the current reader's buffer.
7098 (read_partial_die): Likewise.
7100 2014-04-16 Keith Seitz <keiths@redhat.com>
7103 * cp-namespace.c (lookup_symbol_file): If the type name of
7104 `this' is NULL, return immediately.
7106 2014-04-14 Keith Seitz <keiths@redhat.com>
7109 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7110 from symbol_matches_domain in symtab.c. All local callers
7111 of symbol_matches_domain updated.
7112 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7113 search STRUCT_DOMAIN.
7114 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7115 independently. standard_lookup will do that automatically.
7116 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7117 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7118 (cp_lookup_symbol_in_namespace): Likewise.
7119 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7120 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7121 may return a STRUCT_DOMAIN match.
7122 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7123 * cp-support.c: Include language.h.
7124 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7126 * psymtab.c (match_partial_symbol): Compare the requested
7127 domain with the symbol's domain directly.
7128 (lookup_partial_symbol): Likewise.
7129 * symtab.c (lookup_symbol_in_language): Explain when/why
7130 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7131 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7132 appropriate languages.
7133 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7134 and moved to ada-lang.c
7135 (lookup_block_symbol): Explain that this function only returns
7136 symbol matching the requested DOMAIN.
7137 Compare the requested domain with the symbol's domain directly.
7138 (iterate_over_symbols): Compare the requested domain with the
7139 symbol's domain directly.
7140 * symtab.h (symbol_matches_domain): Remove.
7142 2014-04-14 Tom Tromey <tromey@redhat.com>
7145 * c-exp.y (type_aggregate_p): New function.
7146 (qualified_name, classify_inner_name): Use it.
7147 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7148 and TYPE_TARGET_TYPE of an enum type.
7149 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7151 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7152 handle TYPE_DECLARED_CLASS.
7153 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7155 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7156 * valops.c (enum_constant_from_type): New function.
7157 (value_aggregate_elt): Use it.
7158 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7161 2014-04-14 Tom Tromey <tromey@redhat.com>
7163 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7164 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7166 * value.h (value_aggregate_elt): Update.
7168 2014-04-14 Tom Tromey <tromey@redhat.com>
7170 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7172 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7174 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7175 (evaluate_subexp_standard): Pass noside argument.
7176 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7177 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7178 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7179 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7180 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7182 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7184 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7185 points to a constant blob.
7187 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7189 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7190 property and store it as the high bound and flag the range accordingly.
7191 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7192 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7193 * gdbtypes.h (enum range_flags): New enum.
7194 (struct range_bounds): Add flags member.
7196 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7198 * c-typeprint.c (c_type_print_varspec_suffix): Added
7199 check for not yet resolved high bound. If unresolved, print
7200 "variable length" string to the console instead of random
7203 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7205 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7207 (ada_template_to_fixed_record_type_1): Likewise.
7208 (ada_to_fixed_type_1): Likewise.
7209 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7210 (cp_print_value): Likewise.
7211 * d-valprint.c (dynamic_array_type): Likewise.
7212 * findvar.c (address_of_variable): Likewise.
7213 * jv-valprint.c (java_value_print): Likewise.
7214 * valops.c (value_ind): Likewise.
7215 * value.c (coerce_ref): Likewise.
7217 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7219 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7220 value and retrieve the dynamic type size.
7222 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7224 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7225 passed to sizeof is dynamic evaluate the argument to compute the length.
7227 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7228 Joel Brobecker <brobecker@adacore.com>
7230 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7231 (dwarf2_evaluate_property): New function.
7232 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7233 * dwarf2read.c (attr_to_dynamic_prop): New function.
7234 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7236 * gdbtypes.c: Include dwarf2loc.h.
7237 (is_dynamic_type): New function.
7238 (resolve_dynamic_type): New function.
7239 (resolve_dynamic_bounds): New function.
7240 (get_type_length): New function.
7241 (check_typedef): Use get_type_length to compute type length.
7242 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7243 (TYPE_LOW_BOUND_KIND): New macro.
7244 (is_dynamic_type): New function prototype.
7245 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7246 to resolve dynamic properties of the type. Update comment.
7247 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7249 2014-04-14 Richard Henderson <rth@redhat.com>
7251 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7253 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7254 Doug Evans <xdje42@gmail.com>
7256 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7257 dereference TYPE_CODE_REF values.
7259 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7261 Revert the following changes due to regressions:
7263 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7264 (dwarf2_evaluate_property): New function.
7265 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7266 * dwarf2read.c (attr_to_dynamic_prop): New function.
7267 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7269 * gdbtypes.c: Include dwarf2loc.h.
7270 (is_dynamic_type): New function.
7271 (resolve_dynamic_type): New function.
7272 (resolve_dynamic_bounds): New function.
7273 (get_type_length): New function.
7274 (check_typedef): Use get_type_length to compute type length.
7275 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7276 (TYPE_LOW_BOUND_KIND): New macro.
7277 (is_dynamic_type): New function prototype.
7278 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7279 to resolve dynamic properties of the type. Update comment.
7280 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7282 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7283 passed to sizeof is dynamic evaluate the argument to compute the length.
7285 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7286 value and retrieve the dynamic type size.
7288 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7289 (ada_template_to_fixed_record_type_1): Likewise.
7290 (ada_to_fixed_type_1): Likewise.
7291 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7292 (cp_print_value): Likewise.
7293 * d-valprint.c (dynamic_array_type): Likewise.
7294 * eval.c (evaluate_subexp_with_coercion): Likewise.
7295 * findvar.c (address_of_variable): Likewise.
7296 * jv-valprint.c (java_value_print): Likewise.
7297 * valops.c (value_ind): Likewise.
7298 * value.c (coerce_ref): Likewise.
7300 * c-typeprint.c (c_type_print_varspec_suffix): Added
7301 check for not yet resolved high bound. If unresolved, print
7302 "variable length" string to the console instead of random
7305 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7306 property and store it as the high bound and flag the range accordingly.
7307 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7308 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7309 * gdbtypes.h (enum range_flags): New enum.
7310 (struct range_bounds): Add flags member.
7312 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7313 points to a constant blob.
7315 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7316 (evaluate_subexp_standard): Pass noside argument.
7317 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7318 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7319 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7320 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7321 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7323 2014-04-11 Keith Seitz <keiths@redhat.com>
7326 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7327 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7330 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7332 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7333 (evaluate_subexp_standard): Pass noside argument.
7334 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7335 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7336 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7337 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7338 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7340 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7342 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7343 points to a constant blob.
7345 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7347 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7348 property and store it as the high bound and flag the range accordingly.
7349 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7350 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7351 * gdbtypes.h (enum range_flags): New enum.
7352 (struct range_bounds): Add flags member.
7354 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7356 * c-typeprint.c (c_type_print_varspec_suffix): Added
7357 check for not yet resolved high bound. If unresolved, print
7358 "variable length" string to the console instead of random
7361 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7363 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7364 (ada_template_to_fixed_record_type_1): Likewise.
7365 (ada_to_fixed_type_1): Likewise.
7366 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7367 (cp_print_value): Likewise.
7368 * d-valprint.c (dynamic_array_type): Likewise.
7369 * eval.c (evaluate_subexp_with_coercion): Likewise.
7370 * findvar.c (address_of_variable): Likewise.
7371 * jv-valprint.c (java_value_print): Likewise.
7372 * valops.c (value_ind): Likewise.
7373 * value.c (coerce_ref): Likewise.
7375 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7377 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7378 value and retrieve the dynamic type size.
7380 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7382 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7383 passed to sizeof is dynamic evaluate the argument to compute the length.
7385 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7387 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7388 (dwarf2_evaluate_property): New function.
7389 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7390 * dwarf2read.c (attr_to_dynamic_prop): New function.
7391 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7393 * gdbtypes.c: Include dwarf2loc.h.
7394 (is_dynamic_type): New function.
7395 (resolve_dynamic_type): New function.
7396 (resolve_dynamic_bounds): New function.
7397 (get_type_length): New function.
7398 (check_typedef): Use get_type_length to compute type length.
7399 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7400 (TYPE_LOW_BOUND_KIND): New macro.
7401 (is_dynamic_type): New function prototype.
7402 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7403 to resolve dynamic properties of the type. Update comment.
7404 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7406 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7408 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7409 declaring high/low bounds and change uses accordingly. Call
7410 create_range_type instead of create_static_range_type.
7411 * gdbtypes.c (create_range_type): New function.
7412 (create_range_type): Convert bounds into struct bound_prop and pass
7413 them to create_range_type.
7414 * gdbtypes.h (struct bound_prop): New struct.
7415 (create_range_type): New function prototype.
7416 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7417 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7418 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7420 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7422 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7424 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7425 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7426 * ada-lang.c: All uses of create_range_type updated.
7427 * coffread.c: All uses of create_range_type updated.
7428 * dwarf2read.c: All uses of create_range_type updated.
7429 * f-exp.y: All uses of create_range_type updated.
7430 * m2-valprint.c: All uses of create_range_type updated.
7431 * mdebugread.c: All uses of create_range_type updated.
7432 * stabsread.c: All uses of create_range_type updated.
7433 * valops.c: All uses of create_range_type updated.
7434 * valprint.c: All uses of create_range_type updated.
7436 2014-04-10 Pedro Alves <palves@redhat.com>
7438 * breakpoint.c (single_step_breakpoints)
7439 (single_step_gdbarch): Move up in the file.
7440 (one_breakpoint_xfer_memory): New function, factored out from ...
7441 (breakpoint_xfer_memory): ... here. Also process single-step
7444 2014-04-09 Tristan Gingold <gingold@adacore.com>
7446 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7448 (darwin_decode_exception_message): Free port only after use.
7450 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7452 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7453 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7454 when setting the size of call_length.
7456 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7458 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7459 dereference TYPE_CODE_REF values.
7461 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7463 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7464 end of warning message.
7466 2014-04-03 Doug Evans <dje@google.com>
7468 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7469 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7471 2014-04-02 Alan Modra <amodra@gmail.com>
7473 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7474 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7475 (struct symbol_file_add_from_memory_args): Add size field.
7476 (find_vdso_size): New function.
7477 (add_vsyscall_page): Attempt to find vdso size.
7479 2014-04-01 Doug Evans <dje@google.com>
7481 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7483 2014-04-01 Tristan Gingold <gingold@adacore.com>
7485 * darwin-nat.c (darwin_encode_reply): Add prototype.
7486 (darwin_decode_exception_message): Reply to unknown inferiors.
7487 (darwin_decode_message): Handle message by id. Ignore message
7488 to unknown inferior.
7489 (darwin_wait): Discard unknown messages, add debug trace.
7491 2014-03-31 Doug Evans <dje@google.com>
7493 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7496 2014-03-31 Doug Evans <dje@google.com>
7498 New option "set print symbol-loading".
7500 * solib.c (solib_read_symbols): Only print symbol loading messages
7502 (solib_add): If symbol loading is in "brief" mode, notify user
7503 symbols are being loaded.
7504 (reload_shared_libraries_1): Ditto.
7505 * symfile.c (print_symbol_loading_off): New static global.
7506 (print_symbol_loading_brief): New static global.
7507 (print_symbol_loading_full): New static global.
7508 (print_symbol_loading_enums): New static global.
7509 (print_symbol_loading): New static global.
7510 (print_symbol_loading_p): New function.
7511 (symbol_file_add_with_addrs): Only print symbol loading messages
7513 (_initialize_symfile): Register "print symbol-loading" set/show
7515 * symfile.h (print_symbol_loading_p): Declare.
7517 2014-03-30 Doug Evans <xdje42@gmail.com>
7519 * infrun.c (set_last_target_status): New function.
7520 (handle_inferior_event): Call it.
7522 2014-03-30 Doug Evans <xdje42@gmail.com>
7524 * inferior.h (enum stop_kind): Improve comment.
7526 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7528 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7529 a reference, strip the reference layer before calling
7530 the lang_ops value_has_mutated callback.
7532 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7534 Remove some globals from our parser.
7535 * language.c (unk_lang_parser): Add "struct parser_state"
7537 * language.h (struct language_defn) <la_parser>: Likewise.
7538 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7539 (initialize_expout): Add "struct parser_state" argument.
7540 Rewrite function to use the parser state.
7541 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7542 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7543 write_exp_elt_longcst, write_exp_elt_dblcst,
7544 write_exp_elt_decfloatcst, write_exp_elt_type,
7545 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7546 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7547 write_dollar_variable): Likewise.
7548 (parse_exp_in_context_1): Use parser state.
7549 (insert_type_address_space): Add "struct parser_state" argument.
7551 (increase_expout_size): New function.
7552 * parser-defs.h: Forward declare "struct language_defn" and
7553 "struct parser_state".
7554 (expout, expout_size, expout_ptr): Remove extern declarations.
7555 (parse_gdbarch, parse_language): Rewrite macro declarations to
7556 accept the parser state.
7557 (struct parser_state): New struct.
7558 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7559 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7560 write_exp_elt_decfloatcst, write_exp_elt_type,
7561 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7562 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7563 write_exp_msymbol, write_dollar_variable,
7564 mark_struct_expression, insert_type_address_space): Add "struct
7565 parser_state" argument.
7566 (increase_expout_size): New function.
7567 * utils.c (do_clear_parser_state): New function.
7568 (make_cleanup_clear_parser_state): Likewise.
7569 * utils.h (make_cleanup_clear_parser_state): New function
7571 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7572 Update calls to write_exp* in order to pass the parser state.
7573 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7574 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7575 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7576 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7577 * stap-probe.c (stap_parse_register_operand): Likewise.
7578 (stap_parse_single_operand): Likewise.
7579 (stap_parse_argument_1): Likewise.
7580 (stap_parse_argument): Use parser state.
7581 * stap-probe.h: Include "parser-defs.h".
7582 (struct stap_parse_info) <pstate>: New field.
7583 * c-exp.y (parse_type): Rewrite to use parser state.
7584 (yyparse): Redefine to c_parse_internal.
7585 (pstate): New global variable.
7586 (parse_number): Add "struct parser_state" argument.
7587 (write_destructor_name): Likewise.
7588 (type_exp): Update calls to write_exp* and similars in order to
7590 (exp1, exp, variable, qualified_name, space_identifier,
7591 typename, typebase): Likewise.
7592 (write_destructor_name, parse_number, lex_one_token,
7593 classify_name, classify_inner_name, c_parse): Add "struct
7594 parser_state" argument. Update function to use parser state.
7595 * c-lang.h: Forward declare "struct parser_state".
7596 (c_parse): Add "struct parser_state" argument.
7597 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7598 (yyparse): Redefine macro to ada_parse_internal.
7599 (pstate): New variable.
7600 (write_int, write_object_renaming, write_var_or_type,
7601 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7602 type_int, type_long, type_long_long, type_float, type_double,
7603 type_long_double, type_char, type_boolean, type_system_address):
7604 Add "struct parser_state" argument.
7605 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7606 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7607 var_or_type, aggregate, aggregate_component_list,
7608 positional_list, others, component_group,
7609 component_associations): Update calls to write_exp* and similar
7610 functions in order to use parser state.
7611 (ada_parse, write_var_from_sym, write_int,
7612 write_exp_op_with_string, write_object_renaming,
7613 find_primitive_type, write_selectors, write_ambiguous_var,
7614 write_var_or_type, write_name_assoc, type_int, type_long,
7615 type_long_long, type_float, type_double, type_long_double,
7616 type_char, type_boolean, type_system_address): Add "struct
7617 parser_state" argument. Adjust function to use parser state.
7618 * ada-lang.c (parse): Likewise.
7619 * ada-lang.h: Forward declare "struct parser_state".
7620 (ada_parse): Add "struct parser_state" argument.
7621 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7622 calls to both functions.
7623 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7625 (yyparse): Redefine macro to f_parse_internal.
7626 (pstate): New variable.
7627 (parse_number): Add "struct parser_state" argument.
7628 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7629 and similars in order to use parser state.
7630 (parse_number): Adjust code to use parser state.
7632 (f_parse): New function.
7633 * f-lang.h: Forward declare "struct parser_state".
7634 (f_parse): Add "struct parser_state" argument.
7635 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7637 (yyparse): Redefine macro for java_parse_internal.
7638 (pstate): New variable.
7639 (push_expression_name, push_expression_name, insert_exp): Add
7640 "struct parser_state" argument.
7641 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7642 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7643 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7644 PostIncrementExpression, PostDecrementExpression,
7645 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7646 UnaryExpressionNotPlusMinus, CastExpression,
7647 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7648 RelationalExpression, EqualityExpression, AndExpression,
7649 ExclusiveOrExpression, InclusiveOrExpression,
7650 ConditionalAndExpression, ConditionalOrExpression,
7651 ConditionalExpression, Assignment, LeftHandSide): Update
7652 calls to write_exp* and similars in order to use parser state.
7653 (parse_number): Ajust code to use parser state.
7655 (java_parse): New function.
7656 (push_variable): Add "struct parser_state" argument. Adjust
7657 code to user parser state.
7658 (push_fieldnames, push_qualified_expression_name,
7659 push_expression_name, insert_exp): Likewise.
7660 * jv-lang.h: Forward declare "struct parser_state".
7661 (java_parse): Add "struct parser_state" argument.
7662 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7664 (yyparse): Redefine macro to m2_parse_internal.
7665 (pstate): New variable.
7666 (type_exp, exp, fblock, variable, type): Update calls to
7667 write_exp* and similars to use parser state.
7669 (m2_parse): New function.
7670 * m2-lang.h: Forward declare "struct parser_state".
7671 (m2_parse): Add "struct parser_state" argument.
7672 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7673 * objc-lang.h: Forward declare "struct parser_state".
7674 (end_msglist): Add "struct parser_state" argument.
7675 * p-exp.y (parse_type): Rewrite macro to use parser state.
7676 (yyparse): Redefine macro to pascal_parse_internal.
7677 (pstate): New variable.
7678 (parse_number): Add "struct parser_state" argument.
7679 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7680 write_exp* and similars in order to use parser state.
7681 (parse_number, yylex): Adjust code to use parser state.
7682 (pascal_parse): New function.
7683 * p-lang.h: Forward declare "struct parser_state".
7684 (pascal_parse): Add "struct parser_state" argument.
7685 * go-exp.y (parse_type): Rewrite macro to use parser state.
7686 (yyparse): Redefine macro to go_parse_internal.
7687 (pstate): New variable.
7688 (parse_number): Add "struct parser_state" argument.
7689 (type_exp, exp1, exp, variable, type): Update calls to
7690 write_exp* and similars in order to use parser state.
7691 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7692 to use parser state.
7693 (go_parse): Likewise.
7694 * go-lang.h: Forward declare "struct parser_state".
7695 (go_parse): Add "struct parser_state" argument.
7697 2014-03-27 Doug Evans <dje@google.com>
7699 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7701 2014-03-27 Doug Evans <dje@google.com>
7703 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7704 Remove argument abbrev_section. All callers updated.
7706 2014-03-27 Doug Evans <dje@google.com>
7708 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7709 addr_base, ranges_base.
7711 2014-03-26 Keith Seitz <keiths@redhat.com>
7713 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7714 types, not VAR_DOMAIN.
7716 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7718 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7720 * features/nios2-linux.c: Regenerated.
7721 * features/nios2.c: Regenerated.
7723 2014-03-25 Pedro Alves <palves@redhat.com>
7725 * cli/cli-script.c (script_from_file): Force the interpreter to
7728 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7730 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7731 small stack allocation.
7733 2014-03-24 Tristan Gingold <gingold@adacore.com>
7735 * darwin-nat.c (exc_server): Remove unused prototype.
7736 (darwin_dump_message): Correctly display data on x86_64.
7737 (darwin_encode_reply): Fix style.
7738 Add comments and fix indentation.
7740 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7742 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7744 2014-03-22 Doug Evans <xdje42@gmail.com>
7746 * infcmd.c: Whitespace fixes.
7747 (interrupt_command): Merge two function comments into one.
7749 2014-03-22 Doug Evans <xdje42@gmail.com>
7751 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7754 2014-03-22 Yao Qi <yao@codesourcery.com>
7756 * remote.c (target_read_live_memory): Remove.
7757 (memory_xfer_live_readonly_partial): Rename it to
7758 remote_xfer_live_readonly_partial. Remove argument 'object'.
7759 All callers updated. Call remote_read_bytes_1
7760 instead of target_read_live_memory.
7761 * tracepoint.c (set_traceframe_number): Remove.
7762 (make_cleanup_restore_traceframe_number): Likewise .
7763 * tracepoint.h (set_traceframe_number): Remove declaration.
7764 (make_cleanup_restore_traceframe_number): Likewise.
7766 2014-03-22 Yao Qi <yao@codesourcery.com>
7768 * remote.c (remote_read_bytes): Move code on reading from the
7770 (remote_read_bytes_1): ... here. New function.
7772 2014-03-22 Yao Qi <yao@codesourcery.com>
7774 * ctf.c (ctf_xfer_partial): Check the return value of
7775 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7776 return TARGET_XFER_UNAVAILABLE.
7777 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7778 * target.c (target_read_live_memory): Move it to remote.c.
7779 (memory_xfer_live_readonly_partial): Likewise.
7780 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7781 * remote.c (target_read_live_memory): Moved from target.c.
7782 (memory_xfer_live_readonly_partial): Likewise.
7783 (remote_read_bytes): Factored out from
7784 memory_xfer_partial_1.
7786 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7788 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7791 2014-03-21 Pedro Alves <palves@redhat.com>
7793 * infrun.c (normal_stop): Extend comment.
7795 2014-03-21 Hui Zhu <hui@codesourcery.com>
7796 Pedro Alves <palves@redhat.com>
7798 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7800 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7801 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7802 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7804 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7806 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7807 `z' formatted output modifier.
7809 2014-03-20 Tom Tromey <tromey@redhat.com>
7810 Sergio Durigan Junior <sergiodj@redhat.com>
7812 * probe.c (parse_probes): Turn assert into an ordinary error.
7813 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7814 exceptions when parsing probes. Rearrange the code for clarity.
7816 2014-03-20 Tom Tromey <tromey@redhat.com>
7819 * top.c (execute_command): Only dispatch events if the command
7822 2014-03-20 Tom Tromey <tromey@redhat.com>
7825 * infcall.c: Include event-top.h.
7826 (run_inferior_call): Call async_disable_stdin if needed.
7828 2014-03-20 Pedro Alves <palves@redhat.com>
7830 * infrun.c (prepare_to_proceed): Delete.
7831 (thread_still_needs_step_over): New function.
7832 (find_thread_needs_step_over): New function.
7833 (proceed): If the current thread needs a step-over, set its
7834 steping_over_breakpoint flag. Adjust to use
7835 find_thread_needs_step_over instead of prepare_to_proceed.
7836 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7837 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7839 (switch_back_to_stepped_thread): Step over breakpoints of all
7840 threads not the stepping thread, before switching back to the
7843 2014-03-20 Pedro Alves <palves@redhat.com>
7845 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7847 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7848 * infrun.c (saved_singlestep_ptid)
7849 (stepping_past_singlestep_breakpoint): Delete.
7850 (resume): Remove stepping_past_singlestep_breakpoint handling.
7851 (proceed): Store the prev_pc of the stepping thread too.
7852 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7854 (enum infwait_states): Delete infwait_thread_hop_state.
7855 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7857 (handle_inferior_event): Adjust.
7858 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7859 handling and the thread-hop code. Before removing single-step
7860 breakpoints, check whether the thread hit a single-step breakpoint
7861 of another thread. If it did, the trap is not a random signal.
7862 (switch_back_to_stepped_thread): If the event thread hit a
7863 single-step breakpoint, unblock it before switching to the
7864 stepping thread. Handle the case of the stepped thread having
7866 (keep_going): Handle the case of the current thread moving past a
7867 single-step breakpoint.
7869 2014-03-20 Pedro Alves <palves@redhat.com>
7872 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7873 are being stepped over.
7874 (breakpoint_address_match): Make extern.
7875 * breakpoint.h (breakpoint_address_match): New declaration.
7876 * inferior.h (stepping_past_instruction_at): New declaration.
7877 * infrun.c (struct step_over_info): New type.
7878 (step_over_info): New global.
7879 (set_step_over_info, clear_step_over_info)
7880 (stepping_past_instruction_at): New functions.
7881 (handle_inferior_event): Clear the step-over info when
7882 trap_expected is cleared.
7883 (resume): Remove now stale comment.
7884 (clear_proceed_status): Clear step-over info.
7885 (proceed): Adjust step-over handling to set or clear the step-over
7886 info instead of removing all breakpoints.
7887 (handle_signal_stop): When setting up a thread-hop, don't remove
7889 (stop_stepping): Clear step-over info.
7890 (keep_going): Adjust step-over handling to set or clear step-over
7891 info and then always inserting breakpoints, instead of removing
7892 all breakpoints when stepping over one.
7894 2014-03-20 Pedro Alves <palves@redhat.com>
7896 * infrun.c (previous_inferior_ptid): Adjust comment.
7897 (deferred_step_ptid): Delete.
7898 (infrun_thread_ptid_changed, prepare_to_proceed)
7899 (init_wait_for_inferior): Adjust.
7900 (handle_signal_stop): Delete deferred_step_ptid handling.
7902 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7905 * defs.h (sync_quit_force_run): New declaration.
7906 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7907 * event-top.c (async_sigterm_handler): New declaration.
7908 (async_sigterm_token): New variable.
7909 (async_init_signals): Create also async_sigterm_token.
7910 (async_sigterm_handler): New function.
7911 (sync_quit_force_run): New variable.
7912 (handle_sigterm): Replace quit_force call by other calls.
7913 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7915 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7917 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7918 offset into SPE pseudo registers.
7920 2014-03-18 Pedro Alves <palves@redhat.com>
7923 * inferior.h (print_stop_event): Declare.
7924 * infrun.c (print_stop_event): New, factored out from ...
7925 (normal_stop): ... this.
7926 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7927 of bpstat_print/print_stack_frame.
7929 2014-03-17 Tom Tromey <tromey@redhat.com>
7931 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7933 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7935 * ada-lang.c (decode_constrained_packed_array): Perform a
7936 minimal coercion for reference with coerce_ref instead of
7939 2014-03-17 Tristan Gingold <gingold@adacore.com>
7941 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7942 (darwin_solib_create_inferior_hook): Emit a warning if version
7945 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
7947 * python/py-value.c (get_field_flag): Cast flag_name argument to
7948 PyObject_GetAttrString to support Python 2.4.
7950 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7952 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7953 (Global Maintainers): Remove Jan Kratochvil.
7955 2014-03-14 Pedro Alves <palves@redhat.com>
7957 * inferior.h (terminal_ours_for_output): Rename to ...
7958 (child_terminal_ours_for_output): ... this.
7959 (terminal_save_ours): Rename to ...
7960 (child_terminal_save_ours): ... this.
7961 (terminal_ours): Rename to ...
7962 (child_terminal_ours): ... this.
7963 (terminal_inferior): Rename to ...
7964 (child_terminal_inferior): ... this.
7965 (terminal_init_inferior): Rename to ...
7966 (child_terminal_init_inferior): ... this.
7967 (terminal_init_inferior_with_pgrp): Rename to ...
7968 (child_terminal_init_inferior_with_pgrp): ... this.
7969 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7970 (child_terminal_init_with_pgrp): ... this.
7971 (terminal_save_ours): Rename to ...
7972 (child_terminal_save_ours): ... this.
7973 (terminal_init_inferior): Rename to ...
7974 (child_terminal_init): ... this. Adjust.
7975 (terminal_inferior): Rename to ...
7976 (child_terminal_inferior): ... this.
7977 (terminal_ours_for_output): Rename to ...
7978 (child_terminal_ours_for_output): ... this. Adjust.
7979 (terminal_ours): Rename to ...
7980 (child_terminal_ours): ... this.
7981 (terminal_ours_1): Rename to ...
7982 (child_terminal_ours_1): ... this. Adjust.
7983 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7984 * windows-nat.c (do_initial_windows_stuff): Adjust.
7985 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7986 (gnu_terminal_init): ... this. Adjust.
7987 (gnu_target): Adjust.
7988 * inf-child.c (inf_child_target): Adjust.
7990 2014-03-13 Doug Evans <xdje42@gmail.com>
7993 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7996 2014-03-13 Doug Evans <xdje42@gmail.com>
7998 * value.c (record_latest_value): Call release_value_or_incref
7999 instead of release_value.
8001 2014-03-13 Pedro Alves <palves@redhat.com>
8003 * procfs.c (procfs_target): Don't override to_shortname,
8004 to_longname or to_doc.
8006 2014-03-13 Pedro Alves <palves@redhat.com>
8008 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8009 Unix in user visible strings.
8011 2014-03-12 Stan Shebs <stan@codesourcery.com>
8013 * gdbtypes.h: Annotate comments for Doxygen, add a page
8014 block comment with some general info.
8016 2014-03-12 Pedro Alves <palves@redhat.com>
8018 * infcmd.c (prepare_execution_command): New function, factored out
8019 from several execution commands.
8020 (run_command_1, continue_command, step_1, jump_command)
8021 (signal_command, until_command, advance_command, finish_command)
8022 (attach_command): Use prepare_execution_command.
8024 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8026 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8029 (struct arm_linux_thread_points): Removed.
8030 (struct arm_linux_process_info): New.
8031 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8032 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8033 (arm_linux_find_breakpoints_by_tid): Removed.
8034 (struct arch_lwp_info): New.
8035 (arm_linux_find_process_pid): New functions.
8036 (arm_linux_add_process): New functions.
8037 (arm_linux_process_info_get): New functions.
8038 (arm_linux_forget_process): New function.
8039 (arm_linux_get_debug_reg_state): New function.
8040 (struct update_registers_data): New.
8041 (update_registers_callback): New function.
8042 (arm_linux_insert_hw_breakpoint1): Updated.
8043 (arm_linux_remove_hw_breakpoint1): Updated.
8044 (arm_linux_insert_hw_breakpoint): Updated.
8045 (arm_linux_remove_hw_breakpoint): Updated.
8046 (arm_linux_insert_watchpoint): Updated.
8047 (arm_linux_remove_watchpoint): Updated.
8048 (arm_linux_new_thread): Updated.
8049 (arm_linux_prepare_to_resume): New function.
8050 (arm_linux_new_fork): New function.
8051 (_initialize_arm_linux_nat): Updated.
8053 2014-03-12 Pedro Alves <palves@redhat.com>
8055 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8057 2014-03-12 Tom Tromey <tromey@redhat.com>
8059 * inf-child.c (return_zero): New function.
8060 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8061 * aix-thread.c (aix_thread_inferior_created): New function.
8062 (aix_thread_attach): Remove.
8063 (init_aix_thread_ops): Don't set to_attach.
8064 (_initialize_aix_thread): Register inferior_created observer.
8065 * corelow.c (init_core_ops): Don't set to_attach or
8067 * exec.c (init_exec_ops): Don't set to_attach or
8069 * infcmd.c (run_command_1): Use find_run_target. Make direct
8071 (attach_command): Use find_attach_target. Make direct target
8073 * record-btrace.c (init_record_btrace_ops): Don't set
8075 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8077 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8078 set to_create_inferior.
8079 * target.c (complete_target_initialization): Add assertion.
8080 (target_create_inferior): Remove.
8081 (find_default_attach, find_default_create_inferior): Remove.
8082 (find_attach_target, find_run_target): New functions.
8083 (find_default_is_async_p, find_default_can_async_p)
8084 (target_supports_non_stop, target_attach): Remove.
8085 (init_dummy_target): Don't set to_create_inferior or
8086 to_supports_non_stop.
8087 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8088 TARGET_DEFAULT_FUNC.
8089 <to_create_inferior>: Add comment.
8090 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8091 TARGET_DEFAULT_RETURN.
8092 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8093 (find_attach_target, find_run_target): Declare.
8094 (target_create_inferior): Remove.
8095 (target_has_execution_1): Update comment.
8096 (target_supports_non_stop): Remove.
8097 * target-delegates.c: Rebuild.
8099 2014-03-12 Pedro Alves <palves@redhat.com>
8101 * inf-child.h: Update comment to not mention Unix.
8103 2014-03-12 Pedro Alves <palves@redhat.com>
8105 * inf-child.c: Update top comment to not mention Unix. Add
8106 generic comment describing how this target is meant to be used.
8107 (inf_child_post_attach, inf_child_post_startup_inferior)
8108 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8111 2014-03-12 Pedro Alves <palves@redhat.com>
8113 * nto-procfs.c: Include inf-child.h.
8114 (procfs_ops): Delete global.
8115 (procfs_can_run): Delete method.
8116 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8117 target pointer instead of referencing procfs_ops.
8118 (procfs_prepare_to_store): Delete.
8119 (init_procfs_ops): Delete function.
8120 (procfs_target): New function, based on init_procfs_ops, but
8121 inherit inf_child_target.
8122 (_initialize_procfs): Use procfs_target.
8124 2014-03-12 Pedro Alves <palves@redhat.com>
8126 * windows-nat.c: Include inf-child.h.
8127 (windows_ops): Delete global.
8128 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8130 (init_windows_ops): Delete function.
8131 (windows_target): New function, based on init_windows_ops, but
8132 inherit inf_child_target.
8133 (_initialize_windows_nat): Use windows_target. Install x86
8134 specific target methods here.
8136 2014-03-10 Doug Evans <xdje42@gmail.com>
8138 * guile/guile.c (call_initialize_gdb_module): New function.
8139 (initialize_guile): Replace call to scm_init_guile with call to
8142 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8144 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8145 in call to TYPE_CODE macro.
8147 2014-03-10 Jerome Guitton <guitton@adacore.com>
8149 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8150 Resolve tagged types to full view.
8152 2014-03-10 Hui Zhu <hui@codesourcery.com>
8154 * target.h (target_insert_breakpoint): Remove "hardware" from its
8157 2014-03-07 Doug Evans <dje@google.com>
8159 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8161 2014-03-07 Doug Evans <dje@google.com>
8163 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8164 Remove unused local comp_dir_attr. Assert exactly one of
8165 stub_comp_unit_die, stub_comp_dir is non-NULL.
8167 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8169 * target.h (complete_target_initialization, add_target):
8172 2014-03-07 Pedro Alves <palves@redhat.com>
8174 * go32-nat.c: Include inf-child.h.
8175 (go32_ops): Delete global.
8176 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8178 (go32_create_inferior): Push the passed in target pointer instead
8179 of referencing go32_ops.
8180 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8181 (go32_target): New function, based on init_go32_ops, but inherit
8183 (_initialize_go32_nat): Use go32_target. Move parts of
8186 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8188 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8189 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8190 SYMBOL_VALUE_ADDRESS.
8191 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8193 2014-03-06 Yao Qi <yao@codesourcery.com>
8195 * breakpoint.c (get_tracepoint_by_number): Remove argument
8196 optional_p. All callers updated. Adjust comments. Update
8198 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8200 2014-03-06 Yao Qi <yao@codesourcery.com>
8202 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8203 early if get_number returns zero. Use 'p' instead of 'args'.
8205 2014-03-06 Yao Qi <yao@codesourcery.com>
8207 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8210 2014-03-06 Yao Qi <yao@codesourcery.com>
8212 PR breakpoints/16508
8213 * tracepoint.c (check_trace_running): New function.
8214 (trace_find_command): Move code to check_trace_running and
8215 call check_trace_running.
8216 (trace_find_pc_command): Likewise.
8217 (trace_find_tracepoint_command): Likewise.
8218 (trace_find_line_command): Likewise.
8219 (trace_find_range_command): Likewise.
8220 * tracepoint.h (check_trace_running): Likewise.
8221 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8223 2014-03-06 Yao Qi <yao@codesourcery.com>
8225 * target.h (struct target_ops) <to_traceframe_info>: Use
8226 TARGET_DEFAULT_NORETURN (tcomplain ()).
8227 * target-delegates.c: Regenerated.
8229 2014-03-05 Pedro Alves <palves@redhat.com>
8232 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8233 void. Update comment.
8234 (dcache_xfer_memory): Delete.
8235 (dcache_read_memory_partial): New, based on the read bits of
8237 (dcache_update): Add status parameter. Use ULONGEST for len, and
8238 adjust. Discard cache lines if the reason for the update was
8240 * dcache.h (dcache_xfer_memory): Delete declaration.
8241 (dcache_read_memory_partial): New declaration.
8242 (dcache_update): Update prototype.
8243 * target.c (raw_memory_xfer_partial): Update the dcache here.
8244 (memory_xfer_partial_1): Don't handle dcache writes here.
8246 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8248 * remote-sim.c (gdbsim_load): Add const to prog.
8250 2014-03-03 Tom Tromey <tromey@redhat.com>
8252 * elfread.c (probe_key): Change to bfd_data.
8253 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8254 now per-BFD, not per-objfile.
8255 * stap-probe.c (stap_probe_destroy): Update comment.
8256 (handle_stap_probe): Allocate on the per-BFD obstack.
8258 2014-03-03 Tom Tromey <tromey@redhat.com>
8260 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8261 * breakpoint.c (create_longjmp_master_breakpoint): Use
8263 (add_location_to_breakpoint, bkpt_probe_insert_location)
8264 (bkpt_probe_remove_location): Update.
8265 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8266 * elfread.c (elf_symfile_relocate_probe): Remove.
8267 (elf_probe_fns): Update.
8268 (insert_exception_resume_breakpoint): Change type of "probe"
8269 parameter to bound_probe.
8270 (check_exception_resume): Update.
8271 * objfiles.c (objfile_relocate1): Don't relocate probes.
8272 * probe.c (bound_probe_s): New typedef.
8273 (parse_probes): Use get_probe_address. Set sal's objfile.
8274 (find_probe_by_pc): Return a bound_probe.
8275 (collect_probes): Return a VEC(bound_probe_s).
8276 (compare_probes): Update.
8277 (gen_ui_out_table_header_info): Change type of "probes"
8279 (info_probes_for_ops): Update.
8280 (get_probe_address): New function.
8281 (probe_safe_evaluate_at_pc): Update.
8282 * probe.h (struct probe_ops) <get_probe_address>: New field.
8283 <set_semaphore, clear_semaphore>: Add objfile parameter.
8284 (struct probe) <objfile>: Remove field.
8286 <address>: Update comment.
8287 (struct bound_probe): New.
8288 (find_probe_by_pc): Return a bound_probe.
8289 (get_probe_address): Declare.
8290 * solib-svr4.c (struct probe_and_action) <address>: New field.
8291 (hash_probe_and_action, equal_probe_and_action): Update.
8292 (register_solib_event_probe): Add address parameter.
8293 (solib_event_probe_at): Update.
8294 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8296 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8297 (stap_get_probe_address): New function.
8298 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8299 (compile_probe_arg): Update.
8300 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8302 (handle_stap_probe): Don't relocate the probe.
8303 (stap_relocate): Remove.
8304 (stap_gen_info_probes_table_values): Update.
8305 (stap_probe_ops): Remove stap_relocate.
8306 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8307 (debug_sym_probe_fns): Update.
8308 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8309 * symtab.c (init_sal): Use memset.
8310 * symtab.h (struct symtab_and_line) <objfile>: New field.
8311 * tracepoint.c (start_tracing, stop_tracing): Update.
8313 2014-03-03 Tom Tromey <tromey@redhat.com>
8315 * probe.h (parse_probes, find_probe_by_pc)
8316 (find_probes_in_objfile): Fix comments.
8318 2014-03-02 Doug Evans <xdje42@gmail.com>
8320 * infrun.c (handle_signal_stop): Replace test for
8321 TARGET_WAITKIND_STOPPED with an assert.
8323 2014-03-02 Doug Evans <xdje42@gmail.com>
8325 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8327 2014-03-02 Doug Evans <xdje42@gmail.com>
8329 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8331 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8333 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8335 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8337 * i386obsd-nat.c: Include "obsd-nat.h".
8338 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8340 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8342 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8344 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8346 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8348 * mips64obsd-nat.c: Include "obsd-nath".
8349 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8351 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8353 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8355 * amd64obsd-nat.c: Include "obsd-nat,h.
8356 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8358 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8360 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8362 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8363 (find_overload_match): Update call to find_oload_champ.
8364 (find_oload_champ_namespace_loop): Likewise
8366 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8368 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8370 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8371 * config/sparc/obsd64.mh: New file.
8372 * sparc64obsd-nat.c: New file.
8374 * obsd-nat.h: New file.
8375 * obsd-nat.c: New file.
8376 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8377 (ALLDEPFILES): Add obsd-nat.c.
8379 2014-02-28 Tom Tromey <tromey@redhat.com>
8381 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8382 * cli-out.h (cli_ui_out_impl): Now const.
8383 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8384 * ui-out.c (struct ui_out) <impl>: Now const.
8385 (default_ui_out_impl): Now const.
8386 (ui_out_new): Make 'impl' parameter const.
8387 * ui-out.h (ui_out_new): Update.
8389 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8391 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8393 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8395 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8397 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8399 Additional PR 8882 fix.
8400 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8402 2014-02-27 Pedro Alves <palves@redhat.com>
8404 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8407 2014-02-27 Pedro Alves <palves@redhat.com>
8410 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8411 * nat/linux-waitpid.c: Include string.h.
8412 (status_to_str): Moved here and made extern.
8413 * nat/linux-waitpid.h (status_to_str): New declaration.
8415 2014-02-27 Hui Zhu <hui@codesourcery.com>
8418 * infrun.c (ptid_match): Move ...
8419 * common/ptid.c (ptid_match): ... here.
8420 * inferior.h (ptid_match): Move ...
8421 * common/ptid.h (ptid_match): ... here.
8423 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8425 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8426 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8429 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8431 * obsd-tdep.c (obsd_auxv_parse): New function.
8432 (obsd_init_abi): Set auxv_parse.
8434 * gdbarch.sh (auxv_parse): New.
8435 * gdbarch.h: Regenerated.
8436 * gdbarch.c: Regenerated.
8437 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8439 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8441 * guile/scm-value.c (gdbscm_history_append_x): New function.
8442 (value_functions): Add it.
8444 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8446 * dwarf2read.c (attr_value_as_address): New function.
8447 (dwarf2_find_base_address, read_call_site_scope): Use
8448 attr_value_as_address in place of DW_ADDR.
8449 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8450 the low and high addresses. Slight rework of the handling
8451 of the high pc being a constant form, and limit it to
8452 DWARF verson 4 or higher.
8453 (dwarf2_record_block_ranges): Likewise.
8454 (read_partial_die): Likewise.
8455 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8457 2014-02-26 Tom Tromey <tromey@redhat.com>
8459 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8461 2014-02-26 Tom Tromey <tromey@redhat.com>
8463 * elfread.c (elf_read_minimal_symbols): Return early if
8464 minimal symbols have already been read. Add "ei" parameter.
8465 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8466 * minsyms.c (prim_record_minimal_symbol_full): Update.
8467 * objfiles.h (struct objstats) <n_minsyms>: Move...
8468 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8469 * symmisc.c (print_objfile_statistics): Update.
8471 2014-02-26 Tom Tromey <tromey@redhat.com>
8473 * elfread.c (elf_read_minimal_symbols): New function, from
8475 (elf_symfile_read): Call it.
8477 2014-02-26 Tom Tromey <tromey@redhat.com>
8479 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8480 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8481 (lookup_minimal_symbol_solib_trampoline)
8482 (lookup_minimal_symbol_by_pc_section_1)
8483 (lookup_minimal_symbol_and_objfile): Update.
8484 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8485 Don't allocate a minimal symbol if minsyms have already been read.
8486 (build_minimal_symbol_hash_tables): Update.
8487 (install_minimal_symbols): Do nothing if minsyms already read.
8488 Use the per-BFD obstack.
8489 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8490 * objfiles.c (allocate_objfile): Call
8491 terminate_minimal_symbol_table later.
8492 (have_minimal_symbols): Update.
8493 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8494 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8495 Move from struct objfile.
8496 <minsyms_read>: New field.
8497 (struct objfile) <msymbols, minimal_symbol_count,
8498 msymbol_hash, msymbol_demangled_hash>: Move.
8499 (ALL_OBJFILE_MSYMBOLS): Update.
8500 * symfile.c (read_symbols): Set minsyms_read.
8501 (reread_symbols): Update.
8502 * symmisc.c (dump_objfile, dump_msymbols): Update.
8504 2014-02-26 Tom Tromey <tromey@redhat.com>
8506 * minsyms.c (msymbols_sort): Remove.
8507 * minsyms.h (msymbols_sort): Remove.
8508 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8509 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8510 * elfread.c (elf_symtab_read): Don't add section offsets.
8511 * xcoffread.c (record_minimal_symbol): Don't add section offset
8512 to minimal symbol address.
8513 * somread.c (text_offset, data_offset): Remove.
8514 (som_symtab_read): Don't add section offsets to minimal symbol
8516 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8517 Don't add section offsets to minimal symbols.
8518 * coffread.c (coff_symtab_read): Don't add section offsets
8519 to minimal symbol addresses.
8520 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8521 to minimal symbol addresses.
8522 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8523 section offset to minimal symbol addresses.
8524 * mdebugread.c (parse_partial_symbols): Don't add section
8525 offset to minimal symbol addresses.
8526 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8527 offset to minimal symbol addresses.
8529 2014-02-26 Tom Tromey <tromey@redhat.com>
8531 * ada-lang.c (ada_main_name): Update.
8532 (ada_add_standard_exceptions): Update.
8533 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8534 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8535 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8536 * auxv.c (ld_so_xfer_auxv): Update.
8537 * avr-tdep.c (avr_scan_prologue): Update.
8538 * ax-gdb.c (gen_var_ref): Update.
8539 * blockframe.c (get_pc_function_start)
8540 (find_pc_partial_function_gnu_ifunc): Update.
8541 * breakpoint.c (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-valprint.c (c_val_print): Update.
8547 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8548 * common/agent.c (agent_look_up_symbols): Update.
8549 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8550 * dwarf2loc.c (call_site_to_target_addr): Update.
8551 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8552 * elfread.c (elf_gnu_ifunc_record_cache)
8553 (elf_gnu_ifunc_resolve_by_got): Update.
8554 * findvar.c (default_read_var_value): Update.
8555 * frame.c (inside_main_func): Update.
8556 * frv-tdep.c (frv_frame_this_id): Update.
8557 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8558 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8560 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8561 (hppa_hpux_find_dummy_bpaddr): Update.
8562 * hppa-tdep.c (hppa_symbol_address): Update.
8563 * infcmd.c (until_next_command): Update.
8564 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8566 * linespec.c (minsym_found, add_minsym): Update.
8567 * linux-nat.c (get_signo): Update.
8568 * linux-thread-db.c (inferior_has_bug): Update.
8569 * m32c-tdep.c (m32c_return_value)
8570 (m32c_m16c_address_to_pointer): Update.
8571 * m32r-tdep.c (m32r_frame_this_id): Update.
8572 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8573 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8574 * maint.c (maintenance_translate_address): Update.
8575 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8576 (frob_address): New function.
8577 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8578 frob_address. Rename parameter to "pc_in".
8579 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8581 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8583 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8584 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8585 * objc-lang.c (find_objc_msgsend): Update.
8586 * objfiles.c (objfile_relocate1): Update.
8587 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8588 * p-valprint.c (pascal_val_print): Update.
8589 * parse.c (write_exp_msymbol): Update.
8590 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8591 (ppc_elfv2_skip_entrypoint): Update.
8592 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8593 * printcmd.c (build_address_symbolic, msym_info)
8594 (address_info): Update.
8595 * proc-service.c (ps_pglobal_lookup): Update.
8596 * psymtab.c (find_pc_sect_psymtab_closer)
8597 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8598 Change msymbol parameter to bound_minimal_symbol.
8599 * ravenscar-thread.c (get_running_thread_id): Update.
8600 * remote.c (remote_check_symbols): Update.
8601 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8603 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8604 * solib-dsbt.c (lm_base): Update.
8605 * solib-frv.c (lm_base, main_got): Update.
8606 * solib-irix.c (locate_base): Update.
8607 * solib-som.c (som_solib_create_inferior_hook)
8608 (link_map_start): Update.
8609 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8610 * solib-svr4.c (elf_locate_base, enable_break): Update.
8611 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8612 (flush_ea_cache): Update.
8613 * stabsread.c (define_symbol, scan_file_globals): Update.
8614 * stack.c (find_frame_funname): Update.
8615 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8616 (debug_qf_find_pc_sect_symtab): Update.
8617 * symfile.c (simple_read_overlay_table)
8618 (simple_overlay_update): Update.
8619 * symfile.h (struct quick_symbol_functions)
8620 <find_pc_sect_symtab>: Change type of msymbol to
8621 bound_minimal_symbol.
8622 * symmisc.c (dump_msymbols): Update.
8623 * symtab.c (find_pc_sect_symtab_via_partial)
8624 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8625 (search_symbols, print_msymbol_info): Update.
8626 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8627 (MSYMBOL_VALUE_ADDRESS): Redefine.
8628 (BMSYMBOL_VALUE_ADDRESS): New macro.
8629 * tracepoint.c (scope_info): Update.
8630 * tui/tui-disasm.c (tui_find_disassembly_address)
8631 (tui_get_begin_asm_address): Update.
8632 * valops.c (find_function_in_inferior): Update.
8633 * value.c (value_static_field, value_fn_field): Update.
8635 2014-02-26 Tom Tromey <tromey@redhat.com>
8637 * ada-lang.c (ada_update_initial_language): Update.
8638 (ada_main_name, ada_has_this_exception_support): Update.
8639 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8640 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8641 * arm-tdep.c (arm_skip_stub): Update.
8642 * auxv.c (ld_so_xfer_auxv): Update.
8643 * avr-tdep.c (avr_scan_prologue): Update.
8644 * ax-gdb.c (gen_var_ref): Update.
8645 * breakpoint.c (struct breakpoint_objfile_data)
8646 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8647 type to bound_minimal_symbol.
8648 (create_overlay_event_breakpoint)
8649 (create_longjmp_master_breakpoint)
8650 (create_std_terminate_master_breakpoint)
8651 (create_exception_master_breakpoint): Update.
8652 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8653 * c-exp.y (classify_name): Update.
8654 * coffread.c (coff_symfile_read): Update.
8655 * common/agent.c (agent_look_up_symbols): Update.
8656 * d-lang.c (d_main_name): Update.
8657 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8658 * dec-thread.c (enable_dec_thread): Update.
8659 * dwarf2loc.c (call_site_to_target_addr): Update.
8660 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8661 * eval.c (evaluate_subexp_standard): Update.
8662 * findvar.c (struct minsym_lookup_data) <result>: Change type
8663 to bound_minimal_symbol.
8665 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8666 * frame.c (inside_main_func): Update.
8667 * frv-tdep.c (frv_frame_this_id): Update.
8668 * gcore.c (call_target_sbrk): Update.
8669 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8670 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8672 * go-lang.c (go_main_name): Update.
8673 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8674 (hppa_hpux_find_import_stub_for_addr): Update.
8675 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8676 Update. Change return type.
8677 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8679 * jit.c (jit_breakpoint_re_set_internal): Update.
8680 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8682 * linux-nat.c (get_signo): Update.
8683 * linux-thread-db.c (inferior_has_bug): Update
8684 * m32c-tdep.c (m32c_return_value)
8685 (m32c_m16c_address_to_pointer): Update.
8686 * m32r-tdep.c (m32r_frame_this_id): Update.
8687 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8688 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8689 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8690 lookup_minimal_symbol. Change return type.
8691 (lookup_minimal_symbol): Remove.
8692 (lookup_bound_minimal_symbol): Update.
8693 (lookup_minimal_symbol_text): Change return type.
8694 (lookup_minimal_symbol_solib_trampoline): Change return type.
8695 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8696 (lookup_minimal_symbol_solib_trampoline): Change return type.
8697 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8698 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8699 (value_nsstring, find_imps): Update.
8700 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8701 * p-lang.c (pascal_main_name): Update.
8702 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8703 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8704 * proc-service.c (ps_pglobal_lookup): Update.
8705 * ravenscar-thread.c (get_running_thread_msymbol): Change
8707 (has_ravenscar_runtime, get_running_thread_id): Update.
8708 * remote.c (remote_check_symbols): Update.
8709 * sol-thread.c (ps_pglobal_lookup): Update.
8710 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8711 * solib-dsbt.c (lm_base): Update.
8712 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8714 * solib-irix.c (locate_base): Update.
8715 * solib-som.c (som_solib_create_inferior_hook)
8716 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8718 * solib-spu.c (spu_enable_break): Update.
8719 * solib-svr4.c (elf_locate_base, enable_break): Update.
8720 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8721 (flush_ea_cache): Update.
8722 * stabsread.c (define_symbol): Update.
8723 * symfile.c (simple_read_overlay_table): Update.
8724 * symtab.c (find_pc_sect_line): Update.
8725 * tracepoint.c (scope_info): Update.
8726 * tui-disasm.c (tui_get_begin_asm_address): Update.
8727 * value.c (value_static_field): Update.
8729 2014-02-26 Tom Tromey <tromey@redhat.com>
8731 * minsyms.c (prim_record_minimal_symbol_full): Use
8732 SET_MSYMBOL_VALUE_ADDRESS.
8733 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8734 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8735 SET_MSYMBOL_VALUE_ADDRESS.
8736 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8737 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8739 2014-02-26 Tom Tromey <tromey@redhat.com>
8741 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8742 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8743 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8744 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8745 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8746 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8747 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8748 * ada-lang.c (ada_main_name): Update.
8749 (ada_lookup_simple_minsym): Update.
8750 (ada_make_symbol_completion_list): Update.
8751 (ada_add_standard_exceptions): Update.
8752 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8753 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8754 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8755 * arm-tdep.c (skip_prologue_function): Update.
8756 (arm_skip_stack_protector, arm_skip_stub): Update.
8757 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8758 (arm_wince_skip_main_prologue): Update.
8759 * auxv.c (ld_so_xfer_auxv): Update.
8760 * avr-tdep.c (avr_scan_prologue): Update.
8761 * ax-gdb.c (gen_var_ref): Update.
8762 * block.c (call_site_for_pc): Update.
8763 * blockframe.c (get_pc_function_start): Update.
8764 (find_pc_partial_function_gnu_ifunc): Update.
8765 * breakpoint.c (create_overlay_event_breakpoint): Update.
8766 (create_longjmp_master_breakpoint): Update.
8767 (create_std_terminate_master_breakpoint): Update.
8768 (create_exception_master_breakpoint): Update.
8769 (resolve_sal_pc): Update.
8770 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8771 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8773 * c-valprint.c (c_val_print): Update.
8774 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8775 * coffread.c (coff_symfile_read): Update.
8776 * common/agent.c (agent_look_up_symbols): Update.
8777 * dbxread.c (find_stab_function_addr): Update.
8778 (end_psymtab): Update.
8779 * dwarf2loc.c (call_site_to_target_addr): Update.
8780 (func_verify_no_selftailcall): Update.
8781 (tailcall_dump): Update.
8782 (call_site_find_chain_1): Update.
8783 (dwarf_expr_reg_to_entry_parameter): Update.
8784 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8785 (elf_gnu_ifunc_resolve_by_got): Update.
8786 * f-valprint.c (info_common_command): Update.
8787 * findvar.c (read_var_value): Update.
8788 * frame.c (get_prev_frame_1): Update.
8789 (inside_main_func): Update.
8790 * frv-tdep.c (frv_skip_main_prologue): Update.
8791 (frv_frame_this_id): Update.
8792 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8793 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8794 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8795 (gnuv3_skip_trampoline): Update.
8796 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8797 (hppa64_hpux_in_solib_call_trampoline): Update.
8798 (hppa_hpux_skip_trampoline_code): Update.
8799 (hppa64_hpux_search_dummy_call_sequence): Update.
8800 (hppa_hpux_find_import_stub_for_addr): Update.
8801 (hppa_hpux_find_dummy_bpaddr): Update.
8802 * hppa-tdep.c (hppa_symbol_address)
8803 (hppa_lookup_stub_minimal_symbol): Update.
8804 * i386-tdep.c (i386_skip_main_prologue): Update.
8805 (i386_pe_skip_trampoline_code): Update.
8806 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8807 * infcall.c (get_function_name): Update.
8808 * infcmd.c (until_next_command): Update.
8809 * jit.c (jit_breakpoint_re_set_internal): Update.
8810 (jit_inferior_init): Update.
8811 * linespec.c (minsym_found): Update.
8812 (add_minsym): Update.
8813 * linux-fork.c (info_checkpoints_command): Update.
8814 * linux-nat.c (get_signo): Update.
8815 * linux-thread-db.c (inferior_has_bug): Update.
8816 * m32c-tdep.c (m32c_return_value): Update.
8817 (m32c_m16c_address_to_pointer): Update.
8818 (m32c_m16c_pointer_to_address): Update.
8819 * m32r-tdep.c (m32r_frame_this_id): Update.
8820 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8821 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8822 * maint.c (maintenance_translate_address): Update.
8823 * minsyms.c (add_minsym_to_hash_table): Update.
8824 (add_minsym_to_demangled_hash_table): Update.
8825 (msymbol_objfile): Update.
8826 (lookup_minimal_symbol): Update.
8827 (iterate_over_minimal_symbols): Update.
8828 (lookup_minimal_symbol_text): Update.
8829 (lookup_minimal_symbol_by_pc_name): Update.
8830 (lookup_minimal_symbol_solib_trampoline): Update.
8831 (lookup_minimal_symbol_by_pc_section_1): Update.
8832 (lookup_minimal_symbol_and_objfile): Update.
8833 (prim_record_minimal_symbol_full): Update.
8834 (compare_minimal_symbols): Update.
8835 (compact_minimal_symbols): Update.
8836 (build_minimal_symbol_hash_tables): Update.
8837 (install_minimal_symbols): Update.
8838 (terminate_minimal_symbol_table): Update.
8839 (find_solib_trampoline_target): Update.
8840 (minimal_symbol_upper_bound): Update.
8841 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8842 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8843 (mips_skip_pic_trampoline_code): Update.
8844 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8845 * objc-lang.c (selectors_info): Update.
8846 (classes_info): Update.
8847 (find_methods): Update.
8848 (find_imps): Update.
8849 (find_objc_msgsend): Update.
8850 * objfiles.c (objfile_relocate1): Update.
8851 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8852 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8853 * p-valprint.c (pascal_val_print): Update.
8854 * parse.c (write_exp_msymbol): Update.
8855 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8856 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8857 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8858 * printcmd.c (build_address_symbolic): Update.
8860 (address_info): Update.
8861 * proc-service.c (ps_pglobal_lookup): Update.
8862 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8863 (find_pc_sect_psymtab): Update.
8864 * python/py-framefilter.c (py_print_frame): Update.
8865 * ravenscar-thread.c (get_running_thread_id): Update.
8866 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8868 * remote.c (remote_check_symbols): Update.
8869 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8870 (rs6000_skip_trampoline_code): Update.
8871 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8872 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8873 * solib-dsbt.c (lm_base): Update.
8874 * solib-frv.c (lm_base): Update.
8876 * solib-irix.c (locate_base): Update.
8877 * solib-som.c (som_solib_create_inferior_hook): Update.
8878 (som_solib_desire_dynamic_linker_symbols): Update.
8879 (link_map_start): Update.
8880 * solib-spu.c (spu_enable_break): Update.
8881 (ocl_enable_break): Update.
8882 * solib-svr4.c (elf_locate_base): Update.
8883 (enable_break): Update.
8884 * spu-tdep.c (spu_get_overlay_table): Update.
8885 (spu_catch_start): Update.
8886 (flush_ea_cache): Update.
8887 * stabsread.c (define_symbol): Update.
8888 (scan_file_globals): Update.
8889 * stack.c (find_frame_funname): Update.
8890 (frame_info): Update.
8891 * symfile.c (simple_read_overlay_table): Update.
8892 (simple_overlay_update): Update.
8893 * symmisc.c (dump_msymbols): Update.
8894 * symtab.c (fixup_section): Update.
8895 (find_pc_sect_line): Update.
8896 (skip_prologue_sal): Update.
8897 (search_symbols): Update.
8898 (print_msymbol_info): Update.
8899 (rbreak_command): Update.
8900 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8901 (completion_list_objc_symbol): Update.
8902 (default_make_symbol_completion_list_break_on): Update.
8903 * tracepoint.c (scope_info): Update.
8904 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8905 (tui_get_begin_asm_address): Update.
8906 * valops.c (find_function_in_inferior): Update.
8907 * value.c (value_static_field): Update.
8908 (value_fn_field): Update.
8910 2014-02-26 Tom Tromey <tromey@redhat.com>
8912 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8913 bound minimal symbols. Move code that knows about minsym
8915 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8917 * minsyms.h (minimal_symbol_upper_bound): Declare.
8918 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8919 minimal_symbol_upper_bound.
8921 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8923 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8924 Use the type's name if its basic type does not have a tag.
8926 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8928 * dwarf2read.c (read_subrange_type): Add comment.
8930 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8932 * dwarf2read.c (update_enumeration_type_from_children): New
8933 function, mostly extracted from process_structure_scope.
8934 (read_enumeration_type): Call update_enumeration_type_from_children.
8935 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8936 and flag_flag_enum fields.
8938 2014-02-26 Pedro Alves <palves@redhat.com>
8940 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8941 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8942 to_xfer_partial method.
8944 2014-02-26 Pedro Alves <palves@redhat.com>
8946 * target.c (complete_target_initialization): Don't install
8947 default_xfer_partial as to_xfer_partial hook.
8949 (update_current_target): Don't INHERIT nor de_fault
8950 deprecated_xfer_memory. Delete de_fault macro.
8951 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8952 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8953 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8956 2014-02-26 Pedro Alves <palves@redhat.com>
8958 * go32-nat.c (my_write_child): New function.
8959 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8960 (go32_xfer_partial): New function.
8961 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8962 Instead install a to_xfer_partial hook.
8964 2014-02-26 Pedro Alves <palves@redhat.com>
8966 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8967 to_xfer_partial helper. Rewrite.
8968 (procfs_xfer_partial): New function.
8969 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8970 Install a to_xfer_partial hook.
8972 2014-02-26 Pedro Alves <palves@redhat.com>
8974 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8975 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8976 (m32r_xfer_partial): New function.
8977 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8978 Install a to_xfer_partial hook.
8980 2014-02-26 Pedro Alves <palves@redhat.com>
8982 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8984 (mips_xfer_partial): New function.
8985 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8986 hook. Install a to_xfer_partial hook.
8988 2014-02-26 Joel Brobecker <brobecker@adacore.com>
8990 * gdbtypes.h (create_array_type_with_stride): Add declaration.
8991 * gdbtypes.c (create_array_type_with_stride): New function,
8992 renaming create_array_type, but with an added parameter
8993 called "bit_stride".
8994 (create_array_type): Re-implement using
8995 create_array_type_with_stride.
8996 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8997 and DW_AT_bit_stride attributes.
8999 2014-02-26 Pedro Alves <palves@redhat.com>
9001 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9002 task-specific breakpoints.
9004 2014-02-25 Pedro Alves <palves@redhat.com>
9006 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9007 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9009 2014-02-25 Stan Shebs <stan@codesourcery.com>
9011 * defs.h: Annotate comments for Doxygen.
9013 2014-02-25 Tom Tromey <tromey@redhat.com>
9015 * target.h (target_ignore): Don't declare.
9016 * target.c (target_ignore): Remove.
9018 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9021 * auto-load.c (auto_load_objfile_script_1): Change filename to
9024 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9026 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9027 documentation. Adjust prototype to match the target_ops
9028 to_xfer_partial method. Adjust implementation accordingly.
9030 2014-02-25 Hui Zhu <hui@codesourcery.com>
9032 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9035 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9037 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9038 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9039 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9040 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9041 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9042 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9043 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9044 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9046 (rl78_register_type): Use a data pointer type for SP and
9047 new pseudo registers mentioned above. Use a 16 bit integer
9048 type for all other register pairs.
9049 (rl78_register_name, rl78_g10_register_name): Update for
9050 new pseudo registers.
9051 (rl78_pseudo_register_read): Likewise.
9052 (rl78_pseudo_register_write): Likewise.
9053 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9054 to the newly added pseudo registers.
9056 2014-02-24 Doug Evans <dje@google.com>
9058 * value.c (record_latest_value): Fix comment.
9059 * printcmd.c (print_command_1): Remove code to handle -1 return from
9060 record_latest_value.
9062 2014-02-24 Pedro Alves <palves@redhat.com>
9064 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9065 deprecated_xfer_memory hook.
9066 (procfs_xfer_partial): Call procfs_xfer_memory instead
9067 of the deprecated_xfer_memory target hook.
9068 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9071 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9073 * windows-nat.c (windows_xfer_shared_libraries): Return
9074 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9075 requested object is TARGET_OBJECT_LIBRARIES.
9077 2014-02-24 Yao Qi <yao@codesourcery.com>
9079 * target.h (enum target_xfer_status)
9080 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9081 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9083 * corefile.c (memory_error_message): User updated.
9084 * exec.c (section_table_read_available_memory): Likewise.
9085 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9086 * target.c (target_xfer_status_to_string): Likewise.
9087 (raw_memory_xfer_partial): Likewise.
9088 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9089 * valops.c (read_value_memory): Likewise.
9090 * exec.h: Update comments.
9092 2014-02-24 Yao Qi <yao@codesourcery.com>
9094 * target.c (target_xfer_status_to_string): Rename argument err
9096 * target.h (target_xfer_status_to_string): Update declaration.
9097 Replace target_xfer_error_to_string with
9098 target_xfer_status_to_string in comment.
9100 2014-02-24 Yao Qi <yao@codesourcery.com>
9102 * mips-linux-nat.c (super_close): Update its type.
9103 (mips_linux_close): Pass 'self' to super_close.
9105 2014-02-24 Yao Qi <yao@codesourcery.com>
9107 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9108 * corefile.c (read_memory): Adjusted.
9109 * target.c (target_write_with_progress): Adjusted.
9111 2014-02-23 Yao Qi <yao@codesourcery.com>
9115 2013-10-25 Yao Qi <yao@codesourcery.com>
9117 * remote.c (remote_traceframe_info): Return early if
9118 traceframe is not selected.
9120 2013-07-19 Yao Qi <yao@codesourcery.com>
9122 * target.c (update_current_target): Change the default action
9123 of 'to_traceframe_info' from tcomplain to return_zero.
9124 * target.h (struct target_ops) <to_traceframe_info>: Add more
9127 2014-02-23 Yao Qi <yao@codesourcery.com>
9129 * valops.c (read_value_memory): Rewrite it. Call
9130 target_xfer_partial in a loop.
9131 * exec.h (section_table_available_memory): Remove declaration.
9132 Move comments to ...
9133 * exec.c (section_table_available_memory): ... here. Make it
9136 2014-02-23 Yao Qi <yao@codesourcery.com>
9138 * exec.c (section_table_read_available_memory): New function.
9139 * exec.h (section_table_read_available_memory): Declare.
9140 * ctf.c (ctf_xfer_partial): Call
9141 section_table_read_available_memory.
9142 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9144 2014-02-23 Yao Qi <yao@codesourcery.com>
9146 * ctf.c (ctf_xfer_partial): Move code to ...
9147 * exec.c (exec_read_partial_read_only): ... it. New function.
9148 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9149 * tracefile.c: Include "exec.h".
9150 * exec.h (exec_read_partial_read_only): Declare.
9152 2014-02-23 Yao Qi <yao@codesourcery.com>
9154 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9155 (tfile_has_memory): Remove.
9156 (init_tfile_ops): Don't set fields to_has_all_memory and
9157 to_has_memory of tfile_ops.
9158 * tracefile.c (tracefile_has_all_memory): New function.
9159 (tracefile_has_memory): New function.
9160 (init_tracefile_ops): Initialize fields to_has_all_memory and
9161 to_has_memory of 'ops'.
9163 2014-02-23 Yao Qi <yao@codesourcery.com>
9165 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9166 (ctf_thread_alive, ctf_get_trace_status): Remove.
9167 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9169 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9170 (tfile_has_stack, tfile_has_registers): Remove.
9171 (tfile_thread_alive): Remove.
9172 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9174 * tracefile.c (tracefile_has_stack): New function.
9175 (tracefile_has_registers): New function.
9176 (tracefile_thread_alive): New function.
9177 (tracefile_get_trace_status): New function.
9178 (init_tracefile_ops): New function.
9179 * tracefile.h (init_tracefile_ops): Declare.
9181 2014-02-23 Yao Qi <yao@codesourcery.com>
9183 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9184 (O_LARGEFILE): Likewise.
9185 (tfile_ops): Likewise.
9186 (TRACE_HEADER_SIZE): Likewise.
9187 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9188 (cur_data_size): Likewise.
9189 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9190 (tfile_close, tfile_files_info): Likewise.
9191 (tfile_get_trace_status): Likewise.
9192 (tfile_get_tracepoint_status): Likewise.
9193 (tfile_get_traceframe_address): Likewise.
9194 (tfile_trace_find, match_blocktype): Likewise.
9195 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9196 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9197 (tfile_get_trace_state_variable_value): Likewise.
9198 (tfile_has_all_memory, tfile_has_memory): Likewise.
9199 (tfile_has_stack, tfile_has_registers): Likewise.
9200 (tfile_thread_alive, build_traceframe_info): Likewise.
9201 (tfile_traceframe_info, init_tfile_ops): Likewise.
9202 (_initialize_tracepoint): Don't call init_tfile_ops
9203 and add_target_with_completer.
9204 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9205 exec.h, completer.h and filenames.h.
9206 (_initialize_tracefile_tfile): New function.
9208 2014-02-23 Yao Qi <yao@codesourcery.com>
9210 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9212 (HFILES_NO_SRCDIR): Add tracefile.h.
9213 * ctf.c: Include "tracefile.h".
9214 * tracefile.h: New file.
9215 * tracefile.c: New file
9216 * tracefile-tfile.c: New file.
9217 * tracepoint.c: Include "tracefile.h".
9218 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9219 (stop_reason_names): Add const.
9220 (trace_file_writer_xfree): Move it to tracefile.c.
9221 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9222 (trace_save_ctf): Likewise.
9223 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9224 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9225 (tfile_write_header, tfile_write_regblock_type): Likewise.
9226 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9227 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9228 (tfile_write_raw_data, tfile_end): Likewise.
9229 (tfile_trace_file_writer_new): Likewise.
9230 (free_uploaded_tp): Make it extern.
9231 (free_uploaded_tsv): Make it extern.
9232 (_initialize_tracepoint): Move code to register command 'tsave'
9234 * tracepoint.h (stop_reason_names): Declare.
9235 (struct trace_frame_write_ops): Move it to tracefile.h.
9236 (struct trace_file_write_ops): Likewise.
9237 (struct trace_file_writer): Likewise.
9238 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9240 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9243 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9245 (get_cores_used_by_process): New parameter num_cores, use it.
9246 (linux_xfer_osdata_processes): Pass num_cores to it.
9247 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9250 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9252 * target.c (memory_xfer_partial): Fix length arg in call to
9253 breakpoint_xfer_memory.
9255 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9258 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9259 number comes after the + or - signs. Adjust length of register
9260 name to be extracted.
9262 2014-02-20 Tom Tromey <tromey@redhat.com>
9264 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9265 (ada_varobj_ops): Mark "extern".
9267 2014-02-20 Tom Tromey <tromey@redhat.com>
9269 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9271 2014-02-20 Doug Evans <xdje42@gmail.com>
9273 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9274 All callers updated.
9275 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9276 All callers updated.
9277 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9278 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9280 2014-02-20 lin zuojian <manjian2006@gmail.com>
9281 Joel Brobecker <brobecker@adacore.com>
9282 Doug Evans <xdje42@gmail.com>
9285 * dwarf2read.c (struct die_info): New member in_process.
9286 (reset_die_in_process): New function.
9287 (process_die): Set it at the start, reset when returning.
9288 (inherit_abstract_dies): Only call process_die if origin_child_die
9289 not already being processed.
9291 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9293 * windows-nat.c (handle_unload_dll): Add function documentation.
9294 (do_initial_windows_stuff): Add comment explaining why we wait
9295 until after inferior initialization has finished before
9296 processing all DLLs.
9298 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9300 * windows-nat.c (get_module_name): Delete.
9301 (windows_get_exec_module_filename): New function, mostly
9302 inspired from get_module_name.
9303 (windows_pid_to_exec_file): Replace call to get_module_name
9304 by call to windows_get_exec_module_filename.
9306 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9308 * windows-nat.c (handle_load_dll): Rewrite this function's
9309 introductory comment. Remove code using get_module_name
9310 to get the DLL's name.
9312 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9314 * windows-nat.c (get_windows_debug_event): Ignore
9315 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9316 if windows_initialization_done == 0.
9317 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9318 Adjust implementation to always load all DLLs.
9319 (do_initial_windows_stuff): Replace call to
9320 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9322 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9324 * windows-nat.c (_initialize_windows_nat): Deprecate the
9325 "dll-symbols" command. Turn the "add-shared-symbol-files"
9326 and "assf" aliases into commands, and deprecate them as well.
9327 * NEWS: Add entry explaining that "dll-symbols" and its two
9328 aliases are now deprecated.
9330 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9332 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9333 new-line in debug string. Remove trailing spaces.
9335 2014-02-19 Stan Shebs <stan@codesourcery.com>
9337 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9339 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9341 * NEWS: Add entry for the new feature
9342 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9345 2014-02-19 Stan Shebs <stan@codesourcery.com>
9347 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9349 2014-02-19 Pedro Alves <palves@redhat.com>
9351 * common/ptid.h (struct ptid): Mention that process_stratum
9352 targets should prefer ptid.lwp.
9354 2014-02-19 Pedro Alves <palves@redhat.com>
9356 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9357 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9358 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9359 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9360 store remote thread ids rather than ptid.tid.
9361 (_initialize_remote): Adjust.
9363 2014-02-19 Tom Tromey <tromey@redhat.com>
9365 * target.c (target_get_unwinder): Rewrite.
9366 (target_get_tailcall_unwinder): Rewrite.
9367 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9368 (record_btrace_to_get_tailcall_unwinder): New function.
9369 (init_record_btrace_ops): Update.
9370 * target.h (struct target_ops) <to_get_unwinder,
9371 to_get_tailcall_unwinder>: Now function pointers. Use
9372 TARGET_DEFAULT_RETURN.
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9376 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9378 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9384 * target-delegates.c: Rebuild.
9385 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9386 TARGET_DEFAULT_FUNC.
9387 * target.c (default_target_decr_pc_after_break): Rename from
9388 forward_target_decr_pc_after_break. Simplify.
9389 (target_decr_pc_after_break): Rely on delegation.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target.c (update_current_target): Do not INHERIT to_doc or
9394 to_magic. Do not de_fault to_open or to_close.
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9398 * gcore.h (objfile_find_memory_regions): Declare.
9399 * gcore.c (objfile_find_memory_regions): No longer static. Add
9401 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9402 * exec.c: Include gcore.h.
9403 (exec_set_find_memory_regions): Remove.
9404 (exec_find_memory_regions): Remove.
9405 (exec_do_find_memory_regions): Remove.
9406 (init_exec_ops): Update.
9407 * defs.h (exec_set_find_memory_regions): Remove.
9409 2014-02-19 Tom Tromey <tromey@redhat.com>
9411 * target-delegates.c: Rebuild.
9412 * target.h (struct target_ops) <to_extra_thread_info,
9413 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9414 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9415 not 0, in TARGET_DEFAULT_RETURN.
9417 2014-02-19 Tom Tromey <tromey@redhat.com>
9419 * target.c (complete_target_initialization): Remove casts. Use
9420 return_zero_has_execution.
9421 (return_zero): Add "ignore" argument.
9422 (return_zero_has_execution): New function.
9423 (init_dummy_target): Remove casts. Use
9424 return_zero_has_execution.
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target.c (update_current_target): Update comments. Do not
9431 2014-02-19 Tom Tromey <tromey@redhat.com>
9433 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9435 * corelow.c (core_read_description): Delegate when needed.
9436 * remote.c (remote_read_description): Delegate when needed.
9437 * target-delegates.c: Rebuild.
9438 * target.c (target_read_description): Rewrite.
9439 * target.h (struct target_ops) <to_read_description>: Update
9440 comment. Use TARGET_DEFAULT_RETURN.
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target-delegates.c: Rebuild.
9445 * target.c (update_current_target): Don't inherit or default
9447 (find_default_run_target): Check against delegate_can_run.
9448 * target.h (struct target_ops) <to_can_run>: Use
9449 TARGET_DEFAULT_RETURN.
9451 2014-02-19 Tom Tromey <tromey@redhat.com>
9453 * target-delegates.c: Rebuild.
9454 * target.c (target_disconnect): Unconditionally delegate.
9455 * target.h (struct target_ops) <to_disconnect>: Use
9456 TARGET_DEFAULT_NORETURN.
9458 2014-02-19 Tom Tromey <tromey@redhat.com>
9460 * record.c (record_stop): Unconditionally delegate.
9461 * target-delegates.c: Rebuild.
9462 * target.c (target_stop_recording): Unconditionally delegate.
9463 * target.h (struct target_ops) <to_stop_recording>: Use
9464 TARGET_DEFAULT_IGNORE.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target-delegates.c: Rebuild.
9469 * target.c (target_enable_btrace): Unconditionally delegate.
9470 * target.h (struct target_ops) <to_enable_btrace>: Use
9471 TARGET_DEFAULT_NORETURN.
9473 2014-02-19 Tom Tromey <tromey@redhat.com>
9475 * target-delegates.c: Rebuild.
9476 * target.c (target_read_btrace): Unconditionally delegate.
9477 * target.h (struct target_ops) <to_read_btrace>: Use
9478 TARGET_DEFAULT_NORETURN.
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9482 * target-delegates.c: Rebuild.
9483 * target.c (target_teardown_btrace): Unconditionally delegate.
9484 * target.h (struct target_ops) <to_teardown_btrace>: Use
9485 TARGET_DEFAULT_NORETURN.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * target-delegates.c: Rebuild.
9490 * target.c (target_disable_btrace): Unconditionally delegate.
9491 * target.h (struct target_ops) <to_disable_btrace>: Use
9492 TARGET_DEFAULT_NORETURN.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target-delegates.c: Rebuild.
9497 * target.c (default_search_memory): New function.
9498 (simple_search_memory): Update comment.
9499 (target_search_memory): Unconditionally delegate.
9500 * target.h (struct target_ops) <to_search_memory>: Use
9501 TARGET_DEFAULT_FUNC.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * auxv.c (default_auxv_parse): No longer static.
9506 (target_auxv_parse): Unconditionally delegate.
9507 * auxv.h (default_auxv_parse): Declare.
9508 * target-delegates.c: Rebuild.
9509 * target.c: Include auxv.h.
9510 * target.h (struct target_ops) <to_auxv_parse>: Use
9511 TARGET_DEFAULT_FUNC.
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9515 * target-delegates.c: Rebuild.
9516 * target.c (target_memory_map): Unconditionally delegate.
9517 * target.h (struct target_ops) <to_memory_map>: Use
9518 TARGET_DEFAULT_RETURN.
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target-delegates.c: Rebuild.
9523 * target.c (target_thread_alive): Unconditionally delegate.
9524 * target.h (struct target_ops) <to_thread_alive>: Use
9525 TARGET_DEFAULT_RETURN.
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9529 * target-delegates.c: Rebuild.
9530 * target.c (target_save_record): Unconditionally delegate.
9531 * target.h (struct target_ops) <to_save_record>: Use
9532 TARGET_DEFAULT_NORETURN.
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9536 * target-delegates.c: Rebuild.
9537 * target.c (target_delete_record): Unconditionally delegate.
9538 * target.h (struct target_ops) <to_delete_record>: Use
9539 TARGET_DEFAULT_NORETURN.
9541 2014-02-19 Tom Tromey <tromey@redhat.com>
9543 * target-delegates.c: Rebuild.
9544 * target.c (target_record_is_replaying): Unconditionally
9546 * target.h (struct target_ops) <to_record_is_replaying>: Use
9547 TARGET_DEFAULT_RETURN.
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9551 * target-delegates.c: Rebuild.
9552 * target.c (target_goto_record_begin): Unconditionally delegate.
9553 * target.h (struct target_ops) <to_goto_record_begin>: Use
9554 TARGET_DEFAULT_NORETURN.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target-delegates.c: Rebuild.
9559 * target.c (target_goto_record_end): Unconditionally delegate.
9560 * target.h (struct target_ops) <to_goto_record_end>: Use
9561 TARGET_DEFAULT_NORETURN.
9563 2014-02-19 Tom Tromey <tromey@redhat.com>
9565 * target-delegates.c: Rebuild.
9566 * target.c (target_goto_record): Unconditionally delegate.
9567 * target.h (struct target_ops) <to_goto_record>: Use
9568 TARGET_DEFAULT_NORETURN.
9570 2014-02-19 Tom Tromey <tromey@redhat.com>
9572 * target-delegates.c: Rebuild.
9573 * target.c (target_insn_history): Unconditionally delegate.
9574 * target.h (struct target_ops) <to_insn_history>: Use
9575 TARGET_DEFAULT_NORETURN.
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9579 * target-delegates.c: Rebuild.
9580 * target.c (target_insn_history_from): Unconditionally delegate.
9581 * target.h (struct target_ops) <to_insn_history_from>: Use
9582 TARGET_DEFAULT_NORETURN.
9584 2014-02-19 Tom Tromey <tromey@redhat.com>
9586 * target-delegates.c: Rebuild.
9587 * target.c (target_insn_history_range): Unconditionally delegate.
9588 * target.h (struct target_ops) <to_insn_history_range>: Use
9589 TARGET_DEFAULT_NORETURN.
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9593 * target-delegates.c: Rebuild.
9594 * target.c (target_call_history): Unconditionally delegate.
9595 * target.h (struct target_ops) <to_call_history>: Use
9596 TARGET_DEFAULT_NORETURN.
9598 2014-02-19 Tom Tromey <tromey@redhat.com>
9600 * target-delegates.c: Rebuild.
9601 * target.c (target_call_history_from): Unconditionally delegate.
9602 * target.h (struct target_ops) <to_call_history_from>: Use
9603 TARGET_DEFAULT_NORETURN.
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9607 * target-delegates.c: Rebuild.
9608 * target.c (target_call_history_range): Unconditionally delegate.
9609 * target.h (struct target_ops) <to_call_history_range>: Use
9610 TARGET_DEFAULT_NORETURN.
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9614 * target-delegates.c: Rebuild.
9615 * target.c (target_verify_memory): Unconditionally delegate.
9616 * target.h (struct target_ops) <to_verify_memory>: Use
9617 TARGET_DEFAULT_NORETURN.
9619 2014-02-19 Tom Tromey <tromey@redhat.com>
9621 * target-delegates.c: Rebuild.
9622 * target.c (target_core_of_thread): Unconditionally delegate.
9623 * target.h (struct target_ops) <to_core_of_thread>: Use
9624 TARGET_DEFAULT_RETURN.
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9628 * target-delegates.c: Rebuild.
9629 * target.c (target_flash_done): Unconditionally delegate.
9630 * target.h (struct target_ops) <to_flash_done>: Use
9631 TARGET_DEFAULT_NORETURN.
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * target-delegates.c: Rebuild.
9636 * target.c (target_flash_erase): Unconditionally delegate.
9637 * target.h (struct target_ops) <to_flash_erase>: Use
9638 TARGET_DEFAULT_NORETURN.
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9642 * target-delegates.c: Rebuild.
9643 * target.c (target_get_section_table): Unconditionally delegate.
9644 * target.h (struct target_ops) <to_get_section_table>: Use
9645 TARGET_DEFAULT_RETURN.
9647 2014-02-19 Tom Tromey <tromey@redhat.com>
9649 * target-delegates.c: Rebuild.
9650 * target.c (target_pid_to_str): Unconditionally delegate.
9651 (init_dummy_target): Don't initialize to_pid_to_str.
9652 (default_pid_to_str): Rename from dummy_pid_to_str.
9653 * target.h (struct target_ops) <to_pid_to_str>: Use
9654 TARGET_DEFAULT_FUNC.
9656 2014-02-19 Tom Tromey <tromey@redhat.com>
9658 * target-delegates.c: Rebuild.
9659 * target.c (target_find_new_threads): Unconditionally delegate.
9660 * target.h (struct target_ops) <to_find_new_threads>: Use
9661 TARGET_DEFAULT_RETURN.
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target-delegates.c: Rebuild.
9666 * target.c (target_program_signals): Unconditionally delegate.
9667 * target.h (struct target_ops) <to_program_signals>: Use
9668 TARGET_DEFAULT_IGNORE.
9670 2014-02-19 Tom Tromey <tromey@redhat.com>
9672 * target-delegates.c: Rebuild.
9673 * target.c (target_pass_signals): Unconditionally delegate.
9674 * target.h (struct target_ops) <to_pass_signals>: Use
9675 TARGET_DEFAULT_IGNORE.
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * target-delegates.c: Rebuild.
9680 * target.c (default_mourn_inferior): New function.
9681 (target_mourn_inferior): Unconditionally delegate.
9682 * target.h (struct target_ops) <to_mourn_inferior>: Use
9683 TARGET_DEFAULT_FUNC.
9685 2014-02-19 Tom Tromey <tromey@redhat.com>
9687 * target-delegates.c: Rebuild.
9688 * target.c (default_follow_fork): New function.
9689 (target_follow_fork): Unconditionally delegate.
9690 * target.h (struct target_ops) <to_follow_fork>: Use
9691 TARGET_DEFAULT_FUNC.
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9695 * target-delegates.c: Rebuild.
9696 * target.c (target_kill): Unconditionally delegate.
9697 * target.h (struct target_ops) <to_kill>: Use
9698 TARGET_DEFAULT_NORETURN.
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9702 * target-delegates.c: Rebuild.
9703 * target.c (target_masked_watch_num_registers): Unconditionally
9705 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9706 Use TARGET_DEFAULT_RETURN.
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9710 * target-delegates.c: Rebuild.
9711 * target.c (target_remove_mask_watchpoint): Unconditionally
9713 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9714 TARGET_DEFAULT_RETURN.
9716 2014-02-19 Tom Tromey <tromey@redhat.com>
9718 * target-delegates.c: Rebuild.
9719 * target.c (target_insert_mask_watchpoint): Unconditionally
9721 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9722 TARGET_DEFAULT_RETURN.
9724 2014-02-19 Tom Tromey <tromey@redhat.com>
9726 * target-delegates.c: Rebuild.
9727 * target.c (target_ranged_break_num_registers): Unconditionally
9729 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9730 Use TARGET_DEFAULT_RETURN.
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9734 * target-delegates.c: Rebuild.
9735 * target.c (target_fetch_registers): Unconditionally delegate.
9736 * target.h (struct target_ops) <to_fetch_registers>: Use
9737 TARGET_DEFAULT_NORETURN.
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
9744 * target.h (struct target_ops) <to_stop>: 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_can_run_breakpoint_commands.
9752 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9753 Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
9760 * target.h (struct target_ops)
9761 <to_supports_evaluation_of_breakpoint_conditions>: Use
9762 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_augmented_libraries_svr4_read.
9769 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9770 Use TARGET_DEFAULT_RETURN.
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
9777 * target.h (struct target_ops) <to_can_use_agent>: Use
9778 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
9785 * target.h (struct target_ops) <to_use_agent>: Use
9786 TARGET_DEFAULT_NORETURN.
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 (return_null): Remove.
9794 * target.h (struct target_ops) <to_traceframe_info>: Use
9795 TARGET_DEFAULT_RETURN.
9797 2014-02-19 Tom Tromey <tromey@redhat.com>
9799 * target-delegates.c: Rebuild.
9800 * target.c (update_current_target): Don't inherit or default
9801 to_static_tracepoint_markers_by_strid.
9802 * target.h (struct target_ops)
9803 <to_static_tracepoint_markers_by_strid>: Use
9804 TARGET_DEFAULT_NORETURN.
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9808 * target-delegates.c: Rebuild.
9809 * target.c (update_current_target): Don't inherit or default
9810 to_static_tracepoint_marker_at.
9811 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9812 Use TARGET_DEFAULT_RETURN.
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9816 * target-delegates.c: Rebuild.
9817 * target.c (update_current_target): Don't inherit or default
9819 * target.h (struct target_ops) <to_set_permissions>: Use
9820 TARGET_DEFAULT_IGNORE.
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * target-delegates.c: Rebuild.
9825 * target.c (update_current_target): Don't inherit or default
9827 * target.h (struct target_ops) <to_get_tib_address>: Use
9828 TARGET_DEFAULT_NORETURN.
9830 2014-02-19 Tom Tromey <tromey@redhat.com>
9832 * target-delegates.c: Rebuild.
9833 * target.c (update_current_target): Don't inherit or default
9835 * target.h (struct target_ops) <to_set_trace_notes>: Use
9836 TARGET_DEFAULT_RETURN.
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9840 * target-delegates.c: Rebuild.
9841 * target.c (update_current_target): Don't initialize
9842 to_set_trace_buffer_size.
9843 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9844 TARGET_DEFAULT_IGNORE.
9846 2014-02-19 Tom Tromey <tromey@redhat.com>
9848 * target-delegates.c: Rebuild.
9849 * target.c (update_current_target): Don't inherit or default
9850 to_set_circular_trace_buffer.
9851 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9852 TARGET_DEFAULT_IGNORE.
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9856 * target-delegates.c: Rebuild.
9857 * target.c (update_current_target): Don't inherit or default
9858 to_set_disconnected_tracing.
9859 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9860 TARGET_DEFAULT_IGNORE.
9862 2014-02-19 Tom Tromey <tromey@redhat.com>
9864 * target-delegates.c: Rebuild.
9865 * target.c (update_current_target): Don't inherit or default
9866 to_get_min_fast_tracepoint_insn_len.
9867 (return_minus_one): Remove.
9868 * target.h (struct target_ops)
9869 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9871 2014-02-19 Tom Tromey <tromey@redhat.com>
9873 * target-delegates.c: Rebuild.
9874 * target.c (update_current_target): Don't inherit or default
9875 to_get_raw_trace_data.
9876 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9877 TARGET_DEFAULT_NORETURN.
9879 2014-02-19 Tom Tromey <tromey@redhat.com>
9881 * target-delegates.c: Rebuild.
9882 * target.c (update_current_target): Don't inherit or default
9883 to_upload_trace_state_variables.
9884 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9885 Use TARGET_DEFAULT_RETURN.
9887 2014-02-19 Tom Tromey <tromey@redhat.com>
9889 * target-delegates.c: Rebuild.
9890 * target.c (update_current_target): Don't inherit or default
9891 to_upload_tracepoints.
9892 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9893 TARGET_DEFAULT_RETURN.
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9897 * target-delegates.c: Rebuild.
9898 * target.c (update_current_target): Don't inherit or default
9900 * target.h (struct target_ops) <to_save_trace_data>: Use
9901 TARGET_DEFAULT_NORETURN.
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target-delegates.c: Rebuild.
9906 * target.c (update_current_target): Don't inherit or default
9907 to_get_trace_state_variable_value.
9908 * target.h (struct target_ops)
9909 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9911 2014-02-19 Tom Tromey <tromey@redhat.com>
9913 * target-delegates.c: Rebuild.
9914 * target.c (update_current_target): Don't inherit or default
9916 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target-delegates.c: Rebuild.
9921 * target.c (update_current_target): Don't inherit or default
9923 * target.h (struct target_ops) <to_trace_stop>: Use
9924 TARGET_DEFAULT_NORETURN.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * target-delegates.c: Rebuild.
9929 * target.c (update_current_target): Don't inherit or default
9930 to_get_tracepoint_status.
9931 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9932 TARGET_DEFAULT_NORETURN.
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9936 * target-delegates.c: Rebuild.
9937 * target.c (update_current_target): Don't inherit or default
9938 to_get_trace_status.
9939 * target.h (struct target_ops) <to_get_trace_status>: Use
9940 TARGET_DEFAULT_RETURN.
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9944 * target-delegates.c: Rebuild.
9945 * target.c (update_current_target): Don't inherit or default
9947 * target.h (struct target_ops) <to_trace_start>: Use
9948 TARGET_DEFAULT_NORETURN.
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * target-delegates.c: Rebuild.
9953 * target.c (update_current_target): Don't inherit or default
9954 to_trace_set_readonly_regions.
9955 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9956 Use TARGET_DEFAULT_NORETURN.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target-delegates.c: Rebuild.
9961 * target.c (update_current_target): Don't inherit or default
9962 to_disable_tracepoint.
9963 * target.h (struct target_ops) <to_disable_tracepoint>: Use
9964 TARGET_DEFAULT_NORETURN.
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9968 * target-delegates.c: Rebuild.
9969 * target.c (update_current_target): Don't inherit or default
9970 to_enable_tracepoint.
9971 * target.h (struct target_ops) <to_enable_tracepoint>: Use
9972 TARGET_DEFAULT_NORETURN.
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9976 * target-delegates.c: Rebuild.
9977 * target.c (update_current_target): Don't inherit or default
9978 to_download_trace_state_variable.
9979 * target.h (struct target_ops) <to_download_trace_state_variable>:
9980 Use TARGET_DEFAULT_NORETURN.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * target-delegates.c: Rebuild.
9985 * target.c (update_current_target): Don't inherit or default
9986 to_can_download_tracepoint.
9987 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9988 TARGET_DEFAULT_RETURN.
9990 2014-02-19 Tom Tromey <tromey@redhat.com>
9992 * target-delegates.c: Rebuild.
9993 * target.c (update_current_target): Don't inherit or default
9994 to_download_tracepoint.
9995 * target.h (struct target_ops) <to_download_tracepoint>: Use
9996 TARGET_DEFAULT_NORETURN.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target-delegates.c: Rebuild.
10001 * target.c (update_current_target): Don't inherit or default
10003 * target.h (struct target_ops) <to_trace_init>: Use
10004 TARGET_DEFAULT_RETURN.
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't inherit or default
10010 to_supports_string_tracing.
10011 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10012 TARGET_DEFAULT_RETURN.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_supports_enable_disable_tracepoint.
10019 * target.h (struct target_ops)
10020 <to_supports_enable_disable_tracepoint>: Use
10021 TARGET_DEFAULT_RETURN.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target-delegates.c: Rebuild.
10026 * target.c (update_current_target): Don't inherit or default
10027 to_supports_multi_process.
10028 * target.h (struct target_ops) <to_supports_multi_process>: Use
10029 TARGET_DEFAULT_RETURN.
10031 2014-02-19 Tom Tromey <tromey@redhat.com>
10033 * target-delegates.c: Rebuild.
10034 * target.c (update_current_target): Don't inherit or default
10035 to_get_ada_task_ptid.
10036 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10037 TARGET_DEFAULT_FUNC.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target-delegates.c: Rebuild.
10042 * target.c (update_current_target): Don't inherit or default
10043 to_thread_architecture.
10044 * target.h (struct target_ops) <to_thread_architecture>: Use
10045 TARGET_DEFAULT_FUNC.
10047 2014-02-19 Tom Tromey <tromey@redhat.com>
10049 * target-delegates.c: Rebuild.
10050 * target.c (update_current_target): Don't inherit or default
10051 to_execution_direction.
10052 * target.h (struct target_ops) <to_execution_direction>: Use
10053 TARGET_DEFAULT_FUNC.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * target-delegates.c: Rebuild.
10058 * target.c (update_current_target): Don't inherit or default
10059 to_can_execute_reverse.
10060 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10061 TARGET_DEFAULT_RETURN.
10062 (target_can_execute_reverse): Unconditionally delegate.
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target-delegates.c: Rebuild.
10067 * target.c (update_current_target): Don't inherit or default
10069 (dummy_goto_bookmark): Remove.
10070 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10071 * target.h (struct target_ops) <to_goto_bookmark>: Use
10072 TARGET_DEFAULT_NORETURN.
10074 2014-02-19 Tom Tromey <tromey@redhat.com>
10076 * target-delegates.c: Rebuild.
10077 * target.c (update_current_target): Don't inherit or default
10079 (dummy_get_bookmark): Remove.
10080 (init_dummy_target): Don't inherit or default to_get_bookmark.
10081 * target.h (struct target_ops) <to_get_bookmark>: Use
10082 TARGET_DEFAULT_NORETURN
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10086 * target-delegates.c: Rebuild.
10087 * target.c (update_current_target): Don't inherit or default
10088 to_make_corefile_notes.
10089 (init_dummy_target): Don't initialize to_make_corefile_notes.
10090 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10091 TARGET_DEFAULT_FUNC.
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target-delegates.c: Rebuild.
10096 * target.c (update_current_target): Don't inherit or default
10097 to_find_memory_regions.
10098 (init_dummy_target): Don't initialize to_find_memory_regions.
10099 * target.h (struct target_ops) <to_find_memory_regions>: Use
10100 TARGET_DEFAULT_FUNC.
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_log_command>: Use
10108 TARGET_DEFAULT_IGNORE.
10109 (target_log_command): Unconditionally delegate.
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10113 * target-delegates.c: Rebuild.
10114 * target.c (update_current_target): Don't inherit or default
10115 to_pid_to_exec_file.
10116 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10117 TARGET_DEFAULT_RETURN.
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * target-delegates.c: Rebuild.
10122 * target.c (update_current_target): Don't inherit or default
10124 (target_thread_name): Unconditionally delegate.
10125 * target.h (struct target_ops) <to_thread_name>: Use
10126 TARGET_DEFAULT_RETURN.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * target-delegates.c: Rebuild.
10131 * target.c (update_current_target): Don't inherit or default
10132 to_extra_thread_info.
10133 * target.h (struct target_ops) <to_extra_thread_info>: Use
10134 TARGET_DEFAULT_RETURN.
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10138 * target-delegates.c: Rebuild.
10139 * target.c (update_current_target): Don't inherit or default
10141 * target.h (struct target_ops) <to_has_exited>: Use
10142 TARGET_DEFAULT_RETURN..
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target-delegates.c: Rebuild.
10147 * target.c (update_current_target): Don't inherit or default
10148 to_set_syscall_catchpoint.
10149 (return_one): Remove.
10150 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10151 TARGET_DEFAULT_RETURN.
10153 2014-02-19 Tom Tromey <tromey@redhat.com>
10155 * target-delegates.c: Rebuild.
10156 * target.c (update_current_target): Don't inherit or default
10157 to_insert_exec_catchpoint.
10158 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10159 TARGET_DEFAULT_RETURN.
10161 2014-01-08 Tom Tromey <tromey@redhat.com>
10163 * target-delegates.c: Rebuild.
10164 * target.c (update_current_target): Don't inherit or default
10165 to_insert_exec_catchpoint.
10166 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10167 TARGET_DEFAULT_RETURN.
10169 2014-02-19 Tom Tromey <tromey@redhat.com>
10171 * target-delegates.c: Rebuild.
10172 * target.c (update_current_target): Don't inherit or default
10173 to_remove_vfork_catchpoint.
10174 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10175 TARGET_DEFAULT_RETURN.
10177 2014-02-19 Tom Tromey <tromey@redhat.com>
10179 * target-delegates.c: Rebuild.
10180 * target.c (update_current_target): Don't inherit or default
10181 to_insert_vfork_catchpoint.
10182 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10183 TARGET_DEFAULT_RETURN.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10189 to_remove_fork_catchpoint.
10190 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10191 TARGET_DEFAULT_RETURN.
10193 2014-02-19 Tom Tromey <tromey@redhat.com>
10195 * target-delegates.c: Rebuild.
10196 * target.c (update_current_target): Don't inherit or default
10197 to_insert_fork_catchpoint.
10198 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10199 TARGET_DEFAULT_RETURN.
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target-delegates.c: Rebuild.
10204 * target.c (update_current_target): Don't inherit or default
10205 to_post_startup_inferior.
10206 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10207 TARGET_DEFAULT_IGNORE.
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10211 * target-delegates.c: Rebuild.
10212 * target.c (update_current_target): Don't inherit or default
10214 * target.h (struct target_ops) <to_load>: Use
10215 TARGET_DEFAULT_NORETURN.
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10219 * target-delegates.c: Rebuild.
10220 * target.c (update_current_target): Don't inherit or default
10222 * target.h (struct target_ops) <to_terminal_info>: Use
10223 TARGET_DEFAULT_FUNC.
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10227 * target-delegates.c: Rebuild.
10228 * target.c (update_current_target): Don't inherit or default
10229 to_terminal_save_ours.
10230 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10231 TARGET_DEFAULT_IGNORE.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target-delegates.c: Rebuild.
10236 * target.c (update_current_target): Don't inherit or default
10238 * target.h (struct target_ops) <to_terminal_ours>: Use
10239 TARGET_DEFAULT_IGNORE.
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target-delegates.c: Rebuild.
10244 * target.c (update_current_target): Don't inherit or default
10245 to_terminal_ours_for_output.
10246 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10247 TARGET_DEFAULT_IGNORE.
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target-delegates.c: Rebuild.
10252 * target.c (update_current_target): Don't inherit or default
10253 to_terminal_inferior.
10254 * target.h (struct target_ops) <to_terminal_inferior>: Use
10255 TARGET_DEFAULT_IGNORE.
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10259 * target-delegates.c: Rebuild.
10260 * target.c (update_current_target): Don't inherit or default
10262 * target.h (struct target_ops) <to_terminal_init>: Use
10263 TARGET_DEFAULT_IGNORE.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target-delegates.c: Rebuild.
10268 * target.c (update_current_target): Don't inherit or default
10269 to_can_accel_watchpoint_condition.
10270 * target.h (struct target_ops)
10271 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target-delegates.c: Rebuild.
10276 * target.c (update_current_target): Don't inherit or default
10277 to_region_ok_for_hw_watchpoint.
10278 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10279 Use TARGET_DEFAULT_FUNC.
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * target-delegates.c: Rebuild.
10284 * target.c (update_current_target): Don't inherit or default
10285 to_watchpoint_addr_within_range.
10286 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10287 Use TARGET_DEFAULT_FUNC.
10289 2014-02-19 Tom Tromey <tromey@redhat.com>
10291 * target-delegates.c: Rebuild.
10292 * target.c (update_current_target): Don't inherit or default
10293 to_remove_watchpoint.
10294 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10295 TARGET_DEFAULT_NORETURN.
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10299 * target-delegates.c: Rebuild.
10300 * target.c (update_current_target): Don't inherit or default
10301 to_insert_watchpoint.
10302 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10303 TARGET_DEFAULT_RETURN.
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10307 * target-delegates.c: Rebuild.
10308 * target.c (update_current_target): Don't inherit or default
10309 to_remove_hw_breakpoint.
10310 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10311 TARGET_DEFAULT_RETURN.
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10315 * target-delegates.c: Rebuild.
10316 * target.c (update_current_target): Don't inherit or default
10317 to_insert_hw_breakpoint.
10318 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10319 TARGET_DEFAULT_RETURN.
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10323 * target-delegates.c: Rebuild.
10324 * target.c (update_current_target): Don't inherit or default
10325 to_can_use_hw_breakpoint.
10326 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10327 TARGET_DEFAULT_RETURN.
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target-delegates.c: Rebuild.
10332 * target.c (update_current_target): Don't inherit or default
10334 * target.h (struct target_ops) <to_files_info>: Use
10335 TARGET_DEFAULT_IGNORE.
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10339 * target-delegates.c: Rebuild.
10340 * target.c (update_current_target): Don't inherit or default
10342 * target.h (struct target_ops) <to_store>: Use
10343 TARGET_DEFAULT_NORETURN.
10345 2014-02-19 Tom Tromey <tromey@redhat.com>
10347 * target-delegates.c: Rebuild.
10348 * target.c (update_current_target): Don't inherit or default
10350 * target.h (struct target_ops) <to_post_attach>: Use
10351 TARGET_DEFAULT_IGNORE.
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10355 * target-delegates.c: Rebuild.
10356 * target.c (update_current_target): Don't inherit or default
10358 (default_rcmd): New function.
10359 (do_monitor_command): Unconditionally delegate.
10360 * target.h (struct target_ops) <to_rmcd>: Use
10361 TARGET_DEFAULT_FUNC.
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10365 * target-delegates.c: Rebuild.
10366 * target.c (init_dummy_target): Don't initialize to_attach.
10367 (target_attach): Unconditionally delegate.
10368 * target.h (struct target_ops) <to_attach>: Use
10369 TARGET_DEFAULT_FUNC.
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10373 * target-delegates.c: Rebuild.
10374 * target.c (target_detach): Unconditionally delegate.
10375 (init_dummy_target): Don't initialize to_detach.
10376 * target.h (struct target_ops) <to_detach>: Use
10377 TARGET_DEFAULT_IGNORE.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10383 (target_augmented_libraries_svr4_read): Add argument.
10384 * target.c (update_current_target): Update.
10385 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10390 * target.h (struct target_ops) <to_call_history_range>: Add
10392 * target.c (target_call_history_range): Add argument.
10393 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10395 (record_btrace_call_history_from): Update.
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10399 * target.h (struct target_ops) <to_call_history_from>: Add
10401 * target.c (target_call_history_from): Add argument.
10402 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10407 * target.h (struct target_ops) <to_call_history>: Add argument.
10408 * target.c (target_call_history): Add argument.
10409 * record-btrace.c (record_btrace_call_history): Add 'self'
10412 2014-02-19 Tom Tromey <tromey@redhat.com>
10414 * target.h (struct target_ops) <to_insn_history_range>: Add
10416 * target.c (target_insn_history_range): Add argument.
10417 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10419 (record_btrace_insn_history_from): Update.
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10423 * target.h (struct target_ops) <to_insn_history_from>: Add
10425 * target.c (target_insn_history_from): Add argument.
10426 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10431 * target.h (struct target_ops) <to_insn_history>: Add argument.
10432 * target.c (target_insn_history): Add argument.
10433 * record-btrace.c (record_btrace_insn_history): Add 'self'
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target.h (struct target_ops) <to_goto_record>: Add argument.
10439 * target.c (target_goto_record): Add argument.
10440 * record-full.c (record_full_goto): Add 'self' argument.
10441 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10446 * target.c (target_goto_record_end): Add argument.
10447 * record-full.c (record_full_goto_end): Add 'self' argument.
10448 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10452 * target.h (struct target_ops) <to_goto_record_begin>: Add
10454 * target.c (target_goto_record_begin): Add argument.
10455 * record-full.c (record_full_goto_begin): Add 'self' argument.
10456 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10461 * target.h (struct target_ops) <to_record_is_replaying>: Add
10463 * target.c (target_record_is_replaying): Add argument.
10464 * record-full.c (record_full_is_replaying): Add 'self' argument.
10465 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10467 (record_btrace_xfer_partial, record_btrace_store_registers)
10468 (record_btrace_prepare_to_store, record_btrace_resume)
10469 (record_btrace_wait, record_btrace_decr_pc_after_break)
10470 (record_btrace_find_new_threads, record_btrace_thread_alive):
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10475 * target.h (struct target_ops) <to_delete_record>: Add argument.
10476 * target.c (target_delete_record): Add argument.
10477 * record-full.c (record_full_delete): Add 'self' argument.
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10481 * target.h (struct target_ops) <to_save_record>: Add argument.
10482 * target.c (target_save_record): Add argument.
10483 * record-full.c (record_full_save): Add 'self' argument.
10484 (record_full_save): Add 'self' argument.
10486 2014-02-19 Tom Tromey <tromey@redhat.com>
10488 * target.h (struct target_ops) <to_info_record>: Add argument.
10489 * target.c (target_info_record): Add argument.
10490 * record.c (info_record_command): Add argument.
10491 * record-full.c (record_full_info): Add 'self' argument.
10492 * record-btrace.c (record_btrace_info): Add 'self' argument.
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10496 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10497 * target.c (target_stop_recording): Add argument.
10498 * record.c (record_stop): Add argument.
10499 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10505 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10506 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10508 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10509 (_initialize_amd64_linux_nat): Use it.
10510 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10511 (_initialize_i386_linux_nat): Use it.
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10516 * target.c (target_teardown_btrace): Add argument.
10517 * remote.c (remote_teardown_btrace): Add 'self' argument.
10518 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10520 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10525 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10526 * target.c (target_disable_btrace): Add argument.
10527 * remote.c (remote_disable_btrace): Add 'self' argument.
10528 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10530 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10535 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10536 * target.c (target_enable_btrace): Add argument.
10537 * remote.c (remote_enable_btrace): Add 'self' argument.
10538 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10540 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10546 (target_can_use_agent): Add argument.
10547 * target.c (update_current_target): Update.
10548 * remote.c (remote_can_use_agent): Add 'self' argument.
10549 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10553 * target.h (struct target_ops) <to_use_agent>: Add argument.
10554 (target_use_agent): Add argument.
10555 * target.c (update_current_target): Update.
10556 * remote.c (remote_use_agent): Add 'self' argument.
10557 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10561 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10562 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10563 (target_traceframe_info): Add argument.
10564 * target.c (update_current_target): Update.
10565 * remote.c (remote_traceframe_info): Add 'self' argument.
10566 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10570 * target.h (target_static_tracepoint_markers_by_strid): Add
10572 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10574 * target.c (update_current_target): Update.
10575 * remote.c (struct target_ops)
10576 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10577 * linux-nat.c (struct target_ops)
10578 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10580 2014-02-19 Tom Tromey <tromey@redhat.com>
10582 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10584 (target_static_tracepoint_marker_at): Add argument.
10585 * target.c (update_current_target): Update.
10586 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10592 (target_set_permissions): Add argument.
10593 * target.c (update_current_target): Update.
10594 * remote.c (remote_set_permissions): Add 'self' argument.
10595 (remote_start_remote): Update.
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10599 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10600 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10601 (target_get_tib_address): Add argument.
10602 * target.c (update_current_target): Update.
10603 * remote.c (remote_get_tib_address): Add 'self' argument.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10608 (target_set_trace_notes): Add argument.
10609 * target.c (update_current_target): Update.
10610 * remote.c (remote_set_trace_notes): Add 'self' argument.
10612 2014-02-19 Tom Tromey <tromey@redhat.com>
10614 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10616 (target_set_trace_buffer_size): Add argument.
10617 * target.c (update_current_target): Update.
10618 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10620 2014-02-19 Tom Tromey <tromey@redhat.com>
10622 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10624 (target_set_circular_trace_buffer): Add argument.
10625 * target.c (update_current_target): Update.
10626 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10631 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10633 (target_set_disconnected_tracing): Add argument.
10634 * target.c (update_current_target): Update.
10635 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10639 * target.h (struct target_ops)
10640 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10641 (target_get_min_fast_tracepoint_insn_len): Add argument.
10642 * target.c (update_current_target): Update.
10643 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10650 (target_get_raw_trace_data): Add argument.
10651 * target.c (update_current_target): Update.
10652 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10656 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10658 (target_upload_trace_state_variables): Add argument.
10659 * target.c (update_current_target): Update.
10660 * remote.c (remote_upload_trace_state_variables): Add 'self'
10662 (remote_start_remote): Update.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10668 (target_upload_tracepoints): Add argument.
10669 * target.c (update_current_target): Update.
10670 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10671 (remote_start_remote): Update.
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10675 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10676 (target_save_trace_data): Add argument.
10677 * target.c (update_current_target): Update.
10678 * remote.c (remote_save_trace_data): Add 'self' argument.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10684 * target.h (struct target_ops)
10685 <to_get_trace_state_variable_value>: Add argument.
10686 (target_get_trace_state_variable_value): Add argument.
10687 * target.c (update_current_target): Update.
10688 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10690 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10692 2014-02-19 Tom Tromey <tromey@redhat.com>
10694 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10695 * target.h (struct target_ops) <to_trace_find>: Add argument.
10696 (target_trace_find): Add argument.
10697 * target.c (update_current_target): Update.
10698 * remote.c (remote_trace_find): Add 'self' argument.
10699 * ctf.c (ctf_trace_find): Add 'self' argument.
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10703 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10704 (target_trace_stop): Add argument.
10705 * target.c (update_current_target): Update.
10706 * remote.c (remote_trace_stop): Add 'self' argument.
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10710 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10711 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10713 (target_get_tracepoint_status): Add argument.
10714 * target.c (update_current_target): Update.
10715 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10717 2014-02-19 Tom Tromey <tromey@redhat.com>
10719 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10720 * target.h (struct target_ops) <to_get_trace_status>: Add
10722 (target_get_trace_status): Add argument.
10723 * target.c (update_current_target): Update.
10724 * remote.c (remote_get_trace_status): Add 'self' argument.
10725 (remote_start_remote, remote_can_download_tracepoint): Update.
10726 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target.h (struct target_ops) <to_trace_start>: Add argument.
10731 (target_trace_start): Add argument.
10732 * target.c (update_current_target): Update.
10733 * remote.c (remote_trace_start): Add 'self' argument.
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10737 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10739 (target_trace_set_readonly_regions): Add argument.
10740 * target.c (update_current_target): Update.
10741 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10748 (target_disable_tracepoint): Add argument.
10749 * target.c (update_current_target): Update.
10750 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10754 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10756 (target_enable_tracepoint): Add argument.
10757 * target.c (update_current_target): Update.
10758 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10760 2014-02-19 Tom Tromey <tromey@redhat.com>
10762 * target.h (struct target_ops) <to_download_trace_state_variable>:
10764 (target_download_trace_state_variable): Add argument.
10765 * target.c (update_current_target): Update.
10766 * remote.c (remote_download_trace_state_variable): Add 'self'
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10771 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10773 (target_can_download_tracepoint): Add argument.
10774 * target.c (update_current_target): Update.
10775 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10779 * target.h (struct target_ops) <to_download_tracepoint>: Add
10781 (target_download_tracepoint): Add argument.
10782 * target.c (update_current_target): Update.
10783 * remote.c (remote_download_tracepoint): Add 'self' argument.
10785 2014-02-19 Tom Tromey <tromey@redhat.com>
10787 * target.h (struct target_ops) <to_trace_init>: Add argument.
10788 (target_trace_init): Add argument.
10789 * target.c (update_current_target): Update.
10790 * remote.c (remote_trace_init): Add 'self' argument.
10792 2014-02-19 Tom Tromey <tromey@redhat.com>
10794 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10795 * target.c (target_fileio_readlink): Add argument.
10796 * remote.c (remote_hostio_readlink): Add 'self' argument.
10797 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10802 * target.c (target_fileio_unlink): Add argument.
10803 * remote.c (remote_hostio_unlink): Add 'self' argument.
10804 (remote_file_delete): Update.
10805 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10807 2014-02-19 Tom Tromey <tromey@redhat.com>
10809 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10810 * target.c (target_fileio_close): Add argument.
10811 * remote.c (remote_hostio_close): Add 'self' argument.
10812 (remote_hostio_close_cleanup): Update.
10813 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10815 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10820 * target.c (target_fileio_pread): Add argument.
10821 * remote.c (remote_hostio_pread): Add 'self' argument.
10822 (remote_bfd_iovec_pread, remote_file_get): Update.
10823 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10827 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10828 * target.c (target_fileio_pwrite): Add argument.
10829 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10830 (remote_file_put): Update.
10831 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10836 * target.c (target_fileio_open): Add argument.
10837 * remote.c (remote_hostio_open): Add 'self' argument.
10838 (remote_bfd_iovec_open): Add 'self' argument.
10839 (remote_file_put): Add 'self' argument.
10840 (remote_file_get): Add 'self' argument.
10841 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10843 2014-02-19 Tom Tromey <tromey@redhat.com>
10845 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10847 (target_can_run_breakpoint_commands): Add argument.
10848 * target.c (update_current_target): Update.
10849 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10851 (remote_insert_breakpoint): Add 'self' argument.
10852 (remote_insert_hw_breakpoint): Add 'self' argument.
10853 (remote_can_run_breakpoint_commands): Add 'self' argument.
10855 2014-02-19 Tom Tromey <tromey@redhat.com>
10857 * target.h (struct target_ops)
10858 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10859 (target_supports_evaluation_of_breakpoint_conditions): Add
10861 * target.c (update_current_target): Update.
10862 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10864 (remote_insert_breakpoint): Add 'self' argument.
10865 (remote_insert_hw_breakpoint): Add 'self' argument.
10866 (remote_supports_cond_breakpoints): Add 'self' argument.
10868 2014-02-19 Tom Tromey <tromey@redhat.com>
10870 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10872 (target_supports_string_tracing): Add argument.
10873 * target.c (update_current_target): Update.
10874 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10876 2014-02-19 Tom Tromey <tromey@redhat.com>
10878 * target.h (struct target_ops)
10879 <to_supports_disable_randomization>: Add argument.
10880 * target.c (find_default_supports_disable_randomization): Add
10882 (target_supports_disable_randomization): Add argument.
10883 (find_default_supports_disable_randomization): Add 'self'
10885 * remote.c (extended_remote_supports_disable_randomization): Add
10887 (remote_supports_disable_randomization): Add 'self' argument.
10888 (extended_remote_create_inferior): Update.
10889 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target.h (struct target_ops)
10895 <to_supports_enable_disable_tracepoint>: Add argument.
10896 (target_supports_enable_disable_tracepoint): Add argument.
10897 * target.c (update_current_target): Update.
10898 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10901 2014-02-19 Tom Tromey <tromey@redhat.com>
10903 * target.h (struct target_ops) <to_supports_multi_process>: Add
10905 (target_supports_multi_process): Add argument.
10906 * target.c (update_current_target): Update.
10907 * remote.c (remote_supports_multi_process): Add 'self' argument.
10908 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10910 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * target.h (struct target_ops) <to_execution_direction>: Add
10917 (target_execution_direction): Add argument.
10918 * target.c (default_execution_direction): Add 'self' argument.
10919 * record-full.c (record_full_execution_direction): Add 'self'
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10926 (target_can_execute_reverse): Add argument.
10927 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10928 * record-full.c (record_full_can_execute_reverse): Add 'self'
10930 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10933 2014-02-19 Tom Tromey <tromey@redhat.com>
10935 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10936 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10938 (target_get_ada_task_ptid): Add argument.
10939 * target.c (update_current_target): Update.
10940 (default_get_ada_task_ptid): Add 'self' argument.
10941 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10942 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10943 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10945 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10947 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10949 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10951 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10952 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10955 2014-02-19 Tom Tromey <tromey@redhat.com>
10957 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10958 (target_goto_bookmark): Add argument.
10959 * target.c (dummy_goto_bookmark): Add 'self' argument.
10960 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10965 (target_get_bookmark): Add argument.
10966 * target.c (dummy_get_bookmark): Add 'self' argument.
10967 * record-full.c (record_full_get_bookmark): Add 'self' argument.
10969 2014-02-19 Tom Tromey <tromey@redhat.com>
10971 * target.h (struct target_ops) <to_make_corefile_notes>: Add
10973 (target_make_corefile_notes): Add argument.
10974 * target.c (dummy_make_corefile_notes): Add 'self' argument.
10975 * procfs.c (procfs_make_note_section): Add 'self' argument.
10976 (procfs_make_note_section): Add 'self' argument.
10977 (procfs_make_note_section): Add 'self' argument.
10978 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10980 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10981 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10982 * exec.c (exec_make_note_section): Add 'self' argument.
10983 (exec_make_note_section): Add 'self' argument.
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10987 * target.h (struct target_ops) <to_find_memory_regions>: Add
10989 (target_find_memory_regions): Add argument.
10990 * target.c (dummy_find_memory_regions): Add 'self' argument.
10991 * procfs.c (proc_find_memory_regions): Add 'self' argument.
10992 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10993 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10994 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10995 * exec. (exec_do_find_memory_regions): New global.
10996 (exec_set_find_memory_regions): Rewrite.
10997 (exec_find_memory_regions): New function.
10998 (init_exec_ops): Use exec_find_memory_regions.
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target.h (struct target_ops) <to_supports_non_stop>: Add
11004 * target.c (find_default_supports_non_stop): Add argument.
11005 (target_supports_non_stop): Add argument.
11006 (find_default_supports_non_stop): Add 'self' argument.
11007 * remote.c (remote_supports_non_stop): Add 'self' argument.
11008 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target.h (struct target_ops) <to_log_command>: Add argument.
11013 (target_log_command): Add argument.
11014 * serial.h (serial_log_command): Add 'self' argument.
11015 * serial.c (serial_log_command): Add 'self' argument.
11017 2014-02-19 Tom Tromey <tromey@redhat.com>
11019 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11020 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11022 (target_pid_to_exec_file): Add argument.
11023 * target.c (debug_to_pid_to_exec_file): Add argument.
11024 (update_current_target): Update.
11025 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11026 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11027 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11028 (linux_handle_extended_wait): Update.
11029 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11030 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11031 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11032 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target.h (struct target_ops) <to_rcmd>: Add argument.
11037 (target_rcmd): Add argument.
11038 * target.c (debug_to_rcmd): Add argument.
11039 (update_current_target, do_monitor_command): Update.
11040 * remote.c (remote_rcmd): Add 'self' argument.
11041 * monitor.c (monitor_rcmd): Add 'self' argument.
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * windows-nat.c (windows_stop): Add 'self' argument.
11046 * target.h (struct target_ops) <to_stop>: Add argument.
11047 * target.c (target_stop): Add argument.
11048 (debug_to_stop): Add argument.
11049 (update_current_target): Update.
11050 * remote.c (remote_stop): Add 'self' argument.
11051 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11052 (gdbsim_cntrl_c): Update.
11053 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11054 * procfs.c (procfs_stop): Add 'self' argument.
11055 * nto-procfs.c (procfs_stop): Add 'self' argument.
11056 * monitor.c (monitor_stop): Add 'self' argument.
11057 (monitor_open): Update.
11058 * linux-nat.c (linux_nat_stop): Add argument.
11059 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11060 * gnu-nat.c (gnu_stop): Add 'self' argument.
11061 * darwin-nat.c (darwin_stop): Add 'self' argument.
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11065 * target.h (struct target_ops) <to_thread_name>: Add argument.
11066 * target.c (target_thread_name): Add argument.
11067 (update_current_target): Update.
11068 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11072 * target.h (struct target_ops) <to_extra_thread_info>: Add
11074 (target_extra_thread_info): Add argument.
11075 * target.c (update_current_target): Update.
11076 * remote.c (remote_threads_extra_info): Add 'self' argument.
11077 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11079 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11080 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11081 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11083 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11085 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11087 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11090 2014-02-19 Tom Tromey <tromey@redhat.com>
11092 * target.h (struct target_ops) <to_program_signals>: Add argument.
11093 * target.c (target_program_signals): Add argument.
11094 * remote.c (remote_program_signals): Add 'self' argument.
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11098 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11099 * target.c (target_pass_signals): Add argument.
11100 * remote.c (remote_pass_signals): Add 'self' argument.
11101 (remote_start_remote): Update.
11102 * procfs.c (procfs_pass_signals): Add 'self' argument.
11103 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11104 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11105 (linux_nat_create_inferior, linux_nat_attach): Update.
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11109 * windows-nat.c (windows_can_run): Add 'self' argument.
11110 * target.h (struct target_ops) <to_can_run>: Add argument.
11111 (target_can_run): Add argument.
11112 * target.c (debug_to_can_run): Add argument.
11113 (update_current_target): Update.
11114 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11115 * inf-child.c (inf_child_can_run): Add 'self' argument.
11116 * go32-nat.c (go32_can_run): Add 'self' argument.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target.h (struct target_ops) <to_has_exited>: Add argument.
11121 (target_has_exited): Add argument.
11122 * target.c (debug_to_has_exited): Add argument.
11123 (update_current_target): Update.
11125 2014-02-19 Tom Tromey <tromey@redhat.com>
11127 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11129 (target_set_syscall_catchpoint): Add argument.
11130 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11132 * target.c (update_current_target): Update.
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11138 (target_remove_exec_catchpoint): Add argument.
11139 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11140 (update_current_target): Update.
11141 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11146 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11148 (target_insert_exec_catchpoint): Add argument.
11149 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11150 (update_current_target): Update.
11151 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11154 2014-02-19 Tom Tromey <tromey@redhat.com>
11156 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11158 (target_remove_vfork_catchpoint): Add argument.
11159 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11160 (update_current_target): Update.
11161 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11168 (target_insert_vfork_catchpoint): Add argument.
11169 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11170 (update_current_target): Update.
11171 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11174 2014-02-19 Tom Tromey <tromey@redhat.com>
11176 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11178 (target_remove_fork_catchpoint): Add argument.
11179 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11180 (update_current_target): Update.
11181 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11188 (target_insert_fork_catchpoint): Add argument.
11189 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11190 (update_current_target): Update.
11191 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11196 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11198 (target_post_startup_inferior): Add argument.
11199 * target.c (debug_to_post_startup_inferior): Add argument.
11200 (update_current_target): Update.
11201 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11203 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11205 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11207 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11209 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11211 (super_post_startup_inferior): Likewise.
11212 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11214 (super_post_startup_inferior): Likewise.
11215 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11216 Add 'self' argument.
11217 (super_post_startup_inferior): Likewise.
11219 2014-02-19 Tom Tromey <tromey@redhat.com>
11221 * target.h (struct target_ops) <to_load>: Add argument.
11222 * target.c (target_load): Add argument.
11223 (debug_to_load): Add argument.
11224 (update_current_target): Update.
11225 * remote.c (remote_load): Add 'self' argument.
11226 * remote-sim.c (gdbsim_load): Add 'self' argument.
11227 * remote-mips.c (mips_load): Add 'self' argument.
11228 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11229 * monitor.c (monitor_load): Add 'self' argument.
11230 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11234 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11235 (target_terminal_info): Add argument.
11236 * target.c (debug_to_terminal_info): Add argument.
11237 (default_terminal_info): Likewise.
11238 * inflow.c (child_terminal_info): Add 'self' argument.
11239 * inferior.h (child_terminal_info): Add 'self' argument.
11240 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11242 2014-02-19 Tom Tromey <tromey@redhat.com>
11244 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11246 (target_terminal_save_ours): Add argument.
11247 * target.c (debug_to_terminal_save_ours): Add argument.
11248 (update_current_target): Update.
11249 * inflow.c (terminal_save_ours): Add 'self' argument.
11250 * inferior.h (terminal_save_ours): Add 'self' argument.
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11254 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11255 (target_terminal_ours): Add argument.
11256 * target.c (debug_to_terminal_ours): Add argument.
11257 (update_current_target): Update.
11258 * remote.c (remote_terminal_ours): Add 'self' argument.
11259 (remote_close): Update.
11260 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11261 * inflow.c (terminal_ours): Add 'self' argument.
11262 * inferior.h (terminal_ours): Add 'self' argument.
11263 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11265 2014-02-19 Pedro Alves <palves@redhat.com>
11266 Tom Tromey <tromey@redhat.com>
11268 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11270 (target_terminal_ours_for_output): Add argument.
11271 * target.c (debug_to_terminal_ours_for_output): Add argument.
11272 (update_current_target): Update.
11273 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11274 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11275 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11279 * target.h (struct target_ops) <to_terminal_inferior>: Add
11281 * target.c (target_terminal_inferior): Add argument.
11282 (update_current_target): Update.
11283 * remote.c (remote_terminal_inferior): Add 'self' argument.
11284 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11285 * inflow.c (terminal_inferior): Add 'self' argument.
11286 * inferior.h (terminal_inferior): Add 'self' argument.
11287 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11288 (go32_terminal_inferior): Add 'self' argument.
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11292 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11293 (target_terminal_init): Add argument.
11294 * target.c (debug_to_terminal_init): Add argument.
11295 (update_current_target): Update.
11296 * inflow.c (terminal_init_inferior): Add 'self' argument.
11297 * inferior.h (terminal_init_inferior): Add 'self' argument.
11298 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11299 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11303 * target.h (struct target_ops)
11304 <to_can_accel_watchpoint_condition>: Add argument.
11305 (target_can_accel_watchpoint_condition): Add argument.
11306 * target.c (debug_to_can_accel_watchpoint_condition): Add
11308 (update_current_target): Update.
11309 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11314 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11316 (target_region_ok_for_hw_watchpoint): Add argument.
11317 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11318 (default_region_ok_for_hw_watchpoint): Add argument.
11319 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11320 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11322 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11324 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11326 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11328 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11330 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11332 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11333 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11335 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11336 Add 'self' argument.
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11340 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11342 (target_insert_watchpoint): Add argument.
11343 * target.c (debug_to_insert_watchpoint): Add argument.
11344 (update_current_target): Update.
11345 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11346 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11347 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11348 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11349 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11350 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11352 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11353 (procfs_insert_hw_watchpoint): Add 'self' argument.
11354 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11356 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11358 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11360 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11361 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11363 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11366 2014-02-19 Tom Tromey <tromey@redhat.com>
11368 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11370 (target_remove_watchpoint): Add argument.
11371 * target.c (debug_to_remove_watchpoint): Add argument.
11372 (update_current_target): Update.
11373 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11374 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11375 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11376 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11377 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11378 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11380 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11381 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11383 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11385 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11387 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11388 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11390 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11395 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11397 (target_remove_hw_breakpoint): Add argument.
11398 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11399 (update_current_target): Update.
11400 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11401 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11403 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11404 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11406 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11409 2014-02-19 Tom Tromey <tromey@redhat.com>
11411 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11413 (target_insert_hw_breakpoint): Add argument.
11414 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11415 (update_current_target): Update.
11416 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11417 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11419 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11420 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11421 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11423 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11428 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11430 (target_can_use_hardware_watchpoint): Add argument.
11431 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11432 (update_current_target): Update.
11433 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11435 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11437 * remote.c (remote_check_watch_resources): Add 'self' argument.
11438 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11439 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11441 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11442 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11444 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11446 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11448 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11450 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11452 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11454 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11455 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11457 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11462 * target.h (struct target_ops) <to_post_attach>: Add argument.
11463 (target_post_attach): Add argument.
11464 * target.c (debug_to_post_attach): Add argument.
11465 (update_current_target): Update.
11466 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11467 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11468 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11469 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11470 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11474 * windows-nat.c (windows_close): Add 'self' argument.
11475 * tracepoint.c (tfile_close): Add 'self' argument.
11476 * target.h (struct target_ops) <to_close>: Add argument.
11477 * target.c (target_close): Add argument.
11478 (update_current_target): Update.
11479 * remote.c (remote_close): Add 'self' argument.
11480 * remote-sim.c (gdbsim_close): Add 'self' argument.
11481 * remote-mips.c (mips_close): Add 'self' argument.
11482 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11483 * record-full.c (record_full_close): Add 'self' argument.
11484 * record-btrace.c (record_btrace_close): Add 'self' argument.
11485 * monitor.h (monitor_close): Add 'self' argument.
11486 * monitor.c (monitor_close): Add 'self' argument.
11487 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11488 * linux-nat.c (linux_nat_close): Add argument.
11489 * go32-nat.c (go32_close): Add 'self' argument.
11490 * exec.c (exec_close_1): Add 'self' argument.
11491 * ctf.c (ctf_close): Add 'self' argument.
11492 * corelow.c (core_close): Add 'self' argument.
11493 (core_close_cleanup): Update.
11494 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11495 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11497 2014-02-19 Tom Tromey <tromey@redhat.com>
11499 * remote.c (remote_load): New function.
11500 (init_remote_ops): Use it.
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11504 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11506 * common/linux-btrace.h (linux_supports_btrace): Update.
11507 * remote.c (remote_supports_btrace): Add "self" argument.
11508 * target-delegates.c: Rebuild.
11509 * target.c (target_supports_btrace): Remove.
11510 * target.h (struct target_ops) <to_supports_btrace>: Add
11511 target_ops argument.
11512 (target_supports_btrace): New define.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * record-full.c (record_full_beneath_to_resume_ops)
11517 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11518 (record_full_beneath_to_wait)
11519 (record_full_beneath_to_store_registers_ops)
11520 (record_full_beneath_to_store_registers)
11521 (record_full_beneath_to_xfer_partial_ops)
11522 (record_full_beneath_to_xfer_partial)
11523 (record_full_beneath_to_insert_breakpoint_ops)
11524 (record_full_beneath_to_insert_breakpoint)
11525 (record_full_beneath_to_remove_breakpoint_ops)
11526 (record_full_beneath_to_remove_breakpoint)
11527 (record_full_beneath_to_stopped_by_watchpoint)
11528 (record_full_beneath_to_stopped_data_address)
11529 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11530 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11531 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11532 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11533 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11534 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11535 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11536 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11537 (record_full_resume, record_full_wait_1)
11538 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11539 (record_full_store_registers, record_full_xfer_partial)
11540 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11541 (record_full_async, record_full_core_xfer_partial): Use target
11543 * target-delegates.c: Rebuild.
11544 * target.c (current_xfer_partial): Remove.
11545 (update_current_target): Do not INHERIT or de_fault
11546 to_insert_breakpoint, to_remove_breakpoint,
11547 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11548 to_is_async_p, to_async. Do not set to_xfer_partial field.
11549 (default_xfer_partial): Simplify.
11550 (current_xfer_partial): Remove.
11551 (target_wait, target_resume): Simplify.
11552 (find_default_can_async_p, find_default_is_async_p): Update.
11553 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11554 to_xfer_partial, to_stopped_by_watchpoint,
11555 to_stopped_data_address.
11556 (target_store_registers): Simplify.
11557 (forward_target_remove_breakpoint)
11558 (forward_target_insert_breakpoint): Remove.
11559 (target_remove_breakpoint, target_insert_breakpoint)
11560 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11561 * target.h (struct target_ops) <to_resume, to_wait,
11562 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11563 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11564 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11566 (forward_target_remove_breakpoint)
11567 (forward_target_insert_breakpoint): Remove.
11568 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11570 (record_btrace_insert_breakpoint): Delegate directly.
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * target-delegates.c: New file.
11576 * target.c: Include target-delegates.c.
11577 (init_dummy_target): Call install_dummy_methods.
11578 (complete_target_initialization): Call install_delegators.
11579 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11580 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11581 * make-target-delegates: New file.
11583 2014-02-19 Tom Tromey <tromey@redhat.com>
11585 * record.c (find_record_target): Use find_target_at.
11586 * target.c (find_target_at): New function.
11587 * target.h (find_target_at): Declare.
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11591 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11592 Add 'ops' argument.
11593 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11595 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11596 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11598 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11600 * linux-nat.c (save_sigtrap): Update.
11601 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11602 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11603 (linux_nat_close): Update.
11604 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11606 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11608 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11609 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11610 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11611 (tmp_to_async): Add 'ops' argument.
11612 (record_full_stopped_by_watchpoint, record_full_async)
11613 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11615 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11616 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11617 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11618 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11619 (remote_is_async_p, remote_async): Add 'ops' argument.
11620 (remote_stopped_data_address): Update.
11621 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11622 * target.c (update_current_target)
11623 (find_default_can_async_p, find_default_is_async_p): Update.
11624 (init_dummy_target): Update.
11625 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11626 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11627 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11628 (target_can_async_p, target_is_async_p, target_async)
11629 (target_stopped_by_watchpoint): Update.
11631 2014-02-19 Yao Qi <yao@codesourcery.com>
11634 * gdbarch.sh: Remove startup_gdbarch.
11635 * gdbarch.c: Regenerated.
11636 * gdbarch.h: Likewise.
11638 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11640 * rl78-tdep.c (rl78_g10_register_name): New function.
11641 (rl78_return_value): Add g10 support.
11642 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11645 2014-02-17 Doug Evans <xdje42@gmail.com>
11647 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11648 (SUBDIR_GUILE_SRCS): Ditto.
11649 (scm-gsmob.o): Ditto.
11651 2014-02-17 Yao Qi <yao@codesourcery.com>
11653 * gnu-nat.c (ILL_RPC): Declare defined function.
11655 2014-02-17 Yao Qi <yao@codesourcery.com>
11657 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11658 mach_msg_type_number_t.
11659 (gnu_write_inferior): Likewise.
11661 2014-02-17 Yao Qi <yao@codesourcery.com>
11663 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11665 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11666 (inf_validate_procs, inf_signal): Likewise.
11667 (S_exception_raise_request): Likewise.
11668 (do_mach_notify_dead_name): Likewise.
11669 (steal_exc_port): Likewise.
11670 (gnu_read_inferior): Change 'copy_count''s type to
11671 mach_msg_type_number_t.
11672 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11675 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11677 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11678 flag. Adjust all users; in particular...
11679 (gnu_wait): ..., don't decrement its value in here...
11680 (gnu_create_inferior): ..., and instead set the flag in here,
11681 around the startup_inferior call, and call that one with
11682 START_INFERIOR_TRAPS_EXPECTED.
11684 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11685 (ILL_RPC): ... new macro.
11686 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11687 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11688 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11689 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11690 functions with ILL_RPC macro.
11691 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11692 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11693 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11694 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11695 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11696 (S_proc_getlogin_reply, S_proc_getsid_reply)
11697 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11698 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11699 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11700 (S_proc_getnports_reply, S_proc_is_important_reply)
11701 (S_proc_get_code_reply): New stub functions, generated with
11704 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11705 collected the type check structures.
11707 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11709 2014-02-14 Doug Evans <dje@google.com>
11711 * target.c (target_write_partial): Fix result type.
11713 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11715 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11716 the proper offsets to access fpregset_t.
11718 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11720 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11721 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11722 * h8300-tdep.c (setmachinelist): Remove global.
11723 * hppa-tdep.c (hppa_sigtramp): Remove global.
11724 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11725 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11726 * ravenscar-thread.c (update_target_observer): Remove global.
11727 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11729 2014-02-12 Tom Tromey <tromey@redhat.com>
11731 * common/rsp-low.c: Update comments.
11732 * common/rsp-low.h: Update comments.
11734 2014-02-12 Tom Tromey <tromey@redhat.com>
11736 * common/rsp-low.c (convert_ascii_to_int): Remove.
11737 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11739 2014-02-12 Tom Tromey <tromey@redhat.com>
11741 * common/rsp-low.h (unhexify): Don't declare.
11742 * common/rsp-low.c (unhexify): Remove.
11744 2014-02-12 Tom Tromey <tromey@redhat.com>
11746 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11747 * common/rsp-low.c (convert_int_to_ascii): Remove.
11749 2014-02-12 Tom Tromey <tromey@redhat.com>
11751 * common/rsp-low.h (hexify): Don't declare.
11752 * common/rsp-low.c (hexify): Remove.
11754 2014-02-12 Tom Tromey <tromey@redhat.com>
11756 * common/rsp-low.c (hexify): Never take strlen of argument.
11758 2014-02-12 Tom Tromey <tromey@redhat.com>
11760 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11761 * remote.c (extended_remote_run, remote_rcmd)
11762 (remote_download_trace_state_variable, remote_save_trace_data)
11763 (remote_set_trace_notes): Update.
11764 * tracepoint.c (encode_source_string, tfile_write_status)
11765 (tfile_write_uploaded_tsv): Update.
11767 2014-02-12 Tom Tromey <tromey@redhat.com>
11769 * tracepoint.c: Include rsp-low.h.
11770 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11771 * remote.c: Include rsp-low.h.
11772 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11773 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11774 (remote_unescape_input): Move to common/rsp-low.c.
11775 * common/rsp-low.h: New file.
11776 * common/rsp-low.c: New file.
11777 * Makefile.in (SFILES): Add common/rsp-low.c.
11778 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11779 (COMMON_OBS): Add rsp-low.o.
11780 (rsp-low.o): New target.
11782 2014-02-12 Tom Tromey <tromey@redhat.com>
11784 * utils.h: Include print-utils.h.
11785 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11786 (int_string, core_addr_to_string, core_addr_to_string_nz)
11787 (hex_string, hex_string_custom): Don't declare.
11788 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11789 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11790 (hex_string_custom, int_string, core_addr_to_string)
11791 (core_addr_to_string_nz, host_address_to_string): Move to
11792 common/print-utils.c.
11793 * common/print-utils.h: New file.
11794 * common/print-utils.c: New file
11795 * Makefile.in (SFILES): Add common/print-utils.c.
11796 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11797 (COMMON_OBS): Add print-utils.o.
11798 (print-utils.o): New target.
11800 2014-02-12 Tom Tromey <tromey@redhat.com>
11802 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11804 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11806 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11808 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11810 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11811 if a PT_IO ptrace request returns sucessfully but indicates that 0
11812 bytes were transferred.
11814 2014-02-12 Pedro Alves <palves@redhat.com>
11815 Kevin Buettner <kevinb@redhat.com>
11817 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11818 TYPE_INSTANCE_FLAG_CODE_SPACE.
11820 2014-02-12 Pedro Alves <palves@redhat.com>
11822 * h8300-tdep.c (pseudo_from_raw_register)
11823 (raw_from_pseudo_register): New functions.
11824 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11827 2014-02-12 Pedro Alves <palves@redhat.com>
11829 * h8300-tdep.c (h8300_register_sim_regno): New function.
11830 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11831 gdbarch_register_sim_regno hook.
11833 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11835 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11837 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11839 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11841 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11843 * obsd-tdep.h (obsd_init_abi): New prototype.
11844 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11845 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11846 (obsd_init_abi): New functions.
11847 * i386obsd-tdep.c: Include "obsd-tdep.h".
11848 (i386obsd_init_abi): Call obsd_init_abi.
11849 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11850 (amd64obsd_init_abi): Call obsd_init_abi.
11851 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11852 obsd-tdep.c to gdb_target_obs.
11854 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11856 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11857 double float arguments to 16-byte in the argument slots.
11859 2014-02-11 Doug Evans <xdje42@gmail.com>
11861 * configure.ac: Don't crash if pkg-config is not found and guile
11862 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11864 * configure: Regenerate.
11866 2014-02-11 Yao Qi <yao@codesourcery.com>
11868 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11869 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11870 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11871 * gnu-nat.c (gnu_xfer_memory): Likewise.
11872 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11873 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11874 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11875 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11877 2014-02-11 Yao Qi <yao@codesourcery.com>
11879 * target.h (enum target_xfer_error): Rename to ...
11880 (enum target_xfer_status): ... it. New. All users updated.
11881 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11883 (TARGET_XFER_STATUS_ERROR_P): New macro.
11884 (target_xfer_error_to_string): Remove declaration.
11885 (target_xfer_status_to_string): Declare.
11886 (target_xfer_partial_ftype): Adjust it.
11887 (struct target_ops) <to_xfer_partial>: Return
11888 target_xfer_status. Add argument xfered_len. Update
11890 * target.c (target_xfer_error_to_string): Rename to ...
11891 (target_xfer_status_to_string): ... it. New. All callers
11893 (target_read_live_memory): Likewise. Call target_xfer_partial
11894 instead of target_read.
11895 (memory_xfer_live_readonly_partial): Return
11896 target_xfer_status. Add argument xfered_len.
11897 (raw_memory_xfer_partial): Likewise.
11898 (memory_xfer_partial_1): Likewise.
11899 (memory_xfer_partial): Likewise.
11900 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11901 properly. Update debug message.
11902 (default_xfer_partial, current_xfer_partial): Likewise.
11903 (target_write_partial): Likewise.
11904 (target_read_partial): Likewise. All callers updated.
11905 (read_whatever_is_readable): Likewise.
11906 (target_write_with_progress): Likewise.
11907 (target_read_alloc_1): Likewise.
11909 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11910 * auxv.c (procfs_xfer_auxv): Likewise.
11911 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11912 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11913 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11914 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11915 * corefile.c (read_memory): Adjust.
11916 * corelow.c (core_xfer_partial): Likewise.
11917 * ctf.c (ctf_xfer_partial): Likewise.
11918 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11920 (darwin_xfer_partial): Likewise.
11921 * exec.c (section_table_xfer_memory_partial): Likewise. All
11923 (exec_xfer_partial): Likewise.
11924 * exec.h (section_table_xfer_memory_partial): Update
11926 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11928 (gnu_xfer_partial): Likewise.
11929 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11930 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11931 (ia64_hpux_xfer_solib_got): Likewise.
11932 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11933 type of 'partial_len' to ULONGEST.
11934 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11935 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11936 (linux_nat_xfer_partial): Likewise.
11937 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11938 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11939 * monitor.c (monitor_xfer_memory): Likewise.
11940 (monitor_xfer_partial): Likewise.
11941 * procfs.c (procfs_xfer_partial): Likewise.
11942 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11943 * record-full.c (record_full_xfer_partial): Likewise.
11944 (record_full_core_xfer_partial): Likewise.
11945 * remote-sim.c (gdbsim_xfer_memory): Likewise.
11946 (gdbsim_xfer_partial): Likewise.
11947 * remote.c (remote_write_bytes_aux): Likewise. All callers
11949 (remote_write_bytes, remote_read_bytes): Likewise. All
11951 (remote_flash_erase): Likewise. All callers updated.
11952 (remote_write_qxfer): Likewise. All callers updated.
11953 (remote_read_qxfer): Likewise. All callers updated.
11954 (remote_xfer_partial): Likewise.
11955 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11956 (rs6000_xfer_shared_libraries): Likewise.
11957 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11958 (sol_thread_xfer_partial): Likewise.
11959 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11960 (sparc_xfer_partial): Likewise.
11961 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
11963 (spu_xfer_partial): Likewise.
11964 * spu-multiarch.c (spu_xfer_partial): Likewise.
11965 * tracepoint.c (tfile_xfer_partial): Likewise.
11966 * windows-nat.c (windows_xfer_memory): Likewise.
11967 (windows_xfer_shared_libraries): Likewise.
11968 (windows_xfer_partial): Likewise.
11969 * valprint.c: Replace 'target_xfer_error' with
11970 'target_xfer_status' in comments.
11972 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
11974 Checked in by Joel Brobecker <brobecker@adacore.com>.
11975 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11977 2014-02-11 Joel Brobecker <brobecker@adacore.com>
11979 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11980 function parameters.
11982 2014-02-10 Will Newton <will.newton@linaro.org>
11984 * elfread.c (elf_rel_plt_read): Look for a .got section if
11985 looking up .got.plt fails.
11986 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11987 on address passed to elf_gnu_ifunc_record_cache.
11988 (elf_gnu_ifunc_resolve_addr): Likewise.
11989 (elf_gnu_ifunc_resolver_return_stop): Likewise.
11991 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
11993 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11994 (X_RETTURN): New macro.
11995 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11997 * sparc64-tdep.c (sparc64_init_abi): Hook
11998 sparc_in_function_epilogue_p.
12000 2014-02-10 Gary Benson <gbenson@redhat.com>
12002 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12003 Rename name_matcher to symbol_matcher.
12005 2014-02-10 Gary Benson <gbenson@redhat.com>
12007 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12008 Use expand_symtabs_file_matcher_ftype and
12009 expand_symtabs_symbol_matcher_ftype.
12011 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12013 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12014 (struct ada_symbol_cache): New.
12015 (ada_free_symbol_cache): Forward declare.
12016 (struct ada_pspace_data): New.
12017 (ada_pspace_data_handle): New static global.
12018 (get_ada_pspace_data, ada_pspace_data_cleanup)
12019 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12020 (cache_space, cache): Delete, now folded inside struct
12022 (ada_get_symbol_cache): New function.
12023 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12025 (_initialize_ada_language): Remove initialization of cache_space.
12026 Move call to observer_attach_inferior_exit up, grouping it
12027 with the other observer registrations inside this function.
12028 Rename command to be more general. Add call to
12029 register_program_space_data_with_cleanup.
12031 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12033 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12034 ada_new_objfile_observer.
12035 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12036 (_initialize_tasks): Update uses of ada_new_objfile_observer
12037 and ada_tasks_normal_stop_observer.
12039 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12041 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12042 returned by the 'Length attribute to integer.
12044 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12046 * ada-lang.c (_initialize_ada_language): Initialize
12047 cache_space obstack.
12049 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12051 * ada-lang.c (HASH_SIZE): New macro.
12052 (struct cache_entry): New type.
12053 (cache_space, cache): New static globals.
12054 (ada_clear_symbol_cache, find_entry): New functions.
12055 (lookup_cached_symbol, cache_symbol): Implement.
12056 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12057 (_initialize_ada_language): Attach ada_new_objfile_observer
12058 and ada_free_objfile_observer.
12060 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12062 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12063 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12064 struct block * parameter.
12065 (ada_lookup_symbol_list_worker): Constify local variable "block".
12066 Remove cast which is no longer necessary.
12068 2014-02-10 Doug Evans <xdje42@gmail.com>
12070 Add Guile as an extension language.
12071 * NEWS: Mention Guile scripting.
12072 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12073 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12074 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12075 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12076 (CLIBS): Add GUILE_LIBS.
12077 (install-guile): New rule.
12078 (guile.o): New rule.
12079 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12080 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12081 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12082 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12083 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12084 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12085 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12086 * configure.ac: New option --with-guile.
12087 * configure: Regenerate.
12088 * config.in: Regenerate.
12089 * auto-load.c: Remove #include "python/python.h". Add #include
12090 "gdb/section-scripts.h".
12091 (source_section_scripts): Handle Guile scripts.
12092 (_initialize_auto_load): Add name of Guile objfile script to
12093 scripts-directory help text.
12094 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12095 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12096 (struct breakpoint): New member scm_bp_object.
12097 * defs.h (enum command_control_type): New value guile_control.
12098 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12100 (show_user): Update comment.
12101 (_initialize_cli_cmds): Update help text for "show user". Update help
12102 text for max-user-call-depth.
12103 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12105 (multi_line_command_p): Add guile_control.
12106 (print_command_lines): Handle guile_control.
12107 (execute_control_command, recurse_read_control_structure): Ditto.
12108 (process_next_line): Recognize "guile" commands.
12109 * disasm.c (gdb_disassemble_info): Make non-static.
12110 * disasm.h: #include "dis-asm.h".
12111 (struct gdbarch): Add forward decl.
12112 (gdb_disassemble_info): Declare.
12113 * extension.c: #include "guile/guile.h".
12114 (extension_languages): Add guile.
12115 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12116 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12117 * gdbtypes.c (get_unsigned_type_max): New function.
12118 (get_signed_type_minmax): New function.
12119 * gdbtypes.h (get_unsigned_type_max): Declare.
12120 (get_signed_type_minmax): Declare.
12121 * guile/README: New file.
12122 * guile/guile-internal.h: New file.
12123 * guile/guile.c: New file.
12124 * guile/guile.h: New file.
12125 * guile/scm-arch.c: New file.
12126 * guile/scm-auto-load.c: New file.
12127 * guile/scm-block.c: New file.
12128 * guile/scm-breakpoint.c: New file.
12129 * guile/scm-disasm.c: New file.
12130 * guile/scm-exception.c: New file.
12131 * guile/scm-frame.c: New file.
12132 * guile/scm-gsmob.c: New file.
12133 * guile/scm-iterator.c: New file.
12134 * guile/scm-lazy-string.c: New file.
12135 * guile/scm-math.c: New file.
12136 * guile/scm-objfile.c: New file.
12137 * guile/scm-ports.c: New file.
12138 * guile/scm-pretty-print.c: New file.
12139 * guile/scm-safe-call.c: New file.
12140 * guile/scm-string.c: New file.
12141 * guile/scm-symbol.c: New file.
12142 * guile/scm-symtab.c: New file.
12143 * guile/scm-type.c: New file.
12144 * guile/scm-utils.c: New file.
12145 * guile/scm-value.c: New file.
12146 * guile/lib/gdb.scm: New file.
12147 * guile/lib/gdb/boot.scm: New file.
12148 * guile/lib/gdb/experimental.scm: New file.
12149 * guile/lib/gdb/init.scm: New file.
12150 * guile/lib/gdb/iterator.scm: New file.
12151 * guile/lib/gdb/printing.scm: New file.
12152 * guile/lib/gdb/types.scm: New file.
12153 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12154 (VPATH): Add $(GUILE_SRCDIR).
12155 (GUILE_DIR): New variable.
12156 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12157 (all): Add stamp-guile dependency.
12158 (stamp-guile): New rule.
12159 (clean-guile, install-guile, uninstall-guile): New rules.
12160 (install-only): Add install-guile dependency.
12161 (uninstall): Add uninstall-guile dependency.
12162 (clean): Add clean-guile dependency.
12164 2014-02-09 Doug Evans <xdje42@gmail.com>
12166 Revert this patch (which I approved, mea culpa).
12168 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12170 * Makefile.in (all-lib): Remove.
12171 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12173 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12175 Fix Python stack corruption.
12176 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12179 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12181 * Makefile.in (all-lib): Remove.
12182 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12184 2014-02-07 Doug Evans <dje@google.com>
12186 * extension-priv.h (extension_language_script_ops): Add comment.
12187 (extension_language_ops): Add comment.
12188 (active_ext_lang_state): Fix typo in comment.
12190 2014-02-07 Pedro Alves <palves@redhat.com>
12192 PR breakpoints/16292
12193 * infrun.c (handle_signal_stop) <signal arrives while stepping
12194 over a breakpoint>: Switch back to the stepping thread.
12196 2014-02-07 Yao Qi <yao@codesourcery.com>
12198 * target.c (target_xfer_partial): Return zero if LEN is zero.
12200 2014-02-07 Yao Qi <yao@codesourcery.com>
12202 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12203 (ld_so_xfer_auxv): Likewise.
12204 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12205 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12206 * corelow.c (core_xfer_partial): Likewise.
12207 * ctf.c (ctf_xfer_partial): Likewise.
12208 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12209 (darwin_xfer_partial): Likewise.
12210 * exec.c (exec_xfer_partial): Likewise.
12211 * gnu-nat.c (gnu_xfer_partial): Likewise.
12212 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12213 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12214 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12215 * linux-nat.c (linux_xfer_siginfo): Likewise.
12216 (linux_proc_xfer_spu): Likewise.
12217 * procfs.c (procfs_xfer_partial): Likewise.
12218 * record-full.c (record_full_xfer_partial): Likewise.
12219 (record_full_core_xfer_partial): Likewise.
12220 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12221 * remote.c (remote_write_qxfer): Likewise.
12222 (remote_write_qxfer, remote_read_qxfer): Likewise.
12223 (remote_xfer_partial): Likewise.
12224 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12225 (rs6000_xfer_shared_libraries): Likewise.
12226 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12227 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12228 (spu_xfer_partial): Likewise.
12229 * target.c (memory_xfer_partial_1): Likewise.
12230 * tracepoint.c (tfile_xfer_partial): Likewise.
12231 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12232 (windows_xfer_partial): Likewise.
12234 2014-02-07 Yao Qi <yao@codesourcery.com>
12236 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12238 (core_xfer_shared_libraries_aix): Likewise.
12239 * gdbarch.c, gdbarch.h: Regenerated.
12240 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12241 ULONGEST. Change 'len_avail' type to ULONGEST.
12242 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12243 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12245 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12247 2014-02-07 Yao Qi <yao@codesourcery.com>
12249 * corefile.c (memory_error): Get 'exception' from ERR and pass
12250 'exception' to throw_error.
12252 2014-02-06 Doug Evans <xdje42@gmail.com>
12254 * configure.ac (libpython checking): Remove all but python.o from
12255 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12256 * configure: Regenerate.
12258 * Makefile.in (SFILES): Add extension.c.
12259 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12260 (COMMON_OBS): Add extension.o.
12261 * extension.h: New file.
12262 * extension-priv.h: New file.
12263 * extension.c: New file.
12265 * python/python-internal.h: #include "extension.h".
12266 (gdbpy_auto_load_enabled): Declare.
12267 (gdbpy_apply_val_pretty_printer): Declare.
12268 (gdbpy_apply_frame_filter): Declare.
12269 (gdbpy_preserve_values): Declare.
12270 (gdbpy_breakpoint_cond_says_stop): Declare.
12271 (gdbpy_breakpoint_has_cond): Declare.
12272 (void source_python_script_for_objfile): Delete.
12273 * python/python.c: #include "extension-priv.h".
12274 Delete inclusion of "observer.h".
12275 (extension_language_python): Moved here and renamed from
12276 script_language_python in py-auto-load.c.
12277 Redefined to be of type extension_language_defn.
12278 (python_extension_script_ops): New global.
12279 (python_extension_ops): New global.
12280 (struct python_env): New member previous_active.
12281 (restore_python_env): Call restore_active_ext_lang.
12282 (ensure_python_env): Call set_active_ext_lang.
12283 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12285 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12287 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12289 (gdbpy_eval_from_control_command): Renamed from
12290 eval_python_from_control_command, made static. New arg extlang.
12291 (gdbpy_source_script) Renamed from source_python_script, made static.
12293 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12294 result to int. New arg extlang.
12295 (gdbpy_source_objfile_script): Renamed from
12296 source_python_script_for_objfile, made static. New arg extlang.
12297 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12298 static. New args extlang, extlang_printers. Change result type to
12300 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12301 static. New arg extlang. Rename arg printers to extlang_printers
12302 and change type to ext_lang_type_printers *.
12303 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12304 static. Replace argument arg with extlang, extlang_printers.
12305 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12306 (!HAVE_PYTHON, source_python_script): Delete.
12307 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12308 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12309 (!HAVE_PYTHON, start_type_printers): Delete.
12310 (!HAVE_PYTHON, apply_type_printers): Delete.
12311 (!HAVE_PYTHON, free_type_printers): Delete.
12312 (_initialize_python): Delete call to observer_attach_before_prompt.
12313 (finalize_python): Set/restore active extension language.
12314 (gdbpy_finish_initialization) Renamed from
12315 finish_python_initialization, made static. New arg extlang.
12316 (gdbpy_initialized): New function.
12317 * python/python.h: #include "extension.h". Delete #include
12318 "value.h", "mi/mi-cmds.h".
12319 (extension_language_python): Declare.
12320 (GDBPY_AUTO_FILE_NAME): Delete.
12321 (enum py_bt_status): Moved to extension.h and renamed to
12322 ext_lang_bt_status.
12323 (enum frame_filter_flags): Moved to extension.h.
12324 (enum py_frame_args): Moved to extension.h and renamed to
12325 ext_lang_frame_args.
12326 (finish_python_initialization): Delete.
12327 (eval_python_from_control_command): Delete.
12328 (source_python_script): Delete.
12329 (apply_val_pretty_printer): Delete.
12330 (apply_frame_filter): Delete.
12331 (preserve_python_values): Delete.
12332 (gdbpy_script_language_defn): Delete.
12333 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12334 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12336 * auto-load.c: #include "extension.h".
12337 (GDB_AUTO_FILE_NAME): Delete.
12338 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12339 (script_language_gdb): Delete, moved to extension.c and renamed to
12340 extension_language_gdb.
12341 (source_gdb_script_for_objfile): Delete.
12342 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12343 (loaded_script): Change type of language member to
12344 struct extension_language_defn *.
12345 (init_loaded_scripts_info): Initialize
12346 unsupported_script_warning_printed.
12347 (maybe_add_script): Make static. Change type of language arg to
12348 struct extension_language_defn *.
12349 (clear_section_scripts): Reset unsupported_script_warning_printed.
12350 (auto_load_objfile_script_1): Rewrite to use extension language API.
12351 (auto_load_objfile_script): Make public. Remove support-compiled-in
12352 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12353 (source_section_scripts): Rewrite to use extension language API.
12354 (load_auto_scripts_for_objfile): Rewrite to use
12355 auto_load_scripts_for_objfile.
12356 (collect_matching_scripts_data): Change type of language member to
12357 struct extension_language_defn *.
12358 (auto_load_info_scripts): Change type of language arg to
12359 struct extension_language_defn *.
12360 (unsupported_script_warning_print): New function.
12361 (script_not_found_warning_print): Make static.
12362 (_initialize_auto_load): Rewrite construction of scripts-directory
12364 * auto-load.h (struct objfile): Add forward decl.
12365 (struct script_language): Delete.
12366 (struct auto_load_pspace_info): Add forward decl.
12367 (struct extension_language_defn): Add forward decl.
12368 (maybe_add_script): Delete.
12369 (auto_load_objfile_script): Declare.
12370 (script_not_found_warning_print): Delete.
12371 (auto_load_info_scripts): Update prototype.
12372 (auto_load_gdb_scripts_enabled): Declare.
12373 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12374 auto_load_python_scripts_enabled and made public.
12375 (script_language_python): Delete, moved to python.c.
12376 (gdbpy_script_language_defn): Delete.
12377 (info_auto_load_python_scripts): Update to use
12378 extension_language_python.
12380 * breakpoint.c (condition_command): Replace call to
12381 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12382 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12383 with call to breakpoint_ext_lang_cond_says_stop.
12384 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12385 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12386 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12387 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12389 (local_setattro): Print name of extension language with existing
12392 * valprint.c (val_print, value_print): Update to call
12393 apply_ext_lang_val_pretty_printer.
12394 * cp-valprint.c (cp_print_value): Update call to
12395 apply_ext_lang_val_pretty_printer.
12396 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12397 (gdbpy_apply_val_pretty_printer): Renamed from
12398 apply_val_pretty_printer. New arg extlang.
12399 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12401 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12402 extension language API.
12403 * cli/cli-script.c (execute_control_command): Update to call
12404 eval_ext_lang_from_control_command.
12406 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12407 enum ext_lang_bt_status values. Update call to
12408 apply_ext_lang_frame_filter.
12409 (mi_cmd_stack_list_locals): Ditto.
12410 (mi_cmd_stack_list_args): Ditto.
12411 (mi_cmd_stack_list_variables): Ditto.
12412 * mi/mi-main.c: Delete #include "python/python-internal.h".
12413 Add #include "extension.h".
12414 (mi_cmd_list_features): Replace reference to python internal variable
12415 gdb_python_initialized with call to ext_lang_initialized_p.
12417 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12418 Update to use enum ext_lang_frame_args. Update to call
12419 apply_ext_lang_frame_filter.
12420 * python/py-framefilter.c (extract_sym): Update to use enum
12421 ext_lang_bt_status.
12422 (extract_value, py_print_type, py_print_value): Ditto.
12423 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12424 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12425 (py_print_frame): Ditto.
12426 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12427 New arg extlang. Update to use enum ext_lang_bt_status.
12429 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12430 finish_python_initialization. Replace with call to
12431 finish_ext_lang_initialization.
12433 * typeprint.c (do_free_global_table): Update to call
12434 free_ext_lang_type_printers.
12435 (create_global_typedef_table): Update to call
12436 start_ext_lang_type_printers.
12437 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12438 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12439 (type_print_options): Change type of global_printers from "void *"
12440 to "struct ext_lang_type_printers *".
12442 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12443 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12444 (gdbpy_preserve_values): Renamed from preserve_python_values.
12446 (!HAVE_PYTHON, preserve_python_values): Delete.
12448 * utils.c (quit_flag): Delete, moved to extension.c.
12449 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12452 * eval.c: Delete #include "python/python.h".
12453 * main.c: Delete #include "python/python.h".
12455 * defs.h: Update comment.
12457 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12461 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12463 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12466 2014-02-05 Yao Qi <yao@codesourcery.com>
12468 * remote.c (remote_pass_signals): Remove local 'buf' and use
12470 (remote_program_signals): Likewise.
12472 2014-02-05 Yao Qi <yao@codesourcery.com>
12474 * ctf.c: Include "inferior.h" and "gdbthread.h".
12475 (CTF_PID): A new macro.
12476 (ctf_open): Call inferior_appeared and add_thread_silent.
12477 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12478 (ctf_thread_alive): New function.
12479 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12481 2014-02-05 Yao Qi <yao@codesourcery.com>
12485 2013-05-24 Yao Qi <yao@codesourcery.com>
12487 * tracepoint.c (TFILE_PID): Remove.
12488 (tfile_open): Don't add thread and inferior.
12489 (tfile_close): Don't set 'inferior_ptid'. Don't call
12490 exit_inferior_silent.
12491 (tfile_thread_alive): Remove.
12492 (init_tfile_ops): Don't set field 'to_thread_alive' of
12495 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12497 * remote.c (remote_start_remote): Call remote_check_symbols even
12498 if only symbol-file (not file) has been given.
12500 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12502 * gdbarch.sh (skip_entrypoint): New callback.
12503 * gdbarch.c, gdbarch.h: Regenerate.
12504 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12505 * infrun.c (fill_in_stop_func): Likewise.
12506 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12507 (ppc_elfv2_elf_make_msymbol_special): New function.
12508 (ppc_elfv2_skip_entrypoint): Likewise.
12509 (ppc_linux_init_abi): Install them for ELFv2.
12511 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12513 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12514 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12515 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12516 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12517 structures returned in GPRs.
12519 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12521 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12522 offset to the stack parameter list for the ELFv2 ABI.
12524 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12526 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12527 set_gdbarch_convert_from_func_ptr_addr and
12528 set_gdbarch_elf_make_msymbol_special for ELFv1.
12529 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12530 function descriptors on ELFv1.
12531 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12532 set up r12 at function entry.
12534 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12536 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12537 (struct gdbarch_tdep): New member elf_abi.
12539 * rs6000-tdep.c: Include "elf/ppc64.h".
12540 (rs6000_gdbarch_init): Detect ELF ABI version.
12542 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12544 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12545 within a register pair holding a DFP 128-bit value on little-endian.
12546 (ppc64_sysv_abi_return_value_base): Likewise.
12547 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12548 (dfp_pseudo_register_write): Likewise.
12550 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12552 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12553 offset on little-endian when passing _Decimal32.
12554 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12556 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12558 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12559 of the overlapped FP register within the VSX register on little-
12561 (efpr_pseudo_register_write): Likewise.
12563 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12565 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12566 offset on little-endian when passing small structures.
12568 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12570 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12571 (struct ppc64_sysv_argpos): New data structure.
12572 (ppc64_sysv_abi_push_float): Remove.
12573 (ppc64_sysv_abi_push_val): New function.
12574 (ppc64_sysv_abi_push_integer): Likewise.
12575 (ppc64_sysv_abi_push_freg): Likewise.
12576 (ppc64_sysv_abi_push_vreg): Likewise.
12577 (ppc64_sysv_abi_push_param): Likewise.
12578 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12579 (ppc64_sysv_abi_return_value_base): New function.
12580 (ppc64_sysv_abi_return_value): Refactor to use it.
12582 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12584 * NEWS: Document new target powerpc64le-*-linux*.
12586 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12588 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12589 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12591 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12592 register set used in ELF core dumps. Add floating-point register set.
12594 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12596 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12597 dwarf2_to_gdb[] table using symbolic constants. Adjust
12598 penultimate entry from number representing the PC register
12599 to symbolic constant representing the MDR register. Add
12600 constant for the PC register to the end of the table.
12602 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12604 * bsd-kvm.c: Include <sys/param.h>
12606 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12608 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12610 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12612 * ada-lang.h (clear_ada_sym_cache): Delete.
12614 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12616 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12618 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12620 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12621 the sigreturn register save area only if the syscall is
12624 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12626 * valops.c (value_slice): Minor reformatting.
12628 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12630 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12632 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12634 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12635 New static globals.
12636 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12637 (ada_ignore_descriptive_types_p): New static global.
12638 (find_parallel_type_by_descriptive_type): Return immediately
12639 if ada_ignore_descriptive_types_p is set.
12640 (_initialize_ada_language): Register new commands "maintenance
12641 set ada", "maintenance show ada", "maintenance set ada
12642 ignore-descriptive-types" and "maintenance show ada
12643 ignore-descriptive-types".
12644 * NEWS: Add entry for new "maint ada set/show
12645 ignore-descriptive-types" commands.
12647 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12649 * record-btrace.c (record_btrace_close): Call btrace_teardown
12652 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12654 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12657 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12659 * ada-typeprint (type_is_full_subrange_of_target_type):
12661 (print_range): Add parameter bounds_prefered_p. If not set,
12662 try printing range types using the name of their base type.
12663 (print_range_type): Add parameter bounds_prefered_p.
12664 Use it in call to print_range.
12665 (print_array_type, ada_print_type): Update calls to print_range
12666 and print_range_type.
12668 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12670 * ada-typeprint.c (print_array_type, print_choices, print_range)
12671 (print_range_bound, print_dynamic_range_bound, print_range_type):
12672 Remove declaration.
12674 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12676 * ada-typeprint.c (print_range): Add missing empty line
12677 after local declaration.
12679 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12681 * ada-valprint.c (print_optional_low_bound): Get index_type's
12682 target type for as long as it is a TYPE_CODE_RANGE.
12684 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12686 * procfs.c (procfs_make_note_section): Remove assertion and
12687 associated comment.
12689 2014-01-24 Yao Qi <yao@codesourcery.com>
12691 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12692 * corelow.c (get_core_siginfo): Likewise.
12694 2014-01-24 Yao Qi <yao@codesourcery.com>
12696 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12697 ULONGEST. Don't check 'len' is negative.
12698 (remote_write_bytes): Change type of 'len' to ULONGEST.
12700 2014-01-23 Tom Tromey <tromey@redhat.com>
12703 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12704 Handle exception from frame.block.
12705 (FrameVars.fetch_frame_locals): Likewise.
12707 2014-01-23 Tom Tromey <tromey@redhat.com>
12710 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12711 on a NULL pointer. Move "goto error" to correct place.
12713 2014-01-23 Tom Tromey <tromey@redhat.com>
12716 * python/py-framefilter.c (apply_frame_filter): Call
12717 ensure_python_env after computing gdbarch.
12719 2014-01-23 Yao Qi <yao@codesourcery.com>
12721 * target.c (raw_memory_xfer_partial): Change argument type
12722 from void * to gdb_byte *.
12723 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12725 2014-01-22 Doug Evans <dje@google.com>
12727 New gdbserver option --debug-format=timestamp.
12728 * NEWS: Mention it.
12730 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12732 * syscalls/s390x-linux.xml: New file.
12733 * syscalls/s390-linux.xml: New file.
12734 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12735 (XML_SYSCALL_FILENAME_S390X): Likewise.
12736 (op_svc): New enum value for SVC opcode.
12737 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12738 (s390_linux_get_syscall_number): New function.
12739 (s390_gdbarch_init): Register '*get_syscall_number' and the
12740 syscall xml file name.
12741 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12742 "s390-linux.xml" and "s390x-linux.xml".
12743 * NEWS: Announce new feature.
12745 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12747 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12749 2014-01-22 Pedro Alves <palves@redhat.com>
12751 * xtensa-config.c: Include defs.h.
12753 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12755 * common/common-utils.h: Add "ARI:" comment beside __func__
12758 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12760 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12761 documentation a bit.
12763 2014-01-21 Roland McGrath <mcgrathr@google.com>
12765 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12766 * configure: Regenerate.
12767 * aclocal.m4: Regenerate.
12768 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12769 New substituted variables.
12770 (install-strip): New target.
12771 (INSTALL_SCRIPT): New substituted variable.
12772 (FLAGS_TO_PASS): Add it.
12773 (install-only): Use $(INSTALL_SCRIPT) rather than
12774 $(INSTALL_PROGRAM) for gcore.
12776 2014-01-20 Tom Tromey <tromey@redhat.com>
12778 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12781 2014-01-20 Tom Tromey <tromey@redhat.com>
12783 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12784 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12785 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12786 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12787 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12788 (struct cmd_list_element) <flags>: Remove.
12789 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12790 doc_allocated>: New fields.
12791 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12793 * maint.c (maintenance_do_deprecate): Update.
12794 * top.c (execute_command): Update.
12796 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12798 * xtensa-linux-nat.c: Include asm/ptrace.h.
12800 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12802 * Makefile.in (SFILES): Add d-support.c.
12803 (COMMON_OBS): Add d-support.o.
12804 * d-lang.h (d_parse_symbol): Add comment, now defined in
12806 * d-lang.c (parse_call_convention)
12807 (parse_attributes, parse_function_types)
12808 (parse_function_args, parse_type, parse_identifier)
12809 (call_convention_p, d_parse_symbol): Move functions to ...
12810 * d-support.c: ... New file.
12812 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12814 * d-lang.h (d_parse_symbol): Add declaration.
12815 * d-lang.c (extract_identifiers)
12816 (extract_type_info): Remove functions.
12817 (parse_call_convention, parse_attributes)
12818 (parse_function_types, parse_function_args)
12819 (parse_type, parse_identifier, call_convention_p)
12820 (d_parse_symbol): New functions.
12821 (d_demangle): Use d_parse_symbol to demangle D symbols.
12823 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12825 * d-lang.h (struct builtin_d_type): New data type.
12826 (builtin_d_type): Add declaration.
12827 * d-lang.c (d_language_arch_info, build_d_types)
12828 (builtin_d_type): New functions.
12829 (enum d_primitive_types): New data type.
12830 (d_language_defn): Change c_language_arch_info to
12831 d_language_arch_info.
12832 (d_type_data): New static variable.
12833 (_initialize_d_language): Initialize d_type_data.
12835 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12837 * d-lang.h (d_main_name): Add declaration.
12838 * d-lang.c (d_main_name): New function.
12839 * symtab.c (find_main_name): Add call to d_main_name.
12841 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12843 * d-lang.c (d_language_defn): Change macro_expansion_c to
12844 macro_expansion_no.
12846 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12848 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12850 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12852 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12853 gdb_exception" declaration.
12854 * remote.c (getpkt_or_notif_sane): Likewise.
12856 2014-01-17 Doug Evans <dje@google.com>
12858 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12859 function, contents of dirnames_to_char_ptr_vec_append moved here.
12860 (delim_string_to_char_ptr_vec): New function.
12861 (dirnames_to_char_ptr_vec_append): Rewrite.
12862 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12864 2014-01-17 Doug Evans <dje@google.com>
12866 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12868 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12869 #include "common-utils.h".
12870 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12871 * common/vec.h (VEC_ASSERT_PASS): Update.
12872 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12873 (MACH_CHECK_ERROR): Update.
12875 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12877 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12879 * gdbarch.h: Regenerate.
12881 2014-01-16 Tom Tromey <tromey@redhat.com>
12883 * value.c (struct value) <regnum>: Move earlier.
12885 2014-01-16 Tom Tromey <tromey@redhat.com>
12887 * remote.c (extended_remote_create_inferior): Rename from
12888 extended_remote_create_inferior_1. Add "ops" argument. Remove
12889 old implementation.
12891 2014-01-16 Pedro Alves <palves@redhat.com>
12893 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12894 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12897 2014-01-16 Doug Evans <dje@google.com>
12899 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12903 * btrace.h (btrace_thread_flag): New.
12904 (struct btrace_thread_info) <flags>: New.
12905 * record-btrace.c (record_btrace_resume_thread)
12906 (record_btrace_find_thread_to_move, btrace_step_no_history)
12907 (btrace_step_stopped, record_btrace_start_replaying)
12908 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12909 (record_btrace_find_resume_thread): New.
12910 (record_btrace_resume, record_btrace_wait): Extend.
12911 (record_btrace_can_execute_reverse): New.
12912 (record_btrace_open): Fail in non-stop mode.
12913 (record_btrace_set_replay): Split into this, ...
12914 (record_btrace_stop_replaying): ... this, ...
12915 (record_btrace_clear_histories): ... and this.
12916 (init_record_btrace_ops): Init to_can_execute_reverse.
12917 * NEWS: Announce it.
12919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12921 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12922 (forward_target_decr_pc_after_break)
12923 (target_decr_pc_after_break): New.
12924 * target.c (forward_target_decr_pc_after_break)
12925 (target_decr_pc_after_break): New.
12926 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12927 instead of gdbarch_decr_pc_after_break.
12928 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12929 instead of gdbarch_decr_pc_after_break.
12930 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12931 instead of gdbarch_decr_pc_after_break.
12932 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12933 instead of gdbarch_decr_pc_after_break.
12934 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12935 instead of gdbarch_decr_pc_after_break.
12936 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12937 instead of gdbarch_decr_pc_after_break.
12939 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12941 * btrace.c: Include regcache.h.
12942 (btrace_add_pc): New.
12943 (btrace_enable): Call btrace_add_pc.
12944 (btrace_is_empty): New.
12945 * btrace.h (btrace_is_empty): New.
12946 * record-btrace.c (require_btrace, record_btrace_info): Call
12949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12951 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12952 Support delta reads.
12953 (linux_disable_btrace): Change return type.
12954 * common/linux-btrace.h (linux_read_btrace): Change parameters
12955 and return type to allow error reporting. Update users.
12956 (linux_disable_btrace): Change return type. Update users.
12957 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12959 (btrace_error): New.
12960 (btrace_block) <begin>: Comment on BEGIN == 0.
12961 * btrace.c (btrace_compute_ftrace): Start from the end of
12963 (btrace_stitch_trace, btrace_clear_history): New.
12964 (btrace_fetch): Read delta trace, return if replaying.
12965 (btrace_clear): Move clear history code to btrace_clear_history.
12966 (parse_xml_btrace): Throw an error if parsing failed.
12967 * target.h (struct target_ops) <to_read_btrace>: Change parameters
12968 and return type to allow error reporting.
12969 (target_read_btrace): Change parameters and return type to allow
12971 * target.c (target_read_btrace): Update.
12972 * remote.c (remote_read_btrace): Support delta reads. Pass
12974 * NEWS: Announce it.
12976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12978 * record.h (record_btrace_frame_unwind)
12979 (record_btrace_tailcall_frame_unwind): New declarations.
12980 * dwarf2-frame: Include record.h
12981 (dwarf2_frame_cfa): Throw an error for btrace frames.
12982 * record-btrace.c: Include hashtab.h.
12983 (btrace_get_bfun_name): New.
12984 (btrace_call_history): Call btrace_get_bfun_name.
12985 (struct btrace_frame_cache): New.
12987 (bfcache_hash, bfcache_eq, bfcache_new): New.
12988 (btrace_get_frame_function): New.
12989 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12990 (record_btrace_frame_this_id): Compute own id.
12991 (record_btrace_frame_prev_register): Provide PC, throw_error
12992 for all other registers.
12993 (record_btrace_frame_sniffer): Detect btrace frames.
12994 (record_btrace_tailcall_frame_sniffer): New.
12995 (record_btrace_frame_dealloc_cache): New.
12996 (record_btrace_frame_unwind): Add new functions.
12997 (record_btrace_tailcall_frame_unwind): New.
12998 (_initialize_record_btrace): Allocate cache.
12999 * btrace.c (btrace_clear): Call reinit_frame_cache.
13000 * NEWS: Announce it.
13002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13004 * record-btrace.c (record_btrace_set_replay)
13005 (record_btrace_goto_begin, record_btrace_goto_end)
13006 (record_btrace_goto): New.
13007 (init_record_btrace_ops): Initialize them.
13008 * NEWS: Announce it.
13010 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13012 * record-btrace.c (record_btrace_find_new_threads)
13013 (record_btrace_thread_alive): New.
13014 (init_record_btrace_ops): Initialize to_find_new_threads and
13017 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13019 * record-btrace.c (record_btrace_resume): New.
13020 (record_btrace_wait): New.
13021 (init_record_btrace_ops): Initialize to_wait and to_resume.
13023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13025 * record-btrace.c (record_btrace_xfer_partial)
13026 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13027 (record_btrace_allow_memory_access): New.
13028 (init_record_btrace_ops): Initialize new methods.
13029 * target.c (raw_memory_xfer_partial): Bail out if target reports
13030 that this memory is not available.
13032 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13034 * target.h (target_ops) <to_insert_breakpoint>
13035 <to_remove_breakpoint>: Add target_ops parameter.
13036 (forward_target_insert_breakpoint): New.
13037 (forward_target_remove_breakpoint): New.
13038 (memory_remove_breakpoint, memory_insert_breakpoint):
13039 Add target_ops parameter.
13040 * target.c (target_insert_breakpoint): Split into this and ...
13041 (forward_target_insert_breakpoint): ... this.
13042 (target_remove_breakpoint): Split into this and ...
13043 (forward_target_remove_breakpoint): ... this.
13044 (debug_to_insert_breakpoint): Add target_ops parameter.
13045 Call forward_target_insert_breakpoint.
13046 (debug_to_remove_breakpoint): Add target_ops parameter.
13047 Call forward_target_remove_breakpoint.
13048 (update_current_target): Do not inherit or default to_insert_breakpoint
13049 and to_remove_breakpoint.
13050 * corelow.c (ignore): Add target_ops parameter.
13051 * exec.c (ignore): Add target_ops parameter.
13052 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13053 Add target_ops parameter.
13054 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13055 Add target_ops parameter.
13056 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13057 Add target_ops parameter.
13058 * record-full.c (record_full_beneath_to_insert_breakpoint)
13059 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13060 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13061 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13062 (record_full_core_remove_breakpoint): Add target_ops parameter.
13064 (record_full_beneath_to_insert_breakpoint_ops)
13065 (record_full_beneath_to_remove_breakpoint_ops)
13066 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13067 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13068 tmp_to_remove_breakpoint_ops,
13069 record_full_beneath_to_insert_breakpoint_ops, and
13070 record_full_beneath_to_remove_breakpoint_ops.
13071 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13072 (m32r_remove_breakpoint): Add target_ops parameter.
13073 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13074 Add target_ops parameter.
13075 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13076 Add target_ops parameter.
13078 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13079 Markus Metzger <markus.t.metzger@intel.com>
13081 * record-btrace.c: Include frame-unwind.h.
13082 (record_btrace_frame_unwind_stop_reason)
13083 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13084 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13086 (init_record_btrace_ops): Install it.
13088 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13090 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13093 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13095 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13098 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13100 * frame-unwind.c: Include target.h.
13101 (frame_unwind_try_unwinder): New function with code from ...
13102 (frame_unwind_find_by_frame): ... here. New variable
13103 unwinder_from_target, call also target_get_unwinder)
13104 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13105 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13106 * target.h (struct target_ops): New fields to_get_unwinder and
13107 to_get_tailcall_unwinder.
13108 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13110 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13112 * record-btrace.c (record_btrace_fetch_registers)
13113 (record_btrace_store_registers)
13114 (record_btrace_to_prepare_to_store): New.
13115 (init_record_btrace_ops): Add the above.
13117 2014-01-16 Tom Tromey <tromey@redhat.com>
13119 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13120 * target.h (struct target_ops) <to_prepare_to_store>: Add
13122 (target_prepare_to_store): Add argument.
13123 * target.c (debug_to_prepare_to_store): Add argument.
13124 (update_current_target): Update.
13125 * remote.c (remote_prepare_to_store): Add 'self' argument.
13126 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13127 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13128 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13129 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13131 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13132 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13133 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13134 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13135 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13139 * btrace.h (replay) <replay>: New.
13140 (btrace_is_replaying): New.
13141 * btrace.c (btrace_clear): Free replay iterator.
13142 (btrace_is_replaying): New.
13143 * record-btrace.c (record_btrace_is_replaying): New.
13144 (record_btrace_info): Print insn number if replaying.
13145 (record_btrace_insn_history): Start at replay position.
13146 (record_btrace_call_history): Start at replay position.
13147 (init_record_btrace_ops): Init to_record_is_replaying.
13149 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13151 * record-btrace.c (record_btrace_insn_history_range): Include
13153 (record_btrace_insn_history_from): Adjust range.
13154 (record_btrace_call_history_range): Include
13156 (record_btrace_call_history_from): Adjust range.
13157 * NEWS: Announce changes.
13159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13161 * record.h (enum record_print_flag)
13162 <record_print_indent_calls>: New.
13163 * record.c (get_call_history_modifiers): Recognize /c modifier.
13164 (_initialize_record): Document /c modifier.
13165 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13166 Reorder fields. Optionally indent the function name. Update
13168 * NEWS: Announce changes.
13170 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13172 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13174 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13176 * btrace.c (ftrace_new_function): Start counting at one.
13177 * record-btrace.c (record_btrace_info): Adjust number of calls
13179 * NEWS: Announce it.
13181 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13183 * record-btrace.c (btrace_call_history_insn_range): Print
13184 insn range as [begin, end].
13186 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13188 * btrace.h (struct btrace_func_link): New.
13189 (enum btrace_function_flag): New.
13190 (struct btrace_inst): Rename to ...
13191 (struct btrace_insn): ...this. Update all users.
13192 (struct btrace_func) <ibegin, iend>: Remove.
13193 (struct btrace_func_link): New.
13194 (struct btrace_func): Rename to ...
13195 (struct btrace_function): ...this. Update all users.
13196 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13197 (number, level, flags>: New.
13198 (struct btrace_insn_iterator): Rename to ...
13199 (struct btrace_insn_history): ...this.
13201 (struct btrace_insn_iterator, btrace_call_iterator): New.
13202 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13203 (struct btrace_target_info) <begin, end, level>
13204 <insn_history, call_history>: New.
13205 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13206 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13207 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13208 (btrace_call_number, btrace_call_begin, btrace_call_end)
13209 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13210 (btrace_find_function_by_number, btrace_set_insn_history)
13211 (btrace_set_call_history): New.
13212 * btrace.c (btrace_init_insn_iterator)
13213 (btrace_init_func_iterator, compute_itrace): Remove.
13214 (ftrace_print_function_name, ftrace_print_filename)
13215 (ftrace_skip_file): Change
13216 parameter to const.
13217 (ftrace_init_func): Remove.
13218 (ftrace_debug): Use new btrace_function fields.
13219 (ftrace_function_switched): Also consider gaining and
13220 losing symbol information).
13221 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13222 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13223 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13225 (ftrace_new_function): Move. Remove debug print.
13226 (ftrace_update_lines, ftrace_update_insns): New.
13227 (ftrace_update_function): Check for call, ret, and jump.
13228 (compute_ftrace): Renamed to ...
13229 (btrace_compute_ftrace): ...this. Rewritten to compute call
13231 (btrace_fetch, btrace_clear): Updated.
13232 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13233 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13234 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13235 (btrace_call_number, btrace_call_begin, btrace_call_end)
13236 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13237 (btrace_find_function_by_number, btrace_set_insn_history)
13238 (btrace_set_call_history): New.
13239 * record-btrace.c (require_btrace): Use new btrace thread
13241 (record_btrace_info, btrace_insn_history)
13242 (record_btrace_insn_history, record_btrace_insn_history_range):
13243 Use new btrace thread info fields and new iterator.
13244 (btrace_func_history_src_line): Rename to ...
13245 (btrace_call_history_src_line): ...this. Use new btrace
13246 thread info fields.
13247 (btrace_func_history): Rename to ...
13248 (btrace_call_history): ...this. Use new btrace thread info
13249 fields and new iterator.
13250 (record_btrace_call_history, record_btrace_call_history_range):
13251 Use new btrace thread info fields and new iterator.
13253 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13255 * frame.h (frame_id_build_unavailable_stack_special): New.
13256 * frame.c (frame_id_build_unavailable_stack_special): New.
13258 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13260 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13261 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13262 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13264 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13265 (i386_insn_is_jump, i386_jmp_p): New.
13266 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13267 insn_is_jump to gdbarch.
13268 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13269 * gdbarch.h: Regenerated.
13270 * gdbarch.c: Regenerated.
13271 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13272 (default_insn_is_jump): New.
13273 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13274 (default_insn_is_jump): New.
13276 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13278 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13280 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13281 (btrace_read_type) <btrace_read_new>: Change to ...
13282 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13284 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13286 * common/linux-btrace.c (linux_read_btrace): Free trace from
13287 previous iteration.
13289 2014-01-15 Doug Evans <dje@google.com>
13291 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13294 2014-01-15 Tom Tromey <tromey@redhat.com>
13296 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13297 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13298 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13299 (set_objfile_main_name): New function.
13300 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13301 language_of_main>: New fields.
13302 (set_objfile_main_name): Declare.
13303 * symtab.c (find_main_name): Loop over objfiles to find the main
13305 (set_main_name): Now static.
13306 (get_main_info): Add comment.
13307 * symtab.h (set_main_name): Don't declare.
13309 2014-01-15 Tom Tromey <tromey@redhat.com>
13311 * symtab.c (main_progspace_key): New global.
13312 (struct main_info): New.
13313 (name_of_main, language_of_main): Remove.
13314 (get_main_info, main_info_cleanup): New function.
13315 (set_main_name, main_name, main_language): Use get_main_info.
13316 (_initialize_symtab): Initialize main_progspace_key.
13318 2014-01-15 Tom Tromey <tromey@redhat.com>
13320 * dbxread.c (process_one_symbol): Update.
13321 * dwarf2read.c (read_partial_die): Update.
13322 * symfile.c (set_initial_language): Call main_language.
13323 * symtab.c (language_of_main): Now static.
13324 (set_main_name): Add 'lang' parameter.
13325 (find_main_name): Update.
13326 (main_language): New function.
13327 (symtab_observer_executable_changed): Update.
13328 * symtab.h (set_main_name): Update.
13329 (language_of_main): Remove.
13330 (main_language): Declare.
13332 2014-01-15 Tom Tromey <tromey@redhat.com>
13334 * symfile.c (init_entry_point_info): Use new "initialized" field.
13336 * objfiles.h (struct entry_point) <initialized>: New field.
13337 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13338 (struct objfile) <ei>: ...here. Remove.
13339 * objfiles.c (entry_point_address_query): Update.
13341 2014-01-15 Tom Tromey <tromey@redhat.com>
13343 * objfiles.c (entry_point_address_query): Relocate entry point
13345 (objfile_relocate1): Do not relocate entry point address.
13346 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13347 <the_bfd_section_index>: New field.
13348 * symfile.c (init_entry_point_info): Find the entry point's
13351 2014-01-15 Tom Tromey <tromey@redhat.com>
13353 * solib-frv.c (enable_break): Use entry_point_address_query.
13355 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13357 * NEWS: Add note on improved process record-replay on
13358 arm*-linux* targets.
13360 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13362 * arm-tdep.c (enum arm_record_result): New enum.
13363 (arm_record_unsupported_insn): New function.
13364 (arm_record_coproc_data_proc): Removed.
13365 (thumb2_record_ld_st_multiple): New function.
13366 (thumb2_record_ld_st_dual_ex_tbb): New function.
13367 (thumb2_record_data_proc_sreg_mimm): New function.
13368 (thumb2_record_ps_dest_generic): New function.
13369 (thumb2_record_branch_misc_cntrl): New function.
13370 (thumb2_record_str_single_data): New function.
13371 (thumb2_record_ld_mem_hints): New function.
13372 (thumb2_record_ld_word): New function.
13373 (thumb2_record_lmul_lmla_div): New function.
13374 (thumb2_record_decode_insn_handler): New function.
13375 (decode_insn): Add thumb32 instruction handlers.
13377 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13379 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13380 (struct arm_linux_record_tdep): Declare.
13381 (arm_canonicalize_syscall): New function.
13382 (arm_all_but_pc_registers_record): New function.
13383 (arm_linux_syscall_record): New function.
13384 (arm_linux_init_abi): Add syscall recording constructs.
13385 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13386 decoding. (arm_record_coproc_data_proc): Update arm syscall
13388 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13389 <arm_syscall_record>: New field.
13390 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13393 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13395 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13396 register for push instruction recording.
13398 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13400 * arm-tdep.c (thumb_record_misc): Update to correct logical
13401 error while recording ldm, ldmia and pop instructions.
13403 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13405 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13407 2014-01-15 Pedro Alves <palves@redhat.com>
13409 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13410 (go32_resume, go32_fetch_registers, store_register)
13411 (go32_store_registers, go32_prepare_to_store)
13412 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13413 (go32_create_inferior, go32_can_run, go32_terminal_init)
13414 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13417 2014-01-15 Tom Tromey <tromey@redhat.com>
13419 * target.h (async_callback_ftype): New typedef.
13420 (struct target_ops) <to_async>: Use it.
13422 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13424 * python/py-value.c (get_field_type): Remove unnecessary curly
13425 braces for single-statement if block.
13427 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13429 * python/py-type.c (convert_field): Add missing empty line
13430 after declarations.
13432 2014-01-14 Doug Evans <dje@google.com>
13434 * symfile.h (expand_symtabs_matching): Renamed from
13435 expand_partial_symbol_names. Update prototype.
13436 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13437 * symfile.c (expand_symtabs_matching): Renamed from
13438 expand_partial_symbol_names. New args file_matcher, kind.
13439 Rename arg fun to symbol_matcher.
13440 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13441 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13442 ada_expand_partial_symbol_name.
13443 (ada_make_symbol_completion_list): Update to call
13444 expand_symtabs_matching.
13445 (ada_add_global_exceptions): Call expand_symtabs_matching.
13446 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13447 call map_symbol_filenames.
13448 * symtab.c (sources_info): Update to call map_symbol_filenames.
13449 (search_symbols): Call expand_symtabs_matching.
13450 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13451 (default_make_symbol_completion_list_break_on): Update to call
13452 expand_symtabs_matching.
13453 (make_source_files_completion_list): Update to call
13454 map_symbol_filenames.
13456 2014-01-14 Doug Evans <dje@google.com>
13458 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13459 (expand_symtabs_symbol_matcher_ftype): New typedef.
13460 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13461 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13462 * symfile.c (expand_partial_symbol_names): Update to use
13463 expand_symtabs_symbol_matcher_ftype.
13464 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13465 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13466 Arg name_matcher renamed to symbol_matcher.
13467 * psymtab.c (recursively_search_psymtabs): Update to use
13468 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13470 (expand_symtabs_matching_via_partial): Update to use
13471 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13472 Arg name_matcher renamed to symbol_matcher.
13474 2014-01-14 Doug Evans <dje@google.com>
13476 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13477 (map_partial_symbol_filenames): Ditto.
13478 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13479 (map_partial_symbol_filenames): Ditto.
13480 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13481 (map_partial_symbol_filenames): Ditto.
13482 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13483 (map_partial_symbol_filenames): Ditto.
13484 * symtab.c: Delete #include "psymtab.h".
13486 2014-01-14 Pedro Alves <palves@redhat.com>
13487 Tom Tromey <tromey@redhat.com>
13489 * infrun.c (use_displaced_stepping): Use find_record_target
13490 instead of RECORD_IS_USED.
13491 (adjust_pc_after_break): Use record_full_is_used instead of
13493 * record-btrace.c (record_btrace_open): Call record_preopen
13494 instead of checking RECORD_IS_USED.
13495 * record-full.c (record_full_shortname)
13496 (record_full_core_shortname): New globals.
13497 (record_full_is_used): New function.
13498 (find_full_open): Call record_preopen instead of checking
13500 (init_record_full_ops): Set the target's shortname to
13501 record_full_shortname.
13502 (init_record_full_core_ops): Set the target's shortname to
13503 record_full_core_shortname.
13504 * record-full.h (record_full_is_used): Declare.
13505 * record.c (find_record_target): Make extern.
13506 (record_preopen): New function.
13507 * record.h (RECORD_IS_USED): Delete macro.
13508 (find_record_target, record_preopen): Declare functions.
13510 2014-01-14 Yao Qi <yao@codesourcery.com>
13512 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13513 'len''s type to ULONGEST.
13514 (core_xfer_shared_libraries_aix): Likewise.
13515 * gdbarch.c, gdbarch.h: Regenerated.
13516 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13517 Change type of 'len' to ULONGEST.
13518 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13519 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13521 2014-01-14 Yao Qi <yao@codesourcery.com>
13523 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13524 type of 'len' to ULONGEST.
13525 (linux_xfer_osdata_processgroups): Likewise.
13526 (linux_xfer_osdata_threads): Likewise.
13527 (linux_xfer_osdata_fds): Likewise.
13528 (linux_xfer_osdata_isockets): Likewise.
13529 (linux_xfer_osdata_shm): Likewise.
13530 (linux_xfer_osdata_sem): Likewise.
13531 (linux_xfer_osdata_msg): Likewise.
13532 (linux_common_xfer_osdata): Likewise.
13533 (struct osdata_type) <getter>: Likewise.
13534 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13537 2014-01-14 Yao Qi <yao@codesourcery.com>
13539 * target.h (target_xfer_partial_ftype): Update.
13540 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13542 * aix-thread.c (aix_thread_xfer_partial): Change type of
13543 argument 'len' to ULONGEST.
13544 * auxv.c (procfs_xfer_auxv): Likewise.
13545 (ld_so_xfer_auxv): Likewise.
13546 (memory_xfer_auxv): Likewise.
13547 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13548 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13549 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13550 * corelow.c (core_xfer_partial): Likewise.
13551 * ctf.c (ctf_xfer_partial): Likewise.
13552 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13554 (darwin_read_dyld_info): Likewise.
13555 (darwin_xfer_partial): Likewise.
13556 * exec.c (section_table_xfer_memory_partial): Likewise.
13557 (exec_xfer_partial): Likewise.
13558 * exec.h (section_table_xfer_memory_partial): Update
13560 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13561 instead of plongest.
13562 (gnu_xfer_partial): Likewise.
13563 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13564 (ia64_hpux_xfer_solib_got): Likewise.
13565 (ia64_hpux_xfer_partial): Likewise.
13566 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13567 * inf-ptrace.c (inf_ptrace_xfer_partial):
13568 * inf-ttrace.c (inf_ttrace_xfer_partial):
13569 * linux-nat.c (linux_xfer_siginfo): Likewise.
13570 (linux_nat_xfer_partial): Likewise.
13571 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13572 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13573 * monitor.c (monitor_xfer_memory): Likewise.
13574 (monitor_xfer_partial): Likewise.
13575 * procfs.c (procfs_xfer_partial): Likewise.
13576 * record-full.c (record_full_xfer_partial): Likewise.
13577 (record_full_core_xfer_partial): Likewise.
13578 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13579 instead of plongest.
13580 (gdbsim_xfer_partial): Likewise.
13581 * remote.c (remote_xfer_partial): Likewise.
13582 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13583 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13585 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13586 (rs6000_xfer_shared_libraries): Likewise.
13587 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13588 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13589 (sparc_xfer_partial): Likewise.
13590 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13591 (spu_xfer_partial): Likewise.
13592 * spu-multiarch.c (spu_xfer_partial): Likewise.
13593 * target.c (target_read_live_memory): Likewise.
13594 (memory_xfer_live_readonly_partial): Likewise.
13595 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13596 (target_xfer_partial, default_xfer_partial): Likewise.
13597 (current_xfer_partial): Likewise.
13598 * tracepoint.c (tfile_xfer_partial): Likewise.
13599 * windows-nat.c (windows_xfer_memory): Likewise. Call
13600 pulongest instead of plongest.
13601 (windows_xfer_partial): Likewise.
13602 (windows_xfer_shared_libraries): Likewise.
13604 2014-01-14 Yao Qi <yao@codesourcery.com>
13606 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13607 target_xfer_partial_ftype.
13609 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13613 * valops.c (value_struct_elt_bitpos): New function
13614 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13615 object to 'None' if the field name is an empty string ("").
13616 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13617 attribute to look for a field when 'name' is 'None'.
13618 (get_field_type): New function
13620 2014-01-13 Doug Evans <dje@google.com>
13623 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13624 (try_open_dwop_file): Ditto.
13625 * gdb_bfd.c: #include "vec.h".
13626 (bfdp): New typedef.
13627 (struct gdb_bfd_data): New member included_bfds.
13628 (gdb_bfd_unref): Unref all included bfds.
13629 (gdb_bfd_record_inclusion): New function.
13630 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13632 2014-01-13 Tom Tromey <tromey@redhat.com>
13634 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13636 2014-01-13 Tom Tromey <tromey@redhat.com>
13638 * defs.h (use_windows): Remove.
13639 * gdb.c (main): Update.
13640 * main.c (captured_main, gdb_main): Update.
13641 * main.h (struct captured_main_args) <use_windows>: Remove.
13642 * top.c (use_windows): Remove.
13644 2014-01-13 Tom Tromey <tromey@redhat.com>
13646 * defs.h (deprecated_flush_hook): Remove.
13648 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13651 * linux-thread-db.c (try_thread_db_load): Add parameter
13652 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13653 (try_thread_db_load_from_pdir_1): Move it there from here.
13654 (try_thread_db_load_from_sdir): Update caller.
13655 (try_thread_db_load_from_dir): Move it there from here.
13657 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13659 * regformats/regdat.sh: Always rewrite the register file.
13661 2014-01-13 Pedro Alves <palves@redhat.com>
13663 * Makefile.in (CHECK_HEADERS): New variable.
13664 (check-headers:): New rule.
13666 2014-01-13 Tom Tromey <tromey@redhat.com>
13668 * cli/cli-setshow.c (do_set_command): Update.
13669 * defs.h (deprecated_set_hook): Remove.
13670 * top.c (deprecated_set_hook): Remove.
13672 2014-01-13 Pedro Alves <palves@redhat.com>
13674 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13675 the tracepoint if the PC is a pseudo-register.
13677 2014-01-13 Tom Tromey <tromey@redhat.com>
13679 * defs.h (XCALLOC): Remove.
13680 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13681 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13682 * dwarf2loc.c (allocate_piece_closure): Likewise.
13683 * elfread.c (elf_symfile_segments): Likewise.
13684 (elf_symfile_segments): Likewise.
13685 * gdbtypes.c (copy_type_recursive): Likewise.
13686 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13687 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13688 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13690 * mt-tdep.c (mt_gdbarch_init): Likewise.
13691 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13693 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13694 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13695 * registry.c (registry_alloc_data): Likewise.
13696 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13697 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13698 * serial.c (serial_fdopen_ops): Likewise.
13699 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13701 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13702 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13705 2014-01-13 Tom Tromey <tromey@redhat.com>
13707 * defs.h (XMALLOC): Remove.
13708 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13709 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13710 * cli-out.c (struct ui_out *): Likewise.
13711 * cli/cli-dump.c (add_dump_command): Likewise.
13712 (add_dump_command): Likewise.
13713 * complaints.c (get_complaints): Likewise.
13714 (find_complaint): Likewise.
13715 * dwarf2-frame.c (execute_cfa_program): Likewise.
13716 * dwarf2read.c (abbrev_table_read_table): Likewise.
13717 * gdbarch.sh: Likewise.
13718 * gdbarch.c: Rebuild.
13719 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13720 * interps.c (interp_new): Likewise.
13721 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13722 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13723 * mi/mi-console.c (mi_console_file_new): Likewise.
13724 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13725 * mi/mi-out.c (mi_out_new): Likewise.
13726 * mi/mi-parse.c (mi_parse): Likewise.
13727 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13728 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13729 * observer.c (xalloc_observer_list_node): Likewise.
13730 * regcache.c (regcache_xmalloc_1): Likewise.
13731 * reggroups.c (reggroup_new): Likewise.
13732 (_initialize_reggroup): Likewise.
13733 * registry.c (register_data_with_cleanup): Likewise.
13734 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13735 * ser-base.c (serial_ttystate): Likewise.
13736 * ser-mingw.c (make_pipe_state): Likewise.
13737 * ser-pipe.c (pipe_open): Likewise.
13738 * serial.c (serial_open): Likewise.
13739 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13740 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13741 (tui_alloc_win_info): Likewise.
13742 (tui_add_content_elements): Likewise.
13743 * tui/tui-file.c (tui_file_new): Likewise.
13744 * tui/tui-out.c (tui_out_new): Likewise.
13745 * ui-file.c (mem_file_new): Likewise.
13746 * ui-out.c (push_level): Likewise.
13747 (make_cleanup_ui_out_end): Likewise.
13748 (append_header_to_list): Likewise.
13749 (ui_out_new): Likewise.
13750 * user-regs.c (user_reg_add_builtin): Likewise.
13752 2014-01-13 Tom Tromey <tromey@redhat.com>
13754 * defs.h (XZALLOC): Remove.
13755 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13756 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13757 (get_ada_tasks_inferior_data): Likewise.
13758 * auto-load.c (get_auto_load_pspace_data): Likewise.
13759 * auxv.c (get_auxv_inferior_data): Likewise.
13760 * bfd-target.c (target_bfd_reopen): Likewise.
13761 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13762 (deprecated_insert_raw_breakpoint): Likewise.
13763 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13764 * corelow.c (core_open): Likewise.
13765 * darwin-nat.c (darwin_check_new_threads): Likewise.
13766 (darwin_attach_pid): Likewise.
13767 * dummy-frame.c (dummy_frame_push): Likewise.
13768 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13769 * dwarf2loc.c (allocate_piece_closure): Likewise.
13770 * elfread.c (elf_symfile_segments): Likewise.
13771 * eval.c (ptrmath_type_p): Likewise.
13772 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13773 * gdbtypes.c (alloc_type_arch): Likewise.
13774 (alloc_type_instance): Likewise.
13775 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13776 * inf-child.c (inf_child_can_use_agent): Likewise.
13777 * inflow.c (get_inflow_inferior_data): Likewise.
13778 * infrun.c (save_infcall_suspend_state): Likewise.
13779 * jit.c (jit_reader_load): Likewise.
13780 (get_jit_objfile_data): Likewise.
13781 (get_jit_program_space_data): Likewise.
13782 (jit_object_open_impl): Likewise.
13783 (jit_symtab_open_impl): Likewise.
13784 (jit_block_open_impl): Likewise.
13785 (jit_frame_sniffer): Likewise.
13786 * linux-fork.c (add_fork): Likewise.
13787 * maint.c (make_command_stats_cleanup): Likewise.
13788 * objfiles.c (get_objfile_pspace_data): Likewise.
13789 * opencl-lang.c (struct lval_closure): Likewise.
13790 * osdata.c (osdata_start_osdata): Likewise.
13791 * progspace.c (new_address_space): Likewise.
13792 (add_program_space): Likewise.
13793 * remote-sim.c (get_sim_inferior_data): Likewise.
13794 * sh-tdep.c (sh_gdbarch_init): Likewise.
13795 * skip.c (Ignore): Likewise.
13796 (skip_delete_command): Likewise.
13797 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13798 (library_list_start_library): Likewise.
13799 (solib_aix_current_sos): Likewise.
13800 * solib-darwin.c (get_darwin_info): Likewise.
13801 (darwin_current_sos): Likewise.
13802 * solib-dsbt.c (get_dsbt_info): Likewise.
13803 * solib-ia64-hpux.c (new_so_list): Likewise.
13804 (ia64_hpux_get_solib_linkage_addr): Likewise.
13805 * solib-spu.c (append_ocl_sos): Likewise.
13806 (spu_current_sos): Likewise.
13807 * solib-svr4.c (get_svr4_info): Likewise.
13808 (svr4_keep_data_in_core): Likewise.
13809 (library_list_start_library): Likewise.
13810 (svr4_default_sos): Likewise.
13811 (svr4_read_so_list): Likewise.
13812 * solib-target.c (library_list_start_library): Likewise.
13813 (solib_target_current_sos): Likewise.
13814 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13815 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13816 * symfile.c (default_symfile_segments): Likewise.
13817 * target-descriptions.c (tdesc_data_init): Likewise.
13818 (tdesc_create_reg): Likewise.
13819 (struct tdesc_type *): Likewise.
13820 (tdesc_create_vector): Likewise.
13821 (tdesc_set_struct_size): Likewise.
13822 (struct tdesc_type *): Likewise.
13823 (tdesc_free_feature): Likewise.
13824 (tdesc_create_feature): Likewise.
13825 * windows-nat.c (windows_add_thread): Likewise.
13826 (windows_make_so): Likewise.
13827 * xml-support.c (gdb_xml_body_text): Likewise.
13828 (gdb_xml_create_parser_and_cleanup): Likewise.
13829 (xml_process_xincludes): Likewise.
13830 * xml-syscall.c (allocate_syscalls_info): Likewise.
13831 (syscall_create_syscall_desc): Likewise.
13833 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13835 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13836 function, with code from i386_stap_parse_special_token.
13837 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13838 (i386_stap_parse_special_token): Move code to the two functions
13839 above; simplify it.
13841 2014-01-09 Pedro Alves <palves@redhat.com>
13842 Hui Zhu <hui@codesourcery.com>
13845 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13846 bp_err_string. Don't mark the location shlib_disabled if the
13847 error thrown wasn't a generic or memory error. Catch errors
13848 thrown while inserting breakpoints in overlayed code. Output
13849 error message of software breakpoints.
13850 * remote.c (remote_insert_breakpoint): If this breakpoint has
13851 target-side commands but this stub doesn't support Z0 packets,
13852 throw NOT_SUPPORTED_ERROR error.
13853 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13854 * target.h (target_insert_breakpoint): Extend comment.
13855 (target_insert_hw_breakpoint): Add comment.
13857 2014-01-08 Pedro Alves <palves@redhat.com>
13859 * remote.c (remote_add_thread): Add threads silently if starting
13861 (remote_notice_new_inferior): If in all-stop, and starting up,
13862 don't call notice_new_inferior.
13863 (get_current_thread): New function, factored out from ...
13864 (add_current_inferior_and_thread): ... this. Adjust.
13865 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13866 found any thread, then select the remote's current thread as GDB's
13867 current thread too.
13869 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13871 * NEWS: Create a new section for the next release branch.
13872 Rename the section of the current branch, now that it has
13875 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13877 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13878 * version.in: Bump version to 7.7.50.DATE-cvs.
13880 2014-01-08 Yao Qi <yao@codesourcery.com>
13882 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13883 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13884 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13886 2014-01-08 Yao Qi <yao@codesourcery.com>
13888 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13889 return value of bfd_get_filename to symbol_file_add_from_bfd.
13891 2014-01-08 Pierre Muller <muller@sourceware.org>
13894 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13895 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13896 to prim_record_mininal_symbol_and_info.
13897 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13898 in call to prim_record_minimal_symbol_and_info.
13899 (read_pe_exported_syms): Set index field of section_data.
13901 2014-01-07 Andrew Pinski <apinski@cavium.com>
13903 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13904 * features/aarch64.c: Regenerate.
13906 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13908 * target.c (return_null): Define.
13909 (update_current_target): Use it instead of return_zero for
13910 functions that return a pointer.
13912 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13914 * source.c (add_path): Fix check for duplicated paths in the previously
13917 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13919 * ada-lang.c: Remove duplicated include statements.
13920 * alphabsd-nat.c: Ditto.
13921 * amd64-darwin-tdep.c: Ditto.
13922 * amd64fbsd-nat.c: Ditto.
13923 * auto-load.c: Ditto.
13925 * breakpoint.c: Ditto.
13926 * dbxread.c: Ditto.
13927 * fork-child.c: Ditto.
13928 * gdb_usleep.c: Ditto.
13929 * i386-darwin-tdep.c: Ditto.
13930 * i386fbsd-nat.c: Ditto.
13932 * inferior.c: Ditto.
13933 * jv-lang.c: Ditto.
13934 * linux-nat.c: Ditto.
13935 * linux-tdep.c: Ditto.
13936 * m68kbsd-nat.c: Ditto.
13937 * m68klinux-nat.c: Ditto.
13938 * microblaze-tdep.c: Ditto.
13939 * mips-linux-tdep.c: Ditto.
13940 * mn10300-tdep.c: Ditto.
13941 * nto-tdep.c: Ditto.
13942 * opencl-lang.c: Ditto.
13944 * printcmd.c: Ditto.
13945 * regcache.c: Ditto.
13946 * remote-m32r-sdi.c: Ditto.
13948 * symfile.c: Ditto.
13950 * tilegx-linux-nat.c: Ditto.
13951 * tilegx-tdep.c: Ditto.
13952 * tracepoint.c: Ditto.
13954 * vaxbsd-nat.c: Ditto.
13955 * windows-nat.c: Ditto.
13956 * xtensa-tdep.c: Ditto.
13958 2014-01-07 Yao Qi <yao@codesourcery.com>
13960 * spu-linux-nat.c (_initialize_spu_nat): Declare.
13962 2014-01-07 Yao Qi <yao@codesourcery.com>
13963 Joel Brobecker <brobecker@adacore.com>
13965 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13966 (pdc_write_regs): Likewise.
13967 (fetch_regs_kernel_thread): Likewise.
13968 (store_regs_kernel_thread): Likewise.
13970 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13972 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13973 tagged type objects to their actual type.
13975 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13977 * ada-valprint.c (print_field_values): Add "language" parameter.
13978 Update calls to print_field_values and print_variant_part.
13979 Pass new parameter "language" in call to val_print instead
13980 of "current_language". Replace call to ada_val_print by call
13982 (print_variant_part): Add "language" parameter.
13983 (ada_val_print_struct_union): Update call to print_field_values.
13985 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13987 * ada-valprint.c (ui_memcpy): Delete.
13988 (ada_print_floating): Update documentation. Add empty line
13989 between between function documentation and implementation.
13990 Delete variable "buffer". Use ui_file_xstrdup in place of
13991 ui_file_put. Minor adjustments following this change.
13993 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13995 * ada-valprint.c (ada_val_print_string): New function,
13996 extracted from ada_val_print_array.
13997 (ada_val_print_array): Replace extracted code by call
13998 to ada_val_print_string followed by a return. Move
13999 "else" branch to the function's top block.
14001 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14003 * ada-valprint.c (ada_val_print_array): Move implementation
14004 down. Rename parameter "offset" and "val" into "offset_aligned"
14005 and "original_value" respectively. Add parameter "offset".
14007 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14009 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14010 re-organizing the code. Change the "???" message printed
14011 when target type is a TYPE_CODE_UNDEF into
14012 "<ref to undefined type>".
14014 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14016 * ada-valprint.c (print_record): Delete, implementation inlined...
14017 (ada_val_print_struct_union): ... here. Remove call to
14018 ada_check_typedef in inlined implementation.
14020 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14022 * ada-valprint.c (ada_val_print_gnat_array): New function,
14023 extracted from ada_val_print_1;
14024 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14025 (ada_val_print_flt, ada_val_print_struct_union)
14026 (ada_val_print_ref): Likewise.
14027 (ada_val_print_1): Delete variables i and elttype.
14028 Replace extracted-out code by call to corresponding
14031 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14033 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14035 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14037 * ada-valprint.c (ada_val_print_1): Replace calls to
14038 ada_val_print_1 by calls to val_print.
14040 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14042 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14043 Update calls to self accordingly. Replace calls to c_val_print
14044 by calls to val_print.
14046 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14048 * ada-valprint.c (print_record): Delete declaration.
14049 (adjust_type_signedness, ada_val_print_1): Likewise.
14050 (ada_val_print): Move function implementation down.
14051 (print_variant_part, print_field_values, print_record):
14052 Move function implementation up.
14054 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14056 * python/py-type.c (typy_get_name): New function.
14057 (type_object_getset): Add entry for attribute "name".
14058 * NEWS: Add entry mentioning this new attribute.
14060 2014-01-07 Yao Qi <yao@codesourcery.com>
14062 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14065 2014-01-07 Yao Qi <yao@codesourcery.com>
14067 * gnu-nat.c (info_port_rights): Add qualifier const to
14070 2014-01-07 Yao Qi <yao@codesourcery.com>
14072 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14074 2014-01-07 Yao Qi <yao@codesourcery.com>
14076 * gnu-nat.c (make_inf) Update declaration.
14077 (make_inf): Make it static.
14078 (inf_set_traced): Likewise.
14079 (inf_port_to_thread, inf_task_died_status): Likewise.
14081 2014-01-07 Yao Qi <yao@codesourcery.com>
14083 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14085 2014-01-07 Yao Qi <yao@codesourcery.com>
14087 * gnu-nat.c (_initialize_gnu_nat): Declare.
14089 2014-01-07 Yao Qi <yao@codesourcery.com>
14091 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14093 (struct gdbarch_info) <byte_order>: Change type to
14095 <byte_order_for_code>: Likewise.
14096 * gdbarch.c, gdbarch.h: Regenerated.
14098 2014-01-06 Sasha Smundak <asmundak@google.com>
14100 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14102 2014-01-06 Tom Tromey <tromey@redhat.com>
14104 * doublest.c (convert_doublest_to_floatformat): Use const, not
14106 * somread.c (som_symtab_read): Likewise.
14108 2014-01-07 Hui Zhu <hui@codesourcery.com>
14110 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14111 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14112 (gdb_bfd_fopen): Ditto.
14113 (gdb_bfd_openr): Ditto.
14114 (gdb_bfd_openw): Ditto.
14115 (gdb_bfd_openr_iovec): Ditto.
14116 (gdb_bfd_fdopenr): Ditto.
14117 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14118 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14120 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14122 * symfile-mem.c (symbol_file_add_from_memory): Removed
14123 gdb_bfd_stash_filename.
14125 2014-01-03 Doug Evans <dje@google.com>
14127 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14130 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14132 Update year range in copyright notice of all files.
14134 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14136 * top.c (print_gdb_version): Set copyright year to 2014.
14138 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14140 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14142 For older changes see ChangeLog-2013.
14148 version-control: never