1 2014-10-15 Pedro Alves <palves@redhat.com>
3 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
4 Add describing comment. Return -1 if the qL packet is not
6 (struct thread_item, thread_item_t): Move higher up in
7 the file. Add comments.
8 (struct threads_parsing_context): Move higher up in
9 the file, add comments, and remote to ...
10 (struct threads_listing_context): ... this.
11 (remote_newthread_step): Don't add the thread to GDB's thread
12 database here. Instead push it to the thread_listing_context
14 (remote_find_new_threads): Rename to ...
15 (remote_get_threads_with_ql): ... this. Add target_ops and
16 targets_listing_context parameters. Pass down context.
17 (start_thread): Adjust.
18 (clear_threads_parsing_context): Rename to ...
19 (clear_threads_listing_context): ... this.
20 (remote_get_threads_with_qxfer): New, with parts salvaged from old
22 (remote_get_threads_with_qthreadinfo): Ditto.
23 (remote_threads_info): Reimplement.
25 2014-10-15 Pedro Alves <palves@redhat.com>
27 * infrun.c (resume): Don't force displaced-stepping for all
28 single-steps on software single-stepping archs.
30 2014-10-15 Pedro Alves <palves@redhat.com>
32 * breakpoint.c (single_step_breakpoints): Delete global.
33 (insert_single_step_breakpoint): Adjust to store the breakpoint
34 pointer in the current thread.
35 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
36 (cancel_single_step_breakpoints): Delete functions.
37 (breakpoint_has_location_inserted_here): Make extern.
38 (single_step_breakpoint_inserted_here_p): Adjust to walk the
40 * breakpoint.h (breakpoint_has_location_inserted_here): New
42 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
43 (cancel_single_step_breakpoints): Remove declarations.
44 * gdbthread.h (struct thread_control_state)
45 <single_step_breakpoints>: New field.
46 (delete_single_step_breakpoints)
47 (thread_has_single_step_breakpoints_set)
48 (thread_has_single_step_breakpoint_here): New declarations.
49 * infrun.c (follow_exec): Also clear the single-step breakpoints.
50 (singlestep_breakpoints_inserted_p, singlestep_ptid)
51 (singlestep_pc): Delete globals.
52 (infrun_thread_ptid_changed): Remove references to removed
54 (resume_cleanups): Delete the current thread's single-step
56 (maybe_software_singlestep): Remove references to removed globals.
57 (resume): Adjust to use thread_has_single_step_breakpoints_set and
58 delete_single_step_breakpoints.
59 (init_wait_for_inferior): Remove references to removed globals.
60 (delete_thread_infrun_breakpoints): Delete the thread's
61 single-step breakpoints too.
62 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
63 single-step breakpoints here.
64 (delete_stopped_threads_single_step_breakpoints): New function.
65 (adjust_pc_after_break): Adjust to use
66 thread_has_single_step_breakpoints_set.
67 (handle_inferior_event): Remove references to removed globals.
68 Use delete_stopped_threads_single_step_breakpoints.
69 (handle_signal_stop): Adjust to per-thread single-step
70 breakpoints. Swap test order to do cheaper tests first.
71 (switch_back_to_stepped_thread): Extend debug output. Remove
72 references to removed globals.
73 * record-full.c (record_full_wait_1): Adjust to per-thread
74 single-step breakpoints.
75 * thread.c (delete_single_step_breakpoints)
76 (thread_has_single_step_breakpoints_set)
77 (thread_has_single_step_breakpoint_here): New functions.
78 (clear_thread_inferior_resources): Also delete the thread's
79 single-step breakpoints.
81 2014-10-15 Pedro Alves <palves@redhat.com>
83 * thread.c (delete_thread_breakpoint): New function.
84 (delete_step_resume_breakpoint)
85 (delete_exception_resume_breakpoint): Use it.
86 (delete_at_next_stop): New function.
87 (clear_thread_inferior_resources): Use delete_at_next_stop.
89 2014-10-15 Pedro Alves <palves@redhat.com>
91 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
92 (breakpoint_inserted_here_p): ... here. Remove special case for
93 software single-step breakpoints.
94 (find_non_raw_software_breakpoint_inserted_here): Inline ...
95 (software_breakpoint_inserted_here_p): ... here. Remove special
96 case for software single-step breakpoints.
97 (bp_target_info_copy_insertion_state)
98 (deprecated_insert_raw_breakpoint)
99 (deprecated_remove_raw_breakpoint): Delete functions.
100 * breakpoint.h (deprecated_insert_raw_breakpoint)
101 (deprecated_remove_raw_breakpoint): Remove declarations.
103 2014-10-15 Pedro Alves <palves@redhat.com>
106 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
107 Delete array globals.
108 (single_step_breakpoints): New global.
109 (breakpoint_xfer_memory): Remove special handling for single-step
111 (update_breakpoints_after_exec): Delete bp_single_step
113 (detach_breakpoints): Remove special handling for single-step
115 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
116 (bpstat_stop_status): Add comment.
117 (bpstat_what, bptype_string, print_one_breakpoint_location)
118 (adjust_breakpoint_address, init_bp_location): Handle
120 (new_single_step_breakpoint): New function.
121 (set_momentary_breakpoint, bkpt_remove_location): Remove special
122 handling for single-step breakpoints.
123 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
124 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
126 (detach_single_step_breakpoints, find_single_step_breakpoint):
128 (breakpoint_has_location_inserted_here): New function.
129 (single_step_breakpoint_inserted_here_p): Rewrite.
130 * breakpoint.h: Remove FIXME.
131 (enum bptype) <bp_single_step>: New enum value.
132 (insert_single_step_breakpoint): Update comment.
133 * infrun.c (resume_cleanups)
134 (delete_step_thread_step_resume_breakpoint): Remove single-step
136 (fetch_inferior_event): Install a cleanup that removes infrun
138 (switch_back_to_stepped_thread) <expect thread advanced also>:
139 Clear step-over info.
141 2014-10-15 Pedro Alves <palves@redhat.com>
143 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
144 (delete_thread_infrun_breakpoints): New function, with parts
145 salvaged from delete_step_resume_breakpoint_callback.
146 (delete_step_thread_step_resume_breakpoint): Delete.
147 (for_each_just_stopped_thread_callback_func): New typedef.
148 (for_each_just_stopped_thread): New function.
149 (delete_just_stopped_threads_infrun_breakpoints): New function.
150 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
151 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
153 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
155 2014-10-15 Pedro Alves <palves@redhat.com>
157 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
158 trying to step past a non-steppable watchpoint.
159 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
161 * infrun.c (struct step_over_info): Add new field
162 'nonsteppable_watchpoint_p' and adjust comments.
163 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
165 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
166 (stepping_past_nonsteppable_watchpoint): New function.
167 (step_over_info_valid_p): Also return true if stepping past a
168 nonsteppable watchpoint.
169 (proceed): Adjust call to set_step_over_info. Remove reference to
171 (init_wait_for_inferior): Remove reference to init_infwait_state.
172 (waiton_ptid): Delete global.
173 (struct execution_control_state)
174 <stepped_after_stopped_by_watchpoint>: Delete field.
175 (wait_for_inferior, fetch_inferior_event): Always pass
176 minus_one_ptid to target_wait.
177 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
179 (init_infwait_state): Delete function.
180 (handle_inferior_event): Remove infwait_state handling.
181 (handle_signal_stop) <watchpoints handling>: Adjust after
182 stepped_after_stopped_by_watchpoint removal. Don't remove
183 breakpoints here nor set infwait_state. Set the thread's
184 stepping_over_watchpoint flag, and call keep_going instead.
185 (keep_going): Handle stepping_over_watchpoint. Adjust
186 set_step_over_info calls.
187 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
190 2014-10-15 Pedro Alves <palves@redhat.com>
192 * infrun.c (step_over_info_valid_p): New function.
193 (resume): Use step_over_info_valid_p instead of checking the
194 threads's trap_expected flag.
196 2014-10-15 Doug Evans <dje@google.com>
197 Walfred Tedeschi <walfred.tedeschi@intel.com>
200 * python/lib/gdb/__init__.py (packages): Add "printer".
201 * python/lib/gdb/command/bound_registers.py: Moved to ...
202 * python/lib/gdb/printer/bound_registers.py: ... here.
203 Add printer to global set of builtin printers. Rename printer from
204 "bound" to "mpx_bound128".
205 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
206 registered as global "builtin" printer.
207 (add_builtin_pretty_printer): New function.
208 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
209 gdb/printer/__init__.py.
211 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
213 * Makefile.in (SFILES): Remove d-support.c.
214 (COMMON_OBS): Remove d-support.o.
215 * d-lang.h (d_parse_symbol): Remove declaration.
216 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
217 * d-support.c: Remove file.
219 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
221 * gdb/infrun.c (process_event_stop_test): Apply
222 gdbarch_addr_bits_remove to longjmp resume address.
224 2014-10-15 Pedro Alves <palves@redhat.com>
226 * regformats/microblaze.dat: Delete file.
228 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
230 * features/Makefile (microblaze-expedite): Replace pc with rpc.
231 * regformats/microblaze-with-stack-protect.dat: Regenerate.
233 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
235 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
238 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
242 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
245 2014-10-14 Joel Brobecker <brobecker@adacore.com>
247 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
248 of the case where the second operand is a pointer.
249 <BINOP_SUB>: Likewise.
251 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
253 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
254 only if it is not NULL.
255 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
256 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
257 (struct probe_ops) <clear_semaphore>: Likewise.
258 * tracepoint.c (start_tracing): Call set_semaphore only if it is
260 (stop_tracing): Likewise, for clear_semaphore.
262 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
264 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
265 using language_c, instead of current_language.
267 2014-10-13 Doug Evans <dje@google.com>
269 * python/py-objfile.c (objfpy_initialize): New function.
270 (objfpy_new, objfile_to_objfile_object): Call it.
271 * python/py-progspace.c (pspy_initialize): New function.
272 (pspy_new, pspace_to_pspace_object): Call it.
274 2014-10-13 Miroslav Franc <mfranc@redhat.com>
275 Jan Kratochvil <jan.kratochvil@redhat.com>
277 Fix "save breakpoints" for "catch" command.
278 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
281 2014-10-12 Miroslav Franc <mfranc@redhat.com>
283 Fix "save breakpoints" for "disable $bpnum" command.
284 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
286 2014-10-10 Pedro Alves <palves@redhat.com>
288 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
289 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
290 (HFILES_NO_SRCDIR): Remove solib-irix.h.
291 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
293 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
294 * configure.ac: Remove references to IRIX.
295 * configure.host: Add *-*-irix* to the obsolete hosts section.
296 Remove all other references to irix.
297 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
300 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
302 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
303 isn't valid, release the tdesc arch data and return NULL.
305 2014-10-10 Pedro Alves <palves@redhat.com>
307 * linux-tdep.c: Include observer.h.
308 (linux_inferior_data): New global.
309 (struct linux_info): New structure.
310 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
311 (get_linux_inferior_data): New functions.
312 (linux_vsyscall_range): Rename to ...
313 (linux_vsyscall_range_raw): ... this.
314 (linux_vsyscall_range): New function; handles caching.
315 (_initialize_linux_tdep): Register linux_inferior_data. Install
316 inferior_exit and inferior_appeared observers.
318 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
319 Pedro Alves <palves@redhat.com>
322 * solib-svr4.c (svr4_read_so_list): Rename to ...
323 (svr4_current_sos_1): ... this and change the function comment.
324 (svr4_current_sos): New function.
326 2014-10-10 Pedro Alves <palves@redhat.com>
328 * arch-utils.c (default_vsyscall_range): New function.
329 * arch-utils.h (default_vsyscall_range): New declaration.
330 * gdbarch.sh (vsyscall_range): New hook.
331 * gdbarch.h, gdbarch.c: Regenerate.
332 * linux-tdep.c (linux_vsyscall_range): New function.
333 (linux_init_abi): Install linux_vsyscall_range as
334 vsyscall_range gdbarch hook.
335 * memrange.c (address_in_mem_range): New function.
336 * memrange.h (address_in_mem_range): New declaration.
337 * symfile-mem.c (find_vdso_size): Delete function.
338 (add_vsyscall_page): Use gdbarch_vsyscall_range.
340 2014-10-10 Pedro Alves <palves@redhat.com>
342 * infrun.c (normal_stop): Fix typo in comment.
344 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
347 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
348 typo when using logical AND to determine instruction type.
350 2014-10-09 Yao Qi <yao@codesourcery.com>
352 * infrun.c (handle_signal_stop): Remove local variable
355 2014-10-08 Stan Shebs <stan@codesourcery.com>
357 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
359 2014-10-08 Gary Benson <gbenson@redhat.com>
361 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
363 2014-10-08 Gary Benson <gbenson@redhat.com>
365 * common/common-defs.h: Include common-exceptions.h.
366 * exceptions.h: Do not include common-exceptions.h.
368 2014-10-08 Gary Benson <gbenson@redhat.com>
370 * common/common-defs.h: Include cleanups.h.
371 * common/common-exceptions.c: Do not include cleanups.h.
374 2014-10-08 Gary Benson <gbenson@redhat.com>
376 * ada-lang.c: Do not include exceptions.h.
377 * ada-valprint.c: Likewise.
378 * amd64-tdep.c: Likewise.
379 * auto-load.c: Likewise.
381 * break-catch-throw.c: Likewise.
382 * breakpoint.c: Likewise.
383 * btrace.c: Likewise.
384 * c-lang.c: Likewise.
385 * cli/cli-cmds.c: Likewise.
386 * cli/cli-interp.c: Likewise.
387 * cli/cli-script.c: Likewise.
388 * completer.c: Likewise.
389 * corefile.c: Likewise.
390 * corelow.c: Likewise.
391 * cp-abi.c: Likewise.
392 * cp-support.c: Likewise.
393 * cp-valprint.c: Likewise.
394 * darwin-nat.c: Likewise.
395 * dwarf2-frame-tailcall.c: Likewise.
396 * dwarf2-frame.c: Likewise.
397 * dwarf2loc.c: Likewise.
398 * dwarf2read.c: Likewise.
400 * event-loop.c: Likewise.
401 * event-top.c: Likewise.
402 * f-valprint.c: Likewise.
403 * frame-unwind.c: Likewise.
405 * gdbtypes.c: Likewise.
406 * gnu-v2-abi.c: Likewise.
407 * gnu-v3-abi.c: Likewise.
408 * guile/scm-auto-load.c: Likewise.
409 * guile/scm-breakpoint.c: Likewise.
410 * guile/scm-cmd.c: Likewise.
411 * guile/scm-frame.c: Likewise.
412 * guile/scm-lazy-string.c: Likewise.
413 * guile/scm-param.c: Likewise.
414 * guile/scm-symbol.c: Likewise.
415 * guile/scm-type.c: Likewise.
416 * hppa-hpux-tdep.c: Likewise.
417 * i386-tdep.c: Likewise.
418 * inf-loop.c: Likewise.
419 * infcall.c: Likewise.
420 * infcmd.c: Likewise.
421 * infrun.c: Likewise.
422 * interps.c: Likewise.
423 * interps.h: Likewise.
425 * linespec.c: Likewise.
426 * linux-nat.c: Likewise.
427 * linux-thread-db.c: Likewise.
428 * m32r-rom.c: Likewise.
430 * memory-map.c: Likewise.
431 * mi/mi-cmd-break.c: Likewise.
432 * mi/mi-cmd-stack.c: Likewise.
433 * mi/mi-interp.c: Likewise.
434 * mi/mi-main.c: Likewise.
435 * monitor.c: Likewise.
436 * nto-procfs.c: Likewise.
437 * objc-lang.c: Likewise.
438 * p-valprint.c: Likewise.
440 * ppc-linux-tdep.c: Likewise.
441 * printcmd.c: Likewise.
443 * python/py-auto-load.c: Likewise.
444 * python/py-breakpoint.c: Likewise.
445 * python/py-cmd.c: Likewise.
446 * python/py-finishbreakpoint.c: Likewise.
447 * python/py-frame.c: Likewise.
448 * python/py-framefilter.c: Likewise.
449 * python/py-function.c: Likewise.
450 * python/py-gdb-readline.c: Likewise.
451 * python/py-inferior.c: Likewise.
452 * python/py-infthread.c: Likewise.
453 * python/py-lazy-string.c: Likewise.
454 * python/py-linetable.c: Likewise.
455 * python/py-param.c: Likewise.
456 * python/py-prettyprint.c: Likewise.
457 * python/py-symbol.c: Likewise.
458 * python/py-type.c: Likewise.
459 * python/py-value.c: Likewise.
460 * python/python-internal.h: Likewise.
461 * python/python.c: Likewise.
462 * record-btrace.c: Likewise.
463 * record-full.c: Likewise.
464 * regcache.c: Likewise.
465 * remote-fileio.c: Likewise.
466 * remote-mips.c: Likewise.
467 * remote.c: Likewise.
468 * rs6000-aix-tdep.c: Likewise.
469 * rs6000-nat.c: Likewise.
471 * solib-darwin.c: Likewise.
472 * solib-dsbt.c: Likewise.
473 * solib-frv.c: Likewise.
474 * solib-ia64-hpux.c: Likewise.
475 * solib-spu.c: Likewise.
476 * solib-svr4.c: Likewise.
478 * spu-tdep.c: Likewise.
480 * stap-probe.c: Likewise.
481 * symfile-mem.c: Likewise.
482 * symmisc.c: Likewise.
483 * target.c: Likewise.
484 * thread.c: Likewise.
486 * tracepoint.c: Likewise.
487 * tui/tui-interp.c: Likewise.
488 * typeprint.c: Likewise.
490 * valarith.c: Likewise.
491 * valops.c: Likewise.
492 * valprint.c: Likewise.
494 * varobj.c: Likewise.
495 * windows-nat.c: Likewise.
496 * xml-support.c: Likewise.
498 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
500 * mips-tdep.c (add_offset_16): Rewrite to implement what the
502 (extended_mips16_next_pc): Update accordingly.
504 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
506 * mips-tdep.c (mips16_instruction_is_compact_branch): New
508 (micromips_instruction_is_compact_branch): Likewise.
509 (mips16_scan_prologue): Terminate scanning upon seeing a branch
510 or a compact jump, reaching a jump delay slot, or seeing a
511 second non-prologue instruction.
512 (micromips_scan_prologue): Also terminate scanning upon seeing a
513 compact branch or jump, or reaching a branch or jump delay slot.
514 (mips32_scan_prologue): Terminate scanning upon reaching a branch
515 or jump delay slot, or seeing a second non-prologue instruction.
516 (mips32_instruction_has_delay_slot): Retain instruction
517 examination code only, update arguments accordingly and move
518 instruction fetch pieces to...
519 (mips32_insn_at_pc_has_delay_slot): ... this new function.
520 (micromips_instruction_has_delay_slot): Likewise and to...
521 (micromips_insn_at_pc_has_delay_slot): ... this new function.
522 (mips16_instruction_has_delay_slot): Likewise and to...
523 (mips16_insn_at_pc_has_delay_slot): ... this new function.
524 (mips_single_step_through_delay): Update accordingly.
525 (mips_adjust_breakpoint_address): Likewise.
527 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
529 * mips-tdep.c (micromips_instruction_has_delay_slot): When
530 !mustbe32 also return 1 for 32-bit instructions.
531 (mips16_instruction_has_delay_slot): Likewise. Add an
534 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
536 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
539 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
541 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
543 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
544 for the breakpoint's address. Don't preinitialize `placed_size'.
545 (insert_bp_location): Set `reqstd_address' rather than
547 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
548 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
550 (bkpt_remove_location): Likewise.
551 (deprecated_insert_raw_breakpoint): Likewise.
552 (deprecated_remove_raw_breakpoint): Likewise.
553 (find_single_step_breakpoint): Likewise.
554 * mem-break.c (default_memory_insert_breakpoint): Use
555 `reqstd_address' for the breakpoint's address. Don't set
556 `placed_address' or `placed_size' if breakpoint contents couldn't
557 have been determined.
558 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
559 the breakpoint's address.
560 (remote_insert_hw_breakpoint): Likewise. Don't set
561 `placed_address' or `placed_size' if breakpoint couldn't have been
563 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
564 `reqstd_address' for the breakpoint's address.
565 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
566 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
567 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
568 * microblaze-linux-tdep.c
569 (microblaze_linux_memory_remove_breakpoint): Likewise.
570 * monitor.c (monitor_insert_breakpoint): Likewise.
571 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
572 (procfs_insert_hw_breakpoint): Likewise.
573 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
574 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
575 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
576 * remote-mips.c (mips_insert_breakpoint): Likewise.
577 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
579 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
581 * valops.c (value_assign): Check for bit field assignments
582 before calling architecture-specific register value
583 conversion functions.
585 2014-10-03 Pierre Muller <muller@sourceware.org>
587 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
589 2014-10-02 Pedro Alves <palves@redhat.com>
591 * breakpoint.c (breakpoints_should_be_inserted_now): Use
592 threads_are_executing.
593 * breakpoint.h (breakpoints_should_be_inserted_now): Add
595 * gdbthread.h (threads_are_executing): Declare.
596 (handle_signal_stop) <random signals>: Don't print about the
597 signal here if stopping.
598 (end_stepping_range): Don't notify observers here.
599 (normal_stop): Update the thread list. If stopped by a random
600 signal or a stepping range ended, notify observers.
601 * thread.c (threads_executing): New global.
602 (init_thread_list): Clear 'threads_executing'.
603 (set_executing): Set or clear 'threads_executing'.
604 (threads_are_executing): New function.
605 (update_threads_executing): New function.
606 (update_thread_list): Use it.
608 2014-10-02 Pedro Alves <palves@redhat.com>
611 * breakpoint.c (update_breakpoints_after_exec): Don't create
612 overlay, longjmp, std terminate nor exception breakpoints here.
614 2014-10-02 Pedro Alves <palves@redhat.com>
616 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
618 * inferior.c (find_inferior_for_program_space): Give preference to
619 the current inferior.
620 * inferior.h (find_inferior_for_program_space): Update comment.
621 * progspace.c (switch_to_program_space_and_thread): Prefer the
622 current inferior if it's bound to the program space requested. If
623 the inferior found doesn't have a PID yet, don't bother looking up
625 * progspace.h (switch_to_program_space_and_thread): Adjust
627 * thread.c (any_thread_of_process, any_live_thread_of_process):
628 Give preference to the current thread.
630 2014-10-01 Pedro Alves <palves@redhat.com>
632 * breakpoint.c (insert_bp_location): Error out if inserting a
633 software breakpoint at a read-only address.
634 * target.c (memory_xfer_check_region): New function, factored out
636 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
638 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
639 against the memory region attributes.
641 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
643 * NEWS: Announce new exit-code field in -list-thread-groups
645 * inferior.c (exit_inferior_1): Don't clear exit code.
646 (inferior_appeared): Clear exit code.
647 * mi/mi-main.c (print_one_inferior): Add printing of the exit
650 2014-10-01 Pedro Alves <palves@redhat.com>
652 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
653 GENERATED" along with emacs/vi read-only markers.
654 * regformats/aarch64.dat: Regenerate.
655 * regformats/arm-with-iwmmxt.dat: Regenerate.
656 * regformats/arm-with-neon.dat: Regenerate.
657 * regformats/arm-with-vfpv2.dat: Regenerate.
658 * regformats/arm-with-vfpv3.dat: Regenerate.
659 * regformats/i386/amd64-avx-linux.dat: Regenerate.
660 * regformats/i386/amd64-avx.dat: Regenerate.
661 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
662 * regformats/i386/amd64-avx512.dat: Regenerate.
663 * regformats/i386/amd64-linux.dat: Regenerate.
664 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
665 * regformats/i386/amd64-mpx.dat: Regenerate.
666 * regformats/i386/amd64.dat: Regenerate.
667 * regformats/i386/i386-avx-linux.dat: Regenerate.
668 * regformats/i386/i386-avx.dat: Regenerate.
669 * regformats/i386/i386-avx512-linux.dat: Regenerate.
670 * regformats/i386/i386-avx512.dat: Regenerate.
671 * regformats/i386/i386-linux.dat: Regenerate.
672 * regformats/i386/i386-mmx-linux.dat: Regenerate.
673 * regformats/i386/i386-mmx.dat: Regenerate.
674 * regformats/i386/i386-mpx-linux.dat: Regenerate.
675 * regformats/i386/i386-mpx.dat: Regenerate.
676 * regformats/i386/i386.dat: Regenerate.
677 * regformats/i386/x32-avx-linux.dat: Regenerate.
678 * regformats/i386/x32-avx.dat: Regenerate.
679 * regformats/i386/x32-avx512-linux.dat: Regenerate.
680 * regformats/i386/x32-avx512.dat: Regenerate.
681 * regformats/i386/x32-linux.dat: Regenerate.
682 * regformats/i386/x32.dat: Regenerate.
683 * regformats/microblaze-with-stack-protect.dat: Regenerate.
684 * regformats/mips-dsp-linux.dat: Regenerate.
685 * regformats/mips-linux.dat: Regenerate.
686 * regformats/mips64-dsp-linux.dat: Regenerate.
687 * regformats/mips64-linux.dat: Regenerate.
688 * regformats/nios2-linux.dat: Regenerate.
689 * regformats/rs6000/powerpc-32.dat: Regenerate.
690 * regformats/rs6000/powerpc-32l.dat: Regenerate.
691 * regformats/rs6000/powerpc-64l.dat: Regenerate.
692 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
693 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
694 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
695 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
696 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
697 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
698 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
699 * regformats/s390-linux32.dat: Regenerate.
700 * regformats/s390-linux32v1.dat: Regenerate.
701 * regformats/s390-linux32v2.dat: Regenerate.
702 * regformats/s390-linux64.dat: Regenerate.
703 * regformats/s390-linux64v1.dat: Regenerate.
704 * regformats/s390-linux64v2.dat: Regenerate.
705 * regformats/s390-te-linux64.dat: Regenerate.
706 * regformats/s390x-linux64.dat: Regenerate.
707 * regformats/s390x-linux64v1.dat: Regenerate.
708 * regformats/s390x-linux64v2.dat: Regenerate.
709 * regformats/s390x-te-linux64.dat: Regenerate.
710 * regformats/tic6x-c62x-linux.dat: Regenerate.
711 * regformats/tic6x-c62x.dat: Regenerate.
712 * regformats/tic6x-c64x-linux.dat: Regenerate.
713 * regformats/tic6x-c64x.dat: Regenerate.
714 * regformats/tic6x-c64xp-linux.dat: Regenerate.
715 * regformats/tic6x-c64xp.dat: Regenerate.
717 2014-10-01 Pedro Alves <palves@redhat.com>
719 * features/Makefile: Update comments.
720 (XMLTOC): List all xml files we build C files from.
721 (clean-cfiles): New rule.
723 2014-10-01 Pedro Alves <palves@redhat.com>
725 * features/i386/amd64-avx512-linux.c: Regenerate.
726 * features/i386/amd64-avx512.c: Regenerate.
727 * features/i386/x32-avx512-linux.c: Regenerate.
728 * features/i386/x32-avx512.c: Regenerate.
730 2014-10-01 Pedro Alves <palves@redhat.com>
732 * features/Makefile (WHICH): Remove arm-with-m,
733 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
735 2014-10-01 Pedro Alves <palves@redhat.com>
737 * features/Makefile (clean): New rule.
739 2014-10-01 Pedro Alves <palves@redhat.com>
741 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
742 (zmm14h): Add missing end quotes.
744 2014-10-01 Pedro Alves <palves@redhat.com>
746 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
747 * features/aarch64.c: Regenerate.
749 2014-09-30 Don Breazeal <donb@codesourcery.com>
751 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
752 code so as to work with follow_fork_inferior.
753 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
754 (inf_ttrace_create_inferior): Remove reference to
755 inf_ttrace_vfork_ppid.
756 (inf_ttrace_attach): Ditto.
757 (inf_ttrace_detach): Ditto.
758 (inf_ttrace_kill): Use current_inferior instead of
759 inf_ttrace_vfork_ppid.
760 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
761 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
762 inferior away from the parent.
763 * infrun.c (follow_fork): Call follow_fork_inferior instead of
765 (follow_fork_inferior): New function.
766 (follow_inferior_reset_breakpoints): Make function static.
767 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
768 * linux-nat.c (linux_child_follow_fork): Move target-independent
769 code to infrun.c:follow_fork_inferior.
771 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
773 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
774 * gdbarch.c: Regenerate.
775 * gdbarch.h: Likewise.
776 * corelow.c (sniff_core_bfd): Drop presence check for deleted
777 gdbarch method 'regset_from_core_section'.
778 (get_core_register_section): Remove handling for the case that
779 regset == NULL and regset_from_core_section is defined.
780 (get_core_registers): Drop check for deleted method.
781 * procfs.c (procfs_do_thread_registers): Adjust comment.
783 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
785 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
786 (linux_nat_make_corefile_notes): Remove.
787 (linux_target_install_ops): Do not set target method
788 'make_corefile_notes'.
789 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
791 (linux_corefile_thread_callback): Instead of args->collect, call
792 linux_collect_thread_registers.
793 (linux_make_corefile_notes): Remove 'collect' parameter. Return
794 NULL unless there is a regset iterator.
795 (linux_make_corefile_notes_1): Remove.
796 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
797 by linux_make_corefile_notes.
798 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
800 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
802 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
803 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
805 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
807 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
809 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
810 (xtensa_iterate_over_regset_sections): New.
811 (xtensa_gdbarch_init): Adjust gdbarch initialization.
813 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
815 * vax-tdep.c (vax_regset_from_core_section): Remove.
816 (vax_iterate_over_regset_sections): New.
817 (vax_gdbarch_init): Adjust gdbarch initialization.
819 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
821 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
822 (tilegx_regset_from_core_section): Remove.
823 (tilegx_iterate_over_regset_sections): New.
824 (tilegx_linux_init_abi): Adjust gdbarch initialization.
826 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
828 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
829 (sparc_iterate_over_regset_sections): New.
830 (sparc32_gdbarch_init): Adjust gdbarch initialization.
831 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
833 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
834 (sparc64fbsd_init_abi): Call fbsd_init_abi.
835 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
836 target method 'make_corefile_notes'.
838 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
840 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
841 'sizeof_gregset' and 'sizeof_fpregset'.
842 * sh-tdep.c (sh_regset_from_core_section): Remove.
843 (sh_iterate_over_regset_sections): New.
844 (sh_gdbarch_init): Adjust gdbarch initialization.
845 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
847 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
850 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
852 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
853 (score7_linux_iterate_over_regset_sections): New.
854 (score_gdbarch_init): Adjust gdbarch initialization.
856 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
858 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
860 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
861 method 'make_corefile_notes'.
862 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
863 (ppcfbsd_regset_from_core_section): Remove.
864 (ppcfbsd_iterate_over_regset_sections): New.
865 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
867 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
868 (ppcnbsd_iterate_over_regset_sections): New.
869 (ppcnbsd_init_abi): Adjust.
870 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
871 (ppcobsd_iterate_over_regset_sections): New.
872 (ppcobsd_init_abi): Adjust.
873 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
874 (rs6000_aix_iterate_over_regset_sections): New.
875 (rs6000_aix_init_osabi): Adjust.
877 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
879 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
880 (nios2_regset_from_core_section): Remove.
881 (nios2_iterate_over_regset_sections): New.
882 (nios2_linux_init_abi): Adjust gdbarch initialization.
884 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
886 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
887 (am33_iterate_over_regset_sections): New.
888 (am33_linux_init_osabi): Adjust gdbarch initialization.
890 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
892 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
893 (mips_linux_iterate_over_regset_sections): New.
894 (mips_linux_init_abi): Adjust gdbarch initialization.
895 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
896 (mips64obsd_iterate_over_regset_sections): New.
897 (mips64obsd_init_abi): Adjust.
898 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
899 (mipsnbsd_iterate_over_regset_sections): New.
900 (mipsnbsd_init_abi): Adjust.
902 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
904 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
905 (m88k_iterate_over_regset_sections): New.
906 (m88k_gdbarch_init): Adjust gdbarch initialization.
908 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
910 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
911 (ia64_linux_iterate_over_regset_sections): New.
912 (ia64_linux_init_abi): Adjust gdbarch initialization.
914 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
916 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
917 (m68kbsd_iterate_over_regset_sections): New.
918 (m68kbsd_init_abi): Adjust gdbarch initialization.
919 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
920 (m68k_linux_iterate_over_regset_sections): New.
921 (m68k_linux_init_abi): Adjust gdbarch initialization.
923 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
925 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
926 (m32r_linux_regset_from_core_section): Remove.
927 (m32r_linux_iterate_over_regset_sections): New.
928 (m32r_linux_init_abi): Adjust gdbarch initialization.
930 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
932 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
933 (amd64obsd_iterate_over_regset_sections): New.
934 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
935 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
937 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
938 regset_from_core_section initialization.
939 * i386-tdep.c (i386_regset_from_core_section): Remove.
940 (i386_iterate_over_regset_sections): New.
941 (i386_gdbarch_init): Adjust gdbarch initialization.
942 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
943 (i386_iterate_over_regset_sections): New prototype.
944 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
946 (i386obsd_aout_iterate_over_regset_sections): New.
947 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
948 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
950 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
951 (amd64fbsd_init_abi): Call fbsd_init_abi.
952 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
953 (i386fbsd4_init_abi): Call fbsd_init_abi.
954 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
955 target method 'make_corefile_notes'.
956 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
958 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
960 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
961 (hppa_hpux_iterate_over_regset_sections): New.
962 (hppa_hpux_init_abi): Adjust gdbarch initialization.
963 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
964 (hppa_linux_iterate_over_regset_sections): New.
965 (hppa_linux_init_abi): Adjust.
966 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
967 (hppanbsd_iterate_over_regset_sections): New.
968 (hppanbsd_init_abi): Adjust.
969 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
970 (hppaobsd_iterate_over_regset_sections): New.
971 (hppaobsd_init_abi): Adjust.
973 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
975 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
976 (frv_linux_iterate_over_regset_sections): New.
977 (frv_linux_init_abi): Adjust gdbarch initialization.
979 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
981 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
982 (armbsd_iterate_over_regset_sections): New prototype.
983 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
984 (armbsd_iterate_over_regset_sections): New.
985 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
988 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
990 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
991 (alpha_linux_iterate_over_regset_sections): New.
992 (alpha_linux_init_abi): Adjust gdbarch initialization.
993 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
995 (alphanbsd_iterate_over_regset_sections): New prototype.
997 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
999 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1001 (aarch64_linux_iterate_over_regset_sections): New.
1002 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1004 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1006 * fbsd-tdep.c: New file.
1007 * fbsd-tdep.h: New file.
1008 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1009 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1010 (ALLDEPFILES): Add fbsd-tdep.c.
1012 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1014 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1016 * gdbarch.h: Regenerate.
1017 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1019 (get_core_register_section): Add parameter 'regset' and use it, if
1020 set. Add parameter 'min_size' and verify the bfd section size
1022 (get_core_registers_cb): Add parameter 'regset' and pass it to
1023 get_core_register section. For the "standard" register sections
1024 ".reg" and ".reg2", set an appropriate default for human_name.
1025 (get_core_registers): Don't abort when the gdbarch has an iterator
1026 but no regset_from_core_section. Add NULL/0 for parameters
1027 'regset'/'min_size' in calls to get_core_register_section.
1028 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1029 'regset' and use it instead of calling the
1030 regset_from_core_section gdbarch method.
1031 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1032 * i386-tdep.c (i386_supply_xstateregset)
1033 (i386_collect_xstateregset, i386_xstateregset): Moved to
1035 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1037 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1038 core file support only if the regset iterator hasn't been set.
1039 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1040 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1041 Moved from i386-tdep.c and renamed to *_linux*.
1042 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1043 each callback invocation. Allow any .reg-xstate size when reading
1045 * amd64-tdep.c (amd64_supply_xstateregset)
1046 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1048 (amd64_regset_from_core_section): Remove.
1049 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1050 install an amd64-specific regset_from_core_section gdbarch method.
1051 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1052 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1053 Moved from amd64-tdep.c and renamed to *_linux*.
1054 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1055 to each callback invocation. Allow any .reg-xstate size when
1056 reading from a core file.
1057 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1058 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1059 each callback invocation.
1060 (arm_linux_init_abi): No longer set the regset_from_core_section
1062 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1063 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1064 each callback invocation.
1065 (ppc_linux_init_abi): No longer set the regset_from_core_section
1067 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1068 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1069 (s390_regset_from_core_section): Remove.
1070 (s390_iterate_over_regset_sections): Add regset parameter to each
1071 callback invocation.
1072 (s390_gdbarch_init): No longer set the regset_from_core_section
1073 gdbarch method. Drop initialization of deleted tdep fields.
1075 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1077 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1078 (amd64_linux_iterate_over_regset_sections): New.
1079 (amd64_linux_init_abi_common): Don't install the regset section
1080 list, but the new iterator in gdbarch.
1081 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1082 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1083 (arm_linux_iterate_over_regset_sections): ...here. New function.
1084 (arm_linux_init_abi): Set iterator instead of section list.
1085 * corelow.c (get_core_registers_cb): New function, logic moved
1087 (get_core_registers): ...loop body here. Use new iterator method
1088 instead of walking through the regset section list.
1089 * gdbarch.sh: Remove 'core_regset_sections'. New method
1090 'iterate_over_regset_sections'. New typedef
1091 'iterate_over_regset_sections_cb'.
1092 * gdbarch.c: Regenerate.
1093 * gdbarch.h: Likewise.
1094 * i386-linux-tdep.c (i386_linux_regset_sections)
1095 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1097 (i386_linux_iterate_over_regset_sections): New.
1098 (i386_linux_init_abi): Don't choose a regset section list, but
1099 install new iterator in gdbarch.
1100 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1101 (linux_collect_regset_section_cb): New function, logic moved
1103 (linux_collect_thread_registers): ...loop body here. Use iterator
1104 method instead of walking through list.
1105 (linux_make_corefile_notes_1): Check for presence of iterator
1106 method instead of regset section list.
1107 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1108 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1109 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1110 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1111 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1112 (ppc_linux_init_abi): Don't choose from above regset section
1113 lists, but install new iterator in gdbarch.
1114 * regset.h (struct core_regset_section): Remove.
1115 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1116 have_linux_v1, have_linux_v2, and have_tdb.
1117 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1118 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1119 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1120 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1121 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1122 (s390_iterate_over_regset_sections): ...here. New function. Use
1124 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1125 regset section lists, but install new iterator.
1127 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1129 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1131 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1133 * progspace.c (print_program_space): Don't prune program spaces
1134 before printing them.
1136 2014-09-25 Pedro Alves <palves@redhat.com>
1138 * infrun.c (user_visible_resume_ptid): Don't check
1139 singlestep_breakpoints_inserted_p.
1141 2014-09-25 Pedro Alves <palves@redhat.com>
1143 * breakpoint.c (should_be_inserted): Add debug output.
1145 2014-09-25 Pedro Alves <palves@redhat.com>
1147 * infrun.c (stepping_past_instruction_at)
1148 (clear_exit_convenience_vars): Point at infrun.h instead of
1150 (handle_signal_stop): Fix typo.
1152 2014-09-24 Yao Qi <yao@codesourcery.com>
1154 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1157 2014-09-22 Gary Benson <gbenson@redhat.com>
1159 * target.c (target_stop): Updated comment.
1161 2014-09-22 Gary Benson <gbenson@redhat.com>
1163 * target/target.h (target_stop_ptid): Renamed as...
1164 (target_stop_and_wait): New function. Updated comment.
1166 (target_continue_ptid): Renamed as...
1167 (target_continue_no_signal): New function. Updated comment.
1170 2014-09-22 Pedro Alves <palves@redhat.com>
1172 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1174 * breakpoint.c (enum ugll_insert_mode): New enum.
1175 (always_inserted_mode): Now a plain boolean.
1176 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1177 (breakpoints_always_inserted_mode): Delete.
1178 (breakpoints_should_be_inserted_now): New function.
1179 (insert_breakpoints): Pass UGLL_INSERT to
1180 update_global_location_list instead of calling
1181 insert_breakpoint_locations manually.
1182 (create_solib_event_breakpoint_1): New, factored out from ...
1183 (create_solib_event_breakpoint): ... this.
1184 (create_and_insert_solib_event_breakpoint): Use
1185 create_solib_event_breakpoint_1 instead of calling
1186 insert_breakpoint_locations manually.
1187 (update_global_location_list): Change parameter type from boolean
1188 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1189 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1190 (update_global_location_list_nothrow): Change parameter type from
1191 boolean to enum ugll_insert_mode.
1192 (_initialize_breakpoint): "breakpoint always-inserted" option is
1193 now a boolean command. Update help text.
1194 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1195 (breakpoints_should_be_inserted_now): New declaration.
1196 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1197 Remove breakpoints_always_inserted_mode check.
1198 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1199 * remote.c (remote_start_remote): Likewise.
1201 2014-09-22 Pedro Alves <palves@redhat.com>
1203 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1204 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1205 Instead, pass UGLL_INSERT to update_global_location_list.
1206 (update_global_location_list): Change parameter type from boolean
1207 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1208 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1209 (create_solib_event_breakpoint_1): New, factored out from ...
1210 (create_solib_event_breakpoint): ... this.
1211 (create_and_insert_solib_event_breakpoint): Use
1212 create_solib_event_breakpoint_1 instead of calling
1213 insert_breakpoint_locations manually.
1214 (update_global_location_list): Handle UGLL_INSERT.
1216 2014-09-22 Pedro Alves <palves@redhat.com>
1218 * breakpoint.c (enum ugll_insert_mode): New enum.
1219 (update_global_location_list)
1220 (update_global_location_list_nothrow): Change parameter type from
1221 boolean to enum ugll_insert_mode. All callers adjusted.
1223 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1225 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1226 SystemTap support in GDB.
1228 2014-09-19 Don Breazeal <donb@codesourcery.com>
1230 * linux-nat.c (linux_handle_extended_wait): Call
1231 linux_ptrace_get_extended_event.
1232 (wait_lwp): Call linux_is_extended_waitstatus.
1233 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1234 and linux_is_extended_waitstatus.
1235 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1236 linux_ptrace_get_extended_event.
1237 (linux_ptrace_get_extended_event): New function.
1238 (linux_is_extended_waitstatus): New function.
1239 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1240 (linux_is_extended_waitstatus): New declarations.
1242 2014-09-19 Yao Qi <yao@codesourcery.com>
1244 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1245 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1246 comments. Callers update.
1247 (dwarf_decode_lines): Likewise.
1248 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1249 comments. Skip the line table if 'lowpc' is greater than
1250 'address'. Don't check
1251 dwarf2_per_objfile->has_section_at_zero.
1253 2014-09-18 Doug Evans <dje@google.com>
1255 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1256 * python/py-symtab.c (stpy_get_producer): New function.
1257 (symtab_object_getset): Add "producer" attribute.
1259 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1262 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1263 (do_captured_read_memory_integer): Remove.
1264 (safe_read_memory_integer): Use target_read_memory directly instead
1265 of catching errors in do_captured_read_memory_integer.
1267 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1269 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1272 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1274 * objc-lang.c (find_implementation_from_class): Remove dead code.
1276 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1279 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1280 "fprintf_unfiltered (gdb_stdlog...)".
1282 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1284 PR breakpoints/12526
1285 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1287 * breakpoint.c (watch_command_1): Use these fields to retain
1288 bitfield information.
1289 (extract_bitfield_from_watchpoint_value): New function.
1290 (watchpoint_check): Use it.
1291 (update_watchpoint): Use it. Optimize the address and length of a
1292 HW watchpoint pointing to a bitfield.
1293 * value.h (unpack_value_bitfield): New prototype.
1294 * value.c (unpack_value_bitfield): Make extern.
1296 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1298 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1300 * gnu-nat.c (inf_threads): New function.
1301 * gnu-nat.h (inf_threads_ftype): New typedef.
1302 (inf_threads): New declaration.
1303 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1304 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1305 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1306 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1307 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1308 (i386_gnu_dr_get_control): New functions.
1309 (reg_addr): New structure.
1310 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1311 i386 debugging register hooks.
1312 * NEWS: Mention this.
1314 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1316 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1317 vector data transfer instructions.
1318 (arm_record_coproc_data_proc): Updated.
1320 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1322 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1323 arm_record_exreg_ld_st_insn.
1324 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1327 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1329 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1330 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1331 processing instructions.
1333 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1335 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1336 for advance SIMD struct ld/st insn.
1337 (thumb2_record_decode_insn_handler): Replace stub handler with
1338 thumb2_record_asimd_struct_ld_st.
1340 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1342 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1343 for asimd, vfp and coprocessor insns.
1344 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1345 and coprocessor insns.
1346 (thumb2_record_coproc_insn): New function.
1347 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1349 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1352 2014-09-13 Doug Evans <xdje42@gmail.com>
1354 * NEWS: Mention new "queue-signal" command.
1355 * infcmd.c (queue_signal_command): New function.
1356 (_initialize_infcmd): Add new queue-signal command.
1358 2014-09-13 Doug Evans <xdje42@gmail.com>
1360 * linux-nat.c (wait_lwp): Add debugging printf.
1361 (linux_nat_wait_1): Ditto.
1363 2014-09-12 Pedro Alves <palves@redhat.com>
1365 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1366 (create_and_insert_solib_event_breakpoint): New functions.
1367 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1368 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1369 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1370 (remove_dbx_link_breakpoint): Delete function.
1371 (insert_dbx_link_bpt_in_file): Use
1372 create_and_insert_solib_event_breakpoint instead of
1373 deprecated_insert_raw_breakpoint.
1374 (procfs_wait): Don't check whether we hit __dbx_link here.
1375 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1377 * solib-irix.c (base_breakpoint): Delete global.
1378 (disable_break): Delete function.
1379 (enable_break): Use create_solib_event_breakpoint
1380 instead of deprecated_insert_raw_breakpoint.
1381 (irix_solib_handle_event): New function.
1382 (irix_solib_create_inferior_hook): Don't run the target or disable
1383 the mapping-complete breakpoint here.
1384 (_initialize_irix_solib): Install irix_solib_handle_event as
1385 so_ops->handle_event hook.
1387 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1388 Ulrich Weigand <uweigand@de.ibm.com>
1391 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1392 instead of read_memory_unsigned_integer.
1394 2014-09-12 Gary Benson <gbenson@redhat.com>
1396 * nat/linux-waitpid.c: Include common-defs.h.
1397 [GDBSERVER]: Add FIXME comment.
1398 [!GDBSERVER]: Don't include defs.h or signal.h.
1399 (linux_debug) [!GDBSERVER]: Remove empty block.
1401 2014-09-12 Gary Benson <gbenson@redhat.com>
1403 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1404 Don't include defs.h or server.h.
1406 2014-09-12 Gary Benson <gbenson@redhat.com>
1408 * nat/linux-btrace.c: Include common-defs.h.
1409 Don't include defs.h, server.h or gdbthread.h.
1410 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1412 2014-09-12 Gary Benson <gbenson@redhat.com>
1414 * common/agent.c: Include common-defs.h.
1415 Don't include defs.h or server.h.
1416 * common/buffer.c: Likewise.
1417 * common/common-debug.c: Likewise.
1418 * common/common-utils.c: Likewise.
1419 * common/errors.c: Likewise.
1420 * common/filestuff.c: Likewise.
1421 * common/format.c: Likewise.
1422 * common/gdb_vecs.c: Likewise.
1423 * common/print-utils.c: Likewise.
1424 * common/ptid.c: Likewise.
1425 * common/rsp-low.c: Likewise.
1426 * common/signals.c: Likewise.
1427 * common/vec.c: Likewise.
1428 * common/xml-utils.c: Likewise.
1429 * nat/linux-osdata.c: Likewise.
1430 * nat/linux-procfs.c: Likewise.
1431 * nat/linux-ptrace.c: Likewise.
1432 * nat/mips-linux-watch.c: Likewise.
1433 * target/waitstatus.c: Likewise.
1435 2014-09-12 Tom Tromey <tromey@redhat.com>
1436 Gary Benson <gbenson@redhat.com>
1438 * common/common-regcache.h: New file.
1439 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1440 * regcache.h: Include common-regcache.h.
1441 (regcache_read_pc): Don't declare.
1442 * regcache.c (get_thread_regcache_for_ptid): New function.
1443 * nat/linux-btrace.c: Don't include regcache.h.
1444 Include common-regcache.h.
1445 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1447 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1449 * regcache.h (struct regset): Declare.
1451 2014-09-11 Pedro Alves <palves@redhat.com>
1454 * main.c: Include "infrun.h".
1455 (catch_command_errors, catch_command_errors_const): Wait for the
1456 foreground command to complete.
1457 * top.c (maybe_wait_sync_command_done): New function, factored out
1459 (maybe_wait_sync_command_done): ... here.
1460 * top.h (maybe_wait_sync_command_done): New declaration.
1462 2014-09-11 Tom Tromey <tromey@redhat.com>
1463 Gary Benson <gbenson@redhat.com>
1465 * common/symbol.h: New file.
1466 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1467 * minsyms.c (find_minimal_symbol_address): New function.
1468 * common/agent.c: Include common/symbol.h.
1469 [!GDBSERVER]: Don't include objfiles.h.
1470 (agent_look_up_symbols): Use find_minimal_symbol_address.
1472 2014-09-11 Gary Benson <gbenson@redhat.com>
1474 * target/target.h (target_stop_ptid, target_continue_ptid):
1476 * target.c (target_stop_ptid, target_continue_ptid): New
1478 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1479 (agent_run_command): Always use target_stop_ptid and
1480 target_continue_ptid.
1482 2014-09-11 Tom Tromey <tromey@redhat.com>
1483 Gary Benson <gbenson@redhat.com>
1485 * target/target.h: New file.
1486 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1487 * target.h: Include target/target.h.
1488 (target_read_memory, target_write_memory): Don't declare.
1489 * target.c (target_read_uint32): New function.
1490 * common/agent.c: Include target/target.h.
1491 [!GDBSERVER]: Don't include target.h.
1492 (helper_thread_id): Type changed to uint32_t.
1493 (agent_get_helper_thread_id): Use target_read_uint32.
1494 (agent_run_command): Always use target_read_memory and
1495 target_write_memory.
1496 (agent_capability): Type changed to uint32_t.
1497 (agent_capability_check): Use target_read_uint32.
1499 2014-09-11 Gary Benson <gbenson@redhat.com>
1501 * common/common-debug.h (show_debug_regs): Declare.
1502 * common/common-debug.c (show_debug_regs): Define.
1503 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1504 all uses with show_debug_regs. Replace all uses that considered
1505 debug_hw_points as a multi-value integer with straight boolean
1507 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1508 with show_debug_regs.
1509 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1510 all uses with show_debug_regs.
1511 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1512 uses with show_debug_regs.
1514 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1516 * findvar.c (address_from_register): Handle targets requiring
1517 a special conversion routine even for plain pointer types.
1519 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1521 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1522 (store_register): Do not call exec_one_dummy_insn.
1524 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1526 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1527 dereference it first. Use value_enclosing_type instead of
1529 (ada_array_length): Likewise.
1531 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1533 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1534 Adjust function implementation and documentation accordingly.
1535 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1536 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1537 Update call to ada_value_ptr_subscript.
1539 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1541 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1542 instead of VAL's type.
1544 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1546 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1548 2014-09-09 Doug Evans <xdje42@gmail.com>
1551 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1552 last parameter to pkg-config, not first.
1553 * configure.ac: Pass --with-guile provided pkg-config path to
1554 GDB_GUILE_PROGRAM_NAMES.
1555 * configure: Regenerate.
1557 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1559 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1562 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1564 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1565 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1566 the list of sections determining GDB_OSABI_IRIX.
1568 2014-09-09 James Hogan <james.hogan@imgtec.com>
1570 * MAINTAINERS (Write After Approval): Add "James Hogan".
1572 2014-09-09 James Hogan <james.hogan@imgtec.com>
1574 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1576 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1578 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1580 2014-09-08 Doug Evans <xdje42@gmail.com>
1583 * guile.c: #include <signal.h>.
1584 (_initialize_guile): Block SIGCHLD while initializing Guile.
1586 Replaces the following, which is reverted.
1588 2014-07-26 Doug Evans <xdje42@gmail.com>
1591 * configure.ac: Add check for header gc/gc.h.
1592 Add check for function setenv.
1593 * configure: Regenerate.
1594 * config.in: Regenerate.
1595 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1597 2014-09-08 Doug Evans <xdje42@gmail.com>
1599 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1600 with named constant. Fix style of pointer comparison.
1601 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1603 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1606 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1607 decide whether we display the command on "show user".
1608 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1609 printing command name.
1610 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1611 * cli/cli-decode.c (cli_user_command_p): Create helper function
1612 to verify whether cmd_list_element is a user-defined command.
1614 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1617 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1618 Fix goto out of TRY_CATCH.
1620 2014-09-06 Doug Evans <xdje42@gmail.com>
1621 Tom Tromey <tromey@redhat.com>
1624 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1625 $_any_caller_matches.
1626 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1627 * python/lib/gdb/function/caller_is.py: New file.
1629 2014-09-06 Doug Evans <xdje42@gmail.com>
1631 * infcmd.c (program_info): Fix typo.
1633 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1636 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1637 'number'. New variable 'has_digit'. Rewrite code to deal with
1638 subexpressions on SDT probes.
1640 2014-09-04 Pedro Alves <palves@redhat.com>
1642 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1643 the input is only one character long.
1645 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1648 * f-valprint.c (f_val_print): Specify the correct print option to
1649 use when printing integer values.
1651 2014-09-04 Gary Benson <gbenson@redhat.com>
1653 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1654 Remove code to cope with LWPs wrapped as PIDs.
1655 Add assertions to ensure no wrapped LWPs are passed.
1657 2014-09-04 Pedro Alves <palves@redhat.com>
1659 * value.c (value_ranges_copy_adjusted): New function, factored out
1661 (value_contents_copy_raw): ... here.
1662 (unpack_value_bits_as_long_1): Rename back to ...
1663 (unpack_bits_as_long): ... this. Remove 'original_value' and
1664 'result' parameters. Change return type to LONGEST.
1665 (unpack_value_bits_as_long): Delete.
1666 (unpack_value_field_as_long_1): Delete.
1667 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1668 (unpack_value_bitfield): New function.
1669 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1670 (value_fetch_lazy): Use unpack_value_bitfield.
1671 * value.h (unpack_value_bits_as_long): Delete declaration.
1673 2014-09-03 Sasha Smundak <asmundak@google.com>
1675 * python/py-frame.c (frapy_read_register): New function.
1677 2014-09-03 James Hogan <james.hogan@imgtec.com>
1679 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1680 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1682 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1685 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1687 (add_cmd): Set "completer_handle_brkchars" to NULL.
1688 * cli/cli-decode.h (struct cmd_list_element)
1689 <completer_handle_brkchars>: New field.
1690 * command.h (completer_ftype_void): New typedef.
1691 (set_cmd_completer_handle_brkchars): New prototype.
1692 * completer.c (set_gdb_completion_word_break_characters): New
1694 (complete_line_internal): Call "completer_handle_brkchars"
1695 callback from command.
1696 * completer.h: Include "command.h".
1697 (set_gdb_completion_word_break_characters): New prototype.
1698 * python/py-cmd.c (cmdpy_completer_helper): New function.
1699 (cmdpy_completer_handle_brkchars): New function.
1700 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1701 (cmdpy_init): Set completer_handle_brkchars to
1702 cmdpy_completer_handle_brkchars.
1704 2014-09-03 Gary Benson <gbenson@redhat.com>
1706 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1707 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1708 Loop conditions changed to equivalent form.
1709 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1710 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1711 ALL_DEBUG_ADDRESS_REGISTERS.
1713 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1715 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1718 2014-09-02 Doug Evans <dje@google.com>
1720 * typeprint.c (find_global_typedef): Fix comment.
1722 2014-09-02 Gary Benson <gbenson@redhat.com>
1724 * i386-nat.h: Renamed as...
1725 * x86-nat.h: New file. All type, function and variable name
1726 prefixes changed from "i386_" to "x86_". All references updated.
1727 * i386-nat.c: Renamed as...
1728 * x86-nat.c: New file. All type, function and variable name
1729 prefixes changed from "i386_" to "x86_". All references updated.
1730 * common/i386-xstate.h: Renamed as...
1731 * common/x86-xstate.h: New file. All type, function and variable
1732 name prefixes changed from "i386_" to "x86_". All references
1734 * nat/i386-cpuid.h: Renamed as...
1735 * nat/x86-cpuid.h: New file. All type, function and variable name
1736 prefixes changed from "i386_" to "x86_". All references updated.
1737 * nat/i386-gcc-cpuid.h: Renamed as...
1738 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1739 name prefixes changed from "i386_" to "x86_". All references
1741 * nat/i386-dregs.h: Renamed as...
1742 * nat/x86-dregs.h: New file. All type, function and variable name
1743 prefixes changed from "i386_" to "x86_". All references updated.
1744 * nat/i386-dregs.c: Renamed as...
1745 * nat/x86-dregs.c: New file. All type, function and variable name
1746 prefixes changed from "i386_" to "x86_". All references updated.
1748 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1750 * varobj.c (_initialize_varobj): Move to the end of file.
1752 2014-08-29 Gary Benson <gbenson@redhat.com>
1754 * common/common-exceptions.h: New file.
1755 * common/common-exceptions.c: Likewise.
1756 * Makefile.in (SFILES): Add common/common-exceptions.c.
1757 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1758 (COMMON_OBS): Add common-exceptions.o.
1759 (common-exceptions.o): New rule.
1760 * exceptions.h (common-exceptions.h): Include.
1761 (gdb_setjmp.h): Do not include.
1762 (return_reason): Moved to common-exceptions.h.
1763 (enum return_reason): Likewise.
1764 (RETURN_MASK): Likewise.
1765 (typedef return_mask): Likewise.
1766 (enum errors): Likewise.
1767 (struct gdb_exception): Likewise.
1768 (exceptions_state_mc_init): Likewise.
1769 (exceptions_state_mc_action_iter): Likewise.
1770 (exceptions_state_mc_action_iter_1): Likewise.
1771 (TRY_CATCH): Likewise.
1772 (throw_exception): Likewise.
1773 (throw_verror): Likewise.
1774 (throw_vquit): Likewise.
1775 (throw_error): Likewise.
1776 (throw_quit): Likewise.
1777 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1778 (enum catcher_action): Likewise.
1779 (struct catcher): Likewise.
1780 (current_catcher): Likewise.
1781 (catcher_list_size): Likewise.
1782 (exceptions_state_mc_init): Likewise.
1783 (catcher_pop): Likewise.
1784 (exceptions_state_mc): Likewise.
1785 (exceptions_state_mc_action_iter): Likewise.
1786 (exceptions_state_mc_action_iter_1): Likewise.
1787 (throw_exception): Likewise.
1788 (exception_messages): Likewise.
1789 (exception_messages_size): Likewise.
1790 (throw_it): Likewise.
1791 (throw_verror): Likewise.
1792 (throw_vquit): Likewise.
1793 (throw_error): Likewise.
1794 (throw_quit): Likewise.
1795 (prepare_to_throw_exception): New function.
1797 2014-08-29 Gary Benson <gbenson@redhat.com>
1799 * common/gdb_setjmp.h: New file.
1800 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1801 * configure.ac: Move sigsetjmp check...
1802 * common/common.m4: ...here.
1803 * configure: Regenerate.
1804 * cp-support.c (SIGJMP_BUF): Delete.
1805 (SIGSETJMP): Likewise.
1806 (SIGLONGJMP): Likewise.
1807 * exceptions.h (gdb_setjmp.h): Include.
1808 (setjmp.h): Do not include.
1809 (EXCEPTIONS_SIGJMP_BUF): Delete.
1810 (EXCEPTIONS_SIGSETJMP): Likewise.
1811 (EXCEPTIONS_SIGLONGJMP): Likewise.
1812 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1814 * exceptions.c: Likewise.
1816 2014-08-29 Gary Benson <gbenson@redhat.com>
1818 * cleanups.h: Moved to...
1819 * common/cleanups.h: New file.
1820 * cleanups.c: Moved to...
1821 * common/cleanups.c: New file. Include common-defs.h and
1822 cleanups.h. Do not include defs.h.
1823 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1824 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1825 (cleanups.o): New rule.
1827 2014-08-29 Gary Benson <gbenson@redhat.com>
1829 * common/errors.h (internal_warning): New declaration.
1830 (internal_vwarning): Likewise.
1831 * common/errors.c (internal_warning): New function.
1832 * utils.h (internal_warning): Don't declare.
1833 (internal_vwarning): Likewise.
1834 * utils.c (internal_warning): Removed.
1836 2014-08-29 Gary Benson <gbenson@redhat.com>
1838 * main.c (captured_main): Use warning during startup.
1839 Prefix startup warning messages with command name.
1841 2014-08-29 Gary Benson <gbenson@redhat.com>
1843 * main.c (captured_main): Handle usage errors with error.
1845 2014-08-29 Gary Benson <gbenson@redhat.com>
1847 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1848 exit pair with a call to error. Wrap the message with _().
1850 2014-08-29 Gary Benson <gbenson@redhat.com>
1852 * main.c (captured_main): Replace a fprintf/exit
1853 pair with a call to error. Wrap the message with _().
1855 2014-08-29 Gary Benson <gbenson@redhat.com>
1857 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1858 pairs with calls to error. Wrap the message with _().
1860 2014-08-29 Gary Benson <gbenson@redhat.com>
1862 * utils.c (vwarning): Protect calls to target_terminal_ours
1865 2014-08-29 Gary Benson <gbenson@redhat.com>
1867 * exceptions.c (print_flush): Protect calls to
1868 target_terminal_ours and wrap_here.
1870 2014-08-29 Gary Benson <gbenson@redhat.com>
1872 * utils.h (filtered_printing_initialized): New declaration.
1873 * utils.c (abort_with_message): New function.
1874 (internal_vproblem): Use abort_with_message for first level
1875 recursive internal problems, and if gdb_stderr is not set up.
1876 Protect calls to target_terminal_ours, begin_line and query.
1878 2014-08-28 Doug Evans <dje@google.com>
1880 * symtab.c (in_prologue): Move definition to better spot.
1881 (skip_prologue_using_sal): Ditto.
1883 2014-08-28 Doug Evans <dje@google.com>
1885 * symtab.c (find_function_start_sal): Move definition to better spot.
1887 2014-08-28 Yao Qi <yao@codesourcery.com>
1889 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1890 found_stack_adjust in forward scan. Remove condition check
1891 on found_stack_adjust which is always true. Indent the code.
1893 2014-08-28 Yao Qi <yao@codesourcery.com>
1895 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1896 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1897 (dwarf_decode_lines): Remove argument
1898 want_line_info. Remove condition check on want_line_info.
1901 2014-08-27 Doug Evans <dje@google.com>
1903 * dwarf2read.c (dwarf_record_line): Fix typo.
1905 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1907 * target.h (struct target_ops::to_terminal_save_ours): Remove
1909 (target_terminal_save_ours): Remove macro.
1910 * target-delegates.c: Regenerate.
1911 * inf-child.c (inf_child_target): Don't set the nonexistent
1912 field to_terminal_save_ours.
1913 * inferior.h (child_terminal_save_ours): Remove declaration.
1914 * terminal.h (gdb_save_tty_state): New declaration.
1915 * inflow.c (child_terminal_save_ours): Rename to ...
1916 (gdb_save_tty_state): ... this.
1917 * tui/tui.c: Include terminal.h.
1918 (tui_enable): Use gdb_save_tty_state instead of
1919 target_terminal_save_ours.
1920 (tui_disable): Likewise.
1922 2014-08-25 Doug Evans <dje@google.com>
1924 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1925 Pass NULL instead of 0 for context pointer.
1927 2014-08-25 Yao Qi <yao@codesourcery.com>
1929 * dwarf2read.c: Fix grammatical error.
1931 2014-08-24 Yao Qi <yao@codesourcery.com>
1933 * dwarf2read.c (scan_partial_symbols): Update comments.
1934 Rename argument 'need_pc' with 'set_addrmap'.
1935 (add_partial_namespace): Rename argument 'need_pc' with
1937 (add_partial_module): Likewise.
1938 (add_partial_subprogram): Likewise. Update comments.
1939 (dwarf2_name): Fix typo.
1941 2014-08-22 Doug Evans <dje@google.com>
1944 * dwarf2read.c (dwarf_record_line_p): New function.
1945 (dwarf_decode_lines_1): Ignore subsequent line number entries
1946 for the same line if any entry had a non-zero discriminator.
1948 2014-08-22 Doug Evans <dje@google.com>
1950 * buildsym.h (record_line_ftype): New typedef.
1951 (record_line): Use it.
1952 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1953 (dwarf_decode_lines_1): Call them.
1955 2014-08-22 Yao Qi <yao@codesourcery.com>
1957 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1958 (ctf_end): Remove code.
1960 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1962 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1963 (linux_make_corefile_notes): call update_thread_list, protected against
1966 2014-08-21 Pedro Alves <palves@redhat.com>
1968 * infcmd.c (attach_command): Remove comment.
1970 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1972 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1973 unsigned LONGEST to ULONGEST.
1975 2014-08-20 Pedro Alves <palves@redhat.com>
1977 * Makefile.in (check-read1): New rule.
1979 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1981 * value.c (value_from_contents_and_address): Strip resolved_type's
1982 typedef layers before checking its TYPE_DATA_LOCATION.
1984 2014-08-20 Pedro Alves <palves@redhat.com>
1986 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1988 2014-08-20 Yao Qi <yao@codesourcery.com>
1990 * amd64-tdep.c (amd64_classify): Add a blank line after the
1991 example. Move "*/" to a new line.
1992 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1993 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1994 * dwarf2read.c (psymtab_include_file_name): Likewise.
1996 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1997 Pedro Alves <palves@redhat.com>
2001 * ada-lang.c (coerce_unspec_val_to_type): Use
2002 value_contents_copy_raw.
2003 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2004 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2005 * cp-valprint.c (cp_print_value_fields): Let the common printing
2006 code handle optimized out values.
2007 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2008 * d-valprint.c (dynamic_array_type): Use
2009 value_bits_any_optimized_out.
2010 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2011 check_any_valid fields.
2012 (check_pieced_value_bits): Delete and inline ...
2013 (check_pieced_synthetic_pointer): ... here.
2014 (check_pieced_value_validity): Delete.
2015 (check_pieced_value_invalid): Delete.
2016 (pieced_value_funcs): Remove check_validity and check_any_valid
2018 (read_pieced_value): Use mark_value_bits_optimized_out.
2019 (write_pieced_value): Switch to use
2020 mark_value_bytes_optimized_out.
2021 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2022 of assuming the whole value is optimized out.
2023 * findvar.c (read_frame_register_value): Remove special handling
2024 of optimized out registers.
2025 (value_from_register): Use mark_value_bytes_optimized_out.
2026 * frame-unwind.c (frame_unwind_got_optimized): Use
2027 mark_value_bytes_optimized_out.
2028 * jv-valprint.c (java_value_print): Adjust.
2029 (java_print_value_fields): Let the common printing code handle
2030 optimized out values.
2031 * mips-tdep.c (mips_print_register): Remove special handling of
2032 optimized out registers.
2033 * opencl-lang.c (lval_func_check_validity): Delete.
2034 (lval_func_check_any_valid): Delete.
2035 (opencl_value_funcs): Remove check_validity and check_any_valid
2037 * p-valprint.c (pascal_object_print_value_fields): Let the common
2038 printing code handle optimized out values.
2039 * stack.c (read_frame_arg): Remove special handling of optimized
2040 out values. Fetch both VAL and ENTRYVAL before comparing
2041 contents. Adjust to value_available_contents_eq rename.
2042 * valprint.c (valprint_check_validity)
2043 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2044 (val_print_array_elements): Adjust.
2045 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2046 (value_bits_any_optimized_out): New function.
2047 (value_entirely_covered_by_range_vector): New function, factored
2048 out from value_entirely_unavailable.
2049 (value_entirely_unavailable): Reimplement.
2050 (value_entirely_optimized_out): New function.
2051 (insert_into_bit_range_vector): New function, factored out from
2052 mark_value_bits_unavailable.
2053 (mark_value_bits_unavailable): Reimplement.
2054 (struct ranges_and_idx): New struct.
2055 (find_first_range_overlap_and_match): New function, factored out
2056 from value_available_contents_bits_eq.
2057 (value_available_contents_bits_eq): Rename to ...
2058 (value_contents_bits_eq): ... this. Check both unavailable
2059 contents and optimized out contents.
2060 (value_available_contents_eq): Rename to ...
2061 (value_contents_eq): ... this.
2062 (allocate_value_lazy): Remove reference to the old optimized_out
2064 (allocate_optimized_out_value): Use
2065 mark_value_bytes_optimized_out.
2066 (require_not_optimized_out): Adjust to check whether the
2067 optimized_out vec is empty.
2068 (ranges_copy_adjusted): New function, factored out from
2069 value_contents_copy_raw.
2070 (value_contents_copy_raw): Also copy the optimized out ranges.
2071 Assert the destination ranges aren't optimized out.
2072 (value_contents_copy): Update comment, remove call to
2073 require_not_optimized_out.
2074 (value_contents_equal): Adjust to check whether the optimized_out
2076 (set_value_optimized_out, value_optimized_out_const): Delete.
2077 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2079 (value_entirely_optimized_out, value_bits_valid): Delete.
2080 (value_copy): Take a VEC copy of the 'optimized_out' field.
2081 (value_primitive_field): Remove special handling of optimized out.
2082 (value_fetch_lazy): Assert that lazy values have no unavailable
2083 regions. Use value_bits_any_optimized_out. Remove some special
2084 handling for optimized out values.
2085 * value.h: Add intro comment about <optimized out> and
2087 (struct lval_funcs): Remove check_validity and check_any_valid
2089 (set_value_optimized_out, value_optimized_out_const): Remove.
2090 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2092 (value_bits_any_optimized_out): New declaration.
2093 (value_bits_valid): Delete declaration.
2094 (value_available_contents_eq): Rename to ...
2095 (value_contents_eq): ... this, and extend comments.
2097 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 Fix -fsanitize=address on unreadable inferior strings.
2100 * valprint.c (val_print_string): Fix access before BUFFER.
2102 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2104 * target.c (target_struct_size): Remove.
2105 (target_struct_allocsize): Remove.
2106 (DEFAULT_ALLOCSIZE): Remove.
2107 (target_ops_p): New typedef.
2108 (DEF_VEC_P (target_ops_p)): New vector type.
2109 (target_structs): Change type to VEC (target_ops_p).
2110 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2111 (find_default_run_target): Rewrite for loop following changes to
2114 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2116 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2117 Adjust code accordingly. Adjust function description comment.
2119 2014-08-19 Yao Qi <yao@codesourcery.com>
2121 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2124 2014-08-19 Alan Modra <amodra@gmail.com>
2126 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2127 * config.in: Regenerate.
2128 * configure: Regenerate.
2130 2014-08-19 Tom Tromey <tromey@redhat.com>
2131 Gary Benson <gbenson@redhat.com>
2133 * common/common-debug.h: New file.
2134 * common/common-debug.c: Likewise.
2135 * debug.c: Likewise.
2136 * Makefile.in (SFILES): Add common/common-debug.c.
2137 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2138 (COMMON_OBS): Add common-debug.o and debug.o.
2139 (common-debug.o): New rule.
2140 * common/common-defs.h: Include common-debug.h.
2141 * common/agent.c (debug_agent_printf): New function.
2142 (DEBUG_AGENT): Redefine.
2143 * nat/i386-dregs.c (debug_printf): Undefine.
2145 2014-08-19 Gary Benson <gbenson@redhat.com>
2147 * common/common-defs.h: Include print-utils.h.
2148 * utils.h: Do not include print-utils.h.
2150 2014-08-19 Tom Tromey <tromey@redhat.com>
2151 Gary Benson <gbenson@redhat.com>
2153 * common/common-types.h: New file.
2154 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2155 * common/common-defs.h: Include common-types.h.
2156 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2159 2014-08-19 Tom Tromey <tromey@redhat.com>
2160 Gary Benson <gbenson@redhat.com>
2162 * common/errors.h: New file.
2163 * common/errors.c: Likewise.
2164 * Makefile.in (SFILES): Add common/errors.c.
2165 (HFILES_NO_SRCDIR): Add common/errors.h.
2166 (COMMON_OBS): Add errors.o.
2167 (errors.o): New rule.
2168 * common/common-defs.h: Include errors.h.
2169 * utils.h (perror_with_name, error, verror, warning, vwarning):
2171 * common/common-utils.h: (malloc_failure, internal_error):
2174 2014-08-19 Gary Benson <gbenson@redhat.com>
2176 * utils.c (internal_vproblem): Always print the message.
2178 2014-08-18 Doug Evans <dje@google.com>
2180 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2182 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2184 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2185 Return 0 if TYPE is dynamic.
2186 (print_range): Add handling of dynamic ranges.
2188 2014-08-18 Keven Boell <keven.boell@intel.com>
2189 Joel Brobecker <brobecker@adacore.com>
2191 * gdbtypes.h (struct main_type): Add field "data_location".
2192 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2193 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2194 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2195 a dynamic data location.
2196 (resolve_dynamic_type): Add DW_AT_data_location handling.
2197 (copy_recursive, copy_type): Copy the data_location information
2199 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2200 * value.c (value_from_contents_and_address): Add
2201 DW_AT_data_location handling.
2203 2014-08-18 Keven Boell <keven.boell@intel.com>
2204 Joel Brobecker <brobecker@adacore.com>
2206 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2207 field "get_object_address".
2208 * dwarf2expr.c (execute_stack_op): Add handling for
2209 DW_OP_push_object_address.
2210 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2211 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2212 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2213 (dwarf_expr_get_obj_addr): New function.
2214 (dwarf_expr_ctx_funcs): Add get_object_address field.
2215 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2216 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2217 (dwarf2_evaluate_property): Add parameter "address". Use it.
2218 (needs_get_obj_addr): New function.
2219 (needs_frame_ctx_funcs): Add get_object_address field.
2220 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2221 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2222 (resolve_dynamic_array): Likewise.
2224 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2226 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2227 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2228 fixed value for records and unions for which some GNAT encodings
2231 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2233 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2234 rewrite to avoid "else if" and "else" constructs. Should be
2235 a no-op in practice.
2237 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2239 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2242 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2245 * eval.c: Update all calls to find_overload_match.
2246 * valarith.c: Likewise.
2247 (value_user_defined_cpp_op, value_user_defined_op): New
2248 argument NOSIDE. Update all callers.
2249 * valops.c (find_overload_match): New argument NOSIDE.
2250 * value.h (find_overload_match): Update signature.
2252 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2254 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2255 'items' methods instead of 'iteritems' method on dictionaries.
2257 2014-08-15 Doug Evans <dje@google.com>
2259 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2262 2014-08-15 Doug Evans <dje@google.com>
2264 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2266 2014-08-15 Doug Evans <dje@google.com>
2268 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2270 2014-08-15 Doug Evans <dje@google.com>
2272 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2275 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2277 * dcache.h: Include target.h, to avoid compile time warnings.
2279 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2281 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2282 frame_info" partial declaration.
2283 * gdbarch.h: Regenerate.
2285 2014-08-15 Yao Qi <yao@codesourcery.com>
2287 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2288 Add parameter 'decode_for_pst_p'. Callers update.
2290 2014-08-13 Yao Qi <yao@codesourcery.com>
2293 * configure.ac: Use local variable 'pos'.
2294 * configure: Regenerated.
2296 2014-08-11 Doug Evans <dje@google.com>
2298 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2299 message, it is redundant with "Reading symbols from ..." message.
2301 2014-08-10 Doug Evans <xdje42@gmail.com>
2303 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2305 2014-08-09 Yao Qi <yao@codesourcery.com>
2308 * remote.c (remote_xfer_partial): Remove dead code.
2310 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2312 * ia64-linux-tdep.c: Include "regset.h".
2313 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2314 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2315 (ia64_linux_supply_fpregset): New function.
2316 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2317 (ia64_linux_regset_from_core_section): New function.
2318 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2321 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2323 * m68klinux-tdep.c: Include "regset.h".
2324 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2325 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2326 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2327 (m68k_linux_regset_from_core_section): New function.
2328 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2331 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2333 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2334 function. Move logic to...
2335 (tilegx_linux_regmap): ... this new register map.
2336 (tilegx_linux_regset): Refer to register map, replace supply
2337 method by regcache_supply_regset, and add collect method.
2338 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2339 TILEGX_FIRST_EASY_REGNUM.
2341 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2343 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2344 that calls regcache_supply_regset and handles the EPC register
2345 separately. Move main logic to...
2346 (score7_linux_gregmap): ... this new register map.
2347 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2348 (score7_linux_gregset): Refer to register map. Add collect method.
2349 (score7_linux_regset_from_core_section): Replace
2350 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2351 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2352 (struct regset): Delete unused forward declaraction.
2353 (struct pt_regs): Delete structure definition.
2354 (elf_gregset_t): Delete typedef.
2356 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2358 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2359 (nios2_core_regset): Add collect method.
2361 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2363 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2364 platform-independent and don't write to read-only input buffer.
2365 (m32r_linux_collect_gregset): New function.
2366 (m32r_linux_gregset): Add collect method.
2368 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2370 * hppa-linux-tdep.c (greg_map): Rename to...
2371 (hppa_linux_gregmap): ... this. Also convert to
2372 regcache_map_entry format.
2373 (hppa_linux_supply_regset): Delete function.
2374 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2375 (hppa_linux_fpregmap): ... this new register map.
2376 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2377 register map, replace supply method by regcache_supply_regset, and
2378 add collect method regcache_collect_regset.
2380 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2382 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2383 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2384 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2385 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2386 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2387 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2388 (frv_linux_supply_gregset): Replace main logic by call to
2389 regcache_supply_regset, but keep clearing gr32-gr63.
2390 (frv_linux_supply_fpregset): Delete function.
2391 (frv_linux_gregset): Refer to appropriate register map and add
2392 regcache_collect_regset as the collect method.
2393 (frv_linux_fpregset): Likewise. Also exchange the supply method
2394 by regcache_supply_regset.
2396 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2398 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2399 by call to alpha_supply_int_regs.
2400 (alpha_linux_collect_gregset): New function.
2401 (alpha_linux_supply_fpregset): Replace logic by call to
2402 alpha_supply_fp_regs.
2403 (alpha_linux_collect_fpregset): New function.
2404 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2406 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2408 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2409 by call to regcache_collect_regset.
2410 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2411 instead of aarch64_linux_supply_gregset/_fpregset.
2412 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2413 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2414 header file instead.
2415 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2416 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2417 functions. Move logic to ...
2418 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2420 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2421 refer to new register maps, replace *_regset_from_core by
2422 regcache_supply_regset, and also use regcache_collect_regset.
2423 * aarch64-linux-tdep.h: Include "regset.h".
2424 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2426 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2427 macros, moved from C source file.
2428 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2429 variable declarations.
2431 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2433 * s390-linux-nat.c: Include "regset.h".
2434 (regmap_gregset): Delete macro.
2435 (s390_64_regmap_gregset): New register map for
2436 regcache_supply/_collect_regset.
2437 (s390_64_gregset): New regset.
2438 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2439 (regmap_fpregset): Delete macro.
2440 (s390_native_supply, s390_native_collect): Delete functions.
2441 (supply_gregset, fill_gregset): Replace s390-specific regmap
2442 handling by a call to regcache_supply/_collect_regset.
2443 (supply_fpregset, fill_fpregset): Call regcache_supply/
2444 _collect_regset instead of s390_native_supply/_collect.
2445 (fetch_regset, store_regset): Likewise. Also change the last
2446 parameter to a regset instead of a regmap.
2447 (s390_linux_fetch_inferior_registers)
2448 (390_linux_store_inferior_registers): Adjust last parameter in
2449 calls to fetch_regset and store_regset.
2450 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2451 (s390_gregmap): ... this. Also make static const and convert to
2452 regcache_map_entry format.
2453 (s390x_regmap_gregset): Delete.
2454 (s390_regmap_fpregset): Rename to...
2455 (s390_fpregmap): ... this. Make static const and convert to
2456 regcache_map_entry format.
2457 (s390_regmap_upper, s390_regmap_last_break)
2458 (s390x_regmap_last_break, s390_regmap_system_call)
2459 (s390_regmap_tdb): Likewise.
2460 (s390_supply_regset, s390_collect_regset): Remove functions.
2461 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2463 (s390_gregset, s390_fpregset, s390_upper_regset)
2464 (s390_last_break_regset, s390x_last_break_regset)
2465 (s390_system_call_regset, s390_tdb_regset): Make global and
2466 replace s390_supply/_collect_regset by regcache_supply/
2468 (s390x_gregset): Delete.
2469 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2470 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2471 (s390_regmap_fpregset, s390_regmap_last_break)
2472 (s390x_regmap_last_break, s390_regmap_system_call)
2473 (s390_regmap_tdb): Delete global variable declarations.
2474 (s390_gregset, s390_fpregset, s390_last_break_regset)
2475 (s390x_last_break_regset, s390_system_call_regset)
2476 (s390_tdb_regset): New global variable declarations.
2478 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2480 * regcache.c: Include "regset.h".
2481 (regcache_transfer_regset): New local function.
2482 (regcache_supply_regset, regcache_collect_regset): New functions.
2483 * regcache.h (struct regcache_map_entry): New structure.
2484 (REGCACHE_MAP_SKIP): New enum value.
2485 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2487 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2489 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2490 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2491 (ppc_linux_collect_gregset ): Likewise.
2492 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2493 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2494 (ppc_collect_vrregset): Likewise.
2495 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2498 2014-08-07 Yao Qi <yao@codesourcery.com>
2500 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2501 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2502 * remote.c (remote_read_bytes): Likewise.
2504 2014-08-07 Yao Qi <yao@codesourcery.com>
2506 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2508 2014-08-07 Yao Qi <yao@codesourcery.com>
2511 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2512 TARGET_XFER_OK instead of 0.
2514 2014-08-07 Gary Benson <gbenson@redhat.com>
2516 * common/common-defs.h: Include errno.h.
2517 * defs.h: Do not include errno.h.
2518 * ada-typeprint.c: Likewise.
2519 * c-typeprint.c: Likewise.
2520 * core-regset.c: Likewise.
2521 * corefile.c: Likewise.
2522 * corelow.c: Likewise.
2523 * event-loop.c: Likewise.
2524 * f-typeprint.c: Likewise.
2525 * gnu-nat.c: Likewise.
2526 * go32-nat.c: Likewise.
2527 * i386gnu-nat.c: Likewise.
2528 * m2-typeprint.c: Likewise.
2529 * nat/linux-btrace.c: Likewise.
2530 * p-typeprint.c: Likewise.
2531 * procfs.c: Likewise.
2532 * remote-sim.c: Likewise.
2533 * rs6000-nat.c: Likewise.
2534 * target.c: Likewise.
2535 * typeprint.c: Likewise.
2536 * ui-file.c: Likewise.
2537 * valops.c: Likewise.
2538 * valprint.c: Likewise.
2540 2014-08-07 Gary Benson <gbenson@redhat.com>
2542 * common/common-defs.h: Include string.h.
2543 * aarch64-tdep.c: Do not include string.h.
2544 * ada-exp.y: Likewise.
2545 * ada-lang.c: Likewise.
2546 * ada-lex.l: Likewise.
2547 * ada-typeprint.c: Likewise.
2548 * ada-valprint.c: Likewise.
2549 * aix-thread.c: Likewise.
2550 * alpha-linux-tdep.c: Likewise.
2551 * alpha-mdebug-tdep.c: Likewise.
2552 * alpha-nat.c: Likewise.
2553 * alpha-osf1-tdep.c: Likewise.
2554 * alpha-tdep.c: Likewise.
2555 * alphanbsd-tdep.c: Likewise.
2556 * amd64-dicos-tdep.c: Likewise.
2557 * amd64-linux-tdep.c: Likewise.
2558 * amd64-nat.c: Likewise.
2559 * amd64-sol2-tdep.c: Likewise.
2560 * amd64fbsd-tdep.c: Likewise.
2561 * amd64obsd-tdep.c: Likewise.
2562 * arch-utils.c: Likewise.
2563 * arm-linux-nat.c: Likewise.
2564 * arm-linux-tdep.c: Likewise.
2565 * arm-tdep.c: Likewise.
2566 * arm-wince-tdep.c: Likewise.
2567 * armbsd-tdep.c: Likewise.
2568 * armnbsd-nat.c: Likewise.
2569 * armnbsd-tdep.c: Likewise.
2570 * armobsd-tdep.c: Likewise.
2571 * avr-tdep.c: Likewise.
2572 * ax-gdb.c: Likewise.
2573 * ax-general.c: Likewise.
2574 * bcache.c: Likewise.
2575 * bfin-tdep.c: Likewise.
2576 * breakpoint.c: Likewise.
2577 * build-id.c: Likewise.
2578 * buildsym.c: Likewise.
2579 * c-exp.y: Likewise.
2580 * c-lang.c: Likewise.
2581 * c-typeprint.c: Likewise.
2582 * c-valprint.c: Likewise.
2583 * charset.c: Likewise.
2584 * cli-out.c: Likewise.
2585 * cli/cli-cmds.c: Likewise.
2586 * cli/cli-decode.c: Likewise.
2587 * cli/cli-dump.c: Likewise.
2588 * cli/cli-interp.c: Likewise.
2589 * cli/cli-logging.c: Likewise.
2590 * cli/cli-script.c: Likewise.
2591 * cli/cli-setshow.c: Likewise.
2592 * cli/cli-utils.c: Likewise.
2593 * coffread.c: Likewise.
2594 * common/agent.c: Likewise.
2595 * common/buffer.c: Likewise.
2596 * common/buffer.h: Likewise.
2597 * common/common-utils.c: Likewise.
2598 * common/filestuff.c: Likewise.
2599 * common/filestuff.c: Likewise.
2600 * common/format.c: Likewise.
2601 * common/print-utils.c: Likewise.
2602 * common/rsp-low.c: Likewise.
2603 * common/signals.c: Likewise.
2604 * common/vec.h: Likewise.
2605 * common/xml-utils.c: Likewise.
2606 * core-regset.c: Likewise.
2607 * corefile.c: Likewise.
2608 * corelow.c: Likewise.
2609 * cp-abi.c: Likewise.
2610 * cp-name-parser.y: Likewise.
2611 * cp-support.c: Likewise.
2612 * cp-valprint.c: Likewise.
2613 * cris-tdep.c: Likewise.
2614 * d-exp.y: Likewise.
2615 * darwin-nat.c: Likewise.
2616 * dbxread.c: Likewise.
2617 * dcache.c: Likewise.
2618 * demangle.c: Likewise.
2619 * dicos-tdep.c: Likewise.
2620 * disasm.c: Likewise.
2621 * doublest.c: Likewise.
2622 * dsrec.c: Likewise.
2623 * dummy-frame.c: Likewise.
2624 * dwarf2-frame.c: Likewise.
2625 * dwarf2loc.c: Likewise.
2626 * dwarf2read.c: Likewise.
2627 * elfread.c: Likewise.
2628 * environ.c: Likewise.
2630 * event-loop.c: Likewise.
2631 * exceptions.c: Likewise.
2633 * expprint.c: Likewise.
2634 * f-exp.y: Likewise.
2635 * f-lang.c: Likewise.
2636 * f-typeprint.c: Likewise.
2637 * f-valprint.c: Likewise.
2638 * fbsd-nat.c: Likewise.
2639 * findcmd.c: Likewise.
2640 * findvar.c: Likewise.
2641 * fork-child.c: Likewise.
2642 * frame.c: Likewise.
2643 * frv-linux-tdep.c: Likewise.
2644 * frv-tdep.c: Likewise.
2646 * gdb_bfd.c: Likewise.
2647 * gdbarch.c: Likewise.
2648 * gdbarch.sh: Likewise.
2649 * gdbtypes.c: Likewise.
2650 * gnu-nat.c: Likewise.
2651 * gnu-v2-abi.c: Likewise.
2652 * gnu-v3-abi.c: Likewise.
2653 * go-exp.y: Likewise.
2654 * go-lang.c: Likewise.
2655 * go32-nat.c: Likewise.
2656 * guile/guile.c: Likewise.
2657 * guile/scm-auto-load.c: Likewise.
2658 * hppa-hpux-tdep.c: Likewise.
2659 * hppa-linux-nat.c: Likewise.
2660 * hppanbsd-tdep.c: Likewise.
2661 * hppaobsd-tdep.c: Likewise.
2662 * i386-cygwin-tdep.c: Likewise.
2663 * i386-dicos-tdep.c: Likewise.
2664 * i386-linux-tdep.c: Likewise.
2665 * i386-nto-tdep.c: Likewise.
2666 * i386-sol2-tdep.c: Likewise.
2667 * i386-tdep.c: Likewise.
2668 * i386bsd-tdep.c: Likewise.
2669 * i386gnu-nat.c: Likewise.
2670 * i386nbsd-tdep.c: Likewise.
2671 * i386obsd-tdep.c: Likewise.
2672 * i387-tdep.c: Likewise.
2673 * ia64-libunwind-tdep.c: Likewise.
2674 * ia64-linux-nat.c: Likewise.
2675 * inf-child.c: Likewise.
2676 * inf-ptrace.c: Likewise.
2677 * inf-ttrace.c: Likewise.
2678 * infcall.c: Likewise.
2679 * infcmd.c: Likewise.
2680 * inflow.c: Likewise.
2681 * infrun.c: Likewise.
2682 * interps.c: Likewise.
2683 * iq2000-tdep.c: Likewise.
2684 * irix5-nat.c: Likewise.
2685 * jv-exp.y: Likewise.
2686 * jv-lang.c: Likewise.
2687 * jv-typeprint.c: Likewise.
2688 * jv-valprint.c: Likewise.
2689 * language.c: Likewise.
2690 * linux-fork.c: Likewise.
2691 * linux-nat.c: Likewise.
2692 * lm32-tdep.c: Likewise.
2693 * m2-exp.y: Likewise.
2694 * m2-typeprint.c: Likewise.
2695 * m32c-tdep.c: Likewise.
2696 * m32r-linux-nat.c: Likewise.
2697 * m32r-linux-tdep.c: Likewise.
2698 * m32r-rom.c: Likewise.
2699 * m32r-tdep.c: Likewise.
2700 * m68hc11-tdep.c: Likewise.
2701 * m68k-tdep.c: Likewise.
2702 * m68kbsd-tdep.c: Likewise.
2703 * m68klinux-nat.c: Likewise.
2704 * m68klinux-tdep.c: Likewise.
2705 * m88k-tdep.c: Likewise.
2706 * machoread.c: Likewise.
2707 * macrocmd.c: Likewise.
2709 * mdebugread.c: Likewise.
2710 * mem-break.c: Likewise.
2711 * memattr.c: Likewise.
2712 * memory-map.c: Likewise.
2713 * mep-tdep.c: Likewise.
2714 * mi/mi-cmd-break.c: Likewise.
2715 * mi/mi-cmd-disas.c: Likewise.
2716 * mi/mi-cmd-env.c: Likewise.
2717 * mi/mi-cmd-stack.c: Likewise.
2718 * mi/mi-cmd-var.c: Likewise.
2719 * mi/mi-cmds.c: Likewise.
2720 * mi/mi-console.c: Likewise.
2721 * mi/mi-getopt.c: Likewise.
2722 * mi/mi-interp.c: Likewise.
2723 * mi/mi-main.c: Likewise.
2724 * mi/mi-parse.c: Likewise.
2725 * microblaze-rom.c: Likewise.
2726 * microblaze-tdep.c: Likewise.
2727 * mingw-hdep.c: Likewise.
2728 * minidebug.c: Likewise.
2729 * minsyms.c: Likewise.
2730 * mips-irix-tdep.c: Likewise.
2731 * mips-linux-tdep.c: Likewise.
2732 * mips-tdep.c: Likewise.
2733 * mips64obsd-tdep.c: Likewise.
2734 * mipsnbsd-tdep.c: Likewise.
2735 * mipsread.c: Likewise.
2736 * mn10300-linux-tdep.c: Likewise.
2737 * mn10300-tdep.c: Likewise.
2738 * monitor.c: Likewise.
2739 * moxie-tdep.c: Likewise.
2740 * mt-tdep.c: Likewise.
2741 * nat/linux-btrace.c: Likewise.
2742 * nat/linux-osdata.c: Likewise.
2743 * nat/linux-procfs.c: Likewise.
2744 * nat/linux-ptrace.c: Likewise.
2745 * nat/linux-waitpid.c: Likewise.
2746 * nbsd-tdep.c: Likewise.
2747 * nios2-linux-tdep.c: Likewise.
2748 * nto-procfs.c: Likewise.
2749 * nto-tdep.c: Likewise.
2750 * objc-lang.c: Likewise.
2751 * objfiles.c: Likewise.
2752 * opencl-lang.c: Likewise.
2753 * osabi.c: Likewise.
2754 * osdata.c: Likewise.
2755 * p-exp.y: Likewise.
2756 * p-lang.c: Likewise.
2757 * p-typeprint.c: Likewise.
2758 * parse.c: Likewise.
2759 * posix-hdep.c: Likewise.
2760 * ppc-linux-nat.c: Likewise.
2761 * ppc-sysv-tdep.c: Likewise.
2762 * ppcfbsd-tdep.c: Likewise.
2763 * ppcnbsd-tdep.c: Likewise.
2764 * ppcobsd-tdep.c: Likewise.
2765 * printcmd.c: Likewise.
2766 * procfs.c: Likewise.
2767 * prologue-value.c: Likewise.
2768 * python/py-auto-load.c: Likewise.
2769 * python/py-gdb-readline.c: Likewise.
2770 * ravenscar-thread.c: Likewise.
2771 * regcache.c: Likewise.
2772 * registry.c: Likewise.
2773 * remote-fileio.c: Likewise.
2774 * remote-m32r-sdi.c: Likewise.
2775 * remote-mips.c: Likewise.
2776 * remote-notif.c: Likewise.
2777 * remote-sim.c: Likewise.
2778 * remote.c: Likewise.
2779 * reverse.c: Likewise.
2780 * rs6000-aix-tdep.c: Likewise.
2781 * ser-base.c: Likewise.
2782 * ser-go32.c: Likewise.
2783 * ser-mingw.c: Likewise.
2784 * ser-pipe.c: Likewise.
2785 * ser-tcp.c: Likewise.
2786 * ser-unix.c: Likewise.
2787 * serial.c: Likewise.
2788 * sh-tdep.c: Likewise.
2789 * sh64-tdep.c: Likewise.
2790 * shnbsd-tdep.c: Likewise.
2792 * sol-thread.c: Likewise.
2793 * solib-dsbt.c: Likewise.
2794 * solib-frv.c: Likewise.
2795 * solib-osf.c: Likewise.
2796 * solib-som.c: Likewise.
2797 * solib-spu.c: Likewise.
2798 * solib-target.c: Likewise.
2799 * solib.c: Likewise.
2800 * somread.c: Likewise.
2801 * source.c: Likewise.
2802 * sparc-nat.c: Likewise.
2803 * sparc-sol2-tdep.c: Likewise.
2804 * sparc-tdep.c: Likewise.
2805 * sparc64-tdep.c: Likewise.
2806 * sparc64fbsd-tdep.c: Likewise.
2807 * sparc64nbsd-tdep.c: Likewise.
2808 * sparcnbsd-tdep.c: Likewise.
2809 * spu-linux-nat.c: Likewise.
2810 * spu-multiarch.c: Likewise.
2811 * spu-tdep.c: Likewise.
2812 * stabsread.c: Likewise.
2813 * stack.c: Likewise.
2814 * std-regs.c: Likewise.
2815 * symfile.c: Likewise.
2816 * symmisc.c: Likewise.
2817 * symtab.c: Likewise.
2818 * target.c: Likewise.
2819 * thread.c: Likewise.
2820 * tilegx-linux-nat.c: Likewise.
2821 * tilegx-tdep.c: Likewise.
2823 * tracepoint.c: Likewise.
2824 * tui/tui-command.c: Likewise.
2825 * tui/tui-data.c: Likewise.
2826 * tui/tui-disasm.c: Likewise.
2827 * tui/tui-file.c: Likewise.
2828 * tui/tui-layout.c: Likewise.
2829 * tui/tui-out.c: Likewise.
2830 * tui/tui-regs.c: Likewise.
2831 * tui/tui-source.c: Likewise.
2832 * tui/tui-stack.c: Likewise.
2833 * tui/tui-win.c: Likewise.
2834 * tui/tui-windata.c: Likewise.
2835 * tui/tui-winsource.c: Likewise.
2836 * typeprint.c: Likewise.
2837 * ui-file.c: Likewise.
2838 * ui-out.c: Likewise.
2839 * user-regs.c: Likewise.
2840 * utils.c: Likewise.
2841 * v850-tdep.c: Likewise.
2842 * valarith.c: Likewise.
2843 * valops.c: Likewise.
2844 * valprint.c: Likewise.
2845 * value.c: Likewise.
2846 * varobj.c: Likewise.
2847 * vax-tdep.c: Likewise.
2848 * vaxnbsd-tdep.c: Likewise.
2849 * vaxobsd-tdep.c: Likewise.
2850 * windows-nat.c: Likewise.
2851 * xcoffread.c: Likewise.
2852 * xml-support.c: Likewise.
2853 * xstormy16-tdep.c: Likewise.
2854 * xtensa-linux-nat.c: Likewise.
2856 2014-08-07 Gary Benson <gbenson@redhat.com>
2858 * common/common-defs.h: Include gdb_assert.h.
2859 * aarch64-tdep.c: Do not include gdb_assert.h.
2860 * addrmap.c: Likewise.
2861 * aix-thread.c: Likewise.
2862 * alpha-linux-tdep.c: Likewise.
2863 * alpha-mdebug-tdep.c: Likewise.
2864 * alphanbsd-tdep.c: Likewise.
2865 * amd64-nat.c: Likewise.
2866 * amd64-tdep.c: Likewise.
2867 * amd64bsd-nat.c: Likewise.
2868 * amd64fbsd-nat.c: Likewise.
2869 * amd64fbsd-tdep.c: Likewise.
2870 * amd64nbsd-nat.c: Likewise.
2871 * amd64nbsd-tdep.c: Likewise.
2872 * amd64obsd-nat.c: Likewise.
2873 * amd64obsd-tdep.c: Likewise.
2874 * arch-utils.c: Likewise.
2875 * arm-tdep.c: Likewise.
2876 * armbsd-tdep.c: Likewise.
2878 * bcache.c: Likewise.
2879 * bfin-tdep.c: Likewise.
2880 * blockframe.c: Likewise.
2881 * breakpoint.c: Likewise.
2882 * bsd-kvm.c: Likewise.
2883 * bsd-uthread.c: Likewise.
2884 * buildsym.c: Likewise.
2885 * c-exp.y: Likewise.
2886 * c-lang.c: Likewise.
2887 * charset.c: Likewise.
2888 * cleanups.c: Likewise.
2889 * cli-out.c: Likewise.
2890 * cli/cli-decode.c: Likewise.
2891 * cli/cli-dump.c: Likewise.
2892 * cli/cli-logging.c: Likewise.
2893 * cli/cli-script.c: Likewise.
2894 * cli/cli-utils.c: Likewise.
2895 * coffread.c: Likewise.
2896 * common/common-utils.c: Likewise.
2897 * common/queue.h: Likewise.
2898 * common/signals.c: Likewise.
2899 * common/vec.h: Likewise.
2900 * complaints.c: Likewise.
2901 * completer.c: Likewise.
2902 * corelow.c: Likewise.
2903 * cp-abi.c: Likewise.
2904 * cp-name-parser.y: Likewise.
2905 * cp-namespace.c: Likewise.
2906 * cp-support.c: Likewise.
2907 * cris-tdep.c: Likewise.
2908 * dbxread.c: Likewise.
2909 * dictionary.c: Likewise.
2910 * doublest.c: Likewise.
2911 * dsrec.c: Likewise.
2912 * dummy-frame.c: Likewise.
2913 * dwarf2-frame-tailcall.c: Likewise.
2914 * dwarf2-frame.c: Likewise.
2915 * dwarf2expr.c: Likewise.
2916 * dwarf2loc.c: Likewise.
2917 * dwarf2read.c: Likewise.
2919 * event-loop.c: Likewise.
2920 * exceptions.c: Likewise.
2921 * expprint.c: Likewise.
2922 * f-valprint.c: Likewise.
2923 * fbsd-nat.c: Likewise.
2924 * findvar.c: Likewise.
2925 * frame-unwind.c: Likewise.
2926 * frame.c: Likewise.
2927 * frv-tdep.c: Likewise.
2928 * gcore.c: Likewise.
2929 * gdb-dlfcn.c: Likewise.
2930 * gdb_bfd.c: Likewise.
2931 * gdbarch.c: Likewise.
2932 * gdbarch.sh: Likewise.
2933 * gdbtypes.c: Likewise.
2934 * gnu-nat.c: Likewise.
2935 * gnu-v3-abi.c: Likewise.
2936 * go-lang.c: Likewise.
2937 * guile/scm-exception.c: Likewise.
2938 * guile/scm-gsmob.c: Likewise.
2939 * guile/scm-lazy-string.c: Likewise.
2940 * guile/scm-math.c: Likewise.
2941 * guile/scm-pretty-print.c: Likewise.
2942 * guile/scm-safe-call.c: Likewise.
2943 * guile/scm-utils.c: Likewise.
2944 * guile/scm-value.c: Likewise.
2945 * h8300-tdep.c: Likewise.
2946 * hppa-hpux-nat.c: Likewise.
2947 * hppa-tdep.c: Likewise.
2948 * hppanbsd-tdep.c: Likewise.
2949 * hppaobsd-tdep.c: Likewise.
2950 * i386-darwin-nat.c: Likewise.
2951 * i386-darwin-tdep.c: Likewise.
2952 * i386-nto-tdep.c: Likewise.
2953 * i386-tdep.c: Likewise.
2954 * i386bsd-nat.c: Likewise.
2955 * i386fbsd-tdep.c: Likewise.
2956 * i386gnu-nat.c: Likewise.
2957 * i386nbsd-tdep.c: Likewise.
2958 * i386obsd-tdep.c: Likewise.
2959 * i387-tdep.c: Likewise.
2960 * ia64-libunwind-tdep.c: Likewise.
2961 * ia64-tdep.c: Likewise.
2962 * inf-ptrace.c: Likewise.
2963 * inf-ttrace.c: Likewise.
2964 * infcall.c: Likewise.
2965 * infcmd.c: Likewise.
2966 * infrun.c: Likewise.
2967 * inline-frame.c: Likewise.
2968 * interps.c: Likewise.
2969 * jv-lang.c: Likewise.
2970 * jv-typeprint.c: Likewise.
2971 * linux-fork.c: Likewise.
2972 * linux-nat.c: Likewise.
2973 * linux-thread-db.c: Likewise.
2974 * m32c-tdep.c: Likewise.
2975 * m32r-linux-nat.c: Likewise.
2976 * m32r-tdep.c: Likewise.
2977 * m68k-tdep.c: Likewise.
2978 * m68kbsd-nat.c: Likewise.
2979 * m68kbsd-tdep.c: Likewise.
2980 * m88k-tdep.c: Likewise.
2981 * machoread.c: Likewise.
2982 * macroexp.c: Likewise.
2983 * macrotab.c: Likewise.
2984 * maint.c: Likewise.
2985 * mdebugread.c: Likewise.
2986 * memory-map.c: Likewise.
2987 * mep-tdep.c: Likewise.
2988 * mi/mi-common.c: Likewise.
2989 * microblaze-tdep.c: Likewise.
2990 * mingw-hdep.c: Likewise.
2991 * mips-linux-nat.c: Likewise.
2992 * mips-linux-tdep.c: Likewise.
2993 * mips-tdep.c: Likewise.
2994 * mips64obsd-tdep.c: Likewise.
2995 * mipsnbsd-tdep.c: Likewise.
2996 * mn10300-linux-tdep.c: Likewise.
2997 * mn10300-tdep.c: Likewise.
2998 * moxie-tdep.c: Likewise.
2999 * mt-tdep.c: Likewise.
3000 * nat/linux-btrace.c: Likewise.
3001 * nat/linux-osdata.c: Likewise.
3002 * nat/linux-ptrace.c: Likewise.
3003 * nat/mips-linux-watch.c: Likewise.
3004 * nios2-linux-tdep.c: Likewise.
3005 * nios2-tdep.c: Likewise.
3006 * objc-lang.c: Likewise.
3007 * objfiles.c: Likewise.
3008 * obsd-nat.c: Likewise.
3009 * opencl-lang.c: Likewise.
3010 * osabi.c: Likewise.
3011 * parse.c: Likewise.
3012 * ppc-linux-nat.c: Likewise.
3013 * ppc-sysv-tdep.c: Likewise.
3014 * ppcfbsd-nat.c: Likewise.
3015 * ppcfbsd-tdep.c: Likewise.
3016 * ppcnbsd-nat.c: Likewise.
3017 * ppcnbsd-tdep.c: Likewise.
3018 * ppcobsd-nat.c: Likewise.
3019 * ppcobsd-tdep.c: Likewise.
3020 * printcmd.c: Likewise.
3021 * procfs.c: Likewise.
3022 * prologue-value.c: Likewise.
3023 * psymtab.c: Likewise.
3024 * python/py-lazy-string.c: Likewise.
3025 * python/py-value.c: Likewise.
3026 * regcache.c: Likewise.
3027 * reggroups.c: Likewise.
3028 * registry.c: Likewise.
3029 * remote-sim.c: Likewise.
3030 * remote.c: Likewise.
3031 * rs6000-aix-tdep.c: Likewise.
3032 * rs6000-tdep.c: Likewise.
3033 * s390-linux-tdep.c: Likewise.
3034 * score-tdep.c: Likewise.
3035 * ser-base.c: Likewise.
3036 * ser-mingw.c: Likewise.
3037 * sh-tdep.c: Likewise.
3038 * sh64-tdep.c: Likewise.
3039 * solib-darwin.c: Likewise.
3040 * solib-spu.c: Likewise.
3041 * solib-svr4.c: Likewise.
3042 * source.c: Likewise.
3043 * sparc-nat.c: Likewise.
3044 * sparc-sol2-tdep.c: Likewise.
3045 * sparc-tdep.c: Likewise.
3046 * sparc64-sol2-tdep.c: Likewise.
3047 * sparc64-tdep.c: Likewise.
3048 * sparc64fbsd-tdep.c: Likewise.
3049 * sparc64nbsd-tdep.c: Likewise.
3050 * sparc64obsd-tdep.c: Likewise.
3051 * sparcnbsd-tdep.c: Likewise.
3052 * sparcobsd-tdep.c: Likewise.
3053 * spu-multiarch.c: Likewise.
3054 * spu-tdep.c: Likewise.
3055 * stabsread.c: Likewise.
3056 * stack.c: Likewise.
3057 * symfile.c: Likewise.
3058 * symtab.c: Likewise.
3059 * target-descriptions.c: Likewise.
3060 * target-memory.c: Likewise.
3061 * target.c: Likewise.
3062 * tic6x-linux-tdep.c: Likewise.
3063 * tic6x-tdep.c: Likewise.
3064 * tilegx-linux-nat.c: Likewise.
3065 * tilegx-tdep.c: Likewise.
3067 * tramp-frame.c: Likewise.
3068 * tui/tui-out.c: Likewise.
3069 * tui/tui-winsource.c: Likewise.
3070 * ui-out.c: Likewise.
3071 * user-regs.c: Likewise.
3072 * utils.c: Likewise.
3073 * v850-tdep.c: Likewise.
3074 * valops.c: Likewise.
3075 * value.c: Likewise.
3076 * varobj.c: Likewise.
3077 * vax-nat.c: Likewise.
3078 * xml-syscall.c: Likewise.
3079 * xml-tdesc.c: Likewise.
3080 * xstormy16-tdep.c: Likewise.
3081 * xtensa-linux-nat.c: Likewise.
3082 * xtensa-tdep.c: Likewise.
3084 2014-08-07 Gary Benson <gbenson@redhat.com>
3086 * common/common-defs.h: Include common-utils.h.
3087 * defs.h: Do not include common-utils.h.
3088 * common/gdb_assert.h: Likewise.
3089 * darwin-nat.h: Likewise.
3090 * nat/linux-btrace.c: Likewise.
3091 * target/waitstatus.h: Likewise.
3093 2014-08-07 Gary Benson <gbenson@redhat.com>
3095 * common/common-defs.h: Include ptid.h.
3096 * defs.h: Do not include ptid.h.
3097 * inferior.h: Likewise.
3098 * infrun.h: Likewise.
3099 * nat/linux-btrace.h: Likewise.
3100 * nat/linux-osdata.h: Likewise.
3101 * target/waitstatus.h: Likewise.
3103 2014-08-07 Gary Benson <gbenson@redhat.com>
3105 * common/common-defs.h: Include gdb_locale.h.
3106 * defs.h: Do not include gdb_locale.h.
3108 2014-08-07 Gary Benson <gbenson@redhat.com>
3110 * common/common-defs.h: Include gdb/signals.h.
3111 * defs.h: Do not include gdb/signals.h.
3113 2014-08-07 Gary Benson <gbenson@redhat.com>
3115 * common/common-defs.h: Include pathmax.h.
3116 * defs.h: Do not include pathmax.h.
3118 2014-08-07 Gary Benson <gbenson@redhat.com>
3120 * common/common-defs.h: Include libiberty.h.
3121 * defs.h: Do not include libiberty.h.
3122 * common/queue.h: Likewise.
3123 * cp-name-parser.y: Likewise.
3124 * mi/mi-cmd-catch.c: Likewise.
3125 * python/python.c: Likewise.
3127 2014-08-07 Gary Benson <gbenson@redhat.com>
3129 * common/common-defs.h: Include ansidecl.h.
3130 * defs.h: Do not include ansidecl.h.
3131 * common/buffer.h: Likewise.
3132 * common/common-utils.h: Likewise.
3134 2014-08-07 Gary Benson <gbenson@redhat.com>
3136 * common/common-defs.h: Include stddef.h.
3137 * defs.h: Do not include stddef.h.
3138 * common/common-utils.h: Likewise.
3139 * amd64fbsd-nat.c: Likewise.
3140 * bcache.c: Likewise.
3141 * charset.c: Likewise.
3142 * common/buffer.h: Likewise.
3143 * common/vec.h: Likewise.
3144 * i386bsd-nat.c: Likewise.
3145 * nat/linux-btrace.h: Likewise.
3146 * ppcfbsd-nat.c: Likewise.
3147 * ppcnbsd-tdep.h: Likewise.
3148 * ppcobsd-nat.c: Likewise.
3149 * ppcobsd-tdep.h: Likewise.
3150 * python/py-gdb-readline.c: Likewise.
3152 2014-08-07 Gary Benson <gbenson@redhat.com>
3154 * common/common-defs.h: Include stdarg.h.
3155 * defs.h: Do not include stdarg.h.
3156 * ada-lang.c: Likewise.
3157 * common/common-utils.h: Likewise.
3158 * guile/scm-string.c: Likewise.
3159 * guile/scm-utils.c: Likewise.
3160 * m32c-tdep.c: Likewise.
3162 2014-08-07 Gary Benson <gbenson@redhat.com>
3164 * common/common-defs.h: Include stdlib.h.
3165 * defs.h: Do not include stdlib.h.
3166 * addrmap.c: Likewise.
3167 * bcache.c: Likewise.
3168 * common/buffer.c: Likewise.
3169 * common/common-utils.c: Likewise.
3170 * cp-name-parser.y: Likewise.
3171 * go32-nat.c: Likewise.
3172 * mn10300-linux-tdep.c: Likewise.
3173 * nat/linux-osdata.c: Likewise.
3174 * tui/tui.c: Likewise.
3175 * windows-nat.c: Likewise.
3177 2014-08-07 Gary Benson <gbenson@redhat.com>
3179 * common/common-defs.h: Include stdio.h.
3180 * defs.h: Do not include stdio.h.
3181 * ada-lang.c: Likewise.
3182 * common/buffer.c: Likewise.
3183 * common/common-utils.c: Likewise.
3184 * cp-name-parser.y: Likewise.
3185 * gnu-nat.c: Likewise.
3186 * go32-nat.c: Likewise.
3187 * i386gnu-nat.c: Likewise.
3188 * proc-api.c: Likewise.
3189 * proc-events.c: Likewise.
3190 * proc-flags.c: Likewise.
3191 * proc-why.c: Likewise.
3192 * python/python-internal.h: Likewise.
3193 * target-memory.c: Likewise.
3194 * tui/tui-io.c: Likewise.
3195 * tui/tui.c: Likewise.
3197 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3199 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3200 (scan_dyntag_auxv): Same.
3202 2014-08-06 Yao Qi <yao@codesourcery.com>
3204 * amd64-linux-nat.c: Remove duplicated include
3206 * i386-linux-nat.c: Likewise.
3208 2014-08-06 Yao Qi <yao@codesourcery.com>
3210 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3211 operand" with "Special opcode" in comments.
3213 2014-08-05 Gary Benson <gbenson@redhat.com>
3215 * interps.c (initialize_interps): Remove prototype.
3216 (interpreter_initialized): Remove static global.
3217 (interp_add): Do not call initialize_interps.
3218 (initialize_interps): Remove function.
3220 2014-08-05 Gary Benson <gbenson@redhat.com>
3222 * utils.c (vwarning): Remove spurious va_end.
3224 2014-08-05 Alan Modra <amodra@gmail.com>
3226 * charset.c (convert_between_encodings): Cast result of obstack_base.
3227 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3228 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3229 (read_unwind_info): Use size_t for some locals.
3230 * jit.c (finalize_symtab): Likewise.
3231 * utils.c (hashtab_obstack_allocate): Likewise.
3232 * symmisc.c (print_objfile_statistics): Update format strings.
3234 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3236 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3237 (Changes in GDB 7.8): ... here.
3239 2014-08-04 Tom Tromey <tromey@redhat.com>
3241 * target.c (set_targetdebug): New function.
3242 (initialize_targets): Pass set_targetdebug when creating "set
3245 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3247 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3248 if detecting a variable-sized field that is not the last field.
3249 Fix struct type length computation.
3251 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3253 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3256 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3258 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3259 Remove "+ 8" offset in computation of CHAIN_VMA.
3261 2014-07-31 Doug Evans <dje@google.com>
3263 * inflow.c (child_terminal_inferior): Add comment.
3264 (child_terminal_ours_for_output): Add comment.
3265 (child_terminal_ours): Add comment.
3266 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3267 (linux_nat_terminal_ours): Add comment.
3269 2014-07-31 Gary Benson <gbenson@redhat.com>
3271 * common/btrace-common.h: Do not include defs.h or server.h.
3272 * nat/mips-linux-watch.h: Likewise.
3273 * gdb-dlfcn.h: Do not include defs.h.
3274 * tracefile.h: Likewise.
3276 2014-07-30 Roland McGrath <mcgrathr@google.com>
3278 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3280 2014-07-30 Tom Tromey <tromey@redhat.com>
3282 * bsd-kvm.c (bsd_kvm_open): Constify.
3283 * corelow.c (core_open): Constify.
3284 * ctf.c (ctf_open): Constify.
3285 * dbug-rom.c (dbug_open): Constify.
3286 * exec.c (exec_open): Constify.
3287 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3288 * microblaze-rom.c (picobug_open): Constify.
3289 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3291 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3292 * record-btrace.c (record_btrace_open): Constify.
3293 * record-full.c (record_full_core_open_1, record_full_open_1)
3294 (record_full_open): Constify.
3295 * remote-m32r-sdi.c (m32r_open): Constify.
3296 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3297 (rockhopper_open, lsi_open): Constify.
3298 * remote-sim.c (gdbsim_open): Constify.
3299 * remote.c (remote_open, extended_remote_open, remote_open_1):
3301 * target.h (struct target_ops) <to_open>: Make "arg" const.
3302 * tracefile-tfile.c (tfile_open): Constify.
3304 2014-07-30 Tom Tromey <tromey@redhat.com>
3306 * breakpoint.c (map_breakpoint_numbers): Update.
3307 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3308 (get_number_const): New function.
3309 (get_number): Rewrite using get_number_const.
3310 (init_number_or_range): Make "string" const.
3311 (number_is_in_list): Make "list" const.
3312 * cli/cli-utils.h (get_number_const): Declare.
3313 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3314 (init_number_or_range, number_is_in_list): Update.
3315 * printcmd.c (map_display_numbers): Update.
3316 * value.c (value_from_history_ref): Constify.
3317 * value.h (value_from_history_ref): Update.
3319 2014-07-30 Tom Tromey <tromey@redhat.com>
3321 * corefile.c (hook_type, call_extra_exec_file_hooks)
3322 (specify_exec_file_hook): Constify.
3323 * exec.c (exec_file_attach): Make "filename" const.
3324 * gdbcore.h (deprecated_exec_file_display_hook)
3325 (specify_exec_file_hook, exec_file_attach): Constify.
3326 * main.c (captured_main): Use catch_command_errors_const.
3328 2014-07-30 Tom Tromey <tromey@redhat.com>
3330 * target.c (open_target): New function.
3331 (add_target_with_completer, add_deprecated_target_alias): Use
3332 set_cmd_sfunc, set_cmd_context.
3333 (debug_to_open): Remove.
3334 (setup_target_debug): Update.
3336 2014-07-30 Yao Qi <yao@codesourcery.com>
3338 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3340 * parse.c (exp_iterate): Update comments.
3342 2014-07-30 Gary Benson <gbenson@redhat.com>
3344 * common/common-defs.h: New file.
3345 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3346 * defs.h: Include common-defs.h.
3347 Do not include config.h or build-gnulib/config.h.
3349 2014-07-30 Gary Benson <gbenson@redhat.com>
3351 * common/common-utils.h: Do not include config.h.
3352 * nat/linux-btrace.h: Likewise.
3354 2014-07-30 Gary Benson <gbenson@redhat.com>
3356 * btrace.c: Include defs.h.
3357 * common/ptid.c: Include defs.h or server.h as appropriate.
3358 * nat/mips-linux-watch.c: Likewise.
3360 2014-07-29 Tom Tromey <tromey@redhat.com>
3362 * target.c (target_is_pushed): Simplify.
3364 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3368 2014-07-29 Yao Qi <yao@codesourcery.com>
3371 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3373 2014-07-28 Doug Evans <xdje42@gmail.com>
3376 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3377 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3380 2014-07-28 Will Newton <will.newton@linaro.org>
3382 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3383 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3384 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3385 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3386 (THUMB2_EABI_SYSCALL): Likewise.
3387 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3389 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3390 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3392 2014-07-27 Doug Evans <xdje42@gmail.com>
3394 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3396 2014-07-27 Doug Evans <xdje42@gmail.com>
3398 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3400 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3401 Doug Evans <xdje42@gmail.com>
3404 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3405 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3406 * configure.ac: Try to use guild to compile an scm file, if it fails
3407 then disable guile support.
3408 * configure: Regenerate.
3409 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3411 (GUILE_COMPILED_FILES): New variable.
3412 (GUILE_FILES) Update.
3413 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3414 (stamp-guile): Compile scm files.
3415 * guile/guile.c (boot_guile_support): New function.
3416 (standard_throw_args_p): New function.
3417 (print_standard_throw_error, print_throw_error): New functions.
3418 (handle_boot_error): New function.
3419 (initialize_scheme_side): Rewrite to call boot_guile_support.
3420 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3421 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3423 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3424 Doug Evans <xdje42@gmail.com>
3427 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3428 * guile/lib/gdb/support.scm: New file.
3429 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3430 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3432 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3434 (%assert-type): Ditto, and renamed to assert-type.
3435 (%exception-print-style): Delete.
3437 2014-07-26 Doug Evans <xdje42@gmail.com>
3440 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3441 * configure: Regenerate.
3442 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3444 (PYTHON_FILES): New variable.
3445 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3446 (GUILE_FILES): New variable.
3447 (stamp-python, install-python, uninstall-python): Handle empty
3449 (stamp-guile, install-guile, uninstall-guile): Ditto.
3451 2014-07-26 Doug Evans <xdje42@gmail.com>
3454 * guile/lib/gdb.scm (pretty-printers): Export.
3455 (set-pretty-printers!): Export.
3456 * guile/lib/gdb/printing.scm (gdb module): Update.
3457 (prepend-pretty-printer!, append-pretty-printer!): Update.
3458 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3459 (pretty_printer_list_var): Delete.
3460 (pretty_printer_list): New static global.
3461 (gdbscm_pretty_printers): New function.
3462 (gdbscm_set_pretty_printers_x): New function.
3463 (ppscm_find_pretty_printer_from_gdb): Update.
3464 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3465 (gdbscm_initialize_pretty_printers): Update.
3467 2014-07-26 Doug Evans <xdje42@gmail.com>
3470 * configure.ac: Add check for header gc/gc.h.
3471 Add check for function setenv.
3472 * configure: Regenerate.
3473 * config.in: Regenerate.
3474 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3476 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3478 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3479 variation in gdbarch matching.
3481 2014-07-25 Tom Tromey <tromey@redhat.com>
3483 * exec.c (using_exec_ops): Remove.
3484 (exec_close_1): Update. Remove extraneous block, reindent.
3485 (add_target_sections): Use target_is_pushed.
3487 2014-07-25 Pedro Alves <palves@redhat.com>
3489 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3490 * monitor.c (monitor_create_inferior): Likewise.
3491 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3492 * remote-sim.c (gdbsim_create_inferior): Likewise.
3493 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3494 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3495 * windows-nat.c (do_initial_windows_stuff): Likewise.
3497 2014-07-25 Pedro Alves <palves@redhat.com>
3499 * NEWS: Mention signal passing and "signal" command changes.
3500 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3502 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3504 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3505 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3506 (jump_command): Adjust clear_proceed_status call.
3507 (signal_command): Warn if other thread that are resumed have
3508 signals that will be delivered. Adjust clear_proceed_status call.
3509 (until_next_command, finish_command)
3510 (proceed_after_attach_callback, attach_command_post_wait)
3511 (attach_command): Adjust clear_proceed_status call.
3512 * infrun.c (proceed_after_vfork_done): Likewise.
3513 (proceed_after_attach_callback): Adjust comment.
3514 (clear_proceed_status_thread): Clear stop_signal if not in pass
3516 (clear_proceed_status_callback): Delete.
3517 (clear_proceed_status): New 'step' parameter. Only clear the
3518 proceed status of threads the command being prepared is about to
3520 (proceed): If passed in an explicit signal, override stop_signal
3521 with it. Don't pass the last stop signal to the thread we're
3523 (init_wait_for_inferior): Adjust clear_proceed_status call.
3524 (switch_back_to_stepped_thread): Clear the signal if it should not
3526 * infrun.h (clear_proceed_status): New 'step' parameter.
3527 (user_visible_resume_ptid): Add comment.
3528 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3529 signal is in pass state.
3530 * remote.c (append_pending_thread_resumptions): Likewise.
3531 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3533 2014-07-25 Tom Tromey <tromey@redhat.com>
3535 * target.h (target_stopped_data_address)
3536 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3539 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3541 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3543 (avr_pointer_to_address): Likewise.
3545 2014-07-24 Tom Tromey <tromey@redhat.com>
3547 * monitor.c (compile_pattern): Update.
3548 * target.h (struct target_ops) <to_shortname, to_longname,
3551 2014-07-24 Tom Tromey <tromey@redhat.com>
3553 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3554 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3555 (add_info_alias, add_com): Make "doc" const.
3556 (print_doc_line): Make "str" const.
3557 (delete_cmd): Update.
3558 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3559 (print_doc_line): Update.
3560 * cli/cli-script.c (document_command): Update.
3561 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3562 (add_com, add_info, add_info_alias): Update.
3563 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3564 * python/py-cmd.c (cmdpy_destroyer): Update.
3566 2014-07-24 Tom Tromey <tromey@redhat.com>
3568 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3569 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3570 (help_cmd_list): Constify.
3571 (lookup_cmd): Update.
3572 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3574 (help_cmd_list, apropos_cmd): Update.
3575 * cli/cli-script.c (show_user): Update.
3576 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3577 * cli/cli-setshow.h (cmd_show_list): Update.
3578 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3579 (cmd_show_list): Update.
3580 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3581 * python/py-cmd.c (cmdpy_destroyer): Update.
3583 2014-07-24 Tom Tromey <tromey@redhat.com>
3585 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3586 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3588 * command.h (deprecate_cmd): Update.
3589 * maint.c (maintenance_do_deprecate): Add casts.
3591 2014-07-24 Tom Tromey <tromey@redhat.com>
3593 * cli/cli-decode.c (help_cmd): Make parameter "const".
3594 * cli/cli-decode.h (help_cmd): Update.
3596 2014-07-24 Tom Tromey <tromey@redhat.com>
3598 * stack.c (up_silently_base, down_silently_base): Make argument
3601 2014-07-24 Tom Tromey <tromey@redhat.com>
3603 * solib.c (solib_add): Make "pattern" const.
3604 * solib.h (solib_add): Update.
3606 2014-07-24 Tom Tromey <tromey@redhat.com>
3608 * remote.c (remote_serial_open, print_packet, putpkt)
3609 (putpkt_binary): Constify.
3610 * remote.h (putpkt): Update.
3612 2014-07-24 Tom Tromey <tromey@redhat.com>
3614 * monitor.c (monitor_open): Make "args" const.
3615 * monitor.h (monitor_open): Update.
3617 2014-07-24 Tom Tromey <tromey@redhat.com>
3619 * maint.c (match_bfd_flags): Make "string" const.
3620 (print_bfd_section_info): Remove casts.
3621 (print_objfile_section_info): Make "string" const.
3623 2014-07-24 Tom Tromey <tromey@redhat.com>
3625 * inf-child.c (inf_child_open_target): Make "arg" const.
3626 * inf-child.h (inf_child_open_target): Update.
3628 2014-07-24 Tom Tromey <tromey@redhat.com>
3630 * environ.c (unset_in_environ): Make "var" const.
3631 * environ.h (unset_in_environ): Update.
3633 2014-07-24 Tom Tromey <tromey@redhat.com>
3635 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3637 (scan_filename_with_cleanup): Likewise.
3638 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3639 Make arguments const.
3640 (restore_command): Update.
3642 2014-07-24 Pedro Alves <palves@redhat.com>
3644 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3646 2014-07-24 Tom Tromey <tromey@redhat.com>
3647 Gary Benson <gbenson@redhat.com>
3649 * nat/linux-ptrace.c (additional_flags): New global.
3650 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3651 additional_flags; don't check GDBSERVER.
3652 (linux_ptrace_set_additional_flags): New function.
3653 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3655 * linux-nat.c (_initialize_linux_nat): Call
3656 linux_ptrace_set_additional_flags.
3658 2014-07-24 Tom Tromey <tromey@redhat.com>
3660 * make-target-delegates (munge_type, write_debugmethod): New
3662 (debug_names): New global.
3663 ($TARGET_DEBUG_PRINTER): New global.
3664 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3666 Write debug methods. Generate init_debug_target.
3667 * target-debug.h: New file.
3668 * target-delegates.c: Rebuild.
3669 * target.c: Include target-debug.h.
3670 (debug_target): Hoist definition.
3671 (target_kill, target_get_section_table, target_memory_map)
3672 (target_flash_erase, target_flash_done, target_detach)
3673 (target_disconnect, target_wait, target_resume)
3674 (target_pass_signals, target_program_signals, target_follow_fork)
3675 (target_mourn_inferior, target_search_memory)
3676 (target_thread_address_space, target_close)
3677 (target_find_new_threads, target_core_of_thread)
3678 (target_verify_memory, target_insert_mask_watchpoint)
3679 (target_remove_mask_watchpoint): Remove targetdebug code.
3680 (debug_to_post_attach, debug_to_prepare_to_store)
3681 (debug_to_files_info, debug_to_insert_breakpoint)
3682 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3683 (debug_to_region_ok_for_hw_watchpoint)
3684 (debug_to_can_accel_watchpoint_condition)
3685 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3686 (debug_to_watchpoint_addr_within_range)
3687 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3688 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3689 (debug_to_terminal_init, debug_to_terminal_inferior)
3690 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3691 (debug_to_terminal_save_ours, debug_to_terminal_info)
3692 (debug_to_load, debug_to_post_startup_inferior)
3693 (debug_to_insert_fork_catchpoint)
3694 (debug_to_remove_fork_catchpoint)
3695 (debug_to_insert_vfork_catchpoint)
3696 (debug_to_remove_vfork_catchpoint)
3697 (debug_to_insert_exec_catchpoint)
3698 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3699 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3700 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3701 (setup_target_debug): Call init_debug_target.
3702 * target.h (TARGET_DEBUG_PRINTER): New macro.
3703 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3704 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3706 2014-07-24 Gary Benson <gbenson@redhat.com>
3708 * exceptions.h (throw_vfatal): Renamed to...
3709 (throw_vquit): New declaration.
3710 (throw_quit): Likewise.
3711 * exceptions.c (throw_vfatal): Renamed to...
3712 (throw_vquit): New function.
3713 (throw_quit): Likewise.
3714 (throw_error): Call throw_verror rather than throw_it.
3715 * utils.h (vfatal): Removed.
3717 * utils.c (vfatal): Removed.
3719 (internal_verror): Replaced call to fatal with call to throw_quit.
3720 (quit): Replaced calls to fatal with calls to throw_quit.
3722 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3724 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3727 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3729 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3730 less than zero in conditional expression.
3732 2014-07-23 Tom Tromey <tromey@redhat.com>
3734 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3735 ($INTRO_PART): Don't match whitespace.
3736 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3738 ($METHOD): Add $METHOD_TRAILER.
3740 (scan_target_h): New sub.
3741 Change main loop not to collect state.
3742 * target-delegates.c: Rebuild.
3744 2014-07-23 Gary Benson <gbenson@redhat.com>
3746 * cp-support.c (gdb_demangle): Fix build on systems without
3749 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3751 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3752 for reference entry value target data value.
3754 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3756 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3757 value_available_contents_eq.
3759 2014-07-22 Pedro Alves <palves@redhat.com>
3761 * value.c (allocate_optimized_out_value): Don't mark value as
3764 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3766 * MAINTAINERS (Write After Approval): Update my email address.
3768 2014-07-20 Doug Evans <dje@google.com>
3771 * remote.c (putpkt_binary): Add text to error message.
3773 2014-07-20 Yao Qi <yao@codesourcery.com>
3775 * eval.c: Remove "Chill" from comments.
3776 * gdbtypes.h: Likewise.
3777 * symtab.h: Likewise.
3779 2014-07-20 Yao Qi <yao@codesourcery.com>
3781 * std-operator.def: Update comments to TERNOP_SLICE.
3783 2014-07-20 Yao Qi <yao@codesourcery.com>
3785 * std-operator.def: Remove BINOP_RANGE.
3786 * breakpoint.c (watchpoint_exp_is_const): Update.
3787 * expprint.c (dump_subexp_body_standard): Likewise.
3788 * eval.c (init_array_element): Remove dead code.
3789 (evaluate_subexp_standard): Likewise.
3791 2014-07-20 Yao Qi <yao@codesourcery.com>
3793 * std-operator.def: Remove BINOP_IN.
3794 * breakpoint.c (watchpoint_exp_is_const): Update.
3795 * eval.c (evaluate_subexp_standard): Likewise.
3796 * expprint.c (dump_subexp_body_standard): Likewise.
3798 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3800 * microblaze-tdep.c (microblaze_register_names): Add
3801 the rshr and rslr register names.
3802 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3803 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3804 Use of tdesc_numbered_register. Use of
3805 microblaze_register_g_packet_guesses. Use of
3806 tdesc_use_registers. Use of set_gdbarch_register_type.
3807 (microblaze_register_g_packet_guesses): New.
3808 * microblaze-tdep.h (microblaze_reg_num): Add
3809 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3810 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3811 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3812 * features/microblaze-core.xml: New file.
3813 * features/microblaze-stack-protect.xml: New file.
3814 * features/microblaze-with-stack-protect.c: New file.
3815 * features/microblaze-with-stack-protect.xml: New file.
3816 * features/microblaze.xml: New file.
3817 * features/microblaze.c: New file.
3818 * features/Makefile (microblaze-with-stack-protect): Add
3819 microblaze-with-stack-protect microblaze and microblaze-expedite.
3820 * regformats/microblaze-with-stack-protect.dat: New file.
3821 * regformats/microblaze.dat: New file.
3822 * doc/gdb.texinfo (MicroBlaze Features): Added.
3824 2014-07-18 Tom Tromey <tromey@redhat.com>
3826 * exec.c (exec_ops): Now static.
3827 * exec.h (exec_ops): Don't declare.
3829 2014-07-18 Tom Tromey <tromey@redhat.com>
3831 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3832 to find_target_beneath.
3833 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3834 find_target_beneath.
3835 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3837 2014-07-18 Tom Tromey <tromey@redhat.com>
3840 * utils.c (quit): Use target_supports_terminal_ours.
3841 * target.h (target_supports_terminal_ours): Declare.
3842 * target.c (target_supports_delete_record): Don't check
3843 to_delete_record against NULL.
3844 (target_supports_terminal_ours): New function.
3846 2014-07-18 Tom Tromey <tromey@redhat.com>
3849 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3850 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3851 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3852 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3853 * windows-nat.c (windows_xfer_partial): Always delegate.
3854 * record-btrace.c (record_btrace_xfer_partial): Simplify
3856 (record_btrace_fetch_registers, record_btrace_store_registers)
3857 (record_btrace_prepare_to_store, record_btrace_resume)
3858 (record_btrace_wait, record_btrace_find_new_threads)
3859 (record_btrace_thread_alive): Likewise.
3860 * procfs.c (procfs_xfer_partial): Always delegate.
3861 * corelow.c (core_xfer_partial): Always delegate.
3862 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3864 2014-07-18 Tom Tromey <tromey@redhat.com>
3866 * exec.c (exec_make_note_section): Move earlier.
3868 2014-07-17 Doug Evans <dje@google.com>
3871 * maint.c (count_symtabs_and_blocks): Handle NULL
3872 current_program_space.
3873 (report_command_stats): Check global enabled flag in addition to
3874 recorded enabled flag.
3875 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3877 2014-07-16 Pedro Alves <palves@redhat.com>
3879 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3881 2014-07-16 Tom Tromey <tromey@redhat.com>
3883 * target.h (struct target_ops) <to_delete_record>: Reformat
3886 2014-07-16 Tom Tromey <tromey@redhat.com>
3888 * target-delegates.c: Rebuild.
3890 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3892 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3893 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3894 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3895 (avr_pointer_to_address): Likewise.
3896 (avr_address_class_type_flags): New function.
3897 (avr_address_class_type_flags_to_name): Likewise.
3898 (avr_address_class_name_to_type_flags): Likewise.
3899 (avr_gdbarch_init): Set address_class_type_flags,
3900 address_class_type_flags_to_name and
3901 address_class_name_to_type_flags.
3903 2014-07-15 Pedro Alves <palves@redhat.com>
3905 * linux-nat.c (kill_callback): Save errno and work with saved
3908 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3910 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3912 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3914 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3915 breakpoint support correctly.
3917 2014-07-14 Pedro Alves <palves@redhat.com>
3919 * utils.c (prompt_for_continue): Call target_terminal_ours.
3921 2014-07-14 Pedro Alves <palves@redhat.com>
3923 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3924 catch_errors. Don't re-enable stdin or notify observers where,
3926 (fetch_inferior_event_wrapper): Delete.
3928 2014-07-14 Pedro Alves <palves@redhat.com>
3931 * top.c: Include "inf-loop.h".
3932 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3934 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3936 (gdb_readline_wrapper): Store whether the target is async, and
3939 2014-07-14 Pedro Alves <palves@redhat.com>
3942 * top.c (gdb_readline_wrapper_line): Tweak comment.
3943 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3944 the input handler callback.
3946 2014-07-14 Pedro Alves <palves@redhat.com>
3949 * main.c: Include event-top.h.
3950 (handle_command_errors): New function.
3951 (catch_command_errors, catch_command_errors_const): Use it.
3953 2014-07-14 Pedro Alves <palves@redhat.com>
3955 * exceptions.c (catch_command_errors, catch_command_errors_const):
3957 * exceptions.h (catch_command_errors_ftype)
3958 (catch_command_errors_const_ftype): Moved to main.c.
3959 (catch_command_errors, catch_command_errors_const): Delete
3961 * main.c (catch_command_errors_ftype)
3962 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3963 (catch_command_errors, catch_command_errors_const)): Moved here
3964 from exceptions.c and make static.
3966 2014-07-14 Pedro Alves <palves@redhat.com>
3968 * exceptions.c (print_any_exception): Delete.
3969 (catch_exceptions_with_msg): Use exception_print instead of
3970 print_any_exception.
3971 (catch_errors): Use exception_fprintf instead of
3972 print_any_exception.
3973 (catch_command_errors, catch_command_errors_const): Use
3974 exception_print instead of print_any_exception.
3976 2014-07-14 Pedro Alves <palves@redhat.com>
3978 * infcall.c (run_inferior_call): Set 'sync_execution' while
3979 running the inferior call.
3981 2014-07-14 Pedro Alves <palves@redhat.com>
3983 * value.c (value_contents_equal): Delete function.
3984 * value.h (value_contents_equal): Delete declaration.
3986 2014-07-14 Tom Tromey <tromey@redhat.com>
3989 * gdbtypes.c (is_dynamic_type_internal): New function, from
3991 (is_dynamic_type): Rewrite.
3992 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3993 (resolve_dynamic_struct): Likewise.
3994 (resolve_dynamic_type_internal): New function, from
3995 resolve_dynamic_type.
3996 (resolve_dynamic_type): Rewrite.
3998 2014-07-14 Tom Tromey <tromey@redhat.com>
4000 * target.c (target_require_runnable): Also check record_stratum.
4003 2014-07-11 Yao Qi <yao@codesourcery.com>
4005 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4006 thumb_instruction_restores_sp return true.
4008 2014-07-11 Yao Qi <yao@codesourcery.com>
4010 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4011 (thumb_in_function_epilogue_p): Call
4012 thumb_instruction_restores_sp.
4014 2014-07-11 Yao Qi <yao@codesourcery.com>
4016 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4018 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4020 2014-07-11 Gary Benson <gbenson@redhat.com>
4022 * amd64-linux-nat.c (gdbcore.h): Remove include.
4023 (regset.h): Likewise.
4024 (nat/linux-btrace.h): Likewise.
4025 (btrace.h): Likewise.
4026 (gdb_assert.h): Likewise.
4027 (string.h): Likewise.
4028 (sys/uio.h): Likewise.
4029 (sys/debugreg.h): Likewise.
4030 (sys/syscall.h): Likewise.
4031 (sys/procfs.h): Likewise.
4032 (sys/user.h): Likewise.
4033 (asm/ptrace.h): Likewise.
4034 (i386-nat.h): Likewise.
4035 * i386-linux-nat.c (i386-nat.h): Likewise.
4036 (regset.h): Likewise.
4037 (target.h): Likewise.
4038 (linux-nat.h): Likewise.
4039 (nat/linux-btrace.h): Likewise.
4040 (btrace.h): Likewise.
4041 (gdb_assert.h): Likewise.
4042 (string.h): Likewise.
4043 (sys/uio.h): Likewise.
4044 (sys/user.h): Likewise.
4045 (sys/procfs.h): Likewise.
4046 (sys/reg.h): Likewise.
4047 (sys/debugreg.h): Likewise.
4048 (ORIG_EAX): Remove definition.
4050 2014-07-11 Gary Benson <gbenson@redhat.com>
4052 * i386-linux-nat.h: New file.
4053 * x86-linux-nat.h: Likewise.
4054 * x86-linux-nat.c: Likewise.
4055 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4056 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4057 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4058 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4059 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4060 (PTRACE_SETREGSET): Likewise.
4061 (arch_lwp_info): Now in x86-linux-nat.c.
4062 (have_ptrace_getregset): Now in x86-linux-nat.h.
4063 (x86_linux_dr_get): Now in x86-linux-nat.c.
4064 (x86_linux_dr_set): Likewise.
4065 (x86_linux_dr_get_addr): Likewise.
4066 (x86_linux_dr_get_control): Likewise.
4067 (x86_linux_dr_get_status): Likewise.
4068 (update_debug_registers_callback): Likewise.
4069 (x86_linux_dr_set_control): Likewise.
4070 (x86_linux_dr_set_addr): Likewise.
4071 (x86_linux_prepare_to_resume): Likewise.
4072 (x86_linux_new_thread): Likewise.
4073 (x86_linux_new_fork): Likewise.
4074 (x86_linux_get_thread_area): Likewise.
4075 (super_post_startup_inferior): Likewise.
4076 (x86_linux_child_post_startup_inferior): Likewise.
4077 (AMD64_LINUX_USER64_CS): Likewise.
4078 (AMD64_LINUX_X32_DS): Likewise.
4079 (x86_linux_read_description): Likewise.
4080 (x86_linux_enable_btrace): Likewise.
4081 (x86_linux_disable_btrace): Likewise.
4082 (x86_linux_teardown_btrace): Likewise.
4083 (x86_linux_read_btrace): Likewise.
4084 (x86_linux_create_target): Likewise.
4085 (x86_linux_add_target): Likewise.
4086 * i386-linux-nat.c (x86-linux-nat.h): New include.
4087 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4088 (PTRACE_SETREGSET): Likewise.
4089 (arch_lwp_info): Now in x86-linux-nat.c.
4090 (have_ptrace_getregset): Now in x86-linux-nat.h.
4091 (x86_linux_dr_get): Now in x86-linux-nat.c.
4092 (x86_linux_dr_set): Likewise.
4093 (x86_linux_dr_get_addr): Likewise.
4094 (x86_linux_dr_get_control): Likewise.
4095 (x86_linux_dr_get_status): Likewise.
4096 (update_debug_registers_callback): Likewise.
4097 (x86_linux_dr_set_control): Likewise.
4098 (x86_linux_dr_set_addr): Likewise.
4099 (x86_linux_prepare_to_resume): Likewise.
4100 (x86_linux_new_thread): Likewise.
4101 (x86_linux_new_fork): Likewise.
4102 (x86_linux_get_thread_area): Likewise.
4103 (super_post_startup_inferior): Likewise.
4104 (x86_linux_child_post_startup_inferior): Likewise.
4105 (AMD64_LINUX_USER64_CS): Likewise.
4106 (AMD64_LINUX_X32_DS): Likewise.
4107 (x86_linux_read_description): Likewise.
4108 (x86_linux_enable_btrace): Likewise.
4109 (x86_linux_disable_btrace): Likewise.
4110 (x86_linux_teardown_btrace): Likewise.
4111 (x86_linux_read_btrace): Likewise.
4112 (x86_linux_create_target): Likewise.
4113 (x86_linux_add_target): Likewise.
4115 2014-07-11 Gary Benson <gbenson@redhat.com>
4117 * amd64-linux-nat.c: Comment and whitespace changes.
4118 * i386-linux-nat.c: Comment and whitespace changes.
4120 2014-07-11 Gary Benson <gbenson@redhat.com>
4122 * amd64-linux-nat.c (x86_linux_create_target): New function.
4123 (x86_linux_add_target): Likewise.
4124 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4125 * i386-linux-nat.c (x86_linux_create_target): New function.
4126 (x86_linux_add_target): Likewise.
4127 (_initialize_i386_linux_nat): Delegate to the above new functions.
4129 2014-07-11 Gary Benson <gbenson@redhat.com>
4131 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4132 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4133 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4134 (ps_get_thread_area): Delegate to the above.
4136 2014-07-11 Gary Benson <gbenson@redhat.com>
4138 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4139 x86_linux_read_description. All uses updated. amd64-specific
4140 code conditionalized. Conditionalized i386-specific code added.
4141 Redundant cast removed.
4142 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4143 x86_linux_read_description. All uses updated. i386-specific
4144 code conditionalized. Conditionalized amd64-specific code added.
4145 One sizeof replaced with the actual type it is describing.
4147 2014-07-11 Gary Benson <gbenson@redhat.com>
4149 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4150 x86_linux_dr_get. All uses updated.
4151 (amd64_linux_dr_set): Renamed to
4152 x86_linux_dr_set. All uses updated.
4153 (amd64_linux_dr_get_addr): Renamed to
4154 x86_linux_dr_get_addr. All uses updated.
4155 (amd64_linux_dr_get_control): Renamed to
4156 x86_linux_dr_get_control. All uses updated.
4157 (amd64_linux_dr_get_status): Renamed to
4158 x86_linux_dr_get_status. All uses updated.
4159 (amd64_linux_dr_set_control): Renamed to
4160 x86_linux_dr_set_control. All uses updated.
4161 (amd64_linux_dr_set_addr): Renamed to
4162 x86_linux_dr_set_addr. All uses updated.
4163 (amd64_linux_prepare_to_resume): Renamed to
4164 x86_linux_prepare_to_resume. All uses updated.
4165 (amd64_linux_new_thread): Renamed to
4166 x86_linux_new_thread. All uses updated.
4167 (amd64_linux_new_fork): Renamed to
4168 x86_linux_new_fork. All uses updated.
4169 (amd64_linux_child_post_startup_inferior): Renamed to
4170 x86_linux_child_post_startup_inferior. All uses updated.
4171 (amd64_linux_enable_btrace): Renamed to
4172 x86_linux_enable_btrace. All uses updated.
4173 (amd64_linux_disable_btrace): Renamed to
4174 x86_linux_disable_btrace. All uses updated.
4175 (amd64_linux_teardown_btrace): Renamed to
4176 x86_linux_teardown_btrace. All uses updated.
4177 (amd64_linux_read_btrace): Renamed to
4178 x86_linux_read_btrace. All uses updated.
4179 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4180 x86_linux_dr_get. All uses updated.
4181 (i386_linux_dr_set): Renamed to
4182 x86_linux_dr_set. All uses updated.
4183 (i386_linux_dr_get_addr): Renamed to
4184 x86_linux_dr_get_addr. All uses updated.
4185 (i386_linux_dr_get_control): Renamed to
4186 x86_linux_dr_get_control. All uses updated.
4187 (i386_linux_dr_get_status): Renamed to
4188 x86_linux_dr_get_status. All uses updated.
4189 (i386_linux_dr_set_control): Renamed to
4190 x86_linux_dr_set_control. All uses updated.
4191 (i386_linux_dr_set_addr): Renamed to
4192 x86_linux_dr_set_addr. All uses updated.
4193 (i386_linux_prepare_to_resume): Renamed to
4194 x86_linux_prepare_to_resume. All uses updated.
4195 (i386_linux_new_thread): Renamed to
4196 x86_linux_new_thread. All uses updated.
4197 (i386_linux_new_fork): Renamed to
4198 x86_linux_new_fork. All uses updated.
4199 (i386_linux_child_post_startup_inferior): Renamed to
4200 x86_linux_child_post_startup_inferior. All uses updated.
4201 (i386_linux_enable_btrace): Renamed to
4202 x86_linux_enable_btrace. All uses updated.
4203 (i386_linux_disable_btrace): Renamed to
4204 x86_linux_disable_btrace. All uses updated.
4205 (i386_linux_teardown_btrace): Renamed to
4206 x86_linux_teardown_btrace. All uses updated.
4207 (i386_linux_read_btrace): Renamed to
4208 x86_linux_read_btrace. All uses updated.
4210 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4212 * remote.c (extended_remote_post_attach): New function.
4213 (init_extended_remote_ops): Install it as to_post_attach method.
4215 2014-07-09 Pedro Alves <palves@redhat.com>
4217 * infcmd.c (attach_command_post_wait): Don't call
4218 target_terminal_inferior here.
4219 (attach_command): Call it here instead.
4221 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4223 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4225 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4226 from varobj.c, with additional checks.
4227 (c_varobj_ops): Fill in is_path_expr_parent field.
4228 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4229 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4231 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4233 (varobj_default_is_path_expr_parent): New function.
4234 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4235 (varobj_default_is_path_expr_parent): Declare new function.
4237 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4239 * infcmd.c (finish_backward): Turn internal error into normal error.
4241 2014-07-07 Pedro Alves <palves@redhat.com>
4244 * remote.c (async_handle_remote_sigint)
4245 (async_handle_remote_sigint_twice): Call
4246 gdb_call_async_signal_handler instead of
4247 mark_async_signal_handler.
4249 2014-07-07 Tom Tromey <tromey@redhat.com>
4251 * target-delegates.c: Rebuild.
4252 * target.c (target_info_record): Remove.
4253 * record.c (info_record_command): Unconditionally call
4255 * target.h (struct target_ops) <to_info_record>: Use
4256 TARGET_DEFAULT_IGNORE.
4257 (target_info_record): Remove.
4259 2014-07-07 Tom Tromey <tromey@redhat.com>
4261 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4262 TARGET_DEFAULT_NORETURN.
4263 * target.c (generic_tls_error): New function.
4264 (target_translate_tls_address): Don't search target stack.
4265 * target-delegates.c: Rebuild.
4266 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4268 * linux-thread-db.c (thread_db_get_thread_local_address):
4269 Unconditionally call beneath target.
4271 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4273 * cli/cli-logging.c (pop_output_files): Assign targerr to
4276 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4278 * MAINTAINERS (Write After Approval): Update my email address.
4280 2014-07-02 Gary Benson <gbenson@redhat.com>
4282 * proc-service.c (ps_xfer_memory): Update comment.
4283 (ps_pstop): Remove unused function.
4284 (ps_pcontinue): Likewise.
4285 (ps_lstop): Likewise.
4286 (ps_lcontinue): Likewise.
4287 (ps_lgetxregsize): Likewise.
4288 (ps_lgetxregs): Likewise.
4289 (ps_lsetxregs): Likewise.
4290 (ps_plog): Likewise.
4291 (ps_ptread): Likewise.
4292 (ps_ptwrite): Likewise.
4294 2014-07-01 Mark Wielaard <mjw@redhat.com>
4296 * dwarf2read.c (add_array_cv_type): New function.
4297 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4298 (read_tag_volatile_type): Likewise.
4300 2014-07-01 Tom Tromey <tromey@redhat.com>
4302 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4303 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4304 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4305 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4306 * command.h (cmd_cfunc_ftype): Move earlier.
4307 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4308 (add_com, add_info): Use cmd_cfunc_ftype.
4310 2014-06-30 Tom Tromey <tromey@redhat.com>
4312 * symtab.c (operator_chars): Make parameters and return type
4314 (file_matches): Make "files" const.
4315 (struct search_symbols_data) <files>: Now const.
4316 (search_symbols): Make "regexp" and "files" parameters const.
4318 (symtab_symbol_info): Remove cast.
4319 (rbreak_command): Update.
4320 * symtab.h (search_symbols): Update.
4322 2014-06-27 Yao Qi <yao@codesourcery.com>
4324 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4325 Change parameter type to 'struct thread_info *'. Caller
4327 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4329 * dummy-frame.c (struct dummy_frame_id): New.
4330 (dummy_frame_id_eq): New function.
4331 (struct dummy_frame) <id>: Change its type to 'struct
4333 (dummy_frame_push): Add parameter ptid and save it in
4335 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4337 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4339 (lookup_dummy_frame): Change parameter type to 'struct
4340 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4341 instead of frame_id_eq.
4342 (dummy_frame_pop): Add parameter ptid. Callers updated.
4343 Update comments. Compose dummy_frame_id and pass it to
4345 (dummy_frame_discard): Add parameter ptid.
4346 (dummy_frame_sniffer): Compose dummy_frame_id and call
4347 dummy_frame_id_eq instead of frame_id_eq.
4348 (fprint_dummy_frames): Print ptid.
4349 * dummy-frame.h: Remove comments.
4350 (dummy_frame_push): Add ptid in declaration.
4351 (dummy_frame_pop, dummy_frame_discard): Likewise.
4353 2014-06-26 Tom Tromey <tromey@redhat.com>
4355 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4356 * command.h (error_no_arg): Update.
4358 2014-06-26 Tom Tromey <tromey@redhat.com>
4360 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4361 (do_show_command): Make "arg" const.
4362 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4364 2014-06-26 Tom Tromey <tromey@redhat.com>
4366 * record-full.c (record_full_get_bookmark): Make "args" const.
4367 (record_full_goto_bookmark): Make "raw_bookmark" const.
4368 * record.c (record_goto): New function.
4369 (cmd_record_goto): Use it. Now static.
4370 * record.h (record_goto): Declare.
4371 (cmd_record_goto): Remove declaration.
4372 * target-delegates.c: Rebuild.
4373 * target.h (struct target_ops) <to_get_bookmark,
4374 to_goto_bookmark>: Make parameter const.
4376 2014-06-26 Tom Tromey <tromey@redhat.com>
4378 * defs.h (generic_load): Update.
4379 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4380 * monitor.c (monitor_load): Make "args" const.
4381 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4382 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4384 (mips_load): Make "file" const.
4385 * remote-sim.c (gdbsim_load): Make "args" const.
4386 * remote.c (remote_load): Make "name" const.
4387 * symfile.c (generic_load): Make "args" const.
4388 * target-delegates.c: Rebuild.
4389 * target.c (target_load): Make "arg" const.
4390 (debug_to_load): Make "args" const.
4391 * target.h (struct target_ops) <to_load>: Make parameter const.
4392 (target_load): Update.
4394 2014-06-26 Tom Tromey <tromey@redhat.com>
4397 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4398 (dwarf2_physname, read_partial_die)
4399 (guess_partial_die_structure_name, fixup_partial_die)
4400 (guess_full_die_structure_name, anonymous_struct_prefix)
4401 (dwarf2_name): Use per-BFD obstack.
4403 2014-06-26 Yao Qi <yao@codesourcery.com>
4405 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4406 dummyframe and this_id into inner block below.
4408 2014-06-26 Yao Qi <yao@codesourcery.com>
4410 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4411 with "signal_pass[0]" in the initialization of signal_pass.
4413 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4415 * record-btrace.c (record_btrace_generating_corefile)
4416 (record_btrace_prepare_to_generate_core)
4417 (record_btrace_done_generating_core): New.
4418 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4419 (record_btrace_store_registers, record_btrace_prepare_to_store):
4420 Forward request when generating a core file.
4421 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4422 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4423 to_done_generating_core.
4425 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4427 * target.h (target_ops) <to_prepare_to_generate_core>
4428 <to_done_generating_core>: New.
4429 (target_prepare_to_generate_core, target_done_generating_core): New.
4430 * target.c (target_prepare_to_generate_core)
4431 (target_done_generating_core): New.
4432 * target-delegates.c: Regenerate.
4433 * gcore.c: (write_gcore_file): Rename to ...
4434 (write_gcore_file_1): ...this.
4435 (write_gcore_file): Call target_prepare_to_generate_core
4436 and target_done_generating_core.
4438 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4440 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4441 * gcore.c (write_gcore_file): Free memory returned from
4442 make_corefile_notes.
4443 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4444 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4446 2014-06-24 Yao Qi <yao@codesourcery.com>
4448 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4449 (arm_linux_init_abi): Set skip_trampoline_code with
4450 gdbarch_skip_trampoline_code instead of
4451 find_solib_trampoline_target.
4453 2014-06-24 Yao Qi <yao@codesourcery.com>
4455 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4456 arm_skip_bx_reg returns non-zero.
4458 2014-06-24 Yao Qi <yao@codesourcery.com>
4460 * arm-tdep.c (arm_skip_bx_reg): New function.
4461 (arm_skip_stub): Call arm_skip_bx_reg.
4463 2014-06-23 Don Breazeal <donb@codesourcery.com>
4465 * MAINTAINERS: Add myself as write-after-approval maintainer.
4467 2014-06-23 Pedro Alves <palves@redhat.com>
4469 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4470 DR_CONTROL before setting DR0..DR3.
4471 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4472 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4473 bits of DR_CONTROL related to the debug register slot being
4474 disabled. If all slots are vacant, clear local slowdown as well,
4475 and assert DR_CONTROL is 0.
4477 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4479 * python/lib/gdb/command/xmethods.py
4480 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4481 current progspace only if the string "progspace" matches LOCUS_RE.
4483 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4485 Fix --with-system-readline with readline-6.3 patch 5.
4486 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4487 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4490 2014-06-20 Tom Tromey <tromey@redhat.com>
4492 * dwarf2read.c (dw2_get_real_path): Use correct type in
4494 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4496 2014-06-20 Gary Benson <gbenson@redhat.com>
4498 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4499 * common/glibc_thread_db.h: Likewise.
4500 * common/i386-cpuid.h: Likewise.
4501 * common/i386-gcc-cpuid.h: Likewise.
4502 * common/linux-btrace.h: Likewise.
4503 * common/linux-osdata.h: Likewise.
4504 * common/linux-procfs.h: Likewise.
4505 * common/linux-ptrace.h: Likewise.
4506 * common/mips-linux-watch.h: Likewise.
4507 * common/linux-btrace.c: Moved to nat.
4508 * common/linux-osdata.c: Likewise.
4509 * common/linux-procfs.c: Likewise.
4510 * common/linux-ptrace.c: Likewise.
4511 * common/mips-linux-watch.c: Likewise.
4512 * nat/gdb_thread_db.h: Moved from common.
4513 * nat/glibc_thread_db.h: Likewise.
4514 * nat/i386-cpuid.h: Likewise.
4515 * nat/i386-gcc-cpuid.h: Likewise.
4516 * nat/linux-btrace.c: Likewise.
4517 * nat/linux-btrace.h: Likewise.
4518 * nat/linux-osdata.c: Likewise.
4519 * nat/linux-osdata.h: Likewise.
4520 * nat/linux-procfs.c: Likewise.
4521 * nat/linux-procfs.h: Likewise.
4522 * nat/linux-ptrace.c: Likewise.
4523 * nat/linux-ptrace.h: Likewise.
4524 * nat/mips-linux-watch.c: Likewise.
4525 * nat/mips-linux-watch.h: Likewise.
4526 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4527 (object file files): Reordered.
4528 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4529 of glibc_thread_db.h.
4531 2014-06-20 Gary Benson <gbenson@redhat.com>
4533 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4534 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4535 (i386_dr_low): Likewise.
4536 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4537 (i386_dr_low_set_addr): Likewise.
4538 (i386_dr_low_get_addr): Likewise.
4539 (i386_dr_low_can_set_control): Likewise.
4540 (i386_dr_low_set_control): Likewise.
4541 (i386_dr_low_get_control): Likewise.
4542 (i386_dr_low_get_status): Likewise.
4543 (i386_get_debug_register_length): Likewise.
4544 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4545 (i386_dr_low): Likewise.
4546 * nat/i386-dregs.c (i386-low.h): Remove include.
4547 (i386-nat.h): Likewise.
4548 (nat/i386-dregs.h): New include.
4549 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4550 (i386_dr_low_set_addr): Likewise.
4551 (i386_dr_low_get_addr): Likewise.
4552 (i386_dr_low_can_set_control): Likewise.
4553 (i386_dr_low_set_control): Likewise.
4554 (i386_dr_low_get_control): Likewise.
4555 (i386_dr_low_get_status): Likewise.
4556 (i386_get_debug_register_length): Likewise.
4557 (debug_hw_points): Likewise.
4559 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4561 * Makefile.in (SFILES): Add d-exp.y.
4562 (YYFILES): Add d-exp.c.
4563 (YYOBJ): Add d-exp.o.
4564 (local-maintainer-clean): Delete d-exp.c.
4565 * d-exp.y: New file.
4566 * d-lang.h (d_parse): New declaration.
4567 (d_error): New declaration.
4568 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4569 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4570 PREC_ORDER operators.
4571 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4573 2014-06-19 Yao Qi <yao@codesourcery.com>
4575 * gdbthread.h (any_running): Remove the declaration.
4576 * thread.c (any_running): Remove.
4578 2014-06-19 Yao Qi <yao@codesourcery.com>
4580 * gdbthread.h (struct thread_info) <state>: Change its type to
4581 'enum thread_state'. Update comments.
4583 2014-06-19 Pedro Alves <palves@redhat.com>
4585 * gdbthread.h (ALL_THREADS): Delete.
4586 (ALL_NON_EXITED_THREADS): New macro.
4587 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4588 instead of ALL_THREADS.
4589 * infrun.c (find_thread_needs_step_over)
4590 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4591 instead of ALL_THREADS.
4592 * record-btrace.c (record_btrace_open)
4593 (record_btrace_stop_recording, record_btrace_close)
4594 (record_btrace_is_replaying, record_btrace_resume)
4595 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4596 * remote.c (append_pending_thread_resumptions): Likewise.
4597 * thread.c (thread_apply_all_command): Likewise.
4599 2014-06-19 Gary Benson <gbenson@redhat.com>
4601 * i386-nat.c (i386_stopped_by_watchpoint):
4602 Use i386_dr_stopped_by_watchpoint.
4603 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4604 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4606 2014-06-19 Gary Benson <gbenson@redhat.com>
4608 * nat/i386-dregs.c: New file.
4609 * Makefile.in (i386-dregs.o): New rule.
4610 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4611 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4612 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4613 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4614 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4615 * config/i386/go32.mh (NATDEPFILES): Likewise.
4616 * config/i386/linux.mh (NATDEPFILES): Likewise.
4617 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4618 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4619 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4620 * i386-nat.h (debug_hw_points): New declaration.
4621 * i386-nat.c (breakpoint.h): Remove include.
4622 (command.h): Likewise.
4623 (target.h): Likewise.
4624 (gdb_assert.h): Likewise.
4625 (debug_hw_points): Made nonstatic.
4626 (debug_printf): Now in i386-dregs.c.
4627 (TARGET_HAS_DR_LEN_8): Likewise.
4628 (DR_CONTROL_SHIFT): Likewise.
4629 (DR_CONTROL_SIZE): Likewise.
4630 (DR_RW_EXECUTE): Likewise.
4631 (DR_RW_WRITE): Likewise.
4632 (DR_RW_READ): Likewise.
4633 (DR_RW_IORW): Likewise.
4634 (DR_LEN_1): Likewise.
4635 (DR_LEN_2): Likewise.
4636 (DR_LEN_4): Likewise.
4637 (DR_LEN_8): Likewise.
4638 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4639 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4640 (DR_ENABLE_SIZE): Likewise.
4641 (DR_LOCAL_SLOWDOWN): Likewise.
4642 (DR_GLOBAL_SLOWDOWN): Likewise.
4643 (DR_CONTROL_RESERVED): Likewise.
4644 (I386_DR_CONTROL_MASK): Likewise.
4645 (I386_DR_VACANT): Likewise.
4646 (I386_DR_LOCAL_ENABLE): Likewise.
4647 (I386_DR_GLOBAL_ENABLE): Likewise.
4648 (I386_DR_DISABLE): Likewise.
4649 (I386_DR_SET_RW_LEN): Likewise.
4650 (I386_DR_GET_RW_LEN): Likewise.
4651 (I386_DR_WATCH_HIT): Likewise.
4652 (i386_wp_op_t): Likewise.
4653 (i386_show_dr): Likewise.
4654 (i386_length_and_rw_bits): Likewise.
4655 (i386_insert_aligned_watchpoint): Likewise.
4656 (i386_remove_aligned_watchpoint): Likewise.
4657 (i386_handle_nonaligned_watchpoint): Likewise.
4658 (i386_update_inferior_debug_regs): Likewise.
4659 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4660 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4661 (i386_region_ok_for_watchpoint):
4662 Use i386_dr_region_ok_for_watchpoint.
4663 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4665 2014-06-19 Gary Benson <gbenson@redhat.com>
4667 * i386-nat.c (i386_insert_hw_breakpoint): Use
4668 i386_insert_watchpoint.
4669 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4671 2014-06-19 Gary Benson <gbenson@redhat.com>
4673 * i386-nat.c (i386_dr_show): Renamed to
4674 i386_show_dr and made static. All uses updated.
4675 (i386_dr_length_and_rw_bits): Renamed to
4676 i386_length_and_rw_bits and made static.
4678 (i386_dr_insert_aligned_watchpoint): Renamed to
4679 i386_insert_aligned_watchpoint and made static.
4681 (i386_dr_remove_aligned_watchpoint): Renamed to
4682 i386_remove_aligned_watchpoint and made static.
4684 (i386_dr_update_inferior_debug_regs): Renamed to
4685 i386_update_inferior_debug_regs and made static.
4687 * nat/i386-dregs.h (i386_dr_show): Removed.
4688 (i386_dr_length_and_rw_bits): Likewise.
4689 (i386_dr_insert_aligned_watchpoint): Likewise.
4690 (i386_dr_remove_aligned_watchpoint): Likewise.
4691 (i386_dr_update_inferior_debug_regs): Likewise.
4693 2014-06-19 Gary Benson <gbenson@redhat.com>
4695 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4696 * configure: Regenerate.
4697 * config.in: Likewise.
4698 * main.c (signal.h): New include.
4699 (setup_alternate_signal_stack): New function.
4700 (captured_main): Call the above.
4701 * cp-support.c (signal.h): New include.
4702 (catch_demangler_crashes): New flag.
4703 (SIGJMP_BUF): New define.
4704 (SIGSETJMP): Likewise.
4705 (SIGLONGJMP): Likewise.
4706 (gdb_demangle_jmp_buf): New static global.
4707 (gdb_demangle_attempt_core_dump): Likewise.
4708 (gdb_demangle_signal_handler): New function.
4709 (gdb_demangle): If catch_demangler_crashes is set, install the
4710 above signal handler before calling bfd_demangle, and restore
4711 the original signal handler afterwards. Display the offending
4712 symbol and call demangler_warning the first time a segmentation
4714 (_initialize_cp_support): New maint set/show command.
4716 2014-06-19 Gary Benson <gbenson@redhat.com>
4718 * utils.h (resource_limit_kind): New enum.
4719 (can_dump_core): New declaration.
4720 (warn_cant_dump_core): Likewise.
4721 (dump_core): Likewise.
4722 * utils.c (dump_core): Made nonstatic. Added new
4723 parameter "limit_kind".
4724 (can_dump_core): Made nonstatic. Moved printing code to...
4725 (warn_cant_dump_core): New function.
4726 (can_dump_core_warn): Likewise.
4727 (internal_vproblem): Replace calls to can_dump_core with
4728 calls to can_dump_core_warn. Supply new argument to each.
4730 2014-06-19 Gary Benson <gbenson@redhat.com>
4732 * utils.h (demangler_vwarning): New declaration.
4733 (demangler_warning): Likewise.
4734 * utils.c (struct internal_problem)
4735 <user_settable_should_quit>: New field.
4736 <user_settable_should_dump_core>: Likewise
4737 (internal_error_problem): Add values for above new fields.
4738 (internal_warning_problem): Likewise.
4739 (demangler_warning_problem): New static global.
4740 (demangler_vwarning): New function.
4741 (demangler_warning): Likewise.
4742 (add_internal_problem_command): Selectively add commands.
4743 (_initialize_utils): New internal problem command.
4744 * maint.c (maintenance_demangler_warning): New function.
4745 (_initialize_maint_cmds): New command.
4747 2014-06-18 Tom Tromey <tromey@redhat.com>
4749 * f-valprint.c (info_common_command_for_block): Update.
4750 * symtab.h (struct general_symbol_info) <common_block>: Now
4753 2014-06-18 Tom Tromey <tromey@redhat.com>
4755 * symtab.h (struct symtab) <blockvector>: Now const.
4756 * ada-lang.c (ada_add_global_exceptions): Update.
4757 * buildsym.c (augment_type_symtab): Update.
4758 * dwarf2read.c (dw2_lookup_symbol): Update.
4759 * jit.c (finalize_symtab): Update.
4760 * jv-lang.c (add_class_symtab_symbol): Update.
4761 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4763 * objfiles.c (objfile_relocate1): Update.
4764 * psymtab.c (lookup_symbol_aux_psymtabs)
4765 (maintenance_check_psymtabs): Update.
4766 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4768 * spu-tdep.c (spu_catch_start): Update.
4769 * symmisc.c (dump_symtab_1): Update.
4770 * symtab.c (lookup_global_symbol_from_objfile)
4771 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4772 (basic_lookup_transparent_type_quick)
4773 (basic_lookup_transparent_type, find_pc_sect_symtab)
4774 (find_pc_sect_line, search_symbols): Update.
4775 * block.c (find_block_in_blockvector): Make "bl" const.
4776 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4778 (blockvector_contains_pc): Make "bv" const.
4779 (block_for_pc_sect): Update.
4780 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4781 (blockvector_contains_pc): Update.
4782 * breakpoint.c (resolve_sal_pc): Update.
4783 * inline-frame.c (block_starting_point_at): Update.
4785 2014-06-18 Tom Tromey <tromey@redhat.com>
4787 * completer.c (complete_line): Make "line_buffer" const.
4788 * completer.h (complete_line): Update.
4790 2014-06-18 Tom Tromey <tromey@redhat.com>
4792 * symtab.c (add_macro_name): Remove unneeded cast.
4794 2014-06-18 Tom Tromey <tromey@redhat.com>
4796 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4797 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4799 2014-06-18 Tom Tromey <tromey@redhat.com>
4801 * probe.c (info_probes_for_ops): Make "arg" const.
4802 * probe.h (info_probes_for_ops): Update.
4804 2014-06-18 Tom Tromey <tromey@redhat.com>
4806 * varobj.c (varobj_create): Update.
4807 * valops.c (value_of_this): Update.
4808 * tracepoint.c (add_local_symbols, scope_info): Update.
4809 * symtab.h (struct general_symbol_info) <block>: Now const.
4810 * symtab.c (skip_prologue_sal)
4811 (default_make_symbol_completion_list_break_on)
4812 (skip_prologue_using_sal): Update.
4813 * stack.h (iterate_over_block_locals)
4814 (iterate_over_block_local_vars): Update.
4815 * stack.c (print_frame_args): Update.
4816 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4818 (get_selected_block): Make return type const.
4819 * python/py-frame.c (frapy_block): Update.
4820 * python/py-block.c (gdbpy_block_for_pc): Update.
4821 * p-exp.y (%union) <bval>: Now const.
4822 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4823 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4824 * m2-exp.y (%union) <bval>: Now const.
4825 * linespec.c (get_current_search_block): Make return type const.
4826 (create_sals_line_offset, find_label_symbols): Update.
4827 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4829 (block_starting_point_at): Make "block" const.
4830 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4831 (check_exception_resume): Update.
4832 * guile/scm-frame.c (gdbscm_frame_block): Update.
4833 * guile/scm-block.c (gdbscm_lookup_block): Update.
4834 * frame.h (get_frame_block): Update.
4835 (get_selected_block): Make return type const.
4836 * frame.c (frame_id_inner): Update.
4837 * f-valprint.c (info_common_command_for_block)
4838 (info_common_command): Update.
4839 * dwarf2loc.c (dwarf2_find_location_expression)
4840 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4841 (locexpr_describe_location_piece): Update.
4842 * c-exp.y (%union) <bval>: Now const.
4843 * breakpoint.c (resolve_sal_pc): Update.
4844 * blockframe.c (get_frame_block):Make return type const.
4845 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4846 (block_innermost_frame): Update.
4847 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4848 (block_for_pc, block_for_pc_sect): Update.
4849 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4851 (block_for_pc_sect, block_for_pc): Make return type const.
4852 * ax-gdb.c (gen_expr): Update.
4853 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4854 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4855 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4856 (ada_read_var_value): Update.
4857 * ada-exp.y (struct name_info) <block>: Now const.
4859 (block_lookup): Constify.
4861 2014-06-18 Gary Benson <gbenson@redhat.com>
4863 * nat/i386-dregs.h: New file.
4864 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4865 * i386-nat.h (i386-dregs.h): New include.
4866 (DR_FIRSTADDR): Now in i386-dregs.h.
4867 (DR_LASTADDR): Likewise.
4868 (DR_NADDR): Likewise.
4869 (DR_STATUS): Likewise.
4870 (DR_CONTROL): Likewise.
4871 (i386_debug_reg_state): Likewise.
4872 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4874 2014-06-18 Don Breazeal <donb@codesourcery.com>
4876 * breakpoint.c (set_longjmp_breakpoint): Call
4877 momentary_breakpoint_from_master with additional argument.
4878 (set_longjmp_breakpoint_for_call_dummy): Call
4879 momentary_breakpoint_from_master with additional argument.
4880 (set_std_terminate_breakpoint): Call
4881 momentary_breakpoint_from_master with additional argument.
4882 (momentary_breakpoint_from_master): Add argument to function
4883 definition and use it to initialize structure member flag.
4884 (clone_momentary_breakpoint): Call
4885 momentary_breakpoint_from_master with additional argument.
4886 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4887 member flags set in momentary_breakpoint_from_master.
4889 2014-06-18 Gary Benson <gbenson@redhat.com>
4891 * i386-nat.c (i386_show_dr): Renamed to
4892 i386_dr_show and made nonstatic. All uses updated.
4893 (i386_length_and_rw_bits): Renamed to
4894 i386_dr_length_and_rw_bits and made nonstatic.
4896 (i386_insert_aligned_watchpoint): Renamed to
4897 i386_dr_insert_aligned_watchpoint and made nonstatic.
4899 (i386_remove_aligned_watchpoint): Renamed to
4900 i386_dr_remove_aligned_watchpoint and made nonstatic.
4902 (i386_update_inferior_debug_regs): Renamed to
4903 i386_dr_update_inferior_debug_regs and made nonstatic.
4906 2014-06-18 Gary Benson <gbenson@redhat.com>
4908 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4909 (i386_dr_low_can_set_control): Likewise.
4910 (i386_dr_low_set_addr): Likewise.
4911 (i386_dr_low_set_control): Likewise.
4912 (i386_dr_low_get_addr): Likewise.
4913 (i386_dr_low_get_status): Likewise.
4914 (i386_dr_low_get_control): Likewise.
4915 (i386_insert_aligned_watchpoint): Use new macros.
4916 (i386_update_inferior_debug_regs): Likewise.
4917 (i386_stopped_data_address): Likewise.
4919 2014-06-18 Gary Benson <gbenson@redhat.com>
4921 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4922 New parameter. All uses updated.
4924 2014-06-18 Gary Benson <gbenson@redhat.com>
4926 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4929 2014-06-18 Gary Benson <gbenson@redhat.com>
4931 * i386-nat.c (debug_printf): New macro.
4932 (i386_get_debug_register_length): Likewise.
4933 (TARGET_HAS_DR_LEN_8): Use above macro.
4934 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4935 and printf_unfiltered. Use phex to format values.
4937 2014-06-18 Gary Benson <gbenson@redhat.com>
4939 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4942 2014-06-18 Gary Benson <gbenson@redhat.com>
4944 * i386-nat.c: Comment changes.
4946 2014-06-18 Gary Benson <gbenson@redhat.com>
4948 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4950 2014-06-18 Gary Benson <gbenson@redhat.com>
4952 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4953 (i386_insert_aligned_watchpoint): Likewise.
4954 (i386_remove_aligned_watchpoint): Likewise.
4955 (i386_handle_nonaligned_watchpoint): Likewise.
4957 2014-06-18 Gary Benson <gbenson@redhat.com>
4959 * i386-nat.c: Whitespace changes.
4961 2014-06-17 Samuel Bronson <naesten@gmail.com>
4963 * MAINTAINERS: Update Roland McGrath's email address.
4964 Thanks to Sergio Durigan Junior for pointing out that he left
4965 Red Hat a while ago, and giving me a current address.
4967 2014-06-17 Tom Tromey <tromey@redhat.com>
4969 * utils.h (savestring): Remove declaration.
4971 2014-06-17 Tom Tromey <tromey@redhat.com>
4973 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4975 2014-06-16 Keith Seitz <keiths@redhat.com>
4978 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4979 to update the varobj if inferior_ptid is null_ptid.
4981 2014-06-16 Tom Tromey <tromey@redhat.com>
4983 * target.h (struct target_ops) <to_info_proc>: Make parameter
4985 (target_info_proc): Update.
4986 * target.c (target_info_proc): Make "args" const.
4987 * procfs.c (procfs_info_proc): Update.
4988 * linux-tdep.c (linux_info_proc): Update.
4989 (linux_core_info_proc_mappings): Make "args" const.
4990 (linux_core_info_proc): Update.
4991 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4992 * gdbarch.c: Rebuild.
4993 * gdbarch.h: Rebuild.
4994 * corelow.c (core_info_proc): Update.
4996 2014-06-16 Tom Tromey <tromey@redhat.com>
4998 * target.h (struct target_ops) <to_disconnect>: Make parameter
5000 (target_disconnect): Update.
5001 * target.c (target_disconnect): Make "args" const.
5002 * target-delegates.c: Rebuild.
5003 * remote.c (remote_disconnect): Update.
5004 * record.h (record_disconnect): Update.
5005 * record.c (record_disconnect): Update.
5006 * inf-child.c (inf_child_disconnect): Update.
5008 2014-06-16 Tom Tromey <tromey@redhat.com>
5010 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5011 * target.c (debug_to_rcmd, default_rcmd): Update.
5012 * target-delegates.c: Rebuild.
5013 * remote.c (remote_rcmd): Update.
5014 * monitor.c (monitor_rcmd): Update.
5016 2014-06-16 Pedro Alves <palves@redhat.com>
5018 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5019 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5020 have OBJF_SHARED set.
5021 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5022 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5023 instead of OBJF_USERLOADED.
5024 * objfiles.h (OBJF_SHARED): Update comment.
5025 (userloaded_objfile_contains_address_p): Rename to ...
5026 (shared_objfile_contains_address_p): ... this, and update
5028 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5030 (remove_symbol_file_command): Skip objfiles that don't have
5033 2014-06-16 Tom Tromey <tromey@redhat.com>
5035 * minsyms.h (prim_record_minimal_symbol)
5036 (prim_record_minimal_symbol_and_info): Update comments.
5038 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5040 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5041 or --without-guile, according to how GDB was built.
5043 2014-06-13 Tom Tromey <tromey@redhat.com>
5045 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5047 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5049 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5051 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5052 help_list.Pass all_commands, not -1, to help_list.
5053 * cli/cli-dump.c (dump_command, append_command)
5054 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5055 (binary_dump_command, binary_append_command): Pass all_commands,
5056 not -1, to help_list.
5057 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5059 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5061 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5063 * top.c (set_history): Pass all_commands, not -1, to help_list.
5064 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5065 all_commands, not -1, to help_list.
5066 * symfile.c (overlay_command): Pass all_commands, not -1, to
5068 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5070 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5072 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5074 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5075 not -1, to help_list.
5076 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5077 not -1, to help_list.
5078 * maint.c (maintenance_command, maintenance_info_command)
5079 (maintenance_print_command, maintenance_set_cmd): Pass
5080 all_commands, not -1, to help_list.
5081 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5083 * language.c (set_check): Pass all_commands, not -1, to help_list.
5084 * infcmd.c (unset_command): Pass all_commands, not -1, to
5086 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5088 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5090 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5092 * breakpoint.c (save_command): Pass all_commands, not -1, to
5094 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5095 all_commands, not -1, to help_list.
5097 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5099 * regcache.c (struct register_to_invalidate): New structure.
5100 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5102 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5104 2014-06-12 Yao Qi <yao@codesourcery.com>
5106 * varobj.c (varobj_get_num_children): Call
5107 varobj_is_dynamic_p.
5108 (varobj_list_children): Likewise.
5109 (varobj_update): Likewise. Update comments.
5111 2014-06-12 Yao Qi <yao@codesourcery.com>
5113 * varobj.c (varobj_pretty_printed_p): Rename to ...
5114 (varobj_is_dynamic_p): ... this. New function.
5115 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5116 (varobj_is_dynamic_p): Declare.
5117 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5118 (mi_print_value_p, varobj_update_one): Likewise.
5120 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5121 Yao Qi <yao@codesourcery.com>
5123 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5124 (varobj_get_iterator): Wrap up code for pretty-printer by
5125 "#if HAVE_PYTHON" and "#endif".
5126 (update_dynamic_varobj_children): Likewise.
5128 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5129 Yao Qi <yao@codesourcery.com>
5131 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5132 gdb_python_initialized is false. Move some code from varobj.c.
5133 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5134 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5135 (struct varobj_item): Moved to varobj-iter.h".
5136 (varobj_clear_saved_item): New function.
5137 (update_dynamic_varobj_children): Move python-related code to
5139 (free_variable): Call varobj_clear_saved_item and
5142 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5143 Yao Qi <yao@codesourcery.com>
5145 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5146 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5147 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5148 (py-varobj.o): New rule.
5149 * python/py-varobj.c: New file.
5150 * python/python-internal.h (py_varobj_get_iterator): Declare.
5151 * varobj-iter.h: New file.
5152 * varobj.c: Include "varobj-iter.h"
5153 (struct varobj) <child_iter>: Change its type from "PyObject *"
5154 to "struct varobj_iter *".
5155 <saved_item>: Likewise.
5156 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5157 [HAVE_PYTHON] (varobj_get_iterator): New function.
5158 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5159 python-specific code to python/py-varobj.c.
5160 (install_visualizer): Call varobj_iter_delete instead of
5162 * varobj.h (varobj_ensure_python_env): Declare.
5164 2014-06-12 Yao Qi <yao@codesourcery.com>
5166 * varobj.c (struct varobj_item): New structure.
5167 (create_child_with_value): Update declaration.
5168 (varobj_add_child): Replace arguments 'name' and 'value' with
5169 'item'. All callers updated.
5170 (install_dynamic_child): Likewise.
5171 (update_dynamic_varobj_children): Likewise.
5172 (varobj_add_child): Likewise.
5173 (create_child_with_value): Likewise.
5175 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5177 * NEWS: Create a new section for the next release branch.
5178 Rename the section of the current branch, now that it has
5181 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5183 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5184 * version.in: Bump version to 7.8.50.DATE-cvs.
5186 2014-06-11 Pedro Alves <palves@redhat.com>
5189 * ser-mingw.c (net_windows_socket_check_pending): New function.
5190 (net_windows_select_thread): Ignore spurious wakeups. Use
5191 net_windows_socket_check_pending.
5192 (net_windows_wait_handle): Check for pending events with
5193 ioctlsocket, through net_windows_socket_check_pending, instead of
5194 checking the socket's event.
5196 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5198 * python/python-internal.h (gdb_PyObject_GetAttrString)
5199 (gdb_PyObject_HasAttrString): New inline function definitions.
5200 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5201 char * of the second argument to PyObject_GetAttrString.
5203 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5205 * serial.c (serial_write): Fix index of character to be printed
5206 in call to serial_logchar when serial debug traces are enabled.
5208 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5210 * gdbtypes (resolve_dynamic_range): Add function description.
5212 2014-06-09 Pedro Alves <palves@redhat.com>
5214 * linux-nat.c (linux_child_follow_fork): Initialize status with
5215 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5216 inner block. Only pass the signal to PTRACE_DETACH if in pass
5219 2014-06-09 Gary Benson <gbenson@redhat.com>
5221 * common/signals.c (gdb_signal_from_host): Reorder to separate
5222 the always-available ANSI-standard signals from the signals that
5224 (do_gdb_signal_to_host): Likewise.
5225 * proc-events.c (signal_table): Likewise.
5227 2014-06-08 Hui Zhu <hui@codesourcery.com>
5229 * common/linux-ptrace.c (linux_disable_event_reporting): New
5231 * common/linux-ptrace.h (linux_disable_event_reporting): New
5233 * linux-nat.c (linux_child_follow_fork): Do a single step before
5236 2014-06-07 Keith Seitz <keiths@redhat.com>
5240 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5241 from symbol_matches_domain in symtab.c. All local callers
5242 of symbol_matches_domain updated.
5243 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5244 search STRUCT_DOMAIN.
5245 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5246 independently. standard_lookup will do that automatically.
5247 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5248 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5249 (cp_lookup_symbol_in_namespace): Likewise.
5250 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5251 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5252 may return a STRUCT_DOMAIN match.
5253 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5254 * cp-support.c: Include language.h.
5255 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5257 * psymtab.c (match_partial_symbol): Compare the requested
5258 domain with the symbol's domain directly.
5259 (lookup_partial_symbol): Likewise.
5260 * symtab.c (lookup_symbol_in_language): Explain when/why
5261 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5262 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5263 appropriate languages.
5264 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5265 and moved to ada-lang.c
5266 (lookup_block_symbol): Explain that this function only returns
5267 symbol matching the requested DOMAIN.
5268 Compare the requested domain with the symbol's domain directly.
5269 (iterate_over_symbols): Compare the requested domain with the
5270 symbol's domain directly.
5271 * symtab.h (symbol_matches_domain): Remove.
5273 2014-06-06 Doug Evans <xdje42@gmail.com>
5275 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5276 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5277 (gdbscm_guile_version_is_at_least): Declare.
5278 (gdbscm_scm_string_to_int): Declare.
5279 * guile/guile.c (gdbscm_guile_major_version): New global.
5280 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5281 (guile_datadir): New static global.
5282 (gdbscm_guile_data_directory): New function.
5283 (initialize_scheme_side): Update.
5284 (misc_guile_functions): Add guile-data-directory.
5285 (initialize_gdb_module): Fetch guile version number.
5286 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5287 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5288 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5289 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5291 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5292 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5293 * guile/scm-value.c (gdbscm_value_to_string): Only call
5294 scm_port_conversion_strategy if Guile version >= 2.0.6.
5296 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5298 * main.c (print_gdb_help): Add -q and --silent.
5300 2014-06-06 Gary Benson <gbenson@redhat.com>
5302 * common/signals.c: Remove preprocessor conditionals for
5303 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5304 SIGSEGV and SIGTERM.
5305 * proc-events.c: Likewise.
5307 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5309 * symfile.c (symfile_free_objfile): Remove restriction to
5311 * symfile-mem.c (symbol_file_add_from_memory): Call
5312 add_target_sections_of_objfile.
5314 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5316 * guile/scm-value.c (gdbscm_history_append_x): Use
5317 'vlscm_get_value_smob_arg_unsafe' instead of
5318 'vlscm_scm_to_value'.
5320 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5323 * utils.c (printchar): Don't escape at all if quoter is NUL.
5324 Update function documentation to clarify effect of parameter
5326 * remote.c (escape_buffer): Pass '\\' as the quoter to
5327 fputstrn_unfiltered.
5328 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5329 generate the output.
5330 (mi_solib_unloaded): Same.
5332 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5334 * development.sh: Delete.
5335 * Makefile.in (config.status): Adjust dependency on development.sh.
5336 * configure.ac: Adjust development.sh source call.
5337 * configure: Regenerate.
5339 2014-06-04 Doug Evans <xdje42@gmail.com>
5341 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5342 is_scheme_bkpt, spec.
5343 (bpscm_make_breakpoint_smob): Initialize new members.
5344 (gdbscm_create_breakpoint_x): Split into two ...
5345 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5346 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5347 (scheme_function breakpoint_functions): Update.
5348 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5349 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5350 register-breakpoint!.
5352 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5355 * mem-break.c (z_type_supported): Return zero if
5356 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5358 2014-06-04 Tom Tromey <tromey@redhat.com>
5360 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5361 value_from_contents_and_address_unresolved.
5362 (ada_template_to_fixed_record_type_1): Likewise.
5363 (ada_which_variant_applies): Likewise.
5364 * value.h (value_from_contents_and_address_unresolved): Declare.
5365 * value.c (value_from_contents_and_address_unresolved): New
5367 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5368 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5369 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5371 2014-06-04 Tom Tromey <tromey@redhat.com>
5373 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5375 2014-06-04 Tom Tromey <tromey@redhat.com>
5377 * procfs.c (procfs_attach): Make "args" const.
5378 * windows-nat.c (windows_attach): Make "args" const.
5379 * nto-procfs.c (procfs_attach): Make "args" const.
5380 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5381 * go32-nat.c (go32_attach): Make "args" const.
5382 * gnu-nat.c (gnu_attach): Make "args" const.
5383 * darwin-nat.c (darwin_attach): Make "args" const.
5384 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5385 * linux-nat.c (linux_nat_attach): Make "args" const.
5386 * remote.c (extended_remote_attach_1, extended_remote_attach):
5388 * target.h (struct target_ops) <to_attach>: Make "args" const.
5389 (find_default_attach): Likewise.
5390 * utils.c (parse_pid_to_attach): Make "args" const.
5391 * utils.h (parse_pid_to_attach): Update.
5393 2014-06-04 Tom Tromey <tromey@redhat.com>
5395 * target-delegates.c: Rebuild.
5396 * target.c (default_thread_address_space): New function.
5397 (target_thread_address_space): Simplify.
5398 * target.h (struct target_ops) <to_thread_address_space>: Add
5399 TARGET_DEFAULT_FUNC.
5401 2014-06-04 Doug Evans <xdje42@gmail.com>
5403 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5405 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5407 * record-btrace.c: Include event-loop.h and inf-loop.h.
5408 (record_btrace_resume_exec_dir)
5409 (record_btrace_async_inferior_event_handler)
5410 (record_btrace_handle_async_inferior_event): New.
5411 (record_btrace_open): Create async event handler.
5412 (record_btrace_close): Delete async event handler.
5413 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5414 Mark async event handler.
5415 (record_btrace_execution_direction): New.
5416 (init_record_btrace_ops): Initialize to_execution_direction.
5418 2014-06-03 Doug Evans <xdje42@gmail.com>
5420 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5421 (gdbscm_make_parameter): Ditto.
5423 2014-06-03 Doug Evans <dje@google.com>
5425 * exec.c (exec_close_1): Call clear_section_table instead of
5426 resize_section_table.
5427 (clear_section_table): New function.
5428 (resize_section_table): Make static. Rename arg num_added to
5430 * exec.h (clear_section_table): Declare.
5431 (resize_section_table): Delete.
5432 * progspace.c (release_program_space): Call clear_section_table
5433 instead of resize_section_table.
5435 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5437 * NEWS (Python Scripting): Add entry about the new xmethods
5440 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5442 * python/py-xmethods.c: New file.
5443 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5444 (objfpy_dealloc): XDECREF on the new xmethods field.
5445 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5447 (objfpy_get_xmethods): New function.
5448 (objfile_getset): New entry 'xmethods'.
5449 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5450 (pspy_dealloc): XDECREF on the new xmethods field.
5451 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5453 (pspy_get_xmethods): New function.
5454 (pspace_getset): New entry 'xmethods'.
5455 * python/python-internal.h: Add declarations for new functions.
5456 * python/python.c (_initialize_python): Invoke
5457 gdbpy_initialize_xmethods.
5458 * python/lib/gdb/__init__.py (xmethods): New
5460 * python/lib/gdb/xmethod.py: New file.
5461 * python/lib/gdb/command/xmethods.py: New file.
5463 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5465 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5466 best match method returned by find_overload_match is an xmethod.
5467 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5468 the best matching operator returned by find_overload_match is an
5470 * valops.c: #include "extension.h".
5471 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5472 Return void. The list of matching source methods is returned in
5473 "fn_list" and a vector of matching debug method workers is
5474 returned in "xm_worker_vec". Update all callers.
5475 (value_find_oload_method_list): Likewise.
5476 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5477 non-NULL, then the index of the best matching method in this
5478 vector is returned. Update all callers.
5479 (find_overload_match): Include xmethods while performing overload
5482 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5484 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5485 * extension-priv.h (struct extension_language_ops): Add the
5487 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5488 get_matching_xmethod_workers, get_xmethod_argtypes,
5489 invoke_xmethod, free_xmethod_worker,
5490 free_xmethod_worker_vec): New functions.
5491 * extension.h: #include "common/vec.h".
5492 New function declarations.
5493 (struct xmethod_worker): New struct.
5494 (VEC (xmethod_worker_ptr)): New vector type.
5495 (xmethod_worker_ptr): New typedef.
5496 (xmethod_worker_vec): Likewise.
5497 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5499 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5500 (struct builtin_type): New field "xmethod".
5501 * valarith.c (value_ptradd): Assert that the value argument is not
5503 * valops.c (value_must_coerce_to_target): Return 0 for
5504 lval_xcallable values.
5505 * value.c (struct value): New field XM_WORKER in the field
5507 (value_address, value_raw_address): Return 0 for lval_xcallable
5509 (set_value_address): Assert that the value is not an
5511 (value_free): Free the associated xmethod worker when freeing
5512 lval_xcallable values.
5513 (set_value_component_location): Assert that the WHOLE value is not
5515 (value_of_xmethod, call_xmethod): New functions.
5516 * value.h: Declare "struct xmethod_worker".
5517 Declare new functions value_of_xmethod, call_xmethod.
5519 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5520 Pedro Alves <palves@redhat.com>
5522 PR breakpoints/17000
5523 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5524 New function, extracted from software_breakpoint_inserted_here_p.
5525 (software_breakpoint_inserted_here_p): Replace factored out code
5526 by call to find_non_raw_software_breakpoint_inserted_here.
5527 (bp_target_info_copy_insertion_state): New function.
5528 (bkpt_insert_location): Handle the case of a single-step
5529 breakpoint already inserted at the same address.
5530 (bkpt_remove_location): Handle the case of a single-step
5531 breakpoint still inserted at the same address.
5532 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5533 breakpoint already inserted at the same address.
5534 (deprecated_remove_raw_breakpoint): Handle the case of a
5535 non-raw breakpoint still inserted at the same address.
5536 (find_single_step_breakpoint): New function, extracted from
5537 single_step_breakpoint_inserted_here_p.
5538 (find_single_step_breakpoint): New function,
5539 factored out from single_step_breakpoint_inserted_here_p.
5540 (single_step_breakpoint_inserted_here_p): Reimplement.
5542 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5544 Pushed by Joel Brobecker <brobecker@adacore.com>
5545 * source.c (show_substitute_path_command): Fix display of matching
5548 2014-06-03 Gary Benson <gbenson@redhat.com>
5550 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5552 2014-06-02 Doug Evans <xdje42@gmail.com>
5554 Add parameter support for Guile.
5555 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5556 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5557 (scm-param.o): New rule.
5558 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5559 (gdbscm_misc_error): Declare.
5560 (gdbscm_canonicalize_command_name): Declare.
5561 (gdbscm_scm_to_host_string): Declare.
5562 (gdbscm_scm_from_host_string): Declare.
5563 (gdbscm_initialize_parameters): Declare.
5564 * guile/guile.c (initialize_gdb_module): Call
5565 gdbscm_initialize_parameters.
5566 * guile/lib/gdb.scm: Export parameter symbols.
5567 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5568 cmdscm_canonicalize_name and made public. All callers updated.
5569 * guile/scm-exception.c (gdbscm_misc_error): New function.
5570 * guile/scm-param.c: New file.
5571 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5572 (gdbscm_scm_to_host_string): New function.
5573 (gdbscm_scm_from_host_string): New function.
5574 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5576 2014-06-02 Doug Evans <xdje42@gmail.com>
5578 Add command support for Guile.
5579 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5580 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5581 (scm-cmd.o): New rule.
5582 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5583 (gdbscm_user_error_p): Declare.
5584 (gdbscm_parse_command_name): Declare.
5585 (gdbscm_valid_command_class_p): Declare.
5586 (gdbscm_initialize_commands): Declare.
5587 * guile/guile.c (initialize_gdb_module): Call
5588 gdbscm_initialize_commands.
5589 * guile/lib/gdb.scm: Export command symbols.
5590 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5591 (throw-user-error): New function.
5592 * guile/scm-cmd.c: New file.
5593 * guile/scm-exception.c (user_error_symbol): New static global.
5594 (gdbscm_user_error_p): New function.
5595 (gdbscm_initialize_exceptions): Set user_error_symbol.
5596 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5598 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5600 * top.c (command_loop): Handle comments here...
5601 (command_line_input): ... not here.
5603 2014-06-02 Doug Evans <xdje42@gmail.com>
5605 Add progspace support for Guile.
5606 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5607 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5608 (scm-progspace.o): New rule.
5609 * guile/guile-internal.h (pspace_smob): New typedef.
5610 (psscm_pspace_smob_pretty_printers): Declare.
5611 (psscm_pspace_smob_from_pspace): Declare.
5612 (psscm_scm_from_pspace): Declare.
5613 * guile/guile.c (initialize_gdb_module): Call
5614 gdbscm_initialize_pspaces.
5615 * guile/lib/gdb.scm: Export progspace symbols.
5616 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5618 (append-pretty-printer!): Ditto.
5619 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5621 * guile/scm-progspace.c: New file.
5623 2014-06-03 Alan Modra <amodra@gmail.com>
5625 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5626 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5628 2014-06-02 Doug Evans <dje@google.com>
5630 Add support for skeletonless type units.
5631 * dwarf2read.c (struct dwarf2_per_objfile): New member
5632 n_allocated_type_units.
5633 (struct dwarf2_per_objfile) <tu_stats>: New member
5634 nr_all_type_units_reallocs.
5635 (create_signatured_type_table_from_index): Initialize
5636 n_allocated_type_units
5637 (create_all_type_units): Ditto.
5638 (add_type_unit): Move up in file. New arg slot.
5639 All callers updated. Increase space for all_type_units more
5641 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5642 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5643 (lookup_dwp_signatured_type): Ditto.
5644 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5645 All callers updated.
5646 (build_type_psymtabs_1): Leave type_unit_groups as
5647 NULL if no TUs present.
5648 (print_tu_stats): New function.
5649 (process_skeletonless_type_unit): New function.
5650 (process_dwo_file_for_skeletonless_type_units): New
5652 (process_skeletonless_type_units): New function.
5653 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5654 Call print tu_stats if debugging enabled.
5656 2014-06-02 Pedro Alves <palves@redhat.com>
5658 * breakpoint.c (build_target_command_list): Don't build a command
5659 list if we have any duplicate location that isn't a dprintf.
5661 2014-06-02 Pedro Alves <palves@redhat.com>
5663 * breakpoint.c (dprintf_breakpoint_hit): New function.
5664 (initialize_breakpoint_ops): Install it as dprintf's
5665 breakpoint_hit method.
5667 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5669 * source.c (substitute_path_rule_matches): Simplify using
5670 filename_ncmp instead of FILENAME_CMP.
5672 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5674 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5676 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5678 * configure.ac: When Guile is available, check for the
5679 availability of 'scm_new_smob'.
5680 * configure, config.h.in: Regenerate.
5681 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5684 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5686 * frame.c (struct frame_info): Add stop_string field.
5687 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5688 (get_prev_frame_always): Old content moved into
5689 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5690 TRY_CATCH, handle MEMORY_ERROR exceptions.
5691 (frame_stop_reason_string): New function definition.
5692 * frame.h (unwind_stop_reason_to_string): Extend comment to
5693 mention frame_stop_reason_string.
5694 (frame_stop_reason_string): New function declaration.
5695 * stack.c (frame_info): Switch to frame_stop_reason_string.
5696 (backtrace_command_1): Switch to frame_stop_reason_string.
5697 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5698 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5699 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5701 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5703 * frame.c (frame_stop_reason_string): Rename to ...
5704 (unwind_stop_reason_to_string): this.
5705 * frame.h (frame_stop_reason_string): Rename to ...
5706 (unwind_stop_reason_to_string): this.
5707 * stack.c (frame_info): Update call to frame_stop_reason_string.
5708 (backtrace_command_1): Likewise.
5709 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5710 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5712 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5714 * frame.c (remove_prev_frame): New function.
5715 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5718 2014-05-29 Pedro Alves <palves@redhat.com>
5720 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5721 and make it const. When a single-step decays to a continue,
5722 clear 'step', not 'hw_step'. Pass whether the caller wanted
5723 to step to user_visible_resume_ptid, not what we ask the
5726 2014-05-29 Pedro Alves <palves@redhat.com>
5728 * infrun.c (process_event_stop_test, handle_step_into_function)
5729 (handle_step_into_function_backward): Adjust.
5730 Don't set the even thread's stop_step and call stop_waiting before
5731 calling end_stepping_range. Instead do that ...
5732 (end_stepping_range): ... here. Take an ecs pointer parameter.
5734 2014-05-29 Pedro Alves <palves@redhat.com>
5736 * infrun.c (stop_stepping): Rename to ...
5737 (stop_waiting): ... this.
5738 (proceed): Update comment.
5739 (process_event_stop_test, handle_inferior_event)
5740 (handle_signal_stop, handle_step_into_function)
5741 (handle_step_into_function_backward): Update.
5743 2014-05-29 Pedro Alves <palves@redhat.com>
5745 * infcall.c (run_inferior_call): Don't check whether the current
5746 thread is running after the proceed call.
5748 2014-05-29 Pedro Alves <palves@redhat.com>
5749 Tom Tromey <tromey@redhat.com>
5751 * NEWS: Mention "maint set target-async", "set mi-async", and that
5752 background execution commands are now always available.
5753 * target.h (target_async_permitted): Update comment.
5754 * target.c (target_async_permitted, target_async_permitted_1):
5756 (set_target_async_command): Rename to ...
5757 (maint_set_target_async_command): ... this.
5758 (show_target_async_command): Rename to ...
5759 (maint_show_target_async_command): ... this.
5760 (_initialize_target): Adjust.
5761 * infcmd.c (prepare_execution_command): Make extern.
5762 * inferior.h (prepare_execution_command): Declare.
5763 * infrun.c (set_observer_mode): Leave target async alone.
5764 * mi/mi-interp.c (mi_interpreter_init): Install
5765 mi_on_sync_execution_done as sync_execution_done observer.
5766 (mi_on_sync_execution_done): New function.
5767 (mi_execute_command_input_handler): Don't print the prompt if we
5768 just started a synchronous command with an async target.
5769 (mi_on_resume): Check sync_execution before printing prompt.
5770 * mi/mi-main.h (mi_async_p): Declare.
5771 * mi/mi-main.c: Include gdbcmd.h.
5772 (mi_async_p): New function.
5773 (mi_async, mi_async_1): New globals.
5774 (set_mi_async_command, show_mi_async_command, mi_async): New
5776 (exec_continue): Call prepare_execution_command.
5777 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5778 (mi_execute_async_cli_command): Use mi_async_p.
5779 (_initialize_mi_main): Install "set mi-async". Make
5780 "target-async" a deprecated alias.
5782 2014-05-29 Pedro Alves <palves@redhat.com>
5784 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5785 (_initialize_cli_interp): Adjust.
5786 * event-loop.c: Include "observer.h".
5787 (start_event_loop): Notify 'command_error' observers instead of
5788 calling display_gdb_prompt. Remove FIXME comment.
5789 * event-top.c (display_gdb_prompt): Remove call into the
5791 * inf-loop.c: Include "observer.h".
5792 (inferior_event_handler): Notify 'command_error' observers instead
5793 of calling display_gdb_prompt.
5794 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5795 observers instead of calling display_gdb_prompt.
5796 * interps.c (interp_set): Don't call display_gdb_prompt.
5797 (current_interp_display_prompt_p): Delete.
5798 * interps.h (interp_prompt_p): Delete declaration.
5799 (interp_prompt_p_ftype): Delete.
5800 (struct interp_procs) <prompt_proc_p>: Delete field.
5801 (current_interp_display_prompt_p): Delete declaration.
5802 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5803 (_initialize_mi_interp): Adjust.
5804 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5805 'command_error' observers.
5806 (tui_on_sync_execution_done, tui_on_command_error): New
5808 (tui_display_prompt_p): Delete.
5809 (_initialize_tui_interp): Adjust.
5811 2014-05-29 Pedro Alves <palves@redhat.com>
5814 * cli/cli-interp.c: Include infrun.h and observer.h.
5815 (cli_uiout, cli_interp): New globals.
5816 (cli_on_signal_received, cli_on_end_stepping_range)
5817 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5819 (cli_interpreter_init): Install them as 'end_stepping_range',
5820 'signal_received' 'signal_exited', 'exited' and 'no_history'
5822 (_initialize_cli_interp): Remove cli_interp local.
5823 * infrun.c (handle_inferior_event): Call the several stop reason
5824 observers instead of printing the stop reason directly.
5825 (end_stepping_range): New function.
5826 (print_end_stepping_range_reason, print_signal_exited_reason)
5827 (print_exited_reason, print_signal_received_reason)
5828 (print_no_history_reason): Make static, and add an uiout
5829 parameter. Print to that instead of to CURRENT_UIOUT.
5830 * infrun.h (print_end_stepping_range_reason)
5831 (print_signal_exited_reason, print_exited_reason)
5832 (print_signal_received_reason print_no_history_reason): New
5834 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5836 <cli_uiout>: New field.
5837 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5838 uiout for CLI output. Install 'signal_received',
5839 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5841 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5842 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5843 (mi_on_no_history): New functions.
5844 (ui_out_free_cleanup): Delete function.
5845 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5846 instead use the one already stored in the MI interpreter data.
5847 (mi_ui_out): Adjust.
5848 * tui/tui-interp.c: Include infrun.h and observer.h.
5849 (tui_interp): New global.
5850 (tui_on_signal_received, tui_on_end_stepping_range)
5851 (tui_on_signal_exited, tui_on_exited)
5852 (tui_on_no_history): New functions.
5853 (tui_init): Install them as 'end_stepping_range',
5854 'signal_received' 'signal_exited', 'exited' and 'no_history'
5856 (_initialize_tui_interp): Delete tui_interp local.
5858 2014-05-29 Pedro Alves <palves@redhat.com>
5861 * linux-nat.c (linux_nat_resume_callback): Rename the second
5862 parameter to 'except'. Skip LP if it points to EXCEPT.
5863 (linux_nat_resume): Don't mark the event lwp as not stopped
5864 before resuming sibling lwps. Instead ask
5865 linux_nat_resume_callback to skip the event lwp. Mark it as not
5866 stopped after actually resuming it.
5867 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5869 (wait_lwp): Mark the lwp as stopped here.
5870 (stop_wait_callback): Mark the lwp as not stopped right after
5871 resuming it. Don't mark lwps as stopped here.
5872 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5873 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5875 2014-05-29 Pedro Alves <palves@redhat.com>
5878 * infrun.c (resume): Determine how much to resume depending on
5879 whether the caller wanted a step, not whether we can hardware step
5880 the target. Mark all threads that we intend to run as running,
5881 unless we're calling an inferior function.
5882 (normal_stop): If the thread is running an infcall, don't finish
5884 * target.c (target_resume): Don't mark threads as running here.
5886 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5888 * serial.c (_initialize_serial): Remove support for
5889 the "set remotebaud" and "show remotebaud" commands.
5890 * NEWS: Add entry documenting the removal of that command.
5892 2014-05-28 Yao Qi <yao@codesourcery.com>
5894 * charset.c: Fix typo in comments.
5896 2014-05-27 Gary Benson <gbenson@redhat.com>
5898 * utils.c (internal_vproblem): Prompt for a bug report.
5900 2014-05-26 Andy Wingo <wingo@igalia.com>
5902 * guile/scm-arch.c (arscm_mark_arch_smob):
5903 * guile/scm-block.c (bkscm_mark_block_smob)
5904 (bkscm_mark_block_syms_progress_smob):
5905 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5906 * guile/scm-exception.c (exscm_mark_exception_smob):
5907 * guile/scm-frame.c (frscm_mark_frame_smob):
5908 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5909 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5910 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5911 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5912 (ppscm_mark_pretty_printer_worker_smob):
5913 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5914 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5915 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5916 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5918 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5921 2014-05-26 Andy Wingo <wingo@igalia.com>
5922 Doug Evans <xdje42@gmail.com>
5924 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5925 empty_base_class. All uses updated.
5926 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5927 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5929 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5930 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5931 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5932 (gdbscm_gsmob_has_property_p, add_property_name)
5933 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5934 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5935 (gdb-object-has-property?, gdb-object-properties): Remove.
5936 (gdb-object-kind): Renamed from gsmob-kind.
5938 2014-05-26 Andy Wingo <wingo@igalia.com>
5940 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5941 * configure: Regenerate.
5943 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5945 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5947 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5949 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5950 (replay_memory_access_read_only, replay_memory_access_read_write)
5951 (replay_memory_access_types, replay_memory_access)
5952 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5953 (cmd_set_record_btrace, cmd_show_record_btrace)
5954 (cmd_show_replay_memory_access): New.
5955 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5956 (record_btrace_remove_breakpoint): Replace
5957 record_btrace_allow_memory_access with replay_memory_access.
5958 (_initialize_record_btrace): Add commands.
5959 * NEWS: Announce it.
5961 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5963 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5965 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5967 * MAINTAINERS (Write After Approval): Move self back from
5970 2014-05-22 Pedro Alves <palves@redhat.com>
5972 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5973 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5974 (disable_randomization, enum exec_direction_kind)
5975 (execution_direction, stop_registers, start_remote)
5976 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5977 (wait_for_inferior, normal_stop, get_last_target_status)
5978 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5979 (insert_step_resume_breakpoint_at_sal)
5980 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5981 (set_step_info, print_stop_event, signal_stop_state)
5982 (signal_print_state, signal_pass_state, signal_stop_update)
5983 (signal_print_update, signal_pass_update)
5984 (update_signals_program_target, clear_exit_convenience_vars)
5985 (displaced_step_dump_bytes, update_observer_mode)
5986 (signal_catch_update, gdb_signal_from_command): Move
5988 * infrun.h: ... to this new file.
5989 * amd64-tdep.c: Include infrun.h.
5990 * annotate.c: Include infrun.h.
5991 * arch-utils.c: Include infrun.h.
5992 * arm-linux-tdep.c: Include infrun.h.
5993 * arm-tdep.c: Include infrun.h.
5994 * break-catch-sig.c: Include infrun.h.
5995 * breakpoint.c: Include infrun.h.
5996 * common/agent.c: Include infrun.h instead of inferior.h.
5997 * corelow.c: Include infrun.h.
5998 * event-top.c: Include infrun.h.
5999 * go32-nat.c: Include infrun.h.
6000 * i386-tdep.c: Include infrun.h.
6001 * inf-loop.c: Include infrun.h.
6002 * infcall.c: Include infrun.h.
6003 * infcmd.c: Include infrun.h.
6004 * infrun.c: Include infrun.h.
6005 * linux-fork.c: Include infrun.h.
6006 * linux-nat.c: Include infrun.h.
6007 * linux-thread-db.c: Include infrun.h.
6008 * monitor.c: Include infrun.h.
6009 * nto-tdep.c: Include infrun.h.
6010 * procfs.c: Include infrun.h.
6011 * record-btrace.c: Include infrun.h.
6012 * record-full.c: Include infrun.h.
6013 * remote-m32r-sdi.c: Include infrun.h.
6014 * remote-mips.c: Include infrun.h.
6015 * remote-notif.c: Include infrun.h.
6016 * remote-sim.c: Include infrun.h.
6017 * remote.c: Include infrun.h.
6018 * reverse.c: Include infrun.h.
6019 * rs6000-tdep.c: Include infrun.h.
6020 * s390-linux-tdep.c: Include infrun.h.
6021 * solib-irix.c: Include infrun.h.
6022 * solib-osf.c: Include infrun.h.
6023 * solib-svr4.c: Include infrun.h.
6024 * target.c: Include infrun.h.
6025 * top.c: Include infrun.h.
6026 * windows-nat.c: Include infrun.h.
6027 * mi/mi-interp.c: Include infrun.h.
6028 * mi/mi-main.c: Include infrun.h.
6029 * python/py-threadevent.c: Include infrun.h.
6031 2014-05-22 Pedro Alves <palves@redhat.com>
6033 * infrun.c (handle_inferior_event): Store the exit code for
6034 --return-child-result here, instead of ...
6035 (print_exited_reason): ... here.
6037 2014-05-21 Pedro Alves <palves@redhat.com>
6040 * gdbthread.h (struct thread_control_state): New field
6042 * infrun.c (follow_fork): Copy the new thread control field to the
6044 (clear_proceed_status_thread): Clear the new thread control field.
6045 (proceed): Set the new thread control field.
6046 * interps.h (command_interp): Declare.
6047 * interps.c (command_interpreter): New global.
6048 (command_interp): New function.
6049 (interp_exec): Set `command_interpreter' while here.
6050 * cli-out.c (cli_uiout_dtor): New function.
6051 (cli_ui_out_impl): Install it.
6052 * mi/mi-interp.c: Include cli-out.h.
6053 (mi_cmd_interpreter_exec): Add comment.
6054 (restore_current_uiout_cleanup): New function.
6055 (ui_out_free_cleanup): New function.
6056 (mi_on_normal_stop): If finishing an execution command started by
6057 a CLI command, or any kind of breakpoint-like event triggered,
6058 print the stop event to the output (CLI) stream.
6059 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6061 2014-05-21 Pedro Alves <palves@redhat.com>
6063 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6064 current source line having changed.
6065 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6066 * infrun.c (normal_stop): Adjust call to
6067 set_current_sal_from_frame.
6068 * source.c (clear_lines_listed_range): New function.
6069 (set_current_source_symtab_and_line, identify_source_line): Clear
6070 the lines listed range.
6071 (line_info): Handle the first "info line" after the current source
6072 line having changed.
6073 * stack.c (print_stack_frame): Remove center handling.
6074 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6077 2014-05-21 Pedro Alves <palves@redhat.com>
6079 * inf-child.c (inf_child_mourn_inferior): New function.
6080 * inf-child.h (inf_child_mourn_inferior): New declaration.
6081 * darwin-nat.c (darwin_mourn_inferior): Use
6082 inf_child_mourn_inferior.
6083 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6084 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6085 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6086 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6087 * windows-nat.c (windows_mourn_inferior): Likewise.
6089 2014-05-21 Doug Evans <xdje42@gmail.com>
6091 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6093 2014-05-21 Doug Evans <xdje42@gmail.com>
6095 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6096 (gdbscm_out_of_range_error): Ditto.
6097 (gdbscm_memory_error): Ditto.
6098 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6099 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6100 (gdbscm_out_of_range_error): Update.
6101 (gdbscm_memory_error): Update.
6102 (gdbscm_scm_to_target_string_unsafe): Delete.
6104 2014-05-21 Pedro Alves <palves@redhat.com>
6106 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6108 (inf_child_open_target): New function.
6109 (inf_child_open): Use inf_child_open_target to push the target
6110 instead of erroring out.
6111 (inf_child_disconnect, inf_child_close)
6112 (inf_child_maybe_unpush_target): New functions.
6113 (inf_child_target): Install inf_child_disconnect and
6114 inf_child_close. Store a pointer to the returned object.
6115 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6117 * target.c (auto_connect_native_target): New global.
6118 (show_default_run_target): New function.
6119 (find_default_run_target): Return NULL if automatically connecting
6120 to the native target is disabled.
6121 (_initialize_target): Install set/show auto-connect-native-target.
6122 * NEWS: Mention "set auto-connect-native-target", and "target
6124 * linux-nat.c (super_close): New global.
6125 (linux_nat_close): Call super_close.
6126 (linux_nat_add_target): Store a pointer to the base class's
6128 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6129 inf_child_maybe_unpush.
6130 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6132 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6133 the inferior. Use inf_child_maybe_unpush_target.
6134 (inf_ttrace_attach): Don't push the target if it is already
6136 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6137 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6138 after mourning the inferior. Use inf_child_maybe_unpush_target.
6139 (darwin_attach_pid): Don't push the target if it is already
6141 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6142 mourning the inferior. Use inf_child_maybe_unpush_target.
6143 (gnu_detach): Use inf_child_maybe_unpush_target.
6144 * go32-nat.c (go32_create_inferior): Don't push the target if it
6146 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6147 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6148 (procfs_open): Rename to ...
6149 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6150 comments. Can target_preopen before changing node. Call
6151 inf_child_open_target to push the target explicitly.
6152 (procfs_attach): Don't push the target if it is already pushed.
6153 (procfs_detach): Use inf_child_maybe_unpush_target.
6154 (procfs_create_inferior): Don't push the target if it is already
6156 (nto_native_ops): New global.
6157 (procfs_open): Reimplement.
6158 (procfs_native_open): New function.
6159 (init_procfs_targets): Install procfs_native_open as to_open of
6160 "target native". Store a pointer to the "native" target in
6162 * procfs.c (procfs_attach): Don't push the target if it is already
6164 (procfs_detach): Use inf_child_maybe_unpush_target.
6165 (procfs_mourn_inferior): Only unpush the target after mourning the
6166 inferior. Use inf_child_maybe_unpush_target.
6167 (procfs_init_inferior): Don't push the target if it is already
6169 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6170 if it is already pushed.
6172 2014-05-21 Pedro Alves <palves@redhat.com>
6174 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6175 and "procfs" targets are now called "native" instead.
6177 2014-05-21 Pedro Alves <palves@redhat.com>
6179 * go32-nat.c (go32_open): Delete.
6180 (go32_target): Don't override the to_open method.
6182 2014-05-21 Pedro Alves <palves@redhat.com>
6184 * nto-procfs.c (procfs_can_run): New function.
6185 (nto_procfs_ops): New global.
6186 (init_procfs_targets): New, based on procfs_target. Install
6187 "target native" in addition to "target procfs".
6188 (_initialize_procfs): Call init_procfs_targets instead of adding
6191 2014-05-21 Pedro Alves <palves@redhat.com>
6193 * windows-nat.c (windows_target): Don't override to_shortname,
6194 to_longname or to_doc.
6196 2014-05-21 Pedro Alves <palves@redhat.com>
6198 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6201 2014-05-21 Pedro Alves <palves@redhat.com>
6203 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6204 to_shortname, to_longname or to_doc.
6206 2014-05-21 Pedro Alves <palves@redhat.com>
6208 * go32-nat.c (go32_target): Don't override to_shortname,
6209 to_longname or to_doc.
6211 2014-05-21 Pedro Alves <palves@redhat.com>
6213 * inf-child.c (inf_child_open): Remove mention of "child".
6214 (inf_child_target): Rename target to "native" instead of "child".
6216 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6218 * Makefile.in (SFILES): Delete "regset.c".
6219 (COMMON_OBS): Delete "regset.o".
6221 * regset.h (regset_alloc): Delete prototype.
6223 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6225 * sparc-linux-tdep.c (sparc32_linux_gregset)
6226 (sparc32_linux_fpregset): New static regset structures.
6227 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6228 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6230 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6231 (sparc64_linux_fpregset): New static regset structures.
6232 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6233 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6234 New static regset structures.
6235 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6236 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6237 New static regset structures.
6238 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6239 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6240 New static regset structures.
6241 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6242 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6243 New static regset structures.
6244 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6246 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6248 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6249 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6250 register maps ("regmaps") from "*regset" to "*regmap". Do this
6251 for all regmap types and variables.
6252 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6253 (sparc32_linux_supply_core_gregset)
6254 (sparc32_linux_collect_core_gregset)
6255 (sparc32_linux_supply_core_fpregset)
6256 (sparc32_linux_collect_core_fpregset): Likewise.
6257 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6258 (sparc_gregmap, sparc_fpregmap): ... these.
6259 (sparc_supply_gregset, sparc_collect_gregset)
6260 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6261 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6262 (_initialize_sparc_nat): Rename regmaps.
6263 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6264 (sparc_gregmap, sparc_fpregmap): ... these.
6265 (sparc_supply_gregset, sparc_collect_gregset)
6266 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6267 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6269 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6270 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6272 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6274 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6275 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6276 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6278 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6279 (sparc32_bsd_fpregset): Rename to...
6280 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6281 (sparc32_bsd_fpregmap): ... these.
6282 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6283 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6284 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6285 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6286 (struct sparc_gregmap, struct sparc_fpregmap)
6287 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6288 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6289 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6290 (sparc32_supply_regset, sparc32_collect_gregset)
6291 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6293 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6294 (sparc64_linux_ptrace_gregmap): ... this.
6295 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6296 (_initialize_sparc64_linux_nat): Rename regmaps.
6297 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6298 (sparc64_linux_core_gregmap): ... this.
6299 (sparc64_linux_supply_core_gregset)
6300 (sparc64_linux_collect_core_gregset)
6301 (sparc64_linux_supply_core_fpregset)
6302 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6303 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6304 (sparc64_sol2_fpregset): Rename to...
6305 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6306 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6307 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6309 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6310 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6311 (sparc64_bsd_fpregset): Rename to...
6312 (struct sparc_gregmap, sparc64_sol2_gregmap)
6313 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6314 (sparc64_bsd_fpregmap): ... these.
6315 (sparc64_supply_gregset, sparc64_collect_gregset)
6316 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6318 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6319 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6320 (sparc64fbsd_gregmap): ... this.
6321 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6322 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6324 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6325 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6326 (sparc64nbsd_collect_fpregset): Likewise.
6327 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6328 (sparc64nbsd_gregmap): ... this.
6329 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6331 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6332 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6333 (sparc64obsd_gregmap): ... this.
6334 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6336 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6337 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6338 (sparc32nbsd_gregmap): ... this.
6339 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6342 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6344 * score-tdep.c (score7_linux_gregset): New static regset
6346 (score7_linux_regset_from_core_section): Remove dynamic regset
6348 (score_gdbarch_init): Drop allocation of tdep structure.
6349 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6351 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6353 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6355 (am33_regset_from_core_section): Remove dynamic regset
6358 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6360 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6361 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6363 (mips_linux_regset_from_core_section): Remove dynamic regset
6365 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6366 'gregset64', 'fpregset', and 'fpregset64'.
6367 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6368 deleted tdep fields.
6370 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6372 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6374 (amd64_regset_from_core_section): Remove dynamic regset
6376 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6378 (amd64obsd_regset_from_core_section): Remove dynamic regset
6380 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6382 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6383 x86-common regset supply function.
6384 * i386-tdep.c (i386_collect_gregset): Make static.
6385 (i386_gregset): New global regset structure.
6386 (i386_fpregset, i386_xstateregset): New static regset structures.
6387 (i386_regset_from_core_section): Remove dynamic regset
6389 (i386_gdbarch_init): Remove initialization of tdep fields
6390 'gregset', 'fpregset', and 'xstateregset'.
6391 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6392 'fpregset', and 'xstateregset'.
6393 (i386_collect_gregset): Remove prototype.
6394 (i386_gregset): New declaration.
6395 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6397 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6400 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6402 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6403 (arm_linux_vfpregset): New static regset structures.
6404 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6406 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6407 and 'vfpregset' fields.
6409 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6411 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6412 (aarch64_linux_fpregset): New static regset structures.
6413 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6414 of regset structures.
6415 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6418 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6420 * regset.h (struct regset): Remove gdbarch field.
6421 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6422 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6423 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6425 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6426 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6427 (ppc32_linux_vsxregset): Likewise.
6428 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6429 via the regcache instead of the regset.
6430 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6431 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6432 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6433 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6436 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6438 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6439 Constify structures.
6440 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6441 (alphanbsd_aout_gregset): Likewise.
6442 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6443 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6445 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6446 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6448 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6449 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6450 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6451 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6452 * m88k-tdep.c (m88k_gregset): Likewise.
6453 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6454 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6455 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6456 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6457 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6458 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6459 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6460 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6461 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6463 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6464 * sh-tdep.h (sh_corefile_gregset): Likewise.
6465 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6466 * vax-tdep.c (vax_gregset): Likewise.
6468 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6470 Fix TLS access for -static -pthread.
6471 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6472 (try_thread_db_load_1): Initialize it.
6473 (thread_db_get_thread_local_address): Call it if LM is zero.
6474 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6475 * target.h (struct target_ops) (to_get_thread_local_address): Add
6476 load_module_addr comment.
6478 2014-05-21 Pedro Alves <palves@redhat.com>
6480 * dcache.c (dcache_read_memory_partial): If reading the cache line
6481 fails, fallback to reading just the memory the caller wanted.
6483 2014-05-20 Doug Evans <dje@google.com>
6485 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6486 instead of get_current_arch.
6488 2014-05-20 Pedro Alves <palves@redhat.com>
6490 * NEWS: Mention that compare-sections now works with all targets.
6492 * remote.c (PACKET_qCRC): New enum value.
6493 (remote_verify_memory): Don't send qCRC if the target has no
6494 execution. Use packet_support/packet_ok. If the target doesn't
6495 support the qCRC packet, fallback to a deep memory copy.
6496 (compare_sections_command): Say "target image" instead of "remote
6498 (_initialize_remote): Add PACKET_qCRC to the list of config
6499 packets that have no associated command. Extend comment.
6500 * target.c (simple_verify_memory, default_verify_memory): New
6502 * target.h (struct target_ops) <to_verify_memory>: Default to
6503 default_verify_memory.
6504 (simple_verify_memory): New declaration.
6505 * target-delegates.c: Regenerate.
6507 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6509 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6511 2014-05-20 Hui Zhu <hui@codesourcery.com>
6512 Yao Qi <yao@codesourcery.com>
6515 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6516 and change address of sp and pc.
6518 2014-05-19 Tom Tromey <tromey@redhat.com>
6520 * gdbtypes.c (rank_function): Use XNEWVEC.
6521 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6523 2014-05-19 Doug Evans <dje@google.com>
6525 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6526 build_type_unit_groups and moved closer to only caller. Remove
6527 arguments. All references updated. Remove outdated .gdb_index
6529 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6530 build_type_psymtabs_1.
6532 2014-05-19 Doug Evans <dje@google.com>
6534 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6535 n_type_unit_groups, all_type_unit_groups. All uses removed.
6536 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6537 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6538 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6539 (add_type_unit_group_to_table): Delete.
6541 2014-05-19 Doug Evans <dje@google.com>
6543 * eval.c (evaluate_subexp_standard): Add some comments.
6545 2014-05-17 Doug Evans <xdje42@gmail.com>
6547 * progspace.c (remove_program_space): Delete, unused.
6548 * progspace.h (remove_program_space): Ditto.
6550 2014-05-17 Doug Evans <xdje42@gmail.com>
6552 * inferior.c (prune_inferiors): Fix comment.
6553 (remove_inferior_command): Call prune_program_spaces.
6555 2014-05-16 Doug Evans <dje@google.com>
6557 New command line option -D.
6559 * main.c (set_gdb_data_directory): New function.
6560 (captured_main): Recognize -D. Flag error for --data-directory "".
6561 Call set_gdb_data_directory.
6562 (print_gdb_help): Print --data-directory, -D.
6563 * main.h (set_gdb_data_directory): Declare.
6564 * top.c (staged_gdb_datadir): New static global.
6565 (set_gdb_datadir): Call set_gdb_data_directory
6566 (show_gdb_datadir): New function.
6567 (init_main): Update init of data-directory parameter.
6569 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6571 Import the "dirfd" gnulib module.
6572 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6573 * gnulib/aclocal.m4: Update.
6574 * gnulib/config.in: Update.
6575 * gnulib/configure: Update.
6576 * gnulib/import/Makefile.am: Update.
6577 * gnulib/import/Makefile.in: Update.
6578 * gnulib/import/dirfd.c: New.
6579 * gnulib/import/m4/dirfd.m4: New.
6580 * gnulib/import/m4/gnulib-cache.m4: Update.
6581 * gnulib/import/m4/gnulib-comp.m4: Update.
6583 2014-05-16 Pierre Muller <muller@sourceware.org>
6584 Yao Qi <yao@codesourcery.com>
6586 * valprint.c (print_wchar): Move the code on checking whether
6587 W is a printable wide char to the default branch of switch
6588 statement below. Call wchar_printable instead of gdb_iswprint.
6590 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6592 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6593 ldr.w and ldrd instructions.
6595 2014-05-15 Doug Evans <dje@google.com>
6597 * dwarf2read.c (read_structure_type): Delete outdated comments.
6599 2014-05-14 Tom Tromey <tromey@redhat.com>
6601 * macrocmd.c (print_macro_definition): Reindent.
6603 2014-05-13 Doug Evans <xdje42@gmail.com>
6605 * python/py-cmd.c (cmdpy_completer): Add comment.
6606 (completers): Make const.
6608 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6610 * infrun.c (resume): Remove should_resume (unused). Move up
6611 declaration of resume_ptid.
6613 2014-05-13 Tom Tromey <tromey@redhat.com>
6615 * language.h (unop_type_check): Remove.
6616 (binop_type_check): Don't declare.
6618 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6620 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6621 call to regcache_raw_collect.
6623 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6625 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6626 mi_console->quote as the quoting character.
6628 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6630 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6632 2014-04-29 Tom Tromey <tromey@redhat.com>
6634 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6635 "show debug varobj".
6637 2014-05-07 Kyle McMartin <kyle@redhat.com>
6639 Pushed by Joel Brobecker <brobecker@adacore.com>.
6640 * aarch64-tdep.c (aarch64_software_single_step): New function.
6641 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6642 with aarch64_software_single_step.
6644 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6648 2014-05-05 Keith Seitz <keiths@redhat.com>
6650 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6651 variable or history value is successfully parsed.
6653 2014-05-05 Yao Qi <yao@codesourcery.com>
6654 Pedro Alves <palves@redhat.com>
6656 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6657 address of blocks that intersects the requested range. Trim
6658 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6660 * ctf.c (ctf_xfer_partial): Likewise.
6662 2014-05-05 Yao Qi <yao@codesourcery.com>
6664 * printcmd.c (display_command): Remove the check to
6665 target_has_execution.
6667 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6669 * ppcobsd-nat.c: Include "obsd-nat.h".
6670 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6672 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6674 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6676 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6677 and 16-bit signed and unsigned arguments. Update comment.
6678 (stap_parse_probe_arguments): Extend code to handle such
6679 arguments. Use warning instead of complaint to notify about
6680 unrecognized bitness.
6682 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6684 PR breakpoints/16889
6685 * stap-probe.c (stap_parse_probe_arguments): Simplify
6686 check for non-prefixed probes (i.e., probes whose
6687 arguments do not start with "N@"). Always set the
6688 argument type to a sane value.
6690 2014-05-01 David Taylor <dtaylor@emc.com>
6692 * remote.c (compare_sections_command): Add -r option to compare
6693 all loadable read-only sections.
6695 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6697 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6698 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6700 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6701 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6702 Remove unused CORE_ADDR argument. Update all callers.
6704 2014-04-29 Pedro Alves <palves@redhat.com>
6706 * remote.c (struct packet_config) <detect>: Extend comment.
6707 (add_packet_config_cmd): Don't set the config's detect or support
6709 (init_all_packet_configs): Also initialize the config's 'detect'
6711 (reset_all_packet_configs_support): New function.
6712 (remote_open_1): Call reset_all_packet_configs_support instead of
6713 init_all_packet_configs.
6714 (_initialize_remote): Initialize all packet configs. Assert that
6715 all packets have an associated command, except a few known
6718 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6720 * dwarf2read.c (read_subrange_type): Handle dynamic
6721 DW_AT_lower_bound attributes.
6723 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6725 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6726 dynamic bounds before computing its upper bound.
6727 (ada_discrete_type_low_bound): Same as above with the lower bound.
6729 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6731 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6732 range types. Adjust the array handling implementation to
6733 take advantage of this change.
6734 (resolve_dynamic_range): New function, mostly extracted from
6735 resolve_dynamic_bounds.
6736 (resolve_dynamic_array): New function, mostly extracted from
6737 resolve_dynamic_bounds.
6738 (resolve_dynamic_bounds): Delete.
6739 (resolve_dynamic_type): Reimplement. Add handling of
6740 TYPE_CODE_RANGE types.
6742 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6744 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6745 handling of parallel ___XA types.
6747 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6749 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6750 unnecessary second call to static_unwrap_type.
6752 2014-04-27 Hui Zhu <hui@codesourcery.com>
6754 * stack.c (print_frame_info): Call do_gdb_disassembly with
6755 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6757 2014-04-26 Doug Evans <xdje42@gmail.com>
6759 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6761 2014-04-25 Pedro Alves <palves@redhat.com>
6764 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6765 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6766 and newline from built string.
6767 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6768 (linux_ptrace_attach_fail_reason): ... this.
6769 * linux-nat.c (linux_nat_attach): Adjust to use
6770 linux_ptrace_attach_fail_reason.
6772 2014-04-25 Pedro Alves <palves@redhat.com>
6774 * remote.c (struct remote_state): Remove multi_process_aware,
6775 non_stop_aware, cond_tracepoints, cond_breakpoints,
6776 breakpoint_commands, fast_tracepoints, static_tracepoints,
6777 install_in_trace, disconnected_tracing,
6778 enable_disable_tracepoints, string_tracing, and
6779 augmented_libraries_svr4_read fields.
6780 (remote_multi_process_p): Move further below in the file.
6781 (struct packet_config): Add comments.
6782 (update_packet_config): Delete function.
6783 (show_packet_config_cmd): Use packet_config_support.
6784 (add_packet_config_cmd): Use NULL as set callback.
6785 (packet_ok): "set remote foo-packet"-style commands no longer
6786 change config->supported -- adjust.
6787 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6788 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6789 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6790 (PACKET_QNonStop, PACKET_multiprocess_feature)
6791 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6792 (PACKET_DisconnectedTracing_feature)
6793 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6794 (set_remote_protocol_packet_cmd): Delete function.
6795 (packet_config_support, packet_support): New functions.
6796 (set_remote_protocol_Z_packet_cmd): Don't call
6797 update_packet_config.
6798 (remote_query_attached, remote_pass_signals)
6799 (remote_program_signals, remote_threads_info)
6800 (remote_threads_extra_info, remote_start_remote): Use
6802 (remote_start_remote): Use packet_config_support and
6804 (init_all_packet_configs): Set all packets to unknown support,
6805 instead of calling update_packet_config.
6806 (remote_check_symbols): Use packet_support.
6807 (remote_supported_packet): Unconditionally set the packet config's
6809 (remote_multi_process_feature, remote_non_stop_feature)
6810 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6811 (remote_breakpoint_commands_feature)
6812 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6813 (remote_install_in_trace_feature)
6814 (remote_disconnected_tracing_feature)
6815 (remote_enable_disable_tracepoint_feature)
6816 (remote_string_tracing_feature)
6817 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6818 (remote_protocol_features): Adjust to use remote_supported_packet
6819 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6820 "ConditionalTracepoints", "ConditionalBreakpoints",
6821 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6822 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6823 "EnableDisableTracepoints", and "tracenz".
6824 (remote_query_supported): Use packet_support.
6825 (remote_open_1): Adjust.
6826 (extended_remote_attach_1): Use packet_support. Switch on the
6827 result of packet_ok instead of checking whether the packet ended
6829 (remote_vcont_resume): Use packet_support.
6830 (remote_resume, remote_stop_ns, fetch_register_using_p)
6831 (remote_prepare_to_store, store_register_using_P)
6832 (check_binary_download, remote_write_bytes): Use packet_support.
6833 (remote_vkill): Use packet_support. Switch on the result of
6834 packet_ok instead of checking whether the packet ended up
6836 (extended_remote_supports_disable_randomization): Use
6838 (extended_remote_run): Switch on the result of packet_ok instead
6839 of checking whether the packet ended up disabled.
6840 (remote_insert_breakpoint, remote_remove_breakpoint)
6841 (remote_insert_watchpoint, remote_remove_watchpoint)
6842 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6844 (remote_search_memory): Use packet_config_support.
6845 (remote_get_thread_local_address, remote_get_tib_address)
6846 (remote_hostio_send_command, remote_can_execute_reverse): Use
6848 (remote_supports_cond_tracepoints)
6849 (remote_supports_cond_breakpoints)
6850 (remote_supports_fast_tracepoints)
6851 (remote_supports_static_tracepoints)
6852 (remote_supports_install_in_trace)
6853 (remote_supports_enable_disable_tracepoint)
6854 (remote_supports_string_tracing)
6855 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6856 the packet config says the feature is enabled or disabled.
6857 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6858 (remote_get_trace_status): Use packet_support.
6859 (remote_set_disconnected_tracing): Adjust to check whether the
6860 feature is enabled with packet_support.
6861 (remote_set_trace_buffer_size, remote_use_agent)
6862 (remote_can_use_agent, remote_supports_btrace): Use
6864 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6865 Use packet_config_support.
6866 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6867 the packet config says the feature is enabled or disabled.
6868 (set_range_stepping): Use packet_support.
6870 2014-04-25 Tom Tromey <tromey@redhat.com>
6872 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6875 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6877 * NEWS: Mention support for C99 variable length arrays.
6879 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6881 * ada-lang.c (standard_exc): Expand introductory comment.
6883 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6884 Walfred Tedeschi <walfred.tedeschi@intel.com>
6886 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6888 (amd64_linux_read_description): Add code to handle AVX512 xstate
6889 mask and return respective tdesc.
6890 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6891 and features/i386/x32-avx512-linux.c.
6892 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6893 (amd64_linux_core_read_description): Add code to handle AVX512
6894 xstate mask and return respective tdesc.
6895 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6896 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6898 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6899 (tdesc_amd64_avx512_linux): New prototype.
6900 (tdesc_x32_avx512_linux): Likewise.
6901 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6902 features/i386/x32-avx512.c.
6903 (amd64_ymm_avx512_names): New register names for pseudo
6905 (amd64_ymmh_avx512_names): New register names for raw registers
6907 (amd64_k_names): New register names for K registers.
6908 (amd64_zmmh_names): New register names for ZMM raw registers.
6909 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6910 (amd64_xmm_avx512_names): New register names for XMM16-31
6912 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6914 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6915 if feature is present.
6916 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6917 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6918 (AMD64_NUM_REGS): Adjust to new number of registers.
6919 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6920 registers supplied via XSTATE by AVX512 registers.
6921 (i386_linux_read_description): Add case for AVX512.
6922 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6923 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6924 (i386_linux_core_read_description): Add case for AVX512.
6925 (i386_linux_init_abi): Install supported register note section
6927 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6929 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6930 registers to be number of zmm7h + 1.
6931 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6932 * i386-tdep.c: Include features/i386/i386-avx512.c.
6933 (i386_zmm_names): Add ZMM pseudo register names array.
6934 (i386_zmmh_names): Add ZMM raw register names array.
6935 (i386_k_names): Add K raw register names array.
6936 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6937 registers. AVX512 has 16 more ZMM registers than there are YMM
6939 (i386_zmmh_regnum_p): Add function to look up register number of
6941 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6942 (i386_k_regnum_p): Likewise for K raw registers.
6943 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6944 registers added by AVX512.
6945 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6946 registers added by AVX512.
6947 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6949 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6950 (i386_pseudo_register_name): Add ZMM pseudo registers.
6951 (i386_zmm_type): Construct and return vector registers type for ZMM
6953 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6954 ZMM0-31 pseudo registers and K registers.
6955 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6956 and YMM16-31 registers from register cache.
6957 (i386_pseudo_register_write): Add code to write K, ZMM and
6959 (i386_register_reggroup_p): Add code to include/exclude AVX512
6960 registers in/from respective register groups.
6961 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6962 registers if feature is present in xcr0.
6963 (i386_gdbarch_init): Add code to initialize AVX512 feature
6964 variables in tdep structure, wire in pseudo registers and call
6965 initialize_tdesc_i386_avx512.
6966 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6968 (i386_regnum): Add AVX512 registers.
6969 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6970 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6971 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6972 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6974 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6975 (i386_ymm_avx512_regnum_p): Likewise.
6976 (i386_k_regnum_p): Likewise.
6977 (i386_zmm_regnum_p): Likewise.
6978 (i386_zmmh_regnum_p): Likewise.
6979 * i387-tdep.c : Update year in copyright notice.
6980 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6982 (XSAVE_YMM_AVX512_ADDR): New macro.
6983 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6985 (XSAVE_XMM_AVX512_ADDR): New macro.
6986 (xsave_avx512_k_offset): New table for K register offsets in
6988 (XSAVE_AVX512_K_ADDR): New macro.
6989 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6991 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6992 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6994 (i387_collect_xsave): Add code to collect AVX512 registers from
6996 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6997 of XMM16-31 registers.
6998 (I387_NUM_K_REGS): New define for number of K registers.
6999 (I387_K0_REGNUM): New define for K0 register number.
7000 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7001 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7002 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7004 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7005 (I387_XMM16_REGNUM): New define for XMM16 register number.
7006 (I387_YMM0_REGNUM): New define for YMM0 register number.
7007 (I387_KEND_REGNUM): New define for last K register number.
7008 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7009 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7011 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7013 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7015 * features/Makefile: Add AVX512 related files.
7016 * features/i386/32bit-avx512.xml: New file.
7017 * features/i386/64bit-avx512.xml: Likewise.
7018 * features/i386/amd64-avx512-linux.c: Likewise.
7019 * features/i386/amd64-avx512-linux.xml: Likewise.
7020 * features/i386/amd64-avx512.c: Likewise.
7021 * features/i386/amd64-avx512.xml: Likewise.
7022 * features/i386/i386-avx512-linux.c: Likewise.
7023 * features/i386/i386-avx512-linux.xml: Likewise.
7024 * features/i386/i386-avx512.c: Likewise.
7025 * features/i386/i386-avx512.xml: Likewise.
7026 * features/i386/x32-avx512-linux.c: Likewise.
7027 * features/i386/x32-avx512-linux.xml: Likewise.
7028 * features/i386/x32-avx512.c: Likewise.
7029 * features/i386/x32-avx512.xml: Likewise.
7030 * regformats/i386/amd64-avx512-linux.dat: New file.
7031 * regformats/i386/amd64-avx512.dat: Likewise.
7032 * regformats/i386/i386-avx512-linux.dat: Likewise.
7033 * regformats/i386/i386-avx512.dat: Likewise.
7034 * regformats/i386/x32-avx512-linux.dat: Likewise.
7035 * regformats/i386/x32-avx512.dat: Likewise.
7036 * NEWS: Add note about new support for AVX512.
7039 2014-04-23 Pedro Alves <palves@redhat.com>
7041 * breakpoint.c (insert_bp_location): Tolerate errors if the
7042 breakpoint is set in a user-loaded objfile.
7043 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7044 location is marked shlib_disabled. If the breakpoint is set in a
7045 user-loaded objfile is a GDB-side memory breakpoint, validate it
7046 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7047 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7049 * mem-break.c (memory_validate_breakpoint): New function.
7050 * objfiles.c (userloaded_objfile_contains_address_p): New
7052 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7053 * target.h (memory_validate_breakpoint): New declaration.
7055 2014-04-23 Pedro Alves <palves@redhat.com>
7057 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7058 the breakpoint is set in a shared library, only suppress
7059 errors for software breakpoints, not hardware breakpoints.
7061 2014-04-22 Pedro Alves <palves@redhat.com>
7063 * infrun.c (schedlock_applies): New function, factored out from
7064 find_thread_needs_step_over.
7065 (find_thread_needs_step_over): Use it.
7066 (switch_back_to_stepped_thread): Always clear trap_expected if the
7067 step over is finished. Return early if scheduler locking applies.
7068 Look for the stepping thread and a potential step-over thread with
7070 (currently_stepping_or_nexting_callback): Delete.
7072 2014-04-22 Nick Clifton <nickc@redhat.com>
7074 * NEWS: Mention that ARM sim now supports tracing.
7076 2014-04-22 Yao Qi <yao@codesourcery.com>
7078 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7080 * tracefile.c (tracefile_fetch_registers): ... it. New
7082 * tracefile.h (tracefile_fetch_registers): Declare.
7083 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7084 tracefile_fetch_registers.
7086 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7089 * windows-nat.c (thread_rec): Don't display a warning when
7090 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7091 fails for any reason, set th->suspended to -1, so that we don't
7092 try to resume such a thread. Also, don't return NULL in these
7093 cases, to avoid completely ruin the session due to "PC register is
7094 not available" error.
7095 (do_windows_fetch_inferior_registers): Check errors in
7096 GetThreadContext call.
7097 (windows_continue): Accept an additional argument KILLED; if not
7098 zero, ignore errors in the SetThreadContext call, since the
7099 inferior was killed and is shutting down.
7100 (windows_resume, get_windows_debug_event)
7101 (windows_create_inferior, windows_mourn_inferior)
7102 (windows_kill_inferior): All callers of windows_continue changed
7103 to adjust to its new calling sequence.
7105 2014-04-19 Yao Qi <yao@codesourcery.com>
7107 * ctf.c (ctf_open): Call post_create_inferior.
7109 2014-04-19 Yao Qi <yao@codesourcery.com>
7111 * ctf.c (handle_id): New static variable.
7112 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7113 value. Get the declaration of event "register" and get length
7114 of field "contents".
7116 2014-04-19 Yao Qi <yao@codesourcery.com>
7118 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7120 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7122 * valops.c (oload_method_static): Remove unnecessary argument
7123 METHOD. Update all callers.
7125 2014-04-18 Pedro alves <palves@redhat.com>
7126 Tom Tromey <tromey@redhat.com>
7129 * frame.c (get_prev_frame_1): Rename to ...
7130 (get_prev_frame_always): ... this, and make extern. Adjust.
7131 (skip_artificial_frames): Use get_prev_frame_always.
7132 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7133 (get_frame_unwind_stop_reason): Adjust to rename.
7134 * frame.h (get_prev_frame_always): Declare.
7135 * inline-frame.c: Include frame.h.
7136 (inline_frame_this_id): Use get_prev_frame_always.
7138 2014-04-18 Tristan Gingold <gingold@adacore.com>
7140 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7141 code by using bfd_mach_o_get_base_address.
7143 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7145 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7146 (spu_ax_pseudo_register_collect): New function.
7147 (spu_ax_pseudo_register_push_stack): Likewise.
7148 (spu_dwarf_reg_to_regnum): Likewise.
7149 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7151 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7153 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7154 Replace FRAME argument with FRAME_ID.
7155 * gdbarch.c, gdbarch.h: Regenerate.
7156 * findvar.c (default_value_from_register): Add GDBARCH argument;
7157 replace FRAME by FRAME_ID. No longer call get_frame_id.
7158 (value_from_register): Update call to gdbarch_value_from_register.
7159 * value.h (default_value_from_register): Update prototype.
7160 * s390-linux-tdep.c (s390_value_from_register): Update interface
7161 and call to default_value_from_register.
7162 * spu-tdep.c (spu_value_from_register): Likewise.
7164 * findvar.c (address_from_register): Remove TYPE argument.
7165 Do not call value_from_register; use gdbarch_value_from_register
7166 with null_frame_id instead.
7167 * value.h (address_from_register): Update prototype.
7168 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7169 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7170 address_from_register interface change.
7172 2014-04-17 Yao Qi <yao@codesourcery.com>
7174 * gdbtypes.h: Update comments to link to types and macros'
7177 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7179 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7181 2014-04-16 Keith Seitz <keiths@redhat.com>
7184 * dwarf2read.c (skip_one_die): Check that all relative-offset
7185 sibling DIEs fall within range of the current reader's buffer.
7186 (read_partial_die): Likewise.
7188 2014-04-16 Keith Seitz <keiths@redhat.com>
7191 * cp-namespace.c (lookup_symbol_file): If the type name of
7192 `this' is NULL, return immediately.
7194 2014-04-14 Keith Seitz <keiths@redhat.com>
7197 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7198 from symbol_matches_domain in symtab.c. All local callers
7199 of symbol_matches_domain updated.
7200 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7201 search STRUCT_DOMAIN.
7202 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7203 independently. standard_lookup will do that automatically.
7204 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7205 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7206 (cp_lookup_symbol_in_namespace): Likewise.
7207 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7208 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7209 may return a STRUCT_DOMAIN match.
7210 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7211 * cp-support.c: Include language.h.
7212 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7214 * psymtab.c (match_partial_symbol): Compare the requested
7215 domain with the symbol's domain directly.
7216 (lookup_partial_symbol): Likewise.
7217 * symtab.c (lookup_symbol_in_language): Explain when/why
7218 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7219 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7220 appropriate languages.
7221 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7222 and moved to ada-lang.c
7223 (lookup_block_symbol): Explain that this function only returns
7224 symbol matching the requested DOMAIN.
7225 Compare the requested domain with the symbol's domain directly.
7226 (iterate_over_symbols): Compare the requested domain with the
7227 symbol's domain directly.
7228 * symtab.h (symbol_matches_domain): Remove.
7230 2014-04-14 Tom Tromey <tromey@redhat.com>
7233 * c-exp.y (type_aggregate_p): New function.
7234 (qualified_name, classify_inner_name): Use it.
7235 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7236 and TYPE_TARGET_TYPE of an enum type.
7237 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7239 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7240 handle TYPE_DECLARED_CLASS.
7241 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7243 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7244 * valops.c (enum_constant_from_type): New function.
7245 (value_aggregate_elt): Use it.
7246 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7249 2014-04-14 Tom Tromey <tromey@redhat.com>
7251 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7252 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7254 * value.h (value_aggregate_elt): Update.
7256 2014-04-14 Tom Tromey <tromey@redhat.com>
7258 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7260 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7262 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7263 (evaluate_subexp_standard): Pass noside argument.
7264 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7265 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7266 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7267 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7268 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7270 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7272 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7273 points to a constant blob.
7275 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7277 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7278 property and store it as the high bound and flag the range accordingly.
7279 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7280 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7281 * gdbtypes.h (enum range_flags): New enum.
7282 (struct range_bounds): Add flags member.
7284 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7286 * c-typeprint.c (c_type_print_varspec_suffix): Added
7287 check for not yet resolved high bound. If unresolved, print
7288 "variable length" string to the console instead of random
7291 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7293 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7295 (ada_template_to_fixed_record_type_1): Likewise.
7296 (ada_to_fixed_type_1): Likewise.
7297 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7298 (cp_print_value): Likewise.
7299 * d-valprint.c (dynamic_array_type): Likewise.
7300 * findvar.c (address_of_variable): Likewise.
7301 * jv-valprint.c (java_value_print): Likewise.
7302 * valops.c (value_ind): Likewise.
7303 * value.c (coerce_ref): Likewise.
7305 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7307 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7308 value and retrieve the dynamic type size.
7310 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7312 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7313 passed to sizeof is dynamic evaluate the argument to compute the length.
7315 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7316 Joel Brobecker <brobecker@adacore.com>
7318 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7319 (dwarf2_evaluate_property): New function.
7320 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7321 * dwarf2read.c (attr_to_dynamic_prop): New function.
7322 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7324 * gdbtypes.c: Include dwarf2loc.h.
7325 (is_dynamic_type): New function.
7326 (resolve_dynamic_type): New function.
7327 (resolve_dynamic_bounds): New function.
7328 (get_type_length): New function.
7329 (check_typedef): Use get_type_length to compute type length.
7330 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7331 (TYPE_LOW_BOUND_KIND): New macro.
7332 (is_dynamic_type): New function prototype.
7333 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7334 to resolve dynamic properties of the type. Update comment.
7335 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7337 2014-04-14 Richard Henderson <rth@redhat.com>
7339 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7341 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7342 Doug Evans <xdje42@gmail.com>
7344 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7345 dereference TYPE_CODE_REF values.
7347 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7349 Revert the following changes due to regressions:
7351 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7352 (dwarf2_evaluate_property): New function.
7353 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7354 * dwarf2read.c (attr_to_dynamic_prop): New function.
7355 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7357 * gdbtypes.c: Include dwarf2loc.h.
7358 (is_dynamic_type): New function.
7359 (resolve_dynamic_type): New function.
7360 (resolve_dynamic_bounds): New function.
7361 (get_type_length): New function.
7362 (check_typedef): Use get_type_length to compute type length.
7363 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7364 (TYPE_LOW_BOUND_KIND): New macro.
7365 (is_dynamic_type): New function prototype.
7366 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7367 to resolve dynamic properties of the type. Update comment.
7368 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7370 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7371 passed to sizeof is dynamic evaluate the argument to compute the length.
7373 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7374 value and retrieve the dynamic type size.
7376 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7377 (ada_template_to_fixed_record_type_1): Likewise.
7378 (ada_to_fixed_type_1): Likewise.
7379 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7380 (cp_print_value): Likewise.
7381 * d-valprint.c (dynamic_array_type): Likewise.
7382 * eval.c (evaluate_subexp_with_coercion): Likewise.
7383 * findvar.c (address_of_variable): Likewise.
7384 * jv-valprint.c (java_value_print): Likewise.
7385 * valops.c (value_ind): Likewise.
7386 * value.c (coerce_ref): Likewise.
7388 * c-typeprint.c (c_type_print_varspec_suffix): Added
7389 check for not yet resolved high bound. If unresolved, print
7390 "variable length" string to the console instead of random
7393 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7394 property and store it as the high bound and flag the range accordingly.
7395 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7396 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7397 * gdbtypes.h (enum range_flags): New enum.
7398 (struct range_bounds): Add flags member.
7400 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7401 points to a constant blob.
7403 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7404 (evaluate_subexp_standard): Pass noside argument.
7405 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7406 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7407 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7408 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7409 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7411 2014-04-11 Keith Seitz <keiths@redhat.com>
7414 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7415 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7418 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7420 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7421 (evaluate_subexp_standard): Pass noside argument.
7422 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7423 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7424 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7425 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7426 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7428 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7430 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7431 points to a constant blob.
7433 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7435 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7436 property and store it as the high bound and flag the range accordingly.
7437 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7438 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7439 * gdbtypes.h (enum range_flags): New enum.
7440 (struct range_bounds): Add flags member.
7442 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7444 * c-typeprint.c (c_type_print_varspec_suffix): Added
7445 check for not yet resolved high bound. If unresolved, print
7446 "variable length" string to the console instead of random
7449 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7451 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7452 (ada_template_to_fixed_record_type_1): Likewise.
7453 (ada_to_fixed_type_1): Likewise.
7454 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7455 (cp_print_value): Likewise.
7456 * d-valprint.c (dynamic_array_type): Likewise.
7457 * eval.c (evaluate_subexp_with_coercion): Likewise.
7458 * findvar.c (address_of_variable): Likewise.
7459 * jv-valprint.c (java_value_print): Likewise.
7460 * valops.c (value_ind): Likewise.
7461 * value.c (coerce_ref): Likewise.
7463 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7465 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7466 value and retrieve the dynamic type size.
7468 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7470 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7471 passed to sizeof is dynamic evaluate the argument to compute the length.
7473 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7475 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7476 (dwarf2_evaluate_property): New function.
7477 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7478 * dwarf2read.c (attr_to_dynamic_prop): New function.
7479 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7481 * gdbtypes.c: Include dwarf2loc.h.
7482 (is_dynamic_type): New function.
7483 (resolve_dynamic_type): New function.
7484 (resolve_dynamic_bounds): New function.
7485 (get_type_length): New function.
7486 (check_typedef): Use get_type_length to compute type length.
7487 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7488 (TYPE_LOW_BOUND_KIND): New macro.
7489 (is_dynamic_type): New function prototype.
7490 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7491 to resolve dynamic properties of the type. Update comment.
7492 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7494 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7496 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7497 declaring high/low bounds and change uses accordingly. Call
7498 create_range_type instead of create_static_range_type.
7499 * gdbtypes.c (create_range_type): New function.
7500 (create_range_type): Convert bounds into struct bound_prop and pass
7501 them to create_range_type.
7502 * gdbtypes.h (struct bound_prop): New struct.
7503 (create_range_type): New function prototype.
7504 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7505 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7506 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7508 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7510 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7512 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7513 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7514 * ada-lang.c: All uses of create_range_type updated.
7515 * coffread.c: All uses of create_range_type updated.
7516 * dwarf2read.c: All uses of create_range_type updated.
7517 * f-exp.y: All uses of create_range_type updated.
7518 * m2-valprint.c: All uses of create_range_type updated.
7519 * mdebugread.c: All uses of create_range_type updated.
7520 * stabsread.c: All uses of create_range_type updated.
7521 * valops.c: All uses of create_range_type updated.
7522 * valprint.c: All uses of create_range_type updated.
7524 2014-04-10 Pedro Alves <palves@redhat.com>
7526 * breakpoint.c (single_step_breakpoints)
7527 (single_step_gdbarch): Move up in the file.
7528 (one_breakpoint_xfer_memory): New function, factored out from ...
7529 (breakpoint_xfer_memory): ... here. Also process single-step
7532 2014-04-09 Tristan Gingold <gingold@adacore.com>
7534 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7536 (darwin_decode_exception_message): Free port only after use.
7538 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7540 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7541 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7542 when setting the size of call_length.
7544 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7546 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7547 dereference TYPE_CODE_REF values.
7549 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7551 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7552 end of warning message.
7554 2014-04-03 Doug Evans <dje@google.com>
7556 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7557 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7559 2014-04-02 Alan Modra <amodra@gmail.com>
7561 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7562 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7563 (struct symbol_file_add_from_memory_args): Add size field.
7564 (find_vdso_size): New function.
7565 (add_vsyscall_page): Attempt to find vdso size.
7567 2014-04-01 Doug Evans <dje@google.com>
7569 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7571 2014-04-01 Tristan Gingold <gingold@adacore.com>
7573 * darwin-nat.c (darwin_encode_reply): Add prototype.
7574 (darwin_decode_exception_message): Reply to unknown inferiors.
7575 (darwin_decode_message): Handle message by id. Ignore message
7576 to unknown inferior.
7577 (darwin_wait): Discard unknown messages, add debug trace.
7579 2014-03-31 Doug Evans <dje@google.com>
7581 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7584 2014-03-31 Doug Evans <dje@google.com>
7586 New option "set print symbol-loading".
7588 * solib.c (solib_read_symbols): Only print symbol loading messages
7590 (solib_add): If symbol loading is in "brief" mode, notify user
7591 symbols are being loaded.
7592 (reload_shared_libraries_1): Ditto.
7593 * symfile.c (print_symbol_loading_off): New static global.
7594 (print_symbol_loading_brief): New static global.
7595 (print_symbol_loading_full): New static global.
7596 (print_symbol_loading_enums): New static global.
7597 (print_symbol_loading): New static global.
7598 (print_symbol_loading_p): New function.
7599 (symbol_file_add_with_addrs): Only print symbol loading messages
7601 (_initialize_symfile): Register "print symbol-loading" set/show
7603 * symfile.h (print_symbol_loading_p): Declare.
7605 2014-03-30 Doug Evans <xdje42@gmail.com>
7607 * infrun.c (set_last_target_status): New function.
7608 (handle_inferior_event): Call it.
7610 2014-03-30 Doug Evans <xdje42@gmail.com>
7612 * inferior.h (enum stop_kind): Improve comment.
7614 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7616 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7617 a reference, strip the reference layer before calling
7618 the lang_ops value_has_mutated callback.
7620 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7622 Remove some globals from our parser.
7623 * language.c (unk_lang_parser): Add "struct parser_state"
7625 * language.h (struct language_defn) <la_parser>: Likewise.
7626 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7627 (initialize_expout): Add "struct parser_state" argument.
7628 Rewrite function to use the parser state.
7629 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7630 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7631 write_exp_elt_longcst, write_exp_elt_dblcst,
7632 write_exp_elt_decfloatcst, write_exp_elt_type,
7633 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7634 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7635 write_dollar_variable): Likewise.
7636 (parse_exp_in_context_1): Use parser state.
7637 (insert_type_address_space): Add "struct parser_state" argument.
7639 (increase_expout_size): New function.
7640 * parser-defs.h: Forward declare "struct language_defn" and
7641 "struct parser_state".
7642 (expout, expout_size, expout_ptr): Remove extern declarations.
7643 (parse_gdbarch, parse_language): Rewrite macro declarations to
7644 accept the parser state.
7645 (struct parser_state): New struct.
7646 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7647 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7648 write_exp_elt_decfloatcst, write_exp_elt_type,
7649 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7650 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7651 write_exp_msymbol, write_dollar_variable,
7652 mark_struct_expression, insert_type_address_space): Add "struct
7653 parser_state" argument.
7654 (increase_expout_size): New function.
7655 * utils.c (do_clear_parser_state): New function.
7656 (make_cleanup_clear_parser_state): Likewise.
7657 * utils.h (make_cleanup_clear_parser_state): New function
7659 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7660 Update calls to write_exp* in order to pass the parser state.
7661 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7662 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7663 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7664 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7665 * stap-probe.c (stap_parse_register_operand): Likewise.
7666 (stap_parse_single_operand): Likewise.
7667 (stap_parse_argument_1): Likewise.
7668 (stap_parse_argument): Use parser state.
7669 * stap-probe.h: Include "parser-defs.h".
7670 (struct stap_parse_info) <pstate>: New field.
7671 * c-exp.y (parse_type): Rewrite to use parser state.
7672 (yyparse): Redefine to c_parse_internal.
7673 (pstate): New global variable.
7674 (parse_number): Add "struct parser_state" argument.
7675 (write_destructor_name): Likewise.
7676 (type_exp): Update calls to write_exp* and similars in order to
7678 (exp1, exp, variable, qualified_name, space_identifier,
7679 typename, typebase): Likewise.
7680 (write_destructor_name, parse_number, lex_one_token,
7681 classify_name, classify_inner_name, c_parse): Add "struct
7682 parser_state" argument. Update function to use parser state.
7683 * c-lang.h: Forward declare "struct parser_state".
7684 (c_parse): Add "struct parser_state" argument.
7685 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7686 (yyparse): Redefine macro to ada_parse_internal.
7687 (pstate): New variable.
7688 (write_int, write_object_renaming, write_var_or_type,
7689 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7690 type_int, type_long, type_long_long, type_float, type_double,
7691 type_long_double, type_char, type_boolean, type_system_address):
7692 Add "struct parser_state" argument.
7693 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7694 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7695 var_or_type, aggregate, aggregate_component_list,
7696 positional_list, others, component_group,
7697 component_associations): Update calls to write_exp* and similar
7698 functions in order to use parser state.
7699 (ada_parse, write_var_from_sym, write_int,
7700 write_exp_op_with_string, write_object_renaming,
7701 find_primitive_type, write_selectors, write_ambiguous_var,
7702 write_var_or_type, write_name_assoc, type_int, type_long,
7703 type_long_long, type_float, type_double, type_long_double,
7704 type_char, type_boolean, type_system_address): Add "struct
7705 parser_state" argument. Adjust function to use parser state.
7706 * ada-lang.c (parse): Likewise.
7707 * ada-lang.h: Forward declare "struct parser_state".
7708 (ada_parse): Add "struct parser_state" argument.
7709 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7710 calls to both functions.
7711 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7713 (yyparse): Redefine macro to f_parse_internal.
7714 (pstate): New variable.
7715 (parse_number): Add "struct parser_state" argument.
7716 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7717 and similars in order to use parser state.
7718 (parse_number): Adjust code to use parser state.
7720 (f_parse): New function.
7721 * f-lang.h: Forward declare "struct parser_state".
7722 (f_parse): Add "struct parser_state" argument.
7723 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7725 (yyparse): Redefine macro for java_parse_internal.
7726 (pstate): New variable.
7727 (push_expression_name, push_expression_name, insert_exp): Add
7728 "struct parser_state" argument.
7729 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7730 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7731 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7732 PostIncrementExpression, PostDecrementExpression,
7733 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7734 UnaryExpressionNotPlusMinus, CastExpression,
7735 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7736 RelationalExpression, EqualityExpression, AndExpression,
7737 ExclusiveOrExpression, InclusiveOrExpression,
7738 ConditionalAndExpression, ConditionalOrExpression,
7739 ConditionalExpression, Assignment, LeftHandSide): Update
7740 calls to write_exp* and similars in order to use parser state.
7741 (parse_number): Ajust code to use parser state.
7743 (java_parse): New function.
7744 (push_variable): Add "struct parser_state" argument. Adjust
7745 code to user parser state.
7746 (push_fieldnames, push_qualified_expression_name,
7747 push_expression_name, insert_exp): Likewise.
7748 * jv-lang.h: Forward declare "struct parser_state".
7749 (java_parse): Add "struct parser_state" argument.
7750 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7752 (yyparse): Redefine macro to m2_parse_internal.
7753 (pstate): New variable.
7754 (type_exp, exp, fblock, variable, type): Update calls to
7755 write_exp* and similars to use parser state.
7757 (m2_parse): New function.
7758 * m2-lang.h: Forward declare "struct parser_state".
7759 (m2_parse): Add "struct parser_state" argument.
7760 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7761 * objc-lang.h: Forward declare "struct parser_state".
7762 (end_msglist): Add "struct parser_state" argument.
7763 * p-exp.y (parse_type): Rewrite macro to use parser state.
7764 (yyparse): Redefine macro to pascal_parse_internal.
7765 (pstate): New variable.
7766 (parse_number): Add "struct parser_state" argument.
7767 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7768 write_exp* and similars in order to use parser state.
7769 (parse_number, yylex): Adjust code to use parser state.
7770 (pascal_parse): New function.
7771 * p-lang.h: Forward declare "struct parser_state".
7772 (pascal_parse): Add "struct parser_state" argument.
7773 * go-exp.y (parse_type): Rewrite macro to use parser state.
7774 (yyparse): Redefine macro to go_parse_internal.
7775 (pstate): New variable.
7776 (parse_number): Add "struct parser_state" argument.
7777 (type_exp, exp1, exp, variable, type): Update calls to
7778 write_exp* and similars in order to use parser state.
7779 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7780 to use parser state.
7781 (go_parse): Likewise.
7782 * go-lang.h: Forward declare "struct parser_state".
7783 (go_parse): Add "struct parser_state" argument.
7785 2014-03-27 Doug Evans <dje@google.com>
7787 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7789 2014-03-27 Doug Evans <dje@google.com>
7791 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7792 Remove argument abbrev_section. All callers updated.
7794 2014-03-27 Doug Evans <dje@google.com>
7796 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7797 addr_base, ranges_base.
7799 2014-03-26 Keith Seitz <keiths@redhat.com>
7801 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7802 types, not VAR_DOMAIN.
7804 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7806 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7808 * features/nios2-linux.c: Regenerated.
7809 * features/nios2.c: Regenerated.
7811 2014-03-25 Pedro Alves <palves@redhat.com>
7813 * cli/cli-script.c (script_from_file): Force the interpreter to
7816 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7818 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7819 small stack allocation.
7821 2014-03-24 Tristan Gingold <gingold@adacore.com>
7823 * darwin-nat.c (exc_server): Remove unused prototype.
7824 (darwin_dump_message): Correctly display data on x86_64.
7825 (darwin_encode_reply): Fix style.
7826 Add comments and fix indentation.
7828 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7830 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7832 2014-03-22 Doug Evans <xdje42@gmail.com>
7834 * infcmd.c: Whitespace fixes.
7835 (interrupt_command): Merge two function comments into one.
7837 2014-03-22 Doug Evans <xdje42@gmail.com>
7839 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7842 2014-03-22 Yao Qi <yao@codesourcery.com>
7844 * remote.c (target_read_live_memory): Remove.
7845 (memory_xfer_live_readonly_partial): Rename it to
7846 remote_xfer_live_readonly_partial. Remove argument 'object'.
7847 All callers updated. Call remote_read_bytes_1
7848 instead of target_read_live_memory.
7849 * tracepoint.c (set_traceframe_number): Remove.
7850 (make_cleanup_restore_traceframe_number): Likewise .
7851 * tracepoint.h (set_traceframe_number): Remove declaration.
7852 (make_cleanup_restore_traceframe_number): Likewise.
7854 2014-03-22 Yao Qi <yao@codesourcery.com>
7856 * remote.c (remote_read_bytes): Move code on reading from the
7858 (remote_read_bytes_1): ... here. New function.
7860 2014-03-22 Yao Qi <yao@codesourcery.com>
7862 * ctf.c (ctf_xfer_partial): Check the return value of
7863 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7864 return TARGET_XFER_UNAVAILABLE.
7865 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7866 * target.c (target_read_live_memory): Move it to remote.c.
7867 (memory_xfer_live_readonly_partial): Likewise.
7868 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7869 * remote.c (target_read_live_memory): Moved from target.c.
7870 (memory_xfer_live_readonly_partial): Likewise.
7871 (remote_read_bytes): Factored out from
7872 memory_xfer_partial_1.
7874 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7876 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7879 2014-03-21 Pedro Alves <palves@redhat.com>
7881 * infrun.c (normal_stop): Extend comment.
7883 2014-03-21 Hui Zhu <hui@codesourcery.com>
7884 Pedro Alves <palves@redhat.com>
7886 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7888 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7889 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7890 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7892 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7894 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7895 `z' formatted output modifier.
7897 2014-03-20 Tom Tromey <tromey@redhat.com>
7898 Sergio Durigan Junior <sergiodj@redhat.com>
7900 * probe.c (parse_probes): Turn assert into an ordinary error.
7901 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7902 exceptions when parsing probes. Rearrange the code for clarity.
7904 2014-03-20 Tom Tromey <tromey@redhat.com>
7907 * top.c (execute_command): Only dispatch events if the command
7910 2014-03-20 Tom Tromey <tromey@redhat.com>
7913 * infcall.c: Include event-top.h.
7914 (run_inferior_call): Call async_disable_stdin if needed.
7916 2014-03-20 Pedro Alves <palves@redhat.com>
7918 * infrun.c (prepare_to_proceed): Delete.
7919 (thread_still_needs_step_over): New function.
7920 (find_thread_needs_step_over): New function.
7921 (proceed): If the current thread needs a step-over, set its
7922 steping_over_breakpoint flag. Adjust to use
7923 find_thread_needs_step_over instead of prepare_to_proceed.
7924 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7925 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7927 (switch_back_to_stepped_thread): Step over breakpoints of all
7928 threads not the stepping thread, before switching back to the
7931 2014-03-20 Pedro Alves <palves@redhat.com>
7933 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7935 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7936 * infrun.c (saved_singlestep_ptid)
7937 (stepping_past_singlestep_breakpoint): Delete.
7938 (resume): Remove stepping_past_singlestep_breakpoint handling.
7939 (proceed): Store the prev_pc of the stepping thread too.
7940 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7942 (enum infwait_states): Delete infwait_thread_hop_state.
7943 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7945 (handle_inferior_event): Adjust.
7946 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7947 handling and the thread-hop code. Before removing single-step
7948 breakpoints, check whether the thread hit a single-step breakpoint
7949 of another thread. If it did, the trap is not a random signal.
7950 (switch_back_to_stepped_thread): If the event thread hit a
7951 single-step breakpoint, unblock it before switching to the
7952 stepping thread. Handle the case of the stepped thread having
7954 (keep_going): Handle the case of the current thread moving past a
7955 single-step breakpoint.
7957 2014-03-20 Pedro Alves <palves@redhat.com>
7960 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7961 are being stepped over.
7962 (breakpoint_address_match): Make extern.
7963 * breakpoint.h (breakpoint_address_match): New declaration.
7964 * inferior.h (stepping_past_instruction_at): New declaration.
7965 * infrun.c (struct step_over_info): New type.
7966 (step_over_info): New global.
7967 (set_step_over_info, clear_step_over_info)
7968 (stepping_past_instruction_at): New functions.
7969 (handle_inferior_event): Clear the step-over info when
7970 trap_expected is cleared.
7971 (resume): Remove now stale comment.
7972 (clear_proceed_status): Clear step-over info.
7973 (proceed): Adjust step-over handling to set or clear the step-over
7974 info instead of removing all breakpoints.
7975 (handle_signal_stop): When setting up a thread-hop, don't remove
7977 (stop_stepping): Clear step-over info.
7978 (keep_going): Adjust step-over handling to set or clear step-over
7979 info and then always inserting breakpoints, instead of removing
7980 all breakpoints when stepping over one.
7982 2014-03-20 Pedro Alves <palves@redhat.com>
7984 * infrun.c (previous_inferior_ptid): Adjust comment.
7985 (deferred_step_ptid): Delete.
7986 (infrun_thread_ptid_changed, prepare_to_proceed)
7987 (init_wait_for_inferior): Adjust.
7988 (handle_signal_stop): Delete deferred_step_ptid handling.
7990 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7993 * defs.h (sync_quit_force_run): New declaration.
7994 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7995 * event-top.c (async_sigterm_handler): New declaration.
7996 (async_sigterm_token): New variable.
7997 (async_init_signals): Create also async_sigterm_token.
7998 (async_sigterm_handler): New function.
7999 (sync_quit_force_run): New variable.
8000 (handle_sigterm): Replace quit_force call by other calls.
8001 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8003 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8005 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8006 offset into SPE pseudo registers.
8008 2014-03-18 Pedro Alves <palves@redhat.com>
8011 * inferior.h (print_stop_event): Declare.
8012 * infrun.c (print_stop_event): New, factored out from ...
8013 (normal_stop): ... this.
8014 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8015 of bpstat_print/print_stack_frame.
8017 2014-03-17 Tom Tromey <tromey@redhat.com>
8019 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8021 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8023 * ada-lang.c (decode_constrained_packed_array): Perform a
8024 minimal coercion for reference with coerce_ref instead of
8027 2014-03-17 Tristan Gingold <gingold@adacore.com>
8029 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8030 (darwin_solib_create_inferior_hook): Emit a warning if version
8033 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8035 * python/py-value.c (get_field_flag): Cast flag_name argument to
8036 PyObject_GetAttrString to support Python 2.4.
8038 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8040 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8041 (Global Maintainers): Remove Jan Kratochvil.
8043 2014-03-14 Pedro Alves <palves@redhat.com>
8045 * inferior.h (terminal_ours_for_output): Rename to ...
8046 (child_terminal_ours_for_output): ... this.
8047 (terminal_save_ours): Rename to ...
8048 (child_terminal_save_ours): ... this.
8049 (terminal_ours): Rename to ...
8050 (child_terminal_ours): ... this.
8051 (terminal_inferior): Rename to ...
8052 (child_terminal_inferior): ... this.
8053 (terminal_init_inferior): Rename to ...
8054 (child_terminal_init_inferior): ... this.
8055 (terminal_init_inferior_with_pgrp): Rename to ...
8056 (child_terminal_init_inferior_with_pgrp): ... this.
8057 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8058 (child_terminal_init_with_pgrp): ... this.
8059 (terminal_save_ours): Rename to ...
8060 (child_terminal_save_ours): ... this.
8061 (terminal_init_inferior): Rename to ...
8062 (child_terminal_init): ... this. Adjust.
8063 (terminal_inferior): Rename to ...
8064 (child_terminal_inferior): ... this.
8065 (terminal_ours_for_output): Rename to ...
8066 (child_terminal_ours_for_output): ... this. Adjust.
8067 (terminal_ours): Rename to ...
8068 (child_terminal_ours): ... this.
8069 (terminal_ours_1): Rename to ...
8070 (child_terminal_ours_1): ... this. Adjust.
8071 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8072 * windows-nat.c (do_initial_windows_stuff): Adjust.
8073 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8074 (gnu_terminal_init): ... this. Adjust.
8075 (gnu_target): Adjust.
8076 * inf-child.c (inf_child_target): Adjust.
8078 2014-03-13 Doug Evans <xdje42@gmail.com>
8081 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8084 2014-03-13 Doug Evans <xdje42@gmail.com>
8086 * value.c (record_latest_value): Call release_value_or_incref
8087 instead of release_value.
8089 2014-03-13 Pedro Alves <palves@redhat.com>
8091 * procfs.c (procfs_target): Don't override to_shortname,
8092 to_longname or to_doc.
8094 2014-03-13 Pedro Alves <palves@redhat.com>
8096 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8097 Unix in user visible strings.
8099 2014-03-12 Stan Shebs <stan@codesourcery.com>
8101 * gdbtypes.h: Annotate comments for Doxygen, add a page
8102 block comment with some general info.
8104 2014-03-12 Pedro Alves <palves@redhat.com>
8106 * infcmd.c (prepare_execution_command): New function, factored out
8107 from several execution commands.
8108 (run_command_1, continue_command, step_1, jump_command)
8109 (signal_command, until_command, advance_command, finish_command)
8110 (attach_command): Use prepare_execution_command.
8112 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8114 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8117 (struct arm_linux_thread_points): Removed.
8118 (struct arm_linux_process_info): New.
8119 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8120 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8121 (arm_linux_find_breakpoints_by_tid): Removed.
8122 (struct arch_lwp_info): New.
8123 (arm_linux_find_process_pid): New functions.
8124 (arm_linux_add_process): New functions.
8125 (arm_linux_process_info_get): New functions.
8126 (arm_linux_forget_process): New function.
8127 (arm_linux_get_debug_reg_state): New function.
8128 (struct update_registers_data): New.
8129 (update_registers_callback): New function.
8130 (arm_linux_insert_hw_breakpoint1): Updated.
8131 (arm_linux_remove_hw_breakpoint1): Updated.
8132 (arm_linux_insert_hw_breakpoint): Updated.
8133 (arm_linux_remove_hw_breakpoint): Updated.
8134 (arm_linux_insert_watchpoint): Updated.
8135 (arm_linux_remove_watchpoint): Updated.
8136 (arm_linux_new_thread): Updated.
8137 (arm_linux_prepare_to_resume): New function.
8138 (arm_linux_new_fork): New function.
8139 (_initialize_arm_linux_nat): Updated.
8141 2014-03-12 Pedro Alves <palves@redhat.com>
8143 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8145 2014-03-12 Tom Tromey <tromey@redhat.com>
8147 * inf-child.c (return_zero): New function.
8148 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8149 * aix-thread.c (aix_thread_inferior_created): New function.
8150 (aix_thread_attach): Remove.
8151 (init_aix_thread_ops): Don't set to_attach.
8152 (_initialize_aix_thread): Register inferior_created observer.
8153 * corelow.c (init_core_ops): Don't set to_attach or
8155 * exec.c (init_exec_ops): Don't set to_attach or
8157 * infcmd.c (run_command_1): Use find_run_target. Make direct
8159 (attach_command): Use find_attach_target. Make direct target
8161 * record-btrace.c (init_record_btrace_ops): Don't set
8163 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8165 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8166 set to_create_inferior.
8167 * target.c (complete_target_initialization): Add assertion.
8168 (target_create_inferior): Remove.
8169 (find_default_attach, find_default_create_inferior): Remove.
8170 (find_attach_target, find_run_target): New functions.
8171 (find_default_is_async_p, find_default_can_async_p)
8172 (target_supports_non_stop, target_attach): Remove.
8173 (init_dummy_target): Don't set to_create_inferior or
8174 to_supports_non_stop.
8175 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8176 TARGET_DEFAULT_FUNC.
8177 <to_create_inferior>: Add comment.
8178 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8179 TARGET_DEFAULT_RETURN.
8180 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8181 (find_attach_target, find_run_target): Declare.
8182 (target_create_inferior): Remove.
8183 (target_has_execution_1): Update comment.
8184 (target_supports_non_stop): Remove.
8185 * target-delegates.c: Rebuild.
8187 2014-03-12 Pedro Alves <palves@redhat.com>
8189 * inf-child.h: Update comment to not mention Unix.
8191 2014-03-12 Pedro Alves <palves@redhat.com>
8193 * inf-child.c: Update top comment to not mention Unix. Add
8194 generic comment describing how this target is meant to be used.
8195 (inf_child_post_attach, inf_child_post_startup_inferior)
8196 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8199 2014-03-12 Pedro Alves <palves@redhat.com>
8201 * nto-procfs.c: Include inf-child.h.
8202 (procfs_ops): Delete global.
8203 (procfs_can_run): Delete method.
8204 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8205 target pointer instead of referencing procfs_ops.
8206 (procfs_prepare_to_store): Delete.
8207 (init_procfs_ops): Delete function.
8208 (procfs_target): New function, based on init_procfs_ops, but
8209 inherit inf_child_target.
8210 (_initialize_procfs): Use procfs_target.
8212 2014-03-12 Pedro Alves <palves@redhat.com>
8214 * windows-nat.c: Include inf-child.h.
8215 (windows_ops): Delete global.
8216 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8218 (init_windows_ops): Delete function.
8219 (windows_target): New function, based on init_windows_ops, but
8220 inherit inf_child_target.
8221 (_initialize_windows_nat): Use windows_target. Install x86
8222 specific target methods here.
8224 2014-03-10 Doug Evans <xdje42@gmail.com>
8226 * guile/guile.c (call_initialize_gdb_module): New function.
8227 (initialize_guile): Replace call to scm_init_guile with call to
8230 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8232 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8233 in call to TYPE_CODE macro.
8235 2014-03-10 Jerome Guitton <guitton@adacore.com>
8237 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8238 Resolve tagged types to full view.
8240 2014-03-10 Hui Zhu <hui@codesourcery.com>
8242 * target.h (target_insert_breakpoint): Remove "hardware" from its
8245 2014-03-07 Doug Evans <dje@google.com>
8247 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8249 2014-03-07 Doug Evans <dje@google.com>
8251 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8252 Remove unused local comp_dir_attr. Assert exactly one of
8253 stub_comp_unit_die, stub_comp_dir is non-NULL.
8255 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8257 * target.h (complete_target_initialization, add_target):
8260 2014-03-07 Pedro Alves <palves@redhat.com>
8262 * go32-nat.c: Include inf-child.h.
8263 (go32_ops): Delete global.
8264 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8266 (go32_create_inferior): Push the passed in target pointer instead
8267 of referencing go32_ops.
8268 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8269 (go32_target): New function, based on init_go32_ops, but inherit
8271 (_initialize_go32_nat): Use go32_target. Move parts of
8274 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8276 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8277 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8278 SYMBOL_VALUE_ADDRESS.
8279 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8281 2014-03-06 Yao Qi <yao@codesourcery.com>
8283 * breakpoint.c (get_tracepoint_by_number): Remove argument
8284 optional_p. All callers updated. Adjust comments. Update
8286 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8288 2014-03-06 Yao Qi <yao@codesourcery.com>
8290 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8291 early if get_number returns zero. Use 'p' instead of 'args'.
8293 2014-03-06 Yao Qi <yao@codesourcery.com>
8295 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8298 2014-03-06 Yao Qi <yao@codesourcery.com>
8300 PR breakpoints/16508
8301 * tracepoint.c (check_trace_running): New function.
8302 (trace_find_command): Move code to check_trace_running and
8303 call check_trace_running.
8304 (trace_find_pc_command): Likewise.
8305 (trace_find_tracepoint_command): Likewise.
8306 (trace_find_line_command): Likewise.
8307 (trace_find_range_command): Likewise.
8308 * tracepoint.h (check_trace_running): Likewise.
8309 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8311 2014-03-06 Yao Qi <yao@codesourcery.com>
8313 * target.h (struct target_ops) <to_traceframe_info>: Use
8314 TARGET_DEFAULT_NORETURN (tcomplain ()).
8315 * target-delegates.c: Regenerated.
8317 2014-03-05 Pedro Alves <palves@redhat.com>
8320 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8321 void. Update comment.
8322 (dcache_xfer_memory): Delete.
8323 (dcache_read_memory_partial): New, based on the read bits of
8325 (dcache_update): Add status parameter. Use ULONGEST for len, and
8326 adjust. Discard cache lines if the reason for the update was
8328 * dcache.h (dcache_xfer_memory): Delete declaration.
8329 (dcache_read_memory_partial): New declaration.
8330 (dcache_update): Update prototype.
8331 * target.c (raw_memory_xfer_partial): Update the dcache here.
8332 (memory_xfer_partial_1): Don't handle dcache writes here.
8334 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8336 * remote-sim.c (gdbsim_load): Add const to prog.
8338 2014-03-03 Tom Tromey <tromey@redhat.com>
8340 * elfread.c (probe_key): Change to bfd_data.
8341 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8342 now per-BFD, not per-objfile.
8343 * stap-probe.c (stap_probe_destroy): Update comment.
8344 (handle_stap_probe): Allocate on the per-BFD obstack.
8346 2014-03-03 Tom Tromey <tromey@redhat.com>
8348 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8349 * breakpoint.c (create_longjmp_master_breakpoint): Use
8351 (add_location_to_breakpoint, bkpt_probe_insert_location)
8352 (bkpt_probe_remove_location): Update.
8353 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8354 * elfread.c (elf_symfile_relocate_probe): Remove.
8355 (elf_probe_fns): Update.
8356 (insert_exception_resume_breakpoint): Change type of "probe"
8357 parameter to bound_probe.
8358 (check_exception_resume): Update.
8359 * objfiles.c (objfile_relocate1): Don't relocate probes.
8360 * probe.c (bound_probe_s): New typedef.
8361 (parse_probes): Use get_probe_address. Set sal's objfile.
8362 (find_probe_by_pc): Return a bound_probe.
8363 (collect_probes): Return a VEC(bound_probe_s).
8364 (compare_probes): Update.
8365 (gen_ui_out_table_header_info): Change type of "probes"
8367 (info_probes_for_ops): Update.
8368 (get_probe_address): New function.
8369 (probe_safe_evaluate_at_pc): Update.
8370 * probe.h (struct probe_ops) <get_probe_address>: New field.
8371 <set_semaphore, clear_semaphore>: Add objfile parameter.
8372 (struct probe) <objfile>: Remove field.
8374 <address>: Update comment.
8375 (struct bound_probe): New.
8376 (find_probe_by_pc): Return a bound_probe.
8377 (get_probe_address): Declare.
8378 * solib-svr4.c (struct probe_and_action) <address>: New field.
8379 (hash_probe_and_action, equal_probe_and_action): Update.
8380 (register_solib_event_probe): Add address parameter.
8381 (solib_event_probe_at): Update.
8382 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8384 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8385 (stap_get_probe_address): New function.
8386 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8387 (compile_probe_arg): Update.
8388 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8390 (handle_stap_probe): Don't relocate the probe.
8391 (stap_relocate): Remove.
8392 (stap_gen_info_probes_table_values): Update.
8393 (stap_probe_ops): Remove stap_relocate.
8394 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8395 (debug_sym_probe_fns): Update.
8396 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8397 * symtab.c (init_sal): Use memset.
8398 * symtab.h (struct symtab_and_line) <objfile>: New field.
8399 * tracepoint.c (start_tracing, stop_tracing): Update.
8401 2014-03-03 Tom Tromey <tromey@redhat.com>
8403 * probe.h (parse_probes, find_probe_by_pc)
8404 (find_probes_in_objfile): Fix comments.
8406 2014-03-02 Doug Evans <xdje42@gmail.com>
8408 * infrun.c (handle_signal_stop): Replace test for
8409 TARGET_WAITKIND_STOPPED with an assert.
8411 2014-03-02 Doug Evans <xdje42@gmail.com>
8413 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8415 2014-03-02 Doug Evans <xdje42@gmail.com>
8417 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8419 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8421 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8423 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8425 * i386obsd-nat.c: Include "obsd-nat.h".
8426 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8428 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8430 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8432 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8434 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8436 * mips64obsd-nat.c: Include "obsd-nath".
8437 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8439 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8441 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8443 * amd64obsd-nat.c: Include "obsd-nat,h.
8444 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8446 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8448 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8450 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8451 (find_overload_match): Update call to find_oload_champ.
8452 (find_oload_champ_namespace_loop): Likewise
8454 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8456 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8458 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8459 * config/sparc/obsd64.mh: New file.
8460 * sparc64obsd-nat.c: New file.
8462 * obsd-nat.h: New file.
8463 * obsd-nat.c: New file.
8464 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8465 (ALLDEPFILES): Add obsd-nat.c.
8467 2014-02-28 Tom Tromey <tromey@redhat.com>
8469 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8470 * cli-out.h (cli_ui_out_impl): Now const.
8471 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8472 * ui-out.c (struct ui_out) <impl>: Now const.
8473 (default_ui_out_impl): Now const.
8474 (ui_out_new): Make 'impl' parameter const.
8475 * ui-out.h (ui_out_new): Update.
8477 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8479 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8481 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8483 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8485 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8487 Additional PR 8882 fix.
8488 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8490 2014-02-27 Pedro Alves <palves@redhat.com>
8492 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8495 2014-02-27 Pedro Alves <palves@redhat.com>
8498 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8499 * nat/linux-waitpid.c: Include string.h.
8500 (status_to_str): Moved here and made extern.
8501 * nat/linux-waitpid.h (status_to_str): New declaration.
8503 2014-02-27 Hui Zhu <hui@codesourcery.com>
8506 * infrun.c (ptid_match): Move ...
8507 * common/ptid.c (ptid_match): ... here.
8508 * inferior.h (ptid_match): Move ...
8509 * common/ptid.h (ptid_match): ... here.
8511 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8513 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8514 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8517 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8519 * obsd-tdep.c (obsd_auxv_parse): New function.
8520 (obsd_init_abi): Set auxv_parse.
8522 * gdbarch.sh (auxv_parse): New.
8523 * gdbarch.h: Regenerated.
8524 * gdbarch.c: Regenerated.
8525 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8527 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8529 * guile/scm-value.c (gdbscm_history_append_x): New function.
8530 (value_functions): Add it.
8532 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8534 * dwarf2read.c (attr_value_as_address): New function.
8535 (dwarf2_find_base_address, read_call_site_scope): Use
8536 attr_value_as_address in place of DW_ADDR.
8537 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8538 the low and high addresses. Slight rework of the handling
8539 of the high pc being a constant form, and limit it to
8540 DWARF verson 4 or higher.
8541 (dwarf2_record_block_ranges): Likewise.
8542 (read_partial_die): Likewise.
8543 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8545 2014-02-26 Tom Tromey <tromey@redhat.com>
8547 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8549 2014-02-26 Tom Tromey <tromey@redhat.com>
8551 * elfread.c (elf_read_minimal_symbols): Return early if
8552 minimal symbols have already been read. Add "ei" parameter.
8553 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8554 * minsyms.c (prim_record_minimal_symbol_full): Update.
8555 * objfiles.h (struct objstats) <n_minsyms>: Move...
8556 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8557 * symmisc.c (print_objfile_statistics): Update.
8559 2014-02-26 Tom Tromey <tromey@redhat.com>
8561 * elfread.c (elf_read_minimal_symbols): New function, from
8563 (elf_symfile_read): Call it.
8565 2014-02-26 Tom Tromey <tromey@redhat.com>
8567 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8568 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8569 (lookup_minimal_symbol_solib_trampoline)
8570 (lookup_minimal_symbol_by_pc_section_1)
8571 (lookup_minimal_symbol_and_objfile): Update.
8572 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8573 Don't allocate a minimal symbol if minsyms have already been read.
8574 (build_minimal_symbol_hash_tables): Update.
8575 (install_minimal_symbols): Do nothing if minsyms already read.
8576 Use the per-BFD obstack.
8577 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8578 * objfiles.c (allocate_objfile): Call
8579 terminate_minimal_symbol_table later.
8580 (have_minimal_symbols): Update.
8581 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8582 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8583 Move from struct objfile.
8584 <minsyms_read>: New field.
8585 (struct objfile) <msymbols, minimal_symbol_count,
8586 msymbol_hash, msymbol_demangled_hash>: Move.
8587 (ALL_OBJFILE_MSYMBOLS): Update.
8588 * symfile.c (read_symbols): Set minsyms_read.
8589 (reread_symbols): Update.
8590 * symmisc.c (dump_objfile, dump_msymbols): Update.
8592 2014-02-26 Tom Tromey <tromey@redhat.com>
8594 * minsyms.c (msymbols_sort): Remove.
8595 * minsyms.h (msymbols_sort): Remove.
8596 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8597 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8598 * elfread.c (elf_symtab_read): Don't add section offsets.
8599 * xcoffread.c (record_minimal_symbol): Don't add section offset
8600 to minimal symbol address.
8601 * somread.c (text_offset, data_offset): Remove.
8602 (som_symtab_read): Don't add section offsets to minimal symbol
8604 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8605 Don't add section offsets to minimal symbols.
8606 * coffread.c (coff_symtab_read): Don't add section offsets
8607 to minimal symbol addresses.
8608 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8609 to minimal symbol addresses.
8610 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8611 section offset to minimal symbol addresses.
8612 * mdebugread.c (parse_partial_symbols): Don't add section
8613 offset to minimal symbol addresses.
8614 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8615 offset to minimal symbol addresses.
8617 2014-02-26 Tom Tromey <tromey@redhat.com>
8619 * ada-lang.c (ada_main_name): Update.
8620 (ada_add_standard_exceptions): Update.
8621 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8622 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8623 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8624 * auxv.c (ld_so_xfer_auxv): Update.
8625 * avr-tdep.c (avr_scan_prologue): Update.
8626 * ax-gdb.c (gen_var_ref): Update.
8627 * blockframe.c (get_pc_function_start)
8628 (find_pc_partial_function_gnu_ifunc): Update.
8629 * breakpoint.c (create_overlay_event_breakpoint)
8630 (create_longjmp_master_breakpoint)
8631 (create_std_terminate_master_breakpoint)
8632 (create_exception_master_breakpoint): Update.
8633 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8634 * c-valprint.c (c_val_print): Update.
8635 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8636 * common/agent.c (agent_look_up_symbols): Update.
8637 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8638 * dwarf2loc.c (call_site_to_target_addr): Update.
8639 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8640 * elfread.c (elf_gnu_ifunc_record_cache)
8641 (elf_gnu_ifunc_resolve_by_got): Update.
8642 * findvar.c (default_read_var_value): Update.
8643 * frame.c (inside_main_func): Update.
8644 * frv-tdep.c (frv_frame_this_id): Update.
8645 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8646 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8648 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8649 (hppa_hpux_find_dummy_bpaddr): Update.
8650 * hppa-tdep.c (hppa_symbol_address): Update.
8651 * infcmd.c (until_next_command): Update.
8652 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8654 * linespec.c (minsym_found, add_minsym): Update.
8655 * linux-nat.c (get_signo): Update.
8656 * linux-thread-db.c (inferior_has_bug): Update.
8657 * m32c-tdep.c (m32c_return_value)
8658 (m32c_m16c_address_to_pointer): Update.
8659 * m32r-tdep.c (m32r_frame_this_id): Update.
8660 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8661 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8662 * maint.c (maintenance_translate_address): Update.
8663 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8664 (frob_address): New function.
8665 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8666 frob_address. Rename parameter to "pc_in".
8667 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8669 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8671 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8672 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8673 * objc-lang.c (find_objc_msgsend): Update.
8674 * objfiles.c (objfile_relocate1): Update.
8675 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8676 * p-valprint.c (pascal_val_print): Update.
8677 * parse.c (write_exp_msymbol): Update.
8678 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8679 (ppc_elfv2_skip_entrypoint): Update.
8680 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8681 * printcmd.c (build_address_symbolic, msym_info)
8682 (address_info): Update.
8683 * proc-service.c (ps_pglobal_lookup): Update.
8684 * psymtab.c (find_pc_sect_psymtab_closer)
8685 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8686 Change msymbol parameter to bound_minimal_symbol.
8687 * ravenscar-thread.c (get_running_thread_id): Update.
8688 * remote.c (remote_check_symbols): Update.
8689 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8691 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8692 * solib-dsbt.c (lm_base): Update.
8693 * solib-frv.c (lm_base, main_got): Update.
8694 * solib-irix.c (locate_base): Update.
8695 * solib-som.c (som_solib_create_inferior_hook)
8696 (link_map_start): Update.
8697 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8698 * solib-svr4.c (elf_locate_base, enable_break): Update.
8699 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8700 (flush_ea_cache): Update.
8701 * stabsread.c (define_symbol, scan_file_globals): Update.
8702 * stack.c (find_frame_funname): Update.
8703 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8704 (debug_qf_find_pc_sect_symtab): Update.
8705 * symfile.c (simple_read_overlay_table)
8706 (simple_overlay_update): Update.
8707 * symfile.h (struct quick_symbol_functions)
8708 <find_pc_sect_symtab>: Change type of msymbol to
8709 bound_minimal_symbol.
8710 * symmisc.c (dump_msymbols): Update.
8711 * symtab.c (find_pc_sect_symtab_via_partial)
8712 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8713 (search_symbols, print_msymbol_info): Update.
8714 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8715 (MSYMBOL_VALUE_ADDRESS): Redefine.
8716 (BMSYMBOL_VALUE_ADDRESS): New macro.
8717 * tracepoint.c (scope_info): Update.
8718 * tui/tui-disasm.c (tui_find_disassembly_address)
8719 (tui_get_begin_asm_address): Update.
8720 * valops.c (find_function_in_inferior): Update.
8721 * value.c (value_static_field, value_fn_field): Update.
8723 2014-02-26 Tom Tromey <tromey@redhat.com>
8725 * ada-lang.c (ada_update_initial_language): Update.
8726 (ada_main_name, ada_has_this_exception_support): Update.
8727 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8728 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8729 * arm-tdep.c (arm_skip_stub): Update.
8730 * auxv.c (ld_so_xfer_auxv): Update.
8731 * avr-tdep.c (avr_scan_prologue): Update.
8732 * ax-gdb.c (gen_var_ref): Update.
8733 * breakpoint.c (struct breakpoint_objfile_data)
8734 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8735 type to bound_minimal_symbol.
8736 (create_overlay_event_breakpoint)
8737 (create_longjmp_master_breakpoint)
8738 (create_std_terminate_master_breakpoint)
8739 (create_exception_master_breakpoint): Update.
8740 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8741 * c-exp.y (classify_name): Update.
8742 * coffread.c (coff_symfile_read): Update.
8743 * common/agent.c (agent_look_up_symbols): Update.
8744 * d-lang.c (d_main_name): Update.
8745 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8746 * dec-thread.c (enable_dec_thread): Update.
8747 * dwarf2loc.c (call_site_to_target_addr): Update.
8748 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8749 * eval.c (evaluate_subexp_standard): Update.
8750 * findvar.c (struct minsym_lookup_data) <result>: Change type
8751 to bound_minimal_symbol.
8753 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8754 * frame.c (inside_main_func): Update.
8755 * frv-tdep.c (frv_frame_this_id): Update.
8756 * gcore.c (call_target_sbrk): Update.
8757 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8758 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8760 * go-lang.c (go_main_name): Update.
8761 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8762 (hppa_hpux_find_import_stub_for_addr): Update.
8763 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8764 Update. Change return type.
8765 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8767 * jit.c (jit_breakpoint_re_set_internal): Update.
8768 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8770 * linux-nat.c (get_signo): Update.
8771 * linux-thread-db.c (inferior_has_bug): Update
8772 * m32c-tdep.c (m32c_return_value)
8773 (m32c_m16c_address_to_pointer): Update.
8774 * m32r-tdep.c (m32r_frame_this_id): Update.
8775 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8776 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8777 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8778 lookup_minimal_symbol. Change return type.
8779 (lookup_minimal_symbol): Remove.
8780 (lookup_bound_minimal_symbol): Update.
8781 (lookup_minimal_symbol_text): Change return type.
8782 (lookup_minimal_symbol_solib_trampoline): Change return type.
8783 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8784 (lookup_minimal_symbol_solib_trampoline): Change return type.
8785 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8786 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8787 (value_nsstring, find_imps): Update.
8788 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8789 * p-lang.c (pascal_main_name): Update.
8790 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8791 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8792 * proc-service.c (ps_pglobal_lookup): Update.
8793 * ravenscar-thread.c (get_running_thread_msymbol): Change
8795 (has_ravenscar_runtime, get_running_thread_id): Update.
8796 * remote.c (remote_check_symbols): Update.
8797 * sol-thread.c (ps_pglobal_lookup): Update.
8798 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8799 * solib-dsbt.c (lm_base): Update.
8800 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8802 * solib-irix.c (locate_base): Update.
8803 * solib-som.c (som_solib_create_inferior_hook)
8804 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8806 * solib-spu.c (spu_enable_break): Update.
8807 * solib-svr4.c (elf_locate_base, enable_break): Update.
8808 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8809 (flush_ea_cache): Update.
8810 * stabsread.c (define_symbol): Update.
8811 * symfile.c (simple_read_overlay_table): Update.
8812 * symtab.c (find_pc_sect_line): Update.
8813 * tracepoint.c (scope_info): Update.
8814 * tui-disasm.c (tui_get_begin_asm_address): Update.
8815 * value.c (value_static_field): Update.
8817 2014-02-26 Tom Tromey <tromey@redhat.com>
8819 * minsyms.c (prim_record_minimal_symbol_full): Use
8820 SET_MSYMBOL_VALUE_ADDRESS.
8821 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8822 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8823 SET_MSYMBOL_VALUE_ADDRESS.
8824 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8825 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8827 2014-02-26 Tom Tromey <tromey@redhat.com>
8829 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8830 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8831 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8832 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8833 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8834 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8835 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8836 * ada-lang.c (ada_main_name): Update.
8837 (ada_lookup_simple_minsym): Update.
8838 (ada_make_symbol_completion_list): Update.
8839 (ada_add_standard_exceptions): Update.
8840 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8841 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8842 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8843 * arm-tdep.c (skip_prologue_function): Update.
8844 (arm_skip_stack_protector, arm_skip_stub): Update.
8845 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8846 (arm_wince_skip_main_prologue): Update.
8847 * auxv.c (ld_so_xfer_auxv): Update.
8848 * avr-tdep.c (avr_scan_prologue): Update.
8849 * ax-gdb.c (gen_var_ref): Update.
8850 * block.c (call_site_for_pc): Update.
8851 * blockframe.c (get_pc_function_start): Update.
8852 (find_pc_partial_function_gnu_ifunc): Update.
8853 * breakpoint.c (create_overlay_event_breakpoint): Update.
8854 (create_longjmp_master_breakpoint): Update.
8855 (create_std_terminate_master_breakpoint): Update.
8856 (create_exception_master_breakpoint): Update.
8857 (resolve_sal_pc): Update.
8858 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8859 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8861 * c-valprint.c (c_val_print): Update.
8862 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8863 * coffread.c (coff_symfile_read): Update.
8864 * common/agent.c (agent_look_up_symbols): Update.
8865 * dbxread.c (find_stab_function_addr): Update.
8866 (end_psymtab): Update.
8867 * dwarf2loc.c (call_site_to_target_addr): Update.
8868 (func_verify_no_selftailcall): Update.
8869 (tailcall_dump): Update.
8870 (call_site_find_chain_1): Update.
8871 (dwarf_expr_reg_to_entry_parameter): Update.
8872 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8873 (elf_gnu_ifunc_resolve_by_got): Update.
8874 * f-valprint.c (info_common_command): Update.
8875 * findvar.c (read_var_value): Update.
8876 * frame.c (get_prev_frame_1): Update.
8877 (inside_main_func): Update.
8878 * frv-tdep.c (frv_skip_main_prologue): Update.
8879 (frv_frame_this_id): Update.
8880 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8881 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8882 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8883 (gnuv3_skip_trampoline): Update.
8884 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8885 (hppa64_hpux_in_solib_call_trampoline): Update.
8886 (hppa_hpux_skip_trampoline_code): Update.
8887 (hppa64_hpux_search_dummy_call_sequence): Update.
8888 (hppa_hpux_find_import_stub_for_addr): Update.
8889 (hppa_hpux_find_dummy_bpaddr): Update.
8890 * hppa-tdep.c (hppa_symbol_address)
8891 (hppa_lookup_stub_minimal_symbol): Update.
8892 * i386-tdep.c (i386_skip_main_prologue): Update.
8893 (i386_pe_skip_trampoline_code): Update.
8894 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8895 * infcall.c (get_function_name): Update.
8896 * infcmd.c (until_next_command): Update.
8897 * jit.c (jit_breakpoint_re_set_internal): Update.
8898 (jit_inferior_init): Update.
8899 * linespec.c (minsym_found): Update.
8900 (add_minsym): Update.
8901 * linux-fork.c (info_checkpoints_command): Update.
8902 * linux-nat.c (get_signo): Update.
8903 * linux-thread-db.c (inferior_has_bug): Update.
8904 * m32c-tdep.c (m32c_return_value): Update.
8905 (m32c_m16c_address_to_pointer): Update.
8906 (m32c_m16c_pointer_to_address): Update.
8907 * m32r-tdep.c (m32r_frame_this_id): Update.
8908 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8909 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8910 * maint.c (maintenance_translate_address): Update.
8911 * minsyms.c (add_minsym_to_hash_table): Update.
8912 (add_minsym_to_demangled_hash_table): Update.
8913 (msymbol_objfile): Update.
8914 (lookup_minimal_symbol): Update.
8915 (iterate_over_minimal_symbols): Update.
8916 (lookup_minimal_symbol_text): Update.
8917 (lookup_minimal_symbol_by_pc_name): Update.
8918 (lookup_minimal_symbol_solib_trampoline): Update.
8919 (lookup_minimal_symbol_by_pc_section_1): Update.
8920 (lookup_minimal_symbol_and_objfile): Update.
8921 (prim_record_minimal_symbol_full): Update.
8922 (compare_minimal_symbols): Update.
8923 (compact_minimal_symbols): Update.
8924 (build_minimal_symbol_hash_tables): Update.
8925 (install_minimal_symbols): Update.
8926 (terminate_minimal_symbol_table): Update.
8927 (find_solib_trampoline_target): Update.
8928 (minimal_symbol_upper_bound): Update.
8929 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8930 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8931 (mips_skip_pic_trampoline_code): Update.
8932 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8933 * objc-lang.c (selectors_info): Update.
8934 (classes_info): Update.
8935 (find_methods): Update.
8936 (find_imps): Update.
8937 (find_objc_msgsend): Update.
8938 * objfiles.c (objfile_relocate1): Update.
8939 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8940 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8941 * p-valprint.c (pascal_val_print): Update.
8942 * parse.c (write_exp_msymbol): Update.
8943 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8944 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8945 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8946 * printcmd.c (build_address_symbolic): Update.
8948 (address_info): Update.
8949 * proc-service.c (ps_pglobal_lookup): Update.
8950 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8951 (find_pc_sect_psymtab): Update.
8952 * python/py-framefilter.c (py_print_frame): Update.
8953 * ravenscar-thread.c (get_running_thread_id): Update.
8954 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8956 * remote.c (remote_check_symbols): Update.
8957 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8958 (rs6000_skip_trampoline_code): Update.
8959 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8960 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8961 * solib-dsbt.c (lm_base): Update.
8962 * solib-frv.c (lm_base): Update.
8964 * solib-irix.c (locate_base): Update.
8965 * solib-som.c (som_solib_create_inferior_hook): Update.
8966 (som_solib_desire_dynamic_linker_symbols): Update.
8967 (link_map_start): Update.
8968 * solib-spu.c (spu_enable_break): Update.
8969 (ocl_enable_break): Update.
8970 * solib-svr4.c (elf_locate_base): Update.
8971 (enable_break): Update.
8972 * spu-tdep.c (spu_get_overlay_table): Update.
8973 (spu_catch_start): Update.
8974 (flush_ea_cache): Update.
8975 * stabsread.c (define_symbol): Update.
8976 (scan_file_globals): Update.
8977 * stack.c (find_frame_funname): Update.
8978 (frame_info): Update.
8979 * symfile.c (simple_read_overlay_table): Update.
8980 (simple_overlay_update): Update.
8981 * symmisc.c (dump_msymbols): Update.
8982 * symtab.c (fixup_section): Update.
8983 (find_pc_sect_line): Update.
8984 (skip_prologue_sal): Update.
8985 (search_symbols): Update.
8986 (print_msymbol_info): Update.
8987 (rbreak_command): Update.
8988 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8989 (completion_list_objc_symbol): Update.
8990 (default_make_symbol_completion_list_break_on): Update.
8991 * tracepoint.c (scope_info): Update.
8992 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8993 (tui_get_begin_asm_address): Update.
8994 * valops.c (find_function_in_inferior): Update.
8995 * value.c (value_static_field): Update.
8996 (value_fn_field): Update.
8998 2014-02-26 Tom Tromey <tromey@redhat.com>
9000 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9001 bound minimal symbols. Move code that knows about minsym
9003 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9005 * minsyms.h (minimal_symbol_upper_bound): Declare.
9006 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9007 minimal_symbol_upper_bound.
9009 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9011 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9012 Use the type's name if its basic type does not have a tag.
9014 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9016 * dwarf2read.c (read_subrange_type): Add comment.
9018 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9020 * dwarf2read.c (update_enumeration_type_from_children): New
9021 function, mostly extracted from process_structure_scope.
9022 (read_enumeration_type): Call update_enumeration_type_from_children.
9023 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9024 and flag_flag_enum fields.
9026 2014-02-26 Pedro Alves <palves@redhat.com>
9028 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9029 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9030 to_xfer_partial method.
9032 2014-02-26 Pedro Alves <palves@redhat.com>
9034 * target.c (complete_target_initialization): Don't install
9035 default_xfer_partial as to_xfer_partial hook.
9037 (update_current_target): Don't INHERIT nor de_fault
9038 deprecated_xfer_memory. Delete de_fault macro.
9039 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9040 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9041 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9044 2014-02-26 Pedro Alves <palves@redhat.com>
9046 * go32-nat.c (my_write_child): New function.
9047 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9048 (go32_xfer_partial): New function.
9049 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9050 Instead install a to_xfer_partial hook.
9052 2014-02-26 Pedro Alves <palves@redhat.com>
9054 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9055 to_xfer_partial helper. Rewrite.
9056 (procfs_xfer_partial): New function.
9057 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9058 Install a to_xfer_partial hook.
9060 2014-02-26 Pedro Alves <palves@redhat.com>
9062 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9063 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9064 (m32r_xfer_partial): New function.
9065 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9066 Install a to_xfer_partial hook.
9068 2014-02-26 Pedro Alves <palves@redhat.com>
9070 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9072 (mips_xfer_partial): New function.
9073 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9074 hook. Install a to_xfer_partial hook.
9076 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9078 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9079 * gdbtypes.c (create_array_type_with_stride): New function,
9080 renaming create_array_type, but with an added parameter
9081 called "bit_stride".
9082 (create_array_type): Re-implement using
9083 create_array_type_with_stride.
9084 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9085 and DW_AT_bit_stride attributes.
9087 2014-02-26 Pedro Alves <palves@redhat.com>
9089 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9090 task-specific breakpoints.
9092 2014-02-25 Pedro Alves <palves@redhat.com>
9094 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9095 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9097 2014-02-25 Stan Shebs <stan@codesourcery.com>
9099 * defs.h: Annotate comments for Doxygen.
9101 2014-02-25 Tom Tromey <tromey@redhat.com>
9103 * target.h (target_ignore): Don't declare.
9104 * target.c (target_ignore): Remove.
9106 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9109 * auto-load.c (auto_load_objfile_script_1): Change filename to
9112 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9114 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9115 documentation. Adjust prototype to match the target_ops
9116 to_xfer_partial method. Adjust implementation accordingly.
9118 2014-02-25 Hui Zhu <hui@codesourcery.com>
9120 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9123 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9125 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9126 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9127 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9128 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9129 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9130 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9131 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9132 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9134 (rl78_register_type): Use a data pointer type for SP and
9135 new pseudo registers mentioned above. Use a 16 bit integer
9136 type for all other register pairs.
9137 (rl78_register_name, rl78_g10_register_name): Update for
9138 new pseudo registers.
9139 (rl78_pseudo_register_read): Likewise.
9140 (rl78_pseudo_register_write): Likewise.
9141 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9142 to the newly added pseudo registers.
9144 2014-02-24 Doug Evans <dje@google.com>
9146 * value.c (record_latest_value): Fix comment.
9147 * printcmd.c (print_command_1): Remove code to handle -1 return from
9148 record_latest_value.
9150 2014-02-24 Pedro Alves <palves@redhat.com>
9152 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9153 deprecated_xfer_memory hook.
9154 (procfs_xfer_partial): Call procfs_xfer_memory instead
9155 of the deprecated_xfer_memory target hook.
9156 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9159 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9161 * windows-nat.c (windows_xfer_shared_libraries): Return
9162 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9163 requested object is TARGET_OBJECT_LIBRARIES.
9165 2014-02-24 Yao Qi <yao@codesourcery.com>
9167 * target.h (enum target_xfer_status)
9168 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9169 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9171 * corefile.c (memory_error_message): User updated.
9172 * exec.c (section_table_read_available_memory): Likewise.
9173 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9174 * target.c (target_xfer_status_to_string): Likewise.
9175 (raw_memory_xfer_partial): Likewise.
9176 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9177 * valops.c (read_value_memory): Likewise.
9178 * exec.h: Update comments.
9180 2014-02-24 Yao Qi <yao@codesourcery.com>
9182 * target.c (target_xfer_status_to_string): Rename argument err
9184 * target.h (target_xfer_status_to_string): Update declaration.
9185 Replace target_xfer_error_to_string with
9186 target_xfer_status_to_string in comment.
9188 2014-02-24 Yao Qi <yao@codesourcery.com>
9190 * mips-linux-nat.c (super_close): Update its type.
9191 (mips_linux_close): Pass 'self' to super_close.
9193 2014-02-24 Yao Qi <yao@codesourcery.com>
9195 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9196 * corefile.c (read_memory): Adjusted.
9197 * target.c (target_write_with_progress): Adjusted.
9199 2014-02-23 Yao Qi <yao@codesourcery.com>
9203 2013-10-25 Yao Qi <yao@codesourcery.com>
9205 * remote.c (remote_traceframe_info): Return early if
9206 traceframe is not selected.
9208 2013-07-19 Yao Qi <yao@codesourcery.com>
9210 * target.c (update_current_target): Change the default action
9211 of 'to_traceframe_info' from tcomplain to return_zero.
9212 * target.h (struct target_ops) <to_traceframe_info>: Add more
9215 2014-02-23 Yao Qi <yao@codesourcery.com>
9217 * valops.c (read_value_memory): Rewrite it. Call
9218 target_xfer_partial in a loop.
9219 * exec.h (section_table_available_memory): Remove declaration.
9220 Move comments to ...
9221 * exec.c (section_table_available_memory): ... here. Make it
9224 2014-02-23 Yao Qi <yao@codesourcery.com>
9226 * exec.c (section_table_read_available_memory): New function.
9227 * exec.h (section_table_read_available_memory): Declare.
9228 * ctf.c (ctf_xfer_partial): Call
9229 section_table_read_available_memory.
9230 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9232 2014-02-23 Yao Qi <yao@codesourcery.com>
9234 * ctf.c (ctf_xfer_partial): Move code to ...
9235 * exec.c (exec_read_partial_read_only): ... it. New function.
9236 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9237 * tracefile.c: Include "exec.h".
9238 * exec.h (exec_read_partial_read_only): Declare.
9240 2014-02-23 Yao Qi <yao@codesourcery.com>
9242 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9243 (tfile_has_memory): Remove.
9244 (init_tfile_ops): Don't set fields to_has_all_memory and
9245 to_has_memory of tfile_ops.
9246 * tracefile.c (tracefile_has_all_memory): New function.
9247 (tracefile_has_memory): New function.
9248 (init_tracefile_ops): Initialize fields to_has_all_memory and
9249 to_has_memory of 'ops'.
9251 2014-02-23 Yao Qi <yao@codesourcery.com>
9253 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9254 (ctf_thread_alive, ctf_get_trace_status): Remove.
9255 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9257 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9258 (tfile_has_stack, tfile_has_registers): Remove.
9259 (tfile_thread_alive): Remove.
9260 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9262 * tracefile.c (tracefile_has_stack): New function.
9263 (tracefile_has_registers): New function.
9264 (tracefile_thread_alive): New function.
9265 (tracefile_get_trace_status): New function.
9266 (init_tracefile_ops): New function.
9267 * tracefile.h (init_tracefile_ops): Declare.
9269 2014-02-23 Yao Qi <yao@codesourcery.com>
9271 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9272 (O_LARGEFILE): Likewise.
9273 (tfile_ops): Likewise.
9274 (TRACE_HEADER_SIZE): Likewise.
9275 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9276 (cur_data_size): Likewise.
9277 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9278 (tfile_close, tfile_files_info): Likewise.
9279 (tfile_get_trace_status): Likewise.
9280 (tfile_get_tracepoint_status): Likewise.
9281 (tfile_get_traceframe_address): Likewise.
9282 (tfile_trace_find, match_blocktype): Likewise.
9283 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9284 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9285 (tfile_get_trace_state_variable_value): Likewise.
9286 (tfile_has_all_memory, tfile_has_memory): Likewise.
9287 (tfile_has_stack, tfile_has_registers): Likewise.
9288 (tfile_thread_alive, build_traceframe_info): Likewise.
9289 (tfile_traceframe_info, init_tfile_ops): Likewise.
9290 (_initialize_tracepoint): Don't call init_tfile_ops
9291 and add_target_with_completer.
9292 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9293 exec.h, completer.h and filenames.h.
9294 (_initialize_tracefile_tfile): New function.
9296 2014-02-23 Yao Qi <yao@codesourcery.com>
9298 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9300 (HFILES_NO_SRCDIR): Add tracefile.h.
9301 * ctf.c: Include "tracefile.h".
9302 * tracefile.h: New file.
9303 * tracefile.c: New file
9304 * tracefile-tfile.c: New file.
9305 * tracepoint.c: Include "tracefile.h".
9306 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9307 (stop_reason_names): Add const.
9308 (trace_file_writer_xfree): Move it to tracefile.c.
9309 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9310 (trace_save_ctf): Likewise.
9311 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9312 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9313 (tfile_write_header, tfile_write_regblock_type): Likewise.
9314 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9315 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9316 (tfile_write_raw_data, tfile_end): Likewise.
9317 (tfile_trace_file_writer_new): Likewise.
9318 (free_uploaded_tp): Make it extern.
9319 (free_uploaded_tsv): Make it extern.
9320 (_initialize_tracepoint): Move code to register command 'tsave'
9322 * tracepoint.h (stop_reason_names): Declare.
9323 (struct trace_frame_write_ops): Move it to tracefile.h.
9324 (struct trace_file_write_ops): Likewise.
9325 (struct trace_file_writer): Likewise.
9326 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9328 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9331 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9333 (get_cores_used_by_process): New parameter num_cores, use it.
9334 (linux_xfer_osdata_processes): Pass num_cores to it.
9335 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9338 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9340 * target.c (memory_xfer_partial): Fix length arg in call to
9341 breakpoint_xfer_memory.
9343 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9346 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9347 number comes after the + or - signs. Adjust length of register
9348 name to be extracted.
9350 2014-02-20 Tom Tromey <tromey@redhat.com>
9352 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9353 (ada_varobj_ops): Mark "extern".
9355 2014-02-20 Tom Tromey <tromey@redhat.com>
9357 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9359 2014-02-20 Doug Evans <xdje42@gmail.com>
9361 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9362 All callers updated.
9363 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9364 All callers updated.
9365 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9366 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9368 2014-02-20 lin zuojian <manjian2006@gmail.com>
9369 Joel Brobecker <brobecker@adacore.com>
9370 Doug Evans <xdje42@gmail.com>
9373 * dwarf2read.c (struct die_info): New member in_process.
9374 (reset_die_in_process): New function.
9375 (process_die): Set it at the start, reset when returning.
9376 (inherit_abstract_dies): Only call process_die if origin_child_die
9377 not already being processed.
9379 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9381 * windows-nat.c (handle_unload_dll): Add function documentation.
9382 (do_initial_windows_stuff): Add comment explaining why we wait
9383 until after inferior initialization has finished before
9384 processing all DLLs.
9386 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9388 * windows-nat.c (get_module_name): Delete.
9389 (windows_get_exec_module_filename): New function, mostly
9390 inspired from get_module_name.
9391 (windows_pid_to_exec_file): Replace call to get_module_name
9392 by call to windows_get_exec_module_filename.
9394 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9396 * windows-nat.c (handle_load_dll): Rewrite this function's
9397 introductory comment. Remove code using get_module_name
9398 to get the DLL's name.
9400 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9402 * windows-nat.c (get_windows_debug_event): Ignore
9403 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9404 if windows_initialization_done == 0.
9405 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9406 Adjust implementation to always load all DLLs.
9407 (do_initial_windows_stuff): Replace call to
9408 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9410 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9412 * windows-nat.c (_initialize_windows_nat): Deprecate the
9413 "dll-symbols" command. Turn the "add-shared-symbol-files"
9414 and "assf" aliases into commands, and deprecate them as well.
9415 * NEWS: Add entry explaining that "dll-symbols" and its two
9416 aliases are now deprecated.
9418 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9420 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9421 new-line in debug string. Remove trailing spaces.
9423 2014-02-19 Stan Shebs <stan@codesourcery.com>
9425 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9427 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9429 * NEWS: Add entry for the new feature
9430 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9433 2014-02-19 Stan Shebs <stan@codesourcery.com>
9435 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9437 2014-02-19 Pedro Alves <palves@redhat.com>
9439 * common/ptid.h (struct ptid): Mention that process_stratum
9440 targets should prefer ptid.lwp.
9442 2014-02-19 Pedro Alves <palves@redhat.com>
9444 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9445 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9446 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9447 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9448 store remote thread ids rather than ptid.tid.
9449 (_initialize_remote): Adjust.
9451 2014-02-19 Tom Tromey <tromey@redhat.com>
9453 * target.c (target_get_unwinder): Rewrite.
9454 (target_get_tailcall_unwinder): Rewrite.
9455 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9456 (record_btrace_to_get_tailcall_unwinder): New function.
9457 (init_record_btrace_ops): Update.
9458 * target.h (struct target_ops) <to_get_unwinder,
9459 to_get_tailcall_unwinder>: Now function pointers. Use
9460 TARGET_DEFAULT_RETURN.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9466 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9472 * target-delegates.c: Rebuild.
9473 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9474 TARGET_DEFAULT_FUNC.
9475 * target.c (default_target_decr_pc_after_break): Rename from
9476 forward_target_decr_pc_after_break. Simplify.
9477 (target_decr_pc_after_break): Rely on delegation.
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9481 * target.c (update_current_target): Do not INHERIT to_doc or
9482 to_magic. Do not de_fault to_open or to_close.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * gcore.h (objfile_find_memory_regions): Declare.
9487 * gcore.c (objfile_find_memory_regions): No longer static. Add
9489 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9490 * exec.c: Include gcore.h.
9491 (exec_set_find_memory_regions): Remove.
9492 (exec_find_memory_regions): Remove.
9493 (exec_do_find_memory_regions): Remove.
9494 (init_exec_ops): Update.
9495 * defs.h (exec_set_find_memory_regions): Remove.
9497 2014-02-19 Tom Tromey <tromey@redhat.com>
9499 * target-delegates.c: Rebuild.
9500 * target.h (struct target_ops) <to_extra_thread_info,
9501 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9502 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9503 not 0, in TARGET_DEFAULT_RETURN.
9505 2014-02-19 Tom Tromey <tromey@redhat.com>
9507 * target.c (complete_target_initialization): Remove casts. Use
9508 return_zero_has_execution.
9509 (return_zero): Add "ignore" argument.
9510 (return_zero_has_execution): New function.
9511 (init_dummy_target): Remove casts. Use
9512 return_zero_has_execution.
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9516 * target.c (update_current_target): Update comments. Do not
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9523 * corelow.c (core_read_description): Delegate when needed.
9524 * remote.c (remote_read_description): Delegate when needed.
9525 * target-delegates.c: Rebuild.
9526 * target.c (target_read_description): Rewrite.
9527 * target.h (struct target_ops) <to_read_description>: Update
9528 comment. Use TARGET_DEFAULT_RETURN.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target-delegates.c: Rebuild.
9533 * target.c (update_current_target): Don't inherit or default
9535 (find_default_run_target): Check against delegate_can_run.
9536 * target.h (struct target_ops) <to_can_run>: Use
9537 TARGET_DEFAULT_RETURN.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target-delegates.c: Rebuild.
9542 * target.c (target_disconnect): Unconditionally delegate.
9543 * target.h (struct target_ops) <to_disconnect>: Use
9544 TARGET_DEFAULT_NORETURN.
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * record.c (record_stop): Unconditionally delegate.
9549 * target-delegates.c: Rebuild.
9550 * target.c (target_stop_recording): Unconditionally delegate.
9551 * target.h (struct target_ops) <to_stop_recording>: Use
9552 TARGET_DEFAULT_IGNORE.
9554 2014-02-19 Tom Tromey <tromey@redhat.com>
9556 * target-delegates.c: Rebuild.
9557 * target.c (target_enable_btrace): Unconditionally delegate.
9558 * target.h (struct target_ops) <to_enable_btrace>: Use
9559 TARGET_DEFAULT_NORETURN.
9561 2014-02-19 Tom Tromey <tromey@redhat.com>
9563 * target-delegates.c: Rebuild.
9564 * target.c (target_read_btrace): Unconditionally delegate.
9565 * target.h (struct target_ops) <to_read_btrace>: Use
9566 TARGET_DEFAULT_NORETURN.
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9570 * target-delegates.c: Rebuild.
9571 * target.c (target_teardown_btrace): Unconditionally delegate.
9572 * target.h (struct target_ops) <to_teardown_btrace>: Use
9573 TARGET_DEFAULT_NORETURN.
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * target-delegates.c: Rebuild.
9578 * target.c (target_disable_btrace): Unconditionally delegate.
9579 * target.h (struct target_ops) <to_disable_btrace>: Use
9580 TARGET_DEFAULT_NORETURN.
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target-delegates.c: Rebuild.
9585 * target.c (default_search_memory): New function.
9586 (simple_search_memory): Update comment.
9587 (target_search_memory): Unconditionally delegate.
9588 * target.h (struct target_ops) <to_search_memory>: Use
9589 TARGET_DEFAULT_FUNC.
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9593 * auxv.c (default_auxv_parse): No longer static.
9594 (target_auxv_parse): Unconditionally delegate.
9595 * auxv.h (default_auxv_parse): Declare.
9596 * target-delegates.c: Rebuild.
9597 * target.c: Include auxv.h.
9598 * target.h (struct target_ops) <to_auxv_parse>: Use
9599 TARGET_DEFAULT_FUNC.
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9603 * target-delegates.c: Rebuild.
9604 * target.c (target_memory_map): Unconditionally delegate.
9605 * target.h (struct target_ops) <to_memory_map>: Use
9606 TARGET_DEFAULT_RETURN.
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target-delegates.c: Rebuild.
9611 * target.c (target_thread_alive): Unconditionally delegate.
9612 * target.h (struct target_ops) <to_thread_alive>: Use
9613 TARGET_DEFAULT_RETURN.
9615 2014-02-19 Tom Tromey <tromey@redhat.com>
9617 * target-delegates.c: Rebuild.
9618 * target.c (target_save_record): Unconditionally delegate.
9619 * target.h (struct target_ops) <to_save_record>: Use
9620 TARGET_DEFAULT_NORETURN.
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9624 * target-delegates.c: Rebuild.
9625 * target.c (target_delete_record): Unconditionally delegate.
9626 * target.h (struct target_ops) <to_delete_record>: Use
9627 TARGET_DEFAULT_NORETURN.
9629 2014-02-19 Tom Tromey <tromey@redhat.com>
9631 * target-delegates.c: Rebuild.
9632 * target.c (target_record_is_replaying): Unconditionally
9634 * target.h (struct target_ops) <to_record_is_replaying>: Use
9635 TARGET_DEFAULT_RETURN.
9637 2014-02-19 Tom Tromey <tromey@redhat.com>
9639 * target-delegates.c: Rebuild.
9640 * target.c (target_goto_record_begin): Unconditionally delegate.
9641 * target.h (struct target_ops) <to_goto_record_begin>: Use
9642 TARGET_DEFAULT_NORETURN.
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * target-delegates.c: Rebuild.
9647 * target.c (target_goto_record_end): Unconditionally delegate.
9648 * target.h (struct target_ops) <to_goto_record_end>: Use
9649 TARGET_DEFAULT_NORETURN.
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9653 * target-delegates.c: Rebuild.
9654 * target.c (target_goto_record): Unconditionally delegate.
9655 * target.h (struct target_ops) <to_goto_record>: Use
9656 TARGET_DEFAULT_NORETURN.
9658 2014-02-19 Tom Tromey <tromey@redhat.com>
9660 * target-delegates.c: Rebuild.
9661 * target.c (target_insn_history): Unconditionally delegate.
9662 * target.h (struct target_ops) <to_insn_history>: Use
9663 TARGET_DEFAULT_NORETURN.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target-delegates.c: Rebuild.
9668 * target.c (target_insn_history_from): Unconditionally delegate.
9669 * target.h (struct target_ops) <to_insn_history_from>: Use
9670 TARGET_DEFAULT_NORETURN.
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9674 * target-delegates.c: Rebuild.
9675 * target.c (target_insn_history_range): Unconditionally delegate.
9676 * target.h (struct target_ops) <to_insn_history_range>: Use
9677 TARGET_DEFAULT_NORETURN.
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9681 * target-delegates.c: Rebuild.
9682 * target.c (target_call_history): Unconditionally delegate.
9683 * target.h (struct target_ops) <to_call_history>: Use
9684 TARGET_DEFAULT_NORETURN.
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9688 * target-delegates.c: Rebuild.
9689 * target.c (target_call_history_from): Unconditionally delegate.
9690 * target.h (struct target_ops) <to_call_history_from>: Use
9691 TARGET_DEFAULT_NORETURN.
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9695 * target-delegates.c: Rebuild.
9696 * target.c (target_call_history_range): Unconditionally delegate.
9697 * target.h (struct target_ops) <to_call_history_range>: Use
9698 TARGET_DEFAULT_NORETURN.
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9702 * target-delegates.c: Rebuild.
9703 * target.c (target_verify_memory): Unconditionally delegate.
9704 * target.h (struct target_ops) <to_verify_memory>: Use
9705 TARGET_DEFAULT_NORETURN.
9707 2014-02-19 Tom Tromey <tromey@redhat.com>
9709 * target-delegates.c: Rebuild.
9710 * target.c (target_core_of_thread): Unconditionally delegate.
9711 * target.h (struct target_ops) <to_core_of_thread>: Use
9712 TARGET_DEFAULT_RETURN.
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9716 * target-delegates.c: Rebuild.
9717 * target.c (target_flash_done): Unconditionally delegate.
9718 * target.h (struct target_ops) <to_flash_done>: Use
9719 TARGET_DEFAULT_NORETURN.
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9723 * target-delegates.c: Rebuild.
9724 * target.c (target_flash_erase): Unconditionally delegate.
9725 * target.h (struct target_ops) <to_flash_erase>: Use
9726 TARGET_DEFAULT_NORETURN.
9728 2014-02-19 Tom Tromey <tromey@redhat.com>
9730 * target-delegates.c: Rebuild.
9731 * target.c (target_get_section_table): Unconditionally delegate.
9732 * target.h (struct target_ops) <to_get_section_table>: Use
9733 TARGET_DEFAULT_RETURN.
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target-delegates.c: Rebuild.
9738 * target.c (target_pid_to_str): Unconditionally delegate.
9739 (init_dummy_target): Don't initialize to_pid_to_str.
9740 (default_pid_to_str): Rename from dummy_pid_to_str.
9741 * target.h (struct target_ops) <to_pid_to_str>: Use
9742 TARGET_DEFAULT_FUNC.
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target-delegates.c: Rebuild.
9747 * target.c (target_find_new_threads): Unconditionally delegate.
9748 * target.h (struct target_ops) <to_find_new_threads>: Use
9749 TARGET_DEFAULT_RETURN.
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9753 * target-delegates.c: Rebuild.
9754 * target.c (target_program_signals): Unconditionally delegate.
9755 * target.h (struct target_ops) <to_program_signals>: Use
9756 TARGET_DEFAULT_IGNORE.
9758 2014-02-19 Tom Tromey <tromey@redhat.com>
9760 * target-delegates.c: Rebuild.
9761 * target.c (target_pass_signals): Unconditionally delegate.
9762 * target.h (struct target_ops) <to_pass_signals>: Use
9763 TARGET_DEFAULT_IGNORE.
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * target-delegates.c: Rebuild.
9768 * target.c (default_mourn_inferior): New function.
9769 (target_mourn_inferior): Unconditionally delegate.
9770 * target.h (struct target_ops) <to_mourn_inferior>: Use
9771 TARGET_DEFAULT_FUNC.
9773 2014-02-19 Tom Tromey <tromey@redhat.com>
9775 * target-delegates.c: Rebuild.
9776 * target.c (default_follow_fork): New function.
9777 (target_follow_fork): Unconditionally delegate.
9778 * target.h (struct target_ops) <to_follow_fork>: Use
9779 TARGET_DEFAULT_FUNC.
9781 2014-02-19 Tom Tromey <tromey@redhat.com>
9783 * target-delegates.c: Rebuild.
9784 * target.c (target_kill): Unconditionally delegate.
9785 * target.h (struct target_ops) <to_kill>: Use
9786 TARGET_DEFAULT_NORETURN.
9788 2014-02-19 Tom Tromey <tromey@redhat.com>
9790 * target-delegates.c: Rebuild.
9791 * target.c (target_masked_watch_num_registers): Unconditionally
9793 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9794 Use TARGET_DEFAULT_RETURN.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target-delegates.c: Rebuild.
9799 * target.c (target_remove_mask_watchpoint): Unconditionally
9801 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9802 TARGET_DEFAULT_RETURN.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target-delegates.c: Rebuild.
9807 * target.c (target_insert_mask_watchpoint): Unconditionally
9809 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9810 TARGET_DEFAULT_RETURN.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target-delegates.c: Rebuild.
9815 * target.c (target_ranged_break_num_registers): Unconditionally
9817 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9818 Use TARGET_DEFAULT_RETURN.
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target-delegates.c: Rebuild.
9823 * target.c (target_fetch_registers): Unconditionally delegate.
9824 * target.h (struct target_ops) <to_fetch_registers>: Use
9825 TARGET_DEFAULT_NORETURN.
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target-delegates.c: Rebuild.
9830 * target.c (update_current_target): Don't inherit or default
9832 * target.h (struct target_ops) <to_stop>: Use
9833 TARGET_DEFAULT_IGNORE.
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9837 * target-delegates.c: Rebuild.
9838 * target.c (update_current_target): Don't inherit or default
9839 to_can_run_breakpoint_commands.
9840 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9841 Use TARGET_DEFAULT_RETURN.
9843 2014-02-19 Tom Tromey <tromey@redhat.com>
9845 * target-delegates.c: Rebuild.
9846 * target.c (update_current_target): Don't inherit or default
9847 to_supports_evaluation_of_breakpoint_conditions.
9848 * target.h (struct target_ops)
9849 <to_supports_evaluation_of_breakpoint_conditions>: Use
9850 TARGET_DEFAULT_RETURN.
9852 2014-02-19 Tom Tromey <tromey@redhat.com>
9854 * target-delegates.c: Rebuild.
9855 * target.c (update_current_target): Don't inherit or default
9856 to_augmented_libraries_svr4_read.
9857 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9858 Use TARGET_DEFAULT_RETURN.
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9862 * target-delegates.c: Rebuild.
9863 * target.c (update_current_target): Don't inherit or default
9865 * target.h (struct target_ops) <to_can_use_agent>: Use
9866 TARGET_DEFAULT_RETURN.
9868 2014-02-19 Tom Tromey <tromey@redhat.com>
9870 * target-delegates.c: Rebuild.
9871 * target.c (update_current_target): Don't inherit or default
9873 * target.h (struct target_ops) <to_use_agent>: Use
9874 TARGET_DEFAULT_NORETURN.
9876 2014-02-19 Tom Tromey <tromey@redhat.com>
9878 * target-delegates.c: Rebuild.
9879 * target.c (update_current_target): Don't inherit or default
9881 (return_null): Remove.
9882 * target.h (struct target_ops) <to_traceframe_info>: Use
9883 TARGET_DEFAULT_RETURN.
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9887 * target-delegates.c: Rebuild.
9888 * target.c (update_current_target): Don't inherit or default
9889 to_static_tracepoint_markers_by_strid.
9890 * target.h (struct target_ops)
9891 <to_static_tracepoint_markers_by_strid>: Use
9892 TARGET_DEFAULT_NORETURN.
9894 2014-02-19 Tom Tromey <tromey@redhat.com>
9896 * target-delegates.c: Rebuild.
9897 * target.c (update_current_target): Don't inherit or default
9898 to_static_tracepoint_marker_at.
9899 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9900 Use TARGET_DEFAULT_RETURN.
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9904 * target-delegates.c: Rebuild.
9905 * target.c (update_current_target): Don't inherit or default
9907 * target.h (struct target_ops) <to_set_permissions>: Use
9908 TARGET_DEFAULT_IGNORE.
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9912 * target-delegates.c: Rebuild.
9913 * target.c (update_current_target): Don't inherit or default
9915 * target.h (struct target_ops) <to_get_tib_address>: Use
9916 TARGET_DEFAULT_NORETURN.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target-delegates.c: Rebuild.
9921 * target.c (update_current_target): Don't inherit or default
9923 * target.h (struct target_ops) <to_set_trace_notes>: Use
9924 TARGET_DEFAULT_RETURN.
9926 2014-02-19 Tom Tromey <tromey@redhat.com>
9928 * target-delegates.c: Rebuild.
9929 * target.c (update_current_target): Don't initialize
9930 to_set_trace_buffer_size.
9931 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9932 TARGET_DEFAULT_IGNORE.
9934 2014-02-19 Tom Tromey <tromey@redhat.com>
9936 * target-delegates.c: Rebuild.
9937 * target.c (update_current_target): Don't inherit or default
9938 to_set_circular_trace_buffer.
9939 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9940 TARGET_DEFAULT_IGNORE.
9942 2014-02-19 Tom Tromey <tromey@redhat.com>
9944 * target-delegates.c: Rebuild.
9945 * target.c (update_current_target): Don't inherit or default
9946 to_set_disconnected_tracing.
9947 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9948 TARGET_DEFAULT_IGNORE.
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * target-delegates.c: Rebuild.
9953 * target.c (update_current_target): Don't inherit or default
9954 to_get_min_fast_tracepoint_insn_len.
9955 (return_minus_one): Remove.
9956 * target.h (struct target_ops)
9957 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9961 * target-delegates.c: Rebuild.
9962 * target.c (update_current_target): Don't inherit or default
9963 to_get_raw_trace_data.
9964 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9965 TARGET_DEFAULT_NORETURN.
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9969 * target-delegates.c: Rebuild.
9970 * target.c (update_current_target): Don't inherit or default
9971 to_upload_trace_state_variables.
9972 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9973 Use TARGET_DEFAULT_RETURN.
9975 2014-02-19 Tom Tromey <tromey@redhat.com>
9977 * target-delegates.c: Rebuild.
9978 * target.c (update_current_target): Don't inherit or default
9979 to_upload_tracepoints.
9980 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9981 TARGET_DEFAULT_RETURN.
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9985 * target-delegates.c: Rebuild.
9986 * target.c (update_current_target): Don't inherit or default
9988 * target.h (struct target_ops) <to_save_trace_data>: Use
9989 TARGET_DEFAULT_NORETURN.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target-delegates.c: Rebuild.
9994 * target.c (update_current_target): Don't inherit or default
9995 to_get_trace_state_variable_value.
9996 * target.h (struct target_ops)
9997 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9999 2014-02-19 Tom Tromey <tromey@redhat.com>
10001 * target-delegates.c: Rebuild.
10002 * target.c (update_current_target): Don't inherit or default
10004 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * target-delegates.c: Rebuild.
10009 * target.c (update_current_target): Don't inherit or default
10011 * target.h (struct target_ops) <to_trace_stop>: Use
10012 TARGET_DEFAULT_NORETURN.
10014 2014-02-19 Tom Tromey <tromey@redhat.com>
10016 * target-delegates.c: Rebuild.
10017 * target.c (update_current_target): Don't inherit or default
10018 to_get_tracepoint_status.
10019 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10020 TARGET_DEFAULT_NORETURN.
10022 2014-02-19 Tom Tromey <tromey@redhat.com>
10024 * target-delegates.c: Rebuild.
10025 * target.c (update_current_target): Don't inherit or default
10026 to_get_trace_status.
10027 * target.h (struct target_ops) <to_get_trace_status>: Use
10028 TARGET_DEFAULT_RETURN.
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10032 * target-delegates.c: Rebuild.
10033 * target.c (update_current_target): Don't inherit or default
10035 * target.h (struct target_ops) <to_trace_start>: Use
10036 TARGET_DEFAULT_NORETURN.
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10040 * target-delegates.c: Rebuild.
10041 * target.c (update_current_target): Don't inherit or default
10042 to_trace_set_readonly_regions.
10043 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10044 Use TARGET_DEFAULT_NORETURN.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target-delegates.c: Rebuild.
10049 * target.c (update_current_target): Don't inherit or default
10050 to_disable_tracepoint.
10051 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10052 TARGET_DEFAULT_NORETURN.
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10056 * target-delegates.c: Rebuild.
10057 * target.c (update_current_target): Don't inherit or default
10058 to_enable_tracepoint.
10059 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10060 TARGET_DEFAULT_NORETURN.
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * target-delegates.c: Rebuild.
10065 * target.c (update_current_target): Don't inherit or default
10066 to_download_trace_state_variable.
10067 * target.h (struct target_ops) <to_download_trace_state_variable>:
10068 Use TARGET_DEFAULT_NORETURN.
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target-delegates.c: Rebuild.
10073 * target.c (update_current_target): Don't inherit or default
10074 to_can_download_tracepoint.
10075 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10076 TARGET_DEFAULT_RETURN.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target-delegates.c: Rebuild.
10081 * target.c (update_current_target): Don't inherit or default
10082 to_download_tracepoint.
10083 * target.h (struct target_ops) <to_download_tracepoint>: Use
10084 TARGET_DEFAULT_NORETURN.
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target-delegates.c: Rebuild.
10089 * target.c (update_current_target): Don't inherit or default
10091 * target.h (struct target_ops) <to_trace_init>: Use
10092 TARGET_DEFAULT_RETURN.
10094 2014-02-19 Tom Tromey <tromey@redhat.com>
10096 * target-delegates.c: Rebuild.
10097 * target.c (update_current_target): Don't inherit or default
10098 to_supports_string_tracing.
10099 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10100 TARGET_DEFAULT_RETURN.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target-delegates.c: Rebuild.
10105 * target.c (update_current_target): Don't inherit or default
10106 to_supports_enable_disable_tracepoint.
10107 * target.h (struct target_ops)
10108 <to_supports_enable_disable_tracepoint>: Use
10109 TARGET_DEFAULT_RETURN.
10111 2014-02-19 Tom Tromey <tromey@redhat.com>
10113 * target-delegates.c: Rebuild.
10114 * target.c (update_current_target): Don't inherit or default
10115 to_supports_multi_process.
10116 * target.h (struct target_ops) <to_supports_multi_process>: Use
10117 TARGET_DEFAULT_RETURN.
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * target-delegates.c: Rebuild.
10122 * target.c (update_current_target): Don't inherit or default
10123 to_get_ada_task_ptid.
10124 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10125 TARGET_DEFAULT_FUNC.
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target-delegates.c: Rebuild.
10130 * target.c (update_current_target): Don't inherit or default
10131 to_thread_architecture.
10132 * target.h (struct target_ops) <to_thread_architecture>: Use
10133 TARGET_DEFAULT_FUNC.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * target-delegates.c: Rebuild.
10138 * target.c (update_current_target): Don't inherit or default
10139 to_execution_direction.
10140 * target.h (struct target_ops) <to_execution_direction>: Use
10141 TARGET_DEFAULT_FUNC.
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target-delegates.c: Rebuild.
10146 * target.c (update_current_target): Don't inherit or default
10147 to_can_execute_reverse.
10148 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10149 TARGET_DEFAULT_RETURN.
10150 (target_can_execute_reverse): Unconditionally delegate.
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10154 * target-delegates.c: Rebuild.
10155 * target.c (update_current_target): Don't inherit or default
10157 (dummy_goto_bookmark): Remove.
10158 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10159 * target.h (struct target_ops) <to_goto_bookmark>: Use
10160 TARGET_DEFAULT_NORETURN.
10162 2014-02-19 Tom Tromey <tromey@redhat.com>
10164 * target-delegates.c: Rebuild.
10165 * target.c (update_current_target): Don't inherit or default
10167 (dummy_get_bookmark): Remove.
10168 (init_dummy_target): Don't inherit or default to_get_bookmark.
10169 * target.h (struct target_ops) <to_get_bookmark>: Use
10170 TARGET_DEFAULT_NORETURN
10172 2014-02-19 Tom Tromey <tromey@redhat.com>
10174 * target-delegates.c: Rebuild.
10175 * target.c (update_current_target): Don't inherit or default
10176 to_make_corefile_notes.
10177 (init_dummy_target): Don't initialize to_make_corefile_notes.
10178 * target.h (struct target_ops) <to_make_corefile_notes>: 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_find_memory_regions.
10186 (init_dummy_target): Don't initialize to_find_memory_regions.
10187 * target.h (struct target_ops) <to_find_memory_regions>: Use
10188 TARGET_DEFAULT_FUNC.
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10192 * target-delegates.c: Rebuild.
10193 * target.c (update_current_target): Don't inherit or default
10195 * target.h (struct target_ops) <to_log_command>: Use
10196 TARGET_DEFAULT_IGNORE.
10197 (target_log_command): Unconditionally delegate.
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10201 * target-delegates.c: Rebuild.
10202 * target.c (update_current_target): Don't inherit or default
10203 to_pid_to_exec_file.
10204 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10205 TARGET_DEFAULT_RETURN.
10207 2014-02-19 Tom Tromey <tromey@redhat.com>
10209 * target-delegates.c: Rebuild.
10210 * target.c (update_current_target): Don't inherit or default
10212 (target_thread_name): Unconditionally delegate.
10213 * target.h (struct target_ops) <to_thread_name>: Use
10214 TARGET_DEFAULT_RETURN.
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
10220 to_extra_thread_info.
10221 * target.h (struct target_ops) <to_extra_thread_info>: Use
10222 TARGET_DEFAULT_RETURN.
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10226 * target-delegates.c: Rebuild.
10227 * target.c (update_current_target): Don't inherit or default
10229 * target.h (struct target_ops) <to_has_exited>: Use
10230 TARGET_DEFAULT_RETURN..
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10234 * target-delegates.c: Rebuild.
10235 * target.c (update_current_target): Don't inherit or default
10236 to_set_syscall_catchpoint.
10237 (return_one): Remove.
10238 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10239 TARGET_DEFAULT_RETURN.
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target-delegates.c: Rebuild.
10244 * target.c (update_current_target): Don't inherit or default
10245 to_insert_exec_catchpoint.
10246 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10247 TARGET_DEFAULT_RETURN.
10249 2014-01-08 Tom Tromey <tromey@redhat.com>
10251 * target-delegates.c: Rebuild.
10252 * target.c (update_current_target): Don't inherit or default
10253 to_insert_exec_catchpoint.
10254 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10255 TARGET_DEFAULT_RETURN.
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10259 * target-delegates.c: Rebuild.
10260 * target.c (update_current_target): Don't inherit or default
10261 to_remove_vfork_catchpoint.
10262 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10263 TARGET_DEFAULT_RETURN.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target-delegates.c: Rebuild.
10268 * target.c (update_current_target): Don't inherit or default
10269 to_insert_vfork_catchpoint.
10270 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10271 TARGET_DEFAULT_RETURN.
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target-delegates.c: Rebuild.
10276 * target.c (update_current_target): Don't inherit or default
10277 to_remove_fork_catchpoint.
10278 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10279 TARGET_DEFAULT_RETURN.
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * target-delegates.c: Rebuild.
10284 * target.c (update_current_target): Don't inherit or default
10285 to_insert_fork_catchpoint.
10286 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10287 TARGET_DEFAULT_RETURN.
10289 2014-02-19 Tom Tromey <tromey@redhat.com>
10291 * target-delegates.c: Rebuild.
10292 * target.c (update_current_target): Don't inherit or default
10293 to_post_startup_inferior.
10294 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10295 TARGET_DEFAULT_IGNORE.
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10299 * target-delegates.c: Rebuild.
10300 * target.c (update_current_target): Don't inherit or default
10302 * target.h (struct target_ops) <to_load>: Use
10303 TARGET_DEFAULT_NORETURN.
10305 2014-02-19 Tom Tromey <tromey@redhat.com>
10307 * target-delegates.c: Rebuild.
10308 * target.c (update_current_target): Don't inherit or default
10310 * target.h (struct target_ops) <to_terminal_info>: Use
10311 TARGET_DEFAULT_FUNC.
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10315 * target-delegates.c: Rebuild.
10316 * target.c (update_current_target): Don't inherit or default
10317 to_terminal_save_ours.
10318 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10319 TARGET_DEFAULT_IGNORE.
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10323 * target-delegates.c: Rebuild.
10324 * target.c (update_current_target): Don't inherit or default
10326 * target.h (struct target_ops) <to_terminal_ours>: Use
10327 TARGET_DEFAULT_IGNORE.
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target-delegates.c: Rebuild.
10332 * target.c (update_current_target): Don't inherit or default
10333 to_terminal_ours_for_output.
10334 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10335 TARGET_DEFAULT_IGNORE.
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10339 * target-delegates.c: Rebuild.
10340 * target.c (update_current_target): Don't inherit or default
10341 to_terminal_inferior.
10342 * target.h (struct target_ops) <to_terminal_inferior>: Use
10343 TARGET_DEFAULT_IGNORE.
10345 2014-02-19 Tom Tromey <tromey@redhat.com>
10347 * target-delegates.c: Rebuild.
10348 * target.c (update_current_target): Don't inherit or default
10350 * target.h (struct target_ops) <to_terminal_init>: Use
10351 TARGET_DEFAULT_IGNORE.
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10355 * target-delegates.c: Rebuild.
10356 * target.c (update_current_target): Don't inherit or default
10357 to_can_accel_watchpoint_condition.
10358 * target.h (struct target_ops)
10359 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10363 * target-delegates.c: Rebuild.
10364 * target.c (update_current_target): Don't inherit or default
10365 to_region_ok_for_hw_watchpoint.
10366 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10367 Use TARGET_DEFAULT_FUNC.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target-delegates.c: Rebuild.
10372 * target.c (update_current_target): Don't inherit or default
10373 to_watchpoint_addr_within_range.
10374 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10375 Use TARGET_DEFAULT_FUNC.
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10379 * target-delegates.c: Rebuild.
10380 * target.c (update_current_target): Don't inherit or default
10381 to_remove_watchpoint.
10382 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10383 TARGET_DEFAULT_NORETURN.
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10387 * target-delegates.c: Rebuild.
10388 * target.c (update_current_target): Don't inherit or default
10389 to_insert_watchpoint.
10390 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10391 TARGET_DEFAULT_RETURN.
10393 2014-02-19 Tom Tromey <tromey@redhat.com>
10395 * target-delegates.c: Rebuild.
10396 * target.c (update_current_target): Don't inherit or default
10397 to_remove_hw_breakpoint.
10398 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10399 TARGET_DEFAULT_RETURN.
10401 2014-02-19 Tom Tromey <tromey@redhat.com>
10403 * target-delegates.c: Rebuild.
10404 * target.c (update_current_target): Don't inherit or default
10405 to_insert_hw_breakpoint.
10406 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10407 TARGET_DEFAULT_RETURN.
10409 2014-02-19 Tom Tromey <tromey@redhat.com>
10411 * target-delegates.c: Rebuild.
10412 * target.c (update_current_target): Don't inherit or default
10413 to_can_use_hw_breakpoint.
10414 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10415 TARGET_DEFAULT_RETURN.
10417 2014-02-19 Tom Tromey <tromey@redhat.com>
10419 * target-delegates.c: Rebuild.
10420 * target.c (update_current_target): Don't inherit or default
10422 * target.h (struct target_ops) <to_files_info>: Use
10423 TARGET_DEFAULT_IGNORE.
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * target-delegates.c: Rebuild.
10428 * target.c (update_current_target): Don't inherit or default
10430 * target.h (struct target_ops) <to_store>: Use
10431 TARGET_DEFAULT_NORETURN.
10433 2014-02-19 Tom Tromey <tromey@redhat.com>
10435 * target-delegates.c: Rebuild.
10436 * target.c (update_current_target): Don't inherit or default
10438 * target.h (struct target_ops) <to_post_attach>: Use
10439 TARGET_DEFAULT_IGNORE.
10441 2014-02-19 Tom Tromey <tromey@redhat.com>
10443 * target-delegates.c: Rebuild.
10444 * target.c (update_current_target): Don't inherit or default
10446 (default_rcmd): New function.
10447 (do_monitor_command): Unconditionally delegate.
10448 * target.h (struct target_ops) <to_rmcd>: Use
10449 TARGET_DEFAULT_FUNC.
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target-delegates.c: Rebuild.
10454 * target.c (init_dummy_target): Don't initialize to_attach.
10455 (target_attach): Unconditionally delegate.
10456 * target.h (struct target_ops) <to_attach>: Use
10457 TARGET_DEFAULT_FUNC.
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10461 * target-delegates.c: Rebuild.
10462 * target.c (target_detach): Unconditionally delegate.
10463 (init_dummy_target): Don't initialize to_detach.
10464 * target.h (struct target_ops) <to_detach>: Use
10465 TARGET_DEFAULT_IGNORE.
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10471 (target_augmented_libraries_svr4_read): Add argument.
10472 * target.c (update_current_target): Update.
10473 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10478 * target.h (struct target_ops) <to_call_history_range>: Add
10480 * target.c (target_call_history_range): Add argument.
10481 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10483 (record_btrace_call_history_from): Update.
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10487 * target.h (struct target_ops) <to_call_history_from>: Add
10489 * target.c (target_call_history_from): Add argument.
10490 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10495 * target.h (struct target_ops) <to_call_history>: Add argument.
10496 * target.c (target_call_history): Add argument.
10497 * record-btrace.c (record_btrace_call_history): Add 'self'
10500 2014-02-19 Tom Tromey <tromey@redhat.com>
10502 * target.h (struct target_ops) <to_insn_history_range>: Add
10504 * target.c (target_insn_history_range): Add argument.
10505 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10507 (record_btrace_insn_history_from): Update.
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10511 * target.h (struct target_ops) <to_insn_history_from>: Add
10513 * target.c (target_insn_history_from): Add argument.
10514 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * target.h (struct target_ops) <to_insn_history>: Add argument.
10520 * target.c (target_insn_history): Add argument.
10521 * record-btrace.c (record_btrace_insn_history): Add 'self'
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target.h (struct target_ops) <to_goto_record>: Add argument.
10527 * target.c (target_goto_record): Add argument.
10528 * record-full.c (record_full_goto): Add 'self' argument.
10529 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10533 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10534 * target.c (target_goto_record_end): Add argument.
10535 * record-full.c (record_full_goto_end): Add 'self' argument.
10536 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target.h (struct target_ops) <to_goto_record_begin>: Add
10542 * target.c (target_goto_record_begin): Add argument.
10543 * record-full.c (record_full_goto_begin): Add 'self' argument.
10544 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10547 2014-02-19 Tom Tromey <tromey@redhat.com>
10549 * target.h (struct target_ops) <to_record_is_replaying>: Add
10551 * target.c (target_record_is_replaying): Add argument.
10552 * record-full.c (record_full_is_replaying): Add 'self' argument.
10553 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10555 (record_btrace_xfer_partial, record_btrace_store_registers)
10556 (record_btrace_prepare_to_store, record_btrace_resume)
10557 (record_btrace_wait, record_btrace_decr_pc_after_break)
10558 (record_btrace_find_new_threads, record_btrace_thread_alive):
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10563 * target.h (struct target_ops) <to_delete_record>: Add argument.
10564 * target.c (target_delete_record): Add argument.
10565 * record-full.c (record_full_delete): Add 'self' argument.
10567 2014-02-19 Tom Tromey <tromey@redhat.com>
10569 * target.h (struct target_ops) <to_save_record>: Add argument.
10570 * target.c (target_save_record): Add argument.
10571 * record-full.c (record_full_save): Add 'self' argument.
10572 (record_full_save): Add 'self' argument.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target.h (struct target_ops) <to_info_record>: Add argument.
10577 * target.c (target_info_record): Add argument.
10578 * record.c (info_record_command): Add argument.
10579 * record-full.c (record_full_info): Add 'self' argument.
10580 * record-btrace.c (record_btrace_info): Add 'self' argument.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10585 * target.c (target_stop_recording): Add argument.
10586 * record.c (record_stop): Add argument.
10587 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10590 2014-02-19 Tom Tromey <tromey@redhat.com>
10592 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10593 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10594 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10596 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10597 (_initialize_amd64_linux_nat): Use it.
10598 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10599 (_initialize_i386_linux_nat): Use it.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10604 * target.c (target_teardown_btrace): Add argument.
10605 * remote.c (remote_teardown_btrace): Add 'self' argument.
10606 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10608 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10611 2014-02-19 Tom Tromey <tromey@redhat.com>
10613 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10614 * target.c (target_disable_btrace): Add argument.
10615 * remote.c (remote_disable_btrace): Add 'self' argument.
10616 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10618 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10624 * target.c (target_enable_btrace): Add argument.
10625 * remote.c (remote_enable_btrace): Add 'self' argument.
10626 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10628 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10634 (target_can_use_agent): Add argument.
10635 * target.c (update_current_target): Update.
10636 * remote.c (remote_can_use_agent): Add 'self' argument.
10637 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10641 * target.h (struct target_ops) <to_use_agent>: Add argument.
10642 (target_use_agent): Add argument.
10643 * target.c (update_current_target): Update.
10644 * remote.c (remote_use_agent): Add 'self' argument.
10645 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10650 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10651 (target_traceframe_info): Add argument.
10652 * target.c (update_current_target): Update.
10653 * remote.c (remote_traceframe_info): Add 'self' argument.
10654 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * target.h (target_static_tracepoint_markers_by_strid): Add
10660 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10662 * target.c (update_current_target): Update.
10663 * remote.c (struct target_ops)
10664 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10665 * linux-nat.c (struct target_ops)
10666 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10670 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10672 (target_static_tracepoint_marker_at): Add argument.
10673 * target.c (update_current_target): Update.
10674 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10680 (target_set_permissions): Add argument.
10681 * target.c (update_current_target): Update.
10682 * remote.c (remote_set_permissions): Add 'self' argument.
10683 (remote_start_remote): Update.
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10687 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10688 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10689 (target_get_tib_address): Add argument.
10690 * target.c (update_current_target): Update.
10691 * remote.c (remote_get_tib_address): Add 'self' argument.
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10696 (target_set_trace_notes): Add argument.
10697 * target.c (update_current_target): Update.
10698 * remote.c (remote_set_trace_notes): Add 'self' argument.
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10702 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10704 (target_set_trace_buffer_size): Add argument.
10705 * target.c (update_current_target): Update.
10706 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10710 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10712 (target_set_circular_trace_buffer): Add argument.
10713 * target.c (update_current_target): Update.
10714 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10717 2014-02-19 Tom Tromey <tromey@redhat.com>
10719 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10721 (target_set_disconnected_tracing): Add argument.
10722 * target.c (update_current_target): Update.
10723 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target.h (struct target_ops)
10728 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10729 (target_get_min_fast_tracepoint_insn_len): Add argument.
10730 * target.c (update_current_target): Update.
10731 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10736 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10738 (target_get_raw_trace_data): Add argument.
10739 * target.c (update_current_target): Update.
10740 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10744 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10746 (target_upload_trace_state_variables): Add argument.
10747 * target.c (update_current_target): Update.
10748 * remote.c (remote_upload_trace_state_variables): Add 'self'
10750 (remote_start_remote): Update.
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10754 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10756 (target_upload_tracepoints): Add argument.
10757 * target.c (update_current_target): Update.
10758 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10759 (remote_start_remote): Update.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10764 (target_save_trace_data): Add argument.
10765 * target.c (update_current_target): Update.
10766 * remote.c (remote_save_trace_data): Add 'self' argument.
10768 2014-02-19 Tom Tromey <tromey@redhat.com>
10770 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10772 * target.h (struct target_ops)
10773 <to_get_trace_state_variable_value>: Add argument.
10774 (target_get_trace_state_variable_value): Add argument.
10775 * target.c (update_current_target): Update.
10776 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10778 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10780 2014-02-19 Tom Tromey <tromey@redhat.com>
10782 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10783 * target.h (struct target_ops) <to_trace_find>: Add argument.
10784 (target_trace_find): Add argument.
10785 * target.c (update_current_target): Update.
10786 * remote.c (remote_trace_find): Add 'self' argument.
10787 * ctf.c (ctf_trace_find): Add 'self' argument.
10789 2014-02-19 Tom Tromey <tromey@redhat.com>
10791 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10792 (target_trace_stop): Add argument.
10793 * target.c (update_current_target): Update.
10794 * remote.c (remote_trace_stop): Add 'self' argument.
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10798 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10799 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10801 (target_get_tracepoint_status): Add argument.
10802 * target.c (update_current_target): Update.
10803 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10807 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10808 * target.h (struct target_ops) <to_get_trace_status>: Add
10810 (target_get_trace_status): Add argument.
10811 * target.c (update_current_target): Update.
10812 * remote.c (remote_get_trace_status): Add 'self' argument.
10813 (remote_start_remote, remote_can_download_tracepoint): Update.
10814 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10818 * target.h (struct target_ops) <to_trace_start>: Add argument.
10819 (target_trace_start): Add argument.
10820 * target.c (update_current_target): Update.
10821 * remote.c (remote_trace_start): Add 'self' argument.
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10825 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10827 (target_trace_set_readonly_regions): Add argument.
10828 * target.c (update_current_target): Update.
10829 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10836 (target_disable_tracepoint): Add argument.
10837 * target.c (update_current_target): Update.
10838 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10844 (target_enable_tracepoint): Add argument.
10845 * target.c (update_current_target): Update.
10846 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target.h (struct target_ops) <to_download_trace_state_variable>:
10852 (target_download_trace_state_variable): Add argument.
10853 * target.c (update_current_target): Update.
10854 * remote.c (remote_download_trace_state_variable): Add 'self'
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10859 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10861 (target_can_download_tracepoint): Add argument.
10862 * target.c (update_current_target): Update.
10863 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10865 2014-02-19 Tom Tromey <tromey@redhat.com>
10867 * target.h (struct target_ops) <to_download_tracepoint>: Add
10869 (target_download_tracepoint): Add argument.
10870 * target.c (update_current_target): Update.
10871 * remote.c (remote_download_tracepoint): Add 'self' argument.
10873 2014-02-19 Tom Tromey <tromey@redhat.com>
10875 * target.h (struct target_ops) <to_trace_init>: Add argument.
10876 (target_trace_init): Add argument.
10877 * target.c (update_current_target): Update.
10878 * remote.c (remote_trace_init): Add 'self' argument.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10883 * target.c (target_fileio_readlink): Add argument.
10884 * remote.c (remote_hostio_readlink): Add 'self' argument.
10885 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10889 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10890 * target.c (target_fileio_unlink): Add argument.
10891 * remote.c (remote_hostio_unlink): Add 'self' argument.
10892 (remote_file_delete): Update.
10893 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10895 2014-02-19 Tom Tromey <tromey@redhat.com>
10897 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10898 * target.c (target_fileio_close): Add argument.
10899 * remote.c (remote_hostio_close): Add 'self' argument.
10900 (remote_hostio_close_cleanup): Update.
10901 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10903 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10908 * target.c (target_fileio_pread): Add argument.
10909 * remote.c (remote_hostio_pread): Add 'self' argument.
10910 (remote_bfd_iovec_pread, remote_file_get): Update.
10911 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10913 2014-02-19 Tom Tromey <tromey@redhat.com>
10915 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10916 * target.c (target_fileio_pwrite): Add argument.
10917 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10918 (remote_file_put): Update.
10919 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10924 * target.c (target_fileio_open): Add argument.
10925 * remote.c (remote_hostio_open): Add 'self' argument.
10926 (remote_bfd_iovec_open): Add 'self' argument.
10927 (remote_file_put): Add 'self' argument.
10928 (remote_file_get): Add 'self' argument.
10929 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10931 2014-02-19 Tom Tromey <tromey@redhat.com>
10933 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10935 (target_can_run_breakpoint_commands): Add argument.
10936 * target.c (update_current_target): Update.
10937 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10939 (remote_insert_breakpoint): Add 'self' argument.
10940 (remote_insert_hw_breakpoint): Add 'self' argument.
10941 (remote_can_run_breakpoint_commands): Add 'self' argument.
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10945 * target.h (struct target_ops)
10946 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10947 (target_supports_evaluation_of_breakpoint_conditions): Add
10949 * target.c (update_current_target): Update.
10950 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10952 (remote_insert_breakpoint): Add 'self' argument.
10953 (remote_insert_hw_breakpoint): Add 'self' argument.
10954 (remote_supports_cond_breakpoints): Add 'self' argument.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10960 (target_supports_string_tracing): Add argument.
10961 * target.c (update_current_target): Update.
10962 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10964 2014-02-19 Tom Tromey <tromey@redhat.com>
10966 * target.h (struct target_ops)
10967 <to_supports_disable_randomization>: Add argument.
10968 * target.c (find_default_supports_disable_randomization): Add
10970 (target_supports_disable_randomization): Add argument.
10971 (find_default_supports_disable_randomization): Add 'self'
10973 * remote.c (extended_remote_supports_disable_randomization): Add
10975 (remote_supports_disable_randomization): Add 'self' argument.
10976 (extended_remote_create_inferior): Update.
10977 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10982 * target.h (struct target_ops)
10983 <to_supports_enable_disable_tracepoint>: Add argument.
10984 (target_supports_enable_disable_tracepoint): Add argument.
10985 * target.c (update_current_target): Update.
10986 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10989 2014-02-19 Tom Tromey <tromey@redhat.com>
10991 * target.h (struct target_ops) <to_supports_multi_process>: Add
10993 (target_supports_multi_process): Add argument.
10994 * target.c (update_current_target): Update.
10995 * remote.c (remote_supports_multi_process): Add 'self' argument.
10996 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10998 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11003 * target.h (struct target_ops) <to_execution_direction>: Add
11005 (target_execution_direction): Add argument.
11006 * target.c (default_execution_direction): Add 'self' argument.
11007 * record-full.c (record_full_execution_direction): Add 'self'
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11014 (target_can_execute_reverse): Add argument.
11015 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11016 * record-full.c (record_full_can_execute_reverse): Add 'self'
11018 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11023 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11024 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11026 (target_get_ada_task_ptid): Add argument.
11027 * target.c (update_current_target): Update.
11028 (default_get_ada_task_ptid): Add 'self' argument.
11029 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11030 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11031 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11033 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11035 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11037 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11039 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11040 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11046 (target_goto_bookmark): Add argument.
11047 * target.c (dummy_goto_bookmark): Add 'self' argument.
11048 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11052 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11053 (target_get_bookmark): Add argument.
11054 * target.c (dummy_get_bookmark): Add 'self' argument.
11055 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11059 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11061 (target_make_corefile_notes): Add argument.
11062 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11063 * procfs.c (procfs_make_note_section): Add 'self' argument.
11064 (procfs_make_note_section): Add 'self' argument.
11065 (procfs_make_note_section): Add 'self' argument.
11066 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11068 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11069 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11070 * exec.c (exec_make_note_section): Add 'self' argument.
11071 (exec_make_note_section): Add 'self' argument.
11073 2014-02-19 Tom Tromey <tromey@redhat.com>
11075 * target.h (struct target_ops) <to_find_memory_regions>: Add
11077 (target_find_memory_regions): Add argument.
11078 * target.c (dummy_find_memory_regions): Add 'self' argument.
11079 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11080 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11081 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11082 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11083 * exec. (exec_do_find_memory_regions): New global.
11084 (exec_set_find_memory_regions): Rewrite.
11085 (exec_find_memory_regions): New function.
11086 (init_exec_ops): Use exec_find_memory_regions.
11088 2014-02-19 Tom Tromey <tromey@redhat.com>
11090 * target.h (struct target_ops) <to_supports_non_stop>: Add
11092 * target.c (find_default_supports_non_stop): Add argument.
11093 (target_supports_non_stop): Add argument.
11094 (find_default_supports_non_stop): Add 'self' argument.
11095 * remote.c (remote_supports_non_stop): Add 'self' argument.
11096 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11098 2014-02-19 Tom Tromey <tromey@redhat.com>
11100 * target.h (struct target_ops) <to_log_command>: Add argument.
11101 (target_log_command): Add argument.
11102 * serial.h (serial_log_command): Add 'self' argument.
11103 * serial.c (serial_log_command): Add 'self' argument.
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11107 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11108 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11110 (target_pid_to_exec_file): Add argument.
11111 * target.c (debug_to_pid_to_exec_file): Add argument.
11112 (update_current_target): Update.
11113 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11114 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11115 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11116 (linux_handle_extended_wait): Update.
11117 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11118 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11119 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11120 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * target.h (struct target_ops) <to_rcmd>: Add argument.
11125 (target_rcmd): Add argument.
11126 * target.c (debug_to_rcmd): Add argument.
11127 (update_current_target, do_monitor_command): Update.
11128 * remote.c (remote_rcmd): Add 'self' argument.
11129 * monitor.c (monitor_rcmd): Add 'self' argument.
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11133 * windows-nat.c (windows_stop): Add 'self' argument.
11134 * target.h (struct target_ops) <to_stop>: Add argument.
11135 * target.c (target_stop): Add argument.
11136 (debug_to_stop): Add argument.
11137 (update_current_target): Update.
11138 * remote.c (remote_stop): Add 'self' argument.
11139 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11140 (gdbsim_cntrl_c): Update.
11141 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11142 * procfs.c (procfs_stop): Add 'self' argument.
11143 * nto-procfs.c (procfs_stop): Add 'self' argument.
11144 * monitor.c (monitor_stop): Add 'self' argument.
11145 (monitor_open): Update.
11146 * linux-nat.c (linux_nat_stop): Add argument.
11147 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11148 * gnu-nat.c (gnu_stop): Add 'self' argument.
11149 * darwin-nat.c (darwin_stop): Add 'self' argument.
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11153 * target.h (struct target_ops) <to_thread_name>: Add argument.
11154 * target.c (target_thread_name): Add argument.
11155 (update_current_target): Update.
11156 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11160 * target.h (struct target_ops) <to_extra_thread_info>: Add
11162 (target_extra_thread_info): Add argument.
11163 * target.c (update_current_target): Update.
11164 * remote.c (remote_threads_extra_info): Add 'self' argument.
11165 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11167 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11168 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11169 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11171 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11173 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11175 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11180 * target.h (struct target_ops) <to_program_signals>: Add argument.
11181 * target.c (target_program_signals): Add argument.
11182 * remote.c (remote_program_signals): Add 'self' argument.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11187 * target.c (target_pass_signals): Add argument.
11188 * remote.c (remote_pass_signals): Add 'self' argument.
11189 (remote_start_remote): Update.
11190 * procfs.c (procfs_pass_signals): Add 'self' argument.
11191 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11192 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11193 (linux_nat_create_inferior, linux_nat_attach): Update.
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11197 * windows-nat.c (windows_can_run): Add 'self' argument.
11198 * target.h (struct target_ops) <to_can_run>: Add argument.
11199 (target_can_run): Add argument.
11200 * target.c (debug_to_can_run): Add argument.
11201 (update_current_target): Update.
11202 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11203 * inf-child.c (inf_child_can_run): Add 'self' argument.
11204 * go32-nat.c (go32_can_run): Add 'self' argument.
11206 2014-02-19 Tom Tromey <tromey@redhat.com>
11208 * target.h (struct target_ops) <to_has_exited>: Add argument.
11209 (target_has_exited): Add argument.
11210 * target.c (debug_to_has_exited): Add argument.
11211 (update_current_target): Update.
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11217 (target_set_syscall_catchpoint): Add argument.
11218 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11220 * target.c (update_current_target): Update.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11226 (target_remove_exec_catchpoint): Add argument.
11227 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11228 (update_current_target): Update.
11229 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11234 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11236 (target_insert_exec_catchpoint): Add argument.
11237 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11238 (update_current_target): Update.
11239 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11242 2014-02-19 Tom Tromey <tromey@redhat.com>
11244 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11246 (target_remove_vfork_catchpoint): Add argument.
11247 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11248 (update_current_target): Update.
11249 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11254 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11256 (target_insert_vfork_catchpoint): Add argument.
11257 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11258 (update_current_target): Update.
11259 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11264 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11266 (target_remove_fork_catchpoint): Add argument.
11267 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11268 (update_current_target): Update.
11269 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11274 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11276 (target_insert_fork_catchpoint): Add argument.
11277 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11278 (update_current_target): Update.
11279 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11282 2014-02-19 Tom Tromey <tromey@redhat.com>
11284 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11286 (target_post_startup_inferior): Add argument.
11287 * target.c (debug_to_post_startup_inferior): Add argument.
11288 (update_current_target): Update.
11289 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11291 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11293 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11295 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11297 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11299 (super_post_startup_inferior): Likewise.
11300 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11302 (super_post_startup_inferior): Likewise.
11303 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11304 Add 'self' argument.
11305 (super_post_startup_inferior): Likewise.
11307 2014-02-19 Tom Tromey <tromey@redhat.com>
11309 * target.h (struct target_ops) <to_load>: Add argument.
11310 * target.c (target_load): Add argument.
11311 (debug_to_load): Add argument.
11312 (update_current_target): Update.
11313 * remote.c (remote_load): Add 'self' argument.
11314 * remote-sim.c (gdbsim_load): Add 'self' argument.
11315 * remote-mips.c (mips_load): Add 'self' argument.
11316 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11317 * monitor.c (monitor_load): Add 'self' argument.
11318 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11320 2014-02-19 Tom Tromey <tromey@redhat.com>
11322 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11323 (target_terminal_info): Add argument.
11324 * target.c (debug_to_terminal_info): Add argument.
11325 (default_terminal_info): Likewise.
11326 * inflow.c (child_terminal_info): Add 'self' argument.
11327 * inferior.h (child_terminal_info): Add 'self' argument.
11328 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11330 2014-02-19 Tom Tromey <tromey@redhat.com>
11332 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11334 (target_terminal_save_ours): Add argument.
11335 * target.c (debug_to_terminal_save_ours): Add argument.
11336 (update_current_target): Update.
11337 * inflow.c (terminal_save_ours): Add 'self' argument.
11338 * inferior.h (terminal_save_ours): Add 'self' argument.
11340 2014-02-19 Tom Tromey <tromey@redhat.com>
11342 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11343 (target_terminal_ours): Add argument.
11344 * target.c (debug_to_terminal_ours): Add argument.
11345 (update_current_target): Update.
11346 * remote.c (remote_terminal_ours): Add 'self' argument.
11347 (remote_close): Update.
11348 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11349 * inflow.c (terminal_ours): Add 'self' argument.
11350 * inferior.h (terminal_ours): Add 'self' argument.
11351 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11353 2014-02-19 Pedro Alves <palves@redhat.com>
11354 Tom Tromey <tromey@redhat.com>
11356 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11358 (target_terminal_ours_for_output): Add argument.
11359 * target.c (debug_to_terminal_ours_for_output): Add argument.
11360 (update_current_target): Update.
11361 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11362 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11363 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11365 2014-02-19 Tom Tromey <tromey@redhat.com>
11367 * target.h (struct target_ops) <to_terminal_inferior>: Add
11369 * target.c (target_terminal_inferior): Add argument.
11370 (update_current_target): Update.
11371 * remote.c (remote_terminal_inferior): Add 'self' argument.
11372 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11373 * inflow.c (terminal_inferior): Add 'self' argument.
11374 * inferior.h (terminal_inferior): Add 'self' argument.
11375 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11376 (go32_terminal_inferior): Add 'self' argument.
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11380 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11381 (target_terminal_init): Add argument.
11382 * target.c (debug_to_terminal_init): Add argument.
11383 (update_current_target): Update.
11384 * inflow.c (terminal_init_inferior): Add 'self' argument.
11385 * inferior.h (terminal_init_inferior): Add 'self' argument.
11386 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11387 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11391 * target.h (struct target_ops)
11392 <to_can_accel_watchpoint_condition>: Add argument.
11393 (target_can_accel_watchpoint_condition): Add argument.
11394 * target.c (debug_to_can_accel_watchpoint_condition): Add
11396 (update_current_target): Update.
11397 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11400 2014-02-19 Tom Tromey <tromey@redhat.com>
11402 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11404 (target_region_ok_for_hw_watchpoint): Add argument.
11405 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11406 (default_region_ok_for_hw_watchpoint): Add argument.
11407 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11408 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11410 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11412 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11414 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11416 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11418 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11420 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11421 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11423 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11424 Add 'self' argument.
11426 2014-02-19 Tom Tromey <tromey@redhat.com>
11428 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11430 (target_insert_watchpoint): Add argument.
11431 * target.c (debug_to_insert_watchpoint): Add argument.
11432 (update_current_target): Update.
11433 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11434 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11435 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11436 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11437 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11438 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11440 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11441 (procfs_insert_hw_watchpoint): Add 'self' argument.
11442 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11444 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11446 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11448 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11449 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11451 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11454 2014-02-19 Tom Tromey <tromey@redhat.com>
11456 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11458 (target_remove_watchpoint): Add argument.
11459 * target.c (debug_to_remove_watchpoint): Add argument.
11460 (update_current_target): Update.
11461 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11462 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11463 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11464 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11465 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11466 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11468 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11469 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11471 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11473 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11475 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11476 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11478 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11481 2014-02-19 Tom Tromey <tromey@redhat.com>
11483 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11485 (target_remove_hw_breakpoint): Add argument.
11486 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11487 (update_current_target): Update.
11488 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11489 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11491 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11492 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11494 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11497 2014-02-19 Tom Tromey <tromey@redhat.com>
11499 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11501 (target_insert_hw_breakpoint): Add argument.
11502 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11503 (update_current_target): Update.
11504 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11505 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11507 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11508 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11509 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11511 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11518 (target_can_use_hardware_watchpoint): Add argument.
11519 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11520 (update_current_target): Update.
11521 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11523 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11525 * remote.c (remote_check_watch_resources): Add 'self' argument.
11526 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11527 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11529 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11530 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11532 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11534 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11536 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11538 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11540 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11542 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11543 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11545 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11548 2014-02-19 Tom Tromey <tromey@redhat.com>
11550 * target.h (struct target_ops) <to_post_attach>: Add argument.
11551 (target_post_attach): Add argument.
11552 * target.c (debug_to_post_attach): Add argument.
11553 (update_current_target): Update.
11554 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11555 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11556 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11557 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11558 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11562 * windows-nat.c (windows_close): Add 'self' argument.
11563 * tracepoint.c (tfile_close): Add 'self' argument.
11564 * target.h (struct target_ops) <to_close>: Add argument.
11565 * target.c (target_close): Add argument.
11566 (update_current_target): Update.
11567 * remote.c (remote_close): Add 'self' argument.
11568 * remote-sim.c (gdbsim_close): Add 'self' argument.
11569 * remote-mips.c (mips_close): Add 'self' argument.
11570 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11571 * record-full.c (record_full_close): Add 'self' argument.
11572 * record-btrace.c (record_btrace_close): Add 'self' argument.
11573 * monitor.h (monitor_close): Add 'self' argument.
11574 * monitor.c (monitor_close): Add 'self' argument.
11575 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11576 * linux-nat.c (linux_nat_close): Add argument.
11577 * go32-nat.c (go32_close): Add 'self' argument.
11578 * exec.c (exec_close_1): Add 'self' argument.
11579 * ctf.c (ctf_close): Add 'self' argument.
11580 * corelow.c (core_close): Add 'self' argument.
11581 (core_close_cleanup): Update.
11582 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11583 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11587 * remote.c (remote_load): New function.
11588 (init_remote_ops): Use it.
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11592 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11594 * common/linux-btrace.h (linux_supports_btrace): Update.
11595 * remote.c (remote_supports_btrace): Add "self" argument.
11596 * target-delegates.c: Rebuild.
11597 * target.c (target_supports_btrace): Remove.
11598 * target.h (struct target_ops) <to_supports_btrace>: Add
11599 target_ops argument.
11600 (target_supports_btrace): New define.
11602 2014-02-19 Tom Tromey <tromey@redhat.com>
11604 * record-full.c (record_full_beneath_to_resume_ops)
11605 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11606 (record_full_beneath_to_wait)
11607 (record_full_beneath_to_store_registers_ops)
11608 (record_full_beneath_to_store_registers)
11609 (record_full_beneath_to_xfer_partial_ops)
11610 (record_full_beneath_to_xfer_partial)
11611 (record_full_beneath_to_insert_breakpoint_ops)
11612 (record_full_beneath_to_insert_breakpoint)
11613 (record_full_beneath_to_remove_breakpoint_ops)
11614 (record_full_beneath_to_remove_breakpoint)
11615 (record_full_beneath_to_stopped_by_watchpoint)
11616 (record_full_beneath_to_stopped_data_address)
11617 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11618 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11619 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11620 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11621 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11622 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11623 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11624 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11625 (record_full_resume, record_full_wait_1)
11626 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11627 (record_full_store_registers, record_full_xfer_partial)
11628 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11629 (record_full_async, record_full_core_xfer_partial): Use target
11631 * target-delegates.c: Rebuild.
11632 * target.c (current_xfer_partial): Remove.
11633 (update_current_target): Do not INHERIT or de_fault
11634 to_insert_breakpoint, to_remove_breakpoint,
11635 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11636 to_is_async_p, to_async. Do not set to_xfer_partial field.
11637 (default_xfer_partial): Simplify.
11638 (current_xfer_partial): Remove.
11639 (target_wait, target_resume): Simplify.
11640 (find_default_can_async_p, find_default_is_async_p): Update.
11641 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11642 to_xfer_partial, to_stopped_by_watchpoint,
11643 to_stopped_data_address.
11644 (target_store_registers): Simplify.
11645 (forward_target_remove_breakpoint)
11646 (forward_target_insert_breakpoint): Remove.
11647 (target_remove_breakpoint, target_insert_breakpoint)
11648 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11649 * target.h (struct target_ops) <to_resume, to_wait,
11650 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11651 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11652 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11654 (forward_target_remove_breakpoint)
11655 (forward_target_insert_breakpoint): Remove.
11656 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11658 (record_btrace_insert_breakpoint): Delegate directly.
11660 2014-02-19 Tom Tromey <tromey@redhat.com>
11663 * target-delegates.c: New file.
11664 * target.c: Include target-delegates.c.
11665 (init_dummy_target): Call install_dummy_methods.
11666 (complete_target_initialization): Call install_delegators.
11667 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11668 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11669 * make-target-delegates: New file.
11671 2014-02-19 Tom Tromey <tromey@redhat.com>
11673 * record.c (find_record_target): Use find_target_at.
11674 * target.c (find_target_at): New function.
11675 * target.h (find_target_at): Declare.
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11679 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11680 Add 'ops' argument.
11681 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11683 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11684 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11686 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11688 * linux-nat.c (save_sigtrap): Update.
11689 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11690 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11691 (linux_nat_close): Update.
11692 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11694 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11696 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11697 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11698 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11699 (tmp_to_async): Add 'ops' argument.
11700 (record_full_stopped_by_watchpoint, record_full_async)
11701 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11703 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11704 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11705 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11706 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11707 (remote_is_async_p, remote_async): Add 'ops' argument.
11708 (remote_stopped_data_address): Update.
11709 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11710 * target.c (update_current_target)
11711 (find_default_can_async_p, find_default_is_async_p): Update.
11712 (init_dummy_target): Update.
11713 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11714 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11715 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11716 (target_can_async_p, target_is_async_p, target_async)
11717 (target_stopped_by_watchpoint): Update.
11719 2014-02-19 Yao Qi <yao@codesourcery.com>
11722 * gdbarch.sh: Remove startup_gdbarch.
11723 * gdbarch.c: Regenerated.
11724 * gdbarch.h: Likewise.
11726 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11728 * rl78-tdep.c (rl78_g10_register_name): New function.
11729 (rl78_return_value): Add g10 support.
11730 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11733 2014-02-17 Doug Evans <xdje42@gmail.com>
11735 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11736 (SUBDIR_GUILE_SRCS): Ditto.
11737 (scm-gsmob.o): Ditto.
11739 2014-02-17 Yao Qi <yao@codesourcery.com>
11741 * gnu-nat.c (ILL_RPC): Declare defined function.
11743 2014-02-17 Yao Qi <yao@codesourcery.com>
11745 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11746 mach_msg_type_number_t.
11747 (gnu_write_inferior): Likewise.
11749 2014-02-17 Yao Qi <yao@codesourcery.com>
11751 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11753 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11754 (inf_validate_procs, inf_signal): Likewise.
11755 (S_exception_raise_request): Likewise.
11756 (do_mach_notify_dead_name): Likewise.
11757 (steal_exc_port): Likewise.
11758 (gnu_read_inferior): Change 'copy_count''s type to
11759 mach_msg_type_number_t.
11760 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11763 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11765 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11766 flag. Adjust all users; in particular...
11767 (gnu_wait): ..., don't decrement its value in here...
11768 (gnu_create_inferior): ..., and instead set the flag in here,
11769 around the startup_inferior call, and call that one with
11770 START_INFERIOR_TRAPS_EXPECTED.
11772 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11773 (ILL_RPC): ... new macro.
11774 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11775 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11776 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11777 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11778 functions with ILL_RPC macro.
11779 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11780 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11781 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11782 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11783 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11784 (S_proc_getlogin_reply, S_proc_getsid_reply)
11785 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11786 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11787 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11788 (S_proc_getnports_reply, S_proc_is_important_reply)
11789 (S_proc_get_code_reply): New stub functions, generated with
11792 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11793 collected the type check structures.
11795 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11797 2014-02-14 Doug Evans <dje@google.com>
11799 * target.c (target_write_partial): Fix result type.
11801 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11803 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11804 the proper offsets to access fpregset_t.
11806 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11808 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11809 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11810 * h8300-tdep.c (setmachinelist): Remove global.
11811 * hppa-tdep.c (hppa_sigtramp): Remove global.
11812 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11813 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11814 * ravenscar-thread.c (update_target_observer): Remove global.
11815 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11817 2014-02-12 Tom Tromey <tromey@redhat.com>
11819 * common/rsp-low.c: Update comments.
11820 * common/rsp-low.h: Update comments.
11822 2014-02-12 Tom Tromey <tromey@redhat.com>
11824 * common/rsp-low.c (convert_ascii_to_int): Remove.
11825 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11827 2014-02-12 Tom Tromey <tromey@redhat.com>
11829 * common/rsp-low.h (unhexify): Don't declare.
11830 * common/rsp-low.c (unhexify): Remove.
11832 2014-02-12 Tom Tromey <tromey@redhat.com>
11834 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11835 * common/rsp-low.c (convert_int_to_ascii): Remove.
11837 2014-02-12 Tom Tromey <tromey@redhat.com>
11839 * common/rsp-low.h (hexify): Don't declare.
11840 * common/rsp-low.c (hexify): Remove.
11842 2014-02-12 Tom Tromey <tromey@redhat.com>
11844 * common/rsp-low.c (hexify): Never take strlen of argument.
11846 2014-02-12 Tom Tromey <tromey@redhat.com>
11848 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11849 * remote.c (extended_remote_run, remote_rcmd)
11850 (remote_download_trace_state_variable, remote_save_trace_data)
11851 (remote_set_trace_notes): Update.
11852 * tracepoint.c (encode_source_string, tfile_write_status)
11853 (tfile_write_uploaded_tsv): Update.
11855 2014-02-12 Tom Tromey <tromey@redhat.com>
11857 * tracepoint.c: Include rsp-low.h.
11858 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11859 * remote.c: Include rsp-low.h.
11860 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11861 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11862 (remote_unescape_input): Move to common/rsp-low.c.
11863 * common/rsp-low.h: New file.
11864 * common/rsp-low.c: New file.
11865 * Makefile.in (SFILES): Add common/rsp-low.c.
11866 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11867 (COMMON_OBS): Add rsp-low.o.
11868 (rsp-low.o): New target.
11870 2014-02-12 Tom Tromey <tromey@redhat.com>
11872 * utils.h: Include print-utils.h.
11873 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11874 (int_string, core_addr_to_string, core_addr_to_string_nz)
11875 (hex_string, hex_string_custom): Don't declare.
11876 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11877 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11878 (hex_string_custom, int_string, core_addr_to_string)
11879 (core_addr_to_string_nz, host_address_to_string): Move to
11880 common/print-utils.c.
11881 * common/print-utils.h: New file.
11882 * common/print-utils.c: New file
11883 * Makefile.in (SFILES): Add common/print-utils.c.
11884 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11885 (COMMON_OBS): Add print-utils.o.
11886 (print-utils.o): New target.
11888 2014-02-12 Tom Tromey <tromey@redhat.com>
11890 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11892 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11894 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11896 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11898 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11899 if a PT_IO ptrace request returns sucessfully but indicates that 0
11900 bytes were transferred.
11902 2014-02-12 Pedro Alves <palves@redhat.com>
11903 Kevin Buettner <kevinb@redhat.com>
11905 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11906 TYPE_INSTANCE_FLAG_CODE_SPACE.
11908 2014-02-12 Pedro Alves <palves@redhat.com>
11910 * h8300-tdep.c (pseudo_from_raw_register)
11911 (raw_from_pseudo_register): New functions.
11912 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11915 2014-02-12 Pedro Alves <palves@redhat.com>
11917 * h8300-tdep.c (h8300_register_sim_regno): New function.
11918 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11919 gdbarch_register_sim_regno hook.
11921 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11923 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11925 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11927 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11929 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11931 * obsd-tdep.h (obsd_init_abi): New prototype.
11932 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11933 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11934 (obsd_init_abi): New functions.
11935 * i386obsd-tdep.c: Include "obsd-tdep.h".
11936 (i386obsd_init_abi): Call obsd_init_abi.
11937 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11938 (amd64obsd_init_abi): Call obsd_init_abi.
11939 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11940 obsd-tdep.c to gdb_target_obs.
11942 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11944 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11945 double float arguments to 16-byte in the argument slots.
11947 2014-02-11 Doug Evans <xdje42@gmail.com>
11949 * configure.ac: Don't crash if pkg-config is not found and guile
11950 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11952 * configure: Regenerate.
11954 2014-02-11 Yao Qi <yao@codesourcery.com>
11956 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11957 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11958 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11959 * gnu-nat.c (gnu_xfer_memory): Likewise.
11960 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11961 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11962 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11963 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11965 2014-02-11 Yao Qi <yao@codesourcery.com>
11967 * target.h (enum target_xfer_error): Rename to ...
11968 (enum target_xfer_status): ... it. New. All users updated.
11969 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11971 (TARGET_XFER_STATUS_ERROR_P): New macro.
11972 (target_xfer_error_to_string): Remove declaration.
11973 (target_xfer_status_to_string): Declare.
11974 (target_xfer_partial_ftype): Adjust it.
11975 (struct target_ops) <to_xfer_partial>: Return
11976 target_xfer_status. Add argument xfered_len. Update
11978 * target.c (target_xfer_error_to_string): Rename to ...
11979 (target_xfer_status_to_string): ... it. New. All callers
11981 (target_read_live_memory): Likewise. Call target_xfer_partial
11982 instead of target_read.
11983 (memory_xfer_live_readonly_partial): Return
11984 target_xfer_status. Add argument xfered_len.
11985 (raw_memory_xfer_partial): Likewise.
11986 (memory_xfer_partial_1): Likewise.
11987 (memory_xfer_partial): Likewise.
11988 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11989 properly. Update debug message.
11990 (default_xfer_partial, current_xfer_partial): Likewise.
11991 (target_write_partial): Likewise.
11992 (target_read_partial): Likewise. All callers updated.
11993 (read_whatever_is_readable): Likewise.
11994 (target_write_with_progress): Likewise.
11995 (target_read_alloc_1): Likewise.
11997 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11998 * auxv.c (procfs_xfer_auxv): Likewise.
11999 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12000 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12001 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12002 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12003 * corefile.c (read_memory): Adjust.
12004 * corelow.c (core_xfer_partial): Likewise.
12005 * ctf.c (ctf_xfer_partial): Likewise.
12006 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12008 (darwin_xfer_partial): Likewise.
12009 * exec.c (section_table_xfer_memory_partial): Likewise. All
12011 (exec_xfer_partial): Likewise.
12012 * exec.h (section_table_xfer_memory_partial): Update
12014 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12016 (gnu_xfer_partial): Likewise.
12017 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12018 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12019 (ia64_hpux_xfer_solib_got): Likewise.
12020 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12021 type of 'partial_len' to ULONGEST.
12022 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12023 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12024 (linux_nat_xfer_partial): Likewise.
12025 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12026 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12027 * monitor.c (monitor_xfer_memory): Likewise.
12028 (monitor_xfer_partial): Likewise.
12029 * procfs.c (procfs_xfer_partial): Likewise.
12030 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12031 * record-full.c (record_full_xfer_partial): Likewise.
12032 (record_full_core_xfer_partial): Likewise.
12033 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12034 (gdbsim_xfer_partial): Likewise.
12035 * remote.c (remote_write_bytes_aux): Likewise. All callers
12037 (remote_write_bytes, remote_read_bytes): Likewise. All
12039 (remote_flash_erase): Likewise. All callers updated.
12040 (remote_write_qxfer): Likewise. All callers updated.
12041 (remote_read_qxfer): Likewise. All callers updated.
12042 (remote_xfer_partial): Likewise.
12043 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12044 (rs6000_xfer_shared_libraries): Likewise.
12045 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12046 (sol_thread_xfer_partial): Likewise.
12047 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12048 (sparc_xfer_partial): Likewise.
12049 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12051 (spu_xfer_partial): Likewise.
12052 * spu-multiarch.c (spu_xfer_partial): Likewise.
12053 * tracepoint.c (tfile_xfer_partial): Likewise.
12054 * windows-nat.c (windows_xfer_memory): Likewise.
12055 (windows_xfer_shared_libraries): Likewise.
12056 (windows_xfer_partial): Likewise.
12057 * valprint.c: Replace 'target_xfer_error' with
12058 'target_xfer_status' in comments.
12060 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12062 Checked in by Joel Brobecker <brobecker@adacore.com>.
12063 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12065 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12067 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12068 function parameters.
12070 2014-02-10 Will Newton <will.newton@linaro.org>
12072 * elfread.c (elf_rel_plt_read): Look for a .got section if
12073 looking up .got.plt fails.
12074 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12075 on address passed to elf_gnu_ifunc_record_cache.
12076 (elf_gnu_ifunc_resolve_addr): Likewise.
12077 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12079 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12081 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12082 (X_RETTURN): New macro.
12083 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12085 * sparc64-tdep.c (sparc64_init_abi): Hook
12086 sparc_in_function_epilogue_p.
12088 2014-02-10 Gary Benson <gbenson@redhat.com>
12090 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12091 Rename name_matcher to symbol_matcher.
12093 2014-02-10 Gary Benson <gbenson@redhat.com>
12095 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12096 Use expand_symtabs_file_matcher_ftype and
12097 expand_symtabs_symbol_matcher_ftype.
12099 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12101 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12102 (struct ada_symbol_cache): New.
12103 (ada_free_symbol_cache): Forward declare.
12104 (struct ada_pspace_data): New.
12105 (ada_pspace_data_handle): New static global.
12106 (get_ada_pspace_data, ada_pspace_data_cleanup)
12107 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12108 (cache_space, cache): Delete, now folded inside struct
12110 (ada_get_symbol_cache): New function.
12111 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12113 (_initialize_ada_language): Remove initialization of cache_space.
12114 Move call to observer_attach_inferior_exit up, grouping it
12115 with the other observer registrations inside this function.
12116 Rename command to be more general. Add call to
12117 register_program_space_data_with_cleanup.
12119 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12121 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12122 ada_new_objfile_observer.
12123 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12124 (_initialize_tasks): Update uses of ada_new_objfile_observer
12125 and ada_tasks_normal_stop_observer.
12127 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12129 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12130 returned by the 'Length attribute to integer.
12132 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12134 * ada-lang.c (_initialize_ada_language): Initialize
12135 cache_space obstack.
12137 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12139 * ada-lang.c (HASH_SIZE): New macro.
12140 (struct cache_entry): New type.
12141 (cache_space, cache): New static globals.
12142 (ada_clear_symbol_cache, find_entry): New functions.
12143 (lookup_cached_symbol, cache_symbol): Implement.
12144 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12145 (_initialize_ada_language): Attach ada_new_objfile_observer
12146 and ada_free_objfile_observer.
12148 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12150 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12151 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12152 struct block * parameter.
12153 (ada_lookup_symbol_list_worker): Constify local variable "block".
12154 Remove cast which is no longer necessary.
12156 2014-02-10 Doug Evans <xdje42@gmail.com>
12158 Add Guile as an extension language.
12159 * NEWS: Mention Guile scripting.
12160 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12161 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12162 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12163 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12164 (CLIBS): Add GUILE_LIBS.
12165 (install-guile): New rule.
12166 (guile.o): New rule.
12167 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12168 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12169 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12170 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12171 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12172 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12173 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12174 * configure.ac: New option --with-guile.
12175 * configure: Regenerate.
12176 * config.in: Regenerate.
12177 * auto-load.c: Remove #include "python/python.h". Add #include
12178 "gdb/section-scripts.h".
12179 (source_section_scripts): Handle Guile scripts.
12180 (_initialize_auto_load): Add name of Guile objfile script to
12181 scripts-directory help text.
12182 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12183 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12184 (struct breakpoint): New member scm_bp_object.
12185 * defs.h (enum command_control_type): New value guile_control.
12186 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12188 (show_user): Update comment.
12189 (_initialize_cli_cmds): Update help text for "show user". Update help
12190 text for max-user-call-depth.
12191 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12193 (multi_line_command_p): Add guile_control.
12194 (print_command_lines): Handle guile_control.
12195 (execute_control_command, recurse_read_control_structure): Ditto.
12196 (process_next_line): Recognize "guile" commands.
12197 * disasm.c (gdb_disassemble_info): Make non-static.
12198 * disasm.h: #include "dis-asm.h".
12199 (struct gdbarch): Add forward decl.
12200 (gdb_disassemble_info): Declare.
12201 * extension.c: #include "guile/guile.h".
12202 (extension_languages): Add guile.
12203 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12204 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12205 * gdbtypes.c (get_unsigned_type_max): New function.
12206 (get_signed_type_minmax): New function.
12207 * gdbtypes.h (get_unsigned_type_max): Declare.
12208 (get_signed_type_minmax): Declare.
12209 * guile/README: New file.
12210 * guile/guile-internal.h: New file.
12211 * guile/guile.c: New file.
12212 * guile/guile.h: New file.
12213 * guile/scm-arch.c: New file.
12214 * guile/scm-auto-load.c: New file.
12215 * guile/scm-block.c: New file.
12216 * guile/scm-breakpoint.c: New file.
12217 * guile/scm-disasm.c: New file.
12218 * guile/scm-exception.c: New file.
12219 * guile/scm-frame.c: New file.
12220 * guile/scm-gsmob.c: New file.
12221 * guile/scm-iterator.c: New file.
12222 * guile/scm-lazy-string.c: New file.
12223 * guile/scm-math.c: New file.
12224 * guile/scm-objfile.c: New file.
12225 * guile/scm-ports.c: New file.
12226 * guile/scm-pretty-print.c: New file.
12227 * guile/scm-safe-call.c: New file.
12228 * guile/scm-string.c: New file.
12229 * guile/scm-symbol.c: New file.
12230 * guile/scm-symtab.c: New file.
12231 * guile/scm-type.c: New file.
12232 * guile/scm-utils.c: New file.
12233 * guile/scm-value.c: New file.
12234 * guile/lib/gdb.scm: New file.
12235 * guile/lib/gdb/boot.scm: New file.
12236 * guile/lib/gdb/experimental.scm: New file.
12237 * guile/lib/gdb/init.scm: New file.
12238 * guile/lib/gdb/iterator.scm: New file.
12239 * guile/lib/gdb/printing.scm: New file.
12240 * guile/lib/gdb/types.scm: New file.
12241 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12242 (VPATH): Add $(GUILE_SRCDIR).
12243 (GUILE_DIR): New variable.
12244 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12245 (all): Add stamp-guile dependency.
12246 (stamp-guile): New rule.
12247 (clean-guile, install-guile, uninstall-guile): New rules.
12248 (install-only): Add install-guile dependency.
12249 (uninstall): Add uninstall-guile dependency.
12250 (clean): Add clean-guile dependency.
12252 2014-02-09 Doug Evans <xdje42@gmail.com>
12254 Revert this patch (which I approved, mea culpa).
12256 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12258 * Makefile.in (all-lib): Remove.
12259 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12261 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12263 Fix Python stack corruption.
12264 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12267 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12269 * Makefile.in (all-lib): Remove.
12270 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12272 2014-02-07 Doug Evans <dje@google.com>
12274 * extension-priv.h (extension_language_script_ops): Add comment.
12275 (extension_language_ops): Add comment.
12276 (active_ext_lang_state): Fix typo in comment.
12278 2014-02-07 Pedro Alves <palves@redhat.com>
12280 PR breakpoints/16292
12281 * infrun.c (handle_signal_stop) <signal arrives while stepping
12282 over a breakpoint>: Switch back to the stepping thread.
12284 2014-02-07 Yao Qi <yao@codesourcery.com>
12286 * target.c (target_xfer_partial): Return zero if LEN is zero.
12288 2014-02-07 Yao Qi <yao@codesourcery.com>
12290 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12291 (ld_so_xfer_auxv): Likewise.
12292 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12293 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12294 * corelow.c (core_xfer_partial): Likewise.
12295 * ctf.c (ctf_xfer_partial): Likewise.
12296 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12297 (darwin_xfer_partial): Likewise.
12298 * exec.c (exec_xfer_partial): Likewise.
12299 * gnu-nat.c (gnu_xfer_partial): Likewise.
12300 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12301 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12302 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12303 * linux-nat.c (linux_xfer_siginfo): Likewise.
12304 (linux_proc_xfer_spu): Likewise.
12305 * procfs.c (procfs_xfer_partial): Likewise.
12306 * record-full.c (record_full_xfer_partial): Likewise.
12307 (record_full_core_xfer_partial): Likewise.
12308 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12309 * remote.c (remote_write_qxfer): Likewise.
12310 (remote_write_qxfer, remote_read_qxfer): Likewise.
12311 (remote_xfer_partial): Likewise.
12312 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12313 (rs6000_xfer_shared_libraries): Likewise.
12314 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12315 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12316 (spu_xfer_partial): Likewise.
12317 * target.c (memory_xfer_partial_1): Likewise.
12318 * tracepoint.c (tfile_xfer_partial): Likewise.
12319 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12320 (windows_xfer_partial): Likewise.
12322 2014-02-07 Yao Qi <yao@codesourcery.com>
12324 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12326 (core_xfer_shared_libraries_aix): Likewise.
12327 * gdbarch.c, gdbarch.h: Regenerated.
12328 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12329 ULONGEST. Change 'len_avail' type to ULONGEST.
12330 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12331 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12333 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12335 2014-02-07 Yao Qi <yao@codesourcery.com>
12337 * corefile.c (memory_error): Get 'exception' from ERR and pass
12338 'exception' to throw_error.
12340 2014-02-06 Doug Evans <xdje42@gmail.com>
12342 * configure.ac (libpython checking): Remove all but python.o from
12343 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12344 * configure: Regenerate.
12346 * Makefile.in (SFILES): Add extension.c.
12347 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12348 (COMMON_OBS): Add extension.o.
12349 * extension.h: New file.
12350 * extension-priv.h: New file.
12351 * extension.c: New file.
12353 * python/python-internal.h: #include "extension.h".
12354 (gdbpy_auto_load_enabled): Declare.
12355 (gdbpy_apply_val_pretty_printer): Declare.
12356 (gdbpy_apply_frame_filter): Declare.
12357 (gdbpy_preserve_values): Declare.
12358 (gdbpy_breakpoint_cond_says_stop): Declare.
12359 (gdbpy_breakpoint_has_cond): Declare.
12360 (void source_python_script_for_objfile): Delete.
12361 * python/python.c: #include "extension-priv.h".
12362 Delete inclusion of "observer.h".
12363 (extension_language_python): Moved here and renamed from
12364 script_language_python in py-auto-load.c.
12365 Redefined to be of type extension_language_defn.
12366 (python_extension_script_ops): New global.
12367 (python_extension_ops): New global.
12368 (struct python_env): New member previous_active.
12369 (restore_python_env): Call restore_active_ext_lang.
12370 (ensure_python_env): Call set_active_ext_lang.
12371 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12373 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12375 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12377 (gdbpy_eval_from_control_command): Renamed from
12378 eval_python_from_control_command, made static. New arg extlang.
12379 (gdbpy_source_script) Renamed from source_python_script, made static.
12381 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12382 result to int. New arg extlang.
12383 (gdbpy_source_objfile_script): Renamed from
12384 source_python_script_for_objfile, made static. New arg extlang.
12385 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12386 static. New args extlang, extlang_printers. Change result type to
12388 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12389 static. New arg extlang. Rename arg printers to extlang_printers
12390 and change type to ext_lang_type_printers *.
12391 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12392 static. Replace argument arg with extlang, extlang_printers.
12393 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12394 (!HAVE_PYTHON, source_python_script): Delete.
12395 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12396 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12397 (!HAVE_PYTHON, start_type_printers): Delete.
12398 (!HAVE_PYTHON, apply_type_printers): Delete.
12399 (!HAVE_PYTHON, free_type_printers): Delete.
12400 (_initialize_python): Delete call to observer_attach_before_prompt.
12401 (finalize_python): Set/restore active extension language.
12402 (gdbpy_finish_initialization) Renamed from
12403 finish_python_initialization, made static. New arg extlang.
12404 (gdbpy_initialized): New function.
12405 * python/python.h: #include "extension.h". Delete #include
12406 "value.h", "mi/mi-cmds.h".
12407 (extension_language_python): Declare.
12408 (GDBPY_AUTO_FILE_NAME): Delete.
12409 (enum py_bt_status): Moved to extension.h and renamed to
12410 ext_lang_bt_status.
12411 (enum frame_filter_flags): Moved to extension.h.
12412 (enum py_frame_args): Moved to extension.h and renamed to
12413 ext_lang_frame_args.
12414 (finish_python_initialization): Delete.
12415 (eval_python_from_control_command): Delete.
12416 (source_python_script): Delete.
12417 (apply_val_pretty_printer): Delete.
12418 (apply_frame_filter): Delete.
12419 (preserve_python_values): Delete.
12420 (gdbpy_script_language_defn): Delete.
12421 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12422 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12424 * auto-load.c: #include "extension.h".
12425 (GDB_AUTO_FILE_NAME): Delete.
12426 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12427 (script_language_gdb): Delete, moved to extension.c and renamed to
12428 extension_language_gdb.
12429 (source_gdb_script_for_objfile): Delete.
12430 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12431 (loaded_script): Change type of language member to
12432 struct extension_language_defn *.
12433 (init_loaded_scripts_info): Initialize
12434 unsupported_script_warning_printed.
12435 (maybe_add_script): Make static. Change type of language arg to
12436 struct extension_language_defn *.
12437 (clear_section_scripts): Reset unsupported_script_warning_printed.
12438 (auto_load_objfile_script_1): Rewrite to use extension language API.
12439 (auto_load_objfile_script): Make public. Remove support-compiled-in
12440 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12441 (source_section_scripts): Rewrite to use extension language API.
12442 (load_auto_scripts_for_objfile): Rewrite to use
12443 auto_load_scripts_for_objfile.
12444 (collect_matching_scripts_data): Change type of language member to
12445 struct extension_language_defn *.
12446 (auto_load_info_scripts): Change type of language arg to
12447 struct extension_language_defn *.
12448 (unsupported_script_warning_print): New function.
12449 (script_not_found_warning_print): Make static.
12450 (_initialize_auto_load): Rewrite construction of scripts-directory
12452 * auto-load.h (struct objfile): Add forward decl.
12453 (struct script_language): Delete.
12454 (struct auto_load_pspace_info): Add forward decl.
12455 (struct extension_language_defn): Add forward decl.
12456 (maybe_add_script): Delete.
12457 (auto_load_objfile_script): Declare.
12458 (script_not_found_warning_print): Delete.
12459 (auto_load_info_scripts): Update prototype.
12460 (auto_load_gdb_scripts_enabled): Declare.
12461 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12462 auto_load_python_scripts_enabled and made public.
12463 (script_language_python): Delete, moved to python.c.
12464 (gdbpy_script_language_defn): Delete.
12465 (info_auto_load_python_scripts): Update to use
12466 extension_language_python.
12468 * breakpoint.c (condition_command): Replace call to
12469 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12470 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12471 with call to breakpoint_ext_lang_cond_says_stop.
12472 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12473 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12474 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12475 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12477 (local_setattro): Print name of extension language with existing
12480 * valprint.c (val_print, value_print): Update to call
12481 apply_ext_lang_val_pretty_printer.
12482 * cp-valprint.c (cp_print_value): Update call to
12483 apply_ext_lang_val_pretty_printer.
12484 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12485 (gdbpy_apply_val_pretty_printer): Renamed from
12486 apply_val_pretty_printer. New arg extlang.
12487 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12489 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12490 extension language API.
12491 * cli/cli-script.c (execute_control_command): Update to call
12492 eval_ext_lang_from_control_command.
12494 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12495 enum ext_lang_bt_status values. Update call to
12496 apply_ext_lang_frame_filter.
12497 (mi_cmd_stack_list_locals): Ditto.
12498 (mi_cmd_stack_list_args): Ditto.
12499 (mi_cmd_stack_list_variables): Ditto.
12500 * mi/mi-main.c: Delete #include "python/python-internal.h".
12501 Add #include "extension.h".
12502 (mi_cmd_list_features): Replace reference to python internal variable
12503 gdb_python_initialized with call to ext_lang_initialized_p.
12505 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12506 Update to use enum ext_lang_frame_args. Update to call
12507 apply_ext_lang_frame_filter.
12508 * python/py-framefilter.c (extract_sym): Update to use enum
12509 ext_lang_bt_status.
12510 (extract_value, py_print_type, py_print_value): Ditto.
12511 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12512 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12513 (py_print_frame): Ditto.
12514 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12515 New arg extlang. Update to use enum ext_lang_bt_status.
12517 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12518 finish_python_initialization. Replace with call to
12519 finish_ext_lang_initialization.
12521 * typeprint.c (do_free_global_table): Update to call
12522 free_ext_lang_type_printers.
12523 (create_global_typedef_table): Update to call
12524 start_ext_lang_type_printers.
12525 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12526 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12527 (type_print_options): Change type of global_printers from "void *"
12528 to "struct ext_lang_type_printers *".
12530 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12531 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12532 (gdbpy_preserve_values): Renamed from preserve_python_values.
12534 (!HAVE_PYTHON, preserve_python_values): Delete.
12536 * utils.c (quit_flag): Delete, moved to extension.c.
12537 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12540 * eval.c: Delete #include "python/python.h".
12541 * main.c: Delete #include "python/python.h".
12543 * defs.h: Update comment.
12545 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12549 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12551 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12554 2014-02-05 Yao Qi <yao@codesourcery.com>
12556 * remote.c (remote_pass_signals): Remove local 'buf' and use
12558 (remote_program_signals): Likewise.
12560 2014-02-05 Yao Qi <yao@codesourcery.com>
12562 * ctf.c: Include "inferior.h" and "gdbthread.h".
12563 (CTF_PID): A new macro.
12564 (ctf_open): Call inferior_appeared and add_thread_silent.
12565 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12566 (ctf_thread_alive): New function.
12567 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12569 2014-02-05 Yao Qi <yao@codesourcery.com>
12573 2013-05-24 Yao Qi <yao@codesourcery.com>
12575 * tracepoint.c (TFILE_PID): Remove.
12576 (tfile_open): Don't add thread and inferior.
12577 (tfile_close): Don't set 'inferior_ptid'. Don't call
12578 exit_inferior_silent.
12579 (tfile_thread_alive): Remove.
12580 (init_tfile_ops): Don't set field 'to_thread_alive' of
12583 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12585 * remote.c (remote_start_remote): Call remote_check_symbols even
12586 if only symbol-file (not file) has been given.
12588 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12590 * gdbarch.sh (skip_entrypoint): New callback.
12591 * gdbarch.c, gdbarch.h: Regenerate.
12592 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12593 * infrun.c (fill_in_stop_func): Likewise.
12594 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12595 (ppc_elfv2_elf_make_msymbol_special): New function.
12596 (ppc_elfv2_skip_entrypoint): Likewise.
12597 (ppc_linux_init_abi): Install them for ELFv2.
12599 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12601 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12602 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12603 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12604 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12605 structures returned in GPRs.
12607 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12609 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12610 offset to the stack parameter list for the ELFv2 ABI.
12612 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12614 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12615 set_gdbarch_convert_from_func_ptr_addr and
12616 set_gdbarch_elf_make_msymbol_special for ELFv1.
12617 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12618 function descriptors on ELFv1.
12619 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12620 set up r12 at function entry.
12622 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12624 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12625 (struct gdbarch_tdep): New member elf_abi.
12627 * rs6000-tdep.c: Include "elf/ppc64.h".
12628 (rs6000_gdbarch_init): Detect ELF ABI version.
12630 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12632 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12633 within a register pair holding a DFP 128-bit value on little-endian.
12634 (ppc64_sysv_abi_return_value_base): Likewise.
12635 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12636 (dfp_pseudo_register_write): Likewise.
12638 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12640 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12641 offset on little-endian when passing _Decimal32.
12642 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12644 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12646 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12647 of the overlapped FP register within the VSX register on little-
12649 (efpr_pseudo_register_write): Likewise.
12651 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12653 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12654 offset on little-endian when passing small structures.
12656 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12658 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12659 (struct ppc64_sysv_argpos): New data structure.
12660 (ppc64_sysv_abi_push_float): Remove.
12661 (ppc64_sysv_abi_push_val): New function.
12662 (ppc64_sysv_abi_push_integer): Likewise.
12663 (ppc64_sysv_abi_push_freg): Likewise.
12664 (ppc64_sysv_abi_push_vreg): Likewise.
12665 (ppc64_sysv_abi_push_param): Likewise.
12666 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12667 (ppc64_sysv_abi_return_value_base): New function.
12668 (ppc64_sysv_abi_return_value): Refactor to use it.
12670 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12672 * NEWS: Document new target powerpc64le-*-linux*.
12674 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12676 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12677 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12679 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12680 register set used in ELF core dumps. Add floating-point register set.
12682 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12684 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12685 dwarf2_to_gdb[] table using symbolic constants. Adjust
12686 penultimate entry from number representing the PC register
12687 to symbolic constant representing the MDR register. Add
12688 constant for the PC register to the end of the table.
12690 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12692 * bsd-kvm.c: Include <sys/param.h>
12694 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12696 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12698 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12700 * ada-lang.h (clear_ada_sym_cache): Delete.
12702 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12704 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12706 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12708 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12709 the sigreturn register save area only if the syscall is
12712 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12714 * valops.c (value_slice): Minor reformatting.
12716 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12718 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12720 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12722 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12723 New static globals.
12724 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12725 (ada_ignore_descriptive_types_p): New static global.
12726 (find_parallel_type_by_descriptive_type): Return immediately
12727 if ada_ignore_descriptive_types_p is set.
12728 (_initialize_ada_language): Register new commands "maintenance
12729 set ada", "maintenance show ada", "maintenance set ada
12730 ignore-descriptive-types" and "maintenance show ada
12731 ignore-descriptive-types".
12732 * NEWS: Add entry for new "maint ada set/show
12733 ignore-descriptive-types" commands.
12735 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12737 * record-btrace.c (record_btrace_close): Call btrace_teardown
12740 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12742 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12745 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12747 * ada-typeprint (type_is_full_subrange_of_target_type):
12749 (print_range): Add parameter bounds_prefered_p. If not set,
12750 try printing range types using the name of their base type.
12751 (print_range_type): Add parameter bounds_prefered_p.
12752 Use it in call to print_range.
12753 (print_array_type, ada_print_type): Update calls to print_range
12754 and print_range_type.
12756 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12758 * ada-typeprint.c (print_array_type, print_choices, print_range)
12759 (print_range_bound, print_dynamic_range_bound, print_range_type):
12760 Remove declaration.
12762 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12764 * ada-typeprint.c (print_range): Add missing empty line
12765 after local declaration.
12767 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12769 * ada-valprint.c (print_optional_low_bound): Get index_type's
12770 target type for as long as it is a TYPE_CODE_RANGE.
12772 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12774 * procfs.c (procfs_make_note_section): Remove assertion and
12775 associated comment.
12777 2014-01-24 Yao Qi <yao@codesourcery.com>
12779 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12780 * corelow.c (get_core_siginfo): Likewise.
12782 2014-01-24 Yao Qi <yao@codesourcery.com>
12784 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12785 ULONGEST. Don't check 'len' is negative.
12786 (remote_write_bytes): Change type of 'len' to ULONGEST.
12788 2014-01-23 Tom Tromey <tromey@redhat.com>
12791 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12792 Handle exception from frame.block.
12793 (FrameVars.fetch_frame_locals): Likewise.
12795 2014-01-23 Tom Tromey <tromey@redhat.com>
12798 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12799 on a NULL pointer. Move "goto error" to correct place.
12801 2014-01-23 Tom Tromey <tromey@redhat.com>
12804 * python/py-framefilter.c (apply_frame_filter): Call
12805 ensure_python_env after computing gdbarch.
12807 2014-01-23 Yao Qi <yao@codesourcery.com>
12809 * target.c (raw_memory_xfer_partial): Change argument type
12810 from void * to gdb_byte *.
12811 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12813 2014-01-22 Doug Evans <dje@google.com>
12815 New gdbserver option --debug-format=timestamp.
12816 * NEWS: Mention it.
12818 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12820 * syscalls/s390x-linux.xml: New file.
12821 * syscalls/s390-linux.xml: New file.
12822 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12823 (XML_SYSCALL_FILENAME_S390X): Likewise.
12824 (op_svc): New enum value for SVC opcode.
12825 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12826 (s390_linux_get_syscall_number): New function.
12827 (s390_gdbarch_init): Register '*get_syscall_number' and the
12828 syscall xml file name.
12829 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12830 "s390-linux.xml" and "s390x-linux.xml".
12831 * NEWS: Announce new feature.
12833 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12835 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12837 2014-01-22 Pedro Alves <palves@redhat.com>
12839 * xtensa-config.c: Include defs.h.
12841 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12843 * common/common-utils.h: Add "ARI:" comment beside __func__
12846 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12848 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12849 documentation a bit.
12851 2014-01-21 Roland McGrath <mcgrathr@google.com>
12853 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12854 * configure: Regenerate.
12855 * aclocal.m4: Regenerate.
12856 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12857 New substituted variables.
12858 (install-strip): New target.
12859 (INSTALL_SCRIPT): New substituted variable.
12860 (FLAGS_TO_PASS): Add it.
12861 (install-only): Use $(INSTALL_SCRIPT) rather than
12862 $(INSTALL_PROGRAM) for gcore.
12864 2014-01-20 Tom Tromey <tromey@redhat.com>
12866 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12869 2014-01-20 Tom Tromey <tromey@redhat.com>
12871 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12872 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12873 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12874 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12875 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12876 (struct cmd_list_element) <flags>: Remove.
12877 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12878 doc_allocated>: New fields.
12879 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12881 * maint.c (maintenance_do_deprecate): Update.
12882 * top.c (execute_command): Update.
12884 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12886 * xtensa-linux-nat.c: Include asm/ptrace.h.
12888 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12890 * Makefile.in (SFILES): Add d-support.c.
12891 (COMMON_OBS): Add d-support.o.
12892 * d-lang.h (d_parse_symbol): Add comment, now defined in
12894 * d-lang.c (parse_call_convention)
12895 (parse_attributes, parse_function_types)
12896 (parse_function_args, parse_type, parse_identifier)
12897 (call_convention_p, d_parse_symbol): Move functions to ...
12898 * d-support.c: ... New file.
12900 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12902 * d-lang.h (d_parse_symbol): Add declaration.
12903 * d-lang.c (extract_identifiers)
12904 (extract_type_info): Remove functions.
12905 (parse_call_convention, parse_attributes)
12906 (parse_function_types, parse_function_args)
12907 (parse_type, parse_identifier, call_convention_p)
12908 (d_parse_symbol): New functions.
12909 (d_demangle): Use d_parse_symbol to demangle D symbols.
12911 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12913 * d-lang.h (struct builtin_d_type): New data type.
12914 (builtin_d_type): Add declaration.
12915 * d-lang.c (d_language_arch_info, build_d_types)
12916 (builtin_d_type): New functions.
12917 (enum d_primitive_types): New data type.
12918 (d_language_defn): Change c_language_arch_info to
12919 d_language_arch_info.
12920 (d_type_data): New static variable.
12921 (_initialize_d_language): Initialize d_type_data.
12923 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12925 * d-lang.h (d_main_name): Add declaration.
12926 * d-lang.c (d_main_name): New function.
12927 * symtab.c (find_main_name): Add call to d_main_name.
12929 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12931 * d-lang.c (d_language_defn): Change macro_expansion_c to
12932 macro_expansion_no.
12934 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12936 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12938 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12940 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12941 gdb_exception" declaration.
12942 * remote.c (getpkt_or_notif_sane): Likewise.
12944 2014-01-17 Doug Evans <dje@google.com>
12946 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12947 function, contents of dirnames_to_char_ptr_vec_append moved here.
12948 (delim_string_to_char_ptr_vec): New function.
12949 (dirnames_to_char_ptr_vec_append): Rewrite.
12950 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12952 2014-01-17 Doug Evans <dje@google.com>
12954 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12956 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12957 #include "common-utils.h".
12958 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12959 * common/vec.h (VEC_ASSERT_PASS): Update.
12960 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12961 (MACH_CHECK_ERROR): Update.
12963 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12965 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12967 * gdbarch.h: Regenerate.
12969 2014-01-16 Tom Tromey <tromey@redhat.com>
12971 * value.c (struct value) <regnum>: Move earlier.
12973 2014-01-16 Tom Tromey <tromey@redhat.com>
12975 * remote.c (extended_remote_create_inferior): Rename from
12976 extended_remote_create_inferior_1. Add "ops" argument. Remove
12977 old implementation.
12979 2014-01-16 Pedro Alves <palves@redhat.com>
12981 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12982 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12985 2014-01-16 Doug Evans <dje@google.com>
12987 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12991 * btrace.h (btrace_thread_flag): New.
12992 (struct btrace_thread_info) <flags>: New.
12993 * record-btrace.c (record_btrace_resume_thread)
12994 (record_btrace_find_thread_to_move, btrace_step_no_history)
12995 (btrace_step_stopped, record_btrace_start_replaying)
12996 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12997 (record_btrace_find_resume_thread): New.
12998 (record_btrace_resume, record_btrace_wait): Extend.
12999 (record_btrace_can_execute_reverse): New.
13000 (record_btrace_open): Fail in non-stop mode.
13001 (record_btrace_set_replay): Split into this, ...
13002 (record_btrace_stop_replaying): ... this, ...
13003 (record_btrace_clear_histories): ... and this.
13004 (init_record_btrace_ops): Init to_can_execute_reverse.
13005 * NEWS: Announce it.
13007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13009 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13010 (forward_target_decr_pc_after_break)
13011 (target_decr_pc_after_break): New.
13012 * target.c (forward_target_decr_pc_after_break)
13013 (target_decr_pc_after_break): New.
13014 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13015 instead of gdbarch_decr_pc_after_break.
13016 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13017 instead of gdbarch_decr_pc_after_break.
13018 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13019 instead of gdbarch_decr_pc_after_break.
13020 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13021 instead of gdbarch_decr_pc_after_break.
13022 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13023 instead of gdbarch_decr_pc_after_break.
13024 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13025 instead of gdbarch_decr_pc_after_break.
13027 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13029 * btrace.c: Include regcache.h.
13030 (btrace_add_pc): New.
13031 (btrace_enable): Call btrace_add_pc.
13032 (btrace_is_empty): New.
13033 * btrace.h (btrace_is_empty): New.
13034 * record-btrace.c (require_btrace, record_btrace_info): Call
13037 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13039 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13040 Support delta reads.
13041 (linux_disable_btrace): Change return type.
13042 * common/linux-btrace.h (linux_read_btrace): Change parameters
13043 and return type to allow error reporting. Update users.
13044 (linux_disable_btrace): Change return type. Update users.
13045 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13047 (btrace_error): New.
13048 (btrace_block) <begin>: Comment on BEGIN == 0.
13049 * btrace.c (btrace_compute_ftrace): Start from the end of
13051 (btrace_stitch_trace, btrace_clear_history): New.
13052 (btrace_fetch): Read delta trace, return if replaying.
13053 (btrace_clear): Move clear history code to btrace_clear_history.
13054 (parse_xml_btrace): Throw an error if parsing failed.
13055 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13056 and return type to allow error reporting.
13057 (target_read_btrace): Change parameters and return type to allow
13059 * target.c (target_read_btrace): Update.
13060 * remote.c (remote_read_btrace): Support delta reads. Pass
13062 * NEWS: Announce it.
13064 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13066 * record.h (record_btrace_frame_unwind)
13067 (record_btrace_tailcall_frame_unwind): New declarations.
13068 * dwarf2-frame: Include record.h
13069 (dwarf2_frame_cfa): Throw an error for btrace frames.
13070 * record-btrace.c: Include hashtab.h.
13071 (btrace_get_bfun_name): New.
13072 (btrace_call_history): Call btrace_get_bfun_name.
13073 (struct btrace_frame_cache): New.
13075 (bfcache_hash, bfcache_eq, bfcache_new): New.
13076 (btrace_get_frame_function): New.
13077 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13078 (record_btrace_frame_this_id): Compute own id.
13079 (record_btrace_frame_prev_register): Provide PC, throw_error
13080 for all other registers.
13081 (record_btrace_frame_sniffer): Detect btrace frames.
13082 (record_btrace_tailcall_frame_sniffer): New.
13083 (record_btrace_frame_dealloc_cache): New.
13084 (record_btrace_frame_unwind): Add new functions.
13085 (record_btrace_tailcall_frame_unwind): New.
13086 (_initialize_record_btrace): Allocate cache.
13087 * btrace.c (btrace_clear): Call reinit_frame_cache.
13088 * NEWS: Announce it.
13090 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13092 * record-btrace.c (record_btrace_set_replay)
13093 (record_btrace_goto_begin, record_btrace_goto_end)
13094 (record_btrace_goto): New.
13095 (init_record_btrace_ops): Initialize them.
13096 * NEWS: Announce it.
13098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13100 * record-btrace.c (record_btrace_find_new_threads)
13101 (record_btrace_thread_alive): New.
13102 (init_record_btrace_ops): Initialize to_find_new_threads and
13105 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13107 * record-btrace.c (record_btrace_resume): New.
13108 (record_btrace_wait): New.
13109 (init_record_btrace_ops): Initialize to_wait and to_resume.
13111 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13113 * record-btrace.c (record_btrace_xfer_partial)
13114 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13115 (record_btrace_allow_memory_access): New.
13116 (init_record_btrace_ops): Initialize new methods.
13117 * target.c (raw_memory_xfer_partial): Bail out if target reports
13118 that this memory is not available.
13120 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13122 * target.h (target_ops) <to_insert_breakpoint>
13123 <to_remove_breakpoint>: Add target_ops parameter.
13124 (forward_target_insert_breakpoint): New.
13125 (forward_target_remove_breakpoint): New.
13126 (memory_remove_breakpoint, memory_insert_breakpoint):
13127 Add target_ops parameter.
13128 * target.c (target_insert_breakpoint): Split into this and ...
13129 (forward_target_insert_breakpoint): ... this.
13130 (target_remove_breakpoint): Split into this and ...
13131 (forward_target_remove_breakpoint): ... this.
13132 (debug_to_insert_breakpoint): Add target_ops parameter.
13133 Call forward_target_insert_breakpoint.
13134 (debug_to_remove_breakpoint): Add target_ops parameter.
13135 Call forward_target_remove_breakpoint.
13136 (update_current_target): Do not inherit or default to_insert_breakpoint
13137 and to_remove_breakpoint.
13138 * corelow.c (ignore): Add target_ops parameter.
13139 * exec.c (ignore): Add target_ops parameter.
13140 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13141 Add target_ops parameter.
13142 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13143 Add target_ops parameter.
13144 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13145 Add target_ops parameter.
13146 * record-full.c (record_full_beneath_to_insert_breakpoint)
13147 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13148 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13149 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13150 (record_full_core_remove_breakpoint): Add target_ops parameter.
13152 (record_full_beneath_to_insert_breakpoint_ops)
13153 (record_full_beneath_to_remove_breakpoint_ops)
13154 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13155 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13156 tmp_to_remove_breakpoint_ops,
13157 record_full_beneath_to_insert_breakpoint_ops, and
13158 record_full_beneath_to_remove_breakpoint_ops.
13159 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13160 (m32r_remove_breakpoint): Add target_ops parameter.
13161 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13162 Add target_ops parameter.
13163 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13164 Add target_ops parameter.
13166 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13167 Markus Metzger <markus.t.metzger@intel.com>
13169 * record-btrace.c: Include frame-unwind.h.
13170 (record_btrace_frame_unwind_stop_reason)
13171 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13172 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13174 (init_record_btrace_ops): Install it.
13176 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13178 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13181 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13183 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13186 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13188 * frame-unwind.c: Include target.h.
13189 (frame_unwind_try_unwinder): New function with code from ...
13190 (frame_unwind_find_by_frame): ... here. New variable
13191 unwinder_from_target, call also target_get_unwinder)
13192 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13193 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13194 * target.h (struct target_ops): New fields to_get_unwinder and
13195 to_get_tailcall_unwinder.
13196 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13198 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13200 * record-btrace.c (record_btrace_fetch_registers)
13201 (record_btrace_store_registers)
13202 (record_btrace_to_prepare_to_store): New.
13203 (init_record_btrace_ops): Add the above.
13205 2014-01-16 Tom Tromey <tromey@redhat.com>
13207 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13208 * target.h (struct target_ops) <to_prepare_to_store>: Add
13210 (target_prepare_to_store): Add argument.
13211 * target.c (debug_to_prepare_to_store): Add argument.
13212 (update_current_target): Update.
13213 * remote.c (remote_prepare_to_store): Add 'self' argument.
13214 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13215 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13216 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13217 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13219 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13220 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13221 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13222 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13223 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13225 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13227 * btrace.h (replay) <replay>: New.
13228 (btrace_is_replaying): New.
13229 * btrace.c (btrace_clear): Free replay iterator.
13230 (btrace_is_replaying): New.
13231 * record-btrace.c (record_btrace_is_replaying): New.
13232 (record_btrace_info): Print insn number if replaying.
13233 (record_btrace_insn_history): Start at replay position.
13234 (record_btrace_call_history): Start at replay position.
13235 (init_record_btrace_ops): Init to_record_is_replaying.
13237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13239 * record-btrace.c (record_btrace_insn_history_range): Include
13241 (record_btrace_insn_history_from): Adjust range.
13242 (record_btrace_call_history_range): Include
13244 (record_btrace_call_history_from): Adjust range.
13245 * NEWS: Announce changes.
13247 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13249 * record.h (enum record_print_flag)
13250 <record_print_indent_calls>: New.
13251 * record.c (get_call_history_modifiers): Recognize /c modifier.
13252 (_initialize_record): Document /c modifier.
13253 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13254 Reorder fields. Optionally indent the function name. Update
13256 * NEWS: Announce changes.
13258 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13260 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13262 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13264 * btrace.c (ftrace_new_function): Start counting at one.
13265 * record-btrace.c (record_btrace_info): Adjust number of calls
13267 * NEWS: Announce it.
13269 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13271 * record-btrace.c (btrace_call_history_insn_range): Print
13272 insn range as [begin, end].
13274 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13276 * btrace.h (struct btrace_func_link): New.
13277 (enum btrace_function_flag): New.
13278 (struct btrace_inst): Rename to ...
13279 (struct btrace_insn): ...this. Update all users.
13280 (struct btrace_func) <ibegin, iend>: Remove.
13281 (struct btrace_func_link): New.
13282 (struct btrace_func): Rename to ...
13283 (struct btrace_function): ...this. Update all users.
13284 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13285 (number, level, flags>: New.
13286 (struct btrace_insn_iterator): Rename to ...
13287 (struct btrace_insn_history): ...this.
13289 (struct btrace_insn_iterator, btrace_call_iterator): New.
13290 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13291 (struct btrace_target_info) <begin, end, level>
13292 <insn_history, call_history>: New.
13293 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13294 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13295 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13296 (btrace_call_number, btrace_call_begin, btrace_call_end)
13297 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13298 (btrace_find_function_by_number, btrace_set_insn_history)
13299 (btrace_set_call_history): New.
13300 * btrace.c (btrace_init_insn_iterator)
13301 (btrace_init_func_iterator, compute_itrace): Remove.
13302 (ftrace_print_function_name, ftrace_print_filename)
13303 (ftrace_skip_file): Change
13304 parameter to const.
13305 (ftrace_init_func): Remove.
13306 (ftrace_debug): Use new btrace_function fields.
13307 (ftrace_function_switched): Also consider gaining and
13308 losing symbol information).
13309 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13310 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13311 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13313 (ftrace_new_function): Move. Remove debug print.
13314 (ftrace_update_lines, ftrace_update_insns): New.
13315 (ftrace_update_function): Check for call, ret, and jump.
13316 (compute_ftrace): Renamed to ...
13317 (btrace_compute_ftrace): ...this. Rewritten to compute call
13319 (btrace_fetch, btrace_clear): Updated.
13320 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13321 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13322 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13323 (btrace_call_number, btrace_call_begin, btrace_call_end)
13324 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13325 (btrace_find_function_by_number, btrace_set_insn_history)
13326 (btrace_set_call_history): New.
13327 * record-btrace.c (require_btrace): Use new btrace thread
13329 (record_btrace_info, btrace_insn_history)
13330 (record_btrace_insn_history, record_btrace_insn_history_range):
13331 Use new btrace thread info fields and new iterator.
13332 (btrace_func_history_src_line): Rename to ...
13333 (btrace_call_history_src_line): ...this. Use new btrace
13334 thread info fields.
13335 (btrace_func_history): Rename to ...
13336 (btrace_call_history): ...this. Use new btrace thread info
13337 fields and new iterator.
13338 (record_btrace_call_history, record_btrace_call_history_range):
13339 Use new btrace thread info fields and new iterator.
13341 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13343 * frame.h (frame_id_build_unavailable_stack_special): New.
13344 * frame.c (frame_id_build_unavailable_stack_special): New.
13346 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13348 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13349 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13350 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13352 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13353 (i386_insn_is_jump, i386_jmp_p): New.
13354 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13355 insn_is_jump to gdbarch.
13356 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13357 * gdbarch.h: Regenerated.
13358 * gdbarch.c: Regenerated.
13359 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13360 (default_insn_is_jump): New.
13361 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13362 (default_insn_is_jump): New.
13364 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13366 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13368 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13369 (btrace_read_type) <btrace_read_new>: Change to ...
13370 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13372 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13374 * common/linux-btrace.c (linux_read_btrace): Free trace from
13375 previous iteration.
13377 2014-01-15 Doug Evans <dje@google.com>
13379 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13382 2014-01-15 Tom Tromey <tromey@redhat.com>
13384 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13385 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13386 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13387 (set_objfile_main_name): New function.
13388 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13389 language_of_main>: New fields.
13390 (set_objfile_main_name): Declare.
13391 * symtab.c (find_main_name): Loop over objfiles to find the main
13393 (set_main_name): Now static.
13394 (get_main_info): Add comment.
13395 * symtab.h (set_main_name): Don't declare.
13397 2014-01-15 Tom Tromey <tromey@redhat.com>
13399 * symtab.c (main_progspace_key): New global.
13400 (struct main_info): New.
13401 (name_of_main, language_of_main): Remove.
13402 (get_main_info, main_info_cleanup): New function.
13403 (set_main_name, main_name, main_language): Use get_main_info.
13404 (_initialize_symtab): Initialize main_progspace_key.
13406 2014-01-15 Tom Tromey <tromey@redhat.com>
13408 * dbxread.c (process_one_symbol): Update.
13409 * dwarf2read.c (read_partial_die): Update.
13410 * symfile.c (set_initial_language): Call main_language.
13411 * symtab.c (language_of_main): Now static.
13412 (set_main_name): Add 'lang' parameter.
13413 (find_main_name): Update.
13414 (main_language): New function.
13415 (symtab_observer_executable_changed): Update.
13416 * symtab.h (set_main_name): Update.
13417 (language_of_main): Remove.
13418 (main_language): Declare.
13420 2014-01-15 Tom Tromey <tromey@redhat.com>
13422 * symfile.c (init_entry_point_info): Use new "initialized" field.
13424 * objfiles.h (struct entry_point) <initialized>: New field.
13425 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13426 (struct objfile) <ei>: ...here. Remove.
13427 * objfiles.c (entry_point_address_query): Update.
13429 2014-01-15 Tom Tromey <tromey@redhat.com>
13431 * objfiles.c (entry_point_address_query): Relocate entry point
13433 (objfile_relocate1): Do not relocate entry point address.
13434 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13435 <the_bfd_section_index>: New field.
13436 * symfile.c (init_entry_point_info): Find the entry point's
13439 2014-01-15 Tom Tromey <tromey@redhat.com>
13441 * solib-frv.c (enable_break): Use entry_point_address_query.
13443 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13445 * NEWS: Add note on improved process record-replay on
13446 arm*-linux* targets.
13448 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13450 * arm-tdep.c (enum arm_record_result): New enum.
13451 (arm_record_unsupported_insn): New function.
13452 (arm_record_coproc_data_proc): Removed.
13453 (thumb2_record_ld_st_multiple): New function.
13454 (thumb2_record_ld_st_dual_ex_tbb): New function.
13455 (thumb2_record_data_proc_sreg_mimm): New function.
13456 (thumb2_record_ps_dest_generic): New function.
13457 (thumb2_record_branch_misc_cntrl): New function.
13458 (thumb2_record_str_single_data): New function.
13459 (thumb2_record_ld_mem_hints): New function.
13460 (thumb2_record_ld_word): New function.
13461 (thumb2_record_lmul_lmla_div): New function.
13462 (thumb2_record_decode_insn_handler): New function.
13463 (decode_insn): Add thumb32 instruction handlers.
13465 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13467 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13468 (struct arm_linux_record_tdep): Declare.
13469 (arm_canonicalize_syscall): New function.
13470 (arm_all_but_pc_registers_record): New function.
13471 (arm_linux_syscall_record): New function.
13472 (arm_linux_init_abi): Add syscall recording constructs.
13473 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13474 decoding. (arm_record_coproc_data_proc): Update arm syscall
13476 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13477 <arm_syscall_record>: New field.
13478 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13481 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13483 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13484 register for push instruction recording.
13486 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13488 * arm-tdep.c (thumb_record_misc): Update to correct logical
13489 error while recording ldm, ldmia and pop instructions.
13491 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13493 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13495 2014-01-15 Pedro Alves <palves@redhat.com>
13497 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13498 (go32_resume, go32_fetch_registers, store_register)
13499 (go32_store_registers, go32_prepare_to_store)
13500 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13501 (go32_create_inferior, go32_can_run, go32_terminal_init)
13502 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13505 2014-01-15 Tom Tromey <tromey@redhat.com>
13507 * target.h (async_callback_ftype): New typedef.
13508 (struct target_ops) <to_async>: Use it.
13510 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13512 * python/py-value.c (get_field_type): Remove unnecessary curly
13513 braces for single-statement if block.
13515 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13517 * python/py-type.c (convert_field): Add missing empty line
13518 after declarations.
13520 2014-01-14 Doug Evans <dje@google.com>
13522 * symfile.h (expand_symtabs_matching): Renamed from
13523 expand_partial_symbol_names. Update prototype.
13524 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13525 * symfile.c (expand_symtabs_matching): Renamed from
13526 expand_partial_symbol_names. New args file_matcher, kind.
13527 Rename arg fun to symbol_matcher.
13528 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13529 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13530 ada_expand_partial_symbol_name.
13531 (ada_make_symbol_completion_list): Update to call
13532 expand_symtabs_matching.
13533 (ada_add_global_exceptions): Call expand_symtabs_matching.
13534 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13535 call map_symbol_filenames.
13536 * symtab.c (sources_info): Update to call map_symbol_filenames.
13537 (search_symbols): Call expand_symtabs_matching.
13538 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13539 (default_make_symbol_completion_list_break_on): Update to call
13540 expand_symtabs_matching.
13541 (make_source_files_completion_list): Update to call
13542 map_symbol_filenames.
13544 2014-01-14 Doug Evans <dje@google.com>
13546 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13547 (expand_symtabs_symbol_matcher_ftype): New typedef.
13548 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13549 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13550 * symfile.c (expand_partial_symbol_names): Update to use
13551 expand_symtabs_symbol_matcher_ftype.
13552 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13553 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13554 Arg name_matcher renamed to symbol_matcher.
13555 * psymtab.c (recursively_search_psymtabs): Update to use
13556 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13558 (expand_symtabs_matching_via_partial): Update to use
13559 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13560 Arg name_matcher renamed to symbol_matcher.
13562 2014-01-14 Doug Evans <dje@google.com>
13564 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13565 (map_partial_symbol_filenames): Ditto.
13566 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13567 (map_partial_symbol_filenames): Ditto.
13568 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13569 (map_partial_symbol_filenames): Ditto.
13570 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13571 (map_partial_symbol_filenames): Ditto.
13572 * symtab.c: Delete #include "psymtab.h".
13574 2014-01-14 Pedro Alves <palves@redhat.com>
13575 Tom Tromey <tromey@redhat.com>
13577 * infrun.c (use_displaced_stepping): Use find_record_target
13578 instead of RECORD_IS_USED.
13579 (adjust_pc_after_break): Use record_full_is_used instead of
13581 * record-btrace.c (record_btrace_open): Call record_preopen
13582 instead of checking RECORD_IS_USED.
13583 * record-full.c (record_full_shortname)
13584 (record_full_core_shortname): New globals.
13585 (record_full_is_used): New function.
13586 (find_full_open): Call record_preopen instead of checking
13588 (init_record_full_ops): Set the target's shortname to
13589 record_full_shortname.
13590 (init_record_full_core_ops): Set the target's shortname to
13591 record_full_core_shortname.
13592 * record-full.h (record_full_is_used): Declare.
13593 * record.c (find_record_target): Make extern.
13594 (record_preopen): New function.
13595 * record.h (RECORD_IS_USED): Delete macro.
13596 (find_record_target, record_preopen): Declare functions.
13598 2014-01-14 Yao Qi <yao@codesourcery.com>
13600 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13601 'len''s type to ULONGEST.
13602 (core_xfer_shared_libraries_aix): Likewise.
13603 * gdbarch.c, gdbarch.h: Regenerated.
13604 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13605 Change type of 'len' to ULONGEST.
13606 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13607 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13609 2014-01-14 Yao Qi <yao@codesourcery.com>
13611 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13612 type of 'len' to ULONGEST.
13613 (linux_xfer_osdata_processgroups): Likewise.
13614 (linux_xfer_osdata_threads): Likewise.
13615 (linux_xfer_osdata_fds): Likewise.
13616 (linux_xfer_osdata_isockets): Likewise.
13617 (linux_xfer_osdata_shm): Likewise.
13618 (linux_xfer_osdata_sem): Likewise.
13619 (linux_xfer_osdata_msg): Likewise.
13620 (linux_common_xfer_osdata): Likewise.
13621 (struct osdata_type) <getter>: Likewise.
13622 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13625 2014-01-14 Yao Qi <yao@codesourcery.com>
13627 * target.h (target_xfer_partial_ftype): Update.
13628 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13630 * aix-thread.c (aix_thread_xfer_partial): Change type of
13631 argument 'len' to ULONGEST.
13632 * auxv.c (procfs_xfer_auxv): Likewise.
13633 (ld_so_xfer_auxv): Likewise.
13634 (memory_xfer_auxv): Likewise.
13635 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13636 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13637 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13638 * corelow.c (core_xfer_partial): Likewise.
13639 * ctf.c (ctf_xfer_partial): Likewise.
13640 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13642 (darwin_read_dyld_info): Likewise.
13643 (darwin_xfer_partial): Likewise.
13644 * exec.c (section_table_xfer_memory_partial): Likewise.
13645 (exec_xfer_partial): Likewise.
13646 * exec.h (section_table_xfer_memory_partial): Update
13648 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13649 instead of plongest.
13650 (gnu_xfer_partial): Likewise.
13651 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13652 (ia64_hpux_xfer_solib_got): Likewise.
13653 (ia64_hpux_xfer_partial): Likewise.
13654 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13655 * inf-ptrace.c (inf_ptrace_xfer_partial):
13656 * inf-ttrace.c (inf_ttrace_xfer_partial):
13657 * linux-nat.c (linux_xfer_siginfo): Likewise.
13658 (linux_nat_xfer_partial): Likewise.
13659 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13660 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13661 * monitor.c (monitor_xfer_memory): Likewise.
13662 (monitor_xfer_partial): Likewise.
13663 * procfs.c (procfs_xfer_partial): Likewise.
13664 * record-full.c (record_full_xfer_partial): Likewise.
13665 (record_full_core_xfer_partial): Likewise.
13666 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13667 instead of plongest.
13668 (gdbsim_xfer_partial): Likewise.
13669 * remote.c (remote_xfer_partial): Likewise.
13670 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13671 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13673 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13674 (rs6000_xfer_shared_libraries): Likewise.
13675 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13676 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13677 (sparc_xfer_partial): Likewise.
13678 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13679 (spu_xfer_partial): Likewise.
13680 * spu-multiarch.c (spu_xfer_partial): Likewise.
13681 * target.c (target_read_live_memory): Likewise.
13682 (memory_xfer_live_readonly_partial): Likewise.
13683 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13684 (target_xfer_partial, default_xfer_partial): Likewise.
13685 (current_xfer_partial): Likewise.
13686 * tracepoint.c (tfile_xfer_partial): Likewise.
13687 * windows-nat.c (windows_xfer_memory): Likewise. Call
13688 pulongest instead of plongest.
13689 (windows_xfer_partial): Likewise.
13690 (windows_xfer_shared_libraries): Likewise.
13692 2014-01-14 Yao Qi <yao@codesourcery.com>
13694 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13695 target_xfer_partial_ftype.
13697 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13701 * valops.c (value_struct_elt_bitpos): New function
13702 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13703 object to 'None' if the field name is an empty string ("").
13704 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13705 attribute to look for a field when 'name' is 'None'.
13706 (get_field_type): New function
13708 2014-01-13 Doug Evans <dje@google.com>
13711 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13712 (try_open_dwop_file): Ditto.
13713 * gdb_bfd.c: #include "vec.h".
13714 (bfdp): New typedef.
13715 (struct gdb_bfd_data): New member included_bfds.
13716 (gdb_bfd_unref): Unref all included bfds.
13717 (gdb_bfd_record_inclusion): New function.
13718 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13720 2014-01-13 Tom Tromey <tromey@redhat.com>
13722 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13724 2014-01-13 Tom Tromey <tromey@redhat.com>
13726 * defs.h (use_windows): Remove.
13727 * gdb.c (main): Update.
13728 * main.c (captured_main, gdb_main): Update.
13729 * main.h (struct captured_main_args) <use_windows>: Remove.
13730 * top.c (use_windows): Remove.
13732 2014-01-13 Tom Tromey <tromey@redhat.com>
13734 * defs.h (deprecated_flush_hook): Remove.
13736 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13739 * linux-thread-db.c (try_thread_db_load): Add parameter
13740 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13741 (try_thread_db_load_from_pdir_1): Move it there from here.
13742 (try_thread_db_load_from_sdir): Update caller.
13743 (try_thread_db_load_from_dir): Move it there from here.
13745 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13747 * regformats/regdat.sh: Always rewrite the register file.
13749 2014-01-13 Pedro Alves <palves@redhat.com>
13751 * Makefile.in (CHECK_HEADERS): New variable.
13752 (check-headers:): New rule.
13754 2014-01-13 Tom Tromey <tromey@redhat.com>
13756 * cli/cli-setshow.c (do_set_command): Update.
13757 * defs.h (deprecated_set_hook): Remove.
13758 * top.c (deprecated_set_hook): Remove.
13760 2014-01-13 Pedro Alves <palves@redhat.com>
13762 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13763 the tracepoint if the PC is a pseudo-register.
13765 2014-01-13 Tom Tromey <tromey@redhat.com>
13767 * defs.h (XCALLOC): Remove.
13768 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13769 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13770 * dwarf2loc.c (allocate_piece_closure): Likewise.
13771 * elfread.c (elf_symfile_segments): Likewise.
13772 (elf_symfile_segments): Likewise.
13773 * gdbtypes.c (copy_type_recursive): Likewise.
13774 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13775 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13776 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13778 * mt-tdep.c (mt_gdbarch_init): Likewise.
13779 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13781 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13782 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13783 * registry.c (registry_alloc_data): Likewise.
13784 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13785 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13786 * serial.c (serial_fdopen_ops): Likewise.
13787 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13789 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13790 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13793 2014-01-13 Tom Tromey <tromey@redhat.com>
13795 * defs.h (XMALLOC): Remove.
13796 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13797 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13798 * cli-out.c (struct ui_out *): Likewise.
13799 * cli/cli-dump.c (add_dump_command): Likewise.
13800 (add_dump_command): Likewise.
13801 * complaints.c (get_complaints): Likewise.
13802 (find_complaint): Likewise.
13803 * dwarf2-frame.c (execute_cfa_program): Likewise.
13804 * dwarf2read.c (abbrev_table_read_table): Likewise.
13805 * gdbarch.sh: Likewise.
13806 * gdbarch.c: Rebuild.
13807 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13808 * interps.c (interp_new): Likewise.
13809 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13810 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13811 * mi/mi-console.c (mi_console_file_new): Likewise.
13812 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13813 * mi/mi-out.c (mi_out_new): Likewise.
13814 * mi/mi-parse.c (mi_parse): Likewise.
13815 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13816 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13817 * observer.c (xalloc_observer_list_node): Likewise.
13818 * regcache.c (regcache_xmalloc_1): Likewise.
13819 * reggroups.c (reggroup_new): Likewise.
13820 (_initialize_reggroup): Likewise.
13821 * registry.c (register_data_with_cleanup): Likewise.
13822 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13823 * ser-base.c (serial_ttystate): Likewise.
13824 * ser-mingw.c (make_pipe_state): Likewise.
13825 * ser-pipe.c (pipe_open): Likewise.
13826 * serial.c (serial_open): Likewise.
13827 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13828 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13829 (tui_alloc_win_info): Likewise.
13830 (tui_add_content_elements): Likewise.
13831 * tui/tui-file.c (tui_file_new): Likewise.
13832 * tui/tui-out.c (tui_out_new): Likewise.
13833 * ui-file.c (mem_file_new): Likewise.
13834 * ui-out.c (push_level): Likewise.
13835 (make_cleanup_ui_out_end): Likewise.
13836 (append_header_to_list): Likewise.
13837 (ui_out_new): Likewise.
13838 * user-regs.c (user_reg_add_builtin): Likewise.
13840 2014-01-13 Tom Tromey <tromey@redhat.com>
13842 * defs.h (XZALLOC): Remove.
13843 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13844 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13845 (get_ada_tasks_inferior_data): Likewise.
13846 * auto-load.c (get_auto_load_pspace_data): Likewise.
13847 * auxv.c (get_auxv_inferior_data): Likewise.
13848 * bfd-target.c (target_bfd_reopen): Likewise.
13849 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13850 (deprecated_insert_raw_breakpoint): Likewise.
13851 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13852 * corelow.c (core_open): Likewise.
13853 * darwin-nat.c (darwin_check_new_threads): Likewise.
13854 (darwin_attach_pid): Likewise.
13855 * dummy-frame.c (dummy_frame_push): Likewise.
13856 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13857 * dwarf2loc.c (allocate_piece_closure): Likewise.
13858 * elfread.c (elf_symfile_segments): Likewise.
13859 * eval.c (ptrmath_type_p): Likewise.
13860 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13861 * gdbtypes.c (alloc_type_arch): Likewise.
13862 (alloc_type_instance): Likewise.
13863 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13864 * inf-child.c (inf_child_can_use_agent): Likewise.
13865 * inflow.c (get_inflow_inferior_data): Likewise.
13866 * infrun.c (save_infcall_suspend_state): Likewise.
13867 * jit.c (jit_reader_load): Likewise.
13868 (get_jit_objfile_data): Likewise.
13869 (get_jit_program_space_data): Likewise.
13870 (jit_object_open_impl): Likewise.
13871 (jit_symtab_open_impl): Likewise.
13872 (jit_block_open_impl): Likewise.
13873 (jit_frame_sniffer): Likewise.
13874 * linux-fork.c (add_fork): Likewise.
13875 * maint.c (make_command_stats_cleanup): Likewise.
13876 * objfiles.c (get_objfile_pspace_data): Likewise.
13877 * opencl-lang.c (struct lval_closure): Likewise.
13878 * osdata.c (osdata_start_osdata): Likewise.
13879 * progspace.c (new_address_space): Likewise.
13880 (add_program_space): Likewise.
13881 * remote-sim.c (get_sim_inferior_data): Likewise.
13882 * sh-tdep.c (sh_gdbarch_init): Likewise.
13883 * skip.c (Ignore): Likewise.
13884 (skip_delete_command): Likewise.
13885 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13886 (library_list_start_library): Likewise.
13887 (solib_aix_current_sos): Likewise.
13888 * solib-darwin.c (get_darwin_info): Likewise.
13889 (darwin_current_sos): Likewise.
13890 * solib-dsbt.c (get_dsbt_info): Likewise.
13891 * solib-ia64-hpux.c (new_so_list): Likewise.
13892 (ia64_hpux_get_solib_linkage_addr): Likewise.
13893 * solib-spu.c (append_ocl_sos): Likewise.
13894 (spu_current_sos): Likewise.
13895 * solib-svr4.c (get_svr4_info): Likewise.
13896 (svr4_keep_data_in_core): Likewise.
13897 (library_list_start_library): Likewise.
13898 (svr4_default_sos): Likewise.
13899 (svr4_read_so_list): Likewise.
13900 * solib-target.c (library_list_start_library): Likewise.
13901 (solib_target_current_sos): Likewise.
13902 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13903 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13904 * symfile.c (default_symfile_segments): Likewise.
13905 * target-descriptions.c (tdesc_data_init): Likewise.
13906 (tdesc_create_reg): Likewise.
13907 (struct tdesc_type *): Likewise.
13908 (tdesc_create_vector): Likewise.
13909 (tdesc_set_struct_size): Likewise.
13910 (struct tdesc_type *): Likewise.
13911 (tdesc_free_feature): Likewise.
13912 (tdesc_create_feature): Likewise.
13913 * windows-nat.c (windows_add_thread): Likewise.
13914 (windows_make_so): Likewise.
13915 * xml-support.c (gdb_xml_body_text): Likewise.
13916 (gdb_xml_create_parser_and_cleanup): Likewise.
13917 (xml_process_xincludes): Likewise.
13918 * xml-syscall.c (allocate_syscalls_info): Likewise.
13919 (syscall_create_syscall_desc): Likewise.
13921 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13923 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13924 function, with code from i386_stap_parse_special_token.
13925 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13926 (i386_stap_parse_special_token): Move code to the two functions
13927 above; simplify it.
13929 2014-01-09 Pedro Alves <palves@redhat.com>
13930 Hui Zhu <hui@codesourcery.com>
13933 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13934 bp_err_string. Don't mark the location shlib_disabled if the
13935 error thrown wasn't a generic or memory error. Catch errors
13936 thrown while inserting breakpoints in overlayed code. Output
13937 error message of software breakpoints.
13938 * remote.c (remote_insert_breakpoint): If this breakpoint has
13939 target-side commands but this stub doesn't support Z0 packets,
13940 throw NOT_SUPPORTED_ERROR error.
13941 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13942 * target.h (target_insert_breakpoint): Extend comment.
13943 (target_insert_hw_breakpoint): Add comment.
13945 2014-01-08 Pedro Alves <palves@redhat.com>
13947 * remote.c (remote_add_thread): Add threads silently if starting
13949 (remote_notice_new_inferior): If in all-stop, and starting up,
13950 don't call notice_new_inferior.
13951 (get_current_thread): New function, factored out from ...
13952 (add_current_inferior_and_thread): ... this. Adjust.
13953 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13954 found any thread, then select the remote's current thread as GDB's
13955 current thread too.
13957 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13959 * NEWS: Create a new section for the next release branch.
13960 Rename the section of the current branch, now that it has
13963 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13965 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13966 * version.in: Bump version to 7.7.50.DATE-cvs.
13968 2014-01-08 Yao Qi <yao@codesourcery.com>
13970 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13971 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13972 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13974 2014-01-08 Yao Qi <yao@codesourcery.com>
13976 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13977 return value of bfd_get_filename to symbol_file_add_from_bfd.
13979 2014-01-08 Pierre Muller <muller@sourceware.org>
13982 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13983 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13984 to prim_record_mininal_symbol_and_info.
13985 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13986 in call to prim_record_minimal_symbol_and_info.
13987 (read_pe_exported_syms): Set index field of section_data.
13989 2014-01-07 Andrew Pinski <apinski@cavium.com>
13991 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13992 * features/aarch64.c: Regenerate.
13994 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13996 * target.c (return_null): Define.
13997 (update_current_target): Use it instead of return_zero for
13998 functions that return a pointer.
14000 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14002 * source.c (add_path): Fix check for duplicated paths in the previously
14005 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14007 * ada-lang.c: Remove duplicated include statements.
14008 * alphabsd-nat.c: Ditto.
14009 * amd64-darwin-tdep.c: Ditto.
14010 * amd64fbsd-nat.c: Ditto.
14011 * auto-load.c: Ditto.
14013 * breakpoint.c: Ditto.
14014 * dbxread.c: Ditto.
14015 * fork-child.c: Ditto.
14016 * gdb_usleep.c: Ditto.
14017 * i386-darwin-tdep.c: Ditto.
14018 * i386fbsd-nat.c: Ditto.
14020 * inferior.c: Ditto.
14021 * jv-lang.c: Ditto.
14022 * linux-nat.c: Ditto.
14023 * linux-tdep.c: Ditto.
14024 * m68kbsd-nat.c: Ditto.
14025 * m68klinux-nat.c: Ditto.
14026 * microblaze-tdep.c: Ditto.
14027 * mips-linux-tdep.c: Ditto.
14028 * mn10300-tdep.c: Ditto.
14029 * nto-tdep.c: Ditto.
14030 * opencl-lang.c: Ditto.
14032 * printcmd.c: Ditto.
14033 * regcache.c: Ditto.
14034 * remote-m32r-sdi.c: Ditto.
14036 * symfile.c: Ditto.
14038 * tilegx-linux-nat.c: Ditto.
14039 * tilegx-tdep.c: Ditto.
14040 * tracepoint.c: Ditto.
14042 * vaxbsd-nat.c: Ditto.
14043 * windows-nat.c: Ditto.
14044 * xtensa-tdep.c: Ditto.
14046 2014-01-07 Yao Qi <yao@codesourcery.com>
14048 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14050 2014-01-07 Yao Qi <yao@codesourcery.com>
14051 Joel Brobecker <brobecker@adacore.com>
14053 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14054 (pdc_write_regs): Likewise.
14055 (fetch_regs_kernel_thread): Likewise.
14056 (store_regs_kernel_thread): Likewise.
14058 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14060 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14061 tagged type objects to their actual type.
14063 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14065 * ada-valprint.c (print_field_values): Add "language" parameter.
14066 Update calls to print_field_values and print_variant_part.
14067 Pass new parameter "language" in call to val_print instead
14068 of "current_language". Replace call to ada_val_print by call
14070 (print_variant_part): Add "language" parameter.
14071 (ada_val_print_struct_union): Update call to print_field_values.
14073 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14075 * ada-valprint.c (ui_memcpy): Delete.
14076 (ada_print_floating): Update documentation. Add empty line
14077 between between function documentation and implementation.
14078 Delete variable "buffer". Use ui_file_xstrdup in place of
14079 ui_file_put. Minor adjustments following this change.
14081 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14083 * ada-valprint.c (ada_val_print_string): New function,
14084 extracted from ada_val_print_array.
14085 (ada_val_print_array): Replace extracted code by call
14086 to ada_val_print_string followed by a return. Move
14087 "else" branch to the function's top block.
14089 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14091 * ada-valprint.c (ada_val_print_array): Move implementation
14092 down. Rename parameter "offset" and "val" into "offset_aligned"
14093 and "original_value" respectively. Add parameter "offset".
14095 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14097 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14098 re-organizing the code. Change the "???" message printed
14099 when target type is a TYPE_CODE_UNDEF into
14100 "<ref to undefined type>".
14102 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14104 * ada-valprint.c (print_record): Delete, implementation inlined...
14105 (ada_val_print_struct_union): ... here. Remove call to
14106 ada_check_typedef in inlined implementation.
14108 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14110 * ada-valprint.c (ada_val_print_gnat_array): New function,
14111 extracted from ada_val_print_1;
14112 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14113 (ada_val_print_flt, ada_val_print_struct_union)
14114 (ada_val_print_ref): Likewise.
14115 (ada_val_print_1): Delete variables i and elttype.
14116 Replace extracted-out code by call to corresponding
14119 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14121 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14123 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14125 * ada-valprint.c (ada_val_print_1): Replace calls to
14126 ada_val_print_1 by calls to val_print.
14128 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14130 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14131 Update calls to self accordingly. Replace calls to c_val_print
14132 by calls to val_print.
14134 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14136 * ada-valprint.c (print_record): Delete declaration.
14137 (adjust_type_signedness, ada_val_print_1): Likewise.
14138 (ada_val_print): Move function implementation down.
14139 (print_variant_part, print_field_values, print_record):
14140 Move function implementation up.
14142 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14144 * python/py-type.c (typy_get_name): New function.
14145 (type_object_getset): Add entry for attribute "name".
14146 * NEWS: Add entry mentioning this new attribute.
14148 2014-01-07 Yao Qi <yao@codesourcery.com>
14150 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14153 2014-01-07 Yao Qi <yao@codesourcery.com>
14155 * gnu-nat.c (info_port_rights): Add qualifier const to
14158 2014-01-07 Yao Qi <yao@codesourcery.com>
14160 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14162 2014-01-07 Yao Qi <yao@codesourcery.com>
14164 * gnu-nat.c (make_inf) Update declaration.
14165 (make_inf): Make it static.
14166 (inf_set_traced): Likewise.
14167 (inf_port_to_thread, inf_task_died_status): Likewise.
14169 2014-01-07 Yao Qi <yao@codesourcery.com>
14171 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14173 2014-01-07 Yao Qi <yao@codesourcery.com>
14175 * gnu-nat.c (_initialize_gnu_nat): Declare.
14177 2014-01-07 Yao Qi <yao@codesourcery.com>
14179 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14181 (struct gdbarch_info) <byte_order>: Change type to
14183 <byte_order_for_code>: Likewise.
14184 * gdbarch.c, gdbarch.h: Regenerated.
14186 2014-01-06 Sasha Smundak <asmundak@google.com>
14188 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14190 2014-01-06 Tom Tromey <tromey@redhat.com>
14192 * doublest.c (convert_doublest_to_floatformat): Use const, not
14194 * somread.c (som_symtab_read): Likewise.
14196 2014-01-07 Hui Zhu <hui@codesourcery.com>
14198 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14199 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14200 (gdb_bfd_fopen): Ditto.
14201 (gdb_bfd_openr): Ditto.
14202 (gdb_bfd_openw): Ditto.
14203 (gdb_bfd_openr_iovec): Ditto.
14204 (gdb_bfd_fdopenr): Ditto.
14205 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14206 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14208 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14210 * symfile-mem.c (symbol_file_add_from_memory): Removed
14211 gdb_bfd_stash_filename.
14213 2014-01-03 Doug Evans <dje@google.com>
14215 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14218 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14220 Update year range in copyright notice of all files.
14222 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14224 * top.c (print_gdb_version): Set copyright year to 2014.
14226 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14228 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14230 For older changes see ChangeLog-2013.
14236 version-control: never