1 2014-10-15 Pedro Alves <palves@redhat.com>
3 * breakpoint.c (single_step_breakpoints): Delete global.
4 (insert_single_step_breakpoint): Adjust to store the breakpoint
5 pointer in the current thread.
6 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
7 (cancel_single_step_breakpoints): Delete functions.
8 (breakpoint_has_location_inserted_here): Make extern.
9 (single_step_breakpoint_inserted_here_p): Adjust to walk the
11 * breakpoint.h (breakpoint_has_location_inserted_here): New
13 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
14 (cancel_single_step_breakpoints): Remove declarations.
15 * gdbthread.h (struct thread_control_state)
16 <single_step_breakpoints>: New field.
17 (delete_single_step_breakpoints)
18 (thread_has_single_step_breakpoints_set)
19 (thread_has_single_step_breakpoint_here): New declarations.
20 * infrun.c (follow_exec): Also clear the single-step breakpoints.
21 (singlestep_breakpoints_inserted_p, singlestep_ptid)
22 (singlestep_pc): Delete globals.
23 (infrun_thread_ptid_changed): Remove references to removed
25 (resume_cleanups): Delete the current thread's single-step
27 (maybe_software_singlestep): Remove references to removed globals.
28 (resume): Adjust to use thread_has_single_step_breakpoints_set and
29 delete_single_step_breakpoints.
30 (init_wait_for_inferior): Remove references to removed globals.
31 (delete_thread_infrun_breakpoints): Delete the thread's
32 single-step breakpoints too.
33 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
34 single-step breakpoints here.
35 (delete_stopped_threads_single_step_breakpoints): New function.
36 (adjust_pc_after_break): Adjust to use
37 thread_has_single_step_breakpoints_set.
38 (handle_inferior_event): Remove references to removed globals.
39 Use delete_stopped_threads_single_step_breakpoints.
40 (handle_signal_stop): Adjust to per-thread single-step
41 breakpoints. Swap test order to do cheaper tests first.
42 (switch_back_to_stepped_thread): Extend debug output. Remove
43 references to removed globals.
44 * record-full.c (record_full_wait_1): Adjust to per-thread
45 single-step breakpoints.
46 * thread.c (delete_single_step_breakpoints)
47 (thread_has_single_step_breakpoints_set)
48 (thread_has_single_step_breakpoint_here): New functions.
49 (clear_thread_inferior_resources): Also delete the thread's
50 single-step breakpoints.
52 2014-10-15 Pedro Alves <palves@redhat.com>
54 * thread.c (delete_thread_breakpoint): New function.
55 (delete_step_resume_breakpoint)
56 (delete_exception_resume_breakpoint): Use it.
57 (delete_at_next_stop): New function.
58 (clear_thread_inferior_resources): Use delete_at_next_stop.
60 2014-10-15 Pedro Alves <palves@redhat.com>
62 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
63 (breakpoint_inserted_here_p): ... here. Remove special case for
64 software single-step breakpoints.
65 (find_non_raw_software_breakpoint_inserted_here): Inline ...
66 (software_breakpoint_inserted_here_p): ... here. Remove special
67 case for software single-step breakpoints.
68 (bp_target_info_copy_insertion_state)
69 (deprecated_insert_raw_breakpoint)
70 (deprecated_remove_raw_breakpoint): Delete functions.
71 * breakpoint.h (deprecated_insert_raw_breakpoint)
72 (deprecated_remove_raw_breakpoint): Remove declarations.
74 2014-10-15 Pedro Alves <palves@redhat.com>
77 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
79 (single_step_breakpoints): New global.
80 (breakpoint_xfer_memory): Remove special handling for single-step
82 (update_breakpoints_after_exec): Delete bp_single_step
84 (detach_breakpoints): Remove special handling for single-step
86 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
87 (bpstat_stop_status): Add comment.
88 (bpstat_what, bptype_string, print_one_breakpoint_location)
89 (adjust_breakpoint_address, init_bp_location): Handle
91 (new_single_step_breakpoint): New function.
92 (set_momentary_breakpoint, bkpt_remove_location): Remove special
93 handling for single-step breakpoints.
94 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
95 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
97 (detach_single_step_breakpoints, find_single_step_breakpoint):
99 (breakpoint_has_location_inserted_here): New function.
100 (single_step_breakpoint_inserted_here_p): Rewrite.
101 * breakpoint.h: Remove FIXME.
102 (enum bptype) <bp_single_step>: New enum value.
103 (insert_single_step_breakpoint): Update comment.
104 * infrun.c (resume_cleanups)
105 (delete_step_thread_step_resume_breakpoint): Remove single-step
107 (fetch_inferior_event): Install a cleanup that removes infrun
109 (switch_back_to_stepped_thread) <expect thread advanced also>:
110 Clear step-over info.
112 2014-10-15 Pedro Alves <palves@redhat.com>
114 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
115 (delete_thread_infrun_breakpoints): New function, with parts
116 salvaged from delete_step_resume_breakpoint_callback.
117 (delete_step_thread_step_resume_breakpoint): Delete.
118 (for_each_just_stopped_thread_callback_func): New typedef.
119 (for_each_just_stopped_thread): New function.
120 (delete_just_stopped_threads_infrun_breakpoints): New function.
121 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
122 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
124 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
126 2014-10-15 Pedro Alves <palves@redhat.com>
128 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
129 trying to step past a non-steppable watchpoint.
130 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
132 * infrun.c (struct step_over_info): Add new field
133 'nonsteppable_watchpoint_p' and adjust comments.
134 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
136 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
137 (stepping_past_nonsteppable_watchpoint): New function.
138 (step_over_info_valid_p): Also return true if stepping past a
139 nonsteppable watchpoint.
140 (proceed): Adjust call to set_step_over_info. Remove reference to
142 (init_wait_for_inferior): Remove reference to init_infwait_state.
143 (waiton_ptid): Delete global.
144 (struct execution_control_state)
145 <stepped_after_stopped_by_watchpoint>: Delete field.
146 (wait_for_inferior, fetch_inferior_event): Always pass
147 minus_one_ptid to target_wait.
148 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
150 (init_infwait_state): Delete function.
151 (handle_inferior_event): Remove infwait_state handling.
152 (handle_signal_stop) <watchpoints handling>: Adjust after
153 stepped_after_stopped_by_watchpoint removal. Don't remove
154 breakpoints here nor set infwait_state. Set the thread's
155 stepping_over_watchpoint flag, and call keep_going instead.
156 (keep_going): Handle stepping_over_watchpoint. Adjust
157 set_step_over_info calls.
158 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
161 2014-10-15 Pedro Alves <palves@redhat.com>
163 * infrun.c (step_over_info_valid_p): New function.
164 (resume): Use step_over_info_valid_p instead of checking the
165 threads's trap_expected flag.
167 2014-10-15 Doug Evans <dje@google.com>
168 Walfred Tedeschi <walfred.tedeschi@intel.com>
171 * python/lib/gdb/__init__.py (packages): Add "printer".
172 * python/lib/gdb/command/bound_registers.py: Moved to ...
173 * python/lib/gdb/printer/bound_registers.py: ... here.
174 Add printer to global set of builtin printers. Rename printer from
175 "bound" to "mpx_bound128".
176 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
177 registered as global "builtin" printer.
178 (add_builtin_pretty_printer): New function.
179 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
180 gdb/printer/__init__.py.
182 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
184 * Makefile.in (SFILES): Remove d-support.c.
185 (COMMON_OBS): Remove d-support.o.
186 * d-lang.h (d_parse_symbol): Remove declaration.
187 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
188 * d-support.c: Remove file.
190 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
192 * gdb/infrun.c (process_event_stop_test): Apply
193 gdbarch_addr_bits_remove to longjmp resume address.
195 2014-10-15 Pedro Alves <palves@redhat.com>
197 * regformats/microblaze.dat: Delete file.
199 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
201 * features/Makefile (microblaze-expedite): Replace pc with rpc.
202 * regformats/microblaze-with-stack-protect.dat: Regenerate.
204 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
206 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
209 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
213 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
216 2014-10-14 Joel Brobecker <brobecker@adacore.com>
218 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
219 of the case where the second operand is a pointer.
220 <BINOP_SUB>: Likewise.
222 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
224 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
225 only if it is not NULL.
226 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
227 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
228 (struct probe_ops) <clear_semaphore>: Likewise.
229 * tracepoint.c (start_tracing): Call set_semaphore only if it is
231 (stop_tracing): Likewise, for clear_semaphore.
233 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
235 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
236 using language_c, instead of current_language.
238 2014-10-13 Doug Evans <dje@google.com>
240 * python/py-objfile.c (objfpy_initialize): New function.
241 (objfpy_new, objfile_to_objfile_object): Call it.
242 * python/py-progspace.c (pspy_initialize): New function.
243 (pspy_new, pspace_to_pspace_object): Call it.
245 2014-10-13 Miroslav Franc <mfranc@redhat.com>
246 Jan Kratochvil <jan.kratochvil@redhat.com>
248 Fix "save breakpoints" for "catch" command.
249 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
252 2014-10-12 Miroslav Franc <mfranc@redhat.com>
254 Fix "save breakpoints" for "disable $bpnum" command.
255 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
257 2014-10-10 Pedro Alves <palves@redhat.com>
259 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
260 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
261 (HFILES_NO_SRCDIR): Remove solib-irix.h.
262 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
264 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
265 * configure.ac: Remove references to IRIX.
266 * configure.host: Add *-*-irix* to the obsolete hosts section.
267 Remove all other references to irix.
268 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
271 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
273 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
274 isn't valid, release the tdesc arch data and return NULL.
276 2014-10-10 Pedro Alves <palves@redhat.com>
278 * linux-tdep.c: Include observer.h.
279 (linux_inferior_data): New global.
280 (struct linux_info): New structure.
281 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
282 (get_linux_inferior_data): New functions.
283 (linux_vsyscall_range): Rename to ...
284 (linux_vsyscall_range_raw): ... this.
285 (linux_vsyscall_range): New function; handles caching.
286 (_initialize_linux_tdep): Register linux_inferior_data. Install
287 inferior_exit and inferior_appeared observers.
289 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
290 Pedro Alves <palves@redhat.com>
293 * solib-svr4.c (svr4_read_so_list): Rename to ...
294 (svr4_current_sos_1): ... this and change the function comment.
295 (svr4_current_sos): New function.
297 2014-10-10 Pedro Alves <palves@redhat.com>
299 * arch-utils.c (default_vsyscall_range): New function.
300 * arch-utils.h (default_vsyscall_range): New declaration.
301 * gdbarch.sh (vsyscall_range): New hook.
302 * gdbarch.h, gdbarch.c: Regenerate.
303 * linux-tdep.c (linux_vsyscall_range): New function.
304 (linux_init_abi): Install linux_vsyscall_range as
305 vsyscall_range gdbarch hook.
306 * memrange.c (address_in_mem_range): New function.
307 * memrange.h (address_in_mem_range): New declaration.
308 * symfile-mem.c (find_vdso_size): Delete function.
309 (add_vsyscall_page): Use gdbarch_vsyscall_range.
311 2014-10-10 Pedro Alves <palves@redhat.com>
313 * infrun.c (normal_stop): Fix typo in comment.
315 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
318 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
319 typo when using logical AND to determine instruction type.
321 2014-10-09 Yao Qi <yao@codesourcery.com>
323 * infrun.c (handle_signal_stop): Remove local variable
326 2014-10-08 Stan Shebs <stan@codesourcery.com>
328 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
330 2014-10-08 Gary Benson <gbenson@redhat.com>
332 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
334 2014-10-08 Gary Benson <gbenson@redhat.com>
336 * common/common-defs.h: Include common-exceptions.h.
337 * exceptions.h: Do not include common-exceptions.h.
339 2014-10-08 Gary Benson <gbenson@redhat.com>
341 * common/common-defs.h: Include cleanups.h.
342 * common/common-exceptions.c: Do not include cleanups.h.
345 2014-10-08 Gary Benson <gbenson@redhat.com>
347 * ada-lang.c: Do not include exceptions.h.
348 * ada-valprint.c: Likewise.
349 * amd64-tdep.c: Likewise.
350 * auto-load.c: Likewise.
352 * break-catch-throw.c: Likewise.
353 * breakpoint.c: Likewise.
354 * btrace.c: Likewise.
355 * c-lang.c: Likewise.
356 * cli/cli-cmds.c: Likewise.
357 * cli/cli-interp.c: Likewise.
358 * cli/cli-script.c: Likewise.
359 * completer.c: Likewise.
360 * corefile.c: Likewise.
361 * corelow.c: Likewise.
362 * cp-abi.c: Likewise.
363 * cp-support.c: Likewise.
364 * cp-valprint.c: Likewise.
365 * darwin-nat.c: Likewise.
366 * dwarf2-frame-tailcall.c: Likewise.
367 * dwarf2-frame.c: Likewise.
368 * dwarf2loc.c: Likewise.
369 * dwarf2read.c: Likewise.
371 * event-loop.c: Likewise.
372 * event-top.c: Likewise.
373 * f-valprint.c: Likewise.
374 * frame-unwind.c: Likewise.
376 * gdbtypes.c: Likewise.
377 * gnu-v2-abi.c: Likewise.
378 * gnu-v3-abi.c: Likewise.
379 * guile/scm-auto-load.c: Likewise.
380 * guile/scm-breakpoint.c: Likewise.
381 * guile/scm-cmd.c: Likewise.
382 * guile/scm-frame.c: Likewise.
383 * guile/scm-lazy-string.c: Likewise.
384 * guile/scm-param.c: Likewise.
385 * guile/scm-symbol.c: Likewise.
386 * guile/scm-type.c: Likewise.
387 * hppa-hpux-tdep.c: Likewise.
388 * i386-tdep.c: Likewise.
389 * inf-loop.c: Likewise.
390 * infcall.c: Likewise.
391 * infcmd.c: Likewise.
392 * infrun.c: Likewise.
393 * interps.c: Likewise.
394 * interps.h: Likewise.
396 * linespec.c: Likewise.
397 * linux-nat.c: Likewise.
398 * linux-thread-db.c: Likewise.
399 * m32r-rom.c: Likewise.
401 * memory-map.c: Likewise.
402 * mi/mi-cmd-break.c: Likewise.
403 * mi/mi-cmd-stack.c: Likewise.
404 * mi/mi-interp.c: Likewise.
405 * mi/mi-main.c: Likewise.
406 * monitor.c: Likewise.
407 * nto-procfs.c: Likewise.
408 * objc-lang.c: Likewise.
409 * p-valprint.c: Likewise.
411 * ppc-linux-tdep.c: Likewise.
412 * printcmd.c: Likewise.
414 * python/py-auto-load.c: Likewise.
415 * python/py-breakpoint.c: Likewise.
416 * python/py-cmd.c: Likewise.
417 * python/py-finishbreakpoint.c: Likewise.
418 * python/py-frame.c: Likewise.
419 * python/py-framefilter.c: Likewise.
420 * python/py-function.c: Likewise.
421 * python/py-gdb-readline.c: Likewise.
422 * python/py-inferior.c: Likewise.
423 * python/py-infthread.c: Likewise.
424 * python/py-lazy-string.c: Likewise.
425 * python/py-linetable.c: Likewise.
426 * python/py-param.c: Likewise.
427 * python/py-prettyprint.c: Likewise.
428 * python/py-symbol.c: Likewise.
429 * python/py-type.c: Likewise.
430 * python/py-value.c: Likewise.
431 * python/python-internal.h: Likewise.
432 * python/python.c: Likewise.
433 * record-btrace.c: Likewise.
434 * record-full.c: Likewise.
435 * regcache.c: Likewise.
436 * remote-fileio.c: Likewise.
437 * remote-mips.c: Likewise.
438 * remote.c: Likewise.
439 * rs6000-aix-tdep.c: Likewise.
440 * rs6000-nat.c: Likewise.
442 * solib-darwin.c: Likewise.
443 * solib-dsbt.c: Likewise.
444 * solib-frv.c: Likewise.
445 * solib-ia64-hpux.c: Likewise.
446 * solib-spu.c: Likewise.
447 * solib-svr4.c: Likewise.
449 * spu-tdep.c: Likewise.
451 * stap-probe.c: Likewise.
452 * symfile-mem.c: Likewise.
453 * symmisc.c: Likewise.
454 * target.c: Likewise.
455 * thread.c: Likewise.
457 * tracepoint.c: Likewise.
458 * tui/tui-interp.c: Likewise.
459 * typeprint.c: Likewise.
461 * valarith.c: Likewise.
462 * valops.c: Likewise.
463 * valprint.c: Likewise.
465 * varobj.c: Likewise.
466 * windows-nat.c: Likewise.
467 * xml-support.c: Likewise.
469 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
471 * mips-tdep.c (add_offset_16): Rewrite to implement what the
473 (extended_mips16_next_pc): Update accordingly.
475 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
477 * mips-tdep.c (mips16_instruction_is_compact_branch): New
479 (micromips_instruction_is_compact_branch): Likewise.
480 (mips16_scan_prologue): Terminate scanning upon seeing a branch
481 or a compact jump, reaching a jump delay slot, or seeing a
482 second non-prologue instruction.
483 (micromips_scan_prologue): Also terminate scanning upon seeing a
484 compact branch or jump, or reaching a branch or jump delay slot.
485 (mips32_scan_prologue): Terminate scanning upon reaching a branch
486 or jump delay slot, or seeing a second non-prologue instruction.
487 (mips32_instruction_has_delay_slot): Retain instruction
488 examination code only, update arguments accordingly and move
489 instruction fetch pieces to...
490 (mips32_insn_at_pc_has_delay_slot): ... this new function.
491 (micromips_instruction_has_delay_slot): Likewise and to...
492 (micromips_insn_at_pc_has_delay_slot): ... this new function.
493 (mips16_instruction_has_delay_slot): Likewise and to...
494 (mips16_insn_at_pc_has_delay_slot): ... this new function.
495 (mips_single_step_through_delay): Update accordingly.
496 (mips_adjust_breakpoint_address): Likewise.
498 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
500 * mips-tdep.c (micromips_instruction_has_delay_slot): When
501 !mustbe32 also return 1 for 32-bit instructions.
502 (mips16_instruction_has_delay_slot): Likewise. Add an
505 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
507 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
510 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
512 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
514 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
515 for the breakpoint's address. Don't preinitialize `placed_size'.
516 (insert_bp_location): Set `reqstd_address' rather than
518 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
519 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
521 (bkpt_remove_location): Likewise.
522 (deprecated_insert_raw_breakpoint): Likewise.
523 (deprecated_remove_raw_breakpoint): Likewise.
524 (find_single_step_breakpoint): Likewise.
525 * mem-break.c (default_memory_insert_breakpoint): Use
526 `reqstd_address' for the breakpoint's address. Don't set
527 `placed_address' or `placed_size' if breakpoint contents couldn't
528 have been determined.
529 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
530 the breakpoint's address.
531 (remote_insert_hw_breakpoint): Likewise. Don't set
532 `placed_address' or `placed_size' if breakpoint couldn't have been
534 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
535 `reqstd_address' for the breakpoint's address.
536 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
537 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
538 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
539 * microblaze-linux-tdep.c
540 (microblaze_linux_memory_remove_breakpoint): Likewise.
541 * monitor.c (monitor_insert_breakpoint): Likewise.
542 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
543 (procfs_insert_hw_breakpoint): Likewise.
544 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
545 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
546 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
547 * remote-mips.c (mips_insert_breakpoint): Likewise.
548 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
550 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
552 * valops.c (value_assign): Check for bit field assignments
553 before calling architecture-specific register value
554 conversion functions.
556 2014-10-03 Pierre Muller <muller@sourceware.org>
558 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
560 2014-10-02 Pedro Alves <palves@redhat.com>
562 * breakpoint.c (breakpoints_should_be_inserted_now): Use
563 threads_are_executing.
564 * breakpoint.h (breakpoints_should_be_inserted_now): Add
566 * gdbthread.h (threads_are_executing): Declare.
567 (handle_signal_stop) <random signals>: Don't print about the
568 signal here if stopping.
569 (end_stepping_range): Don't notify observers here.
570 (normal_stop): Update the thread list. If stopped by a random
571 signal or a stepping range ended, notify observers.
572 * thread.c (threads_executing): New global.
573 (init_thread_list): Clear 'threads_executing'.
574 (set_executing): Set or clear 'threads_executing'.
575 (threads_are_executing): New function.
576 (update_threads_executing): New function.
577 (update_thread_list): Use it.
579 2014-10-02 Pedro Alves <palves@redhat.com>
582 * breakpoint.c (update_breakpoints_after_exec): Don't create
583 overlay, longjmp, std terminate nor exception breakpoints here.
585 2014-10-02 Pedro Alves <palves@redhat.com>
587 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
589 * inferior.c (find_inferior_for_program_space): Give preference to
590 the current inferior.
591 * inferior.h (find_inferior_for_program_space): Update comment.
592 * progspace.c (switch_to_program_space_and_thread): Prefer the
593 current inferior if it's bound to the program space requested. If
594 the inferior found doesn't have a PID yet, don't bother looking up
596 * progspace.h (switch_to_program_space_and_thread): Adjust
598 * thread.c (any_thread_of_process, any_live_thread_of_process):
599 Give preference to the current thread.
601 2014-10-01 Pedro Alves <palves@redhat.com>
603 * breakpoint.c (insert_bp_location): Error out if inserting a
604 software breakpoint at a read-only address.
605 * target.c (memory_xfer_check_region): New function, factored out
607 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
609 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
610 against the memory region attributes.
612 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
614 * NEWS: Announce new exit-code field in -list-thread-groups
616 * inferior.c (exit_inferior_1): Don't clear exit code.
617 (inferior_appeared): Clear exit code.
618 * mi/mi-main.c (print_one_inferior): Add printing of the exit
621 2014-10-01 Pedro Alves <palves@redhat.com>
623 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
624 GENERATED" along with emacs/vi read-only markers.
625 * regformats/aarch64.dat: Regenerate.
626 * regformats/arm-with-iwmmxt.dat: Regenerate.
627 * regformats/arm-with-neon.dat: Regenerate.
628 * regformats/arm-with-vfpv2.dat: Regenerate.
629 * regformats/arm-with-vfpv3.dat: Regenerate.
630 * regformats/i386/amd64-avx-linux.dat: Regenerate.
631 * regformats/i386/amd64-avx.dat: Regenerate.
632 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
633 * regformats/i386/amd64-avx512.dat: Regenerate.
634 * regformats/i386/amd64-linux.dat: Regenerate.
635 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
636 * regformats/i386/amd64-mpx.dat: Regenerate.
637 * regformats/i386/amd64.dat: Regenerate.
638 * regformats/i386/i386-avx-linux.dat: Regenerate.
639 * regformats/i386/i386-avx.dat: Regenerate.
640 * regformats/i386/i386-avx512-linux.dat: Regenerate.
641 * regformats/i386/i386-avx512.dat: Regenerate.
642 * regformats/i386/i386-linux.dat: Regenerate.
643 * regformats/i386/i386-mmx-linux.dat: Regenerate.
644 * regformats/i386/i386-mmx.dat: Regenerate.
645 * regformats/i386/i386-mpx-linux.dat: Regenerate.
646 * regformats/i386/i386-mpx.dat: Regenerate.
647 * regformats/i386/i386.dat: Regenerate.
648 * regformats/i386/x32-avx-linux.dat: Regenerate.
649 * regformats/i386/x32-avx.dat: Regenerate.
650 * regformats/i386/x32-avx512-linux.dat: Regenerate.
651 * regformats/i386/x32-avx512.dat: Regenerate.
652 * regformats/i386/x32-linux.dat: Regenerate.
653 * regformats/i386/x32.dat: Regenerate.
654 * regformats/microblaze-with-stack-protect.dat: Regenerate.
655 * regformats/mips-dsp-linux.dat: Regenerate.
656 * regformats/mips-linux.dat: Regenerate.
657 * regformats/mips64-dsp-linux.dat: Regenerate.
658 * regformats/mips64-linux.dat: Regenerate.
659 * regformats/nios2-linux.dat: Regenerate.
660 * regformats/rs6000/powerpc-32.dat: Regenerate.
661 * regformats/rs6000/powerpc-32l.dat: Regenerate.
662 * regformats/rs6000/powerpc-64l.dat: Regenerate.
663 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
664 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
665 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
666 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
667 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
668 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
669 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
670 * regformats/s390-linux32.dat: Regenerate.
671 * regformats/s390-linux32v1.dat: Regenerate.
672 * regformats/s390-linux32v2.dat: Regenerate.
673 * regformats/s390-linux64.dat: Regenerate.
674 * regformats/s390-linux64v1.dat: Regenerate.
675 * regformats/s390-linux64v2.dat: Regenerate.
676 * regformats/s390-te-linux64.dat: Regenerate.
677 * regformats/s390x-linux64.dat: Regenerate.
678 * regformats/s390x-linux64v1.dat: Regenerate.
679 * regformats/s390x-linux64v2.dat: Regenerate.
680 * regformats/s390x-te-linux64.dat: Regenerate.
681 * regformats/tic6x-c62x-linux.dat: Regenerate.
682 * regformats/tic6x-c62x.dat: Regenerate.
683 * regformats/tic6x-c64x-linux.dat: Regenerate.
684 * regformats/tic6x-c64x.dat: Regenerate.
685 * regformats/tic6x-c64xp-linux.dat: Regenerate.
686 * regformats/tic6x-c64xp.dat: Regenerate.
688 2014-10-01 Pedro Alves <palves@redhat.com>
690 * features/Makefile: Update comments.
691 (XMLTOC): List all xml files we build C files from.
692 (clean-cfiles): New rule.
694 2014-10-01 Pedro Alves <palves@redhat.com>
696 * features/i386/amd64-avx512-linux.c: Regenerate.
697 * features/i386/amd64-avx512.c: Regenerate.
698 * features/i386/x32-avx512-linux.c: Regenerate.
699 * features/i386/x32-avx512.c: Regenerate.
701 2014-10-01 Pedro Alves <palves@redhat.com>
703 * features/Makefile (WHICH): Remove arm-with-m,
704 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
706 2014-10-01 Pedro Alves <palves@redhat.com>
708 * features/Makefile (clean): New rule.
710 2014-10-01 Pedro Alves <palves@redhat.com>
712 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
713 (zmm14h): Add missing end quotes.
715 2014-10-01 Pedro Alves <palves@redhat.com>
717 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
718 * features/aarch64.c: Regenerate.
720 2014-09-30 Don Breazeal <donb@codesourcery.com>
722 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
723 code so as to work with follow_fork_inferior.
724 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
725 (inf_ttrace_create_inferior): Remove reference to
726 inf_ttrace_vfork_ppid.
727 (inf_ttrace_attach): Ditto.
728 (inf_ttrace_detach): Ditto.
729 (inf_ttrace_kill): Use current_inferior instead of
730 inf_ttrace_vfork_ppid.
731 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
732 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
733 inferior away from the parent.
734 * infrun.c (follow_fork): Call follow_fork_inferior instead of
736 (follow_fork_inferior): New function.
737 (follow_inferior_reset_breakpoints): Make function static.
738 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
739 * linux-nat.c (linux_child_follow_fork): Move target-independent
740 code to infrun.c:follow_fork_inferior.
742 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
744 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
745 * gdbarch.c: Regenerate.
746 * gdbarch.h: Likewise.
747 * corelow.c (sniff_core_bfd): Drop presence check for deleted
748 gdbarch method 'regset_from_core_section'.
749 (get_core_register_section): Remove handling for the case that
750 regset == NULL and regset_from_core_section is defined.
751 (get_core_registers): Drop check for deleted method.
752 * procfs.c (procfs_do_thread_registers): Adjust comment.
754 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
756 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
757 (linux_nat_make_corefile_notes): Remove.
758 (linux_target_install_ops): Do not set target method
759 'make_corefile_notes'.
760 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
762 (linux_corefile_thread_callback): Instead of args->collect, call
763 linux_collect_thread_registers.
764 (linux_make_corefile_notes): Remove 'collect' parameter. Return
765 NULL unless there is a regset iterator.
766 (linux_make_corefile_notes_1): Remove.
767 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
768 by linux_make_corefile_notes.
769 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
771 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
773 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
774 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
776 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
778 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
780 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
781 (xtensa_iterate_over_regset_sections): New.
782 (xtensa_gdbarch_init): Adjust gdbarch initialization.
784 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
786 * vax-tdep.c (vax_regset_from_core_section): Remove.
787 (vax_iterate_over_regset_sections): New.
788 (vax_gdbarch_init): Adjust gdbarch initialization.
790 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
792 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
793 (tilegx_regset_from_core_section): Remove.
794 (tilegx_iterate_over_regset_sections): New.
795 (tilegx_linux_init_abi): Adjust gdbarch initialization.
797 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
799 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
800 (sparc_iterate_over_regset_sections): New.
801 (sparc32_gdbarch_init): Adjust gdbarch initialization.
802 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
804 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
805 (sparc64fbsd_init_abi): Call fbsd_init_abi.
806 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
807 target method 'make_corefile_notes'.
809 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
811 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
812 'sizeof_gregset' and 'sizeof_fpregset'.
813 * sh-tdep.c (sh_regset_from_core_section): Remove.
814 (sh_iterate_over_regset_sections): New.
815 (sh_gdbarch_init): Adjust gdbarch initialization.
816 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
818 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
821 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
823 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
824 (score7_linux_iterate_over_regset_sections): New.
825 (score_gdbarch_init): Adjust gdbarch initialization.
827 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
829 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
831 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
832 method 'make_corefile_notes'.
833 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
834 (ppcfbsd_regset_from_core_section): Remove.
835 (ppcfbsd_iterate_over_regset_sections): New.
836 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
838 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
839 (ppcnbsd_iterate_over_regset_sections): New.
840 (ppcnbsd_init_abi): Adjust.
841 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
842 (ppcobsd_iterate_over_regset_sections): New.
843 (ppcobsd_init_abi): Adjust.
844 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
845 (rs6000_aix_iterate_over_regset_sections): New.
846 (rs6000_aix_init_osabi): Adjust.
848 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
850 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
851 (nios2_regset_from_core_section): Remove.
852 (nios2_iterate_over_regset_sections): New.
853 (nios2_linux_init_abi): Adjust gdbarch initialization.
855 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
857 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
858 (am33_iterate_over_regset_sections): New.
859 (am33_linux_init_osabi): Adjust gdbarch initialization.
861 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
863 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
864 (mips_linux_iterate_over_regset_sections): New.
865 (mips_linux_init_abi): Adjust gdbarch initialization.
866 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
867 (mips64obsd_iterate_over_regset_sections): New.
868 (mips64obsd_init_abi): Adjust.
869 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
870 (mipsnbsd_iterate_over_regset_sections): New.
871 (mipsnbsd_init_abi): Adjust.
873 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
875 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
876 (m88k_iterate_over_regset_sections): New.
877 (m88k_gdbarch_init): Adjust gdbarch initialization.
879 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
881 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
882 (ia64_linux_iterate_over_regset_sections): New.
883 (ia64_linux_init_abi): Adjust gdbarch initialization.
885 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
887 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
888 (m68kbsd_iterate_over_regset_sections): New.
889 (m68kbsd_init_abi): Adjust gdbarch initialization.
890 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
891 (m68k_linux_iterate_over_regset_sections): New.
892 (m68k_linux_init_abi): Adjust gdbarch initialization.
894 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
896 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
897 (m32r_linux_regset_from_core_section): Remove.
898 (m32r_linux_iterate_over_regset_sections): New.
899 (m32r_linux_init_abi): Adjust gdbarch initialization.
901 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
903 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
904 (amd64obsd_iterate_over_regset_sections): New.
905 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
906 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
908 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
909 regset_from_core_section initialization.
910 * i386-tdep.c (i386_regset_from_core_section): Remove.
911 (i386_iterate_over_regset_sections): New.
912 (i386_gdbarch_init): Adjust gdbarch initialization.
913 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
914 (i386_iterate_over_regset_sections): New prototype.
915 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
917 (i386obsd_aout_iterate_over_regset_sections): New.
918 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
919 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
921 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
922 (amd64fbsd_init_abi): Call fbsd_init_abi.
923 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
924 (i386fbsd4_init_abi): Call fbsd_init_abi.
925 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
926 target method 'make_corefile_notes'.
927 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
929 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
931 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
932 (hppa_hpux_iterate_over_regset_sections): New.
933 (hppa_hpux_init_abi): Adjust gdbarch initialization.
934 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
935 (hppa_linux_iterate_over_regset_sections): New.
936 (hppa_linux_init_abi): Adjust.
937 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
938 (hppanbsd_iterate_over_regset_sections): New.
939 (hppanbsd_init_abi): Adjust.
940 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
941 (hppaobsd_iterate_over_regset_sections): New.
942 (hppaobsd_init_abi): Adjust.
944 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
946 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
947 (frv_linux_iterate_over_regset_sections): New.
948 (frv_linux_init_abi): Adjust gdbarch initialization.
950 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
952 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
953 (armbsd_iterate_over_regset_sections): New prototype.
954 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
955 (armbsd_iterate_over_regset_sections): New.
956 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
959 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
961 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
962 (alpha_linux_iterate_over_regset_sections): New.
963 (alpha_linux_init_abi): Adjust gdbarch initialization.
964 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
966 (alphanbsd_iterate_over_regset_sections): New prototype.
968 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
970 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
972 (aarch64_linux_iterate_over_regset_sections): New.
973 (aarch64_linux_init_abi): Adjust gdbarch initialization.
975 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
977 * fbsd-tdep.c: New file.
978 * fbsd-tdep.h: New file.
979 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
980 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
981 (ALLDEPFILES): Add fbsd-tdep.c.
983 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
985 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
987 * gdbarch.h: Regenerate.
988 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
990 (get_core_register_section): Add parameter 'regset' and use it, if
991 set. Add parameter 'min_size' and verify the bfd section size
993 (get_core_registers_cb): Add parameter 'regset' and pass it to
994 get_core_register section. For the "standard" register sections
995 ".reg" and ".reg2", set an appropriate default for human_name.
996 (get_core_registers): Don't abort when the gdbarch has an iterator
997 but no regset_from_core_section. Add NULL/0 for parameters
998 'regset'/'min_size' in calls to get_core_register_section.
999 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1000 'regset' and use it instead of calling the
1001 regset_from_core_section gdbarch method.
1002 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1003 * i386-tdep.c (i386_supply_xstateregset)
1004 (i386_collect_xstateregset, i386_xstateregset): Moved to
1006 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1008 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1009 core file support only if the regset iterator hasn't been set.
1010 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1011 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1012 Moved from i386-tdep.c and renamed to *_linux*.
1013 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1014 each callback invocation. Allow any .reg-xstate size when reading
1016 * amd64-tdep.c (amd64_supply_xstateregset)
1017 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1019 (amd64_regset_from_core_section): Remove.
1020 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1021 install an amd64-specific regset_from_core_section gdbarch method.
1022 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1023 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1024 Moved from amd64-tdep.c and renamed to *_linux*.
1025 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1026 to each callback invocation. Allow any .reg-xstate size when
1027 reading from a core file.
1028 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1029 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1030 each callback invocation.
1031 (arm_linux_init_abi): No longer set the regset_from_core_section
1033 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1034 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1035 each callback invocation.
1036 (ppc_linux_init_abi): No longer set the regset_from_core_section
1038 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1039 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1040 (s390_regset_from_core_section): Remove.
1041 (s390_iterate_over_regset_sections): Add regset parameter to each
1042 callback invocation.
1043 (s390_gdbarch_init): No longer set the regset_from_core_section
1044 gdbarch method. Drop initialization of deleted tdep fields.
1046 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1048 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1049 (amd64_linux_iterate_over_regset_sections): New.
1050 (amd64_linux_init_abi_common): Don't install the regset section
1051 list, but the new iterator in gdbarch.
1052 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1053 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1054 (arm_linux_iterate_over_regset_sections): ...here. New function.
1055 (arm_linux_init_abi): Set iterator instead of section list.
1056 * corelow.c (get_core_registers_cb): New function, logic moved
1058 (get_core_registers): ...loop body here. Use new iterator method
1059 instead of walking through the regset section list.
1060 * gdbarch.sh: Remove 'core_regset_sections'. New method
1061 'iterate_over_regset_sections'. New typedef
1062 'iterate_over_regset_sections_cb'.
1063 * gdbarch.c: Regenerate.
1064 * gdbarch.h: Likewise.
1065 * i386-linux-tdep.c (i386_linux_regset_sections)
1066 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1068 (i386_linux_iterate_over_regset_sections): New.
1069 (i386_linux_init_abi): Don't choose a regset section list, but
1070 install new iterator in gdbarch.
1071 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1072 (linux_collect_regset_section_cb): New function, logic moved
1074 (linux_collect_thread_registers): ...loop body here. Use iterator
1075 method instead of walking through list.
1076 (linux_make_corefile_notes_1): Check for presence of iterator
1077 method instead of regset section list.
1078 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1079 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1080 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1081 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1082 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1083 (ppc_linux_init_abi): Don't choose from above regset section
1084 lists, but install new iterator in gdbarch.
1085 * regset.h (struct core_regset_section): Remove.
1086 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1087 have_linux_v1, have_linux_v2, and have_tdb.
1088 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1089 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1090 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1091 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1092 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1093 (s390_iterate_over_regset_sections): ...here. New function. Use
1095 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1096 regset section lists, but install new iterator.
1098 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1100 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1102 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1104 * progspace.c (print_program_space): Don't prune program spaces
1105 before printing them.
1107 2014-09-25 Pedro Alves <palves@redhat.com>
1109 * infrun.c (user_visible_resume_ptid): Don't check
1110 singlestep_breakpoints_inserted_p.
1112 2014-09-25 Pedro Alves <palves@redhat.com>
1114 * breakpoint.c (should_be_inserted): Add debug output.
1116 2014-09-25 Pedro Alves <palves@redhat.com>
1118 * infrun.c (stepping_past_instruction_at)
1119 (clear_exit_convenience_vars): Point at infrun.h instead of
1121 (handle_signal_stop): Fix typo.
1123 2014-09-24 Yao Qi <yao@codesourcery.com>
1125 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1128 2014-09-22 Gary Benson <gbenson@redhat.com>
1130 * target.c (target_stop): Updated comment.
1132 2014-09-22 Gary Benson <gbenson@redhat.com>
1134 * target/target.h (target_stop_ptid): Renamed as...
1135 (target_stop_and_wait): New function. Updated comment.
1137 (target_continue_ptid): Renamed as...
1138 (target_continue_no_signal): New function. Updated comment.
1141 2014-09-22 Pedro Alves <palves@redhat.com>
1143 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1145 * breakpoint.c (enum ugll_insert_mode): New enum.
1146 (always_inserted_mode): Now a plain boolean.
1147 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1148 (breakpoints_always_inserted_mode): Delete.
1149 (breakpoints_should_be_inserted_now): New function.
1150 (insert_breakpoints): Pass UGLL_INSERT to
1151 update_global_location_list instead of calling
1152 insert_breakpoint_locations manually.
1153 (create_solib_event_breakpoint_1): New, factored out from ...
1154 (create_solib_event_breakpoint): ... this.
1155 (create_and_insert_solib_event_breakpoint): Use
1156 create_solib_event_breakpoint_1 instead of calling
1157 insert_breakpoint_locations manually.
1158 (update_global_location_list): Change parameter type from boolean
1159 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1160 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1161 (update_global_location_list_nothrow): Change parameter type from
1162 boolean to enum ugll_insert_mode.
1163 (_initialize_breakpoint): "breakpoint always-inserted" option is
1164 now a boolean command. Update help text.
1165 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1166 (breakpoints_should_be_inserted_now): New declaration.
1167 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1168 Remove breakpoints_always_inserted_mode check.
1169 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1170 * remote.c (remote_start_remote): Likewise.
1172 2014-09-22 Pedro Alves <palves@redhat.com>
1174 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1175 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1176 Instead, pass UGLL_INSERT to update_global_location_list.
1177 (update_global_location_list): Change parameter type from boolean
1178 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1179 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1180 (create_solib_event_breakpoint_1): New, factored out from ...
1181 (create_solib_event_breakpoint): ... this.
1182 (create_and_insert_solib_event_breakpoint): Use
1183 create_solib_event_breakpoint_1 instead of calling
1184 insert_breakpoint_locations manually.
1185 (update_global_location_list): Handle UGLL_INSERT.
1187 2014-09-22 Pedro Alves <palves@redhat.com>
1189 * breakpoint.c (enum ugll_insert_mode): New enum.
1190 (update_global_location_list)
1191 (update_global_location_list_nothrow): Change parameter type from
1192 boolean to enum ugll_insert_mode. All callers adjusted.
1194 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1196 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1197 SystemTap support in GDB.
1199 2014-09-19 Don Breazeal <donb@codesourcery.com>
1201 * linux-nat.c (linux_handle_extended_wait): Call
1202 linux_ptrace_get_extended_event.
1203 (wait_lwp): Call linux_is_extended_waitstatus.
1204 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1205 and linux_is_extended_waitstatus.
1206 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1207 linux_ptrace_get_extended_event.
1208 (linux_ptrace_get_extended_event): New function.
1209 (linux_is_extended_waitstatus): New function.
1210 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1211 (linux_is_extended_waitstatus): New declarations.
1213 2014-09-19 Yao Qi <yao@codesourcery.com>
1215 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1216 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1217 comments. Callers update.
1218 (dwarf_decode_lines): Likewise.
1219 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1220 comments. Skip the line table if 'lowpc' is greater than
1221 'address'. Don't check
1222 dwarf2_per_objfile->has_section_at_zero.
1224 2014-09-18 Doug Evans <dje@google.com>
1226 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1227 * python/py-symtab.c (stpy_get_producer): New function.
1228 (symtab_object_getset): Add "producer" attribute.
1230 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1233 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1234 (do_captured_read_memory_integer): Remove.
1235 (safe_read_memory_integer): Use target_read_memory directly instead
1236 of catching errors in do_captured_read_memory_integer.
1238 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1240 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1243 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1245 * objc-lang.c (find_implementation_from_class): Remove dead code.
1247 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1250 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1251 "fprintf_unfiltered (gdb_stdlog...)".
1253 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1255 PR breakpoints/12526
1256 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1258 * breakpoint.c (watch_command_1): Use these fields to retain
1259 bitfield information.
1260 (extract_bitfield_from_watchpoint_value): New function.
1261 (watchpoint_check): Use it.
1262 (update_watchpoint): Use it. Optimize the address and length of a
1263 HW watchpoint pointing to a bitfield.
1264 * value.h (unpack_value_bitfield): New prototype.
1265 * value.c (unpack_value_bitfield): Make extern.
1267 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1269 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1271 * gnu-nat.c (inf_threads): New function.
1272 * gnu-nat.h (inf_threads_ftype): New typedef.
1273 (inf_threads): New declaration.
1274 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1275 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1276 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1277 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1278 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1279 (i386_gnu_dr_get_control): New functions.
1280 (reg_addr): New structure.
1281 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1282 i386 debugging register hooks.
1283 * NEWS: Mention this.
1285 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1287 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1288 vector data transfer instructions.
1289 (arm_record_coproc_data_proc): Updated.
1291 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1293 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1294 arm_record_exreg_ld_st_insn.
1295 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1298 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1300 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1301 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1302 processing instructions.
1304 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1306 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1307 for advance SIMD struct ld/st insn.
1308 (thumb2_record_decode_insn_handler): Replace stub handler with
1309 thumb2_record_asimd_struct_ld_st.
1311 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1313 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1314 for asimd, vfp and coprocessor insns.
1315 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1316 and coprocessor insns.
1317 (thumb2_record_coproc_insn): New function.
1318 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1320 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1323 2014-09-13 Doug Evans <xdje42@gmail.com>
1325 * NEWS: Mention new "queue-signal" command.
1326 * infcmd.c (queue_signal_command): New function.
1327 (_initialize_infcmd): Add new queue-signal command.
1329 2014-09-13 Doug Evans <xdje42@gmail.com>
1331 * linux-nat.c (wait_lwp): Add debugging printf.
1332 (linux_nat_wait_1): Ditto.
1334 2014-09-12 Pedro Alves <palves@redhat.com>
1336 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1337 (create_and_insert_solib_event_breakpoint): New functions.
1338 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1339 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1340 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1341 (remove_dbx_link_breakpoint): Delete function.
1342 (insert_dbx_link_bpt_in_file): Use
1343 create_and_insert_solib_event_breakpoint instead of
1344 deprecated_insert_raw_breakpoint.
1345 (procfs_wait): Don't check whether we hit __dbx_link here.
1346 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1348 * solib-irix.c (base_breakpoint): Delete global.
1349 (disable_break): Delete function.
1350 (enable_break): Use create_solib_event_breakpoint
1351 instead of deprecated_insert_raw_breakpoint.
1352 (irix_solib_handle_event): New function.
1353 (irix_solib_create_inferior_hook): Don't run the target or disable
1354 the mapping-complete breakpoint here.
1355 (_initialize_irix_solib): Install irix_solib_handle_event as
1356 so_ops->handle_event hook.
1358 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1359 Ulrich Weigand <uweigand@de.ibm.com>
1362 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1363 instead of read_memory_unsigned_integer.
1365 2014-09-12 Gary Benson <gbenson@redhat.com>
1367 * nat/linux-waitpid.c: Include common-defs.h.
1368 [GDBSERVER]: Add FIXME comment.
1369 [!GDBSERVER]: Don't include defs.h or signal.h.
1370 (linux_debug) [!GDBSERVER]: Remove empty block.
1372 2014-09-12 Gary Benson <gbenson@redhat.com>
1374 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1375 Don't include defs.h or server.h.
1377 2014-09-12 Gary Benson <gbenson@redhat.com>
1379 * nat/linux-btrace.c: Include common-defs.h.
1380 Don't include defs.h, server.h or gdbthread.h.
1381 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1383 2014-09-12 Gary Benson <gbenson@redhat.com>
1385 * common/agent.c: Include common-defs.h.
1386 Don't include defs.h or server.h.
1387 * common/buffer.c: Likewise.
1388 * common/common-debug.c: Likewise.
1389 * common/common-utils.c: Likewise.
1390 * common/errors.c: Likewise.
1391 * common/filestuff.c: Likewise.
1392 * common/format.c: Likewise.
1393 * common/gdb_vecs.c: Likewise.
1394 * common/print-utils.c: Likewise.
1395 * common/ptid.c: Likewise.
1396 * common/rsp-low.c: Likewise.
1397 * common/signals.c: Likewise.
1398 * common/vec.c: Likewise.
1399 * common/xml-utils.c: Likewise.
1400 * nat/linux-osdata.c: Likewise.
1401 * nat/linux-procfs.c: Likewise.
1402 * nat/linux-ptrace.c: Likewise.
1403 * nat/mips-linux-watch.c: Likewise.
1404 * target/waitstatus.c: Likewise.
1406 2014-09-12 Tom Tromey <tromey@redhat.com>
1407 Gary Benson <gbenson@redhat.com>
1409 * common/common-regcache.h: New file.
1410 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1411 * regcache.h: Include common-regcache.h.
1412 (regcache_read_pc): Don't declare.
1413 * regcache.c (get_thread_regcache_for_ptid): New function.
1414 * nat/linux-btrace.c: Don't include regcache.h.
1415 Include common-regcache.h.
1416 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1418 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1420 * regcache.h (struct regset): Declare.
1422 2014-09-11 Pedro Alves <palves@redhat.com>
1425 * main.c: Include "infrun.h".
1426 (catch_command_errors, catch_command_errors_const): Wait for the
1427 foreground command to complete.
1428 * top.c (maybe_wait_sync_command_done): New function, factored out
1430 (maybe_wait_sync_command_done): ... here.
1431 * top.h (maybe_wait_sync_command_done): New declaration.
1433 2014-09-11 Tom Tromey <tromey@redhat.com>
1434 Gary Benson <gbenson@redhat.com>
1436 * common/symbol.h: New file.
1437 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1438 * minsyms.c (find_minimal_symbol_address): New function.
1439 * common/agent.c: Include common/symbol.h.
1440 [!GDBSERVER]: Don't include objfiles.h.
1441 (agent_look_up_symbols): Use find_minimal_symbol_address.
1443 2014-09-11 Gary Benson <gbenson@redhat.com>
1445 * target/target.h (target_stop_ptid, target_continue_ptid):
1447 * target.c (target_stop_ptid, target_continue_ptid): New
1449 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1450 (agent_run_command): Always use target_stop_ptid and
1451 target_continue_ptid.
1453 2014-09-11 Tom Tromey <tromey@redhat.com>
1454 Gary Benson <gbenson@redhat.com>
1456 * target/target.h: New file.
1457 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1458 * target.h: Include target/target.h.
1459 (target_read_memory, target_write_memory): Don't declare.
1460 * target.c (target_read_uint32): New function.
1461 * common/agent.c: Include target/target.h.
1462 [!GDBSERVER]: Don't include target.h.
1463 (helper_thread_id): Type changed to uint32_t.
1464 (agent_get_helper_thread_id): Use target_read_uint32.
1465 (agent_run_command): Always use target_read_memory and
1466 target_write_memory.
1467 (agent_capability): Type changed to uint32_t.
1468 (agent_capability_check): Use target_read_uint32.
1470 2014-09-11 Gary Benson <gbenson@redhat.com>
1472 * common/common-debug.h (show_debug_regs): Declare.
1473 * common/common-debug.c (show_debug_regs): Define.
1474 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1475 all uses with show_debug_regs. Replace all uses that considered
1476 debug_hw_points as a multi-value integer with straight boolean
1478 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1479 with show_debug_regs.
1480 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1481 all uses with show_debug_regs.
1482 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1483 uses with show_debug_regs.
1485 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1487 * findvar.c (address_from_register): Handle targets requiring
1488 a special conversion routine even for plain pointer types.
1490 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
1492 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1493 (store_register): Do not call exec_one_dummy_insn.
1495 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1497 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1498 dereference it first. Use value_enclosing_type instead of
1500 (ada_array_length): Likewise.
1502 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1504 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1505 Adjust function implementation and documentation accordingly.
1506 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1507 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1508 Update call to ada_value_ptr_subscript.
1510 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1512 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1513 instead of VAL's type.
1515 2014-09-10 Joel Brobecker <brobecker@adacore.com>
1517 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1519 2014-09-09 Doug Evans <xdje42@gmail.com>
1522 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1523 last parameter to pkg-config, not first.
1524 * configure.ac: Pass --with-guile provided pkg-config path to
1525 GDB_GUILE_PROGRAM_NAMES.
1526 * configure: Regenerate.
1528 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1530 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1533 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1535 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1536 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1537 the list of sections determining GDB_OSABI_IRIX.
1539 2014-09-09 James Hogan <james.hogan@imgtec.com>
1541 * MAINTAINERS (Write After Approval): Add "James Hogan".
1543 2014-09-09 James Hogan <james.hogan@imgtec.com>
1545 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
1547 2014-09-09 Joel Brobecker <brobecker@adacore.com>
1549 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
1551 2014-09-08 Doug Evans <xdje42@gmail.com>
1554 * guile.c: #include <signal.h>.
1555 (_initialize_guile): Block SIGCHLD while initializing Guile.
1557 Replaces the following, which is reverted.
1559 2014-07-26 Doug Evans <xdje42@gmail.com>
1562 * configure.ac: Add check for header gc/gc.h.
1563 Add check for function setenv.
1564 * configure: Regenerate.
1565 * config.in: Regenerate.
1566 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1568 2014-09-08 Doug Evans <xdje42@gmail.com>
1570 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
1571 with named constant. Fix style of pointer comparison.
1572 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
1574 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
1577 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
1578 decide whether we display the command on "show user".
1579 * cli/cli-script.c (show_user_1): Only verify cmdlines after
1580 printing command name.
1581 * cli/cli-decode.h (cli_user_command_p): Declare new function.
1582 * cli/cli-decode.c (cli_user_command_p): Create helper function
1583 to verify whether cmd_list_element is a user-defined command.
1585 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
1589 Fix goto out of TRY_CATCH.
1591 2014-09-06 Doug Evans <xdje42@gmail.com>
1592 Tom Tromey <tromey@redhat.com>
1595 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
1596 $_any_caller_matches.
1597 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
1598 * python/lib/gdb/function/caller_is.py: New file.
1600 2014-09-06 Doug Evans <xdje42@gmail.com>
1602 * infcmd.c (program_info): Fix typo.
1604 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
1607 * stap-probe.c (stap_parse_single_operand): Delete unused variable
1608 'number'. New variable 'has_digit'. Rewrite code to deal with
1609 subexpressions on SDT probes.
1611 2014-09-04 Pedro Alves <palves@redhat.com>
1613 * c-exp.y (parse_number): Skip handling base-switching prefixes if
1614 the input is only one character long.
1616 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1619 * f-valprint.c (f_val_print): Specify the correct print option to
1620 use when printing integer values.
1622 2014-09-04 Gary Benson <gbenson@redhat.com>
1624 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
1625 Remove code to cope with LWPs wrapped as PIDs.
1626 Add assertions to ensure no wrapped LWPs are passed.
1628 2014-09-04 Pedro Alves <palves@redhat.com>
1630 * value.c (value_ranges_copy_adjusted): New function, factored out
1632 (value_contents_copy_raw): ... here.
1633 (unpack_value_bits_as_long_1): Rename back to ...
1634 (unpack_bits_as_long): ... this. Remove 'original_value' and
1635 'result' parameters. Change return type to LONGEST.
1636 (unpack_value_bits_as_long): Delete.
1637 (unpack_value_field_as_long_1): Delete.
1638 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
1639 (unpack_value_bitfield): New function.
1640 (value_field_bitfield): Reimplement using unpack_value_bitfield.
1641 (value_fetch_lazy): Use unpack_value_bitfield.
1642 * value.h (unpack_value_bits_as_long): Delete declaration.
1644 2014-09-03 Sasha Smundak <asmundak@google.com>
1646 * python/py-frame.c (frapy_read_register): New function.
1648 2014-09-03 James Hogan <james.hogan@imgtec.com>
1650 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
1651 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
1653 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
1656 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
1658 (add_cmd): Set "completer_handle_brkchars" to NULL.
1659 * cli/cli-decode.h (struct cmd_list_element)
1660 <completer_handle_brkchars>: New field.
1661 * command.h (completer_ftype_void): New typedef.
1662 (set_cmd_completer_handle_brkchars): New prototype.
1663 * completer.c (set_gdb_completion_word_break_characters): New
1665 (complete_line_internal): Call "completer_handle_brkchars"
1666 callback from command.
1667 * completer.h: Include "command.h".
1668 (set_gdb_completion_word_break_characters): New prototype.
1669 * python/py-cmd.c (cmdpy_completer_helper): New function.
1670 (cmdpy_completer_handle_brkchars): New function.
1671 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
1672 (cmdpy_init): Set completer_handle_brkchars to
1673 cmdpy_completer_handle_brkchars.
1675 2014-09-03 Gary Benson <gbenson@redhat.com>
1677 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
1678 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
1679 Loop conditions changed to equivalent form.
1680 (struct x86_debug_reg_state): Updated dr_ref_count comment.
1681 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
1682 ALL_DEBUG_ADDRESS_REGISTERS.
1684 2014-09-03 Joel Brobecker <brobecker@adacore.com>
1686 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
1689 2014-09-02 Doug Evans <dje@google.com>
1691 * typeprint.c (find_global_typedef): Fix comment.
1693 2014-09-02 Gary Benson <gbenson@redhat.com>
1695 * i386-nat.h: Renamed as...
1696 * x86-nat.h: New file. All type, function and variable name
1697 prefixes changed from "i386_" to "x86_". All references updated.
1698 * i386-nat.c: Renamed as...
1699 * x86-nat.c: New file. All type, function and variable name
1700 prefixes changed from "i386_" to "x86_". All references updated.
1701 * common/i386-xstate.h: Renamed as...
1702 * common/x86-xstate.h: New file. All type, function and variable
1703 name prefixes changed from "i386_" to "x86_". All references
1705 * nat/i386-cpuid.h: Renamed as...
1706 * nat/x86-cpuid.h: New file. All type, function and variable name
1707 prefixes changed from "i386_" to "x86_". All references updated.
1708 * nat/i386-gcc-cpuid.h: Renamed as...
1709 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
1710 name prefixes changed from "i386_" to "x86_". All references
1712 * nat/i386-dregs.h: Renamed as...
1713 * nat/x86-dregs.h: New file. All type, function and variable name
1714 prefixes changed from "i386_" to "x86_". All references updated.
1715 * nat/i386-dregs.c: Renamed as...
1716 * nat/x86-dregs.c: New file. All type, function and variable name
1717 prefixes changed from "i386_" to "x86_". All references updated.
1719 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
1721 * varobj.c (_initialize_varobj): Move to the end of file.
1723 2014-08-29 Gary Benson <gbenson@redhat.com>
1725 * common/common-exceptions.h: New file.
1726 * common/common-exceptions.c: Likewise.
1727 * Makefile.in (SFILES): Add common/common-exceptions.c.
1728 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
1729 (COMMON_OBS): Add common-exceptions.o.
1730 (common-exceptions.o): New rule.
1731 * exceptions.h (common-exceptions.h): Include.
1732 (gdb_setjmp.h): Do not include.
1733 (return_reason): Moved to common-exceptions.h.
1734 (enum return_reason): Likewise.
1735 (RETURN_MASK): Likewise.
1736 (typedef return_mask): Likewise.
1737 (enum errors): Likewise.
1738 (struct gdb_exception): Likewise.
1739 (exceptions_state_mc_init): Likewise.
1740 (exceptions_state_mc_action_iter): Likewise.
1741 (exceptions_state_mc_action_iter_1): Likewise.
1742 (TRY_CATCH): Likewise.
1743 (throw_exception): Likewise.
1744 (throw_verror): Likewise.
1745 (throw_vquit): Likewise.
1746 (throw_error): Likewise.
1747 (throw_quit): Likewise.
1748 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1749 (enum catcher_action): Likewise.
1750 (struct catcher): Likewise.
1751 (current_catcher): Likewise.
1752 (catcher_list_size): Likewise.
1753 (exceptions_state_mc_init): Likewise.
1754 (catcher_pop): Likewise.
1755 (exceptions_state_mc): Likewise.
1756 (exceptions_state_mc_action_iter): Likewise.
1757 (exceptions_state_mc_action_iter_1): Likewise.
1758 (throw_exception): Likewise.
1759 (exception_messages): Likewise.
1760 (exception_messages_size): Likewise.
1761 (throw_it): Likewise.
1762 (throw_verror): Likewise.
1763 (throw_vquit): Likewise.
1764 (throw_error): Likewise.
1765 (throw_quit): Likewise.
1766 (prepare_to_throw_exception): New function.
1768 2014-08-29 Gary Benson <gbenson@redhat.com>
1770 * common/gdb_setjmp.h: New file.
1771 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1772 * configure.ac: Move sigsetjmp check...
1773 * common/common.m4: ...here.
1774 * configure: Regenerate.
1775 * cp-support.c (SIGJMP_BUF): Delete.
1776 (SIGSETJMP): Likewise.
1777 (SIGLONGJMP): Likewise.
1778 * exceptions.h (gdb_setjmp.h): Include.
1779 (setjmp.h): Do not include.
1780 (EXCEPTIONS_SIGJMP_BUF): Delete.
1781 (EXCEPTIONS_SIGSETJMP): Likewise.
1782 (EXCEPTIONS_SIGLONGJMP): Likewise.
1783 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1785 * exceptions.c: Likewise.
1787 2014-08-29 Gary Benson <gbenson@redhat.com>
1789 * cleanups.h: Moved to...
1790 * common/cleanups.h: New file.
1791 * cleanups.c: Moved to...
1792 * common/cleanups.c: New file. Include common-defs.h and
1793 cleanups.h. Do not include defs.h.
1794 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1795 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1796 (cleanups.o): New rule.
1798 2014-08-29 Gary Benson <gbenson@redhat.com>
1800 * common/errors.h (internal_warning): New declaration.
1801 (internal_vwarning): Likewise.
1802 * common/errors.c (internal_warning): New function.
1803 * utils.h (internal_warning): Don't declare.
1804 (internal_vwarning): Likewise.
1805 * utils.c (internal_warning): Removed.
1807 2014-08-29 Gary Benson <gbenson@redhat.com>
1809 * main.c (captured_main): Use warning during startup.
1810 Prefix startup warning messages with command name.
1812 2014-08-29 Gary Benson <gbenson@redhat.com>
1814 * main.c (captured_main): Handle usage errors with error.
1816 2014-08-29 Gary Benson <gbenson@redhat.com>
1818 * go32-nat.c (go32_create_inferior): Replace a fprintf/
1819 exit pair with a call to error. Wrap the message with _().
1821 2014-08-29 Gary Benson <gbenson@redhat.com>
1823 * main.c (captured_main): Replace a fprintf/exit
1824 pair with a call to error. Wrap the message with _().
1826 2014-08-29 Gary Benson <gbenson@redhat.com>
1828 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1829 pairs with calls to error. Wrap the message with _().
1831 2014-08-29 Gary Benson <gbenson@redhat.com>
1833 * utils.c (vwarning): Protect calls to target_terminal_ours
1836 2014-08-29 Gary Benson <gbenson@redhat.com>
1838 * exceptions.c (print_flush): Protect calls to
1839 target_terminal_ours and wrap_here.
1841 2014-08-29 Gary Benson <gbenson@redhat.com>
1843 * utils.h (filtered_printing_initialized): New declaration.
1844 * utils.c (abort_with_message): New function.
1845 (internal_vproblem): Use abort_with_message for first level
1846 recursive internal problems, and if gdb_stderr is not set up.
1847 Protect calls to target_terminal_ours, begin_line and query.
1849 2014-08-28 Doug Evans <dje@google.com>
1851 * symtab.c (in_prologue): Move definition to better spot.
1852 (skip_prologue_using_sal): Ditto.
1854 2014-08-28 Doug Evans <dje@google.com>
1856 * symtab.c (find_function_start_sal): Move definition to better spot.
1858 2014-08-28 Yao Qi <yao@codesourcery.com>
1860 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1861 found_stack_adjust in forward scan. Remove condition check
1862 on found_stack_adjust which is always true. Indent the code.
1864 2014-08-28 Yao Qi <yao@codesourcery.com>
1866 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1867 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1868 (dwarf_decode_lines): Remove argument
1869 want_line_info. Remove condition check on want_line_info.
1872 2014-08-27 Doug Evans <dje@google.com>
1874 * dwarf2read.c (dwarf_record_line): Fix typo.
1876 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
1878 * target.h (struct target_ops::to_terminal_save_ours): Remove
1880 (target_terminal_save_ours): Remove macro.
1881 * target-delegates.c: Regenerate.
1882 * inf-child.c (inf_child_target): Don't set the nonexistent
1883 field to_terminal_save_ours.
1884 * inferior.h (child_terminal_save_ours): Remove declaration.
1885 * terminal.h (gdb_save_tty_state): New declaration.
1886 * inflow.c (child_terminal_save_ours): Rename to ...
1887 (gdb_save_tty_state): ... this.
1888 * tui/tui.c: Include terminal.h.
1889 (tui_enable): Use gdb_save_tty_state instead of
1890 target_terminal_save_ours.
1891 (tui_disable): Likewise.
1893 2014-08-25 Doug Evans <dje@google.com>
1895 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1896 Pass NULL instead of 0 for context pointer.
1898 2014-08-25 Yao Qi <yao@codesourcery.com>
1900 * dwarf2read.c: Fix grammatical error.
1902 2014-08-24 Yao Qi <yao@codesourcery.com>
1904 * dwarf2read.c (scan_partial_symbols): Update comments.
1905 Rename argument 'need_pc' with 'set_addrmap'.
1906 (add_partial_namespace): Rename argument 'need_pc' with
1908 (add_partial_module): Likewise.
1909 (add_partial_subprogram): Likewise. Update comments.
1910 (dwarf2_name): Fix typo.
1912 2014-08-22 Doug Evans <dje@google.com>
1915 * dwarf2read.c (dwarf_record_line_p): New function.
1916 (dwarf_decode_lines_1): Ignore subsequent line number entries
1917 for the same line if any entry had a non-zero discriminator.
1919 2014-08-22 Doug Evans <dje@google.com>
1921 * buildsym.h (record_line_ftype): New typedef.
1922 (record_line): Use it.
1923 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1924 (dwarf_decode_lines_1): Call them.
1926 2014-08-22 Yao Qi <yao@codesourcery.com>
1928 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1929 (ctf_end): Remove code.
1931 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1933 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1934 (linux_make_corefile_notes): call update_thread_list, protected against
1937 2014-08-21 Pedro Alves <palves@redhat.com>
1939 * infcmd.c (attach_command): Remove comment.
1941 2014-08-21 Bin Cheng <bin.cheng@arm.com>
1943 * aarch64-linux-nat.c (dr_changed_t): Change the type from
1944 unsigned LONGEST to ULONGEST.
1946 2014-08-20 Pedro Alves <palves@redhat.com>
1948 * Makefile.in (check-read1): New rule.
1950 2014-08-20 Joel Brobecker <brobecker@adacore.com>
1952 * value.c (value_from_contents_and_address): Strip resolved_type's
1953 typedef layers before checking its TYPE_DATA_LOCATION.
1955 2014-08-20 Pedro Alves <palves@redhat.com>
1957 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1959 2014-08-20 Yao Qi <yao@codesourcery.com>
1961 * amd64-tdep.c (amd64_classify): Add a blank line after the
1962 example. Move "*/" to a new line.
1963 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1964 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1965 * dwarf2read.c (psymtab_include_file_name): Likewise.
1967 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
1968 Pedro Alves <palves@redhat.com>
1972 * ada-lang.c (coerce_unspec_val_to_type): Use
1973 value_contents_copy_raw.
1974 * ada-valprint.c (val_print_packed_array_elements): Adjust.
1975 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1976 * cp-valprint.c (cp_print_value_fields): Let the common printing
1977 code handle optimized out values.
1978 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1979 * d-valprint.c (dynamic_array_type): Use
1980 value_bits_any_optimized_out.
1981 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1982 check_any_valid fields.
1983 (check_pieced_value_bits): Delete and inline ...
1984 (check_pieced_synthetic_pointer): ... here.
1985 (check_pieced_value_validity): Delete.
1986 (check_pieced_value_invalid): Delete.
1987 (pieced_value_funcs): Remove check_validity and check_any_valid
1989 (read_pieced_value): Use mark_value_bits_optimized_out.
1990 (write_pieced_value): Switch to use
1991 mark_value_bytes_optimized_out.
1992 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1993 of assuming the whole value is optimized out.
1994 * findvar.c (read_frame_register_value): Remove special handling
1995 of optimized out registers.
1996 (value_from_register): Use mark_value_bytes_optimized_out.
1997 * frame-unwind.c (frame_unwind_got_optimized): Use
1998 mark_value_bytes_optimized_out.
1999 * jv-valprint.c (java_value_print): Adjust.
2000 (java_print_value_fields): Let the common printing code handle
2001 optimized out values.
2002 * mips-tdep.c (mips_print_register): Remove special handling of
2003 optimized out registers.
2004 * opencl-lang.c (lval_func_check_validity): Delete.
2005 (lval_func_check_any_valid): Delete.
2006 (opencl_value_funcs): Remove check_validity and check_any_valid
2008 * p-valprint.c (pascal_object_print_value_fields): Let the common
2009 printing code handle optimized out values.
2010 * stack.c (read_frame_arg): Remove special handling of optimized
2011 out values. Fetch both VAL and ENTRYVAL before comparing
2012 contents. Adjust to value_available_contents_eq rename.
2013 * valprint.c (valprint_check_validity)
2014 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2015 (val_print_array_elements): Adjust.
2016 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2017 (value_bits_any_optimized_out): New function.
2018 (value_entirely_covered_by_range_vector): New function, factored
2019 out from value_entirely_unavailable.
2020 (value_entirely_unavailable): Reimplement.
2021 (value_entirely_optimized_out): New function.
2022 (insert_into_bit_range_vector): New function, factored out from
2023 mark_value_bits_unavailable.
2024 (mark_value_bits_unavailable): Reimplement.
2025 (struct ranges_and_idx): New struct.
2026 (find_first_range_overlap_and_match): New function, factored out
2027 from value_available_contents_bits_eq.
2028 (value_available_contents_bits_eq): Rename to ...
2029 (value_contents_bits_eq): ... this. Check both unavailable
2030 contents and optimized out contents.
2031 (value_available_contents_eq): Rename to ...
2032 (value_contents_eq): ... this.
2033 (allocate_value_lazy): Remove reference to the old optimized_out
2035 (allocate_optimized_out_value): Use
2036 mark_value_bytes_optimized_out.
2037 (require_not_optimized_out): Adjust to check whether the
2038 optimized_out vec is empty.
2039 (ranges_copy_adjusted): New function, factored out from
2040 value_contents_copy_raw.
2041 (value_contents_copy_raw): Also copy the optimized out ranges.
2042 Assert the destination ranges aren't optimized out.
2043 (value_contents_copy): Update comment, remove call to
2044 require_not_optimized_out.
2045 (value_contents_equal): Adjust to check whether the optimized_out
2047 (set_value_optimized_out, value_optimized_out_const): Delete.
2048 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2050 (value_entirely_optimized_out, value_bits_valid): Delete.
2051 (value_copy): Take a VEC copy of the 'optimized_out' field.
2052 (value_primitive_field): Remove special handling of optimized out.
2053 (value_fetch_lazy): Assert that lazy values have no unavailable
2054 regions. Use value_bits_any_optimized_out. Remove some special
2055 handling for optimized out values.
2056 * value.h: Add intro comment about <optimized out> and
2058 (struct lval_funcs): Remove check_validity and check_any_valid
2060 (set_value_optimized_out, value_optimized_out_const): Remove.
2061 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2063 (value_bits_any_optimized_out): New declaration.
2064 (value_bits_valid): Delete declaration.
2065 (value_available_contents_eq): Rename to ...
2066 (value_contents_eq): ... this, and extend comments.
2068 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2070 Fix -fsanitize=address on unreadable inferior strings.
2071 * valprint.c (val_print_string): Fix access before BUFFER.
2073 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2075 * target.c (target_struct_size): Remove.
2076 (target_struct_allocsize): Remove.
2077 (DEFAULT_ALLOCSIZE): Remove.
2078 (target_ops_p): New typedef.
2079 (DEF_VEC_P (target_ops_p)): New vector type.
2080 (target_structs): Change type to VEC (target_ops_p).
2081 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2082 (find_default_run_target): Rewrite for loop following changes to
2085 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2087 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2088 Adjust code accordingly. Adjust function description comment.
2090 2014-08-19 Yao Qi <yao@codesourcery.com>
2092 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2095 2014-08-19 Alan Modra <amodra@gmail.com>
2097 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2098 * config.in: Regenerate.
2099 * configure: Regenerate.
2101 2014-08-19 Tom Tromey <tromey@redhat.com>
2102 Gary Benson <gbenson@redhat.com>
2104 * common/common-debug.h: New file.
2105 * common/common-debug.c: Likewise.
2106 * debug.c: Likewise.
2107 * Makefile.in (SFILES): Add common/common-debug.c.
2108 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2109 (COMMON_OBS): Add common-debug.o and debug.o.
2110 (common-debug.o): New rule.
2111 * common/common-defs.h: Include common-debug.h.
2112 * common/agent.c (debug_agent_printf): New function.
2113 (DEBUG_AGENT): Redefine.
2114 * nat/i386-dregs.c (debug_printf): Undefine.
2116 2014-08-19 Gary Benson <gbenson@redhat.com>
2118 * common/common-defs.h: Include print-utils.h.
2119 * utils.h: Do not include print-utils.h.
2121 2014-08-19 Tom Tromey <tromey@redhat.com>
2122 Gary Benson <gbenson@redhat.com>
2124 * common/common-types.h: New file.
2125 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2126 * common/common-defs.h: Include common-types.h.
2127 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2130 2014-08-19 Tom Tromey <tromey@redhat.com>
2131 Gary Benson <gbenson@redhat.com>
2133 * common/errors.h: New file.
2134 * common/errors.c: Likewise.
2135 * Makefile.in (SFILES): Add common/errors.c.
2136 (HFILES_NO_SRCDIR): Add common/errors.h.
2137 (COMMON_OBS): Add errors.o.
2138 (errors.o): New rule.
2139 * common/common-defs.h: Include errors.h.
2140 * utils.h (perror_with_name, error, verror, warning, vwarning):
2142 * common/common-utils.h: (malloc_failure, internal_error):
2145 2014-08-19 Gary Benson <gbenson@redhat.com>
2147 * utils.c (internal_vproblem): Always print the message.
2149 2014-08-18 Doug Evans <dje@google.com>
2151 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2153 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2155 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2156 Return 0 if TYPE is dynamic.
2157 (print_range): Add handling of dynamic ranges.
2159 2014-08-18 Keven Boell <keven.boell@intel.com>
2160 Joel Brobecker <brobecker@adacore.com>
2162 * gdbtypes.h (struct main_type): Add field "data_location".
2163 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2164 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2165 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2166 a dynamic data location.
2167 (resolve_dynamic_type): Add DW_AT_data_location handling.
2168 (copy_recursive, copy_type): Copy the data_location information
2170 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2171 * value.c (value_from_contents_and_address): Add
2172 DW_AT_data_location handling.
2174 2014-08-18 Keven Boell <keven.boell@intel.com>
2175 Joel Brobecker <brobecker@adacore.com>
2177 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2178 field "get_object_address".
2179 * dwarf2expr.c (execute_stack_op): Add handling for
2180 DW_OP_push_object_address.
2181 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2182 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2183 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2184 (dwarf_expr_get_obj_addr): New function.
2185 (dwarf_expr_ctx_funcs): Add get_object_address field.
2186 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2187 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2188 (dwarf2_evaluate_property): Add parameter "address". Use it.
2189 (needs_get_obj_addr): New function.
2190 (needs_frame_ctx_funcs): Add get_object_address field.
2191 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2192 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2193 (resolve_dynamic_array): Likewise.
2195 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2197 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2198 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2199 fixed value for records and unions for which some GNAT encodings
2202 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2204 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2205 rewrite to avoid "else if" and "else" constructs. Should be
2206 a no-op in practice.
2208 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2210 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2213 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2216 * eval.c: Update all calls to find_overload_match.
2217 * valarith.c: Likewise.
2218 (value_user_defined_cpp_op, value_user_defined_op): New
2219 argument NOSIDE. Update all callers.
2220 * valops.c (find_overload_match): New argument NOSIDE.
2221 * value.h (find_overload_match): Update signature.
2223 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2225 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2226 'items' methods instead of 'iteritems' method on dictionaries.
2228 2014-08-15 Doug Evans <dje@google.com>
2230 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2233 2014-08-15 Doug Evans <dje@google.com>
2235 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2237 2014-08-15 Doug Evans <dje@google.com>
2239 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2241 2014-08-15 Doug Evans <dje@google.com>
2243 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2246 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2248 * dcache.h: Include target.h, to avoid compile time warnings.
2250 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2252 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2253 frame_info" partial declaration.
2254 * gdbarch.h: Regenerate.
2256 2014-08-15 Yao Qi <yao@codesourcery.com>
2258 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2259 Add parameter 'decode_for_pst_p'. Callers update.
2261 2014-08-13 Yao Qi <yao@codesourcery.com>
2264 * configure.ac: Use local variable 'pos'.
2265 * configure: Regenerated.
2267 2014-08-11 Doug Evans <dje@google.com>
2269 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2270 message, it is redundant with "Reading symbols from ..." message.
2272 2014-08-10 Doug Evans <xdje42@gmail.com>
2274 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2276 2014-08-09 Yao Qi <yao@codesourcery.com>
2279 * remote.c (remote_xfer_partial): Remove dead code.
2281 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2283 * ia64-linux-tdep.c: Include "regset.h".
2284 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2285 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2286 (ia64_linux_supply_fpregset): New function.
2287 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2288 (ia64_linux_regset_from_core_section): New function.
2289 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2292 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2294 * m68klinux-tdep.c: Include "regset.h".
2295 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2296 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2297 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2298 (m68k_linux_regset_from_core_section): New function.
2299 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2302 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2304 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2305 function. Move logic to...
2306 (tilegx_linux_regmap): ... this new register map.
2307 (tilegx_linux_regset): Refer to register map, replace supply
2308 method by regcache_supply_regset, and add collect method.
2309 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2310 TILEGX_FIRST_EASY_REGNUM.
2312 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2314 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2315 that calls regcache_supply_regset and handles the EPC register
2316 separately. Move main logic to...
2317 (score7_linux_gregmap): ... this new register map.
2318 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2319 (score7_linux_gregset): Refer to register map. Add collect method.
2320 (score7_linux_regset_from_core_section): Replace
2321 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2322 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2323 (struct regset): Delete unused forward declaraction.
2324 (struct pt_regs): Delete structure definition.
2325 (elf_gregset_t): Delete typedef.
2327 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2329 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2330 (nios2_core_regset): Add collect method.
2332 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2334 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2335 platform-independent and don't write to read-only input buffer.
2336 (m32r_linux_collect_gregset): New function.
2337 (m32r_linux_gregset): Add collect method.
2339 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2341 * hppa-linux-tdep.c (greg_map): Rename to...
2342 (hppa_linux_gregmap): ... this. Also convert to
2343 regcache_map_entry format.
2344 (hppa_linux_supply_regset): Delete function.
2345 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2346 (hppa_linux_fpregmap): ... this new register map.
2347 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2348 register map, replace supply method by regcache_supply_regset, and
2349 add collect method regcache_collect_regset.
2351 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2353 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2354 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2355 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2356 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2357 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2358 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2359 (frv_linux_supply_gregset): Replace main logic by call to
2360 regcache_supply_regset, but keep clearing gr32-gr63.
2361 (frv_linux_supply_fpregset): Delete function.
2362 (frv_linux_gregset): Refer to appropriate register map and add
2363 regcache_collect_regset as the collect method.
2364 (frv_linux_fpregset): Likewise. Also exchange the supply method
2365 by regcache_supply_regset.
2367 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2369 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2370 by call to alpha_supply_int_regs.
2371 (alpha_linux_collect_gregset): New function.
2372 (alpha_linux_supply_fpregset): Replace logic by call to
2373 alpha_supply_fp_regs.
2374 (alpha_linux_collect_fpregset): New function.
2375 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2377 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2379 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2380 by call to regcache_collect_regset.
2381 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2382 instead of aarch64_linux_supply_gregset/_fpregset.
2383 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2384 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2385 header file instead.
2386 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2387 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2388 functions. Move logic to ...
2389 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2391 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2392 refer to new register maps, replace *_regset_from_core by
2393 regcache_supply_regset, and also use regcache_collect_regset.
2394 * aarch64-linux-tdep.h: Include "regset.h".
2395 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2397 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2398 macros, moved from C source file.
2399 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2400 variable declarations.
2402 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2404 * s390-linux-nat.c: Include "regset.h".
2405 (regmap_gregset): Delete macro.
2406 (s390_64_regmap_gregset): New register map for
2407 regcache_supply/_collect_regset.
2408 (s390_64_gregset): New regset.
2409 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2410 (regmap_fpregset): Delete macro.
2411 (s390_native_supply, s390_native_collect): Delete functions.
2412 (supply_gregset, fill_gregset): Replace s390-specific regmap
2413 handling by a call to regcache_supply/_collect_regset.
2414 (supply_fpregset, fill_fpregset): Call regcache_supply/
2415 _collect_regset instead of s390_native_supply/_collect.
2416 (fetch_regset, store_regset): Likewise. Also change the last
2417 parameter to a regset instead of a regmap.
2418 (s390_linux_fetch_inferior_registers)
2419 (390_linux_store_inferior_registers): Adjust last parameter in
2420 calls to fetch_regset and store_regset.
2421 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2422 (s390_gregmap): ... this. Also make static const and convert to
2423 regcache_map_entry format.
2424 (s390x_regmap_gregset): Delete.
2425 (s390_regmap_fpregset): Rename to...
2426 (s390_fpregmap): ... this. Make static const and convert to
2427 regcache_map_entry format.
2428 (s390_regmap_upper, s390_regmap_last_break)
2429 (s390x_regmap_last_break, s390_regmap_system_call)
2430 (s390_regmap_tdb): Likewise.
2431 (s390_supply_regset, s390_collect_regset): Remove functions.
2432 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2434 (s390_gregset, s390_fpregset, s390_upper_regset)
2435 (s390_last_break_regset, s390x_last_break_regset)
2436 (s390_system_call_regset, s390_tdb_regset): Make global and
2437 replace s390_supply/_collect_regset by regcache_supply/
2439 (s390x_gregset): Delete.
2440 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2441 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2442 (s390_regmap_fpregset, s390_regmap_last_break)
2443 (s390x_regmap_last_break, s390_regmap_system_call)
2444 (s390_regmap_tdb): Delete global variable declarations.
2445 (s390_gregset, s390_fpregset, s390_last_break_regset)
2446 (s390x_last_break_regset, s390_system_call_regset)
2447 (s390_tdb_regset): New global variable declarations.
2449 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2451 * regcache.c: Include "regset.h".
2452 (regcache_transfer_regset): New local function.
2453 (regcache_supply_regset, regcache_collect_regset): New functions.
2454 * regcache.h (struct regcache_map_entry): New structure.
2455 (REGCACHE_MAP_SKIP): New enum value.
2456 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2458 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2460 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2461 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2462 (ppc_linux_collect_gregset ): Likewise.
2463 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2464 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2465 (ppc_collect_vrregset): Likewise.
2466 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2469 2014-08-07 Yao Qi <yao@codesourcery.com>
2471 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2472 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2473 * remote.c (remote_read_bytes): Likewise.
2475 2014-08-07 Yao Qi <yao@codesourcery.com>
2477 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2479 2014-08-07 Yao Qi <yao@codesourcery.com>
2482 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2483 TARGET_XFER_OK instead of 0.
2485 2014-08-07 Gary Benson <gbenson@redhat.com>
2487 * common/common-defs.h: Include errno.h.
2488 * defs.h: Do not include errno.h.
2489 * ada-typeprint.c: Likewise.
2490 * c-typeprint.c: Likewise.
2491 * core-regset.c: Likewise.
2492 * corefile.c: Likewise.
2493 * corelow.c: Likewise.
2494 * event-loop.c: Likewise.
2495 * f-typeprint.c: Likewise.
2496 * gnu-nat.c: Likewise.
2497 * go32-nat.c: Likewise.
2498 * i386gnu-nat.c: Likewise.
2499 * m2-typeprint.c: Likewise.
2500 * nat/linux-btrace.c: Likewise.
2501 * p-typeprint.c: Likewise.
2502 * procfs.c: Likewise.
2503 * remote-sim.c: Likewise.
2504 * rs6000-nat.c: Likewise.
2505 * target.c: Likewise.
2506 * typeprint.c: Likewise.
2507 * ui-file.c: Likewise.
2508 * valops.c: Likewise.
2509 * valprint.c: Likewise.
2511 2014-08-07 Gary Benson <gbenson@redhat.com>
2513 * common/common-defs.h: Include string.h.
2514 * aarch64-tdep.c: Do not include string.h.
2515 * ada-exp.y: Likewise.
2516 * ada-lang.c: Likewise.
2517 * ada-lex.l: Likewise.
2518 * ada-typeprint.c: Likewise.
2519 * ada-valprint.c: Likewise.
2520 * aix-thread.c: Likewise.
2521 * alpha-linux-tdep.c: Likewise.
2522 * alpha-mdebug-tdep.c: Likewise.
2523 * alpha-nat.c: Likewise.
2524 * alpha-osf1-tdep.c: Likewise.
2525 * alpha-tdep.c: Likewise.
2526 * alphanbsd-tdep.c: Likewise.
2527 * amd64-dicos-tdep.c: Likewise.
2528 * amd64-linux-tdep.c: Likewise.
2529 * amd64-nat.c: Likewise.
2530 * amd64-sol2-tdep.c: Likewise.
2531 * amd64fbsd-tdep.c: Likewise.
2532 * amd64obsd-tdep.c: Likewise.
2533 * arch-utils.c: Likewise.
2534 * arm-linux-nat.c: Likewise.
2535 * arm-linux-tdep.c: Likewise.
2536 * arm-tdep.c: Likewise.
2537 * arm-wince-tdep.c: Likewise.
2538 * armbsd-tdep.c: Likewise.
2539 * armnbsd-nat.c: Likewise.
2540 * armnbsd-tdep.c: Likewise.
2541 * armobsd-tdep.c: Likewise.
2542 * avr-tdep.c: Likewise.
2543 * ax-gdb.c: Likewise.
2544 * ax-general.c: Likewise.
2545 * bcache.c: Likewise.
2546 * bfin-tdep.c: Likewise.
2547 * breakpoint.c: Likewise.
2548 * build-id.c: Likewise.
2549 * buildsym.c: Likewise.
2550 * c-exp.y: Likewise.
2551 * c-lang.c: Likewise.
2552 * c-typeprint.c: Likewise.
2553 * c-valprint.c: Likewise.
2554 * charset.c: Likewise.
2555 * cli-out.c: Likewise.
2556 * cli/cli-cmds.c: Likewise.
2557 * cli/cli-decode.c: Likewise.
2558 * cli/cli-dump.c: Likewise.
2559 * cli/cli-interp.c: Likewise.
2560 * cli/cli-logging.c: Likewise.
2561 * cli/cli-script.c: Likewise.
2562 * cli/cli-setshow.c: Likewise.
2563 * cli/cli-utils.c: Likewise.
2564 * coffread.c: Likewise.
2565 * common/agent.c: Likewise.
2566 * common/buffer.c: Likewise.
2567 * common/buffer.h: Likewise.
2568 * common/common-utils.c: Likewise.
2569 * common/filestuff.c: Likewise.
2570 * common/filestuff.c: Likewise.
2571 * common/format.c: Likewise.
2572 * common/print-utils.c: Likewise.
2573 * common/rsp-low.c: Likewise.
2574 * common/signals.c: Likewise.
2575 * common/vec.h: Likewise.
2576 * common/xml-utils.c: Likewise.
2577 * core-regset.c: Likewise.
2578 * corefile.c: Likewise.
2579 * corelow.c: Likewise.
2580 * cp-abi.c: Likewise.
2581 * cp-name-parser.y: Likewise.
2582 * cp-support.c: Likewise.
2583 * cp-valprint.c: Likewise.
2584 * cris-tdep.c: Likewise.
2585 * d-exp.y: Likewise.
2586 * darwin-nat.c: Likewise.
2587 * dbxread.c: Likewise.
2588 * dcache.c: Likewise.
2589 * demangle.c: Likewise.
2590 * dicos-tdep.c: Likewise.
2591 * disasm.c: Likewise.
2592 * doublest.c: Likewise.
2593 * dsrec.c: Likewise.
2594 * dummy-frame.c: Likewise.
2595 * dwarf2-frame.c: Likewise.
2596 * dwarf2loc.c: Likewise.
2597 * dwarf2read.c: Likewise.
2598 * elfread.c: Likewise.
2599 * environ.c: Likewise.
2601 * event-loop.c: Likewise.
2602 * exceptions.c: Likewise.
2604 * expprint.c: Likewise.
2605 * f-exp.y: Likewise.
2606 * f-lang.c: Likewise.
2607 * f-typeprint.c: Likewise.
2608 * f-valprint.c: Likewise.
2609 * fbsd-nat.c: Likewise.
2610 * findcmd.c: Likewise.
2611 * findvar.c: Likewise.
2612 * fork-child.c: Likewise.
2613 * frame.c: Likewise.
2614 * frv-linux-tdep.c: Likewise.
2615 * frv-tdep.c: Likewise.
2617 * gdb_bfd.c: Likewise.
2618 * gdbarch.c: Likewise.
2619 * gdbarch.sh: Likewise.
2620 * gdbtypes.c: Likewise.
2621 * gnu-nat.c: Likewise.
2622 * gnu-v2-abi.c: Likewise.
2623 * gnu-v3-abi.c: Likewise.
2624 * go-exp.y: Likewise.
2625 * go-lang.c: Likewise.
2626 * go32-nat.c: Likewise.
2627 * guile/guile.c: Likewise.
2628 * guile/scm-auto-load.c: Likewise.
2629 * hppa-hpux-tdep.c: Likewise.
2630 * hppa-linux-nat.c: Likewise.
2631 * hppanbsd-tdep.c: Likewise.
2632 * hppaobsd-tdep.c: Likewise.
2633 * i386-cygwin-tdep.c: Likewise.
2634 * i386-dicos-tdep.c: Likewise.
2635 * i386-linux-tdep.c: Likewise.
2636 * i386-nto-tdep.c: Likewise.
2637 * i386-sol2-tdep.c: Likewise.
2638 * i386-tdep.c: Likewise.
2639 * i386bsd-tdep.c: Likewise.
2640 * i386gnu-nat.c: Likewise.
2641 * i386nbsd-tdep.c: Likewise.
2642 * i386obsd-tdep.c: Likewise.
2643 * i387-tdep.c: Likewise.
2644 * ia64-libunwind-tdep.c: Likewise.
2645 * ia64-linux-nat.c: Likewise.
2646 * inf-child.c: Likewise.
2647 * inf-ptrace.c: Likewise.
2648 * inf-ttrace.c: Likewise.
2649 * infcall.c: Likewise.
2650 * infcmd.c: Likewise.
2651 * inflow.c: Likewise.
2652 * infrun.c: Likewise.
2653 * interps.c: Likewise.
2654 * iq2000-tdep.c: Likewise.
2655 * irix5-nat.c: Likewise.
2656 * jv-exp.y: Likewise.
2657 * jv-lang.c: Likewise.
2658 * jv-typeprint.c: Likewise.
2659 * jv-valprint.c: Likewise.
2660 * language.c: Likewise.
2661 * linux-fork.c: Likewise.
2662 * linux-nat.c: Likewise.
2663 * lm32-tdep.c: Likewise.
2664 * m2-exp.y: Likewise.
2665 * m2-typeprint.c: Likewise.
2666 * m32c-tdep.c: Likewise.
2667 * m32r-linux-nat.c: Likewise.
2668 * m32r-linux-tdep.c: Likewise.
2669 * m32r-rom.c: Likewise.
2670 * m32r-tdep.c: Likewise.
2671 * m68hc11-tdep.c: Likewise.
2672 * m68k-tdep.c: Likewise.
2673 * m68kbsd-tdep.c: Likewise.
2674 * m68klinux-nat.c: Likewise.
2675 * m68klinux-tdep.c: Likewise.
2676 * m88k-tdep.c: Likewise.
2677 * machoread.c: Likewise.
2678 * macrocmd.c: Likewise.
2680 * mdebugread.c: Likewise.
2681 * mem-break.c: Likewise.
2682 * memattr.c: Likewise.
2683 * memory-map.c: Likewise.
2684 * mep-tdep.c: Likewise.
2685 * mi/mi-cmd-break.c: Likewise.
2686 * mi/mi-cmd-disas.c: Likewise.
2687 * mi/mi-cmd-env.c: Likewise.
2688 * mi/mi-cmd-stack.c: Likewise.
2689 * mi/mi-cmd-var.c: Likewise.
2690 * mi/mi-cmds.c: Likewise.
2691 * mi/mi-console.c: Likewise.
2692 * mi/mi-getopt.c: Likewise.
2693 * mi/mi-interp.c: Likewise.
2694 * mi/mi-main.c: Likewise.
2695 * mi/mi-parse.c: Likewise.
2696 * microblaze-rom.c: Likewise.
2697 * microblaze-tdep.c: Likewise.
2698 * mingw-hdep.c: Likewise.
2699 * minidebug.c: Likewise.
2700 * minsyms.c: Likewise.
2701 * mips-irix-tdep.c: Likewise.
2702 * mips-linux-tdep.c: Likewise.
2703 * mips-tdep.c: Likewise.
2704 * mips64obsd-tdep.c: Likewise.
2705 * mipsnbsd-tdep.c: Likewise.
2706 * mipsread.c: Likewise.
2707 * mn10300-linux-tdep.c: Likewise.
2708 * mn10300-tdep.c: Likewise.
2709 * monitor.c: Likewise.
2710 * moxie-tdep.c: Likewise.
2711 * mt-tdep.c: Likewise.
2712 * nat/linux-btrace.c: Likewise.
2713 * nat/linux-osdata.c: Likewise.
2714 * nat/linux-procfs.c: Likewise.
2715 * nat/linux-ptrace.c: Likewise.
2716 * nat/linux-waitpid.c: Likewise.
2717 * nbsd-tdep.c: Likewise.
2718 * nios2-linux-tdep.c: Likewise.
2719 * nto-procfs.c: Likewise.
2720 * nto-tdep.c: Likewise.
2721 * objc-lang.c: Likewise.
2722 * objfiles.c: Likewise.
2723 * opencl-lang.c: Likewise.
2724 * osabi.c: Likewise.
2725 * osdata.c: Likewise.
2726 * p-exp.y: Likewise.
2727 * p-lang.c: Likewise.
2728 * p-typeprint.c: Likewise.
2729 * parse.c: Likewise.
2730 * posix-hdep.c: Likewise.
2731 * ppc-linux-nat.c: Likewise.
2732 * ppc-sysv-tdep.c: Likewise.
2733 * ppcfbsd-tdep.c: Likewise.
2734 * ppcnbsd-tdep.c: Likewise.
2735 * ppcobsd-tdep.c: Likewise.
2736 * printcmd.c: Likewise.
2737 * procfs.c: Likewise.
2738 * prologue-value.c: Likewise.
2739 * python/py-auto-load.c: Likewise.
2740 * python/py-gdb-readline.c: Likewise.
2741 * ravenscar-thread.c: Likewise.
2742 * regcache.c: Likewise.
2743 * registry.c: Likewise.
2744 * remote-fileio.c: Likewise.
2745 * remote-m32r-sdi.c: Likewise.
2746 * remote-mips.c: Likewise.
2747 * remote-notif.c: Likewise.
2748 * remote-sim.c: Likewise.
2749 * remote.c: Likewise.
2750 * reverse.c: Likewise.
2751 * rs6000-aix-tdep.c: Likewise.
2752 * ser-base.c: Likewise.
2753 * ser-go32.c: Likewise.
2754 * ser-mingw.c: Likewise.
2755 * ser-pipe.c: Likewise.
2756 * ser-tcp.c: Likewise.
2757 * ser-unix.c: Likewise.
2758 * serial.c: Likewise.
2759 * sh-tdep.c: Likewise.
2760 * sh64-tdep.c: Likewise.
2761 * shnbsd-tdep.c: Likewise.
2763 * sol-thread.c: Likewise.
2764 * solib-dsbt.c: Likewise.
2765 * solib-frv.c: Likewise.
2766 * solib-osf.c: Likewise.
2767 * solib-som.c: Likewise.
2768 * solib-spu.c: Likewise.
2769 * solib-target.c: Likewise.
2770 * solib.c: Likewise.
2771 * somread.c: Likewise.
2772 * source.c: Likewise.
2773 * sparc-nat.c: Likewise.
2774 * sparc-sol2-tdep.c: Likewise.
2775 * sparc-tdep.c: Likewise.
2776 * sparc64-tdep.c: Likewise.
2777 * sparc64fbsd-tdep.c: Likewise.
2778 * sparc64nbsd-tdep.c: Likewise.
2779 * sparcnbsd-tdep.c: Likewise.
2780 * spu-linux-nat.c: Likewise.
2781 * spu-multiarch.c: Likewise.
2782 * spu-tdep.c: Likewise.
2783 * stabsread.c: Likewise.
2784 * stack.c: Likewise.
2785 * std-regs.c: Likewise.
2786 * symfile.c: Likewise.
2787 * symmisc.c: Likewise.
2788 * symtab.c: Likewise.
2789 * target.c: Likewise.
2790 * thread.c: Likewise.
2791 * tilegx-linux-nat.c: Likewise.
2792 * tilegx-tdep.c: Likewise.
2794 * tracepoint.c: Likewise.
2795 * tui/tui-command.c: Likewise.
2796 * tui/tui-data.c: Likewise.
2797 * tui/tui-disasm.c: Likewise.
2798 * tui/tui-file.c: Likewise.
2799 * tui/tui-layout.c: Likewise.
2800 * tui/tui-out.c: Likewise.
2801 * tui/tui-regs.c: Likewise.
2802 * tui/tui-source.c: Likewise.
2803 * tui/tui-stack.c: Likewise.
2804 * tui/tui-win.c: Likewise.
2805 * tui/tui-windata.c: Likewise.
2806 * tui/tui-winsource.c: Likewise.
2807 * typeprint.c: Likewise.
2808 * ui-file.c: Likewise.
2809 * ui-out.c: Likewise.
2810 * user-regs.c: Likewise.
2811 * utils.c: Likewise.
2812 * v850-tdep.c: Likewise.
2813 * valarith.c: Likewise.
2814 * valops.c: Likewise.
2815 * valprint.c: Likewise.
2816 * value.c: Likewise.
2817 * varobj.c: Likewise.
2818 * vax-tdep.c: Likewise.
2819 * vaxnbsd-tdep.c: Likewise.
2820 * vaxobsd-tdep.c: Likewise.
2821 * windows-nat.c: Likewise.
2822 * xcoffread.c: Likewise.
2823 * xml-support.c: Likewise.
2824 * xstormy16-tdep.c: Likewise.
2825 * xtensa-linux-nat.c: Likewise.
2827 2014-08-07 Gary Benson <gbenson@redhat.com>
2829 * common/common-defs.h: Include gdb_assert.h.
2830 * aarch64-tdep.c: Do not include gdb_assert.h.
2831 * addrmap.c: Likewise.
2832 * aix-thread.c: Likewise.
2833 * alpha-linux-tdep.c: Likewise.
2834 * alpha-mdebug-tdep.c: Likewise.
2835 * alphanbsd-tdep.c: Likewise.
2836 * amd64-nat.c: Likewise.
2837 * amd64-tdep.c: Likewise.
2838 * amd64bsd-nat.c: Likewise.
2839 * amd64fbsd-nat.c: Likewise.
2840 * amd64fbsd-tdep.c: Likewise.
2841 * amd64nbsd-nat.c: Likewise.
2842 * amd64nbsd-tdep.c: Likewise.
2843 * amd64obsd-nat.c: Likewise.
2844 * amd64obsd-tdep.c: Likewise.
2845 * arch-utils.c: Likewise.
2846 * arm-tdep.c: Likewise.
2847 * armbsd-tdep.c: Likewise.
2849 * bcache.c: Likewise.
2850 * bfin-tdep.c: Likewise.
2851 * blockframe.c: Likewise.
2852 * breakpoint.c: Likewise.
2853 * bsd-kvm.c: Likewise.
2854 * bsd-uthread.c: Likewise.
2855 * buildsym.c: Likewise.
2856 * c-exp.y: Likewise.
2857 * c-lang.c: Likewise.
2858 * charset.c: Likewise.
2859 * cleanups.c: Likewise.
2860 * cli-out.c: Likewise.
2861 * cli/cli-decode.c: Likewise.
2862 * cli/cli-dump.c: Likewise.
2863 * cli/cli-logging.c: Likewise.
2864 * cli/cli-script.c: Likewise.
2865 * cli/cli-utils.c: Likewise.
2866 * coffread.c: Likewise.
2867 * common/common-utils.c: Likewise.
2868 * common/queue.h: Likewise.
2869 * common/signals.c: Likewise.
2870 * common/vec.h: Likewise.
2871 * complaints.c: Likewise.
2872 * completer.c: Likewise.
2873 * corelow.c: Likewise.
2874 * cp-abi.c: Likewise.
2875 * cp-name-parser.y: Likewise.
2876 * cp-namespace.c: Likewise.
2877 * cp-support.c: Likewise.
2878 * cris-tdep.c: Likewise.
2879 * dbxread.c: Likewise.
2880 * dictionary.c: Likewise.
2881 * doublest.c: Likewise.
2882 * dsrec.c: Likewise.
2883 * dummy-frame.c: Likewise.
2884 * dwarf2-frame-tailcall.c: Likewise.
2885 * dwarf2-frame.c: Likewise.
2886 * dwarf2expr.c: Likewise.
2887 * dwarf2loc.c: Likewise.
2888 * dwarf2read.c: Likewise.
2890 * event-loop.c: Likewise.
2891 * exceptions.c: Likewise.
2892 * expprint.c: Likewise.
2893 * f-valprint.c: Likewise.
2894 * fbsd-nat.c: Likewise.
2895 * findvar.c: Likewise.
2896 * frame-unwind.c: Likewise.
2897 * frame.c: Likewise.
2898 * frv-tdep.c: Likewise.
2899 * gcore.c: Likewise.
2900 * gdb-dlfcn.c: Likewise.
2901 * gdb_bfd.c: Likewise.
2902 * gdbarch.c: Likewise.
2903 * gdbarch.sh: Likewise.
2904 * gdbtypes.c: Likewise.
2905 * gnu-nat.c: Likewise.
2906 * gnu-v3-abi.c: Likewise.
2907 * go-lang.c: Likewise.
2908 * guile/scm-exception.c: Likewise.
2909 * guile/scm-gsmob.c: Likewise.
2910 * guile/scm-lazy-string.c: Likewise.
2911 * guile/scm-math.c: Likewise.
2912 * guile/scm-pretty-print.c: Likewise.
2913 * guile/scm-safe-call.c: Likewise.
2914 * guile/scm-utils.c: Likewise.
2915 * guile/scm-value.c: Likewise.
2916 * h8300-tdep.c: Likewise.
2917 * hppa-hpux-nat.c: Likewise.
2918 * hppa-tdep.c: Likewise.
2919 * hppanbsd-tdep.c: Likewise.
2920 * hppaobsd-tdep.c: Likewise.
2921 * i386-darwin-nat.c: Likewise.
2922 * i386-darwin-tdep.c: Likewise.
2923 * i386-nto-tdep.c: Likewise.
2924 * i386-tdep.c: Likewise.
2925 * i386bsd-nat.c: Likewise.
2926 * i386fbsd-tdep.c: Likewise.
2927 * i386gnu-nat.c: Likewise.
2928 * i386nbsd-tdep.c: Likewise.
2929 * i386obsd-tdep.c: Likewise.
2930 * i387-tdep.c: Likewise.
2931 * ia64-libunwind-tdep.c: Likewise.
2932 * ia64-tdep.c: Likewise.
2933 * inf-ptrace.c: Likewise.
2934 * inf-ttrace.c: Likewise.
2935 * infcall.c: Likewise.
2936 * infcmd.c: Likewise.
2937 * infrun.c: Likewise.
2938 * inline-frame.c: Likewise.
2939 * interps.c: Likewise.
2940 * jv-lang.c: Likewise.
2941 * jv-typeprint.c: Likewise.
2942 * linux-fork.c: Likewise.
2943 * linux-nat.c: Likewise.
2944 * linux-thread-db.c: Likewise.
2945 * m32c-tdep.c: Likewise.
2946 * m32r-linux-nat.c: Likewise.
2947 * m32r-tdep.c: Likewise.
2948 * m68k-tdep.c: Likewise.
2949 * m68kbsd-nat.c: Likewise.
2950 * m68kbsd-tdep.c: Likewise.
2951 * m88k-tdep.c: Likewise.
2952 * machoread.c: Likewise.
2953 * macroexp.c: Likewise.
2954 * macrotab.c: Likewise.
2955 * maint.c: Likewise.
2956 * mdebugread.c: Likewise.
2957 * memory-map.c: Likewise.
2958 * mep-tdep.c: Likewise.
2959 * mi/mi-common.c: Likewise.
2960 * microblaze-tdep.c: Likewise.
2961 * mingw-hdep.c: Likewise.
2962 * mips-linux-nat.c: Likewise.
2963 * mips-linux-tdep.c: Likewise.
2964 * mips-tdep.c: Likewise.
2965 * mips64obsd-tdep.c: Likewise.
2966 * mipsnbsd-tdep.c: Likewise.
2967 * mn10300-linux-tdep.c: Likewise.
2968 * mn10300-tdep.c: Likewise.
2969 * moxie-tdep.c: Likewise.
2970 * mt-tdep.c: Likewise.
2971 * nat/linux-btrace.c: Likewise.
2972 * nat/linux-osdata.c: Likewise.
2973 * nat/linux-ptrace.c: Likewise.
2974 * nat/mips-linux-watch.c: Likewise.
2975 * nios2-linux-tdep.c: Likewise.
2976 * nios2-tdep.c: Likewise.
2977 * objc-lang.c: Likewise.
2978 * objfiles.c: Likewise.
2979 * obsd-nat.c: Likewise.
2980 * opencl-lang.c: Likewise.
2981 * osabi.c: Likewise.
2982 * parse.c: Likewise.
2983 * ppc-linux-nat.c: Likewise.
2984 * ppc-sysv-tdep.c: Likewise.
2985 * ppcfbsd-nat.c: Likewise.
2986 * ppcfbsd-tdep.c: Likewise.
2987 * ppcnbsd-nat.c: Likewise.
2988 * ppcnbsd-tdep.c: Likewise.
2989 * ppcobsd-nat.c: Likewise.
2990 * ppcobsd-tdep.c: Likewise.
2991 * printcmd.c: Likewise.
2992 * procfs.c: Likewise.
2993 * prologue-value.c: Likewise.
2994 * psymtab.c: Likewise.
2995 * python/py-lazy-string.c: Likewise.
2996 * python/py-value.c: Likewise.
2997 * regcache.c: Likewise.
2998 * reggroups.c: Likewise.
2999 * registry.c: Likewise.
3000 * remote-sim.c: Likewise.
3001 * remote.c: Likewise.
3002 * rs6000-aix-tdep.c: Likewise.
3003 * rs6000-tdep.c: Likewise.
3004 * s390-linux-tdep.c: Likewise.
3005 * score-tdep.c: Likewise.
3006 * ser-base.c: Likewise.
3007 * ser-mingw.c: Likewise.
3008 * sh-tdep.c: Likewise.
3009 * sh64-tdep.c: Likewise.
3010 * solib-darwin.c: Likewise.
3011 * solib-spu.c: Likewise.
3012 * solib-svr4.c: Likewise.
3013 * source.c: Likewise.
3014 * sparc-nat.c: Likewise.
3015 * sparc-sol2-tdep.c: Likewise.
3016 * sparc-tdep.c: Likewise.
3017 * sparc64-sol2-tdep.c: Likewise.
3018 * sparc64-tdep.c: Likewise.
3019 * sparc64fbsd-tdep.c: Likewise.
3020 * sparc64nbsd-tdep.c: Likewise.
3021 * sparc64obsd-tdep.c: Likewise.
3022 * sparcnbsd-tdep.c: Likewise.
3023 * sparcobsd-tdep.c: Likewise.
3024 * spu-multiarch.c: Likewise.
3025 * spu-tdep.c: Likewise.
3026 * stabsread.c: Likewise.
3027 * stack.c: Likewise.
3028 * symfile.c: Likewise.
3029 * symtab.c: Likewise.
3030 * target-descriptions.c: Likewise.
3031 * target-memory.c: Likewise.
3032 * target.c: Likewise.
3033 * tic6x-linux-tdep.c: Likewise.
3034 * tic6x-tdep.c: Likewise.
3035 * tilegx-linux-nat.c: Likewise.
3036 * tilegx-tdep.c: Likewise.
3038 * tramp-frame.c: Likewise.
3039 * tui/tui-out.c: Likewise.
3040 * tui/tui-winsource.c: Likewise.
3041 * ui-out.c: Likewise.
3042 * user-regs.c: Likewise.
3043 * utils.c: Likewise.
3044 * v850-tdep.c: Likewise.
3045 * valops.c: Likewise.
3046 * value.c: Likewise.
3047 * varobj.c: Likewise.
3048 * vax-nat.c: Likewise.
3049 * xml-syscall.c: Likewise.
3050 * xml-tdesc.c: Likewise.
3051 * xstormy16-tdep.c: Likewise.
3052 * xtensa-linux-nat.c: Likewise.
3053 * xtensa-tdep.c: Likewise.
3055 2014-08-07 Gary Benson <gbenson@redhat.com>
3057 * common/common-defs.h: Include common-utils.h.
3058 * defs.h: Do not include common-utils.h.
3059 * common/gdb_assert.h: Likewise.
3060 * darwin-nat.h: Likewise.
3061 * nat/linux-btrace.c: Likewise.
3062 * target/waitstatus.h: Likewise.
3064 2014-08-07 Gary Benson <gbenson@redhat.com>
3066 * common/common-defs.h: Include ptid.h.
3067 * defs.h: Do not include ptid.h.
3068 * inferior.h: Likewise.
3069 * infrun.h: Likewise.
3070 * nat/linux-btrace.h: Likewise.
3071 * nat/linux-osdata.h: Likewise.
3072 * target/waitstatus.h: Likewise.
3074 2014-08-07 Gary Benson <gbenson@redhat.com>
3076 * common/common-defs.h: Include gdb_locale.h.
3077 * defs.h: Do not include gdb_locale.h.
3079 2014-08-07 Gary Benson <gbenson@redhat.com>
3081 * common/common-defs.h: Include gdb/signals.h.
3082 * defs.h: Do not include gdb/signals.h.
3084 2014-08-07 Gary Benson <gbenson@redhat.com>
3086 * common/common-defs.h: Include pathmax.h.
3087 * defs.h: Do not include pathmax.h.
3089 2014-08-07 Gary Benson <gbenson@redhat.com>
3091 * common/common-defs.h: Include libiberty.h.
3092 * defs.h: Do not include libiberty.h.
3093 * common/queue.h: Likewise.
3094 * cp-name-parser.y: Likewise.
3095 * mi/mi-cmd-catch.c: Likewise.
3096 * python/python.c: Likewise.
3098 2014-08-07 Gary Benson <gbenson@redhat.com>
3100 * common/common-defs.h: Include ansidecl.h.
3101 * defs.h: Do not include ansidecl.h.
3102 * common/buffer.h: Likewise.
3103 * common/common-utils.h: Likewise.
3105 2014-08-07 Gary Benson <gbenson@redhat.com>
3107 * common/common-defs.h: Include stddef.h.
3108 * defs.h: Do not include stddef.h.
3109 * common/common-utils.h: Likewise.
3110 * amd64fbsd-nat.c: Likewise.
3111 * bcache.c: Likewise.
3112 * charset.c: Likewise.
3113 * common/buffer.h: Likewise.
3114 * common/vec.h: Likewise.
3115 * i386bsd-nat.c: Likewise.
3116 * nat/linux-btrace.h: Likewise.
3117 * ppcfbsd-nat.c: Likewise.
3118 * ppcnbsd-tdep.h: Likewise.
3119 * ppcobsd-nat.c: Likewise.
3120 * ppcobsd-tdep.h: Likewise.
3121 * python/py-gdb-readline.c: Likewise.
3123 2014-08-07 Gary Benson <gbenson@redhat.com>
3125 * common/common-defs.h: Include stdarg.h.
3126 * defs.h: Do not include stdarg.h.
3127 * ada-lang.c: Likewise.
3128 * common/common-utils.h: Likewise.
3129 * guile/scm-string.c: Likewise.
3130 * guile/scm-utils.c: Likewise.
3131 * m32c-tdep.c: Likewise.
3133 2014-08-07 Gary Benson <gbenson@redhat.com>
3135 * common/common-defs.h: Include stdlib.h.
3136 * defs.h: Do not include stdlib.h.
3137 * addrmap.c: Likewise.
3138 * bcache.c: Likewise.
3139 * common/buffer.c: Likewise.
3140 * common/common-utils.c: Likewise.
3141 * cp-name-parser.y: Likewise.
3142 * go32-nat.c: Likewise.
3143 * mn10300-linux-tdep.c: Likewise.
3144 * nat/linux-osdata.c: Likewise.
3145 * tui/tui.c: Likewise.
3146 * windows-nat.c: Likewise.
3148 2014-08-07 Gary Benson <gbenson@redhat.com>
3150 * common/common-defs.h: Include stdio.h.
3151 * defs.h: Do not include stdio.h.
3152 * ada-lang.c: Likewise.
3153 * common/buffer.c: Likewise.
3154 * common/common-utils.c: Likewise.
3155 * cp-name-parser.y: Likewise.
3156 * gnu-nat.c: Likewise.
3157 * go32-nat.c: Likewise.
3158 * i386gnu-nat.c: Likewise.
3159 * proc-api.c: Likewise.
3160 * proc-events.c: Likewise.
3161 * proc-flags.c: Likewise.
3162 * proc-why.c: Likewise.
3163 * python/python-internal.h: Likewise.
3164 * target-memory.c: Likewise.
3165 * tui/tui-io.c: Likewise.
3166 * tui/tui.c: Likewise.
3168 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3170 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3171 (scan_dyntag_auxv): Same.
3173 2014-08-06 Yao Qi <yao@codesourcery.com>
3175 * amd64-linux-nat.c: Remove duplicated include
3177 * i386-linux-nat.c: Likewise.
3179 2014-08-06 Yao Qi <yao@codesourcery.com>
3181 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3182 operand" with "Special opcode" in comments.
3184 2014-08-05 Gary Benson <gbenson@redhat.com>
3186 * interps.c (initialize_interps): Remove prototype.
3187 (interpreter_initialized): Remove static global.
3188 (interp_add): Do not call initialize_interps.
3189 (initialize_interps): Remove function.
3191 2014-08-05 Gary Benson <gbenson@redhat.com>
3193 * utils.c (vwarning): Remove spurious va_end.
3195 2014-08-05 Alan Modra <amodra@gmail.com>
3197 * charset.c (convert_between_encodings): Cast result of obstack_base.
3198 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3199 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3200 (read_unwind_info): Use size_t for some locals.
3201 * jit.c (finalize_symtab): Likewise.
3202 * utils.c (hashtab_obstack_allocate): Likewise.
3203 * symmisc.c (print_objfile_statistics): Update format strings.
3205 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3207 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3208 (Changes in GDB 7.8): ... here.
3210 2014-08-04 Tom Tromey <tromey@redhat.com>
3212 * target.c (set_targetdebug): New function.
3213 (initialize_targets): Pass set_targetdebug when creating "set
3216 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3218 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3219 if detecting a variable-sized field that is not the last field.
3220 Fix struct type length computation.
3222 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3224 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3227 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3229 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3230 Remove "+ 8" offset in computation of CHAIN_VMA.
3232 2014-07-31 Doug Evans <dje@google.com>
3234 * inflow.c (child_terminal_inferior): Add comment.
3235 (child_terminal_ours_for_output): Add comment.
3236 (child_terminal_ours): Add comment.
3237 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3238 (linux_nat_terminal_ours): Add comment.
3240 2014-07-31 Gary Benson <gbenson@redhat.com>
3242 * common/btrace-common.h: Do not include defs.h or server.h.
3243 * nat/mips-linux-watch.h: Likewise.
3244 * gdb-dlfcn.h: Do not include defs.h.
3245 * tracefile.h: Likewise.
3247 2014-07-30 Roland McGrath <mcgrathr@google.com>
3249 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3251 2014-07-30 Tom Tromey <tromey@redhat.com>
3253 * bsd-kvm.c (bsd_kvm_open): Constify.
3254 * corelow.c (core_open): Constify.
3255 * ctf.c (ctf_open): Constify.
3256 * dbug-rom.c (dbug_open): Constify.
3257 * exec.c (exec_open): Constify.
3258 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3259 * microblaze-rom.c (picobug_open): Constify.
3260 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3262 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3263 * record-btrace.c (record_btrace_open): Constify.
3264 * record-full.c (record_full_core_open_1, record_full_open_1)
3265 (record_full_open): Constify.
3266 * remote-m32r-sdi.c (m32r_open): Constify.
3267 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3268 (rockhopper_open, lsi_open): Constify.
3269 * remote-sim.c (gdbsim_open): Constify.
3270 * remote.c (remote_open, extended_remote_open, remote_open_1):
3272 * target.h (struct target_ops) <to_open>: Make "arg" const.
3273 * tracefile-tfile.c (tfile_open): Constify.
3275 2014-07-30 Tom Tromey <tromey@redhat.com>
3277 * breakpoint.c (map_breakpoint_numbers): Update.
3278 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3279 (get_number_const): New function.
3280 (get_number): Rewrite using get_number_const.
3281 (init_number_or_range): Make "string" const.
3282 (number_is_in_list): Make "list" const.
3283 * cli/cli-utils.h (get_number_const): Declare.
3284 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3285 (init_number_or_range, number_is_in_list): Update.
3286 * printcmd.c (map_display_numbers): Update.
3287 * value.c (value_from_history_ref): Constify.
3288 * value.h (value_from_history_ref): Update.
3290 2014-07-30 Tom Tromey <tromey@redhat.com>
3292 * corefile.c (hook_type, call_extra_exec_file_hooks)
3293 (specify_exec_file_hook): Constify.
3294 * exec.c (exec_file_attach): Make "filename" const.
3295 * gdbcore.h (deprecated_exec_file_display_hook)
3296 (specify_exec_file_hook, exec_file_attach): Constify.
3297 * main.c (captured_main): Use catch_command_errors_const.
3299 2014-07-30 Tom Tromey <tromey@redhat.com>
3301 * target.c (open_target): New function.
3302 (add_target_with_completer, add_deprecated_target_alias): Use
3303 set_cmd_sfunc, set_cmd_context.
3304 (debug_to_open): Remove.
3305 (setup_target_debug): Update.
3307 2014-07-30 Yao Qi <yao@codesourcery.com>
3309 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3311 * parse.c (exp_iterate): Update comments.
3313 2014-07-30 Gary Benson <gbenson@redhat.com>
3315 * common/common-defs.h: New file.
3316 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3317 * defs.h: Include common-defs.h.
3318 Do not include config.h or build-gnulib/config.h.
3320 2014-07-30 Gary Benson <gbenson@redhat.com>
3322 * common/common-utils.h: Do not include config.h.
3323 * nat/linux-btrace.h: Likewise.
3325 2014-07-30 Gary Benson <gbenson@redhat.com>
3327 * btrace.c: Include defs.h.
3328 * common/ptid.c: Include defs.h or server.h as appropriate.
3329 * nat/mips-linux-watch.c: Likewise.
3331 2014-07-29 Tom Tromey <tromey@redhat.com>
3333 * target.c (target_is_pushed): Simplify.
3335 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3339 2014-07-29 Yao Qi <yao@codesourcery.com>
3342 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3344 2014-07-28 Doug Evans <xdje42@gmail.com>
3347 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3348 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3351 2014-07-28 Will Newton <will.newton@linaro.org>
3353 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3354 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3355 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3356 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3357 (THUMB2_EABI_SYSCALL): Likewise.
3358 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3360 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3361 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3363 2014-07-27 Doug Evans <xdje42@gmail.com>
3365 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3367 2014-07-27 Doug Evans <xdje42@gmail.com>
3369 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3371 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3372 Doug Evans <xdje42@gmail.com>
3375 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3376 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3377 * configure.ac: Try to use guild to compile an scm file, if it fails
3378 then disable guile support.
3379 * configure: Regenerate.
3380 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3382 (GUILE_COMPILED_FILES): New variable.
3383 (GUILE_FILES) Update.
3384 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3385 (stamp-guile): Compile scm files.
3386 * guile/guile.c (boot_guile_support): New function.
3387 (standard_throw_args_p): New function.
3388 (print_standard_throw_error, print_throw_error): New functions.
3389 (handle_boot_error): New function.
3390 (initialize_scheme_side): Rewrite to call boot_guile_support.
3391 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3392 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3394 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3395 Doug Evans <xdje42@gmail.com>
3398 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3399 * guile/lib/gdb/support.scm: New file.
3400 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3401 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3403 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3405 (%assert-type): Ditto, and renamed to assert-type.
3406 (%exception-print-style): Delete.
3408 2014-07-26 Doug Evans <xdje42@gmail.com>
3411 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3412 * configure: Regenerate.
3413 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3415 (PYTHON_FILES): New variable.
3416 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3417 (GUILE_FILES): New variable.
3418 (stamp-python, install-python, uninstall-python): Handle empty
3420 (stamp-guile, install-guile, uninstall-guile): Ditto.
3422 2014-07-26 Doug Evans <xdje42@gmail.com>
3425 * guile/lib/gdb.scm (pretty-printers): Export.
3426 (set-pretty-printers!): Export.
3427 * guile/lib/gdb/printing.scm (gdb module): Update.
3428 (prepend-pretty-printer!, append-pretty-printer!): Update.
3429 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3430 (pretty_printer_list_var): Delete.
3431 (pretty_printer_list): New static global.
3432 (gdbscm_pretty_printers): New function.
3433 (gdbscm_set_pretty_printers_x): New function.
3434 (ppscm_find_pretty_printer_from_gdb): Update.
3435 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3436 (gdbscm_initialize_pretty_printers): Update.
3438 2014-07-26 Doug Evans <xdje42@gmail.com>
3441 * configure.ac: Add check for header gc/gc.h.
3442 Add check for function setenv.
3443 * configure: Regenerate.
3444 * config.in: Regenerate.
3445 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3447 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3449 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3450 variation in gdbarch matching.
3452 2014-07-25 Tom Tromey <tromey@redhat.com>
3454 * exec.c (using_exec_ops): Remove.
3455 (exec_close_1): Update. Remove extraneous block, reindent.
3456 (add_target_sections): Use target_is_pushed.
3458 2014-07-25 Pedro Alves <palves@redhat.com>
3460 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3461 * monitor.c (monitor_create_inferior): Likewise.
3462 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3463 * remote-sim.c (gdbsim_create_inferior): Likewise.
3464 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3465 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3466 * windows-nat.c (do_initial_windows_stuff): Likewise.
3468 2014-07-25 Pedro Alves <palves@redhat.com>
3470 * NEWS: Mention signal passing and "signal" command changes.
3471 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3473 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3475 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3476 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3477 (jump_command): Adjust clear_proceed_status call.
3478 (signal_command): Warn if other thread that are resumed have
3479 signals that will be delivered. Adjust clear_proceed_status call.
3480 (until_next_command, finish_command)
3481 (proceed_after_attach_callback, attach_command_post_wait)
3482 (attach_command): Adjust clear_proceed_status call.
3483 * infrun.c (proceed_after_vfork_done): Likewise.
3484 (proceed_after_attach_callback): Adjust comment.
3485 (clear_proceed_status_thread): Clear stop_signal if not in pass
3487 (clear_proceed_status_callback): Delete.
3488 (clear_proceed_status): New 'step' parameter. Only clear the
3489 proceed status of threads the command being prepared is about to
3491 (proceed): If passed in an explicit signal, override stop_signal
3492 with it. Don't pass the last stop signal to the thread we're
3494 (init_wait_for_inferior): Adjust clear_proceed_status call.
3495 (switch_back_to_stepped_thread): Clear the signal if it should not
3497 * infrun.h (clear_proceed_status): New 'step' parameter.
3498 (user_visible_resume_ptid): Add comment.
3499 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3500 signal is in pass state.
3501 * remote.c (append_pending_thread_resumptions): Likewise.
3502 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3504 2014-07-25 Tom Tromey <tromey@redhat.com>
3506 * target.h (target_stopped_data_address)
3507 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3510 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3512 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3514 (avr_pointer_to_address): Likewise.
3516 2014-07-24 Tom Tromey <tromey@redhat.com>
3518 * monitor.c (compile_pattern): Update.
3519 * target.h (struct target_ops) <to_shortname, to_longname,
3522 2014-07-24 Tom Tromey <tromey@redhat.com>
3524 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3525 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3526 (add_info_alias, add_com): Make "doc" const.
3527 (print_doc_line): Make "str" const.
3528 (delete_cmd): Update.
3529 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3530 (print_doc_line): Update.
3531 * cli/cli-script.c (document_command): Update.
3532 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3533 (add_com, add_info, add_info_alias): Update.
3534 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3535 * python/py-cmd.c (cmdpy_destroyer): Update.
3537 2014-07-24 Tom Tromey <tromey@redhat.com>
3539 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
3540 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
3541 (help_cmd_list): Constify.
3542 (lookup_cmd): Update.
3543 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
3545 (help_cmd_list, apropos_cmd): Update.
3546 * cli/cli-script.c (show_user): Update.
3547 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
3548 * cli/cli-setshow.h (cmd_show_list): Update.
3549 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
3550 (cmd_show_list): Update.
3551 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3552 * python/py-cmd.c (cmdpy_destroyer): Update.
3554 2014-07-24 Tom Tromey <tromey@redhat.com>
3556 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
3557 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
3559 * command.h (deprecate_cmd): Update.
3560 * maint.c (maintenance_do_deprecate): Add casts.
3562 2014-07-24 Tom Tromey <tromey@redhat.com>
3564 * cli/cli-decode.c (help_cmd): Make parameter "const".
3565 * cli/cli-decode.h (help_cmd): Update.
3567 2014-07-24 Tom Tromey <tromey@redhat.com>
3569 * stack.c (up_silently_base, down_silently_base): Make argument
3572 2014-07-24 Tom Tromey <tromey@redhat.com>
3574 * solib.c (solib_add): Make "pattern" const.
3575 * solib.h (solib_add): Update.
3577 2014-07-24 Tom Tromey <tromey@redhat.com>
3579 * remote.c (remote_serial_open, print_packet, putpkt)
3580 (putpkt_binary): Constify.
3581 * remote.h (putpkt): Update.
3583 2014-07-24 Tom Tromey <tromey@redhat.com>
3585 * monitor.c (monitor_open): Make "args" const.
3586 * monitor.h (monitor_open): Update.
3588 2014-07-24 Tom Tromey <tromey@redhat.com>
3590 * maint.c (match_bfd_flags): Make "string" const.
3591 (print_bfd_section_info): Remove casts.
3592 (print_objfile_section_info): Make "string" const.
3594 2014-07-24 Tom Tromey <tromey@redhat.com>
3596 * inf-child.c (inf_child_open_target): Make "arg" const.
3597 * inf-child.h (inf_child_open_target): Update.
3599 2014-07-24 Tom Tromey <tromey@redhat.com>
3601 * environ.c (unset_in_environ): Make "var" const.
3602 * environ.h (unset_in_environ): Update.
3604 2014-07-24 Tom Tromey <tromey@redhat.com>
3606 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
3608 (scan_filename_with_cleanup): Likewise.
3609 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
3610 Make arguments const.
3611 (restore_command): Update.
3613 2014-07-24 Pedro Alves <palves@redhat.com>
3615 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
3617 2014-07-24 Tom Tromey <tromey@redhat.com>
3618 Gary Benson <gbenson@redhat.com>
3620 * nat/linux-ptrace.c (additional_flags): New global.
3621 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
3622 additional_flags; don't check GDBSERVER.
3623 (linux_ptrace_set_additional_flags): New function.
3624 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3626 * linux-nat.c (_initialize_linux_nat): Call
3627 linux_ptrace_set_additional_flags.
3629 2014-07-24 Tom Tromey <tromey@redhat.com>
3631 * make-target-delegates (munge_type, write_debugmethod): New
3633 (debug_names): New global.
3634 ($TARGET_DEBUG_PRINTER): New global.
3635 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
3637 Write debug methods. Generate init_debug_target.
3638 * target-debug.h: New file.
3639 * target-delegates.c: Rebuild.
3640 * target.c: Include target-debug.h.
3641 (debug_target): Hoist definition.
3642 (target_kill, target_get_section_table, target_memory_map)
3643 (target_flash_erase, target_flash_done, target_detach)
3644 (target_disconnect, target_wait, target_resume)
3645 (target_pass_signals, target_program_signals, target_follow_fork)
3646 (target_mourn_inferior, target_search_memory)
3647 (target_thread_address_space, target_close)
3648 (target_find_new_threads, target_core_of_thread)
3649 (target_verify_memory, target_insert_mask_watchpoint)
3650 (target_remove_mask_watchpoint): Remove targetdebug code.
3651 (debug_to_post_attach, debug_to_prepare_to_store)
3652 (debug_to_files_info, debug_to_insert_breakpoint)
3653 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
3654 (debug_to_region_ok_for_hw_watchpoint)
3655 (debug_to_can_accel_watchpoint_condition)
3656 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
3657 (debug_to_watchpoint_addr_within_range)
3658 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
3659 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
3660 (debug_to_terminal_init, debug_to_terminal_inferior)
3661 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
3662 (debug_to_terminal_save_ours, debug_to_terminal_info)
3663 (debug_to_load, debug_to_post_startup_inferior)
3664 (debug_to_insert_fork_catchpoint)
3665 (debug_to_remove_fork_catchpoint)
3666 (debug_to_insert_vfork_catchpoint)
3667 (debug_to_remove_vfork_catchpoint)
3668 (debug_to_insert_exec_catchpoint)
3669 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
3670 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
3671 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
3672 (setup_target_debug): Call init_debug_target.
3673 * target.h (TARGET_DEBUG_PRINTER): New macro.
3674 (struct target_ops) <to_resume, to_wait, to_pass_signals,
3675 to_program_signals>: Use TARGET_DEBUG_PRINTER.
3677 2014-07-24 Gary Benson <gbenson@redhat.com>
3679 * exceptions.h (throw_vfatal): Renamed to...
3680 (throw_vquit): New declaration.
3681 (throw_quit): Likewise.
3682 * exceptions.c (throw_vfatal): Renamed to...
3683 (throw_vquit): New function.
3684 (throw_quit): Likewise.
3685 (throw_error): Call throw_verror rather than throw_it.
3686 * utils.h (vfatal): Removed.
3688 * utils.c (vfatal): Removed.
3690 (internal_verror): Replaced call to fatal with call to throw_quit.
3691 (quit): Replaced calls to fatal with calls to throw_quit.
3693 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
3695 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
3698 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
3700 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
3701 less than zero in conditional expression.
3703 2014-07-23 Tom Tromey <tromey@redhat.com>
3705 * make-target-delegates ($ARGS_PART): Match trailing close paren.
3706 ($INTRO_PART): Don't match whitespace.
3707 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
3709 ($METHOD): Add $METHOD_TRAILER.
3711 (scan_target_h): New sub.
3712 Change main loop not to collect state.
3713 * target-delegates.c: Rebuild.
3715 2014-07-23 Gary Benson <gbenson@redhat.com>
3717 * cp-support.c (gdb_demangle): Fix build on systems without
3720 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3722 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
3723 for reference entry value target data value.
3725 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3727 * stack.c (read_frame_arg): Verify value_optimized_out before calling
3728 value_available_contents_eq.
3730 2014-07-22 Pedro Alves <palves@redhat.com>
3732 * value.c (allocate_optimized_out_value): Don't mark value as
3735 2014-07-22 Jiong Wang <jiong.wang@arm.com>
3737 * MAINTAINERS (Write After Approval): Update my email address.
3739 2014-07-20 Doug Evans <dje@google.com>
3742 * remote.c (putpkt_binary): Add text to error message.
3744 2014-07-20 Yao Qi <yao@codesourcery.com>
3746 * eval.c: Remove "Chill" from comments.
3747 * gdbtypes.h: Likewise.
3748 * symtab.h: Likewise.
3750 2014-07-20 Yao Qi <yao@codesourcery.com>
3752 * std-operator.def: Update comments to TERNOP_SLICE.
3754 2014-07-20 Yao Qi <yao@codesourcery.com>
3756 * std-operator.def: Remove BINOP_RANGE.
3757 * breakpoint.c (watchpoint_exp_is_const): Update.
3758 * expprint.c (dump_subexp_body_standard): Likewise.
3759 * eval.c (init_array_element): Remove dead code.
3760 (evaluate_subexp_standard): Likewise.
3762 2014-07-20 Yao Qi <yao@codesourcery.com>
3764 * std-operator.def: Remove BINOP_IN.
3765 * breakpoint.c (watchpoint_exp_is_const): Update.
3766 * eval.c (evaluate_subexp_standard): Likewise.
3767 * expprint.c (dump_subexp_body_standard): Likewise.
3769 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
3771 * microblaze-tdep.c (microblaze_register_names): Add
3772 the rshr and rslr register names.
3773 (microblaze_gdbarch_init): Use of tdesc_has_registers.
3774 Use of tdesc_find_feature. Use of tdesc_data_alloc.
3775 Use of tdesc_numbered_register. Use of
3776 microblaze_register_g_packet_guesses. Use of
3777 tdesc_use_registers. Use of set_gdbarch_register_type.
3778 (microblaze_register_g_packet_guesses): New.
3779 * microblaze-tdep.h (microblaze_reg_num): Add
3780 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3781 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3782 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3783 * features/microblaze-core.xml: New file.
3784 * features/microblaze-stack-protect.xml: New file.
3785 * features/microblaze-with-stack-protect.c: New file.
3786 * features/microblaze-with-stack-protect.xml: New file.
3787 * features/microblaze.xml: New file.
3788 * features/microblaze.c: New file.
3789 * features/Makefile (microblaze-with-stack-protect): Add
3790 microblaze-with-stack-protect microblaze and microblaze-expedite.
3791 * regformats/microblaze-with-stack-protect.dat: New file.
3792 * regformats/microblaze.dat: New file.
3793 * doc/gdb.texinfo (MicroBlaze Features): Added.
3795 2014-07-18 Tom Tromey <tromey@redhat.com>
3797 * exec.c (exec_ops): Now static.
3798 * exec.h (exec_ops): Don't declare.
3800 2014-07-18 Tom Tromey <tromey@redhat.com>
3802 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3803 to find_target_beneath.
3804 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3805 find_target_beneath.
3806 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3808 2014-07-18 Tom Tromey <tromey@redhat.com>
3811 * utils.c (quit): Use target_supports_terminal_ours.
3812 * target.h (target_supports_terminal_ours): Declare.
3813 * target.c (target_supports_delete_record): Don't check
3814 to_delete_record against NULL.
3815 (target_supports_terminal_ours): New function.
3817 2014-07-18 Tom Tromey <tromey@redhat.com>
3820 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3821 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3822 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3823 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3824 * windows-nat.c (windows_xfer_partial): Always delegate.
3825 * record-btrace.c (record_btrace_xfer_partial): Simplify
3827 (record_btrace_fetch_registers, record_btrace_store_registers)
3828 (record_btrace_prepare_to_store, record_btrace_resume)
3829 (record_btrace_wait, record_btrace_find_new_threads)
3830 (record_btrace_thread_alive): Likewise.
3831 * procfs.c (procfs_xfer_partial): Always delegate.
3832 * corelow.c (core_xfer_partial): Always delegate.
3833 * sol-thread.c (sol_find_new_threads): Simplify delegation.
3835 2014-07-18 Tom Tromey <tromey@redhat.com>
3837 * exec.c (exec_make_note_section): Move earlier.
3839 2014-07-17 Doug Evans <dje@google.com>
3842 * maint.c (count_symtabs_and_blocks): Handle NULL
3843 current_program_space.
3844 (report_command_stats): Check global enabled flag in addition to
3845 recorded enabled flag.
3846 (make_command_stats_cleanup): Handle msg_type == 0, startup.
3848 2014-07-16 Pedro Alves <palves@redhat.com>
3850 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3852 2014-07-16 Tom Tromey <tromey@redhat.com>
3854 * target.h (struct target_ops) <to_delete_record>: Reformat
3857 2014-07-16 Tom Tromey <tromey@redhat.com>
3859 * target-delegates.c: Rebuild.
3861 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
3863 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3864 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3865 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3866 (avr_pointer_to_address): Likewise.
3867 (avr_address_class_type_flags): New function.
3868 (avr_address_class_type_flags_to_name): Likewise.
3869 (avr_address_class_name_to_type_flags): Likewise.
3870 (avr_gdbarch_init): Set address_class_type_flags,
3871 address_class_type_flags_to_name and
3872 address_class_name_to_type_flags.
3874 2014-07-15 Pedro Alves <palves@redhat.com>
3876 * linux-nat.c (kill_callback): Save errno and work with saved
3879 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
3881 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3883 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3885 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3886 breakpoint support correctly.
3888 2014-07-14 Pedro Alves <palves@redhat.com>
3890 * utils.c (prompt_for_continue): Call target_terminal_ours.
3892 2014-07-14 Pedro Alves <palves@redhat.com>
3894 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3895 catch_errors. Don't re-enable stdin or notify observers where,
3897 (fetch_inferior_event_wrapper): Delete.
3899 2014-07-14 Pedro Alves <palves@redhat.com>
3902 * top.c: Include "inf-loop.h".
3903 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3905 (gdb_readline_wrapper_cleanup): Make the target async again, if it
3907 (gdb_readline_wrapper): Store whether the target is async, and
3910 2014-07-14 Pedro Alves <palves@redhat.com>
3913 * top.c (gdb_readline_wrapper_line): Tweak comment.
3914 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3915 the input handler callback.
3917 2014-07-14 Pedro Alves <palves@redhat.com>
3920 * main.c: Include event-top.h.
3921 (handle_command_errors): New function.
3922 (catch_command_errors, catch_command_errors_const): Use it.
3924 2014-07-14 Pedro Alves <palves@redhat.com>
3926 * exceptions.c (catch_command_errors, catch_command_errors_const):
3928 * exceptions.h (catch_command_errors_ftype)
3929 (catch_command_errors_const_ftype): Moved to main.c.
3930 (catch_command_errors, catch_command_errors_const): Delete
3932 * main.c (catch_command_errors_ftype)
3933 (catch_command_errors_const_ftype): Moved here from exceptions.h.
3934 (catch_command_errors, catch_command_errors_const)): Moved here
3935 from exceptions.c and make static.
3937 2014-07-14 Pedro Alves <palves@redhat.com>
3939 * exceptions.c (print_any_exception): Delete.
3940 (catch_exceptions_with_msg): Use exception_print instead of
3941 print_any_exception.
3942 (catch_errors): Use exception_fprintf instead of
3943 print_any_exception.
3944 (catch_command_errors, catch_command_errors_const): Use
3945 exception_print instead of print_any_exception.
3947 2014-07-14 Pedro Alves <palves@redhat.com>
3949 * infcall.c (run_inferior_call): Set 'sync_execution' while
3950 running the inferior call.
3952 2014-07-14 Pedro Alves <palves@redhat.com>
3954 * value.c (value_contents_equal): Delete function.
3955 * value.h (value_contents_equal): Delete declaration.
3957 2014-07-14 Tom Tromey <tromey@redhat.com>
3960 * gdbtypes.c (is_dynamic_type_internal): New function, from
3962 (is_dynamic_type): Rewrite.
3963 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3964 (resolve_dynamic_struct): Likewise.
3965 (resolve_dynamic_type_internal): New function, from
3966 resolve_dynamic_type.
3967 (resolve_dynamic_type): Rewrite.
3969 2014-07-14 Tom Tromey <tromey@redhat.com>
3971 * target.c (target_require_runnable): Also check record_stratum.
3974 2014-07-11 Yao Qi <yao@codesourcery.com>
3976 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3977 thumb_instruction_restores_sp return true.
3979 2014-07-11 Yao Qi <yao@codesourcery.com>
3981 * arm-tdep.c (thumb_instruction_restores_sp): New function.
3982 (thumb_in_function_epilogue_p): Call
3983 thumb_instruction_restores_sp.
3985 2014-07-11 Yao Qi <yao@codesourcery.com>
3987 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3989 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3991 2014-07-11 Gary Benson <gbenson@redhat.com>
3993 * amd64-linux-nat.c (gdbcore.h): Remove include.
3994 (regset.h): Likewise.
3995 (nat/linux-btrace.h): Likewise.
3996 (btrace.h): Likewise.
3997 (gdb_assert.h): Likewise.
3998 (string.h): Likewise.
3999 (sys/uio.h): Likewise.
4000 (sys/debugreg.h): Likewise.
4001 (sys/syscall.h): Likewise.
4002 (sys/procfs.h): Likewise.
4003 (sys/user.h): Likewise.
4004 (asm/ptrace.h): Likewise.
4005 (i386-nat.h): Likewise.
4006 * i386-linux-nat.c (i386-nat.h): Likewise.
4007 (regset.h): Likewise.
4008 (target.h): Likewise.
4009 (linux-nat.h): Likewise.
4010 (nat/linux-btrace.h): Likewise.
4011 (btrace.h): Likewise.
4012 (gdb_assert.h): Likewise.
4013 (string.h): Likewise.
4014 (sys/uio.h): Likewise.
4015 (sys/user.h): Likewise.
4016 (sys/procfs.h): Likewise.
4017 (sys/reg.h): Likewise.
4018 (sys/debugreg.h): Likewise.
4019 (ORIG_EAX): Remove definition.
4021 2014-07-11 Gary Benson <gbenson@redhat.com>
4023 * i386-linux-nat.h: New file.
4024 * x86-linux-nat.h: Likewise.
4025 * x86-linux-nat.c: Likewise.
4026 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4027 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4028 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4029 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4030 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4031 (PTRACE_SETREGSET): Likewise.
4032 (arch_lwp_info): Now in x86-linux-nat.c.
4033 (have_ptrace_getregset): Now in x86-linux-nat.h.
4034 (x86_linux_dr_get): Now in x86-linux-nat.c.
4035 (x86_linux_dr_set): Likewise.
4036 (x86_linux_dr_get_addr): Likewise.
4037 (x86_linux_dr_get_control): Likewise.
4038 (x86_linux_dr_get_status): Likewise.
4039 (update_debug_registers_callback): Likewise.
4040 (x86_linux_dr_set_control): Likewise.
4041 (x86_linux_dr_set_addr): Likewise.
4042 (x86_linux_prepare_to_resume): Likewise.
4043 (x86_linux_new_thread): Likewise.
4044 (x86_linux_new_fork): Likewise.
4045 (x86_linux_get_thread_area): Likewise.
4046 (super_post_startup_inferior): Likewise.
4047 (x86_linux_child_post_startup_inferior): Likewise.
4048 (AMD64_LINUX_USER64_CS): Likewise.
4049 (AMD64_LINUX_X32_DS): Likewise.
4050 (x86_linux_read_description): Likewise.
4051 (x86_linux_enable_btrace): Likewise.
4052 (x86_linux_disable_btrace): Likewise.
4053 (x86_linux_teardown_btrace): Likewise.
4054 (x86_linux_read_btrace): Likewise.
4055 (x86_linux_create_target): Likewise.
4056 (x86_linux_add_target): Likewise.
4057 * i386-linux-nat.c (x86-linux-nat.h): New include.
4058 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4059 (PTRACE_SETREGSET): Likewise.
4060 (arch_lwp_info): Now in x86-linux-nat.c.
4061 (have_ptrace_getregset): Now in x86-linux-nat.h.
4062 (x86_linux_dr_get): Now in x86-linux-nat.c.
4063 (x86_linux_dr_set): Likewise.
4064 (x86_linux_dr_get_addr): Likewise.
4065 (x86_linux_dr_get_control): Likewise.
4066 (x86_linux_dr_get_status): Likewise.
4067 (update_debug_registers_callback): Likewise.
4068 (x86_linux_dr_set_control): Likewise.
4069 (x86_linux_dr_set_addr): Likewise.
4070 (x86_linux_prepare_to_resume): Likewise.
4071 (x86_linux_new_thread): Likewise.
4072 (x86_linux_new_fork): Likewise.
4073 (x86_linux_get_thread_area): Likewise.
4074 (super_post_startup_inferior): Likewise.
4075 (x86_linux_child_post_startup_inferior): Likewise.
4076 (AMD64_LINUX_USER64_CS): Likewise.
4077 (AMD64_LINUX_X32_DS): Likewise.
4078 (x86_linux_read_description): Likewise.
4079 (x86_linux_enable_btrace): Likewise.
4080 (x86_linux_disable_btrace): Likewise.
4081 (x86_linux_teardown_btrace): Likewise.
4082 (x86_linux_read_btrace): Likewise.
4083 (x86_linux_create_target): Likewise.
4084 (x86_linux_add_target): Likewise.
4086 2014-07-11 Gary Benson <gbenson@redhat.com>
4088 * amd64-linux-nat.c: Comment and whitespace changes.
4089 * i386-linux-nat.c: Comment and whitespace changes.
4091 2014-07-11 Gary Benson <gbenson@redhat.com>
4093 * amd64-linux-nat.c (x86_linux_create_target): New function.
4094 (x86_linux_add_target): Likewise.
4095 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4096 * i386-linux-nat.c (x86_linux_create_target): New function.
4097 (x86_linux_add_target): Likewise.
4098 (_initialize_i386_linux_nat): Delegate to the above new functions.
4100 2014-07-11 Gary Benson <gbenson@redhat.com>
4102 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4103 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4104 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4105 (ps_get_thread_area): Delegate to the above.
4107 2014-07-11 Gary Benson <gbenson@redhat.com>
4109 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4110 x86_linux_read_description. All uses updated. amd64-specific
4111 code conditionalized. Conditionalized i386-specific code added.
4112 Redundant cast removed.
4113 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4114 x86_linux_read_description. All uses updated. i386-specific
4115 code conditionalized. Conditionalized amd64-specific code added.
4116 One sizeof replaced with the actual type it is describing.
4118 2014-07-11 Gary Benson <gbenson@redhat.com>
4120 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4121 x86_linux_dr_get. All uses updated.
4122 (amd64_linux_dr_set): Renamed to
4123 x86_linux_dr_set. All uses updated.
4124 (amd64_linux_dr_get_addr): Renamed to
4125 x86_linux_dr_get_addr. All uses updated.
4126 (amd64_linux_dr_get_control): Renamed to
4127 x86_linux_dr_get_control. All uses updated.
4128 (amd64_linux_dr_get_status): Renamed to
4129 x86_linux_dr_get_status. All uses updated.
4130 (amd64_linux_dr_set_control): Renamed to
4131 x86_linux_dr_set_control. All uses updated.
4132 (amd64_linux_dr_set_addr): Renamed to
4133 x86_linux_dr_set_addr. All uses updated.
4134 (amd64_linux_prepare_to_resume): Renamed to
4135 x86_linux_prepare_to_resume. All uses updated.
4136 (amd64_linux_new_thread): Renamed to
4137 x86_linux_new_thread. All uses updated.
4138 (amd64_linux_new_fork): Renamed to
4139 x86_linux_new_fork. All uses updated.
4140 (amd64_linux_child_post_startup_inferior): Renamed to
4141 x86_linux_child_post_startup_inferior. All uses updated.
4142 (amd64_linux_enable_btrace): Renamed to
4143 x86_linux_enable_btrace. All uses updated.
4144 (amd64_linux_disable_btrace): Renamed to
4145 x86_linux_disable_btrace. All uses updated.
4146 (amd64_linux_teardown_btrace): Renamed to
4147 x86_linux_teardown_btrace. All uses updated.
4148 (amd64_linux_read_btrace): Renamed to
4149 x86_linux_read_btrace. All uses updated.
4150 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4151 x86_linux_dr_get. All uses updated.
4152 (i386_linux_dr_set): Renamed to
4153 x86_linux_dr_set. All uses updated.
4154 (i386_linux_dr_get_addr): Renamed to
4155 x86_linux_dr_get_addr. All uses updated.
4156 (i386_linux_dr_get_control): Renamed to
4157 x86_linux_dr_get_control. All uses updated.
4158 (i386_linux_dr_get_status): Renamed to
4159 x86_linux_dr_get_status. All uses updated.
4160 (i386_linux_dr_set_control): Renamed to
4161 x86_linux_dr_set_control. All uses updated.
4162 (i386_linux_dr_set_addr): Renamed to
4163 x86_linux_dr_set_addr. All uses updated.
4164 (i386_linux_prepare_to_resume): Renamed to
4165 x86_linux_prepare_to_resume. All uses updated.
4166 (i386_linux_new_thread): Renamed to
4167 x86_linux_new_thread. All uses updated.
4168 (i386_linux_new_fork): Renamed to
4169 x86_linux_new_fork. All uses updated.
4170 (i386_linux_child_post_startup_inferior): Renamed to
4171 x86_linux_child_post_startup_inferior. All uses updated.
4172 (i386_linux_enable_btrace): Renamed to
4173 x86_linux_enable_btrace. All uses updated.
4174 (i386_linux_disable_btrace): Renamed to
4175 x86_linux_disable_btrace. All uses updated.
4176 (i386_linux_teardown_btrace): Renamed to
4177 x86_linux_teardown_btrace. All uses updated.
4178 (i386_linux_read_btrace): Renamed to
4179 x86_linux_read_btrace. All uses updated.
4181 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4183 * remote.c (extended_remote_post_attach): New function.
4184 (init_extended_remote_ops): Install it as to_post_attach method.
4186 2014-07-09 Pedro Alves <palves@redhat.com>
4188 * infcmd.c (attach_command_post_wait): Don't call
4189 target_terminal_inferior here.
4190 (attach_command): Call it here instead.
4192 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4194 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4196 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4197 from varobj.c, with additional checks.
4198 (c_varobj_ops): Fill in is_path_expr_parent field.
4199 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4200 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4202 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4204 (varobj_default_is_path_expr_parent): New function.
4205 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4206 (varobj_default_is_path_expr_parent): Declare new function.
4208 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4210 * infcmd.c (finish_backward): Turn internal error into normal error.
4212 2014-07-07 Pedro Alves <palves@redhat.com>
4215 * remote.c (async_handle_remote_sigint)
4216 (async_handle_remote_sigint_twice): Call
4217 gdb_call_async_signal_handler instead of
4218 mark_async_signal_handler.
4220 2014-07-07 Tom Tromey <tromey@redhat.com>
4222 * target-delegates.c: Rebuild.
4223 * target.c (target_info_record): Remove.
4224 * record.c (info_record_command): Unconditionally call
4226 * target.h (struct target_ops) <to_info_record>: Use
4227 TARGET_DEFAULT_IGNORE.
4228 (target_info_record): Remove.
4230 2014-07-07 Tom Tromey <tromey@redhat.com>
4232 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4233 TARGET_DEFAULT_NORETURN.
4234 * target.c (generic_tls_error): New function.
4235 (target_translate_tls_address): Don't search target stack.
4236 * target-delegates.c: Rebuild.
4237 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4239 * linux-thread-db.c (thread_db_get_thread_local_address):
4240 Unconditionally call beneath target.
4242 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4244 * cli/cli-logging.c (pop_output_files): Assign targerr to
4247 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4249 * MAINTAINERS (Write After Approval): Update my email address.
4251 2014-07-02 Gary Benson <gbenson@redhat.com>
4253 * proc-service.c (ps_xfer_memory): Update comment.
4254 (ps_pstop): Remove unused function.
4255 (ps_pcontinue): Likewise.
4256 (ps_lstop): Likewise.
4257 (ps_lcontinue): Likewise.
4258 (ps_lgetxregsize): Likewise.
4259 (ps_lgetxregs): Likewise.
4260 (ps_lsetxregs): Likewise.
4261 (ps_plog): Likewise.
4262 (ps_ptread): Likewise.
4263 (ps_ptwrite): Likewise.
4265 2014-07-01 Mark Wielaard <mjw@redhat.com>
4267 * dwarf2read.c (add_array_cv_type): New function.
4268 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4269 (read_tag_volatile_type): Likewise.
4271 2014-07-01 Tom Tromey <tromey@redhat.com>
4273 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4274 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4275 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4276 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4277 * command.h (cmd_cfunc_ftype): Move earlier.
4278 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4279 (add_com, add_info): Use cmd_cfunc_ftype.
4281 2014-06-30 Tom Tromey <tromey@redhat.com>
4283 * symtab.c (operator_chars): Make parameters and return type
4285 (file_matches): Make "files" const.
4286 (struct search_symbols_data) <files>: Now const.
4287 (search_symbols): Make "regexp" and "files" parameters const.
4289 (symtab_symbol_info): Remove cast.
4290 (rbreak_command): Update.
4291 * symtab.h (search_symbols): Update.
4293 2014-06-27 Yao Qi <yao@codesourcery.com>
4295 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4296 Change parameter type to 'struct thread_info *'. Caller
4298 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4300 * dummy-frame.c (struct dummy_frame_id): New.
4301 (dummy_frame_id_eq): New function.
4302 (struct dummy_frame) <id>: Change its type to 'struct
4304 (dummy_frame_push): Add parameter ptid and save it in
4306 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4308 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4310 (lookup_dummy_frame): Change parameter type to 'struct
4311 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4312 instead of frame_id_eq.
4313 (dummy_frame_pop): Add parameter ptid. Callers updated.
4314 Update comments. Compose dummy_frame_id and pass it to
4316 (dummy_frame_discard): Add parameter ptid.
4317 (dummy_frame_sniffer): Compose dummy_frame_id and call
4318 dummy_frame_id_eq instead of frame_id_eq.
4319 (fprint_dummy_frames): Print ptid.
4320 * dummy-frame.h: Remove comments.
4321 (dummy_frame_push): Add ptid in declaration.
4322 (dummy_frame_pop, dummy_frame_discard): Likewise.
4324 2014-06-26 Tom Tromey <tromey@redhat.com>
4326 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4327 * command.h (error_no_arg): Update.
4329 2014-06-26 Tom Tromey <tromey@redhat.com>
4331 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4332 (do_show_command): Make "arg" const.
4333 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4335 2014-06-26 Tom Tromey <tromey@redhat.com>
4337 * record-full.c (record_full_get_bookmark): Make "args" const.
4338 (record_full_goto_bookmark): Make "raw_bookmark" const.
4339 * record.c (record_goto): New function.
4340 (cmd_record_goto): Use it. Now static.
4341 * record.h (record_goto): Declare.
4342 (cmd_record_goto): Remove declaration.
4343 * target-delegates.c: Rebuild.
4344 * target.h (struct target_ops) <to_get_bookmark,
4345 to_goto_bookmark>: Make parameter const.
4347 2014-06-26 Tom Tromey <tromey@redhat.com>
4349 * defs.h (generic_load): Update.
4350 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4351 * monitor.c (monitor_load): Make "args" const.
4352 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4353 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4355 (mips_load): Make "file" const.
4356 * remote-sim.c (gdbsim_load): Make "args" const.
4357 * remote.c (remote_load): Make "name" const.
4358 * symfile.c (generic_load): Make "args" const.
4359 * target-delegates.c: Rebuild.
4360 * target.c (target_load): Make "arg" const.
4361 (debug_to_load): Make "args" const.
4362 * target.h (struct target_ops) <to_load>: Make parameter const.
4363 (target_load): Update.
4365 2014-06-26 Tom Tromey <tromey@redhat.com>
4368 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4369 (dwarf2_physname, read_partial_die)
4370 (guess_partial_die_structure_name, fixup_partial_die)
4371 (guess_full_die_structure_name, anonymous_struct_prefix)
4372 (dwarf2_name): Use per-BFD obstack.
4374 2014-06-26 Yao Qi <yao@codesourcery.com>
4376 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4377 dummyframe and this_id into inner block below.
4379 2014-06-26 Yao Qi <yao@codesourcery.com>
4381 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4382 with "signal_pass[0]" in the initialization of signal_pass.
4384 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4386 * record-btrace.c (record_btrace_generating_corefile)
4387 (record_btrace_prepare_to_generate_core)
4388 (record_btrace_done_generating_core): New.
4389 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4390 (record_btrace_store_registers, record_btrace_prepare_to_store):
4391 Forward request when generating a core file.
4392 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4393 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4394 to_done_generating_core.
4396 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4398 * target.h (target_ops) <to_prepare_to_generate_core>
4399 <to_done_generating_core>: New.
4400 (target_prepare_to_generate_core, target_done_generating_core): New.
4401 * target.c (target_prepare_to_generate_core)
4402 (target_done_generating_core): New.
4403 * target-delegates.c: Regenerate.
4404 * gcore.c: (write_gcore_file): Rename to ...
4405 (write_gcore_file_1): ...this.
4406 (write_gcore_file): Call target_prepare_to_generate_core
4407 and target_done_generating_core.
4409 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4411 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4412 * gcore.c (write_gcore_file): Free memory returned from
4413 make_corefile_notes.
4414 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4415 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4417 2014-06-24 Yao Qi <yao@codesourcery.com>
4419 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4420 (arm_linux_init_abi): Set skip_trampoline_code with
4421 gdbarch_skip_trampoline_code instead of
4422 find_solib_trampoline_target.
4424 2014-06-24 Yao Qi <yao@codesourcery.com>
4426 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4427 arm_skip_bx_reg returns non-zero.
4429 2014-06-24 Yao Qi <yao@codesourcery.com>
4431 * arm-tdep.c (arm_skip_bx_reg): New function.
4432 (arm_skip_stub): Call arm_skip_bx_reg.
4434 2014-06-23 Don Breazeal <donb@codesourcery.com>
4436 * MAINTAINERS: Add myself as write-after-approval maintainer.
4438 2014-06-23 Pedro Alves <palves@redhat.com>
4440 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4441 DR_CONTROL before setting DR0..DR3.
4442 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4443 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4444 bits of DR_CONTROL related to the debug register slot being
4445 disabled. If all slots are vacant, clear local slowdown as well,
4446 and assert DR_CONTROL is 0.
4448 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4450 * python/lib/gdb/command/xmethods.py
4451 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4452 current progspace only if the string "progspace" matches LOCUS_RE.
4454 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4456 Fix --with-system-readline with readline-6.3 patch 5.
4457 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4458 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4461 2014-06-20 Tom Tromey <tromey@redhat.com>
4463 * dwarf2read.c (dw2_get_real_path): Use correct type in
4465 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4467 2014-06-20 Gary Benson <gbenson@redhat.com>
4469 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4470 * common/glibc_thread_db.h: Likewise.
4471 * common/i386-cpuid.h: Likewise.
4472 * common/i386-gcc-cpuid.h: Likewise.
4473 * common/linux-btrace.h: Likewise.
4474 * common/linux-osdata.h: Likewise.
4475 * common/linux-procfs.h: Likewise.
4476 * common/linux-ptrace.h: Likewise.
4477 * common/mips-linux-watch.h: Likewise.
4478 * common/linux-btrace.c: Moved to nat.
4479 * common/linux-osdata.c: Likewise.
4480 * common/linux-procfs.c: Likewise.
4481 * common/linux-ptrace.c: Likewise.
4482 * common/mips-linux-watch.c: Likewise.
4483 * nat/gdb_thread_db.h: Moved from common.
4484 * nat/glibc_thread_db.h: Likewise.
4485 * nat/i386-cpuid.h: Likewise.
4486 * nat/i386-gcc-cpuid.h: Likewise.
4487 * nat/linux-btrace.c: Likewise.
4488 * nat/linux-btrace.h: Likewise.
4489 * nat/linux-osdata.c: Likewise.
4490 * nat/linux-osdata.h: Likewise.
4491 * nat/linux-procfs.c: Likewise.
4492 * nat/linux-procfs.h: Likewise.
4493 * nat/linux-ptrace.c: Likewise.
4494 * nat/linux-ptrace.h: Likewise.
4495 * nat/mips-linux-watch.c: Likewise.
4496 * nat/mips-linux-watch.h: Likewise.
4497 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4498 (object file files): Reordered.
4499 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4500 of glibc_thread_db.h.
4502 2014-06-20 Gary Benson <gbenson@redhat.com>
4504 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4505 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4506 (i386_dr_low): Likewise.
4507 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4508 (i386_dr_low_set_addr): Likewise.
4509 (i386_dr_low_get_addr): Likewise.
4510 (i386_dr_low_can_set_control): Likewise.
4511 (i386_dr_low_set_control): Likewise.
4512 (i386_dr_low_get_control): Likewise.
4513 (i386_dr_low_get_status): Likewise.
4514 (i386_get_debug_register_length): Likewise.
4515 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4516 (i386_dr_low): Likewise.
4517 * nat/i386-dregs.c (i386-low.h): Remove include.
4518 (i386-nat.h): Likewise.
4519 (nat/i386-dregs.h): New include.
4520 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4521 (i386_dr_low_set_addr): Likewise.
4522 (i386_dr_low_get_addr): Likewise.
4523 (i386_dr_low_can_set_control): Likewise.
4524 (i386_dr_low_set_control): Likewise.
4525 (i386_dr_low_get_control): Likewise.
4526 (i386_dr_low_get_status): Likewise.
4527 (i386_get_debug_register_length): Likewise.
4528 (debug_hw_points): Likewise.
4530 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4532 * Makefile.in (SFILES): Add d-exp.y.
4533 (YYFILES): Add d-exp.c.
4534 (YYOBJ): Add d-exp.o.
4535 (local-maintainer-clean): Delete d-exp.c.
4536 * d-exp.y: New file.
4537 * d-lang.h (d_parse): New declaration.
4538 (d_error): New declaration.
4539 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
4540 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
4541 PREC_ORDER operators.
4542 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
4544 2014-06-19 Yao Qi <yao@codesourcery.com>
4546 * gdbthread.h (any_running): Remove the declaration.
4547 * thread.c (any_running): Remove.
4549 2014-06-19 Yao Qi <yao@codesourcery.com>
4551 * gdbthread.h (struct thread_info) <state>: Change its type to
4552 'enum thread_state'. Update comments.
4554 2014-06-19 Pedro Alves <palves@redhat.com>
4556 * gdbthread.h (ALL_THREADS): Delete.
4557 (ALL_NON_EXITED_THREADS): New macro.
4558 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
4559 instead of ALL_THREADS.
4560 * infrun.c (find_thread_needs_step_over)
4561 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
4562 instead of ALL_THREADS.
4563 * record-btrace.c (record_btrace_open)
4564 (record_btrace_stop_recording, record_btrace_close)
4565 (record_btrace_is_replaying, record_btrace_resume)
4566 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
4567 * remote.c (append_pending_thread_resumptions): Likewise.
4568 * thread.c (thread_apply_all_command): Likewise.
4570 2014-06-19 Gary Benson <gbenson@redhat.com>
4572 * i386-nat.c (i386_stopped_by_watchpoint):
4573 Use i386_dr_stopped_by_watchpoint.
4574 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
4575 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
4577 2014-06-19 Gary Benson <gbenson@redhat.com>
4579 * nat/i386-dregs.c: New file.
4580 * Makefile.in (i386-dregs.o): New rule.
4581 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
4582 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
4583 * config/i386/darwin.mh (NATDEPFILES): Likewise.
4584 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4585 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
4586 * config/i386/go32.mh (NATDEPFILES): Likewise.
4587 * config/i386/linux.mh (NATDEPFILES): Likewise.
4588 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4589 * config/i386/mingw.mh (NATDEPFILES): Likewise.
4590 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
4591 * i386-nat.h (debug_hw_points): New declaration.
4592 * i386-nat.c (breakpoint.h): Remove include.
4593 (command.h): Likewise.
4594 (target.h): Likewise.
4595 (gdb_assert.h): Likewise.
4596 (debug_hw_points): Made nonstatic.
4597 (debug_printf): Now in i386-dregs.c.
4598 (TARGET_HAS_DR_LEN_8): Likewise.
4599 (DR_CONTROL_SHIFT): Likewise.
4600 (DR_CONTROL_SIZE): Likewise.
4601 (DR_RW_EXECUTE): Likewise.
4602 (DR_RW_WRITE): Likewise.
4603 (DR_RW_READ): Likewise.
4604 (DR_RW_IORW): Likewise.
4605 (DR_LEN_1): Likewise.
4606 (DR_LEN_2): Likewise.
4607 (DR_LEN_4): Likewise.
4608 (DR_LEN_8): Likewise.
4609 (DR_LOCAL_ENABLE_SHIFT): Likewise.
4610 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
4611 (DR_ENABLE_SIZE): Likewise.
4612 (DR_LOCAL_SLOWDOWN): Likewise.
4613 (DR_GLOBAL_SLOWDOWN): Likewise.
4614 (DR_CONTROL_RESERVED): Likewise.
4615 (I386_DR_CONTROL_MASK): Likewise.
4616 (I386_DR_VACANT): Likewise.
4617 (I386_DR_LOCAL_ENABLE): Likewise.
4618 (I386_DR_GLOBAL_ENABLE): Likewise.
4619 (I386_DR_DISABLE): Likewise.
4620 (I386_DR_SET_RW_LEN): Likewise.
4621 (I386_DR_GET_RW_LEN): Likewise.
4622 (I386_DR_WATCH_HIT): Likewise.
4623 (i386_wp_op_t): Likewise.
4624 (i386_show_dr): Likewise.
4625 (i386_length_and_rw_bits): Likewise.
4626 (i386_insert_aligned_watchpoint): Likewise.
4627 (i386_remove_aligned_watchpoint): Likewise.
4628 (i386_handle_nonaligned_watchpoint): Likewise.
4629 (i386_update_inferior_debug_regs): Likewise.
4630 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
4631 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
4632 (i386_region_ok_for_watchpoint):
4633 Use i386_dr_region_ok_for_watchpoint.
4634 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
4636 2014-06-19 Gary Benson <gbenson@redhat.com>
4638 * i386-nat.c (i386_insert_hw_breakpoint): Use
4639 i386_insert_watchpoint.
4640 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
4642 2014-06-19 Gary Benson <gbenson@redhat.com>
4644 * i386-nat.c (i386_dr_show): Renamed to
4645 i386_show_dr and made static. All uses updated.
4646 (i386_dr_length_and_rw_bits): Renamed to
4647 i386_length_and_rw_bits and made static.
4649 (i386_dr_insert_aligned_watchpoint): Renamed to
4650 i386_insert_aligned_watchpoint and made static.
4652 (i386_dr_remove_aligned_watchpoint): Renamed to
4653 i386_remove_aligned_watchpoint and made static.
4655 (i386_dr_update_inferior_debug_regs): Renamed to
4656 i386_update_inferior_debug_regs and made static.
4658 * nat/i386-dregs.h (i386_dr_show): Removed.
4659 (i386_dr_length_and_rw_bits): Likewise.
4660 (i386_dr_insert_aligned_watchpoint): Likewise.
4661 (i386_dr_remove_aligned_watchpoint): Likewise.
4662 (i386_dr_update_inferior_debug_regs): Likewise.
4664 2014-06-19 Gary Benson <gbenson@redhat.com>
4666 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
4667 * configure: Regenerate.
4668 * config.in: Likewise.
4669 * main.c (signal.h): New include.
4670 (setup_alternate_signal_stack): New function.
4671 (captured_main): Call the above.
4672 * cp-support.c (signal.h): New include.
4673 (catch_demangler_crashes): New flag.
4674 (SIGJMP_BUF): New define.
4675 (SIGSETJMP): Likewise.
4676 (SIGLONGJMP): Likewise.
4677 (gdb_demangle_jmp_buf): New static global.
4678 (gdb_demangle_attempt_core_dump): Likewise.
4679 (gdb_demangle_signal_handler): New function.
4680 (gdb_demangle): If catch_demangler_crashes is set, install the
4681 above signal handler before calling bfd_demangle, and restore
4682 the original signal handler afterwards. Display the offending
4683 symbol and call demangler_warning the first time a segmentation
4685 (_initialize_cp_support): New maint set/show command.
4687 2014-06-19 Gary Benson <gbenson@redhat.com>
4689 * utils.h (resource_limit_kind): New enum.
4690 (can_dump_core): New declaration.
4691 (warn_cant_dump_core): Likewise.
4692 (dump_core): Likewise.
4693 * utils.c (dump_core): Made nonstatic. Added new
4694 parameter "limit_kind".
4695 (can_dump_core): Made nonstatic. Moved printing code to...
4696 (warn_cant_dump_core): New function.
4697 (can_dump_core_warn): Likewise.
4698 (internal_vproblem): Replace calls to can_dump_core with
4699 calls to can_dump_core_warn. Supply new argument to each.
4701 2014-06-19 Gary Benson <gbenson@redhat.com>
4703 * utils.h (demangler_vwarning): New declaration.
4704 (demangler_warning): Likewise.
4705 * utils.c (struct internal_problem)
4706 <user_settable_should_quit>: New field.
4707 <user_settable_should_dump_core>: Likewise
4708 (internal_error_problem): Add values for above new fields.
4709 (internal_warning_problem): Likewise.
4710 (demangler_warning_problem): New static global.
4711 (demangler_vwarning): New function.
4712 (demangler_warning): Likewise.
4713 (add_internal_problem_command): Selectively add commands.
4714 (_initialize_utils): New internal problem command.
4715 * maint.c (maintenance_demangler_warning): New function.
4716 (_initialize_maint_cmds): New command.
4718 2014-06-18 Tom Tromey <tromey@redhat.com>
4720 * f-valprint.c (info_common_command_for_block): Update.
4721 * symtab.h (struct general_symbol_info) <common_block>: Now
4724 2014-06-18 Tom Tromey <tromey@redhat.com>
4726 * symtab.h (struct symtab) <blockvector>: Now const.
4727 * ada-lang.c (ada_add_global_exceptions): Update.
4728 * buildsym.c (augment_type_symtab): Update.
4729 * dwarf2read.c (dw2_lookup_symbol): Update.
4730 * jit.c (finalize_symtab): Update.
4731 * jv-lang.c (add_class_symtab_symbol): Update.
4732 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
4734 * objfiles.c (objfile_relocate1): Update.
4735 * psymtab.c (lookup_symbol_aux_psymtabs)
4736 (maintenance_check_psymtabs): Update.
4737 * python/py-symtab.c (stpy_global_block, stpy_static_block):
4739 * spu-tdep.c (spu_catch_start): Update.
4740 * symmisc.c (dump_symtab_1): Update.
4741 * symtab.c (lookup_global_symbol_from_objfile)
4742 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4743 (basic_lookup_transparent_type_quick)
4744 (basic_lookup_transparent_type, find_pc_sect_symtab)
4745 (find_pc_sect_line, search_symbols): Update.
4746 * block.c (find_block_in_blockvector): Make "bl" const.
4747 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4749 (blockvector_contains_pc): Make "bv" const.
4750 (block_for_pc_sect): Update.
4751 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4752 (blockvector_contains_pc): Update.
4753 * breakpoint.c (resolve_sal_pc): Update.
4754 * inline-frame.c (block_starting_point_at): Update.
4756 2014-06-18 Tom Tromey <tromey@redhat.com>
4758 * completer.c (complete_line): Make "line_buffer" const.
4759 * completer.h (complete_line): Update.
4761 2014-06-18 Tom Tromey <tromey@redhat.com>
4763 * symtab.c (add_macro_name): Remove unneeded cast.
4765 2014-06-18 Tom Tromey <tromey@redhat.com>
4767 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4768 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4770 2014-06-18 Tom Tromey <tromey@redhat.com>
4772 * probe.c (info_probes_for_ops): Make "arg" const.
4773 * probe.h (info_probes_for_ops): Update.
4775 2014-06-18 Tom Tromey <tromey@redhat.com>
4777 * varobj.c (varobj_create): Update.
4778 * valops.c (value_of_this): Update.
4779 * tracepoint.c (add_local_symbols, scope_info): Update.
4780 * symtab.h (struct general_symbol_info) <block>: Now const.
4781 * symtab.c (skip_prologue_sal)
4782 (default_make_symbol_completion_list_break_on)
4783 (skip_prologue_using_sal): Update.
4784 * stack.h (iterate_over_block_locals)
4785 (iterate_over_block_local_vars): Update.
4786 * stack.c (print_frame_args): Update.
4787 (iterate_over_block_locals, iterate_over_block_local_vars): Make
4789 (get_selected_block): Make return type const.
4790 * python/py-frame.c (frapy_block): Update.
4791 * python/py-block.c (gdbpy_block_for_pc): Update.
4792 * p-exp.y (%union) <bval>: Now const.
4793 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4794 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4795 * m2-exp.y (%union) <bval>: Now const.
4796 * linespec.c (get_current_search_block): Make return type const.
4797 (create_sals_line_offset, find_label_symbols): Update.
4798 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4800 (block_starting_point_at): Make "block" const.
4801 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4802 (check_exception_resume): Update.
4803 * guile/scm-frame.c (gdbscm_frame_block): Update.
4804 * guile/scm-block.c (gdbscm_lookup_block): Update.
4805 * frame.h (get_frame_block): Update.
4806 (get_selected_block): Make return type const.
4807 * frame.c (frame_id_inner): Update.
4808 * f-valprint.c (info_common_command_for_block)
4809 (info_common_command): Update.
4810 * dwarf2loc.c (dwarf2_find_location_expression)
4811 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4812 (locexpr_describe_location_piece): Update.
4813 * c-exp.y (%union) <bval>: Now const.
4814 * breakpoint.c (resolve_sal_pc): Update.
4815 * blockframe.c (get_frame_block):Make return type const.
4816 (get_pc_function_start, get_frame_function, find_pc_sect_function)
4817 (block_innermost_frame): Update.
4818 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4819 (block_for_pc, block_for_pc_sect): Update.
4820 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4822 (block_for_pc_sect, block_for_pc): Make return type const.
4823 * ax-gdb.c (gen_expr): Update.
4824 * alpha-mdebug-tdep.c (find_proc_desc): Update.
4825 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4826 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4827 (ada_read_var_value): Update.
4828 * ada-exp.y (struct name_info) <block>: Now const.
4830 (block_lookup): Constify.
4832 2014-06-18 Gary Benson <gbenson@redhat.com>
4834 * nat/i386-dregs.h: New file.
4835 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4836 * i386-nat.h (i386-dregs.h): New include.
4837 (DR_FIRSTADDR): Now in i386-dregs.h.
4838 (DR_LASTADDR): Likewise.
4839 (DR_NADDR): Likewise.
4840 (DR_STATUS): Likewise.
4841 (DR_CONTROL): Likewise.
4842 (i386_debug_reg_state): Likewise.
4843 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4845 2014-06-18 Don Breazeal <donb@codesourcery.com>
4847 * breakpoint.c (set_longjmp_breakpoint): Call
4848 momentary_breakpoint_from_master with additional argument.
4849 (set_longjmp_breakpoint_for_call_dummy): Call
4850 momentary_breakpoint_from_master with additional argument.
4851 (set_std_terminate_breakpoint): Call
4852 momentary_breakpoint_from_master with additional argument.
4853 (momentary_breakpoint_from_master): Add argument to function
4854 definition and use it to initialize structure member flag.
4855 (clone_momentary_breakpoint): Call
4856 momentary_breakpoint_from_master with additional argument.
4857 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4858 member flags set in momentary_breakpoint_from_master.
4860 2014-06-18 Gary Benson <gbenson@redhat.com>
4862 * i386-nat.c (i386_show_dr): Renamed to
4863 i386_dr_show and made nonstatic. All uses updated.
4864 (i386_length_and_rw_bits): Renamed to
4865 i386_dr_length_and_rw_bits and made nonstatic.
4867 (i386_insert_aligned_watchpoint): Renamed to
4868 i386_dr_insert_aligned_watchpoint and made nonstatic.
4870 (i386_remove_aligned_watchpoint): Renamed to
4871 i386_dr_remove_aligned_watchpoint and made nonstatic.
4873 (i386_update_inferior_debug_regs): Renamed to
4874 i386_dr_update_inferior_debug_regs and made nonstatic.
4877 2014-06-18 Gary Benson <gbenson@redhat.com>
4879 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4880 (i386_dr_low_can_set_control): Likewise.
4881 (i386_dr_low_set_addr): Likewise.
4882 (i386_dr_low_set_control): Likewise.
4883 (i386_dr_low_get_addr): Likewise.
4884 (i386_dr_low_get_status): Likewise.
4885 (i386_dr_low_get_control): Likewise.
4886 (i386_insert_aligned_watchpoint): Use new macros.
4887 (i386_update_inferior_debug_regs): Likewise.
4888 (i386_stopped_data_address): Likewise.
4890 2014-06-18 Gary Benson <gbenson@redhat.com>
4892 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4893 New parameter. All uses updated.
4895 2014-06-18 Gary Benson <gbenson@redhat.com>
4897 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4900 2014-06-18 Gary Benson <gbenson@redhat.com>
4902 * i386-nat.c (debug_printf): New macro.
4903 (i386_get_debug_register_length): Likewise.
4904 (TARGET_HAS_DR_LEN_8): Use above macro.
4905 (i386_show_dr): Use debug_printf instead of puts_unfiltered
4906 and printf_unfiltered. Use phex to format values.
4908 2014-06-18 Gary Benson <gbenson@redhat.com>
4910 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4913 2014-06-18 Gary Benson <gbenson@redhat.com>
4915 * i386-nat.c: Comment changes.
4917 2014-06-18 Gary Benson <gbenson@redhat.com>
4919 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4921 2014-06-18 Gary Benson <gbenson@redhat.com>
4923 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4924 (i386_insert_aligned_watchpoint): Likewise.
4925 (i386_remove_aligned_watchpoint): Likewise.
4926 (i386_handle_nonaligned_watchpoint): Likewise.
4928 2014-06-18 Gary Benson <gbenson@redhat.com>
4930 * i386-nat.c: Whitespace changes.
4932 2014-06-17 Samuel Bronson <naesten@gmail.com>
4934 * MAINTAINERS: Update Roland McGrath's email address.
4935 Thanks to Sergio Durigan Junior for pointing out that he left
4936 Red Hat a while ago, and giving me a current address.
4938 2014-06-17 Tom Tromey <tromey@redhat.com>
4940 * utils.h (savestring): Remove declaration.
4942 2014-06-17 Tom Tromey <tromey@redhat.com>
4944 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4946 2014-06-16 Keith Seitz <keiths@redhat.com>
4949 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4950 to update the varobj if inferior_ptid is null_ptid.
4952 2014-06-16 Tom Tromey <tromey@redhat.com>
4954 * target.h (struct target_ops) <to_info_proc>: Make parameter
4956 (target_info_proc): Update.
4957 * target.c (target_info_proc): Make "args" const.
4958 * procfs.c (procfs_info_proc): Update.
4959 * linux-tdep.c (linux_info_proc): Update.
4960 (linux_core_info_proc_mappings): Make "args" const.
4961 (linux_core_info_proc): Update.
4962 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4963 * gdbarch.c: Rebuild.
4964 * gdbarch.h: Rebuild.
4965 * corelow.c (core_info_proc): Update.
4967 2014-06-16 Tom Tromey <tromey@redhat.com>
4969 * target.h (struct target_ops) <to_disconnect>: Make parameter
4971 (target_disconnect): Update.
4972 * target.c (target_disconnect): Make "args" const.
4973 * target-delegates.c: Rebuild.
4974 * remote.c (remote_disconnect): Update.
4975 * record.h (record_disconnect): Update.
4976 * record.c (record_disconnect): Update.
4977 * inf-child.c (inf_child_disconnect): Update.
4979 2014-06-16 Tom Tromey <tromey@redhat.com>
4981 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4982 * target.c (debug_to_rcmd, default_rcmd): Update.
4983 * target-delegates.c: Rebuild.
4984 * remote.c (remote_rcmd): Update.
4985 * monitor.c (monitor_rcmd): Update.
4987 2014-06-16 Pedro Alves <palves@redhat.com>
4989 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4990 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4991 have OBJF_SHARED set.
4992 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4993 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
4994 instead of OBJF_USERLOADED.
4995 * objfiles.h (OBJF_SHARED): Update comment.
4996 (userloaded_objfile_contains_address_p): Rename to ...
4997 (shared_objfile_contains_address_p): ... this, and update
4999 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5001 (remove_symbol_file_command): Skip objfiles that don't have
5004 2014-06-16 Tom Tromey <tromey@redhat.com>
5006 * minsyms.h (prim_record_minimal_symbol)
5007 (prim_record_minimal_symbol_and_info): Update comments.
5009 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5011 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5012 or --without-guile, according to how GDB was built.
5014 2014-06-13 Tom Tromey <tromey@redhat.com>
5016 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5018 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5020 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5022 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5023 help_list.Pass all_commands, not -1, to help_list.
5024 * cli/cli-dump.c (dump_command, append_command)
5025 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5026 (binary_dump_command, binary_append_command): Pass all_commands,
5027 not -1, to help_list.
5028 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5030 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5032 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5034 * top.c (set_history): Pass all_commands, not -1, to help_list.
5035 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5036 all_commands, not -1, to help_list.
5037 * symfile.c (overlay_command): Pass all_commands, not -1, to
5039 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5041 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5043 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5045 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5046 not -1, to help_list.
5047 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5048 not -1, to help_list.
5049 * maint.c (maintenance_command, maintenance_info_command)
5050 (maintenance_print_command, maintenance_set_cmd): Pass
5051 all_commands, not -1, to help_list.
5052 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5054 * language.c (set_check): Pass all_commands, not -1, to help_list.
5055 * infcmd.c (unset_command): Pass all_commands, not -1, to
5057 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5059 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5061 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5063 * breakpoint.c (save_command): Pass all_commands, not -1, to
5065 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5066 all_commands, not -1, to help_list.
5068 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5070 * regcache.c (struct register_to_invalidate): New structure.
5071 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5073 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5075 2014-06-12 Yao Qi <yao@codesourcery.com>
5077 * varobj.c (varobj_get_num_children): Call
5078 varobj_is_dynamic_p.
5079 (varobj_list_children): Likewise.
5080 (varobj_update): Likewise. Update comments.
5082 2014-06-12 Yao Qi <yao@codesourcery.com>
5084 * varobj.c (varobj_pretty_printed_p): Rename to ...
5085 (varobj_is_dynamic_p): ... this. New function.
5086 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5087 (varobj_is_dynamic_p): Declare.
5088 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5089 (mi_print_value_p, varobj_update_one): Likewise.
5091 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5092 Yao Qi <yao@codesourcery.com>
5094 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5095 (varobj_get_iterator): Wrap up code for pretty-printer by
5096 "#if HAVE_PYTHON" and "#endif".
5097 (update_dynamic_varobj_children): Likewise.
5099 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5100 Yao Qi <yao@codesourcery.com>
5102 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5103 gdb_python_initialized is false. Move some code from varobj.c.
5104 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5105 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5106 (struct varobj_item): Moved to varobj-iter.h".
5107 (varobj_clear_saved_item): New function.
5108 (update_dynamic_varobj_children): Move python-related code to
5110 (free_variable): Call varobj_clear_saved_item and
5113 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5114 Yao Qi <yao@codesourcery.com>
5116 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5117 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5118 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5119 (py-varobj.o): New rule.
5120 * python/py-varobj.c: New file.
5121 * python/python-internal.h (py_varobj_get_iterator): Declare.
5122 * varobj-iter.h: New file.
5123 * varobj.c: Include "varobj-iter.h"
5124 (struct varobj) <child_iter>: Change its type from "PyObject *"
5125 to "struct varobj_iter *".
5126 <saved_item>: Likewise.
5127 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5128 [HAVE_PYTHON] (varobj_get_iterator): New function.
5129 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5130 python-specific code to python/py-varobj.c.
5131 (install_visualizer): Call varobj_iter_delete instead of
5133 * varobj.h (varobj_ensure_python_env): Declare.
5135 2014-06-12 Yao Qi <yao@codesourcery.com>
5137 * varobj.c (struct varobj_item): New structure.
5138 (create_child_with_value): Update declaration.
5139 (varobj_add_child): Replace arguments 'name' and 'value' with
5140 'item'. All callers updated.
5141 (install_dynamic_child): Likewise.
5142 (update_dynamic_varobj_children): Likewise.
5143 (varobj_add_child): Likewise.
5144 (create_child_with_value): Likewise.
5146 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5148 * NEWS: Create a new section for the next release branch.
5149 Rename the section of the current branch, now that it has
5152 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5154 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5155 * version.in: Bump version to 7.8.50.DATE-cvs.
5157 2014-06-11 Pedro Alves <palves@redhat.com>
5160 * ser-mingw.c (net_windows_socket_check_pending): New function.
5161 (net_windows_select_thread): Ignore spurious wakeups. Use
5162 net_windows_socket_check_pending.
5163 (net_windows_wait_handle): Check for pending events with
5164 ioctlsocket, through net_windows_socket_check_pending, instead of
5165 checking the socket's event.
5167 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5169 * python/python-internal.h (gdb_PyObject_GetAttrString)
5170 (gdb_PyObject_HasAttrString): New inline function definitions.
5171 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5172 char * of the second argument to PyObject_GetAttrString.
5174 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5176 * serial.c (serial_write): Fix index of character to be printed
5177 in call to serial_logchar when serial debug traces are enabled.
5179 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5181 * gdbtypes (resolve_dynamic_range): Add function description.
5183 2014-06-09 Pedro Alves <palves@redhat.com>
5185 * linux-nat.c (linux_child_follow_fork): Initialize status with
5186 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5187 inner block. Only pass the signal to PTRACE_DETACH if in pass
5190 2014-06-09 Gary Benson <gbenson@redhat.com>
5192 * common/signals.c (gdb_signal_from_host): Reorder to separate
5193 the always-available ANSI-standard signals from the signals that
5195 (do_gdb_signal_to_host): Likewise.
5196 * proc-events.c (signal_table): Likewise.
5198 2014-06-08 Hui Zhu <hui@codesourcery.com>
5200 * common/linux-ptrace.c (linux_disable_event_reporting): New
5202 * common/linux-ptrace.h (linux_disable_event_reporting): New
5204 * linux-nat.c (linux_child_follow_fork): Do a single step before
5207 2014-06-07 Keith Seitz <keiths@redhat.com>
5211 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5212 from symbol_matches_domain in symtab.c. All local callers
5213 of symbol_matches_domain updated.
5214 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5215 search STRUCT_DOMAIN.
5216 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5217 independently. standard_lookup will do that automatically.
5218 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5219 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5220 (cp_lookup_symbol_in_namespace): Likewise.
5221 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5222 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5223 may return a STRUCT_DOMAIN match.
5224 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5225 * cp-support.c: Include language.h.
5226 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5228 * psymtab.c (match_partial_symbol): Compare the requested
5229 domain with the symbol's domain directly.
5230 (lookup_partial_symbol): Likewise.
5231 * symtab.c (lookup_symbol_in_language): Explain when/why
5232 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5233 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5234 appropriate languages.
5235 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5236 and moved to ada-lang.c
5237 (lookup_block_symbol): Explain that this function only returns
5238 symbol matching the requested DOMAIN.
5239 Compare the requested domain with the symbol's domain directly.
5240 (iterate_over_symbols): Compare the requested domain with the
5241 symbol's domain directly.
5242 * symtab.h (symbol_matches_domain): Remove.
5244 2014-06-06 Doug Evans <xdje42@gmail.com>
5246 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5247 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5248 (gdbscm_guile_version_is_at_least): Declare.
5249 (gdbscm_scm_string_to_int): Declare.
5250 * guile/guile.c (gdbscm_guile_major_version): New global.
5251 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5252 (guile_datadir): New static global.
5253 (gdbscm_guile_data_directory): New function.
5254 (initialize_scheme_side): Update.
5255 (misc_guile_functions): Add guile-data-directory.
5256 (initialize_gdb_module): Fetch guile version number.
5257 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5258 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5259 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5260 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5262 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5263 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5264 * guile/scm-value.c (gdbscm_value_to_string): Only call
5265 scm_port_conversion_strategy if Guile version >= 2.0.6.
5267 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5269 * main.c (print_gdb_help): Add -q and --silent.
5271 2014-06-06 Gary Benson <gbenson@redhat.com>
5273 * common/signals.c: Remove preprocessor conditionals for
5274 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5275 SIGSEGV and SIGTERM.
5276 * proc-events.c: Likewise.
5278 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5280 * symfile.c (symfile_free_objfile): Remove restriction to
5282 * symfile-mem.c (symbol_file_add_from_memory): Call
5283 add_target_sections_of_objfile.
5285 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5287 * guile/scm-value.c (gdbscm_history_append_x): Use
5288 'vlscm_get_value_smob_arg_unsafe' instead of
5289 'vlscm_scm_to_value'.
5291 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5294 * utils.c (printchar): Don't escape at all if quoter is NUL.
5295 Update function documentation to clarify effect of parameter
5297 * remote.c (escape_buffer): Pass '\\' as the quoter to
5298 fputstrn_unfiltered.
5299 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5300 generate the output.
5301 (mi_solib_unloaded): Same.
5303 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5305 * development.sh: Delete.
5306 * Makefile.in (config.status): Adjust dependency on development.sh.
5307 * configure.ac: Adjust development.sh source call.
5308 * configure: Regenerate.
5310 2014-06-04 Doug Evans <xdje42@gmail.com>
5312 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5313 is_scheme_bkpt, spec.
5314 (bpscm_make_breakpoint_smob): Initialize new members.
5315 (gdbscm_create_breakpoint_x): Split into two ...
5316 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5317 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5318 (scheme_function breakpoint_functions): Update.
5319 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5320 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5321 register-breakpoint!.
5323 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5326 * mem-break.c (z_type_supported): Return zero if
5327 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5329 2014-06-04 Tom Tromey <tromey@redhat.com>
5331 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5332 value_from_contents_and_address_unresolved.
5333 (ada_template_to_fixed_record_type_1): Likewise.
5334 (ada_which_variant_applies): Likewise.
5335 * value.h (value_from_contents_and_address_unresolved): Declare.
5336 * value.c (value_from_contents_and_address_unresolved): New
5338 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5339 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5340 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5342 2014-06-04 Tom Tromey <tromey@redhat.com>
5344 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5346 2014-06-04 Tom Tromey <tromey@redhat.com>
5348 * procfs.c (procfs_attach): Make "args" const.
5349 * windows-nat.c (windows_attach): Make "args" const.
5350 * nto-procfs.c (procfs_attach): Make "args" const.
5351 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5352 * go32-nat.c (go32_attach): Make "args" const.
5353 * gnu-nat.c (gnu_attach): Make "args" const.
5354 * darwin-nat.c (darwin_attach): Make "args" const.
5355 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5356 * linux-nat.c (linux_nat_attach): Make "args" const.
5357 * remote.c (extended_remote_attach_1, extended_remote_attach):
5359 * target.h (struct target_ops) <to_attach>: Make "args" const.
5360 (find_default_attach): Likewise.
5361 * utils.c (parse_pid_to_attach): Make "args" const.
5362 * utils.h (parse_pid_to_attach): Update.
5364 2014-06-04 Tom Tromey <tromey@redhat.com>
5366 * target-delegates.c: Rebuild.
5367 * target.c (default_thread_address_space): New function.
5368 (target_thread_address_space): Simplify.
5369 * target.h (struct target_ops) <to_thread_address_space>: Add
5370 TARGET_DEFAULT_FUNC.
5372 2014-06-04 Doug Evans <xdje42@gmail.com>
5374 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5376 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5378 * record-btrace.c: Include event-loop.h and inf-loop.h.
5379 (record_btrace_resume_exec_dir)
5380 (record_btrace_async_inferior_event_handler)
5381 (record_btrace_handle_async_inferior_event): New.
5382 (record_btrace_open): Create async event handler.
5383 (record_btrace_close): Delete async event handler.
5384 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5385 Mark async event handler.
5386 (record_btrace_execution_direction): New.
5387 (init_record_btrace_ops): Initialize to_execution_direction.
5389 2014-06-03 Doug Evans <xdje42@gmail.com>
5391 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5392 (gdbscm_make_parameter): Ditto.
5394 2014-06-03 Doug Evans <dje@google.com>
5396 * exec.c (exec_close_1): Call clear_section_table instead of
5397 resize_section_table.
5398 (clear_section_table): New function.
5399 (resize_section_table): Make static. Rename arg num_added to
5401 * exec.h (clear_section_table): Declare.
5402 (resize_section_table): Delete.
5403 * progspace.c (release_program_space): Call clear_section_table
5404 instead of resize_section_table.
5406 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5408 * NEWS (Python Scripting): Add entry about the new xmethods
5411 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5413 * python/py-xmethods.c: New file.
5414 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5415 (objfpy_dealloc): XDECREF on the new xmethods field.
5416 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5418 (objfpy_get_xmethods): New function.
5419 (objfile_getset): New entry 'xmethods'.
5420 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5421 (pspy_dealloc): XDECREF on the new xmethods field.
5422 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5424 (pspy_get_xmethods): New function.
5425 (pspace_getset): New entry 'xmethods'.
5426 * python/python-internal.h: Add declarations for new functions.
5427 * python/python.c (_initialize_python): Invoke
5428 gdbpy_initialize_xmethods.
5429 * python/lib/gdb/__init__.py (xmethods): New
5431 * python/lib/gdb/xmethod.py: New file.
5432 * python/lib/gdb/command/xmethods.py: New file.
5434 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5436 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5437 best match method returned by find_overload_match is an xmethod.
5438 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5439 the best matching operator returned by find_overload_match is an
5441 * valops.c: #include "extension.h".
5442 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5443 Return void. The list of matching source methods is returned in
5444 "fn_list" and a vector of matching debug method workers is
5445 returned in "xm_worker_vec". Update all callers.
5446 (value_find_oload_method_list): Likewise.
5447 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5448 non-NULL, then the index of the best matching method in this
5449 vector is returned. Update all callers.
5450 (find_overload_match): Include xmethods while performing overload
5453 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5455 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5456 * extension-priv.h (struct extension_language_ops): Add the
5458 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5459 get_matching_xmethod_workers, get_xmethod_argtypes,
5460 invoke_xmethod, free_xmethod_worker,
5461 free_xmethod_worker_vec): New functions.
5462 * extension.h: #include "common/vec.h".
5463 New function declarations.
5464 (struct xmethod_worker): New struct.
5465 (VEC (xmethod_worker_ptr)): New vector type.
5466 (xmethod_worker_ptr): New typedef.
5467 (xmethod_worker_vec): Likewise.
5468 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5470 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5471 (struct builtin_type): New field "xmethod".
5472 * valarith.c (value_ptradd): Assert that the value argument is not
5474 * valops.c (value_must_coerce_to_target): Return 0 for
5475 lval_xcallable values.
5476 * value.c (struct value): New field XM_WORKER in the field
5478 (value_address, value_raw_address): Return 0 for lval_xcallable
5480 (set_value_address): Assert that the value is not an
5482 (value_free): Free the associated xmethod worker when freeing
5483 lval_xcallable values.
5484 (set_value_component_location): Assert that the WHOLE value is not
5486 (value_of_xmethod, call_xmethod): New functions.
5487 * value.h: Declare "struct xmethod_worker".
5488 Declare new functions value_of_xmethod, call_xmethod.
5490 2014-06-03 Joel Brobecker <brobecker@adacore.com>
5491 Pedro Alves <palves@redhat.com>
5493 PR breakpoints/17000
5494 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5495 New function, extracted from software_breakpoint_inserted_here_p.
5496 (software_breakpoint_inserted_here_p): Replace factored out code
5497 by call to find_non_raw_software_breakpoint_inserted_here.
5498 (bp_target_info_copy_insertion_state): New function.
5499 (bkpt_insert_location): Handle the case of a single-step
5500 breakpoint already inserted at the same address.
5501 (bkpt_remove_location): Handle the case of a single-step
5502 breakpoint still inserted at the same address.
5503 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5504 breakpoint already inserted at the same address.
5505 (deprecated_remove_raw_breakpoint): Handle the case of a
5506 non-raw breakpoint still inserted at the same address.
5507 (find_single_step_breakpoint): New function, extracted from
5508 single_step_breakpoint_inserted_here_p.
5509 (find_single_step_breakpoint): New function,
5510 factored out from single_step_breakpoint_inserted_here_p.
5511 (single_step_breakpoint_inserted_here_p): Reimplement.
5513 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5515 Pushed by Joel Brobecker <brobecker@adacore.com>
5516 * source.c (show_substitute_path_command): Fix display of matching
5519 2014-06-03 Gary Benson <gbenson@redhat.com>
5521 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5523 2014-06-02 Doug Evans <xdje42@gmail.com>
5525 Add parameter support for Guile.
5526 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5527 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5528 (scm-param.o): New rule.
5529 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5530 (gdbscm_misc_error): Declare.
5531 (gdbscm_canonicalize_command_name): Declare.
5532 (gdbscm_scm_to_host_string): Declare.
5533 (gdbscm_scm_from_host_string): Declare.
5534 (gdbscm_initialize_parameters): Declare.
5535 * guile/guile.c (initialize_gdb_module): Call
5536 gdbscm_initialize_parameters.
5537 * guile/lib/gdb.scm: Export parameter symbols.
5538 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5539 cmdscm_canonicalize_name and made public. All callers updated.
5540 * guile/scm-exception.c (gdbscm_misc_error): New function.
5541 * guile/scm-param.c: New file.
5542 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
5543 (gdbscm_scm_to_host_string): New function.
5544 (gdbscm_scm_from_host_string): New function.
5545 * scm-utils.c (gdbscm_gc_dup_argv): New function.
5547 2014-06-02 Doug Evans <xdje42@gmail.com>
5549 Add command support for Guile.
5550 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
5551 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
5552 (scm-cmd.o): New rule.
5553 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
5554 (gdbscm_user_error_p): Declare.
5555 (gdbscm_parse_command_name): Declare.
5556 (gdbscm_valid_command_class_p): Declare.
5557 (gdbscm_initialize_commands): Declare.
5558 * guile/guile.c (initialize_gdb_module): Call
5559 gdbscm_initialize_commands.
5560 * guile/lib/gdb.scm: Export command symbols.
5561 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
5562 (throw-user-error): New function.
5563 * guile/scm-cmd.c: New file.
5564 * guile/scm-exception.c (user_error_symbol): New static global.
5565 (gdbscm_user_error_p): New function.
5566 (gdbscm_initialize_exceptions): Set user_error_symbol.
5567 * scm-utils.c (gdbscm_gc_xstrdup): New function.
5569 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
5571 * top.c (command_loop): Handle comments here...
5572 (command_line_input): ... not here.
5574 2014-06-02 Doug Evans <xdje42@gmail.com>
5576 Add progspace support for Guile.
5577 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
5578 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
5579 (scm-progspace.o): New rule.
5580 * guile/guile-internal.h (pspace_smob): New typedef.
5581 (psscm_pspace_smob_pretty_printers): Declare.
5582 (psscm_pspace_smob_from_pspace): Declare.
5583 (psscm_scm_from_pspace): Declare.
5584 * guile/guile.c (initialize_gdb_module): Call
5585 gdbscm_initialize_pspaces.
5586 * guile/lib/gdb.scm: Export progspace symbols.
5587 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
5589 (append-pretty-printer!): Ditto.
5590 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
5592 * guile/scm-progspace.c: New file.
5594 2014-06-03 Alan Modra <amodra@gmail.com>
5596 * ppc64-tdep.c (ppc64_standard_linkage8): New.
5597 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
5599 2014-06-02 Doug Evans <dje@google.com>
5601 Add support for skeletonless type units.
5602 * dwarf2read.c (struct dwarf2_per_objfile): New member
5603 n_allocated_type_units.
5604 (struct dwarf2_per_objfile) <tu_stats>: New member
5605 nr_all_type_units_reallocs.
5606 (create_signatured_type_table_from_index): Initialize
5607 n_allocated_type_units
5608 (create_all_type_units): Ditto.
5609 (add_type_unit): Move up in file. New arg slot.
5610 All callers updated. Increase space for all_type_units more
5612 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
5613 (lookup_dwo_signatured_type): Handle skeletonless TUs.
5614 (lookup_dwp_signatured_type): Ditto.
5615 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
5616 All callers updated.
5617 (build_type_psymtabs_1): Leave type_unit_groups as
5618 NULL if no TUs present.
5619 (print_tu_stats): New function.
5620 (process_skeletonless_type_unit): New function.
5621 (process_dwo_file_for_skeletonless_type_units): New
5623 (process_skeletonless_type_units): New function.
5624 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
5625 Call print tu_stats if debugging enabled.
5627 2014-06-02 Pedro Alves <palves@redhat.com>
5629 * breakpoint.c (build_target_command_list): Don't build a command
5630 list if we have any duplicate location that isn't a dprintf.
5632 2014-06-02 Pedro Alves <palves@redhat.com>
5634 * breakpoint.c (dprintf_breakpoint_hit): New function.
5635 (initialize_breakpoint_ops): Install it as dprintf's
5636 breakpoint_hit method.
5638 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5640 * source.c (substitute_path_rule_matches): Simplify using
5641 filename_ncmp instead of FILENAME_CMP.
5643 2014-06-02 Joel Brobecker <brobecker@adacore.com>
5645 * source.c (substitute_path_rule_matches): Remove trailing spaces.
5647 2014-06-01 Ludovic Courtès <ludo@gnu.org>
5649 * configure.ac: When Guile is available, check for the
5650 availability of 'scm_new_smob'.
5651 * configure, config.h.in: Regenerate.
5652 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
5655 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5657 * frame.c (struct frame_info): Add stop_string field.
5658 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
5659 (get_prev_frame_always): Old content moved into
5660 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
5661 TRY_CATCH, handle MEMORY_ERROR exceptions.
5662 (frame_stop_reason_string): New function definition.
5663 * frame.h (unwind_stop_reason_to_string): Extend comment to
5664 mention frame_stop_reason_string.
5665 (frame_stop_reason_string): New function declaration.
5666 * stack.c (frame_info): Switch to frame_stop_reason_string.
5667 (backtrace_command_1): Switch to frame_stop_reason_string.
5668 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
5669 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
5670 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
5672 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5674 * frame.c (frame_stop_reason_string): Rename to ...
5675 (unwind_stop_reason_to_string): this.
5676 * frame.h (frame_stop_reason_string): Rename to ...
5677 (unwind_stop_reason_to_string): this.
5678 * stack.c (frame_info): Update call to frame_stop_reason_string.
5679 (backtrace_command_1): Likewise.
5680 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
5681 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5683 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
5685 * frame.c (remove_prev_frame): New function.
5686 (get_prev_frame_if_no_cycle): Create / discard cleanup using
5689 2014-05-29 Pedro Alves <palves@redhat.com>
5691 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
5692 and make it const. When a single-step decays to a continue,
5693 clear 'step', not 'hw_step'. Pass whether the caller wanted
5694 to step to user_visible_resume_ptid, not what we ask the
5697 2014-05-29 Pedro Alves <palves@redhat.com>
5699 * infrun.c (process_event_stop_test, handle_step_into_function)
5700 (handle_step_into_function_backward): Adjust.
5701 Don't set the even thread's stop_step and call stop_waiting before
5702 calling end_stepping_range. Instead do that ...
5703 (end_stepping_range): ... here. Take an ecs pointer parameter.
5705 2014-05-29 Pedro Alves <palves@redhat.com>
5707 * infrun.c (stop_stepping): Rename to ...
5708 (stop_waiting): ... this.
5709 (proceed): Update comment.
5710 (process_event_stop_test, handle_inferior_event)
5711 (handle_signal_stop, handle_step_into_function)
5712 (handle_step_into_function_backward): Update.
5714 2014-05-29 Pedro Alves <palves@redhat.com>
5716 * infcall.c (run_inferior_call): Don't check whether the current
5717 thread is running after the proceed call.
5719 2014-05-29 Pedro Alves <palves@redhat.com>
5720 Tom Tromey <tromey@redhat.com>
5722 * NEWS: Mention "maint set target-async", "set mi-async", and that
5723 background execution commands are now always available.
5724 * target.h (target_async_permitted): Update comment.
5725 * target.c (target_async_permitted, target_async_permitted_1):
5727 (set_target_async_command): Rename to ...
5728 (maint_set_target_async_command): ... this.
5729 (show_target_async_command): Rename to ...
5730 (maint_show_target_async_command): ... this.
5731 (_initialize_target): Adjust.
5732 * infcmd.c (prepare_execution_command): Make extern.
5733 * inferior.h (prepare_execution_command): Declare.
5734 * infrun.c (set_observer_mode): Leave target async alone.
5735 * mi/mi-interp.c (mi_interpreter_init): Install
5736 mi_on_sync_execution_done as sync_execution_done observer.
5737 (mi_on_sync_execution_done): New function.
5738 (mi_execute_command_input_handler): Don't print the prompt if we
5739 just started a synchronous command with an async target.
5740 (mi_on_resume): Check sync_execution before printing prompt.
5741 * mi/mi-main.h (mi_async_p): Declare.
5742 * mi/mi-main.c: Include gdbcmd.h.
5743 (mi_async_p): New function.
5744 (mi_async, mi_async_1): New globals.
5745 (set_mi_async_command, show_mi_async_command, mi_async): New
5747 (exec_continue): Call prepare_execution_command.
5748 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5749 (mi_execute_async_cli_command): Use mi_async_p.
5750 (_initialize_mi_main): Install "set mi-async". Make
5751 "target-async" a deprecated alias.
5753 2014-05-29 Pedro Alves <palves@redhat.com>
5755 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5756 (_initialize_cli_interp): Adjust.
5757 * event-loop.c: Include "observer.h".
5758 (start_event_loop): Notify 'command_error' observers instead of
5759 calling display_gdb_prompt. Remove FIXME comment.
5760 * event-top.c (display_gdb_prompt): Remove call into the
5762 * inf-loop.c: Include "observer.h".
5763 (inferior_event_handler): Notify 'command_error' observers instead
5764 of calling display_gdb_prompt.
5765 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5766 observers instead of calling display_gdb_prompt.
5767 * interps.c (interp_set): Don't call display_gdb_prompt.
5768 (current_interp_display_prompt_p): Delete.
5769 * interps.h (interp_prompt_p): Delete declaration.
5770 (interp_prompt_p_ftype): Delete.
5771 (struct interp_procs) <prompt_proc_p>: Delete field.
5772 (current_interp_display_prompt_p): Delete declaration.
5773 * mi-interp.c (mi_interpreter_prompt_p): Delete.
5774 (_initialize_mi_interp): Adjust.
5775 * tui-interp.c (tui_init): Install 'sync_execution_done' and
5776 'command_error' observers.
5777 (tui_on_sync_execution_done, tui_on_command_error): New
5779 (tui_display_prompt_p): Delete.
5780 (_initialize_tui_interp): Adjust.
5782 2014-05-29 Pedro Alves <palves@redhat.com>
5785 * cli/cli-interp.c: Include infrun.h and observer.h.
5786 (cli_uiout, cli_interp): New globals.
5787 (cli_on_signal_received, cli_on_end_stepping_range)
5788 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5790 (cli_interpreter_init): Install them as 'end_stepping_range',
5791 'signal_received' 'signal_exited', 'exited' and 'no_history'
5793 (_initialize_cli_interp): Remove cli_interp local.
5794 * infrun.c (handle_inferior_event): Call the several stop reason
5795 observers instead of printing the stop reason directly.
5796 (end_stepping_range): New function.
5797 (print_end_stepping_range_reason, print_signal_exited_reason)
5798 (print_exited_reason, print_signal_received_reason)
5799 (print_no_history_reason): Make static, and add an uiout
5800 parameter. Print to that instead of to CURRENT_UIOUT.
5801 * infrun.h (print_end_stepping_range_reason)
5802 (print_signal_exited_reason, print_exited_reason)
5803 (print_signal_received_reason print_no_history_reason): New
5805 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5807 <cli_uiout>: New field.
5808 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
5809 uiout for CLI output. Install 'signal_received',
5810 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5812 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5813 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5814 (mi_on_no_history): New functions.
5815 (ui_out_free_cleanup): Delete function.
5816 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5817 instead use the one already stored in the MI interpreter data.
5818 (mi_ui_out): Adjust.
5819 * tui/tui-interp.c: Include infrun.h and observer.h.
5820 (tui_interp): New global.
5821 (tui_on_signal_received, tui_on_end_stepping_range)
5822 (tui_on_signal_exited, tui_on_exited)
5823 (tui_on_no_history): New functions.
5824 (tui_init): Install them as 'end_stepping_range',
5825 'signal_received' 'signal_exited', 'exited' and 'no_history'
5827 (_initialize_tui_interp): Delete tui_interp local.
5829 2014-05-29 Pedro Alves <palves@redhat.com>
5832 * linux-nat.c (linux_nat_resume_callback): Rename the second
5833 parameter to 'except'. Skip LP if it points to EXCEPT.
5834 (linux_nat_resume): Don't mark the event lwp as not stopped
5835 before resuming sibling lwps. Instead ask
5836 linux_nat_resume_callback to skip the event lwp. Mark it as not
5837 stopped after actually resuming it.
5838 (linux_handle_syscall_trap): Mark the lwp as not stopped after
5840 (wait_lwp): Mark the lwp as stopped here.
5841 (stop_wait_callback): Mark the lwp as not stopped right after
5842 resuming it. Don't mark lwps as stopped here.
5843 (linux_nat_filter_event): Mark the lwp as stopped earlier.
5844 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5846 2014-05-29 Pedro Alves <palves@redhat.com>
5849 * infrun.c (resume): Determine how much to resume depending on
5850 whether the caller wanted a step, not whether we can hardware step
5851 the target. Mark all threads that we intend to run as running,
5852 unless we're calling an inferior function.
5853 (normal_stop): If the thread is running an infcall, don't finish
5855 * target.c (target_resume): Don't mark threads as running here.
5857 2014-05-28 Joel Brobecker <brobecker@adacore.com>
5859 * serial.c (_initialize_serial): Remove support for
5860 the "set remotebaud" and "show remotebaud" commands.
5861 * NEWS: Add entry documenting the removal of that command.
5863 2014-05-28 Yao Qi <yao@codesourcery.com>
5865 * charset.c: Fix typo in comments.
5867 2014-05-27 Gary Benson <gbenson@redhat.com>
5869 * utils.c (internal_vproblem): Prompt for a bug report.
5871 2014-05-26 Andy Wingo <wingo@igalia.com>
5873 * guile/scm-arch.c (arscm_mark_arch_smob):
5874 * guile/scm-block.c (bkscm_mark_block_smob)
5875 (bkscm_mark_block_syms_progress_smob):
5876 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5877 * guile/scm-exception.c (exscm_mark_exception_smob):
5878 * guile/scm-frame.c (frscm_mark_frame_smob):
5879 * guile/scm-iterator.c (itscm_mark_iterator_smob):
5880 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5881 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5882 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5883 (ppscm_mark_pretty_printer_worker_smob):
5884 * guile/scm-symbol.c (syscm_mark_symbol_smob):
5885 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5886 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5887 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5889 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5892 2014-05-26 Andy Wingo <wingo@igalia.com>
5893 Doug Evans <xdje42@gmail.com>
5895 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5896 empty_base_class. All uses updated.
5897 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5898 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5900 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5901 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5902 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5903 (gdbscm_gsmob_has_property_p, add_property_name)
5904 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5905 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5906 (gdb-object-has-property?, gdb-object-properties): Remove.
5907 (gdb-object-kind): Renamed from gsmob-kind.
5909 2014-05-26 Andy Wingo <wingo@igalia.com>
5911 * configure.ac (try_guile_versions): Allow building with guile 2.2.
5912 * configure: Regenerate.
5914 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5916 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5918 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
5920 * record-btrace.c (record_btrace_allow_memory_access): Remove.
5921 (replay_memory_access_read_only, replay_memory_access_read_write)
5922 (replay_memory_access_types, replay_memory_access)
5923 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5924 (cmd_set_record_btrace, cmd_show_record_btrace)
5925 (cmd_show_replay_memory_access): New.
5926 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5927 (record_btrace_remove_breakpoint): Replace
5928 record_btrace_allow_memory_access with replay_memory_access.
5929 (_initialize_record_btrace): Add commands.
5930 * NEWS: Announce it.
5932 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5934 * aarch64-linux-nat.c (asm/ptrace.h): Include.
5936 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5938 * MAINTAINERS (Write After Approval): Move self back from
5941 2014-05-22 Pedro Alves <palves@redhat.com>
5943 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5944 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5945 (disable_randomization, enum exec_direction_kind)
5946 (execution_direction, stop_registers, start_remote)
5947 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5948 (wait_for_inferior, normal_stop, get_last_target_status)
5949 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5950 (insert_step_resume_breakpoint_at_sal)
5951 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5952 (set_step_info, print_stop_event, signal_stop_state)
5953 (signal_print_state, signal_pass_state, signal_stop_update)
5954 (signal_print_update, signal_pass_update)
5955 (update_signals_program_target, clear_exit_convenience_vars)
5956 (displaced_step_dump_bytes, update_observer_mode)
5957 (signal_catch_update, gdb_signal_from_command): Move
5959 * infrun.h: ... to this new file.
5960 * amd64-tdep.c: Include infrun.h.
5961 * annotate.c: Include infrun.h.
5962 * arch-utils.c: Include infrun.h.
5963 * arm-linux-tdep.c: Include infrun.h.
5964 * arm-tdep.c: Include infrun.h.
5965 * break-catch-sig.c: Include infrun.h.
5966 * breakpoint.c: Include infrun.h.
5967 * common/agent.c: Include infrun.h instead of inferior.h.
5968 * corelow.c: Include infrun.h.
5969 * event-top.c: Include infrun.h.
5970 * go32-nat.c: Include infrun.h.
5971 * i386-tdep.c: Include infrun.h.
5972 * inf-loop.c: Include infrun.h.
5973 * infcall.c: Include infrun.h.
5974 * infcmd.c: Include infrun.h.
5975 * infrun.c: Include infrun.h.
5976 * linux-fork.c: Include infrun.h.
5977 * linux-nat.c: Include infrun.h.
5978 * linux-thread-db.c: Include infrun.h.
5979 * monitor.c: Include infrun.h.
5980 * nto-tdep.c: Include infrun.h.
5981 * procfs.c: Include infrun.h.
5982 * record-btrace.c: Include infrun.h.
5983 * record-full.c: Include infrun.h.
5984 * remote-m32r-sdi.c: Include infrun.h.
5985 * remote-mips.c: Include infrun.h.
5986 * remote-notif.c: Include infrun.h.
5987 * remote-sim.c: Include infrun.h.
5988 * remote.c: Include infrun.h.
5989 * reverse.c: Include infrun.h.
5990 * rs6000-tdep.c: Include infrun.h.
5991 * s390-linux-tdep.c: Include infrun.h.
5992 * solib-irix.c: Include infrun.h.
5993 * solib-osf.c: Include infrun.h.
5994 * solib-svr4.c: Include infrun.h.
5995 * target.c: Include infrun.h.
5996 * top.c: Include infrun.h.
5997 * windows-nat.c: Include infrun.h.
5998 * mi/mi-interp.c: Include infrun.h.
5999 * mi/mi-main.c: Include infrun.h.
6000 * python/py-threadevent.c: Include infrun.h.
6002 2014-05-22 Pedro Alves <palves@redhat.com>
6004 * infrun.c (handle_inferior_event): Store the exit code for
6005 --return-child-result here, instead of ...
6006 (print_exited_reason): ... here.
6008 2014-05-21 Pedro Alves <palves@redhat.com>
6011 * gdbthread.h (struct thread_control_state): New field
6013 * infrun.c (follow_fork): Copy the new thread control field to the
6015 (clear_proceed_status_thread): Clear the new thread control field.
6016 (proceed): Set the new thread control field.
6017 * interps.h (command_interp): Declare.
6018 * interps.c (command_interpreter): New global.
6019 (command_interp): New function.
6020 (interp_exec): Set `command_interpreter' while here.
6021 * cli-out.c (cli_uiout_dtor): New function.
6022 (cli_ui_out_impl): Install it.
6023 * mi/mi-interp.c: Include cli-out.h.
6024 (mi_cmd_interpreter_exec): Add comment.
6025 (restore_current_uiout_cleanup): New function.
6026 (ui_out_free_cleanup): New function.
6027 (mi_on_normal_stop): If finishing an execution command started by
6028 a CLI command, or any kind of breakpoint-like event triggered,
6029 print the stop event to the output (CLI) stream.
6030 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6032 2014-05-21 Pedro Alves <palves@redhat.com>
6034 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6035 current source line having changed.
6036 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6037 * infrun.c (normal_stop): Adjust call to
6038 set_current_sal_from_frame.
6039 * source.c (clear_lines_listed_range): New function.
6040 (set_current_source_symtab_and_line, identify_source_line): Clear
6041 the lines listed range.
6042 (line_info): Handle the first "info line" after the current source
6043 line having changed.
6044 * stack.c (print_stack_frame): Remove center handling.
6045 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6048 2014-05-21 Pedro Alves <palves@redhat.com>
6050 * inf-child.c (inf_child_mourn_inferior): New function.
6051 * inf-child.h (inf_child_mourn_inferior): New declaration.
6052 * darwin-nat.c (darwin_mourn_inferior): Use
6053 inf_child_mourn_inferior.
6054 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6055 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6056 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6057 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6058 * windows-nat.c (windows_mourn_inferior): Likewise.
6060 2014-05-21 Doug Evans <xdje42@gmail.com>
6062 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6064 2014-05-21 Doug Evans <xdje42@gmail.com>
6066 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6067 (gdbscm_out_of_range_error): Ditto.
6068 (gdbscm_memory_error): Ditto.
6069 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6070 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6071 (gdbscm_out_of_range_error): Update.
6072 (gdbscm_memory_error): Update.
6073 (gdbscm_scm_to_target_string_unsafe): Delete.
6075 2014-05-21 Pedro Alves <palves@redhat.com>
6077 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6079 (inf_child_open_target): New function.
6080 (inf_child_open): Use inf_child_open_target to push the target
6081 instead of erroring out.
6082 (inf_child_disconnect, inf_child_close)
6083 (inf_child_maybe_unpush_target): New functions.
6084 (inf_child_target): Install inf_child_disconnect and
6085 inf_child_close. Store a pointer to the returned object.
6086 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6088 * target.c (auto_connect_native_target): New global.
6089 (show_default_run_target): New function.
6090 (find_default_run_target): Return NULL if automatically connecting
6091 to the native target is disabled.
6092 (_initialize_target): Install set/show auto-connect-native-target.
6093 * NEWS: Mention "set auto-connect-native-target", and "target
6095 * linux-nat.c (super_close): New global.
6096 (linux_nat_close): Call super_close.
6097 (linux_nat_add_target): Store a pointer to the base class's
6099 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6100 inf_child_maybe_unpush.
6101 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6103 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6104 the inferior. Use inf_child_maybe_unpush_target.
6105 (inf_ttrace_attach): Don't push the target if it is already
6107 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6108 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6109 after mourning the inferior. Use inf_child_maybe_unpush_target.
6110 (darwin_attach_pid): Don't push the target if it is already
6112 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6113 mourning the inferior. Use inf_child_maybe_unpush_target.
6114 (gnu_detach): Use inf_child_maybe_unpush_target.
6115 * go32-nat.c (go32_create_inferior): Don't push the target if it
6117 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6118 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6119 (procfs_open): Rename to ...
6120 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6121 comments. Can target_preopen before changing node. Call
6122 inf_child_open_target to push the target explicitly.
6123 (procfs_attach): Don't push the target if it is already pushed.
6124 (procfs_detach): Use inf_child_maybe_unpush_target.
6125 (procfs_create_inferior): Don't push the target if it is already
6127 (nto_native_ops): New global.
6128 (procfs_open): Reimplement.
6129 (procfs_native_open): New function.
6130 (init_procfs_targets): Install procfs_native_open as to_open of
6131 "target native". Store a pointer to the "native" target in
6133 * procfs.c (procfs_attach): Don't push the target if it is already
6135 (procfs_detach): Use inf_child_maybe_unpush_target.
6136 (procfs_mourn_inferior): Only unpush the target after mourning the
6137 inferior. Use inf_child_maybe_unpush_target.
6138 (procfs_init_inferior): Don't push the target if it is already
6140 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6141 if it is already pushed.
6143 2014-05-21 Pedro Alves <palves@redhat.com>
6145 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6146 and "procfs" targets are now called "native" instead.
6148 2014-05-21 Pedro Alves <palves@redhat.com>
6150 * go32-nat.c (go32_open): Delete.
6151 (go32_target): Don't override the to_open method.
6153 2014-05-21 Pedro Alves <palves@redhat.com>
6155 * nto-procfs.c (procfs_can_run): New function.
6156 (nto_procfs_ops): New global.
6157 (init_procfs_targets): New, based on procfs_target. Install
6158 "target native" in addition to "target procfs".
6159 (_initialize_procfs): Call init_procfs_targets instead of adding
6162 2014-05-21 Pedro Alves <palves@redhat.com>
6164 * windows-nat.c (windows_target): Don't override to_shortname,
6165 to_longname or to_doc.
6167 2014-05-21 Pedro Alves <palves@redhat.com>
6169 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6172 2014-05-21 Pedro Alves <palves@redhat.com>
6174 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6175 to_shortname, to_longname or to_doc.
6177 2014-05-21 Pedro Alves <palves@redhat.com>
6179 * go32-nat.c (go32_target): Don't override to_shortname,
6180 to_longname or to_doc.
6182 2014-05-21 Pedro Alves <palves@redhat.com>
6184 * inf-child.c (inf_child_open): Remove mention of "child".
6185 (inf_child_target): Rename target to "native" instead of "child".
6187 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6189 * Makefile.in (SFILES): Delete "regset.c".
6190 (COMMON_OBS): Delete "regset.o".
6192 * regset.h (regset_alloc): Delete prototype.
6194 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6196 * sparc-linux-tdep.c (sparc32_linux_gregset)
6197 (sparc32_linux_fpregset): New static regset structures.
6198 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6199 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6201 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6202 (sparc64_linux_fpregset): New static regset structures.
6203 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6204 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6205 New static regset structures.
6206 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6207 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6208 New static regset structures.
6209 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6210 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6211 New static regset structures.
6212 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6213 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6214 New static regset structures.
6215 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6217 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6219 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6220 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6221 register maps ("regmaps") from "*regset" to "*regmap". Do this
6222 for all regmap types and variables.
6223 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6224 (sparc32_linux_supply_core_gregset)
6225 (sparc32_linux_collect_core_gregset)
6226 (sparc32_linux_supply_core_fpregset)
6227 (sparc32_linux_collect_core_fpregset): Likewise.
6228 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6229 (sparc_gregmap, sparc_fpregmap): ... these.
6230 (sparc_supply_gregset, sparc_collect_gregset)
6231 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6232 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6233 (_initialize_sparc_nat): Rename regmaps.
6234 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6235 (sparc_gregmap, sparc_fpregmap): ... these.
6236 (sparc_supply_gregset, sparc_collect_gregset)
6237 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6238 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6240 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6241 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6243 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6245 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6246 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6247 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6249 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6250 (sparc32_bsd_fpregset): Rename to...
6251 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6252 (sparc32_bsd_fpregmap): ... these.
6253 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6254 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6255 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6256 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6257 (struct sparc_gregmap, struct sparc_fpregmap)
6258 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6259 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6260 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6261 (sparc32_supply_regset, sparc32_collect_gregset)
6262 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6264 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6265 (sparc64_linux_ptrace_gregmap): ... this.
6266 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6267 (_initialize_sparc64_linux_nat): Rename regmaps.
6268 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6269 (sparc64_linux_core_gregmap): ... this.
6270 (sparc64_linux_supply_core_gregset)
6271 (sparc64_linux_collect_core_gregset)
6272 (sparc64_linux_supply_core_fpregset)
6273 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6274 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6275 (sparc64_sol2_fpregset): Rename to...
6276 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6277 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6278 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6280 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6281 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6282 (sparc64_bsd_fpregset): Rename to...
6283 (struct sparc_gregmap, sparc64_sol2_gregmap)
6284 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6285 (sparc64_bsd_fpregmap): ... these.
6286 (sparc64_supply_gregset, sparc64_collect_gregset)
6287 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6289 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6290 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6291 (sparc64fbsd_gregmap): ... this.
6292 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6293 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6295 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6296 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6297 (sparc64nbsd_collect_fpregset): Likewise.
6298 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6299 (sparc64nbsd_gregmap): ... this.
6300 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6302 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6303 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6304 (sparc64obsd_gregmap): ... this.
6305 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6307 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6308 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6309 (sparc32nbsd_gregmap): ... this.
6310 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6313 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6315 * score-tdep.c (score7_linux_gregset): New static regset
6317 (score7_linux_regset_from_core_section): Remove dynamic regset
6319 (score_gdbarch_init): Drop allocation of tdep structure.
6320 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6322 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6324 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6326 (am33_regset_from_core_section): Remove dynamic regset
6329 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6331 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6332 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6334 (mips_linux_regset_from_core_section): Remove dynamic regset
6336 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6337 'gregset64', 'fpregset', and 'fpregset64'.
6338 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6339 deleted tdep fields.
6341 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6343 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6345 (amd64_regset_from_core_section): Remove dynamic regset
6347 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6349 (amd64obsd_regset_from_core_section): Remove dynamic regset
6351 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6353 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6354 x86-common regset supply function.
6355 * i386-tdep.c (i386_collect_gregset): Make static.
6356 (i386_gregset): New global regset structure.
6357 (i386_fpregset, i386_xstateregset): New static regset structures.
6358 (i386_regset_from_core_section): Remove dynamic regset
6360 (i386_gdbarch_init): Remove initialization of tdep fields
6361 'gregset', 'fpregset', and 'xstateregset'.
6362 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6363 'fpregset', and 'xstateregset'.
6364 (i386_collect_gregset): Remove prototype.
6365 (i386_gregset): New declaration.
6366 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6368 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6371 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6373 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6374 (arm_linux_vfpregset): New static regset structures.
6375 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6377 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6378 and 'vfpregset' fields.
6380 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6382 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6383 (aarch64_linux_fpregset): New static regset structures.
6384 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6385 of regset structures.
6386 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6389 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6391 * regset.h (struct regset): Remove gdbarch field.
6392 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6393 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6394 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6396 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6397 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6398 (ppc32_linux_vsxregset): Likewise.
6399 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6400 via the regcache instead of the regset.
6401 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6402 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6403 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6404 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6407 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6409 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6410 Constify structures.
6411 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6412 (alphanbsd_aout_gregset): Likewise.
6413 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6414 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6416 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6417 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6419 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6420 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6421 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6422 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6423 * m88k-tdep.c (m88k_gregset): Likewise.
6424 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6425 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6426 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6427 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6428 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6429 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6430 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6431 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6432 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6434 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6435 * sh-tdep.h (sh_corefile_gregset): Likewise.
6436 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6437 * vax-tdep.c (vax_gregset): Likewise.
6439 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6441 Fix TLS access for -static -pthread.
6442 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6443 (try_thread_db_load_1): Initialize it.
6444 (thread_db_get_thread_local_address): Call it if LM is zero.
6445 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6446 * target.h (struct target_ops) (to_get_thread_local_address): Add
6447 load_module_addr comment.
6449 2014-05-21 Pedro Alves <palves@redhat.com>
6451 * dcache.c (dcache_read_memory_partial): If reading the cache line
6452 fails, fallback to reading just the memory the caller wanted.
6454 2014-05-20 Doug Evans <dje@google.com>
6456 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6457 instead of get_current_arch.
6459 2014-05-20 Pedro Alves <palves@redhat.com>
6461 * NEWS: Mention that compare-sections now works with all targets.
6463 * remote.c (PACKET_qCRC): New enum value.
6464 (remote_verify_memory): Don't send qCRC if the target has no
6465 execution. Use packet_support/packet_ok. If the target doesn't
6466 support the qCRC packet, fallback to a deep memory copy.
6467 (compare_sections_command): Say "target image" instead of "remote
6469 (_initialize_remote): Add PACKET_qCRC to the list of config
6470 packets that have no associated command. Extend comment.
6471 * target.c (simple_verify_memory, default_verify_memory): New
6473 * target.h (struct target_ops) <to_verify_memory>: Default to
6474 default_verify_memory.
6475 (simple_verify_memory): New declaration.
6476 * target-delegates.c: Regenerate.
6478 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6480 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6482 2014-05-20 Hui Zhu <hui@codesourcery.com>
6483 Yao Qi <yao@codesourcery.com>
6486 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6487 and change address of sp and pc.
6489 2014-05-19 Tom Tromey <tromey@redhat.com>
6491 * gdbtypes.c (rank_function): Use XNEWVEC.
6492 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6494 2014-05-19 Doug Evans <dje@google.com>
6496 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6497 build_type_unit_groups and moved closer to only caller. Remove
6498 arguments. All references updated. Remove outdated .gdb_index
6500 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6501 build_type_psymtabs_1.
6503 2014-05-19 Doug Evans <dje@google.com>
6505 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6506 n_type_unit_groups, all_type_unit_groups. All uses removed.
6507 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6508 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6509 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6510 (add_type_unit_group_to_table): Delete.
6512 2014-05-19 Doug Evans <dje@google.com>
6514 * eval.c (evaluate_subexp_standard): Add some comments.
6516 2014-05-17 Doug Evans <xdje42@gmail.com>
6518 * progspace.c (remove_program_space): Delete, unused.
6519 * progspace.h (remove_program_space): Ditto.
6521 2014-05-17 Doug Evans <xdje42@gmail.com>
6523 * inferior.c (prune_inferiors): Fix comment.
6524 (remove_inferior_command): Call prune_program_spaces.
6526 2014-05-16 Doug Evans <dje@google.com>
6528 New command line option -D.
6530 * main.c (set_gdb_data_directory): New function.
6531 (captured_main): Recognize -D. Flag error for --data-directory "".
6532 Call set_gdb_data_directory.
6533 (print_gdb_help): Print --data-directory, -D.
6534 * main.h (set_gdb_data_directory): Declare.
6535 * top.c (staged_gdb_datadir): New static global.
6536 (set_gdb_datadir): Call set_gdb_data_directory
6537 (show_gdb_datadir): New function.
6538 (init_main): Update init of data-directory parameter.
6540 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
6542 Import the "dirfd" gnulib module.
6543 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
6544 * gnulib/aclocal.m4: Update.
6545 * gnulib/config.in: Update.
6546 * gnulib/configure: Update.
6547 * gnulib/import/Makefile.am: Update.
6548 * gnulib/import/Makefile.in: Update.
6549 * gnulib/import/dirfd.c: New.
6550 * gnulib/import/m4/dirfd.m4: New.
6551 * gnulib/import/m4/gnulib-cache.m4: Update.
6552 * gnulib/import/m4/gnulib-comp.m4: Update.
6554 2014-05-16 Pierre Muller <muller@sourceware.org>
6555 Yao Qi <yao@codesourcery.com>
6557 * valprint.c (print_wchar): Move the code on checking whether
6558 W is a printable wide char to the default branch of switch
6559 statement below. Call wchar_printable instead of gdb_iswprint.
6561 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
6563 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
6564 ldr.w and ldrd instructions.
6566 2014-05-15 Doug Evans <dje@google.com>
6568 * dwarf2read.c (read_structure_type): Delete outdated comments.
6570 2014-05-14 Tom Tromey <tromey@redhat.com>
6572 * macrocmd.c (print_macro_definition): Reindent.
6574 2014-05-13 Doug Evans <xdje42@gmail.com>
6576 * python/py-cmd.c (cmdpy_completer): Add comment.
6577 (completers): Make const.
6579 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
6581 * infrun.c (resume): Remove should_resume (unused). Move up
6582 declaration of resume_ptid.
6584 2014-05-13 Tom Tromey <tromey@redhat.com>
6586 * language.h (unop_type_check): Remove.
6587 (binop_type_check): Don't declare.
6589 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
6591 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
6592 call to regcache_raw_collect.
6594 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6596 * mi/mi-console.c (mi_console_raw_packet): Use the value from
6597 mi_console->quote as the quoting character.
6599 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
6601 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
6603 2014-04-29 Tom Tromey <tromey@redhat.com>
6605 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
6606 "show debug varobj".
6608 2014-05-07 Kyle McMartin <kyle@redhat.com>
6610 Pushed by Joel Brobecker <brobecker@adacore.com>.
6611 * aarch64-tdep.c (aarch64_software_single_step): New function.
6612 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
6613 with aarch64_software_single_step.
6615 2014-05-05 Joel Brobecker <brobecker@adacore.com>
6619 2014-05-05 Keith Seitz <keiths@redhat.com>
6621 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
6622 variable or history value is successfully parsed.
6624 2014-05-05 Yao Qi <yao@codesourcery.com>
6625 Pedro Alves <palves@redhat.com>
6627 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
6628 address of blocks that intersects the requested range. Trim
6629 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
6631 * ctf.c (ctf_xfer_partial): Likewise.
6633 2014-05-05 Yao Qi <yao@codesourcery.com>
6635 * printcmd.c (display_command): Remove the check to
6636 target_has_execution.
6638 2014-05-03 Mark Kettenis <kettenis@gnu.org>
6640 * ppcobsd-nat.c: Include "obsd-nat.h".
6641 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
6643 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6645 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6647 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
6648 and 16-bit signed and unsigned arguments. Update comment.
6649 (stap_parse_probe_arguments): Extend code to handle such
6650 arguments. Use warning instead of complaint to notify about
6651 unrecognized bitness.
6653 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
6655 PR breakpoints/16889
6656 * stap-probe.c (stap_parse_probe_arguments): Simplify
6657 check for non-prefixed probes (i.e., probes whose
6658 arguments do not start with "N@"). Always set the
6659 argument type to a sane value.
6661 2014-05-01 David Taylor <dtaylor@emc.com>
6663 * remote.c (compare_sections_command): Add -r option to compare
6664 all loadable read-only sections.
6666 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
6668 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
6669 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
6671 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
6672 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
6673 Remove unused CORE_ADDR argument. Update all callers.
6675 2014-04-29 Pedro Alves <palves@redhat.com>
6677 * remote.c (struct packet_config) <detect>: Extend comment.
6678 (add_packet_config_cmd): Don't set the config's detect or support
6680 (init_all_packet_configs): Also initialize the config's 'detect'
6682 (reset_all_packet_configs_support): New function.
6683 (remote_open_1): Call reset_all_packet_configs_support instead of
6684 init_all_packet_configs.
6685 (_initialize_remote): Initialize all packet configs. Assert that
6686 all packets have an associated command, except a few known
6689 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6691 * dwarf2read.c (read_subrange_type): Handle dynamic
6692 DW_AT_lower_bound attributes.
6694 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6696 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
6697 dynamic bounds before computing its upper bound.
6698 (ada_discrete_type_low_bound): Same as above with the lower bound.
6700 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6702 * dwarf2read.c (is_dynamic_type): Return true for dynamic
6703 range types. Adjust the array handling implementation to
6704 take advantage of this change.
6705 (resolve_dynamic_range): New function, mostly extracted from
6706 resolve_dynamic_bounds.
6707 (resolve_dynamic_array): New function, mostly extracted from
6708 resolve_dynamic_bounds.
6709 (resolve_dynamic_bounds): Delete.
6710 (resolve_dynamic_type): Reimplement. Add handling of
6711 TYPE_CODE_RANGE types.
6713 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6715 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
6716 handling of parallel ___XA types.
6718 2014-04-28 Joel Brobecker <brobecker@adacore.com>
6720 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
6721 unnecessary second call to static_unwrap_type.
6723 2014-04-27 Hui Zhu <hui@codesourcery.com>
6725 * stack.c (print_frame_info): Call do_gdb_disassembly with
6726 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
6728 2014-04-26 Doug Evans <xdje42@gmail.com>
6730 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
6732 2014-04-25 Pedro Alves <palves@redhat.com>
6735 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
6736 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
6737 and newline from built string.
6738 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
6739 (linux_ptrace_attach_fail_reason): ... this.
6740 * linux-nat.c (linux_nat_attach): Adjust to use
6741 linux_ptrace_attach_fail_reason.
6743 2014-04-25 Pedro Alves <palves@redhat.com>
6745 * remote.c (struct remote_state): Remove multi_process_aware,
6746 non_stop_aware, cond_tracepoints, cond_breakpoints,
6747 breakpoint_commands, fast_tracepoints, static_tracepoints,
6748 install_in_trace, disconnected_tracing,
6749 enable_disable_tracepoints, string_tracing, and
6750 augmented_libraries_svr4_read fields.
6751 (remote_multi_process_p): Move further below in the file.
6752 (struct packet_config): Add comments.
6753 (update_packet_config): Delete function.
6754 (show_packet_config_cmd): Use packet_config_support.
6755 (add_packet_config_cmd): Use NULL as set callback.
6756 (packet_ok): "set remote foo-packet"-style commands no longer
6757 change config->supported -- adjust.
6758 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6759 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6760 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6761 (PACKET_QNonStop, PACKET_multiprocess_feature)
6762 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6763 (PACKET_DisconnectedTracing_feature)
6764 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6765 (set_remote_protocol_packet_cmd): Delete function.
6766 (packet_config_support, packet_support): New functions.
6767 (set_remote_protocol_Z_packet_cmd): Don't call
6768 update_packet_config.
6769 (remote_query_attached, remote_pass_signals)
6770 (remote_program_signals, remote_threads_info)
6771 (remote_threads_extra_info, remote_start_remote): Use
6773 (remote_start_remote): Use packet_config_support and
6775 (init_all_packet_configs): Set all packets to unknown support,
6776 instead of calling update_packet_config.
6777 (remote_check_symbols): Use packet_support.
6778 (remote_supported_packet): Unconditionally set the packet config's
6780 (remote_multi_process_feature, remote_non_stop_feature)
6781 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6782 (remote_breakpoint_commands_feature)
6783 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6784 (remote_install_in_trace_feature)
6785 (remote_disconnected_tracing_feature)
6786 (remote_enable_disable_tracepoint_feature)
6787 (remote_string_tracing_feature)
6788 (remote_augmented_libraries_svr4_read_feature): Delete functions.
6789 (remote_protocol_features): Adjust to use remote_supported_packet
6790 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6791 "ConditionalTracepoints", "ConditionalBreakpoints",
6792 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6793 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6794 "EnableDisableTracepoints", and "tracenz".
6795 (remote_query_supported): Use packet_support.
6796 (remote_open_1): Adjust.
6797 (extended_remote_attach_1): Use packet_support. Switch on the
6798 result of packet_ok instead of checking whether the packet ended
6800 (remote_vcont_resume): Use packet_support.
6801 (remote_resume, remote_stop_ns, fetch_register_using_p)
6802 (remote_prepare_to_store, store_register_using_P)
6803 (check_binary_download, remote_write_bytes): Use packet_support.
6804 (remote_vkill): Use packet_support. Switch on the result of
6805 packet_ok instead of checking whether the packet ended up
6807 (extended_remote_supports_disable_randomization): Use
6809 (extended_remote_run): Switch on the result of packet_ok instead
6810 of checking whether the packet ended up disabled.
6811 (remote_insert_breakpoint, remote_remove_breakpoint)
6812 (remote_insert_watchpoint, remote_remove_watchpoint)
6813 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6815 (remote_search_memory): Use packet_config_support.
6816 (remote_get_thread_local_address, remote_get_tib_address)
6817 (remote_hostio_send_command, remote_can_execute_reverse): Use
6819 (remote_supports_cond_tracepoints)
6820 (remote_supports_cond_breakpoints)
6821 (remote_supports_fast_tracepoints)
6822 (remote_supports_static_tracepoints)
6823 (remote_supports_install_in_trace)
6824 (remote_supports_enable_disable_tracepoint)
6825 (remote_supports_string_tracing)
6826 (remote_can_run_breakpoint_commands): Rewrite, checking whether
6827 the packet config says the feature is enabled or disabled.
6828 (remote_download_tracepoint, remote_trace_set_readonly_regions)
6829 (remote_get_trace_status): Use packet_support.
6830 (remote_set_disconnected_tracing): Adjust to check whether the
6831 feature is enabled with packet_support.
6832 (remote_set_trace_buffer_size, remote_use_agent)
6833 (remote_can_use_agent, remote_supports_btrace): Use
6835 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6836 Use packet_config_support.
6837 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6838 the packet config says the feature is enabled or disabled.
6839 (set_range_stepping): Use packet_support.
6841 2014-04-25 Tom Tromey <tromey@redhat.com>
6843 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6846 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
6848 * NEWS: Mention support for C99 variable length arrays.
6850 2014-04-24 Joel Brobecker <brobecker@adacore.com>
6852 * ada-lang.c (standard_exc): Expand introductory comment.
6854 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
6855 Walfred Tedeschi <walfred.tedeschi@intel.com>
6857 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6859 (amd64_linux_read_description): Add code to handle AVX512 xstate
6860 mask and return respective tdesc.
6861 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6862 and features/i386/x32-avx512-linux.c.
6863 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6864 (amd64_linux_core_read_description): Add code to handle AVX512
6865 xstate mask and return respective tdesc.
6866 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6867 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6869 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6870 (tdesc_amd64_avx512_linux): New prototype.
6871 (tdesc_x32_avx512_linux): Likewise.
6872 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6873 features/i386/x32-avx512.c.
6874 (amd64_ymm_avx512_names): New register names for pseudo
6876 (amd64_ymmh_avx512_names): New register names for raw registers
6878 (amd64_k_names): New register names for K registers.
6879 (amd64_zmmh_names): New register names for ZMM raw registers.
6880 (amd64_zmm_names): New registers names for ZMM pseudo registers.
6881 (amd64_xmm_avx512_names): New register names for XMM16-31
6883 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6885 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6886 if feature is present.
6887 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6888 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6889 (AMD64_NUM_REGS): Adjust to new number of registers.
6890 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6891 registers supplied via XSTATE by AVX512 registers.
6892 (i386_linux_read_description): Add case for AVX512.
6893 * i386-linux-tdep.c: Include i386-avx512-linux.c.
6894 (i386_linux_gregset_reg_offset): Add AVX512 registers.
6895 (i386_linux_core_read_description): Add case for AVX512.
6896 (i386_linux_init_abi): Install supported register note section
6898 (_initialize_i386_linux_tdep): Add call to tdesc init function for
6900 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6901 registers to be number of zmm7h + 1.
6902 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6903 * i386-tdep.c: Include features/i386/i386-avx512.c.
6904 (i386_zmm_names): Add ZMM pseudo register names array.
6905 (i386_zmmh_names): Add ZMM raw register names array.
6906 (i386_k_names): Add K raw register names array.
6907 (num_lower_zmm_regs): Add constant for the number of lower ZMM
6908 registers. AVX512 has 16 more ZMM registers than there are YMM
6910 (i386_zmmh_regnum_p): Add function to look up register number of
6912 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6913 (i386_k_regnum_p): Likewise for K raw registers.
6914 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6915 registers added by AVX512.
6916 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6917 registers added by AVX512.
6918 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6920 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6921 (i386_pseudo_register_name): Add ZMM pseudo registers.
6922 (i386_zmm_type): Construct and return vector registers type for ZMM
6924 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6925 ZMM0-31 pseudo registers and K registers.
6926 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6927 and YMM16-31 registers from register cache.
6928 (i386_pseudo_register_write): Add code to write K, ZMM and
6930 (i386_register_reggroup_p): Add code to include/exclude AVX512
6931 registers in/from respective register groups.
6932 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6933 registers if feature is present in xcr0.
6934 (i386_gdbarch_init): Add code to initialize AVX512 feature
6935 variables in tdep structure, wire in pseudo registers and call
6936 initialize_tdesc_i386_avx512.
6937 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6939 (i386_regnum): Add AVX512 registers.
6940 (I386_SSE_NUM_REGS): New define for number of SSE registers.
6941 (I386_AVX_NUM_REGS): Likewise for AVX registers.
6942 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6943 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6945 (i386_xmm_avx512_regnum_p): New prototype for register look up.
6946 (i386_ymm_avx512_regnum_p): Likewise.
6947 (i386_k_regnum_p): Likewise.
6948 (i386_zmm_regnum_p): Likewise.
6949 (i386_zmmh_regnum_p): Likewise.
6950 * i387-tdep.c : Update year in copyright notice.
6951 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6953 (XSAVE_YMM_AVX512_ADDR): New macro.
6954 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6956 (XSAVE_XMM_AVX512_ADDR): New macro.
6957 (xsave_avx512_k_offset): New table for K register offsets in
6959 (XSAVE_AVX512_K_ADDR): New macro.
6960 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6962 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6963 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6965 (i387_collect_xsave): Add code to collect AVX512 registers from
6967 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6968 of XMM16-31 registers.
6969 (I387_NUM_K_REGS): New define for number of K registers.
6970 (I387_K0_REGNUM): New define for K0 register number.
6971 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6972 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6973 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6975 (I387_YMM16H_REGNUM): New define for YMM16H register number.
6976 (I387_XMM16_REGNUM): New define for XMM16 register number.
6977 (I387_YMM0_REGNUM): New define for YMM0 register number.
6978 (I387_KEND_REGNUM): New define for last K register number.
6979 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6980 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6982 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6984 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6986 * features/Makefile: Add AVX512 related files.
6987 * features/i386/32bit-avx512.xml: New file.
6988 * features/i386/64bit-avx512.xml: Likewise.
6989 * features/i386/amd64-avx512-linux.c: Likewise.
6990 * features/i386/amd64-avx512-linux.xml: Likewise.
6991 * features/i386/amd64-avx512.c: Likewise.
6992 * features/i386/amd64-avx512.xml: Likewise.
6993 * features/i386/i386-avx512-linux.c: Likewise.
6994 * features/i386/i386-avx512-linux.xml: Likewise.
6995 * features/i386/i386-avx512.c: Likewise.
6996 * features/i386/i386-avx512.xml: Likewise.
6997 * features/i386/x32-avx512-linux.c: Likewise.
6998 * features/i386/x32-avx512-linux.xml: Likewise.
6999 * features/i386/x32-avx512.c: Likewise.
7000 * features/i386/x32-avx512.xml: Likewise.
7001 * regformats/i386/amd64-avx512-linux.dat: New file.
7002 * regformats/i386/amd64-avx512.dat: Likewise.
7003 * regformats/i386/i386-avx512-linux.dat: Likewise.
7004 * regformats/i386/i386-avx512.dat: Likewise.
7005 * regformats/i386/x32-avx512-linux.dat: Likewise.
7006 * regformats/i386/x32-avx512.dat: Likewise.
7007 * NEWS: Add note about new support for AVX512.
7010 2014-04-23 Pedro Alves <palves@redhat.com>
7012 * breakpoint.c (insert_bp_location): Tolerate errors if the
7013 breakpoint is set in a user-loaded objfile.
7014 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7015 location is marked shlib_disabled. If the breakpoint is set in a
7016 user-loaded objfile is a GDB-side memory breakpoint, validate it
7017 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7018 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7020 * mem-break.c (memory_validate_breakpoint): New function.
7021 * objfiles.c (userloaded_objfile_contains_address_p): New
7023 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7024 * target.h (memory_validate_breakpoint): New declaration.
7026 2014-04-23 Pedro Alves <palves@redhat.com>
7028 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7029 the breakpoint is set in a shared library, only suppress
7030 errors for software breakpoints, not hardware breakpoints.
7032 2014-04-22 Pedro Alves <palves@redhat.com>
7034 * infrun.c (schedlock_applies): New function, factored out from
7035 find_thread_needs_step_over.
7036 (find_thread_needs_step_over): Use it.
7037 (switch_back_to_stepped_thread): Always clear trap_expected if the
7038 step over is finished. Return early if scheduler locking applies.
7039 Look for the stepping thread and a potential step-over thread with
7041 (currently_stepping_or_nexting_callback): Delete.
7043 2014-04-22 Nick Clifton <nickc@redhat.com>
7045 * NEWS: Mention that ARM sim now supports tracing.
7047 2014-04-22 Yao Qi <yao@codesourcery.com>
7049 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7051 * tracefile.c (tracefile_fetch_registers): ... it. New
7053 * tracefile.h (tracefile_fetch_registers): Declare.
7054 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7055 tracefile_fetch_registers.
7057 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7060 * windows-nat.c (thread_rec): Don't display a warning when
7061 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7062 fails for any reason, set th->suspended to -1, so that we don't
7063 try to resume such a thread. Also, don't return NULL in these
7064 cases, to avoid completely ruin the session due to "PC register is
7065 not available" error.
7066 (do_windows_fetch_inferior_registers): Check errors in
7067 GetThreadContext call.
7068 (windows_continue): Accept an additional argument KILLED; if not
7069 zero, ignore errors in the SetThreadContext call, since the
7070 inferior was killed and is shutting down.
7071 (windows_resume, get_windows_debug_event)
7072 (windows_create_inferior, windows_mourn_inferior)
7073 (windows_kill_inferior): All callers of windows_continue changed
7074 to adjust to its new calling sequence.
7076 2014-04-19 Yao Qi <yao@codesourcery.com>
7078 * ctf.c (ctf_open): Call post_create_inferior.
7080 2014-04-19 Yao Qi <yao@codesourcery.com>
7082 * ctf.c (handle_id): New static variable.
7083 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7084 value. Get the declaration of event "register" and get length
7085 of field "contents".
7087 2014-04-19 Yao Qi <yao@codesourcery.com>
7089 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7091 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7093 * valops.c (oload_method_static): Remove unnecessary argument
7094 METHOD. Update all callers.
7096 2014-04-18 Pedro alves <palves@redhat.com>
7097 Tom Tromey <tromey@redhat.com>
7100 * frame.c (get_prev_frame_1): Rename to ...
7101 (get_prev_frame_always): ... this, and make extern. Adjust.
7102 (skip_artificial_frames): Use get_prev_frame_always.
7103 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7104 (get_frame_unwind_stop_reason): Adjust to rename.
7105 * frame.h (get_prev_frame_always): Declare.
7106 * inline-frame.c: Include frame.h.
7107 (inline_frame_this_id): Use get_prev_frame_always.
7109 2014-04-18 Tristan Gingold <gingold@adacore.com>
7111 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7112 code by using bfd_mach_o_get_base_address.
7114 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7116 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7117 (spu_ax_pseudo_register_collect): New function.
7118 (spu_ax_pseudo_register_push_stack): Likewise.
7119 (spu_dwarf_reg_to_regnum): Likewise.
7120 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7122 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7124 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7125 Replace FRAME argument with FRAME_ID.
7126 * gdbarch.c, gdbarch.h: Regenerate.
7127 * findvar.c (default_value_from_register): Add GDBARCH argument;
7128 replace FRAME by FRAME_ID. No longer call get_frame_id.
7129 (value_from_register): Update call to gdbarch_value_from_register.
7130 * value.h (default_value_from_register): Update prototype.
7131 * s390-linux-tdep.c (s390_value_from_register): Update interface
7132 and call to default_value_from_register.
7133 * spu-tdep.c (spu_value_from_register): Likewise.
7135 * findvar.c (address_from_register): Remove TYPE argument.
7136 Do not call value_from_register; use gdbarch_value_from_register
7137 with null_frame_id instead.
7138 * value.h (address_from_register): Update prototype.
7139 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7140 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7141 address_from_register interface change.
7143 2014-04-17 Yao Qi <yao@codesourcery.com>
7145 * gdbtypes.h: Update comments to link to types and macros'
7148 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7150 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7152 2014-04-16 Keith Seitz <keiths@redhat.com>
7155 * dwarf2read.c (skip_one_die): Check that all relative-offset
7156 sibling DIEs fall within range of the current reader's buffer.
7157 (read_partial_die): Likewise.
7159 2014-04-16 Keith Seitz <keiths@redhat.com>
7162 * cp-namespace.c (lookup_symbol_file): If the type name of
7163 `this' is NULL, return immediately.
7165 2014-04-14 Keith Seitz <keiths@redhat.com>
7168 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7169 from symbol_matches_domain in symtab.c. All local callers
7170 of symbol_matches_domain updated.
7171 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7172 search STRUCT_DOMAIN.
7173 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7174 independently. standard_lookup will do that automatically.
7175 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7176 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7177 (cp_lookup_symbol_in_namespace): Likewise.
7178 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7179 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7180 may return a STRUCT_DOMAIN match.
7181 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7182 * cp-support.c: Include language.h.
7183 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7185 * psymtab.c (match_partial_symbol): Compare the requested
7186 domain with the symbol's domain directly.
7187 (lookup_partial_symbol): Likewise.
7188 * symtab.c (lookup_symbol_in_language): Explain when/why
7189 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7190 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7191 appropriate languages.
7192 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7193 and moved to ada-lang.c
7194 (lookup_block_symbol): Explain that this function only returns
7195 symbol matching the requested DOMAIN.
7196 Compare the requested domain with the symbol's domain directly.
7197 (iterate_over_symbols): Compare the requested domain with the
7198 symbol's domain directly.
7199 * symtab.h (symbol_matches_domain): Remove.
7201 2014-04-14 Tom Tromey <tromey@redhat.com>
7204 * c-exp.y (type_aggregate_p): New function.
7205 (qualified_name, classify_inner_name): Use it.
7206 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7207 and TYPE_TARGET_TYPE of an enum type.
7208 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7210 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7211 handle TYPE_DECLARED_CLASS.
7212 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7214 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7215 * valops.c (enum_constant_from_type): New function.
7216 (value_aggregate_elt): Use it.
7217 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7220 2014-04-14 Tom Tromey <tromey@redhat.com>
7222 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7223 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7225 * value.h (value_aggregate_elt): Update.
7227 2014-04-14 Tom Tromey <tromey@redhat.com>
7229 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7231 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7233 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7234 (evaluate_subexp_standard): Pass noside argument.
7235 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7236 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7237 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7238 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7239 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7241 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7243 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7244 points to a constant blob.
7246 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7248 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7249 property and store it as the high bound and flag the range accordingly.
7250 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7251 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7252 * gdbtypes.h (enum range_flags): New enum.
7253 (struct range_bounds): Add flags member.
7255 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7257 * c-typeprint.c (c_type_print_varspec_suffix): Added
7258 check for not yet resolved high bound. If unresolved, print
7259 "variable length" string to the console instead of random
7262 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7264 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7266 (ada_template_to_fixed_record_type_1): Likewise.
7267 (ada_to_fixed_type_1): Likewise.
7268 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7269 (cp_print_value): Likewise.
7270 * d-valprint.c (dynamic_array_type): Likewise.
7271 * findvar.c (address_of_variable): Likewise.
7272 * jv-valprint.c (java_value_print): Likewise.
7273 * valops.c (value_ind): Likewise.
7274 * value.c (coerce_ref): Likewise.
7276 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7278 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7279 value and retrieve the dynamic type size.
7281 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7283 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7284 passed to sizeof is dynamic evaluate the argument to compute the length.
7286 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7287 Joel Brobecker <brobecker@adacore.com>
7289 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7290 (dwarf2_evaluate_property): New function.
7291 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7292 * dwarf2read.c (attr_to_dynamic_prop): New function.
7293 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7295 * gdbtypes.c: Include dwarf2loc.h.
7296 (is_dynamic_type): New function.
7297 (resolve_dynamic_type): New function.
7298 (resolve_dynamic_bounds): New function.
7299 (get_type_length): New function.
7300 (check_typedef): Use get_type_length to compute type length.
7301 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7302 (TYPE_LOW_BOUND_KIND): New macro.
7303 (is_dynamic_type): New function prototype.
7304 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7305 to resolve dynamic properties of the type. Update comment.
7306 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7308 2014-04-14 Richard Henderson <rth@redhat.com>
7310 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7312 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7313 Doug Evans <xdje42@gmail.com>
7315 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7316 dereference TYPE_CODE_REF values.
7318 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7320 Revert the following changes due to regressions:
7322 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7323 (dwarf2_evaluate_property): New function.
7324 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7325 * dwarf2read.c (attr_to_dynamic_prop): New function.
7326 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7328 * gdbtypes.c: Include dwarf2loc.h.
7329 (is_dynamic_type): New function.
7330 (resolve_dynamic_type): New function.
7331 (resolve_dynamic_bounds): New function.
7332 (get_type_length): New function.
7333 (check_typedef): Use get_type_length to compute type length.
7334 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7335 (TYPE_LOW_BOUND_KIND): New macro.
7336 (is_dynamic_type): New function prototype.
7337 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7338 to resolve dynamic properties of the type. Update comment.
7339 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7341 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7342 passed to sizeof is dynamic evaluate the argument to compute the length.
7344 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7345 value and retrieve the dynamic type size.
7347 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7348 (ada_template_to_fixed_record_type_1): Likewise.
7349 (ada_to_fixed_type_1): Likewise.
7350 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7351 (cp_print_value): Likewise.
7352 * d-valprint.c (dynamic_array_type): Likewise.
7353 * eval.c (evaluate_subexp_with_coercion): Likewise.
7354 * findvar.c (address_of_variable): Likewise.
7355 * jv-valprint.c (java_value_print): Likewise.
7356 * valops.c (value_ind): Likewise.
7357 * value.c (coerce_ref): Likewise.
7359 * c-typeprint.c (c_type_print_varspec_suffix): Added
7360 check for not yet resolved high bound. If unresolved, print
7361 "variable length" string to the console instead of random
7364 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7365 property and store it as the high bound and flag the range accordingly.
7366 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7367 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7368 * gdbtypes.h (enum range_flags): New enum.
7369 (struct range_bounds): Add flags member.
7371 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7372 points to a constant blob.
7374 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7375 (evaluate_subexp_standard): Pass noside argument.
7376 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7377 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7378 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7379 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7380 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7382 2014-04-11 Keith Seitz <keiths@redhat.com>
7385 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7386 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7389 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7391 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7392 (evaluate_subexp_standard): Pass noside argument.
7393 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7394 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7395 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7396 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7397 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7399 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7401 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7402 points to a constant blob.
7404 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7406 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7407 property and store it as the high bound and flag the range accordingly.
7408 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7409 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7410 * gdbtypes.h (enum range_flags): New enum.
7411 (struct range_bounds): Add flags member.
7413 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7415 * c-typeprint.c (c_type_print_varspec_suffix): Added
7416 check for not yet resolved high bound. If unresolved, print
7417 "variable length" string to the console instead of random
7420 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7422 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7423 (ada_template_to_fixed_record_type_1): Likewise.
7424 (ada_to_fixed_type_1): Likewise.
7425 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7426 (cp_print_value): Likewise.
7427 * d-valprint.c (dynamic_array_type): Likewise.
7428 * eval.c (evaluate_subexp_with_coercion): Likewise.
7429 * findvar.c (address_of_variable): Likewise.
7430 * jv-valprint.c (java_value_print): Likewise.
7431 * valops.c (value_ind): Likewise.
7432 * value.c (coerce_ref): Likewise.
7434 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7436 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7437 value and retrieve the dynamic type size.
7439 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7441 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7442 passed to sizeof is dynamic evaluate the argument to compute the length.
7444 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7446 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7447 (dwarf2_evaluate_property): New function.
7448 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7449 * dwarf2read.c (attr_to_dynamic_prop): New function.
7450 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7452 * gdbtypes.c: Include dwarf2loc.h.
7453 (is_dynamic_type): New function.
7454 (resolve_dynamic_type): New function.
7455 (resolve_dynamic_bounds): New function.
7456 (get_type_length): New function.
7457 (check_typedef): Use get_type_length to compute type length.
7458 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7459 (TYPE_LOW_BOUND_KIND): New macro.
7460 (is_dynamic_type): New function prototype.
7461 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7462 to resolve dynamic properties of the type. Update comment.
7463 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7465 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7467 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7468 declaring high/low bounds and change uses accordingly. Call
7469 create_range_type instead of create_static_range_type.
7470 * gdbtypes.c (create_range_type): New function.
7471 (create_range_type): Convert bounds into struct bound_prop and pass
7472 them to create_range_type.
7473 * gdbtypes.h (struct bound_prop): New struct.
7474 (create_range_type): New function prototype.
7475 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7476 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7477 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7479 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7481 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7483 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7484 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7485 * ada-lang.c: All uses of create_range_type updated.
7486 * coffread.c: All uses of create_range_type updated.
7487 * dwarf2read.c: All uses of create_range_type updated.
7488 * f-exp.y: All uses of create_range_type updated.
7489 * m2-valprint.c: All uses of create_range_type updated.
7490 * mdebugread.c: All uses of create_range_type updated.
7491 * stabsread.c: All uses of create_range_type updated.
7492 * valops.c: All uses of create_range_type updated.
7493 * valprint.c: All uses of create_range_type updated.
7495 2014-04-10 Pedro Alves <palves@redhat.com>
7497 * breakpoint.c (single_step_breakpoints)
7498 (single_step_gdbarch): Move up in the file.
7499 (one_breakpoint_xfer_memory): New function, factored out from ...
7500 (breakpoint_xfer_memory): ... here. Also process single-step
7503 2014-04-09 Tristan Gingold <gingold@adacore.com>
7505 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7507 (darwin_decode_exception_message): Free port only after use.
7509 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7511 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7512 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7513 when setting the size of call_length.
7515 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7517 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7518 dereference TYPE_CODE_REF values.
7520 2014-04-07 Joel Brobecker <brobecker@adacore.com>
7522 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7523 end of warning message.
7525 2014-04-03 Doug Evans <dje@google.com>
7527 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7528 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7530 2014-04-02 Alan Modra <amodra@gmail.com>
7532 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7533 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7534 (struct symbol_file_add_from_memory_args): Add size field.
7535 (find_vdso_size): New function.
7536 (add_vsyscall_page): Attempt to find vdso size.
7538 2014-04-01 Doug Evans <dje@google.com>
7540 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
7542 2014-04-01 Tristan Gingold <gingold@adacore.com>
7544 * darwin-nat.c (darwin_encode_reply): Add prototype.
7545 (darwin_decode_exception_message): Reply to unknown inferiors.
7546 (darwin_decode_message): Handle message by id. Ignore message
7547 to unknown inferior.
7548 (darwin_wait): Discard unknown messages, add debug trace.
7550 2014-03-31 Doug Evans <dje@google.com>
7552 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
7555 2014-03-31 Doug Evans <dje@google.com>
7557 New option "set print symbol-loading".
7559 * solib.c (solib_read_symbols): Only print symbol loading messages
7561 (solib_add): If symbol loading is in "brief" mode, notify user
7562 symbols are being loaded.
7563 (reload_shared_libraries_1): Ditto.
7564 * symfile.c (print_symbol_loading_off): New static global.
7565 (print_symbol_loading_brief): New static global.
7566 (print_symbol_loading_full): New static global.
7567 (print_symbol_loading_enums): New static global.
7568 (print_symbol_loading): New static global.
7569 (print_symbol_loading_p): New function.
7570 (symbol_file_add_with_addrs): Only print symbol loading messages
7572 (_initialize_symfile): Register "print symbol-loading" set/show
7574 * symfile.h (print_symbol_loading_p): Declare.
7576 2014-03-30 Doug Evans <xdje42@gmail.com>
7578 * infrun.c (set_last_target_status): New function.
7579 (handle_inferior_event): Call it.
7581 2014-03-30 Doug Evans <xdje42@gmail.com>
7583 * inferior.h (enum stop_kind): Improve comment.
7585 2014-03-28 Joel Brobecker <brobecker@adacore.com>
7587 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
7588 a reference, strip the reference layer before calling
7589 the lang_ops value_has_mutated callback.
7591 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
7593 Remove some globals from our parser.
7594 * language.c (unk_lang_parser): Add "struct parser_state"
7596 * language.h (struct language_defn) <la_parser>: Likewise.
7597 * parse.c (expout, expout_size, expout_ptr): Remove variables.
7598 (initialize_expout): Add "struct parser_state" argument.
7599 Rewrite function to use the parser state.
7600 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
7601 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
7602 write_exp_elt_longcst, write_exp_elt_dblcst,
7603 write_exp_elt_decfloatcst, write_exp_elt_type,
7604 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7605 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
7606 write_dollar_variable): Likewise.
7607 (parse_exp_in_context_1): Use parser state.
7608 (insert_type_address_space): Add "struct parser_state" argument.
7610 (increase_expout_size): New function.
7611 * parser-defs.h: Forward declare "struct language_defn" and
7612 "struct parser_state".
7613 (expout, expout_size, expout_ptr): Remove extern declarations.
7614 (parse_gdbarch, parse_language): Rewrite macro declarations to
7615 accept the parser state.
7616 (struct parser_state): New struct.
7617 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
7618 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
7619 write_exp_elt_decfloatcst, write_exp_elt_type,
7620 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
7621 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
7622 write_exp_msymbol, write_dollar_variable,
7623 mark_struct_expression, insert_type_address_space): Add "struct
7624 parser_state" argument.
7625 (increase_expout_size): New function.
7626 * utils.c (do_clear_parser_state): New function.
7627 (make_cleanup_clear_parser_state): Likewise.
7628 * utils.h (make_cleanup_clear_parser_state): New function
7630 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
7631 Update calls to write_exp* in order to pass the parser state.
7632 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
7633 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
7634 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7635 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
7636 * stap-probe.c (stap_parse_register_operand): Likewise.
7637 (stap_parse_single_operand): Likewise.
7638 (stap_parse_argument_1): Likewise.
7639 (stap_parse_argument): Use parser state.
7640 * stap-probe.h: Include "parser-defs.h".
7641 (struct stap_parse_info) <pstate>: New field.
7642 * c-exp.y (parse_type): Rewrite to use parser state.
7643 (yyparse): Redefine to c_parse_internal.
7644 (pstate): New global variable.
7645 (parse_number): Add "struct parser_state" argument.
7646 (write_destructor_name): Likewise.
7647 (type_exp): Update calls to write_exp* and similars in order to
7649 (exp1, exp, variable, qualified_name, space_identifier,
7650 typename, typebase): Likewise.
7651 (write_destructor_name, parse_number, lex_one_token,
7652 classify_name, classify_inner_name, c_parse): Add "struct
7653 parser_state" argument. Update function to use parser state.
7654 * c-lang.h: Forward declare "struct parser_state".
7655 (c_parse): Add "struct parser_state" argument.
7656 * ada-exp.y (parse_type): Rewrite macro to use parser state.
7657 (yyparse): Redefine macro to ada_parse_internal.
7658 (pstate): New variable.
7659 (write_int, write_object_renaming, write_var_or_type,
7660 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
7661 type_int, type_long, type_long_long, type_float, type_double,
7662 type_long_double, type_char, type_boolean, type_system_address):
7663 Add "struct parser_state" argument.
7664 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
7665 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
7666 var_or_type, aggregate, aggregate_component_list,
7667 positional_list, others, component_group,
7668 component_associations): Update calls to write_exp* and similar
7669 functions in order to use parser state.
7670 (ada_parse, write_var_from_sym, write_int,
7671 write_exp_op_with_string, write_object_renaming,
7672 find_primitive_type, write_selectors, write_ambiguous_var,
7673 write_var_or_type, write_name_assoc, type_int, type_long,
7674 type_long_long, type_float, type_double, type_long_double,
7675 type_char, type_boolean, type_system_address): Add "struct
7676 parser_state" argument. Adjust function to use parser state.
7677 * ada-lang.c (parse): Likewise.
7678 * ada-lang.h: Forward declare "struct parser_state".
7679 (ada_parse): Add "struct parser_state" argument.
7680 * ada-lex.l (processInt, processReal): Likewise. Adjust all
7681 calls to both functions.
7682 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
7684 (yyparse): Redefine macro to f_parse_internal.
7685 (pstate): New variable.
7686 (parse_number): Add "struct parser_state" argument.
7687 (type_exp, exp, subrange, typebase): Update calls to write_exp*
7688 and similars in order to use parser state.
7689 (parse_number): Adjust code to use parser state.
7691 (f_parse): New function.
7692 * f-lang.h: Forward declare "struct parser_state".
7693 (f_parse): Add "struct parser_state" argument.
7694 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
7696 (yyparse): Redefine macro for java_parse_internal.
7697 (pstate): New variable.
7698 (push_expression_name, push_expression_name, insert_exp): Add
7699 "struct parser_state" argument.
7700 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
7701 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
7702 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
7703 PostIncrementExpression, PostDecrementExpression,
7704 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
7705 UnaryExpressionNotPlusMinus, CastExpression,
7706 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
7707 RelationalExpression, EqualityExpression, AndExpression,
7708 ExclusiveOrExpression, InclusiveOrExpression,
7709 ConditionalAndExpression, ConditionalOrExpression,
7710 ConditionalExpression, Assignment, LeftHandSide): Update
7711 calls to write_exp* and similars in order to use parser state.
7712 (parse_number): Ajust code to use parser state.
7714 (java_parse): New function.
7715 (push_variable): Add "struct parser_state" argument. Adjust
7716 code to user parser state.
7717 (push_fieldnames, push_qualified_expression_name,
7718 push_expression_name, insert_exp): Likewise.
7719 * jv-lang.h: Forward declare "struct parser_state".
7720 (java_parse): Add "struct parser_state" argument.
7721 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
7723 (yyparse): Redefine macro to m2_parse_internal.
7724 (pstate): New variable.
7725 (type_exp, exp, fblock, variable, type): Update calls to
7726 write_exp* and similars to use parser state.
7728 (m2_parse): New function.
7729 * m2-lang.h: Forward declare "struct parser_state".
7730 (m2_parse): Add "struct parser_state" argument.
7731 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
7732 * objc-lang.h: Forward declare "struct parser_state".
7733 (end_msglist): Add "struct parser_state" argument.
7734 * p-exp.y (parse_type): Rewrite macro to use parser state.
7735 (yyparse): Redefine macro to pascal_parse_internal.
7736 (pstate): New variable.
7737 (parse_number): Add "struct parser_state" argument.
7738 (type_exp, exp1, exp, qualified_name, variable): Update calls to
7739 write_exp* and similars in order to use parser state.
7740 (parse_number, yylex): Adjust code to use parser state.
7741 (pascal_parse): New function.
7742 * p-lang.h: Forward declare "struct parser_state".
7743 (pascal_parse): Add "struct parser_state" argument.
7744 * go-exp.y (parse_type): Rewrite macro to use parser state.
7745 (yyparse): Redefine macro to go_parse_internal.
7746 (pstate): New variable.
7747 (parse_number): Add "struct parser_state" argument.
7748 (type_exp, exp1, exp, variable, type): Update calls to
7749 write_exp* and similars in order to use parser state.
7750 (parse_number, lex_one_token, classify_name, yylex): Adjust code
7751 to use parser state.
7752 (go_parse): Likewise.
7753 * go-lang.h: Forward declare "struct parser_state".
7754 (go_parse): Add "struct parser_state" argument.
7756 2014-03-27 Doug Evans <dje@google.com>
7758 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
7760 2014-03-27 Doug Evans <dje@google.com>
7762 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7763 Remove argument abbrev_section. All callers updated.
7765 2014-03-27 Doug Evans <dje@google.com>
7767 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7768 addr_base, ranges_base.
7770 2014-03-26 Keith Seitz <keiths@redhat.com>
7772 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7773 types, not VAR_DOMAIN.
7775 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
7777 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7779 * features/nios2-linux.c: Regenerated.
7780 * features/nios2.c: Regenerated.
7782 2014-03-25 Pedro Alves <palves@redhat.com>
7784 * cli/cli-script.c (script_from_file): Force the interpreter to
7787 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7789 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7790 small stack allocation.
7792 2014-03-24 Tristan Gingold <gingold@adacore.com>
7794 * darwin-nat.c (exc_server): Remove unused prototype.
7795 (darwin_dump_message): Correctly display data on x86_64.
7796 (darwin_encode_reply): Fix style.
7797 Add comments and fix indentation.
7799 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
7801 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7803 2014-03-22 Doug Evans <xdje42@gmail.com>
7805 * infcmd.c: Whitespace fixes.
7806 (interrupt_command): Merge two function comments into one.
7808 2014-03-22 Doug Evans <xdje42@gmail.com>
7810 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7813 2014-03-22 Yao Qi <yao@codesourcery.com>
7815 * remote.c (target_read_live_memory): Remove.
7816 (memory_xfer_live_readonly_partial): Rename it to
7817 remote_xfer_live_readonly_partial. Remove argument 'object'.
7818 All callers updated. Call remote_read_bytes_1
7819 instead of target_read_live_memory.
7820 * tracepoint.c (set_traceframe_number): Remove.
7821 (make_cleanup_restore_traceframe_number): Likewise .
7822 * tracepoint.h (set_traceframe_number): Remove declaration.
7823 (make_cleanup_restore_traceframe_number): Likewise.
7825 2014-03-22 Yao Qi <yao@codesourcery.com>
7827 * remote.c (remote_read_bytes): Move code on reading from the
7829 (remote_read_bytes_1): ... here. New function.
7831 2014-03-22 Yao Qi <yao@codesourcery.com>
7833 * ctf.c (ctf_xfer_partial): Check the return value of
7834 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7835 return TARGET_XFER_UNAVAILABLE.
7836 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7837 * target.c (target_read_live_memory): Move it to remote.c.
7838 (memory_xfer_live_readonly_partial): Likewise.
7839 (memory_xfer_partial_1): Move some code to remote_read_bytes.
7840 * remote.c (target_read_live_memory): Moved from target.c.
7841 (memory_xfer_live_readonly_partial): Likewise.
7842 (remote_read_bytes): Factored out from
7843 memory_xfer_partial_1.
7845 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
7847 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7850 2014-03-21 Pedro Alves <palves@redhat.com>
7852 * infrun.c (normal_stop): Extend comment.
7854 2014-03-21 Hui Zhu <hui@codesourcery.com>
7855 Pedro Alves <palves@redhat.com>
7857 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7859 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7860 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7861 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7863 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
7865 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7866 `z' formatted output modifier.
7868 2014-03-20 Tom Tromey <tromey@redhat.com>
7869 Sergio Durigan Junior <sergiodj@redhat.com>
7871 * probe.c (parse_probes): Turn assert into an ordinary error.
7872 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7873 exceptions when parsing probes. Rearrange the code for clarity.
7875 2014-03-20 Tom Tromey <tromey@redhat.com>
7878 * top.c (execute_command): Only dispatch events if the command
7881 2014-03-20 Tom Tromey <tromey@redhat.com>
7884 * infcall.c: Include event-top.h.
7885 (run_inferior_call): Call async_disable_stdin if needed.
7887 2014-03-20 Pedro Alves <palves@redhat.com>
7889 * infrun.c (prepare_to_proceed): Delete.
7890 (thread_still_needs_step_over): New function.
7891 (find_thread_needs_step_over): New function.
7892 (proceed): If the current thread needs a step-over, set its
7893 steping_over_breakpoint flag. Adjust to use
7894 find_thread_needs_step_over instead of prepare_to_proceed.
7895 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7896 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7898 (switch_back_to_stepped_thread): Step over breakpoints of all
7899 threads not the stepping thread, before switching back to the
7902 2014-03-20 Pedro Alves <palves@redhat.com>
7904 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7906 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7907 * infrun.c (saved_singlestep_ptid)
7908 (stepping_past_singlestep_breakpoint): Delete.
7909 (resume): Remove stepping_past_singlestep_breakpoint handling.
7910 (proceed): Store the prev_pc of the stepping thread too.
7911 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
7913 (enum infwait_states): Delete infwait_thread_hop_state.
7914 (struct execution_control_state) <hit_singlestep_breakpoint>: New
7916 (handle_inferior_event): Adjust.
7917 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7918 handling and the thread-hop code. Before removing single-step
7919 breakpoints, check whether the thread hit a single-step breakpoint
7920 of another thread. If it did, the trap is not a random signal.
7921 (switch_back_to_stepped_thread): If the event thread hit a
7922 single-step breakpoint, unblock it before switching to the
7923 stepping thread. Handle the case of the stepped thread having
7925 (keep_going): Handle the case of the current thread moving past a
7926 single-step breakpoint.
7928 2014-03-20 Pedro Alves <palves@redhat.com>
7931 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7932 are being stepped over.
7933 (breakpoint_address_match): Make extern.
7934 * breakpoint.h (breakpoint_address_match): New declaration.
7935 * inferior.h (stepping_past_instruction_at): New declaration.
7936 * infrun.c (struct step_over_info): New type.
7937 (step_over_info): New global.
7938 (set_step_over_info, clear_step_over_info)
7939 (stepping_past_instruction_at): New functions.
7940 (handle_inferior_event): Clear the step-over info when
7941 trap_expected is cleared.
7942 (resume): Remove now stale comment.
7943 (clear_proceed_status): Clear step-over info.
7944 (proceed): Adjust step-over handling to set or clear the step-over
7945 info instead of removing all breakpoints.
7946 (handle_signal_stop): When setting up a thread-hop, don't remove
7948 (stop_stepping): Clear step-over info.
7949 (keep_going): Adjust step-over handling to set or clear step-over
7950 info and then always inserting breakpoints, instead of removing
7951 all breakpoints when stepping over one.
7953 2014-03-20 Pedro Alves <palves@redhat.com>
7955 * infrun.c (previous_inferior_ptid): Adjust comment.
7956 (deferred_step_ptid): Delete.
7957 (infrun_thread_ptid_changed, prepare_to_proceed)
7958 (init_wait_for_inferior): Adjust.
7959 (handle_signal_stop): Delete deferred_step_ptid handling.
7961 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7964 * defs.h (sync_quit_force_run): New declaration.
7965 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7966 * event-top.c (async_sigterm_handler): New declaration.
7967 (async_sigterm_token): New variable.
7968 (async_init_signals): Create also async_sigterm_token.
7969 (async_sigterm_handler): New function.
7970 (sync_quit_force_run): New variable.
7971 (handle_sigterm): Replace quit_force call by other calls.
7972 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7974 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
7976 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7977 offset into SPE pseudo registers.
7979 2014-03-18 Pedro Alves <palves@redhat.com>
7982 * inferior.h (print_stop_event): Declare.
7983 * infrun.c (print_stop_event): New, factored out from ...
7984 (normal_stop): ... this.
7985 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7986 of bpstat_print/print_stack_frame.
7988 2014-03-17 Tom Tromey <tromey@redhat.com>
7990 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7992 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
7994 * ada-lang.c (decode_constrained_packed_array): Perform a
7995 minimal coercion for reference with coerce_ref instead of
7998 2014-03-17 Tristan Gingold <gingold@adacore.com>
8000 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8001 (darwin_solib_create_inferior_hook): Emit a warning if version
8004 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8006 * python/py-value.c (get_field_flag): Cast flag_name argument to
8007 PyObject_GetAttrString to support Python 2.4.
8009 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8011 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8012 (Global Maintainers): Remove Jan Kratochvil.
8014 2014-03-14 Pedro Alves <palves@redhat.com>
8016 * inferior.h (terminal_ours_for_output): Rename to ...
8017 (child_terminal_ours_for_output): ... this.
8018 (terminal_save_ours): Rename to ...
8019 (child_terminal_save_ours): ... this.
8020 (terminal_ours): Rename to ...
8021 (child_terminal_ours): ... this.
8022 (terminal_inferior): Rename to ...
8023 (child_terminal_inferior): ... this.
8024 (terminal_init_inferior): Rename to ...
8025 (child_terminal_init_inferior): ... this.
8026 (terminal_init_inferior_with_pgrp): Rename to ...
8027 (child_terminal_init_inferior_with_pgrp): ... this.
8028 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8029 (child_terminal_init_with_pgrp): ... this.
8030 (terminal_save_ours): Rename to ...
8031 (child_terminal_save_ours): ... this.
8032 (terminal_init_inferior): Rename to ...
8033 (child_terminal_init): ... this. Adjust.
8034 (terminal_inferior): Rename to ...
8035 (child_terminal_inferior): ... this.
8036 (terminal_ours_for_output): Rename to ...
8037 (child_terminal_ours_for_output): ... this. Adjust.
8038 (terminal_ours): Rename to ...
8039 (child_terminal_ours): ... this.
8040 (terminal_ours_1): Rename to ...
8041 (child_terminal_ours_1): ... this. Adjust.
8042 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8043 * windows-nat.c (do_initial_windows_stuff): Adjust.
8044 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8045 (gnu_terminal_init): ... this. Adjust.
8046 (gnu_target): Adjust.
8047 * inf-child.c (inf_child_target): Adjust.
8049 2014-03-13 Doug Evans <xdje42@gmail.com>
8052 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8055 2014-03-13 Doug Evans <xdje42@gmail.com>
8057 * value.c (record_latest_value): Call release_value_or_incref
8058 instead of release_value.
8060 2014-03-13 Pedro Alves <palves@redhat.com>
8062 * procfs.c (procfs_target): Don't override to_shortname,
8063 to_longname or to_doc.
8065 2014-03-13 Pedro Alves <palves@redhat.com>
8067 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8068 Unix in user visible strings.
8070 2014-03-12 Stan Shebs <stan@codesourcery.com>
8072 * gdbtypes.h: Annotate comments for Doxygen, add a page
8073 block comment with some general info.
8075 2014-03-12 Pedro Alves <palves@redhat.com>
8077 * infcmd.c (prepare_execution_command): New function, factored out
8078 from several execution commands.
8079 (run_command_1, continue_command, step_1, jump_command)
8080 (signal_command, until_command, advance_command, finish_command)
8081 (attach_command): Use prepare_execution_command.
8083 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8085 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8088 (struct arm_linux_thread_points): Removed.
8089 (struct arm_linux_process_info): New.
8090 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8091 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8092 (arm_linux_find_breakpoints_by_tid): Removed.
8093 (struct arch_lwp_info): New.
8094 (arm_linux_find_process_pid): New functions.
8095 (arm_linux_add_process): New functions.
8096 (arm_linux_process_info_get): New functions.
8097 (arm_linux_forget_process): New function.
8098 (arm_linux_get_debug_reg_state): New function.
8099 (struct update_registers_data): New.
8100 (update_registers_callback): New function.
8101 (arm_linux_insert_hw_breakpoint1): Updated.
8102 (arm_linux_remove_hw_breakpoint1): Updated.
8103 (arm_linux_insert_hw_breakpoint): Updated.
8104 (arm_linux_remove_hw_breakpoint): Updated.
8105 (arm_linux_insert_watchpoint): Updated.
8106 (arm_linux_remove_watchpoint): Updated.
8107 (arm_linux_new_thread): Updated.
8108 (arm_linux_prepare_to_resume): New function.
8109 (arm_linux_new_fork): New function.
8110 (_initialize_arm_linux_nat): Updated.
8112 2014-03-12 Pedro Alves <palves@redhat.com>
8114 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8116 2014-03-12 Tom Tromey <tromey@redhat.com>
8118 * inf-child.c (return_zero): New function.
8119 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8120 * aix-thread.c (aix_thread_inferior_created): New function.
8121 (aix_thread_attach): Remove.
8122 (init_aix_thread_ops): Don't set to_attach.
8123 (_initialize_aix_thread): Register inferior_created observer.
8124 * corelow.c (init_core_ops): Don't set to_attach or
8126 * exec.c (init_exec_ops): Don't set to_attach or
8128 * infcmd.c (run_command_1): Use find_run_target. Make direct
8130 (attach_command): Use find_attach_target. Make direct target
8132 * record-btrace.c (init_record_btrace_ops): Don't set
8134 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8136 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8137 set to_create_inferior.
8138 * target.c (complete_target_initialization): Add assertion.
8139 (target_create_inferior): Remove.
8140 (find_default_attach, find_default_create_inferior): Remove.
8141 (find_attach_target, find_run_target): New functions.
8142 (find_default_is_async_p, find_default_can_async_p)
8143 (target_supports_non_stop, target_attach): Remove.
8144 (init_dummy_target): Don't set to_create_inferior or
8145 to_supports_non_stop.
8146 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8147 TARGET_DEFAULT_FUNC.
8148 <to_create_inferior>: Add comment.
8149 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8150 TARGET_DEFAULT_RETURN.
8151 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8152 (find_attach_target, find_run_target): Declare.
8153 (target_create_inferior): Remove.
8154 (target_has_execution_1): Update comment.
8155 (target_supports_non_stop): Remove.
8156 * target-delegates.c: Rebuild.
8158 2014-03-12 Pedro Alves <palves@redhat.com>
8160 * inf-child.h: Update comment to not mention Unix.
8162 2014-03-12 Pedro Alves <palves@redhat.com>
8164 * inf-child.c: Update top comment to not mention Unix. Add
8165 generic comment describing how this target is meant to be used.
8166 (inf_child_post_attach, inf_child_post_startup_inferior)
8167 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8170 2014-03-12 Pedro Alves <palves@redhat.com>
8172 * nto-procfs.c: Include inf-child.h.
8173 (procfs_ops): Delete global.
8174 (procfs_can_run): Delete method.
8175 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8176 target pointer instead of referencing procfs_ops.
8177 (procfs_prepare_to_store): Delete.
8178 (init_procfs_ops): Delete function.
8179 (procfs_target): New function, based on init_procfs_ops, but
8180 inherit inf_child_target.
8181 (_initialize_procfs): Use procfs_target.
8183 2014-03-12 Pedro Alves <palves@redhat.com>
8185 * windows-nat.c: Include inf-child.h.
8186 (windows_ops): Delete global.
8187 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8189 (init_windows_ops): Delete function.
8190 (windows_target): New function, based on init_windows_ops, but
8191 inherit inf_child_target.
8192 (_initialize_windows_nat): Use windows_target. Install x86
8193 specific target methods here.
8195 2014-03-10 Doug Evans <xdje42@gmail.com>
8197 * guile/guile.c (call_initialize_gdb_module): New function.
8198 (initialize_guile): Replace call to scm_init_guile with call to
8201 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8203 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8204 in call to TYPE_CODE macro.
8206 2014-03-10 Jerome Guitton <guitton@adacore.com>
8208 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8209 Resolve tagged types to full view.
8211 2014-03-10 Hui Zhu <hui@codesourcery.com>
8213 * target.h (target_insert_breakpoint): Remove "hardware" from its
8216 2014-03-07 Doug Evans <dje@google.com>
8218 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8220 2014-03-07 Doug Evans <dje@google.com>
8222 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8223 Remove unused local comp_dir_attr. Assert exactly one of
8224 stub_comp_unit_die, stub_comp_dir is non-NULL.
8226 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8228 * target.h (complete_target_initialization, add_target):
8231 2014-03-07 Pedro Alves <palves@redhat.com>
8233 * go32-nat.c: Include inf-child.h.
8234 (go32_ops): Delete global.
8235 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8237 (go32_create_inferior): Push the passed in target pointer instead
8238 of referencing go32_ops.
8239 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8240 (go32_target): New function, based on init_go32_ops, but inherit
8242 (_initialize_go32_nat): Use go32_target. Move parts of
8245 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8247 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8248 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8249 SYMBOL_VALUE_ADDRESS.
8250 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8252 2014-03-06 Yao Qi <yao@codesourcery.com>
8254 * breakpoint.c (get_tracepoint_by_number): Remove argument
8255 optional_p. All callers updated. Adjust comments. Update
8257 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8259 2014-03-06 Yao Qi <yao@codesourcery.com>
8261 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8262 early if get_number returns zero. Use 'p' instead of 'args'.
8264 2014-03-06 Yao Qi <yao@codesourcery.com>
8266 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8269 2014-03-06 Yao Qi <yao@codesourcery.com>
8271 PR breakpoints/16508
8272 * tracepoint.c (check_trace_running): New function.
8273 (trace_find_command): Move code to check_trace_running and
8274 call check_trace_running.
8275 (trace_find_pc_command): Likewise.
8276 (trace_find_tracepoint_command): Likewise.
8277 (trace_find_line_command): Likewise.
8278 (trace_find_range_command): Likewise.
8279 * tracepoint.h (check_trace_running): Likewise.
8280 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8282 2014-03-06 Yao Qi <yao@codesourcery.com>
8284 * target.h (struct target_ops) <to_traceframe_info>: Use
8285 TARGET_DEFAULT_NORETURN (tcomplain ()).
8286 * target-delegates.c: Regenerated.
8288 2014-03-05 Pedro Alves <palves@redhat.com>
8291 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8292 void. Update comment.
8293 (dcache_xfer_memory): Delete.
8294 (dcache_read_memory_partial): New, based on the read bits of
8296 (dcache_update): Add status parameter. Use ULONGEST for len, and
8297 adjust. Discard cache lines if the reason for the update was
8299 * dcache.h (dcache_xfer_memory): Delete declaration.
8300 (dcache_read_memory_partial): New declaration.
8301 (dcache_update): Update prototype.
8302 * target.c (raw_memory_xfer_partial): Update the dcache here.
8303 (memory_xfer_partial_1): Don't handle dcache writes here.
8305 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8307 * remote-sim.c (gdbsim_load): Add const to prog.
8309 2014-03-03 Tom Tromey <tromey@redhat.com>
8311 * elfread.c (probe_key): Change to bfd_data.
8312 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8313 now per-BFD, not per-objfile.
8314 * stap-probe.c (stap_probe_destroy): Update comment.
8315 (handle_stap_probe): Allocate on the per-BFD obstack.
8317 2014-03-03 Tom Tromey <tromey@redhat.com>
8319 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8320 * breakpoint.c (create_longjmp_master_breakpoint): Use
8322 (add_location_to_breakpoint, bkpt_probe_insert_location)
8323 (bkpt_probe_remove_location): Update.
8324 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8325 * elfread.c (elf_symfile_relocate_probe): Remove.
8326 (elf_probe_fns): Update.
8327 (insert_exception_resume_breakpoint): Change type of "probe"
8328 parameter to bound_probe.
8329 (check_exception_resume): Update.
8330 * objfiles.c (objfile_relocate1): Don't relocate probes.
8331 * probe.c (bound_probe_s): New typedef.
8332 (parse_probes): Use get_probe_address. Set sal's objfile.
8333 (find_probe_by_pc): Return a bound_probe.
8334 (collect_probes): Return a VEC(bound_probe_s).
8335 (compare_probes): Update.
8336 (gen_ui_out_table_header_info): Change type of "probes"
8338 (info_probes_for_ops): Update.
8339 (get_probe_address): New function.
8340 (probe_safe_evaluate_at_pc): Update.
8341 * probe.h (struct probe_ops) <get_probe_address>: New field.
8342 <set_semaphore, clear_semaphore>: Add objfile parameter.
8343 (struct probe) <objfile>: Remove field.
8345 <address>: Update comment.
8346 (struct bound_probe): New.
8347 (find_probe_by_pc): Return a bound_probe.
8348 (get_probe_address): Declare.
8349 * solib-svr4.c (struct probe_and_action) <address>: New field.
8350 (hash_probe_and_action, equal_probe_and_action): Update.
8351 (register_solib_event_probe): Add address parameter.
8352 (solib_event_probe_at): Update.
8353 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8355 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8356 (stap_get_probe_address): New function.
8357 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8358 (compile_probe_arg): Update.
8359 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8361 (handle_stap_probe): Don't relocate the probe.
8362 (stap_relocate): Remove.
8363 (stap_gen_info_probes_table_values): Update.
8364 (stap_probe_ops): Remove stap_relocate.
8365 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8366 (debug_sym_probe_fns): Update.
8367 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8368 * symtab.c (init_sal): Use memset.
8369 * symtab.h (struct symtab_and_line) <objfile>: New field.
8370 * tracepoint.c (start_tracing, stop_tracing): Update.
8372 2014-03-03 Tom Tromey <tromey@redhat.com>
8374 * probe.h (parse_probes, find_probe_by_pc)
8375 (find_probes_in_objfile): Fix comments.
8377 2014-03-02 Doug Evans <xdje42@gmail.com>
8379 * infrun.c (handle_signal_stop): Replace test for
8380 TARGET_WAITKIND_STOPPED with an assert.
8382 2014-03-02 Doug Evans <xdje42@gmail.com>
8384 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8386 2014-03-02 Doug Evans <xdje42@gmail.com>
8388 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8390 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8392 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8394 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8396 * i386obsd-nat.c: Include "obsd-nat.h".
8397 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8399 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8401 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8403 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8405 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8407 * mips64obsd-nat.c: Include "obsd-nath".
8408 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8410 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8412 2014-03-01 Mark Kettenis <kettenis@gnu.org>
8414 * amd64obsd-nat.c: Include "obsd-nat,h.
8415 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8417 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8419 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8421 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8422 (find_overload_match): Update call to find_oload_champ.
8423 (find_oload_champ_namespace_loop): Likewise
8425 2014-02-28 Mark Kettenis <kettenis@gnu.org>
8427 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8429 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8430 * config/sparc/obsd64.mh: New file.
8431 * sparc64obsd-nat.c: New file.
8433 * obsd-nat.h: New file.
8434 * obsd-nat.c: New file.
8435 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8436 (ALLDEPFILES): Add obsd-nat.c.
8438 2014-02-28 Tom Tromey <tromey@redhat.com>
8440 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8441 * cli-out.h (cli_ui_out_impl): Now const.
8442 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8443 * ui-out.c (struct ui_out) <impl>: Now const.
8444 (default_ui_out_impl): Now const.
8445 (ui_out_new): Make 'impl' parameter const.
8446 * ui-out.h (ui_out_new): Update.
8448 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8450 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8452 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8454 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8456 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8458 Additional PR 8882 fix.
8459 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8461 2014-02-27 Pedro Alves <palves@redhat.com>
8463 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8466 2014-02-27 Pedro Alves <palves@redhat.com>
8469 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8470 * nat/linux-waitpid.c: Include string.h.
8471 (status_to_str): Moved here and made extern.
8472 * nat/linux-waitpid.h (status_to_str): New declaration.
8474 2014-02-27 Hui Zhu <hui@codesourcery.com>
8477 * infrun.c (ptid_match): Move ...
8478 * common/ptid.c (ptid_match): ... here.
8479 * inferior.h (ptid_match): Move ...
8480 * common/ptid.h (ptid_match): ... here.
8482 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8484 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8485 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8488 2014-02-27 Mark Kettenis <kettenis@gnu.org>
8490 * obsd-tdep.c (obsd_auxv_parse): New function.
8491 (obsd_init_abi): Set auxv_parse.
8493 * gdbarch.sh (auxv_parse): New.
8494 * gdbarch.h: Regenerated.
8495 * gdbarch.c: Regenerated.
8496 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8498 2014-02-26 Ludovic Courtès <ludo@gnu.org>
8500 * guile/scm-value.c (gdbscm_history_append_x): New function.
8501 (value_functions): Add it.
8503 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8505 * dwarf2read.c (attr_value_as_address): New function.
8506 (dwarf2_find_base_address, read_call_site_scope): Use
8507 attr_value_as_address in place of DW_ADDR.
8508 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8509 the low and high addresses. Slight rework of the handling
8510 of the high pc being a constant form, and limit it to
8511 DWARF verson 4 or higher.
8512 (dwarf2_record_block_ranges): Likewise.
8513 (read_partial_die): Likewise.
8514 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8516 2014-02-26 Tom Tromey <tromey@redhat.com>
8518 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8520 2014-02-26 Tom Tromey <tromey@redhat.com>
8522 * elfread.c (elf_read_minimal_symbols): Return early if
8523 minimal symbols have already been read. Add "ei" parameter.
8524 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8525 * minsyms.c (prim_record_minimal_symbol_full): Update.
8526 * objfiles.h (struct objstats) <n_minsyms>: Move...
8527 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8528 * symmisc.c (print_objfile_statistics): Update.
8530 2014-02-26 Tom Tromey <tromey@redhat.com>
8532 * elfread.c (elf_read_minimal_symbols): New function, from
8534 (elf_symfile_read): Call it.
8536 2014-02-26 Tom Tromey <tromey@redhat.com>
8538 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8539 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
8540 (lookup_minimal_symbol_solib_trampoline)
8541 (lookup_minimal_symbol_by_pc_section_1)
8542 (lookup_minimal_symbol_and_objfile): Update.
8543 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
8544 Don't allocate a minimal symbol if minsyms have already been read.
8545 (build_minimal_symbol_hash_tables): Update.
8546 (install_minimal_symbols): Do nothing if minsyms already read.
8547 Use the per-BFD obstack.
8548 (terminate_minimal_symbol_table): Use the per-BFD obstack.
8549 * objfiles.c (allocate_objfile): Call
8550 terminate_minimal_symbol_table later.
8551 (have_minimal_symbols): Update.
8552 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
8553 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
8554 Move from struct objfile.
8555 <minsyms_read>: New field.
8556 (struct objfile) <msymbols, minimal_symbol_count,
8557 msymbol_hash, msymbol_demangled_hash>: Move.
8558 (ALL_OBJFILE_MSYMBOLS): Update.
8559 * symfile.c (read_symbols): Set minsyms_read.
8560 (reread_symbols): Update.
8561 * symmisc.c (dump_objfile, dump_msymbols): Update.
8563 2014-02-26 Tom Tromey <tromey@redhat.com>
8565 * minsyms.c (msymbols_sort): Remove.
8566 * minsyms.h (msymbols_sort): Remove.
8567 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
8568 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
8569 * elfread.c (elf_symtab_read): Don't add section offsets.
8570 * xcoffread.c (record_minimal_symbol): Don't add section offset
8571 to minimal symbol address.
8572 * somread.c (text_offset, data_offset): Remove.
8573 (som_symtab_read): Don't add section offsets to minimal symbol
8575 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
8576 Don't add section offsets to minimal symbols.
8577 * coffread.c (coff_symtab_read): Don't add section offsets
8578 to minimal symbol addresses.
8579 * machoread.c (macho_symtab_add_minsym): Don't add section offset
8580 to minimal symbol addresses.
8581 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
8582 section offset to minimal symbol addresses.
8583 * mdebugread.c (parse_partial_symbols): Don't add section
8584 offset to minimal symbol addresses.
8585 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
8586 offset to minimal symbol addresses.
8588 2014-02-26 Tom Tromey <tromey@redhat.com>
8590 * ada-lang.c (ada_main_name): Update.
8591 (ada_add_standard_exceptions): Update.
8592 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8593 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8594 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
8595 * auxv.c (ld_so_xfer_auxv): Update.
8596 * avr-tdep.c (avr_scan_prologue): Update.
8597 * ax-gdb.c (gen_var_ref): Update.
8598 * blockframe.c (get_pc_function_start)
8599 (find_pc_partial_function_gnu_ifunc): Update.
8600 * breakpoint.c (create_overlay_event_breakpoint)
8601 (create_longjmp_master_breakpoint)
8602 (create_std_terminate_master_breakpoint)
8603 (create_exception_master_breakpoint): Update.
8604 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8605 * c-valprint.c (c_val_print): Update.
8606 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8607 * common/agent.c (agent_look_up_symbols): Update.
8608 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8609 * dwarf2loc.c (call_site_to_target_addr): Update.
8610 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
8611 * elfread.c (elf_gnu_ifunc_record_cache)
8612 (elf_gnu_ifunc_resolve_by_got): Update.
8613 * findvar.c (default_read_var_value): Update.
8614 * frame.c (inside_main_func): Update.
8615 * frv-tdep.c (frv_frame_this_id): Update.
8616 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8617 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8619 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
8620 (hppa_hpux_find_dummy_bpaddr): Update.
8621 * hppa-tdep.c (hppa_symbol_address): Update.
8622 * infcmd.c (until_next_command): Update.
8623 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
8625 * linespec.c (minsym_found, add_minsym): Update.
8626 * linux-nat.c (get_signo): Update.
8627 * linux-thread-db.c (inferior_has_bug): Update.
8628 * m32c-tdep.c (m32c_return_value)
8629 (m32c_m16c_address_to_pointer): Update.
8630 * m32r-tdep.c (m32r_frame_this_id): Update.
8631 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8632 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8633 * maint.c (maintenance_translate_address): Update.
8634 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
8635 (frob_address): New function.
8636 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
8637 frob_address. Rename parameter to "pc_in".
8638 (compare_minimal_symbols, compact_minimal_symbols): Use raw
8640 (find_solib_trampoline_target, minimal_symbol_upper_bound):
8642 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8643 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
8644 * objc-lang.c (find_objc_msgsend): Update.
8645 * objfiles.c (objfile_relocate1): Update.
8646 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8647 * p-valprint.c (pascal_val_print): Update.
8648 * parse.c (write_exp_msymbol): Update.
8649 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
8650 (ppc_elfv2_skip_entrypoint): Update.
8651 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8652 * printcmd.c (build_address_symbolic, msym_info)
8653 (address_info): Update.
8654 * proc-service.c (ps_pglobal_lookup): Update.
8655 * psymtab.c (find_pc_sect_psymtab_closer)
8656 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
8657 Change msymbol parameter to bound_minimal_symbol.
8658 * ravenscar-thread.c (get_running_thread_id): Update.
8659 * remote.c (remote_check_symbols): Update.
8660 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
8662 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8663 * solib-dsbt.c (lm_base): Update.
8664 * solib-frv.c (lm_base, main_got): Update.
8665 * solib-irix.c (locate_base): Update.
8666 * solib-som.c (som_solib_create_inferior_hook)
8667 (link_map_start): Update.
8668 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
8669 * solib-svr4.c (elf_locate_base, enable_break): Update.
8670 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8671 (flush_ea_cache): Update.
8672 * stabsread.c (define_symbol, scan_file_globals): Update.
8673 * stack.c (find_frame_funname): Update.
8674 * symfile-debug.c (debug_qf_expand_symtabs_matching)
8675 (debug_qf_find_pc_sect_symtab): Update.
8676 * symfile.c (simple_read_overlay_table)
8677 (simple_overlay_update): Update.
8678 * symfile.h (struct quick_symbol_functions)
8679 <find_pc_sect_symtab>: Change type of msymbol to
8680 bound_minimal_symbol.
8681 * symmisc.c (dump_msymbols): Update.
8682 * symtab.c (find_pc_sect_symtab_via_partial)
8683 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
8684 (search_symbols, print_msymbol_info): Update.
8685 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
8686 (MSYMBOL_VALUE_ADDRESS): Redefine.
8687 (BMSYMBOL_VALUE_ADDRESS): New macro.
8688 * tracepoint.c (scope_info): Update.
8689 * tui/tui-disasm.c (tui_find_disassembly_address)
8690 (tui_get_begin_asm_address): Update.
8691 * valops.c (find_function_in_inferior): Update.
8692 * value.c (value_static_field, value_fn_field): Update.
8694 2014-02-26 Tom Tromey <tromey@redhat.com>
8696 * ada-lang.c (ada_update_initial_language): Update.
8697 (ada_main_name, ada_has_this_exception_support): Update.
8698 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
8699 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8700 * arm-tdep.c (arm_skip_stub): Update.
8701 * auxv.c (ld_so_xfer_auxv): Update.
8702 * avr-tdep.c (avr_scan_prologue): Update.
8703 * ax-gdb.c (gen_var_ref): Update.
8704 * breakpoint.c (struct breakpoint_objfile_data)
8705 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
8706 type to bound_minimal_symbol.
8707 (create_overlay_event_breakpoint)
8708 (create_longjmp_master_breakpoint)
8709 (create_std_terminate_master_breakpoint)
8710 (create_exception_master_breakpoint): Update.
8711 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8712 * c-exp.y (classify_name): Update.
8713 * coffread.c (coff_symfile_read): Update.
8714 * common/agent.c (agent_look_up_symbols): Update.
8715 * d-lang.c (d_main_name): Update.
8716 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
8717 * dec-thread.c (enable_dec_thread): Update.
8718 * dwarf2loc.c (call_site_to_target_addr): Update.
8719 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
8720 * eval.c (evaluate_subexp_standard): Update.
8721 * findvar.c (struct minsym_lookup_data) <result>: Change type
8722 to bound_minimal_symbol.
8724 (minsym_lookup_iterator_cb, default_read_var_value): Update.
8725 * frame.c (inside_main_func): Update.
8726 * frv-tdep.c (frv_frame_this_id): Update.
8727 * gcore.c (call_target_sbrk): Update.
8728 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8729 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
8731 * go-lang.c (go_main_name): Update.
8732 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
8733 (hppa_hpux_find_import_stub_for_addr): Update.
8734 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
8735 Update. Change return type.
8736 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
8738 * jit.c (jit_breakpoint_re_set_internal): Update.
8739 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
8741 * linux-nat.c (get_signo): Update.
8742 * linux-thread-db.c (inferior_has_bug): Update
8743 * m32c-tdep.c (m32c_return_value)
8744 (m32c_m16c_address_to_pointer): Update.
8745 * m32r-tdep.c (m32r_frame_this_id): Update.
8746 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8747 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8748 * minsyms.c (lookup_minimal_symbol_internal): Rename to
8749 lookup_minimal_symbol. Change return type.
8750 (lookup_minimal_symbol): Remove.
8751 (lookup_bound_minimal_symbol): Update.
8752 (lookup_minimal_symbol_text): Change return type.
8753 (lookup_minimal_symbol_solib_trampoline): Change return type.
8754 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8755 (lookup_minimal_symbol_solib_trampoline): Change return type.
8756 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8757 * objc-lang.c (lookup_objc_class, lookup_child_selector)
8758 (value_nsstring, find_imps): Update.
8759 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8760 * p-lang.c (pascal_main_name): Update.
8761 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8762 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8763 * proc-service.c (ps_pglobal_lookup): Update.
8764 * ravenscar-thread.c (get_running_thread_msymbol): Change
8766 (has_ravenscar_runtime, get_running_thread_id): Update.
8767 * remote.c (remote_check_symbols): Update.
8768 * sol-thread.c (ps_pglobal_lookup): Update.
8769 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8770 * solib-dsbt.c (lm_base): Update.
8771 * solib-frv.c (lm_base, frv_relocate_section_addresses):
8773 * solib-irix.c (locate_base): Update.
8774 * solib-som.c (som_solib_create_inferior_hook)
8775 (som_solib_desire_dynamic_linker_symbols, link_map_start):
8777 * solib-spu.c (spu_enable_break): Update.
8778 * solib-svr4.c (elf_locate_base, enable_break): Update.
8779 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8780 (flush_ea_cache): Update.
8781 * stabsread.c (define_symbol): Update.
8782 * symfile.c (simple_read_overlay_table): Update.
8783 * symtab.c (find_pc_sect_line): Update.
8784 * tracepoint.c (scope_info): Update.
8785 * tui-disasm.c (tui_get_begin_asm_address): Update.
8786 * value.c (value_static_field): Update.
8788 2014-02-26 Tom Tromey <tromey@redhat.com>
8790 * minsyms.c (prim_record_minimal_symbol_full): Use
8791 SET_MSYMBOL_VALUE_ADDRESS.
8792 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8793 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8794 SET_MSYMBOL_VALUE_ADDRESS.
8795 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8796 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8798 2014-02-26 Tom Tromey <tromey@redhat.com>
8800 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8801 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8802 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8803 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8804 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8805 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8806 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8807 * ada-lang.c (ada_main_name): Update.
8808 (ada_lookup_simple_minsym): Update.
8809 (ada_make_symbol_completion_list): Update.
8810 (ada_add_standard_exceptions): Update.
8811 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8812 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8813 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8814 * arm-tdep.c (skip_prologue_function): Update.
8815 (arm_skip_stack_protector, arm_skip_stub): Update.
8816 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8817 (arm_wince_skip_main_prologue): Update.
8818 * auxv.c (ld_so_xfer_auxv): Update.
8819 * avr-tdep.c (avr_scan_prologue): Update.
8820 * ax-gdb.c (gen_var_ref): Update.
8821 * block.c (call_site_for_pc): Update.
8822 * blockframe.c (get_pc_function_start): Update.
8823 (find_pc_partial_function_gnu_ifunc): Update.
8824 * breakpoint.c (create_overlay_event_breakpoint): Update.
8825 (create_longjmp_master_breakpoint): Update.
8826 (create_std_terminate_master_breakpoint): Update.
8827 (create_exception_master_breakpoint): Update.
8828 (resolve_sal_pc): Update.
8829 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8830 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8832 * c-valprint.c (c_val_print): Update.
8833 * coff-pe-read.c (add_pe_forwarded_sym): Update.
8834 * coffread.c (coff_symfile_read): Update.
8835 * common/agent.c (agent_look_up_symbols): Update.
8836 * dbxread.c (find_stab_function_addr): Update.
8837 (end_psymtab): Update.
8838 * dwarf2loc.c (call_site_to_target_addr): Update.
8839 (func_verify_no_selftailcall): Update.
8840 (tailcall_dump): Update.
8841 (call_site_find_chain_1): Update.
8842 (dwarf_expr_reg_to_entry_parameter): Update.
8843 * elfread.c (elf_gnu_ifunc_record_cache): Update.
8844 (elf_gnu_ifunc_resolve_by_got): Update.
8845 * f-valprint.c (info_common_command): Update.
8846 * findvar.c (read_var_value): Update.
8847 * frame.c (get_prev_frame_1): Update.
8848 (inside_main_func): Update.
8849 * frv-tdep.c (frv_skip_main_prologue): Update.
8850 (frv_frame_this_id): Update.
8851 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8852 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8853 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8854 (gnuv3_skip_trampoline): Update.
8855 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8856 (hppa64_hpux_in_solib_call_trampoline): Update.
8857 (hppa_hpux_skip_trampoline_code): Update.
8858 (hppa64_hpux_search_dummy_call_sequence): Update.
8859 (hppa_hpux_find_import_stub_for_addr): Update.
8860 (hppa_hpux_find_dummy_bpaddr): Update.
8861 * hppa-tdep.c (hppa_symbol_address)
8862 (hppa_lookup_stub_minimal_symbol): Update.
8863 * i386-tdep.c (i386_skip_main_prologue): Update.
8864 (i386_pe_skip_trampoline_code): Update.
8865 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8866 * infcall.c (get_function_name): Update.
8867 * infcmd.c (until_next_command): Update.
8868 * jit.c (jit_breakpoint_re_set_internal): Update.
8869 (jit_inferior_init): Update.
8870 * linespec.c (minsym_found): Update.
8871 (add_minsym): Update.
8872 * linux-fork.c (info_checkpoints_command): Update.
8873 * linux-nat.c (get_signo): Update.
8874 * linux-thread-db.c (inferior_has_bug): Update.
8875 * m32c-tdep.c (m32c_return_value): Update.
8876 (m32c_m16c_address_to_pointer): Update.
8877 (m32c_m16c_pointer_to_address): Update.
8878 * m32r-tdep.c (m32r_frame_this_id): Update.
8879 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8880 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8881 * maint.c (maintenance_translate_address): Update.
8882 * minsyms.c (add_minsym_to_hash_table): Update.
8883 (add_minsym_to_demangled_hash_table): Update.
8884 (msymbol_objfile): Update.
8885 (lookup_minimal_symbol): Update.
8886 (iterate_over_minimal_symbols): Update.
8887 (lookup_minimal_symbol_text): Update.
8888 (lookup_minimal_symbol_by_pc_name): Update.
8889 (lookup_minimal_symbol_solib_trampoline): Update.
8890 (lookup_minimal_symbol_by_pc_section_1): Update.
8891 (lookup_minimal_symbol_and_objfile): Update.
8892 (prim_record_minimal_symbol_full): Update.
8893 (compare_minimal_symbols): Update.
8894 (compact_minimal_symbols): Update.
8895 (build_minimal_symbol_hash_tables): Update.
8896 (install_minimal_symbols): Update.
8897 (terminate_minimal_symbol_table): Update.
8898 (find_solib_trampoline_target): Update.
8899 (minimal_symbol_upper_bound): Update.
8900 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8901 * mips-tdep.c (mips_stub_frame_sniffer): Update.
8902 (mips_skip_pic_trampoline_code): Update.
8903 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8904 * objc-lang.c (selectors_info): Update.
8905 (classes_info): Update.
8906 (find_methods): Update.
8907 (find_imps): Update.
8908 (find_objc_msgsend): Update.
8909 * objfiles.c (objfile_relocate1): Update.
8910 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8911 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8912 * p-valprint.c (pascal_val_print): Update.
8913 * parse.c (write_exp_msymbol): Update.
8914 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8915 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8916 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8917 * printcmd.c (build_address_symbolic): Update.
8919 (address_info): Update.
8920 * proc-service.c (ps_pglobal_lookup): Update.
8921 * psymtab.c (find_pc_sect_psymtab_closer): Update.
8922 (find_pc_sect_psymtab): Update.
8923 * python/py-framefilter.c (py_print_frame): Update.
8924 * ravenscar-thread.c (get_running_thread_id): Update.
8925 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8927 * remote.c (remote_check_symbols): Update.
8928 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8929 (rs6000_skip_trampoline_code): Update.
8930 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8931 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8932 * solib-dsbt.c (lm_base): Update.
8933 * solib-frv.c (lm_base): Update.
8935 * solib-irix.c (locate_base): Update.
8936 * solib-som.c (som_solib_create_inferior_hook): Update.
8937 (som_solib_desire_dynamic_linker_symbols): Update.
8938 (link_map_start): Update.
8939 * solib-spu.c (spu_enable_break): Update.
8940 (ocl_enable_break): Update.
8941 * solib-svr4.c (elf_locate_base): Update.
8942 (enable_break): Update.
8943 * spu-tdep.c (spu_get_overlay_table): Update.
8944 (spu_catch_start): Update.
8945 (flush_ea_cache): Update.
8946 * stabsread.c (define_symbol): Update.
8947 (scan_file_globals): Update.
8948 * stack.c (find_frame_funname): Update.
8949 (frame_info): Update.
8950 * symfile.c (simple_read_overlay_table): Update.
8951 (simple_overlay_update): Update.
8952 * symmisc.c (dump_msymbols): Update.
8953 * symtab.c (fixup_section): Update.
8954 (find_pc_sect_line): Update.
8955 (skip_prologue_sal): Update.
8956 (search_symbols): Update.
8957 (print_msymbol_info): Update.
8958 (rbreak_command): Update.
8959 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8960 (completion_list_objc_symbol): Update.
8961 (default_make_symbol_completion_list_break_on): Update.
8962 * tracepoint.c (scope_info): Update.
8963 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8964 (tui_get_begin_asm_address): Update.
8965 * valops.c (find_function_in_inferior): Update.
8966 * value.c (value_static_field): Update.
8967 (value_fn_field): Update.
8969 2014-02-26 Tom Tromey <tromey@redhat.com>
8971 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8972 bound minimal symbols. Move code that knows about minsym
8974 * minsyms.c (minimal_symbol_upper_bound): ... here. New
8976 * minsyms.h (minimal_symbol_upper_bound): Declare.
8977 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8978 minimal_symbol_upper_bound.
8980 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8982 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8983 Use the type's name if its basic type does not have a tag.
8985 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8987 * dwarf2read.c (read_subrange_type): Add comment.
8989 2014-02-27 Joel Brobecker <brobecker@adacore.com>
8991 * dwarf2read.c (update_enumeration_type_from_children): New
8992 function, mostly extracted from process_structure_scope.
8993 (read_enumeration_type): Call update_enumeration_type_from_children.
8994 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8995 and flag_flag_enum fields.
8997 2014-02-26 Pedro Alves <palves@redhat.com>
8999 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9000 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9001 to_xfer_partial method.
9003 2014-02-26 Pedro Alves <palves@redhat.com>
9005 * target.c (complete_target_initialization): Don't install
9006 default_xfer_partial as to_xfer_partial hook.
9008 (update_current_target): Don't INHERIT nor de_fault
9009 deprecated_xfer_memory. Delete de_fault macro.
9010 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9011 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9012 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9015 2014-02-26 Pedro Alves <palves@redhat.com>
9017 * go32-nat.c (my_write_child): New function.
9018 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9019 (go32_xfer_partial): New function.
9020 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9021 Instead install a to_xfer_partial hook.
9023 2014-02-26 Pedro Alves <palves@redhat.com>
9025 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9026 to_xfer_partial helper. Rewrite.
9027 (procfs_xfer_partial): New function.
9028 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9029 Install a to_xfer_partial hook.
9031 2014-02-26 Pedro Alves <palves@redhat.com>
9033 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9034 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9035 (m32r_xfer_partial): New function.
9036 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9037 Install a to_xfer_partial hook.
9039 2014-02-26 Pedro Alves <palves@redhat.com>
9041 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9043 (mips_xfer_partial): New function.
9044 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9045 hook. Install a to_xfer_partial hook.
9047 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9049 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9050 * gdbtypes.c (create_array_type_with_stride): New function,
9051 renaming create_array_type, but with an added parameter
9052 called "bit_stride".
9053 (create_array_type): Re-implement using
9054 create_array_type_with_stride.
9055 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9056 and DW_AT_bit_stride attributes.
9058 2014-02-26 Pedro Alves <palves@redhat.com>
9060 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9061 task-specific breakpoints.
9063 2014-02-25 Pedro Alves <palves@redhat.com>
9065 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9066 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9068 2014-02-25 Stan Shebs <stan@codesourcery.com>
9070 * defs.h: Annotate comments for Doxygen.
9072 2014-02-25 Tom Tromey <tromey@redhat.com>
9074 * target.h (target_ignore): Don't declare.
9075 * target.c (target_ignore): Remove.
9077 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9080 * auto-load.c (auto_load_objfile_script_1): Change filename to
9083 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9085 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9086 documentation. Adjust prototype to match the target_ops
9087 to_xfer_partial method. Adjust implementation accordingly.
9089 2014-02-25 Hui Zhu <hui@codesourcery.com>
9091 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9094 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9096 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9097 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9098 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9099 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9100 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9101 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9102 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9103 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9105 (rl78_register_type): Use a data pointer type for SP and
9106 new pseudo registers mentioned above. Use a 16 bit integer
9107 type for all other register pairs.
9108 (rl78_register_name, rl78_g10_register_name): Update for
9109 new pseudo registers.
9110 (rl78_pseudo_register_read): Likewise.
9111 (rl78_pseudo_register_write): Likewise.
9112 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9113 to the newly added pseudo registers.
9115 2014-02-24 Doug Evans <dje@google.com>
9117 * value.c (record_latest_value): Fix comment.
9118 * printcmd.c (print_command_1): Remove code to handle -1 return from
9119 record_latest_value.
9121 2014-02-24 Pedro Alves <palves@redhat.com>
9123 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9124 deprecated_xfer_memory hook.
9125 (procfs_xfer_partial): Call procfs_xfer_memory instead
9126 of the deprecated_xfer_memory target hook.
9127 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9130 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9132 * windows-nat.c (windows_xfer_shared_libraries): Return
9133 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9134 requested object is TARGET_OBJECT_LIBRARIES.
9136 2014-02-24 Yao Qi <yao@codesourcery.com>
9138 * target.h (enum target_xfer_status)
9139 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9140 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9142 * corefile.c (memory_error_message): User updated.
9143 * exec.c (section_table_read_available_memory): Likewise.
9144 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9145 * target.c (target_xfer_status_to_string): Likewise.
9146 (raw_memory_xfer_partial): Likewise.
9147 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9148 * valops.c (read_value_memory): Likewise.
9149 * exec.h: Update comments.
9151 2014-02-24 Yao Qi <yao@codesourcery.com>
9153 * target.c (target_xfer_status_to_string): Rename argument err
9155 * target.h (target_xfer_status_to_string): Update declaration.
9156 Replace target_xfer_error_to_string with
9157 target_xfer_status_to_string in comment.
9159 2014-02-24 Yao Qi <yao@codesourcery.com>
9161 * mips-linux-nat.c (super_close): Update its type.
9162 (mips_linux_close): Pass 'self' to super_close.
9164 2014-02-24 Yao Qi <yao@codesourcery.com>
9166 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9167 * corefile.c (read_memory): Adjusted.
9168 * target.c (target_write_with_progress): Adjusted.
9170 2014-02-23 Yao Qi <yao@codesourcery.com>
9174 2013-10-25 Yao Qi <yao@codesourcery.com>
9176 * remote.c (remote_traceframe_info): Return early if
9177 traceframe is not selected.
9179 2013-07-19 Yao Qi <yao@codesourcery.com>
9181 * target.c (update_current_target): Change the default action
9182 of 'to_traceframe_info' from tcomplain to return_zero.
9183 * target.h (struct target_ops) <to_traceframe_info>: Add more
9186 2014-02-23 Yao Qi <yao@codesourcery.com>
9188 * valops.c (read_value_memory): Rewrite it. Call
9189 target_xfer_partial in a loop.
9190 * exec.h (section_table_available_memory): Remove declaration.
9191 Move comments to ...
9192 * exec.c (section_table_available_memory): ... here. Make it
9195 2014-02-23 Yao Qi <yao@codesourcery.com>
9197 * exec.c (section_table_read_available_memory): New function.
9198 * exec.h (section_table_read_available_memory): Declare.
9199 * ctf.c (ctf_xfer_partial): Call
9200 section_table_read_available_memory.
9201 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9203 2014-02-23 Yao Qi <yao@codesourcery.com>
9205 * ctf.c (ctf_xfer_partial): Move code to ...
9206 * exec.c (exec_read_partial_read_only): ... it. New function.
9207 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9208 * tracefile.c: Include "exec.h".
9209 * exec.h (exec_read_partial_read_only): Declare.
9211 2014-02-23 Yao Qi <yao@codesourcery.com>
9213 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9214 (tfile_has_memory): Remove.
9215 (init_tfile_ops): Don't set fields to_has_all_memory and
9216 to_has_memory of tfile_ops.
9217 * tracefile.c (tracefile_has_all_memory): New function.
9218 (tracefile_has_memory): New function.
9219 (init_tracefile_ops): Initialize fields to_has_all_memory and
9220 to_has_memory of 'ops'.
9222 2014-02-23 Yao Qi <yao@codesourcery.com>
9224 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9225 (ctf_thread_alive, ctf_get_trace_status): Remove.
9226 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9228 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9229 (tfile_has_stack, tfile_has_registers): Remove.
9230 (tfile_thread_alive): Remove.
9231 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9233 * tracefile.c (tracefile_has_stack): New function.
9234 (tracefile_has_registers): New function.
9235 (tracefile_thread_alive): New function.
9236 (tracefile_get_trace_status): New function.
9237 (init_tracefile_ops): New function.
9238 * tracefile.h (init_tracefile_ops): Declare.
9240 2014-02-23 Yao Qi <yao@codesourcery.com>
9242 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9243 (O_LARGEFILE): Likewise.
9244 (tfile_ops): Likewise.
9245 (TRACE_HEADER_SIZE): Likewise.
9246 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9247 (cur_data_size): Likewise.
9248 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9249 (tfile_close, tfile_files_info): Likewise.
9250 (tfile_get_trace_status): Likewise.
9251 (tfile_get_tracepoint_status): Likewise.
9252 (tfile_get_traceframe_address): Likewise.
9253 (tfile_trace_find, match_blocktype): Likewise.
9254 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9255 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9256 (tfile_get_trace_state_variable_value): Likewise.
9257 (tfile_has_all_memory, tfile_has_memory): Likewise.
9258 (tfile_has_stack, tfile_has_registers): Likewise.
9259 (tfile_thread_alive, build_traceframe_info): Likewise.
9260 (tfile_traceframe_info, init_tfile_ops): Likewise.
9261 (_initialize_tracepoint): Don't call init_tfile_ops
9262 and add_target_with_completer.
9263 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9264 exec.h, completer.h and filenames.h.
9265 (_initialize_tracefile_tfile): New function.
9267 2014-02-23 Yao Qi <yao@codesourcery.com>
9269 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9271 (HFILES_NO_SRCDIR): Add tracefile.h.
9272 * ctf.c: Include "tracefile.h".
9273 * tracefile.h: New file.
9274 * tracefile.c: New file
9275 * tracefile-tfile.c: New file.
9276 * tracepoint.c: Include "tracefile.h".
9277 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9278 (stop_reason_names): Add const.
9279 (trace_file_writer_xfree): Move it to tracefile.c.
9280 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9281 (trace_save_ctf): Likewise.
9282 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9283 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9284 (tfile_write_header, tfile_write_regblock_type): Likewise.
9285 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9286 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9287 (tfile_write_raw_data, tfile_end): Likewise.
9288 (tfile_trace_file_writer_new): Likewise.
9289 (free_uploaded_tp): Make it extern.
9290 (free_uploaded_tsv): Make it extern.
9291 (_initialize_tracepoint): Move code to register command 'tsave'
9293 * tracepoint.h (stop_reason_names): Declare.
9294 (struct trace_frame_write_ops): Move it to tracefile.h.
9295 (struct trace_file_write_ops): Likewise.
9296 (struct trace_file_writer): Likewise.
9297 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9299 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9302 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9304 (get_cores_used_by_process): New parameter num_cores, use it.
9305 (linux_xfer_osdata_processes): Pass num_cores to it.
9306 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9309 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9311 * target.c (memory_xfer_partial): Fix length arg in call to
9312 breakpoint_xfer_memory.
9314 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9317 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9318 number comes after the + or - signs. Adjust length of register
9319 name to be extracted.
9321 2014-02-20 Tom Tromey <tromey@redhat.com>
9323 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9324 (ada_varobj_ops): Mark "extern".
9326 2014-02-20 Tom Tromey <tromey@redhat.com>
9328 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9330 2014-02-20 Doug Evans <xdje42@gmail.com>
9332 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9333 All callers updated.
9334 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9335 All callers updated.
9336 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9337 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9339 2014-02-20 lin zuojian <manjian2006@gmail.com>
9340 Joel Brobecker <brobecker@adacore.com>
9341 Doug Evans <xdje42@gmail.com>
9344 * dwarf2read.c (struct die_info): New member in_process.
9345 (reset_die_in_process): New function.
9346 (process_die): Set it at the start, reset when returning.
9347 (inherit_abstract_dies): Only call process_die if origin_child_die
9348 not already being processed.
9350 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9352 * windows-nat.c (handle_unload_dll): Add function documentation.
9353 (do_initial_windows_stuff): Add comment explaining why we wait
9354 until after inferior initialization has finished before
9355 processing all DLLs.
9357 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9359 * windows-nat.c (get_module_name): Delete.
9360 (windows_get_exec_module_filename): New function, mostly
9361 inspired from get_module_name.
9362 (windows_pid_to_exec_file): Replace call to get_module_name
9363 by call to windows_get_exec_module_filename.
9365 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9367 * windows-nat.c (handle_load_dll): Rewrite this function's
9368 introductory comment. Remove code using get_module_name
9369 to get the DLL's name.
9371 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9373 * windows-nat.c (get_windows_debug_event): Ignore
9374 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9375 if windows_initialization_done == 0.
9376 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9377 Adjust implementation to always load all DLLs.
9378 (do_initial_windows_stuff): Replace call to
9379 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9381 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9383 * windows-nat.c (_initialize_windows_nat): Deprecate the
9384 "dll-symbols" command. Turn the "add-shared-symbol-files"
9385 and "assf" aliases into commands, and deprecate them as well.
9386 * NEWS: Add entry explaining that "dll-symbols" and its two
9387 aliases are now deprecated.
9389 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9391 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9392 new-line in debug string. Remove trailing spaces.
9394 2014-02-19 Stan Shebs <stan@codesourcery.com>
9396 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9398 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9400 * NEWS: Add entry for the new feature
9401 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9404 2014-02-19 Stan Shebs <stan@codesourcery.com>
9406 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9408 2014-02-19 Pedro Alves <palves@redhat.com>
9410 * common/ptid.h (struct ptid): Mention that process_stratum
9411 targets should prefer ptid.lwp.
9413 2014-02-19 Pedro Alves <palves@redhat.com>
9415 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9416 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9417 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9418 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9419 store remote thread ids rather than ptid.tid.
9420 (_initialize_remote): Adjust.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target.c (target_get_unwinder): Rewrite.
9425 (target_get_tailcall_unwinder): Rewrite.
9426 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9427 (record_btrace_to_get_tailcall_unwinder): New function.
9428 (init_record_btrace_ops): Update.
9429 * target.h (struct target_ops) <to_get_unwinder,
9430 to_get_tailcall_unwinder>: Now function pointers. Use
9431 TARGET_DEFAULT_RETURN.
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9435 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9437 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9443 * target-delegates.c: Rebuild.
9444 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9445 TARGET_DEFAULT_FUNC.
9446 * target.c (default_target_decr_pc_after_break): Rename from
9447 forward_target_decr_pc_after_break. Simplify.
9448 (target_decr_pc_after_break): Rely on delegation.
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9452 * target.c (update_current_target): Do not INHERIT to_doc or
9453 to_magic. Do not de_fault to_open or to_close.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * gcore.h (objfile_find_memory_regions): Declare.
9458 * gcore.c (objfile_find_memory_regions): No longer static. Add
9460 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9461 * exec.c: Include gcore.h.
9462 (exec_set_find_memory_regions): Remove.
9463 (exec_find_memory_regions): Remove.
9464 (exec_do_find_memory_regions): Remove.
9465 (init_exec_ops): Update.
9466 * defs.h (exec_set_find_memory_regions): Remove.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target-delegates.c: Rebuild.
9471 * target.h (struct target_ops) <to_extra_thread_info,
9472 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9473 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9474 not 0, in TARGET_DEFAULT_RETURN.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target.c (complete_target_initialization): Remove casts. Use
9479 return_zero_has_execution.
9480 (return_zero): Add "ignore" argument.
9481 (return_zero_has_execution): New function.
9482 (init_dummy_target): Remove casts. Use
9483 return_zero_has_execution.
9485 2014-02-19 Tom Tromey <tromey@redhat.com>
9487 * target.c (update_current_target): Update comments. Do not
9490 2014-02-19 Tom Tromey <tromey@redhat.com>
9492 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9494 * corelow.c (core_read_description): Delegate when needed.
9495 * remote.c (remote_read_description): Delegate when needed.
9496 * target-delegates.c: Rebuild.
9497 * target.c (target_read_description): Rewrite.
9498 * target.h (struct target_ops) <to_read_description>: Update
9499 comment. Use TARGET_DEFAULT_RETURN.
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9503 * target-delegates.c: Rebuild.
9504 * target.c (update_current_target): Don't inherit or default
9506 (find_default_run_target): Check against delegate_can_run.
9507 * target.h (struct target_ops) <to_can_run>: Use
9508 TARGET_DEFAULT_RETURN.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target-delegates.c: Rebuild.
9513 * target.c (target_disconnect): Unconditionally delegate.
9514 * target.h (struct target_ops) <to_disconnect>: Use
9515 TARGET_DEFAULT_NORETURN.
9517 2014-02-19 Tom Tromey <tromey@redhat.com>
9519 * record.c (record_stop): Unconditionally delegate.
9520 * target-delegates.c: Rebuild.
9521 * target.c (target_stop_recording): Unconditionally delegate.
9522 * target.h (struct target_ops) <to_stop_recording>: Use
9523 TARGET_DEFAULT_IGNORE.
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target-delegates.c: Rebuild.
9528 * target.c (target_enable_btrace): Unconditionally delegate.
9529 * target.h (struct target_ops) <to_enable_btrace>: Use
9530 TARGET_DEFAULT_NORETURN.
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9534 * target-delegates.c: Rebuild.
9535 * target.c (target_read_btrace): Unconditionally delegate.
9536 * target.h (struct target_ops) <to_read_btrace>: Use
9537 TARGET_DEFAULT_NORETURN.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target-delegates.c: Rebuild.
9542 * target.c (target_teardown_btrace): Unconditionally delegate.
9543 * target.h (struct target_ops) <to_teardown_btrace>: Use
9544 TARGET_DEFAULT_NORETURN.
9546 2014-02-19 Tom Tromey <tromey@redhat.com>
9548 * target-delegates.c: Rebuild.
9549 * target.c (target_disable_btrace): Unconditionally delegate.
9550 * target.h (struct target_ops) <to_disable_btrace>: Use
9551 TARGET_DEFAULT_NORETURN.
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9555 * target-delegates.c: Rebuild.
9556 * target.c (default_search_memory): New function.
9557 (simple_search_memory): Update comment.
9558 (target_search_memory): Unconditionally delegate.
9559 * target.h (struct target_ops) <to_search_memory>: Use
9560 TARGET_DEFAULT_FUNC.
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9564 * auxv.c (default_auxv_parse): No longer static.
9565 (target_auxv_parse): Unconditionally delegate.
9566 * auxv.h (default_auxv_parse): Declare.
9567 * target-delegates.c: Rebuild.
9568 * target.c: Include auxv.h.
9569 * target.h (struct target_ops) <to_auxv_parse>: Use
9570 TARGET_DEFAULT_FUNC.
9572 2014-02-19 Tom Tromey <tromey@redhat.com>
9574 * target-delegates.c: Rebuild.
9575 * target.c (target_memory_map): Unconditionally delegate.
9576 * target.h (struct target_ops) <to_memory_map>: Use
9577 TARGET_DEFAULT_RETURN.
9579 2014-02-19 Tom Tromey <tromey@redhat.com>
9581 * target-delegates.c: Rebuild.
9582 * target.c (target_thread_alive): Unconditionally delegate.
9583 * target.h (struct target_ops) <to_thread_alive>: Use
9584 TARGET_DEFAULT_RETURN.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target-delegates.c: Rebuild.
9589 * target.c (target_save_record): Unconditionally delegate.
9590 * target.h (struct target_ops) <to_save_record>: Use
9591 TARGET_DEFAULT_NORETURN.
9593 2014-02-19 Tom Tromey <tromey@redhat.com>
9595 * target-delegates.c: Rebuild.
9596 * target.c (target_delete_record): Unconditionally delegate.
9597 * target.h (struct target_ops) <to_delete_record>: Use
9598 TARGET_DEFAULT_NORETURN.
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * target-delegates.c: Rebuild.
9603 * target.c (target_record_is_replaying): Unconditionally
9605 * target.h (struct target_ops) <to_record_is_replaying>: Use
9606 TARGET_DEFAULT_RETURN.
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target-delegates.c: Rebuild.
9611 * target.c (target_goto_record_begin): Unconditionally delegate.
9612 * target.h (struct target_ops) <to_goto_record_begin>: Use
9613 TARGET_DEFAULT_NORETURN.
9615 2014-02-19 Tom Tromey <tromey@redhat.com>
9617 * target-delegates.c: Rebuild.
9618 * target.c (target_goto_record_end): Unconditionally delegate.
9619 * target.h (struct target_ops) <to_goto_record_end>: Use
9620 TARGET_DEFAULT_NORETURN.
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9624 * target-delegates.c: Rebuild.
9625 * target.c (target_goto_record): Unconditionally delegate.
9626 * target.h (struct target_ops) <to_goto_record>: Use
9627 TARGET_DEFAULT_NORETURN.
9629 2014-02-19 Tom Tromey <tromey@redhat.com>
9631 * target-delegates.c: Rebuild.
9632 * target.c (target_insn_history): Unconditionally delegate.
9633 * target.h (struct target_ops) <to_insn_history>: Use
9634 TARGET_DEFAULT_NORETURN.
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9638 * target-delegates.c: Rebuild.
9639 * target.c (target_insn_history_from): Unconditionally delegate.
9640 * target.h (struct target_ops) <to_insn_history_from>: Use
9641 TARGET_DEFAULT_NORETURN.
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target-delegates.c: Rebuild.
9646 * target.c (target_insn_history_range): Unconditionally delegate.
9647 * target.h (struct target_ops) <to_insn_history_range>: Use
9648 TARGET_DEFAULT_NORETURN.
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target-delegates.c: Rebuild.
9653 * target.c (target_call_history): Unconditionally delegate.
9654 * target.h (struct target_ops) <to_call_history>: Use
9655 TARGET_DEFAULT_NORETURN.
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9659 * target-delegates.c: Rebuild.
9660 * target.c (target_call_history_from): Unconditionally delegate.
9661 * target.h (struct target_ops) <to_call_history_from>: Use
9662 TARGET_DEFAULT_NORETURN.
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * target-delegates.c: Rebuild.
9667 * target.c (target_call_history_range): Unconditionally delegate.
9668 * target.h (struct target_ops) <to_call_history_range>: Use
9669 TARGET_DEFAULT_NORETURN.
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9673 * target-delegates.c: Rebuild.
9674 * target.c (target_verify_memory): Unconditionally delegate.
9675 * target.h (struct target_ops) <to_verify_memory>: Use
9676 TARGET_DEFAULT_NORETURN.
9678 2014-02-19 Tom Tromey <tromey@redhat.com>
9680 * target-delegates.c: Rebuild.
9681 * target.c (target_core_of_thread): Unconditionally delegate.
9682 * target.h (struct target_ops) <to_core_of_thread>: Use
9683 TARGET_DEFAULT_RETURN.
9685 2014-02-19 Tom Tromey <tromey@redhat.com>
9687 * target-delegates.c: Rebuild.
9688 * target.c (target_flash_done): Unconditionally delegate.
9689 * target.h (struct target_ops) <to_flash_done>: Use
9690 TARGET_DEFAULT_NORETURN.
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9694 * target-delegates.c: Rebuild.
9695 * target.c (target_flash_erase): Unconditionally delegate.
9696 * target.h (struct target_ops) <to_flash_erase>: Use
9697 TARGET_DEFAULT_NORETURN.
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target-delegates.c: Rebuild.
9702 * target.c (target_get_section_table): Unconditionally delegate.
9703 * target.h (struct target_ops) <to_get_section_table>: Use
9704 TARGET_DEFAULT_RETURN.
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9708 * target-delegates.c: Rebuild.
9709 * target.c (target_pid_to_str): Unconditionally delegate.
9710 (init_dummy_target): Don't initialize to_pid_to_str.
9711 (default_pid_to_str): Rename from dummy_pid_to_str.
9712 * target.h (struct target_ops) <to_pid_to_str>: Use
9713 TARGET_DEFAULT_FUNC.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target-delegates.c: Rebuild.
9718 * target.c (target_find_new_threads): Unconditionally delegate.
9719 * target.h (struct target_ops) <to_find_new_threads>: Use
9720 TARGET_DEFAULT_RETURN.
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9724 * target-delegates.c: Rebuild.
9725 * target.c (target_program_signals): Unconditionally delegate.
9726 * target.h (struct target_ops) <to_program_signals>: Use
9727 TARGET_DEFAULT_IGNORE.
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9731 * target-delegates.c: Rebuild.
9732 * target.c (target_pass_signals): Unconditionally delegate.
9733 * target.h (struct target_ops) <to_pass_signals>: Use
9734 TARGET_DEFAULT_IGNORE.
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9738 * target-delegates.c: Rebuild.
9739 * target.c (default_mourn_inferior): New function.
9740 (target_mourn_inferior): Unconditionally delegate.
9741 * target.h (struct target_ops) <to_mourn_inferior>: Use
9742 TARGET_DEFAULT_FUNC.
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target-delegates.c: Rebuild.
9747 * target.c (default_follow_fork): New function.
9748 (target_follow_fork): Unconditionally delegate.
9749 * target.h (struct target_ops) <to_follow_fork>: Use
9750 TARGET_DEFAULT_FUNC.
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9754 * target-delegates.c: Rebuild.
9755 * target.c (target_kill): Unconditionally delegate.
9756 * target.h (struct target_ops) <to_kill>: Use
9757 TARGET_DEFAULT_NORETURN.
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9761 * target-delegates.c: Rebuild.
9762 * target.c (target_masked_watch_num_registers): Unconditionally
9764 * target.h (struct target_ops) <to_masked_watch_num_registers>:
9765 Use TARGET_DEFAULT_RETURN.
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9769 * target-delegates.c: Rebuild.
9770 * target.c (target_remove_mask_watchpoint): Unconditionally
9772 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9773 TARGET_DEFAULT_RETURN.
9775 2014-02-19 Tom Tromey <tromey@redhat.com>
9777 * target-delegates.c: Rebuild.
9778 * target.c (target_insert_mask_watchpoint): Unconditionally
9780 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9781 TARGET_DEFAULT_RETURN.
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9785 * target-delegates.c: Rebuild.
9786 * target.c (target_ranged_break_num_registers): Unconditionally
9788 * target.h (struct target_ops) <to_ranged_break_num_registers>:
9789 Use TARGET_DEFAULT_RETURN.
9791 2014-02-19 Tom Tromey <tromey@redhat.com>
9793 * target-delegates.c: Rebuild.
9794 * target.c (target_fetch_registers): Unconditionally delegate.
9795 * target.h (struct target_ops) <to_fetch_registers>: Use
9796 TARGET_DEFAULT_NORETURN.
9798 2014-02-19 Tom Tromey <tromey@redhat.com>
9800 * target-delegates.c: Rebuild.
9801 * target.c (update_current_target): Don't inherit or default
9803 * target.h (struct target_ops) <to_stop>: Use
9804 TARGET_DEFAULT_IGNORE.
9806 2014-02-19 Tom Tromey <tromey@redhat.com>
9808 * target-delegates.c: Rebuild.
9809 * target.c (update_current_target): Don't inherit or default
9810 to_can_run_breakpoint_commands.
9811 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9812 Use TARGET_DEFAULT_RETURN.
9814 2014-02-19 Tom Tromey <tromey@redhat.com>
9816 * target-delegates.c: Rebuild.
9817 * target.c (update_current_target): Don't inherit or default
9818 to_supports_evaluation_of_breakpoint_conditions.
9819 * target.h (struct target_ops)
9820 <to_supports_evaluation_of_breakpoint_conditions>: Use
9821 TARGET_DEFAULT_RETURN.
9823 2014-02-19 Tom Tromey <tromey@redhat.com>
9825 * target-delegates.c: Rebuild.
9826 * target.c (update_current_target): Don't inherit or default
9827 to_augmented_libraries_svr4_read.
9828 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9829 Use TARGET_DEFAULT_RETURN.
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9833 * target-delegates.c: Rebuild.
9834 * target.c (update_current_target): Don't inherit or default
9836 * target.h (struct target_ops) <to_can_use_agent>: Use
9837 TARGET_DEFAULT_RETURN.
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * target-delegates.c: Rebuild.
9842 * target.c (update_current_target): Don't inherit or default
9844 * target.h (struct target_ops) <to_use_agent>: Use
9845 TARGET_DEFAULT_NORETURN.
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target-delegates.c: Rebuild.
9850 * target.c (update_current_target): Don't inherit or default
9852 (return_null): Remove.
9853 * target.h (struct target_ops) <to_traceframe_info>: Use
9854 TARGET_DEFAULT_RETURN.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target-delegates.c: Rebuild.
9859 * target.c (update_current_target): Don't inherit or default
9860 to_static_tracepoint_markers_by_strid.
9861 * target.h (struct target_ops)
9862 <to_static_tracepoint_markers_by_strid>: Use
9863 TARGET_DEFAULT_NORETURN.
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * target-delegates.c: Rebuild.
9868 * target.c (update_current_target): Don't inherit or default
9869 to_static_tracepoint_marker_at.
9870 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9871 Use TARGET_DEFAULT_RETURN.
9873 2014-02-19 Tom Tromey <tromey@redhat.com>
9875 * target-delegates.c: Rebuild.
9876 * target.c (update_current_target): Don't inherit or default
9878 * target.h (struct target_ops) <to_set_permissions>: Use
9879 TARGET_DEFAULT_IGNORE.
9881 2014-02-19 Tom Tromey <tromey@redhat.com>
9883 * target-delegates.c: Rebuild.
9884 * target.c (update_current_target): Don't inherit or default
9886 * target.h (struct target_ops) <to_get_tib_address>: Use
9887 TARGET_DEFAULT_NORETURN.
9889 2014-02-19 Tom Tromey <tromey@redhat.com>
9891 * target-delegates.c: Rebuild.
9892 * target.c (update_current_target): Don't inherit or default
9894 * target.h (struct target_ops) <to_set_trace_notes>: Use
9895 TARGET_DEFAULT_RETURN.
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * target-delegates.c: Rebuild.
9900 * target.c (update_current_target): Don't initialize
9901 to_set_trace_buffer_size.
9902 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9903 TARGET_DEFAULT_IGNORE.
9905 2014-02-19 Tom Tromey <tromey@redhat.com>
9907 * target-delegates.c: Rebuild.
9908 * target.c (update_current_target): Don't inherit or default
9909 to_set_circular_trace_buffer.
9910 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9911 TARGET_DEFAULT_IGNORE.
9913 2014-02-19 Tom Tromey <tromey@redhat.com>
9915 * target-delegates.c: Rebuild.
9916 * target.c (update_current_target): Don't inherit or default
9917 to_set_disconnected_tracing.
9918 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9919 TARGET_DEFAULT_IGNORE.
9921 2014-02-19 Tom Tromey <tromey@redhat.com>
9923 * target-delegates.c: Rebuild.
9924 * target.c (update_current_target): Don't inherit or default
9925 to_get_min_fast_tracepoint_insn_len.
9926 (return_minus_one): Remove.
9927 * target.h (struct target_ops)
9928 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9930 2014-02-19 Tom Tromey <tromey@redhat.com>
9932 * target-delegates.c: Rebuild.
9933 * target.c (update_current_target): Don't inherit or default
9934 to_get_raw_trace_data.
9935 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9936 TARGET_DEFAULT_NORETURN.
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9940 * target-delegates.c: Rebuild.
9941 * target.c (update_current_target): Don't inherit or default
9942 to_upload_trace_state_variables.
9943 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9944 Use TARGET_DEFAULT_RETURN.
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9948 * target-delegates.c: Rebuild.
9949 * target.c (update_current_target): Don't inherit or default
9950 to_upload_tracepoints.
9951 * target.h (struct target_ops) <to_upload_tracepoints>: Use
9952 TARGET_DEFAULT_RETURN.
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * target-delegates.c: Rebuild.
9957 * target.c (update_current_target): Don't inherit or default
9959 * target.h (struct target_ops) <to_save_trace_data>: Use
9960 TARGET_DEFAULT_NORETURN.
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9964 * target-delegates.c: Rebuild.
9965 * target.c (update_current_target): Don't inherit or default
9966 to_get_trace_state_variable_value.
9967 * target.h (struct target_ops)
9968 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9970 2014-02-19 Tom Tromey <tromey@redhat.com>
9972 * target-delegates.c: Rebuild.
9973 * target.c (update_current_target): Don't inherit or default
9975 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9977 2014-02-19 Tom Tromey <tromey@redhat.com>
9979 * target-delegates.c: Rebuild.
9980 * target.c (update_current_target): Don't inherit or default
9982 * target.h (struct target_ops) <to_trace_stop>: Use
9983 TARGET_DEFAULT_NORETURN.
9985 2014-02-19 Tom Tromey <tromey@redhat.com>
9987 * target-delegates.c: Rebuild.
9988 * target.c (update_current_target): Don't inherit or default
9989 to_get_tracepoint_status.
9990 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9991 TARGET_DEFAULT_NORETURN.
9993 2014-02-19 Tom Tromey <tromey@redhat.com>
9995 * target-delegates.c: Rebuild.
9996 * target.c (update_current_target): Don't inherit or default
9997 to_get_trace_status.
9998 * target.h (struct target_ops) <to_get_trace_status>: Use
9999 TARGET_DEFAULT_RETURN.
10001 2014-02-19 Tom Tromey <tromey@redhat.com>
10003 * target-delegates.c: Rebuild.
10004 * target.c (update_current_target): Don't inherit or default
10006 * target.h (struct target_ops) <to_trace_start>: Use
10007 TARGET_DEFAULT_NORETURN.
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10011 * target-delegates.c: Rebuild.
10012 * target.c (update_current_target): Don't inherit or default
10013 to_trace_set_readonly_regions.
10014 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10015 Use TARGET_DEFAULT_NORETURN.
10017 2014-02-19 Tom Tromey <tromey@redhat.com>
10019 * target-delegates.c: Rebuild.
10020 * target.c (update_current_target): Don't inherit or default
10021 to_disable_tracepoint.
10022 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10023 TARGET_DEFAULT_NORETURN.
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10027 * target-delegates.c: Rebuild.
10028 * target.c (update_current_target): Don't inherit or default
10029 to_enable_tracepoint.
10030 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10031 TARGET_DEFAULT_NORETURN.
10033 2014-02-19 Tom Tromey <tromey@redhat.com>
10035 * target-delegates.c: Rebuild.
10036 * target.c (update_current_target): Don't inherit or default
10037 to_download_trace_state_variable.
10038 * target.h (struct target_ops) <to_download_trace_state_variable>:
10039 Use TARGET_DEFAULT_NORETURN.
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10043 * target-delegates.c: Rebuild.
10044 * target.c (update_current_target): Don't inherit or default
10045 to_can_download_tracepoint.
10046 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10047 TARGET_DEFAULT_RETURN.
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10051 * target-delegates.c: Rebuild.
10052 * target.c (update_current_target): Don't inherit or default
10053 to_download_tracepoint.
10054 * target.h (struct target_ops) <to_download_tracepoint>: Use
10055 TARGET_DEFAULT_NORETURN.
10057 2014-02-19 Tom Tromey <tromey@redhat.com>
10059 * target-delegates.c: Rebuild.
10060 * target.c (update_current_target): Don't inherit or default
10062 * target.h (struct target_ops) <to_trace_init>: Use
10063 TARGET_DEFAULT_RETURN.
10065 2014-02-19 Tom Tromey <tromey@redhat.com>
10067 * target-delegates.c: Rebuild.
10068 * target.c (update_current_target): Don't inherit or default
10069 to_supports_string_tracing.
10070 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10071 TARGET_DEFAULT_RETURN.
10073 2014-02-19 Tom Tromey <tromey@redhat.com>
10075 * target-delegates.c: Rebuild.
10076 * target.c (update_current_target): Don't inherit or default
10077 to_supports_enable_disable_tracepoint.
10078 * target.h (struct target_ops)
10079 <to_supports_enable_disable_tracepoint>: Use
10080 TARGET_DEFAULT_RETURN.
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10084 * target-delegates.c: Rebuild.
10085 * target.c (update_current_target): Don't inherit or default
10086 to_supports_multi_process.
10087 * target.h (struct target_ops) <to_supports_multi_process>: Use
10088 TARGET_DEFAULT_RETURN.
10090 2014-02-19 Tom Tromey <tromey@redhat.com>
10092 * target-delegates.c: Rebuild.
10093 * target.c (update_current_target): Don't inherit or default
10094 to_get_ada_task_ptid.
10095 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10096 TARGET_DEFAULT_FUNC.
10098 2014-02-19 Tom Tromey <tromey@redhat.com>
10100 * target-delegates.c: Rebuild.
10101 * target.c (update_current_target): Don't inherit or default
10102 to_thread_architecture.
10103 * target.h (struct target_ops) <to_thread_architecture>: Use
10104 TARGET_DEFAULT_FUNC.
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10108 * target-delegates.c: Rebuild.
10109 * target.c (update_current_target): Don't inherit or default
10110 to_execution_direction.
10111 * target.h (struct target_ops) <to_execution_direction>: Use
10112 TARGET_DEFAULT_FUNC.
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10116 * target-delegates.c: Rebuild.
10117 * target.c (update_current_target): Don't inherit or default
10118 to_can_execute_reverse.
10119 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10120 TARGET_DEFAULT_RETURN.
10121 (target_can_execute_reverse): Unconditionally delegate.
10123 2014-02-19 Tom Tromey <tromey@redhat.com>
10125 * target-delegates.c: Rebuild.
10126 * target.c (update_current_target): Don't inherit or default
10128 (dummy_goto_bookmark): Remove.
10129 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10130 * target.h (struct target_ops) <to_goto_bookmark>: Use
10131 TARGET_DEFAULT_NORETURN.
10133 2014-02-19 Tom Tromey <tromey@redhat.com>
10135 * target-delegates.c: Rebuild.
10136 * target.c (update_current_target): Don't inherit or default
10138 (dummy_get_bookmark): Remove.
10139 (init_dummy_target): Don't inherit or default to_get_bookmark.
10140 * target.h (struct target_ops) <to_get_bookmark>: Use
10141 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
10148 (init_dummy_target): Don't initialize to_make_corefile_notes.
10149 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10150 TARGET_DEFAULT_FUNC.
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
10156 to_find_memory_regions.
10157 (init_dummy_target): Don't initialize to_find_memory_regions.
10158 * target.h (struct target_ops) <to_find_memory_regions>: Use
10159 TARGET_DEFAULT_FUNC.
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target-delegates.c: Rebuild.
10164 * target.c (update_current_target): Don't inherit or default
10166 * target.h (struct target_ops) <to_log_command>: Use
10167 TARGET_DEFAULT_IGNORE.
10168 (target_log_command): Unconditionally delegate.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * target-delegates.c: Rebuild.
10173 * target.c (update_current_target): Don't inherit or default
10174 to_pid_to_exec_file.
10175 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10176 TARGET_DEFAULT_RETURN.
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10180 * target-delegates.c: Rebuild.
10181 * target.c (update_current_target): Don't inherit or default
10183 (target_thread_name): Unconditionally delegate.
10184 * target.h (struct target_ops) <to_thread_name>: Use
10185 TARGET_DEFAULT_RETURN.
10187 2014-02-19 Tom Tromey <tromey@redhat.com>
10189 * target-delegates.c: Rebuild.
10190 * target.c (update_current_target): Don't inherit or default
10191 to_extra_thread_info.
10192 * target.h (struct target_ops) <to_extra_thread_info>: Use
10193 TARGET_DEFAULT_RETURN.
10195 2014-02-19 Tom Tromey <tromey@redhat.com>
10197 * target-delegates.c: Rebuild.
10198 * target.c (update_current_target): Don't inherit or default
10200 * target.h (struct target_ops) <to_has_exited>: Use
10201 TARGET_DEFAULT_RETURN..
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10205 * target-delegates.c: Rebuild.
10206 * target.c (update_current_target): Don't inherit or default
10207 to_set_syscall_catchpoint.
10208 (return_one): Remove.
10209 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10210 TARGET_DEFAULT_RETURN.
10212 2014-02-19 Tom Tromey <tromey@redhat.com>
10214 * target-delegates.c: Rebuild.
10215 * target.c (update_current_target): Don't inherit or default
10216 to_insert_exec_catchpoint.
10217 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10218 TARGET_DEFAULT_RETURN.
10220 2014-01-08 Tom Tromey <tromey@redhat.com>
10222 * target-delegates.c: Rebuild.
10223 * target.c (update_current_target): Don't inherit or default
10224 to_insert_exec_catchpoint.
10225 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10226 TARGET_DEFAULT_RETURN.
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * target-delegates.c: Rebuild.
10231 * target.c (update_current_target): Don't inherit or default
10232 to_remove_vfork_catchpoint.
10233 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10234 TARGET_DEFAULT_RETURN.
10236 2014-02-19 Tom Tromey <tromey@redhat.com>
10238 * target-delegates.c: Rebuild.
10239 * target.c (update_current_target): Don't inherit or default
10240 to_insert_vfork_catchpoint.
10241 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10242 TARGET_DEFAULT_RETURN.
10244 2014-02-19 Tom Tromey <tromey@redhat.com>
10246 * target-delegates.c: Rebuild.
10247 * target.c (update_current_target): Don't inherit or default
10248 to_remove_fork_catchpoint.
10249 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10250 TARGET_DEFAULT_RETURN.
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10254 * target-delegates.c: Rebuild.
10255 * target.c (update_current_target): Don't inherit or default
10256 to_insert_fork_catchpoint.
10257 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10258 TARGET_DEFAULT_RETURN.
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10262 * target-delegates.c: Rebuild.
10263 * target.c (update_current_target): Don't inherit or default
10264 to_post_startup_inferior.
10265 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10266 TARGET_DEFAULT_IGNORE.
10268 2014-02-19 Tom Tromey <tromey@redhat.com>
10270 * target-delegates.c: Rebuild.
10271 * target.c (update_current_target): Don't inherit or default
10273 * target.h (struct target_ops) <to_load>: Use
10274 TARGET_DEFAULT_NORETURN.
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * target-delegates.c: Rebuild.
10279 * target.c (update_current_target): Don't inherit or default
10281 * target.h (struct target_ops) <to_terminal_info>: Use
10282 TARGET_DEFAULT_FUNC.
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10286 * target-delegates.c: Rebuild.
10287 * target.c (update_current_target): Don't inherit or default
10288 to_terminal_save_ours.
10289 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10290 TARGET_DEFAULT_IGNORE.
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target-delegates.c: Rebuild.
10295 * target.c (update_current_target): Don't inherit or default
10297 * target.h (struct target_ops) <to_terminal_ours>: Use
10298 TARGET_DEFAULT_IGNORE.
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10302 * target-delegates.c: Rebuild.
10303 * target.c (update_current_target): Don't inherit or default
10304 to_terminal_ours_for_output.
10305 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10306 TARGET_DEFAULT_IGNORE.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * target-delegates.c: Rebuild.
10311 * target.c (update_current_target): Don't inherit or default
10312 to_terminal_inferior.
10313 * target.h (struct target_ops) <to_terminal_inferior>: Use
10314 TARGET_DEFAULT_IGNORE.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target-delegates.c: Rebuild.
10319 * target.c (update_current_target): Don't inherit or default
10321 * target.h (struct target_ops) <to_terminal_init>: Use
10322 TARGET_DEFAULT_IGNORE.
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10326 * target-delegates.c: Rebuild.
10327 * target.c (update_current_target): Don't inherit or default
10328 to_can_accel_watchpoint_condition.
10329 * target.h (struct target_ops)
10330 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10332 2014-02-19 Tom Tromey <tromey@redhat.com>
10334 * target-delegates.c: Rebuild.
10335 * target.c (update_current_target): Don't inherit or default
10336 to_region_ok_for_hw_watchpoint.
10337 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10338 Use TARGET_DEFAULT_FUNC.
10340 2014-02-19 Tom Tromey <tromey@redhat.com>
10342 * target-delegates.c: Rebuild.
10343 * target.c (update_current_target): Don't inherit or default
10344 to_watchpoint_addr_within_range.
10345 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10346 Use TARGET_DEFAULT_FUNC.
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * target-delegates.c: Rebuild.
10351 * target.c (update_current_target): Don't inherit or default
10352 to_remove_watchpoint.
10353 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10354 TARGET_DEFAULT_NORETURN.
10356 2014-02-19 Tom Tromey <tromey@redhat.com>
10358 * target-delegates.c: Rebuild.
10359 * target.c (update_current_target): Don't inherit or default
10360 to_insert_watchpoint.
10361 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10362 TARGET_DEFAULT_RETURN.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * target-delegates.c: Rebuild.
10367 * target.c (update_current_target): Don't inherit or default
10368 to_remove_hw_breakpoint.
10369 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10370 TARGET_DEFAULT_RETURN.
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10374 * target-delegates.c: Rebuild.
10375 * target.c (update_current_target): Don't inherit or default
10376 to_insert_hw_breakpoint.
10377 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10378 TARGET_DEFAULT_RETURN.
10380 2014-02-19 Tom Tromey <tromey@redhat.com>
10382 * target-delegates.c: Rebuild.
10383 * target.c (update_current_target): Don't inherit or default
10384 to_can_use_hw_breakpoint.
10385 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10386 TARGET_DEFAULT_RETURN.
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10390 * target-delegates.c: Rebuild.
10391 * target.c (update_current_target): Don't inherit or default
10393 * target.h (struct target_ops) <to_files_info>: Use
10394 TARGET_DEFAULT_IGNORE.
10396 2014-02-19 Tom Tromey <tromey@redhat.com>
10398 * target-delegates.c: Rebuild.
10399 * target.c (update_current_target): Don't inherit or default
10401 * target.h (struct target_ops) <to_store>: Use
10402 TARGET_DEFAULT_NORETURN.
10404 2014-02-19 Tom Tromey <tromey@redhat.com>
10406 * target-delegates.c: Rebuild.
10407 * target.c (update_current_target): Don't inherit or default
10409 * target.h (struct target_ops) <to_post_attach>: Use
10410 TARGET_DEFAULT_IGNORE.
10412 2014-02-19 Tom Tromey <tromey@redhat.com>
10414 * target-delegates.c: Rebuild.
10415 * target.c (update_current_target): Don't inherit or default
10417 (default_rcmd): New function.
10418 (do_monitor_command): Unconditionally delegate.
10419 * target.h (struct target_ops) <to_rmcd>: Use
10420 TARGET_DEFAULT_FUNC.
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target-delegates.c: Rebuild.
10425 * target.c (init_dummy_target): Don't initialize to_attach.
10426 (target_attach): Unconditionally delegate.
10427 * target.h (struct target_ops) <to_attach>: Use
10428 TARGET_DEFAULT_FUNC.
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10432 * target-delegates.c: Rebuild.
10433 * target.c (target_detach): Unconditionally delegate.
10434 (init_dummy_target): Don't initialize to_detach.
10435 * target.h (struct target_ops) <to_detach>: Use
10436 TARGET_DEFAULT_IGNORE.
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10440 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10442 (target_augmented_libraries_svr4_read): Add argument.
10443 * target.c (update_current_target): Update.
10444 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target.h (struct target_ops) <to_call_history_range>: Add
10451 * target.c (target_call_history_range): Add argument.
10452 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10454 (record_btrace_call_history_from): Update.
10456 2014-02-19 Tom Tromey <tromey@redhat.com>
10458 * target.h (struct target_ops) <to_call_history_from>: Add
10460 * target.c (target_call_history_from): Add argument.
10461 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10464 2014-02-19 Tom Tromey <tromey@redhat.com>
10466 * target.h (struct target_ops) <to_call_history>: Add argument.
10467 * target.c (target_call_history): Add argument.
10468 * record-btrace.c (record_btrace_call_history): Add 'self'
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10473 * target.h (struct target_ops) <to_insn_history_range>: Add
10475 * target.c (target_insn_history_range): Add argument.
10476 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10478 (record_btrace_insn_history_from): Update.
10480 2014-02-19 Tom Tromey <tromey@redhat.com>
10482 * target.h (struct target_ops) <to_insn_history_from>: Add
10484 * target.c (target_insn_history_from): Add argument.
10485 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10488 2014-02-19 Tom Tromey <tromey@redhat.com>
10490 * target.h (struct target_ops) <to_insn_history>: Add argument.
10491 * target.c (target_insn_history): Add argument.
10492 * record-btrace.c (record_btrace_insn_history): Add 'self'
10495 2014-02-19 Tom Tromey <tromey@redhat.com>
10497 * target.h (struct target_ops) <to_goto_record>: Add argument.
10498 * target.c (target_goto_record): Add argument.
10499 * record-full.c (record_full_goto): Add 'self' argument.
10500 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10505 * target.c (target_goto_record_end): Add argument.
10506 * record-full.c (record_full_goto_end): Add 'self' argument.
10507 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10511 * target.h (struct target_ops) <to_goto_record_begin>: Add
10513 * target.c (target_goto_record_begin): Add argument.
10514 * record-full.c (record_full_goto_begin): Add 'self' argument.
10515 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10518 2014-02-19 Tom Tromey <tromey@redhat.com>
10520 * target.h (struct target_ops) <to_record_is_replaying>: Add
10522 * target.c (target_record_is_replaying): Add argument.
10523 * record-full.c (record_full_is_replaying): Add 'self' argument.
10524 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10526 (record_btrace_xfer_partial, record_btrace_store_registers)
10527 (record_btrace_prepare_to_store, record_btrace_resume)
10528 (record_btrace_wait, record_btrace_decr_pc_after_break)
10529 (record_btrace_find_new_threads, record_btrace_thread_alive):
10532 2014-02-19 Tom Tromey <tromey@redhat.com>
10534 * target.h (struct target_ops) <to_delete_record>: Add argument.
10535 * target.c (target_delete_record): Add argument.
10536 * record-full.c (record_full_delete): Add 'self' argument.
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10540 * target.h (struct target_ops) <to_save_record>: Add argument.
10541 * target.c (target_save_record): Add argument.
10542 * record-full.c (record_full_save): Add 'self' argument.
10543 (record_full_save): Add 'self' argument.
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10547 * target.h (struct target_ops) <to_info_record>: Add argument.
10548 * target.c (target_info_record): Add argument.
10549 * record.c (info_record_command): Add argument.
10550 * record-full.c (record_full_info): Add 'self' argument.
10551 * record-btrace.c (record_btrace_info): Add 'self' argument.
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10555 * target.h (struct target_ops) <to_stop_recording>: Add argument.
10556 * target.c (target_stop_recording): Add argument.
10557 * record.c (record_stop): Add argument.
10558 * record-btrace.c (record_btrace_stop_recording): Add 'self'
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10563 * target.h (struct target_ops) <to_read_btrace>: Add argument.
10564 * target.c (struct target_ops) <to_read_btrace>: Add argument.
10565 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
10567 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
10568 (_initialize_amd64_linux_nat): Use it.
10569 * i386-linux-nat.c (i386_linux_read_btrace): New function.
10570 (_initialize_i386_linux_nat): Use it.
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10574 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
10575 * target.c (target_teardown_btrace): Add argument.
10576 * remote.c (remote_teardown_btrace): Add 'self' argument.
10577 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
10579 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
10585 * target.c (target_disable_btrace): Add argument.
10586 * remote.c (remote_disable_btrace): Add 'self' argument.
10587 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
10589 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
10595 * target.c (target_enable_btrace): Add argument.
10596 * remote.c (remote_enable_btrace): Add 'self' argument.
10597 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
10599 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
10602 2014-02-19 Tom Tromey <tromey@redhat.com>
10604 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
10605 (target_can_use_agent): Add argument.
10606 * target.c (update_current_target): Update.
10607 * remote.c (remote_can_use_agent): Add 'self' argument.
10608 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
10610 2014-02-19 Tom Tromey <tromey@redhat.com>
10612 * target.h (struct target_ops) <to_use_agent>: Add argument.
10613 (target_use_agent): Add argument.
10614 * target.c (update_current_target): Update.
10615 * remote.c (remote_use_agent): Add 'self' argument.
10616 * inf-child.c (inf_child_use_agent): Add 'self' argument.
10618 2014-02-19 Tom Tromey <tromey@redhat.com>
10620 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
10621 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
10622 (target_traceframe_info): Add argument.
10623 * target.c (update_current_target): Update.
10624 * remote.c (remote_traceframe_info): Add 'self' argument.
10625 * ctf.c (ctf_traceframe_info): Add 'self' argument.
10627 2014-02-19 Tom Tromey <tromey@redhat.com>
10629 * target.h (target_static_tracepoint_markers_by_strid): Add
10631 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
10633 * target.c (update_current_target): Update.
10634 * remote.c (struct target_ops)
10635 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10636 * linux-nat.c (struct target_ops)
10637 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10641 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10643 (target_static_tracepoint_marker_at): Add argument.
10644 * target.c (update_current_target): Update.
10645 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10650 * target.h (struct target_ops) <to_set_permissions>: Add argument.
10651 (target_set_permissions): Add argument.
10652 * target.c (update_current_target): Update.
10653 * remote.c (remote_set_permissions): Add 'self' argument.
10654 (remote_start_remote): Update.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
10659 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
10660 (target_get_tib_address): Add argument.
10661 * target.c (update_current_target): Update.
10662 * remote.c (remote_get_tib_address): Add 'self' argument.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
10667 (target_set_trace_notes): Add argument.
10668 * target.c (update_current_target): Update.
10669 * remote.c (remote_set_trace_notes): Add 'self' argument.
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10673 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
10675 (target_set_trace_buffer_size): Add argument.
10676 * target.c (update_current_target): Update.
10677 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10681 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
10683 (target_set_circular_trace_buffer): Add argument.
10684 * target.c (update_current_target): Update.
10685 * remote.c (remote_set_circular_trace_buffer): Add 'self'
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10690 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
10692 (target_set_disconnected_tracing): Add argument.
10693 * target.c (update_current_target): Update.
10694 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * target.h (struct target_ops)
10699 <to_get_min_fast_tracepoint_insn_len>: Add argument.
10700 (target_get_min_fast_tracepoint_insn_len): Add argument.
10701 * target.c (update_current_target): Update.
10702 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10707 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
10709 (target_get_raw_trace_data): Add argument.
10710 * target.c (update_current_target): Update.
10711 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10715 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10717 (target_upload_trace_state_variables): Add argument.
10718 * target.c (update_current_target): Update.
10719 * remote.c (remote_upload_trace_state_variables): Add 'self'
10721 (remote_start_remote): Update.
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10725 * target.h (struct target_ops) <to_upload_tracepoints>: Add
10727 (target_upload_tracepoints): Add argument.
10728 * target.c (update_current_target): Update.
10729 * remote.c (remote_upload_tracepoints): Add 'self' argument.
10730 (remote_start_remote): Update.
10732 2014-02-19 Tom Tromey <tromey@redhat.com>
10734 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
10735 (target_save_trace_data): Add argument.
10736 * target.c (update_current_target): Update.
10737 * remote.c (remote_save_trace_data): Add 'self' argument.
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10741 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10743 * target.h (struct target_ops)
10744 <to_get_trace_state_variable_value>: Add argument.
10745 (target_get_trace_state_variable_value): Add argument.
10746 * target.c (update_current_target): Update.
10747 * remote.c (remote_get_trace_state_variable_value): Add 'self'
10749 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10751 2014-02-19 Tom Tromey <tromey@redhat.com>
10753 * tracepoint.c (tfile_trace_find): Add 'self' argument.
10754 * target.h (struct target_ops) <to_trace_find>: Add argument.
10755 (target_trace_find): Add argument.
10756 * target.c (update_current_target): Update.
10757 * remote.c (remote_trace_find): Add 'self' argument.
10758 * ctf.c (ctf_trace_find): Add 'self' argument.
10760 2014-02-19 Tom Tromey <tromey@redhat.com>
10762 * target.h (struct target_ops) <to_trace_stop>: Add argument.
10763 (target_trace_stop): Add argument.
10764 * target.c (update_current_target): Update.
10765 * remote.c (remote_trace_stop): Add 'self' argument.
10767 2014-02-19 Tom Tromey <tromey@redhat.com>
10769 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10770 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10772 (target_get_tracepoint_status): Add argument.
10773 * target.c (update_current_target): Update.
10774 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10776 2014-02-19 Tom Tromey <tromey@redhat.com>
10778 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10779 * target.h (struct target_ops) <to_get_trace_status>: Add
10781 (target_get_trace_status): Add argument.
10782 * target.c (update_current_target): Update.
10783 * remote.c (remote_get_trace_status): Add 'self' argument.
10784 (remote_start_remote, remote_can_download_tracepoint): Update.
10785 * ctf.c (ctf_get_trace_status): Add 'self' argument.
10787 2014-02-19 Tom Tromey <tromey@redhat.com>
10789 * target.h (struct target_ops) <to_trace_start>: Add argument.
10790 (target_trace_start): Add argument.
10791 * target.c (update_current_target): Update.
10792 * remote.c (remote_trace_start): Add 'self' argument.
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10798 (target_trace_set_readonly_regions): Add argument.
10799 * target.c (update_current_target): Update.
10800 * remote.c (remote_trace_set_readonly_regions): Add 'self'
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * target.h (struct target_ops) <to_disable_tracepoint>: Add
10807 (target_disable_tracepoint): Add argument.
10808 * target.c (update_current_target): Update.
10809 * remote.c (remote_disable_tracepoint): Add 'self' argument.
10811 2014-02-19 Tom Tromey <tromey@redhat.com>
10813 * target.h (struct target_ops) <to_enable_tracepoint>: Add
10815 (target_enable_tracepoint): Add argument.
10816 * target.c (update_current_target): Update.
10817 * remote.c (remote_enable_tracepoint): Add 'self' argument.
10819 2014-02-19 Tom Tromey <tromey@redhat.com>
10821 * target.h (struct target_ops) <to_download_trace_state_variable>:
10823 (target_download_trace_state_variable): Add argument.
10824 * target.c (update_current_target): Update.
10825 * remote.c (remote_download_trace_state_variable): Add 'self'
10828 2014-02-19 Tom Tromey <tromey@redhat.com>
10830 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10832 (target_can_download_tracepoint): Add argument.
10833 * target.c (update_current_target): Update.
10834 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10836 2014-02-19 Tom Tromey <tromey@redhat.com>
10838 * target.h (struct target_ops) <to_download_tracepoint>: Add
10840 (target_download_tracepoint): Add argument.
10841 * target.c (update_current_target): Update.
10842 * remote.c (remote_download_tracepoint): Add 'self' argument.
10844 2014-02-19 Tom Tromey <tromey@redhat.com>
10846 * target.h (struct target_ops) <to_trace_init>: Add argument.
10847 (target_trace_init): Add argument.
10848 * target.c (update_current_target): Update.
10849 * remote.c (remote_trace_init): Add 'self' argument.
10851 2014-02-19 Tom Tromey <tromey@redhat.com>
10853 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10854 * target.c (target_fileio_readlink): Add argument.
10855 * remote.c (remote_hostio_readlink): Add 'self' argument.
10856 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10858 2014-02-19 Tom Tromey <tromey@redhat.com>
10860 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10861 * target.c (target_fileio_unlink): Add argument.
10862 * remote.c (remote_hostio_unlink): Add 'self' argument.
10863 (remote_file_delete): Update.
10864 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target.h (struct target_ops) <to_fileio_close>: Add argument.
10869 * target.c (target_fileio_close): Add argument.
10870 * remote.c (remote_hostio_close): Add 'self' argument.
10871 (remote_hostio_close_cleanup): Update.
10872 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10874 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10876 2014-02-19 Tom Tromey <tromey@redhat.com>
10878 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10879 * target.c (target_fileio_pread): Add argument.
10880 * remote.c (remote_hostio_pread): Add 'self' argument.
10881 (remote_bfd_iovec_pread, remote_file_get): Update.
10882 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10886 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10887 * target.c (target_fileio_pwrite): Add argument.
10888 * remote.c (remote_hostio_pwrite): Add 'self' argument.
10889 (remote_file_put): Update.
10890 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target.h (struct target_ops) <to_fileio_open>: Add argument.
10895 * target.c (target_fileio_open): Add argument.
10896 * remote.c (remote_hostio_open): Add 'self' argument.
10897 (remote_bfd_iovec_open): Add 'self' argument.
10898 (remote_file_put): Add 'self' argument.
10899 (remote_file_get): Add 'self' argument.
10900 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10904 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10906 (target_can_run_breakpoint_commands): Add argument.
10907 * target.c (update_current_target): Update.
10908 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10910 (remote_insert_breakpoint): Add 'self' argument.
10911 (remote_insert_hw_breakpoint): Add 'self' argument.
10912 (remote_can_run_breakpoint_commands): Add 'self' argument.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target.h (struct target_ops)
10917 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10918 (target_supports_evaluation_of_breakpoint_conditions): Add
10920 * target.c (update_current_target): Update.
10921 * remote.c (remote_supports_cond_breakpoints): Add 'self'
10923 (remote_insert_breakpoint): Add 'self' argument.
10924 (remote_insert_hw_breakpoint): Add 'self' argument.
10925 (remote_supports_cond_breakpoints): Add 'self' argument.
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10929 * target.h (struct target_ops) <to_supports_string_tracing>: Add
10931 (target_supports_string_tracing): Add argument.
10932 * target.c (update_current_target): Update.
10933 * remote.c (remote_supports_string_tracing): Add 'self' argument.
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10937 * target.h (struct target_ops)
10938 <to_supports_disable_randomization>: Add argument.
10939 * target.c (find_default_supports_disable_randomization): Add
10941 (target_supports_disable_randomization): Add argument.
10942 (find_default_supports_disable_randomization): Add 'self'
10944 * remote.c (extended_remote_supports_disable_randomization): Add
10946 (remote_supports_disable_randomization): Add 'self' argument.
10947 (extended_remote_create_inferior): Update.
10948 * linux-nat.c (linux_nat_supports_disable_randomization): Add
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10953 * target.h (struct target_ops)
10954 <to_supports_enable_disable_tracepoint>: Add argument.
10955 (target_supports_enable_disable_tracepoint): Add argument.
10956 * target.c (update_current_target): Update.
10957 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10962 * target.h (struct target_ops) <to_supports_multi_process>: Add
10964 (target_supports_multi_process): Add argument.
10965 * target.c (update_current_target): Update.
10966 * remote.c (remote_supports_multi_process): Add 'self' argument.
10967 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10969 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10974 * target.h (struct target_ops) <to_execution_direction>: Add
10976 (target_execution_direction): Add argument.
10977 * target.c (default_execution_direction): Add 'self' argument.
10978 * record-full.c (record_full_execution_direction): Add 'self'
10981 2014-02-19 Tom Tromey <tromey@redhat.com>
10983 * target.h (struct target_ops) <to_can_execute_reverse>: Add
10985 (target_can_execute_reverse): Add argument.
10986 * remote.c (remote_can_execute_reverse): Add 'self' argument.
10987 * record-full.c (record_full_can_execute_reverse): Add 'self'
10989 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10992 2014-02-19 Tom Tromey <tromey@redhat.com>
10994 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10995 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10997 (target_get_ada_task_ptid): Add argument.
10998 * target.c (update_current_target): Update.
10999 (default_get_ada_task_ptid): Add 'self' argument.
11000 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11001 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11002 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11004 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11006 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11008 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11010 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11011 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11014 2014-02-19 Tom Tromey <tromey@redhat.com>
11016 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11017 (target_goto_bookmark): Add argument.
11018 * target.c (dummy_goto_bookmark): Add 'self' argument.
11019 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11021 2014-02-19 Tom Tromey <tromey@redhat.com>
11023 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11024 (target_get_bookmark): Add argument.
11025 * target.c (dummy_get_bookmark): Add 'self' argument.
11026 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11028 2014-02-19 Tom Tromey <tromey@redhat.com>
11030 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11032 (target_make_corefile_notes): Add argument.
11033 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11034 * procfs.c (procfs_make_note_section): Add 'self' argument.
11035 (procfs_make_note_section): Add 'self' argument.
11036 (procfs_make_note_section): Add 'self' argument.
11037 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11039 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11040 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11041 * exec.c (exec_make_note_section): Add 'self' argument.
11042 (exec_make_note_section): Add 'self' argument.
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11046 * target.h (struct target_ops) <to_find_memory_regions>: Add
11048 (target_find_memory_regions): Add argument.
11049 * target.c (dummy_find_memory_regions): Add 'self' argument.
11050 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11051 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11052 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11053 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11054 * exec. (exec_do_find_memory_regions): New global.
11055 (exec_set_find_memory_regions): Rewrite.
11056 (exec_find_memory_regions): New function.
11057 (init_exec_ops): Use exec_find_memory_regions.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * target.h (struct target_ops) <to_supports_non_stop>: Add
11063 * target.c (find_default_supports_non_stop): Add argument.
11064 (target_supports_non_stop): Add argument.
11065 (find_default_supports_non_stop): Add 'self' argument.
11066 * remote.c (remote_supports_non_stop): Add 'self' argument.
11067 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11069 2014-02-19 Tom Tromey <tromey@redhat.com>
11071 * target.h (struct target_ops) <to_log_command>: Add argument.
11072 (target_log_command): Add argument.
11073 * serial.h (serial_log_command): Add 'self' argument.
11074 * serial.c (serial_log_command): Add 'self' argument.
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11079 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11081 (target_pid_to_exec_file): Add argument.
11082 * target.c (debug_to_pid_to_exec_file): Add argument.
11083 (update_current_target): Update.
11084 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11085 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11086 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11087 (linux_handle_extended_wait): Update.
11088 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11089 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11090 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11091 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * target.h (struct target_ops) <to_rcmd>: Add argument.
11096 (target_rcmd): Add argument.
11097 * target.c (debug_to_rcmd): Add argument.
11098 (update_current_target, do_monitor_command): Update.
11099 * remote.c (remote_rcmd): Add 'self' argument.
11100 * monitor.c (monitor_rcmd): Add 'self' argument.
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11104 * windows-nat.c (windows_stop): Add 'self' argument.
11105 * target.h (struct target_ops) <to_stop>: Add argument.
11106 * target.c (target_stop): Add argument.
11107 (debug_to_stop): Add argument.
11108 (update_current_target): Update.
11109 * remote.c (remote_stop): Add 'self' argument.
11110 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11111 (gdbsim_cntrl_c): Update.
11112 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11113 * procfs.c (procfs_stop): Add 'self' argument.
11114 * nto-procfs.c (procfs_stop): Add 'self' argument.
11115 * monitor.c (monitor_stop): Add 'self' argument.
11116 (monitor_open): Update.
11117 * linux-nat.c (linux_nat_stop): Add argument.
11118 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11119 * gnu-nat.c (gnu_stop): Add 'self' argument.
11120 * darwin-nat.c (darwin_stop): Add 'self' argument.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * target.h (struct target_ops) <to_thread_name>: Add argument.
11125 * target.c (target_thread_name): Add argument.
11126 (update_current_target): Update.
11127 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11131 * target.h (struct target_ops) <to_extra_thread_info>: Add
11133 (target_extra_thread_info): Add argument.
11134 * target.c (update_current_target): Update.
11135 * remote.c (remote_threads_extra_info): Add 'self' argument.
11136 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11138 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11139 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11140 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11142 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11144 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11146 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target.h (struct target_ops) <to_program_signals>: Add argument.
11152 * target.c (target_program_signals): Add argument.
11153 * remote.c (remote_program_signals): Add 'self' argument.
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11157 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11158 * target.c (target_pass_signals): Add argument.
11159 * remote.c (remote_pass_signals): Add 'self' argument.
11160 (remote_start_remote): Update.
11161 * procfs.c (procfs_pass_signals): Add 'self' argument.
11162 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11163 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11164 (linux_nat_create_inferior, linux_nat_attach): Update.
11166 2014-02-19 Tom Tromey <tromey@redhat.com>
11168 * windows-nat.c (windows_can_run): Add 'self' argument.
11169 * target.h (struct target_ops) <to_can_run>: Add argument.
11170 (target_can_run): Add argument.
11171 * target.c (debug_to_can_run): Add argument.
11172 (update_current_target): Update.
11173 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11174 * inf-child.c (inf_child_can_run): Add 'self' argument.
11175 * go32-nat.c (go32_can_run): Add 'self' argument.
11177 2014-02-19 Tom Tromey <tromey@redhat.com>
11179 * target.h (struct target_ops) <to_has_exited>: Add argument.
11180 (target_has_exited): Add argument.
11181 * target.c (debug_to_has_exited): Add argument.
11182 (update_current_target): Update.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11188 (target_set_syscall_catchpoint): Add argument.
11189 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11191 * target.c (update_current_target): Update.
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11195 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11197 (target_remove_exec_catchpoint): Add argument.
11198 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11199 (update_current_target): Update.
11200 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11205 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11207 (target_insert_exec_catchpoint): Add argument.
11208 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11209 (update_current_target): Update.
11210 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11213 2014-02-19 Tom Tromey <tromey@redhat.com>
11215 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11217 (target_remove_vfork_catchpoint): Add argument.
11218 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11219 (update_current_target): Update.
11220 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11225 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11227 (target_insert_vfork_catchpoint): Add argument.
11228 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11229 (update_current_target): Update.
11230 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11235 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11237 (target_remove_fork_catchpoint): Add argument.
11238 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11239 (update_current_target): Update.
11240 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11243 2014-02-19 Tom Tromey <tromey@redhat.com>
11245 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11247 (target_insert_fork_catchpoint): Add argument.
11248 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11249 (update_current_target): Update.
11250 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11253 2014-02-19 Tom Tromey <tromey@redhat.com>
11255 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11257 (target_post_startup_inferior): Add argument.
11258 * target.c (debug_to_post_startup_inferior): Add argument.
11259 (update_current_target): Update.
11260 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11262 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11264 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11266 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11268 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11270 (super_post_startup_inferior): Likewise.
11271 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11273 (super_post_startup_inferior): Likewise.
11274 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11275 Add 'self' argument.
11276 (super_post_startup_inferior): Likewise.
11278 2014-02-19 Tom Tromey <tromey@redhat.com>
11280 * target.h (struct target_ops) <to_load>: Add argument.
11281 * target.c (target_load): Add argument.
11282 (debug_to_load): Add argument.
11283 (update_current_target): Update.
11284 * remote.c (remote_load): Add 'self' argument.
11285 * remote-sim.c (gdbsim_load): Add 'self' argument.
11286 * remote-mips.c (mips_load): Add 'self' argument.
11287 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11288 * monitor.c (monitor_load): Add 'self' argument.
11289 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11293 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11294 (target_terminal_info): Add argument.
11295 * target.c (debug_to_terminal_info): Add argument.
11296 (default_terminal_info): Likewise.
11297 * inflow.c (child_terminal_info): Add 'self' argument.
11298 * inferior.h (child_terminal_info): Add 'self' argument.
11299 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11303 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11305 (target_terminal_save_ours): Add argument.
11306 * target.c (debug_to_terminal_save_ours): Add argument.
11307 (update_current_target): Update.
11308 * inflow.c (terminal_save_ours): Add 'self' argument.
11309 * inferior.h (terminal_save_ours): Add 'self' argument.
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11313 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11314 (target_terminal_ours): Add argument.
11315 * target.c (debug_to_terminal_ours): Add argument.
11316 (update_current_target): Update.
11317 * remote.c (remote_terminal_ours): Add 'self' argument.
11318 (remote_close): Update.
11319 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11320 * inflow.c (terminal_ours): Add 'self' argument.
11321 * inferior.h (terminal_ours): Add 'self' argument.
11322 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11324 2014-02-19 Pedro Alves <palves@redhat.com>
11325 Tom Tromey <tromey@redhat.com>
11327 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11329 (target_terminal_ours_for_output): Add argument.
11330 * target.c (debug_to_terminal_ours_for_output): Add argument.
11331 (update_current_target): Update.
11332 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11333 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11334 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * target.h (struct target_ops) <to_terminal_inferior>: Add
11340 * target.c (target_terminal_inferior): Add argument.
11341 (update_current_target): Update.
11342 * remote.c (remote_terminal_inferior): Add 'self' argument.
11343 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11344 * inflow.c (terminal_inferior): Add 'self' argument.
11345 * inferior.h (terminal_inferior): Add 'self' argument.
11346 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11347 (go32_terminal_inferior): Add 'self' argument.
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11352 (target_terminal_init): Add argument.
11353 * target.c (debug_to_terminal_init): Add argument.
11354 (update_current_target): Update.
11355 * inflow.c (terminal_init_inferior): Add 'self' argument.
11356 * inferior.h (terminal_init_inferior): Add 'self' argument.
11357 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11358 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11362 * target.h (struct target_ops)
11363 <to_can_accel_watchpoint_condition>: Add argument.
11364 (target_can_accel_watchpoint_condition): Add argument.
11365 * target.c (debug_to_can_accel_watchpoint_condition): Add
11367 (update_current_target): Update.
11368 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11371 2014-02-19 Tom Tromey <tromey@redhat.com>
11373 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11375 (target_region_ok_for_hw_watchpoint): Add argument.
11376 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11377 (default_region_ok_for_hw_watchpoint): Add argument.
11378 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11379 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11381 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11383 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11385 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11387 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11389 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11391 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11392 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11394 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11395 Add 'self' argument.
11397 2014-02-19 Tom Tromey <tromey@redhat.com>
11399 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11401 (target_insert_watchpoint): Add argument.
11402 * target.c (debug_to_insert_watchpoint): Add argument.
11403 (update_current_target): Update.
11404 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11405 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11406 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11407 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11408 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11409 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11411 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11412 (procfs_insert_hw_watchpoint): Add 'self' argument.
11413 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11415 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11417 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11419 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11420 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11422 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11429 (target_remove_watchpoint): Add argument.
11430 * target.c (debug_to_remove_watchpoint): Add argument.
11431 (update_current_target): Update.
11432 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11433 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11434 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11435 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11436 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11437 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11439 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11440 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11442 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11444 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11446 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11447 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11449 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11452 2014-02-19 Tom Tromey <tromey@redhat.com>
11454 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11456 (target_remove_hw_breakpoint): Add argument.
11457 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11458 (update_current_target): Update.
11459 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11460 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11462 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11463 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11465 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11468 2014-02-19 Tom Tromey <tromey@redhat.com>
11470 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11472 (target_insert_hw_breakpoint): Add argument.
11473 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11474 (update_current_target): Update.
11475 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11476 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11478 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11479 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11480 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11482 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11487 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11489 (target_can_use_hardware_watchpoint): Add argument.
11490 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11491 (update_current_target): Update.
11492 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11494 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11496 * remote.c (remote_check_watch_resources): Add 'self' argument.
11497 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11498 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11500 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11501 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11503 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11505 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11507 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11509 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11511 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11513 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11514 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11516 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11519 2014-02-19 Tom Tromey <tromey@redhat.com>
11521 * target.h (struct target_ops) <to_post_attach>: Add argument.
11522 (target_post_attach): Add argument.
11523 * target.c (debug_to_post_attach): Add argument.
11524 (update_current_target): Update.
11525 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11526 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11527 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11528 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11529 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * windows-nat.c (windows_close): Add 'self' argument.
11534 * tracepoint.c (tfile_close): Add 'self' argument.
11535 * target.h (struct target_ops) <to_close>: Add argument.
11536 * target.c (target_close): Add argument.
11537 (update_current_target): Update.
11538 * remote.c (remote_close): Add 'self' argument.
11539 * remote-sim.c (gdbsim_close): Add 'self' argument.
11540 * remote-mips.c (mips_close): Add 'self' argument.
11541 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
11542 * record-full.c (record_full_close): Add 'self' argument.
11543 * record-btrace.c (record_btrace_close): Add 'self' argument.
11544 * monitor.h (monitor_close): Add 'self' argument.
11545 * monitor.c (monitor_close): Add 'self' argument.
11546 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
11547 * linux-nat.c (linux_nat_close): Add argument.
11548 * go32-nat.c (go32_close): Add 'self' argument.
11549 * exec.c (exec_close_1): Add 'self' argument.
11550 * ctf.c (ctf_close): Add 'self' argument.
11551 * corelow.c (core_close): Add 'self' argument.
11552 (core_close_cleanup): Update.
11553 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
11554 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11558 * remote.c (remote_load): New function.
11559 (init_remote_ops): Use it.
11561 2014-02-19 Tom Tromey <tromey@redhat.com>
11563 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
11565 * common/linux-btrace.h (linux_supports_btrace): Update.
11566 * remote.c (remote_supports_btrace): Add "self" argument.
11567 * target-delegates.c: Rebuild.
11568 * target.c (target_supports_btrace): Remove.
11569 * target.h (struct target_ops) <to_supports_btrace>: Add
11570 target_ops argument.
11571 (target_supports_btrace): New define.
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * record-full.c (record_full_beneath_to_resume_ops)
11576 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
11577 (record_full_beneath_to_wait)
11578 (record_full_beneath_to_store_registers_ops)
11579 (record_full_beneath_to_store_registers)
11580 (record_full_beneath_to_xfer_partial_ops)
11581 (record_full_beneath_to_xfer_partial)
11582 (record_full_beneath_to_insert_breakpoint_ops)
11583 (record_full_beneath_to_insert_breakpoint)
11584 (record_full_beneath_to_remove_breakpoint_ops)
11585 (record_full_beneath_to_remove_breakpoint)
11586 (record_full_beneath_to_stopped_by_watchpoint)
11587 (record_full_beneath_to_stopped_data_address)
11588 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
11589 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
11590 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
11591 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
11592 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
11593 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
11594 (tmp_to_stopped_data_address, tmp_to_async): Remove.
11595 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
11596 (record_full_resume, record_full_wait_1)
11597 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
11598 (record_full_store_registers, record_full_xfer_partial)
11599 (record_full_insert_breakpoint, record_full_remove_breakpoint)
11600 (record_full_async, record_full_core_xfer_partial): Use target
11602 * target-delegates.c: Rebuild.
11603 * target.c (current_xfer_partial): Remove.
11604 (update_current_target): Do not INHERIT or de_fault
11605 to_insert_breakpoint, to_remove_breakpoint,
11606 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
11607 to_is_async_p, to_async. Do not set to_xfer_partial field.
11608 (default_xfer_partial): Simplify.
11609 (current_xfer_partial): Remove.
11610 (target_wait, target_resume): Simplify.
11611 (find_default_can_async_p, find_default_is_async_p): Update.
11612 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
11613 to_xfer_partial, to_stopped_by_watchpoint,
11614 to_stopped_data_address.
11615 (target_store_registers): Simplify.
11616 (forward_target_remove_breakpoint)
11617 (forward_target_insert_breakpoint): Remove.
11618 (target_remove_breakpoint, target_insert_breakpoint)
11619 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
11620 * target.h (struct target_ops) <to_resume, to_wait,
11621 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
11622 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
11623 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
11625 (forward_target_remove_breakpoint)
11626 (forward_target_insert_breakpoint): Remove.
11627 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
11629 (record_btrace_insert_breakpoint): Delegate directly.
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11634 * target-delegates.c: New file.
11635 * target.c: Include target-delegates.c.
11636 (init_dummy_target): Call install_dummy_methods.
11637 (complete_target_initialization): Call install_delegators.
11638 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
11639 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
11640 * make-target-delegates: New file.
11642 2014-02-19 Tom Tromey <tromey@redhat.com>
11644 * record.c (find_record_target): Use find_target_at.
11645 * target.c (find_target_at): New function.
11646 * target.h (find_target_at): Declare.
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11650 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
11651 Add 'ops' argument.
11652 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
11654 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
11655 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
11657 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
11659 * linux-nat.c (save_sigtrap): Update.
11660 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
11661 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
11662 (linux_nat_close): Update.
11663 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
11665 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
11667 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
11668 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
11669 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
11670 (tmp_to_async): Add 'ops' argument.
11671 (record_full_stopped_by_watchpoint, record_full_async)
11672 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
11674 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
11675 (m32r_stopped_by_watchpoint): Add 'ops' argument.
11676 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
11677 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
11678 (remote_is_async_p, remote_async): Add 'ops' argument.
11679 (remote_stopped_data_address): Update.
11680 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
11681 * target.c (update_current_target)
11682 (find_default_can_async_p, find_default_is_async_p): Update.
11683 (init_dummy_target): Update.
11684 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
11685 * target.h (struct target_ops) <to_stopped_by_watchpoint,
11686 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
11687 (target_can_async_p, target_is_async_p, target_async)
11688 (target_stopped_by_watchpoint): Update.
11690 2014-02-19 Yao Qi <yao@codesourcery.com>
11693 * gdbarch.sh: Remove startup_gdbarch.
11694 * gdbarch.c: Regenerated.
11695 * gdbarch.h: Likewise.
11697 2014-02-17 Kevin Buettner <kevinb@redhat.com>
11699 * rl78-tdep.c (rl78_g10_register_name): New function.
11700 (rl78_return_value): Add g10 support.
11701 (rl78_gdbarch_init): Register rl78_g10_register_name for the
11704 2014-02-17 Doug Evans <xdje42@gmail.com>
11706 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
11707 (SUBDIR_GUILE_SRCS): Ditto.
11708 (scm-gsmob.o): Ditto.
11710 2014-02-17 Yao Qi <yao@codesourcery.com>
11712 * gnu-nat.c (ILL_RPC): Declare defined function.
11714 2014-02-17 Yao Qi <yao@codesourcery.com>
11716 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
11717 mach_msg_type_number_t.
11718 (gnu_write_inferior): Likewise.
11720 2014-02-17 Yao Qi <yao@codesourcery.com>
11722 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
11724 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
11725 (inf_validate_procs, inf_signal): Likewise.
11726 (S_exception_raise_request): Likewise.
11727 (do_mach_notify_dead_name): Likewise.
11728 (steal_exc_port): Likewise.
11729 (gnu_read_inferior): Change 'copy_count''s type to
11730 mach_msg_type_number_t.
11731 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
11734 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
11736 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
11737 flag. Adjust all users; in particular...
11738 (gnu_wait): ..., don't decrement its value in here...
11739 (gnu_create_inferior): ..., and instead set the flag in here,
11740 around the startup_inferior call, and call that one with
11741 START_INFERIOR_TRAPS_EXPECTED.
11743 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11744 (ILL_RPC): ... new macro.
11745 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11746 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11747 (do_mach_notify_send_once, S_proc_setmsgport_reply)
11748 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11749 functions with ILL_RPC macro.
11750 (S_proc_pid2task_reply, S_proc_task2pid_reply)
11751 (S_proc_task2proc_reply, S_proc_proc2task_reply)
11752 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11753 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11754 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11755 (S_proc_getlogin_reply, S_proc_getsid_reply)
11756 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11757 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11758 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11759 (S_proc_getnports_reply, S_proc_is_important_reply)
11760 (S_proc_get_code_reply): New stub functions, generated with
11763 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11764 collected the type check structures.
11766 * reply_mig_hack.awk: Don't expect to see the auto keyword.
11768 2014-02-14 Doug Evans <dje@google.com>
11770 * target.c (target_write_partial): Fix result type.
11772 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
11774 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11775 the proper offsets to access fpregset_t.
11777 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
11779 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11780 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11781 * h8300-tdep.c (setmachinelist): Remove global.
11782 * hppa-tdep.c (hppa_sigtramp): Remove global.
11783 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11784 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11785 * ravenscar-thread.c (update_target_observer): Remove global.
11786 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11788 2014-02-12 Tom Tromey <tromey@redhat.com>
11790 * common/rsp-low.c: Update comments.
11791 * common/rsp-low.h: Update comments.
11793 2014-02-12 Tom Tromey <tromey@redhat.com>
11795 * common/rsp-low.c (convert_ascii_to_int): Remove.
11796 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11798 2014-02-12 Tom Tromey <tromey@redhat.com>
11800 * common/rsp-low.h (unhexify): Don't declare.
11801 * common/rsp-low.c (unhexify): Remove.
11803 2014-02-12 Tom Tromey <tromey@redhat.com>
11805 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11806 * common/rsp-low.c (convert_int_to_ascii): Remove.
11808 2014-02-12 Tom Tromey <tromey@redhat.com>
11810 * common/rsp-low.h (hexify): Don't declare.
11811 * common/rsp-low.c (hexify): Remove.
11813 2014-02-12 Tom Tromey <tromey@redhat.com>
11815 * common/rsp-low.c (hexify): Never take strlen of argument.
11817 2014-02-12 Tom Tromey <tromey@redhat.com>
11819 * common/rsp-low.c (bin2hex): Never take strlen of argument.
11820 * remote.c (extended_remote_run, remote_rcmd)
11821 (remote_download_trace_state_variable, remote_save_trace_data)
11822 (remote_set_trace_notes): Update.
11823 * tracepoint.c (encode_source_string, tfile_write_status)
11824 (tfile_write_uploaded_tsv): Update.
11826 2014-02-12 Tom Tromey <tromey@redhat.com>
11828 * tracepoint.c: Include rsp-low.h.
11829 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11830 * remote.c: Include rsp-low.h.
11831 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11832 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11833 (remote_unescape_input): Move to common/rsp-low.c.
11834 * common/rsp-low.h: New file.
11835 * common/rsp-low.c: New file.
11836 * Makefile.in (SFILES): Add common/rsp-low.c.
11837 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11838 (COMMON_OBS): Add rsp-low.o.
11839 (rsp-low.o): New target.
11841 2014-02-12 Tom Tromey <tromey@redhat.com>
11843 * utils.h: Include print-utils.h.
11844 (host_address_to_string, plongest, pulongest, phex, phex_nz)
11845 (int_string, core_addr_to_string, core_addr_to_string_nz)
11846 (hex_string, hex_string_custom): Don't declare.
11847 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11848 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11849 (hex_string_custom, int_string, core_addr_to_string)
11850 (core_addr_to_string_nz, host_address_to_string): Move to
11851 common/print-utils.c.
11852 * common/print-utils.h: New file.
11853 * common/print-utils.c: New file
11854 * Makefile.in (SFILES): Add common/print-utils.c.
11855 (HFILES_NO_SRCDIR): Add common/print-utils.h.
11856 (COMMON_OBS): Add print-utils.o.
11857 (print-utils.o): New target.
11859 2014-02-12 Tom Tromey <tromey@redhat.com>
11861 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11863 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11865 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11867 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11869 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11870 if a PT_IO ptrace request returns sucessfully but indicates that 0
11871 bytes were transferred.
11873 2014-02-12 Pedro Alves <palves@redhat.com>
11874 Kevin Buettner <kevinb@redhat.com>
11876 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11877 TYPE_INSTANCE_FLAG_CODE_SPACE.
11879 2014-02-12 Pedro Alves <palves@redhat.com>
11881 * h8300-tdep.c (pseudo_from_raw_register)
11882 (raw_from_pseudo_register): New functions.
11883 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11886 2014-02-12 Pedro Alves <palves@redhat.com>
11888 * h8300-tdep.c (h8300_register_sim_regno): New function.
11889 (h8300_gdbarch_init): Install h8300_register_sim_regno as
11890 gdbarch_register_sim_regno hook.
11892 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11894 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11896 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11898 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11900 2014-02-12 Mark Kettenis <kettenis@gnu.org>
11902 * obsd-tdep.h (obsd_init_abi): New prototype.
11903 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11904 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11905 (obsd_init_abi): New functions.
11906 * i386obsd-tdep.c: Include "obsd-tdep.h".
11907 (i386obsd_init_abi): Call obsd_init_abi.
11908 * amd64obsd-tdep.c: Include "obsd-tdep.h".
11909 (amd64obsd_init_abi): Call obsd_init_abi.
11910 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11911 obsd-tdep.c to gdb_target_obs.
11913 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
11915 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11916 double float arguments to 16-byte in the argument slots.
11918 2014-02-11 Doug Evans <xdje42@gmail.com>
11920 * configure.ac: Don't crash if pkg-config is not found and guile
11921 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
11923 * configure: Regenerate.
11925 2014-02-11 Yao Qi <yao@codesourcery.com>
11927 * aix-thread.c (aix_thread_xfer_partial): Update comments.
11928 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11929 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11930 * gnu-nat.c (gnu_xfer_memory): Likewise.
11931 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11932 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11933 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11934 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11936 2014-02-11 Yao Qi <yao@codesourcery.com>
11938 * target.h (enum target_xfer_error): Rename to ...
11939 (enum target_xfer_status): ... it. New. All users updated.
11940 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11942 (TARGET_XFER_STATUS_ERROR_P): New macro.
11943 (target_xfer_error_to_string): Remove declaration.
11944 (target_xfer_status_to_string): Declare.
11945 (target_xfer_partial_ftype): Adjust it.
11946 (struct target_ops) <to_xfer_partial>: Return
11947 target_xfer_status. Add argument xfered_len. Update
11949 * target.c (target_xfer_error_to_string): Rename to ...
11950 (target_xfer_status_to_string): ... it. New. All callers
11952 (target_read_live_memory): Likewise. Call target_xfer_partial
11953 instead of target_read.
11954 (memory_xfer_live_readonly_partial): Return
11955 target_xfer_status. Add argument xfered_len.
11956 (raw_memory_xfer_partial): Likewise.
11957 (memory_xfer_partial_1): Likewise.
11958 (memory_xfer_partial): Likewise.
11959 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
11960 properly. Update debug message.
11961 (default_xfer_partial, current_xfer_partial): Likewise.
11962 (target_write_partial): Likewise.
11963 (target_read_partial): Likewise. All callers updated.
11964 (read_whatever_is_readable): Likewise.
11965 (target_write_with_progress): Likewise.
11966 (target_read_alloc_1): Likewise.
11968 * aix-thread.c (aix_thread_xfer_partial): Likewise.
11969 * auxv.c (procfs_xfer_auxv): Likewise.
11970 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11971 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11972 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11973 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11974 * corefile.c (read_memory): Adjust.
11975 * corelow.c (core_xfer_partial): Likewise.
11976 * ctf.c (ctf_xfer_partial): Likewise.
11977 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
11979 (darwin_xfer_partial): Likewise.
11980 * exec.c (section_table_xfer_memory_partial): Likewise. All
11982 (exec_xfer_partial): Likewise.
11983 * exec.h (section_table_xfer_memory_partial): Update
11985 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
11987 (gnu_xfer_partial): Likewise.
11988 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11989 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11990 (ia64_hpux_xfer_solib_got): Likewise.
11991 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
11992 type of 'partial_len' to ULONGEST.
11993 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11994 * linux-nat.c (linux_xfer_siginfo ): Likewise.
11995 (linux_nat_xfer_partial): Likewise.
11996 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11997 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11998 * monitor.c (monitor_xfer_memory): Likewise.
11999 (monitor_xfer_partial): Likewise.
12000 * procfs.c (procfs_xfer_partial): Likewise.
12001 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12002 * record-full.c (record_full_xfer_partial): Likewise.
12003 (record_full_core_xfer_partial): Likewise.
12004 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12005 (gdbsim_xfer_partial): Likewise.
12006 * remote.c (remote_write_bytes_aux): Likewise. All callers
12008 (remote_write_bytes, remote_read_bytes): Likewise. All
12010 (remote_flash_erase): Likewise. All callers updated.
12011 (remote_write_qxfer): Likewise. All callers updated.
12012 (remote_read_qxfer): Likewise. All callers updated.
12013 (remote_xfer_partial): Likewise.
12014 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12015 (rs6000_xfer_shared_libraries): Likewise.
12016 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12017 (sol_thread_xfer_partial): Likewise.
12018 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12019 (sparc_xfer_partial): Likewise.
12020 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12022 (spu_xfer_partial): Likewise.
12023 * spu-multiarch.c (spu_xfer_partial): Likewise.
12024 * tracepoint.c (tfile_xfer_partial): Likewise.
12025 * windows-nat.c (windows_xfer_memory): Likewise.
12026 (windows_xfer_shared_libraries): Likewise.
12027 (windows_xfer_partial): Likewise.
12028 * valprint.c: Replace 'target_xfer_error' with
12029 'target_xfer_status' in comments.
12031 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12033 Checked in by Joel Brobecker <brobecker@adacore.com>.
12034 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12036 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12038 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12039 function parameters.
12041 2014-02-10 Will Newton <will.newton@linaro.org>
12043 * elfread.c (elf_rel_plt_read): Look for a .got section if
12044 looking up .got.plt fails.
12045 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12046 on address passed to elf_gnu_ifunc_record_cache.
12047 (elf_gnu_ifunc_resolve_addr): Likewise.
12048 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12050 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12052 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12053 (X_RETTURN): New macro.
12054 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12056 * sparc64-tdep.c (sparc64_init_abi): Hook
12057 sparc_in_function_epilogue_p.
12059 2014-02-10 Gary Benson <gbenson@redhat.com>
12061 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12062 Rename name_matcher to symbol_matcher.
12064 2014-02-10 Gary Benson <gbenson@redhat.com>
12066 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12067 Use expand_symtabs_file_matcher_ftype and
12068 expand_symtabs_symbol_matcher_ftype.
12070 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12072 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12073 (struct ada_symbol_cache): New.
12074 (ada_free_symbol_cache): Forward declare.
12075 (struct ada_pspace_data): New.
12076 (ada_pspace_data_handle): New static global.
12077 (get_ada_pspace_data, ada_pspace_data_cleanup)
12078 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12079 (cache_space, cache): Delete, now folded inside struct
12081 (ada_get_symbol_cache): New function.
12082 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12084 (_initialize_ada_language): Remove initialization of cache_space.
12085 Move call to observer_attach_inferior_exit up, grouping it
12086 with the other observer registrations inside this function.
12087 Rename command to be more general. Add call to
12088 register_program_space_data_with_cleanup.
12090 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12092 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12093 ada_new_objfile_observer.
12094 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12095 (_initialize_tasks): Update uses of ada_new_objfile_observer
12096 and ada_tasks_normal_stop_observer.
12098 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12100 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12101 returned by the 'Length attribute to integer.
12103 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12105 * ada-lang.c (_initialize_ada_language): Initialize
12106 cache_space obstack.
12108 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12110 * ada-lang.c (HASH_SIZE): New macro.
12111 (struct cache_entry): New type.
12112 (cache_space, cache): New static globals.
12113 (ada_clear_symbol_cache, find_entry): New functions.
12114 (lookup_cached_symbol, cache_symbol): Implement.
12115 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12116 (_initialize_ada_language): Attach ada_new_objfile_observer
12117 and ada_free_objfile_observer.
12119 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12121 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12122 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12123 struct block * parameter.
12124 (ada_lookup_symbol_list_worker): Constify local variable "block".
12125 Remove cast which is no longer necessary.
12127 2014-02-10 Doug Evans <xdje42@gmail.com>
12129 Add Guile as an extension language.
12130 * NEWS: Mention Guile scripting.
12131 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12132 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12133 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12134 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12135 (CLIBS): Add GUILE_LIBS.
12136 (install-guile): New rule.
12137 (guile.o): New rule.
12138 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12139 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12140 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12141 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12142 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12143 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12144 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12145 * configure.ac: New option --with-guile.
12146 * configure: Regenerate.
12147 * config.in: Regenerate.
12148 * auto-load.c: Remove #include "python/python.h". Add #include
12149 "gdb/section-scripts.h".
12150 (source_section_scripts): Handle Guile scripts.
12151 (_initialize_auto_load): Add name of Guile objfile script to
12152 scripts-directory help text.
12153 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12154 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12155 (struct breakpoint): New member scm_bp_object.
12156 * defs.h (enum command_control_type): New value guile_control.
12157 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12159 (show_user): Update comment.
12160 (_initialize_cli_cmds): Update help text for "show user". Update help
12161 text for max-user-call-depth.
12162 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12164 (multi_line_command_p): Add guile_control.
12165 (print_command_lines): Handle guile_control.
12166 (execute_control_command, recurse_read_control_structure): Ditto.
12167 (process_next_line): Recognize "guile" commands.
12168 * disasm.c (gdb_disassemble_info): Make non-static.
12169 * disasm.h: #include "dis-asm.h".
12170 (struct gdbarch): Add forward decl.
12171 (gdb_disassemble_info): Declare.
12172 * extension.c: #include "guile/guile.h".
12173 (extension_languages): Add guile.
12174 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12175 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12176 * gdbtypes.c (get_unsigned_type_max): New function.
12177 (get_signed_type_minmax): New function.
12178 * gdbtypes.h (get_unsigned_type_max): Declare.
12179 (get_signed_type_minmax): Declare.
12180 * guile/README: New file.
12181 * guile/guile-internal.h: New file.
12182 * guile/guile.c: New file.
12183 * guile/guile.h: New file.
12184 * guile/scm-arch.c: New file.
12185 * guile/scm-auto-load.c: New file.
12186 * guile/scm-block.c: New file.
12187 * guile/scm-breakpoint.c: New file.
12188 * guile/scm-disasm.c: New file.
12189 * guile/scm-exception.c: New file.
12190 * guile/scm-frame.c: New file.
12191 * guile/scm-gsmob.c: New file.
12192 * guile/scm-iterator.c: New file.
12193 * guile/scm-lazy-string.c: New file.
12194 * guile/scm-math.c: New file.
12195 * guile/scm-objfile.c: New file.
12196 * guile/scm-ports.c: New file.
12197 * guile/scm-pretty-print.c: New file.
12198 * guile/scm-safe-call.c: New file.
12199 * guile/scm-string.c: New file.
12200 * guile/scm-symbol.c: New file.
12201 * guile/scm-symtab.c: New file.
12202 * guile/scm-type.c: New file.
12203 * guile/scm-utils.c: New file.
12204 * guile/scm-value.c: New file.
12205 * guile/lib/gdb.scm: New file.
12206 * guile/lib/gdb/boot.scm: New file.
12207 * guile/lib/gdb/experimental.scm: New file.
12208 * guile/lib/gdb/init.scm: New file.
12209 * guile/lib/gdb/iterator.scm: New file.
12210 * guile/lib/gdb/printing.scm: New file.
12211 * guile/lib/gdb/types.scm: New file.
12212 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12213 (VPATH): Add $(GUILE_SRCDIR).
12214 (GUILE_DIR): New variable.
12215 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12216 (all): Add stamp-guile dependency.
12217 (stamp-guile): New rule.
12218 (clean-guile, install-guile, uninstall-guile): New rules.
12219 (install-only): Add install-guile dependency.
12220 (uninstall): Add uninstall-guile dependency.
12221 (clean): Add clean-guile dependency.
12223 2014-02-09 Doug Evans <xdje42@gmail.com>
12225 Revert this patch (which I approved, mea culpa).
12227 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12229 * Makefile.in (all-lib): Remove.
12230 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12232 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12234 Fix Python stack corruption.
12235 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12238 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12240 * Makefile.in (all-lib): Remove.
12241 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12243 2014-02-07 Doug Evans <dje@google.com>
12245 * extension-priv.h (extension_language_script_ops): Add comment.
12246 (extension_language_ops): Add comment.
12247 (active_ext_lang_state): Fix typo in comment.
12249 2014-02-07 Pedro Alves <palves@redhat.com>
12251 PR breakpoints/16292
12252 * infrun.c (handle_signal_stop) <signal arrives while stepping
12253 over a breakpoint>: Switch back to the stepping thread.
12255 2014-02-07 Yao Qi <yao@codesourcery.com>
12257 * target.c (target_xfer_partial): Return zero if LEN is zero.
12259 2014-02-07 Yao Qi <yao@codesourcery.com>
12261 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12262 (ld_so_xfer_auxv): Likewise.
12263 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12264 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12265 * corelow.c (core_xfer_partial): Likewise.
12266 * ctf.c (ctf_xfer_partial): Likewise.
12267 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12268 (darwin_xfer_partial): Likewise.
12269 * exec.c (exec_xfer_partial): Likewise.
12270 * gnu-nat.c (gnu_xfer_partial): Likewise.
12271 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12272 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12273 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12274 * linux-nat.c (linux_xfer_siginfo): Likewise.
12275 (linux_proc_xfer_spu): Likewise.
12276 * procfs.c (procfs_xfer_partial): Likewise.
12277 * record-full.c (record_full_xfer_partial): Likewise.
12278 (record_full_core_xfer_partial): Likewise.
12279 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12280 * remote.c (remote_write_qxfer): Likewise.
12281 (remote_write_qxfer, remote_read_qxfer): Likewise.
12282 (remote_xfer_partial): Likewise.
12283 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12284 (rs6000_xfer_shared_libraries): Likewise.
12285 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12286 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12287 (spu_xfer_partial): Likewise.
12288 * target.c (memory_xfer_partial_1): Likewise.
12289 * tracepoint.c (tfile_xfer_partial): Likewise.
12290 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12291 (windows_xfer_partial): Likewise.
12293 2014-02-07 Yao Qi <yao@codesourcery.com>
12295 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12297 (core_xfer_shared_libraries_aix): Likewise.
12298 * gdbarch.c, gdbarch.h: Regenerated.
12299 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12300 ULONGEST. Change 'len_avail' type to ULONGEST.
12301 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12302 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12304 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12306 2014-02-07 Yao Qi <yao@codesourcery.com>
12308 * corefile.c (memory_error): Get 'exception' from ERR and pass
12309 'exception' to throw_error.
12311 2014-02-06 Doug Evans <xdje42@gmail.com>
12313 * configure.ac (libpython checking): Remove all but python.o from
12314 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12315 * configure: Regenerate.
12317 * Makefile.in (SFILES): Add extension.c.
12318 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12319 (COMMON_OBS): Add extension.o.
12320 * extension.h: New file.
12321 * extension-priv.h: New file.
12322 * extension.c: New file.
12324 * python/python-internal.h: #include "extension.h".
12325 (gdbpy_auto_load_enabled): Declare.
12326 (gdbpy_apply_val_pretty_printer): Declare.
12327 (gdbpy_apply_frame_filter): Declare.
12328 (gdbpy_preserve_values): Declare.
12329 (gdbpy_breakpoint_cond_says_stop): Declare.
12330 (gdbpy_breakpoint_has_cond): Declare.
12331 (void source_python_script_for_objfile): Delete.
12332 * python/python.c: #include "extension-priv.h".
12333 Delete inclusion of "observer.h".
12334 (extension_language_python): Moved here and renamed from
12335 script_language_python in py-auto-load.c.
12336 Redefined to be of type extension_language_defn.
12337 (python_extension_script_ops): New global.
12338 (python_extension_ops): New global.
12339 (struct python_env): New member previous_active.
12340 (restore_python_env): Call restore_active_ext_lang.
12341 (ensure_python_env): Call set_active_ext_lang.
12342 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12344 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12346 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12348 (gdbpy_eval_from_control_command): Renamed from
12349 eval_python_from_control_command, made static. New arg extlang.
12350 (gdbpy_source_script) Renamed from source_python_script, made static.
12352 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12353 result to int. New arg extlang.
12354 (gdbpy_source_objfile_script): Renamed from
12355 source_python_script_for_objfile, made static. New arg extlang.
12356 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12357 static. New args extlang, extlang_printers. Change result type to
12359 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12360 static. New arg extlang. Rename arg printers to extlang_printers
12361 and change type to ext_lang_type_printers *.
12362 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12363 static. Replace argument arg with extlang, extlang_printers.
12364 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12365 (!HAVE_PYTHON, source_python_script): Delete.
12366 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12367 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12368 (!HAVE_PYTHON, start_type_printers): Delete.
12369 (!HAVE_PYTHON, apply_type_printers): Delete.
12370 (!HAVE_PYTHON, free_type_printers): Delete.
12371 (_initialize_python): Delete call to observer_attach_before_prompt.
12372 (finalize_python): Set/restore active extension language.
12373 (gdbpy_finish_initialization) Renamed from
12374 finish_python_initialization, made static. New arg extlang.
12375 (gdbpy_initialized): New function.
12376 * python/python.h: #include "extension.h". Delete #include
12377 "value.h", "mi/mi-cmds.h".
12378 (extension_language_python): Declare.
12379 (GDBPY_AUTO_FILE_NAME): Delete.
12380 (enum py_bt_status): Moved to extension.h and renamed to
12381 ext_lang_bt_status.
12382 (enum frame_filter_flags): Moved to extension.h.
12383 (enum py_frame_args): Moved to extension.h and renamed to
12384 ext_lang_frame_args.
12385 (finish_python_initialization): Delete.
12386 (eval_python_from_control_command): Delete.
12387 (source_python_script): Delete.
12388 (apply_val_pretty_printer): Delete.
12389 (apply_frame_filter): Delete.
12390 (preserve_python_values): Delete.
12391 (gdbpy_script_language_defn): Delete.
12392 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12393 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12395 * auto-load.c: #include "extension.h".
12396 (GDB_AUTO_FILE_NAME): Delete.
12397 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12398 (script_language_gdb): Delete, moved to extension.c and renamed to
12399 extension_language_gdb.
12400 (source_gdb_script_for_objfile): Delete.
12401 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12402 (loaded_script): Change type of language member to
12403 struct extension_language_defn *.
12404 (init_loaded_scripts_info): Initialize
12405 unsupported_script_warning_printed.
12406 (maybe_add_script): Make static. Change type of language arg to
12407 struct extension_language_defn *.
12408 (clear_section_scripts): Reset unsupported_script_warning_printed.
12409 (auto_load_objfile_script_1): Rewrite to use extension language API.
12410 (auto_load_objfile_script): Make public. Remove support-compiled-in
12411 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12412 (source_section_scripts): Rewrite to use extension language API.
12413 (load_auto_scripts_for_objfile): Rewrite to use
12414 auto_load_scripts_for_objfile.
12415 (collect_matching_scripts_data): Change type of language member to
12416 struct extension_language_defn *.
12417 (auto_load_info_scripts): Change type of language arg to
12418 struct extension_language_defn *.
12419 (unsupported_script_warning_print): New function.
12420 (script_not_found_warning_print): Make static.
12421 (_initialize_auto_load): Rewrite construction of scripts-directory
12423 * auto-load.h (struct objfile): Add forward decl.
12424 (struct script_language): Delete.
12425 (struct auto_load_pspace_info): Add forward decl.
12426 (struct extension_language_defn): Add forward decl.
12427 (maybe_add_script): Delete.
12428 (auto_load_objfile_script): Declare.
12429 (script_not_found_warning_print): Delete.
12430 (auto_load_info_scripts): Update prototype.
12431 (auto_load_gdb_scripts_enabled): Declare.
12432 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12433 auto_load_python_scripts_enabled and made public.
12434 (script_language_python): Delete, moved to python.c.
12435 (gdbpy_script_language_defn): Delete.
12436 (info_auto_load_python_scripts): Update to use
12437 extension_language_python.
12439 * breakpoint.c (condition_command): Replace call to
12440 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12441 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12442 with call to breakpoint_ext_lang_cond_says_stop.
12443 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12444 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12445 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12446 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12448 (local_setattro): Print name of extension language with existing
12451 * valprint.c (val_print, value_print): Update to call
12452 apply_ext_lang_val_pretty_printer.
12453 * cp-valprint.c (cp_print_value): Update call to
12454 apply_ext_lang_val_pretty_printer.
12455 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12456 (gdbpy_apply_val_pretty_printer): Renamed from
12457 apply_val_pretty_printer. New arg extlang.
12458 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12460 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12461 extension language API.
12462 * cli/cli-script.c (execute_control_command): Update to call
12463 eval_ext_lang_from_control_command.
12465 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12466 enum ext_lang_bt_status values. Update call to
12467 apply_ext_lang_frame_filter.
12468 (mi_cmd_stack_list_locals): Ditto.
12469 (mi_cmd_stack_list_args): Ditto.
12470 (mi_cmd_stack_list_variables): Ditto.
12471 * mi/mi-main.c: Delete #include "python/python-internal.h".
12472 Add #include "extension.h".
12473 (mi_cmd_list_features): Replace reference to python internal variable
12474 gdb_python_initialized with call to ext_lang_initialized_p.
12476 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12477 Update to use enum ext_lang_frame_args. Update to call
12478 apply_ext_lang_frame_filter.
12479 * python/py-framefilter.c (extract_sym): Update to use enum
12480 ext_lang_bt_status.
12481 (extract_value, py_print_type, py_print_value): Ditto.
12482 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12483 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12484 (py_print_frame): Ditto.
12485 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12486 New arg extlang. Update to use enum ext_lang_bt_status.
12488 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12489 finish_python_initialization. Replace with call to
12490 finish_ext_lang_initialization.
12492 * typeprint.c (do_free_global_table): Update to call
12493 free_ext_lang_type_printers.
12494 (create_global_typedef_table): Update to call
12495 start_ext_lang_type_printers.
12496 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12497 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12498 (type_print_options): Change type of global_printers from "void *"
12499 to "struct ext_lang_type_printers *".
12501 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12502 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12503 (gdbpy_preserve_values): Renamed from preserve_python_values.
12505 (!HAVE_PYTHON, preserve_python_values): Delete.
12507 * utils.c (quit_flag): Delete, moved to extension.c.
12508 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12511 * eval.c: Delete #include "python/python.h".
12512 * main.c: Delete #include "python/python.h".
12514 * defs.h: Update comment.
12516 2014-02-06 Joel Brobecker <brobecker@adacore.com>
12520 2014-02-05 Mark Kettenis <kettenis@gnu.org>
12522 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12525 2014-02-05 Yao Qi <yao@codesourcery.com>
12527 * remote.c (remote_pass_signals): Remove local 'buf' and use
12529 (remote_program_signals): Likewise.
12531 2014-02-05 Yao Qi <yao@codesourcery.com>
12533 * ctf.c: Include "inferior.h" and "gdbthread.h".
12534 (CTF_PID): A new macro.
12535 (ctf_open): Call inferior_appeared and add_thread_silent.
12536 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12537 (ctf_thread_alive): New function.
12538 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12540 2014-02-05 Yao Qi <yao@codesourcery.com>
12544 2013-05-24 Yao Qi <yao@codesourcery.com>
12546 * tracepoint.c (TFILE_PID): Remove.
12547 (tfile_open): Don't add thread and inferior.
12548 (tfile_close): Don't set 'inferior_ptid'. Don't call
12549 exit_inferior_silent.
12550 (tfile_thread_alive): Remove.
12551 (init_tfile_ops): Don't set field 'to_thread_alive' of
12554 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
12556 * remote.c (remote_start_remote): Call remote_check_symbols even
12557 if only symbol-file (not file) has been given.
12559 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12561 * gdbarch.sh (skip_entrypoint): New callback.
12562 * gdbarch.c, gdbarch.h: Regenerate.
12563 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
12564 * infrun.c (fill_in_stop_func): Likewise.
12565 * ppc-linux-tdep.c: Include "elf/ppc64.h".
12566 (ppc_elfv2_elf_make_msymbol_special): New function.
12567 (ppc_elfv2_skip_entrypoint): Likewise.
12568 (ppc_linux_init_abi): Install them for ELFv2.
12570 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12572 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
12573 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
12574 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
12575 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
12576 structures returned in GPRs.
12578 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12580 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
12581 offset to the stack parameter list for the ELFv2 ABI.
12583 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12585 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
12586 set_gdbarch_convert_from_func_ptr_addr and
12587 set_gdbarch_elf_make_msymbol_special for ELFv1.
12588 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
12589 function descriptors on ELFv1.
12590 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
12591 set up r12 at function entry.
12593 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12595 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
12596 (struct gdbarch_tdep): New member elf_abi.
12598 * rs6000-tdep.c: Include "elf/ppc64.h".
12599 (rs6000_gdbarch_init): Detect ELF ABI version.
12601 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12603 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
12604 within a register pair holding a DFP 128-bit value on little-endian.
12605 (ppc64_sysv_abi_return_value_base): Likewise.
12606 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
12607 (dfp_pseudo_register_write): Likewise.
12609 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12611 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
12612 offset on little-endian when passing _Decimal32.
12613 (ppc64_sysv_abi_return_value_base): Likewise for return values.
12615 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12617 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
12618 of the overlapped FP register within the VSX register on little-
12620 (efpr_pseudo_register_write): Likewise.
12622 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12624 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
12625 offset on little-endian when passing small structures.
12627 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12629 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
12630 (struct ppc64_sysv_argpos): New data structure.
12631 (ppc64_sysv_abi_push_float): Remove.
12632 (ppc64_sysv_abi_push_val): New function.
12633 (ppc64_sysv_abi_push_integer): Likewise.
12634 (ppc64_sysv_abi_push_freg): Likewise.
12635 (ppc64_sysv_abi_push_vreg): Likewise.
12636 (ppc64_sysv_abi_push_param): Likewise.
12637 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
12638 (ppc64_sysv_abi_return_value_base): New function.
12639 (ppc64_sysv_abi_return_value): Refactor to use it.
12641 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
12643 * NEWS: Document new target powerpc64le-*-linux*.
12645 2014-02-04 Mark Kettenis <kettenis@gnu.org>
12647 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
12648 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
12650 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
12651 register set used in ELF core dumps. Add floating-point register set.
12653 2014-02-03 Kevin Buettner <kevinb@redhat.com>
12655 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
12656 dwarf2_to_gdb[] table using symbolic constants. Adjust
12657 penultimate entry from number representing the PC register
12658 to symbolic constant representing the MDR register. Add
12659 constant for the PC register to the end of the table.
12661 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12663 * bsd-kvm.c: Include <sys/param.h>
12665 2014-02-03 Mark Kettenis <kettenis@gnu.org>
12667 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
12669 2014-01-31 Joel Brobecker <brobecker@adacore.com>
12671 * ada-lang.h (clear_ada_sym_cache): Delete.
12673 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
12675 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
12677 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
12679 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
12680 the sigreturn register save area only if the syscall is
12683 2014-01-29 Joel Brobecker <brobecker@adacore.com>
12685 * valops.c (value_slice): Minor reformatting.
12687 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
12689 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
12691 2014-01-28 Joel Brobecker <brobecker@adacore.com>
12693 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
12694 New static globals.
12695 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
12696 (ada_ignore_descriptive_types_p): New static global.
12697 (find_parallel_type_by_descriptive_type): Return immediately
12698 if ada_ignore_descriptive_types_p is set.
12699 (_initialize_ada_language): Register new commands "maintenance
12700 set ada", "maintenance show ada", "maintenance set ada
12701 ignore-descriptive-types" and "maintenance show ada
12702 ignore-descriptive-types".
12703 * NEWS: Add entry for new "maint ada set/show
12704 ignore-descriptive-types" commands.
12706 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
12708 * record-btrace.c (record_btrace_close): Call btrace_teardown
12711 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12713 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
12716 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12718 * ada-typeprint (type_is_full_subrange_of_target_type):
12720 (print_range): Add parameter bounds_prefered_p. If not set,
12721 try printing range types using the name of their base type.
12722 (print_range_type): Add parameter bounds_prefered_p.
12723 Use it in call to print_range.
12724 (print_array_type, ada_print_type): Update calls to print_range
12725 and print_range_type.
12727 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12729 * ada-typeprint.c (print_array_type, print_choices, print_range)
12730 (print_range_bound, print_dynamic_range_bound, print_range_type):
12731 Remove declaration.
12733 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12735 * ada-typeprint.c (print_range): Add missing empty line
12736 after local declaration.
12738 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12740 * ada-valprint.c (print_optional_low_bound): Get index_type's
12741 target type for as long as it is a TYPE_CODE_RANGE.
12743 2014-01-27 Joel Brobecker <brobecker@adacore.com>
12745 * procfs.c (procfs_make_note_section): Remove assertion and
12746 associated comment.
12748 2014-01-24 Yao Qi <yao@codesourcery.com>
12750 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12751 * corelow.c (get_core_siginfo): Likewise.
12753 2014-01-24 Yao Qi <yao@codesourcery.com>
12755 * remote.c (remote_write_bytes_aux): Change type of 'len' to
12756 ULONGEST. Don't check 'len' is negative.
12757 (remote_write_bytes): Change type of 'len' to ULONGEST.
12759 2014-01-23 Tom Tromey <tromey@redhat.com>
12762 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12763 Handle exception from frame.block.
12764 (FrameVars.fetch_frame_locals): Likewise.
12766 2014-01-23 Tom Tromey <tromey@redhat.com>
12769 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12770 on a NULL pointer. Move "goto error" to correct place.
12772 2014-01-23 Tom Tromey <tromey@redhat.com>
12775 * python/py-framefilter.c (apply_frame_filter): Call
12776 ensure_python_env after computing gdbarch.
12778 2014-01-23 Yao Qi <yao@codesourcery.com>
12780 * target.c (raw_memory_xfer_partial): Change argument type
12781 from void * to gdb_byte *.
12782 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12784 2014-01-22 Doug Evans <dje@google.com>
12786 New gdbserver option --debug-format=timestamp.
12787 * NEWS: Mention it.
12789 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
12791 * syscalls/s390x-linux.xml: New file.
12792 * syscalls/s390-linux.xml: New file.
12793 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12794 (XML_SYSCALL_FILENAME_S390X): Likewise.
12795 (op_svc): New enum value for SVC opcode.
12796 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12797 (s390_linux_get_syscall_number): New function.
12798 (s390_gdbarch_init): Register '*get_syscall_number' and the
12799 syscall xml file name.
12800 * data-directory/Makefile.in (SYSCALLS_FILES): Add
12801 "s390-linux.xml" and "s390x-linux.xml".
12802 * NEWS: Announce new feature.
12804 2014-01-22 Baruch Siach <baruch@tkos.co.il>
12806 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12808 2014-01-22 Pedro Alves <palves@redhat.com>
12810 * xtensa-config.c: Include defs.h.
12812 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12814 * common/common-utils.h: Add "ARI:" comment beside __func__
12817 2014-01-22 Joel Brobecker <brobecker@adacore.com>
12819 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12820 documentation a bit.
12822 2014-01-21 Roland McGrath <mcgrathr@google.com>
12824 * configure.ac: Call AM_PROG_INSTALL_STRIP.
12825 * configure: Regenerate.
12826 * aclocal.m4: Regenerate.
12827 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12828 New substituted variables.
12829 (install-strip): New target.
12830 (INSTALL_SCRIPT): New substituted variable.
12831 (FLAGS_TO_PASS): Add it.
12832 (install-only): Use $(INSTALL_SCRIPT) rather than
12833 $(INSTALL_PROGRAM) for gcore.
12835 2014-01-20 Tom Tromey <tromey@redhat.com>
12837 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12840 2014-01-20 Tom Tromey <tromey@redhat.com>
12842 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12843 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12844 (deprecated_cmd_warning, complete_on_cmdlist): Update.
12845 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12846 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12847 (struct cmd_list_element) <flags>: Remove.
12848 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12849 doc_allocated>: New fields.
12850 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12852 * maint.c (maintenance_do_deprecate): Update.
12853 * top.c (execute_command): Update.
12855 2014-01-20 Baruch Siach <baruch@tkos.co.il>
12857 * xtensa-linux-nat.c: Include asm/ptrace.h.
12859 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12861 * Makefile.in (SFILES): Add d-support.c.
12862 (COMMON_OBS): Add d-support.o.
12863 * d-lang.h (d_parse_symbol): Add comment, now defined in
12865 * d-lang.c (parse_call_convention)
12866 (parse_attributes, parse_function_types)
12867 (parse_function_args, parse_type, parse_identifier)
12868 (call_convention_p, d_parse_symbol): Move functions to ...
12869 * d-support.c: ... New file.
12871 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12873 * d-lang.h (d_parse_symbol): Add declaration.
12874 * d-lang.c (extract_identifiers)
12875 (extract_type_info): Remove functions.
12876 (parse_call_convention, parse_attributes)
12877 (parse_function_types, parse_function_args)
12878 (parse_type, parse_identifier, call_convention_p)
12879 (d_parse_symbol): New functions.
12880 (d_demangle): Use d_parse_symbol to demangle D symbols.
12882 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12884 * d-lang.h (struct builtin_d_type): New data type.
12885 (builtin_d_type): Add declaration.
12886 * d-lang.c (d_language_arch_info, build_d_types)
12887 (builtin_d_type): New functions.
12888 (enum d_primitive_types): New data type.
12889 (d_language_defn): Change c_language_arch_info to
12890 d_language_arch_info.
12891 (d_type_data): New static variable.
12892 (_initialize_d_language): Initialize d_type_data.
12894 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12896 * d-lang.h (d_main_name): Add declaration.
12897 * d-lang.c (d_main_name): New function.
12898 * symtab.c (find_main_name): Add call to d_main_name.
12900 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12902 * d-lang.c (d_language_defn): Change macro_expansion_c to
12903 macro_expansion_no.
12905 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
12907 * MAINTAINERS: Add myself as a write-after-approval maintainer.
12909 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12911 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12912 gdb_exception" declaration.
12913 * remote.c (getpkt_or_notif_sane): Likewise.
12915 2014-01-17 Doug Evans <dje@google.com>
12917 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12918 function, contents of dirnames_to_char_ptr_vec_append moved here.
12919 (delim_string_to_char_ptr_vec): New function.
12920 (dirnames_to_char_ptr_vec_append): Rewrite.
12921 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12923 2014-01-17 Doug Evans <dje@google.com>
12925 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12927 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12928 #include "common-utils.h".
12929 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12930 * common/vec.h (VEC_ASSERT_PASS): Update.
12931 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12932 (MACH_CHECK_ERROR): Update.
12934 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
12936 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12938 * gdbarch.h: Regenerate.
12940 2014-01-16 Tom Tromey <tromey@redhat.com>
12942 * value.c (struct value) <regnum>: Move earlier.
12944 2014-01-16 Tom Tromey <tromey@redhat.com>
12946 * remote.c (extended_remote_create_inferior): Rename from
12947 extended_remote_create_inferior_1. Add "ops" argument. Remove
12948 old implementation.
12950 2014-01-16 Pedro Alves <palves@redhat.com>
12952 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12953 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12956 2014-01-16 Doug Evans <dje@google.com>
12958 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12960 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12962 * btrace.h (btrace_thread_flag): New.
12963 (struct btrace_thread_info) <flags>: New.
12964 * record-btrace.c (record_btrace_resume_thread)
12965 (record_btrace_find_thread_to_move, btrace_step_no_history)
12966 (btrace_step_stopped, record_btrace_start_replaying)
12967 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12968 (record_btrace_find_resume_thread): New.
12969 (record_btrace_resume, record_btrace_wait): Extend.
12970 (record_btrace_can_execute_reverse): New.
12971 (record_btrace_open): Fail in non-stop mode.
12972 (record_btrace_set_replay): Split into this, ...
12973 (record_btrace_stop_replaying): ... this, ...
12974 (record_btrace_clear_histories): ... and this.
12975 (init_record_btrace_ops): Init to_can_execute_reverse.
12976 * NEWS: Announce it.
12978 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12980 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12981 (forward_target_decr_pc_after_break)
12982 (target_decr_pc_after_break): New.
12983 * target.c (forward_target_decr_pc_after_break)
12984 (target_decr_pc_after_break): New.
12985 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12986 instead of gdbarch_decr_pc_after_break.
12987 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12988 instead of gdbarch_decr_pc_after_break.
12989 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12990 instead of gdbarch_decr_pc_after_break.
12991 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12992 instead of gdbarch_decr_pc_after_break.
12993 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12994 instead of gdbarch_decr_pc_after_break.
12995 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12996 instead of gdbarch_decr_pc_after_break.
12998 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13000 * btrace.c: Include regcache.h.
13001 (btrace_add_pc): New.
13002 (btrace_enable): Call btrace_add_pc.
13003 (btrace_is_empty): New.
13004 * btrace.h (btrace_is_empty): New.
13005 * record-btrace.c (require_btrace, record_btrace_info): Call
13008 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13010 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13011 Support delta reads.
13012 (linux_disable_btrace): Change return type.
13013 * common/linux-btrace.h (linux_read_btrace): Change parameters
13014 and return type to allow error reporting. Update users.
13015 (linux_disable_btrace): Change return type. Update users.
13016 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13018 (btrace_error): New.
13019 (btrace_block) <begin>: Comment on BEGIN == 0.
13020 * btrace.c (btrace_compute_ftrace): Start from the end of
13022 (btrace_stitch_trace, btrace_clear_history): New.
13023 (btrace_fetch): Read delta trace, return if replaying.
13024 (btrace_clear): Move clear history code to btrace_clear_history.
13025 (parse_xml_btrace): Throw an error if parsing failed.
13026 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13027 and return type to allow error reporting.
13028 (target_read_btrace): Change parameters and return type to allow
13030 * target.c (target_read_btrace): Update.
13031 * remote.c (remote_read_btrace): Support delta reads. Pass
13033 * NEWS: Announce it.
13035 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13037 * record.h (record_btrace_frame_unwind)
13038 (record_btrace_tailcall_frame_unwind): New declarations.
13039 * dwarf2-frame: Include record.h
13040 (dwarf2_frame_cfa): Throw an error for btrace frames.
13041 * record-btrace.c: Include hashtab.h.
13042 (btrace_get_bfun_name): New.
13043 (btrace_call_history): Call btrace_get_bfun_name.
13044 (struct btrace_frame_cache): New.
13046 (bfcache_hash, bfcache_eq, bfcache_new): New.
13047 (btrace_get_frame_function): New.
13048 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13049 (record_btrace_frame_this_id): Compute own id.
13050 (record_btrace_frame_prev_register): Provide PC, throw_error
13051 for all other registers.
13052 (record_btrace_frame_sniffer): Detect btrace frames.
13053 (record_btrace_tailcall_frame_sniffer): New.
13054 (record_btrace_frame_dealloc_cache): New.
13055 (record_btrace_frame_unwind): Add new functions.
13056 (record_btrace_tailcall_frame_unwind): New.
13057 (_initialize_record_btrace): Allocate cache.
13058 * btrace.c (btrace_clear): Call reinit_frame_cache.
13059 * NEWS: Announce it.
13061 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13063 * record-btrace.c (record_btrace_set_replay)
13064 (record_btrace_goto_begin, record_btrace_goto_end)
13065 (record_btrace_goto): New.
13066 (init_record_btrace_ops): Initialize them.
13067 * NEWS: Announce it.
13069 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13071 * record-btrace.c (record_btrace_find_new_threads)
13072 (record_btrace_thread_alive): New.
13073 (init_record_btrace_ops): Initialize to_find_new_threads and
13076 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13078 * record-btrace.c (record_btrace_resume): New.
13079 (record_btrace_wait): New.
13080 (init_record_btrace_ops): Initialize to_wait and to_resume.
13082 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13084 * record-btrace.c (record_btrace_xfer_partial)
13085 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13086 (record_btrace_allow_memory_access): New.
13087 (init_record_btrace_ops): Initialize new methods.
13088 * target.c (raw_memory_xfer_partial): Bail out if target reports
13089 that this memory is not available.
13091 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13093 * target.h (target_ops) <to_insert_breakpoint>
13094 <to_remove_breakpoint>: Add target_ops parameter.
13095 (forward_target_insert_breakpoint): New.
13096 (forward_target_remove_breakpoint): New.
13097 (memory_remove_breakpoint, memory_insert_breakpoint):
13098 Add target_ops parameter.
13099 * target.c (target_insert_breakpoint): Split into this and ...
13100 (forward_target_insert_breakpoint): ... this.
13101 (target_remove_breakpoint): Split into this and ...
13102 (forward_target_remove_breakpoint): ... this.
13103 (debug_to_insert_breakpoint): Add target_ops parameter.
13104 Call forward_target_insert_breakpoint.
13105 (debug_to_remove_breakpoint): Add target_ops parameter.
13106 Call forward_target_remove_breakpoint.
13107 (update_current_target): Do not inherit or default to_insert_breakpoint
13108 and to_remove_breakpoint.
13109 * corelow.c (ignore): Add target_ops parameter.
13110 * exec.c (ignore): Add target_ops parameter.
13111 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13112 Add target_ops parameter.
13113 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13114 Add target_ops parameter.
13115 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13116 Add target_ops parameter.
13117 * record-full.c (record_full_beneath_to_insert_breakpoint)
13118 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13119 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13120 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13121 (record_full_core_remove_breakpoint): Add target_ops parameter.
13123 (record_full_beneath_to_insert_breakpoint_ops)
13124 (record_full_beneath_to_remove_breakpoint_ops)
13125 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13126 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13127 tmp_to_remove_breakpoint_ops,
13128 record_full_beneath_to_insert_breakpoint_ops, and
13129 record_full_beneath_to_remove_breakpoint_ops.
13130 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13131 (m32r_remove_breakpoint): Add target_ops parameter.
13132 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13133 Add target_ops parameter.
13134 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13135 Add target_ops parameter.
13137 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13138 Markus Metzger <markus.t.metzger@intel.com>
13140 * record-btrace.c: Include frame-unwind.h.
13141 (record_btrace_frame_unwind_stop_reason)
13142 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13143 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13145 (init_record_btrace_ops): Install it.
13147 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13149 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13152 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13154 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13157 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13159 * frame-unwind.c: Include target.h.
13160 (frame_unwind_try_unwinder): New function with code from ...
13161 (frame_unwind_find_by_frame): ... here. New variable
13162 unwinder_from_target, call also target_get_unwinder)
13163 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13164 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13165 * target.h (struct target_ops): New fields to_get_unwinder and
13166 to_get_tailcall_unwinder.
13167 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13169 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13171 * record-btrace.c (record_btrace_fetch_registers)
13172 (record_btrace_store_registers)
13173 (record_btrace_to_prepare_to_store): New.
13174 (init_record_btrace_ops): Add the above.
13176 2014-01-16 Tom Tromey <tromey@redhat.com>
13178 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13179 * target.h (struct target_ops) <to_prepare_to_store>: Add
13181 (target_prepare_to_store): Add argument.
13182 * target.c (debug_to_prepare_to_store): Add argument.
13183 (update_current_target): Update.
13184 * remote.c (remote_prepare_to_store): Add 'self' argument.
13185 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13186 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13187 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13188 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13190 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13191 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13192 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13193 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13194 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13196 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13198 * btrace.h (replay) <replay>: New.
13199 (btrace_is_replaying): New.
13200 * btrace.c (btrace_clear): Free replay iterator.
13201 (btrace_is_replaying): New.
13202 * record-btrace.c (record_btrace_is_replaying): New.
13203 (record_btrace_info): Print insn number if replaying.
13204 (record_btrace_insn_history): Start at replay position.
13205 (record_btrace_call_history): Start at replay position.
13206 (init_record_btrace_ops): Init to_record_is_replaying.
13208 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13210 * record-btrace.c (record_btrace_insn_history_range): Include
13212 (record_btrace_insn_history_from): Adjust range.
13213 (record_btrace_call_history_range): Include
13215 (record_btrace_call_history_from): Adjust range.
13216 * NEWS: Announce changes.
13218 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13220 * record.h (enum record_print_flag)
13221 <record_print_indent_calls>: New.
13222 * record.c (get_call_history_modifiers): Recognize /c modifier.
13223 (_initialize_record): Document /c modifier.
13224 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13225 Reorder fields. Optionally indent the function name. Update
13227 * NEWS: Announce changes.
13229 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13231 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13233 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13235 * btrace.c (ftrace_new_function): Start counting at one.
13236 * record-btrace.c (record_btrace_info): Adjust number of calls
13238 * NEWS: Announce it.
13240 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13242 * record-btrace.c (btrace_call_history_insn_range): Print
13243 insn range as [begin, end].
13245 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13247 * btrace.h (struct btrace_func_link): New.
13248 (enum btrace_function_flag): New.
13249 (struct btrace_inst): Rename to ...
13250 (struct btrace_insn): ...this. Update all users.
13251 (struct btrace_func) <ibegin, iend>: Remove.
13252 (struct btrace_func_link): New.
13253 (struct btrace_func): Rename to ...
13254 (struct btrace_function): ...this. Update all users.
13255 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13256 (number, level, flags>: New.
13257 (struct btrace_insn_iterator): Rename to ...
13258 (struct btrace_insn_history): ...this.
13260 (struct btrace_insn_iterator, btrace_call_iterator): New.
13261 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13262 (struct btrace_target_info) <begin, end, level>
13263 <insn_history, call_history>: New.
13264 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13265 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13266 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13267 (btrace_call_number, btrace_call_begin, btrace_call_end)
13268 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13269 (btrace_find_function_by_number, btrace_set_insn_history)
13270 (btrace_set_call_history): New.
13271 * btrace.c (btrace_init_insn_iterator)
13272 (btrace_init_func_iterator, compute_itrace): Remove.
13273 (ftrace_print_function_name, ftrace_print_filename)
13274 (ftrace_skip_file): Change
13275 parameter to const.
13276 (ftrace_init_func): Remove.
13277 (ftrace_debug): Use new btrace_function fields.
13278 (ftrace_function_switched): Also consider gaining and
13279 losing symbol information).
13280 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13281 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13282 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13284 (ftrace_new_function): Move. Remove debug print.
13285 (ftrace_update_lines, ftrace_update_insns): New.
13286 (ftrace_update_function): Check for call, ret, and jump.
13287 (compute_ftrace): Renamed to ...
13288 (btrace_compute_ftrace): ...this. Rewritten to compute call
13290 (btrace_fetch, btrace_clear): Updated.
13291 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13292 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13293 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13294 (btrace_call_number, btrace_call_begin, btrace_call_end)
13295 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13296 (btrace_find_function_by_number, btrace_set_insn_history)
13297 (btrace_set_call_history): New.
13298 * record-btrace.c (require_btrace): Use new btrace thread
13300 (record_btrace_info, btrace_insn_history)
13301 (record_btrace_insn_history, record_btrace_insn_history_range):
13302 Use new btrace thread info fields and new iterator.
13303 (btrace_func_history_src_line): Rename to ...
13304 (btrace_call_history_src_line): ...this. Use new btrace
13305 thread info fields.
13306 (btrace_func_history): Rename to ...
13307 (btrace_call_history): ...this. Use new btrace thread info
13308 fields and new iterator.
13309 (record_btrace_call_history, record_btrace_call_history_range):
13310 Use new btrace thread info fields and new iterator.
13312 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13314 * frame.h (frame_id_build_unavailable_stack_special): New.
13315 * frame.c (frame_id_build_unavailable_stack_special): New.
13317 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13319 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13320 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13321 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13323 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13324 (i386_insn_is_jump, i386_jmp_p): New.
13325 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13326 insn_is_jump to gdbarch.
13327 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13328 * gdbarch.h: Regenerated.
13329 * gdbarch.c: Regenerated.
13330 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13331 (default_insn_is_jump): New.
13332 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13333 (default_insn_is_jump): New.
13335 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13337 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13339 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13340 (btrace_read_type) <btrace_read_new>: Change to ...
13341 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13343 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13345 * common/linux-btrace.c (linux_read_btrace): Free trace from
13346 previous iteration.
13348 2014-01-15 Doug Evans <dje@google.com>
13350 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13353 2014-01-15 Tom Tromey <tromey@redhat.com>
13355 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13356 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13357 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13358 (set_objfile_main_name): New function.
13359 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13360 language_of_main>: New fields.
13361 (set_objfile_main_name): Declare.
13362 * symtab.c (find_main_name): Loop over objfiles to find the main
13364 (set_main_name): Now static.
13365 (get_main_info): Add comment.
13366 * symtab.h (set_main_name): Don't declare.
13368 2014-01-15 Tom Tromey <tromey@redhat.com>
13370 * symtab.c (main_progspace_key): New global.
13371 (struct main_info): New.
13372 (name_of_main, language_of_main): Remove.
13373 (get_main_info, main_info_cleanup): New function.
13374 (set_main_name, main_name, main_language): Use get_main_info.
13375 (_initialize_symtab): Initialize main_progspace_key.
13377 2014-01-15 Tom Tromey <tromey@redhat.com>
13379 * dbxread.c (process_one_symbol): Update.
13380 * dwarf2read.c (read_partial_die): Update.
13381 * symfile.c (set_initial_language): Call main_language.
13382 * symtab.c (language_of_main): Now static.
13383 (set_main_name): Add 'lang' parameter.
13384 (find_main_name): Update.
13385 (main_language): New function.
13386 (symtab_observer_executable_changed): Update.
13387 * symtab.h (set_main_name): Update.
13388 (language_of_main): Remove.
13389 (main_language): Declare.
13391 2014-01-15 Tom Tromey <tromey@redhat.com>
13393 * symfile.c (init_entry_point_info): Use new "initialized" field.
13395 * objfiles.h (struct entry_point) <initialized>: New field.
13396 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13397 (struct objfile) <ei>: ...here. Remove.
13398 * objfiles.c (entry_point_address_query): Update.
13400 2014-01-15 Tom Tromey <tromey@redhat.com>
13402 * objfiles.c (entry_point_address_query): Relocate entry point
13404 (objfile_relocate1): Do not relocate entry point address.
13405 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13406 <the_bfd_section_index>: New field.
13407 * symfile.c (init_entry_point_info): Find the entry point's
13410 2014-01-15 Tom Tromey <tromey@redhat.com>
13412 * solib-frv.c (enable_break): Use entry_point_address_query.
13414 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13416 * NEWS: Add note on improved process record-replay on
13417 arm*-linux* targets.
13419 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13421 * arm-tdep.c (enum arm_record_result): New enum.
13422 (arm_record_unsupported_insn): New function.
13423 (arm_record_coproc_data_proc): Removed.
13424 (thumb2_record_ld_st_multiple): New function.
13425 (thumb2_record_ld_st_dual_ex_tbb): New function.
13426 (thumb2_record_data_proc_sreg_mimm): New function.
13427 (thumb2_record_ps_dest_generic): New function.
13428 (thumb2_record_branch_misc_cntrl): New function.
13429 (thumb2_record_str_single_data): New function.
13430 (thumb2_record_ld_mem_hints): New function.
13431 (thumb2_record_ld_word): New function.
13432 (thumb2_record_lmul_lmla_div): New function.
13433 (thumb2_record_decode_insn_handler): New function.
13434 (decode_insn): Add thumb32 instruction handlers.
13436 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13438 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13439 (struct arm_linux_record_tdep): Declare.
13440 (arm_canonicalize_syscall): New function.
13441 (arm_all_but_pc_registers_record): New function.
13442 (arm_linux_syscall_record): New function.
13443 (arm_linux_init_abi): Add syscall recording constructs.
13444 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13445 decoding. (arm_record_coproc_data_proc): Update arm syscall
13447 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13448 <arm_syscall_record>: New field.
13449 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13452 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13454 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13455 register for push instruction recording.
13457 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13459 * arm-tdep.c (thumb_record_misc): Update to correct logical
13460 error while recording ldm, ldmia and pop instructions.
13462 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
13464 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13466 2014-01-15 Pedro Alves <palves@redhat.com>
13468 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13469 (go32_resume, go32_fetch_registers, store_register)
13470 (go32_store_registers, go32_prepare_to_store)
13471 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13472 (go32_create_inferior, go32_can_run, go32_terminal_init)
13473 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13476 2014-01-15 Tom Tromey <tromey@redhat.com>
13478 * target.h (async_callback_ftype): New typedef.
13479 (struct target_ops) <to_async>: Use it.
13481 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13483 * python/py-value.c (get_field_type): Remove unnecessary curly
13484 braces for single-statement if block.
13486 2014-01-15 Joel Brobecker <brobecker@adacore.com>
13488 * python/py-type.c (convert_field): Add missing empty line
13489 after declarations.
13491 2014-01-14 Doug Evans <dje@google.com>
13493 * symfile.h (expand_symtabs_matching): Renamed from
13494 expand_partial_symbol_names. Update prototype.
13495 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13496 * symfile.c (expand_symtabs_matching): Renamed from
13497 expand_partial_symbol_names. New args file_matcher, kind.
13498 Rename arg fun to symbol_matcher.
13499 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13500 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13501 ada_expand_partial_symbol_name.
13502 (ada_make_symbol_completion_list): Update to call
13503 expand_symtabs_matching.
13504 (ada_add_global_exceptions): Call expand_symtabs_matching.
13505 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13506 call map_symbol_filenames.
13507 * symtab.c (sources_info): Update to call map_symbol_filenames.
13508 (search_symbols): Call expand_symtabs_matching.
13509 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13510 (default_make_symbol_completion_list_break_on): Update to call
13511 expand_symtabs_matching.
13512 (make_source_files_completion_list): Update to call
13513 map_symbol_filenames.
13515 2014-01-14 Doug Evans <dje@google.com>
13517 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13518 (expand_symtabs_symbol_matcher_ftype): New typedef.
13519 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13520 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13521 * symfile.c (expand_partial_symbol_names): Update to use
13522 expand_symtabs_symbol_matcher_ftype.
13523 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13524 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13525 Arg name_matcher renamed to symbol_matcher.
13526 * psymtab.c (recursively_search_psymtabs): Update to use
13527 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13529 (expand_symtabs_matching_via_partial): Update to use
13530 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13531 Arg name_matcher renamed to symbol_matcher.
13533 2014-01-14 Doug Evans <dje@google.com>
13535 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13536 (map_partial_symbol_filenames): Ditto.
13537 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13538 (map_partial_symbol_filenames): Ditto.
13539 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
13540 (map_partial_symbol_filenames): Ditto.
13541 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
13542 (map_partial_symbol_filenames): Ditto.
13543 * symtab.c: Delete #include "psymtab.h".
13545 2014-01-14 Pedro Alves <palves@redhat.com>
13546 Tom Tromey <tromey@redhat.com>
13548 * infrun.c (use_displaced_stepping): Use find_record_target
13549 instead of RECORD_IS_USED.
13550 (adjust_pc_after_break): Use record_full_is_used instead of
13552 * record-btrace.c (record_btrace_open): Call record_preopen
13553 instead of checking RECORD_IS_USED.
13554 * record-full.c (record_full_shortname)
13555 (record_full_core_shortname): New globals.
13556 (record_full_is_used): New function.
13557 (find_full_open): Call record_preopen instead of checking
13559 (init_record_full_ops): Set the target's shortname to
13560 record_full_shortname.
13561 (init_record_full_core_ops): Set the target's shortname to
13562 record_full_core_shortname.
13563 * record-full.h (record_full_is_used): Declare.
13564 * record.c (find_record_target): Make extern.
13565 (record_preopen): New function.
13566 * record.h (RECORD_IS_USED): Delete macro.
13567 (find_record_target, record_preopen): Declare functions.
13569 2014-01-14 Yao Qi <yao@codesourcery.com>
13571 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
13572 'len''s type to ULONGEST.
13573 (core_xfer_shared_libraries_aix): Likewise.
13574 * gdbarch.c, gdbarch.h: Regenerated.
13575 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
13576 Change type of 'len' to ULONGEST.
13577 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13578 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
13580 2014-01-14 Yao Qi <yao@codesourcery.com>
13582 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
13583 type of 'len' to ULONGEST.
13584 (linux_xfer_osdata_processgroups): Likewise.
13585 (linux_xfer_osdata_threads): Likewise.
13586 (linux_xfer_osdata_fds): Likewise.
13587 (linux_xfer_osdata_isockets): Likewise.
13588 (linux_xfer_osdata_shm): Likewise.
13589 (linux_xfer_osdata_sem): Likewise.
13590 (linux_xfer_osdata_msg): Likewise.
13591 (linux_common_xfer_osdata): Likewise.
13592 (struct osdata_type) <getter>: Likewise.
13593 * common/linux-osdata.h (linux_common_xfer_osdata): Update
13596 2014-01-14 Yao Qi <yao@codesourcery.com>
13598 * target.h (target_xfer_partial_ftype): Update.
13599 (struct target_ops) <to_xfer_partial>: Change 'len' type to
13601 * aix-thread.c (aix_thread_xfer_partial): Change type of
13602 argument 'len' to ULONGEST.
13603 * auxv.c (procfs_xfer_auxv): Likewise.
13604 (ld_so_xfer_auxv): Likewise.
13605 (memory_xfer_auxv): Likewise.
13606 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13607 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13608 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13609 * corelow.c (core_xfer_partial): Likewise.
13610 * ctf.c (ctf_xfer_partial): Likewise.
13611 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
13613 (darwin_read_dyld_info): Likewise.
13614 (darwin_xfer_partial): Likewise.
13615 * exec.c (section_table_xfer_memory_partial): Likewise.
13616 (exec_xfer_partial): Likewise.
13617 * exec.h (section_table_xfer_memory_partial): Update
13619 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
13620 instead of plongest.
13621 (gnu_xfer_partial): Likewise.
13622 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
13623 (ia64_hpux_xfer_solib_got): Likewise.
13624 (ia64_hpux_xfer_partial): Likewise.
13625 * ia64-linux-nat.c (ia64_linux_xfer_partial):
13626 * inf-ptrace.c (inf_ptrace_xfer_partial):
13627 * inf-ttrace.c (inf_ttrace_xfer_partial):
13628 * linux-nat.c (linux_xfer_siginfo): Likewise.
13629 (linux_nat_xfer_partial): Likewise.
13630 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
13631 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
13632 * monitor.c (monitor_xfer_memory): Likewise.
13633 (monitor_xfer_partial): Likewise.
13634 * procfs.c (procfs_xfer_partial): Likewise.
13635 * record-full.c (record_full_xfer_partial): Likewise.
13636 (record_full_core_xfer_partial): Likewise.
13637 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
13638 instead of plongest.
13639 (gdbsim_xfer_partial): Likewise.
13640 * remote.c (remote_xfer_partial): Likewise.
13641 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13642 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13644 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13645 (rs6000_xfer_shared_libraries): Likewise.
13646 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13647 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13648 (sparc_xfer_partial): Likewise.
13649 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13650 (spu_xfer_partial): Likewise.
13651 * spu-multiarch.c (spu_xfer_partial): Likewise.
13652 * target.c (target_read_live_memory): Likewise.
13653 (memory_xfer_live_readonly_partial): Likewise.
13654 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
13655 (target_xfer_partial, default_xfer_partial): Likewise.
13656 (current_xfer_partial): Likewise.
13657 * tracepoint.c (tfile_xfer_partial): Likewise.
13658 * windows-nat.c (windows_xfer_memory): Likewise. Call
13659 pulongest instead of plongest.
13660 (windows_xfer_partial): Likewise.
13661 (windows_xfer_shared_libraries): Likewise.
13663 2014-01-14 Yao Qi <yao@codesourcery.com>
13665 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
13666 target_xfer_partial_ftype.
13668 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
13672 * valops.c (value_struct_elt_bitpos): New function
13673 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
13674 object to 'None' if the field name is an empty string ("").
13675 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
13676 attribute to look for a field when 'name' is 'None'.
13677 (get_field_type): New function
13679 2014-01-13 Doug Evans <dje@google.com>
13682 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
13683 (try_open_dwop_file): Ditto.
13684 * gdb_bfd.c: #include "vec.h".
13685 (bfdp): New typedef.
13686 (struct gdb_bfd_data): New member included_bfds.
13687 (gdb_bfd_unref): Unref all included bfds.
13688 (gdb_bfd_record_inclusion): New function.
13689 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
13691 2014-01-13 Tom Tromey <tromey@redhat.com>
13693 * gdbcore.h (deprecated_core_resize_section_table): Remove.
13695 2014-01-13 Tom Tromey <tromey@redhat.com>
13697 * defs.h (use_windows): Remove.
13698 * gdb.c (main): Update.
13699 * main.c (captured_main, gdb_main): Update.
13700 * main.h (struct captured_main_args) <use_windows>: Remove.
13701 * top.c (use_windows): Remove.
13703 2014-01-13 Tom Tromey <tromey@redhat.com>
13705 * defs.h (deprecated_flush_hook): Remove.
13707 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13710 * linux-thread-db.c (try_thread_db_load): Add parameter
13711 check_auto_load_safe. Move here the file_is_auto_load_safe call.
13712 (try_thread_db_load_from_pdir_1): Move it there from here.
13713 (try_thread_db_load_from_sdir): Update caller.
13714 (try_thread_db_load_from_dir): Move it there from here.
13716 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
13718 * regformats/regdat.sh: Always rewrite the register file.
13720 2014-01-13 Pedro Alves <palves@redhat.com>
13722 * Makefile.in (CHECK_HEADERS): New variable.
13723 (check-headers:): New rule.
13725 2014-01-13 Tom Tromey <tromey@redhat.com>
13727 * cli/cli-setshow.c (do_set_command): Update.
13728 * defs.h (deprecated_set_hook): Remove.
13729 * top.c (deprecated_set_hook): Remove.
13731 2014-01-13 Pedro Alves <palves@redhat.com>
13733 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
13734 the tracepoint if the PC is a pseudo-register.
13736 2014-01-13 Tom Tromey <tromey@redhat.com>
13738 * defs.h (XCALLOC): Remove.
13739 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
13740 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13741 * dwarf2loc.c (allocate_piece_closure): Likewise.
13742 * elfread.c (elf_symfile_segments): Likewise.
13743 (elf_symfile_segments): Likewise.
13744 * gdbtypes.c (copy_type_recursive): Likewise.
13745 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13746 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13747 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13749 * mt-tdep.c (mt_gdbarch_init): Likewise.
13750 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13752 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13753 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13754 * registry.c (registry_alloc_data): Likewise.
13755 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13756 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13757 * serial.c (serial_fdopen_ops): Likewise.
13758 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13760 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13761 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13764 2014-01-13 Tom Tromey <tromey@redhat.com>
13766 * defs.h (XMALLOC): Remove.
13767 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13768 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13769 * cli-out.c (struct ui_out *): Likewise.
13770 * cli/cli-dump.c (add_dump_command): Likewise.
13771 (add_dump_command): Likewise.
13772 * complaints.c (get_complaints): Likewise.
13773 (find_complaint): Likewise.
13774 * dwarf2-frame.c (execute_cfa_program): Likewise.
13775 * dwarf2read.c (abbrev_table_read_table): Likewise.
13776 * gdbarch.sh: Likewise.
13777 * gdbarch.c: Rebuild.
13778 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13779 * interps.c (interp_new): Likewise.
13780 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13781 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13782 * mi/mi-console.c (mi_console_file_new): Likewise.
13783 * mi/mi-interp.c (mi_interpreter_init): Likewise.
13784 * mi/mi-out.c (mi_out_new): Likewise.
13785 * mi/mi-parse.c (mi_parse): Likewise.
13786 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13787 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13788 * observer.c (xalloc_observer_list_node): Likewise.
13789 * regcache.c (regcache_xmalloc_1): Likewise.
13790 * reggroups.c (reggroup_new): Likewise.
13791 (_initialize_reggroup): Likewise.
13792 * registry.c (register_data_with_cleanup): Likewise.
13793 * remote.c (remote_notif_stop_alloc_reply): Likewise.
13794 * ser-base.c (serial_ttystate): Likewise.
13795 * ser-mingw.c (make_pipe_state): Likewise.
13796 * ser-pipe.c (pipe_open): Likewise.
13797 * serial.c (serial_open): Likewise.
13798 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13799 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13800 (tui_alloc_win_info): Likewise.
13801 (tui_add_content_elements): Likewise.
13802 * tui/tui-file.c (tui_file_new): Likewise.
13803 * tui/tui-out.c (tui_out_new): Likewise.
13804 * ui-file.c (mem_file_new): Likewise.
13805 * ui-out.c (push_level): Likewise.
13806 (make_cleanup_ui_out_end): Likewise.
13807 (append_header_to_list): Likewise.
13808 (ui_out_new): Likewise.
13809 * user-regs.c (user_reg_add_builtin): Likewise.
13811 2014-01-13 Tom Tromey <tromey@redhat.com>
13813 * defs.h (XZALLOC): Remove.
13814 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13815 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13816 (get_ada_tasks_inferior_data): Likewise.
13817 * auto-load.c (get_auto_load_pspace_data): Likewise.
13818 * auxv.c (get_auxv_inferior_data): Likewise.
13819 * bfd-target.c (target_bfd_reopen): Likewise.
13820 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13821 (deprecated_insert_raw_breakpoint): Likewise.
13822 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13823 * corelow.c (core_open): Likewise.
13824 * darwin-nat.c (darwin_check_new_threads): Likewise.
13825 (darwin_attach_pid): Likewise.
13826 * dummy-frame.c (dummy_frame_push): Likewise.
13827 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13828 * dwarf2loc.c (allocate_piece_closure): Likewise.
13829 * elfread.c (elf_symfile_segments): Likewise.
13830 * eval.c (ptrmath_type_p): Likewise.
13831 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13832 * gdbtypes.c (alloc_type_arch): Likewise.
13833 (alloc_type_instance): Likewise.
13834 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13835 * inf-child.c (inf_child_can_use_agent): Likewise.
13836 * inflow.c (get_inflow_inferior_data): Likewise.
13837 * infrun.c (save_infcall_suspend_state): Likewise.
13838 * jit.c (jit_reader_load): Likewise.
13839 (get_jit_objfile_data): Likewise.
13840 (get_jit_program_space_data): Likewise.
13841 (jit_object_open_impl): Likewise.
13842 (jit_symtab_open_impl): Likewise.
13843 (jit_block_open_impl): Likewise.
13844 (jit_frame_sniffer): Likewise.
13845 * linux-fork.c (add_fork): Likewise.
13846 * maint.c (make_command_stats_cleanup): Likewise.
13847 * objfiles.c (get_objfile_pspace_data): Likewise.
13848 * opencl-lang.c (struct lval_closure): Likewise.
13849 * osdata.c (osdata_start_osdata): Likewise.
13850 * progspace.c (new_address_space): Likewise.
13851 (add_program_space): Likewise.
13852 * remote-sim.c (get_sim_inferior_data): Likewise.
13853 * sh-tdep.c (sh_gdbarch_init): Likewise.
13854 * skip.c (Ignore): Likewise.
13855 (skip_delete_command): Likewise.
13856 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13857 (library_list_start_library): Likewise.
13858 (solib_aix_current_sos): Likewise.
13859 * solib-darwin.c (get_darwin_info): Likewise.
13860 (darwin_current_sos): Likewise.
13861 * solib-dsbt.c (get_dsbt_info): Likewise.
13862 * solib-ia64-hpux.c (new_so_list): Likewise.
13863 (ia64_hpux_get_solib_linkage_addr): Likewise.
13864 * solib-spu.c (append_ocl_sos): Likewise.
13865 (spu_current_sos): Likewise.
13866 * solib-svr4.c (get_svr4_info): Likewise.
13867 (svr4_keep_data_in_core): Likewise.
13868 (library_list_start_library): Likewise.
13869 (svr4_default_sos): Likewise.
13870 (svr4_read_so_list): Likewise.
13871 * solib-target.c (library_list_start_library): Likewise.
13872 (solib_target_current_sos): Likewise.
13873 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13874 * symfile-debug.c (install_symfile_debug_logging): Likewise.
13875 * symfile.c (default_symfile_segments): Likewise.
13876 * target-descriptions.c (tdesc_data_init): Likewise.
13877 (tdesc_create_reg): Likewise.
13878 (struct tdesc_type *): Likewise.
13879 (tdesc_create_vector): Likewise.
13880 (tdesc_set_struct_size): Likewise.
13881 (struct tdesc_type *): Likewise.
13882 (tdesc_free_feature): Likewise.
13883 (tdesc_create_feature): Likewise.
13884 * windows-nat.c (windows_add_thread): Likewise.
13885 (windows_make_so): Likewise.
13886 * xml-support.c (gdb_xml_body_text): Likewise.
13887 (gdb_xml_create_parser_and_cleanup): Likewise.
13888 (xml_process_xincludes): Likewise.
13889 * xml-syscall.c (allocate_syscalls_info): Likewise.
13890 (syscall_create_syscall_desc): Likewise.
13892 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
13894 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13895 function, with code from i386_stap_parse_special_token.
13896 (i386_stap_parse_special_token_three_arg_disp): Likewise.
13897 (i386_stap_parse_special_token): Move code to the two functions
13898 above; simplify it.
13900 2014-01-09 Pedro Alves <palves@redhat.com>
13901 Hui Zhu <hui@codesourcery.com>
13904 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13905 bp_err_string. Don't mark the location shlib_disabled if the
13906 error thrown wasn't a generic or memory error. Catch errors
13907 thrown while inserting breakpoints in overlayed code. Output
13908 error message of software breakpoints.
13909 * remote.c (remote_insert_breakpoint): If this breakpoint has
13910 target-side commands but this stub doesn't support Z0 packets,
13911 throw NOT_SUPPORTED_ERROR error.
13912 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13913 * target.h (target_insert_breakpoint): Extend comment.
13914 (target_insert_hw_breakpoint): Add comment.
13916 2014-01-08 Pedro Alves <palves@redhat.com>
13918 * remote.c (remote_add_thread): Add threads silently if starting
13920 (remote_notice_new_inferior): If in all-stop, and starting up,
13921 don't call notice_new_inferior.
13922 (get_current_thread): New function, factored out from ...
13923 (add_current_inferior_and_thread): ... this. Adjust.
13924 (remote_start_remote) <all-stop>: Fetch the thread list. If we
13925 found any thread, then select the remote's current thread as GDB's
13926 current thread too.
13928 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13930 * NEWS: Create a new section for the next release branch.
13931 Rename the section of the current branch, now that it has
13934 2014-01-08 Joel Brobecker <brobecker@adacore.com>
13936 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13937 * version.in: Bump version to 7.7.50.DATE-cvs.
13939 2014-01-08 Yao Qi <yao@codesourcery.com>
13941 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13942 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
13943 (spu_xfer_partial): Cast 'buf' to 'const char *'.
13945 2014-01-08 Yao Qi <yao@codesourcery.com>
13947 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13948 return value of bfd_get_filename to symbol_file_add_from_bfd.
13950 2014-01-08 Pierre Muller <muller@sourceware.org>
13953 * coff-pe-read.c (struct read_pe_section_data): Add index field.
13954 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13955 to prim_record_mininal_symbol_and_info.
13956 (add_pe_forwarded_sym): Use known section number of forwarded symbol
13957 in call to prim_record_minimal_symbol_and_info.
13958 (read_pe_exported_syms): Set index field of section_data.
13960 2014-01-07 Andrew Pinski <apinski@cavium.com>
13962 * features/aarch64-core.xml (cpsr): Change to be 64bit.
13963 * features/aarch64.c: Regenerate.
13965 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
13967 * target.c (return_null): Define.
13968 (update_current_target): Use it instead of return_zero for
13969 functions that return a pointer.
13971 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
13973 * source.c (add_path): Fix check for duplicated paths in the previously
13976 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
13978 * ada-lang.c: Remove duplicated include statements.
13979 * alphabsd-nat.c: Ditto.
13980 * amd64-darwin-tdep.c: Ditto.
13981 * amd64fbsd-nat.c: Ditto.
13982 * auto-load.c: Ditto.
13984 * breakpoint.c: Ditto.
13985 * dbxread.c: Ditto.
13986 * fork-child.c: Ditto.
13987 * gdb_usleep.c: Ditto.
13988 * i386-darwin-tdep.c: Ditto.
13989 * i386fbsd-nat.c: Ditto.
13991 * inferior.c: Ditto.
13992 * jv-lang.c: Ditto.
13993 * linux-nat.c: Ditto.
13994 * linux-tdep.c: Ditto.
13995 * m68kbsd-nat.c: Ditto.
13996 * m68klinux-nat.c: Ditto.
13997 * microblaze-tdep.c: Ditto.
13998 * mips-linux-tdep.c: Ditto.
13999 * mn10300-tdep.c: Ditto.
14000 * nto-tdep.c: Ditto.
14001 * opencl-lang.c: Ditto.
14003 * printcmd.c: Ditto.
14004 * regcache.c: Ditto.
14005 * remote-m32r-sdi.c: Ditto.
14007 * symfile.c: Ditto.
14009 * tilegx-linux-nat.c: Ditto.
14010 * tilegx-tdep.c: Ditto.
14011 * tracepoint.c: Ditto.
14013 * vaxbsd-nat.c: Ditto.
14014 * windows-nat.c: Ditto.
14015 * xtensa-tdep.c: Ditto.
14017 2014-01-07 Yao Qi <yao@codesourcery.com>
14019 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14021 2014-01-07 Yao Qi <yao@codesourcery.com>
14022 Joel Brobecker <brobecker@adacore.com>
14024 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14025 (pdc_write_regs): Likewise.
14026 (fetch_regs_kernel_thread): Likewise.
14027 (store_regs_kernel_thread): Likewise.
14029 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14031 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14032 tagged type objects to their actual type.
14034 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14036 * ada-valprint.c (print_field_values): Add "language" parameter.
14037 Update calls to print_field_values and print_variant_part.
14038 Pass new parameter "language" in call to val_print instead
14039 of "current_language". Replace call to ada_val_print by call
14041 (print_variant_part): Add "language" parameter.
14042 (ada_val_print_struct_union): Update call to print_field_values.
14044 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14046 * ada-valprint.c (ui_memcpy): Delete.
14047 (ada_print_floating): Update documentation. Add empty line
14048 between between function documentation and implementation.
14049 Delete variable "buffer". Use ui_file_xstrdup in place of
14050 ui_file_put. Minor adjustments following this change.
14052 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14054 * ada-valprint.c (ada_val_print_string): New function,
14055 extracted from ada_val_print_array.
14056 (ada_val_print_array): Replace extracted code by call
14057 to ada_val_print_string followed by a return. Move
14058 "else" branch to the function's top block.
14060 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14062 * ada-valprint.c (ada_val_print_array): Move implementation
14063 down. Rename parameter "offset" and "val" into "offset_aligned"
14064 and "original_value" respectively. Add parameter "offset".
14066 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14068 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14069 re-organizing the code. Change the "???" message printed
14070 when target type is a TYPE_CODE_UNDEF into
14071 "<ref to undefined type>".
14073 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14075 * ada-valprint.c (print_record): Delete, implementation inlined...
14076 (ada_val_print_struct_union): ... here. Remove call to
14077 ada_check_typedef in inlined implementation.
14079 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14081 * ada-valprint.c (ada_val_print_gnat_array): New function,
14082 extracted from ada_val_print_1;
14083 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14084 (ada_val_print_flt, ada_val_print_struct_union)
14085 (ada_val_print_ref): Likewise.
14086 (ada_val_print_1): Delete variables i and elttype.
14087 Replace extracted-out code by call to corresponding
14090 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14092 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14094 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14096 * ada-valprint.c (ada_val_print_1): Replace calls to
14097 ada_val_print_1 by calls to val_print.
14099 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14101 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14102 Update calls to self accordingly. Replace calls to c_val_print
14103 by calls to val_print.
14105 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14107 * ada-valprint.c (print_record): Delete declaration.
14108 (adjust_type_signedness, ada_val_print_1): Likewise.
14109 (ada_val_print): Move function implementation down.
14110 (print_variant_part, print_field_values, print_record):
14111 Move function implementation up.
14113 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14115 * python/py-type.c (typy_get_name): New function.
14116 (type_object_getset): Add entry for attribute "name".
14117 * NEWS: Add entry mentioning this new attribute.
14119 2014-01-07 Yao Qi <yao@codesourcery.com>
14121 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14124 2014-01-07 Yao Qi <yao@codesourcery.com>
14126 * gnu-nat.c (info_port_rights): Add qualifier const to
14129 2014-01-07 Yao Qi <yao@codesourcery.com>
14131 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14133 2014-01-07 Yao Qi <yao@codesourcery.com>
14135 * gnu-nat.c (make_inf) Update declaration.
14136 (make_inf): Make it static.
14137 (inf_set_traced): Likewise.
14138 (inf_port_to_thread, inf_task_died_status): Likewise.
14140 2014-01-07 Yao Qi <yao@codesourcery.com>
14142 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14144 2014-01-07 Yao Qi <yao@codesourcery.com>
14146 * gnu-nat.c (_initialize_gnu_nat): Declare.
14148 2014-01-07 Yao Qi <yao@codesourcery.com>
14150 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14152 (struct gdbarch_info) <byte_order>: Change type to
14154 <byte_order_for_code>: Likewise.
14155 * gdbarch.c, gdbarch.h: Regenerated.
14157 2014-01-06 Sasha Smundak <asmundak@google.com>
14159 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14161 2014-01-06 Tom Tromey <tromey@redhat.com>
14163 * doublest.c (convert_doublest_to_floatformat): Use const, not
14165 * somread.c (som_symtab_read): Likewise.
14167 2014-01-07 Hui Zhu <hui@codesourcery.com>
14169 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14170 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14171 (gdb_bfd_fopen): Ditto.
14172 (gdb_bfd_openr): Ditto.
14173 (gdb_bfd_openw): Ditto.
14174 (gdb_bfd_openr_iovec): Ditto.
14175 (gdb_bfd_fdopenr): Ditto.
14176 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14177 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14179 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14181 * symfile-mem.c (symbol_file_add_from_memory): Removed
14182 gdb_bfd_stash_filename.
14184 2014-01-03 Doug Evans <dje@google.com>
14186 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14189 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14191 Update year range in copyright notice of all files.
14193 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14195 * top.c (print_gdb_version): Set copyright year to 2014.
14197 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14199 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14201 For older changes see ChangeLog-2013.
14207 version-control: never