1 2014-10-15 Pedro Alves <palves@redhat.com>
3 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
4 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
5 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
6 (bsd_uthread_target): Adjust.
7 * corelow.c (core_open): Adjust.
8 * dec-thread.c (dec_thread_find_new_threads): Update comment.
9 (dec_thread_update_thread_list): New function.
10 (init_dec_thread_ops): Adjust.
11 * gdbthread.h (prune_threads): New declaration.
12 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
13 (thread_db_update_thread_list): ... this. Call prune_threads.
14 (init_thread_db_ops): Adjust.
15 * nto-procfs.c (procfs_find_new_threads): Rename to ...
16 (procfs_update_thread_list): ... this. Call prune_threads.
17 (procfs_attach, procfs_create_inferior, init_procfs_targets):
19 * obsd-nat.c (obsd_find_new_threads): Rename to ...
20 (obsd_update_thread_list): ... this. Call prune_threads.
21 (obsd_add_target): Adjust.
22 * procfs.c (procfs_target): Adjust.
23 (procfs_notice_thread): Update comment.
24 (procfs_find_new_threads): Rename to ...
25 (procfs_update_thread_list): ... this. Call prune_threads.
26 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
28 (ravenscar_wait): Adjust.
29 (ravenscar_find_new_threads): Rename to ...
30 (ravenscar_update_thread_list): ... this. Call prune_threads.
31 (init_ravenscar_thread_ops): Adjust.
32 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
33 (record_btrace_update_thread_list): ... this. Adjust comment.
34 (init_record_btrace_ops): Adjust.
35 * remote.c (remote_threads_info): Rename to ...
36 (remote_update_thread_list): ... this. Call prune_threads.
37 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
39 * sol-thread.c (check_for_thread_db): Adjust.
40 (sol_find_new_threads_callback): Rename to ...
41 (sol_update_thread_list_callback): ... this.
42 (sol_find_new_threads): Rename to ...
43 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
44 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
45 * target-delegates.c: Regenerate.
46 * target.c (target_find_new_threads): Rename to ...
47 (target_update_thread_list): ... this.
48 * target.h (struct target_ops): Rename to_find_new_threads field
49 to to_update_thread_list.
50 (target_find_new_threads): Rename to ...
51 (target_update_thread_list): ... this.
52 * thread.c (prune_threads): Make extern.
53 (update_thread_list): Adjust.
55 2014-10-15 Pedro Alves <palves@redhat.com>
57 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
58 Add describing comment. Return -1 if the qL packet is not
60 (struct thread_item, thread_item_t): Move higher up in
61 the file. Add comments.
62 (struct threads_parsing_context): Move higher up in
63 the file, add comments, and remote to ...
64 (struct threads_listing_context): ... this.
65 (remote_newthread_step): Don't add the thread to GDB's thread
66 database here. Instead push it to the thread_listing_context
68 (remote_find_new_threads): Rename to ...
69 (remote_get_threads_with_ql): ... this. Add target_ops and
70 targets_listing_context parameters. Pass down context.
71 (start_thread): Adjust.
72 (clear_threads_parsing_context): Rename to ...
73 (clear_threads_listing_context): ... this.
74 (remote_get_threads_with_qxfer): New, with parts salvaged from old
76 (remote_get_threads_with_qthreadinfo): Ditto.
77 (remote_threads_info): Reimplement.
79 2014-10-15 Pedro Alves <palves@redhat.com>
81 * infrun.c (resume): Don't force displaced-stepping for all
82 single-steps on software single-stepping archs.
84 2014-10-15 Pedro Alves <palves@redhat.com>
86 * breakpoint.c (single_step_breakpoints): Delete global.
87 (insert_single_step_breakpoint): Adjust to store the breakpoint
88 pointer in the current thread.
89 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
90 (cancel_single_step_breakpoints): Delete functions.
91 (breakpoint_has_location_inserted_here): Make extern.
92 (single_step_breakpoint_inserted_here_p): Adjust to walk the
94 * breakpoint.h (breakpoint_has_location_inserted_here): New
96 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
97 (cancel_single_step_breakpoints): Remove declarations.
98 * gdbthread.h (struct thread_control_state)
99 <single_step_breakpoints>: New field.
100 (delete_single_step_breakpoints)
101 (thread_has_single_step_breakpoints_set)
102 (thread_has_single_step_breakpoint_here): New declarations.
103 * infrun.c (follow_exec): Also clear the single-step breakpoints.
104 (singlestep_breakpoints_inserted_p, singlestep_ptid)
105 (singlestep_pc): Delete globals.
106 (infrun_thread_ptid_changed): Remove references to removed
108 (resume_cleanups): Delete the current thread's single-step
110 (maybe_software_singlestep): Remove references to removed globals.
111 (resume): Adjust to use thread_has_single_step_breakpoints_set and
112 delete_single_step_breakpoints.
113 (init_wait_for_inferior): Remove references to removed globals.
114 (delete_thread_infrun_breakpoints): Delete the thread's
115 single-step breakpoints too.
116 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
117 single-step breakpoints here.
118 (delete_stopped_threads_single_step_breakpoints): New function.
119 (adjust_pc_after_break): Adjust to use
120 thread_has_single_step_breakpoints_set.
121 (handle_inferior_event): Remove references to removed globals.
122 Use delete_stopped_threads_single_step_breakpoints.
123 (handle_signal_stop): Adjust to per-thread single-step
124 breakpoints. Swap test order to do cheaper tests first.
125 (switch_back_to_stepped_thread): Extend debug output. Remove
126 references to removed globals.
127 * record-full.c (record_full_wait_1): Adjust to per-thread
128 single-step breakpoints.
129 * thread.c (delete_single_step_breakpoints)
130 (thread_has_single_step_breakpoints_set)
131 (thread_has_single_step_breakpoint_here): New functions.
132 (clear_thread_inferior_resources): Also delete the thread's
133 single-step breakpoints.
135 2014-10-15 Pedro Alves <palves@redhat.com>
137 * thread.c (delete_thread_breakpoint): New function.
138 (delete_step_resume_breakpoint)
139 (delete_exception_resume_breakpoint): Use it.
140 (delete_at_next_stop): New function.
141 (clear_thread_inferior_resources): Use delete_at_next_stop.
143 2014-10-15 Pedro Alves <palves@redhat.com>
145 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
146 (breakpoint_inserted_here_p): ... here. Remove special case for
147 software single-step breakpoints.
148 (find_non_raw_software_breakpoint_inserted_here): Inline ...
149 (software_breakpoint_inserted_here_p): ... here. Remove special
150 case for software single-step breakpoints.
151 (bp_target_info_copy_insertion_state)
152 (deprecated_insert_raw_breakpoint)
153 (deprecated_remove_raw_breakpoint): Delete functions.
154 * breakpoint.h (deprecated_insert_raw_breakpoint)
155 (deprecated_remove_raw_breakpoint): Remove declarations.
157 2014-10-15 Pedro Alves <palves@redhat.com>
160 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
161 Delete array globals.
162 (single_step_breakpoints): New global.
163 (breakpoint_xfer_memory): Remove special handling for single-step
165 (update_breakpoints_after_exec): Delete bp_single_step
167 (detach_breakpoints): Remove special handling for single-step
169 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
170 (bpstat_stop_status): Add comment.
171 (bpstat_what, bptype_string, print_one_breakpoint_location)
172 (adjust_breakpoint_address, init_bp_location): Handle
174 (new_single_step_breakpoint): New function.
175 (set_momentary_breakpoint, bkpt_remove_location): Remove special
176 handling for single-step breakpoints.
177 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
178 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
180 (detach_single_step_breakpoints, find_single_step_breakpoint):
182 (breakpoint_has_location_inserted_here): New function.
183 (single_step_breakpoint_inserted_here_p): Rewrite.
184 * breakpoint.h: Remove FIXME.
185 (enum bptype) <bp_single_step>: New enum value.
186 (insert_single_step_breakpoint): Update comment.
187 * infrun.c (resume_cleanups)
188 (delete_step_thread_step_resume_breakpoint): Remove single-step
190 (fetch_inferior_event): Install a cleanup that removes infrun
192 (switch_back_to_stepped_thread) <expect thread advanced also>:
193 Clear step-over info.
195 2014-10-15 Pedro Alves <palves@redhat.com>
197 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
198 (delete_thread_infrun_breakpoints): New function, with parts
199 salvaged from delete_step_resume_breakpoint_callback.
200 (delete_step_thread_step_resume_breakpoint): Delete.
201 (for_each_just_stopped_thread_callback_func): New typedef.
202 (for_each_just_stopped_thread): New function.
203 (delete_just_stopped_threads_infrun_breakpoints): New function.
204 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
205 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
207 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
209 2014-10-15 Pedro Alves <palves@redhat.com>
211 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
212 trying to step past a non-steppable watchpoint.
213 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
215 * infrun.c (struct step_over_info): Add new field
216 'nonsteppable_watchpoint_p' and adjust comments.
217 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
219 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
220 (stepping_past_nonsteppable_watchpoint): New function.
221 (step_over_info_valid_p): Also return true if stepping past a
222 nonsteppable watchpoint.
223 (proceed): Adjust call to set_step_over_info. Remove reference to
225 (init_wait_for_inferior): Remove reference to init_infwait_state.
226 (waiton_ptid): Delete global.
227 (struct execution_control_state)
228 <stepped_after_stopped_by_watchpoint>: Delete field.
229 (wait_for_inferior, fetch_inferior_event): Always pass
230 minus_one_ptid to target_wait.
231 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
233 (init_infwait_state): Delete function.
234 (handle_inferior_event): Remove infwait_state handling.
235 (handle_signal_stop) <watchpoints handling>: Adjust after
236 stepped_after_stopped_by_watchpoint removal. Don't remove
237 breakpoints here nor set infwait_state. Set the thread's
238 stepping_over_watchpoint flag, and call keep_going instead.
239 (keep_going): Handle stepping_over_watchpoint. Adjust
240 set_step_over_info calls.
241 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
244 2014-10-15 Pedro Alves <palves@redhat.com>
246 * infrun.c (step_over_info_valid_p): New function.
247 (resume): Use step_over_info_valid_p instead of checking the
248 threads's trap_expected flag.
250 2014-10-15 Doug Evans <dje@google.com>
251 Walfred Tedeschi <walfred.tedeschi@intel.com>
254 * python/lib/gdb/__init__.py (packages): Add "printer".
255 * python/lib/gdb/command/bound_registers.py: Moved to ...
256 * python/lib/gdb/printer/bound_registers.py: ... here.
257 Add printer to global set of builtin printers. Rename printer from
258 "bound" to "mpx_bound128".
259 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
260 registered as global "builtin" printer.
261 (add_builtin_pretty_printer): New function.
262 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
263 gdb/printer/__init__.py.
265 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
267 * Makefile.in (SFILES): Remove d-support.c.
268 (COMMON_OBS): Remove d-support.o.
269 * d-lang.h (d_parse_symbol): Remove declaration.
270 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
271 * d-support.c: Remove file.
273 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
275 * gdb/infrun.c (process_event_stop_test): Apply
276 gdbarch_addr_bits_remove to longjmp resume address.
278 2014-10-15 Pedro Alves <palves@redhat.com>
280 * regformats/microblaze.dat: Delete file.
282 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
284 * features/Makefile (microblaze-expedite): Replace pc with rpc.
285 * regformats/microblaze-with-stack-protect.dat: Regenerate.
287 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
289 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
292 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
296 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
299 2014-10-14 Joel Brobecker <brobecker@adacore.com>
301 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
302 of the case where the second operand is a pointer.
303 <BINOP_SUB>: Likewise.
305 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
307 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
308 only if it is not NULL.
309 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
310 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
311 (struct probe_ops) <clear_semaphore>: Likewise.
312 * tracepoint.c (start_tracing): Call set_semaphore only if it is
314 (stop_tracing): Likewise, for clear_semaphore.
316 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
318 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
319 using language_c, instead of current_language.
321 2014-10-13 Doug Evans <dje@google.com>
323 * python/py-objfile.c (objfpy_initialize): New function.
324 (objfpy_new, objfile_to_objfile_object): Call it.
325 * python/py-progspace.c (pspy_initialize): New function.
326 (pspy_new, pspace_to_pspace_object): Call it.
328 2014-10-13 Miroslav Franc <mfranc@redhat.com>
329 Jan Kratochvil <jan.kratochvil@redhat.com>
331 Fix "save breakpoints" for "catch" command.
332 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
335 2014-10-12 Miroslav Franc <mfranc@redhat.com>
337 Fix "save breakpoints" for "disable $bpnum" command.
338 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
340 2014-10-10 Pedro Alves <palves@redhat.com>
342 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
343 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
344 (HFILES_NO_SRCDIR): Remove solib-irix.h.
345 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
347 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
348 * configure.ac: Remove references to IRIX.
349 * configure.host: Add *-*-irix* to the obsolete hosts section.
350 Remove all other references to irix.
351 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
354 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
356 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
357 isn't valid, release the tdesc arch data and return NULL.
359 2014-10-10 Pedro Alves <palves@redhat.com>
361 * linux-tdep.c: Include observer.h.
362 (linux_inferior_data): New global.
363 (struct linux_info): New structure.
364 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
365 (get_linux_inferior_data): New functions.
366 (linux_vsyscall_range): Rename to ...
367 (linux_vsyscall_range_raw): ... this.
368 (linux_vsyscall_range): New function; handles caching.
369 (_initialize_linux_tdep): Register linux_inferior_data. Install
370 inferior_exit and inferior_appeared observers.
372 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
373 Pedro Alves <palves@redhat.com>
376 * solib-svr4.c (svr4_read_so_list): Rename to ...
377 (svr4_current_sos_1): ... this and change the function comment.
378 (svr4_current_sos): New function.
380 2014-10-10 Pedro Alves <palves@redhat.com>
382 * arch-utils.c (default_vsyscall_range): New function.
383 * arch-utils.h (default_vsyscall_range): New declaration.
384 * gdbarch.sh (vsyscall_range): New hook.
385 * gdbarch.h, gdbarch.c: Regenerate.
386 * linux-tdep.c (linux_vsyscall_range): New function.
387 (linux_init_abi): Install linux_vsyscall_range as
388 vsyscall_range gdbarch hook.
389 * memrange.c (address_in_mem_range): New function.
390 * memrange.h (address_in_mem_range): New declaration.
391 * symfile-mem.c (find_vdso_size): Delete function.
392 (add_vsyscall_page): Use gdbarch_vsyscall_range.
394 2014-10-10 Pedro Alves <palves@redhat.com>
396 * infrun.c (normal_stop): Fix typo in comment.
398 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
401 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
402 typo when using logical AND to determine instruction type.
404 2014-10-09 Yao Qi <yao@codesourcery.com>
406 * infrun.c (handle_signal_stop): Remove local variable
409 2014-10-08 Stan Shebs <stan@codesourcery.com>
411 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
413 2014-10-08 Gary Benson <gbenson@redhat.com>
415 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
417 2014-10-08 Gary Benson <gbenson@redhat.com>
419 * common/common-defs.h: Include common-exceptions.h.
420 * exceptions.h: Do not include common-exceptions.h.
422 2014-10-08 Gary Benson <gbenson@redhat.com>
424 * common/common-defs.h: Include cleanups.h.
425 * common/common-exceptions.c: Do not include cleanups.h.
428 2014-10-08 Gary Benson <gbenson@redhat.com>
430 * ada-lang.c: Do not include exceptions.h.
431 * ada-valprint.c: Likewise.
432 * amd64-tdep.c: Likewise.
433 * auto-load.c: Likewise.
435 * break-catch-throw.c: Likewise.
436 * breakpoint.c: Likewise.
437 * btrace.c: Likewise.
438 * c-lang.c: Likewise.
439 * cli/cli-cmds.c: Likewise.
440 * cli/cli-interp.c: Likewise.
441 * cli/cli-script.c: Likewise.
442 * completer.c: Likewise.
443 * corefile.c: Likewise.
444 * corelow.c: Likewise.
445 * cp-abi.c: Likewise.
446 * cp-support.c: Likewise.
447 * cp-valprint.c: Likewise.
448 * darwin-nat.c: Likewise.
449 * dwarf2-frame-tailcall.c: Likewise.
450 * dwarf2-frame.c: Likewise.
451 * dwarf2loc.c: Likewise.
452 * dwarf2read.c: Likewise.
454 * event-loop.c: Likewise.
455 * event-top.c: Likewise.
456 * f-valprint.c: Likewise.
457 * frame-unwind.c: Likewise.
459 * gdbtypes.c: Likewise.
460 * gnu-v2-abi.c: Likewise.
461 * gnu-v3-abi.c: Likewise.
462 * guile/scm-auto-load.c: Likewise.
463 * guile/scm-breakpoint.c: Likewise.
464 * guile/scm-cmd.c: Likewise.
465 * guile/scm-frame.c: Likewise.
466 * guile/scm-lazy-string.c: Likewise.
467 * guile/scm-param.c: Likewise.
468 * guile/scm-symbol.c: Likewise.
469 * guile/scm-type.c: Likewise.
470 * hppa-hpux-tdep.c: Likewise.
471 * i386-tdep.c: Likewise.
472 * inf-loop.c: Likewise.
473 * infcall.c: Likewise.
474 * infcmd.c: Likewise.
475 * infrun.c: Likewise.
476 * interps.c: Likewise.
477 * interps.h: Likewise.
479 * linespec.c: Likewise.
480 * linux-nat.c: Likewise.
481 * linux-thread-db.c: Likewise.
482 * m32r-rom.c: Likewise.
484 * memory-map.c: Likewise.
485 * mi/mi-cmd-break.c: Likewise.
486 * mi/mi-cmd-stack.c: Likewise.
487 * mi/mi-interp.c: Likewise.
488 * mi/mi-main.c: Likewise.
489 * monitor.c: Likewise.
490 * nto-procfs.c: Likewise.
491 * objc-lang.c: Likewise.
492 * p-valprint.c: Likewise.
494 * ppc-linux-tdep.c: Likewise.
495 * printcmd.c: Likewise.
497 * python/py-auto-load.c: Likewise.
498 * python/py-breakpoint.c: Likewise.
499 * python/py-cmd.c: Likewise.
500 * python/py-finishbreakpoint.c: Likewise.
501 * python/py-frame.c: Likewise.
502 * python/py-framefilter.c: Likewise.
503 * python/py-function.c: Likewise.
504 * python/py-gdb-readline.c: Likewise.
505 * python/py-inferior.c: Likewise.
506 * python/py-infthread.c: Likewise.
507 * python/py-lazy-string.c: Likewise.
508 * python/py-linetable.c: Likewise.
509 * python/py-param.c: Likewise.
510 * python/py-prettyprint.c: Likewise.
511 * python/py-symbol.c: Likewise.
512 * python/py-type.c: Likewise.
513 * python/py-value.c: Likewise.
514 * python/python-internal.h: Likewise.
515 * python/python.c: Likewise.
516 * record-btrace.c: Likewise.
517 * record-full.c: Likewise.
518 * regcache.c: Likewise.
519 * remote-fileio.c: Likewise.
520 * remote-mips.c: Likewise.
521 * remote.c: Likewise.
522 * rs6000-aix-tdep.c: Likewise.
523 * rs6000-nat.c: Likewise.
525 * solib-darwin.c: Likewise.
526 * solib-dsbt.c: Likewise.
527 * solib-frv.c: Likewise.
528 * solib-ia64-hpux.c: Likewise.
529 * solib-spu.c: Likewise.
530 * solib-svr4.c: Likewise.
532 * spu-tdep.c: Likewise.
534 * stap-probe.c: Likewise.
535 * symfile-mem.c: Likewise.
536 * symmisc.c: Likewise.
537 * target.c: Likewise.
538 * thread.c: Likewise.
540 * tracepoint.c: Likewise.
541 * tui/tui-interp.c: Likewise.
542 * typeprint.c: Likewise.
544 * valarith.c: Likewise.
545 * valops.c: Likewise.
546 * valprint.c: Likewise.
548 * varobj.c: Likewise.
549 * windows-nat.c: Likewise.
550 * xml-support.c: Likewise.
552 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
554 * mips-tdep.c (add_offset_16): Rewrite to implement what the
556 (extended_mips16_next_pc): Update accordingly.
558 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
560 * mips-tdep.c (mips16_instruction_is_compact_branch): New
562 (micromips_instruction_is_compact_branch): Likewise.
563 (mips16_scan_prologue): Terminate scanning upon seeing a branch
564 or a compact jump, reaching a jump delay slot, or seeing a
565 second non-prologue instruction.
566 (micromips_scan_prologue): Also terminate scanning upon seeing a
567 compact branch or jump, or reaching a branch or jump delay slot.
568 (mips32_scan_prologue): Terminate scanning upon reaching a branch
569 or jump delay slot, or seeing a second non-prologue instruction.
570 (mips32_instruction_has_delay_slot): Retain instruction
571 examination code only, update arguments accordingly and move
572 instruction fetch pieces to...
573 (mips32_insn_at_pc_has_delay_slot): ... this new function.
574 (micromips_instruction_has_delay_slot): Likewise and to...
575 (micromips_insn_at_pc_has_delay_slot): ... this new function.
576 (mips16_instruction_has_delay_slot): Likewise and to...
577 (mips16_insn_at_pc_has_delay_slot): ... this new function.
578 (mips_single_step_through_delay): Update accordingly.
579 (mips_adjust_breakpoint_address): Likewise.
581 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
583 * mips-tdep.c (micromips_instruction_has_delay_slot): When
584 !mustbe32 also return 1 for 32-bit instructions.
585 (mips16_instruction_has_delay_slot): Likewise. Add an
588 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
590 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
593 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
595 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
597 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
598 for the breakpoint's address. Don't preinitialize `placed_size'.
599 (insert_bp_location): Set `reqstd_address' rather than
601 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
602 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
604 (bkpt_remove_location): Likewise.
605 (deprecated_insert_raw_breakpoint): Likewise.
606 (deprecated_remove_raw_breakpoint): Likewise.
607 (find_single_step_breakpoint): Likewise.
608 * mem-break.c (default_memory_insert_breakpoint): Use
609 `reqstd_address' for the breakpoint's address. Don't set
610 `placed_address' or `placed_size' if breakpoint contents couldn't
611 have been determined.
612 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
613 the breakpoint's address.
614 (remote_insert_hw_breakpoint): Likewise. Don't set
615 `placed_address' or `placed_size' if breakpoint couldn't have been
617 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
618 `reqstd_address' for the breakpoint's address.
619 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
620 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
621 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
622 * microblaze-linux-tdep.c
623 (microblaze_linux_memory_remove_breakpoint): Likewise.
624 * monitor.c (monitor_insert_breakpoint): Likewise.
625 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
626 (procfs_insert_hw_breakpoint): Likewise.
627 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
628 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
629 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
630 * remote-mips.c (mips_insert_breakpoint): Likewise.
631 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
633 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
635 * valops.c (value_assign): Check for bit field assignments
636 before calling architecture-specific register value
637 conversion functions.
639 2014-10-03 Pierre Muller <muller@sourceware.org>
641 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
643 2014-10-02 Pedro Alves <palves@redhat.com>
645 * breakpoint.c (breakpoints_should_be_inserted_now): Use
646 threads_are_executing.
647 * breakpoint.h (breakpoints_should_be_inserted_now): Add
649 * gdbthread.h (threads_are_executing): Declare.
650 (handle_signal_stop) <random signals>: Don't print about the
651 signal here if stopping.
652 (end_stepping_range): Don't notify observers here.
653 (normal_stop): Update the thread list. If stopped by a random
654 signal or a stepping range ended, notify observers.
655 * thread.c (threads_executing): New global.
656 (init_thread_list): Clear 'threads_executing'.
657 (set_executing): Set or clear 'threads_executing'.
658 (threads_are_executing): New function.
659 (update_threads_executing): New function.
660 (update_thread_list): Use it.
662 2014-10-02 Pedro Alves <palves@redhat.com>
665 * breakpoint.c (update_breakpoints_after_exec): Don't create
666 overlay, longjmp, std terminate nor exception breakpoints here.
668 2014-10-02 Pedro Alves <palves@redhat.com>
670 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
672 * inferior.c (find_inferior_for_program_space): Give preference to
673 the current inferior.
674 * inferior.h (find_inferior_for_program_space): Update comment.
675 * progspace.c (switch_to_program_space_and_thread): Prefer the
676 current inferior if it's bound to the program space requested. If
677 the inferior found doesn't have a PID yet, don't bother looking up
679 * progspace.h (switch_to_program_space_and_thread): Adjust
681 * thread.c (any_thread_of_process, any_live_thread_of_process):
682 Give preference to the current thread.
684 2014-10-01 Pedro Alves <palves@redhat.com>
686 * breakpoint.c (insert_bp_location): Error out if inserting a
687 software breakpoint at a read-only address.
688 * target.c (memory_xfer_check_region): New function, factored out
690 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
692 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
693 against the memory region attributes.
695 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
697 * NEWS: Announce new exit-code field in -list-thread-groups
699 * inferior.c (exit_inferior_1): Don't clear exit code.
700 (inferior_appeared): Clear exit code.
701 * mi/mi-main.c (print_one_inferior): Add printing of the exit
704 2014-10-01 Pedro Alves <palves@redhat.com>
706 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
707 GENERATED" along with emacs/vi read-only markers.
708 * regformats/aarch64.dat: Regenerate.
709 * regformats/arm-with-iwmmxt.dat: Regenerate.
710 * regformats/arm-with-neon.dat: Regenerate.
711 * regformats/arm-with-vfpv2.dat: Regenerate.
712 * regformats/arm-with-vfpv3.dat: Regenerate.
713 * regformats/i386/amd64-avx-linux.dat: Regenerate.
714 * regformats/i386/amd64-avx.dat: Regenerate.
715 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
716 * regformats/i386/amd64-avx512.dat: Regenerate.
717 * regformats/i386/amd64-linux.dat: Regenerate.
718 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
719 * regformats/i386/amd64-mpx.dat: Regenerate.
720 * regformats/i386/amd64.dat: Regenerate.
721 * regformats/i386/i386-avx-linux.dat: Regenerate.
722 * regformats/i386/i386-avx.dat: Regenerate.
723 * regformats/i386/i386-avx512-linux.dat: Regenerate.
724 * regformats/i386/i386-avx512.dat: Regenerate.
725 * regformats/i386/i386-linux.dat: Regenerate.
726 * regformats/i386/i386-mmx-linux.dat: Regenerate.
727 * regformats/i386/i386-mmx.dat: Regenerate.
728 * regformats/i386/i386-mpx-linux.dat: Regenerate.
729 * regformats/i386/i386-mpx.dat: Regenerate.
730 * regformats/i386/i386.dat: Regenerate.
731 * regformats/i386/x32-avx-linux.dat: Regenerate.
732 * regformats/i386/x32-avx.dat: Regenerate.
733 * regformats/i386/x32-avx512-linux.dat: Regenerate.
734 * regformats/i386/x32-avx512.dat: Regenerate.
735 * regformats/i386/x32-linux.dat: Regenerate.
736 * regformats/i386/x32.dat: Regenerate.
737 * regformats/microblaze-with-stack-protect.dat: Regenerate.
738 * regformats/mips-dsp-linux.dat: Regenerate.
739 * regformats/mips-linux.dat: Regenerate.
740 * regformats/mips64-dsp-linux.dat: Regenerate.
741 * regformats/mips64-linux.dat: Regenerate.
742 * regformats/nios2-linux.dat: Regenerate.
743 * regformats/rs6000/powerpc-32.dat: Regenerate.
744 * regformats/rs6000/powerpc-32l.dat: Regenerate.
745 * regformats/rs6000/powerpc-64l.dat: Regenerate.
746 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
747 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
748 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
749 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
750 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
751 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
752 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
753 * regformats/s390-linux32.dat: Regenerate.
754 * regformats/s390-linux32v1.dat: Regenerate.
755 * regformats/s390-linux32v2.dat: Regenerate.
756 * regformats/s390-linux64.dat: Regenerate.
757 * regformats/s390-linux64v1.dat: Regenerate.
758 * regformats/s390-linux64v2.dat: Regenerate.
759 * regformats/s390-te-linux64.dat: Regenerate.
760 * regformats/s390x-linux64.dat: Regenerate.
761 * regformats/s390x-linux64v1.dat: Regenerate.
762 * regformats/s390x-linux64v2.dat: Regenerate.
763 * regformats/s390x-te-linux64.dat: Regenerate.
764 * regformats/tic6x-c62x-linux.dat: Regenerate.
765 * regformats/tic6x-c62x.dat: Regenerate.
766 * regformats/tic6x-c64x-linux.dat: Regenerate.
767 * regformats/tic6x-c64x.dat: Regenerate.
768 * regformats/tic6x-c64xp-linux.dat: Regenerate.
769 * regformats/tic6x-c64xp.dat: Regenerate.
771 2014-10-01 Pedro Alves <palves@redhat.com>
773 * features/Makefile: Update comments.
774 (XMLTOC): List all xml files we build C files from.
775 (clean-cfiles): New rule.
777 2014-10-01 Pedro Alves <palves@redhat.com>
779 * features/i386/amd64-avx512-linux.c: Regenerate.
780 * features/i386/amd64-avx512.c: Regenerate.
781 * features/i386/x32-avx512-linux.c: Regenerate.
782 * features/i386/x32-avx512.c: Regenerate.
784 2014-10-01 Pedro Alves <palves@redhat.com>
786 * features/Makefile (WHICH): Remove arm-with-m,
787 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
789 2014-10-01 Pedro Alves <palves@redhat.com>
791 * features/Makefile (clean): New rule.
793 2014-10-01 Pedro Alves <palves@redhat.com>
795 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
796 (zmm14h): Add missing end quotes.
798 2014-10-01 Pedro Alves <palves@redhat.com>
800 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
801 * features/aarch64.c: Regenerate.
803 2014-09-30 Don Breazeal <donb@codesourcery.com>
805 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
806 code so as to work with follow_fork_inferior.
807 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
808 (inf_ttrace_create_inferior): Remove reference to
809 inf_ttrace_vfork_ppid.
810 (inf_ttrace_attach): Ditto.
811 (inf_ttrace_detach): Ditto.
812 (inf_ttrace_kill): Use current_inferior instead of
813 inf_ttrace_vfork_ppid.
814 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
815 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
816 inferior away from the parent.
817 * infrun.c (follow_fork): Call follow_fork_inferior instead of
819 (follow_fork_inferior): New function.
820 (follow_inferior_reset_breakpoints): Make function static.
821 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
822 * linux-nat.c (linux_child_follow_fork): Move target-independent
823 code to infrun.c:follow_fork_inferior.
825 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
827 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
828 * gdbarch.c: Regenerate.
829 * gdbarch.h: Likewise.
830 * corelow.c (sniff_core_bfd): Drop presence check for deleted
831 gdbarch method 'regset_from_core_section'.
832 (get_core_register_section): Remove handling for the case that
833 regset == NULL and regset_from_core_section is defined.
834 (get_core_registers): Drop check for deleted method.
835 * procfs.c (procfs_do_thread_registers): Adjust comment.
837 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
839 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
840 (linux_nat_make_corefile_notes): Remove.
841 (linux_target_install_ops): Do not set target method
842 'make_corefile_notes'.
843 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
845 (linux_corefile_thread_callback): Instead of args->collect, call
846 linux_collect_thread_registers.
847 (linux_make_corefile_notes): Remove 'collect' parameter. Return
848 NULL unless there is a regset iterator.
849 (linux_make_corefile_notes_1): Remove.
850 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
851 by linux_make_corefile_notes.
852 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
854 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
856 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
857 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
859 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
861 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
863 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
864 (xtensa_iterate_over_regset_sections): New.
865 (xtensa_gdbarch_init): Adjust gdbarch initialization.
867 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
869 * vax-tdep.c (vax_regset_from_core_section): Remove.
870 (vax_iterate_over_regset_sections): New.
871 (vax_gdbarch_init): Adjust gdbarch initialization.
873 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
875 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
876 (tilegx_regset_from_core_section): Remove.
877 (tilegx_iterate_over_regset_sections): New.
878 (tilegx_linux_init_abi): Adjust gdbarch initialization.
880 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
882 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
883 (sparc_iterate_over_regset_sections): New.
884 (sparc32_gdbarch_init): Adjust gdbarch initialization.
885 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
887 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
888 (sparc64fbsd_init_abi): Call fbsd_init_abi.
889 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
890 target method 'make_corefile_notes'.
892 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
894 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
895 'sizeof_gregset' and 'sizeof_fpregset'.
896 * sh-tdep.c (sh_regset_from_core_section): Remove.
897 (sh_iterate_over_regset_sections): New.
898 (sh_gdbarch_init): Adjust gdbarch initialization.
899 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
901 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
904 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
906 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
907 (score7_linux_iterate_over_regset_sections): New.
908 (score_gdbarch_init): Adjust gdbarch initialization.
910 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
912 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
914 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
915 method 'make_corefile_notes'.
916 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
917 (ppcfbsd_regset_from_core_section): Remove.
918 (ppcfbsd_iterate_over_regset_sections): New.
919 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
921 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
922 (ppcnbsd_iterate_over_regset_sections): New.
923 (ppcnbsd_init_abi): Adjust.
924 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
925 (ppcobsd_iterate_over_regset_sections): New.
926 (ppcobsd_init_abi): Adjust.
927 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
928 (rs6000_aix_iterate_over_regset_sections): New.
929 (rs6000_aix_init_osabi): Adjust.
931 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
933 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
934 (nios2_regset_from_core_section): Remove.
935 (nios2_iterate_over_regset_sections): New.
936 (nios2_linux_init_abi): Adjust gdbarch initialization.
938 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
940 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
941 (am33_iterate_over_regset_sections): New.
942 (am33_linux_init_osabi): Adjust gdbarch initialization.
944 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
946 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
947 (mips_linux_iterate_over_regset_sections): New.
948 (mips_linux_init_abi): Adjust gdbarch initialization.
949 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
950 (mips64obsd_iterate_over_regset_sections): New.
951 (mips64obsd_init_abi): Adjust.
952 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
953 (mipsnbsd_iterate_over_regset_sections): New.
954 (mipsnbsd_init_abi): Adjust.
956 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
958 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
959 (m88k_iterate_over_regset_sections): New.
960 (m88k_gdbarch_init): Adjust gdbarch initialization.
962 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
964 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
965 (ia64_linux_iterate_over_regset_sections): New.
966 (ia64_linux_init_abi): Adjust gdbarch initialization.
968 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
970 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
971 (m68kbsd_iterate_over_regset_sections): New.
972 (m68kbsd_init_abi): Adjust gdbarch initialization.
973 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
974 (m68k_linux_iterate_over_regset_sections): New.
975 (m68k_linux_init_abi): Adjust gdbarch initialization.
977 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
979 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
980 (m32r_linux_regset_from_core_section): Remove.
981 (m32r_linux_iterate_over_regset_sections): New.
982 (m32r_linux_init_abi): Adjust gdbarch initialization.
984 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
986 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
987 (amd64obsd_iterate_over_regset_sections): New.
988 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
989 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
991 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
992 regset_from_core_section initialization.
993 * i386-tdep.c (i386_regset_from_core_section): Remove.
994 (i386_iterate_over_regset_sections): New.
995 (i386_gdbarch_init): Adjust gdbarch initialization.
996 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
997 (i386_iterate_over_regset_sections): New prototype.
998 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1000 (i386obsd_aout_iterate_over_regset_sections): New.
1001 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1002 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1004 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1005 (amd64fbsd_init_abi): Call fbsd_init_abi.
1006 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1007 (i386fbsd4_init_abi): Call fbsd_init_abi.
1008 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1009 target method 'make_corefile_notes'.
1010 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1012 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1014 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1015 (hppa_hpux_iterate_over_regset_sections): New.
1016 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1017 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1018 (hppa_linux_iterate_over_regset_sections): New.
1019 (hppa_linux_init_abi): Adjust.
1020 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1021 (hppanbsd_iterate_over_regset_sections): New.
1022 (hppanbsd_init_abi): Adjust.
1023 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1024 (hppaobsd_iterate_over_regset_sections): New.
1025 (hppaobsd_init_abi): Adjust.
1027 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1029 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1030 (frv_linux_iterate_over_regset_sections): New.
1031 (frv_linux_init_abi): Adjust gdbarch initialization.
1033 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1035 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1036 (armbsd_iterate_over_regset_sections): New prototype.
1037 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1038 (armbsd_iterate_over_regset_sections): New.
1039 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1042 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1044 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1045 (alpha_linux_iterate_over_regset_sections): New.
1046 (alpha_linux_init_abi): Adjust gdbarch initialization.
1047 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1049 (alphanbsd_iterate_over_regset_sections): New prototype.
1051 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1053 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1055 (aarch64_linux_iterate_over_regset_sections): New.
1056 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1058 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1060 * fbsd-tdep.c: New file.
1061 * fbsd-tdep.h: New file.
1062 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1063 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1064 (ALLDEPFILES): Add fbsd-tdep.c.
1066 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1068 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1070 * gdbarch.h: Regenerate.
1071 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1073 (get_core_register_section): Add parameter 'regset' and use it, if
1074 set. Add parameter 'min_size' and verify the bfd section size
1076 (get_core_registers_cb): Add parameter 'regset' and pass it to
1077 get_core_register section. For the "standard" register sections
1078 ".reg" and ".reg2", set an appropriate default for human_name.
1079 (get_core_registers): Don't abort when the gdbarch has an iterator
1080 but no regset_from_core_section. Add NULL/0 for parameters
1081 'regset'/'min_size' in calls to get_core_register_section.
1082 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1083 'regset' and use it instead of calling the
1084 regset_from_core_section gdbarch method.
1085 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1086 * i386-tdep.c (i386_supply_xstateregset)
1087 (i386_collect_xstateregset, i386_xstateregset): Moved to
1089 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1091 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1092 core file support only if the regset iterator hasn't been set.
1093 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1094 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1095 Moved from i386-tdep.c and renamed to *_linux*.
1096 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1097 each callback invocation. Allow any .reg-xstate size when reading
1099 * amd64-tdep.c (amd64_supply_xstateregset)
1100 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1102 (amd64_regset_from_core_section): Remove.
1103 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1104 install an amd64-specific regset_from_core_section gdbarch method.
1105 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1106 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1107 Moved from amd64-tdep.c and renamed to *_linux*.
1108 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1109 to each callback invocation. Allow any .reg-xstate size when
1110 reading from a core file.
1111 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1112 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1113 each callback invocation.
1114 (arm_linux_init_abi): No longer set the regset_from_core_section
1116 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1117 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1118 each callback invocation.
1119 (ppc_linux_init_abi): No longer set the regset_from_core_section
1121 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1122 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1123 (s390_regset_from_core_section): Remove.
1124 (s390_iterate_over_regset_sections): Add regset parameter to each
1125 callback invocation.
1126 (s390_gdbarch_init): No longer set the regset_from_core_section
1127 gdbarch method. Drop initialization of deleted tdep fields.
1129 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1131 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1132 (amd64_linux_iterate_over_regset_sections): New.
1133 (amd64_linux_init_abi_common): Don't install the regset section
1134 list, but the new iterator in gdbarch.
1135 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1136 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1137 (arm_linux_iterate_over_regset_sections): ...here. New function.
1138 (arm_linux_init_abi): Set iterator instead of section list.
1139 * corelow.c (get_core_registers_cb): New function, logic moved
1141 (get_core_registers): ...loop body here. Use new iterator method
1142 instead of walking through the regset section list.
1143 * gdbarch.sh: Remove 'core_regset_sections'. New method
1144 'iterate_over_regset_sections'. New typedef
1145 'iterate_over_regset_sections_cb'.
1146 * gdbarch.c: Regenerate.
1147 * gdbarch.h: Likewise.
1148 * i386-linux-tdep.c (i386_linux_regset_sections)
1149 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1151 (i386_linux_iterate_over_regset_sections): New.
1152 (i386_linux_init_abi): Don't choose a regset section list, but
1153 install new iterator in gdbarch.
1154 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1155 (linux_collect_regset_section_cb): New function, logic moved
1157 (linux_collect_thread_registers): ...loop body here. Use iterator
1158 method instead of walking through list.
1159 (linux_make_corefile_notes_1): Check for presence of iterator
1160 method instead of regset section list.
1161 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1162 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1163 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1164 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1165 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1166 (ppc_linux_init_abi): Don't choose from above regset section
1167 lists, but install new iterator in gdbarch.
1168 * regset.h (struct core_regset_section): Remove.
1169 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1170 have_linux_v1, have_linux_v2, and have_tdb.
1171 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1172 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1173 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1174 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1175 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1176 (s390_iterate_over_regset_sections): ...here. New function. Use
1178 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1179 regset section lists, but install new iterator.
1181 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1183 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1185 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1187 * progspace.c (print_program_space): Don't prune program spaces
1188 before printing them.
1190 2014-09-25 Pedro Alves <palves@redhat.com>
1192 * infrun.c (user_visible_resume_ptid): Don't check
1193 singlestep_breakpoints_inserted_p.
1195 2014-09-25 Pedro Alves <palves@redhat.com>
1197 * breakpoint.c (should_be_inserted): Add debug output.
1199 2014-09-25 Pedro Alves <palves@redhat.com>
1201 * infrun.c (stepping_past_instruction_at)
1202 (clear_exit_convenience_vars): Point at infrun.h instead of
1204 (handle_signal_stop): Fix typo.
1206 2014-09-24 Yao Qi <yao@codesourcery.com>
1208 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1211 2014-09-22 Gary Benson <gbenson@redhat.com>
1213 * target.c (target_stop): Updated comment.
1215 2014-09-22 Gary Benson <gbenson@redhat.com>
1217 * target/target.h (target_stop_ptid): Renamed as...
1218 (target_stop_and_wait): New function. Updated comment.
1220 (target_continue_ptid): Renamed as...
1221 (target_continue_no_signal): New function. Updated comment.
1224 2014-09-22 Pedro Alves <palves@redhat.com>
1226 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1228 * breakpoint.c (enum ugll_insert_mode): New enum.
1229 (always_inserted_mode): Now a plain boolean.
1230 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1231 (breakpoints_always_inserted_mode): Delete.
1232 (breakpoints_should_be_inserted_now): New function.
1233 (insert_breakpoints): Pass UGLL_INSERT to
1234 update_global_location_list instead of calling
1235 insert_breakpoint_locations manually.
1236 (create_solib_event_breakpoint_1): New, factored out from ...
1237 (create_solib_event_breakpoint): ... this.
1238 (create_and_insert_solib_event_breakpoint): Use
1239 create_solib_event_breakpoint_1 instead of calling
1240 insert_breakpoint_locations manually.
1241 (update_global_location_list): Change parameter type from boolean
1242 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1243 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1244 (update_global_location_list_nothrow): Change parameter type from
1245 boolean to enum ugll_insert_mode.
1246 (_initialize_breakpoint): "breakpoint always-inserted" option is
1247 now a boolean command. Update help text.
1248 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1249 (breakpoints_should_be_inserted_now): New declaration.
1250 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1251 Remove breakpoints_always_inserted_mode check.
1252 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1253 * remote.c (remote_start_remote): Likewise.
1255 2014-09-22 Pedro Alves <palves@redhat.com>
1257 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1258 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1259 Instead, pass UGLL_INSERT to update_global_location_list.
1260 (update_global_location_list): Change parameter type from boolean
1261 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1262 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1263 (create_solib_event_breakpoint_1): New, factored out from ...
1264 (create_solib_event_breakpoint): ... this.
1265 (create_and_insert_solib_event_breakpoint): Use
1266 create_solib_event_breakpoint_1 instead of calling
1267 insert_breakpoint_locations manually.
1268 (update_global_location_list): Handle UGLL_INSERT.
1270 2014-09-22 Pedro Alves <palves@redhat.com>
1272 * breakpoint.c (enum ugll_insert_mode): New enum.
1273 (update_global_location_list)
1274 (update_global_location_list_nothrow): Change parameter type from
1275 boolean to enum ugll_insert_mode. All callers adjusted.
1277 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1279 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1280 SystemTap support in GDB.
1282 2014-09-19 Don Breazeal <donb@codesourcery.com>
1284 * linux-nat.c (linux_handle_extended_wait): Call
1285 linux_ptrace_get_extended_event.
1286 (wait_lwp): Call linux_is_extended_waitstatus.
1287 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1288 and linux_is_extended_waitstatus.
1289 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1290 linux_ptrace_get_extended_event.
1291 (linux_ptrace_get_extended_event): New function.
1292 (linux_is_extended_waitstatus): New function.
1293 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1294 (linux_is_extended_waitstatus): New declarations.
1296 2014-09-19 Yao Qi <yao@codesourcery.com>
1298 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1299 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1300 comments. Callers update.
1301 (dwarf_decode_lines): Likewise.
1302 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1303 comments. Skip the line table if 'lowpc' is greater than
1304 'address'. Don't check
1305 dwarf2_per_objfile->has_section_at_zero.
1307 2014-09-18 Doug Evans <dje@google.com>
1309 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1310 * python/py-symtab.c (stpy_get_producer): New function.
1311 (symtab_object_getset): Add "producer" attribute.
1313 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1316 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1317 (do_captured_read_memory_integer): Remove.
1318 (safe_read_memory_integer): Use target_read_memory directly instead
1319 of catching errors in do_captured_read_memory_integer.
1321 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1323 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1326 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1328 * objc-lang.c (find_implementation_from_class): Remove dead code.
1330 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1333 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1334 "fprintf_unfiltered (gdb_stdlog...)".
1336 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1338 PR breakpoints/12526
1339 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1341 * breakpoint.c (watch_command_1): Use these fields to retain
1342 bitfield information.
1343 (extract_bitfield_from_watchpoint_value): New function.
1344 (watchpoint_check): Use it.
1345 (update_watchpoint): Use it. Optimize the address and length of a
1346 HW watchpoint pointing to a bitfield.
1347 * value.h (unpack_value_bitfield): New prototype.
1348 * value.c (unpack_value_bitfield): Make extern.
1350 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1352 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1354 * gnu-nat.c (inf_threads): New function.
1355 * gnu-nat.h (inf_threads_ftype): New typedef.
1356 (inf_threads): New declaration.
1357 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1358 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1359 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1360 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1361 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1362 (i386_gnu_dr_get_control): New functions.
1363 (reg_addr): New structure.
1364 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1365 i386 debugging register hooks.
1366 * NEWS: Mention this.
1368 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1370 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1371 vector data transfer instructions.
1372 (arm_record_coproc_data_proc): Updated.
1374 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1376 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1377 arm_record_exreg_ld_st_insn.
1378 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1381 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1383 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1384 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1385 processing instructions.
1387 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1389 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1390 for advance SIMD struct ld/st insn.
1391 (thumb2_record_decode_insn_handler): Replace stub handler with
1392 thumb2_record_asimd_struct_ld_st.
1394 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1396 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1397 for asimd, vfp and coprocessor insns.
1398 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1399 and coprocessor insns.
1400 (thumb2_record_coproc_insn): New function.
1401 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1403 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1406 2014-09-13 Doug Evans <xdje42@gmail.com>
1408 * NEWS: Mention new "queue-signal" command.
1409 * infcmd.c (queue_signal_command): New function.
1410 (_initialize_infcmd): Add new queue-signal command.
1412 2014-09-13 Doug Evans <xdje42@gmail.com>
1414 * linux-nat.c (wait_lwp): Add debugging printf.
1415 (linux_nat_wait_1): Ditto.
1417 2014-09-12 Pedro Alves <palves@redhat.com>
1419 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1420 (create_and_insert_solib_event_breakpoint): New functions.
1421 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1422 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1423 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1424 (remove_dbx_link_breakpoint): Delete function.
1425 (insert_dbx_link_bpt_in_file): Use
1426 create_and_insert_solib_event_breakpoint instead of
1427 deprecated_insert_raw_breakpoint.
1428 (procfs_wait): Don't check whether we hit __dbx_link here.
1429 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1431 * solib-irix.c (base_breakpoint): Delete global.
1432 (disable_break): Delete function.
1433 (enable_break): Use create_solib_event_breakpoint
1434 instead of deprecated_insert_raw_breakpoint.
1435 (irix_solib_handle_event): New function.
1436 (irix_solib_create_inferior_hook): Don't run the target or disable
1437 the mapping-complete breakpoint here.
1438 (_initialize_irix_solib): Install irix_solib_handle_event as
1439 so_ops->handle_event hook.
1441 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1442 Ulrich Weigand <uweigand@de.ibm.com>
1445 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1446 instead of read_memory_unsigned_integer.
1448 2014-09-12 Gary Benson <gbenson@redhat.com>
1450 * nat/linux-waitpid.c: Include common-defs.h.
1451 [GDBSERVER]: Add FIXME comment.
1452 [!GDBSERVER]: Don't include defs.h or signal.h.
1453 (linux_debug) [!GDBSERVER]: Remove empty block.
1455 2014-09-12 Gary Benson <gbenson@redhat.com>
1457 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1458 Don't include defs.h or server.h.
1460 2014-09-12 Gary Benson <gbenson@redhat.com>
1462 * nat/linux-btrace.c: Include common-defs.h.
1463 Don't include defs.h, server.h or gdbthread.h.
1464 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1466 2014-09-12 Gary Benson <gbenson@redhat.com>
1468 * common/agent.c: Include common-defs.h.
1469 Don't include defs.h or server.h.
1470 * common/buffer.c: Likewise.
1471 * common/common-debug.c: Likewise.
1472 * common/common-utils.c: Likewise.
1473 * common/errors.c: Likewise.
1474 * common/filestuff.c: Likewise.
1475 * common/format.c: Likewise.
1476 * common/gdb_vecs.c: Likewise.
1477 * common/print-utils.c: Likewise.
1478 * common/ptid.c: Likewise.
1479 * common/rsp-low.c: Likewise.
1480 * common/signals.c: Likewise.
1481 * common/vec.c: Likewise.
1482 * common/xml-utils.c: Likewise.
1483 * nat/linux-osdata.c: Likewise.
1484 * nat/linux-procfs.c: Likewise.
1485 * nat/linux-ptrace.c: Likewise.
1486 * nat/mips-linux-watch.c: Likewise.
1487 * target/waitstatus.c: Likewise.
1489 2014-09-12 Tom Tromey <tromey@redhat.com>
1490 Gary Benson <gbenson@redhat.com>
1492 * common/common-regcache.h: New file.
1493 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1494 * regcache.h: Include common-regcache.h.
1495 (regcache_read_pc): Don't declare.
1496 * regcache.c (get_thread_regcache_for_ptid): New function.
1497 * nat/linux-btrace.c: Don't include regcache.h.
1498 Include common-regcache.h.
1499 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1501 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1503 * regcache.h (struct regset): Declare.
1505 2014-09-11 Pedro Alves <palves@redhat.com>
1508 * main.c: Include "infrun.h".
1509 (catch_command_errors, catch_command_errors_const): Wait for the
1510 foreground command to complete.
1511 * top.c (maybe_wait_sync_command_done): New function, factored out
1513 (maybe_wait_sync_command_done): ... here.
1514 * top.h (maybe_wait_sync_command_done): New declaration.
1516 2014-09-11 Tom Tromey <tromey@redhat.com>
1517 Gary Benson <gbenson@redhat.com>
1519 * common/symbol.h: New file.
1520 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1521 * minsyms.c (find_minimal_symbol_address): New function.
1522 * common/agent.c: Include common/symbol.h.
1523 [!GDBSERVER]: Don't include objfiles.h.
1524 (agent_look_up_symbols): Use find_minimal_symbol_address.
1526 2014-09-11 Gary Benson <gbenson@redhat.com>
1528 * target/target.h (target_stop_ptid, target_continue_ptid):
1530 * target.c (target_stop_ptid, target_continue_ptid): New
1532 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1533 (agent_run_command): Always use target_stop_ptid and
1534 target_continue_ptid.
1536 2014-09-11 Tom Tromey <tromey@redhat.com>
1537 Gary Benson <gbenson@redhat.com>
1539 * target/target.h: New file.
1540 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1541 * target.h: Include target/target.h.
1542 (target_read_memory, target_write_memory): Don't declare.
1543 * target.c (target_read_uint32): New function.
1544 * common/agent.c: Include target/target.h.
1545 [!GDBSERVER]: Don't include target.h.
1546 (helper_thread_id): Type changed to uint32_t.
1547 (agent_get_helper_thread_id): Use target_read_uint32.
1548 (agent_run_command): Always use target_read_memory and
1549 target_write_memory.
1550 (agent_capability): Type changed to uint32_t.
1551 (agent_capability_check): Use target_read_uint32.
1553 2014-09-11 Gary Benson <gbenson@redhat.com>
1555 * common/common-debug.h (show_debug_regs): Declare.
1556 * common/common-debug.c (show_debug_regs): Define.
1557 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1558 all uses with show_debug_regs. Replace all uses that considered
1559 debug_hw_points as a multi-value integer with straight boolean
1561 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1562 with show_debug_regs.
1563 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1564 all uses with show_debug_regs.
1565 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1566 uses with show_debug_regs.
1568 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1570 * findvar.c (address_from_register): Handle targets requiring
1571 a special conversion routine even for plain pointer types.
1573 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1575 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1576 (store_register): Do not call exec_one_dummy_insn.
1578 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1580 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1581 dereference it first. Use value_enclosing_type instead of
1583 (ada_array_length): Likewise.
1585 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1587 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1588 Adjust function implementation and documentation accordingly.
1589 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1590 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1591 Update call to ada_value_ptr_subscript.
1593 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1595 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1596 instead of VAL's type.
1598 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1600 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1602 2014-09-09 Doug Evans <xdje42@gmail.com>
1605 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1606 last parameter to pkg-config, not first.
1607 * configure.ac: Pass --with-guile provided pkg-config path to
1608 GDB_GUILE_PROGRAM_NAMES.
1609 * configure: Regenerate.
1611 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1613 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1616 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1618 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1619 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1620 the list of sections determining GDB_OSABI_IRIX.
1622 2014-09-09 James Hogan <james.hogan@imgtec.com>
1624 * MAINTAINERS (Write After Approval): Add "James Hogan".
1626 2014-09-09 James Hogan <james.hogan@imgtec.com>
1628 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1630 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1632 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1634 2014-09-08 Doug Evans <xdje42@gmail.com>
1637 * guile.c: #include <signal.h>.
1638 (_initialize_guile): Block SIGCHLD while initializing Guile.
1640 Replaces the following, which is reverted.
1642 2014-07-26 Doug Evans <xdje42@gmail.com>
1645 * configure.ac: Add check for header gc/gc.h.
1646 Add check for function setenv.
1647 * configure: Regenerate.
1648 * config.in: Regenerate.
1649 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1651 2014-09-08 Doug Evans <xdje42@gmail.com>
1653 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1654 with named constant. Fix style of pointer comparison.
1655 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1657 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1660 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1661 decide whether we display the command on "show user".
1662 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1663 printing command name.
1664 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1665 * cli/cli-decode.c (cli_user_command_p): Create helper function
1666 to verify whether cmd_list_element is a user-defined command.
1668 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1671 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1672 Fix goto out of TRY_CATCH.
1674 2014-09-06 Doug Evans <xdje42@gmail.com>
1675 Tom Tromey <tromey@redhat.com>
1678 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1679 $_any_caller_matches.
1680 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1681 * python/lib/gdb/function/caller_is.py: New file.
1683 2014-09-06 Doug Evans <xdje42@gmail.com>
1685 * infcmd.c (program_info): Fix typo.
1687 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1690 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1691 'number'. New variable 'has_digit'. Rewrite code to deal with
1692 subexpressions on SDT probes.
1694 2014-09-04 Pedro Alves <palves@redhat.com>
1696 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1697 the input is only one character long.
1699 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1702 * f-valprint.c (f_val_print): Specify the correct print option to
1703 use when printing integer values.
1705 2014-09-04 Gary Benson <gbenson@redhat.com>
1707 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1708 Remove code to cope with LWPs wrapped as PIDs.
1709 Add assertions to ensure no wrapped LWPs are passed.
1711 2014-09-04 Pedro Alves <palves@redhat.com>
1713 * value.c (value_ranges_copy_adjusted): New function, factored out
1715 (value_contents_copy_raw): ... here.
1716 (unpack_value_bits_as_long_1): Rename back to ...
1717 (unpack_bits_as_long): ... this. Remove 'original_value' and
1718 'result' parameters. Change return type to LONGEST.
1719 (unpack_value_bits_as_long): Delete.
1720 (unpack_value_field_as_long_1): Delete.
1721 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1722 (unpack_value_bitfield): New function.
1723 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1724 (value_fetch_lazy): Use unpack_value_bitfield.
1725 * value.h (unpack_value_bits_as_long): Delete declaration.
1727 2014-09-03 Sasha Smundak <asmundak@google.com>
1729 * python/py-frame.c (frapy_read_register): New function.
1731 2014-09-03 James Hogan <james.hogan@imgtec.com>
1733 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1734 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1736 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1739 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1741 (add_cmd): Set "completer_handle_brkchars" to NULL.
1742 * cli/cli-decode.h (struct cmd_list_element)
1743 <completer_handle_brkchars>: New field.
1744 * command.h (completer_ftype_void): New typedef.
1745 (set_cmd_completer_handle_brkchars): New prototype.
1746 * completer.c (set_gdb_completion_word_break_characters): New
1748 (complete_line_internal): Call "completer_handle_brkchars"
1749 callback from command.
1750 * completer.h: Include "command.h".
1751 (set_gdb_completion_word_break_characters): New prototype.
1752 * python/py-cmd.c (cmdpy_completer_helper): New function.
1753 (cmdpy_completer_handle_brkchars): New function.
1754 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1755 (cmdpy_init): Set completer_handle_brkchars to
1756 cmdpy_completer_handle_brkchars.
1758 2014-09-03 Gary Benson <gbenson@redhat.com>
1760 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1761 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1762 Loop conditions changed to equivalent form.
1763 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1764 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1765 ALL_DEBUG_ADDRESS_REGISTERS.
1767 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1769 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1772 2014-09-02 Doug Evans <dje@google.com>
1774 * typeprint.c (find_global_typedef): Fix comment.
1776 2014-09-02 Gary Benson <gbenson@redhat.com>
1778 * i386-nat.h: Renamed as...
1779 * x86-nat.h: New file. All type, function and variable name
1780 prefixes changed from "i386_" to "x86_". All references updated.
1781 * i386-nat.c: Renamed as...
1782 * x86-nat.c: New file. All type, function and variable name
1783 prefixes changed from "i386_" to "x86_". All references updated.
1784 * common/i386-xstate.h: Renamed as...
1785 * common/x86-xstate.h: New file. All type, function and variable
1786 name prefixes changed from "i386_" to "x86_". All references
1788 * nat/i386-cpuid.h: Renamed as...
1789 * nat/x86-cpuid.h: New file. All type, function and variable name
1790 prefixes changed from "i386_" to "x86_". All references updated.
1791 * nat/i386-gcc-cpuid.h: Renamed as...
1792 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1793 name prefixes changed from "i386_" to "x86_". All references
1795 * nat/i386-dregs.h: Renamed as...
1796 * nat/x86-dregs.h: New file. All type, function and variable name
1797 prefixes changed from "i386_" to "x86_". All references updated.
1798 * nat/i386-dregs.c: Renamed as...
1799 * nat/x86-dregs.c: New file. All type, function and variable name
1800 prefixes changed from "i386_" to "x86_". All references updated.
1802 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1804 * varobj.c (_initialize_varobj): Move to the end of file.
1806 2014-08-29 Gary Benson <gbenson@redhat.com>
1808 * common/common-exceptions.h: New file.
1809 * common/common-exceptions.c: Likewise.
1810 * Makefile.in (SFILES): Add common/common-exceptions.c.
1811 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1812 (COMMON_OBS): Add common-exceptions.o.
1813 (common-exceptions.o): New rule.
1814 * exceptions.h (common-exceptions.h): Include.
1815 (gdb_setjmp.h): Do not include.
1816 (return_reason): Moved to common-exceptions.h.
1817 (enum return_reason): Likewise.
1818 (RETURN_MASK): Likewise.
1819 (typedef return_mask): Likewise.
1820 (enum errors): Likewise.
1821 (struct gdb_exception): Likewise.
1822 (exceptions_state_mc_init): Likewise.
1823 (exceptions_state_mc_action_iter): Likewise.
1824 (exceptions_state_mc_action_iter_1): Likewise.
1825 (TRY_CATCH): Likewise.
1826 (throw_exception): Likewise.
1827 (throw_verror): Likewise.
1828 (throw_vquit): Likewise.
1829 (throw_error): Likewise.
1830 (throw_quit): Likewise.
1831 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1832 (enum catcher_action): Likewise.
1833 (struct catcher): Likewise.
1834 (current_catcher): Likewise.
1835 (catcher_list_size): Likewise.
1836 (exceptions_state_mc_init): Likewise.
1837 (catcher_pop): Likewise.
1838 (exceptions_state_mc): Likewise.
1839 (exceptions_state_mc_action_iter): Likewise.
1840 (exceptions_state_mc_action_iter_1): Likewise.
1841 (throw_exception): Likewise.
1842 (exception_messages): Likewise.
1843 (exception_messages_size): Likewise.
1844 (throw_it): Likewise.
1845 (throw_verror): Likewise.
1846 (throw_vquit): Likewise.
1847 (throw_error): Likewise.
1848 (throw_quit): Likewise.
1849 (prepare_to_throw_exception): New function.
1851 2014-08-29 Gary Benson <gbenson@redhat.com>
1853 * common/gdb_setjmp.h: New file.
1854 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1855 * configure.ac: Move sigsetjmp check...
1856 * common/common.m4: ...here.
1857 * configure: Regenerate.
1858 * cp-support.c (SIGJMP_BUF): Delete.
1859 (SIGSETJMP): Likewise.
1860 (SIGLONGJMP): Likewise.
1861 * exceptions.h (gdb_setjmp.h): Include.
1862 (setjmp.h): Do not include.
1863 (EXCEPTIONS_SIGJMP_BUF): Delete.
1864 (EXCEPTIONS_SIGSETJMP): Likewise.
1865 (EXCEPTIONS_SIGLONGJMP): Likewise.
1866 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1868 * exceptions.c: Likewise.
1870 2014-08-29 Gary Benson <gbenson@redhat.com>
1872 * cleanups.h: Moved to...
1873 * common/cleanups.h: New file.
1874 * cleanups.c: Moved to...
1875 * common/cleanups.c: New file. Include common-defs.h and
1876 cleanups.h. Do not include defs.h.
1877 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1878 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1879 (cleanups.o): New rule.
1881 2014-08-29 Gary Benson <gbenson@redhat.com>
1883 * common/errors.h (internal_warning): New declaration.
1884 (internal_vwarning): Likewise.
1885 * common/errors.c (internal_warning): New function.
1886 * utils.h (internal_warning): Don't declare.
1887 (internal_vwarning): Likewise.
1888 * utils.c (internal_warning): Removed.
1890 2014-08-29 Gary Benson <gbenson@redhat.com>
1892 * main.c (captured_main): Use warning during startup.
1893 Prefix startup warning messages with command name.
1895 2014-08-29 Gary Benson <gbenson@redhat.com>
1897 * main.c (captured_main): Handle usage errors with error.
1899 2014-08-29 Gary Benson <gbenson@redhat.com>
1901 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1902 exit pair with a call to error. Wrap the message with _().
1904 2014-08-29 Gary Benson <gbenson@redhat.com>
1906 * main.c (captured_main): Replace a fprintf/exit
1907 pair with a call to error. Wrap the message with _().
1909 2014-08-29 Gary Benson <gbenson@redhat.com>
1911 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1912 pairs with calls to error. Wrap the message with _().
1914 2014-08-29 Gary Benson <gbenson@redhat.com>
1916 * utils.c (vwarning): Protect calls to target_terminal_ours
1919 2014-08-29 Gary Benson <gbenson@redhat.com>
1921 * exceptions.c (print_flush): Protect calls to
1922 target_terminal_ours and wrap_here.
1924 2014-08-29 Gary Benson <gbenson@redhat.com>
1926 * utils.h (filtered_printing_initialized): New declaration.
1927 * utils.c (abort_with_message): New function.
1928 (internal_vproblem): Use abort_with_message for first level
1929 recursive internal problems, and if gdb_stderr is not set up.
1930 Protect calls to target_terminal_ours, begin_line and query.
1932 2014-08-28 Doug Evans <dje@google.com>
1934 * symtab.c (in_prologue): Move definition to better spot.
1935 (skip_prologue_using_sal): Ditto.
1937 2014-08-28 Doug Evans <dje@google.com>
1939 * symtab.c (find_function_start_sal): Move definition to better spot.
1941 2014-08-28 Yao Qi <yao@codesourcery.com>
1943 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1944 found_stack_adjust in forward scan. Remove condition check
1945 on found_stack_adjust which is always true. Indent the code.
1947 2014-08-28 Yao Qi <yao@codesourcery.com>
1949 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1950 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1951 (dwarf_decode_lines): Remove argument
1952 want_line_info. Remove condition check on want_line_info.
1955 2014-08-27 Doug Evans <dje@google.com>
1957 * dwarf2read.c (dwarf_record_line): Fix typo.
1959 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1961 * target.h (struct target_ops::to_terminal_save_ours): Remove
1963 (target_terminal_save_ours): Remove macro.
1964 * target-delegates.c: Regenerate.
1965 * inf-child.c (inf_child_target): Don't set the nonexistent
1966 field to_terminal_save_ours.
1967 * inferior.h (child_terminal_save_ours): Remove declaration.
1968 * terminal.h (gdb_save_tty_state): New declaration.
1969 * inflow.c (child_terminal_save_ours): Rename to ...
1970 (gdb_save_tty_state): ... this.
1971 * tui/tui.c: Include terminal.h.
1972 (tui_enable): Use gdb_save_tty_state instead of
1973 target_terminal_save_ours.
1974 (tui_disable): Likewise.
1976 2014-08-25 Doug Evans <dje@google.com>
1978 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1979 Pass NULL instead of 0 for context pointer.
1981 2014-08-25 Yao Qi <yao@codesourcery.com>
1983 * dwarf2read.c: Fix grammatical error.
1985 2014-08-24 Yao Qi <yao@codesourcery.com>
1987 * dwarf2read.c (scan_partial_symbols): Update comments.
1988 Rename argument 'need_pc' with 'set_addrmap'.
1989 (add_partial_namespace): Rename argument 'need_pc' with
1991 (add_partial_module): Likewise.
1992 (add_partial_subprogram): Likewise. Update comments.
1993 (dwarf2_name): Fix typo.
1995 2014-08-22 Doug Evans <dje@google.com>
1998 * dwarf2read.c (dwarf_record_line_p): New function.
1999 (dwarf_decode_lines_1): Ignore subsequent line number entries
2000 for the same line if any entry had a non-zero discriminator.
2002 2014-08-22 Doug Evans <dje@google.com>
2004 * buildsym.h (record_line_ftype): New typedef.
2005 (record_line): Use it.
2006 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2007 (dwarf_decode_lines_1): Call them.
2009 2014-08-22 Yao Qi <yao@codesourcery.com>
2011 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2012 (ctf_end): Remove code.
2014 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2017 (linux_make_corefile_notes): call update_thread_list, protected against
2020 2014-08-21 Pedro Alves <palves@redhat.com>
2022 * infcmd.c (attach_command): Remove comment.
2024 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2026 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2027 unsigned LONGEST to ULONGEST.
2029 2014-08-20 Pedro Alves <palves@redhat.com>
2031 * Makefile.in (check-read1): New rule.
2033 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2035 * value.c (value_from_contents_and_address): Strip resolved_type's
2036 typedef layers before checking its TYPE_DATA_LOCATION.
2038 2014-08-20 Pedro Alves <palves@redhat.com>
2040 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2042 2014-08-20 Yao Qi <yao@codesourcery.com>
2044 * amd64-tdep.c (amd64_classify): Add a blank line after the
2045 example. Move "*/" to a new line.
2046 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2047 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2048 * dwarf2read.c (psymtab_include_file_name): Likewise.
2050 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2051 Pedro Alves <palves@redhat.com>
2055 * ada-lang.c (coerce_unspec_val_to_type): Use
2056 value_contents_copy_raw.
2057 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2058 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2059 * cp-valprint.c (cp_print_value_fields): Let the common printing
2060 code handle optimized out values.
2061 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2062 * d-valprint.c (dynamic_array_type): Use
2063 value_bits_any_optimized_out.
2064 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2065 check_any_valid fields.
2066 (check_pieced_value_bits): Delete and inline ...
2067 (check_pieced_synthetic_pointer): ... here.
2068 (check_pieced_value_validity): Delete.
2069 (check_pieced_value_invalid): Delete.
2070 (pieced_value_funcs): Remove check_validity and check_any_valid
2072 (read_pieced_value): Use mark_value_bits_optimized_out.
2073 (write_pieced_value): Switch to use
2074 mark_value_bytes_optimized_out.
2075 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2076 of assuming the whole value is optimized out.
2077 * findvar.c (read_frame_register_value): Remove special handling
2078 of optimized out registers.
2079 (value_from_register): Use mark_value_bytes_optimized_out.
2080 * frame-unwind.c (frame_unwind_got_optimized): Use
2081 mark_value_bytes_optimized_out.
2082 * jv-valprint.c (java_value_print): Adjust.
2083 (java_print_value_fields): Let the common printing code handle
2084 optimized out values.
2085 * mips-tdep.c (mips_print_register): Remove special handling of
2086 optimized out registers.
2087 * opencl-lang.c (lval_func_check_validity): Delete.
2088 (lval_func_check_any_valid): Delete.
2089 (opencl_value_funcs): Remove check_validity and check_any_valid
2091 * p-valprint.c (pascal_object_print_value_fields): Let the common
2092 printing code handle optimized out values.
2093 * stack.c (read_frame_arg): Remove special handling of optimized
2094 out values. Fetch both VAL and ENTRYVAL before comparing
2095 contents. Adjust to value_available_contents_eq rename.
2096 * valprint.c (valprint_check_validity)
2097 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2098 (val_print_array_elements): Adjust.
2099 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2100 (value_bits_any_optimized_out): New function.
2101 (value_entirely_covered_by_range_vector): New function, factored
2102 out from value_entirely_unavailable.
2103 (value_entirely_unavailable): Reimplement.
2104 (value_entirely_optimized_out): New function.
2105 (insert_into_bit_range_vector): New function, factored out from
2106 mark_value_bits_unavailable.
2107 (mark_value_bits_unavailable): Reimplement.
2108 (struct ranges_and_idx): New struct.
2109 (find_first_range_overlap_and_match): New function, factored out
2110 from value_available_contents_bits_eq.
2111 (value_available_contents_bits_eq): Rename to ...
2112 (value_contents_bits_eq): ... this. Check both unavailable
2113 contents and optimized out contents.
2114 (value_available_contents_eq): Rename to ...
2115 (value_contents_eq): ... this.
2116 (allocate_value_lazy): Remove reference to the old optimized_out
2118 (allocate_optimized_out_value): Use
2119 mark_value_bytes_optimized_out.
2120 (require_not_optimized_out): Adjust to check whether the
2121 optimized_out vec is empty.
2122 (ranges_copy_adjusted): New function, factored out from
2123 value_contents_copy_raw.
2124 (value_contents_copy_raw): Also copy the optimized out ranges.
2125 Assert the destination ranges aren't optimized out.
2126 (value_contents_copy): Update comment, remove call to
2127 require_not_optimized_out.
2128 (value_contents_equal): Adjust to check whether the optimized_out
2130 (set_value_optimized_out, value_optimized_out_const): Delete.
2131 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2133 (value_entirely_optimized_out, value_bits_valid): Delete.
2134 (value_copy): Take a VEC copy of the 'optimized_out' field.
2135 (value_primitive_field): Remove special handling of optimized out.
2136 (value_fetch_lazy): Assert that lazy values have no unavailable
2137 regions. Use value_bits_any_optimized_out. Remove some special
2138 handling for optimized out values.
2139 * value.h: Add intro comment about <optimized out> and
2141 (struct lval_funcs): Remove check_validity and check_any_valid
2143 (set_value_optimized_out, value_optimized_out_const): Remove.
2144 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2146 (value_bits_any_optimized_out): New declaration.
2147 (value_bits_valid): Delete declaration.
2148 (value_available_contents_eq): Rename to ...
2149 (value_contents_eq): ... this, and extend comments.
2151 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2153 Fix -fsanitize=address on unreadable inferior strings.
2154 * valprint.c (val_print_string): Fix access before BUFFER.
2156 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2158 * target.c (target_struct_size): Remove.
2159 (target_struct_allocsize): Remove.
2160 (DEFAULT_ALLOCSIZE): Remove.
2161 (target_ops_p): New typedef.
2162 (DEF_VEC_P (target_ops_p)): New vector type.
2163 (target_structs): Change type to VEC (target_ops_p).
2164 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2165 (find_default_run_target): Rewrite for loop following changes to
2168 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2170 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2171 Adjust code accordingly. Adjust function description comment.
2173 2014-08-19 Yao Qi <yao@codesourcery.com>
2175 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2178 2014-08-19 Alan Modra <amodra@gmail.com>
2180 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2181 * config.in: Regenerate.
2182 * configure: Regenerate.
2184 2014-08-19 Tom Tromey <tromey@redhat.com>
2185 Gary Benson <gbenson@redhat.com>
2187 * common/common-debug.h: New file.
2188 * common/common-debug.c: Likewise.
2189 * debug.c: Likewise.
2190 * Makefile.in (SFILES): Add common/common-debug.c.
2191 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2192 (COMMON_OBS): Add common-debug.o and debug.o.
2193 (common-debug.o): New rule.
2194 * common/common-defs.h: Include common-debug.h.
2195 * common/agent.c (debug_agent_printf): New function.
2196 (DEBUG_AGENT): Redefine.
2197 * nat/i386-dregs.c (debug_printf): Undefine.
2199 2014-08-19 Gary Benson <gbenson@redhat.com>
2201 * common/common-defs.h: Include print-utils.h.
2202 * utils.h: Do not include print-utils.h.
2204 2014-08-19 Tom Tromey <tromey@redhat.com>
2205 Gary Benson <gbenson@redhat.com>
2207 * common/common-types.h: New file.
2208 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2209 * common/common-defs.h: Include common-types.h.
2210 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2213 2014-08-19 Tom Tromey <tromey@redhat.com>
2214 Gary Benson <gbenson@redhat.com>
2216 * common/errors.h: New file.
2217 * common/errors.c: Likewise.
2218 * Makefile.in (SFILES): Add common/errors.c.
2219 (HFILES_NO_SRCDIR): Add common/errors.h.
2220 (COMMON_OBS): Add errors.o.
2221 (errors.o): New rule.
2222 * common/common-defs.h: Include errors.h.
2223 * utils.h (perror_with_name, error, verror, warning, vwarning):
2225 * common/common-utils.h: (malloc_failure, internal_error):
2228 2014-08-19 Gary Benson <gbenson@redhat.com>
2230 * utils.c (internal_vproblem): Always print the message.
2232 2014-08-18 Doug Evans <dje@google.com>
2234 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2236 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2238 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2239 Return 0 if TYPE is dynamic.
2240 (print_range): Add handling of dynamic ranges.
2242 2014-08-18 Keven Boell <keven.boell@intel.com>
2243 Joel Brobecker <brobecker@adacore.com>
2245 * gdbtypes.h (struct main_type): Add field "data_location".
2246 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2247 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2248 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2249 a dynamic data location.
2250 (resolve_dynamic_type): Add DW_AT_data_location handling.
2251 (copy_recursive, copy_type): Copy the data_location information
2253 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2254 * value.c (value_from_contents_and_address): Add
2255 DW_AT_data_location handling.
2257 2014-08-18 Keven Boell <keven.boell@intel.com>
2258 Joel Brobecker <brobecker@adacore.com>
2260 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2261 field "get_object_address".
2262 * dwarf2expr.c (execute_stack_op): Add handling for
2263 DW_OP_push_object_address.
2264 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2265 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2266 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2267 (dwarf_expr_get_obj_addr): New function.
2268 (dwarf_expr_ctx_funcs): Add get_object_address field.
2269 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2270 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2271 (dwarf2_evaluate_property): Add parameter "address". Use it.
2272 (needs_get_obj_addr): New function.
2273 (needs_frame_ctx_funcs): Add get_object_address field.
2274 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2275 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2276 (resolve_dynamic_array): Likewise.
2278 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2280 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2281 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2282 fixed value for records and unions for which some GNAT encodings
2285 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2287 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2288 rewrite to avoid "else if" and "else" constructs. Should be
2289 a no-op in practice.
2291 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2293 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2296 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2299 * eval.c: Update all calls to find_overload_match.
2300 * valarith.c: Likewise.
2301 (value_user_defined_cpp_op, value_user_defined_op): New
2302 argument NOSIDE. Update all callers.
2303 * valops.c (find_overload_match): New argument NOSIDE.
2304 * value.h (find_overload_match): Update signature.
2306 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2308 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2309 'items' methods instead of 'iteritems' method on dictionaries.
2311 2014-08-15 Doug Evans <dje@google.com>
2313 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2316 2014-08-15 Doug Evans <dje@google.com>
2318 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2320 2014-08-15 Doug Evans <dje@google.com>
2322 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2324 2014-08-15 Doug Evans <dje@google.com>
2326 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2329 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2331 * dcache.h: Include target.h, to avoid compile time warnings.
2333 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2335 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2336 frame_info" partial declaration.
2337 * gdbarch.h: Regenerate.
2339 2014-08-15 Yao Qi <yao@codesourcery.com>
2341 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2342 Add parameter 'decode_for_pst_p'. Callers update.
2344 2014-08-13 Yao Qi <yao@codesourcery.com>
2347 * configure.ac: Use local variable 'pos'.
2348 * configure: Regenerated.
2350 2014-08-11 Doug Evans <dje@google.com>
2352 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2353 message, it is redundant with "Reading symbols from ..." message.
2355 2014-08-10 Doug Evans <xdje42@gmail.com>
2357 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2359 2014-08-09 Yao Qi <yao@codesourcery.com>
2362 * remote.c (remote_xfer_partial): Remove dead code.
2364 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2366 * ia64-linux-tdep.c: Include "regset.h".
2367 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2368 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2369 (ia64_linux_supply_fpregset): New function.
2370 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2371 (ia64_linux_regset_from_core_section): New function.
2372 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2375 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2377 * m68klinux-tdep.c: Include "regset.h".
2378 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2379 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2380 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2381 (m68k_linux_regset_from_core_section): New function.
2382 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2385 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2387 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2388 function. Move logic to...
2389 (tilegx_linux_regmap): ... this new register map.
2390 (tilegx_linux_regset): Refer to register map, replace supply
2391 method by regcache_supply_regset, and add collect method.
2392 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2393 TILEGX_FIRST_EASY_REGNUM.
2395 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2397 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2398 that calls regcache_supply_regset and handles the EPC register
2399 separately. Move main logic to...
2400 (score7_linux_gregmap): ... this new register map.
2401 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2402 (score7_linux_gregset): Refer to register map. Add collect method.
2403 (score7_linux_regset_from_core_section): Replace
2404 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2405 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2406 (struct regset): Delete unused forward declaraction.
2407 (struct pt_regs): Delete structure definition.
2408 (elf_gregset_t): Delete typedef.
2410 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2412 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2413 (nios2_core_regset): Add collect method.
2415 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2417 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2418 platform-independent and don't write to read-only input buffer.
2419 (m32r_linux_collect_gregset): New function.
2420 (m32r_linux_gregset): Add collect method.
2422 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2424 * hppa-linux-tdep.c (greg_map): Rename to...
2425 (hppa_linux_gregmap): ... this. Also convert to
2426 regcache_map_entry format.
2427 (hppa_linux_supply_regset): Delete function.
2428 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2429 (hppa_linux_fpregmap): ... this new register map.
2430 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2431 register map, replace supply method by regcache_supply_regset, and
2432 add collect method regcache_collect_regset.
2434 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2436 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2437 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2438 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2439 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2440 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2441 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2442 (frv_linux_supply_gregset): Replace main logic by call to
2443 regcache_supply_regset, but keep clearing gr32-gr63.
2444 (frv_linux_supply_fpregset): Delete function.
2445 (frv_linux_gregset): Refer to appropriate register map and add
2446 regcache_collect_regset as the collect method.
2447 (frv_linux_fpregset): Likewise. Also exchange the supply method
2448 by regcache_supply_regset.
2450 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2452 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2453 by call to alpha_supply_int_regs.
2454 (alpha_linux_collect_gregset): New function.
2455 (alpha_linux_supply_fpregset): Replace logic by call to
2456 alpha_supply_fp_regs.
2457 (alpha_linux_collect_fpregset): New function.
2458 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2460 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2462 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2463 by call to regcache_collect_regset.
2464 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2465 instead of aarch64_linux_supply_gregset/_fpregset.
2466 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2467 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2468 header file instead.
2469 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2470 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2471 functions. Move logic to ...
2472 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2474 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2475 refer to new register maps, replace *_regset_from_core by
2476 regcache_supply_regset, and also use regcache_collect_regset.
2477 * aarch64-linux-tdep.h: Include "regset.h".
2478 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2480 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2481 macros, moved from C source file.
2482 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2483 variable declarations.
2485 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2487 * s390-linux-nat.c: Include "regset.h".
2488 (regmap_gregset): Delete macro.
2489 (s390_64_regmap_gregset): New register map for
2490 regcache_supply/_collect_regset.
2491 (s390_64_gregset): New regset.
2492 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2493 (regmap_fpregset): Delete macro.
2494 (s390_native_supply, s390_native_collect): Delete functions.
2495 (supply_gregset, fill_gregset): Replace s390-specific regmap
2496 handling by a call to regcache_supply/_collect_regset.
2497 (supply_fpregset, fill_fpregset): Call regcache_supply/
2498 _collect_regset instead of s390_native_supply/_collect.
2499 (fetch_regset, store_regset): Likewise. Also change the last
2500 parameter to a regset instead of a regmap.
2501 (s390_linux_fetch_inferior_registers)
2502 (390_linux_store_inferior_registers): Adjust last parameter in
2503 calls to fetch_regset and store_regset.
2504 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2505 (s390_gregmap): ... this. Also make static const and convert to
2506 regcache_map_entry format.
2507 (s390x_regmap_gregset): Delete.
2508 (s390_regmap_fpregset): Rename to...
2509 (s390_fpregmap): ... this. Make static const and convert to
2510 regcache_map_entry format.
2511 (s390_regmap_upper, s390_regmap_last_break)
2512 (s390x_regmap_last_break, s390_regmap_system_call)
2513 (s390_regmap_tdb): Likewise.
2514 (s390_supply_regset, s390_collect_regset): Remove functions.
2515 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2517 (s390_gregset, s390_fpregset, s390_upper_regset)
2518 (s390_last_break_regset, s390x_last_break_regset)
2519 (s390_system_call_regset, s390_tdb_regset): Make global and
2520 replace s390_supply/_collect_regset by regcache_supply/
2522 (s390x_gregset): Delete.
2523 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2524 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2525 (s390_regmap_fpregset, s390_regmap_last_break)
2526 (s390x_regmap_last_break, s390_regmap_system_call)
2527 (s390_regmap_tdb): Delete global variable declarations.
2528 (s390_gregset, s390_fpregset, s390_last_break_regset)
2529 (s390x_last_break_regset, s390_system_call_regset)
2530 (s390_tdb_regset): New global variable declarations.
2532 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2534 * regcache.c: Include "regset.h".
2535 (regcache_transfer_regset): New local function.
2536 (regcache_supply_regset, regcache_collect_regset): New functions.
2537 * regcache.h (struct regcache_map_entry): New structure.
2538 (REGCACHE_MAP_SKIP): New enum value.
2539 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2541 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2543 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2544 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2545 (ppc_linux_collect_gregset ): Likewise.
2546 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2547 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2548 (ppc_collect_vrregset): Likewise.
2549 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2552 2014-08-07 Yao Qi <yao@codesourcery.com>
2554 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2555 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2556 * remote.c (remote_read_bytes): Likewise.
2558 2014-08-07 Yao Qi <yao@codesourcery.com>
2560 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2562 2014-08-07 Yao Qi <yao@codesourcery.com>
2565 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2566 TARGET_XFER_OK instead of 0.
2568 2014-08-07 Gary Benson <gbenson@redhat.com>
2570 * common/common-defs.h: Include errno.h.
2571 * defs.h: Do not include errno.h.
2572 * ada-typeprint.c: Likewise.
2573 * c-typeprint.c: Likewise.
2574 * core-regset.c: Likewise.
2575 * corefile.c: Likewise.
2576 * corelow.c: Likewise.
2577 * event-loop.c: Likewise.
2578 * f-typeprint.c: Likewise.
2579 * gnu-nat.c: Likewise.
2580 * go32-nat.c: Likewise.
2581 * i386gnu-nat.c: Likewise.
2582 * m2-typeprint.c: Likewise.
2583 * nat/linux-btrace.c: Likewise.
2584 * p-typeprint.c: Likewise.
2585 * procfs.c: Likewise.
2586 * remote-sim.c: Likewise.
2587 * rs6000-nat.c: Likewise.
2588 * target.c: Likewise.
2589 * typeprint.c: Likewise.
2590 * ui-file.c: Likewise.
2591 * valops.c: Likewise.
2592 * valprint.c: Likewise.
2594 2014-08-07 Gary Benson <gbenson@redhat.com>
2596 * common/common-defs.h: Include string.h.
2597 * aarch64-tdep.c: Do not include string.h.
2598 * ada-exp.y: Likewise.
2599 * ada-lang.c: Likewise.
2600 * ada-lex.l: Likewise.
2601 * ada-typeprint.c: Likewise.
2602 * ada-valprint.c: Likewise.
2603 * aix-thread.c: Likewise.
2604 * alpha-linux-tdep.c: Likewise.
2605 * alpha-mdebug-tdep.c: Likewise.
2606 * alpha-nat.c: Likewise.
2607 * alpha-osf1-tdep.c: Likewise.
2608 * alpha-tdep.c: Likewise.
2609 * alphanbsd-tdep.c: Likewise.
2610 * amd64-dicos-tdep.c: Likewise.
2611 * amd64-linux-tdep.c: Likewise.
2612 * amd64-nat.c: Likewise.
2613 * amd64-sol2-tdep.c: Likewise.
2614 * amd64fbsd-tdep.c: Likewise.
2615 * amd64obsd-tdep.c: Likewise.
2616 * arch-utils.c: Likewise.
2617 * arm-linux-nat.c: Likewise.
2618 * arm-linux-tdep.c: Likewise.
2619 * arm-tdep.c: Likewise.
2620 * arm-wince-tdep.c: Likewise.
2621 * armbsd-tdep.c: Likewise.
2622 * armnbsd-nat.c: Likewise.
2623 * armnbsd-tdep.c: Likewise.
2624 * armobsd-tdep.c: Likewise.
2625 * avr-tdep.c: Likewise.
2626 * ax-gdb.c: Likewise.
2627 * ax-general.c: Likewise.
2628 * bcache.c: Likewise.
2629 * bfin-tdep.c: Likewise.
2630 * breakpoint.c: Likewise.
2631 * build-id.c: Likewise.
2632 * buildsym.c: Likewise.
2633 * c-exp.y: Likewise.
2634 * c-lang.c: Likewise.
2635 * c-typeprint.c: Likewise.
2636 * c-valprint.c: Likewise.
2637 * charset.c: Likewise.
2638 * cli-out.c: Likewise.
2639 * cli/cli-cmds.c: Likewise.
2640 * cli/cli-decode.c: Likewise.
2641 * cli/cli-dump.c: Likewise.
2642 * cli/cli-interp.c: Likewise.
2643 * cli/cli-logging.c: Likewise.
2644 * cli/cli-script.c: Likewise.
2645 * cli/cli-setshow.c: Likewise.
2646 * cli/cli-utils.c: Likewise.
2647 * coffread.c: Likewise.
2648 * common/agent.c: Likewise.
2649 * common/buffer.c: Likewise.
2650 * common/buffer.h: Likewise.
2651 * common/common-utils.c: Likewise.
2652 * common/filestuff.c: Likewise.
2653 * common/filestuff.c: Likewise.
2654 * common/format.c: Likewise.
2655 * common/print-utils.c: Likewise.
2656 * common/rsp-low.c: Likewise.
2657 * common/signals.c: Likewise.
2658 * common/vec.h: Likewise.
2659 * common/xml-utils.c: Likewise.
2660 * core-regset.c: Likewise.
2661 * corefile.c: Likewise.
2662 * corelow.c: Likewise.
2663 * cp-abi.c: Likewise.
2664 * cp-name-parser.y: Likewise.
2665 * cp-support.c: Likewise.
2666 * cp-valprint.c: Likewise.
2667 * cris-tdep.c: Likewise.
2668 * d-exp.y: Likewise.
2669 * darwin-nat.c: Likewise.
2670 * dbxread.c: Likewise.
2671 * dcache.c: Likewise.
2672 * demangle.c: Likewise.
2673 * dicos-tdep.c: Likewise.
2674 * disasm.c: Likewise.
2675 * doublest.c: Likewise.
2676 * dsrec.c: Likewise.
2677 * dummy-frame.c: Likewise.
2678 * dwarf2-frame.c: Likewise.
2679 * dwarf2loc.c: Likewise.
2680 * dwarf2read.c: Likewise.
2681 * elfread.c: Likewise.
2682 * environ.c: Likewise.
2684 * event-loop.c: Likewise.
2685 * exceptions.c: Likewise.
2687 * expprint.c: Likewise.
2688 * f-exp.y: Likewise.
2689 * f-lang.c: Likewise.
2690 * f-typeprint.c: Likewise.
2691 * f-valprint.c: Likewise.
2692 * fbsd-nat.c: Likewise.
2693 * findcmd.c: Likewise.
2694 * findvar.c: Likewise.
2695 * fork-child.c: Likewise.
2696 * frame.c: Likewise.
2697 * frv-linux-tdep.c: Likewise.
2698 * frv-tdep.c: Likewise.
2700 * gdb_bfd.c: Likewise.
2701 * gdbarch.c: Likewise.
2702 * gdbarch.sh: Likewise.
2703 * gdbtypes.c: Likewise.
2704 * gnu-nat.c: Likewise.
2705 * gnu-v2-abi.c: Likewise.
2706 * gnu-v3-abi.c: Likewise.
2707 * go-exp.y: Likewise.
2708 * go-lang.c: Likewise.
2709 * go32-nat.c: Likewise.
2710 * guile/guile.c: Likewise.
2711 * guile/scm-auto-load.c: Likewise.
2712 * hppa-hpux-tdep.c: Likewise.
2713 * hppa-linux-nat.c: Likewise.
2714 * hppanbsd-tdep.c: Likewise.
2715 * hppaobsd-tdep.c: Likewise.
2716 * i386-cygwin-tdep.c: Likewise.
2717 * i386-dicos-tdep.c: Likewise.
2718 * i386-linux-tdep.c: Likewise.
2719 * i386-nto-tdep.c: Likewise.
2720 * i386-sol2-tdep.c: Likewise.
2721 * i386-tdep.c: Likewise.
2722 * i386bsd-tdep.c: Likewise.
2723 * i386gnu-nat.c: Likewise.
2724 * i386nbsd-tdep.c: Likewise.
2725 * i386obsd-tdep.c: Likewise.
2726 * i387-tdep.c: Likewise.
2727 * ia64-libunwind-tdep.c: Likewise.
2728 * ia64-linux-nat.c: Likewise.
2729 * inf-child.c: Likewise.
2730 * inf-ptrace.c: Likewise.
2731 * inf-ttrace.c: Likewise.
2732 * infcall.c: Likewise.
2733 * infcmd.c: Likewise.
2734 * inflow.c: Likewise.
2735 * infrun.c: Likewise.
2736 * interps.c: Likewise.
2737 * iq2000-tdep.c: Likewise.
2738 * irix5-nat.c: Likewise.
2739 * jv-exp.y: Likewise.
2740 * jv-lang.c: Likewise.
2741 * jv-typeprint.c: Likewise.
2742 * jv-valprint.c: Likewise.
2743 * language.c: Likewise.
2744 * linux-fork.c: Likewise.
2745 * linux-nat.c: Likewise.
2746 * lm32-tdep.c: Likewise.
2747 * m2-exp.y: Likewise.
2748 * m2-typeprint.c: Likewise.
2749 * m32c-tdep.c: Likewise.
2750 * m32r-linux-nat.c: Likewise.
2751 * m32r-linux-tdep.c: Likewise.
2752 * m32r-rom.c: Likewise.
2753 * m32r-tdep.c: Likewise.
2754 * m68hc11-tdep.c: Likewise.
2755 * m68k-tdep.c: Likewise.
2756 * m68kbsd-tdep.c: Likewise.
2757 * m68klinux-nat.c: Likewise.
2758 * m68klinux-tdep.c: Likewise.
2759 * m88k-tdep.c: Likewise.
2760 * machoread.c: Likewise.
2761 * macrocmd.c: Likewise.
2763 * mdebugread.c: Likewise.
2764 * mem-break.c: Likewise.
2765 * memattr.c: Likewise.
2766 * memory-map.c: Likewise.
2767 * mep-tdep.c: Likewise.
2768 * mi/mi-cmd-break.c: Likewise.
2769 * mi/mi-cmd-disas.c: Likewise.
2770 * mi/mi-cmd-env.c: Likewise.
2771 * mi/mi-cmd-stack.c: Likewise.
2772 * mi/mi-cmd-var.c: Likewise.
2773 * mi/mi-cmds.c: Likewise.
2774 * mi/mi-console.c: Likewise.
2775 * mi/mi-getopt.c: Likewise.
2776 * mi/mi-interp.c: Likewise.
2777 * mi/mi-main.c: Likewise.
2778 * mi/mi-parse.c: Likewise.
2779 * microblaze-rom.c: Likewise.
2780 * microblaze-tdep.c: Likewise.
2781 * mingw-hdep.c: Likewise.
2782 * minidebug.c: Likewise.
2783 * minsyms.c: Likewise.
2784 * mips-irix-tdep.c: Likewise.
2785 * mips-linux-tdep.c: Likewise.
2786 * mips-tdep.c: Likewise.
2787 * mips64obsd-tdep.c: Likewise.
2788 * mipsnbsd-tdep.c: Likewise.
2789 * mipsread.c: Likewise.
2790 * mn10300-linux-tdep.c: Likewise.
2791 * mn10300-tdep.c: Likewise.
2792 * monitor.c: Likewise.
2793 * moxie-tdep.c: Likewise.
2794 * mt-tdep.c: Likewise.
2795 * nat/linux-btrace.c: Likewise.
2796 * nat/linux-osdata.c: Likewise.
2797 * nat/linux-procfs.c: Likewise.
2798 * nat/linux-ptrace.c: Likewise.
2799 * nat/linux-waitpid.c: Likewise.
2800 * nbsd-tdep.c: Likewise.
2801 * nios2-linux-tdep.c: Likewise.
2802 * nto-procfs.c: Likewise.
2803 * nto-tdep.c: Likewise.
2804 * objc-lang.c: Likewise.
2805 * objfiles.c: Likewise.
2806 * opencl-lang.c: Likewise.
2807 * osabi.c: Likewise.
2808 * osdata.c: Likewise.
2809 * p-exp.y: Likewise.
2810 * p-lang.c: Likewise.
2811 * p-typeprint.c: Likewise.
2812 * parse.c: Likewise.
2813 * posix-hdep.c: Likewise.
2814 * ppc-linux-nat.c: Likewise.
2815 * ppc-sysv-tdep.c: Likewise.
2816 * ppcfbsd-tdep.c: Likewise.
2817 * ppcnbsd-tdep.c: Likewise.
2818 * ppcobsd-tdep.c: Likewise.
2819 * printcmd.c: Likewise.
2820 * procfs.c: Likewise.
2821 * prologue-value.c: Likewise.
2822 * python/py-auto-load.c: Likewise.
2823 * python/py-gdb-readline.c: Likewise.
2824 * ravenscar-thread.c: Likewise.
2825 * regcache.c: Likewise.
2826 * registry.c: Likewise.
2827 * remote-fileio.c: Likewise.
2828 * remote-m32r-sdi.c: Likewise.
2829 * remote-mips.c: Likewise.
2830 * remote-notif.c: Likewise.
2831 * remote-sim.c: Likewise.
2832 * remote.c: Likewise.
2833 * reverse.c: Likewise.
2834 * rs6000-aix-tdep.c: Likewise.
2835 * ser-base.c: Likewise.
2836 * ser-go32.c: Likewise.
2837 * ser-mingw.c: Likewise.
2838 * ser-pipe.c: Likewise.
2839 * ser-tcp.c: Likewise.
2840 * ser-unix.c: Likewise.
2841 * serial.c: Likewise.
2842 * sh-tdep.c: Likewise.
2843 * sh64-tdep.c: Likewise.
2844 * shnbsd-tdep.c: Likewise.
2846 * sol-thread.c: Likewise.
2847 * solib-dsbt.c: Likewise.
2848 * solib-frv.c: Likewise.
2849 * solib-osf.c: Likewise.
2850 * solib-som.c: Likewise.
2851 * solib-spu.c: Likewise.
2852 * solib-target.c: Likewise.
2853 * solib.c: Likewise.
2854 * somread.c: Likewise.
2855 * source.c: Likewise.
2856 * sparc-nat.c: Likewise.
2857 * sparc-sol2-tdep.c: Likewise.
2858 * sparc-tdep.c: Likewise.
2859 * sparc64-tdep.c: Likewise.
2860 * sparc64fbsd-tdep.c: Likewise.
2861 * sparc64nbsd-tdep.c: Likewise.
2862 * sparcnbsd-tdep.c: Likewise.
2863 * spu-linux-nat.c: Likewise.
2864 * spu-multiarch.c: Likewise.
2865 * spu-tdep.c: Likewise.
2866 * stabsread.c: Likewise.
2867 * stack.c: Likewise.
2868 * std-regs.c: Likewise.
2869 * symfile.c: Likewise.
2870 * symmisc.c: Likewise.
2871 * symtab.c: Likewise.
2872 * target.c: Likewise.
2873 * thread.c: Likewise.
2874 * tilegx-linux-nat.c: Likewise.
2875 * tilegx-tdep.c: Likewise.
2877 * tracepoint.c: Likewise.
2878 * tui/tui-command.c: Likewise.
2879 * tui/tui-data.c: Likewise.
2880 * tui/tui-disasm.c: Likewise.
2881 * tui/tui-file.c: Likewise.
2882 * tui/tui-layout.c: Likewise.
2883 * tui/tui-out.c: Likewise.
2884 * tui/tui-regs.c: Likewise.
2885 * tui/tui-source.c: Likewise.
2886 * tui/tui-stack.c: Likewise.
2887 * tui/tui-win.c: Likewise.
2888 * tui/tui-windata.c: Likewise.
2889 * tui/tui-winsource.c: Likewise.
2890 * typeprint.c: Likewise.
2891 * ui-file.c: Likewise.
2892 * ui-out.c: Likewise.
2893 * user-regs.c: Likewise.
2894 * utils.c: Likewise.
2895 * v850-tdep.c: Likewise.
2896 * valarith.c: Likewise.
2897 * valops.c: Likewise.
2898 * valprint.c: Likewise.
2899 * value.c: Likewise.
2900 * varobj.c: Likewise.
2901 * vax-tdep.c: Likewise.
2902 * vaxnbsd-tdep.c: Likewise.
2903 * vaxobsd-tdep.c: Likewise.
2904 * windows-nat.c: Likewise.
2905 * xcoffread.c: Likewise.
2906 * xml-support.c: Likewise.
2907 * xstormy16-tdep.c: Likewise.
2908 * xtensa-linux-nat.c: Likewise.
2910 2014-08-07 Gary Benson <gbenson@redhat.com>
2912 * common/common-defs.h: Include gdb_assert.h.
2913 * aarch64-tdep.c: Do not include gdb_assert.h.
2914 * addrmap.c: Likewise.
2915 * aix-thread.c: Likewise.
2916 * alpha-linux-tdep.c: Likewise.
2917 * alpha-mdebug-tdep.c: Likewise.
2918 * alphanbsd-tdep.c: Likewise.
2919 * amd64-nat.c: Likewise.
2920 * amd64-tdep.c: Likewise.
2921 * amd64bsd-nat.c: Likewise.
2922 * amd64fbsd-nat.c: Likewise.
2923 * amd64fbsd-tdep.c: Likewise.
2924 * amd64nbsd-nat.c: Likewise.
2925 * amd64nbsd-tdep.c: Likewise.
2926 * amd64obsd-nat.c: Likewise.
2927 * amd64obsd-tdep.c: Likewise.
2928 * arch-utils.c: Likewise.
2929 * arm-tdep.c: Likewise.
2930 * armbsd-tdep.c: Likewise.
2932 * bcache.c: Likewise.
2933 * bfin-tdep.c: Likewise.
2934 * blockframe.c: Likewise.
2935 * breakpoint.c: Likewise.
2936 * bsd-kvm.c: Likewise.
2937 * bsd-uthread.c: Likewise.
2938 * buildsym.c: Likewise.
2939 * c-exp.y: Likewise.
2940 * c-lang.c: Likewise.
2941 * charset.c: Likewise.
2942 * cleanups.c: Likewise.
2943 * cli-out.c: Likewise.
2944 * cli/cli-decode.c: Likewise.
2945 * cli/cli-dump.c: Likewise.
2946 * cli/cli-logging.c: Likewise.
2947 * cli/cli-script.c: Likewise.
2948 * cli/cli-utils.c: Likewise.
2949 * coffread.c: Likewise.
2950 * common/common-utils.c: Likewise.
2951 * common/queue.h: Likewise.
2952 * common/signals.c: Likewise.
2953 * common/vec.h: Likewise.
2954 * complaints.c: Likewise.
2955 * completer.c: Likewise.
2956 * corelow.c: Likewise.
2957 * cp-abi.c: Likewise.
2958 * cp-name-parser.y: Likewise.
2959 * cp-namespace.c: Likewise.
2960 * cp-support.c: Likewise.
2961 * cris-tdep.c: Likewise.
2962 * dbxread.c: Likewise.
2963 * dictionary.c: Likewise.
2964 * doublest.c: Likewise.
2965 * dsrec.c: Likewise.
2966 * dummy-frame.c: Likewise.
2967 * dwarf2-frame-tailcall.c: Likewise.
2968 * dwarf2-frame.c: Likewise.
2969 * dwarf2expr.c: Likewise.
2970 * dwarf2loc.c: Likewise.
2971 * dwarf2read.c: Likewise.
2973 * event-loop.c: Likewise.
2974 * exceptions.c: Likewise.
2975 * expprint.c: Likewise.
2976 * f-valprint.c: Likewise.
2977 * fbsd-nat.c: Likewise.
2978 * findvar.c: Likewise.
2979 * frame-unwind.c: Likewise.
2980 * frame.c: Likewise.
2981 * frv-tdep.c: Likewise.
2982 * gcore.c: Likewise.
2983 * gdb-dlfcn.c: Likewise.
2984 * gdb_bfd.c: Likewise.
2985 * gdbarch.c: Likewise.
2986 * gdbarch.sh: Likewise.
2987 * gdbtypes.c: Likewise.
2988 * gnu-nat.c: Likewise.
2989 * gnu-v3-abi.c: Likewise.
2990 * go-lang.c: Likewise.
2991 * guile/scm-exception.c: Likewise.
2992 * guile/scm-gsmob.c: Likewise.
2993 * guile/scm-lazy-string.c: Likewise.
2994 * guile/scm-math.c: Likewise.
2995 * guile/scm-pretty-print.c: Likewise.
2996 * guile/scm-safe-call.c: Likewise.
2997 * guile/scm-utils.c: Likewise.
2998 * guile/scm-value.c: Likewise.
2999 * h8300-tdep.c: Likewise.
3000 * hppa-hpux-nat.c: Likewise.
3001 * hppa-tdep.c: Likewise.
3002 * hppanbsd-tdep.c: Likewise.
3003 * hppaobsd-tdep.c: Likewise.
3004 * i386-darwin-nat.c: Likewise.
3005 * i386-darwin-tdep.c: Likewise.
3006 * i386-nto-tdep.c: Likewise.
3007 * i386-tdep.c: Likewise.
3008 * i386bsd-nat.c: Likewise.
3009 * i386fbsd-tdep.c: Likewise.
3010 * i386gnu-nat.c: Likewise.
3011 * i386nbsd-tdep.c: Likewise.
3012 * i386obsd-tdep.c: Likewise.
3013 * i387-tdep.c: Likewise.
3014 * ia64-libunwind-tdep.c: Likewise.
3015 * ia64-tdep.c: Likewise.
3016 * inf-ptrace.c: Likewise.
3017 * inf-ttrace.c: Likewise.
3018 * infcall.c: Likewise.
3019 * infcmd.c: Likewise.
3020 * infrun.c: Likewise.
3021 * inline-frame.c: Likewise.
3022 * interps.c: Likewise.
3023 * jv-lang.c: Likewise.
3024 * jv-typeprint.c: Likewise.
3025 * linux-fork.c: Likewise.
3026 * linux-nat.c: Likewise.
3027 * linux-thread-db.c: Likewise.
3028 * m32c-tdep.c: Likewise.
3029 * m32r-linux-nat.c: Likewise.
3030 * m32r-tdep.c: Likewise.
3031 * m68k-tdep.c: Likewise.
3032 * m68kbsd-nat.c: Likewise.
3033 * m68kbsd-tdep.c: Likewise.
3034 * m88k-tdep.c: Likewise.
3035 * machoread.c: Likewise.
3036 * macroexp.c: Likewise.
3037 * macrotab.c: Likewise.
3038 * maint.c: Likewise.
3039 * mdebugread.c: Likewise.
3040 * memory-map.c: Likewise.
3041 * mep-tdep.c: Likewise.
3042 * mi/mi-common.c: Likewise.
3043 * microblaze-tdep.c: Likewise.
3044 * mingw-hdep.c: Likewise.
3045 * mips-linux-nat.c: Likewise.
3046 * mips-linux-tdep.c: Likewise.
3047 * mips-tdep.c: Likewise.
3048 * mips64obsd-tdep.c: Likewise.
3049 * mipsnbsd-tdep.c: Likewise.
3050 * mn10300-linux-tdep.c: Likewise.
3051 * mn10300-tdep.c: Likewise.
3052 * moxie-tdep.c: Likewise.
3053 * mt-tdep.c: Likewise.
3054 * nat/linux-btrace.c: Likewise.
3055 * nat/linux-osdata.c: Likewise.
3056 * nat/linux-ptrace.c: Likewise.
3057 * nat/mips-linux-watch.c: Likewise.
3058 * nios2-linux-tdep.c: Likewise.
3059 * nios2-tdep.c: Likewise.
3060 * objc-lang.c: Likewise.
3061 * objfiles.c: Likewise.
3062 * obsd-nat.c: Likewise.
3063 * opencl-lang.c: Likewise.
3064 * osabi.c: Likewise.
3065 * parse.c: Likewise.
3066 * ppc-linux-nat.c: Likewise.
3067 * ppc-sysv-tdep.c: Likewise.
3068 * ppcfbsd-nat.c: Likewise.
3069 * ppcfbsd-tdep.c: Likewise.
3070 * ppcnbsd-nat.c: Likewise.
3071 * ppcnbsd-tdep.c: Likewise.
3072 * ppcobsd-nat.c: Likewise.
3073 * ppcobsd-tdep.c: Likewise.
3074 * printcmd.c: Likewise.
3075 * procfs.c: Likewise.
3076 * prologue-value.c: Likewise.
3077 * psymtab.c: Likewise.
3078 * python/py-lazy-string.c: Likewise.
3079 * python/py-value.c: Likewise.
3080 * regcache.c: Likewise.
3081 * reggroups.c: Likewise.
3082 * registry.c: Likewise.
3083 * remote-sim.c: Likewise.
3084 * remote.c: Likewise.
3085 * rs6000-aix-tdep.c: Likewise.
3086 * rs6000-tdep.c: Likewise.
3087 * s390-linux-tdep.c: Likewise.
3088 * score-tdep.c: Likewise.
3089 * ser-base.c: Likewise.
3090 * ser-mingw.c: Likewise.
3091 * sh-tdep.c: Likewise.
3092 * sh64-tdep.c: Likewise.
3093 * solib-darwin.c: Likewise.
3094 * solib-spu.c: Likewise.
3095 * solib-svr4.c: Likewise.
3096 * source.c: Likewise.
3097 * sparc-nat.c: Likewise.
3098 * sparc-sol2-tdep.c: Likewise.
3099 * sparc-tdep.c: Likewise.
3100 * sparc64-sol2-tdep.c: Likewise.
3101 * sparc64-tdep.c: Likewise.
3102 * sparc64fbsd-tdep.c: Likewise.
3103 * sparc64nbsd-tdep.c: Likewise.
3104 * sparc64obsd-tdep.c: Likewise.
3105 * sparcnbsd-tdep.c: Likewise.
3106 * sparcobsd-tdep.c: Likewise.
3107 * spu-multiarch.c: Likewise.
3108 * spu-tdep.c: Likewise.
3109 * stabsread.c: Likewise.
3110 * stack.c: Likewise.
3111 * symfile.c: Likewise.
3112 * symtab.c: Likewise.
3113 * target-descriptions.c: Likewise.
3114 * target-memory.c: Likewise.
3115 * target.c: Likewise.
3116 * tic6x-linux-tdep.c: Likewise.
3117 * tic6x-tdep.c: Likewise.
3118 * tilegx-linux-nat.c: Likewise.
3119 * tilegx-tdep.c: Likewise.
3121 * tramp-frame.c: Likewise.
3122 * tui/tui-out.c: Likewise.
3123 * tui/tui-winsource.c: Likewise.
3124 * ui-out.c: Likewise.
3125 * user-regs.c: Likewise.
3126 * utils.c: Likewise.
3127 * v850-tdep.c: Likewise.
3128 * valops.c: Likewise.
3129 * value.c: Likewise.
3130 * varobj.c: Likewise.
3131 * vax-nat.c: Likewise.
3132 * xml-syscall.c: Likewise.
3133 * xml-tdesc.c: Likewise.
3134 * xstormy16-tdep.c: Likewise.
3135 * xtensa-linux-nat.c: Likewise.
3136 * xtensa-tdep.c: Likewise.
3138 2014-08-07 Gary Benson <gbenson@redhat.com>
3140 * common/common-defs.h: Include common-utils.h.
3141 * defs.h: Do not include common-utils.h.
3142 * common/gdb_assert.h: Likewise.
3143 * darwin-nat.h: Likewise.
3144 * nat/linux-btrace.c: Likewise.
3145 * target/waitstatus.h: Likewise.
3147 2014-08-07 Gary Benson <gbenson@redhat.com>
3149 * common/common-defs.h: Include ptid.h.
3150 * defs.h: Do not include ptid.h.
3151 * inferior.h: Likewise.
3152 * infrun.h: Likewise.
3153 * nat/linux-btrace.h: Likewise.
3154 * nat/linux-osdata.h: Likewise.
3155 * target/waitstatus.h: Likewise.
3157 2014-08-07 Gary Benson <gbenson@redhat.com>
3159 * common/common-defs.h: Include gdb_locale.h.
3160 * defs.h: Do not include gdb_locale.h.
3162 2014-08-07 Gary Benson <gbenson@redhat.com>
3164 * common/common-defs.h: Include gdb/signals.h.
3165 * defs.h: Do not include gdb/signals.h.
3167 2014-08-07 Gary Benson <gbenson@redhat.com>
3169 * common/common-defs.h: Include pathmax.h.
3170 * defs.h: Do not include pathmax.h.
3172 2014-08-07 Gary Benson <gbenson@redhat.com>
3174 * common/common-defs.h: Include libiberty.h.
3175 * defs.h: Do not include libiberty.h.
3176 * common/queue.h: Likewise.
3177 * cp-name-parser.y: Likewise.
3178 * mi/mi-cmd-catch.c: Likewise.
3179 * python/python.c: Likewise.
3181 2014-08-07 Gary Benson <gbenson@redhat.com>
3183 * common/common-defs.h: Include ansidecl.h.
3184 * defs.h: Do not include ansidecl.h.
3185 * common/buffer.h: Likewise.
3186 * common/common-utils.h: Likewise.
3188 2014-08-07 Gary Benson <gbenson@redhat.com>
3190 * common/common-defs.h: Include stddef.h.
3191 * defs.h: Do not include stddef.h.
3192 * common/common-utils.h: Likewise.
3193 * amd64fbsd-nat.c: Likewise.
3194 * bcache.c: Likewise.
3195 * charset.c: Likewise.
3196 * common/buffer.h: Likewise.
3197 * common/vec.h: Likewise.
3198 * i386bsd-nat.c: Likewise.
3199 * nat/linux-btrace.h: Likewise.
3200 * ppcfbsd-nat.c: Likewise.
3201 * ppcnbsd-tdep.h: Likewise.
3202 * ppcobsd-nat.c: Likewise.
3203 * ppcobsd-tdep.h: Likewise.
3204 * python/py-gdb-readline.c: Likewise.
3206 2014-08-07 Gary Benson <gbenson@redhat.com>
3208 * common/common-defs.h: Include stdarg.h.
3209 * defs.h: Do not include stdarg.h.
3210 * ada-lang.c: Likewise.
3211 * common/common-utils.h: Likewise.
3212 * guile/scm-string.c: Likewise.
3213 * guile/scm-utils.c: Likewise.
3214 * m32c-tdep.c: Likewise.
3216 2014-08-07 Gary Benson <gbenson@redhat.com>
3218 * common/common-defs.h: Include stdlib.h.
3219 * defs.h: Do not include stdlib.h.
3220 * addrmap.c: Likewise.
3221 * bcache.c: Likewise.
3222 * common/buffer.c: Likewise.
3223 * common/common-utils.c: Likewise.
3224 * cp-name-parser.y: Likewise.
3225 * go32-nat.c: Likewise.
3226 * mn10300-linux-tdep.c: Likewise.
3227 * nat/linux-osdata.c: Likewise.
3228 * tui/tui.c: Likewise.
3229 * windows-nat.c: Likewise.
3231 2014-08-07 Gary Benson <gbenson@redhat.com>
3233 * common/common-defs.h: Include stdio.h.
3234 * defs.h: Do not include stdio.h.
3235 * ada-lang.c: Likewise.
3236 * common/buffer.c: Likewise.
3237 * common/common-utils.c: Likewise.
3238 * cp-name-parser.y: Likewise.
3239 * gnu-nat.c: Likewise.
3240 * go32-nat.c: Likewise.
3241 * i386gnu-nat.c: Likewise.
3242 * proc-api.c: Likewise.
3243 * proc-events.c: Likewise.
3244 * proc-flags.c: Likewise.
3245 * proc-why.c: Likewise.
3246 * python/python-internal.h: Likewise.
3247 * target-memory.c: Likewise.
3248 * tui/tui-io.c: Likewise.
3249 * tui/tui.c: Likewise.
3251 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3253 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3254 (scan_dyntag_auxv): Same.
3256 2014-08-06 Yao Qi <yao@codesourcery.com>
3258 * amd64-linux-nat.c: Remove duplicated include
3260 * i386-linux-nat.c: Likewise.
3262 2014-08-06 Yao Qi <yao@codesourcery.com>
3264 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3265 operand" with "Special opcode" in comments.
3267 2014-08-05 Gary Benson <gbenson@redhat.com>
3269 * interps.c (initialize_interps): Remove prototype.
3270 (interpreter_initialized): Remove static global.
3271 (interp_add): Do not call initialize_interps.
3272 (initialize_interps): Remove function.
3274 2014-08-05 Gary Benson <gbenson@redhat.com>
3276 * utils.c (vwarning): Remove spurious va_end.
3278 2014-08-05 Alan Modra <amodra@gmail.com>
3280 * charset.c (convert_between_encodings): Cast result of obstack_base.
3281 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3282 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3283 (read_unwind_info): Use size_t for some locals.
3284 * jit.c (finalize_symtab): Likewise.
3285 * utils.c (hashtab_obstack_allocate): Likewise.
3286 * symmisc.c (print_objfile_statistics): Update format strings.
3288 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3290 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3291 (Changes in GDB 7.8): ... here.
3293 2014-08-04 Tom Tromey <tromey@redhat.com>
3295 * target.c (set_targetdebug): New function.
3296 (initialize_targets): Pass set_targetdebug when creating "set
3299 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3301 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3302 if detecting a variable-sized field that is not the last field.
3303 Fix struct type length computation.
3305 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3307 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3310 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3312 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3313 Remove "+ 8" offset in computation of CHAIN_VMA.
3315 2014-07-31 Doug Evans <dje@google.com>
3317 * inflow.c (child_terminal_inferior): Add comment.
3318 (child_terminal_ours_for_output): Add comment.
3319 (child_terminal_ours): Add comment.
3320 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3321 (linux_nat_terminal_ours): Add comment.
3323 2014-07-31 Gary Benson <gbenson@redhat.com>
3325 * common/btrace-common.h: Do not include defs.h or server.h.
3326 * nat/mips-linux-watch.h: Likewise.
3327 * gdb-dlfcn.h: Do not include defs.h.
3328 * tracefile.h: Likewise.
3330 2014-07-30 Roland McGrath <mcgrathr@google.com>
3332 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3334 2014-07-30 Tom Tromey <tromey@redhat.com>
3336 * bsd-kvm.c (bsd_kvm_open): Constify.
3337 * corelow.c (core_open): Constify.
3338 * ctf.c (ctf_open): Constify.
3339 * dbug-rom.c (dbug_open): Constify.
3340 * exec.c (exec_open): Constify.
3341 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3342 * microblaze-rom.c (picobug_open): Constify.
3343 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3345 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3346 * record-btrace.c (record_btrace_open): Constify.
3347 * record-full.c (record_full_core_open_1, record_full_open_1)
3348 (record_full_open): Constify.
3349 * remote-m32r-sdi.c (m32r_open): Constify.
3350 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3351 (rockhopper_open, lsi_open): Constify.
3352 * remote-sim.c (gdbsim_open): Constify.
3353 * remote.c (remote_open, extended_remote_open, remote_open_1):
3355 * target.h (struct target_ops) <to_open>: Make "arg" const.
3356 * tracefile-tfile.c (tfile_open): Constify.
3358 2014-07-30 Tom Tromey <tromey@redhat.com>
3360 * breakpoint.c (map_breakpoint_numbers): Update.
3361 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3362 (get_number_const): New function.
3363 (get_number): Rewrite using get_number_const.
3364 (init_number_or_range): Make "string" const.
3365 (number_is_in_list): Make "list" const.
3366 * cli/cli-utils.h (get_number_const): Declare.
3367 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3368 (init_number_or_range, number_is_in_list): Update.
3369 * printcmd.c (map_display_numbers): Update.
3370 * value.c (value_from_history_ref): Constify.
3371 * value.h (value_from_history_ref): Update.
3373 2014-07-30 Tom Tromey <tromey@redhat.com>
3375 * corefile.c (hook_type, call_extra_exec_file_hooks)
3376 (specify_exec_file_hook): Constify.
3377 * exec.c (exec_file_attach): Make "filename" const.
3378 * gdbcore.h (deprecated_exec_file_display_hook)
3379 (specify_exec_file_hook, exec_file_attach): Constify.
3380 * main.c (captured_main): Use catch_command_errors_const.
3382 2014-07-30 Tom Tromey <tromey@redhat.com>
3384 * target.c (open_target): New function.
3385 (add_target_with_completer, add_deprecated_target_alias): Use
3386 set_cmd_sfunc, set_cmd_context.
3387 (debug_to_open): Remove.
3388 (setup_target_debug): Update.
3390 2014-07-30 Yao Qi <yao@codesourcery.com>
3392 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3394 * parse.c (exp_iterate): Update comments.
3396 2014-07-30 Gary Benson <gbenson@redhat.com>
3398 * common/common-defs.h: New file.
3399 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3400 * defs.h: Include common-defs.h.
3401 Do not include config.h or build-gnulib/config.h.
3403 2014-07-30 Gary Benson <gbenson@redhat.com>
3405 * common/common-utils.h: Do not include config.h.
3406 * nat/linux-btrace.h: Likewise.
3408 2014-07-30 Gary Benson <gbenson@redhat.com>
3410 * btrace.c: Include defs.h.
3411 * common/ptid.c: Include defs.h or server.h as appropriate.
3412 * nat/mips-linux-watch.c: Likewise.
3414 2014-07-29 Tom Tromey <tromey@redhat.com>
3416 * target.c (target_is_pushed): Simplify.
3418 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3422 2014-07-29 Yao Qi <yao@codesourcery.com>
3425 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3427 2014-07-28 Doug Evans <xdje42@gmail.com>
3430 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3431 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3434 2014-07-28 Will Newton <will.newton@linaro.org>
3436 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3437 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3438 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3439 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3440 (THUMB2_EABI_SYSCALL): Likewise.
3441 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3443 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3444 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3446 2014-07-27 Doug Evans <xdje42@gmail.com>
3448 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3450 2014-07-27 Doug Evans <xdje42@gmail.com>
3452 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3454 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3455 Doug Evans <xdje42@gmail.com>
3458 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3459 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3460 * configure.ac: Try to use guild to compile an scm file, if it fails
3461 then disable guile support.
3462 * configure: Regenerate.
3463 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3465 (GUILE_COMPILED_FILES): New variable.
3466 (GUILE_FILES) Update.
3467 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3468 (stamp-guile): Compile scm files.
3469 * guile/guile.c (boot_guile_support): New function.
3470 (standard_throw_args_p): New function.
3471 (print_standard_throw_error, print_throw_error): New functions.
3472 (handle_boot_error): New function.
3473 (initialize_scheme_side): Rewrite to call boot_guile_support.
3474 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3475 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3477 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3478 Doug Evans <xdje42@gmail.com>
3481 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3482 * guile/lib/gdb/support.scm: New file.
3483 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3484 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3486 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3488 (%assert-type): Ditto, and renamed to assert-type.
3489 (%exception-print-style): Delete.
3491 2014-07-26 Doug Evans <xdje42@gmail.com>
3494 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3495 * configure: Regenerate.
3496 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3498 (PYTHON_FILES): New variable.
3499 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3500 (GUILE_FILES): New variable.
3501 (stamp-python, install-python, uninstall-python): Handle empty
3503 (stamp-guile, install-guile, uninstall-guile): Ditto.
3505 2014-07-26 Doug Evans <xdje42@gmail.com>
3508 * guile/lib/gdb.scm (pretty-printers): Export.
3509 (set-pretty-printers!): Export.
3510 * guile/lib/gdb/printing.scm (gdb module): Update.
3511 (prepend-pretty-printer!, append-pretty-printer!): Update.
3512 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3513 (pretty_printer_list_var): Delete.
3514 (pretty_printer_list): New static global.
3515 (gdbscm_pretty_printers): New function.
3516 (gdbscm_set_pretty_printers_x): New function.
3517 (ppscm_find_pretty_printer_from_gdb): Update.
3518 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3519 (gdbscm_initialize_pretty_printers): Update.
3521 2014-07-26 Doug Evans <xdje42@gmail.com>
3524 * configure.ac: Add check for header gc/gc.h.
3525 Add check for function setenv.
3526 * configure: Regenerate.
3527 * config.in: Regenerate.
3528 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3530 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3532 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3533 variation in gdbarch matching.
3535 2014-07-25 Tom Tromey <tromey@redhat.com>
3537 * exec.c (using_exec_ops): Remove.
3538 (exec_close_1): Update. Remove extraneous block, reindent.
3539 (add_target_sections): Use target_is_pushed.
3541 2014-07-25 Pedro Alves <palves@redhat.com>
3543 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3544 * monitor.c (monitor_create_inferior): Likewise.
3545 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3546 * remote-sim.c (gdbsim_create_inferior): Likewise.
3547 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3548 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3549 * windows-nat.c (do_initial_windows_stuff): Likewise.
3551 2014-07-25 Pedro Alves <palves@redhat.com>
3553 * NEWS: Mention signal passing and "signal" command changes.
3554 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3556 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3558 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3559 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3560 (jump_command): Adjust clear_proceed_status call.
3561 (signal_command): Warn if other thread that are resumed have
3562 signals that will be delivered. Adjust clear_proceed_status call.
3563 (until_next_command, finish_command)
3564 (proceed_after_attach_callback, attach_command_post_wait)
3565 (attach_command): Adjust clear_proceed_status call.
3566 * infrun.c (proceed_after_vfork_done): Likewise.
3567 (proceed_after_attach_callback): Adjust comment.
3568 (clear_proceed_status_thread): Clear stop_signal if not in pass
3570 (clear_proceed_status_callback): Delete.
3571 (clear_proceed_status): New 'step' parameter. Only clear the
3572 proceed status of threads the command being prepared is about to
3574 (proceed): If passed in an explicit signal, override stop_signal
3575 with it. Don't pass the last stop signal to the thread we're
3577 (init_wait_for_inferior): Adjust clear_proceed_status call.
3578 (switch_back_to_stepped_thread): Clear the signal if it should not
3580 * infrun.h (clear_proceed_status): New 'step' parameter.
3581 (user_visible_resume_ptid): Add comment.
3582 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3583 signal is in pass state.
3584 * remote.c (append_pending_thread_resumptions): Likewise.
3585 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3587 2014-07-25 Tom Tromey <tromey@redhat.com>
3589 * target.h (target_stopped_data_address)
3590 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3593 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3595 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3597 (avr_pointer_to_address): Likewise.
3599 2014-07-24 Tom Tromey <tromey@redhat.com>
3601 * monitor.c (compile_pattern): Update.
3602 * target.h (struct target_ops) <to_shortname, to_longname,
3605 2014-07-24 Tom Tromey <tromey@redhat.com>
3607 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3608 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3609 (add_info_alias, add_com): Make "doc" const.
3610 (print_doc_line): Make "str" const.
3611 (delete_cmd): Update.
3612 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3613 (print_doc_line): Update.
3614 * cli/cli-script.c (document_command): Update.
3615 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3616 (add_com, add_info, add_info_alias): Update.
3617 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3618 * python/py-cmd.c (cmdpy_destroyer): Update.
3620 2014-07-24 Tom Tromey <tromey@redhat.com>
3622 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3623 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3624 (help_cmd_list): Constify.
3625 (lookup_cmd): Update.
3626 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3628 (help_cmd_list, apropos_cmd): Update.
3629 * cli/cli-script.c (show_user): Update.
3630 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3631 * cli/cli-setshow.h (cmd_show_list): Update.
3632 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3633 (cmd_show_list): Update.
3634 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3635 * python/py-cmd.c (cmdpy_destroyer): Update.
3637 2014-07-24 Tom Tromey <tromey@redhat.com>
3639 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3640 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3642 * command.h (deprecate_cmd): Update.
3643 * maint.c (maintenance_do_deprecate): Add casts.
3645 2014-07-24 Tom Tromey <tromey@redhat.com>
3647 * cli/cli-decode.c (help_cmd): Make parameter "const".
3648 * cli/cli-decode.h (help_cmd): Update.
3650 2014-07-24 Tom Tromey <tromey@redhat.com>
3652 * stack.c (up_silently_base, down_silently_base): Make argument
3655 2014-07-24 Tom Tromey <tromey@redhat.com>
3657 * solib.c (solib_add): Make "pattern" const.
3658 * solib.h (solib_add): Update.
3660 2014-07-24 Tom Tromey <tromey@redhat.com>
3662 * remote.c (remote_serial_open, print_packet, putpkt)
3663 (putpkt_binary): Constify.
3664 * remote.h (putpkt): Update.
3666 2014-07-24 Tom Tromey <tromey@redhat.com>
3668 * monitor.c (monitor_open): Make "args" const.
3669 * monitor.h (monitor_open): Update.
3671 2014-07-24 Tom Tromey <tromey@redhat.com>
3673 * maint.c (match_bfd_flags): Make "string" const.
3674 (print_bfd_section_info): Remove casts.
3675 (print_objfile_section_info): Make "string" const.
3677 2014-07-24 Tom Tromey <tromey@redhat.com>
3679 * inf-child.c (inf_child_open_target): Make "arg" const.
3680 * inf-child.h (inf_child_open_target): Update.
3682 2014-07-24 Tom Tromey <tromey@redhat.com>
3684 * environ.c (unset_in_environ): Make "var" const.
3685 * environ.h (unset_in_environ): Update.
3687 2014-07-24 Tom Tromey <tromey@redhat.com>
3689 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3691 (scan_filename_with_cleanup): Likewise.
3692 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3693 Make arguments const.
3694 (restore_command): Update.
3696 2014-07-24 Pedro Alves <palves@redhat.com>
3698 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3700 2014-07-24 Tom Tromey <tromey@redhat.com>
3701 Gary Benson <gbenson@redhat.com>
3703 * nat/linux-ptrace.c (additional_flags): New global.
3704 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3705 additional_flags; don't check GDBSERVER.
3706 (linux_ptrace_set_additional_flags): New function.
3707 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3709 * linux-nat.c (_initialize_linux_nat): Call
3710 linux_ptrace_set_additional_flags.
3712 2014-07-24 Tom Tromey <tromey@redhat.com>
3714 * make-target-delegates (munge_type, write_debugmethod): New
3716 (debug_names): New global.
3717 ($TARGET_DEBUG_PRINTER): New global.
3718 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3720 Write debug methods. Generate init_debug_target.
3721 * target-debug.h: New file.
3722 * target-delegates.c: Rebuild.
3723 * target.c: Include target-debug.h.
3724 (debug_target): Hoist definition.
3725 (target_kill, target_get_section_table, target_memory_map)
3726 (target_flash_erase, target_flash_done, target_detach)
3727 (target_disconnect, target_wait, target_resume)
3728 (target_pass_signals, target_program_signals, target_follow_fork)
3729 (target_mourn_inferior, target_search_memory)
3730 (target_thread_address_space, target_close)
3731 (target_find_new_threads, target_core_of_thread)
3732 (target_verify_memory, target_insert_mask_watchpoint)
3733 (target_remove_mask_watchpoint): Remove targetdebug code.
3734 (debug_to_post_attach, debug_to_prepare_to_store)
3735 (debug_to_files_info, debug_to_insert_breakpoint)
3736 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3737 (debug_to_region_ok_for_hw_watchpoint)
3738 (debug_to_can_accel_watchpoint_condition)
3739 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3740 (debug_to_watchpoint_addr_within_range)
3741 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3742 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3743 (debug_to_terminal_init, debug_to_terminal_inferior)
3744 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3745 (debug_to_terminal_save_ours, debug_to_terminal_info)
3746 (debug_to_load, debug_to_post_startup_inferior)
3747 (debug_to_insert_fork_catchpoint)
3748 (debug_to_remove_fork_catchpoint)
3749 (debug_to_insert_vfork_catchpoint)
3750 (debug_to_remove_vfork_catchpoint)
3751 (debug_to_insert_exec_catchpoint)
3752 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3753 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3754 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3755 (setup_target_debug): Call init_debug_target.
3756 * target.h (TARGET_DEBUG_PRINTER): New macro.
3757 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3758 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3760 2014-07-24 Gary Benson <gbenson@redhat.com>
3762 * exceptions.h (throw_vfatal): Renamed to...
3763 (throw_vquit): New declaration.
3764 (throw_quit): Likewise.
3765 * exceptions.c (throw_vfatal): Renamed to...
3766 (throw_vquit): New function.
3767 (throw_quit): Likewise.
3768 (throw_error): Call throw_verror rather than throw_it.
3769 * utils.h (vfatal): Removed.
3771 * utils.c (vfatal): Removed.
3773 (internal_verror): Replaced call to fatal with call to throw_quit.
3774 (quit): Replaced calls to fatal with calls to throw_quit.
3776 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3778 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3781 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3783 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3784 less than zero in conditional expression.
3786 2014-07-23 Tom Tromey <tromey@redhat.com>
3788 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3789 ($INTRO_PART): Don't match whitespace.
3790 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3792 ($METHOD): Add $METHOD_TRAILER.
3794 (scan_target_h): New sub.
3795 Change main loop not to collect state.
3796 * target-delegates.c: Rebuild.
3798 2014-07-23 Gary Benson <gbenson@redhat.com>
3800 * cp-support.c (gdb_demangle): Fix build on systems without
3803 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3805 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3806 for reference entry value target data value.
3808 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3810 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3811 value_available_contents_eq.
3813 2014-07-22 Pedro Alves <palves@redhat.com>
3815 * value.c (allocate_optimized_out_value): Don't mark value as
3818 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3820 * MAINTAINERS (Write After Approval): Update my email address.
3822 2014-07-20 Doug Evans <dje@google.com>
3825 * remote.c (putpkt_binary): Add text to error message.
3827 2014-07-20 Yao Qi <yao@codesourcery.com>
3829 * eval.c: Remove "Chill" from comments.
3830 * gdbtypes.h: Likewise.
3831 * symtab.h: Likewise.
3833 2014-07-20 Yao Qi <yao@codesourcery.com>
3835 * std-operator.def: Update comments to TERNOP_SLICE.
3837 2014-07-20 Yao Qi <yao@codesourcery.com>
3839 * std-operator.def: Remove BINOP_RANGE.
3840 * breakpoint.c (watchpoint_exp_is_const): Update.
3841 * expprint.c (dump_subexp_body_standard): Likewise.
3842 * eval.c (init_array_element): Remove dead code.
3843 (evaluate_subexp_standard): Likewise.
3845 2014-07-20 Yao Qi <yao@codesourcery.com>
3847 * std-operator.def: Remove BINOP_IN.
3848 * breakpoint.c (watchpoint_exp_is_const): Update.
3849 * eval.c (evaluate_subexp_standard): Likewise.
3850 * expprint.c (dump_subexp_body_standard): Likewise.
3852 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3854 * microblaze-tdep.c (microblaze_register_names): Add
3855 the rshr and rslr register names.
3856 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3857 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3858 Use of tdesc_numbered_register. Use of
3859 microblaze_register_g_packet_guesses. Use of
3860 tdesc_use_registers. Use of set_gdbarch_register_type.
3861 (microblaze_register_g_packet_guesses): New.
3862 * microblaze-tdep.h (microblaze_reg_num): Add
3863 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3864 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3865 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3866 * features/microblaze-core.xml: New file.
3867 * features/microblaze-stack-protect.xml: New file.
3868 * features/microblaze-with-stack-protect.c: New file.
3869 * features/microblaze-with-stack-protect.xml: New file.
3870 * features/microblaze.xml: New file.
3871 * features/microblaze.c: New file.
3872 * features/Makefile (microblaze-with-stack-protect): Add
3873 microblaze-with-stack-protect microblaze and microblaze-expedite.
3874 * regformats/microblaze-with-stack-protect.dat: New file.
3875 * regformats/microblaze.dat: New file.
3876 * doc/gdb.texinfo (MicroBlaze Features): Added.
3878 2014-07-18 Tom Tromey <tromey@redhat.com>
3880 * exec.c (exec_ops): Now static.
3881 * exec.h (exec_ops): Don't declare.
3883 2014-07-18 Tom Tromey <tromey@redhat.com>
3885 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3886 to find_target_beneath.
3887 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3888 find_target_beneath.
3889 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3891 2014-07-18 Tom Tromey <tromey@redhat.com>
3894 * utils.c (quit): Use target_supports_terminal_ours.
3895 * target.h (target_supports_terminal_ours): Declare.
3896 * target.c (target_supports_delete_record): Don't check
3897 to_delete_record against NULL.
3898 (target_supports_terminal_ours): New function.
3900 2014-07-18 Tom Tromey <tromey@redhat.com>
3903 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3904 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3905 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3906 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3907 * windows-nat.c (windows_xfer_partial): Always delegate.
3908 * record-btrace.c (record_btrace_xfer_partial): Simplify
3910 (record_btrace_fetch_registers, record_btrace_store_registers)
3911 (record_btrace_prepare_to_store, record_btrace_resume)
3912 (record_btrace_wait, record_btrace_find_new_threads)
3913 (record_btrace_thread_alive): Likewise.
3914 * procfs.c (procfs_xfer_partial): Always delegate.
3915 * corelow.c (core_xfer_partial): Always delegate.
3916 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3918 2014-07-18 Tom Tromey <tromey@redhat.com>
3920 * exec.c (exec_make_note_section): Move earlier.
3922 2014-07-17 Doug Evans <dje@google.com>
3925 * maint.c (count_symtabs_and_blocks): Handle NULL
3926 current_program_space.
3927 (report_command_stats): Check global enabled flag in addition to
3928 recorded enabled flag.
3929 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3931 2014-07-16 Pedro Alves <palves@redhat.com>
3933 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3935 2014-07-16 Tom Tromey <tromey@redhat.com>
3937 * target.h (struct target_ops) <to_delete_record>: Reformat
3940 2014-07-16 Tom Tromey <tromey@redhat.com>
3942 * target-delegates.c: Rebuild.
3944 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3946 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3947 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3948 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3949 (avr_pointer_to_address): Likewise.
3950 (avr_address_class_type_flags): New function.
3951 (avr_address_class_type_flags_to_name): Likewise.
3952 (avr_address_class_name_to_type_flags): Likewise.
3953 (avr_gdbarch_init): Set address_class_type_flags,
3954 address_class_type_flags_to_name and
3955 address_class_name_to_type_flags.
3957 2014-07-15 Pedro Alves <palves@redhat.com>
3959 * linux-nat.c (kill_callback): Save errno and work with saved
3962 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3964 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3966 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3968 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3969 breakpoint support correctly.
3971 2014-07-14 Pedro Alves <palves@redhat.com>
3973 * utils.c (prompt_for_continue): Call target_terminal_ours.
3975 2014-07-14 Pedro Alves <palves@redhat.com>
3977 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3978 catch_errors. Don't re-enable stdin or notify observers where,
3980 (fetch_inferior_event_wrapper): Delete.
3982 2014-07-14 Pedro Alves <palves@redhat.com>
3985 * top.c: Include "inf-loop.h".
3986 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3988 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3990 (gdb_readline_wrapper): Store whether the target is async, and
3993 2014-07-14 Pedro Alves <palves@redhat.com>
3996 * top.c (gdb_readline_wrapper_line): Tweak comment.
3997 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3998 the input handler callback.
4000 2014-07-14 Pedro Alves <palves@redhat.com>
4003 * main.c: Include event-top.h.
4004 (handle_command_errors): New function.
4005 (catch_command_errors, catch_command_errors_const): Use it.
4007 2014-07-14 Pedro Alves <palves@redhat.com>
4009 * exceptions.c (catch_command_errors, catch_command_errors_const):
4011 * exceptions.h (catch_command_errors_ftype)
4012 (catch_command_errors_const_ftype): Moved to main.c.
4013 (catch_command_errors, catch_command_errors_const): Delete
4015 * main.c (catch_command_errors_ftype)
4016 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4017 (catch_command_errors, catch_command_errors_const)): Moved here
4018 from exceptions.c and make static.
4020 2014-07-14 Pedro Alves <palves@redhat.com>
4022 * exceptions.c (print_any_exception): Delete.
4023 (catch_exceptions_with_msg): Use exception_print instead of
4024 print_any_exception.
4025 (catch_errors): Use exception_fprintf instead of
4026 print_any_exception.
4027 (catch_command_errors, catch_command_errors_const): Use
4028 exception_print instead of print_any_exception.
4030 2014-07-14 Pedro Alves <palves@redhat.com>
4032 * infcall.c (run_inferior_call): Set 'sync_execution' while
4033 running the inferior call.
4035 2014-07-14 Pedro Alves <palves@redhat.com>
4037 * value.c (value_contents_equal): Delete function.
4038 * value.h (value_contents_equal): Delete declaration.
4040 2014-07-14 Tom Tromey <tromey@redhat.com>
4043 * gdbtypes.c (is_dynamic_type_internal): New function, from
4045 (is_dynamic_type): Rewrite.
4046 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4047 (resolve_dynamic_struct): Likewise.
4048 (resolve_dynamic_type_internal): New function, from
4049 resolve_dynamic_type.
4050 (resolve_dynamic_type): Rewrite.
4052 2014-07-14 Tom Tromey <tromey@redhat.com>
4054 * target.c (target_require_runnable): Also check record_stratum.
4057 2014-07-11 Yao Qi <yao@codesourcery.com>
4059 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4060 thumb_instruction_restores_sp return true.
4062 2014-07-11 Yao Qi <yao@codesourcery.com>
4064 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4065 (thumb_in_function_epilogue_p): Call
4066 thumb_instruction_restores_sp.
4068 2014-07-11 Yao Qi <yao@codesourcery.com>
4070 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4072 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4074 2014-07-11 Gary Benson <gbenson@redhat.com>
4076 * amd64-linux-nat.c (gdbcore.h): Remove include.
4077 (regset.h): Likewise.
4078 (nat/linux-btrace.h): Likewise.
4079 (btrace.h): Likewise.
4080 (gdb_assert.h): Likewise.
4081 (string.h): Likewise.
4082 (sys/uio.h): Likewise.
4083 (sys/debugreg.h): Likewise.
4084 (sys/syscall.h): Likewise.
4085 (sys/procfs.h): Likewise.
4086 (sys/user.h): Likewise.
4087 (asm/ptrace.h): Likewise.
4088 (i386-nat.h): Likewise.
4089 * i386-linux-nat.c (i386-nat.h): Likewise.
4090 (regset.h): Likewise.
4091 (target.h): Likewise.
4092 (linux-nat.h): Likewise.
4093 (nat/linux-btrace.h): Likewise.
4094 (btrace.h): Likewise.
4095 (gdb_assert.h): Likewise.
4096 (string.h): Likewise.
4097 (sys/uio.h): Likewise.
4098 (sys/user.h): Likewise.
4099 (sys/procfs.h): Likewise.
4100 (sys/reg.h): Likewise.
4101 (sys/debugreg.h): Likewise.
4102 (ORIG_EAX): Remove definition.
4104 2014-07-11 Gary Benson <gbenson@redhat.com>
4106 * i386-linux-nat.h: New file.
4107 * x86-linux-nat.h: Likewise.
4108 * x86-linux-nat.c: Likewise.
4109 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4110 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4111 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4112 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4113 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4114 (PTRACE_SETREGSET): Likewise.
4115 (arch_lwp_info): Now in x86-linux-nat.c.
4116 (have_ptrace_getregset): Now in x86-linux-nat.h.
4117 (x86_linux_dr_get): Now in x86-linux-nat.c.
4118 (x86_linux_dr_set): Likewise.
4119 (x86_linux_dr_get_addr): Likewise.
4120 (x86_linux_dr_get_control): Likewise.
4121 (x86_linux_dr_get_status): Likewise.
4122 (update_debug_registers_callback): Likewise.
4123 (x86_linux_dr_set_control): Likewise.
4124 (x86_linux_dr_set_addr): Likewise.
4125 (x86_linux_prepare_to_resume): Likewise.
4126 (x86_linux_new_thread): Likewise.
4127 (x86_linux_new_fork): Likewise.
4128 (x86_linux_get_thread_area): Likewise.
4129 (super_post_startup_inferior): Likewise.
4130 (x86_linux_child_post_startup_inferior): Likewise.
4131 (AMD64_LINUX_USER64_CS): Likewise.
4132 (AMD64_LINUX_X32_DS): Likewise.
4133 (x86_linux_read_description): Likewise.
4134 (x86_linux_enable_btrace): Likewise.
4135 (x86_linux_disable_btrace): Likewise.
4136 (x86_linux_teardown_btrace): Likewise.
4137 (x86_linux_read_btrace): Likewise.
4138 (x86_linux_create_target): Likewise.
4139 (x86_linux_add_target): Likewise.
4140 * i386-linux-nat.c (x86-linux-nat.h): New include.
4141 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4142 (PTRACE_SETREGSET): Likewise.
4143 (arch_lwp_info): Now in x86-linux-nat.c.
4144 (have_ptrace_getregset): Now in x86-linux-nat.h.
4145 (x86_linux_dr_get): Now in x86-linux-nat.c.
4146 (x86_linux_dr_set): Likewise.
4147 (x86_linux_dr_get_addr): Likewise.
4148 (x86_linux_dr_get_control): Likewise.
4149 (x86_linux_dr_get_status): Likewise.
4150 (update_debug_registers_callback): Likewise.
4151 (x86_linux_dr_set_control): Likewise.
4152 (x86_linux_dr_set_addr): Likewise.
4153 (x86_linux_prepare_to_resume): Likewise.
4154 (x86_linux_new_thread): Likewise.
4155 (x86_linux_new_fork): Likewise.
4156 (x86_linux_get_thread_area): Likewise.
4157 (super_post_startup_inferior): Likewise.
4158 (x86_linux_child_post_startup_inferior): Likewise.
4159 (AMD64_LINUX_USER64_CS): Likewise.
4160 (AMD64_LINUX_X32_DS): Likewise.
4161 (x86_linux_read_description): Likewise.
4162 (x86_linux_enable_btrace): Likewise.
4163 (x86_linux_disable_btrace): Likewise.
4164 (x86_linux_teardown_btrace): Likewise.
4165 (x86_linux_read_btrace): Likewise.
4166 (x86_linux_create_target): Likewise.
4167 (x86_linux_add_target): Likewise.
4169 2014-07-11 Gary Benson <gbenson@redhat.com>
4171 * amd64-linux-nat.c: Comment and whitespace changes.
4172 * i386-linux-nat.c: Comment and whitespace changes.
4174 2014-07-11 Gary Benson <gbenson@redhat.com>
4176 * amd64-linux-nat.c (x86_linux_create_target): New function.
4177 (x86_linux_add_target): Likewise.
4178 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4179 * i386-linux-nat.c (x86_linux_create_target): New function.
4180 (x86_linux_add_target): Likewise.
4181 (_initialize_i386_linux_nat): Delegate to the above new functions.
4183 2014-07-11 Gary Benson <gbenson@redhat.com>
4185 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4186 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4187 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4188 (ps_get_thread_area): Delegate to the above.
4190 2014-07-11 Gary Benson <gbenson@redhat.com>
4192 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4193 x86_linux_read_description. All uses updated. amd64-specific
4194 code conditionalized. Conditionalized i386-specific code added.
4195 Redundant cast removed.
4196 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4197 x86_linux_read_description. All uses updated. i386-specific
4198 code conditionalized. Conditionalized amd64-specific code added.
4199 One sizeof replaced with the actual type it is describing.
4201 2014-07-11 Gary Benson <gbenson@redhat.com>
4203 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4204 x86_linux_dr_get. All uses updated.
4205 (amd64_linux_dr_set): Renamed to
4206 x86_linux_dr_set. All uses updated.
4207 (amd64_linux_dr_get_addr): Renamed to
4208 x86_linux_dr_get_addr. All uses updated.
4209 (amd64_linux_dr_get_control): Renamed to
4210 x86_linux_dr_get_control. All uses updated.
4211 (amd64_linux_dr_get_status): Renamed to
4212 x86_linux_dr_get_status. All uses updated.
4213 (amd64_linux_dr_set_control): Renamed to
4214 x86_linux_dr_set_control. All uses updated.
4215 (amd64_linux_dr_set_addr): Renamed to
4216 x86_linux_dr_set_addr. All uses updated.
4217 (amd64_linux_prepare_to_resume): Renamed to
4218 x86_linux_prepare_to_resume. All uses updated.
4219 (amd64_linux_new_thread): Renamed to
4220 x86_linux_new_thread. All uses updated.
4221 (amd64_linux_new_fork): Renamed to
4222 x86_linux_new_fork. All uses updated.
4223 (amd64_linux_child_post_startup_inferior): Renamed to
4224 x86_linux_child_post_startup_inferior. All uses updated.
4225 (amd64_linux_enable_btrace): Renamed to
4226 x86_linux_enable_btrace. All uses updated.
4227 (amd64_linux_disable_btrace): Renamed to
4228 x86_linux_disable_btrace. All uses updated.
4229 (amd64_linux_teardown_btrace): Renamed to
4230 x86_linux_teardown_btrace. All uses updated.
4231 (amd64_linux_read_btrace): Renamed to
4232 x86_linux_read_btrace. All uses updated.
4233 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4234 x86_linux_dr_get. All uses updated.
4235 (i386_linux_dr_set): Renamed to
4236 x86_linux_dr_set. All uses updated.
4237 (i386_linux_dr_get_addr): Renamed to
4238 x86_linux_dr_get_addr. All uses updated.
4239 (i386_linux_dr_get_control): Renamed to
4240 x86_linux_dr_get_control. All uses updated.
4241 (i386_linux_dr_get_status): Renamed to
4242 x86_linux_dr_get_status. All uses updated.
4243 (i386_linux_dr_set_control): Renamed to
4244 x86_linux_dr_set_control. All uses updated.
4245 (i386_linux_dr_set_addr): Renamed to
4246 x86_linux_dr_set_addr. All uses updated.
4247 (i386_linux_prepare_to_resume): Renamed to
4248 x86_linux_prepare_to_resume. All uses updated.
4249 (i386_linux_new_thread): Renamed to
4250 x86_linux_new_thread. All uses updated.
4251 (i386_linux_new_fork): Renamed to
4252 x86_linux_new_fork. All uses updated.
4253 (i386_linux_child_post_startup_inferior): Renamed to
4254 x86_linux_child_post_startup_inferior. All uses updated.
4255 (i386_linux_enable_btrace): Renamed to
4256 x86_linux_enable_btrace. All uses updated.
4257 (i386_linux_disable_btrace): Renamed to
4258 x86_linux_disable_btrace. All uses updated.
4259 (i386_linux_teardown_btrace): Renamed to
4260 x86_linux_teardown_btrace. All uses updated.
4261 (i386_linux_read_btrace): Renamed to
4262 x86_linux_read_btrace. All uses updated.
4264 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4266 * remote.c (extended_remote_post_attach): New function.
4267 (init_extended_remote_ops): Install it as to_post_attach method.
4269 2014-07-09 Pedro Alves <palves@redhat.com>
4271 * infcmd.c (attach_command_post_wait): Don't call
4272 target_terminal_inferior here.
4273 (attach_command): Call it here instead.
4275 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4277 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4279 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4280 from varobj.c, with additional checks.
4281 (c_varobj_ops): Fill in is_path_expr_parent field.
4282 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4283 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4285 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4287 (varobj_default_is_path_expr_parent): New function.
4288 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4289 (varobj_default_is_path_expr_parent): Declare new function.
4291 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4293 * infcmd.c (finish_backward): Turn internal error into normal error.
4295 2014-07-07 Pedro Alves <palves@redhat.com>
4298 * remote.c (async_handle_remote_sigint)
4299 (async_handle_remote_sigint_twice): Call
4300 gdb_call_async_signal_handler instead of
4301 mark_async_signal_handler.
4303 2014-07-07 Tom Tromey <tromey@redhat.com>
4305 * target-delegates.c: Rebuild.
4306 * target.c (target_info_record): Remove.
4307 * record.c (info_record_command): Unconditionally call
4309 * target.h (struct target_ops) <to_info_record>: Use
4310 TARGET_DEFAULT_IGNORE.
4311 (target_info_record): Remove.
4313 2014-07-07 Tom Tromey <tromey@redhat.com>
4315 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4316 TARGET_DEFAULT_NORETURN.
4317 * target.c (generic_tls_error): New function.
4318 (target_translate_tls_address): Don't search target stack.
4319 * target-delegates.c: Rebuild.
4320 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4322 * linux-thread-db.c (thread_db_get_thread_local_address):
4323 Unconditionally call beneath target.
4325 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4327 * cli/cli-logging.c (pop_output_files): Assign targerr to
4330 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4332 * MAINTAINERS (Write After Approval): Update my email address.
4334 2014-07-02 Gary Benson <gbenson@redhat.com>
4336 * proc-service.c (ps_xfer_memory): Update comment.
4337 (ps_pstop): Remove unused function.
4338 (ps_pcontinue): Likewise.
4339 (ps_lstop): Likewise.
4340 (ps_lcontinue): Likewise.
4341 (ps_lgetxregsize): Likewise.
4342 (ps_lgetxregs): Likewise.
4343 (ps_lsetxregs): Likewise.
4344 (ps_plog): Likewise.
4345 (ps_ptread): Likewise.
4346 (ps_ptwrite): Likewise.
4348 2014-07-01 Mark Wielaard <mjw@redhat.com>
4350 * dwarf2read.c (add_array_cv_type): New function.
4351 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4352 (read_tag_volatile_type): Likewise.
4354 2014-07-01 Tom Tromey <tromey@redhat.com>
4356 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4357 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4358 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4359 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4360 * command.h (cmd_cfunc_ftype): Move earlier.
4361 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4362 (add_com, add_info): Use cmd_cfunc_ftype.
4364 2014-06-30 Tom Tromey <tromey@redhat.com>
4366 * symtab.c (operator_chars): Make parameters and return type
4368 (file_matches): Make "files" const.
4369 (struct search_symbols_data) <files>: Now const.
4370 (search_symbols): Make "regexp" and "files" parameters const.
4372 (symtab_symbol_info): Remove cast.
4373 (rbreak_command): Update.
4374 * symtab.h (search_symbols): Update.
4376 2014-06-27 Yao Qi <yao@codesourcery.com>
4378 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4379 Change parameter type to 'struct thread_info *'. Caller
4381 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4383 * dummy-frame.c (struct dummy_frame_id): New.
4384 (dummy_frame_id_eq): New function.
4385 (struct dummy_frame) <id>: Change its type to 'struct
4387 (dummy_frame_push): Add parameter ptid and save it in
4389 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4391 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4393 (lookup_dummy_frame): Change parameter type to 'struct
4394 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4395 instead of frame_id_eq.
4396 (dummy_frame_pop): Add parameter ptid. Callers updated.
4397 Update comments. Compose dummy_frame_id and pass it to
4399 (dummy_frame_discard): Add parameter ptid.
4400 (dummy_frame_sniffer): Compose dummy_frame_id and call
4401 dummy_frame_id_eq instead of frame_id_eq.
4402 (fprint_dummy_frames): Print ptid.
4403 * dummy-frame.h: Remove comments.
4404 (dummy_frame_push): Add ptid in declaration.
4405 (dummy_frame_pop, dummy_frame_discard): Likewise.
4407 2014-06-26 Tom Tromey <tromey@redhat.com>
4409 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4410 * command.h (error_no_arg): Update.
4412 2014-06-26 Tom Tromey <tromey@redhat.com>
4414 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4415 (do_show_command): Make "arg" const.
4416 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4418 2014-06-26 Tom Tromey <tromey@redhat.com>
4420 * record-full.c (record_full_get_bookmark): Make "args" const.
4421 (record_full_goto_bookmark): Make "raw_bookmark" const.
4422 * record.c (record_goto): New function.
4423 (cmd_record_goto): Use it. Now static.
4424 * record.h (record_goto): Declare.
4425 (cmd_record_goto): Remove declaration.
4426 * target-delegates.c: Rebuild.
4427 * target.h (struct target_ops) <to_get_bookmark,
4428 to_goto_bookmark>: Make parameter const.
4430 2014-06-26 Tom Tromey <tromey@redhat.com>
4432 * defs.h (generic_load): Update.
4433 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4434 * monitor.c (monitor_load): Make "args" const.
4435 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4436 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4438 (mips_load): Make "file" const.
4439 * remote-sim.c (gdbsim_load): Make "args" const.
4440 * remote.c (remote_load): Make "name" const.
4441 * symfile.c (generic_load): Make "args" const.
4442 * target-delegates.c: Rebuild.
4443 * target.c (target_load): Make "arg" const.
4444 (debug_to_load): Make "args" const.
4445 * target.h (struct target_ops) <to_load>: Make parameter const.
4446 (target_load): Update.
4448 2014-06-26 Tom Tromey <tromey@redhat.com>
4451 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4452 (dwarf2_physname, read_partial_die)
4453 (guess_partial_die_structure_name, fixup_partial_die)
4454 (guess_full_die_structure_name, anonymous_struct_prefix)
4455 (dwarf2_name): Use per-BFD obstack.
4457 2014-06-26 Yao Qi <yao@codesourcery.com>
4459 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4460 dummyframe and this_id into inner block below.
4462 2014-06-26 Yao Qi <yao@codesourcery.com>
4464 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4465 with "signal_pass[0]" in the initialization of signal_pass.
4467 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4469 * record-btrace.c (record_btrace_generating_corefile)
4470 (record_btrace_prepare_to_generate_core)
4471 (record_btrace_done_generating_core): New.
4472 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4473 (record_btrace_store_registers, record_btrace_prepare_to_store):
4474 Forward request when generating a core file.
4475 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4476 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4477 to_done_generating_core.
4479 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4481 * target.h (target_ops) <to_prepare_to_generate_core>
4482 <to_done_generating_core>: New.
4483 (target_prepare_to_generate_core, target_done_generating_core): New.
4484 * target.c (target_prepare_to_generate_core)
4485 (target_done_generating_core): New.
4486 * target-delegates.c: Regenerate.
4487 * gcore.c: (write_gcore_file): Rename to ...
4488 (write_gcore_file_1): ...this.
4489 (write_gcore_file): Call target_prepare_to_generate_core
4490 and target_done_generating_core.
4492 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4494 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4495 * gcore.c (write_gcore_file): Free memory returned from
4496 make_corefile_notes.
4497 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4498 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4500 2014-06-24 Yao Qi <yao@codesourcery.com>
4502 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4503 (arm_linux_init_abi): Set skip_trampoline_code with
4504 gdbarch_skip_trampoline_code instead of
4505 find_solib_trampoline_target.
4507 2014-06-24 Yao Qi <yao@codesourcery.com>
4509 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4510 arm_skip_bx_reg returns non-zero.
4512 2014-06-24 Yao Qi <yao@codesourcery.com>
4514 * arm-tdep.c (arm_skip_bx_reg): New function.
4515 (arm_skip_stub): Call arm_skip_bx_reg.
4517 2014-06-23 Don Breazeal <donb@codesourcery.com>
4519 * MAINTAINERS: Add myself as write-after-approval maintainer.
4521 2014-06-23 Pedro Alves <palves@redhat.com>
4523 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4524 DR_CONTROL before setting DR0..DR3.
4525 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4526 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4527 bits of DR_CONTROL related to the debug register slot being
4528 disabled. If all slots are vacant, clear local slowdown as well,
4529 and assert DR_CONTROL is 0.
4531 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4533 * python/lib/gdb/command/xmethods.py
4534 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4535 current progspace only if the string "progspace" matches LOCUS_RE.
4537 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4539 Fix --with-system-readline with readline-6.3 patch 5.
4540 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4541 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4544 2014-06-20 Tom Tromey <tromey@redhat.com>
4546 * dwarf2read.c (dw2_get_real_path): Use correct type in
4548 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4550 2014-06-20 Gary Benson <gbenson@redhat.com>
4552 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4553 * common/glibc_thread_db.h: Likewise.
4554 * common/i386-cpuid.h: Likewise.
4555 * common/i386-gcc-cpuid.h: Likewise.
4556 * common/linux-btrace.h: Likewise.
4557 * common/linux-osdata.h: Likewise.
4558 * common/linux-procfs.h: Likewise.
4559 * common/linux-ptrace.h: Likewise.
4560 * common/mips-linux-watch.h: Likewise.
4561 * common/linux-btrace.c: Moved to nat.
4562 * common/linux-osdata.c: Likewise.
4563 * common/linux-procfs.c: Likewise.
4564 * common/linux-ptrace.c: Likewise.
4565 * common/mips-linux-watch.c: Likewise.
4566 * nat/gdb_thread_db.h: Moved from common.
4567 * nat/glibc_thread_db.h: Likewise.
4568 * nat/i386-cpuid.h: Likewise.
4569 * nat/i386-gcc-cpuid.h: Likewise.
4570 * nat/linux-btrace.c: Likewise.
4571 * nat/linux-btrace.h: Likewise.
4572 * nat/linux-osdata.c: Likewise.
4573 * nat/linux-osdata.h: Likewise.
4574 * nat/linux-procfs.c: Likewise.
4575 * nat/linux-procfs.h: Likewise.
4576 * nat/linux-ptrace.c: Likewise.
4577 * nat/linux-ptrace.h: Likewise.
4578 * nat/mips-linux-watch.c: Likewise.
4579 * nat/mips-linux-watch.h: Likewise.
4580 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4581 (object file files): Reordered.
4582 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4583 of glibc_thread_db.h.
4585 2014-06-20 Gary Benson <gbenson@redhat.com>
4587 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4588 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4589 (i386_dr_low): Likewise.
4590 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4591 (i386_dr_low_set_addr): Likewise.
4592 (i386_dr_low_get_addr): Likewise.
4593 (i386_dr_low_can_set_control): Likewise.
4594 (i386_dr_low_set_control): Likewise.
4595 (i386_dr_low_get_control): Likewise.
4596 (i386_dr_low_get_status): Likewise.
4597 (i386_get_debug_register_length): Likewise.
4598 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4599 (i386_dr_low): Likewise.
4600 * nat/i386-dregs.c (i386-low.h): Remove include.
4601 (i386-nat.h): Likewise.
4602 (nat/i386-dregs.h): New include.
4603 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4604 (i386_dr_low_set_addr): Likewise.
4605 (i386_dr_low_get_addr): Likewise.
4606 (i386_dr_low_can_set_control): Likewise.
4607 (i386_dr_low_set_control): Likewise.
4608 (i386_dr_low_get_control): Likewise.
4609 (i386_dr_low_get_status): Likewise.
4610 (i386_get_debug_register_length): Likewise.
4611 (debug_hw_points): Likewise.
4613 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4615 * Makefile.in (SFILES): Add d-exp.y.
4616 (YYFILES): Add d-exp.c.
4617 (YYOBJ): Add d-exp.o.
4618 (local-maintainer-clean): Delete d-exp.c.
4619 * d-exp.y: New file.
4620 * d-lang.h (d_parse): New declaration.
4621 (d_error): New declaration.
4622 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4623 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4624 PREC_ORDER operators.
4625 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4627 2014-06-19 Yao Qi <yao@codesourcery.com>
4629 * gdbthread.h (any_running): Remove the declaration.
4630 * thread.c (any_running): Remove.
4632 2014-06-19 Yao Qi <yao@codesourcery.com>
4634 * gdbthread.h (struct thread_info) <state>: Change its type to
4635 'enum thread_state'. Update comments.
4637 2014-06-19 Pedro Alves <palves@redhat.com>
4639 * gdbthread.h (ALL_THREADS): Delete.
4640 (ALL_NON_EXITED_THREADS): New macro.
4641 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4642 instead of ALL_THREADS.
4643 * infrun.c (find_thread_needs_step_over)
4644 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4645 instead of ALL_THREADS.
4646 * record-btrace.c (record_btrace_open)
4647 (record_btrace_stop_recording, record_btrace_close)
4648 (record_btrace_is_replaying, record_btrace_resume)
4649 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4650 * remote.c (append_pending_thread_resumptions): Likewise.
4651 * thread.c (thread_apply_all_command): Likewise.
4653 2014-06-19 Gary Benson <gbenson@redhat.com>
4655 * i386-nat.c (i386_stopped_by_watchpoint):
4656 Use i386_dr_stopped_by_watchpoint.
4657 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4658 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4660 2014-06-19 Gary Benson <gbenson@redhat.com>
4662 * nat/i386-dregs.c: New file.
4663 * Makefile.in (i386-dregs.o): New rule.
4664 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4665 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4666 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4667 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4668 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4669 * config/i386/go32.mh (NATDEPFILES): Likewise.
4670 * config/i386/linux.mh (NATDEPFILES): Likewise.
4671 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4672 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4673 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4674 * i386-nat.h (debug_hw_points): New declaration.
4675 * i386-nat.c (breakpoint.h): Remove include.
4676 (command.h): Likewise.
4677 (target.h): Likewise.
4678 (gdb_assert.h): Likewise.
4679 (debug_hw_points): Made nonstatic.
4680 (debug_printf): Now in i386-dregs.c.
4681 (TARGET_HAS_DR_LEN_8): Likewise.
4682 (DR_CONTROL_SHIFT): Likewise.
4683 (DR_CONTROL_SIZE): Likewise.
4684 (DR_RW_EXECUTE): Likewise.
4685 (DR_RW_WRITE): Likewise.
4686 (DR_RW_READ): Likewise.
4687 (DR_RW_IORW): Likewise.
4688 (DR_LEN_1): Likewise.
4689 (DR_LEN_2): Likewise.
4690 (DR_LEN_4): Likewise.
4691 (DR_LEN_8): Likewise.
4692 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4693 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4694 (DR_ENABLE_SIZE): Likewise.
4695 (DR_LOCAL_SLOWDOWN): Likewise.
4696 (DR_GLOBAL_SLOWDOWN): Likewise.
4697 (DR_CONTROL_RESERVED): Likewise.
4698 (I386_DR_CONTROL_MASK): Likewise.
4699 (I386_DR_VACANT): Likewise.
4700 (I386_DR_LOCAL_ENABLE): Likewise.
4701 (I386_DR_GLOBAL_ENABLE): Likewise.
4702 (I386_DR_DISABLE): Likewise.
4703 (I386_DR_SET_RW_LEN): Likewise.
4704 (I386_DR_GET_RW_LEN): Likewise.
4705 (I386_DR_WATCH_HIT): Likewise.
4706 (i386_wp_op_t): Likewise.
4707 (i386_show_dr): Likewise.
4708 (i386_length_and_rw_bits): Likewise.
4709 (i386_insert_aligned_watchpoint): Likewise.
4710 (i386_remove_aligned_watchpoint): Likewise.
4711 (i386_handle_nonaligned_watchpoint): Likewise.
4712 (i386_update_inferior_debug_regs): Likewise.
4713 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4714 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4715 (i386_region_ok_for_watchpoint):
4716 Use i386_dr_region_ok_for_watchpoint.
4717 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4719 2014-06-19 Gary Benson <gbenson@redhat.com>
4721 * i386-nat.c (i386_insert_hw_breakpoint): Use
4722 i386_insert_watchpoint.
4723 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4725 2014-06-19 Gary Benson <gbenson@redhat.com>
4727 * i386-nat.c (i386_dr_show): Renamed to
4728 i386_show_dr and made static. All uses updated.
4729 (i386_dr_length_and_rw_bits): Renamed to
4730 i386_length_and_rw_bits and made static.
4732 (i386_dr_insert_aligned_watchpoint): Renamed to
4733 i386_insert_aligned_watchpoint and made static.
4735 (i386_dr_remove_aligned_watchpoint): Renamed to
4736 i386_remove_aligned_watchpoint and made static.
4738 (i386_dr_update_inferior_debug_regs): Renamed to
4739 i386_update_inferior_debug_regs and made static.
4741 * nat/i386-dregs.h (i386_dr_show): Removed.
4742 (i386_dr_length_and_rw_bits): Likewise.
4743 (i386_dr_insert_aligned_watchpoint): Likewise.
4744 (i386_dr_remove_aligned_watchpoint): Likewise.
4745 (i386_dr_update_inferior_debug_regs): Likewise.
4747 2014-06-19 Gary Benson <gbenson@redhat.com>
4749 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4750 * configure: Regenerate.
4751 * config.in: Likewise.
4752 * main.c (signal.h): New include.
4753 (setup_alternate_signal_stack): New function.
4754 (captured_main): Call the above.
4755 * cp-support.c (signal.h): New include.
4756 (catch_demangler_crashes): New flag.
4757 (SIGJMP_BUF): New define.
4758 (SIGSETJMP): Likewise.
4759 (SIGLONGJMP): Likewise.
4760 (gdb_demangle_jmp_buf): New static global.
4761 (gdb_demangle_attempt_core_dump): Likewise.
4762 (gdb_demangle_signal_handler): New function.
4763 (gdb_demangle): If catch_demangler_crashes is set, install the
4764 above signal handler before calling bfd_demangle, and restore
4765 the original signal handler afterwards. Display the offending
4766 symbol and call demangler_warning the first time a segmentation
4768 (_initialize_cp_support): New maint set/show command.
4770 2014-06-19 Gary Benson <gbenson@redhat.com>
4772 * utils.h (resource_limit_kind): New enum.
4773 (can_dump_core): New declaration.
4774 (warn_cant_dump_core): Likewise.
4775 (dump_core): Likewise.
4776 * utils.c (dump_core): Made nonstatic. Added new
4777 parameter "limit_kind".
4778 (can_dump_core): Made nonstatic. Moved printing code to...
4779 (warn_cant_dump_core): New function.
4780 (can_dump_core_warn): Likewise.
4781 (internal_vproblem): Replace calls to can_dump_core with
4782 calls to can_dump_core_warn. Supply new argument to each.
4784 2014-06-19 Gary Benson <gbenson@redhat.com>
4786 * utils.h (demangler_vwarning): New declaration.
4787 (demangler_warning): Likewise.
4788 * utils.c (struct internal_problem)
4789 <user_settable_should_quit>: New field.
4790 <user_settable_should_dump_core>: Likewise
4791 (internal_error_problem): Add values for above new fields.
4792 (internal_warning_problem): Likewise.
4793 (demangler_warning_problem): New static global.
4794 (demangler_vwarning): New function.
4795 (demangler_warning): Likewise.
4796 (add_internal_problem_command): Selectively add commands.
4797 (_initialize_utils): New internal problem command.
4798 * maint.c (maintenance_demangler_warning): New function.
4799 (_initialize_maint_cmds): New command.
4801 2014-06-18 Tom Tromey <tromey@redhat.com>
4803 * f-valprint.c (info_common_command_for_block): Update.
4804 * symtab.h (struct general_symbol_info) <common_block>: Now
4807 2014-06-18 Tom Tromey <tromey@redhat.com>
4809 * symtab.h (struct symtab) <blockvector>: Now const.
4810 * ada-lang.c (ada_add_global_exceptions): Update.
4811 * buildsym.c (augment_type_symtab): Update.
4812 * dwarf2read.c (dw2_lookup_symbol): Update.
4813 * jit.c (finalize_symtab): Update.
4814 * jv-lang.c (add_class_symtab_symbol): Update.
4815 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4817 * objfiles.c (objfile_relocate1): Update.
4818 * psymtab.c (lookup_symbol_aux_psymtabs)
4819 (maintenance_check_psymtabs): Update.
4820 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4822 * spu-tdep.c (spu_catch_start): Update.
4823 * symmisc.c (dump_symtab_1): Update.
4824 * symtab.c (lookup_global_symbol_from_objfile)
4825 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4826 (basic_lookup_transparent_type_quick)
4827 (basic_lookup_transparent_type, find_pc_sect_symtab)
4828 (find_pc_sect_line, search_symbols): Update.
4829 * block.c (find_block_in_blockvector): Make "bl" const.
4830 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4832 (blockvector_contains_pc): Make "bv" const.
4833 (block_for_pc_sect): Update.
4834 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4835 (blockvector_contains_pc): Update.
4836 * breakpoint.c (resolve_sal_pc): Update.
4837 * inline-frame.c (block_starting_point_at): Update.
4839 2014-06-18 Tom Tromey <tromey@redhat.com>
4841 * completer.c (complete_line): Make "line_buffer" const.
4842 * completer.h (complete_line): Update.
4844 2014-06-18 Tom Tromey <tromey@redhat.com>
4846 * symtab.c (add_macro_name): Remove unneeded cast.
4848 2014-06-18 Tom Tromey <tromey@redhat.com>
4850 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4851 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4853 2014-06-18 Tom Tromey <tromey@redhat.com>
4855 * probe.c (info_probes_for_ops): Make "arg" const.
4856 * probe.h (info_probes_for_ops): Update.
4858 2014-06-18 Tom Tromey <tromey@redhat.com>
4860 * varobj.c (varobj_create): Update.
4861 * valops.c (value_of_this): Update.
4862 * tracepoint.c (add_local_symbols, scope_info): Update.
4863 * symtab.h (struct general_symbol_info) <block>: Now const.
4864 * symtab.c (skip_prologue_sal)
4865 (default_make_symbol_completion_list_break_on)
4866 (skip_prologue_using_sal): Update.
4867 * stack.h (iterate_over_block_locals)
4868 (iterate_over_block_local_vars): Update.
4869 * stack.c (print_frame_args): Update.
4870 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4872 (get_selected_block): Make return type const.
4873 * python/py-frame.c (frapy_block): Update.
4874 * python/py-block.c (gdbpy_block_for_pc): Update.
4875 * p-exp.y (%union) <bval>: Now const.
4876 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4877 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4878 * m2-exp.y (%union) <bval>: Now const.
4879 * linespec.c (get_current_search_block): Make return type const.
4880 (create_sals_line_offset, find_label_symbols): Update.
4881 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4883 (block_starting_point_at): Make "block" const.
4884 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4885 (check_exception_resume): Update.
4886 * guile/scm-frame.c (gdbscm_frame_block): Update.
4887 * guile/scm-block.c (gdbscm_lookup_block): Update.
4888 * frame.h (get_frame_block): Update.
4889 (get_selected_block): Make return type const.
4890 * frame.c (frame_id_inner): Update.
4891 * f-valprint.c (info_common_command_for_block)
4892 (info_common_command): Update.
4893 * dwarf2loc.c (dwarf2_find_location_expression)
4894 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4895 (locexpr_describe_location_piece): Update.
4896 * c-exp.y (%union) <bval>: Now const.
4897 * breakpoint.c (resolve_sal_pc): Update.
4898 * blockframe.c (get_frame_block):Make return type const.
4899 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4900 (block_innermost_frame): Update.
4901 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4902 (block_for_pc, block_for_pc_sect): Update.
4903 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4905 (block_for_pc_sect, block_for_pc): Make return type const.
4906 * ax-gdb.c (gen_expr): Update.
4907 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4908 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4909 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4910 (ada_read_var_value): Update.
4911 * ada-exp.y (struct name_info) <block>: Now const.
4913 (block_lookup): Constify.
4915 2014-06-18 Gary Benson <gbenson@redhat.com>
4917 * nat/i386-dregs.h: New file.
4918 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4919 * i386-nat.h (i386-dregs.h): New include.
4920 (DR_FIRSTADDR): Now in i386-dregs.h.
4921 (DR_LASTADDR): Likewise.
4922 (DR_NADDR): Likewise.
4923 (DR_STATUS): Likewise.
4924 (DR_CONTROL): Likewise.
4925 (i386_debug_reg_state): Likewise.
4926 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4928 2014-06-18 Don Breazeal <donb@codesourcery.com>
4930 * breakpoint.c (set_longjmp_breakpoint): Call
4931 momentary_breakpoint_from_master with additional argument.
4932 (set_longjmp_breakpoint_for_call_dummy): Call
4933 momentary_breakpoint_from_master with additional argument.
4934 (set_std_terminate_breakpoint): Call
4935 momentary_breakpoint_from_master with additional argument.
4936 (momentary_breakpoint_from_master): Add argument to function
4937 definition and use it to initialize structure member flag.
4938 (clone_momentary_breakpoint): Call
4939 momentary_breakpoint_from_master with additional argument.
4940 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4941 member flags set in momentary_breakpoint_from_master.
4943 2014-06-18 Gary Benson <gbenson@redhat.com>
4945 * i386-nat.c (i386_show_dr): Renamed to
4946 i386_dr_show and made nonstatic. All uses updated.
4947 (i386_length_and_rw_bits): Renamed to
4948 i386_dr_length_and_rw_bits and made nonstatic.
4950 (i386_insert_aligned_watchpoint): Renamed to
4951 i386_dr_insert_aligned_watchpoint and made nonstatic.
4953 (i386_remove_aligned_watchpoint): Renamed to
4954 i386_dr_remove_aligned_watchpoint and made nonstatic.
4956 (i386_update_inferior_debug_regs): Renamed to
4957 i386_dr_update_inferior_debug_regs and made nonstatic.
4960 2014-06-18 Gary Benson <gbenson@redhat.com>
4962 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4963 (i386_dr_low_can_set_control): Likewise.
4964 (i386_dr_low_set_addr): Likewise.
4965 (i386_dr_low_set_control): Likewise.
4966 (i386_dr_low_get_addr): Likewise.
4967 (i386_dr_low_get_status): Likewise.
4968 (i386_dr_low_get_control): Likewise.
4969 (i386_insert_aligned_watchpoint): Use new macros.
4970 (i386_update_inferior_debug_regs): Likewise.
4971 (i386_stopped_data_address): Likewise.
4973 2014-06-18 Gary Benson <gbenson@redhat.com>
4975 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4976 New parameter. All uses updated.
4978 2014-06-18 Gary Benson <gbenson@redhat.com>
4980 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4983 2014-06-18 Gary Benson <gbenson@redhat.com>
4985 * i386-nat.c (debug_printf): New macro.
4986 (i386_get_debug_register_length): Likewise.
4987 (TARGET_HAS_DR_LEN_8): Use above macro.
4988 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4989 and printf_unfiltered. Use phex to format values.
4991 2014-06-18 Gary Benson <gbenson@redhat.com>
4993 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4996 2014-06-18 Gary Benson <gbenson@redhat.com>
4998 * i386-nat.c: Comment changes.
5000 2014-06-18 Gary Benson <gbenson@redhat.com>
5002 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5004 2014-06-18 Gary Benson <gbenson@redhat.com>
5006 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5007 (i386_insert_aligned_watchpoint): Likewise.
5008 (i386_remove_aligned_watchpoint): Likewise.
5009 (i386_handle_nonaligned_watchpoint): Likewise.
5011 2014-06-18 Gary Benson <gbenson@redhat.com>
5013 * i386-nat.c: Whitespace changes.
5015 2014-06-17 Samuel Bronson <naesten@gmail.com>
5017 * MAINTAINERS: Update Roland McGrath's email address.
5018 Thanks to Sergio Durigan Junior for pointing out that he left
5019 Red Hat a while ago, and giving me a current address.
5021 2014-06-17 Tom Tromey <tromey@redhat.com>
5023 * utils.h (savestring): Remove declaration.
5025 2014-06-17 Tom Tromey <tromey@redhat.com>
5027 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5029 2014-06-16 Keith Seitz <keiths@redhat.com>
5032 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5033 to update the varobj if inferior_ptid is null_ptid.
5035 2014-06-16 Tom Tromey <tromey@redhat.com>
5037 * target.h (struct target_ops) <to_info_proc>: Make parameter
5039 (target_info_proc): Update.
5040 * target.c (target_info_proc): Make "args" const.
5041 * procfs.c (procfs_info_proc): Update.
5042 * linux-tdep.c (linux_info_proc): Update.
5043 (linux_core_info_proc_mappings): Make "args" const.
5044 (linux_core_info_proc): Update.
5045 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5046 * gdbarch.c: Rebuild.
5047 * gdbarch.h: Rebuild.
5048 * corelow.c (core_info_proc): Update.
5050 2014-06-16 Tom Tromey <tromey@redhat.com>
5052 * target.h (struct target_ops) <to_disconnect>: Make parameter
5054 (target_disconnect): Update.
5055 * target.c (target_disconnect): Make "args" const.
5056 * target-delegates.c: Rebuild.
5057 * remote.c (remote_disconnect): Update.
5058 * record.h (record_disconnect): Update.
5059 * record.c (record_disconnect): Update.
5060 * inf-child.c (inf_child_disconnect): Update.
5062 2014-06-16 Tom Tromey <tromey@redhat.com>
5064 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5065 * target.c (debug_to_rcmd, default_rcmd): Update.
5066 * target-delegates.c: Rebuild.
5067 * remote.c (remote_rcmd): Update.
5068 * monitor.c (monitor_rcmd): Update.
5070 2014-06-16 Pedro Alves <palves@redhat.com>
5072 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5073 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5074 have OBJF_SHARED set.
5075 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5076 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5077 instead of OBJF_USERLOADED.
5078 * objfiles.h (OBJF_SHARED): Update comment.
5079 (userloaded_objfile_contains_address_p): Rename to ...
5080 (shared_objfile_contains_address_p): ... this, and update
5082 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5084 (remove_symbol_file_command): Skip objfiles that don't have
5087 2014-06-16 Tom Tromey <tromey@redhat.com>
5089 * minsyms.h (prim_record_minimal_symbol)
5090 (prim_record_minimal_symbol_and_info): Update comments.
5092 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5094 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5095 or --without-guile, according to how GDB was built.
5097 2014-06-13 Tom Tromey <tromey@redhat.com>
5099 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5101 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5103 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5105 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5106 help_list.Pass all_commands, not -1, to help_list.
5107 * cli/cli-dump.c (dump_command, append_command)
5108 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5109 (binary_dump_command, binary_append_command): Pass all_commands,
5110 not -1, to help_list.
5111 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5113 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5115 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5117 * top.c (set_history): Pass all_commands, not -1, to help_list.
5118 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5119 all_commands, not -1, to help_list.
5120 * symfile.c (overlay_command): Pass all_commands, not -1, to
5122 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5124 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5126 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5128 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5129 not -1, to help_list.
5130 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5131 not -1, to help_list.
5132 * maint.c (maintenance_command, maintenance_info_command)
5133 (maintenance_print_command, maintenance_set_cmd): Pass
5134 all_commands, not -1, to help_list.
5135 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5137 * language.c (set_check): Pass all_commands, not -1, to help_list.
5138 * infcmd.c (unset_command): Pass all_commands, not -1, to
5140 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5142 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5144 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5146 * breakpoint.c (save_command): Pass all_commands, not -1, to
5148 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5149 all_commands, not -1, to help_list.
5151 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5153 * regcache.c (struct register_to_invalidate): New structure.
5154 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5156 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5158 2014-06-12 Yao Qi <yao@codesourcery.com>
5160 * varobj.c (varobj_get_num_children): Call
5161 varobj_is_dynamic_p.
5162 (varobj_list_children): Likewise.
5163 (varobj_update): Likewise. Update comments.
5165 2014-06-12 Yao Qi <yao@codesourcery.com>
5167 * varobj.c (varobj_pretty_printed_p): Rename to ...
5168 (varobj_is_dynamic_p): ... this. New function.
5169 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5170 (varobj_is_dynamic_p): Declare.
5171 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5172 (mi_print_value_p, varobj_update_one): Likewise.
5174 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5175 Yao Qi <yao@codesourcery.com>
5177 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5178 (varobj_get_iterator): Wrap up code for pretty-printer by
5179 "#if HAVE_PYTHON" and "#endif".
5180 (update_dynamic_varobj_children): Likewise.
5182 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5183 Yao Qi <yao@codesourcery.com>
5185 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5186 gdb_python_initialized is false. Move some code from varobj.c.
5187 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5188 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5189 (struct varobj_item): Moved to varobj-iter.h".
5190 (varobj_clear_saved_item): New function.
5191 (update_dynamic_varobj_children): Move python-related code to
5193 (free_variable): Call varobj_clear_saved_item and
5196 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5197 Yao Qi <yao@codesourcery.com>
5199 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5200 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5201 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5202 (py-varobj.o): New rule.
5203 * python/py-varobj.c: New file.
5204 * python/python-internal.h (py_varobj_get_iterator): Declare.
5205 * varobj-iter.h: New file.
5206 * varobj.c: Include "varobj-iter.h"
5207 (struct varobj) <child_iter>: Change its type from "PyObject *"
5208 to "struct varobj_iter *".
5209 <saved_item>: Likewise.
5210 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5211 [HAVE_PYTHON] (varobj_get_iterator): New function.
5212 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5213 python-specific code to python/py-varobj.c.
5214 (install_visualizer): Call varobj_iter_delete instead of
5216 * varobj.h (varobj_ensure_python_env): Declare.
5218 2014-06-12 Yao Qi <yao@codesourcery.com>
5220 * varobj.c (struct varobj_item): New structure.
5221 (create_child_with_value): Update declaration.
5222 (varobj_add_child): Replace arguments 'name' and 'value' with
5223 'item'. All callers updated.
5224 (install_dynamic_child): Likewise.
5225 (update_dynamic_varobj_children): Likewise.
5226 (varobj_add_child): Likewise.
5227 (create_child_with_value): Likewise.
5229 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5231 * NEWS: Create a new section for the next release branch.
5232 Rename the section of the current branch, now that it has
5235 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5237 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5238 * version.in: Bump version to 7.8.50.DATE-cvs.
5240 2014-06-11 Pedro Alves <palves@redhat.com>
5243 * ser-mingw.c (net_windows_socket_check_pending): New function.
5244 (net_windows_select_thread): Ignore spurious wakeups. Use
5245 net_windows_socket_check_pending.
5246 (net_windows_wait_handle): Check for pending events with
5247 ioctlsocket, through net_windows_socket_check_pending, instead of
5248 checking the socket's event.
5250 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5252 * python/python-internal.h (gdb_PyObject_GetAttrString)
5253 (gdb_PyObject_HasAttrString): New inline function definitions.
5254 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5255 char * of the second argument to PyObject_GetAttrString.
5257 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5259 * serial.c (serial_write): Fix index of character to be printed
5260 in call to serial_logchar when serial debug traces are enabled.
5262 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5264 * gdbtypes (resolve_dynamic_range): Add function description.
5266 2014-06-09 Pedro Alves <palves@redhat.com>
5268 * linux-nat.c (linux_child_follow_fork): Initialize status with
5269 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5270 inner block. Only pass the signal to PTRACE_DETACH if in pass
5273 2014-06-09 Gary Benson <gbenson@redhat.com>
5275 * common/signals.c (gdb_signal_from_host): Reorder to separate
5276 the always-available ANSI-standard signals from the signals that
5278 (do_gdb_signal_to_host): Likewise.
5279 * proc-events.c (signal_table): Likewise.
5281 2014-06-08 Hui Zhu <hui@codesourcery.com>
5283 * common/linux-ptrace.c (linux_disable_event_reporting): New
5285 * common/linux-ptrace.h (linux_disable_event_reporting): New
5287 * linux-nat.c (linux_child_follow_fork): Do a single step before
5290 2014-06-07 Keith Seitz <keiths@redhat.com>
5294 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5295 from symbol_matches_domain in symtab.c. All local callers
5296 of symbol_matches_domain updated.
5297 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5298 search STRUCT_DOMAIN.
5299 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5300 independently. standard_lookup will do that automatically.
5301 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5302 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5303 (cp_lookup_symbol_in_namespace): Likewise.
5304 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5305 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5306 may return a STRUCT_DOMAIN match.
5307 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5308 * cp-support.c: Include language.h.
5309 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5311 * psymtab.c (match_partial_symbol): Compare the requested
5312 domain with the symbol's domain directly.
5313 (lookup_partial_symbol): Likewise.
5314 * symtab.c (lookup_symbol_in_language): Explain when/why
5315 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5316 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5317 appropriate languages.
5318 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5319 and moved to ada-lang.c
5320 (lookup_block_symbol): Explain that this function only returns
5321 symbol matching the requested DOMAIN.
5322 Compare the requested domain with the symbol's domain directly.
5323 (iterate_over_symbols): Compare the requested domain with the
5324 symbol's domain directly.
5325 * symtab.h (symbol_matches_domain): Remove.
5327 2014-06-06 Doug Evans <xdje42@gmail.com>
5329 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5330 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5331 (gdbscm_guile_version_is_at_least): Declare.
5332 (gdbscm_scm_string_to_int): Declare.
5333 * guile/guile.c (gdbscm_guile_major_version): New global.
5334 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5335 (guile_datadir): New static global.
5336 (gdbscm_guile_data_directory): New function.
5337 (initialize_scheme_side): Update.
5338 (misc_guile_functions): Add guile-data-directory.
5339 (initialize_gdb_module): Fetch guile version number.
5340 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5341 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5342 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5343 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5345 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5346 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5347 * guile/scm-value.c (gdbscm_value_to_string): Only call
5348 scm_port_conversion_strategy if Guile version >= 2.0.6.
5350 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5352 * main.c (print_gdb_help): Add -q and --silent.
5354 2014-06-06 Gary Benson <gbenson@redhat.com>
5356 * common/signals.c: Remove preprocessor conditionals for
5357 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5358 SIGSEGV and SIGTERM.
5359 * proc-events.c: Likewise.
5361 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5363 * symfile.c (symfile_free_objfile): Remove restriction to
5365 * symfile-mem.c (symbol_file_add_from_memory): Call
5366 add_target_sections_of_objfile.
5368 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5370 * guile/scm-value.c (gdbscm_history_append_x): Use
5371 'vlscm_get_value_smob_arg_unsafe' instead of
5372 'vlscm_scm_to_value'.
5374 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5377 * utils.c (printchar): Don't escape at all if quoter is NUL.
5378 Update function documentation to clarify effect of parameter
5380 * remote.c (escape_buffer): Pass '\\' as the quoter to
5381 fputstrn_unfiltered.
5382 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5383 generate the output.
5384 (mi_solib_unloaded): Same.
5386 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5388 * development.sh: Delete.
5389 * Makefile.in (config.status): Adjust dependency on development.sh.
5390 * configure.ac: Adjust development.sh source call.
5391 * configure: Regenerate.
5393 2014-06-04 Doug Evans <xdje42@gmail.com>
5395 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5396 is_scheme_bkpt, spec.
5397 (bpscm_make_breakpoint_smob): Initialize new members.
5398 (gdbscm_create_breakpoint_x): Split into two ...
5399 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5400 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5401 (scheme_function breakpoint_functions): Update.
5402 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5403 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5404 register-breakpoint!.
5406 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5409 * mem-break.c (z_type_supported): Return zero if
5410 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5412 2014-06-04 Tom Tromey <tromey@redhat.com>
5414 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5415 value_from_contents_and_address_unresolved.
5416 (ada_template_to_fixed_record_type_1): Likewise.
5417 (ada_which_variant_applies): Likewise.
5418 * value.h (value_from_contents_and_address_unresolved): Declare.
5419 * value.c (value_from_contents_and_address_unresolved): New
5421 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5422 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5423 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5425 2014-06-04 Tom Tromey <tromey@redhat.com>
5427 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5429 2014-06-04 Tom Tromey <tromey@redhat.com>
5431 * procfs.c (procfs_attach): Make "args" const.
5432 * windows-nat.c (windows_attach): Make "args" const.
5433 * nto-procfs.c (procfs_attach): Make "args" const.
5434 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5435 * go32-nat.c (go32_attach): Make "args" const.
5436 * gnu-nat.c (gnu_attach): Make "args" const.
5437 * darwin-nat.c (darwin_attach): Make "args" const.
5438 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5439 * linux-nat.c (linux_nat_attach): Make "args" const.
5440 * remote.c (extended_remote_attach_1, extended_remote_attach):
5442 * target.h (struct target_ops) <to_attach>: Make "args" const.
5443 (find_default_attach): Likewise.
5444 * utils.c (parse_pid_to_attach): Make "args" const.
5445 * utils.h (parse_pid_to_attach): Update.
5447 2014-06-04 Tom Tromey <tromey@redhat.com>
5449 * target-delegates.c: Rebuild.
5450 * target.c (default_thread_address_space): New function.
5451 (target_thread_address_space): Simplify.
5452 * target.h (struct target_ops) <to_thread_address_space>: Add
5453 TARGET_DEFAULT_FUNC.
5455 2014-06-04 Doug Evans <xdje42@gmail.com>
5457 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5459 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5461 * record-btrace.c: Include event-loop.h and inf-loop.h.
5462 (record_btrace_resume_exec_dir)
5463 (record_btrace_async_inferior_event_handler)
5464 (record_btrace_handle_async_inferior_event): New.
5465 (record_btrace_open): Create async event handler.
5466 (record_btrace_close): Delete async event handler.
5467 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5468 Mark async event handler.
5469 (record_btrace_execution_direction): New.
5470 (init_record_btrace_ops): Initialize to_execution_direction.
5472 2014-06-03 Doug Evans <xdje42@gmail.com>
5474 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5475 (gdbscm_make_parameter): Ditto.
5477 2014-06-03 Doug Evans <dje@google.com>
5479 * exec.c (exec_close_1): Call clear_section_table instead of
5480 resize_section_table.
5481 (clear_section_table): New function.
5482 (resize_section_table): Make static. Rename arg num_added to
5484 * exec.h (clear_section_table): Declare.
5485 (resize_section_table): Delete.
5486 * progspace.c (release_program_space): Call clear_section_table
5487 instead of resize_section_table.
5489 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5491 * NEWS (Python Scripting): Add entry about the new xmethods
5494 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5496 * python/py-xmethods.c: New file.
5497 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5498 (objfpy_dealloc): XDECREF on the new xmethods field.
5499 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5501 (objfpy_get_xmethods): New function.
5502 (objfile_getset): New entry 'xmethods'.
5503 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5504 (pspy_dealloc): XDECREF on the new xmethods field.
5505 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5507 (pspy_get_xmethods): New function.
5508 (pspace_getset): New entry 'xmethods'.
5509 * python/python-internal.h: Add declarations for new functions.
5510 * python/python.c (_initialize_python): Invoke
5511 gdbpy_initialize_xmethods.
5512 * python/lib/gdb/__init__.py (xmethods): New
5514 * python/lib/gdb/xmethod.py: New file.
5515 * python/lib/gdb/command/xmethods.py: New file.
5517 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5519 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5520 best match method returned by find_overload_match is an xmethod.
5521 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5522 the best matching operator returned by find_overload_match is an
5524 * valops.c: #include "extension.h".
5525 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5526 Return void. The list of matching source methods is returned in
5527 "fn_list" and a vector of matching debug method workers is
5528 returned in "xm_worker_vec". Update all callers.
5529 (value_find_oload_method_list): Likewise.
5530 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5531 non-NULL, then the index of the best matching method in this
5532 vector is returned. Update all callers.
5533 (find_overload_match): Include xmethods while performing overload
5536 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5538 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5539 * extension-priv.h (struct extension_language_ops): Add the
5541 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5542 get_matching_xmethod_workers, get_xmethod_argtypes,
5543 invoke_xmethod, free_xmethod_worker,
5544 free_xmethod_worker_vec): New functions.
5545 * extension.h: #include "common/vec.h".
5546 New function declarations.
5547 (struct xmethod_worker): New struct.
5548 (VEC (xmethod_worker_ptr)): New vector type.
5549 (xmethod_worker_ptr): New typedef.
5550 (xmethod_worker_vec): Likewise.
5551 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5553 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5554 (struct builtin_type): New field "xmethod".
5555 * valarith.c (value_ptradd): Assert that the value argument is not
5557 * valops.c (value_must_coerce_to_target): Return 0 for
5558 lval_xcallable values.
5559 * value.c (struct value): New field XM_WORKER in the field
5561 (value_address, value_raw_address): Return 0 for lval_xcallable
5563 (set_value_address): Assert that the value is not an
5565 (value_free): Free the associated xmethod worker when freeing
5566 lval_xcallable values.
5567 (set_value_component_location): Assert that the WHOLE value is not
5569 (value_of_xmethod, call_xmethod): New functions.
5570 * value.h: Declare "struct xmethod_worker".
5571 Declare new functions value_of_xmethod, call_xmethod.
5573 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5574 Pedro Alves <palves@redhat.com>
5576 PR breakpoints/17000
5577 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5578 New function, extracted from software_breakpoint_inserted_here_p.
5579 (software_breakpoint_inserted_here_p): Replace factored out code
5580 by call to find_non_raw_software_breakpoint_inserted_here.
5581 (bp_target_info_copy_insertion_state): New function.
5582 (bkpt_insert_location): Handle the case of a single-step
5583 breakpoint already inserted at the same address.
5584 (bkpt_remove_location): Handle the case of a single-step
5585 breakpoint still inserted at the same address.
5586 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5587 breakpoint already inserted at the same address.
5588 (deprecated_remove_raw_breakpoint): Handle the case of a
5589 non-raw breakpoint still inserted at the same address.
5590 (find_single_step_breakpoint): New function, extracted from
5591 single_step_breakpoint_inserted_here_p.
5592 (find_single_step_breakpoint): New function,
5593 factored out from single_step_breakpoint_inserted_here_p.
5594 (single_step_breakpoint_inserted_here_p): Reimplement.
5596 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5598 Pushed by Joel Brobecker <brobecker@adacore.com>
5599 * source.c (show_substitute_path_command): Fix display of matching
5602 2014-06-03 Gary Benson <gbenson@redhat.com>
5604 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5606 2014-06-02 Doug Evans <xdje42@gmail.com>
5608 Add parameter support for Guile.
5609 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5610 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5611 (scm-param.o): New rule.
5612 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5613 (gdbscm_misc_error): Declare.
5614 (gdbscm_canonicalize_command_name): Declare.
5615 (gdbscm_scm_to_host_string): Declare.
5616 (gdbscm_scm_from_host_string): Declare.
5617 (gdbscm_initialize_parameters): Declare.
5618 * guile/guile.c (initialize_gdb_module): Call
5619 gdbscm_initialize_parameters.
5620 * guile/lib/gdb.scm: Export parameter symbols.
5621 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5622 cmdscm_canonicalize_name and made public. All callers updated.
5623 * guile/scm-exception.c (gdbscm_misc_error): New function.
5624 * guile/scm-param.c: New file.
5625 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5626 (gdbscm_scm_to_host_string): New function.
5627 (gdbscm_scm_from_host_string): New function.
5628 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5630 2014-06-02 Doug Evans <xdje42@gmail.com>
5632 Add command support for Guile.
5633 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5634 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5635 (scm-cmd.o): New rule.
5636 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5637 (gdbscm_user_error_p): Declare.
5638 (gdbscm_parse_command_name): Declare.
5639 (gdbscm_valid_command_class_p): Declare.
5640 (gdbscm_initialize_commands): Declare.
5641 * guile/guile.c (initialize_gdb_module): Call
5642 gdbscm_initialize_commands.
5643 * guile/lib/gdb.scm: Export command symbols.
5644 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5645 (throw-user-error): New function.
5646 * guile/scm-cmd.c: New file.
5647 * guile/scm-exception.c (user_error_symbol): New static global.
5648 (gdbscm_user_error_p): New function.
5649 (gdbscm_initialize_exceptions): Set user_error_symbol.
5650 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5652 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5654 * top.c (command_loop): Handle comments here...
5655 (command_line_input): ... not here.
5657 2014-06-02 Doug Evans <xdje42@gmail.com>
5659 Add progspace support for Guile.
5660 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5661 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5662 (scm-progspace.o): New rule.
5663 * guile/guile-internal.h (pspace_smob): New typedef.
5664 (psscm_pspace_smob_pretty_printers): Declare.
5665 (psscm_pspace_smob_from_pspace): Declare.
5666 (psscm_scm_from_pspace): Declare.
5667 * guile/guile.c (initialize_gdb_module): Call
5668 gdbscm_initialize_pspaces.
5669 * guile/lib/gdb.scm: Export progspace symbols.
5670 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5672 (append-pretty-printer!): Ditto.
5673 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5675 * guile/scm-progspace.c: New file.
5677 2014-06-03 Alan Modra <amodra@gmail.com>
5679 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5680 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5682 2014-06-02 Doug Evans <dje@google.com>
5684 Add support for skeletonless type units.
5685 * dwarf2read.c (struct dwarf2_per_objfile): New member
5686 n_allocated_type_units.
5687 (struct dwarf2_per_objfile) <tu_stats>: New member
5688 nr_all_type_units_reallocs.
5689 (create_signatured_type_table_from_index): Initialize
5690 n_allocated_type_units
5691 (create_all_type_units): Ditto.
5692 (add_type_unit): Move up in file. New arg slot.
5693 All callers updated. Increase space for all_type_units more
5695 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5696 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5697 (lookup_dwp_signatured_type): Ditto.
5698 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5699 All callers updated.
5700 (build_type_psymtabs_1): Leave type_unit_groups as
5701 NULL if no TUs present.
5702 (print_tu_stats): New function.
5703 (process_skeletonless_type_unit): New function.
5704 (process_dwo_file_for_skeletonless_type_units): New
5706 (process_skeletonless_type_units): New function.
5707 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5708 Call print tu_stats if debugging enabled.
5710 2014-06-02 Pedro Alves <palves@redhat.com>
5712 * breakpoint.c (build_target_command_list): Don't build a command
5713 list if we have any duplicate location that isn't a dprintf.
5715 2014-06-02 Pedro Alves <palves@redhat.com>
5717 * breakpoint.c (dprintf_breakpoint_hit): New function.
5718 (initialize_breakpoint_ops): Install it as dprintf's
5719 breakpoint_hit method.
5721 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5723 * source.c (substitute_path_rule_matches): Simplify using
5724 filename_ncmp instead of FILENAME_CMP.
5726 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5728 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5730 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5732 * configure.ac: When Guile is available, check for the
5733 availability of 'scm_new_smob'.
5734 * configure, config.h.in: Regenerate.
5735 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5738 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5740 * frame.c (struct frame_info): Add stop_string field.
5741 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5742 (get_prev_frame_always): Old content moved into
5743 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5744 TRY_CATCH, handle MEMORY_ERROR exceptions.
5745 (frame_stop_reason_string): New function definition.
5746 * frame.h (unwind_stop_reason_to_string): Extend comment to
5747 mention frame_stop_reason_string.
5748 (frame_stop_reason_string): New function declaration.
5749 * stack.c (frame_info): Switch to frame_stop_reason_string.
5750 (backtrace_command_1): Switch to frame_stop_reason_string.
5751 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5752 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5753 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5755 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5757 * frame.c (frame_stop_reason_string): Rename to ...
5758 (unwind_stop_reason_to_string): this.
5759 * frame.h (frame_stop_reason_string): Rename to ...
5760 (unwind_stop_reason_to_string): this.
5761 * stack.c (frame_info): Update call to frame_stop_reason_string.
5762 (backtrace_command_1): Likewise.
5763 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5764 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5766 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5768 * frame.c (remove_prev_frame): New function.
5769 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5772 2014-05-29 Pedro Alves <palves@redhat.com>
5774 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5775 and make it const. When a single-step decays to a continue,
5776 clear 'step', not 'hw_step'. Pass whether the caller wanted
5777 to step to user_visible_resume_ptid, not what we ask the
5780 2014-05-29 Pedro Alves <palves@redhat.com>
5782 * infrun.c (process_event_stop_test, handle_step_into_function)
5783 (handle_step_into_function_backward): Adjust.
5784 Don't set the even thread's stop_step and call stop_waiting before
5785 calling end_stepping_range. Instead do that ...
5786 (end_stepping_range): ... here. Take an ecs pointer parameter.
5788 2014-05-29 Pedro Alves <palves@redhat.com>
5790 * infrun.c (stop_stepping): Rename to ...
5791 (stop_waiting): ... this.
5792 (proceed): Update comment.
5793 (process_event_stop_test, handle_inferior_event)
5794 (handle_signal_stop, handle_step_into_function)
5795 (handle_step_into_function_backward): Update.
5797 2014-05-29 Pedro Alves <palves@redhat.com>
5799 * infcall.c (run_inferior_call): Don't check whether the current
5800 thread is running after the proceed call.
5802 2014-05-29 Pedro Alves <palves@redhat.com>
5803 Tom Tromey <tromey@redhat.com>
5805 * NEWS: Mention "maint set target-async", "set mi-async", and that
5806 background execution commands are now always available.
5807 * target.h (target_async_permitted): Update comment.
5808 * target.c (target_async_permitted, target_async_permitted_1):
5810 (set_target_async_command): Rename to ...
5811 (maint_set_target_async_command): ... this.
5812 (show_target_async_command): Rename to ...
5813 (maint_show_target_async_command): ... this.
5814 (_initialize_target): Adjust.
5815 * infcmd.c (prepare_execution_command): Make extern.
5816 * inferior.h (prepare_execution_command): Declare.
5817 * infrun.c (set_observer_mode): Leave target async alone.
5818 * mi/mi-interp.c (mi_interpreter_init): Install
5819 mi_on_sync_execution_done as sync_execution_done observer.
5820 (mi_on_sync_execution_done): New function.
5821 (mi_execute_command_input_handler): Don't print the prompt if we
5822 just started a synchronous command with an async target.
5823 (mi_on_resume): Check sync_execution before printing prompt.
5824 * mi/mi-main.h (mi_async_p): Declare.
5825 * mi/mi-main.c: Include gdbcmd.h.
5826 (mi_async_p): New function.
5827 (mi_async, mi_async_1): New globals.
5828 (set_mi_async_command, show_mi_async_command, mi_async): New
5830 (exec_continue): Call prepare_execution_command.
5831 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5832 (mi_execute_async_cli_command): Use mi_async_p.
5833 (_initialize_mi_main): Install "set mi-async". Make
5834 "target-async" a deprecated alias.
5836 2014-05-29 Pedro Alves <palves@redhat.com>
5838 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5839 (_initialize_cli_interp): Adjust.
5840 * event-loop.c: Include "observer.h".
5841 (start_event_loop): Notify 'command_error' observers instead of
5842 calling display_gdb_prompt. Remove FIXME comment.
5843 * event-top.c (display_gdb_prompt): Remove call into the
5845 * inf-loop.c: Include "observer.h".
5846 (inferior_event_handler): Notify 'command_error' observers instead
5847 of calling display_gdb_prompt.
5848 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5849 observers instead of calling display_gdb_prompt.
5850 * interps.c (interp_set): Don't call display_gdb_prompt.
5851 (current_interp_display_prompt_p): Delete.
5852 * interps.h (interp_prompt_p): Delete declaration.
5853 (interp_prompt_p_ftype): Delete.
5854 (struct interp_procs) <prompt_proc_p>: Delete field.
5855 (current_interp_display_prompt_p): Delete declaration.
5856 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5857 (_initialize_mi_interp): Adjust.
5858 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5859 'command_error' observers.
5860 (tui_on_sync_execution_done, tui_on_command_error): New
5862 (tui_display_prompt_p): Delete.
5863 (_initialize_tui_interp): Adjust.
5865 2014-05-29 Pedro Alves <palves@redhat.com>
5868 * cli/cli-interp.c: Include infrun.h and observer.h.
5869 (cli_uiout, cli_interp): New globals.
5870 (cli_on_signal_received, cli_on_end_stepping_range)
5871 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5873 (cli_interpreter_init): Install them as 'end_stepping_range',
5874 'signal_received' 'signal_exited', 'exited' and 'no_history'
5876 (_initialize_cli_interp): Remove cli_interp local.
5877 * infrun.c (handle_inferior_event): Call the several stop reason
5878 observers instead of printing the stop reason directly.
5879 (end_stepping_range): New function.
5880 (print_end_stepping_range_reason, print_signal_exited_reason)
5881 (print_exited_reason, print_signal_received_reason)
5882 (print_no_history_reason): Make static, and add an uiout
5883 parameter. Print to that instead of to CURRENT_UIOUT.
5884 * infrun.h (print_end_stepping_range_reason)
5885 (print_signal_exited_reason, print_exited_reason)
5886 (print_signal_received_reason print_no_history_reason): New
5888 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5890 <cli_uiout>: New field.
5891 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5892 uiout for CLI output. Install 'signal_received',
5893 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5895 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5896 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5897 (mi_on_no_history): New functions.
5898 (ui_out_free_cleanup): Delete function.
5899 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5900 instead use the one already stored in the MI interpreter data.
5901 (mi_ui_out): Adjust.
5902 * tui/tui-interp.c: Include infrun.h and observer.h.
5903 (tui_interp): New global.
5904 (tui_on_signal_received, tui_on_end_stepping_range)
5905 (tui_on_signal_exited, tui_on_exited)
5906 (tui_on_no_history): New functions.
5907 (tui_init): Install them as 'end_stepping_range',
5908 'signal_received' 'signal_exited', 'exited' and 'no_history'
5910 (_initialize_tui_interp): Delete tui_interp local.
5912 2014-05-29 Pedro Alves <palves@redhat.com>
5915 * linux-nat.c (linux_nat_resume_callback): Rename the second
5916 parameter to 'except'. Skip LP if it points to EXCEPT.
5917 (linux_nat_resume): Don't mark the event lwp as not stopped
5918 before resuming sibling lwps. Instead ask
5919 linux_nat_resume_callback to skip the event lwp. Mark it as not
5920 stopped after actually resuming it.
5921 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5923 (wait_lwp): Mark the lwp as stopped here.
5924 (stop_wait_callback): Mark the lwp as not stopped right after
5925 resuming it. Don't mark lwps as stopped here.
5926 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5927 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5929 2014-05-29 Pedro Alves <palves@redhat.com>
5932 * infrun.c (resume): Determine how much to resume depending on
5933 whether the caller wanted a step, not whether we can hardware step
5934 the target. Mark all threads that we intend to run as running,
5935 unless we're calling an inferior function.
5936 (normal_stop): If the thread is running an infcall, don't finish
5938 * target.c (target_resume): Don't mark threads as running here.
5940 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5942 * serial.c (_initialize_serial): Remove support for
5943 the "set remotebaud" and "show remotebaud" commands.
5944 * NEWS: Add entry documenting the removal of that command.
5946 2014-05-28 Yao Qi <yao@codesourcery.com>
5948 * charset.c: Fix typo in comments.
5950 2014-05-27 Gary Benson <gbenson@redhat.com>
5952 * utils.c (internal_vproblem): Prompt for a bug report.
5954 2014-05-26 Andy Wingo <wingo@igalia.com>
5956 * guile/scm-arch.c (arscm_mark_arch_smob):
5957 * guile/scm-block.c (bkscm_mark_block_smob)
5958 (bkscm_mark_block_syms_progress_smob):
5959 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5960 * guile/scm-exception.c (exscm_mark_exception_smob):
5961 * guile/scm-frame.c (frscm_mark_frame_smob):
5962 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5963 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5964 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5965 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5966 (ppscm_mark_pretty_printer_worker_smob):
5967 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5968 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5969 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5970 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5972 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5975 2014-05-26 Andy Wingo <wingo@igalia.com>
5976 Doug Evans <xdje42@gmail.com>
5978 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5979 empty_base_class. All uses updated.
5980 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5981 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5983 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5984 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5985 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5986 (gdbscm_gsmob_has_property_p, add_property_name)
5987 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5988 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5989 (gdb-object-has-property?, gdb-object-properties): Remove.
5990 (gdb-object-kind): Renamed from gsmob-kind.
5992 2014-05-26 Andy Wingo <wingo@igalia.com>
5994 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5995 * configure: Regenerate.
5997 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5999 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6001 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6003 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6004 (replay_memory_access_read_only, replay_memory_access_read_write)
6005 (replay_memory_access_types, replay_memory_access)
6006 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6007 (cmd_set_record_btrace, cmd_show_record_btrace)
6008 (cmd_show_replay_memory_access): New.
6009 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6010 (record_btrace_remove_breakpoint): Replace
6011 record_btrace_allow_memory_access with replay_memory_access.
6012 (_initialize_record_btrace): Add commands.
6013 * NEWS: Announce it.
6015 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6017 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6019 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6021 * MAINTAINERS (Write After Approval): Move self back from
6024 2014-05-22 Pedro Alves <palves@redhat.com>
6026 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6027 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6028 (disable_randomization, enum exec_direction_kind)
6029 (execution_direction, stop_registers, start_remote)
6030 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6031 (wait_for_inferior, normal_stop, get_last_target_status)
6032 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6033 (insert_step_resume_breakpoint_at_sal)
6034 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6035 (set_step_info, print_stop_event, signal_stop_state)
6036 (signal_print_state, signal_pass_state, signal_stop_update)
6037 (signal_print_update, signal_pass_update)
6038 (update_signals_program_target, clear_exit_convenience_vars)
6039 (displaced_step_dump_bytes, update_observer_mode)
6040 (signal_catch_update, gdb_signal_from_command): Move
6042 * infrun.h: ... to this new file.
6043 * amd64-tdep.c: Include infrun.h.
6044 * annotate.c: Include infrun.h.
6045 * arch-utils.c: Include infrun.h.
6046 * arm-linux-tdep.c: Include infrun.h.
6047 * arm-tdep.c: Include infrun.h.
6048 * break-catch-sig.c: Include infrun.h.
6049 * breakpoint.c: Include infrun.h.
6050 * common/agent.c: Include infrun.h instead of inferior.h.
6051 * corelow.c: Include infrun.h.
6052 * event-top.c: Include infrun.h.
6053 * go32-nat.c: Include infrun.h.
6054 * i386-tdep.c: Include infrun.h.
6055 * inf-loop.c: Include infrun.h.
6056 * infcall.c: Include infrun.h.
6057 * infcmd.c: Include infrun.h.
6058 * infrun.c: Include infrun.h.
6059 * linux-fork.c: Include infrun.h.
6060 * linux-nat.c: Include infrun.h.
6061 * linux-thread-db.c: Include infrun.h.
6062 * monitor.c: Include infrun.h.
6063 * nto-tdep.c: Include infrun.h.
6064 * procfs.c: Include infrun.h.
6065 * record-btrace.c: Include infrun.h.
6066 * record-full.c: Include infrun.h.
6067 * remote-m32r-sdi.c: Include infrun.h.
6068 * remote-mips.c: Include infrun.h.
6069 * remote-notif.c: Include infrun.h.
6070 * remote-sim.c: Include infrun.h.
6071 * remote.c: Include infrun.h.
6072 * reverse.c: Include infrun.h.
6073 * rs6000-tdep.c: Include infrun.h.
6074 * s390-linux-tdep.c: Include infrun.h.
6075 * solib-irix.c: Include infrun.h.
6076 * solib-osf.c: Include infrun.h.
6077 * solib-svr4.c: Include infrun.h.
6078 * target.c: Include infrun.h.
6079 * top.c: Include infrun.h.
6080 * windows-nat.c: Include infrun.h.
6081 * mi/mi-interp.c: Include infrun.h.
6082 * mi/mi-main.c: Include infrun.h.
6083 * python/py-threadevent.c: Include infrun.h.
6085 2014-05-22 Pedro Alves <palves@redhat.com>
6087 * infrun.c (handle_inferior_event): Store the exit code for
6088 --return-child-result here, instead of ...
6089 (print_exited_reason): ... here.
6091 2014-05-21 Pedro Alves <palves@redhat.com>
6094 * gdbthread.h (struct thread_control_state): New field
6096 * infrun.c (follow_fork): Copy the new thread control field to the
6098 (clear_proceed_status_thread): Clear the new thread control field.
6099 (proceed): Set the new thread control field.
6100 * interps.h (command_interp): Declare.
6101 * interps.c (command_interpreter): New global.
6102 (command_interp): New function.
6103 (interp_exec): Set `command_interpreter' while here.
6104 * cli-out.c (cli_uiout_dtor): New function.
6105 (cli_ui_out_impl): Install it.
6106 * mi/mi-interp.c: Include cli-out.h.
6107 (mi_cmd_interpreter_exec): Add comment.
6108 (restore_current_uiout_cleanup): New function.
6109 (ui_out_free_cleanup): New function.
6110 (mi_on_normal_stop): If finishing an execution command started by
6111 a CLI command, or any kind of breakpoint-like event triggered,
6112 print the stop event to the output (CLI) stream.
6113 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6115 2014-05-21 Pedro Alves <palves@redhat.com>
6117 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6118 current source line having changed.
6119 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6120 * infrun.c (normal_stop): Adjust call to
6121 set_current_sal_from_frame.
6122 * source.c (clear_lines_listed_range): New function.
6123 (set_current_source_symtab_and_line, identify_source_line): Clear
6124 the lines listed range.
6125 (line_info): Handle the first "info line" after the current source
6126 line having changed.
6127 * stack.c (print_stack_frame): Remove center handling.
6128 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6131 2014-05-21 Pedro Alves <palves@redhat.com>
6133 * inf-child.c (inf_child_mourn_inferior): New function.
6134 * inf-child.h (inf_child_mourn_inferior): New declaration.
6135 * darwin-nat.c (darwin_mourn_inferior): Use
6136 inf_child_mourn_inferior.
6137 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6138 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6139 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6140 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6141 * windows-nat.c (windows_mourn_inferior): Likewise.
6143 2014-05-21 Doug Evans <xdje42@gmail.com>
6145 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6147 2014-05-21 Doug Evans <xdje42@gmail.com>
6149 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6150 (gdbscm_out_of_range_error): Ditto.
6151 (gdbscm_memory_error): Ditto.
6152 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6153 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6154 (gdbscm_out_of_range_error): Update.
6155 (gdbscm_memory_error): Update.
6156 (gdbscm_scm_to_target_string_unsafe): Delete.
6158 2014-05-21 Pedro Alves <palves@redhat.com>
6160 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6162 (inf_child_open_target): New function.
6163 (inf_child_open): Use inf_child_open_target to push the target
6164 instead of erroring out.
6165 (inf_child_disconnect, inf_child_close)
6166 (inf_child_maybe_unpush_target): New functions.
6167 (inf_child_target): Install inf_child_disconnect and
6168 inf_child_close. Store a pointer to the returned object.
6169 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6171 * target.c (auto_connect_native_target): New global.
6172 (show_default_run_target): New function.
6173 (find_default_run_target): Return NULL if automatically connecting
6174 to the native target is disabled.
6175 (_initialize_target): Install set/show auto-connect-native-target.
6176 * NEWS: Mention "set auto-connect-native-target", and "target
6178 * linux-nat.c (super_close): New global.
6179 (linux_nat_close): Call super_close.
6180 (linux_nat_add_target): Store a pointer to the base class's
6182 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6183 inf_child_maybe_unpush.
6184 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6186 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6187 the inferior. Use inf_child_maybe_unpush_target.
6188 (inf_ttrace_attach): Don't push the target if it is already
6190 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6191 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6192 after mourning the inferior. Use inf_child_maybe_unpush_target.
6193 (darwin_attach_pid): Don't push the target if it is already
6195 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6196 mourning the inferior. Use inf_child_maybe_unpush_target.
6197 (gnu_detach): Use inf_child_maybe_unpush_target.
6198 * go32-nat.c (go32_create_inferior): Don't push the target if it
6200 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6201 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6202 (procfs_open): Rename to ...
6203 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6204 comments. Can target_preopen before changing node. Call
6205 inf_child_open_target to push the target explicitly.
6206 (procfs_attach): Don't push the target if it is already pushed.
6207 (procfs_detach): Use inf_child_maybe_unpush_target.
6208 (procfs_create_inferior): Don't push the target if it is already
6210 (nto_native_ops): New global.
6211 (procfs_open): Reimplement.
6212 (procfs_native_open): New function.
6213 (init_procfs_targets): Install procfs_native_open as to_open of
6214 "target native". Store a pointer to the "native" target in
6216 * procfs.c (procfs_attach): Don't push the target if it is already
6218 (procfs_detach): Use inf_child_maybe_unpush_target.
6219 (procfs_mourn_inferior): Only unpush the target after mourning the
6220 inferior. Use inf_child_maybe_unpush_target.
6221 (procfs_init_inferior): Don't push the target if it is already
6223 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6224 if it is already pushed.
6226 2014-05-21 Pedro Alves <palves@redhat.com>
6228 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6229 and "procfs" targets are now called "native" instead.
6231 2014-05-21 Pedro Alves <palves@redhat.com>
6233 * go32-nat.c (go32_open): Delete.
6234 (go32_target): Don't override the to_open method.
6236 2014-05-21 Pedro Alves <palves@redhat.com>
6238 * nto-procfs.c (procfs_can_run): New function.
6239 (nto_procfs_ops): New global.
6240 (init_procfs_targets): New, based on procfs_target. Install
6241 "target native" in addition to "target procfs".
6242 (_initialize_procfs): Call init_procfs_targets instead of adding
6245 2014-05-21 Pedro Alves <palves@redhat.com>
6247 * windows-nat.c (windows_target): Don't override to_shortname,
6248 to_longname or to_doc.
6250 2014-05-21 Pedro Alves <palves@redhat.com>
6252 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6255 2014-05-21 Pedro Alves <palves@redhat.com>
6257 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6258 to_shortname, to_longname or to_doc.
6260 2014-05-21 Pedro Alves <palves@redhat.com>
6262 * go32-nat.c (go32_target): Don't override to_shortname,
6263 to_longname or to_doc.
6265 2014-05-21 Pedro Alves <palves@redhat.com>
6267 * inf-child.c (inf_child_open): Remove mention of "child".
6268 (inf_child_target): Rename target to "native" instead of "child".
6270 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6272 * Makefile.in (SFILES): Delete "regset.c".
6273 (COMMON_OBS): Delete "regset.o".
6275 * regset.h (regset_alloc): Delete prototype.
6277 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6279 * sparc-linux-tdep.c (sparc32_linux_gregset)
6280 (sparc32_linux_fpregset): New static regset structures.
6281 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6282 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6284 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6285 (sparc64_linux_fpregset): New static regset structures.
6286 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6287 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6288 New static regset structures.
6289 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6290 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6291 New static regset structures.
6292 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6293 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6294 New static regset structures.
6295 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6296 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6297 New static regset structures.
6298 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6300 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6302 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6303 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6304 register maps ("regmaps") from "*regset" to "*regmap". Do this
6305 for all regmap types and variables.
6306 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6307 (sparc32_linux_supply_core_gregset)
6308 (sparc32_linux_collect_core_gregset)
6309 (sparc32_linux_supply_core_fpregset)
6310 (sparc32_linux_collect_core_fpregset): Likewise.
6311 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6312 (sparc_gregmap, sparc_fpregmap): ... these.
6313 (sparc_supply_gregset, sparc_collect_gregset)
6314 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6315 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6316 (_initialize_sparc_nat): Rename regmaps.
6317 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6318 (sparc_gregmap, sparc_fpregmap): ... these.
6319 (sparc_supply_gregset, sparc_collect_gregset)
6320 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6321 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6323 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6324 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6326 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6328 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6329 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6330 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6332 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6333 (sparc32_bsd_fpregset): Rename to...
6334 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6335 (sparc32_bsd_fpregmap): ... these.
6336 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6337 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6338 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6339 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6340 (struct sparc_gregmap, struct sparc_fpregmap)
6341 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6342 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6343 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6344 (sparc32_supply_regset, sparc32_collect_gregset)
6345 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6347 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6348 (sparc64_linux_ptrace_gregmap): ... this.
6349 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6350 (_initialize_sparc64_linux_nat): Rename regmaps.
6351 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6352 (sparc64_linux_core_gregmap): ... this.
6353 (sparc64_linux_supply_core_gregset)
6354 (sparc64_linux_collect_core_gregset)
6355 (sparc64_linux_supply_core_fpregset)
6356 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6357 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6358 (sparc64_sol2_fpregset): Rename to...
6359 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6360 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6361 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6363 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6364 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6365 (sparc64_bsd_fpregset): Rename to...
6366 (struct sparc_gregmap, sparc64_sol2_gregmap)
6367 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6368 (sparc64_bsd_fpregmap): ... these.
6369 (sparc64_supply_gregset, sparc64_collect_gregset)
6370 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6372 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6373 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6374 (sparc64fbsd_gregmap): ... this.
6375 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6376 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6378 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6379 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6380 (sparc64nbsd_collect_fpregset): Likewise.
6381 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6382 (sparc64nbsd_gregmap): ... this.
6383 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6385 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6386 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6387 (sparc64obsd_gregmap): ... this.
6388 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6390 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6391 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6392 (sparc32nbsd_gregmap): ... this.
6393 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6396 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6398 * score-tdep.c (score7_linux_gregset): New static regset
6400 (score7_linux_regset_from_core_section): Remove dynamic regset
6402 (score_gdbarch_init): Drop allocation of tdep structure.
6403 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6405 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6407 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6409 (am33_regset_from_core_section): Remove dynamic regset
6412 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6414 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6415 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6417 (mips_linux_regset_from_core_section): Remove dynamic regset
6419 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6420 'gregset64', 'fpregset', and 'fpregset64'.
6421 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6422 deleted tdep fields.
6424 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6426 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6428 (amd64_regset_from_core_section): Remove dynamic regset
6430 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6432 (amd64obsd_regset_from_core_section): Remove dynamic regset
6434 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6436 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6437 x86-common regset supply function.
6438 * i386-tdep.c (i386_collect_gregset): Make static.
6439 (i386_gregset): New global regset structure.
6440 (i386_fpregset, i386_xstateregset): New static regset structures.
6441 (i386_regset_from_core_section): Remove dynamic regset
6443 (i386_gdbarch_init): Remove initialization of tdep fields
6444 'gregset', 'fpregset', and 'xstateregset'.
6445 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6446 'fpregset', and 'xstateregset'.
6447 (i386_collect_gregset): Remove prototype.
6448 (i386_gregset): New declaration.
6449 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6451 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6454 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6456 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6457 (arm_linux_vfpregset): New static regset structures.
6458 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6460 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6461 and 'vfpregset' fields.
6463 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6465 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6466 (aarch64_linux_fpregset): New static regset structures.
6467 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6468 of regset structures.
6469 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6472 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6474 * regset.h (struct regset): Remove gdbarch field.
6475 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6476 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6477 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6479 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6480 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6481 (ppc32_linux_vsxregset): Likewise.
6482 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6483 via the regcache instead of the regset.
6484 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6485 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6486 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6487 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6490 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6492 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6493 Constify structures.
6494 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6495 (alphanbsd_aout_gregset): Likewise.
6496 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6497 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6499 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6500 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6502 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6503 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6504 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6505 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6506 * m88k-tdep.c (m88k_gregset): Likewise.
6507 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6508 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6509 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6510 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6511 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6512 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6513 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6514 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6515 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6517 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6518 * sh-tdep.h (sh_corefile_gregset): Likewise.
6519 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6520 * vax-tdep.c (vax_gregset): Likewise.
6522 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6524 Fix TLS access for -static -pthread.
6525 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6526 (try_thread_db_load_1): Initialize it.
6527 (thread_db_get_thread_local_address): Call it if LM is zero.
6528 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6529 * target.h (struct target_ops) (to_get_thread_local_address): Add
6530 load_module_addr comment.
6532 2014-05-21 Pedro Alves <palves@redhat.com>
6534 * dcache.c (dcache_read_memory_partial): If reading the cache line
6535 fails, fallback to reading just the memory the caller wanted.
6537 2014-05-20 Doug Evans <dje@google.com>
6539 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6540 instead of get_current_arch.
6542 2014-05-20 Pedro Alves <palves@redhat.com>
6544 * NEWS: Mention that compare-sections now works with all targets.
6546 * remote.c (PACKET_qCRC): New enum value.
6547 (remote_verify_memory): Don't send qCRC if the target has no
6548 execution. Use packet_support/packet_ok. If the target doesn't
6549 support the qCRC packet, fallback to a deep memory copy.
6550 (compare_sections_command): Say "target image" instead of "remote
6552 (_initialize_remote): Add PACKET_qCRC to the list of config
6553 packets that have no associated command. Extend comment.
6554 * target.c (simple_verify_memory, default_verify_memory): New
6556 * target.h (struct target_ops) <to_verify_memory>: Default to
6557 default_verify_memory.
6558 (simple_verify_memory): New declaration.
6559 * target-delegates.c: Regenerate.
6561 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6563 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6565 2014-05-20 Hui Zhu <hui@codesourcery.com>
6566 Yao Qi <yao@codesourcery.com>
6569 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6570 and change address of sp and pc.
6572 2014-05-19 Tom Tromey <tromey@redhat.com>
6574 * gdbtypes.c (rank_function): Use XNEWVEC.
6575 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6577 2014-05-19 Doug Evans <dje@google.com>
6579 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6580 build_type_unit_groups and moved closer to only caller. Remove
6581 arguments. All references updated. Remove outdated .gdb_index
6583 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6584 build_type_psymtabs_1.
6586 2014-05-19 Doug Evans <dje@google.com>
6588 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6589 n_type_unit_groups, all_type_unit_groups. All uses removed.
6590 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6591 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6592 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6593 (add_type_unit_group_to_table): Delete.
6595 2014-05-19 Doug Evans <dje@google.com>
6597 * eval.c (evaluate_subexp_standard): Add some comments.
6599 2014-05-17 Doug Evans <xdje42@gmail.com>
6601 * progspace.c (remove_program_space): Delete, unused.
6602 * progspace.h (remove_program_space): Ditto.
6604 2014-05-17 Doug Evans <xdje42@gmail.com>
6606 * inferior.c (prune_inferiors): Fix comment.
6607 (remove_inferior_command): Call prune_program_spaces.
6609 2014-05-16 Doug Evans <dje@google.com>
6611 New command line option -D.
6613 * main.c (set_gdb_data_directory): New function.
6614 (captured_main): Recognize -D. Flag error for --data-directory "".
6615 Call set_gdb_data_directory.
6616 (print_gdb_help): Print --data-directory, -D.
6617 * main.h (set_gdb_data_directory): Declare.
6618 * top.c (staged_gdb_datadir): New static global.
6619 (set_gdb_datadir): Call set_gdb_data_directory
6620 (show_gdb_datadir): New function.
6621 (init_main): Update init of data-directory parameter.
6623 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6625 Import the "dirfd" gnulib module.
6626 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6627 * gnulib/aclocal.m4: Update.
6628 * gnulib/config.in: Update.
6629 * gnulib/configure: Update.
6630 * gnulib/import/Makefile.am: Update.
6631 * gnulib/import/Makefile.in: Update.
6632 * gnulib/import/dirfd.c: New.
6633 * gnulib/import/m4/dirfd.m4: New.
6634 * gnulib/import/m4/gnulib-cache.m4: Update.
6635 * gnulib/import/m4/gnulib-comp.m4: Update.
6637 2014-05-16 Pierre Muller <muller@sourceware.org>
6638 Yao Qi <yao@codesourcery.com>
6640 * valprint.c (print_wchar): Move the code on checking whether
6641 W is a printable wide char to the default branch of switch
6642 statement below. Call wchar_printable instead of gdb_iswprint.
6644 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6646 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6647 ldr.w and ldrd instructions.
6649 2014-05-15 Doug Evans <dje@google.com>
6651 * dwarf2read.c (read_structure_type): Delete outdated comments.
6653 2014-05-14 Tom Tromey <tromey@redhat.com>
6655 * macrocmd.c (print_macro_definition): Reindent.
6657 2014-05-13 Doug Evans <xdje42@gmail.com>
6659 * python/py-cmd.c (cmdpy_completer): Add comment.
6660 (completers): Make const.
6662 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6664 * infrun.c (resume): Remove should_resume (unused). Move up
6665 declaration of resume_ptid.
6667 2014-05-13 Tom Tromey <tromey@redhat.com>
6669 * language.h (unop_type_check): Remove.
6670 (binop_type_check): Don't declare.
6672 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6674 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6675 call to regcache_raw_collect.
6677 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6679 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6680 mi_console->quote as the quoting character.
6682 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6684 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6686 2014-04-29 Tom Tromey <tromey@redhat.com>
6688 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6689 "show debug varobj".
6691 2014-05-07 Kyle McMartin <kyle@redhat.com>
6693 Pushed by Joel Brobecker <brobecker@adacore.com>.
6694 * aarch64-tdep.c (aarch64_software_single_step): New function.
6695 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6696 with aarch64_software_single_step.
6698 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6702 2014-05-05 Keith Seitz <keiths@redhat.com>
6704 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6705 variable or history value is successfully parsed.
6707 2014-05-05 Yao Qi <yao@codesourcery.com>
6708 Pedro Alves <palves@redhat.com>
6710 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6711 address of blocks that intersects the requested range. Trim
6712 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6714 * ctf.c (ctf_xfer_partial): Likewise.
6716 2014-05-05 Yao Qi <yao@codesourcery.com>
6718 * printcmd.c (display_command): Remove the check to
6719 target_has_execution.
6721 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6723 * ppcobsd-nat.c: Include "obsd-nat.h".
6724 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6726 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6728 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6730 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6731 and 16-bit signed and unsigned arguments. Update comment.
6732 (stap_parse_probe_arguments): Extend code to handle such
6733 arguments. Use warning instead of complaint to notify about
6734 unrecognized bitness.
6736 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6738 PR breakpoints/16889
6739 * stap-probe.c (stap_parse_probe_arguments): Simplify
6740 check for non-prefixed probes (i.e., probes whose
6741 arguments do not start with "N@"). Always set the
6742 argument type to a sane value.
6744 2014-05-01 David Taylor <dtaylor@emc.com>
6746 * remote.c (compare_sections_command): Add -r option to compare
6747 all loadable read-only sections.
6749 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6751 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6752 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6754 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6755 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6756 Remove unused CORE_ADDR argument. Update all callers.
6758 2014-04-29 Pedro Alves <palves@redhat.com>
6760 * remote.c (struct packet_config) <detect>: Extend comment.
6761 (add_packet_config_cmd): Don't set the config's detect or support
6763 (init_all_packet_configs): Also initialize the config's 'detect'
6765 (reset_all_packet_configs_support): New function.
6766 (remote_open_1): Call reset_all_packet_configs_support instead of
6767 init_all_packet_configs.
6768 (_initialize_remote): Initialize all packet configs. Assert that
6769 all packets have an associated command, except a few known
6772 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6774 * dwarf2read.c (read_subrange_type): Handle dynamic
6775 DW_AT_lower_bound attributes.
6777 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6779 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6780 dynamic bounds before computing its upper bound.
6781 (ada_discrete_type_low_bound): Same as above with the lower bound.
6783 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6785 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6786 range types. Adjust the array handling implementation to
6787 take advantage of this change.
6788 (resolve_dynamic_range): New function, mostly extracted from
6789 resolve_dynamic_bounds.
6790 (resolve_dynamic_array): New function, mostly extracted from
6791 resolve_dynamic_bounds.
6792 (resolve_dynamic_bounds): Delete.
6793 (resolve_dynamic_type): Reimplement. Add handling of
6794 TYPE_CODE_RANGE types.
6796 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6798 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6799 handling of parallel ___XA types.
6801 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6803 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6804 unnecessary second call to static_unwrap_type.
6806 2014-04-27 Hui Zhu <hui@codesourcery.com>
6808 * stack.c (print_frame_info): Call do_gdb_disassembly with
6809 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6811 2014-04-26 Doug Evans <xdje42@gmail.com>
6813 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6815 2014-04-25 Pedro Alves <palves@redhat.com>
6818 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6819 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6820 and newline from built string.
6821 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6822 (linux_ptrace_attach_fail_reason): ... this.
6823 * linux-nat.c (linux_nat_attach): Adjust to use
6824 linux_ptrace_attach_fail_reason.
6826 2014-04-25 Pedro Alves <palves@redhat.com>
6828 * remote.c (struct remote_state): Remove multi_process_aware,
6829 non_stop_aware, cond_tracepoints, cond_breakpoints,
6830 breakpoint_commands, fast_tracepoints, static_tracepoints,
6831 install_in_trace, disconnected_tracing,
6832 enable_disable_tracepoints, string_tracing, and
6833 augmented_libraries_svr4_read fields.
6834 (remote_multi_process_p): Move further below in the file.
6835 (struct packet_config): Add comments.
6836 (update_packet_config): Delete function.
6837 (show_packet_config_cmd): Use packet_config_support.
6838 (add_packet_config_cmd): Use NULL as set callback.
6839 (packet_ok): "set remote foo-packet"-style commands no longer
6840 change config->supported -- adjust.
6841 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6842 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6843 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6844 (PACKET_QNonStop, PACKET_multiprocess_feature)
6845 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6846 (PACKET_DisconnectedTracing_feature)
6847 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6848 (set_remote_protocol_packet_cmd): Delete function.
6849 (packet_config_support, packet_support): New functions.
6850 (set_remote_protocol_Z_packet_cmd): Don't call
6851 update_packet_config.
6852 (remote_query_attached, remote_pass_signals)
6853 (remote_program_signals, remote_threads_info)
6854 (remote_threads_extra_info, remote_start_remote): Use
6856 (remote_start_remote): Use packet_config_support and
6858 (init_all_packet_configs): Set all packets to unknown support,
6859 instead of calling update_packet_config.
6860 (remote_check_symbols): Use packet_support.
6861 (remote_supported_packet): Unconditionally set the packet config's
6863 (remote_multi_process_feature, remote_non_stop_feature)
6864 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6865 (remote_breakpoint_commands_feature)
6866 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6867 (remote_install_in_trace_feature)
6868 (remote_disconnected_tracing_feature)
6869 (remote_enable_disable_tracepoint_feature)
6870 (remote_string_tracing_feature)
6871 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6872 (remote_protocol_features): Adjust to use remote_supported_packet
6873 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6874 "ConditionalTracepoints", "ConditionalBreakpoints",
6875 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6876 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6877 "EnableDisableTracepoints", and "tracenz".
6878 (remote_query_supported): Use packet_support.
6879 (remote_open_1): Adjust.
6880 (extended_remote_attach_1): Use packet_support. Switch on the
6881 result of packet_ok instead of checking whether the packet ended
6883 (remote_vcont_resume): Use packet_support.
6884 (remote_resume, remote_stop_ns, fetch_register_using_p)
6885 (remote_prepare_to_store, store_register_using_P)
6886 (check_binary_download, remote_write_bytes): Use packet_support.
6887 (remote_vkill): Use packet_support. Switch on the result of
6888 packet_ok instead of checking whether the packet ended up
6890 (extended_remote_supports_disable_randomization): Use
6892 (extended_remote_run): Switch on the result of packet_ok instead
6893 of checking whether the packet ended up disabled.
6894 (remote_insert_breakpoint, remote_remove_breakpoint)
6895 (remote_insert_watchpoint, remote_remove_watchpoint)
6896 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6898 (remote_search_memory): Use packet_config_support.
6899 (remote_get_thread_local_address, remote_get_tib_address)
6900 (remote_hostio_send_command, remote_can_execute_reverse): Use
6902 (remote_supports_cond_tracepoints)
6903 (remote_supports_cond_breakpoints)
6904 (remote_supports_fast_tracepoints)
6905 (remote_supports_static_tracepoints)
6906 (remote_supports_install_in_trace)
6907 (remote_supports_enable_disable_tracepoint)
6908 (remote_supports_string_tracing)
6909 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6910 the packet config says the feature is enabled or disabled.
6911 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6912 (remote_get_trace_status): Use packet_support.
6913 (remote_set_disconnected_tracing): Adjust to check whether the
6914 feature is enabled with packet_support.
6915 (remote_set_trace_buffer_size, remote_use_agent)
6916 (remote_can_use_agent, remote_supports_btrace): Use
6918 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6919 Use packet_config_support.
6920 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6921 the packet config says the feature is enabled or disabled.
6922 (set_range_stepping): Use packet_support.
6924 2014-04-25 Tom Tromey <tromey@redhat.com>
6926 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6929 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6931 * NEWS: Mention support for C99 variable length arrays.
6933 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6935 * ada-lang.c (standard_exc): Expand introductory comment.
6937 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6938 Walfred Tedeschi <walfred.tedeschi@intel.com>
6940 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6942 (amd64_linux_read_description): Add code to handle AVX512 xstate
6943 mask and return respective tdesc.
6944 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6945 and features/i386/x32-avx512-linux.c.
6946 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6947 (amd64_linux_core_read_description): Add code to handle AVX512
6948 xstate mask and return respective tdesc.
6949 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6950 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6952 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6953 (tdesc_amd64_avx512_linux): New prototype.
6954 (tdesc_x32_avx512_linux): Likewise.
6955 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6956 features/i386/x32-avx512.c.
6957 (amd64_ymm_avx512_names): New register names for pseudo
6959 (amd64_ymmh_avx512_names): New register names for raw registers
6961 (amd64_k_names): New register names for K registers.
6962 (amd64_zmmh_names): New register names for ZMM raw registers.
6963 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6964 (amd64_xmm_avx512_names): New register names for XMM16-31
6966 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6968 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6969 if feature is present.
6970 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6971 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6972 (AMD64_NUM_REGS): Adjust to new number of registers.
6973 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6974 registers supplied via XSTATE by AVX512 registers.
6975 (i386_linux_read_description): Add case for AVX512.
6976 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6977 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6978 (i386_linux_core_read_description): Add case for AVX512.
6979 (i386_linux_init_abi): Install supported register note section
6981 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6983 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6984 registers to be number of zmm7h + 1.
6985 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6986 * i386-tdep.c: Include features/i386/i386-avx512.c.
6987 (i386_zmm_names): Add ZMM pseudo register names array.
6988 (i386_zmmh_names): Add ZMM raw register names array.
6989 (i386_k_names): Add K raw register names array.
6990 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6991 registers. AVX512 has 16 more ZMM registers than there are YMM
6993 (i386_zmmh_regnum_p): Add function to look up register number of
6995 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6996 (i386_k_regnum_p): Likewise for K raw registers.
6997 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6998 registers added by AVX512.
6999 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7000 registers added by AVX512.
7001 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7003 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7004 (i386_pseudo_register_name): Add ZMM pseudo registers.
7005 (i386_zmm_type): Construct and return vector registers type for ZMM
7007 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7008 ZMM0-31 pseudo registers and K registers.
7009 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7010 and YMM16-31 registers from register cache.
7011 (i386_pseudo_register_write): Add code to write K, ZMM and
7013 (i386_register_reggroup_p): Add code to include/exclude AVX512
7014 registers in/from respective register groups.
7015 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7016 registers if feature is present in xcr0.
7017 (i386_gdbarch_init): Add code to initialize AVX512 feature
7018 variables in tdep structure, wire in pseudo registers and call
7019 initialize_tdesc_i386_avx512.
7020 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7022 (i386_regnum): Add AVX512 registers.
7023 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7024 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7025 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7026 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7028 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7029 (i386_ymm_avx512_regnum_p): Likewise.
7030 (i386_k_regnum_p): Likewise.
7031 (i386_zmm_regnum_p): Likewise.
7032 (i386_zmmh_regnum_p): Likewise.
7033 * i387-tdep.c : Update year in copyright notice.
7034 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7036 (XSAVE_YMM_AVX512_ADDR): New macro.
7037 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7039 (XSAVE_XMM_AVX512_ADDR): New macro.
7040 (xsave_avx512_k_offset): New table for K register offsets in
7042 (XSAVE_AVX512_K_ADDR): New macro.
7043 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7045 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7046 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7048 (i387_collect_xsave): Add code to collect AVX512 registers from
7050 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7051 of XMM16-31 registers.
7052 (I387_NUM_K_REGS): New define for number of K registers.
7053 (I387_K0_REGNUM): New define for K0 register number.
7054 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7055 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7056 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7058 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7059 (I387_XMM16_REGNUM): New define for XMM16 register number.
7060 (I387_YMM0_REGNUM): New define for YMM0 register number.
7061 (I387_KEND_REGNUM): New define for last K register number.
7062 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7063 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7065 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7067 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7069 * features/Makefile: Add AVX512 related files.
7070 * features/i386/32bit-avx512.xml: New file.
7071 * features/i386/64bit-avx512.xml: Likewise.
7072 * features/i386/amd64-avx512-linux.c: Likewise.
7073 * features/i386/amd64-avx512-linux.xml: Likewise.
7074 * features/i386/amd64-avx512.c: Likewise.
7075 * features/i386/amd64-avx512.xml: Likewise.
7076 * features/i386/i386-avx512-linux.c: Likewise.
7077 * features/i386/i386-avx512-linux.xml: Likewise.
7078 * features/i386/i386-avx512.c: Likewise.
7079 * features/i386/i386-avx512.xml: Likewise.
7080 * features/i386/x32-avx512-linux.c: Likewise.
7081 * features/i386/x32-avx512-linux.xml: Likewise.
7082 * features/i386/x32-avx512.c: Likewise.
7083 * features/i386/x32-avx512.xml: Likewise.
7084 * regformats/i386/amd64-avx512-linux.dat: New file.
7085 * regformats/i386/amd64-avx512.dat: Likewise.
7086 * regformats/i386/i386-avx512-linux.dat: Likewise.
7087 * regformats/i386/i386-avx512.dat: Likewise.
7088 * regformats/i386/x32-avx512-linux.dat: Likewise.
7089 * regformats/i386/x32-avx512.dat: Likewise.
7090 * NEWS: Add note about new support for AVX512.
7093 2014-04-23 Pedro Alves <palves@redhat.com>
7095 * breakpoint.c (insert_bp_location): Tolerate errors if the
7096 breakpoint is set in a user-loaded objfile.
7097 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7098 location is marked shlib_disabled. If the breakpoint is set in a
7099 user-loaded objfile is a GDB-side memory breakpoint, validate it
7100 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7101 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7103 * mem-break.c (memory_validate_breakpoint): New function.
7104 * objfiles.c (userloaded_objfile_contains_address_p): New
7106 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7107 * target.h (memory_validate_breakpoint): New declaration.
7109 2014-04-23 Pedro Alves <palves@redhat.com>
7111 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7112 the breakpoint is set in a shared library, only suppress
7113 errors for software breakpoints, not hardware breakpoints.
7115 2014-04-22 Pedro Alves <palves@redhat.com>
7117 * infrun.c (schedlock_applies): New function, factored out from
7118 find_thread_needs_step_over.
7119 (find_thread_needs_step_over): Use it.
7120 (switch_back_to_stepped_thread): Always clear trap_expected if the
7121 step over is finished. Return early if scheduler locking applies.
7122 Look for the stepping thread and a potential step-over thread with
7124 (currently_stepping_or_nexting_callback): Delete.
7126 2014-04-22 Nick Clifton <nickc@redhat.com>
7128 * NEWS: Mention that ARM sim now supports tracing.
7130 2014-04-22 Yao Qi <yao@codesourcery.com>
7132 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7134 * tracefile.c (tracefile_fetch_registers): ... it. New
7136 * tracefile.h (tracefile_fetch_registers): Declare.
7137 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7138 tracefile_fetch_registers.
7140 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7143 * windows-nat.c (thread_rec): Don't display a warning when
7144 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7145 fails for any reason, set th->suspended to -1, so that we don't
7146 try to resume such a thread. Also, don't return NULL in these
7147 cases, to avoid completely ruin the session due to "PC register is
7148 not available" error.
7149 (do_windows_fetch_inferior_registers): Check errors in
7150 GetThreadContext call.
7151 (windows_continue): Accept an additional argument KILLED; if not
7152 zero, ignore errors in the SetThreadContext call, since the
7153 inferior was killed and is shutting down.
7154 (windows_resume, get_windows_debug_event)
7155 (windows_create_inferior, windows_mourn_inferior)
7156 (windows_kill_inferior): All callers of windows_continue changed
7157 to adjust to its new calling sequence.
7159 2014-04-19 Yao Qi <yao@codesourcery.com>
7161 * ctf.c (ctf_open): Call post_create_inferior.
7163 2014-04-19 Yao Qi <yao@codesourcery.com>
7165 * ctf.c (handle_id): New static variable.
7166 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7167 value. Get the declaration of event "register" and get length
7168 of field "contents".
7170 2014-04-19 Yao Qi <yao@codesourcery.com>
7172 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7174 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7176 * valops.c (oload_method_static): Remove unnecessary argument
7177 METHOD. Update all callers.
7179 2014-04-18 Pedro alves <palves@redhat.com>
7180 Tom Tromey <tromey@redhat.com>
7183 * frame.c (get_prev_frame_1): Rename to ...
7184 (get_prev_frame_always): ... this, and make extern. Adjust.
7185 (skip_artificial_frames): Use get_prev_frame_always.
7186 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7187 (get_frame_unwind_stop_reason): Adjust to rename.
7188 * frame.h (get_prev_frame_always): Declare.
7189 * inline-frame.c: Include frame.h.
7190 (inline_frame_this_id): Use get_prev_frame_always.
7192 2014-04-18 Tristan Gingold <gingold@adacore.com>
7194 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7195 code by using bfd_mach_o_get_base_address.
7197 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7199 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7200 (spu_ax_pseudo_register_collect): New function.
7201 (spu_ax_pseudo_register_push_stack): Likewise.
7202 (spu_dwarf_reg_to_regnum): Likewise.
7203 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7205 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7207 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7208 Replace FRAME argument with FRAME_ID.
7209 * gdbarch.c, gdbarch.h: Regenerate.
7210 * findvar.c (default_value_from_register): Add GDBARCH argument;
7211 replace FRAME by FRAME_ID. No longer call get_frame_id.
7212 (value_from_register): Update call to gdbarch_value_from_register.
7213 * value.h (default_value_from_register): Update prototype.
7214 * s390-linux-tdep.c (s390_value_from_register): Update interface
7215 and call to default_value_from_register.
7216 * spu-tdep.c (spu_value_from_register): Likewise.
7218 * findvar.c (address_from_register): Remove TYPE argument.
7219 Do not call value_from_register; use gdbarch_value_from_register
7220 with null_frame_id instead.
7221 * value.h (address_from_register): Update prototype.
7222 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7223 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7224 address_from_register interface change.
7226 2014-04-17 Yao Qi <yao@codesourcery.com>
7228 * gdbtypes.h: Update comments to link to types and macros'
7231 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7233 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7235 2014-04-16 Keith Seitz <keiths@redhat.com>
7238 * dwarf2read.c (skip_one_die): Check that all relative-offset
7239 sibling DIEs fall within range of the current reader's buffer.
7240 (read_partial_die): Likewise.
7242 2014-04-16 Keith Seitz <keiths@redhat.com>
7245 * cp-namespace.c (lookup_symbol_file): If the type name of
7246 `this' is NULL, return immediately.
7248 2014-04-14 Keith Seitz <keiths@redhat.com>
7251 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7252 from symbol_matches_domain in symtab.c. All local callers
7253 of symbol_matches_domain updated.
7254 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7255 search STRUCT_DOMAIN.
7256 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7257 independently. standard_lookup will do that automatically.
7258 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7259 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7260 (cp_lookup_symbol_in_namespace): Likewise.
7261 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7262 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7263 may return a STRUCT_DOMAIN match.
7264 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7265 * cp-support.c: Include language.h.
7266 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7268 * psymtab.c (match_partial_symbol): Compare the requested
7269 domain with the symbol's domain directly.
7270 (lookup_partial_symbol): Likewise.
7271 * symtab.c (lookup_symbol_in_language): Explain when/why
7272 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7273 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7274 appropriate languages.
7275 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7276 and moved to ada-lang.c
7277 (lookup_block_symbol): Explain that this function only returns
7278 symbol matching the requested DOMAIN.
7279 Compare the requested domain with the symbol's domain directly.
7280 (iterate_over_symbols): Compare the requested domain with the
7281 symbol's domain directly.
7282 * symtab.h (symbol_matches_domain): Remove.
7284 2014-04-14 Tom Tromey <tromey@redhat.com>
7287 * c-exp.y (type_aggregate_p): New function.
7288 (qualified_name, classify_inner_name): Use it.
7289 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7290 and TYPE_TARGET_TYPE of an enum type.
7291 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7293 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7294 handle TYPE_DECLARED_CLASS.
7295 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7297 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7298 * valops.c (enum_constant_from_type): New function.
7299 (value_aggregate_elt): Use it.
7300 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7303 2014-04-14 Tom Tromey <tromey@redhat.com>
7305 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7306 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7308 * value.h (value_aggregate_elt): Update.
7310 2014-04-14 Tom Tromey <tromey@redhat.com>
7312 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7314 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7316 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7317 (evaluate_subexp_standard): Pass noside argument.
7318 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7319 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7320 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7321 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7322 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7324 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7326 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7327 points to a constant blob.
7329 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7331 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7332 property and store it as the high bound and flag the range accordingly.
7333 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7334 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7335 * gdbtypes.h (enum range_flags): New enum.
7336 (struct range_bounds): Add flags member.
7338 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7340 * c-typeprint.c (c_type_print_varspec_suffix): Added
7341 check for not yet resolved high bound. If unresolved, print
7342 "variable length" string to the console instead of random
7345 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7347 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7349 (ada_template_to_fixed_record_type_1): Likewise.
7350 (ada_to_fixed_type_1): Likewise.
7351 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7352 (cp_print_value): Likewise.
7353 * d-valprint.c (dynamic_array_type): Likewise.
7354 * findvar.c (address_of_variable): Likewise.
7355 * jv-valprint.c (java_value_print): Likewise.
7356 * valops.c (value_ind): Likewise.
7357 * value.c (coerce_ref): Likewise.
7359 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7361 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7362 value and retrieve the dynamic type size.
7364 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7366 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7367 passed to sizeof is dynamic evaluate the argument to compute the length.
7369 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7370 Joel Brobecker <brobecker@adacore.com>
7372 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7373 (dwarf2_evaluate_property): New function.
7374 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7375 * dwarf2read.c (attr_to_dynamic_prop): New function.
7376 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7378 * gdbtypes.c: Include dwarf2loc.h.
7379 (is_dynamic_type): New function.
7380 (resolve_dynamic_type): New function.
7381 (resolve_dynamic_bounds): New function.
7382 (get_type_length): New function.
7383 (check_typedef): Use get_type_length to compute type length.
7384 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7385 (TYPE_LOW_BOUND_KIND): New macro.
7386 (is_dynamic_type): New function prototype.
7387 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7388 to resolve dynamic properties of the type. Update comment.
7389 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7391 2014-04-14 Richard Henderson <rth@redhat.com>
7393 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7395 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7396 Doug Evans <xdje42@gmail.com>
7398 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7399 dereference TYPE_CODE_REF values.
7401 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7403 Revert the following changes due to regressions:
7405 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7406 (dwarf2_evaluate_property): New function.
7407 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7408 * dwarf2read.c (attr_to_dynamic_prop): New function.
7409 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7411 * gdbtypes.c: Include dwarf2loc.h.
7412 (is_dynamic_type): New function.
7413 (resolve_dynamic_type): New function.
7414 (resolve_dynamic_bounds): New function.
7415 (get_type_length): New function.
7416 (check_typedef): Use get_type_length to compute type length.
7417 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7418 (TYPE_LOW_BOUND_KIND): New macro.
7419 (is_dynamic_type): New function prototype.
7420 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7421 to resolve dynamic properties of the type. Update comment.
7422 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7424 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7425 passed to sizeof is dynamic evaluate the argument to compute the length.
7427 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7428 value and retrieve the dynamic type size.
7430 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7431 (ada_template_to_fixed_record_type_1): Likewise.
7432 (ada_to_fixed_type_1): Likewise.
7433 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7434 (cp_print_value): Likewise.
7435 * d-valprint.c (dynamic_array_type): Likewise.
7436 * eval.c (evaluate_subexp_with_coercion): Likewise.
7437 * findvar.c (address_of_variable): Likewise.
7438 * jv-valprint.c (java_value_print): Likewise.
7439 * valops.c (value_ind): Likewise.
7440 * value.c (coerce_ref): Likewise.
7442 * c-typeprint.c (c_type_print_varspec_suffix): Added
7443 check for not yet resolved high bound. If unresolved, print
7444 "variable length" string to the console instead of random
7447 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7448 property and store it as the high bound and flag the range accordingly.
7449 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7450 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7451 * gdbtypes.h (enum range_flags): New enum.
7452 (struct range_bounds): Add flags member.
7454 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7455 points to a constant blob.
7457 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7458 (evaluate_subexp_standard): Pass noside argument.
7459 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7460 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7461 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7462 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7463 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7465 2014-04-11 Keith Seitz <keiths@redhat.com>
7468 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7469 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7472 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7474 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7475 (evaluate_subexp_standard): Pass noside argument.
7476 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7477 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7478 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7479 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7480 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7482 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7484 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7485 points to a constant blob.
7487 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7489 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7490 property and store it as the high bound and flag the range accordingly.
7491 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7492 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7493 * gdbtypes.h (enum range_flags): New enum.
7494 (struct range_bounds): Add flags member.
7496 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7498 * c-typeprint.c (c_type_print_varspec_suffix): Added
7499 check for not yet resolved high bound. If unresolved, print
7500 "variable length" string to the console instead of random
7503 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7505 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7506 (ada_template_to_fixed_record_type_1): Likewise.
7507 (ada_to_fixed_type_1): Likewise.
7508 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7509 (cp_print_value): Likewise.
7510 * d-valprint.c (dynamic_array_type): Likewise.
7511 * eval.c (evaluate_subexp_with_coercion): Likewise.
7512 * findvar.c (address_of_variable): Likewise.
7513 * jv-valprint.c (java_value_print): Likewise.
7514 * valops.c (value_ind): Likewise.
7515 * value.c (coerce_ref): Likewise.
7517 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7519 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7520 value and retrieve the dynamic type size.
7522 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7524 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7525 passed to sizeof is dynamic evaluate the argument to compute the length.
7527 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7529 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7530 (dwarf2_evaluate_property): New function.
7531 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7532 * dwarf2read.c (attr_to_dynamic_prop): New function.
7533 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7535 * gdbtypes.c: Include dwarf2loc.h.
7536 (is_dynamic_type): New function.
7537 (resolve_dynamic_type): New function.
7538 (resolve_dynamic_bounds): New function.
7539 (get_type_length): New function.
7540 (check_typedef): Use get_type_length to compute type length.
7541 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7542 (TYPE_LOW_BOUND_KIND): New macro.
7543 (is_dynamic_type): New function prototype.
7544 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7545 to resolve dynamic properties of the type. Update comment.
7546 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7548 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7550 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7551 declaring high/low bounds and change uses accordingly. Call
7552 create_range_type instead of create_static_range_type.
7553 * gdbtypes.c (create_range_type): New function.
7554 (create_range_type): Convert bounds into struct bound_prop and pass
7555 them to create_range_type.
7556 * gdbtypes.h (struct bound_prop): New struct.
7557 (create_range_type): New function prototype.
7558 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7559 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7560 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7562 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7564 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7566 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7567 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7568 * ada-lang.c: All uses of create_range_type updated.
7569 * coffread.c: All uses of create_range_type updated.
7570 * dwarf2read.c: All uses of create_range_type updated.
7571 * f-exp.y: All uses of create_range_type updated.
7572 * m2-valprint.c: All uses of create_range_type updated.
7573 * mdebugread.c: All uses of create_range_type updated.
7574 * stabsread.c: All uses of create_range_type updated.
7575 * valops.c: All uses of create_range_type updated.
7576 * valprint.c: All uses of create_range_type updated.
7578 2014-04-10 Pedro Alves <palves@redhat.com>
7580 * breakpoint.c (single_step_breakpoints)
7581 (single_step_gdbarch): Move up in the file.
7582 (one_breakpoint_xfer_memory): New function, factored out from ...
7583 (breakpoint_xfer_memory): ... here. Also process single-step
7586 2014-04-09 Tristan Gingold <gingold@adacore.com>
7588 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7590 (darwin_decode_exception_message): Free port only after use.
7592 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7594 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7595 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7596 when setting the size of call_length.
7598 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7600 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7601 dereference TYPE_CODE_REF values.
7603 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7605 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7606 end of warning message.
7608 2014-04-03 Doug Evans <dje@google.com>
7610 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7611 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7613 2014-04-02 Alan Modra <amodra@gmail.com>
7615 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7616 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7617 (struct symbol_file_add_from_memory_args): Add size field.
7618 (find_vdso_size): New function.
7619 (add_vsyscall_page): Attempt to find vdso size.
7621 2014-04-01 Doug Evans <dje@google.com>
7623 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7625 2014-04-01 Tristan Gingold <gingold@adacore.com>
7627 * darwin-nat.c (darwin_encode_reply): Add prototype.
7628 (darwin_decode_exception_message): Reply to unknown inferiors.
7629 (darwin_decode_message): Handle message by id. Ignore message
7630 to unknown inferior.
7631 (darwin_wait): Discard unknown messages, add debug trace.
7633 2014-03-31 Doug Evans <dje@google.com>
7635 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7638 2014-03-31 Doug Evans <dje@google.com>
7640 New option "set print symbol-loading".
7642 * solib.c (solib_read_symbols): Only print symbol loading messages
7644 (solib_add): If symbol loading is in "brief" mode, notify user
7645 symbols are being loaded.
7646 (reload_shared_libraries_1): Ditto.
7647 * symfile.c (print_symbol_loading_off): New static global.
7648 (print_symbol_loading_brief): New static global.
7649 (print_symbol_loading_full): New static global.
7650 (print_symbol_loading_enums): New static global.
7651 (print_symbol_loading): New static global.
7652 (print_symbol_loading_p): New function.
7653 (symbol_file_add_with_addrs): Only print symbol loading messages
7655 (_initialize_symfile): Register "print symbol-loading" set/show
7657 * symfile.h (print_symbol_loading_p): Declare.
7659 2014-03-30 Doug Evans <xdje42@gmail.com>
7661 * infrun.c (set_last_target_status): New function.
7662 (handle_inferior_event): Call it.
7664 2014-03-30 Doug Evans <xdje42@gmail.com>
7666 * inferior.h (enum stop_kind): Improve comment.
7668 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7670 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7671 a reference, strip the reference layer before calling
7672 the lang_ops value_has_mutated callback.
7674 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7676 Remove some globals from our parser.
7677 * language.c (unk_lang_parser): Add "struct parser_state"
7679 * language.h (struct language_defn) <la_parser>: Likewise.
7680 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7681 (initialize_expout): Add "struct parser_state" argument.
7682 Rewrite function to use the parser state.
7683 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7684 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7685 write_exp_elt_longcst, write_exp_elt_dblcst,
7686 write_exp_elt_decfloatcst, write_exp_elt_type,
7687 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7688 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7689 write_dollar_variable): Likewise.
7690 (parse_exp_in_context_1): Use parser state.
7691 (insert_type_address_space): Add "struct parser_state" argument.
7693 (increase_expout_size): New function.
7694 * parser-defs.h: Forward declare "struct language_defn" and
7695 "struct parser_state".
7696 (expout, expout_size, expout_ptr): Remove extern declarations.
7697 (parse_gdbarch, parse_language): Rewrite macro declarations to
7698 accept the parser state.
7699 (struct parser_state): New struct.
7700 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7701 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7702 write_exp_elt_decfloatcst, write_exp_elt_type,
7703 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7704 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7705 write_exp_msymbol, write_dollar_variable,
7706 mark_struct_expression, insert_type_address_space): Add "struct
7707 parser_state" argument.
7708 (increase_expout_size): New function.
7709 * utils.c (do_clear_parser_state): New function.
7710 (make_cleanup_clear_parser_state): Likewise.
7711 * utils.h (make_cleanup_clear_parser_state): New function
7713 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7714 Update calls to write_exp* in order to pass the parser state.
7715 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7716 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7717 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7718 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7719 * stap-probe.c (stap_parse_register_operand): Likewise.
7720 (stap_parse_single_operand): Likewise.
7721 (stap_parse_argument_1): Likewise.
7722 (stap_parse_argument): Use parser state.
7723 * stap-probe.h: Include "parser-defs.h".
7724 (struct stap_parse_info) <pstate>: New field.
7725 * c-exp.y (parse_type): Rewrite to use parser state.
7726 (yyparse): Redefine to c_parse_internal.
7727 (pstate): New global variable.
7728 (parse_number): Add "struct parser_state" argument.
7729 (write_destructor_name): Likewise.
7730 (type_exp): Update calls to write_exp* and similars in order to
7732 (exp1, exp, variable, qualified_name, space_identifier,
7733 typename, typebase): Likewise.
7734 (write_destructor_name, parse_number, lex_one_token,
7735 classify_name, classify_inner_name, c_parse): Add "struct
7736 parser_state" argument. Update function to use parser state.
7737 * c-lang.h: Forward declare "struct parser_state".
7738 (c_parse): Add "struct parser_state" argument.
7739 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7740 (yyparse): Redefine macro to ada_parse_internal.
7741 (pstate): New variable.
7742 (write_int, write_object_renaming, write_var_or_type,
7743 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7744 type_int, type_long, type_long_long, type_float, type_double,
7745 type_long_double, type_char, type_boolean, type_system_address):
7746 Add "struct parser_state" argument.
7747 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7748 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7749 var_or_type, aggregate, aggregate_component_list,
7750 positional_list, others, component_group,
7751 component_associations): Update calls to write_exp* and similar
7752 functions in order to use parser state.
7753 (ada_parse, write_var_from_sym, write_int,
7754 write_exp_op_with_string, write_object_renaming,
7755 find_primitive_type, write_selectors, write_ambiguous_var,
7756 write_var_or_type, write_name_assoc, type_int, type_long,
7757 type_long_long, type_float, type_double, type_long_double,
7758 type_char, type_boolean, type_system_address): Add "struct
7759 parser_state" argument. Adjust function to use parser state.
7760 * ada-lang.c (parse): Likewise.
7761 * ada-lang.h: Forward declare "struct parser_state".
7762 (ada_parse): Add "struct parser_state" argument.
7763 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7764 calls to both functions.
7765 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7767 (yyparse): Redefine macro to f_parse_internal.
7768 (pstate): New variable.
7769 (parse_number): Add "struct parser_state" argument.
7770 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7771 and similars in order to use parser state.
7772 (parse_number): Adjust code to use parser state.
7774 (f_parse): New function.
7775 * f-lang.h: Forward declare "struct parser_state".
7776 (f_parse): Add "struct parser_state" argument.
7777 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7779 (yyparse): Redefine macro for java_parse_internal.
7780 (pstate): New variable.
7781 (push_expression_name, push_expression_name, insert_exp): Add
7782 "struct parser_state" argument.
7783 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7784 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7785 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7786 PostIncrementExpression, PostDecrementExpression,
7787 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7788 UnaryExpressionNotPlusMinus, CastExpression,
7789 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7790 RelationalExpression, EqualityExpression, AndExpression,
7791 ExclusiveOrExpression, InclusiveOrExpression,
7792 ConditionalAndExpression, ConditionalOrExpression,
7793 ConditionalExpression, Assignment, LeftHandSide): Update
7794 calls to write_exp* and similars in order to use parser state.
7795 (parse_number): Ajust code to use parser state.
7797 (java_parse): New function.
7798 (push_variable): Add "struct parser_state" argument. Adjust
7799 code to user parser state.
7800 (push_fieldnames, push_qualified_expression_name,
7801 push_expression_name, insert_exp): Likewise.
7802 * jv-lang.h: Forward declare "struct parser_state".
7803 (java_parse): Add "struct parser_state" argument.
7804 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7806 (yyparse): Redefine macro to m2_parse_internal.
7807 (pstate): New variable.
7808 (type_exp, exp, fblock, variable, type): Update calls to
7809 write_exp* and similars to use parser state.
7811 (m2_parse): New function.
7812 * m2-lang.h: Forward declare "struct parser_state".
7813 (m2_parse): Add "struct parser_state" argument.
7814 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7815 * objc-lang.h: Forward declare "struct parser_state".
7816 (end_msglist): Add "struct parser_state" argument.
7817 * p-exp.y (parse_type): Rewrite macro to use parser state.
7818 (yyparse): Redefine macro to pascal_parse_internal.
7819 (pstate): New variable.
7820 (parse_number): Add "struct parser_state" argument.
7821 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7822 write_exp* and similars in order to use parser state.
7823 (parse_number, yylex): Adjust code to use parser state.
7824 (pascal_parse): New function.
7825 * p-lang.h: Forward declare "struct parser_state".
7826 (pascal_parse): Add "struct parser_state" argument.
7827 * go-exp.y (parse_type): Rewrite macro to use parser state.
7828 (yyparse): Redefine macro to go_parse_internal.
7829 (pstate): New variable.
7830 (parse_number): Add "struct parser_state" argument.
7831 (type_exp, exp1, exp, variable, type): Update calls to
7832 write_exp* and similars in order to use parser state.
7833 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7834 to use parser state.
7835 (go_parse): Likewise.
7836 * go-lang.h: Forward declare "struct parser_state".
7837 (go_parse): Add "struct parser_state" argument.
7839 2014-03-27 Doug Evans <dje@google.com>
7841 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7843 2014-03-27 Doug Evans <dje@google.com>
7845 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7846 Remove argument abbrev_section. All callers updated.
7848 2014-03-27 Doug Evans <dje@google.com>
7850 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7851 addr_base, ranges_base.
7853 2014-03-26 Keith Seitz <keiths@redhat.com>
7855 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7856 types, not VAR_DOMAIN.
7858 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7860 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7862 * features/nios2-linux.c: Regenerated.
7863 * features/nios2.c: Regenerated.
7865 2014-03-25 Pedro Alves <palves@redhat.com>
7867 * cli/cli-script.c (script_from_file): Force the interpreter to
7870 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7872 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7873 small stack allocation.
7875 2014-03-24 Tristan Gingold <gingold@adacore.com>
7877 * darwin-nat.c (exc_server): Remove unused prototype.
7878 (darwin_dump_message): Correctly display data on x86_64.
7879 (darwin_encode_reply): Fix style.
7880 Add comments and fix indentation.
7882 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7884 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7886 2014-03-22 Doug Evans <xdje42@gmail.com>
7888 * infcmd.c: Whitespace fixes.
7889 (interrupt_command): Merge two function comments into one.
7891 2014-03-22 Doug Evans <xdje42@gmail.com>
7893 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7896 2014-03-22 Yao Qi <yao@codesourcery.com>
7898 * remote.c (target_read_live_memory): Remove.
7899 (memory_xfer_live_readonly_partial): Rename it to
7900 remote_xfer_live_readonly_partial. Remove argument 'object'.
7901 All callers updated. Call remote_read_bytes_1
7902 instead of target_read_live_memory.
7903 * tracepoint.c (set_traceframe_number): Remove.
7904 (make_cleanup_restore_traceframe_number): Likewise .
7905 * tracepoint.h (set_traceframe_number): Remove declaration.
7906 (make_cleanup_restore_traceframe_number): Likewise.
7908 2014-03-22 Yao Qi <yao@codesourcery.com>
7910 * remote.c (remote_read_bytes): Move code on reading from the
7912 (remote_read_bytes_1): ... here. New function.
7914 2014-03-22 Yao Qi <yao@codesourcery.com>
7916 * ctf.c (ctf_xfer_partial): Check the return value of
7917 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7918 return TARGET_XFER_UNAVAILABLE.
7919 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7920 * target.c (target_read_live_memory): Move it to remote.c.
7921 (memory_xfer_live_readonly_partial): Likewise.
7922 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7923 * remote.c (target_read_live_memory): Moved from target.c.
7924 (memory_xfer_live_readonly_partial): Likewise.
7925 (remote_read_bytes): Factored out from
7926 memory_xfer_partial_1.
7928 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7930 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7933 2014-03-21 Pedro Alves <palves@redhat.com>
7935 * infrun.c (normal_stop): Extend comment.
7937 2014-03-21 Hui Zhu <hui@codesourcery.com>
7938 Pedro Alves <palves@redhat.com>
7940 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7942 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7943 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7944 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7946 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7948 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7949 `z' formatted output modifier.
7951 2014-03-20 Tom Tromey <tromey@redhat.com>
7952 Sergio Durigan Junior <sergiodj@redhat.com>
7954 * probe.c (parse_probes): Turn assert into an ordinary error.
7955 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7956 exceptions when parsing probes. Rearrange the code for clarity.
7958 2014-03-20 Tom Tromey <tromey@redhat.com>
7961 * top.c (execute_command): Only dispatch events if the command
7964 2014-03-20 Tom Tromey <tromey@redhat.com>
7967 * infcall.c: Include event-top.h.
7968 (run_inferior_call): Call async_disable_stdin if needed.
7970 2014-03-20 Pedro Alves <palves@redhat.com>
7972 * infrun.c (prepare_to_proceed): Delete.
7973 (thread_still_needs_step_over): New function.
7974 (find_thread_needs_step_over): New function.
7975 (proceed): If the current thread needs a step-over, set its
7976 steping_over_breakpoint flag. Adjust to use
7977 find_thread_needs_step_over instead of prepare_to_proceed.
7978 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7979 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7981 (switch_back_to_stepped_thread): Step over breakpoints of all
7982 threads not the stepping thread, before switching back to the
7985 2014-03-20 Pedro Alves <palves@redhat.com>
7987 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7989 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7990 * infrun.c (saved_singlestep_ptid)
7991 (stepping_past_singlestep_breakpoint): Delete.
7992 (resume): Remove stepping_past_singlestep_breakpoint handling.
7993 (proceed): Store the prev_pc of the stepping thread too.
7994 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7996 (enum infwait_states): Delete infwait_thread_hop_state.
7997 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7999 (handle_inferior_event): Adjust.
8000 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8001 handling and the thread-hop code. Before removing single-step
8002 breakpoints, check whether the thread hit a single-step breakpoint
8003 of another thread. If it did, the trap is not a random signal.
8004 (switch_back_to_stepped_thread): If the event thread hit a
8005 single-step breakpoint, unblock it before switching to the
8006 stepping thread. Handle the case of the stepped thread having
8008 (keep_going): Handle the case of the current thread moving past a
8009 single-step breakpoint.
8011 2014-03-20 Pedro Alves <palves@redhat.com>
8014 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8015 are being stepped over.
8016 (breakpoint_address_match): Make extern.
8017 * breakpoint.h (breakpoint_address_match): New declaration.
8018 * inferior.h (stepping_past_instruction_at): New declaration.
8019 * infrun.c (struct step_over_info): New type.
8020 (step_over_info): New global.
8021 (set_step_over_info, clear_step_over_info)
8022 (stepping_past_instruction_at): New functions.
8023 (handle_inferior_event): Clear the step-over info when
8024 trap_expected is cleared.
8025 (resume): Remove now stale comment.
8026 (clear_proceed_status): Clear step-over info.
8027 (proceed): Adjust step-over handling to set or clear the step-over
8028 info instead of removing all breakpoints.
8029 (handle_signal_stop): When setting up a thread-hop, don't remove
8031 (stop_stepping): Clear step-over info.
8032 (keep_going): Adjust step-over handling to set or clear step-over
8033 info and then always inserting breakpoints, instead of removing
8034 all breakpoints when stepping over one.
8036 2014-03-20 Pedro Alves <palves@redhat.com>
8038 * infrun.c (previous_inferior_ptid): Adjust comment.
8039 (deferred_step_ptid): Delete.
8040 (infrun_thread_ptid_changed, prepare_to_proceed)
8041 (init_wait_for_inferior): Adjust.
8042 (handle_signal_stop): Delete deferred_step_ptid handling.
8044 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8047 * defs.h (sync_quit_force_run): New declaration.
8048 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8049 * event-top.c (async_sigterm_handler): New declaration.
8050 (async_sigterm_token): New variable.
8051 (async_init_signals): Create also async_sigterm_token.
8052 (async_sigterm_handler): New function.
8053 (sync_quit_force_run): New variable.
8054 (handle_sigterm): Replace quit_force call by other calls.
8055 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8057 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8059 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8060 offset into SPE pseudo registers.
8062 2014-03-18 Pedro Alves <palves@redhat.com>
8065 * inferior.h (print_stop_event): Declare.
8066 * infrun.c (print_stop_event): New, factored out from ...
8067 (normal_stop): ... this.
8068 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8069 of bpstat_print/print_stack_frame.
8071 2014-03-17 Tom Tromey <tromey@redhat.com>
8073 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8075 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8077 * ada-lang.c (decode_constrained_packed_array): Perform a
8078 minimal coercion for reference with coerce_ref instead of
8081 2014-03-17 Tristan Gingold <gingold@adacore.com>
8083 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8084 (darwin_solib_create_inferior_hook): Emit a warning if version
8087 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8089 * python/py-value.c (get_field_flag): Cast flag_name argument to
8090 PyObject_GetAttrString to support Python 2.4.
8092 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8094 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8095 (Global Maintainers): Remove Jan Kratochvil.
8097 2014-03-14 Pedro Alves <palves@redhat.com>
8099 * inferior.h (terminal_ours_for_output): Rename to ...
8100 (child_terminal_ours_for_output): ... this.
8101 (terminal_save_ours): Rename to ...
8102 (child_terminal_save_ours): ... this.
8103 (terminal_ours): Rename to ...
8104 (child_terminal_ours): ... this.
8105 (terminal_inferior): Rename to ...
8106 (child_terminal_inferior): ... this.
8107 (terminal_init_inferior): Rename to ...
8108 (child_terminal_init_inferior): ... this.
8109 (terminal_init_inferior_with_pgrp): Rename to ...
8110 (child_terminal_init_inferior_with_pgrp): ... this.
8111 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8112 (child_terminal_init_with_pgrp): ... this.
8113 (terminal_save_ours): Rename to ...
8114 (child_terminal_save_ours): ... this.
8115 (terminal_init_inferior): Rename to ...
8116 (child_terminal_init): ... this. Adjust.
8117 (terminal_inferior): Rename to ...
8118 (child_terminal_inferior): ... this.
8119 (terminal_ours_for_output): Rename to ...
8120 (child_terminal_ours_for_output): ... this. Adjust.
8121 (terminal_ours): Rename to ...
8122 (child_terminal_ours): ... this.
8123 (terminal_ours_1): Rename to ...
8124 (child_terminal_ours_1): ... this. Adjust.
8125 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8126 * windows-nat.c (do_initial_windows_stuff): Adjust.
8127 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8128 (gnu_terminal_init): ... this. Adjust.
8129 (gnu_target): Adjust.
8130 * inf-child.c (inf_child_target): Adjust.
8132 2014-03-13 Doug Evans <xdje42@gmail.com>
8135 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8138 2014-03-13 Doug Evans <xdje42@gmail.com>
8140 * value.c (record_latest_value): Call release_value_or_incref
8141 instead of release_value.
8143 2014-03-13 Pedro Alves <palves@redhat.com>
8145 * procfs.c (procfs_target): Don't override to_shortname,
8146 to_longname or to_doc.
8148 2014-03-13 Pedro Alves <palves@redhat.com>
8150 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8151 Unix in user visible strings.
8153 2014-03-12 Stan Shebs <stan@codesourcery.com>
8155 * gdbtypes.h: Annotate comments for Doxygen, add a page
8156 block comment with some general info.
8158 2014-03-12 Pedro Alves <palves@redhat.com>
8160 * infcmd.c (prepare_execution_command): New function, factored out
8161 from several execution commands.
8162 (run_command_1, continue_command, step_1, jump_command)
8163 (signal_command, until_command, advance_command, finish_command)
8164 (attach_command): Use prepare_execution_command.
8166 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8168 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8171 (struct arm_linux_thread_points): Removed.
8172 (struct arm_linux_process_info): New.
8173 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8174 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8175 (arm_linux_find_breakpoints_by_tid): Removed.
8176 (struct arch_lwp_info): New.
8177 (arm_linux_find_process_pid): New functions.
8178 (arm_linux_add_process): New functions.
8179 (arm_linux_process_info_get): New functions.
8180 (arm_linux_forget_process): New function.
8181 (arm_linux_get_debug_reg_state): New function.
8182 (struct update_registers_data): New.
8183 (update_registers_callback): New function.
8184 (arm_linux_insert_hw_breakpoint1): Updated.
8185 (arm_linux_remove_hw_breakpoint1): Updated.
8186 (arm_linux_insert_hw_breakpoint): Updated.
8187 (arm_linux_remove_hw_breakpoint): Updated.
8188 (arm_linux_insert_watchpoint): Updated.
8189 (arm_linux_remove_watchpoint): Updated.
8190 (arm_linux_new_thread): Updated.
8191 (arm_linux_prepare_to_resume): New function.
8192 (arm_linux_new_fork): New function.
8193 (_initialize_arm_linux_nat): Updated.
8195 2014-03-12 Pedro Alves <palves@redhat.com>
8197 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8199 2014-03-12 Tom Tromey <tromey@redhat.com>
8201 * inf-child.c (return_zero): New function.
8202 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8203 * aix-thread.c (aix_thread_inferior_created): New function.
8204 (aix_thread_attach): Remove.
8205 (init_aix_thread_ops): Don't set to_attach.
8206 (_initialize_aix_thread): Register inferior_created observer.
8207 * corelow.c (init_core_ops): Don't set to_attach or
8209 * exec.c (init_exec_ops): Don't set to_attach or
8211 * infcmd.c (run_command_1): Use find_run_target. Make direct
8213 (attach_command): Use find_attach_target. Make direct target
8215 * record-btrace.c (init_record_btrace_ops): Don't set
8217 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8219 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8220 set to_create_inferior.
8221 * target.c (complete_target_initialization): Add assertion.
8222 (target_create_inferior): Remove.
8223 (find_default_attach, find_default_create_inferior): Remove.
8224 (find_attach_target, find_run_target): New functions.
8225 (find_default_is_async_p, find_default_can_async_p)
8226 (target_supports_non_stop, target_attach): Remove.
8227 (init_dummy_target): Don't set to_create_inferior or
8228 to_supports_non_stop.
8229 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8230 TARGET_DEFAULT_FUNC.
8231 <to_create_inferior>: Add comment.
8232 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8233 TARGET_DEFAULT_RETURN.
8234 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8235 (find_attach_target, find_run_target): Declare.
8236 (target_create_inferior): Remove.
8237 (target_has_execution_1): Update comment.
8238 (target_supports_non_stop): Remove.
8239 * target-delegates.c: Rebuild.
8241 2014-03-12 Pedro Alves <palves@redhat.com>
8243 * inf-child.h: Update comment to not mention Unix.
8245 2014-03-12 Pedro Alves <palves@redhat.com>
8247 * inf-child.c: Update top comment to not mention Unix. Add
8248 generic comment describing how this target is meant to be used.
8249 (inf_child_post_attach, inf_child_post_startup_inferior)
8250 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8253 2014-03-12 Pedro Alves <palves@redhat.com>
8255 * nto-procfs.c: Include inf-child.h.
8256 (procfs_ops): Delete global.
8257 (procfs_can_run): Delete method.
8258 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8259 target pointer instead of referencing procfs_ops.
8260 (procfs_prepare_to_store): Delete.
8261 (init_procfs_ops): Delete function.
8262 (procfs_target): New function, based on init_procfs_ops, but
8263 inherit inf_child_target.
8264 (_initialize_procfs): Use procfs_target.
8266 2014-03-12 Pedro Alves <palves@redhat.com>
8268 * windows-nat.c: Include inf-child.h.
8269 (windows_ops): Delete global.
8270 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8272 (init_windows_ops): Delete function.
8273 (windows_target): New function, based on init_windows_ops, but
8274 inherit inf_child_target.
8275 (_initialize_windows_nat): Use windows_target. Install x86
8276 specific target methods here.
8278 2014-03-10 Doug Evans <xdje42@gmail.com>
8280 * guile/guile.c (call_initialize_gdb_module): New function.
8281 (initialize_guile): Replace call to scm_init_guile with call to
8284 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8286 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8287 in call to TYPE_CODE macro.
8289 2014-03-10 Jerome Guitton <guitton@adacore.com>
8291 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8292 Resolve tagged types to full view.
8294 2014-03-10 Hui Zhu <hui@codesourcery.com>
8296 * target.h (target_insert_breakpoint): Remove "hardware" from its
8299 2014-03-07 Doug Evans <dje@google.com>
8301 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8303 2014-03-07 Doug Evans <dje@google.com>
8305 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8306 Remove unused local comp_dir_attr. Assert exactly one of
8307 stub_comp_unit_die, stub_comp_dir is non-NULL.
8309 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8311 * target.h (complete_target_initialization, add_target):
8314 2014-03-07 Pedro Alves <palves@redhat.com>
8316 * go32-nat.c: Include inf-child.h.
8317 (go32_ops): Delete global.
8318 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8320 (go32_create_inferior): Push the passed in target pointer instead
8321 of referencing go32_ops.
8322 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8323 (go32_target): New function, based on init_go32_ops, but inherit
8325 (_initialize_go32_nat): Use go32_target. Move parts of
8328 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8330 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8331 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8332 SYMBOL_VALUE_ADDRESS.
8333 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8335 2014-03-06 Yao Qi <yao@codesourcery.com>
8337 * breakpoint.c (get_tracepoint_by_number): Remove argument
8338 optional_p. All callers updated. Adjust comments. Update
8340 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8342 2014-03-06 Yao Qi <yao@codesourcery.com>
8344 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8345 early if get_number returns zero. Use 'p' instead of 'args'.
8347 2014-03-06 Yao Qi <yao@codesourcery.com>
8349 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8352 2014-03-06 Yao Qi <yao@codesourcery.com>
8354 PR breakpoints/16508
8355 * tracepoint.c (check_trace_running): New function.
8356 (trace_find_command): Move code to check_trace_running and
8357 call check_trace_running.
8358 (trace_find_pc_command): Likewise.
8359 (trace_find_tracepoint_command): Likewise.
8360 (trace_find_line_command): Likewise.
8361 (trace_find_range_command): Likewise.
8362 * tracepoint.h (check_trace_running): Likewise.
8363 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8365 2014-03-06 Yao Qi <yao@codesourcery.com>
8367 * target.h (struct target_ops) <to_traceframe_info>: Use
8368 TARGET_DEFAULT_NORETURN (tcomplain ()).
8369 * target-delegates.c: Regenerated.
8371 2014-03-05 Pedro Alves <palves@redhat.com>
8374 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8375 void. Update comment.
8376 (dcache_xfer_memory): Delete.
8377 (dcache_read_memory_partial): New, based on the read bits of
8379 (dcache_update): Add status parameter. Use ULONGEST for len, and
8380 adjust. Discard cache lines if the reason for the update was
8382 * dcache.h (dcache_xfer_memory): Delete declaration.
8383 (dcache_read_memory_partial): New declaration.
8384 (dcache_update): Update prototype.
8385 * target.c (raw_memory_xfer_partial): Update the dcache here.
8386 (memory_xfer_partial_1): Don't handle dcache writes here.
8388 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8390 * remote-sim.c (gdbsim_load): Add const to prog.
8392 2014-03-03 Tom Tromey <tromey@redhat.com>
8394 * elfread.c (probe_key): Change to bfd_data.
8395 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8396 now per-BFD, not per-objfile.
8397 * stap-probe.c (stap_probe_destroy): Update comment.
8398 (handle_stap_probe): Allocate on the per-BFD obstack.
8400 2014-03-03 Tom Tromey <tromey@redhat.com>
8402 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8403 * breakpoint.c (create_longjmp_master_breakpoint): Use
8405 (add_location_to_breakpoint, bkpt_probe_insert_location)
8406 (bkpt_probe_remove_location): Update.
8407 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8408 * elfread.c (elf_symfile_relocate_probe): Remove.
8409 (elf_probe_fns): Update.
8410 (insert_exception_resume_breakpoint): Change type of "probe"
8411 parameter to bound_probe.
8412 (check_exception_resume): Update.
8413 * objfiles.c (objfile_relocate1): Don't relocate probes.
8414 * probe.c (bound_probe_s): New typedef.
8415 (parse_probes): Use get_probe_address. Set sal's objfile.
8416 (find_probe_by_pc): Return a bound_probe.
8417 (collect_probes): Return a VEC(bound_probe_s).
8418 (compare_probes): Update.
8419 (gen_ui_out_table_header_info): Change type of "probes"
8421 (info_probes_for_ops): Update.
8422 (get_probe_address): New function.
8423 (probe_safe_evaluate_at_pc): Update.
8424 * probe.h (struct probe_ops) <get_probe_address>: New field.
8425 <set_semaphore, clear_semaphore>: Add objfile parameter.
8426 (struct probe) <objfile>: Remove field.
8428 <address>: Update comment.
8429 (struct bound_probe): New.
8430 (find_probe_by_pc): Return a bound_probe.
8431 (get_probe_address): Declare.
8432 * solib-svr4.c (struct probe_and_action) <address>: New field.
8433 (hash_probe_and_action, equal_probe_and_action): Update.
8434 (register_solib_event_probe): Add address parameter.
8435 (solib_event_probe_at): Update.
8436 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8438 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8439 (stap_get_probe_address): New function.
8440 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8441 (compile_probe_arg): Update.
8442 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8444 (handle_stap_probe): Don't relocate the probe.
8445 (stap_relocate): Remove.
8446 (stap_gen_info_probes_table_values): Update.
8447 (stap_probe_ops): Remove stap_relocate.
8448 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8449 (debug_sym_probe_fns): Update.
8450 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8451 * symtab.c (init_sal): Use memset.
8452 * symtab.h (struct symtab_and_line) <objfile>: New field.
8453 * tracepoint.c (start_tracing, stop_tracing): Update.
8455 2014-03-03 Tom Tromey <tromey@redhat.com>
8457 * probe.h (parse_probes, find_probe_by_pc)
8458 (find_probes_in_objfile): Fix comments.
8460 2014-03-02 Doug Evans <xdje42@gmail.com>
8462 * infrun.c (handle_signal_stop): Replace test for
8463 TARGET_WAITKIND_STOPPED with an assert.
8465 2014-03-02 Doug Evans <xdje42@gmail.com>
8467 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8469 2014-03-02 Doug Evans <xdje42@gmail.com>
8471 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8473 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8475 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8477 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8479 * i386obsd-nat.c: Include "obsd-nat.h".
8480 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8482 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8484 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8486 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8488 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8490 * mips64obsd-nat.c: Include "obsd-nath".
8491 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8493 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8495 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8497 * amd64obsd-nat.c: Include "obsd-nat,h.
8498 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8500 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8502 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8504 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8505 (find_overload_match): Update call to find_oload_champ.
8506 (find_oload_champ_namespace_loop): Likewise
8508 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8510 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8512 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8513 * config/sparc/obsd64.mh: New file.
8514 * sparc64obsd-nat.c: New file.
8516 * obsd-nat.h: New file.
8517 * obsd-nat.c: New file.
8518 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8519 (ALLDEPFILES): Add obsd-nat.c.
8521 2014-02-28 Tom Tromey <tromey@redhat.com>
8523 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8524 * cli-out.h (cli_ui_out_impl): Now const.
8525 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8526 * ui-out.c (struct ui_out) <impl>: Now const.
8527 (default_ui_out_impl): Now const.
8528 (ui_out_new): Make 'impl' parameter const.
8529 * ui-out.h (ui_out_new): Update.
8531 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8533 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8535 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8537 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8539 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8541 Additional PR 8882 fix.
8542 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8544 2014-02-27 Pedro Alves <palves@redhat.com>
8546 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8549 2014-02-27 Pedro Alves <palves@redhat.com>
8552 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8553 * nat/linux-waitpid.c: Include string.h.
8554 (status_to_str): Moved here and made extern.
8555 * nat/linux-waitpid.h (status_to_str): New declaration.
8557 2014-02-27 Hui Zhu <hui@codesourcery.com>
8560 * infrun.c (ptid_match): Move ...
8561 * common/ptid.c (ptid_match): ... here.
8562 * inferior.h (ptid_match): Move ...
8563 * common/ptid.h (ptid_match): ... here.
8565 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8567 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8568 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8571 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8573 * obsd-tdep.c (obsd_auxv_parse): New function.
8574 (obsd_init_abi): Set auxv_parse.
8576 * gdbarch.sh (auxv_parse): New.
8577 * gdbarch.h: Regenerated.
8578 * gdbarch.c: Regenerated.
8579 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8581 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8583 * guile/scm-value.c (gdbscm_history_append_x): New function.
8584 (value_functions): Add it.
8586 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8588 * dwarf2read.c (attr_value_as_address): New function.
8589 (dwarf2_find_base_address, read_call_site_scope): Use
8590 attr_value_as_address in place of DW_ADDR.
8591 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8592 the low and high addresses. Slight rework of the handling
8593 of the high pc being a constant form, and limit it to
8594 DWARF verson 4 or higher.
8595 (dwarf2_record_block_ranges): Likewise.
8596 (read_partial_die): Likewise.
8597 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8599 2014-02-26 Tom Tromey <tromey@redhat.com>
8601 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8603 2014-02-26 Tom Tromey <tromey@redhat.com>
8605 * elfread.c (elf_read_minimal_symbols): Return early if
8606 minimal symbols have already been read. Add "ei" parameter.
8607 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8608 * minsyms.c (prim_record_minimal_symbol_full): Update.
8609 * objfiles.h (struct objstats) <n_minsyms>: Move...
8610 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8611 * symmisc.c (print_objfile_statistics): Update.
8613 2014-02-26 Tom Tromey <tromey@redhat.com>
8615 * elfread.c (elf_read_minimal_symbols): New function, from
8617 (elf_symfile_read): Call it.
8619 2014-02-26 Tom Tromey <tromey@redhat.com>
8621 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8622 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8623 (lookup_minimal_symbol_solib_trampoline)
8624 (lookup_minimal_symbol_by_pc_section_1)
8625 (lookup_minimal_symbol_and_objfile): Update.
8626 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8627 Don't allocate a minimal symbol if minsyms have already been read.
8628 (build_minimal_symbol_hash_tables): Update.
8629 (install_minimal_symbols): Do nothing if minsyms already read.
8630 Use the per-BFD obstack.
8631 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8632 * objfiles.c (allocate_objfile): Call
8633 terminate_minimal_symbol_table later.
8634 (have_minimal_symbols): Update.
8635 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8636 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8637 Move from struct objfile.
8638 <minsyms_read>: New field.
8639 (struct objfile) <msymbols, minimal_symbol_count,
8640 msymbol_hash, msymbol_demangled_hash>: Move.
8641 (ALL_OBJFILE_MSYMBOLS): Update.
8642 * symfile.c (read_symbols): Set minsyms_read.
8643 (reread_symbols): Update.
8644 * symmisc.c (dump_objfile, dump_msymbols): Update.
8646 2014-02-26 Tom Tromey <tromey@redhat.com>
8648 * minsyms.c (msymbols_sort): Remove.
8649 * minsyms.h (msymbols_sort): Remove.
8650 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8651 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8652 * elfread.c (elf_symtab_read): Don't add section offsets.
8653 * xcoffread.c (record_minimal_symbol): Don't add section offset
8654 to minimal symbol address.
8655 * somread.c (text_offset, data_offset): Remove.
8656 (som_symtab_read): Don't add section offsets to minimal symbol
8658 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8659 Don't add section offsets to minimal symbols.
8660 * coffread.c (coff_symtab_read): Don't add section offsets
8661 to minimal symbol addresses.
8662 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8663 to minimal symbol addresses.
8664 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8665 section offset to minimal symbol addresses.
8666 * mdebugread.c (parse_partial_symbols): Don't add section
8667 offset to minimal symbol addresses.
8668 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8669 offset to minimal symbol addresses.
8671 2014-02-26 Tom Tromey <tromey@redhat.com>
8673 * ada-lang.c (ada_main_name): Update.
8674 (ada_add_standard_exceptions): Update.
8675 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8676 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8677 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8678 * auxv.c (ld_so_xfer_auxv): Update.
8679 * avr-tdep.c (avr_scan_prologue): Update.
8680 * ax-gdb.c (gen_var_ref): Update.
8681 * blockframe.c (get_pc_function_start)
8682 (find_pc_partial_function_gnu_ifunc): Update.
8683 * breakpoint.c (create_overlay_event_breakpoint)
8684 (create_longjmp_master_breakpoint)
8685 (create_std_terminate_master_breakpoint)
8686 (create_exception_master_breakpoint): Update.
8687 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8688 * c-valprint.c (c_val_print): Update.
8689 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8690 * common/agent.c (agent_look_up_symbols): Update.
8691 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8692 * dwarf2loc.c (call_site_to_target_addr): Update.
8693 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8694 * elfread.c (elf_gnu_ifunc_record_cache)
8695 (elf_gnu_ifunc_resolve_by_got): Update.
8696 * findvar.c (default_read_var_value): Update.
8697 * frame.c (inside_main_func): Update.
8698 * frv-tdep.c (frv_frame_this_id): Update.
8699 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8700 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8702 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8703 (hppa_hpux_find_dummy_bpaddr): Update.
8704 * hppa-tdep.c (hppa_symbol_address): Update.
8705 * infcmd.c (until_next_command): Update.
8706 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8708 * linespec.c (minsym_found, add_minsym): Update.
8709 * linux-nat.c (get_signo): Update.
8710 * linux-thread-db.c (inferior_has_bug): Update.
8711 * m32c-tdep.c (m32c_return_value)
8712 (m32c_m16c_address_to_pointer): Update.
8713 * m32r-tdep.c (m32r_frame_this_id): Update.
8714 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8715 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8716 * maint.c (maintenance_translate_address): Update.
8717 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8718 (frob_address): New function.
8719 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8720 frob_address. Rename parameter to "pc_in".
8721 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8723 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8725 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8726 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8727 * objc-lang.c (find_objc_msgsend): Update.
8728 * objfiles.c (objfile_relocate1): Update.
8729 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8730 * p-valprint.c (pascal_val_print): Update.
8731 * parse.c (write_exp_msymbol): Update.
8732 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8733 (ppc_elfv2_skip_entrypoint): Update.
8734 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8735 * printcmd.c (build_address_symbolic, msym_info)
8736 (address_info): Update.
8737 * proc-service.c (ps_pglobal_lookup): Update.
8738 * psymtab.c (find_pc_sect_psymtab_closer)
8739 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8740 Change msymbol parameter to bound_minimal_symbol.
8741 * ravenscar-thread.c (get_running_thread_id): Update.
8742 * remote.c (remote_check_symbols): Update.
8743 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8745 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8746 * solib-dsbt.c (lm_base): Update.
8747 * solib-frv.c (lm_base, main_got): Update.
8748 * solib-irix.c (locate_base): Update.
8749 * solib-som.c (som_solib_create_inferior_hook)
8750 (link_map_start): Update.
8751 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8752 * solib-svr4.c (elf_locate_base, enable_break): Update.
8753 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8754 (flush_ea_cache): Update.
8755 * stabsread.c (define_symbol, scan_file_globals): Update.
8756 * stack.c (find_frame_funname): Update.
8757 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8758 (debug_qf_find_pc_sect_symtab): Update.
8759 * symfile.c (simple_read_overlay_table)
8760 (simple_overlay_update): Update.
8761 * symfile.h (struct quick_symbol_functions)
8762 <find_pc_sect_symtab>: Change type of msymbol to
8763 bound_minimal_symbol.
8764 * symmisc.c (dump_msymbols): Update.
8765 * symtab.c (find_pc_sect_symtab_via_partial)
8766 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8767 (search_symbols, print_msymbol_info): Update.
8768 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8769 (MSYMBOL_VALUE_ADDRESS): Redefine.
8770 (BMSYMBOL_VALUE_ADDRESS): New macro.
8771 * tracepoint.c (scope_info): Update.
8772 * tui/tui-disasm.c (tui_find_disassembly_address)
8773 (tui_get_begin_asm_address): Update.
8774 * valops.c (find_function_in_inferior): Update.
8775 * value.c (value_static_field, value_fn_field): Update.
8777 2014-02-26 Tom Tromey <tromey@redhat.com>
8779 * ada-lang.c (ada_update_initial_language): Update.
8780 (ada_main_name, ada_has_this_exception_support): Update.
8781 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8782 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8783 * arm-tdep.c (arm_skip_stub): Update.
8784 * auxv.c (ld_so_xfer_auxv): Update.
8785 * avr-tdep.c (avr_scan_prologue): Update.
8786 * ax-gdb.c (gen_var_ref): Update.
8787 * breakpoint.c (struct breakpoint_objfile_data)
8788 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8789 type to bound_minimal_symbol.
8790 (create_overlay_event_breakpoint)
8791 (create_longjmp_master_breakpoint)
8792 (create_std_terminate_master_breakpoint)
8793 (create_exception_master_breakpoint): Update.
8794 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8795 * c-exp.y (classify_name): Update.
8796 * coffread.c (coff_symfile_read): Update.
8797 * common/agent.c (agent_look_up_symbols): Update.
8798 * d-lang.c (d_main_name): Update.
8799 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8800 * dec-thread.c (enable_dec_thread): Update.
8801 * dwarf2loc.c (call_site_to_target_addr): Update.
8802 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8803 * eval.c (evaluate_subexp_standard): Update.
8804 * findvar.c (struct minsym_lookup_data) <result>: Change type
8805 to bound_minimal_symbol.
8807 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8808 * frame.c (inside_main_func): Update.
8809 * frv-tdep.c (frv_frame_this_id): Update.
8810 * gcore.c (call_target_sbrk): Update.
8811 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8812 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8814 * go-lang.c (go_main_name): Update.
8815 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8816 (hppa_hpux_find_import_stub_for_addr): Update.
8817 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8818 Update. Change return type.
8819 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8821 * jit.c (jit_breakpoint_re_set_internal): Update.
8822 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8824 * linux-nat.c (get_signo): Update.
8825 * linux-thread-db.c (inferior_has_bug): Update
8826 * m32c-tdep.c (m32c_return_value)
8827 (m32c_m16c_address_to_pointer): Update.
8828 * m32r-tdep.c (m32r_frame_this_id): Update.
8829 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8830 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8831 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8832 lookup_minimal_symbol. Change return type.
8833 (lookup_minimal_symbol): Remove.
8834 (lookup_bound_minimal_symbol): Update.
8835 (lookup_minimal_symbol_text): Change return type.
8836 (lookup_minimal_symbol_solib_trampoline): Change return type.
8837 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8838 (lookup_minimal_symbol_solib_trampoline): Change return type.
8839 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8840 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8841 (value_nsstring, find_imps): Update.
8842 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8843 * p-lang.c (pascal_main_name): Update.
8844 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8845 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8846 * proc-service.c (ps_pglobal_lookup): Update.
8847 * ravenscar-thread.c (get_running_thread_msymbol): Change
8849 (has_ravenscar_runtime, get_running_thread_id): Update.
8850 * remote.c (remote_check_symbols): Update.
8851 * sol-thread.c (ps_pglobal_lookup): Update.
8852 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8853 * solib-dsbt.c (lm_base): Update.
8854 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8856 * solib-irix.c (locate_base): Update.
8857 * solib-som.c (som_solib_create_inferior_hook)
8858 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8860 * solib-spu.c (spu_enable_break): Update.
8861 * solib-svr4.c (elf_locate_base, enable_break): Update.
8862 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8863 (flush_ea_cache): Update.
8864 * stabsread.c (define_symbol): Update.
8865 * symfile.c (simple_read_overlay_table): Update.
8866 * symtab.c (find_pc_sect_line): Update.
8867 * tracepoint.c (scope_info): Update.
8868 * tui-disasm.c (tui_get_begin_asm_address): Update.
8869 * value.c (value_static_field): Update.
8871 2014-02-26 Tom Tromey <tromey@redhat.com>
8873 * minsyms.c (prim_record_minimal_symbol_full): Use
8874 SET_MSYMBOL_VALUE_ADDRESS.
8875 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8876 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8877 SET_MSYMBOL_VALUE_ADDRESS.
8878 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8879 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8881 2014-02-26 Tom Tromey <tromey@redhat.com>
8883 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8884 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8885 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8886 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8887 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8888 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8889 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8890 * ada-lang.c (ada_main_name): Update.
8891 (ada_lookup_simple_minsym): Update.
8892 (ada_make_symbol_completion_list): Update.
8893 (ada_add_standard_exceptions): Update.
8894 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8895 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8896 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8897 * arm-tdep.c (skip_prologue_function): Update.
8898 (arm_skip_stack_protector, arm_skip_stub): Update.
8899 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8900 (arm_wince_skip_main_prologue): Update.
8901 * auxv.c (ld_so_xfer_auxv): Update.
8902 * avr-tdep.c (avr_scan_prologue): Update.
8903 * ax-gdb.c (gen_var_ref): Update.
8904 * block.c (call_site_for_pc): Update.
8905 * blockframe.c (get_pc_function_start): Update.
8906 (find_pc_partial_function_gnu_ifunc): Update.
8907 * breakpoint.c (create_overlay_event_breakpoint): Update.
8908 (create_longjmp_master_breakpoint): Update.
8909 (create_std_terminate_master_breakpoint): Update.
8910 (create_exception_master_breakpoint): Update.
8911 (resolve_sal_pc): Update.
8912 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8913 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8915 * c-valprint.c (c_val_print): Update.
8916 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8917 * coffread.c (coff_symfile_read): Update.
8918 * common/agent.c (agent_look_up_symbols): Update.
8919 * dbxread.c (find_stab_function_addr): Update.
8920 (end_psymtab): Update.
8921 * dwarf2loc.c (call_site_to_target_addr): Update.
8922 (func_verify_no_selftailcall): Update.
8923 (tailcall_dump): Update.
8924 (call_site_find_chain_1): Update.
8925 (dwarf_expr_reg_to_entry_parameter): Update.
8926 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8927 (elf_gnu_ifunc_resolve_by_got): Update.
8928 * f-valprint.c (info_common_command): Update.
8929 * findvar.c (read_var_value): Update.
8930 * frame.c (get_prev_frame_1): Update.
8931 (inside_main_func): Update.
8932 * frv-tdep.c (frv_skip_main_prologue): Update.
8933 (frv_frame_this_id): Update.
8934 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8935 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8936 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8937 (gnuv3_skip_trampoline): Update.
8938 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8939 (hppa64_hpux_in_solib_call_trampoline): Update.
8940 (hppa_hpux_skip_trampoline_code): Update.
8941 (hppa64_hpux_search_dummy_call_sequence): Update.
8942 (hppa_hpux_find_import_stub_for_addr): Update.
8943 (hppa_hpux_find_dummy_bpaddr): Update.
8944 * hppa-tdep.c (hppa_symbol_address)
8945 (hppa_lookup_stub_minimal_symbol): Update.
8946 * i386-tdep.c (i386_skip_main_prologue): Update.
8947 (i386_pe_skip_trampoline_code): Update.
8948 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8949 * infcall.c (get_function_name): Update.
8950 * infcmd.c (until_next_command): Update.
8951 * jit.c (jit_breakpoint_re_set_internal): Update.
8952 (jit_inferior_init): Update.
8953 * linespec.c (minsym_found): Update.
8954 (add_minsym): Update.
8955 * linux-fork.c (info_checkpoints_command): Update.
8956 * linux-nat.c (get_signo): Update.
8957 * linux-thread-db.c (inferior_has_bug): Update.
8958 * m32c-tdep.c (m32c_return_value): Update.
8959 (m32c_m16c_address_to_pointer): Update.
8960 (m32c_m16c_pointer_to_address): Update.
8961 * m32r-tdep.c (m32r_frame_this_id): Update.
8962 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8963 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8964 * maint.c (maintenance_translate_address): Update.
8965 * minsyms.c (add_minsym_to_hash_table): Update.
8966 (add_minsym_to_demangled_hash_table): Update.
8967 (msymbol_objfile): Update.
8968 (lookup_minimal_symbol): Update.
8969 (iterate_over_minimal_symbols): Update.
8970 (lookup_minimal_symbol_text): Update.
8971 (lookup_minimal_symbol_by_pc_name): Update.
8972 (lookup_minimal_symbol_solib_trampoline): Update.
8973 (lookup_minimal_symbol_by_pc_section_1): Update.
8974 (lookup_minimal_symbol_and_objfile): Update.
8975 (prim_record_minimal_symbol_full): Update.
8976 (compare_minimal_symbols): Update.
8977 (compact_minimal_symbols): Update.
8978 (build_minimal_symbol_hash_tables): Update.
8979 (install_minimal_symbols): Update.
8980 (terminate_minimal_symbol_table): Update.
8981 (find_solib_trampoline_target): Update.
8982 (minimal_symbol_upper_bound): Update.
8983 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8984 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8985 (mips_skip_pic_trampoline_code): Update.
8986 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8987 * objc-lang.c (selectors_info): Update.
8988 (classes_info): Update.
8989 (find_methods): Update.
8990 (find_imps): Update.
8991 (find_objc_msgsend): Update.
8992 * objfiles.c (objfile_relocate1): Update.
8993 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8994 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8995 * p-valprint.c (pascal_val_print): Update.
8996 * parse.c (write_exp_msymbol): Update.
8997 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8998 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8999 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9000 * printcmd.c (build_address_symbolic): Update.
9002 (address_info): Update.
9003 * proc-service.c (ps_pglobal_lookup): Update.
9004 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9005 (find_pc_sect_psymtab): Update.
9006 * python/py-framefilter.c (py_print_frame): Update.
9007 * ravenscar-thread.c (get_running_thread_id): Update.
9008 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9010 * remote.c (remote_check_symbols): Update.
9011 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9012 (rs6000_skip_trampoline_code): Update.
9013 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9014 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9015 * solib-dsbt.c (lm_base): Update.
9016 * solib-frv.c (lm_base): Update.
9018 * solib-irix.c (locate_base): Update.
9019 * solib-som.c (som_solib_create_inferior_hook): Update.
9020 (som_solib_desire_dynamic_linker_symbols): Update.
9021 (link_map_start): Update.
9022 * solib-spu.c (spu_enable_break): Update.
9023 (ocl_enable_break): Update.
9024 * solib-svr4.c (elf_locate_base): Update.
9025 (enable_break): Update.
9026 * spu-tdep.c (spu_get_overlay_table): Update.
9027 (spu_catch_start): Update.
9028 (flush_ea_cache): Update.
9029 * stabsread.c (define_symbol): Update.
9030 (scan_file_globals): Update.
9031 * stack.c (find_frame_funname): Update.
9032 (frame_info): Update.
9033 * symfile.c (simple_read_overlay_table): Update.
9034 (simple_overlay_update): Update.
9035 * symmisc.c (dump_msymbols): Update.
9036 * symtab.c (fixup_section): Update.
9037 (find_pc_sect_line): Update.
9038 (skip_prologue_sal): Update.
9039 (search_symbols): Update.
9040 (print_msymbol_info): Update.
9041 (rbreak_command): Update.
9042 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9043 (completion_list_objc_symbol): Update.
9044 (default_make_symbol_completion_list_break_on): Update.
9045 * tracepoint.c (scope_info): Update.
9046 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9047 (tui_get_begin_asm_address): Update.
9048 * valops.c (find_function_in_inferior): Update.
9049 * value.c (value_static_field): Update.
9050 (value_fn_field): Update.
9052 2014-02-26 Tom Tromey <tromey@redhat.com>
9054 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9055 bound minimal symbols. Move code that knows about minsym
9057 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9059 * minsyms.h (minimal_symbol_upper_bound): Declare.
9060 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9061 minimal_symbol_upper_bound.
9063 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9065 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9066 Use the type's name if its basic type does not have a tag.
9068 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9070 * dwarf2read.c (read_subrange_type): Add comment.
9072 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9074 * dwarf2read.c (update_enumeration_type_from_children): New
9075 function, mostly extracted from process_structure_scope.
9076 (read_enumeration_type): Call update_enumeration_type_from_children.
9077 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9078 and flag_flag_enum fields.
9080 2014-02-26 Pedro Alves <palves@redhat.com>
9082 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9083 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9084 to_xfer_partial method.
9086 2014-02-26 Pedro Alves <palves@redhat.com>
9088 * target.c (complete_target_initialization): Don't install
9089 default_xfer_partial as to_xfer_partial hook.
9091 (update_current_target): Don't INHERIT nor de_fault
9092 deprecated_xfer_memory. Delete de_fault macro.
9093 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9094 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9095 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9098 2014-02-26 Pedro Alves <palves@redhat.com>
9100 * go32-nat.c (my_write_child): New function.
9101 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9102 (go32_xfer_partial): New function.
9103 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9104 Instead install a to_xfer_partial hook.
9106 2014-02-26 Pedro Alves <palves@redhat.com>
9108 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9109 to_xfer_partial helper. Rewrite.
9110 (procfs_xfer_partial): New function.
9111 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9112 Install a to_xfer_partial hook.
9114 2014-02-26 Pedro Alves <palves@redhat.com>
9116 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9117 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9118 (m32r_xfer_partial): New function.
9119 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9120 Install a to_xfer_partial hook.
9122 2014-02-26 Pedro Alves <palves@redhat.com>
9124 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9126 (mips_xfer_partial): New function.
9127 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9128 hook. Install a to_xfer_partial hook.
9130 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9132 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9133 * gdbtypes.c (create_array_type_with_stride): New function,
9134 renaming create_array_type, but with an added parameter
9135 called "bit_stride".
9136 (create_array_type): Re-implement using
9137 create_array_type_with_stride.
9138 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9139 and DW_AT_bit_stride attributes.
9141 2014-02-26 Pedro Alves <palves@redhat.com>
9143 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9144 task-specific breakpoints.
9146 2014-02-25 Pedro Alves <palves@redhat.com>
9148 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9149 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9151 2014-02-25 Stan Shebs <stan@codesourcery.com>
9153 * defs.h: Annotate comments for Doxygen.
9155 2014-02-25 Tom Tromey <tromey@redhat.com>
9157 * target.h (target_ignore): Don't declare.
9158 * target.c (target_ignore): Remove.
9160 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9163 * auto-load.c (auto_load_objfile_script_1): Change filename to
9166 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9168 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9169 documentation. Adjust prototype to match the target_ops
9170 to_xfer_partial method. Adjust implementation accordingly.
9172 2014-02-25 Hui Zhu <hui@codesourcery.com>
9174 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9177 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9179 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9180 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9181 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9182 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9183 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9184 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9185 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9186 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9188 (rl78_register_type): Use a data pointer type for SP and
9189 new pseudo registers mentioned above. Use a 16 bit integer
9190 type for all other register pairs.
9191 (rl78_register_name, rl78_g10_register_name): Update for
9192 new pseudo registers.
9193 (rl78_pseudo_register_read): Likewise.
9194 (rl78_pseudo_register_write): Likewise.
9195 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9196 to the newly added pseudo registers.
9198 2014-02-24 Doug Evans <dje@google.com>
9200 * value.c (record_latest_value): Fix comment.
9201 * printcmd.c (print_command_1): Remove code to handle -1 return from
9202 record_latest_value.
9204 2014-02-24 Pedro Alves <palves@redhat.com>
9206 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9207 deprecated_xfer_memory hook.
9208 (procfs_xfer_partial): Call procfs_xfer_memory instead
9209 of the deprecated_xfer_memory target hook.
9210 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9213 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9215 * windows-nat.c (windows_xfer_shared_libraries): Return
9216 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9217 requested object is TARGET_OBJECT_LIBRARIES.
9219 2014-02-24 Yao Qi <yao@codesourcery.com>
9221 * target.h (enum target_xfer_status)
9222 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9223 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9225 * corefile.c (memory_error_message): User updated.
9226 * exec.c (section_table_read_available_memory): Likewise.
9227 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9228 * target.c (target_xfer_status_to_string): Likewise.
9229 (raw_memory_xfer_partial): Likewise.
9230 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9231 * valops.c (read_value_memory): Likewise.
9232 * exec.h: Update comments.
9234 2014-02-24 Yao Qi <yao@codesourcery.com>
9236 * target.c (target_xfer_status_to_string): Rename argument err
9238 * target.h (target_xfer_status_to_string): Update declaration.
9239 Replace target_xfer_error_to_string with
9240 target_xfer_status_to_string in comment.
9242 2014-02-24 Yao Qi <yao@codesourcery.com>
9244 * mips-linux-nat.c (super_close): Update its type.
9245 (mips_linux_close): Pass 'self' to super_close.
9247 2014-02-24 Yao Qi <yao@codesourcery.com>
9249 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9250 * corefile.c (read_memory): Adjusted.
9251 * target.c (target_write_with_progress): Adjusted.
9253 2014-02-23 Yao Qi <yao@codesourcery.com>
9257 2013-10-25 Yao Qi <yao@codesourcery.com>
9259 * remote.c (remote_traceframe_info): Return early if
9260 traceframe is not selected.
9262 2013-07-19 Yao Qi <yao@codesourcery.com>
9264 * target.c (update_current_target): Change the default action
9265 of 'to_traceframe_info' from tcomplain to return_zero.
9266 * target.h (struct target_ops) <to_traceframe_info>: Add more
9269 2014-02-23 Yao Qi <yao@codesourcery.com>
9271 * valops.c (read_value_memory): Rewrite it. Call
9272 target_xfer_partial in a loop.
9273 * exec.h (section_table_available_memory): Remove declaration.
9274 Move comments to ...
9275 * exec.c (section_table_available_memory): ... here. Make it
9278 2014-02-23 Yao Qi <yao@codesourcery.com>
9280 * exec.c (section_table_read_available_memory): New function.
9281 * exec.h (section_table_read_available_memory): Declare.
9282 * ctf.c (ctf_xfer_partial): Call
9283 section_table_read_available_memory.
9284 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9286 2014-02-23 Yao Qi <yao@codesourcery.com>
9288 * ctf.c (ctf_xfer_partial): Move code to ...
9289 * exec.c (exec_read_partial_read_only): ... it. New function.
9290 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9291 * tracefile.c: Include "exec.h".
9292 * exec.h (exec_read_partial_read_only): Declare.
9294 2014-02-23 Yao Qi <yao@codesourcery.com>
9296 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9297 (tfile_has_memory): Remove.
9298 (init_tfile_ops): Don't set fields to_has_all_memory and
9299 to_has_memory of tfile_ops.
9300 * tracefile.c (tracefile_has_all_memory): New function.
9301 (tracefile_has_memory): New function.
9302 (init_tracefile_ops): Initialize fields to_has_all_memory and
9303 to_has_memory of 'ops'.
9305 2014-02-23 Yao Qi <yao@codesourcery.com>
9307 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9308 (ctf_thread_alive, ctf_get_trace_status): Remove.
9309 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9311 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9312 (tfile_has_stack, tfile_has_registers): Remove.
9313 (tfile_thread_alive): Remove.
9314 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9316 * tracefile.c (tracefile_has_stack): New function.
9317 (tracefile_has_registers): New function.
9318 (tracefile_thread_alive): New function.
9319 (tracefile_get_trace_status): New function.
9320 (init_tracefile_ops): New function.
9321 * tracefile.h (init_tracefile_ops): Declare.
9323 2014-02-23 Yao Qi <yao@codesourcery.com>
9325 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9326 (O_LARGEFILE): Likewise.
9327 (tfile_ops): Likewise.
9328 (TRACE_HEADER_SIZE): Likewise.
9329 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9330 (cur_data_size): Likewise.
9331 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9332 (tfile_close, tfile_files_info): Likewise.
9333 (tfile_get_trace_status): Likewise.
9334 (tfile_get_tracepoint_status): Likewise.
9335 (tfile_get_traceframe_address): Likewise.
9336 (tfile_trace_find, match_blocktype): Likewise.
9337 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9338 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9339 (tfile_get_trace_state_variable_value): Likewise.
9340 (tfile_has_all_memory, tfile_has_memory): Likewise.
9341 (tfile_has_stack, tfile_has_registers): Likewise.
9342 (tfile_thread_alive, build_traceframe_info): Likewise.
9343 (tfile_traceframe_info, init_tfile_ops): Likewise.
9344 (_initialize_tracepoint): Don't call init_tfile_ops
9345 and add_target_with_completer.
9346 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9347 exec.h, completer.h and filenames.h.
9348 (_initialize_tracefile_tfile): New function.
9350 2014-02-23 Yao Qi <yao@codesourcery.com>
9352 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9354 (HFILES_NO_SRCDIR): Add tracefile.h.
9355 * ctf.c: Include "tracefile.h".
9356 * tracefile.h: New file.
9357 * tracefile.c: New file
9358 * tracefile-tfile.c: New file.
9359 * tracepoint.c: Include "tracefile.h".
9360 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9361 (stop_reason_names): Add const.
9362 (trace_file_writer_xfree): Move it to tracefile.c.
9363 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9364 (trace_save_ctf): Likewise.
9365 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9366 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9367 (tfile_write_header, tfile_write_regblock_type): Likewise.
9368 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9369 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9370 (tfile_write_raw_data, tfile_end): Likewise.
9371 (tfile_trace_file_writer_new): Likewise.
9372 (free_uploaded_tp): Make it extern.
9373 (free_uploaded_tsv): Make it extern.
9374 (_initialize_tracepoint): Move code to register command 'tsave'
9376 * tracepoint.h (stop_reason_names): Declare.
9377 (struct trace_frame_write_ops): Move it to tracefile.h.
9378 (struct trace_file_write_ops): Likewise.
9379 (struct trace_file_writer): Likewise.
9380 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9382 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9385 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9387 (get_cores_used_by_process): New parameter num_cores, use it.
9388 (linux_xfer_osdata_processes): Pass num_cores to it.
9389 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9392 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9394 * target.c (memory_xfer_partial): Fix length arg in call to
9395 breakpoint_xfer_memory.
9397 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9400 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9401 number comes after the + or - signs. Adjust length of register
9402 name to be extracted.
9404 2014-02-20 Tom Tromey <tromey@redhat.com>
9406 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9407 (ada_varobj_ops): Mark "extern".
9409 2014-02-20 Tom Tromey <tromey@redhat.com>
9411 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9413 2014-02-20 Doug Evans <xdje42@gmail.com>
9415 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9416 All callers updated.
9417 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9418 All callers updated.
9419 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9420 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9422 2014-02-20 lin zuojian <manjian2006@gmail.com>
9423 Joel Brobecker <brobecker@adacore.com>
9424 Doug Evans <xdje42@gmail.com>
9427 * dwarf2read.c (struct die_info): New member in_process.
9428 (reset_die_in_process): New function.
9429 (process_die): Set it at the start, reset when returning.
9430 (inherit_abstract_dies): Only call process_die if origin_child_die
9431 not already being processed.
9433 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9435 * windows-nat.c (handle_unload_dll): Add function documentation.
9436 (do_initial_windows_stuff): Add comment explaining why we wait
9437 until after inferior initialization has finished before
9438 processing all DLLs.
9440 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9442 * windows-nat.c (get_module_name): Delete.
9443 (windows_get_exec_module_filename): New function, mostly
9444 inspired from get_module_name.
9445 (windows_pid_to_exec_file): Replace call to get_module_name
9446 by call to windows_get_exec_module_filename.
9448 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9450 * windows-nat.c (handle_load_dll): Rewrite this function's
9451 introductory comment. Remove code using get_module_name
9452 to get the DLL's name.
9454 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9456 * windows-nat.c (get_windows_debug_event): Ignore
9457 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9458 if windows_initialization_done == 0.
9459 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9460 Adjust implementation to always load all DLLs.
9461 (do_initial_windows_stuff): Replace call to
9462 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9464 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9466 * windows-nat.c (_initialize_windows_nat): Deprecate the
9467 "dll-symbols" command. Turn the "add-shared-symbol-files"
9468 and "assf" aliases into commands, and deprecate them as well.
9469 * NEWS: Add entry explaining that "dll-symbols" and its two
9470 aliases are now deprecated.
9472 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9474 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9475 new-line in debug string. Remove trailing spaces.
9477 2014-02-19 Stan Shebs <stan@codesourcery.com>
9479 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9481 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9483 * NEWS: Add entry for the new feature
9484 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9487 2014-02-19 Stan Shebs <stan@codesourcery.com>
9489 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9491 2014-02-19 Pedro Alves <palves@redhat.com>
9493 * common/ptid.h (struct ptid): Mention that process_stratum
9494 targets should prefer ptid.lwp.
9496 2014-02-19 Pedro Alves <palves@redhat.com>
9498 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9499 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9500 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9501 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9502 store remote thread ids rather than ptid.tid.
9503 (_initialize_remote): Adjust.
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target.c (target_get_unwinder): Rewrite.
9508 (target_get_tailcall_unwinder): Rewrite.
9509 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9510 (record_btrace_to_get_tailcall_unwinder): New function.
9511 (init_record_btrace_ops): Update.
9512 * target.h (struct target_ops) <to_get_unwinder,
9513 to_get_tailcall_unwinder>: Now function pointers. Use
9514 TARGET_DEFAULT_RETURN.
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9518 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9520 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9522 2014-02-19 Tom Tromey <tromey@redhat.com>
9524 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9526 * target-delegates.c: Rebuild.
9527 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9528 TARGET_DEFAULT_FUNC.
9529 * target.c (default_target_decr_pc_after_break): Rename from
9530 forward_target_decr_pc_after_break. Simplify.
9531 (target_decr_pc_after_break): Rely on delegation.
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9535 * target.c (update_current_target): Do not INHERIT to_doc or
9536 to_magic. Do not de_fault to_open or to_close.
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * gcore.h (objfile_find_memory_regions): Declare.
9541 * gcore.c (objfile_find_memory_regions): No longer static. Add
9543 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9544 * exec.c: Include gcore.h.
9545 (exec_set_find_memory_regions): Remove.
9546 (exec_find_memory_regions): Remove.
9547 (exec_do_find_memory_regions): Remove.
9548 (init_exec_ops): Update.
9549 * defs.h (exec_set_find_memory_regions): Remove.
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target-delegates.c: Rebuild.
9554 * target.h (struct target_ops) <to_extra_thread_info,
9555 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9556 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9557 not 0, in TARGET_DEFAULT_RETURN.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target.c (complete_target_initialization): Remove casts. Use
9562 return_zero_has_execution.
9563 (return_zero): Add "ignore" argument.
9564 (return_zero_has_execution): New function.
9565 (init_dummy_target): Remove casts. Use
9566 return_zero_has_execution.
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9570 * target.c (update_current_target): Update comments. Do not
9573 2014-02-19 Tom Tromey <tromey@redhat.com>
9575 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9577 * corelow.c (core_read_description): Delegate when needed.
9578 * remote.c (remote_read_description): Delegate when needed.
9579 * target-delegates.c: Rebuild.
9580 * target.c (target_read_description): Rewrite.
9581 * target.h (struct target_ops) <to_read_description>: Update
9582 comment. Use TARGET_DEFAULT_RETURN.
9584 2014-02-19 Tom Tromey <tromey@redhat.com>
9586 * target-delegates.c: Rebuild.
9587 * target.c (update_current_target): Don't inherit or default
9589 (find_default_run_target): Check against delegate_can_run.
9590 * target.h (struct target_ops) <to_can_run>: Use
9591 TARGET_DEFAULT_RETURN.
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target-delegates.c: Rebuild.
9596 * target.c (target_disconnect): Unconditionally delegate.
9597 * target.h (struct target_ops) <to_disconnect>: Use
9598 TARGET_DEFAULT_NORETURN.
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * record.c (record_stop): Unconditionally delegate.
9603 * target-delegates.c: Rebuild.
9604 * target.c (target_stop_recording): Unconditionally delegate.
9605 * target.h (struct target_ops) <to_stop_recording>: Use
9606 TARGET_DEFAULT_IGNORE.
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target-delegates.c: Rebuild.
9611 * target.c (target_enable_btrace): Unconditionally delegate.
9612 * target.h (struct target_ops) <to_enable_btrace>: Use
9613 TARGET_DEFAULT_NORETURN.
9615 2014-02-19 Tom Tromey <tromey@redhat.com>
9617 * target-delegates.c: Rebuild.
9618 * target.c (target_read_btrace): Unconditionally delegate.
9619 * target.h (struct target_ops) <to_read_btrace>: Use
9620 TARGET_DEFAULT_NORETURN.
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9624 * target-delegates.c: Rebuild.
9625 * target.c (target_teardown_btrace): Unconditionally delegate.
9626 * target.h (struct target_ops) <to_teardown_btrace>: Use
9627 TARGET_DEFAULT_NORETURN.
9629 2014-02-19 Tom Tromey <tromey@redhat.com>
9631 * target-delegates.c: Rebuild.
9632 * target.c (target_disable_btrace): Unconditionally delegate.
9633 * target.h (struct target_ops) <to_disable_btrace>: Use
9634 TARGET_DEFAULT_NORETURN.
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9638 * target-delegates.c: Rebuild.
9639 * target.c (default_search_memory): New function.
9640 (simple_search_memory): Update comment.
9641 (target_search_memory): Unconditionally delegate.
9642 * target.h (struct target_ops) <to_search_memory>: Use
9643 TARGET_DEFAULT_FUNC.
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9647 * auxv.c (default_auxv_parse): No longer static.
9648 (target_auxv_parse): Unconditionally delegate.
9649 * auxv.h (default_auxv_parse): Declare.
9650 * target-delegates.c: Rebuild.
9651 * target.c: Include auxv.h.
9652 * target.h (struct target_ops) <to_auxv_parse>: Use
9653 TARGET_DEFAULT_FUNC.
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9657 * target-delegates.c: Rebuild.
9658 * target.c (target_memory_map): Unconditionally delegate.
9659 * target.h (struct target_ops) <to_memory_map>: Use
9660 TARGET_DEFAULT_RETURN.
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9664 * target-delegates.c: Rebuild.
9665 * target.c (target_thread_alive): Unconditionally delegate.
9666 * target.h (struct target_ops) <to_thread_alive>: Use
9667 TARGET_DEFAULT_RETURN.
9669 2014-02-19 Tom Tromey <tromey@redhat.com>
9671 * target-delegates.c: Rebuild.
9672 * target.c (target_save_record): Unconditionally delegate.
9673 * target.h (struct target_ops) <to_save_record>: Use
9674 TARGET_DEFAULT_NORETURN.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target-delegates.c: Rebuild.
9679 * target.c (target_delete_record): Unconditionally delegate.
9680 * target.h (struct target_ops) <to_delete_record>: Use
9681 TARGET_DEFAULT_NORETURN.
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target-delegates.c: Rebuild.
9686 * target.c (target_record_is_replaying): Unconditionally
9688 * target.h (struct target_ops) <to_record_is_replaying>: Use
9689 TARGET_DEFAULT_RETURN.
9691 2014-02-19 Tom Tromey <tromey@redhat.com>
9693 * target-delegates.c: Rebuild.
9694 * target.c (target_goto_record_begin): Unconditionally delegate.
9695 * target.h (struct target_ops) <to_goto_record_begin>: Use
9696 TARGET_DEFAULT_NORETURN.
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9700 * target-delegates.c: Rebuild.
9701 * target.c (target_goto_record_end): Unconditionally delegate.
9702 * target.h (struct target_ops) <to_goto_record_end>: Use
9703 TARGET_DEFAULT_NORETURN.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target-delegates.c: Rebuild.
9708 * target.c (target_goto_record): Unconditionally delegate.
9709 * target.h (struct target_ops) <to_goto_record>: Use
9710 TARGET_DEFAULT_NORETURN.
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9714 * target-delegates.c: Rebuild.
9715 * target.c (target_insn_history): Unconditionally delegate.
9716 * target.h (struct target_ops) <to_insn_history>: Use
9717 TARGET_DEFAULT_NORETURN.
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9721 * target-delegates.c: Rebuild.
9722 * target.c (target_insn_history_from): Unconditionally delegate.
9723 * target.h (struct target_ops) <to_insn_history_from>: Use
9724 TARGET_DEFAULT_NORETURN.
9726 2014-02-19 Tom Tromey <tromey@redhat.com>
9728 * target-delegates.c: Rebuild.
9729 * target.c (target_insn_history_range): Unconditionally delegate.
9730 * target.h (struct target_ops) <to_insn_history_range>: Use
9731 TARGET_DEFAULT_NORETURN.
9733 2014-02-19 Tom Tromey <tromey@redhat.com>
9735 * target-delegates.c: Rebuild.
9736 * target.c (target_call_history): Unconditionally delegate.
9737 * target.h (struct target_ops) <to_call_history>: Use
9738 TARGET_DEFAULT_NORETURN.
9740 2014-02-19 Tom Tromey <tromey@redhat.com>
9742 * target-delegates.c: Rebuild.
9743 * target.c (target_call_history_from): Unconditionally delegate.
9744 * target.h (struct target_ops) <to_call_history_from>: Use
9745 TARGET_DEFAULT_NORETURN.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target-delegates.c: Rebuild.
9750 * target.c (target_call_history_range): Unconditionally delegate.
9751 * target.h (struct target_ops) <to_call_history_range>: Use
9752 TARGET_DEFAULT_NORETURN.
9754 2014-02-19 Tom Tromey <tromey@redhat.com>
9756 * target-delegates.c: Rebuild.
9757 * target.c (target_verify_memory): Unconditionally delegate.
9758 * target.h (struct target_ops) <to_verify_memory>: Use
9759 TARGET_DEFAULT_NORETURN.
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target-delegates.c: Rebuild.
9764 * target.c (target_core_of_thread): Unconditionally delegate.
9765 * target.h (struct target_ops) <to_core_of_thread>: Use
9766 TARGET_DEFAULT_RETURN.
9768 2014-02-19 Tom Tromey <tromey@redhat.com>
9770 * target-delegates.c: Rebuild.
9771 * target.c (target_flash_done): Unconditionally delegate.
9772 * target.h (struct target_ops) <to_flash_done>: Use
9773 TARGET_DEFAULT_NORETURN.
9775 2014-02-19 Tom Tromey <tromey@redhat.com>
9777 * target-delegates.c: Rebuild.
9778 * target.c (target_flash_erase): Unconditionally delegate.
9779 * target.h (struct target_ops) <to_flash_erase>: Use
9780 TARGET_DEFAULT_NORETURN.
9782 2014-02-19 Tom Tromey <tromey@redhat.com>
9784 * target-delegates.c: Rebuild.
9785 * target.c (target_get_section_table): Unconditionally delegate.
9786 * target.h (struct target_ops) <to_get_section_table>: Use
9787 TARGET_DEFAULT_RETURN.
9789 2014-02-19 Tom Tromey <tromey@redhat.com>
9791 * target-delegates.c: Rebuild.
9792 * target.c (target_pid_to_str): Unconditionally delegate.
9793 (init_dummy_target): Don't initialize to_pid_to_str.
9794 (default_pid_to_str): Rename from dummy_pid_to_str.
9795 * target.h (struct target_ops) <to_pid_to_str>: Use
9796 TARGET_DEFAULT_FUNC.
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9800 * target-delegates.c: Rebuild.
9801 * target.c (target_find_new_threads): Unconditionally delegate.
9802 * target.h (struct target_ops) <to_find_new_threads>: Use
9803 TARGET_DEFAULT_RETURN.
9805 2014-02-19 Tom Tromey <tromey@redhat.com>
9807 * target-delegates.c: Rebuild.
9808 * target.c (target_program_signals): Unconditionally delegate.
9809 * target.h (struct target_ops) <to_program_signals>: Use
9810 TARGET_DEFAULT_IGNORE.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target-delegates.c: Rebuild.
9815 * target.c (target_pass_signals): Unconditionally delegate.
9816 * target.h (struct target_ops) <to_pass_signals>: Use
9817 TARGET_DEFAULT_IGNORE.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target-delegates.c: Rebuild.
9822 * target.c (default_mourn_inferior): New function.
9823 (target_mourn_inferior): Unconditionally delegate.
9824 * target.h (struct target_ops) <to_mourn_inferior>: Use
9825 TARGET_DEFAULT_FUNC.
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target-delegates.c: Rebuild.
9830 * target.c (default_follow_fork): New function.
9831 (target_follow_fork): Unconditionally delegate.
9832 * target.h (struct target_ops) <to_follow_fork>: Use
9833 TARGET_DEFAULT_FUNC.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target-delegates.c: Rebuild.
9838 * target.c (target_kill): Unconditionally delegate.
9839 * target.h (struct target_ops) <to_kill>: Use
9840 TARGET_DEFAULT_NORETURN.
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9844 * target-delegates.c: Rebuild.
9845 * target.c (target_masked_watch_num_registers): Unconditionally
9847 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9848 Use TARGET_DEFAULT_RETURN.
9850 2014-02-19 Tom Tromey <tromey@redhat.com>
9852 * target-delegates.c: Rebuild.
9853 * target.c (target_remove_mask_watchpoint): Unconditionally
9855 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9856 TARGET_DEFAULT_RETURN.
9858 2014-02-19 Tom Tromey <tromey@redhat.com>
9860 * target-delegates.c: Rebuild.
9861 * target.c (target_insert_mask_watchpoint): Unconditionally
9863 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9864 TARGET_DEFAULT_RETURN.
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9868 * target-delegates.c: Rebuild.
9869 * target.c (target_ranged_break_num_registers): Unconditionally
9871 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9872 Use TARGET_DEFAULT_RETURN.
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9876 * target-delegates.c: Rebuild.
9877 * target.c (target_fetch_registers): Unconditionally delegate.
9878 * target.h (struct target_ops) <to_fetch_registers>: Use
9879 TARGET_DEFAULT_NORETURN.
9881 2014-02-19 Tom Tromey <tromey@redhat.com>
9883 * target-delegates.c: Rebuild.
9884 * target.c (update_current_target): Don't inherit or default
9886 * target.h (struct target_ops) <to_stop>: Use
9887 TARGET_DEFAULT_IGNORE.
9889 2014-02-19 Tom Tromey <tromey@redhat.com>
9891 * target-delegates.c: Rebuild.
9892 * target.c (update_current_target): Don't inherit or default
9893 to_can_run_breakpoint_commands.
9894 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9895 Use TARGET_DEFAULT_RETURN.
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * target-delegates.c: Rebuild.
9900 * target.c (update_current_target): Don't inherit or default
9901 to_supports_evaluation_of_breakpoint_conditions.
9902 * target.h (struct target_ops)
9903 <to_supports_evaluation_of_breakpoint_conditions>: Use
9904 TARGET_DEFAULT_RETURN.
9906 2014-02-19 Tom Tromey <tromey@redhat.com>
9908 * target-delegates.c: Rebuild.
9909 * target.c (update_current_target): Don't inherit or default
9910 to_augmented_libraries_svr4_read.
9911 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9912 Use TARGET_DEFAULT_RETURN.
9914 2014-02-19 Tom Tromey <tromey@redhat.com>
9916 * target-delegates.c: Rebuild.
9917 * target.c (update_current_target): Don't inherit or default
9919 * target.h (struct target_ops) <to_can_use_agent>: Use
9920 TARGET_DEFAULT_RETURN.
9922 2014-02-19 Tom Tromey <tromey@redhat.com>
9924 * target-delegates.c: Rebuild.
9925 * target.c (update_current_target): Don't inherit or default
9927 * target.h (struct target_ops) <to_use_agent>: Use
9928 TARGET_DEFAULT_NORETURN.
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9932 * target-delegates.c: Rebuild.
9933 * target.c (update_current_target): Don't inherit or default
9935 (return_null): Remove.
9936 * target.h (struct target_ops) <to_traceframe_info>: Use
9937 TARGET_DEFAULT_RETURN.
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9941 * target-delegates.c: Rebuild.
9942 * target.c (update_current_target): Don't inherit or default
9943 to_static_tracepoint_markers_by_strid.
9944 * target.h (struct target_ops)
9945 <to_static_tracepoint_markers_by_strid>: Use
9946 TARGET_DEFAULT_NORETURN.
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9950 * target-delegates.c: Rebuild.
9951 * target.c (update_current_target): Don't inherit or default
9952 to_static_tracepoint_marker_at.
9953 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9954 Use TARGET_DEFAULT_RETURN.
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * target-delegates.c: Rebuild.
9959 * target.c (update_current_target): Don't inherit or default
9961 * target.h (struct target_ops) <to_set_permissions>: Use
9962 TARGET_DEFAULT_IGNORE.
9964 2014-02-19 Tom Tromey <tromey@redhat.com>
9966 * target-delegates.c: Rebuild.
9967 * target.c (update_current_target): Don't inherit or default
9969 * target.h (struct target_ops) <to_get_tib_address>: Use
9970 TARGET_DEFAULT_NORETURN.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target-delegates.c: Rebuild.
9975 * target.c (update_current_target): Don't inherit or default
9977 * target.h (struct target_ops) <to_set_trace_notes>: Use
9978 TARGET_DEFAULT_RETURN.
9980 2014-02-19 Tom Tromey <tromey@redhat.com>
9982 * target-delegates.c: Rebuild.
9983 * target.c (update_current_target): Don't initialize
9984 to_set_trace_buffer_size.
9985 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9986 TARGET_DEFAULT_IGNORE.
9988 2014-02-19 Tom Tromey <tromey@redhat.com>
9990 * target-delegates.c: Rebuild.
9991 * target.c (update_current_target): Don't inherit or default
9992 to_set_circular_trace_buffer.
9993 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9994 TARGET_DEFAULT_IGNORE.
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target-delegates.c: Rebuild.
9999 * target.c (update_current_target): Don't inherit or default
10000 to_set_disconnected_tracing.
10001 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10002 TARGET_DEFAULT_IGNORE.
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10006 * target-delegates.c: Rebuild.
10007 * target.c (update_current_target): Don't inherit or default
10008 to_get_min_fast_tracepoint_insn_len.
10009 (return_minus_one): Remove.
10010 * target.h (struct target_ops)
10011 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10013 2014-02-19 Tom Tromey <tromey@redhat.com>
10015 * target-delegates.c: Rebuild.
10016 * target.c (update_current_target): Don't inherit or default
10017 to_get_raw_trace_data.
10018 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10019 TARGET_DEFAULT_NORETURN.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target-delegates.c: Rebuild.
10024 * target.c (update_current_target): Don't inherit or default
10025 to_upload_trace_state_variables.
10026 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10027 Use TARGET_DEFAULT_RETURN.
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10031 * target-delegates.c: Rebuild.
10032 * target.c (update_current_target): Don't inherit or default
10033 to_upload_tracepoints.
10034 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10035 TARGET_DEFAULT_RETURN.
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target-delegates.c: Rebuild.
10040 * target.c (update_current_target): Don't inherit or default
10041 to_save_trace_data.
10042 * target.h (struct target_ops) <to_save_trace_data>: Use
10043 TARGET_DEFAULT_NORETURN.
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10047 * target-delegates.c: Rebuild.
10048 * target.c (update_current_target): Don't inherit or default
10049 to_get_trace_state_variable_value.
10050 * target.h (struct target_ops)
10051 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target-delegates.c: Rebuild.
10056 * target.c (update_current_target): Don't inherit or default
10058 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target-delegates.c: Rebuild.
10063 * target.c (update_current_target): Don't inherit or default
10065 * target.h (struct target_ops) <to_trace_stop>: Use
10066 TARGET_DEFAULT_NORETURN.
10068 2014-02-19 Tom Tromey <tromey@redhat.com>
10070 * target-delegates.c: Rebuild.
10071 * target.c (update_current_target): Don't inherit or default
10072 to_get_tracepoint_status.
10073 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10074 TARGET_DEFAULT_NORETURN.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target-delegates.c: Rebuild.
10079 * target.c (update_current_target): Don't inherit or default
10080 to_get_trace_status.
10081 * target.h (struct target_ops) <to_get_trace_status>: Use
10082 TARGET_DEFAULT_RETURN.
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
10089 * target.h (struct target_ops) <to_trace_start>: Use
10090 TARGET_DEFAULT_NORETURN.
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target-delegates.c: Rebuild.
10095 * target.c (update_current_target): Don't inherit or default
10096 to_trace_set_readonly_regions.
10097 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10098 Use TARGET_DEFAULT_NORETURN.
10100 2014-02-19 Tom Tromey <tromey@redhat.com>
10102 * target-delegates.c: Rebuild.
10103 * target.c (update_current_target): Don't inherit or default
10104 to_disable_tracepoint.
10105 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10106 TARGET_DEFAULT_NORETURN.
10108 2014-02-19 Tom Tromey <tromey@redhat.com>
10110 * target-delegates.c: Rebuild.
10111 * target.c (update_current_target): Don't inherit or default
10112 to_enable_tracepoint.
10113 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10114 TARGET_DEFAULT_NORETURN.
10116 2014-02-19 Tom Tromey <tromey@redhat.com>
10118 * target-delegates.c: Rebuild.
10119 * target.c (update_current_target): Don't inherit or default
10120 to_download_trace_state_variable.
10121 * target.h (struct target_ops) <to_download_trace_state_variable>:
10122 Use TARGET_DEFAULT_NORETURN.
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10126 * target-delegates.c: Rebuild.
10127 * target.c (update_current_target): Don't inherit or default
10128 to_can_download_tracepoint.
10129 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10130 TARGET_DEFAULT_RETURN.
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10134 * target-delegates.c: Rebuild.
10135 * target.c (update_current_target): Don't inherit or default
10136 to_download_tracepoint.
10137 * target.h (struct target_ops) <to_download_tracepoint>: Use
10138 TARGET_DEFAULT_NORETURN.
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10142 * target-delegates.c: Rebuild.
10143 * target.c (update_current_target): Don't inherit or default
10145 * target.h (struct target_ops) <to_trace_init>: Use
10146 TARGET_DEFAULT_RETURN.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * target-delegates.c: Rebuild.
10151 * target.c (update_current_target): Don't inherit or default
10152 to_supports_string_tracing.
10153 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10154 TARGET_DEFAULT_RETURN.
10156 2014-02-19 Tom Tromey <tromey@redhat.com>
10158 * target-delegates.c: Rebuild.
10159 * target.c (update_current_target): Don't inherit or default
10160 to_supports_enable_disable_tracepoint.
10161 * target.h (struct target_ops)
10162 <to_supports_enable_disable_tracepoint>: Use
10163 TARGET_DEFAULT_RETURN.
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10167 * target-delegates.c: Rebuild.
10168 * target.c (update_current_target): Don't inherit or default
10169 to_supports_multi_process.
10170 * target.h (struct target_ops) <to_supports_multi_process>: Use
10171 TARGET_DEFAULT_RETURN.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target-delegates.c: Rebuild.
10176 * target.c (update_current_target): Don't inherit or default
10177 to_get_ada_task_ptid.
10178 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10179 TARGET_DEFAULT_FUNC.
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10183 * target-delegates.c: Rebuild.
10184 * target.c (update_current_target): Don't inherit or default
10185 to_thread_architecture.
10186 * target.h (struct target_ops) <to_thread_architecture>: Use
10187 TARGET_DEFAULT_FUNC.
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10191 * target-delegates.c: Rebuild.
10192 * target.c (update_current_target): Don't inherit or default
10193 to_execution_direction.
10194 * target.h (struct target_ops) <to_execution_direction>: Use
10195 TARGET_DEFAULT_FUNC.
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10199 * target-delegates.c: Rebuild.
10200 * target.c (update_current_target): Don't inherit or default
10201 to_can_execute_reverse.
10202 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10203 TARGET_DEFAULT_RETURN.
10204 (target_can_execute_reverse): Unconditionally delegate.
10206 2014-02-19 Tom Tromey <tromey@redhat.com>
10208 * target-delegates.c: Rebuild.
10209 * target.c (update_current_target): Don't inherit or default
10211 (dummy_goto_bookmark): Remove.
10212 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10213 * target.h (struct target_ops) <to_goto_bookmark>: Use
10214 TARGET_DEFAULT_NORETURN.
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10218 * target-delegates.c: Rebuild.
10219 * target.c (update_current_target): Don't inherit or default
10221 (dummy_get_bookmark): Remove.
10222 (init_dummy_target): Don't inherit or default to_get_bookmark.
10223 * target.h (struct target_ops) <to_get_bookmark>: Use
10224 TARGET_DEFAULT_NORETURN
10226 2014-02-19 Tom Tromey <tromey@redhat.com>
10228 * target-delegates.c: Rebuild.
10229 * target.c (update_current_target): Don't inherit or default
10230 to_make_corefile_notes.
10231 (init_dummy_target): Don't initialize to_make_corefile_notes.
10232 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10233 TARGET_DEFAULT_FUNC.
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target-delegates.c: Rebuild.
10238 * target.c (update_current_target): Don't inherit or default
10239 to_find_memory_regions.
10240 (init_dummy_target): Don't initialize to_find_memory_regions.
10241 * target.h (struct target_ops) <to_find_memory_regions>: Use
10242 TARGET_DEFAULT_FUNC.
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10246 * target-delegates.c: Rebuild.
10247 * target.c (update_current_target): Don't inherit or default
10249 * target.h (struct target_ops) <to_log_command>: Use
10250 TARGET_DEFAULT_IGNORE.
10251 (target_log_command): Unconditionally delegate.
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10255 * target-delegates.c: Rebuild.
10256 * target.c (update_current_target): Don't inherit or default
10257 to_pid_to_exec_file.
10258 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10259 TARGET_DEFAULT_RETURN.
10261 2014-02-19 Tom Tromey <tromey@redhat.com>
10263 * target-delegates.c: Rebuild.
10264 * target.c (update_current_target): Don't inherit or default
10266 (target_thread_name): Unconditionally delegate.
10267 * target.h (struct target_ops) <to_thread_name>: Use
10268 TARGET_DEFAULT_RETURN.
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10272 * target-delegates.c: Rebuild.
10273 * target.c (update_current_target): Don't inherit or default
10274 to_extra_thread_info.
10275 * target.h (struct target_ops) <to_extra_thread_info>: Use
10276 TARGET_DEFAULT_RETURN.
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10280 * target-delegates.c: Rebuild.
10281 * target.c (update_current_target): Don't inherit or default
10283 * target.h (struct target_ops) <to_has_exited>: Use
10284 TARGET_DEFAULT_RETURN..
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10288 * target-delegates.c: Rebuild.
10289 * target.c (update_current_target): Don't inherit or default
10290 to_set_syscall_catchpoint.
10291 (return_one): Remove.
10292 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10293 TARGET_DEFAULT_RETURN.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target-delegates.c: Rebuild.
10298 * target.c (update_current_target): Don't inherit or default
10299 to_insert_exec_catchpoint.
10300 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10301 TARGET_DEFAULT_RETURN.
10303 2014-01-08 Tom Tromey <tromey@redhat.com>
10305 * target-delegates.c: Rebuild.
10306 * target.c (update_current_target): Don't inherit or default
10307 to_insert_exec_catchpoint.
10308 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10309 TARGET_DEFAULT_RETURN.
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10313 * target-delegates.c: Rebuild.
10314 * target.c (update_current_target): Don't inherit or default
10315 to_remove_vfork_catchpoint.
10316 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10317 TARGET_DEFAULT_RETURN.
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * target-delegates.c: Rebuild.
10322 * target.c (update_current_target): Don't inherit or default
10323 to_insert_vfork_catchpoint.
10324 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10325 TARGET_DEFAULT_RETURN.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target-delegates.c: Rebuild.
10330 * target.c (update_current_target): Don't inherit or default
10331 to_remove_fork_catchpoint.
10332 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10333 TARGET_DEFAULT_RETURN.
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10337 * target-delegates.c: Rebuild.
10338 * target.c (update_current_target): Don't inherit or default
10339 to_insert_fork_catchpoint.
10340 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10341 TARGET_DEFAULT_RETURN.
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10345 * target-delegates.c: Rebuild.
10346 * target.c (update_current_target): Don't inherit or default
10347 to_post_startup_inferior.
10348 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10349 TARGET_DEFAULT_IGNORE.
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10353 * target-delegates.c: Rebuild.
10354 * target.c (update_current_target): Don't inherit or default
10356 * target.h (struct target_ops) <to_load>: Use
10357 TARGET_DEFAULT_NORETURN.
10359 2014-02-19 Tom Tromey <tromey@redhat.com>
10361 * target-delegates.c: Rebuild.
10362 * target.c (update_current_target): Don't inherit or default
10364 * target.h (struct target_ops) <to_terminal_info>: Use
10365 TARGET_DEFAULT_FUNC.
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10369 * target-delegates.c: Rebuild.
10370 * target.c (update_current_target): Don't inherit or default
10371 to_terminal_save_ours.
10372 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10373 TARGET_DEFAULT_IGNORE.
10375 2014-02-19 Tom Tromey <tromey@redhat.com>
10377 * target-delegates.c: Rebuild.
10378 * target.c (update_current_target): Don't inherit or default
10380 * target.h (struct target_ops) <to_terminal_ours>: Use
10381 TARGET_DEFAULT_IGNORE.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target-delegates.c: Rebuild.
10386 * target.c (update_current_target): Don't inherit or default
10387 to_terminal_ours_for_output.
10388 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10389 TARGET_DEFAULT_IGNORE.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * target-delegates.c: Rebuild.
10394 * target.c (update_current_target): Don't inherit or default
10395 to_terminal_inferior.
10396 * target.h (struct target_ops) <to_terminal_inferior>: Use
10397 TARGET_DEFAULT_IGNORE.
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10401 * target-delegates.c: Rebuild.
10402 * target.c (update_current_target): Don't inherit or default
10404 * target.h (struct target_ops) <to_terminal_init>: Use
10405 TARGET_DEFAULT_IGNORE.
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10409 * target-delegates.c: Rebuild.
10410 * target.c (update_current_target): Don't inherit or default
10411 to_can_accel_watchpoint_condition.
10412 * target.h (struct target_ops)
10413 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10417 * target-delegates.c: Rebuild.
10418 * target.c (update_current_target): Don't inherit or default
10419 to_region_ok_for_hw_watchpoint.
10420 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10421 Use TARGET_DEFAULT_FUNC.
10423 2014-02-19 Tom Tromey <tromey@redhat.com>
10425 * target-delegates.c: Rebuild.
10426 * target.c (update_current_target): Don't inherit or default
10427 to_watchpoint_addr_within_range.
10428 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10429 Use TARGET_DEFAULT_FUNC.
10431 2014-02-19 Tom Tromey <tromey@redhat.com>
10433 * target-delegates.c: Rebuild.
10434 * target.c (update_current_target): Don't inherit or default
10435 to_remove_watchpoint.
10436 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10437 TARGET_DEFAULT_NORETURN.
10439 2014-02-19 Tom Tromey <tromey@redhat.com>
10441 * target-delegates.c: Rebuild.
10442 * target.c (update_current_target): Don't inherit or default
10443 to_insert_watchpoint.
10444 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10445 TARGET_DEFAULT_RETURN.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target-delegates.c: Rebuild.
10450 * target.c (update_current_target): Don't inherit or default
10451 to_remove_hw_breakpoint.
10452 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10453 TARGET_DEFAULT_RETURN.
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10457 * target-delegates.c: Rebuild.
10458 * target.c (update_current_target): Don't inherit or default
10459 to_insert_hw_breakpoint.
10460 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10461 TARGET_DEFAULT_RETURN.
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10465 * target-delegates.c: Rebuild.
10466 * target.c (update_current_target): Don't inherit or default
10467 to_can_use_hw_breakpoint.
10468 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10469 TARGET_DEFAULT_RETURN.
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10473 * target-delegates.c: Rebuild.
10474 * target.c (update_current_target): Don't inherit or default
10476 * target.h (struct target_ops) <to_files_info>: Use
10477 TARGET_DEFAULT_IGNORE.
10479 2014-02-19 Tom Tromey <tromey@redhat.com>
10481 * target-delegates.c: Rebuild.
10482 * target.c (update_current_target): Don't inherit or default
10484 * target.h (struct target_ops) <to_store>: Use
10485 TARGET_DEFAULT_NORETURN.
10487 2014-02-19 Tom Tromey <tromey@redhat.com>
10489 * target-delegates.c: Rebuild.
10490 * target.c (update_current_target): Don't inherit or default
10492 * target.h (struct target_ops) <to_post_attach>: Use
10493 TARGET_DEFAULT_IGNORE.
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * target-delegates.c: Rebuild.
10498 * target.c (update_current_target): Don't inherit or default
10500 (default_rcmd): New function.
10501 (do_monitor_command): Unconditionally delegate.
10502 * target.h (struct target_ops) <to_rmcd>: Use
10503 TARGET_DEFAULT_FUNC.
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10507 * target-delegates.c: Rebuild.
10508 * target.c (init_dummy_target): Don't initialize to_attach.
10509 (target_attach): Unconditionally delegate.
10510 * target.h (struct target_ops) <to_attach>: Use
10511 TARGET_DEFAULT_FUNC.
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10515 * target-delegates.c: Rebuild.
10516 * target.c (target_detach): Unconditionally delegate.
10517 (init_dummy_target): Don't initialize to_detach.
10518 * target.h (struct target_ops) <to_detach>: Use
10519 TARGET_DEFAULT_IGNORE.
10521 2014-02-19 Tom Tromey <tromey@redhat.com>
10523 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10525 (target_augmented_libraries_svr4_read): Add argument.
10526 * target.c (update_current_target): Update.
10527 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10530 2014-02-19 Tom Tromey <tromey@redhat.com>
10532 * target.h (struct target_ops) <to_call_history_range>: Add
10534 * target.c (target_call_history_range): Add argument.
10535 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10537 (record_btrace_call_history_from): Update.
10539 2014-02-19 Tom Tromey <tromey@redhat.com>
10541 * target.h (struct target_ops) <to_call_history_from>: Add
10543 * target.c (target_call_history_from): Add argument.
10544 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10549 * target.h (struct target_ops) <to_call_history>: Add argument.
10550 * target.c (target_call_history): Add argument.
10551 * record-btrace.c (record_btrace_call_history): Add 'self'
10554 2014-02-19 Tom Tromey <tromey@redhat.com>
10556 * target.h (struct target_ops) <to_insn_history_range>: Add
10558 * target.c (target_insn_history_range): Add argument.
10559 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10561 (record_btrace_insn_history_from): Update.
10563 2014-02-19 Tom Tromey <tromey@redhat.com>
10565 * target.h (struct target_ops) <to_insn_history_from>: Add
10567 * target.c (target_insn_history_from): Add argument.
10568 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10571 2014-02-19 Tom Tromey <tromey@redhat.com>
10573 * target.h (struct target_ops) <to_insn_history>: Add argument.
10574 * target.c (target_insn_history): Add argument.
10575 * record-btrace.c (record_btrace_insn_history): Add 'self'
10578 2014-02-19 Tom Tromey <tromey@redhat.com>
10580 * target.h (struct target_ops) <to_goto_record>: Add argument.
10581 * target.c (target_goto_record): Add argument.
10582 * record-full.c (record_full_goto): Add 'self' argument.
10583 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10587 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10588 * target.c (target_goto_record_end): Add argument.
10589 * record-full.c (record_full_goto_end): Add 'self' argument.
10590 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target.h (struct target_ops) <to_goto_record_begin>: Add
10596 * target.c (target_goto_record_begin): Add argument.
10597 * record-full.c (record_full_goto_begin): Add 'self' argument.
10598 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * target.h (struct target_ops) <to_record_is_replaying>: Add
10605 * target.c (target_record_is_replaying): Add argument.
10606 * record-full.c (record_full_is_replaying): Add 'self' argument.
10607 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10609 (record_btrace_xfer_partial, record_btrace_store_registers)
10610 (record_btrace_prepare_to_store, record_btrace_resume)
10611 (record_btrace_wait, record_btrace_decr_pc_after_break)
10612 (record_btrace_find_new_threads, record_btrace_thread_alive):
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10617 * target.h (struct target_ops) <to_delete_record>: Add argument.
10618 * target.c (target_delete_record): Add argument.
10619 * record-full.c (record_full_delete): Add 'self' argument.
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target.h (struct target_ops) <to_save_record>: Add argument.
10624 * target.c (target_save_record): Add argument.
10625 * record-full.c (record_full_save): Add 'self' argument.
10626 (record_full_save): Add 'self' argument.
10628 2014-02-19 Tom Tromey <tromey@redhat.com>
10630 * target.h (struct target_ops) <to_info_record>: Add argument.
10631 * target.c (target_info_record): Add argument.
10632 * record.c (info_record_command): Add argument.
10633 * record-full.c (record_full_info): Add 'self' argument.
10634 * record-btrace.c (record_btrace_info): Add 'self' argument.
10636 2014-02-19 Tom Tromey <tromey@redhat.com>
10638 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10639 * target.c (target_stop_recording): Add argument.
10640 * record.c (record_stop): Add argument.
10641 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10644 2014-02-19 Tom Tromey <tromey@redhat.com>
10646 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10647 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10648 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10650 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10651 (_initialize_amd64_linux_nat): Use it.
10652 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10653 (_initialize_i386_linux_nat): Use it.
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10657 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10658 * target.c (target_teardown_btrace): Add argument.
10659 * remote.c (remote_teardown_btrace): Add 'self' argument.
10660 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10662 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10667 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10668 * target.c (target_disable_btrace): Add argument.
10669 * remote.c (remote_disable_btrace): Add 'self' argument.
10670 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10672 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10675 2014-02-19 Tom Tromey <tromey@redhat.com>
10677 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10678 * target.c (target_enable_btrace): Add argument.
10679 * remote.c (remote_enable_btrace): Add 'self' argument.
10680 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10682 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10687 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10688 (target_can_use_agent): Add argument.
10689 * target.c (update_current_target): Update.
10690 * remote.c (remote_can_use_agent): Add 'self' argument.
10691 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target.h (struct target_ops) <to_use_agent>: Add argument.
10696 (target_use_agent): Add argument.
10697 * target.c (update_current_target): Update.
10698 * remote.c (remote_use_agent): Add 'self' argument.
10699 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10703 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10704 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10705 (target_traceframe_info): Add argument.
10706 * target.c (update_current_target): Update.
10707 * remote.c (remote_traceframe_info): Add 'self' argument.
10708 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * target.h (target_static_tracepoint_markers_by_strid): Add
10714 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10716 * target.c (update_current_target): Update.
10717 * remote.c (struct target_ops)
10718 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10719 * linux-nat.c (struct target_ops)
10720 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10722 2014-02-19 Tom Tromey <tromey@redhat.com>
10724 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10726 (target_static_tracepoint_marker_at): Add argument.
10727 * target.c (update_current_target): Update.
10728 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10731 2014-02-19 Tom Tromey <tromey@redhat.com>
10733 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10734 (target_set_permissions): Add argument.
10735 * target.c (update_current_target): Update.
10736 * remote.c (remote_set_permissions): Add 'self' argument.
10737 (remote_start_remote): Update.
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10741 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10742 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10743 (target_get_tib_address): Add argument.
10744 * target.c (update_current_target): Update.
10745 * remote.c (remote_get_tib_address): Add 'self' argument.
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10749 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10750 (target_set_trace_notes): Add argument.
10751 * target.c (update_current_target): Update.
10752 * remote.c (remote_set_trace_notes): Add 'self' argument.
10754 2014-02-19 Tom Tromey <tromey@redhat.com>
10756 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10758 (target_set_trace_buffer_size): Add argument.
10759 * target.c (update_current_target): Update.
10760 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10764 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10766 (target_set_circular_trace_buffer): Add argument.
10767 * target.c (update_current_target): Update.
10768 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10773 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10775 (target_set_disconnected_tracing): Add argument.
10776 * target.c (update_current_target): Update.
10777 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10779 2014-02-19 Tom Tromey <tromey@redhat.com>
10781 * target.h (struct target_ops)
10782 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10783 (target_get_min_fast_tracepoint_insn_len): Add argument.
10784 * target.c (update_current_target): Update.
10785 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10788 2014-02-19 Tom Tromey <tromey@redhat.com>
10790 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10792 (target_get_raw_trace_data): Add argument.
10793 * target.c (update_current_target): Update.
10794 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10798 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10800 (target_upload_trace_state_variables): Add argument.
10801 * target.c (update_current_target): Update.
10802 * remote.c (remote_upload_trace_state_variables): Add 'self'
10804 (remote_start_remote): Update.
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10810 (target_upload_tracepoints): Add argument.
10811 * target.c (update_current_target): Update.
10812 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10813 (remote_start_remote): Update.
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10818 (target_save_trace_data): Add argument.
10819 * target.c (update_current_target): Update.
10820 * remote.c (remote_save_trace_data): Add 'self' argument.
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10824 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10826 * target.h (struct target_ops)
10827 <to_get_trace_state_variable_value>: Add argument.
10828 (target_get_trace_state_variable_value): Add argument.
10829 * target.c (update_current_target): Update.
10830 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10832 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10834 2014-02-19 Tom Tromey <tromey@redhat.com>
10836 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10837 * target.h (struct target_ops) <to_trace_find>: Add argument.
10838 (target_trace_find): Add argument.
10839 * target.c (update_current_target): Update.
10840 * remote.c (remote_trace_find): Add 'self' argument.
10841 * ctf.c (ctf_trace_find): Add 'self' argument.
10843 2014-02-19 Tom Tromey <tromey@redhat.com>
10845 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10846 (target_trace_stop): Add argument.
10847 * target.c (update_current_target): Update.
10848 * remote.c (remote_trace_stop): Add 'self' argument.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10853 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10855 (target_get_tracepoint_status): Add argument.
10856 * target.c (update_current_target): Update.
10857 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10859 2014-02-19 Tom Tromey <tromey@redhat.com>
10861 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10862 * target.h (struct target_ops) <to_get_trace_status>: Add
10864 (target_get_trace_status): Add argument.
10865 * target.c (update_current_target): Update.
10866 * remote.c (remote_get_trace_status): Add 'self' argument.
10867 (remote_start_remote, remote_can_download_tracepoint): Update.
10868 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10870 2014-02-19 Tom Tromey <tromey@redhat.com>
10872 * target.h (struct target_ops) <to_trace_start>: Add argument.
10873 (target_trace_start): Add argument.
10874 * target.c (update_current_target): Update.
10875 * remote.c (remote_trace_start): Add 'self' argument.
10877 2014-02-19 Tom Tromey <tromey@redhat.com>
10879 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10881 (target_trace_set_readonly_regions): Add argument.
10882 * target.c (update_current_target): Update.
10883 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10886 2014-02-19 Tom Tromey <tromey@redhat.com>
10888 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10890 (target_disable_tracepoint): Add argument.
10891 * target.c (update_current_target): Update.
10892 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10894 2014-02-19 Tom Tromey <tromey@redhat.com>
10896 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10898 (target_enable_tracepoint): Add argument.
10899 * target.c (update_current_target): Update.
10900 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10904 * target.h (struct target_ops) <to_download_trace_state_variable>:
10906 (target_download_trace_state_variable): Add argument.
10907 * target.c (update_current_target): Update.
10908 * remote.c (remote_download_trace_state_variable): Add 'self'
10911 2014-02-19 Tom Tromey <tromey@redhat.com>
10913 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10915 (target_can_download_tracepoint): Add argument.
10916 * target.c (update_current_target): Update.
10917 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10919 2014-02-19 Tom Tromey <tromey@redhat.com>
10921 * target.h (struct target_ops) <to_download_tracepoint>: Add
10923 (target_download_tracepoint): Add argument.
10924 * target.c (update_current_target): Update.
10925 * remote.c (remote_download_tracepoint): Add 'self' argument.
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10929 * target.h (struct target_ops) <to_trace_init>: Add argument.
10930 (target_trace_init): Add argument.
10931 * target.c (update_current_target): Update.
10932 * remote.c (remote_trace_init): Add 'self' argument.
10934 2014-02-19 Tom Tromey <tromey@redhat.com>
10936 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10937 * target.c (target_fileio_readlink): Add argument.
10938 * remote.c (remote_hostio_readlink): Add 'self' argument.
10939 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10941 2014-02-19 Tom Tromey <tromey@redhat.com>
10943 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10944 * target.c (target_fileio_unlink): Add argument.
10945 * remote.c (remote_hostio_unlink): Add 'self' argument.
10946 (remote_file_delete): Update.
10947 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10949 2014-02-19 Tom Tromey <tromey@redhat.com>
10951 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10952 * target.c (target_fileio_close): Add argument.
10953 * remote.c (remote_hostio_close): Add 'self' argument.
10954 (remote_hostio_close_cleanup): Update.
10955 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10957 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10961 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10962 * target.c (target_fileio_pread): Add argument.
10963 * remote.c (remote_hostio_pread): Add 'self' argument.
10964 (remote_bfd_iovec_pread, remote_file_get): Update.
10965 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10969 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10970 * target.c (target_fileio_pwrite): Add argument.
10971 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10972 (remote_file_put): Update.
10973 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10977 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10978 * target.c (target_fileio_open): Add argument.
10979 * remote.c (remote_hostio_open): Add 'self' argument.
10980 (remote_bfd_iovec_open): Add 'self' argument.
10981 (remote_file_put): Add 'self' argument.
10982 (remote_file_get): Add 'self' argument.
10983 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10987 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10989 (target_can_run_breakpoint_commands): Add argument.
10990 * target.c (update_current_target): Update.
10991 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10993 (remote_insert_breakpoint): Add 'self' argument.
10994 (remote_insert_hw_breakpoint): Add 'self' argument.
10995 (remote_can_run_breakpoint_commands): Add 'self' argument.
10997 2014-02-19 Tom Tromey <tromey@redhat.com>
10999 * target.h (struct target_ops)
11000 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11001 (target_supports_evaluation_of_breakpoint_conditions): Add
11003 * target.c (update_current_target): Update.
11004 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11006 (remote_insert_breakpoint): Add 'self' argument.
11007 (remote_insert_hw_breakpoint): Add 'self' argument.
11008 (remote_supports_cond_breakpoints): Add 'self' argument.
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11014 (target_supports_string_tracing): Add argument.
11015 * target.c (update_current_target): Update.
11016 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target.h (struct target_ops)
11021 <to_supports_disable_randomization>: Add argument.
11022 * target.c (find_default_supports_disable_randomization): Add
11024 (target_supports_disable_randomization): Add argument.
11025 (find_default_supports_disable_randomization): Add 'self'
11027 * remote.c (extended_remote_supports_disable_randomization): Add
11029 (remote_supports_disable_randomization): Add 'self' argument.
11030 (extended_remote_create_inferior): Update.
11031 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target.h (struct target_ops)
11037 <to_supports_enable_disable_tracepoint>: Add argument.
11038 (target_supports_enable_disable_tracepoint): Add argument.
11039 * target.c (update_current_target): Update.
11040 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * target.h (struct target_ops) <to_supports_multi_process>: Add
11047 (target_supports_multi_process): Add argument.
11048 * target.c (update_current_target): Update.
11049 * remote.c (remote_supports_multi_process): Add 'self' argument.
11050 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11052 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11057 * target.h (struct target_ops) <to_execution_direction>: Add
11059 (target_execution_direction): Add argument.
11060 * target.c (default_execution_direction): Add 'self' argument.
11061 * record-full.c (record_full_execution_direction): Add 'self'
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11068 (target_can_execute_reverse): Add argument.
11069 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11070 * record-full.c (record_full_can_execute_reverse): Add 'self'
11072 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11077 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11078 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11080 (target_get_ada_task_ptid): Add argument.
11081 * target.c (update_current_target): Update.
11082 (default_get_ada_task_ptid): Add 'self' argument.
11083 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11084 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11085 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11087 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11089 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11091 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11093 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11094 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11100 (target_goto_bookmark): Add argument.
11101 * target.c (dummy_goto_bookmark): Add 'self' argument.
11102 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11104 2014-02-19 Tom Tromey <tromey@redhat.com>
11106 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11107 (target_get_bookmark): Add argument.
11108 * target.c (dummy_get_bookmark): Add 'self' argument.
11109 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11113 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11115 (target_make_corefile_notes): Add argument.
11116 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11117 * procfs.c (procfs_make_note_section): Add 'self' argument.
11118 (procfs_make_note_section): Add 'self' argument.
11119 (procfs_make_note_section): Add 'self' argument.
11120 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11122 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11123 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11124 * exec.c (exec_make_note_section): Add 'self' argument.
11125 (exec_make_note_section): Add 'self' argument.
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops) <to_find_memory_regions>: Add
11131 (target_find_memory_regions): Add argument.
11132 * target.c (dummy_find_memory_regions): Add 'self' argument.
11133 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11134 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11135 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11136 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11137 * exec. (exec_do_find_memory_regions): New global.
11138 (exec_set_find_memory_regions): Rewrite.
11139 (exec_find_memory_regions): New function.
11140 (init_exec_ops): Use exec_find_memory_regions.
11142 2014-02-19 Tom Tromey <tromey@redhat.com>
11144 * target.h (struct target_ops) <to_supports_non_stop>: Add
11146 * target.c (find_default_supports_non_stop): Add argument.
11147 (target_supports_non_stop): Add argument.
11148 (find_default_supports_non_stop): Add 'self' argument.
11149 * remote.c (remote_supports_non_stop): Add 'self' argument.
11150 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11154 * target.h (struct target_ops) <to_log_command>: Add argument.
11155 (target_log_command): Add argument.
11156 * serial.h (serial_log_command): Add 'self' argument.
11157 * serial.c (serial_log_command): Add 'self' argument.
11159 2014-02-19 Tom Tromey <tromey@redhat.com>
11161 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11162 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11164 (target_pid_to_exec_file): Add argument.
11165 * target.c (debug_to_pid_to_exec_file): Add argument.
11166 (update_current_target): Update.
11167 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11168 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11169 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11170 (linux_handle_extended_wait): Update.
11171 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11172 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11173 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11174 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * target.h (struct target_ops) <to_rcmd>: Add argument.
11179 (target_rcmd): Add argument.
11180 * target.c (debug_to_rcmd): Add argument.
11181 (update_current_target, do_monitor_command): Update.
11182 * remote.c (remote_rcmd): Add 'self' argument.
11183 * monitor.c (monitor_rcmd): Add 'self' argument.
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11187 * windows-nat.c (windows_stop): Add 'self' argument.
11188 * target.h (struct target_ops) <to_stop>: Add argument.
11189 * target.c (target_stop): Add argument.
11190 (debug_to_stop): Add argument.
11191 (update_current_target): Update.
11192 * remote.c (remote_stop): Add 'self' argument.
11193 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11194 (gdbsim_cntrl_c): Update.
11195 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11196 * procfs.c (procfs_stop): Add 'self' argument.
11197 * nto-procfs.c (procfs_stop): Add 'self' argument.
11198 * monitor.c (monitor_stop): Add 'self' argument.
11199 (monitor_open): Update.
11200 * linux-nat.c (linux_nat_stop): Add argument.
11201 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11202 * gnu-nat.c (gnu_stop): Add 'self' argument.
11203 * darwin-nat.c (darwin_stop): Add 'self' argument.
11205 2014-02-19 Tom Tromey <tromey@redhat.com>
11207 * target.h (struct target_ops) <to_thread_name>: Add argument.
11208 * target.c (target_thread_name): Add argument.
11209 (update_current_target): Update.
11210 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11214 * target.h (struct target_ops) <to_extra_thread_info>: Add
11216 (target_extra_thread_info): Add argument.
11217 * target.c (update_current_target): Update.
11218 * remote.c (remote_threads_extra_info): Add 'self' argument.
11219 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11221 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11222 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11223 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11225 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11227 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11229 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11234 * target.h (struct target_ops) <to_program_signals>: Add argument.
11235 * target.c (target_program_signals): Add argument.
11236 * remote.c (remote_program_signals): Add 'self' argument.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11241 * target.c (target_pass_signals): Add argument.
11242 * remote.c (remote_pass_signals): Add 'self' argument.
11243 (remote_start_remote): Update.
11244 * procfs.c (procfs_pass_signals): Add 'self' argument.
11245 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11246 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11247 (linux_nat_create_inferior, linux_nat_attach): Update.
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11251 * windows-nat.c (windows_can_run): Add 'self' argument.
11252 * target.h (struct target_ops) <to_can_run>: Add argument.
11253 (target_can_run): Add argument.
11254 * target.c (debug_to_can_run): Add argument.
11255 (update_current_target): Update.
11256 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11257 * inf-child.c (inf_child_can_run): Add 'self' argument.
11258 * go32-nat.c (go32_can_run): Add 'self' argument.
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11262 * target.h (struct target_ops) <to_has_exited>: Add argument.
11263 (target_has_exited): Add argument.
11264 * target.c (debug_to_has_exited): Add argument.
11265 (update_current_target): Update.
11267 2014-02-19 Tom Tromey <tromey@redhat.com>
11269 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11271 (target_set_syscall_catchpoint): Add argument.
11272 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11274 * target.c (update_current_target): Update.
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11278 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11280 (target_remove_exec_catchpoint): Add argument.
11281 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11282 (update_current_target): Update.
11283 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11290 (target_insert_exec_catchpoint): Add argument.
11291 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11292 (update_current_target): Update.
11293 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11298 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11300 (target_remove_vfork_catchpoint): Add argument.
11301 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11302 (update_current_target): Update.
11303 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11308 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11310 (target_insert_vfork_catchpoint): Add argument.
11311 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11312 (update_current_target): Update.
11313 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11318 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11320 (target_remove_fork_catchpoint): Add argument.
11321 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11322 (update_current_target): Update.
11323 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11328 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11330 (target_insert_fork_catchpoint): Add argument.
11331 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11332 (update_current_target): Update.
11333 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11340 (target_post_startup_inferior): Add argument.
11341 * target.c (debug_to_post_startup_inferior): Add argument.
11342 (update_current_target): Update.
11343 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11345 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11347 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11349 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11351 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11353 (super_post_startup_inferior): Likewise.
11354 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11356 (super_post_startup_inferior): Likewise.
11357 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11358 Add 'self' argument.
11359 (super_post_startup_inferior): Likewise.
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11363 * target.h (struct target_ops) <to_load>: Add argument.
11364 * target.c (target_load): Add argument.
11365 (debug_to_load): Add argument.
11366 (update_current_target): Update.
11367 * remote.c (remote_load): Add 'self' argument.
11368 * remote-sim.c (gdbsim_load): Add 'self' argument.
11369 * remote-mips.c (mips_load): Add 'self' argument.
11370 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11371 * monitor.c (monitor_load): Add 'self' argument.
11372 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11376 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11377 (target_terminal_info): Add argument.
11378 * target.c (debug_to_terminal_info): Add argument.
11379 (default_terminal_info): Likewise.
11380 * inflow.c (child_terminal_info): Add 'self' argument.
11381 * inferior.h (child_terminal_info): Add 'self' argument.
11382 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11384 2014-02-19 Tom Tromey <tromey@redhat.com>
11386 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11388 (target_terminal_save_ours): Add argument.
11389 * target.c (debug_to_terminal_save_ours): Add argument.
11390 (update_current_target): Update.
11391 * inflow.c (terminal_save_ours): Add 'self' argument.
11392 * inferior.h (terminal_save_ours): Add 'self' argument.
11394 2014-02-19 Tom Tromey <tromey@redhat.com>
11396 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11397 (target_terminal_ours): Add argument.
11398 * target.c (debug_to_terminal_ours): Add argument.
11399 (update_current_target): Update.
11400 * remote.c (remote_terminal_ours): Add 'self' argument.
11401 (remote_close): Update.
11402 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11403 * inflow.c (terminal_ours): Add 'self' argument.
11404 * inferior.h (terminal_ours): Add 'self' argument.
11405 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11407 2014-02-19 Pedro Alves <palves@redhat.com>
11408 Tom Tromey <tromey@redhat.com>
11410 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11412 (target_terminal_ours_for_output): Add argument.
11413 * target.c (debug_to_terminal_ours_for_output): Add argument.
11414 (update_current_target): Update.
11415 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11416 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11417 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11419 2014-02-19 Tom Tromey <tromey@redhat.com>
11421 * target.h (struct target_ops) <to_terminal_inferior>: Add
11423 * target.c (target_terminal_inferior): Add argument.
11424 (update_current_target): Update.
11425 * remote.c (remote_terminal_inferior): Add 'self' argument.
11426 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11427 * inflow.c (terminal_inferior): Add 'self' argument.
11428 * inferior.h (terminal_inferior): Add 'self' argument.
11429 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11430 (go32_terminal_inferior): Add 'self' argument.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11435 (target_terminal_init): Add argument.
11436 * target.c (debug_to_terminal_init): Add argument.
11437 (update_current_target): Update.
11438 * inflow.c (terminal_init_inferior): Add 'self' argument.
11439 * inferior.h (terminal_init_inferior): Add 'self' argument.
11440 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11441 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11443 2014-02-19 Tom Tromey <tromey@redhat.com>
11445 * target.h (struct target_ops)
11446 <to_can_accel_watchpoint_condition>: Add argument.
11447 (target_can_accel_watchpoint_condition): Add argument.
11448 * target.c (debug_to_can_accel_watchpoint_condition): Add
11450 (update_current_target): Update.
11451 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11454 2014-02-19 Tom Tromey <tromey@redhat.com>
11456 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11458 (target_region_ok_for_hw_watchpoint): Add argument.
11459 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11460 (default_region_ok_for_hw_watchpoint): Add argument.
11461 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11462 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11464 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11466 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11468 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11470 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11472 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11474 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11475 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11477 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11478 Add 'self' argument.
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11484 (target_insert_watchpoint): Add argument.
11485 * target.c (debug_to_insert_watchpoint): Add argument.
11486 (update_current_target): Update.
11487 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11488 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11489 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11490 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11491 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11492 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11494 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11495 (procfs_insert_hw_watchpoint): Add 'self' argument.
11496 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11498 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11500 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11502 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11503 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11505 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11510 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11512 (target_remove_watchpoint): Add argument.
11513 * target.c (debug_to_remove_watchpoint): Add argument.
11514 (update_current_target): Update.
11515 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11516 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11517 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11518 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11519 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11520 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11522 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11523 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11525 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11527 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11529 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11530 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11532 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11539 (target_remove_hw_breakpoint): Add argument.
11540 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11541 (update_current_target): Update.
11542 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11543 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11545 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11546 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11548 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11555 (target_insert_hw_breakpoint): Add argument.
11556 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11557 (update_current_target): Update.
11558 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11559 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11561 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11562 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11563 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11565 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11572 (target_can_use_hardware_watchpoint): Add argument.
11573 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11574 (update_current_target): Update.
11575 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11577 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11579 * remote.c (remote_check_watch_resources): Add 'self' argument.
11580 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11581 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11583 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11584 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11586 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11588 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11590 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11592 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11594 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11596 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11597 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11599 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11604 * target.h (struct target_ops) <to_post_attach>: Add argument.
11605 (target_post_attach): Add argument.
11606 * target.c (debug_to_post_attach): Add argument.
11607 (update_current_target): Update.
11608 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11609 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11610 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11611 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11612 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11614 2014-02-19 Tom Tromey <tromey@redhat.com>
11616 * windows-nat.c (windows_close): Add 'self' argument.
11617 * tracepoint.c (tfile_close): Add 'self' argument.
11618 * target.h (struct target_ops) <to_close>: Add argument.
11619 * target.c (target_close): Add argument.
11620 (update_current_target): Update.
11621 * remote.c (remote_close): Add 'self' argument.
11622 * remote-sim.c (gdbsim_close): Add 'self' argument.
11623 * remote-mips.c (mips_close): Add 'self' argument.
11624 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11625 * record-full.c (record_full_close): Add 'self' argument.
11626 * record-btrace.c (record_btrace_close): Add 'self' argument.
11627 * monitor.h (monitor_close): Add 'self' argument.
11628 * monitor.c (monitor_close): Add 'self' argument.
11629 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11630 * linux-nat.c (linux_nat_close): Add argument.
11631 * go32-nat.c (go32_close): Add 'self' argument.
11632 * exec.c (exec_close_1): Add 'self' argument.
11633 * ctf.c (ctf_close): Add 'self' argument.
11634 * corelow.c (core_close): Add 'self' argument.
11635 (core_close_cleanup): Update.
11636 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11637 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11639 2014-02-19 Tom Tromey <tromey@redhat.com>
11641 * remote.c (remote_load): New function.
11642 (init_remote_ops): Use it.
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11648 * common/linux-btrace.h (linux_supports_btrace): Update.
11649 * remote.c (remote_supports_btrace): Add "self" argument.
11650 * target-delegates.c: Rebuild.
11651 * target.c (target_supports_btrace): Remove.
11652 * target.h (struct target_ops) <to_supports_btrace>: Add
11653 target_ops argument.
11654 (target_supports_btrace): New define.
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11658 * record-full.c (record_full_beneath_to_resume_ops)
11659 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11660 (record_full_beneath_to_wait)
11661 (record_full_beneath_to_store_registers_ops)
11662 (record_full_beneath_to_store_registers)
11663 (record_full_beneath_to_xfer_partial_ops)
11664 (record_full_beneath_to_xfer_partial)
11665 (record_full_beneath_to_insert_breakpoint_ops)
11666 (record_full_beneath_to_insert_breakpoint)
11667 (record_full_beneath_to_remove_breakpoint_ops)
11668 (record_full_beneath_to_remove_breakpoint)
11669 (record_full_beneath_to_stopped_by_watchpoint)
11670 (record_full_beneath_to_stopped_data_address)
11671 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11672 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11673 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11674 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11675 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11676 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11677 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11678 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11679 (record_full_resume, record_full_wait_1)
11680 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11681 (record_full_store_registers, record_full_xfer_partial)
11682 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11683 (record_full_async, record_full_core_xfer_partial): Use target
11685 * target-delegates.c: Rebuild.
11686 * target.c (current_xfer_partial): Remove.
11687 (update_current_target): Do not INHERIT or de_fault
11688 to_insert_breakpoint, to_remove_breakpoint,
11689 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11690 to_is_async_p, to_async. Do not set to_xfer_partial field.
11691 (default_xfer_partial): Simplify.
11692 (current_xfer_partial): Remove.
11693 (target_wait, target_resume): Simplify.
11694 (find_default_can_async_p, find_default_is_async_p): Update.
11695 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11696 to_xfer_partial, to_stopped_by_watchpoint,
11697 to_stopped_data_address.
11698 (target_store_registers): Simplify.
11699 (forward_target_remove_breakpoint)
11700 (forward_target_insert_breakpoint): Remove.
11701 (target_remove_breakpoint, target_insert_breakpoint)
11702 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11703 * target.h (struct target_ops) <to_resume, to_wait,
11704 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11705 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11706 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11708 (forward_target_remove_breakpoint)
11709 (forward_target_insert_breakpoint): Remove.
11710 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11712 (record_btrace_insert_breakpoint): Delegate directly.
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11717 * target-delegates.c: New file.
11718 * target.c: Include target-delegates.c.
11719 (init_dummy_target): Call install_dummy_methods.
11720 (complete_target_initialization): Call install_delegators.
11721 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11722 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11723 * make-target-delegates: New file.
11725 2014-02-19 Tom Tromey <tromey@redhat.com>
11727 * record.c (find_record_target): Use find_target_at.
11728 * target.c (find_target_at): New function.
11729 * target.h (find_target_at): Declare.
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11734 Add 'ops' argument.
11735 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11737 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11738 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11740 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11742 * linux-nat.c (save_sigtrap): Update.
11743 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11744 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11745 (linux_nat_close): Update.
11746 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11748 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11750 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11751 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11752 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11753 (tmp_to_async): Add 'ops' argument.
11754 (record_full_stopped_by_watchpoint, record_full_async)
11755 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11757 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11758 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11759 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11760 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11761 (remote_is_async_p, remote_async): Add 'ops' argument.
11762 (remote_stopped_data_address): Update.
11763 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11764 * target.c (update_current_target)
11765 (find_default_can_async_p, find_default_is_async_p): Update.
11766 (init_dummy_target): Update.
11767 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11768 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11769 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11770 (target_can_async_p, target_is_async_p, target_async)
11771 (target_stopped_by_watchpoint): Update.
11773 2014-02-19 Yao Qi <yao@codesourcery.com>
11776 * gdbarch.sh: Remove startup_gdbarch.
11777 * gdbarch.c: Regenerated.
11778 * gdbarch.h: Likewise.
11780 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11782 * rl78-tdep.c (rl78_g10_register_name): New function.
11783 (rl78_return_value): Add g10 support.
11784 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11787 2014-02-17 Doug Evans <xdje42@gmail.com>
11789 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11790 (SUBDIR_GUILE_SRCS): Ditto.
11791 (scm-gsmob.o): Ditto.
11793 2014-02-17 Yao Qi <yao@codesourcery.com>
11795 * gnu-nat.c (ILL_RPC): Declare defined function.
11797 2014-02-17 Yao Qi <yao@codesourcery.com>
11799 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11800 mach_msg_type_number_t.
11801 (gnu_write_inferior): Likewise.
11803 2014-02-17 Yao Qi <yao@codesourcery.com>
11805 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11807 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11808 (inf_validate_procs, inf_signal): Likewise.
11809 (S_exception_raise_request): Likewise.
11810 (do_mach_notify_dead_name): Likewise.
11811 (steal_exc_port): Likewise.
11812 (gnu_read_inferior): Change 'copy_count''s type to
11813 mach_msg_type_number_t.
11814 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11817 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11819 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11820 flag. Adjust all users; in particular...
11821 (gnu_wait): ..., don't decrement its value in here...
11822 (gnu_create_inferior): ..., and instead set the flag in here,
11823 around the startup_inferior call, and call that one with
11824 START_INFERIOR_TRAPS_EXPECTED.
11826 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11827 (ILL_RPC): ... new macro.
11828 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11829 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11830 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11831 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11832 functions with ILL_RPC macro.
11833 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11834 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11835 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11836 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11837 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11838 (S_proc_getlogin_reply, S_proc_getsid_reply)
11839 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11840 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11841 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11842 (S_proc_getnports_reply, S_proc_is_important_reply)
11843 (S_proc_get_code_reply): New stub functions, generated with
11846 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11847 collected the type check structures.
11849 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11851 2014-02-14 Doug Evans <dje@google.com>
11853 * target.c (target_write_partial): Fix result type.
11855 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11857 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11858 the proper offsets to access fpregset_t.
11860 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11862 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11863 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11864 * h8300-tdep.c (setmachinelist): Remove global.
11865 * hppa-tdep.c (hppa_sigtramp): Remove global.
11866 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11867 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11868 * ravenscar-thread.c (update_target_observer): Remove global.
11869 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11871 2014-02-12 Tom Tromey <tromey@redhat.com>
11873 * common/rsp-low.c: Update comments.
11874 * common/rsp-low.h: Update comments.
11876 2014-02-12 Tom Tromey <tromey@redhat.com>
11878 * common/rsp-low.c (convert_ascii_to_int): Remove.
11879 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11881 2014-02-12 Tom Tromey <tromey@redhat.com>
11883 * common/rsp-low.h (unhexify): Don't declare.
11884 * common/rsp-low.c (unhexify): Remove.
11886 2014-02-12 Tom Tromey <tromey@redhat.com>
11888 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11889 * common/rsp-low.c (convert_int_to_ascii): Remove.
11891 2014-02-12 Tom Tromey <tromey@redhat.com>
11893 * common/rsp-low.h (hexify): Don't declare.
11894 * common/rsp-low.c (hexify): Remove.
11896 2014-02-12 Tom Tromey <tromey@redhat.com>
11898 * common/rsp-low.c (hexify): Never take strlen of argument.
11900 2014-02-12 Tom Tromey <tromey@redhat.com>
11902 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11903 * remote.c (extended_remote_run, remote_rcmd)
11904 (remote_download_trace_state_variable, remote_save_trace_data)
11905 (remote_set_trace_notes): Update.
11906 * tracepoint.c (encode_source_string, tfile_write_status)
11907 (tfile_write_uploaded_tsv): Update.
11909 2014-02-12 Tom Tromey <tromey@redhat.com>
11911 * tracepoint.c: Include rsp-low.h.
11912 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11913 * remote.c: Include rsp-low.h.
11914 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11915 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11916 (remote_unescape_input): Move to common/rsp-low.c.
11917 * common/rsp-low.h: New file.
11918 * common/rsp-low.c: New file.
11919 * Makefile.in (SFILES): Add common/rsp-low.c.
11920 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11921 (COMMON_OBS): Add rsp-low.o.
11922 (rsp-low.o): New target.
11924 2014-02-12 Tom Tromey <tromey@redhat.com>
11926 * utils.h: Include print-utils.h.
11927 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11928 (int_string, core_addr_to_string, core_addr_to_string_nz)
11929 (hex_string, hex_string_custom): Don't declare.
11930 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11931 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11932 (hex_string_custom, int_string, core_addr_to_string)
11933 (core_addr_to_string_nz, host_address_to_string): Move to
11934 common/print-utils.c.
11935 * common/print-utils.h: New file.
11936 * common/print-utils.c: New file
11937 * Makefile.in (SFILES): Add common/print-utils.c.
11938 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11939 (COMMON_OBS): Add print-utils.o.
11940 (print-utils.o): New target.
11942 2014-02-12 Tom Tromey <tromey@redhat.com>
11944 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11946 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11948 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11950 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11952 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11953 if a PT_IO ptrace request returns sucessfully but indicates that 0
11954 bytes were transferred.
11956 2014-02-12 Pedro Alves <palves@redhat.com>
11957 Kevin Buettner <kevinb@redhat.com>
11959 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11960 TYPE_INSTANCE_FLAG_CODE_SPACE.
11962 2014-02-12 Pedro Alves <palves@redhat.com>
11964 * h8300-tdep.c (pseudo_from_raw_register)
11965 (raw_from_pseudo_register): New functions.
11966 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11969 2014-02-12 Pedro Alves <palves@redhat.com>
11971 * h8300-tdep.c (h8300_register_sim_regno): New function.
11972 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11973 gdbarch_register_sim_regno hook.
11975 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11977 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11979 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11981 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11983 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11985 * obsd-tdep.h (obsd_init_abi): New prototype.
11986 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11987 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11988 (obsd_init_abi): New functions.
11989 * i386obsd-tdep.c: Include "obsd-tdep.h".
11990 (i386obsd_init_abi): Call obsd_init_abi.
11991 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11992 (amd64obsd_init_abi): Call obsd_init_abi.
11993 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11994 obsd-tdep.c to gdb_target_obs.
11996 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11998 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11999 double float arguments to 16-byte in the argument slots.
12001 2014-02-11 Doug Evans <xdje42@gmail.com>
12003 * configure.ac: Don't crash if pkg-config is not found and guile
12004 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12006 * configure: Regenerate.
12008 2014-02-11 Yao Qi <yao@codesourcery.com>
12010 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12011 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12012 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12013 * gnu-nat.c (gnu_xfer_memory): Likewise.
12014 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12015 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12016 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12017 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12019 2014-02-11 Yao Qi <yao@codesourcery.com>
12021 * target.h (enum target_xfer_error): Rename to ...
12022 (enum target_xfer_status): ... it. New. All users updated.
12023 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12025 (TARGET_XFER_STATUS_ERROR_P): New macro.
12026 (target_xfer_error_to_string): Remove declaration.
12027 (target_xfer_status_to_string): Declare.
12028 (target_xfer_partial_ftype): Adjust it.
12029 (struct target_ops) <to_xfer_partial>: Return
12030 target_xfer_status. Add argument xfered_len. Update
12032 * target.c (target_xfer_error_to_string): Rename to ...
12033 (target_xfer_status_to_string): ... it. New. All callers
12035 (target_read_live_memory): Likewise. Call target_xfer_partial
12036 instead of target_read.
12037 (memory_xfer_live_readonly_partial): Return
12038 target_xfer_status. Add argument xfered_len.
12039 (raw_memory_xfer_partial): Likewise.
12040 (memory_xfer_partial_1): Likewise.
12041 (memory_xfer_partial): Likewise.
12042 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12043 properly. Update debug message.
12044 (default_xfer_partial, current_xfer_partial): Likewise.
12045 (target_write_partial): Likewise.
12046 (target_read_partial): Likewise. All callers updated.
12047 (read_whatever_is_readable): Likewise.
12048 (target_write_with_progress): Likewise.
12049 (target_read_alloc_1): Likewise.
12051 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12052 * auxv.c (procfs_xfer_auxv): Likewise.
12053 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12054 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12055 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12056 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12057 * corefile.c (read_memory): Adjust.
12058 * corelow.c (core_xfer_partial): Likewise.
12059 * ctf.c (ctf_xfer_partial): Likewise.
12060 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12062 (darwin_xfer_partial): Likewise.
12063 * exec.c (section_table_xfer_memory_partial): Likewise. All
12065 (exec_xfer_partial): Likewise.
12066 * exec.h (section_table_xfer_memory_partial): Update
12068 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12070 (gnu_xfer_partial): Likewise.
12071 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12072 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12073 (ia64_hpux_xfer_solib_got): Likewise.
12074 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12075 type of 'partial_len' to ULONGEST.
12076 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12077 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12078 (linux_nat_xfer_partial): Likewise.
12079 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12080 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12081 * monitor.c (monitor_xfer_memory): Likewise.
12082 (monitor_xfer_partial): Likewise.
12083 * procfs.c (procfs_xfer_partial): Likewise.
12084 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12085 * record-full.c (record_full_xfer_partial): Likewise.
12086 (record_full_core_xfer_partial): Likewise.
12087 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12088 (gdbsim_xfer_partial): Likewise.
12089 * remote.c (remote_write_bytes_aux): Likewise. All callers
12091 (remote_write_bytes, remote_read_bytes): Likewise. All
12093 (remote_flash_erase): Likewise. All callers updated.
12094 (remote_write_qxfer): Likewise. All callers updated.
12095 (remote_read_qxfer): Likewise. All callers updated.
12096 (remote_xfer_partial): Likewise.
12097 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12098 (rs6000_xfer_shared_libraries): Likewise.
12099 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12100 (sol_thread_xfer_partial): Likewise.
12101 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12102 (sparc_xfer_partial): Likewise.
12103 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12105 (spu_xfer_partial): Likewise.
12106 * spu-multiarch.c (spu_xfer_partial): Likewise.
12107 * tracepoint.c (tfile_xfer_partial): Likewise.
12108 * windows-nat.c (windows_xfer_memory): Likewise.
12109 (windows_xfer_shared_libraries): Likewise.
12110 (windows_xfer_partial): Likewise.
12111 * valprint.c: Replace 'target_xfer_error' with
12112 'target_xfer_status' in comments.
12114 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12116 Checked in by Joel Brobecker <brobecker@adacore.com>.
12117 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12119 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12121 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12122 function parameters.
12124 2014-02-10 Will Newton <will.newton@linaro.org>
12126 * elfread.c (elf_rel_plt_read): Look for a .got section if
12127 looking up .got.plt fails.
12128 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12129 on address passed to elf_gnu_ifunc_record_cache.
12130 (elf_gnu_ifunc_resolve_addr): Likewise.
12131 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12133 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12135 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12136 (X_RETTURN): New macro.
12137 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12139 * sparc64-tdep.c (sparc64_init_abi): Hook
12140 sparc_in_function_epilogue_p.
12142 2014-02-10 Gary Benson <gbenson@redhat.com>
12144 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12145 Rename name_matcher to symbol_matcher.
12147 2014-02-10 Gary Benson <gbenson@redhat.com>
12149 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12150 Use expand_symtabs_file_matcher_ftype and
12151 expand_symtabs_symbol_matcher_ftype.
12153 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12155 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12156 (struct ada_symbol_cache): New.
12157 (ada_free_symbol_cache): Forward declare.
12158 (struct ada_pspace_data): New.
12159 (ada_pspace_data_handle): New static global.
12160 (get_ada_pspace_data, ada_pspace_data_cleanup)
12161 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12162 (cache_space, cache): Delete, now folded inside struct
12164 (ada_get_symbol_cache): New function.
12165 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12167 (_initialize_ada_language): Remove initialization of cache_space.
12168 Move call to observer_attach_inferior_exit up, grouping it
12169 with the other observer registrations inside this function.
12170 Rename command to be more general. Add call to
12171 register_program_space_data_with_cleanup.
12173 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12175 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12176 ada_new_objfile_observer.
12177 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12178 (_initialize_tasks): Update uses of ada_new_objfile_observer
12179 and ada_tasks_normal_stop_observer.
12181 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12183 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12184 returned by the 'Length attribute to integer.
12186 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12188 * ada-lang.c (_initialize_ada_language): Initialize
12189 cache_space obstack.
12191 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12193 * ada-lang.c (HASH_SIZE): New macro.
12194 (struct cache_entry): New type.
12195 (cache_space, cache): New static globals.
12196 (ada_clear_symbol_cache, find_entry): New functions.
12197 (lookup_cached_symbol, cache_symbol): Implement.
12198 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12199 (_initialize_ada_language): Attach ada_new_objfile_observer
12200 and ada_free_objfile_observer.
12202 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12204 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12205 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12206 struct block * parameter.
12207 (ada_lookup_symbol_list_worker): Constify local variable "block".
12208 Remove cast which is no longer necessary.
12210 2014-02-10 Doug Evans <xdje42@gmail.com>
12212 Add Guile as an extension language.
12213 * NEWS: Mention Guile scripting.
12214 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12215 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12216 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12217 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12218 (CLIBS): Add GUILE_LIBS.
12219 (install-guile): New rule.
12220 (guile.o): New rule.
12221 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12222 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12223 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12224 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12225 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12226 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12227 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12228 * configure.ac: New option --with-guile.
12229 * configure: Regenerate.
12230 * config.in: Regenerate.
12231 * auto-load.c: Remove #include "python/python.h". Add #include
12232 "gdb/section-scripts.h".
12233 (source_section_scripts): Handle Guile scripts.
12234 (_initialize_auto_load): Add name of Guile objfile script to
12235 scripts-directory help text.
12236 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12237 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12238 (struct breakpoint): New member scm_bp_object.
12239 * defs.h (enum command_control_type): New value guile_control.
12240 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12242 (show_user): Update comment.
12243 (_initialize_cli_cmds): Update help text for "show user". Update help
12244 text for max-user-call-depth.
12245 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12247 (multi_line_command_p): Add guile_control.
12248 (print_command_lines): Handle guile_control.
12249 (execute_control_command, recurse_read_control_structure): Ditto.
12250 (process_next_line): Recognize "guile" commands.
12251 * disasm.c (gdb_disassemble_info): Make non-static.
12252 * disasm.h: #include "dis-asm.h".
12253 (struct gdbarch): Add forward decl.
12254 (gdb_disassemble_info): Declare.
12255 * extension.c: #include "guile/guile.h".
12256 (extension_languages): Add guile.
12257 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12258 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12259 * gdbtypes.c (get_unsigned_type_max): New function.
12260 (get_signed_type_minmax): New function.
12261 * gdbtypes.h (get_unsigned_type_max): Declare.
12262 (get_signed_type_minmax): Declare.
12263 * guile/README: New file.
12264 * guile/guile-internal.h: New file.
12265 * guile/guile.c: New file.
12266 * guile/guile.h: New file.
12267 * guile/scm-arch.c: New file.
12268 * guile/scm-auto-load.c: New file.
12269 * guile/scm-block.c: New file.
12270 * guile/scm-breakpoint.c: New file.
12271 * guile/scm-disasm.c: New file.
12272 * guile/scm-exception.c: New file.
12273 * guile/scm-frame.c: New file.
12274 * guile/scm-gsmob.c: New file.
12275 * guile/scm-iterator.c: New file.
12276 * guile/scm-lazy-string.c: New file.
12277 * guile/scm-math.c: New file.
12278 * guile/scm-objfile.c: New file.
12279 * guile/scm-ports.c: New file.
12280 * guile/scm-pretty-print.c: New file.
12281 * guile/scm-safe-call.c: New file.
12282 * guile/scm-string.c: New file.
12283 * guile/scm-symbol.c: New file.
12284 * guile/scm-symtab.c: New file.
12285 * guile/scm-type.c: New file.
12286 * guile/scm-utils.c: New file.
12287 * guile/scm-value.c: New file.
12288 * guile/lib/gdb.scm: New file.
12289 * guile/lib/gdb/boot.scm: New file.
12290 * guile/lib/gdb/experimental.scm: New file.
12291 * guile/lib/gdb/init.scm: New file.
12292 * guile/lib/gdb/iterator.scm: New file.
12293 * guile/lib/gdb/printing.scm: New file.
12294 * guile/lib/gdb/types.scm: New file.
12295 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12296 (VPATH): Add $(GUILE_SRCDIR).
12297 (GUILE_DIR): New variable.
12298 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12299 (all): Add stamp-guile dependency.
12300 (stamp-guile): New rule.
12301 (clean-guile, install-guile, uninstall-guile): New rules.
12302 (install-only): Add install-guile dependency.
12303 (uninstall): Add uninstall-guile dependency.
12304 (clean): Add clean-guile dependency.
12306 2014-02-09 Doug Evans <xdje42@gmail.com>
12308 Revert this patch (which I approved, mea culpa).
12310 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12312 * Makefile.in (all-lib): Remove.
12313 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12315 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12317 Fix Python stack corruption.
12318 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12321 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12323 * Makefile.in (all-lib): Remove.
12324 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12326 2014-02-07 Doug Evans <dje@google.com>
12328 * extension-priv.h (extension_language_script_ops): Add comment.
12329 (extension_language_ops): Add comment.
12330 (active_ext_lang_state): Fix typo in comment.
12332 2014-02-07 Pedro Alves <palves@redhat.com>
12334 PR breakpoints/16292
12335 * infrun.c (handle_signal_stop) <signal arrives while stepping
12336 over a breakpoint>: Switch back to the stepping thread.
12338 2014-02-07 Yao Qi <yao@codesourcery.com>
12340 * target.c (target_xfer_partial): Return zero if LEN is zero.
12342 2014-02-07 Yao Qi <yao@codesourcery.com>
12344 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12345 (ld_so_xfer_auxv): Likewise.
12346 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12347 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12348 * corelow.c (core_xfer_partial): Likewise.
12349 * ctf.c (ctf_xfer_partial): Likewise.
12350 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12351 (darwin_xfer_partial): Likewise.
12352 * exec.c (exec_xfer_partial): Likewise.
12353 * gnu-nat.c (gnu_xfer_partial): Likewise.
12354 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12355 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12356 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12357 * linux-nat.c (linux_xfer_siginfo): Likewise.
12358 (linux_proc_xfer_spu): Likewise.
12359 * procfs.c (procfs_xfer_partial): Likewise.
12360 * record-full.c (record_full_xfer_partial): Likewise.
12361 (record_full_core_xfer_partial): Likewise.
12362 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12363 * remote.c (remote_write_qxfer): Likewise.
12364 (remote_write_qxfer, remote_read_qxfer): Likewise.
12365 (remote_xfer_partial): Likewise.
12366 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12367 (rs6000_xfer_shared_libraries): Likewise.
12368 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12369 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12370 (spu_xfer_partial): Likewise.
12371 * target.c (memory_xfer_partial_1): Likewise.
12372 * tracepoint.c (tfile_xfer_partial): Likewise.
12373 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12374 (windows_xfer_partial): Likewise.
12376 2014-02-07 Yao Qi <yao@codesourcery.com>
12378 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12380 (core_xfer_shared_libraries_aix): Likewise.
12381 * gdbarch.c, gdbarch.h: Regenerated.
12382 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12383 ULONGEST. Change 'len_avail' type to ULONGEST.
12384 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12385 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12387 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12389 2014-02-07 Yao Qi <yao@codesourcery.com>
12391 * corefile.c (memory_error): Get 'exception' from ERR and pass
12392 'exception' to throw_error.
12394 2014-02-06 Doug Evans <xdje42@gmail.com>
12396 * configure.ac (libpython checking): Remove all but python.o from
12397 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12398 * configure: Regenerate.
12400 * Makefile.in (SFILES): Add extension.c.
12401 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12402 (COMMON_OBS): Add extension.o.
12403 * extension.h: New file.
12404 * extension-priv.h: New file.
12405 * extension.c: New file.
12407 * python/python-internal.h: #include "extension.h".
12408 (gdbpy_auto_load_enabled): Declare.
12409 (gdbpy_apply_val_pretty_printer): Declare.
12410 (gdbpy_apply_frame_filter): Declare.
12411 (gdbpy_preserve_values): Declare.
12412 (gdbpy_breakpoint_cond_says_stop): Declare.
12413 (gdbpy_breakpoint_has_cond): Declare.
12414 (void source_python_script_for_objfile): Delete.
12415 * python/python.c: #include "extension-priv.h".
12416 Delete inclusion of "observer.h".
12417 (extension_language_python): Moved here and renamed from
12418 script_language_python in py-auto-load.c.
12419 Redefined to be of type extension_language_defn.
12420 (python_extension_script_ops): New global.
12421 (python_extension_ops): New global.
12422 (struct python_env): New member previous_active.
12423 (restore_python_env): Call restore_active_ext_lang.
12424 (ensure_python_env): Call set_active_ext_lang.
12425 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12427 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12429 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12431 (gdbpy_eval_from_control_command): Renamed from
12432 eval_python_from_control_command, made static. New arg extlang.
12433 (gdbpy_source_script) Renamed from source_python_script, made static.
12435 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12436 result to int. New arg extlang.
12437 (gdbpy_source_objfile_script): Renamed from
12438 source_python_script_for_objfile, made static. New arg extlang.
12439 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12440 static. New args extlang, extlang_printers. Change result type to
12442 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12443 static. New arg extlang. Rename arg printers to extlang_printers
12444 and change type to ext_lang_type_printers *.
12445 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12446 static. Replace argument arg with extlang, extlang_printers.
12447 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12448 (!HAVE_PYTHON, source_python_script): Delete.
12449 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12450 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12451 (!HAVE_PYTHON, start_type_printers): Delete.
12452 (!HAVE_PYTHON, apply_type_printers): Delete.
12453 (!HAVE_PYTHON, free_type_printers): Delete.
12454 (_initialize_python): Delete call to observer_attach_before_prompt.
12455 (finalize_python): Set/restore active extension language.
12456 (gdbpy_finish_initialization) Renamed from
12457 finish_python_initialization, made static. New arg extlang.
12458 (gdbpy_initialized): New function.
12459 * python/python.h: #include "extension.h". Delete #include
12460 "value.h", "mi/mi-cmds.h".
12461 (extension_language_python): Declare.
12462 (GDBPY_AUTO_FILE_NAME): Delete.
12463 (enum py_bt_status): Moved to extension.h and renamed to
12464 ext_lang_bt_status.
12465 (enum frame_filter_flags): Moved to extension.h.
12466 (enum py_frame_args): Moved to extension.h and renamed to
12467 ext_lang_frame_args.
12468 (finish_python_initialization): Delete.
12469 (eval_python_from_control_command): Delete.
12470 (source_python_script): Delete.
12471 (apply_val_pretty_printer): Delete.
12472 (apply_frame_filter): Delete.
12473 (preserve_python_values): Delete.
12474 (gdbpy_script_language_defn): Delete.
12475 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12476 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12478 * auto-load.c: #include "extension.h".
12479 (GDB_AUTO_FILE_NAME): Delete.
12480 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12481 (script_language_gdb): Delete, moved to extension.c and renamed to
12482 extension_language_gdb.
12483 (source_gdb_script_for_objfile): Delete.
12484 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12485 (loaded_script): Change type of language member to
12486 struct extension_language_defn *.
12487 (init_loaded_scripts_info): Initialize
12488 unsupported_script_warning_printed.
12489 (maybe_add_script): Make static. Change type of language arg to
12490 struct extension_language_defn *.
12491 (clear_section_scripts): Reset unsupported_script_warning_printed.
12492 (auto_load_objfile_script_1): Rewrite to use extension language API.
12493 (auto_load_objfile_script): Make public. Remove support-compiled-in
12494 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12495 (source_section_scripts): Rewrite to use extension language API.
12496 (load_auto_scripts_for_objfile): Rewrite to use
12497 auto_load_scripts_for_objfile.
12498 (collect_matching_scripts_data): Change type of language member to
12499 struct extension_language_defn *.
12500 (auto_load_info_scripts): Change type of language arg to
12501 struct extension_language_defn *.
12502 (unsupported_script_warning_print): New function.
12503 (script_not_found_warning_print): Make static.
12504 (_initialize_auto_load): Rewrite construction of scripts-directory
12506 * auto-load.h (struct objfile): Add forward decl.
12507 (struct script_language): Delete.
12508 (struct auto_load_pspace_info): Add forward decl.
12509 (struct extension_language_defn): Add forward decl.
12510 (maybe_add_script): Delete.
12511 (auto_load_objfile_script): Declare.
12512 (script_not_found_warning_print): Delete.
12513 (auto_load_info_scripts): Update prototype.
12514 (auto_load_gdb_scripts_enabled): Declare.
12515 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12516 auto_load_python_scripts_enabled and made public.
12517 (script_language_python): Delete, moved to python.c.
12518 (gdbpy_script_language_defn): Delete.
12519 (info_auto_load_python_scripts): Update to use
12520 extension_language_python.
12522 * breakpoint.c (condition_command): Replace call to
12523 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12524 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12525 with call to breakpoint_ext_lang_cond_says_stop.
12526 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12527 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12528 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12529 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12531 (local_setattro): Print name of extension language with existing
12534 * valprint.c (val_print, value_print): Update to call
12535 apply_ext_lang_val_pretty_printer.
12536 * cp-valprint.c (cp_print_value): Update call to
12537 apply_ext_lang_val_pretty_printer.
12538 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12539 (gdbpy_apply_val_pretty_printer): Renamed from
12540 apply_val_pretty_printer. New arg extlang.
12541 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12543 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12544 extension language API.
12545 * cli/cli-script.c (execute_control_command): Update to call
12546 eval_ext_lang_from_control_command.
12548 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12549 enum ext_lang_bt_status values. Update call to
12550 apply_ext_lang_frame_filter.
12551 (mi_cmd_stack_list_locals): Ditto.
12552 (mi_cmd_stack_list_args): Ditto.
12553 (mi_cmd_stack_list_variables): Ditto.
12554 * mi/mi-main.c: Delete #include "python/python-internal.h".
12555 Add #include "extension.h".
12556 (mi_cmd_list_features): Replace reference to python internal variable
12557 gdb_python_initialized with call to ext_lang_initialized_p.
12559 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12560 Update to use enum ext_lang_frame_args. Update to call
12561 apply_ext_lang_frame_filter.
12562 * python/py-framefilter.c (extract_sym): Update to use enum
12563 ext_lang_bt_status.
12564 (extract_value, py_print_type, py_print_value): Ditto.
12565 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12566 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12567 (py_print_frame): Ditto.
12568 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12569 New arg extlang. Update to use enum ext_lang_bt_status.
12571 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12572 finish_python_initialization. Replace with call to
12573 finish_ext_lang_initialization.
12575 * typeprint.c (do_free_global_table): Update to call
12576 free_ext_lang_type_printers.
12577 (create_global_typedef_table): Update to call
12578 start_ext_lang_type_printers.
12579 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12580 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12581 (type_print_options): Change type of global_printers from "void *"
12582 to "struct ext_lang_type_printers *".
12584 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12585 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12586 (gdbpy_preserve_values): Renamed from preserve_python_values.
12588 (!HAVE_PYTHON, preserve_python_values): Delete.
12590 * utils.c (quit_flag): Delete, moved to extension.c.
12591 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12594 * eval.c: Delete #include "python/python.h".
12595 * main.c: Delete #include "python/python.h".
12597 * defs.h: Update comment.
12599 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12603 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12605 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12608 2014-02-05 Yao Qi <yao@codesourcery.com>
12610 * remote.c (remote_pass_signals): Remove local 'buf' and use
12612 (remote_program_signals): Likewise.
12614 2014-02-05 Yao Qi <yao@codesourcery.com>
12616 * ctf.c: Include "inferior.h" and "gdbthread.h".
12617 (CTF_PID): A new macro.
12618 (ctf_open): Call inferior_appeared and add_thread_silent.
12619 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12620 (ctf_thread_alive): New function.
12621 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12623 2014-02-05 Yao Qi <yao@codesourcery.com>
12627 2013-05-24 Yao Qi <yao@codesourcery.com>
12629 * tracepoint.c (TFILE_PID): Remove.
12630 (tfile_open): Don't add thread and inferior.
12631 (tfile_close): Don't set 'inferior_ptid'. Don't call
12632 exit_inferior_silent.
12633 (tfile_thread_alive): Remove.
12634 (init_tfile_ops): Don't set field 'to_thread_alive' of
12637 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12639 * remote.c (remote_start_remote): Call remote_check_symbols even
12640 if only symbol-file (not file) has been given.
12642 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12644 * gdbarch.sh (skip_entrypoint): New callback.
12645 * gdbarch.c, gdbarch.h: Regenerate.
12646 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12647 * infrun.c (fill_in_stop_func): Likewise.
12648 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12649 (ppc_elfv2_elf_make_msymbol_special): New function.
12650 (ppc_elfv2_skip_entrypoint): Likewise.
12651 (ppc_linux_init_abi): Install them for ELFv2.
12653 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12655 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12656 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12657 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12658 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12659 structures returned in GPRs.
12661 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12663 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12664 offset to the stack parameter list for the ELFv2 ABI.
12666 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12668 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12669 set_gdbarch_convert_from_func_ptr_addr and
12670 set_gdbarch_elf_make_msymbol_special for ELFv1.
12671 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12672 function descriptors on ELFv1.
12673 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12674 set up r12 at function entry.
12676 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12678 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12679 (struct gdbarch_tdep): New member elf_abi.
12681 * rs6000-tdep.c: Include "elf/ppc64.h".
12682 (rs6000_gdbarch_init): Detect ELF ABI version.
12684 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12686 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12687 within a register pair holding a DFP 128-bit value on little-endian.
12688 (ppc64_sysv_abi_return_value_base): Likewise.
12689 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12690 (dfp_pseudo_register_write): Likewise.
12692 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12694 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12695 offset on little-endian when passing _Decimal32.
12696 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12698 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12700 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12701 of the overlapped FP register within the VSX register on little-
12703 (efpr_pseudo_register_write): Likewise.
12705 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12707 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12708 offset on little-endian when passing small structures.
12710 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12712 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12713 (struct ppc64_sysv_argpos): New data structure.
12714 (ppc64_sysv_abi_push_float): Remove.
12715 (ppc64_sysv_abi_push_val): New function.
12716 (ppc64_sysv_abi_push_integer): Likewise.
12717 (ppc64_sysv_abi_push_freg): Likewise.
12718 (ppc64_sysv_abi_push_vreg): Likewise.
12719 (ppc64_sysv_abi_push_param): Likewise.
12720 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12721 (ppc64_sysv_abi_return_value_base): New function.
12722 (ppc64_sysv_abi_return_value): Refactor to use it.
12724 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12726 * NEWS: Document new target powerpc64le-*-linux*.
12728 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12730 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12731 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12733 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12734 register set used in ELF core dumps. Add floating-point register set.
12736 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12738 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12739 dwarf2_to_gdb[] table using symbolic constants. Adjust
12740 penultimate entry from number representing the PC register
12741 to symbolic constant representing the MDR register. Add
12742 constant for the PC register to the end of the table.
12744 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12746 * bsd-kvm.c: Include <sys/param.h>
12748 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12750 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12752 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12754 * ada-lang.h (clear_ada_sym_cache): Delete.
12756 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12758 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12760 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12762 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12763 the sigreturn register save area only if the syscall is
12766 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12768 * valops.c (value_slice): Minor reformatting.
12770 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12772 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12774 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12776 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12777 New static globals.
12778 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12779 (ada_ignore_descriptive_types_p): New static global.
12780 (find_parallel_type_by_descriptive_type): Return immediately
12781 if ada_ignore_descriptive_types_p is set.
12782 (_initialize_ada_language): Register new commands "maintenance
12783 set ada", "maintenance show ada", "maintenance set ada
12784 ignore-descriptive-types" and "maintenance show ada
12785 ignore-descriptive-types".
12786 * NEWS: Add entry for new "maint ada set/show
12787 ignore-descriptive-types" commands.
12789 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12791 * record-btrace.c (record_btrace_close): Call btrace_teardown
12794 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12796 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12799 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12801 * ada-typeprint (type_is_full_subrange_of_target_type):
12803 (print_range): Add parameter bounds_prefered_p. If not set,
12804 try printing range types using the name of their base type.
12805 (print_range_type): Add parameter bounds_prefered_p.
12806 Use it in call to print_range.
12807 (print_array_type, ada_print_type): Update calls to print_range
12808 and print_range_type.
12810 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12812 * ada-typeprint.c (print_array_type, print_choices, print_range)
12813 (print_range_bound, print_dynamic_range_bound, print_range_type):
12814 Remove declaration.
12816 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12818 * ada-typeprint.c (print_range): Add missing empty line
12819 after local declaration.
12821 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12823 * ada-valprint.c (print_optional_low_bound): Get index_type's
12824 target type for as long as it is a TYPE_CODE_RANGE.
12826 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12828 * procfs.c (procfs_make_note_section): Remove assertion and
12829 associated comment.
12831 2014-01-24 Yao Qi <yao@codesourcery.com>
12833 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12834 * corelow.c (get_core_siginfo): Likewise.
12836 2014-01-24 Yao Qi <yao@codesourcery.com>
12838 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12839 ULONGEST. Don't check 'len' is negative.
12840 (remote_write_bytes): Change type of 'len' to ULONGEST.
12842 2014-01-23 Tom Tromey <tromey@redhat.com>
12845 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12846 Handle exception from frame.block.
12847 (FrameVars.fetch_frame_locals): Likewise.
12849 2014-01-23 Tom Tromey <tromey@redhat.com>
12852 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12853 on a NULL pointer. Move "goto error" to correct place.
12855 2014-01-23 Tom Tromey <tromey@redhat.com>
12858 * python/py-framefilter.c (apply_frame_filter): Call
12859 ensure_python_env after computing gdbarch.
12861 2014-01-23 Yao Qi <yao@codesourcery.com>
12863 * target.c (raw_memory_xfer_partial): Change argument type
12864 from void * to gdb_byte *.
12865 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12867 2014-01-22 Doug Evans <dje@google.com>
12869 New gdbserver option --debug-format=timestamp.
12870 * NEWS: Mention it.
12872 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12874 * syscalls/s390x-linux.xml: New file.
12875 * syscalls/s390-linux.xml: New file.
12876 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12877 (XML_SYSCALL_FILENAME_S390X): Likewise.
12878 (op_svc): New enum value for SVC opcode.
12879 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12880 (s390_linux_get_syscall_number): New function.
12881 (s390_gdbarch_init): Register '*get_syscall_number' and the
12882 syscall xml file name.
12883 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12884 "s390-linux.xml" and "s390x-linux.xml".
12885 * NEWS: Announce new feature.
12887 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12889 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12891 2014-01-22 Pedro Alves <palves@redhat.com>
12893 * xtensa-config.c: Include defs.h.
12895 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12897 * common/common-utils.h: Add "ARI:" comment beside __func__
12900 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12902 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12903 documentation a bit.
12905 2014-01-21 Roland McGrath <mcgrathr@google.com>
12907 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12908 * configure: Regenerate.
12909 * aclocal.m4: Regenerate.
12910 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12911 New substituted variables.
12912 (install-strip): New target.
12913 (INSTALL_SCRIPT): New substituted variable.
12914 (FLAGS_TO_PASS): Add it.
12915 (install-only): Use $(INSTALL_SCRIPT) rather than
12916 $(INSTALL_PROGRAM) for gcore.
12918 2014-01-20 Tom Tromey <tromey@redhat.com>
12920 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12923 2014-01-20 Tom Tromey <tromey@redhat.com>
12925 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12926 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12927 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12928 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12929 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12930 (struct cmd_list_element) <flags>: Remove.
12931 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12932 doc_allocated>: New fields.
12933 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12935 * maint.c (maintenance_do_deprecate): Update.
12936 * top.c (execute_command): Update.
12938 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12940 * xtensa-linux-nat.c: Include asm/ptrace.h.
12942 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12944 * Makefile.in (SFILES): Add d-support.c.
12945 (COMMON_OBS): Add d-support.o.
12946 * d-lang.h (d_parse_symbol): Add comment, now defined in
12948 * d-lang.c (parse_call_convention)
12949 (parse_attributes, parse_function_types)
12950 (parse_function_args, parse_type, parse_identifier)
12951 (call_convention_p, d_parse_symbol): Move functions to ...
12952 * d-support.c: ... New file.
12954 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12956 * d-lang.h (d_parse_symbol): Add declaration.
12957 * d-lang.c (extract_identifiers)
12958 (extract_type_info): Remove functions.
12959 (parse_call_convention, parse_attributes)
12960 (parse_function_types, parse_function_args)
12961 (parse_type, parse_identifier, call_convention_p)
12962 (d_parse_symbol): New functions.
12963 (d_demangle): Use d_parse_symbol to demangle D symbols.
12965 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12967 * d-lang.h (struct builtin_d_type): New data type.
12968 (builtin_d_type): Add declaration.
12969 * d-lang.c (d_language_arch_info, build_d_types)
12970 (builtin_d_type): New functions.
12971 (enum d_primitive_types): New data type.
12972 (d_language_defn): Change c_language_arch_info to
12973 d_language_arch_info.
12974 (d_type_data): New static variable.
12975 (_initialize_d_language): Initialize d_type_data.
12977 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12979 * d-lang.h (d_main_name): Add declaration.
12980 * d-lang.c (d_main_name): New function.
12981 * symtab.c (find_main_name): Add call to d_main_name.
12983 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12985 * d-lang.c (d_language_defn): Change macro_expansion_c to
12986 macro_expansion_no.
12988 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12990 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12992 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12994 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12995 gdb_exception" declaration.
12996 * remote.c (getpkt_or_notif_sane): Likewise.
12998 2014-01-17 Doug Evans <dje@google.com>
13000 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13001 function, contents of dirnames_to_char_ptr_vec_append moved here.
13002 (delim_string_to_char_ptr_vec): New function.
13003 (dirnames_to_char_ptr_vec_append): Rewrite.
13004 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13006 2014-01-17 Doug Evans <dje@google.com>
13008 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13010 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13011 #include "common-utils.h".
13012 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13013 * common/vec.h (VEC_ASSERT_PASS): Update.
13014 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13015 (MACH_CHECK_ERROR): Update.
13017 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13019 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13021 * gdbarch.h: Regenerate.
13023 2014-01-16 Tom Tromey <tromey@redhat.com>
13025 * value.c (struct value) <regnum>: Move earlier.
13027 2014-01-16 Tom Tromey <tromey@redhat.com>
13029 * remote.c (extended_remote_create_inferior): Rename from
13030 extended_remote_create_inferior_1. Add "ops" argument. Remove
13031 old implementation.
13033 2014-01-16 Pedro Alves <palves@redhat.com>
13035 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13036 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13039 2014-01-16 Doug Evans <dje@google.com>
13041 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13043 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13045 * btrace.h (btrace_thread_flag): New.
13046 (struct btrace_thread_info) <flags>: New.
13047 * record-btrace.c (record_btrace_resume_thread)
13048 (record_btrace_find_thread_to_move, btrace_step_no_history)
13049 (btrace_step_stopped, record_btrace_start_replaying)
13050 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13051 (record_btrace_find_resume_thread): New.
13052 (record_btrace_resume, record_btrace_wait): Extend.
13053 (record_btrace_can_execute_reverse): New.
13054 (record_btrace_open): Fail in non-stop mode.
13055 (record_btrace_set_replay): Split into this, ...
13056 (record_btrace_stop_replaying): ... this, ...
13057 (record_btrace_clear_histories): ... and this.
13058 (init_record_btrace_ops): Init to_can_execute_reverse.
13059 * NEWS: Announce it.
13061 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13063 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13064 (forward_target_decr_pc_after_break)
13065 (target_decr_pc_after_break): New.
13066 * target.c (forward_target_decr_pc_after_break)
13067 (target_decr_pc_after_break): New.
13068 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13069 instead of gdbarch_decr_pc_after_break.
13070 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13071 instead of gdbarch_decr_pc_after_break.
13072 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13073 instead of gdbarch_decr_pc_after_break.
13074 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13075 instead of gdbarch_decr_pc_after_break.
13076 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13077 instead of gdbarch_decr_pc_after_break.
13078 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13079 instead of gdbarch_decr_pc_after_break.
13081 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13083 * btrace.c: Include regcache.h.
13084 (btrace_add_pc): New.
13085 (btrace_enable): Call btrace_add_pc.
13086 (btrace_is_empty): New.
13087 * btrace.h (btrace_is_empty): New.
13088 * record-btrace.c (require_btrace, record_btrace_info): Call
13091 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13093 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13094 Support delta reads.
13095 (linux_disable_btrace): Change return type.
13096 * common/linux-btrace.h (linux_read_btrace): Change parameters
13097 and return type to allow error reporting. Update users.
13098 (linux_disable_btrace): Change return type. Update users.
13099 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13101 (btrace_error): New.
13102 (btrace_block) <begin>: Comment on BEGIN == 0.
13103 * btrace.c (btrace_compute_ftrace): Start from the end of
13105 (btrace_stitch_trace, btrace_clear_history): New.
13106 (btrace_fetch): Read delta trace, return if replaying.
13107 (btrace_clear): Move clear history code to btrace_clear_history.
13108 (parse_xml_btrace): Throw an error if parsing failed.
13109 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13110 and return type to allow error reporting.
13111 (target_read_btrace): Change parameters and return type to allow
13113 * target.c (target_read_btrace): Update.
13114 * remote.c (remote_read_btrace): Support delta reads. Pass
13116 * NEWS: Announce it.
13118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13120 * record.h (record_btrace_frame_unwind)
13121 (record_btrace_tailcall_frame_unwind): New declarations.
13122 * dwarf2-frame: Include record.h
13123 (dwarf2_frame_cfa): Throw an error for btrace frames.
13124 * record-btrace.c: Include hashtab.h.
13125 (btrace_get_bfun_name): New.
13126 (btrace_call_history): Call btrace_get_bfun_name.
13127 (struct btrace_frame_cache): New.
13129 (bfcache_hash, bfcache_eq, bfcache_new): New.
13130 (btrace_get_frame_function): New.
13131 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13132 (record_btrace_frame_this_id): Compute own id.
13133 (record_btrace_frame_prev_register): Provide PC, throw_error
13134 for all other registers.
13135 (record_btrace_frame_sniffer): Detect btrace frames.
13136 (record_btrace_tailcall_frame_sniffer): New.
13137 (record_btrace_frame_dealloc_cache): New.
13138 (record_btrace_frame_unwind): Add new functions.
13139 (record_btrace_tailcall_frame_unwind): New.
13140 (_initialize_record_btrace): Allocate cache.
13141 * btrace.c (btrace_clear): Call reinit_frame_cache.
13142 * NEWS: Announce it.
13144 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13146 * record-btrace.c (record_btrace_set_replay)
13147 (record_btrace_goto_begin, record_btrace_goto_end)
13148 (record_btrace_goto): New.
13149 (init_record_btrace_ops): Initialize them.
13150 * NEWS: Announce it.
13152 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13154 * record-btrace.c (record_btrace_find_new_threads)
13155 (record_btrace_thread_alive): New.
13156 (init_record_btrace_ops): Initialize to_find_new_threads and
13159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13161 * record-btrace.c (record_btrace_resume): New.
13162 (record_btrace_wait): New.
13163 (init_record_btrace_ops): Initialize to_wait and to_resume.
13165 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13167 * record-btrace.c (record_btrace_xfer_partial)
13168 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13169 (record_btrace_allow_memory_access): New.
13170 (init_record_btrace_ops): Initialize new methods.
13171 * target.c (raw_memory_xfer_partial): Bail out if target reports
13172 that this memory is not available.
13174 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13176 * target.h (target_ops) <to_insert_breakpoint>
13177 <to_remove_breakpoint>: Add target_ops parameter.
13178 (forward_target_insert_breakpoint): New.
13179 (forward_target_remove_breakpoint): New.
13180 (memory_remove_breakpoint, memory_insert_breakpoint):
13181 Add target_ops parameter.
13182 * target.c (target_insert_breakpoint): Split into this and ...
13183 (forward_target_insert_breakpoint): ... this.
13184 (target_remove_breakpoint): Split into this and ...
13185 (forward_target_remove_breakpoint): ... this.
13186 (debug_to_insert_breakpoint): Add target_ops parameter.
13187 Call forward_target_insert_breakpoint.
13188 (debug_to_remove_breakpoint): Add target_ops parameter.
13189 Call forward_target_remove_breakpoint.
13190 (update_current_target): Do not inherit or default to_insert_breakpoint
13191 and to_remove_breakpoint.
13192 * corelow.c (ignore): Add target_ops parameter.
13193 * exec.c (ignore): Add target_ops parameter.
13194 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13195 Add target_ops parameter.
13196 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13197 Add target_ops parameter.
13198 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13199 Add target_ops parameter.
13200 * record-full.c (record_full_beneath_to_insert_breakpoint)
13201 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13202 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13203 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13204 (record_full_core_remove_breakpoint): Add target_ops parameter.
13206 (record_full_beneath_to_insert_breakpoint_ops)
13207 (record_full_beneath_to_remove_breakpoint_ops)
13208 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13209 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13210 tmp_to_remove_breakpoint_ops,
13211 record_full_beneath_to_insert_breakpoint_ops, and
13212 record_full_beneath_to_remove_breakpoint_ops.
13213 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13214 (m32r_remove_breakpoint): Add target_ops parameter.
13215 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13216 Add target_ops parameter.
13217 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13218 Add target_ops parameter.
13220 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13221 Markus Metzger <markus.t.metzger@intel.com>
13223 * record-btrace.c: Include frame-unwind.h.
13224 (record_btrace_frame_unwind_stop_reason)
13225 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13226 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13228 (init_record_btrace_ops): Install it.
13230 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13232 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13235 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13237 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13240 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13242 * frame-unwind.c: Include target.h.
13243 (frame_unwind_try_unwinder): New function with code from ...
13244 (frame_unwind_find_by_frame): ... here. New variable
13245 unwinder_from_target, call also target_get_unwinder)
13246 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13247 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13248 * target.h (struct target_ops): New fields to_get_unwinder and
13249 to_get_tailcall_unwinder.
13250 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13252 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13254 * record-btrace.c (record_btrace_fetch_registers)
13255 (record_btrace_store_registers)
13256 (record_btrace_to_prepare_to_store): New.
13257 (init_record_btrace_ops): Add the above.
13259 2014-01-16 Tom Tromey <tromey@redhat.com>
13261 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13262 * target.h (struct target_ops) <to_prepare_to_store>: Add
13264 (target_prepare_to_store): Add argument.
13265 * target.c (debug_to_prepare_to_store): Add argument.
13266 (update_current_target): Update.
13267 * remote.c (remote_prepare_to_store): Add 'self' argument.
13268 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13269 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13270 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13271 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13273 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13274 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13275 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13276 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13277 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13279 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13281 * btrace.h (replay) <replay>: New.
13282 (btrace_is_replaying): New.
13283 * btrace.c (btrace_clear): Free replay iterator.
13284 (btrace_is_replaying): New.
13285 * record-btrace.c (record_btrace_is_replaying): New.
13286 (record_btrace_info): Print insn number if replaying.
13287 (record_btrace_insn_history): Start at replay position.
13288 (record_btrace_call_history): Start at replay position.
13289 (init_record_btrace_ops): Init to_record_is_replaying.
13291 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13293 * record-btrace.c (record_btrace_insn_history_range): Include
13295 (record_btrace_insn_history_from): Adjust range.
13296 (record_btrace_call_history_range): Include
13298 (record_btrace_call_history_from): Adjust range.
13299 * NEWS: Announce changes.
13301 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13303 * record.h (enum record_print_flag)
13304 <record_print_indent_calls>: New.
13305 * record.c (get_call_history_modifiers): Recognize /c modifier.
13306 (_initialize_record): Document /c modifier.
13307 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13308 Reorder fields. Optionally indent the function name. Update
13310 * NEWS: Announce changes.
13312 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13314 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13316 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13318 * btrace.c (ftrace_new_function): Start counting at one.
13319 * record-btrace.c (record_btrace_info): Adjust number of calls
13321 * NEWS: Announce it.
13323 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13325 * record-btrace.c (btrace_call_history_insn_range): Print
13326 insn range as [begin, end].
13328 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13330 * btrace.h (struct btrace_func_link): New.
13331 (enum btrace_function_flag): New.
13332 (struct btrace_inst): Rename to ...
13333 (struct btrace_insn): ...this. Update all users.
13334 (struct btrace_func) <ibegin, iend>: Remove.
13335 (struct btrace_func_link): New.
13336 (struct btrace_func): Rename to ...
13337 (struct btrace_function): ...this. Update all users.
13338 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13339 (number, level, flags>: New.
13340 (struct btrace_insn_iterator): Rename to ...
13341 (struct btrace_insn_history): ...this.
13343 (struct btrace_insn_iterator, btrace_call_iterator): New.
13344 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13345 (struct btrace_target_info) <begin, end, level>
13346 <insn_history, call_history>: New.
13347 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13348 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13349 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13350 (btrace_call_number, btrace_call_begin, btrace_call_end)
13351 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13352 (btrace_find_function_by_number, btrace_set_insn_history)
13353 (btrace_set_call_history): New.
13354 * btrace.c (btrace_init_insn_iterator)
13355 (btrace_init_func_iterator, compute_itrace): Remove.
13356 (ftrace_print_function_name, ftrace_print_filename)
13357 (ftrace_skip_file): Change
13358 parameter to const.
13359 (ftrace_init_func): Remove.
13360 (ftrace_debug): Use new btrace_function fields.
13361 (ftrace_function_switched): Also consider gaining and
13362 losing symbol information).
13363 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13364 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13365 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13367 (ftrace_new_function): Move. Remove debug print.
13368 (ftrace_update_lines, ftrace_update_insns): New.
13369 (ftrace_update_function): Check for call, ret, and jump.
13370 (compute_ftrace): Renamed to ...
13371 (btrace_compute_ftrace): ...this. Rewritten to compute call
13373 (btrace_fetch, btrace_clear): Updated.
13374 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13375 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13376 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13377 (btrace_call_number, btrace_call_begin, btrace_call_end)
13378 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13379 (btrace_find_function_by_number, btrace_set_insn_history)
13380 (btrace_set_call_history): New.
13381 * record-btrace.c (require_btrace): Use new btrace thread
13383 (record_btrace_info, btrace_insn_history)
13384 (record_btrace_insn_history, record_btrace_insn_history_range):
13385 Use new btrace thread info fields and new iterator.
13386 (btrace_func_history_src_line): Rename to ...
13387 (btrace_call_history_src_line): ...this. Use new btrace
13388 thread info fields.
13389 (btrace_func_history): Rename to ...
13390 (btrace_call_history): ...this. Use new btrace thread info
13391 fields and new iterator.
13392 (record_btrace_call_history, record_btrace_call_history_range):
13393 Use new btrace thread info fields and new iterator.
13395 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13397 * frame.h (frame_id_build_unavailable_stack_special): New.
13398 * frame.c (frame_id_build_unavailable_stack_special): New.
13400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13402 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13403 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13404 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13406 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13407 (i386_insn_is_jump, i386_jmp_p): New.
13408 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13409 insn_is_jump to gdbarch.
13410 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13411 * gdbarch.h: Regenerated.
13412 * gdbarch.c: Regenerated.
13413 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13414 (default_insn_is_jump): New.
13415 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13416 (default_insn_is_jump): New.
13418 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13420 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13422 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13423 (btrace_read_type) <btrace_read_new>: Change to ...
13424 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13426 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13428 * common/linux-btrace.c (linux_read_btrace): Free trace from
13429 previous iteration.
13431 2014-01-15 Doug Evans <dje@google.com>
13433 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13436 2014-01-15 Tom Tromey <tromey@redhat.com>
13438 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13439 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13440 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13441 (set_objfile_main_name): New function.
13442 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13443 language_of_main>: New fields.
13444 (set_objfile_main_name): Declare.
13445 * symtab.c (find_main_name): Loop over objfiles to find the main
13447 (set_main_name): Now static.
13448 (get_main_info): Add comment.
13449 * symtab.h (set_main_name): Don't declare.
13451 2014-01-15 Tom Tromey <tromey@redhat.com>
13453 * symtab.c (main_progspace_key): New global.
13454 (struct main_info): New.
13455 (name_of_main, language_of_main): Remove.
13456 (get_main_info, main_info_cleanup): New function.
13457 (set_main_name, main_name, main_language): Use get_main_info.
13458 (_initialize_symtab): Initialize main_progspace_key.
13460 2014-01-15 Tom Tromey <tromey@redhat.com>
13462 * dbxread.c (process_one_symbol): Update.
13463 * dwarf2read.c (read_partial_die): Update.
13464 * symfile.c (set_initial_language): Call main_language.
13465 * symtab.c (language_of_main): Now static.
13466 (set_main_name): Add 'lang' parameter.
13467 (find_main_name): Update.
13468 (main_language): New function.
13469 (symtab_observer_executable_changed): Update.
13470 * symtab.h (set_main_name): Update.
13471 (language_of_main): Remove.
13472 (main_language): Declare.
13474 2014-01-15 Tom Tromey <tromey@redhat.com>
13476 * symfile.c (init_entry_point_info): Use new "initialized" field.
13478 * objfiles.h (struct entry_point) <initialized>: New field.
13479 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13480 (struct objfile) <ei>: ...here. Remove.
13481 * objfiles.c (entry_point_address_query): Update.
13483 2014-01-15 Tom Tromey <tromey@redhat.com>
13485 * objfiles.c (entry_point_address_query): Relocate entry point
13487 (objfile_relocate1): Do not relocate entry point address.
13488 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13489 <the_bfd_section_index>: New field.
13490 * symfile.c (init_entry_point_info): Find the entry point's
13493 2014-01-15 Tom Tromey <tromey@redhat.com>
13495 * solib-frv.c (enable_break): Use entry_point_address_query.
13497 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13499 * NEWS: Add note on improved process record-replay on
13500 arm*-linux* targets.
13502 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13504 * arm-tdep.c (enum arm_record_result): New enum.
13505 (arm_record_unsupported_insn): New function.
13506 (arm_record_coproc_data_proc): Removed.
13507 (thumb2_record_ld_st_multiple): New function.
13508 (thumb2_record_ld_st_dual_ex_tbb): New function.
13509 (thumb2_record_data_proc_sreg_mimm): New function.
13510 (thumb2_record_ps_dest_generic): New function.
13511 (thumb2_record_branch_misc_cntrl): New function.
13512 (thumb2_record_str_single_data): New function.
13513 (thumb2_record_ld_mem_hints): New function.
13514 (thumb2_record_ld_word): New function.
13515 (thumb2_record_lmul_lmla_div): New function.
13516 (thumb2_record_decode_insn_handler): New function.
13517 (decode_insn): Add thumb32 instruction handlers.
13519 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13521 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13522 (struct arm_linux_record_tdep): Declare.
13523 (arm_canonicalize_syscall): New function.
13524 (arm_all_but_pc_registers_record): New function.
13525 (arm_linux_syscall_record): New function.
13526 (arm_linux_init_abi): Add syscall recording constructs.
13527 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13528 decoding. (arm_record_coproc_data_proc): Update arm syscall
13530 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13531 <arm_syscall_record>: New field.
13532 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13535 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13537 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13538 register for push instruction recording.
13540 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13542 * arm-tdep.c (thumb_record_misc): Update to correct logical
13543 error while recording ldm, ldmia and pop instructions.
13545 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13547 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13549 2014-01-15 Pedro Alves <palves@redhat.com>
13551 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13552 (go32_resume, go32_fetch_registers, store_register)
13553 (go32_store_registers, go32_prepare_to_store)
13554 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13555 (go32_create_inferior, go32_can_run, go32_terminal_init)
13556 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13559 2014-01-15 Tom Tromey <tromey@redhat.com>
13561 * target.h (async_callback_ftype): New typedef.
13562 (struct target_ops) <to_async>: Use it.
13564 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13566 * python/py-value.c (get_field_type): Remove unnecessary curly
13567 braces for single-statement if block.
13569 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13571 * python/py-type.c (convert_field): Add missing empty line
13572 after declarations.
13574 2014-01-14 Doug Evans <dje@google.com>
13576 * symfile.h (expand_symtabs_matching): Renamed from
13577 expand_partial_symbol_names. Update prototype.
13578 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13579 * symfile.c (expand_symtabs_matching): Renamed from
13580 expand_partial_symbol_names. New args file_matcher, kind.
13581 Rename arg fun to symbol_matcher.
13582 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13583 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13584 ada_expand_partial_symbol_name.
13585 (ada_make_symbol_completion_list): Update to call
13586 expand_symtabs_matching.
13587 (ada_add_global_exceptions): Call expand_symtabs_matching.
13588 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13589 call map_symbol_filenames.
13590 * symtab.c (sources_info): Update to call map_symbol_filenames.
13591 (search_symbols): Call expand_symtabs_matching.
13592 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13593 (default_make_symbol_completion_list_break_on): Update to call
13594 expand_symtabs_matching.
13595 (make_source_files_completion_list): Update to call
13596 map_symbol_filenames.
13598 2014-01-14 Doug Evans <dje@google.com>
13600 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13601 (expand_symtabs_symbol_matcher_ftype): New typedef.
13602 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13603 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13604 * symfile.c (expand_partial_symbol_names): Update to use
13605 expand_symtabs_symbol_matcher_ftype.
13606 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13607 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13608 Arg name_matcher renamed to symbol_matcher.
13609 * psymtab.c (recursively_search_psymtabs): Update to use
13610 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13612 (expand_symtabs_matching_via_partial): Update to use
13613 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13614 Arg name_matcher renamed to symbol_matcher.
13616 2014-01-14 Doug Evans <dje@google.com>
13618 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13619 (map_partial_symbol_filenames): Ditto.
13620 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13621 (map_partial_symbol_filenames): Ditto.
13622 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13623 (map_partial_symbol_filenames): Ditto.
13624 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13625 (map_partial_symbol_filenames): Ditto.
13626 * symtab.c: Delete #include "psymtab.h".
13628 2014-01-14 Pedro Alves <palves@redhat.com>
13629 Tom Tromey <tromey@redhat.com>
13631 * infrun.c (use_displaced_stepping): Use find_record_target
13632 instead of RECORD_IS_USED.
13633 (adjust_pc_after_break): Use record_full_is_used instead of
13635 * record-btrace.c (record_btrace_open): Call record_preopen
13636 instead of checking RECORD_IS_USED.
13637 * record-full.c (record_full_shortname)
13638 (record_full_core_shortname): New globals.
13639 (record_full_is_used): New function.
13640 (find_full_open): Call record_preopen instead of checking
13642 (init_record_full_ops): Set the target's shortname to
13643 record_full_shortname.
13644 (init_record_full_core_ops): Set the target's shortname to
13645 record_full_core_shortname.
13646 * record-full.h (record_full_is_used): Declare.
13647 * record.c (find_record_target): Make extern.
13648 (record_preopen): New function.
13649 * record.h (RECORD_IS_USED): Delete macro.
13650 (find_record_target, record_preopen): Declare functions.
13652 2014-01-14 Yao Qi <yao@codesourcery.com>
13654 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13655 'len''s type to ULONGEST.
13656 (core_xfer_shared_libraries_aix): Likewise.
13657 * gdbarch.c, gdbarch.h: Regenerated.
13658 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13659 Change type of 'len' to ULONGEST.
13660 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13661 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13663 2014-01-14 Yao Qi <yao@codesourcery.com>
13665 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13666 type of 'len' to ULONGEST.
13667 (linux_xfer_osdata_processgroups): Likewise.
13668 (linux_xfer_osdata_threads): Likewise.
13669 (linux_xfer_osdata_fds): Likewise.
13670 (linux_xfer_osdata_isockets): Likewise.
13671 (linux_xfer_osdata_shm): Likewise.
13672 (linux_xfer_osdata_sem): Likewise.
13673 (linux_xfer_osdata_msg): Likewise.
13674 (linux_common_xfer_osdata): Likewise.
13675 (struct osdata_type) <getter>: Likewise.
13676 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13679 2014-01-14 Yao Qi <yao@codesourcery.com>
13681 * target.h (target_xfer_partial_ftype): Update.
13682 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13684 * aix-thread.c (aix_thread_xfer_partial): Change type of
13685 argument 'len' to ULONGEST.
13686 * auxv.c (procfs_xfer_auxv): Likewise.
13687 (ld_so_xfer_auxv): Likewise.
13688 (memory_xfer_auxv): Likewise.
13689 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13690 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13691 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13692 * corelow.c (core_xfer_partial): Likewise.
13693 * ctf.c (ctf_xfer_partial): Likewise.
13694 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13696 (darwin_read_dyld_info): Likewise.
13697 (darwin_xfer_partial): Likewise.
13698 * exec.c (section_table_xfer_memory_partial): Likewise.
13699 (exec_xfer_partial): Likewise.
13700 * exec.h (section_table_xfer_memory_partial): Update
13702 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13703 instead of plongest.
13704 (gnu_xfer_partial): Likewise.
13705 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13706 (ia64_hpux_xfer_solib_got): Likewise.
13707 (ia64_hpux_xfer_partial): Likewise.
13708 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13709 * inf-ptrace.c (inf_ptrace_xfer_partial):
13710 * inf-ttrace.c (inf_ttrace_xfer_partial):
13711 * linux-nat.c (linux_xfer_siginfo): Likewise.
13712 (linux_nat_xfer_partial): Likewise.
13713 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13714 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13715 * monitor.c (monitor_xfer_memory): Likewise.
13716 (monitor_xfer_partial): Likewise.
13717 * procfs.c (procfs_xfer_partial): Likewise.
13718 * record-full.c (record_full_xfer_partial): Likewise.
13719 (record_full_core_xfer_partial): Likewise.
13720 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13721 instead of plongest.
13722 (gdbsim_xfer_partial): Likewise.
13723 * remote.c (remote_xfer_partial): Likewise.
13724 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13725 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13727 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13728 (rs6000_xfer_shared_libraries): Likewise.
13729 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13730 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13731 (sparc_xfer_partial): Likewise.
13732 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13733 (spu_xfer_partial): Likewise.
13734 * spu-multiarch.c (spu_xfer_partial): Likewise.
13735 * target.c (target_read_live_memory): Likewise.
13736 (memory_xfer_live_readonly_partial): Likewise.
13737 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13738 (target_xfer_partial, default_xfer_partial): Likewise.
13739 (current_xfer_partial): Likewise.
13740 * tracepoint.c (tfile_xfer_partial): Likewise.
13741 * windows-nat.c (windows_xfer_memory): Likewise. Call
13742 pulongest instead of plongest.
13743 (windows_xfer_partial): Likewise.
13744 (windows_xfer_shared_libraries): Likewise.
13746 2014-01-14 Yao Qi <yao@codesourcery.com>
13748 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13749 target_xfer_partial_ftype.
13751 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13755 * valops.c (value_struct_elt_bitpos): New function
13756 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13757 object to 'None' if the field name is an empty string ("").
13758 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13759 attribute to look for a field when 'name' is 'None'.
13760 (get_field_type): New function
13762 2014-01-13 Doug Evans <dje@google.com>
13765 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13766 (try_open_dwop_file): Ditto.
13767 * gdb_bfd.c: #include "vec.h".
13768 (bfdp): New typedef.
13769 (struct gdb_bfd_data): New member included_bfds.
13770 (gdb_bfd_unref): Unref all included bfds.
13771 (gdb_bfd_record_inclusion): New function.
13772 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13774 2014-01-13 Tom Tromey <tromey@redhat.com>
13776 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13778 2014-01-13 Tom Tromey <tromey@redhat.com>
13780 * defs.h (use_windows): Remove.
13781 * gdb.c (main): Update.
13782 * main.c (captured_main, gdb_main): Update.
13783 * main.h (struct captured_main_args) <use_windows>: Remove.
13784 * top.c (use_windows): Remove.
13786 2014-01-13 Tom Tromey <tromey@redhat.com>
13788 * defs.h (deprecated_flush_hook): Remove.
13790 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13793 * linux-thread-db.c (try_thread_db_load): Add parameter
13794 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13795 (try_thread_db_load_from_pdir_1): Move it there from here.
13796 (try_thread_db_load_from_sdir): Update caller.
13797 (try_thread_db_load_from_dir): Move it there from here.
13799 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13801 * regformats/regdat.sh: Always rewrite the register file.
13803 2014-01-13 Pedro Alves <palves@redhat.com>
13805 * Makefile.in (CHECK_HEADERS): New variable.
13806 (check-headers:): New rule.
13808 2014-01-13 Tom Tromey <tromey@redhat.com>
13810 * cli/cli-setshow.c (do_set_command): Update.
13811 * defs.h (deprecated_set_hook): Remove.
13812 * top.c (deprecated_set_hook): Remove.
13814 2014-01-13 Pedro Alves <palves@redhat.com>
13816 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13817 the tracepoint if the PC is a pseudo-register.
13819 2014-01-13 Tom Tromey <tromey@redhat.com>
13821 * defs.h (XCALLOC): Remove.
13822 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13823 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13824 * dwarf2loc.c (allocate_piece_closure): Likewise.
13825 * elfread.c (elf_symfile_segments): Likewise.
13826 (elf_symfile_segments): Likewise.
13827 * gdbtypes.c (copy_type_recursive): Likewise.
13828 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13829 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13830 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13832 * mt-tdep.c (mt_gdbarch_init): Likewise.
13833 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13835 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13836 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13837 * registry.c (registry_alloc_data): Likewise.
13838 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13839 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13840 * serial.c (serial_fdopen_ops): Likewise.
13841 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13843 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13844 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13847 2014-01-13 Tom Tromey <tromey@redhat.com>
13849 * defs.h (XMALLOC): Remove.
13850 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13851 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13852 * cli-out.c (struct ui_out *): Likewise.
13853 * cli/cli-dump.c (add_dump_command): Likewise.
13854 (add_dump_command): Likewise.
13855 * complaints.c (get_complaints): Likewise.
13856 (find_complaint): Likewise.
13857 * dwarf2-frame.c (execute_cfa_program): Likewise.
13858 * dwarf2read.c (abbrev_table_read_table): Likewise.
13859 * gdbarch.sh: Likewise.
13860 * gdbarch.c: Rebuild.
13861 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13862 * interps.c (interp_new): Likewise.
13863 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13864 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13865 * mi/mi-console.c (mi_console_file_new): Likewise.
13866 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13867 * mi/mi-out.c (mi_out_new): Likewise.
13868 * mi/mi-parse.c (mi_parse): Likewise.
13869 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13870 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13871 * observer.c (xalloc_observer_list_node): Likewise.
13872 * regcache.c (regcache_xmalloc_1): Likewise.
13873 * reggroups.c (reggroup_new): Likewise.
13874 (_initialize_reggroup): Likewise.
13875 * registry.c (register_data_with_cleanup): Likewise.
13876 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13877 * ser-base.c (serial_ttystate): Likewise.
13878 * ser-mingw.c (make_pipe_state): Likewise.
13879 * ser-pipe.c (pipe_open): Likewise.
13880 * serial.c (serial_open): Likewise.
13881 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13882 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13883 (tui_alloc_win_info): Likewise.
13884 (tui_add_content_elements): Likewise.
13885 * tui/tui-file.c (tui_file_new): Likewise.
13886 * tui/tui-out.c (tui_out_new): Likewise.
13887 * ui-file.c (mem_file_new): Likewise.
13888 * ui-out.c (push_level): Likewise.
13889 (make_cleanup_ui_out_end): Likewise.
13890 (append_header_to_list): Likewise.
13891 (ui_out_new): Likewise.
13892 * user-regs.c (user_reg_add_builtin): Likewise.
13894 2014-01-13 Tom Tromey <tromey@redhat.com>
13896 * defs.h (XZALLOC): Remove.
13897 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13898 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13899 (get_ada_tasks_inferior_data): Likewise.
13900 * auto-load.c (get_auto_load_pspace_data): Likewise.
13901 * auxv.c (get_auxv_inferior_data): Likewise.
13902 * bfd-target.c (target_bfd_reopen): Likewise.
13903 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13904 (deprecated_insert_raw_breakpoint): Likewise.
13905 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13906 * corelow.c (core_open): Likewise.
13907 * darwin-nat.c (darwin_check_new_threads): Likewise.
13908 (darwin_attach_pid): Likewise.
13909 * dummy-frame.c (dummy_frame_push): Likewise.
13910 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13911 * dwarf2loc.c (allocate_piece_closure): Likewise.
13912 * elfread.c (elf_symfile_segments): Likewise.
13913 * eval.c (ptrmath_type_p): Likewise.
13914 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13915 * gdbtypes.c (alloc_type_arch): Likewise.
13916 (alloc_type_instance): Likewise.
13917 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13918 * inf-child.c (inf_child_can_use_agent): Likewise.
13919 * inflow.c (get_inflow_inferior_data): Likewise.
13920 * infrun.c (save_infcall_suspend_state): Likewise.
13921 * jit.c (jit_reader_load): Likewise.
13922 (get_jit_objfile_data): Likewise.
13923 (get_jit_program_space_data): Likewise.
13924 (jit_object_open_impl): Likewise.
13925 (jit_symtab_open_impl): Likewise.
13926 (jit_block_open_impl): Likewise.
13927 (jit_frame_sniffer): Likewise.
13928 * linux-fork.c (add_fork): Likewise.
13929 * maint.c (make_command_stats_cleanup): Likewise.
13930 * objfiles.c (get_objfile_pspace_data): Likewise.
13931 * opencl-lang.c (struct lval_closure): Likewise.
13932 * osdata.c (osdata_start_osdata): Likewise.
13933 * progspace.c (new_address_space): Likewise.
13934 (add_program_space): Likewise.
13935 * remote-sim.c (get_sim_inferior_data): Likewise.
13936 * sh-tdep.c (sh_gdbarch_init): Likewise.
13937 * skip.c (Ignore): Likewise.
13938 (skip_delete_command): Likewise.
13939 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13940 (library_list_start_library): Likewise.
13941 (solib_aix_current_sos): Likewise.
13942 * solib-darwin.c (get_darwin_info): Likewise.
13943 (darwin_current_sos): Likewise.
13944 * solib-dsbt.c (get_dsbt_info): Likewise.
13945 * solib-ia64-hpux.c (new_so_list): Likewise.
13946 (ia64_hpux_get_solib_linkage_addr): Likewise.
13947 * solib-spu.c (append_ocl_sos): Likewise.
13948 (spu_current_sos): Likewise.
13949 * solib-svr4.c (get_svr4_info): Likewise.
13950 (svr4_keep_data_in_core): Likewise.
13951 (library_list_start_library): Likewise.
13952 (svr4_default_sos): Likewise.
13953 (svr4_read_so_list): Likewise.
13954 * solib-target.c (library_list_start_library): Likewise.
13955 (solib_target_current_sos): Likewise.
13956 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13957 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13958 * symfile.c (default_symfile_segments): Likewise.
13959 * target-descriptions.c (tdesc_data_init): Likewise.
13960 (tdesc_create_reg): Likewise.
13961 (struct tdesc_type *): Likewise.
13962 (tdesc_create_vector): Likewise.
13963 (tdesc_set_struct_size): Likewise.
13964 (struct tdesc_type *): Likewise.
13965 (tdesc_free_feature): Likewise.
13966 (tdesc_create_feature): Likewise.
13967 * windows-nat.c (windows_add_thread): Likewise.
13968 (windows_make_so): Likewise.
13969 * xml-support.c (gdb_xml_body_text): Likewise.
13970 (gdb_xml_create_parser_and_cleanup): Likewise.
13971 (xml_process_xincludes): Likewise.
13972 * xml-syscall.c (allocate_syscalls_info): Likewise.
13973 (syscall_create_syscall_desc): Likewise.
13975 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13977 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13978 function, with code from i386_stap_parse_special_token.
13979 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13980 (i386_stap_parse_special_token): Move code to the two functions
13981 above; simplify it.
13983 2014-01-09 Pedro Alves <palves@redhat.com>
13984 Hui Zhu <hui@codesourcery.com>
13987 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13988 bp_err_string. Don't mark the location shlib_disabled if the
13989 error thrown wasn't a generic or memory error. Catch errors
13990 thrown while inserting breakpoints in overlayed code. Output
13991 error message of software breakpoints.
13992 * remote.c (remote_insert_breakpoint): If this breakpoint has
13993 target-side commands but this stub doesn't support Z0 packets,
13994 throw NOT_SUPPORTED_ERROR error.
13995 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13996 * target.h (target_insert_breakpoint): Extend comment.
13997 (target_insert_hw_breakpoint): Add comment.
13999 2014-01-08 Pedro Alves <palves@redhat.com>
14001 * remote.c (remote_add_thread): Add threads silently if starting
14003 (remote_notice_new_inferior): If in all-stop, and starting up,
14004 don't call notice_new_inferior.
14005 (get_current_thread): New function, factored out from ...
14006 (add_current_inferior_and_thread): ... this. Adjust.
14007 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14008 found any thread, then select the remote's current thread as GDB's
14009 current thread too.
14011 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14013 * NEWS: Create a new section for the next release branch.
14014 Rename the section of the current branch, now that it has
14017 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14019 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14020 * version.in: Bump version to 7.7.50.DATE-cvs.
14022 2014-01-08 Yao Qi <yao@codesourcery.com>
14024 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14025 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14026 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14028 2014-01-08 Yao Qi <yao@codesourcery.com>
14030 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14031 return value of bfd_get_filename to symbol_file_add_from_bfd.
14033 2014-01-08 Pierre Muller <muller@sourceware.org>
14036 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14037 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14038 to prim_record_mininal_symbol_and_info.
14039 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14040 in call to prim_record_minimal_symbol_and_info.
14041 (read_pe_exported_syms): Set index field of section_data.
14043 2014-01-07 Andrew Pinski <apinski@cavium.com>
14045 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14046 * features/aarch64.c: Regenerate.
14048 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14050 * target.c (return_null): Define.
14051 (update_current_target): Use it instead of return_zero for
14052 functions that return a pointer.
14054 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14056 * source.c (add_path): Fix check for duplicated paths in the previously
14059 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14061 * ada-lang.c: Remove duplicated include statements.
14062 * alphabsd-nat.c: Ditto.
14063 * amd64-darwin-tdep.c: Ditto.
14064 * amd64fbsd-nat.c: Ditto.
14065 * auto-load.c: Ditto.
14067 * breakpoint.c: Ditto.
14068 * dbxread.c: Ditto.
14069 * fork-child.c: Ditto.
14070 * gdb_usleep.c: Ditto.
14071 * i386-darwin-tdep.c: Ditto.
14072 * i386fbsd-nat.c: Ditto.
14074 * inferior.c: Ditto.
14075 * jv-lang.c: Ditto.
14076 * linux-nat.c: Ditto.
14077 * linux-tdep.c: Ditto.
14078 * m68kbsd-nat.c: Ditto.
14079 * m68klinux-nat.c: Ditto.
14080 * microblaze-tdep.c: Ditto.
14081 * mips-linux-tdep.c: Ditto.
14082 * mn10300-tdep.c: Ditto.
14083 * nto-tdep.c: Ditto.
14084 * opencl-lang.c: Ditto.
14086 * printcmd.c: Ditto.
14087 * regcache.c: Ditto.
14088 * remote-m32r-sdi.c: Ditto.
14090 * symfile.c: Ditto.
14092 * tilegx-linux-nat.c: Ditto.
14093 * tilegx-tdep.c: Ditto.
14094 * tracepoint.c: Ditto.
14096 * vaxbsd-nat.c: Ditto.
14097 * windows-nat.c: Ditto.
14098 * xtensa-tdep.c: Ditto.
14100 2014-01-07 Yao Qi <yao@codesourcery.com>
14102 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14104 2014-01-07 Yao Qi <yao@codesourcery.com>
14105 Joel Brobecker <brobecker@adacore.com>
14107 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14108 (pdc_write_regs): Likewise.
14109 (fetch_regs_kernel_thread): Likewise.
14110 (store_regs_kernel_thread): Likewise.
14112 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14114 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14115 tagged type objects to their actual type.
14117 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14119 * ada-valprint.c (print_field_values): Add "language" parameter.
14120 Update calls to print_field_values and print_variant_part.
14121 Pass new parameter "language" in call to val_print instead
14122 of "current_language". Replace call to ada_val_print by call
14124 (print_variant_part): Add "language" parameter.
14125 (ada_val_print_struct_union): Update call to print_field_values.
14127 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14129 * ada-valprint.c (ui_memcpy): Delete.
14130 (ada_print_floating): Update documentation. Add empty line
14131 between between function documentation and implementation.
14132 Delete variable "buffer". Use ui_file_xstrdup in place of
14133 ui_file_put. Minor adjustments following this change.
14135 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14137 * ada-valprint.c (ada_val_print_string): New function,
14138 extracted from ada_val_print_array.
14139 (ada_val_print_array): Replace extracted code by call
14140 to ada_val_print_string followed by a return. Move
14141 "else" branch to the function's top block.
14143 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14145 * ada-valprint.c (ada_val_print_array): Move implementation
14146 down. Rename parameter "offset" and "val" into "offset_aligned"
14147 and "original_value" respectively. Add parameter "offset".
14149 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14151 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14152 re-organizing the code. Change the "???" message printed
14153 when target type is a TYPE_CODE_UNDEF into
14154 "<ref to undefined type>".
14156 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14158 * ada-valprint.c (print_record): Delete, implementation inlined...
14159 (ada_val_print_struct_union): ... here. Remove call to
14160 ada_check_typedef in inlined implementation.
14162 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14164 * ada-valprint.c (ada_val_print_gnat_array): New function,
14165 extracted from ada_val_print_1;
14166 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14167 (ada_val_print_flt, ada_val_print_struct_union)
14168 (ada_val_print_ref): Likewise.
14169 (ada_val_print_1): Delete variables i and elttype.
14170 Replace extracted-out code by call to corresponding
14173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14175 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14177 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14179 * ada-valprint.c (ada_val_print_1): Replace calls to
14180 ada_val_print_1 by calls to val_print.
14182 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14184 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14185 Update calls to self accordingly. Replace calls to c_val_print
14186 by calls to val_print.
14188 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14190 * ada-valprint.c (print_record): Delete declaration.
14191 (adjust_type_signedness, ada_val_print_1): Likewise.
14192 (ada_val_print): Move function implementation down.
14193 (print_variant_part, print_field_values, print_record):
14194 Move function implementation up.
14196 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14198 * python/py-type.c (typy_get_name): New function.
14199 (type_object_getset): Add entry for attribute "name".
14200 * NEWS: Add entry mentioning this new attribute.
14202 2014-01-07 Yao Qi <yao@codesourcery.com>
14204 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14207 2014-01-07 Yao Qi <yao@codesourcery.com>
14209 * gnu-nat.c (info_port_rights): Add qualifier const to
14212 2014-01-07 Yao Qi <yao@codesourcery.com>
14214 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14216 2014-01-07 Yao Qi <yao@codesourcery.com>
14218 * gnu-nat.c (make_inf) Update declaration.
14219 (make_inf): Make it static.
14220 (inf_set_traced): Likewise.
14221 (inf_port_to_thread, inf_task_died_status): Likewise.
14223 2014-01-07 Yao Qi <yao@codesourcery.com>
14225 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14227 2014-01-07 Yao Qi <yao@codesourcery.com>
14229 * gnu-nat.c (_initialize_gnu_nat): Declare.
14231 2014-01-07 Yao Qi <yao@codesourcery.com>
14233 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14235 (struct gdbarch_info) <byte_order>: Change type to
14237 <byte_order_for_code>: Likewise.
14238 * gdbarch.c, gdbarch.h: Regenerated.
14240 2014-01-06 Sasha Smundak <asmundak@google.com>
14242 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14244 2014-01-06 Tom Tromey <tromey@redhat.com>
14246 * doublest.c (convert_doublest_to_floatformat): Use const, not
14248 * somread.c (som_symtab_read): Likewise.
14250 2014-01-07 Hui Zhu <hui@codesourcery.com>
14252 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14253 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14254 (gdb_bfd_fopen): Ditto.
14255 (gdb_bfd_openr): Ditto.
14256 (gdb_bfd_openw): Ditto.
14257 (gdb_bfd_openr_iovec): Ditto.
14258 (gdb_bfd_fdopenr): Ditto.
14259 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14260 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14262 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14264 * symfile-mem.c (symbol_file_add_from_memory): Removed
14265 gdb_bfd_stash_filename.
14267 2014-01-03 Doug Evans <dje@google.com>
14269 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14272 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14274 Update year range in copyright notice of all files.
14276 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14278 * top.c (print_gdb_version): Set copyright year to 2014.
14280 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14282 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14284 For older changes see ChangeLog-2013.
14290 version-control: never