1 2014-11-13 Doug Evans <dje@google.com>
3 * dwarf2read.c (update_enumeration_type_from_children): Avoid
6 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8 * NEWS (maint set target-async): Fix typo.
10 2014-11-12 Pedro Alves <palves@redhat.com>
12 * infrun.c (enum infwait_states, infwait_state): Delete.
14 2014-11-12 Pedro Alves <palves@redhat.com>
16 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
17 Rewrite stepping over a permanent breakpoint.
18 (thread_still_needs_step_over, proceed): Don't set
19 stepping_over_breakpoint for permanent breakpoints.
20 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
21 single-step breakpoints out of the target on hardware step
23 (process_event_stop_test): If stepping a permanent breakpoint
24 doesn't hit the step-resume breakpoint, delete the step-resume
26 (switch_back_to_stepped_thread): Also check if the stepped thread
27 has advanced already on hardware step targets.
28 (currently_stepping): Return true if the thread stepped a
31 2014-11-12 Pedro Alves <palves@redhat.com>
33 Mark locations as permanent, not the whole breakpoint.
34 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
35 (mark_breakpoints_out): Don't mark permanent breakpoints as
37 (breakpoint_init_inferior): Use mark_breakpoints_out.
38 (breakpoint_here_p): Adjust.
39 (bpstat_stop_status, describe_other_breakpoints): Remove handling
40 of permanent breakpoints.
41 (make_breakpoint_permanent): Mark each location as permanent,
42 instead of marking the breakpoint.
43 (add_location_to_breakpoint): If the location is permanent, mark
44 it as such, and as inserted.
45 (init_breakpoint_sal): Don't make the breakpoint permanent here.
46 (bp_location_compare, update_global_location_list): Adjust.
47 (update_breakpoint_locations): Don't make the breakpoint permanent
49 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
51 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
52 (struct bp_location) <permanent>: New field.
53 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
54 reference to bp_permanent.
56 2014-11-12 Pedro Alves <palves@redhat.com>
58 * arch-utils.c (default_skip_permanent_breakpoint): New function.
59 * arch-utils.h (default_skip_permanent_breakpoint): New
61 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
62 Install default_skip_permanent_breakpoint as default method.
63 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
64 (i386_gdbarch_init): Don't install it.
65 * infrun.c (resume): Assume there's always a
66 gdbarch_skip_permanent_breakpoint implementation.
67 * gdbarch.h, gdbarch.c: Regenerate.
69 2014-11-11 Daniel Colascione <dancol@dancol.org>
71 Warn about cross-PID-namespace debugging.
72 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
73 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
74 * linux-thread-db.c (check_pid_namespace_match): New function.
75 (thread_db_inferior_created): Call it.
77 2014-11-10 Doug Evans <xdje42@gmail.com>
79 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
80 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
82 2014-11-10 Doug Evans <xdje42@gmail.com>
84 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
86 2014-11-10 Doug Evans <xdje42@gmail.com>
89 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
90 (lookup_static_symbol): Move definition to new location and rewrite.
91 (lookup_symbol_in_objfile): New function.
92 (lookup_symbol_global_iterator_cb): Call it.
94 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
96 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
98 2014-11-07 Pedro Alves <palves@redhat.com>
100 * infrun.c (process_event_stop_test) <subroutine check>: Don't
101 check if we did a "nexti" inside a prologue.
102 * symtab.c (in_prologue): Delete function.
103 * symtab.h (in_prologue): Delete declaration.
105 2014-11-06 Doug Evans <xdje42@gmail.com>
107 * symtab.h (lookup_global_symbol): Improve function comment.
109 2014-11-06 Doug Evans <xdje42@gmail.com>
111 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
113 * symtab.h (lookup_global_symbol): Update decl.
114 (lookup_static_symbol): Move decl to better location.
116 2014-11-06 Doug Evans <xdje42@gmail.com>
118 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
120 2014-11-06 Doug Evans <xdje42@gmail.com>
122 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
124 (lookup_symbol_in_all_objfiles): Renamed from
125 lookup_symbol_aux_symtabs. All callers updated.
126 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
128 (lookup_symbol_in_objfile_symtabs): Renamed from
129 lookup_symbol_aux_objfile. All callers updated.
131 2014-11-06 Doug Evans <xdje42@gmail.com>
133 * symtab.c (lookup_symbol_in_block): Renamed from
134 lookup_symbol_aux_block. All callers updated.
136 2014-11-06 Doug Evans <xdje42@gmail.com>
138 * symtab.c (lookup_static_symbol): Renamed from
139 lookup_static_symbol_aux. All callers updated.
140 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
143 2014-11-06 Doug Evans <xdje42@gmail.com>
145 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
146 * block.c (block_lookup_symbol): Use it.
147 * cp-support.c (make_symbol_overload_list_block): Use it.
148 * symtab.c (iterate_over_symbols): Use it.
150 2014-11-06 Doug Evans <xdje42@gmail.com>
152 * symtab.c (lookup_block_symbol): Moved to ...
153 * block.c (block_lookup_symbol): ... here and renamed.
155 * block.h (block_lookup_symbol): Declare.
156 * symtab.h (lookup_block_symbol): Delete.
158 2014-11-06 Doug Evans <xdje42@gmail.com>
160 * ada-lang.c (ada_make_symbol_completion_list): Use
161 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
162 * symtab.c (lookup_objfile_from_block): Ditto.
164 2014-11-06 Doug Evans <xdje42@gmail.com>
166 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
169 2014-11-06 Doug Evans <xdje42@gmail.com>
171 * objfiles.c (get_objfile_arch): Constify.
172 * objfiles.h (get_objfile_arch): Update prototype.
173 * solib.c (solib_global_lookup): Fetch arch from objfile,
176 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
178 * nios2-tdep.c (wild_insn): Delete.
179 (profiler_insn, irqentry_insn): Delete.
180 (nios2_match_sequence): Delete.
181 (nios2_analyze_prologue): Update comments. Remove matching
182 of obsolete profiler_insn and irqentry_insn sequences.
184 2014-11-05 Alan Modra <amodra@gmail.com>
186 * charset.c (convert_between_encodings): Shrink obstack using
188 * minsyms.c (install_minimal_symbols): Likewise.
189 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
190 to char* before doing pointer arithmetic.
192 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
194 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
196 2014-11-04 Pedro Alves <palves@redhat.com>
198 * breakpoint.c (breakpoint_thread_match): Delete function.
199 * breakpoint.h (breakpoint_thread_match): Delete declaration.
201 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
204 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
205 the method args also under EVAL_SKIP when evaluating method
206 calls under EVAL_SKIP.
208 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
210 * dwarf2loc.c (read_pieced_value): Do big endian
211 processing only if gdb_regnum is not -1.
212 (write_pieced_value): Ditto.
214 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
216 * arm-linux-tdep.c (arm_linux_init_abi): Use
217 info.byte_order_for_code to choose endianity of breakpoint
218 instructions snippets.
220 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
222 * arm-tdep.c (extract_arm_insn): Use
223 gdbarch_byte_order_for_code to read arm instruction.
225 2014-11-02 Doug Evans <xdje42@gmail.com>
227 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
229 2014-11-02 Doug Evans <xdje42@gmail.com>
231 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
232 main_subfile before returning.
234 2014-10-31 Doug Evans <xdje42@gmail.com>
236 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
237 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
239 2014-10-31 Doug Evans <xdje42@gmail.com>
241 * valops.c (value_cast_pointers): Fix whitespace.
242 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
245 2014-10-30 Doug Evans <dje@google.com>
247 * NEWS: Mention ability add attributes to gdb.Objfile and
248 gdb.Progspace objects.
249 * python/py-objfile.c (objfile_object): New member dict.
250 (objfpy_dealloc): Py_XDECREF dict.
251 (objfpy_initialize): Initialize dict.
252 (objfile_getset): Add __dict__.
253 (objfile_object_type): Set tp_dictoffset member.
254 * python/py-progspace.c (progspace_object): New member dict.
255 (pspy_dealloc): Py_XDECREF dict.
256 (pspy_initialize): Initialize dict.
257 (pspace_getset): Add __dict__.
258 (pspace_object_type): Set tp_dictoffset member.
260 2014-10-30 Yao Qi <yao@codesourcery.com>
262 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
263 replace '\\' with '\\\\'.
265 2014-10-29 Joel Brobecker <brobecker@adacore.com>
269 2014-10-29 Pedro Alves <palves@redhat.com>
272 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
273 instead of assuming a thread with a stepping range is always
276 2014-10-29 Pedro Alves <palves@redhat.com>
279 * event-top.c (change_line_handler): Call
280 gdb_rl_callback_handler_remove instead of
281 rl_callback_handler_remove.
282 (callback_handler_installed): New global.
283 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
284 (gdb_rl_callback_handler_reinstall): New functions.
285 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
286 gdb_rl_callback_handler_install instead of
287 rl_callback_handler_remove and rl_callback_handler_install.
288 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
289 instead of rl_callback_handler_remove.
290 * event-top.h (gdb_rl_callback_handler_remove)
291 (gdb_rl_callback_handler_install)
292 (gdb_rl_callback_handler_reinstall): New declarations.
293 * infrun.c (reinstall_readline_callback_handler_cleanup): New
295 (fetch_inferior_event): Install it.
296 * top.c (gdb_readline_wrapper_line) Call
297 gdb_rl_callback_handler_remove instead of
298 rl_callback_handler_remove.
299 (gdb_readline_wrapper_cleanup): Don't call
300 rl_callback_handler_install.
302 2014-10-29 Pedro Alves <palves@redhat.com>
304 * event-top.c (command_line_handler): Clear the first byte of
305 linebuffer, when it is first allocated.
307 2014-10-29 Pedro Alves <palves@redhat.com>
309 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
312 2014-10-29 Pedro Alves <palves@redhat.com>
316 * tui/tui-interp.c (tui_is_toplevel): Delete global.
317 (tui_allowed_p): Delete function.
318 * tui/tui.c: Include "interps.h".
319 (tui_enable): Don't use tui_allowed_p. Error out here with
320 detailed error messages if the TUI is the top level interpreter,
321 or if output is not a terminal. Use newterm instead of initscr,
322 and error out if initializing the terminal fails. Also error out if
323 the terminal doesn't support cursor addressing.
324 * tui/tui.h (tui_allowed_p): Delete declaration.
326 2014-10-29 Joel Brobecker <brobecker@adacore.com>
328 * arm-tdep.c (arm_skip_stack_protector): Return early if
329 address loaded by first "ldr" instruction does not have
330 a corresponding minimal symbol. Update comment.
332 2014-10-29 Yao Qi <yao@codesourcery.com>
334 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
335 loaded address correctly of ldr instruction.
337 2014-10-28 Pedro Alves <palves@redhat.com>
340 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
342 * infrun.c (resume) <stepping breakpoint instruction>: Set the
343 thread's stepped_breakpoint field. Skip if reverse debugging.
345 (init_thread_stepping_state, handle_signal_stop): Clear the
346 thread's stepped_breakpoint field.
348 2014-10-27 Pedro Alves <palves@redhat.com>
350 * remote.c (remote_thread_alive): New, factored out from ...
351 (remote_thread_alive): ... this.
352 (remote_update_thread_list): Bail out before deleting threads if
353 the target returned an empty list, and, the current thread has a
356 2014-10-27 Pedro Alves <palves@redhat.com>
358 * infrun.c (handle_signal_stop): Also skip handlers when a random
359 signal arrives while handling a "stepi" or a "nexti". Set the
360 thread's 'step_after_step_resume_breakpoint' flag.
362 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
364 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
365 (arm_record_ld_st_imm_offset): Reimplement to cover all
366 load/store cases for ARM opcode 010.
367 (arm_record_ld_st_multiple): Reimplement to cover all
368 load/store cases for ARM opcode 100.
370 2014-10-26 Doug Evans <xdje42@gmail.com>
372 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
374 2014-10-26 Doug Evans <xdje42@gmail.com>
376 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
377 parameter "kind" to "block_index".
378 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
380 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
382 2014-10-26 Doug Evans <xdje42@gmail.com>
384 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
386 2014-10-26 Doug Evans <xdje42@gmail.com>
388 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
391 2014-10-26 Doug Evans <xdje42@gmail.com>
393 * parser-defs.h (block_found): Move decl from here ...
394 * symtab.h (block_found): ... to here.
396 2014-10-26 Doug Evans <xdje42@gmail.com>
398 * symtab.h (struct field_of_this_result): Fix typo in comment.
399 (lookup_symbol_in_language): Move function comment here.
400 (lookup_symbol): Improve function comment.
401 (basic_lookup_symbol_nonlocal): Ditto.
402 (lookup_symbol_static, lookup_symbol_global): Ditto.
403 (lookup_symbol_aux_block): Ditto.
404 (lookup_language_this): Add function comment.
405 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
407 (lookup_block_symbol): Improve function comment.
408 (lookup_struct): Fix capitalization in function comment.
409 (lookup_transparent_type): Add function comment.
410 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
411 Improve function comment.
412 (lookup_objfile_from_block): Add function comment.
413 * symtab.c (lookup_symbol_in_language): Update function comment.
414 (lookup_symbol, lookup_language_this): Ditto.
415 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
416 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
417 (basic_lookup_symbol_nonlocal): Ditto.
418 (lookup_symbol_static, lookup_symbol_global): Ditto.
419 (lookup_transparent_type, lookup_block_symbol): Ditto.
421 2014-10-25 Doug Evans <xdje42@gmail.com>
423 * symtab.c (types_info): Delete forward decl.
424 (functions_info, variables_info, sources_info): Ditto.
425 (_initialize_symtab): Rewrite forward decl to use
426 initialize_file_ftype.
428 2014-10-25 Doug Evans <xdje42@gmail.com>
430 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
432 2014-10-25 Doug Evans <xdje42@gmail.com>
434 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
435 of local var child_die.
437 2014-10-24 Don Breazeal <donb@codesourcery.com>
439 * infrun.c (follow_fork_inferior): Update fork message printing
440 to use target_terminal_ours_for_output instead of
441 target_terminal_ours, to use _() for all format strings, to print
442 "vfork" instead of "fork" for vforks, and to add a detach message.
443 (handle_vfork_child_exec_or_exit): Update message printing to use
444 target_terminal_ours_for_output instead of target_terminal_ours, to
445 use _() for all format strings, and to fix some formatting.
447 2014-10-24 Pedro Alves <palves@redhat.com>
449 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
450 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
451 * config/vax/vax.mh: Delete.
452 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
453 obsolete configurations section.
454 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
455 * vax-nat.c: Delete file.
457 2014-10-24 Pedro Alves <palves@redhat.com>
459 * NEWS (Removed targets): Add OS/arch column.
461 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
463 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
464 on the arg type of a constructor only if it is of reference type.
466 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
468 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
469 accessors and constants from nios2 opcodes update.
470 (nios2_get_next_pc): Likewise.
472 2014-10-19 Doug Evans <xdje42@gmail.com>
474 * gdbthread.h (set_running): Fix comment.
475 (set_executing, finish_thread_state): Fix comment.
477 2014-10-18 Doug Evans <xdje42@gmail.com>
479 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
481 2014-10-17 Doug Evans <dje@google.com>
483 * NEWS: Mention new event gdb.clear_objfiles.
484 * python/py-event.h (emit_clear_objfiles_event): Clear
485 * python/py-events.h (events_object): New member clear_objfiles.
486 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
488 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
489 emit clear_objfiles event.
490 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
492 (emit_clear_objfiles_event): New function.
493 (clear_objfiles): New event.
494 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
496 * python/python.c (_initialize_python): Call
497 gdbpy_initialize_clear_objfiles_event.
499 2014-10-17 Doug Evans <dje@google.com>
501 * NEWS: Mention new gdb.Objfile.progspace attribute.
502 * python/py-objfile.c (objfpy_get_progspace): New function.
503 (objfile_getset): New entry for "progspace".
505 2014-10-17 Pedro Alves <palves@redhat.com>
508 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
509 returns a copy of the input.
510 (run_command_1, continue_command, step_1, jump_command)
511 (signal_command, until_command, advance_command, finish_command)
512 (attach_command): Adjust and install a cleanup to free the
515 2014-10-17 Pedro Alves <palves@redhat.com>
518 * infcmd.c (continue_1): If continuing all threads in the
519 foreground, make sure the inferior's terminal settings are put in
522 2014-10-17 Pedro Alves <palves@redhat.com>
525 * annotate.c (annotate_breakpoints_invalid): Use
526 target_terminal_our_for_output instead of target_terminal_ours.
527 Give back the terminal to the target.
528 (annotate_frames_invalid): Likewise.
530 2014-10-17 Pedro Alves <palves@redhat.com>
532 * target.c (enum terminal_state): New enum.
533 (terminal_state): New global.
534 (target_terminal_init): New function.
535 (target_terminal_inferior): Skip if inferior already owns the
537 (target_terminal_ours, target_terminal_ours_for_output): New
539 * target.h (target_terminal_init): Convert to function prototype.
540 (target_terminal_ours_for_output): Convert to function prototype
542 (target_terminal_ours): Convert to function prototype and tweak
544 * windows-nat.c (do_initial_windows_stuff): Call
545 target_terminal_init instead of child_terminal_init_with_pgrp.
547 2014-10-17 Pedro Alves <palves@redhat.com>
549 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
550 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
551 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
553 * NEWS: Mention that support for alpha*-*-osf* has been removed.
554 * ada-lang.h [__alpha__ && __osf__]
555 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
556 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
557 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
559 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
561 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
562 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
563 * configure: Regenerate.
564 * configure.ac: Remove references to osf.
565 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
566 section. Remove all other references to osf.
567 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
568 Remove all other references to osf.
569 * dec-thread.c: Delete file.
570 * defs.h (GDB_OSABI_OSF1): Delete.
571 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
573 * osabi.c (gdb_osabi_names): Delete "OSF/1".
574 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
576 (unconditionally_kill_inferior)
577 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
578 * solib-osf.c: Delete file.
580 2014-10-17 Pedro Alves <palves@redhat.com>
582 * remote.c (clear_threads_listing_context): Move higher up, out of
583 the HAVE_LIBEXPAT guard.
585 2014-10-16 Tristan Gingold <gingold@adacore.com>
587 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
588 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
591 2014-10-15 Pedro Alves <palves@redhat.com>
593 * dec-thread.c (dec_thread_count_gdb_threads)
594 (dec_thread_add_gdb_thread): Delete.
595 (dec_thread_update_thread_list): Delete.
596 (dec_thread_find_new_threads): Rename to ...
597 (dec_thread_update_thread_list): ... this. Delete GDB-size
598 threads that are no longer found in dec_thread_list.
599 (resync_thread_list): Delete.
600 (dec_thread_wait): Call dec_thread_update_thread_list instead of
603 2014-10-15 Pedro Alves <palves@redhat.com>
605 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
606 * remote.c (remote_update_thread_list): Skip calling prune_threads
607 if any thread listing method is supported, and instead walk over
608 the set of remote threads listed, deleting those that are not
609 found in GDB's thread list.
611 2014-10-15 Pedro Alves <palves@redhat.com>
613 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
614 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
615 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
616 (bsd_uthread_target): Adjust.
617 * corelow.c (core_open): Adjust.
618 * dec-thread.c (dec_thread_find_new_threads): Update comment.
619 (dec_thread_update_thread_list): New function.
620 (init_dec_thread_ops): Adjust.
621 * gdbthread.h (prune_threads): New declaration.
622 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
623 (thread_db_update_thread_list): ... this. Call prune_threads.
624 (init_thread_db_ops): Adjust.
625 * nto-procfs.c (procfs_find_new_threads): Rename to ...
626 (procfs_update_thread_list): ... this. Call prune_threads.
627 (procfs_attach, procfs_create_inferior, init_procfs_targets):
629 * obsd-nat.c (obsd_find_new_threads): Rename to ...
630 (obsd_update_thread_list): ... this. Call prune_threads.
631 (obsd_add_target): Adjust.
632 * procfs.c (procfs_target): Adjust.
633 (procfs_notice_thread): Update comment.
634 (procfs_find_new_threads): Rename to ...
635 (procfs_update_thread_list): ... this. Call prune_threads.
636 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
638 (ravenscar_wait): Adjust.
639 (ravenscar_find_new_threads): Rename to ...
640 (ravenscar_update_thread_list): ... this. Call prune_threads.
641 (init_ravenscar_thread_ops): Adjust.
642 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
643 (record_btrace_update_thread_list): ... this. Adjust comment.
644 (init_record_btrace_ops): Adjust.
645 * remote.c (remote_threads_info): Rename to ...
646 (remote_update_thread_list): ... this. Call prune_threads.
647 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
649 * sol-thread.c (check_for_thread_db): Adjust.
650 (sol_find_new_threads_callback): Rename to ...
651 (sol_update_thread_list_callback): ... this.
652 (sol_find_new_threads): Rename to ...
653 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
654 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
655 * target-delegates.c: Regenerate.
656 * target.c (target_find_new_threads): Rename to ...
657 (target_update_thread_list): ... this.
658 * target.h (struct target_ops): Rename to_find_new_threads field
659 to to_update_thread_list.
660 (target_find_new_threads): Rename to ...
661 (target_update_thread_list): ... this.
662 * thread.c (prune_threads): Make extern.
663 (update_thread_list): Adjust.
665 2014-10-15 Pedro Alves <palves@redhat.com>
667 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
668 Add describing comment. Return -1 if the qL packet is not
670 (struct thread_item, thread_item_t): Move higher up in
671 the file. Add comments.
672 (struct threads_parsing_context): Move higher up in
673 the file, add comments, and remote to ...
674 (struct threads_listing_context): ... this.
675 (remote_newthread_step): Don't add the thread to GDB's thread
676 database here. Instead push it to the thread_listing_context
678 (remote_find_new_threads): Rename to ...
679 (remote_get_threads_with_ql): ... this. Add target_ops and
680 targets_listing_context parameters. Pass down context.
681 (start_thread): Adjust.
682 (clear_threads_parsing_context): Rename to ...
683 (clear_threads_listing_context): ... this.
684 (remote_get_threads_with_qxfer): New, with parts salvaged from old
686 (remote_get_threads_with_qthreadinfo): Ditto.
687 (remote_threads_info): Reimplement.
689 2014-10-15 Pedro Alves <palves@redhat.com>
691 * infrun.c (resume): Don't force displaced-stepping for all
692 single-steps on software single-stepping archs.
694 2014-10-15 Pedro Alves <palves@redhat.com>
696 * breakpoint.c (single_step_breakpoints): Delete global.
697 (insert_single_step_breakpoint): Adjust to store the breakpoint
698 pointer in the current thread.
699 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
700 (cancel_single_step_breakpoints): Delete functions.
701 (breakpoint_has_location_inserted_here): Make extern.
702 (single_step_breakpoint_inserted_here_p): Adjust to walk the
704 * breakpoint.h (breakpoint_has_location_inserted_here): New
706 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
707 (cancel_single_step_breakpoints): Remove declarations.
708 * gdbthread.h (struct thread_control_state)
709 <single_step_breakpoints>: New field.
710 (delete_single_step_breakpoints)
711 (thread_has_single_step_breakpoints_set)
712 (thread_has_single_step_breakpoint_here): New declarations.
713 * infrun.c (follow_exec): Also clear the single-step breakpoints.
714 (singlestep_breakpoints_inserted_p, singlestep_ptid)
715 (singlestep_pc): Delete globals.
716 (infrun_thread_ptid_changed): Remove references to removed
718 (resume_cleanups): Delete the current thread's single-step
720 (maybe_software_singlestep): Remove references to removed globals.
721 (resume): Adjust to use thread_has_single_step_breakpoints_set and
722 delete_single_step_breakpoints.
723 (init_wait_for_inferior): Remove references to removed globals.
724 (delete_thread_infrun_breakpoints): Delete the thread's
725 single-step breakpoints too.
726 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
727 single-step breakpoints here.
728 (delete_stopped_threads_single_step_breakpoints): New function.
729 (adjust_pc_after_break): Adjust to use
730 thread_has_single_step_breakpoints_set.
731 (handle_inferior_event): Remove references to removed globals.
732 Use delete_stopped_threads_single_step_breakpoints.
733 (handle_signal_stop): Adjust to per-thread single-step
734 breakpoints. Swap test order to do cheaper tests first.
735 (switch_back_to_stepped_thread): Extend debug output. Remove
736 references to removed globals.
737 * record-full.c (record_full_wait_1): Adjust to per-thread
738 single-step breakpoints.
739 * thread.c (delete_single_step_breakpoints)
740 (thread_has_single_step_breakpoints_set)
741 (thread_has_single_step_breakpoint_here): New functions.
742 (clear_thread_inferior_resources): Also delete the thread's
743 single-step breakpoints.
745 2014-10-15 Pedro Alves <palves@redhat.com>
747 * thread.c (delete_thread_breakpoint): New function.
748 (delete_step_resume_breakpoint)
749 (delete_exception_resume_breakpoint): Use it.
750 (delete_at_next_stop): New function.
751 (clear_thread_inferior_resources): Use delete_at_next_stop.
753 2014-10-15 Pedro Alves <palves@redhat.com>
755 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
756 (breakpoint_inserted_here_p): ... here. Remove special case for
757 software single-step breakpoints.
758 (find_non_raw_software_breakpoint_inserted_here): Inline ...
759 (software_breakpoint_inserted_here_p): ... here. Remove special
760 case for software single-step breakpoints.
761 (bp_target_info_copy_insertion_state)
762 (deprecated_insert_raw_breakpoint)
763 (deprecated_remove_raw_breakpoint): Delete functions.
764 * breakpoint.h (deprecated_insert_raw_breakpoint)
765 (deprecated_remove_raw_breakpoint): Remove declarations.
767 2014-10-15 Pedro Alves <palves@redhat.com>
770 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
771 Delete array globals.
772 (single_step_breakpoints): New global.
773 (breakpoint_xfer_memory): Remove special handling for single-step
775 (update_breakpoints_after_exec): Delete bp_single_step
777 (detach_breakpoints): Remove special handling for single-step
779 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
780 (bpstat_stop_status): Add comment.
781 (bpstat_what, bptype_string, print_one_breakpoint_location)
782 (adjust_breakpoint_address, init_bp_location): Handle
784 (new_single_step_breakpoint): New function.
785 (set_momentary_breakpoint, bkpt_remove_location): Remove special
786 handling for single-step breakpoints.
787 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
788 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
790 (detach_single_step_breakpoints, find_single_step_breakpoint):
792 (breakpoint_has_location_inserted_here): New function.
793 (single_step_breakpoint_inserted_here_p): Rewrite.
794 * breakpoint.h: Remove FIXME.
795 (enum bptype) <bp_single_step>: New enum value.
796 (insert_single_step_breakpoint): Update comment.
797 * infrun.c (resume_cleanups)
798 (delete_step_thread_step_resume_breakpoint): Remove single-step
800 (fetch_inferior_event): Install a cleanup that removes infrun
802 (switch_back_to_stepped_thread) <expect thread advanced also>:
803 Clear step-over info.
805 2014-10-15 Pedro Alves <palves@redhat.com>
807 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
808 (delete_thread_infrun_breakpoints): New function, with parts
809 salvaged from delete_step_resume_breakpoint_callback.
810 (delete_step_thread_step_resume_breakpoint): Delete.
811 (for_each_just_stopped_thread_callback_func): New typedef.
812 (for_each_just_stopped_thread): New function.
813 (delete_just_stopped_threads_infrun_breakpoints): New function.
814 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
815 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
817 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
819 2014-10-15 Pedro Alves <palves@redhat.com>
821 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
822 trying to step past a non-steppable watchpoint.
823 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
825 * infrun.c (struct step_over_info): Add new field
826 'nonsteppable_watchpoint_p' and adjust comments.
827 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
829 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
830 (stepping_past_nonsteppable_watchpoint): New function.
831 (step_over_info_valid_p): Also return true if stepping past a
832 nonsteppable watchpoint.
833 (proceed): Adjust call to set_step_over_info. Remove reference to
835 (init_wait_for_inferior): Remove reference to init_infwait_state.
836 (waiton_ptid): Delete global.
837 (struct execution_control_state)
838 <stepped_after_stopped_by_watchpoint>: Delete field.
839 (wait_for_inferior, fetch_inferior_event): Always pass
840 minus_one_ptid to target_wait.
841 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
843 (init_infwait_state): Delete function.
844 (handle_inferior_event): Remove infwait_state handling.
845 (handle_signal_stop) <watchpoints handling>: Adjust after
846 stepped_after_stopped_by_watchpoint removal. Don't remove
847 breakpoints here nor set infwait_state. Set the thread's
848 stepping_over_watchpoint flag, and call keep_going instead.
849 (keep_going): Handle stepping_over_watchpoint. Adjust
850 set_step_over_info calls.
851 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
854 2014-10-15 Pedro Alves <palves@redhat.com>
856 * infrun.c (step_over_info_valid_p): New function.
857 (resume): Use step_over_info_valid_p instead of checking the
858 threads's trap_expected flag.
860 2014-10-15 Doug Evans <dje@google.com>
861 Walfred Tedeschi <walfred.tedeschi@intel.com>
864 * python/lib/gdb/__init__.py (packages): Add "printer".
865 * python/lib/gdb/command/bound_registers.py: Moved to ...
866 * python/lib/gdb/printer/bound_registers.py: ... here.
867 Add printer to global set of builtin printers. Rename printer from
868 "bound" to "mpx_bound128".
869 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
870 registered as global "builtin" printer.
871 (add_builtin_pretty_printer): New function.
872 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
873 gdb/printer/__init__.py.
875 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
877 * Makefile.in (SFILES): Remove d-support.c.
878 (COMMON_OBS): Remove d-support.o.
879 * d-lang.h (d_parse_symbol): Remove declaration.
880 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
881 * d-support.c: Remove file.
883 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
885 * gdb/infrun.c (process_event_stop_test): Apply
886 gdbarch_addr_bits_remove to longjmp resume address.
888 2014-10-15 Pedro Alves <palves@redhat.com>
890 * regformats/microblaze.dat: Delete file.
892 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
894 * features/Makefile (microblaze-expedite): Replace pc with rpc.
895 * regformats/microblaze-with-stack-protect.dat: Regenerate.
897 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
899 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
902 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
906 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
909 2014-10-14 Joel Brobecker <brobecker@adacore.com>
911 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
912 of the case where the second operand is a pointer.
913 <BINOP_SUB>: Likewise.
915 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
917 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
918 only if it is not NULL.
919 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
920 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
921 (struct probe_ops) <clear_semaphore>: Likewise.
922 * tracepoint.c (start_tracing): Call set_semaphore only if it is
924 (stop_tracing): Likewise, for clear_semaphore.
926 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
928 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
929 using language_c, instead of current_language.
931 2014-10-13 Doug Evans <dje@google.com>
933 * python/py-objfile.c (objfpy_initialize): New function.
934 (objfpy_new, objfile_to_objfile_object): Call it.
935 * python/py-progspace.c (pspy_initialize): New function.
936 (pspy_new, pspace_to_pspace_object): Call it.
938 2014-10-13 Miroslav Franc <mfranc@redhat.com>
939 Jan Kratochvil <jan.kratochvil@redhat.com>
941 Fix "save breakpoints" for "catch" command.
942 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
945 2014-10-12 Miroslav Franc <mfranc@redhat.com>
947 Fix "save breakpoints" for "disable $bpnum" command.
948 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
950 2014-10-10 Pedro Alves <palves@redhat.com>
952 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
953 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
954 (HFILES_NO_SRCDIR): Remove solib-irix.h.
955 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
957 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
958 * configure.ac: Remove references to IRIX.
959 * configure.host: Add *-*-irix* to the obsolete hosts section.
960 Remove all other references to irix.
961 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
964 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
966 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
967 isn't valid, release the tdesc arch data and return NULL.
969 2014-10-10 Pedro Alves <palves@redhat.com>
971 * linux-tdep.c: Include observer.h.
972 (linux_inferior_data): New global.
973 (struct linux_info): New structure.
974 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
975 (get_linux_inferior_data): New functions.
976 (linux_vsyscall_range): Rename to ...
977 (linux_vsyscall_range_raw): ... this.
978 (linux_vsyscall_range): New function; handles caching.
979 (_initialize_linux_tdep): Register linux_inferior_data. Install
980 inferior_exit and inferior_appeared observers.
982 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
983 Pedro Alves <palves@redhat.com>
986 * solib-svr4.c (svr4_read_so_list): Rename to ...
987 (svr4_current_sos_1): ... this and change the function comment.
988 (svr4_current_sos): New function.
990 2014-10-10 Pedro Alves <palves@redhat.com>
992 * arch-utils.c (default_vsyscall_range): New function.
993 * arch-utils.h (default_vsyscall_range): New declaration.
994 * gdbarch.sh (vsyscall_range): New hook.
995 * gdbarch.h, gdbarch.c: Regenerate.
996 * linux-tdep.c (linux_vsyscall_range): New function.
997 (linux_init_abi): Install linux_vsyscall_range as
998 vsyscall_range gdbarch hook.
999 * memrange.c (address_in_mem_range): New function.
1000 * memrange.h (address_in_mem_range): New declaration.
1001 * symfile-mem.c (find_vdso_size): Delete function.
1002 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1004 2014-10-10 Pedro Alves <palves@redhat.com>
1006 * infrun.c (normal_stop): Fix typo in comment.
1008 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1011 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1012 typo when using logical AND to determine instruction type.
1014 2014-10-09 Yao Qi <yao@codesourcery.com>
1016 * infrun.c (handle_signal_stop): Remove local variable
1019 2014-10-08 Stan Shebs <stan@codesourcery.com>
1021 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1023 2014-10-08 Gary Benson <gbenson@redhat.com>
1025 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1027 2014-10-08 Gary Benson <gbenson@redhat.com>
1029 * common/common-defs.h: Include common-exceptions.h.
1030 * exceptions.h: Do not include common-exceptions.h.
1032 2014-10-08 Gary Benson <gbenson@redhat.com>
1034 * common/common-defs.h: Include cleanups.h.
1035 * common/common-exceptions.c: Do not include cleanups.h.
1036 * utils.h: Likewise.
1038 2014-10-08 Gary Benson <gbenson@redhat.com>
1040 * ada-lang.c: Do not include exceptions.h.
1041 * ada-valprint.c: Likewise.
1042 * amd64-tdep.c: Likewise.
1043 * auto-load.c: Likewise.
1044 * block.c: Likewise.
1045 * break-catch-throw.c: Likewise.
1046 * breakpoint.c: Likewise.
1047 * btrace.c: Likewise.
1048 * c-lang.c: Likewise.
1049 * cli/cli-cmds.c: Likewise.
1050 * cli/cli-interp.c: Likewise.
1051 * cli/cli-script.c: Likewise.
1052 * completer.c: Likewise.
1053 * corefile.c: Likewise.
1054 * corelow.c: Likewise.
1055 * cp-abi.c: Likewise.
1056 * cp-support.c: Likewise.
1057 * cp-valprint.c: Likewise.
1058 * darwin-nat.c: Likewise.
1059 * dwarf2-frame-tailcall.c: Likewise.
1060 * dwarf2-frame.c: Likewise.
1061 * dwarf2loc.c: Likewise.
1062 * dwarf2read.c: Likewise.
1064 * event-loop.c: Likewise.
1065 * event-top.c: Likewise.
1066 * f-valprint.c: Likewise.
1067 * frame-unwind.c: Likewise.
1068 * frame.c: Likewise.
1069 * gdbtypes.c: Likewise.
1070 * gnu-v2-abi.c: Likewise.
1071 * gnu-v3-abi.c: Likewise.
1072 * guile/scm-auto-load.c: Likewise.
1073 * guile/scm-breakpoint.c: Likewise.
1074 * guile/scm-cmd.c: Likewise.
1075 * guile/scm-frame.c: Likewise.
1076 * guile/scm-lazy-string.c: Likewise.
1077 * guile/scm-param.c: Likewise.
1078 * guile/scm-symbol.c: Likewise.
1079 * guile/scm-type.c: Likewise.
1080 * hppa-hpux-tdep.c: Likewise.
1081 * i386-tdep.c: Likewise.
1082 * inf-loop.c: Likewise.
1083 * infcall.c: Likewise.
1084 * infcmd.c: Likewise.
1085 * infrun.c: Likewise.
1086 * interps.c: Likewise.
1087 * interps.h: Likewise.
1089 * linespec.c: Likewise.
1090 * linux-nat.c: Likewise.
1091 * linux-thread-db.c: Likewise.
1092 * m32r-rom.c: Likewise.
1094 * memory-map.c: Likewise.
1095 * mi/mi-cmd-break.c: Likewise.
1096 * mi/mi-cmd-stack.c: Likewise.
1097 * mi/mi-interp.c: Likewise.
1098 * mi/mi-main.c: Likewise.
1099 * monitor.c: Likewise.
1100 * nto-procfs.c: Likewise.
1101 * objc-lang.c: Likewise.
1102 * p-valprint.c: Likewise.
1103 * parse.c: Likewise.
1104 * ppc-linux-tdep.c: Likewise.
1105 * printcmd.c: Likewise.
1106 * probe.c: Likewise.
1107 * python/py-auto-load.c: Likewise.
1108 * python/py-breakpoint.c: Likewise.
1109 * python/py-cmd.c: Likewise.
1110 * python/py-finishbreakpoint.c: Likewise.
1111 * python/py-frame.c: Likewise.
1112 * python/py-framefilter.c: Likewise.
1113 * python/py-function.c: Likewise.
1114 * python/py-gdb-readline.c: Likewise.
1115 * python/py-inferior.c: Likewise.
1116 * python/py-infthread.c: Likewise.
1117 * python/py-lazy-string.c: Likewise.
1118 * python/py-linetable.c: Likewise.
1119 * python/py-param.c: Likewise.
1120 * python/py-prettyprint.c: Likewise.
1121 * python/py-symbol.c: Likewise.
1122 * python/py-type.c: Likewise.
1123 * python/py-value.c: Likewise.
1124 * python/python-internal.h: Likewise.
1125 * python/python.c: Likewise.
1126 * record-btrace.c: Likewise.
1127 * record-full.c: Likewise.
1128 * regcache.c: Likewise.
1129 * remote-fileio.c: Likewise.
1130 * remote-mips.c: Likewise.
1131 * remote.c: Likewise.
1132 * rs6000-aix-tdep.c: Likewise.
1133 * rs6000-nat.c: Likewise.
1135 * solib-darwin.c: Likewise.
1136 * solib-dsbt.c: Likewise.
1137 * solib-frv.c: Likewise.
1138 * solib-ia64-hpux.c: Likewise.
1139 * solib-spu.c: Likewise.
1140 * solib-svr4.c: Likewise.
1141 * solib.c: Likewise.
1142 * spu-tdep.c: Likewise.
1143 * stack.c: Likewise.
1144 * stap-probe.c: Likewise.
1145 * symfile-mem.c: Likewise.
1146 * symmisc.c: Likewise.
1147 * target.c: Likewise.
1148 * thread.c: Likewise.
1150 * tracepoint.c: Likewise.
1151 * tui/tui-interp.c: Likewise.
1152 * typeprint.c: Likewise.
1153 * utils.c: Likewise.
1154 * valarith.c: Likewise.
1155 * valops.c: Likewise.
1156 * valprint.c: Likewise.
1157 * value.c: Likewise.
1158 * varobj.c: Likewise.
1159 * windows-nat.c: Likewise.
1160 * xml-support.c: Likewise.
1162 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1164 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1166 (extended_mips16_next_pc): Update accordingly.
1168 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1170 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1172 (micromips_instruction_is_compact_branch): Likewise.
1173 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1174 or a compact jump, reaching a jump delay slot, or seeing a
1175 second non-prologue instruction.
1176 (micromips_scan_prologue): Also terminate scanning upon seeing a
1177 compact branch or jump, or reaching a branch or jump delay slot.
1178 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1179 or jump delay slot, or seeing a second non-prologue instruction.
1180 (mips32_instruction_has_delay_slot): Retain instruction
1181 examination code only, update arguments accordingly and move
1182 instruction fetch pieces to...
1183 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1184 (micromips_instruction_has_delay_slot): Likewise and to...
1185 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1186 (mips16_instruction_has_delay_slot): Likewise and to...
1187 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1188 (mips_single_step_through_delay): Update accordingly.
1189 (mips_adjust_breakpoint_address): Likewise.
1191 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1193 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1194 !mustbe32 also return 1 for 32-bit instructions.
1195 (mips16_instruction_has_delay_slot): Likewise. Add an
1196 explanatory comment.
1198 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1200 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1203 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1205 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1207 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1208 for the breakpoint's address. Don't preinitialize `placed_size'.
1209 (insert_bp_location): Set `reqstd_address' rather than
1211 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1212 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1214 (bkpt_remove_location): Likewise.
1215 (deprecated_insert_raw_breakpoint): Likewise.
1216 (deprecated_remove_raw_breakpoint): Likewise.
1217 (find_single_step_breakpoint): Likewise.
1218 * mem-break.c (default_memory_insert_breakpoint): Use
1219 `reqstd_address' for the breakpoint's address. Don't set
1220 `placed_address' or `placed_size' if breakpoint contents couldn't
1221 have been determined.
1222 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1223 the breakpoint's address.
1224 (remote_insert_hw_breakpoint): Likewise. Don't set
1225 `placed_address' or `placed_size' if breakpoint couldn't have been
1227 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1228 `reqstd_address' for the breakpoint's address.
1229 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1230 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1231 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1232 * microblaze-linux-tdep.c
1233 (microblaze_linux_memory_remove_breakpoint): Likewise.
1234 * monitor.c (monitor_insert_breakpoint): Likewise.
1235 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1236 (procfs_insert_hw_breakpoint): Likewise.
1237 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1238 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1239 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1240 * remote-mips.c (mips_insert_breakpoint): Likewise.
1241 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1243 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1245 * valops.c (value_assign): Check for bit field assignments
1246 before calling architecture-specific register value
1247 conversion functions.
1249 2014-10-03 Pierre Muller <muller@sourceware.org>
1251 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1253 2014-10-02 Pedro Alves <palves@redhat.com>
1255 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1256 threads_are_executing.
1257 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1259 * gdbthread.h (threads_are_executing): Declare.
1260 (handle_signal_stop) <random signals>: Don't print about the
1261 signal here if stopping.
1262 (end_stepping_range): Don't notify observers here.
1263 (normal_stop): Update the thread list. If stopped by a random
1264 signal or a stepping range ended, notify observers.
1265 * thread.c (threads_executing): New global.
1266 (init_thread_list): Clear 'threads_executing'.
1267 (set_executing): Set or clear 'threads_executing'.
1268 (threads_are_executing): New function.
1269 (update_threads_executing): New function.
1270 (update_thread_list): Use it.
1272 2014-10-02 Pedro Alves <palves@redhat.com>
1274 PR breakpoints/17431
1275 * breakpoint.c (update_breakpoints_after_exec): Don't create
1276 overlay, longjmp, std terminate nor exception breakpoints here.
1278 2014-10-02 Pedro Alves <palves@redhat.com>
1280 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1282 * inferior.c (find_inferior_for_program_space): Give preference to
1283 the current inferior.
1284 * inferior.h (find_inferior_for_program_space): Update comment.
1285 * progspace.c (switch_to_program_space_and_thread): Prefer the
1286 current inferior if it's bound to the program space requested. If
1287 the inferior found doesn't have a PID yet, don't bother looking up
1289 * progspace.h (switch_to_program_space_and_thread): Adjust
1291 * thread.c (any_thread_of_process, any_live_thread_of_process):
1292 Give preference to the current thread.
1294 2014-10-01 Pedro Alves <palves@redhat.com>
1296 * breakpoint.c (insert_bp_location): Error out if inserting a
1297 software breakpoint at a read-only address.
1298 * target.c (memory_xfer_check_region): New function, factored out
1300 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1302 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1303 against the memory region attributes.
1305 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1307 * NEWS: Announce new exit-code field in -list-thread-groups
1309 * inferior.c (exit_inferior_1): Don't clear exit code.
1310 (inferior_appeared): Clear exit code.
1311 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1314 2014-10-01 Pedro Alves <palves@redhat.com>
1316 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1317 GENERATED" along with emacs/vi read-only markers.
1318 * regformats/aarch64.dat: Regenerate.
1319 * regformats/arm-with-iwmmxt.dat: Regenerate.
1320 * regformats/arm-with-neon.dat: Regenerate.
1321 * regformats/arm-with-vfpv2.dat: Regenerate.
1322 * regformats/arm-with-vfpv3.dat: Regenerate.
1323 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1324 * regformats/i386/amd64-avx.dat: Regenerate.
1325 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1326 * regformats/i386/amd64-avx512.dat: Regenerate.
1327 * regformats/i386/amd64-linux.dat: Regenerate.
1328 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1329 * regformats/i386/amd64-mpx.dat: Regenerate.
1330 * regformats/i386/amd64.dat: Regenerate.
1331 * regformats/i386/i386-avx-linux.dat: Regenerate.
1332 * regformats/i386/i386-avx.dat: Regenerate.
1333 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1334 * regformats/i386/i386-avx512.dat: Regenerate.
1335 * regformats/i386/i386-linux.dat: Regenerate.
1336 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1337 * regformats/i386/i386-mmx.dat: Regenerate.
1338 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1339 * regformats/i386/i386-mpx.dat: Regenerate.
1340 * regformats/i386/i386.dat: Regenerate.
1341 * regformats/i386/x32-avx-linux.dat: Regenerate.
1342 * regformats/i386/x32-avx.dat: Regenerate.
1343 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1344 * regformats/i386/x32-avx512.dat: Regenerate.
1345 * regformats/i386/x32-linux.dat: Regenerate.
1346 * regformats/i386/x32.dat: Regenerate.
1347 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1348 * regformats/mips-dsp-linux.dat: Regenerate.
1349 * regformats/mips-linux.dat: Regenerate.
1350 * regformats/mips64-dsp-linux.dat: Regenerate.
1351 * regformats/mips64-linux.dat: Regenerate.
1352 * regformats/nios2-linux.dat: Regenerate.
1353 * regformats/rs6000/powerpc-32.dat: Regenerate.
1354 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1355 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1356 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1357 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1358 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1359 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1360 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1361 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1362 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1363 * regformats/s390-linux32.dat: Regenerate.
1364 * regformats/s390-linux32v1.dat: Regenerate.
1365 * regformats/s390-linux32v2.dat: Regenerate.
1366 * regformats/s390-linux64.dat: Regenerate.
1367 * regformats/s390-linux64v1.dat: Regenerate.
1368 * regformats/s390-linux64v2.dat: Regenerate.
1369 * regformats/s390-te-linux64.dat: Regenerate.
1370 * regformats/s390x-linux64.dat: Regenerate.
1371 * regformats/s390x-linux64v1.dat: Regenerate.
1372 * regformats/s390x-linux64v2.dat: Regenerate.
1373 * regformats/s390x-te-linux64.dat: Regenerate.
1374 * regformats/tic6x-c62x-linux.dat: Regenerate.
1375 * regformats/tic6x-c62x.dat: Regenerate.
1376 * regformats/tic6x-c64x-linux.dat: Regenerate.
1377 * regformats/tic6x-c64x.dat: Regenerate.
1378 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1379 * regformats/tic6x-c64xp.dat: Regenerate.
1381 2014-10-01 Pedro Alves <palves@redhat.com>
1383 * features/Makefile: Update comments.
1384 (XMLTOC): List all xml files we build C files from.
1385 (clean-cfiles): New rule.
1387 2014-10-01 Pedro Alves <palves@redhat.com>
1389 * features/i386/amd64-avx512-linux.c: Regenerate.
1390 * features/i386/amd64-avx512.c: Regenerate.
1391 * features/i386/x32-avx512-linux.c: Regenerate.
1392 * features/i386/x32-avx512.c: Regenerate.
1394 2014-10-01 Pedro Alves <palves@redhat.com>
1396 * features/Makefile (WHICH): Remove arm-with-m,
1397 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1399 2014-10-01 Pedro Alves <palves@redhat.com>
1401 * features/Makefile (clean): New rule.
1403 2014-10-01 Pedro Alves <palves@redhat.com>
1405 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1406 (zmm14h): Add missing end quotes.
1408 2014-10-01 Pedro Alves <palves@redhat.com>
1410 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1411 * features/aarch64.c: Regenerate.
1413 2014-09-30 Don Breazeal <donb@codesourcery.com>
1415 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1416 code so as to work with follow_fork_inferior.
1417 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1418 (inf_ttrace_create_inferior): Remove reference to
1419 inf_ttrace_vfork_ppid.
1420 (inf_ttrace_attach): Ditto.
1421 (inf_ttrace_detach): Ditto.
1422 (inf_ttrace_kill): Use current_inferior instead of
1423 inf_ttrace_vfork_ppid.
1424 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1425 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1426 inferior away from the parent.
1427 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1429 (follow_fork_inferior): New function.
1430 (follow_inferior_reset_breakpoints): Make function static.
1431 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1432 * linux-nat.c (linux_child_follow_fork): Move target-independent
1433 code to infrun.c:follow_fork_inferior.
1435 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1437 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1438 * gdbarch.c: Regenerate.
1439 * gdbarch.h: Likewise.
1440 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1441 gdbarch method 'regset_from_core_section'.
1442 (get_core_register_section): Remove handling for the case that
1443 regset == NULL and regset_from_core_section is defined.
1444 (get_core_registers): Drop check for deleted method.
1445 * procfs.c (procfs_do_thread_registers): Adjust comment.
1447 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1449 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1450 (linux_nat_make_corefile_notes): Remove.
1451 (linux_target_install_ops): Do not set target method
1452 'make_corefile_notes'.
1453 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1455 (linux_corefile_thread_callback): Instead of args->collect, call
1456 linux_collect_thread_registers.
1457 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1458 NULL unless there is a regset iterator.
1459 (linux_make_corefile_notes_1): Remove.
1460 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1461 by linux_make_corefile_notes.
1462 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1464 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1466 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1467 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1469 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1471 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1473 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1474 (xtensa_iterate_over_regset_sections): New.
1475 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1477 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * vax-tdep.c (vax_regset_from_core_section): Remove.
1480 (vax_iterate_over_regset_sections): New.
1481 (vax_gdbarch_init): Adjust gdbarch initialization.
1483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1485 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1486 (tilegx_regset_from_core_section): Remove.
1487 (tilegx_iterate_over_regset_sections): New.
1488 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1490 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1492 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1493 (sparc_iterate_over_regset_sections): New.
1494 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1495 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1497 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1498 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1499 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1500 target method 'make_corefile_notes'.
1502 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1504 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1505 'sizeof_gregset' and 'sizeof_fpregset'.
1506 * sh-tdep.c (sh_regset_from_core_section): Remove.
1507 (sh_iterate_over_regset_sections): New.
1508 (sh_gdbarch_init): Adjust gdbarch initialization.
1509 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1511 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1514 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1516 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1517 (score7_linux_iterate_over_regset_sections): New.
1518 (score_gdbarch_init): Adjust gdbarch initialization.
1520 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1522 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1524 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1525 method 'make_corefile_notes'.
1526 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1527 (ppcfbsd_regset_from_core_section): Remove.
1528 (ppcfbsd_iterate_over_regset_sections): New.
1529 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1531 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1532 (ppcnbsd_iterate_over_regset_sections): New.
1533 (ppcnbsd_init_abi): Adjust.
1534 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1535 (ppcobsd_iterate_over_regset_sections): New.
1536 (ppcobsd_init_abi): Adjust.
1537 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1538 (rs6000_aix_iterate_over_regset_sections): New.
1539 (rs6000_aix_init_osabi): Adjust.
1541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1543 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1544 (nios2_regset_from_core_section): Remove.
1545 (nios2_iterate_over_regset_sections): New.
1546 (nios2_linux_init_abi): Adjust gdbarch initialization.
1548 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1551 (am33_iterate_over_regset_sections): New.
1552 (am33_linux_init_osabi): Adjust gdbarch initialization.
1554 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1556 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1557 (mips_linux_iterate_over_regset_sections): New.
1558 (mips_linux_init_abi): Adjust gdbarch initialization.
1559 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1560 (mips64obsd_iterate_over_regset_sections): New.
1561 (mips64obsd_init_abi): Adjust.
1562 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1563 (mipsnbsd_iterate_over_regset_sections): New.
1564 (mipsnbsd_init_abi): Adjust.
1566 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1568 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1569 (m88k_iterate_over_regset_sections): New.
1570 (m88k_gdbarch_init): Adjust gdbarch initialization.
1572 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1574 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1575 (ia64_linux_iterate_over_regset_sections): New.
1576 (ia64_linux_init_abi): Adjust gdbarch initialization.
1578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1580 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1581 (m68kbsd_iterate_over_regset_sections): New.
1582 (m68kbsd_init_abi): Adjust gdbarch initialization.
1583 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1584 (m68k_linux_iterate_over_regset_sections): New.
1585 (m68k_linux_init_abi): Adjust gdbarch initialization.
1587 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1589 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1590 (m32r_linux_regset_from_core_section): Remove.
1591 (m32r_linux_iterate_over_regset_sections): New.
1592 (m32r_linux_init_abi): Adjust gdbarch initialization.
1594 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1596 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1597 (amd64obsd_iterate_over_regset_sections): New.
1598 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1599 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1601 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1602 regset_from_core_section initialization.
1603 * i386-tdep.c (i386_regset_from_core_section): Remove.
1604 (i386_iterate_over_regset_sections): New.
1605 (i386_gdbarch_init): Adjust gdbarch initialization.
1606 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1607 (i386_iterate_over_regset_sections): New prototype.
1608 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1610 (i386obsd_aout_iterate_over_regset_sections): New.
1611 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1612 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1614 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1615 (amd64fbsd_init_abi): Call fbsd_init_abi.
1616 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1617 (i386fbsd4_init_abi): Call fbsd_init_abi.
1618 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1619 target method 'make_corefile_notes'.
1620 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1622 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1624 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1625 (hppa_hpux_iterate_over_regset_sections): New.
1626 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1627 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1628 (hppa_linux_iterate_over_regset_sections): New.
1629 (hppa_linux_init_abi): Adjust.
1630 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1631 (hppanbsd_iterate_over_regset_sections): New.
1632 (hppanbsd_init_abi): Adjust.
1633 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1634 (hppaobsd_iterate_over_regset_sections): New.
1635 (hppaobsd_init_abi): Adjust.
1637 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1639 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1640 (frv_linux_iterate_over_regset_sections): New.
1641 (frv_linux_init_abi): Adjust gdbarch initialization.
1643 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1645 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1646 (armbsd_iterate_over_regset_sections): New prototype.
1647 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1648 (armbsd_iterate_over_regset_sections): New.
1649 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1652 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1654 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1655 (alpha_linux_iterate_over_regset_sections): New.
1656 (alpha_linux_init_abi): Adjust gdbarch initialization.
1657 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1659 (alphanbsd_iterate_over_regset_sections): New prototype.
1661 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1663 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1665 (aarch64_linux_iterate_over_regset_sections): New.
1666 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1668 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1670 * fbsd-tdep.c: New file.
1671 * fbsd-tdep.h: New file.
1672 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1673 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1674 (ALLDEPFILES): Add fbsd-tdep.c.
1676 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1678 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1680 * gdbarch.h: Regenerate.
1681 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1683 (get_core_register_section): Add parameter 'regset' and use it, if
1684 set. Add parameter 'min_size' and verify the bfd section size
1686 (get_core_registers_cb): Add parameter 'regset' and pass it to
1687 get_core_register section. For the "standard" register sections
1688 ".reg" and ".reg2", set an appropriate default for human_name.
1689 (get_core_registers): Don't abort when the gdbarch has an iterator
1690 but no regset_from_core_section. Add NULL/0 for parameters
1691 'regset'/'min_size' in calls to get_core_register_section.
1692 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1693 'regset' and use it instead of calling the
1694 regset_from_core_section gdbarch method.
1695 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1696 * i386-tdep.c (i386_supply_xstateregset)
1697 (i386_collect_xstateregset, i386_xstateregset): Moved to
1699 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1701 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1702 core file support only if the regset iterator hasn't been set.
1703 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1704 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1705 Moved from i386-tdep.c and renamed to *_linux*.
1706 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1707 each callback invocation. Allow any .reg-xstate size when reading
1709 * amd64-tdep.c (amd64_supply_xstateregset)
1710 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1712 (amd64_regset_from_core_section): Remove.
1713 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1714 install an amd64-specific regset_from_core_section gdbarch method.
1715 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1716 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1717 Moved from amd64-tdep.c and renamed to *_linux*.
1718 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1719 to each callback invocation. Allow any .reg-xstate size when
1720 reading from a core file.
1721 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1722 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1723 each callback invocation.
1724 (arm_linux_init_abi): No longer set the regset_from_core_section
1726 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1727 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1728 each callback invocation.
1729 (ppc_linux_init_abi): No longer set the regset_from_core_section
1731 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1732 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1733 (s390_regset_from_core_section): Remove.
1734 (s390_iterate_over_regset_sections): Add regset parameter to each
1735 callback invocation.
1736 (s390_gdbarch_init): No longer set the regset_from_core_section
1737 gdbarch method. Drop initialization of deleted tdep fields.
1739 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1741 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1742 (amd64_linux_iterate_over_regset_sections): New.
1743 (amd64_linux_init_abi_common): Don't install the regset section
1744 list, but the new iterator in gdbarch.
1745 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1746 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1747 (arm_linux_iterate_over_regset_sections): ...here. New function.
1748 (arm_linux_init_abi): Set iterator instead of section list.
1749 * corelow.c (get_core_registers_cb): New function, logic moved
1751 (get_core_registers): ...loop body here. Use new iterator method
1752 instead of walking through the regset section list.
1753 * gdbarch.sh: Remove 'core_regset_sections'. New method
1754 'iterate_over_regset_sections'. New typedef
1755 'iterate_over_regset_sections_cb'.
1756 * gdbarch.c: Regenerate.
1757 * gdbarch.h: Likewise.
1758 * i386-linux-tdep.c (i386_linux_regset_sections)
1759 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1761 (i386_linux_iterate_over_regset_sections): New.
1762 (i386_linux_init_abi): Don't choose a regset section list, but
1763 install new iterator in gdbarch.
1764 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1765 (linux_collect_regset_section_cb): New function, logic moved
1767 (linux_collect_thread_registers): ...loop body here. Use iterator
1768 method instead of walking through list.
1769 (linux_make_corefile_notes_1): Check for presence of iterator
1770 method instead of regset section list.
1771 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1772 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1773 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1774 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1775 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1776 (ppc_linux_init_abi): Don't choose from above regset section
1777 lists, but install new iterator in gdbarch.
1778 * regset.h (struct core_regset_section): Remove.
1779 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1780 have_linux_v1, have_linux_v2, and have_tdb.
1781 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1782 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1783 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1784 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1785 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1786 (s390_iterate_over_regset_sections): ...here. New function. Use
1788 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1789 regset section lists, but install new iterator.
1791 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1793 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1795 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1797 * progspace.c (print_program_space): Don't prune program spaces
1798 before printing them.
1800 2014-09-25 Pedro Alves <palves@redhat.com>
1802 * infrun.c (user_visible_resume_ptid): Don't check
1803 singlestep_breakpoints_inserted_p.
1805 2014-09-25 Pedro Alves <palves@redhat.com>
1807 * breakpoint.c (should_be_inserted): Add debug output.
1809 2014-09-25 Pedro Alves <palves@redhat.com>
1811 * infrun.c (stepping_past_instruction_at)
1812 (clear_exit_convenience_vars): Point at infrun.h instead of
1814 (handle_signal_stop): Fix typo.
1816 2014-09-24 Yao Qi <yao@codesourcery.com>
1818 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1821 2014-09-22 Gary Benson <gbenson@redhat.com>
1823 * target.c (target_stop): Updated comment.
1825 2014-09-22 Gary Benson <gbenson@redhat.com>
1827 * target/target.h (target_stop_ptid): Renamed as...
1828 (target_stop_and_wait): New function. Updated comment.
1830 (target_continue_ptid): Renamed as...
1831 (target_continue_no_signal): New function. Updated comment.
1834 2014-09-22 Pedro Alves <palves@redhat.com>
1836 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1838 * breakpoint.c (enum ugll_insert_mode): New enum.
1839 (always_inserted_mode): Now a plain boolean.
1840 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1841 (breakpoints_always_inserted_mode): Delete.
1842 (breakpoints_should_be_inserted_now): New function.
1843 (insert_breakpoints): Pass UGLL_INSERT to
1844 update_global_location_list instead of calling
1845 insert_breakpoint_locations manually.
1846 (create_solib_event_breakpoint_1): New, factored out from ...
1847 (create_solib_event_breakpoint): ... this.
1848 (create_and_insert_solib_event_breakpoint): Use
1849 create_solib_event_breakpoint_1 instead of calling
1850 insert_breakpoint_locations manually.
1851 (update_global_location_list): Change parameter type from boolean
1852 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1853 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1854 (update_global_location_list_nothrow): Change parameter type from
1855 boolean to enum ugll_insert_mode.
1856 (_initialize_breakpoint): "breakpoint always-inserted" option is
1857 now a boolean command. Update help text.
1858 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1859 (breakpoints_should_be_inserted_now): New declaration.
1860 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1861 Remove breakpoints_always_inserted_mode check.
1862 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1863 * remote.c (remote_start_remote): Likewise.
1865 2014-09-22 Pedro Alves <palves@redhat.com>
1867 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1868 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1869 Instead, pass UGLL_INSERT to update_global_location_list.
1870 (update_global_location_list): Change parameter type from boolean
1871 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1872 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1873 (create_solib_event_breakpoint_1): New, factored out from ...
1874 (create_solib_event_breakpoint): ... this.
1875 (create_and_insert_solib_event_breakpoint): Use
1876 create_solib_event_breakpoint_1 instead of calling
1877 insert_breakpoint_locations manually.
1878 (update_global_location_list): Handle UGLL_INSERT.
1880 2014-09-22 Pedro Alves <palves@redhat.com>
1882 * breakpoint.c (enum ugll_insert_mode): New enum.
1883 (update_global_location_list)
1884 (update_global_location_list_nothrow): Change parameter type from
1885 boolean to enum ugll_insert_mode. All callers adjusted.
1887 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1889 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1890 SystemTap support in GDB.
1892 2014-09-19 Don Breazeal <donb@codesourcery.com>
1894 * linux-nat.c (linux_handle_extended_wait): Call
1895 linux_ptrace_get_extended_event.
1896 (wait_lwp): Call linux_is_extended_waitstatus.
1897 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1898 and linux_is_extended_waitstatus.
1899 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1900 linux_ptrace_get_extended_event.
1901 (linux_ptrace_get_extended_event): New function.
1902 (linux_is_extended_waitstatus): New function.
1903 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1904 (linux_is_extended_waitstatus): New declarations.
1906 2014-09-19 Yao Qi <yao@codesourcery.com>
1908 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1909 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1910 comments. Callers update.
1911 (dwarf_decode_lines): Likewise.
1912 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1913 comments. Skip the line table if 'lowpc' is greater than
1914 'address'. Don't check
1915 dwarf2_per_objfile->has_section_at_zero.
1917 2014-09-18 Doug Evans <dje@google.com>
1919 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1920 * python/py-symtab.c (stpy_get_producer): New function.
1921 (symtab_object_getset): Add "producer" attribute.
1923 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1926 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1927 (do_captured_read_memory_integer): Remove.
1928 (safe_read_memory_integer): Use target_read_memory directly instead
1929 of catching errors in do_captured_read_memory_integer.
1931 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1933 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1936 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1938 * objc-lang.c (find_implementation_from_class): Remove dead code.
1940 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1943 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1944 "fprintf_unfiltered (gdb_stdlog...)".
1946 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1948 PR breakpoints/12526
1949 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1951 * breakpoint.c (watch_command_1): Use these fields to retain
1952 bitfield information.
1953 (extract_bitfield_from_watchpoint_value): New function.
1954 (watchpoint_check): Use it.
1955 (update_watchpoint): Use it. Optimize the address and length of a
1956 HW watchpoint pointing to a bitfield.
1957 * value.h (unpack_value_bitfield): New prototype.
1958 * value.c (unpack_value_bitfield): Make extern.
1960 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1962 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1964 * gnu-nat.c (inf_threads): New function.
1965 * gnu-nat.h (inf_threads_ftype): New typedef.
1966 (inf_threads): New declaration.
1967 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1968 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1969 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1970 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1971 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1972 (i386_gnu_dr_get_control): New functions.
1973 (reg_addr): New structure.
1974 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1975 i386 debugging register hooks.
1976 * NEWS: Mention this.
1978 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1980 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1981 vector data transfer instructions.
1982 (arm_record_coproc_data_proc): Updated.
1984 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1986 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1987 arm_record_exreg_ld_st_insn.
1988 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1991 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1993 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1994 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1995 processing instructions.
1997 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1999 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2000 for advance SIMD struct ld/st insn.
2001 (thumb2_record_decode_insn_handler): Replace stub handler with
2002 thumb2_record_asimd_struct_ld_st.
2004 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2006 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2007 for asimd, vfp and coprocessor insns.
2008 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2009 and coprocessor insns.
2010 (thumb2_record_coproc_insn): New function.
2011 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2013 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2016 2014-09-13 Doug Evans <xdje42@gmail.com>
2018 * NEWS: Mention new "queue-signal" command.
2019 * infcmd.c (queue_signal_command): New function.
2020 (_initialize_infcmd): Add new queue-signal command.
2022 2014-09-13 Doug Evans <xdje42@gmail.com>
2024 * linux-nat.c (wait_lwp): Add debugging printf.
2025 (linux_nat_wait_1): Ditto.
2027 2014-09-12 Pedro Alves <palves@redhat.com>
2029 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2030 (create_and_insert_solib_event_breakpoint): New functions.
2031 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2032 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2033 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2034 (remove_dbx_link_breakpoint): Delete function.
2035 (insert_dbx_link_bpt_in_file): Use
2036 create_and_insert_solib_event_breakpoint instead of
2037 deprecated_insert_raw_breakpoint.
2038 (procfs_wait): Don't check whether we hit __dbx_link here.
2039 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2041 * solib-irix.c (base_breakpoint): Delete global.
2042 (disable_break): Delete function.
2043 (enable_break): Use create_solib_event_breakpoint
2044 instead of deprecated_insert_raw_breakpoint.
2045 (irix_solib_handle_event): New function.
2046 (irix_solib_create_inferior_hook): Don't run the target or disable
2047 the mapping-complete breakpoint here.
2048 (_initialize_irix_solib): Install irix_solib_handle_event as
2049 so_ops->handle_event hook.
2051 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2052 Ulrich Weigand <uweigand@de.ibm.com>
2055 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2056 instead of read_memory_unsigned_integer.
2058 2014-09-12 Gary Benson <gbenson@redhat.com>
2060 * nat/linux-waitpid.c: Include common-defs.h.
2061 [GDBSERVER]: Add FIXME comment.
2062 [!GDBSERVER]: Don't include defs.h or signal.h.
2063 (linux_debug) [!GDBSERVER]: Remove empty block.
2065 2014-09-12 Gary Benson <gbenson@redhat.com>
2067 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2068 Don't include defs.h or server.h.
2070 2014-09-12 Gary Benson <gbenson@redhat.com>
2072 * nat/linux-btrace.c: Include common-defs.h.
2073 Don't include defs.h, server.h or gdbthread.h.
2074 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2076 2014-09-12 Gary Benson <gbenson@redhat.com>
2078 * common/agent.c: Include common-defs.h.
2079 Don't include defs.h or server.h.
2080 * common/buffer.c: Likewise.
2081 * common/common-debug.c: Likewise.
2082 * common/common-utils.c: Likewise.
2083 * common/errors.c: Likewise.
2084 * common/filestuff.c: Likewise.
2085 * common/format.c: Likewise.
2086 * common/gdb_vecs.c: Likewise.
2087 * common/print-utils.c: Likewise.
2088 * common/ptid.c: Likewise.
2089 * common/rsp-low.c: Likewise.
2090 * common/signals.c: Likewise.
2091 * common/vec.c: Likewise.
2092 * common/xml-utils.c: Likewise.
2093 * nat/linux-osdata.c: Likewise.
2094 * nat/linux-procfs.c: Likewise.
2095 * nat/linux-ptrace.c: Likewise.
2096 * nat/mips-linux-watch.c: Likewise.
2097 * target/waitstatus.c: Likewise.
2099 2014-09-12 Tom Tromey <tromey@redhat.com>
2100 Gary Benson <gbenson@redhat.com>
2102 * common/common-regcache.h: New file.
2103 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2104 * regcache.h: Include common-regcache.h.
2105 (regcache_read_pc): Don't declare.
2106 * regcache.c (get_thread_regcache_for_ptid): New function.
2107 * nat/linux-btrace.c: Don't include regcache.h.
2108 Include common-regcache.h.
2109 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2111 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2113 * regcache.h (struct regset): Declare.
2115 2014-09-11 Pedro Alves <palves@redhat.com>
2118 * main.c: Include "infrun.h".
2119 (catch_command_errors, catch_command_errors_const): Wait for the
2120 foreground command to complete.
2121 * top.c (maybe_wait_sync_command_done): New function, factored out
2123 (maybe_wait_sync_command_done): ... here.
2124 * top.h (maybe_wait_sync_command_done): New declaration.
2126 2014-09-11 Tom Tromey <tromey@redhat.com>
2127 Gary Benson <gbenson@redhat.com>
2129 * common/symbol.h: New file.
2130 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2131 * minsyms.c (find_minimal_symbol_address): New function.
2132 * common/agent.c: Include common/symbol.h.
2133 [!GDBSERVER]: Don't include objfiles.h.
2134 (agent_look_up_symbols): Use find_minimal_symbol_address.
2136 2014-09-11 Gary Benson <gbenson@redhat.com>
2138 * target/target.h (target_stop_ptid, target_continue_ptid):
2140 * target.c (target_stop_ptid, target_continue_ptid): New
2142 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2143 (agent_run_command): Always use target_stop_ptid and
2144 target_continue_ptid.
2146 2014-09-11 Tom Tromey <tromey@redhat.com>
2147 Gary Benson <gbenson@redhat.com>
2149 * target/target.h: New file.
2150 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2151 * target.h: Include target/target.h.
2152 (target_read_memory, target_write_memory): Don't declare.
2153 * target.c (target_read_uint32): New function.
2154 * common/agent.c: Include target/target.h.
2155 [!GDBSERVER]: Don't include target.h.
2156 (helper_thread_id): Type changed to uint32_t.
2157 (agent_get_helper_thread_id): Use target_read_uint32.
2158 (agent_run_command): Always use target_read_memory and
2159 target_write_memory.
2160 (agent_capability): Type changed to uint32_t.
2161 (agent_capability_check): Use target_read_uint32.
2163 2014-09-11 Gary Benson <gbenson@redhat.com>
2165 * common/common-debug.h (show_debug_regs): Declare.
2166 * common/common-debug.c (show_debug_regs): Define.
2167 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2168 all uses with show_debug_regs. Replace all uses that considered
2169 debug_hw_points as a multi-value integer with straight boolean
2171 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2172 with show_debug_regs.
2173 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2174 all uses with show_debug_regs.
2175 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2176 uses with show_debug_regs.
2178 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2180 * findvar.c (address_from_register): Handle targets requiring
2181 a special conversion routine even for plain pointer types.
2183 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2185 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2186 (store_register): Do not call exec_one_dummy_insn.
2188 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2190 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2191 dereference it first. Use value_enclosing_type instead of
2193 (ada_array_length): Likewise.
2195 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2197 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2198 Adjust function implementation and documentation accordingly.
2199 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2200 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2201 Update call to ada_value_ptr_subscript.
2203 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2205 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2206 instead of VAL's type.
2208 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2210 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2212 2014-09-09 Doug Evans <xdje42@gmail.com>
2215 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2216 last parameter to pkg-config, not first.
2217 * configure.ac: Pass --with-guile provided pkg-config path to
2218 GDB_GUILE_PROGRAM_NAMES.
2219 * configure: Regenerate.
2221 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2223 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2226 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2228 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2229 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2230 the list of sections determining GDB_OSABI_IRIX.
2232 2014-09-09 James Hogan <james.hogan@imgtec.com>
2234 * MAINTAINERS (Write After Approval): Add "James Hogan".
2236 2014-09-09 James Hogan <james.hogan@imgtec.com>
2238 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2240 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2242 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2244 2014-09-08 Doug Evans <xdje42@gmail.com>
2247 * guile.c: #include <signal.h>.
2248 (_initialize_guile): Block SIGCHLD while initializing Guile.
2250 Replaces the following, which is reverted.
2252 2014-07-26 Doug Evans <xdje42@gmail.com>
2255 * configure.ac: Add check for header gc/gc.h.
2256 Add check for function setenv.
2257 * configure: Regenerate.
2258 * config.in: Regenerate.
2259 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2261 2014-09-08 Doug Evans <xdje42@gmail.com>
2263 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2264 with named constant. Fix style of pointer comparison.
2265 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2267 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2270 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2271 decide whether we display the command on "show user".
2272 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2273 printing command name.
2274 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2275 * cli/cli-decode.c (cli_user_command_p): Create helper function
2276 to verify whether cmd_list_element is a user-defined command.
2278 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2281 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2282 Fix goto out of TRY_CATCH.
2284 2014-09-06 Doug Evans <xdje42@gmail.com>
2285 Tom Tromey <tromey@redhat.com>
2288 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2289 $_any_caller_matches.
2290 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2291 * python/lib/gdb/function/caller_is.py: New file.
2293 2014-09-06 Doug Evans <xdje42@gmail.com>
2295 * infcmd.c (program_info): Fix typo.
2297 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2300 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2301 'number'. New variable 'has_digit'. Rewrite code to deal with
2302 subexpressions on SDT probes.
2304 2014-09-04 Pedro Alves <palves@redhat.com>
2306 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2307 the input is only one character long.
2309 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2312 * f-valprint.c (f_val_print): Specify the correct print option to
2313 use when printing integer values.
2315 2014-09-04 Gary Benson <gbenson@redhat.com>
2317 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2318 Remove code to cope with LWPs wrapped as PIDs.
2319 Add assertions to ensure no wrapped LWPs are passed.
2321 2014-09-04 Pedro Alves <palves@redhat.com>
2323 * value.c (value_ranges_copy_adjusted): New function, factored out
2325 (value_contents_copy_raw): ... here.
2326 (unpack_value_bits_as_long_1): Rename back to ...
2327 (unpack_bits_as_long): ... this. Remove 'original_value' and
2328 'result' parameters. Change return type to LONGEST.
2329 (unpack_value_bits_as_long): Delete.
2330 (unpack_value_field_as_long_1): Delete.
2331 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2332 (unpack_value_bitfield): New function.
2333 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2334 (value_fetch_lazy): Use unpack_value_bitfield.
2335 * value.h (unpack_value_bits_as_long): Delete declaration.
2337 2014-09-03 Sasha Smundak <asmundak@google.com>
2339 * python/py-frame.c (frapy_read_register): New function.
2341 2014-09-03 James Hogan <james.hogan@imgtec.com>
2343 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2344 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2346 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2349 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2351 (add_cmd): Set "completer_handle_brkchars" to NULL.
2352 * cli/cli-decode.h (struct cmd_list_element)
2353 <completer_handle_brkchars>: New field.
2354 * command.h (completer_ftype_void): New typedef.
2355 (set_cmd_completer_handle_brkchars): New prototype.
2356 * completer.c (set_gdb_completion_word_break_characters): New
2358 (complete_line_internal): Call "completer_handle_brkchars"
2359 callback from command.
2360 * completer.h: Include "command.h".
2361 (set_gdb_completion_word_break_characters): New prototype.
2362 * python/py-cmd.c (cmdpy_completer_helper): New function.
2363 (cmdpy_completer_handle_brkchars): New function.
2364 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2365 (cmdpy_init): Set completer_handle_brkchars to
2366 cmdpy_completer_handle_brkchars.
2368 2014-09-03 Gary Benson <gbenson@redhat.com>
2370 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2371 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2372 Loop conditions changed to equivalent form.
2373 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2374 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2375 ALL_DEBUG_ADDRESS_REGISTERS.
2377 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2379 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2382 2014-09-02 Doug Evans <dje@google.com>
2384 * typeprint.c (find_global_typedef): Fix comment.
2386 2014-09-02 Gary Benson <gbenson@redhat.com>
2388 * i386-nat.h: Renamed as...
2389 * x86-nat.h: New file. All type, function and variable name
2390 prefixes changed from "i386_" to "x86_". All references updated.
2391 * i386-nat.c: Renamed as...
2392 * x86-nat.c: New file. All type, function and variable name
2393 prefixes changed from "i386_" to "x86_". All references updated.
2394 * common/i386-xstate.h: Renamed as...
2395 * common/x86-xstate.h: New file. All type, function and variable
2396 name prefixes changed from "i386_" to "x86_". All references
2398 * nat/i386-cpuid.h: Renamed as...
2399 * nat/x86-cpuid.h: New file. All type, function and variable name
2400 prefixes changed from "i386_" to "x86_". All references updated.
2401 * nat/i386-gcc-cpuid.h: Renamed as...
2402 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2403 name prefixes changed from "i386_" to "x86_". All references
2405 * nat/i386-dregs.h: Renamed as...
2406 * nat/x86-dregs.h: New file. All type, function and variable name
2407 prefixes changed from "i386_" to "x86_". All references updated.
2408 * nat/i386-dregs.c: Renamed as...
2409 * nat/x86-dregs.c: New file. All type, function and variable name
2410 prefixes changed from "i386_" to "x86_". All references updated.
2412 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2414 * varobj.c (_initialize_varobj): Move to the end of file.
2416 2014-08-29 Gary Benson <gbenson@redhat.com>
2418 * common/common-exceptions.h: New file.
2419 * common/common-exceptions.c: Likewise.
2420 * Makefile.in (SFILES): Add common/common-exceptions.c.
2421 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2422 (COMMON_OBS): Add common-exceptions.o.
2423 (common-exceptions.o): New rule.
2424 * exceptions.h (common-exceptions.h): Include.
2425 (gdb_setjmp.h): Do not include.
2426 (return_reason): Moved to common-exceptions.h.
2427 (enum return_reason): Likewise.
2428 (RETURN_MASK): Likewise.
2429 (typedef return_mask): Likewise.
2430 (enum errors): Likewise.
2431 (struct gdb_exception): Likewise.
2432 (exceptions_state_mc_init): Likewise.
2433 (exceptions_state_mc_action_iter): Likewise.
2434 (exceptions_state_mc_action_iter_1): Likewise.
2435 (TRY_CATCH): Likewise.
2436 (throw_exception): Likewise.
2437 (throw_verror): Likewise.
2438 (throw_vquit): Likewise.
2439 (throw_error): Likewise.
2440 (throw_quit): Likewise.
2441 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2442 (enum catcher_action): Likewise.
2443 (struct catcher): Likewise.
2444 (current_catcher): Likewise.
2445 (catcher_list_size): Likewise.
2446 (exceptions_state_mc_init): Likewise.
2447 (catcher_pop): Likewise.
2448 (exceptions_state_mc): Likewise.
2449 (exceptions_state_mc_action_iter): Likewise.
2450 (exceptions_state_mc_action_iter_1): Likewise.
2451 (throw_exception): Likewise.
2452 (exception_messages): Likewise.
2453 (exception_messages_size): Likewise.
2454 (throw_it): Likewise.
2455 (throw_verror): Likewise.
2456 (throw_vquit): Likewise.
2457 (throw_error): Likewise.
2458 (throw_quit): Likewise.
2459 (prepare_to_throw_exception): New function.
2461 2014-08-29 Gary Benson <gbenson@redhat.com>
2463 * common/gdb_setjmp.h: New file.
2464 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2465 * configure.ac: Move sigsetjmp check...
2466 * common/common.m4: ...here.
2467 * configure: Regenerate.
2468 * cp-support.c (SIGJMP_BUF): Delete.
2469 (SIGSETJMP): Likewise.
2470 (SIGLONGJMP): Likewise.
2471 * exceptions.h (gdb_setjmp.h): Include.
2472 (setjmp.h): Do not include.
2473 (EXCEPTIONS_SIGJMP_BUF): Delete.
2474 (EXCEPTIONS_SIGSETJMP): Likewise.
2475 (EXCEPTIONS_SIGLONGJMP): Likewise.
2476 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2478 * exceptions.c: Likewise.
2480 2014-08-29 Gary Benson <gbenson@redhat.com>
2482 * cleanups.h: Moved to...
2483 * common/cleanups.h: New file.
2484 * cleanups.c: Moved to...
2485 * common/cleanups.c: New file. Include common-defs.h and
2486 cleanups.h. Do not include defs.h.
2487 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2488 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2489 (cleanups.o): New rule.
2491 2014-08-29 Gary Benson <gbenson@redhat.com>
2493 * common/errors.h (internal_warning): New declaration.
2494 (internal_vwarning): Likewise.
2495 * common/errors.c (internal_warning): New function.
2496 * utils.h (internal_warning): Don't declare.
2497 (internal_vwarning): Likewise.
2498 * utils.c (internal_warning): Removed.
2500 2014-08-29 Gary Benson <gbenson@redhat.com>
2502 * main.c (captured_main): Use warning during startup.
2503 Prefix startup warning messages with command name.
2505 2014-08-29 Gary Benson <gbenson@redhat.com>
2507 * main.c (captured_main): Handle usage errors with error.
2509 2014-08-29 Gary Benson <gbenson@redhat.com>
2511 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2512 exit pair with a call to error. Wrap the message with _().
2514 2014-08-29 Gary Benson <gbenson@redhat.com>
2516 * main.c (captured_main): Replace a fprintf/exit
2517 pair with a call to error. Wrap the message with _().
2519 2014-08-29 Gary Benson <gbenson@redhat.com>
2521 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2522 pairs with calls to error. Wrap the message with _().
2524 2014-08-29 Gary Benson <gbenson@redhat.com>
2526 * utils.c (vwarning): Protect calls to target_terminal_ours
2529 2014-08-29 Gary Benson <gbenson@redhat.com>
2531 * exceptions.c (print_flush): Protect calls to
2532 target_terminal_ours and wrap_here.
2534 2014-08-29 Gary Benson <gbenson@redhat.com>
2536 * utils.h (filtered_printing_initialized): New declaration.
2537 * utils.c (abort_with_message): New function.
2538 (internal_vproblem): Use abort_with_message for first level
2539 recursive internal problems, and if gdb_stderr is not set up.
2540 Protect calls to target_terminal_ours, begin_line and query.
2542 2014-08-28 Doug Evans <dje@google.com>
2544 * symtab.c (in_prologue): Move definition to better spot.
2545 (skip_prologue_using_sal): Ditto.
2547 2014-08-28 Doug Evans <dje@google.com>
2549 * symtab.c (find_function_start_sal): Move definition to better spot.
2551 2014-08-28 Yao Qi <yao@codesourcery.com>
2553 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2554 found_stack_adjust in forward scan. Remove condition check
2555 on found_stack_adjust which is always true. Indent the code.
2557 2014-08-28 Yao Qi <yao@codesourcery.com>
2559 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2560 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2561 (dwarf_decode_lines): Remove argument
2562 want_line_info. Remove condition check on want_line_info.
2565 2014-08-27 Doug Evans <dje@google.com>
2567 * dwarf2read.c (dwarf_record_line): Fix typo.
2569 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2571 * target.h (struct target_ops::to_terminal_save_ours): Remove
2573 (target_terminal_save_ours): Remove macro.
2574 * target-delegates.c: Regenerate.
2575 * inf-child.c (inf_child_target): Don't set the nonexistent
2576 field to_terminal_save_ours.
2577 * inferior.h (child_terminal_save_ours): Remove declaration.
2578 * terminal.h (gdb_save_tty_state): New declaration.
2579 * inflow.c (child_terminal_save_ours): Rename to ...
2580 (gdb_save_tty_state): ... this.
2581 * tui/tui.c: Include terminal.h.
2582 (tui_enable): Use gdb_save_tty_state instead of
2583 target_terminal_save_ours.
2584 (tui_disable): Likewise.
2586 2014-08-25 Doug Evans <dje@google.com>
2588 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2589 Pass NULL instead of 0 for context pointer.
2591 2014-08-25 Yao Qi <yao@codesourcery.com>
2593 * dwarf2read.c: Fix grammatical error.
2595 2014-08-24 Yao Qi <yao@codesourcery.com>
2597 * dwarf2read.c (scan_partial_symbols): Update comments.
2598 Rename argument 'need_pc' with 'set_addrmap'.
2599 (add_partial_namespace): Rename argument 'need_pc' with
2601 (add_partial_module): Likewise.
2602 (add_partial_subprogram): Likewise. Update comments.
2603 (dwarf2_name): Fix typo.
2605 2014-08-22 Doug Evans <dje@google.com>
2608 * dwarf2read.c (dwarf_record_line_p): New function.
2609 (dwarf_decode_lines_1): Ignore subsequent line number entries
2610 for the same line if any entry had a non-zero discriminator.
2612 2014-08-22 Doug Evans <dje@google.com>
2614 * buildsym.h (record_line_ftype): New typedef.
2615 (record_line): Use it.
2616 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2617 (dwarf_decode_lines_1): Call them.
2619 2014-08-22 Yao Qi <yao@codesourcery.com>
2621 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2622 (ctf_end): Remove code.
2624 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2626 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2627 (linux_make_corefile_notes): call update_thread_list, protected against
2630 2014-08-21 Pedro Alves <palves@redhat.com>
2632 * infcmd.c (attach_command): Remove comment.
2634 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2636 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2637 unsigned LONGEST to ULONGEST.
2639 2014-08-20 Pedro Alves <palves@redhat.com>
2641 * Makefile.in (check-read1): New rule.
2643 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2645 * value.c (value_from_contents_and_address): Strip resolved_type's
2646 typedef layers before checking its TYPE_DATA_LOCATION.
2648 2014-08-20 Pedro Alves <palves@redhat.com>
2650 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2652 2014-08-20 Yao Qi <yao@codesourcery.com>
2654 * amd64-tdep.c (amd64_classify): Add a blank line after the
2655 example. Move "*/" to a new line.
2656 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2657 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2658 * dwarf2read.c (psymtab_include_file_name): Likewise.
2660 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2661 Pedro Alves <palves@redhat.com>
2665 * ada-lang.c (coerce_unspec_val_to_type): Use
2666 value_contents_copy_raw.
2667 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2668 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2669 * cp-valprint.c (cp_print_value_fields): Let the common printing
2670 code handle optimized out values.
2671 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2672 * d-valprint.c (dynamic_array_type): Use
2673 value_bits_any_optimized_out.
2674 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2675 check_any_valid fields.
2676 (check_pieced_value_bits): Delete and inline ...
2677 (check_pieced_synthetic_pointer): ... here.
2678 (check_pieced_value_validity): Delete.
2679 (check_pieced_value_invalid): Delete.
2680 (pieced_value_funcs): Remove check_validity and check_any_valid
2682 (read_pieced_value): Use mark_value_bits_optimized_out.
2683 (write_pieced_value): Switch to use
2684 mark_value_bytes_optimized_out.
2685 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2686 of assuming the whole value is optimized out.
2687 * findvar.c (read_frame_register_value): Remove special handling
2688 of optimized out registers.
2689 (value_from_register): Use mark_value_bytes_optimized_out.
2690 * frame-unwind.c (frame_unwind_got_optimized): Use
2691 mark_value_bytes_optimized_out.
2692 * jv-valprint.c (java_value_print): Adjust.
2693 (java_print_value_fields): Let the common printing code handle
2694 optimized out values.
2695 * mips-tdep.c (mips_print_register): Remove special handling of
2696 optimized out registers.
2697 * opencl-lang.c (lval_func_check_validity): Delete.
2698 (lval_func_check_any_valid): Delete.
2699 (opencl_value_funcs): Remove check_validity and check_any_valid
2701 * p-valprint.c (pascal_object_print_value_fields): Let the common
2702 printing code handle optimized out values.
2703 * stack.c (read_frame_arg): Remove special handling of optimized
2704 out values. Fetch both VAL and ENTRYVAL before comparing
2705 contents. Adjust to value_available_contents_eq rename.
2706 * valprint.c (valprint_check_validity)
2707 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2708 (val_print_array_elements): Adjust.
2709 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2710 (value_bits_any_optimized_out): New function.
2711 (value_entirely_covered_by_range_vector): New function, factored
2712 out from value_entirely_unavailable.
2713 (value_entirely_unavailable): Reimplement.
2714 (value_entirely_optimized_out): New function.
2715 (insert_into_bit_range_vector): New function, factored out from
2716 mark_value_bits_unavailable.
2717 (mark_value_bits_unavailable): Reimplement.
2718 (struct ranges_and_idx): New struct.
2719 (find_first_range_overlap_and_match): New function, factored out
2720 from value_available_contents_bits_eq.
2721 (value_available_contents_bits_eq): Rename to ...
2722 (value_contents_bits_eq): ... this. Check both unavailable
2723 contents and optimized out contents.
2724 (value_available_contents_eq): Rename to ...
2725 (value_contents_eq): ... this.
2726 (allocate_value_lazy): Remove reference to the old optimized_out
2728 (allocate_optimized_out_value): Use
2729 mark_value_bytes_optimized_out.
2730 (require_not_optimized_out): Adjust to check whether the
2731 optimized_out vec is empty.
2732 (ranges_copy_adjusted): New function, factored out from
2733 value_contents_copy_raw.
2734 (value_contents_copy_raw): Also copy the optimized out ranges.
2735 Assert the destination ranges aren't optimized out.
2736 (value_contents_copy): Update comment, remove call to
2737 require_not_optimized_out.
2738 (value_contents_equal): Adjust to check whether the optimized_out
2740 (set_value_optimized_out, value_optimized_out_const): Delete.
2741 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2743 (value_entirely_optimized_out, value_bits_valid): Delete.
2744 (value_copy): Take a VEC copy of the 'optimized_out' field.
2745 (value_primitive_field): Remove special handling of optimized out.
2746 (value_fetch_lazy): Assert that lazy values have no unavailable
2747 regions. Use value_bits_any_optimized_out. Remove some special
2748 handling for optimized out values.
2749 * value.h: Add intro comment about <optimized out> and
2751 (struct lval_funcs): Remove check_validity and check_any_valid
2753 (set_value_optimized_out, value_optimized_out_const): Remove.
2754 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2756 (value_bits_any_optimized_out): New declaration.
2757 (value_bits_valid): Delete declaration.
2758 (value_available_contents_eq): Rename to ...
2759 (value_contents_eq): ... this, and extend comments.
2761 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2763 Fix -fsanitize=address on unreadable inferior strings.
2764 * valprint.c (val_print_string): Fix access before BUFFER.
2766 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2768 * target.c (target_struct_size): Remove.
2769 (target_struct_allocsize): Remove.
2770 (DEFAULT_ALLOCSIZE): Remove.
2771 (target_ops_p): New typedef.
2772 (DEF_VEC_P (target_ops_p)): New vector type.
2773 (target_structs): Change type to VEC (target_ops_p).
2774 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2775 (find_default_run_target): Rewrite for loop following changes to
2778 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2780 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2781 Adjust code accordingly. Adjust function description comment.
2783 2014-08-19 Yao Qi <yao@codesourcery.com>
2785 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2788 2014-08-19 Alan Modra <amodra@gmail.com>
2790 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2791 * config.in: Regenerate.
2792 * configure: Regenerate.
2794 2014-08-19 Tom Tromey <tromey@redhat.com>
2795 Gary Benson <gbenson@redhat.com>
2797 * common/common-debug.h: New file.
2798 * common/common-debug.c: Likewise.
2799 * debug.c: Likewise.
2800 * Makefile.in (SFILES): Add common/common-debug.c.
2801 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2802 (COMMON_OBS): Add common-debug.o and debug.o.
2803 (common-debug.o): New rule.
2804 * common/common-defs.h: Include common-debug.h.
2805 * common/agent.c (debug_agent_printf): New function.
2806 (DEBUG_AGENT): Redefine.
2807 * nat/i386-dregs.c (debug_printf): Undefine.
2809 2014-08-19 Gary Benson <gbenson@redhat.com>
2811 * common/common-defs.h: Include print-utils.h.
2812 * utils.h: Do not include print-utils.h.
2814 2014-08-19 Tom Tromey <tromey@redhat.com>
2815 Gary Benson <gbenson@redhat.com>
2817 * common/common-types.h: New file.
2818 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2819 * common/common-defs.h: Include common-types.h.
2820 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2823 2014-08-19 Tom Tromey <tromey@redhat.com>
2824 Gary Benson <gbenson@redhat.com>
2826 * common/errors.h: New file.
2827 * common/errors.c: Likewise.
2828 * Makefile.in (SFILES): Add common/errors.c.
2829 (HFILES_NO_SRCDIR): Add common/errors.h.
2830 (COMMON_OBS): Add errors.o.
2831 (errors.o): New rule.
2832 * common/common-defs.h: Include errors.h.
2833 * utils.h (perror_with_name, error, verror, warning, vwarning):
2835 * common/common-utils.h: (malloc_failure, internal_error):
2838 2014-08-19 Gary Benson <gbenson@redhat.com>
2840 * utils.c (internal_vproblem): Always print the message.
2842 2014-08-18 Doug Evans <dje@google.com>
2844 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2846 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2848 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2849 Return 0 if TYPE is dynamic.
2850 (print_range): Add handling of dynamic ranges.
2852 2014-08-18 Keven Boell <keven.boell@intel.com>
2853 Joel Brobecker <brobecker@adacore.com>
2855 * gdbtypes.h (struct main_type): Add field "data_location".
2856 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2857 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2858 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2859 a dynamic data location.
2860 (resolve_dynamic_type): Add DW_AT_data_location handling.
2861 (copy_recursive, copy_type): Copy the data_location information
2863 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2864 * value.c (value_from_contents_and_address): Add
2865 DW_AT_data_location handling.
2867 2014-08-18 Keven Boell <keven.boell@intel.com>
2868 Joel Brobecker <brobecker@adacore.com>
2870 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2871 field "get_object_address".
2872 * dwarf2expr.c (execute_stack_op): Add handling for
2873 DW_OP_push_object_address.
2874 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2875 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2876 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2877 (dwarf_expr_get_obj_addr): New function.
2878 (dwarf_expr_ctx_funcs): Add get_object_address field.
2879 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2880 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2881 (dwarf2_evaluate_property): Add parameter "address". Use it.
2882 (needs_get_obj_addr): New function.
2883 (needs_frame_ctx_funcs): Add get_object_address field.
2884 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2885 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2886 (resolve_dynamic_array): Likewise.
2888 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2890 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2891 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2892 fixed value for records and unions for which some GNAT encodings
2895 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2897 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2898 rewrite to avoid "else if" and "else" constructs. Should be
2899 a no-op in practice.
2901 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2903 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2906 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2909 * eval.c: Update all calls to find_overload_match.
2910 * valarith.c: Likewise.
2911 (value_user_defined_cpp_op, value_user_defined_op): New
2912 argument NOSIDE. Update all callers.
2913 * valops.c (find_overload_match): New argument NOSIDE.
2914 * value.h (find_overload_match): Update signature.
2916 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2918 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2919 'items' methods instead of 'iteritems' method on dictionaries.
2921 2014-08-15 Doug Evans <dje@google.com>
2923 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2926 2014-08-15 Doug Evans <dje@google.com>
2928 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2930 2014-08-15 Doug Evans <dje@google.com>
2932 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2934 2014-08-15 Doug Evans <dje@google.com>
2936 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2939 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2941 * dcache.h: Include target.h, to avoid compile time warnings.
2943 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2945 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2946 frame_info" partial declaration.
2947 * gdbarch.h: Regenerate.
2949 2014-08-15 Yao Qi <yao@codesourcery.com>
2951 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2952 Add parameter 'decode_for_pst_p'. Callers update.
2954 2014-08-13 Yao Qi <yao@codesourcery.com>
2957 * configure.ac: Use local variable 'pos'.
2958 * configure: Regenerated.
2960 2014-08-11 Doug Evans <dje@google.com>
2962 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2963 message, it is redundant with "Reading symbols from ..." message.
2965 2014-08-10 Doug Evans <xdje42@gmail.com>
2967 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2969 2014-08-09 Yao Qi <yao@codesourcery.com>
2972 * remote.c (remote_xfer_partial): Remove dead code.
2974 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2976 * ia64-linux-tdep.c: Include "regset.h".
2977 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2978 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2979 (ia64_linux_supply_fpregset): New function.
2980 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2981 (ia64_linux_regset_from_core_section): New function.
2982 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2985 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2987 * m68klinux-tdep.c: Include "regset.h".
2988 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2989 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2990 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2991 (m68k_linux_regset_from_core_section): New function.
2992 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2995 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2997 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2998 function. Move logic to...
2999 (tilegx_linux_regmap): ... this new register map.
3000 (tilegx_linux_regset): Refer to register map, replace supply
3001 method by regcache_supply_regset, and add collect method.
3002 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3003 TILEGX_FIRST_EASY_REGNUM.
3005 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3007 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3008 that calls regcache_supply_regset and handles the EPC register
3009 separately. Move main logic to...
3010 (score7_linux_gregmap): ... this new register map.
3011 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3012 (score7_linux_gregset): Refer to register map. Add collect method.
3013 (score7_linux_regset_from_core_section): Replace
3014 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3015 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3016 (struct regset): Delete unused forward declaraction.
3017 (struct pt_regs): Delete structure definition.
3018 (elf_gregset_t): Delete typedef.
3020 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3022 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3023 (nios2_core_regset): Add collect method.
3025 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3027 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3028 platform-independent and don't write to read-only input buffer.
3029 (m32r_linux_collect_gregset): New function.
3030 (m32r_linux_gregset): Add collect method.
3032 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3034 * hppa-linux-tdep.c (greg_map): Rename to...
3035 (hppa_linux_gregmap): ... this. Also convert to
3036 regcache_map_entry format.
3037 (hppa_linux_supply_regset): Delete function.
3038 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3039 (hppa_linux_fpregmap): ... this new register map.
3040 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3041 register map, replace supply method by regcache_supply_regset, and
3042 add collect method regcache_collect_regset.
3044 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3046 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3047 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3048 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3049 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3050 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3051 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3052 (frv_linux_supply_gregset): Replace main logic by call to
3053 regcache_supply_regset, but keep clearing gr32-gr63.
3054 (frv_linux_supply_fpregset): Delete function.
3055 (frv_linux_gregset): Refer to appropriate register map and add
3056 regcache_collect_regset as the collect method.
3057 (frv_linux_fpregset): Likewise. Also exchange the supply method
3058 by regcache_supply_regset.
3060 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3062 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3063 by call to alpha_supply_int_regs.
3064 (alpha_linux_collect_gregset): New function.
3065 (alpha_linux_supply_fpregset): Replace logic by call to
3066 alpha_supply_fp_regs.
3067 (alpha_linux_collect_fpregset): New function.
3068 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3070 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3072 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3073 by call to regcache_collect_regset.
3074 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3075 instead of aarch64_linux_supply_gregset/_fpregset.
3076 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3077 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3078 header file instead.
3079 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3080 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3081 functions. Move logic to ...
3082 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3084 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3085 refer to new register maps, replace *_regset_from_core by
3086 regcache_supply_regset, and also use regcache_collect_regset.
3087 * aarch64-linux-tdep.h: Include "regset.h".
3088 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3090 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3091 macros, moved from C source file.
3092 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3093 variable declarations.
3095 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3097 * s390-linux-nat.c: Include "regset.h".
3098 (regmap_gregset): Delete macro.
3099 (s390_64_regmap_gregset): New register map for
3100 regcache_supply/_collect_regset.
3101 (s390_64_gregset): New regset.
3102 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3103 (regmap_fpregset): Delete macro.
3104 (s390_native_supply, s390_native_collect): Delete functions.
3105 (supply_gregset, fill_gregset): Replace s390-specific regmap
3106 handling by a call to regcache_supply/_collect_regset.
3107 (supply_fpregset, fill_fpregset): Call regcache_supply/
3108 _collect_regset instead of s390_native_supply/_collect.
3109 (fetch_regset, store_regset): Likewise. Also change the last
3110 parameter to a regset instead of a regmap.
3111 (s390_linux_fetch_inferior_registers)
3112 (390_linux_store_inferior_registers): Adjust last parameter in
3113 calls to fetch_regset and store_regset.
3114 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3115 (s390_gregmap): ... this. Also make static const and convert to
3116 regcache_map_entry format.
3117 (s390x_regmap_gregset): Delete.
3118 (s390_regmap_fpregset): Rename to...
3119 (s390_fpregmap): ... this. Make static const and convert to
3120 regcache_map_entry format.
3121 (s390_regmap_upper, s390_regmap_last_break)
3122 (s390x_regmap_last_break, s390_regmap_system_call)
3123 (s390_regmap_tdb): Likewise.
3124 (s390_supply_regset, s390_collect_regset): Remove functions.
3125 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3127 (s390_gregset, s390_fpregset, s390_upper_regset)
3128 (s390_last_break_regset, s390x_last_break_regset)
3129 (s390_system_call_regset, s390_tdb_regset): Make global and
3130 replace s390_supply/_collect_regset by regcache_supply/
3132 (s390x_gregset): Delete.
3133 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3134 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3135 (s390_regmap_fpregset, s390_regmap_last_break)
3136 (s390x_regmap_last_break, s390_regmap_system_call)
3137 (s390_regmap_tdb): Delete global variable declarations.
3138 (s390_gregset, s390_fpregset, s390_last_break_regset)
3139 (s390x_last_break_regset, s390_system_call_regset)
3140 (s390_tdb_regset): New global variable declarations.
3142 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3144 * regcache.c: Include "regset.h".
3145 (regcache_transfer_regset): New local function.
3146 (regcache_supply_regset, regcache_collect_regset): New functions.
3147 * regcache.h (struct regcache_map_entry): New structure.
3148 (REGCACHE_MAP_SKIP): New enum value.
3149 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3151 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3153 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3154 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3155 (ppc_linux_collect_gregset ): Likewise.
3156 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3157 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3158 (ppc_collect_vrregset): Likewise.
3159 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3162 2014-08-07 Yao Qi <yao@codesourcery.com>
3164 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3165 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3166 * remote.c (remote_read_bytes): Likewise.
3168 2014-08-07 Yao Qi <yao@codesourcery.com>
3170 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3172 2014-08-07 Yao Qi <yao@codesourcery.com>
3175 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3176 TARGET_XFER_OK instead of 0.
3178 2014-08-07 Gary Benson <gbenson@redhat.com>
3180 * common/common-defs.h: Include errno.h.
3181 * defs.h: Do not include errno.h.
3182 * ada-typeprint.c: Likewise.
3183 * c-typeprint.c: Likewise.
3184 * core-regset.c: Likewise.
3185 * corefile.c: Likewise.
3186 * corelow.c: Likewise.
3187 * event-loop.c: Likewise.
3188 * f-typeprint.c: Likewise.
3189 * gnu-nat.c: Likewise.
3190 * go32-nat.c: Likewise.
3191 * i386gnu-nat.c: Likewise.
3192 * m2-typeprint.c: Likewise.
3193 * nat/linux-btrace.c: Likewise.
3194 * p-typeprint.c: Likewise.
3195 * procfs.c: Likewise.
3196 * remote-sim.c: Likewise.
3197 * rs6000-nat.c: Likewise.
3198 * target.c: Likewise.
3199 * typeprint.c: Likewise.
3200 * ui-file.c: Likewise.
3201 * valops.c: Likewise.
3202 * valprint.c: Likewise.
3204 2014-08-07 Gary Benson <gbenson@redhat.com>
3206 * common/common-defs.h: Include string.h.
3207 * aarch64-tdep.c: Do not include string.h.
3208 * ada-exp.y: Likewise.
3209 * ada-lang.c: Likewise.
3210 * ada-lex.l: Likewise.
3211 * ada-typeprint.c: Likewise.
3212 * ada-valprint.c: Likewise.
3213 * aix-thread.c: Likewise.
3214 * alpha-linux-tdep.c: Likewise.
3215 * alpha-mdebug-tdep.c: Likewise.
3216 * alpha-nat.c: Likewise.
3217 * alpha-osf1-tdep.c: Likewise.
3218 * alpha-tdep.c: Likewise.
3219 * alphanbsd-tdep.c: Likewise.
3220 * amd64-dicos-tdep.c: Likewise.
3221 * amd64-linux-tdep.c: Likewise.
3222 * amd64-nat.c: Likewise.
3223 * amd64-sol2-tdep.c: Likewise.
3224 * amd64fbsd-tdep.c: Likewise.
3225 * amd64obsd-tdep.c: Likewise.
3226 * arch-utils.c: Likewise.
3227 * arm-linux-nat.c: Likewise.
3228 * arm-linux-tdep.c: Likewise.
3229 * arm-tdep.c: Likewise.
3230 * arm-wince-tdep.c: Likewise.
3231 * armbsd-tdep.c: Likewise.
3232 * armnbsd-nat.c: Likewise.
3233 * armnbsd-tdep.c: Likewise.
3234 * armobsd-tdep.c: Likewise.
3235 * avr-tdep.c: Likewise.
3236 * ax-gdb.c: Likewise.
3237 * ax-general.c: Likewise.
3238 * bcache.c: Likewise.
3239 * bfin-tdep.c: Likewise.
3240 * breakpoint.c: Likewise.
3241 * build-id.c: Likewise.
3242 * buildsym.c: Likewise.
3243 * c-exp.y: Likewise.
3244 * c-lang.c: Likewise.
3245 * c-typeprint.c: Likewise.
3246 * c-valprint.c: Likewise.
3247 * charset.c: Likewise.
3248 * cli-out.c: Likewise.
3249 * cli/cli-cmds.c: Likewise.
3250 * cli/cli-decode.c: Likewise.
3251 * cli/cli-dump.c: Likewise.
3252 * cli/cli-interp.c: Likewise.
3253 * cli/cli-logging.c: Likewise.
3254 * cli/cli-script.c: Likewise.
3255 * cli/cli-setshow.c: Likewise.
3256 * cli/cli-utils.c: Likewise.
3257 * coffread.c: Likewise.
3258 * common/agent.c: Likewise.
3259 * common/buffer.c: Likewise.
3260 * common/buffer.h: Likewise.
3261 * common/common-utils.c: Likewise.
3262 * common/filestuff.c: Likewise.
3263 * common/filestuff.c: Likewise.
3264 * common/format.c: Likewise.
3265 * common/print-utils.c: Likewise.
3266 * common/rsp-low.c: Likewise.
3267 * common/signals.c: Likewise.
3268 * common/vec.h: Likewise.
3269 * common/xml-utils.c: Likewise.
3270 * core-regset.c: Likewise.
3271 * corefile.c: Likewise.
3272 * corelow.c: Likewise.
3273 * cp-abi.c: Likewise.
3274 * cp-name-parser.y: Likewise.
3275 * cp-support.c: Likewise.
3276 * cp-valprint.c: Likewise.
3277 * cris-tdep.c: Likewise.
3278 * d-exp.y: Likewise.
3279 * darwin-nat.c: Likewise.
3280 * dbxread.c: Likewise.
3281 * dcache.c: Likewise.
3282 * demangle.c: Likewise.
3283 * dicos-tdep.c: Likewise.
3284 * disasm.c: Likewise.
3285 * doublest.c: Likewise.
3286 * dsrec.c: Likewise.
3287 * dummy-frame.c: Likewise.
3288 * dwarf2-frame.c: Likewise.
3289 * dwarf2loc.c: Likewise.
3290 * dwarf2read.c: Likewise.
3291 * elfread.c: Likewise.
3292 * environ.c: Likewise.
3294 * event-loop.c: Likewise.
3295 * exceptions.c: Likewise.
3297 * expprint.c: Likewise.
3298 * f-exp.y: Likewise.
3299 * f-lang.c: Likewise.
3300 * f-typeprint.c: Likewise.
3301 * f-valprint.c: Likewise.
3302 * fbsd-nat.c: Likewise.
3303 * findcmd.c: Likewise.
3304 * findvar.c: Likewise.
3305 * fork-child.c: Likewise.
3306 * frame.c: Likewise.
3307 * frv-linux-tdep.c: Likewise.
3308 * frv-tdep.c: Likewise.
3310 * gdb_bfd.c: Likewise.
3311 * gdbarch.c: Likewise.
3312 * gdbarch.sh: Likewise.
3313 * gdbtypes.c: Likewise.
3314 * gnu-nat.c: Likewise.
3315 * gnu-v2-abi.c: Likewise.
3316 * gnu-v3-abi.c: Likewise.
3317 * go-exp.y: Likewise.
3318 * go-lang.c: Likewise.
3319 * go32-nat.c: Likewise.
3320 * guile/guile.c: Likewise.
3321 * guile/scm-auto-load.c: Likewise.
3322 * hppa-hpux-tdep.c: Likewise.
3323 * hppa-linux-nat.c: Likewise.
3324 * hppanbsd-tdep.c: Likewise.
3325 * hppaobsd-tdep.c: Likewise.
3326 * i386-cygwin-tdep.c: Likewise.
3327 * i386-dicos-tdep.c: Likewise.
3328 * i386-linux-tdep.c: Likewise.
3329 * i386-nto-tdep.c: Likewise.
3330 * i386-sol2-tdep.c: Likewise.
3331 * i386-tdep.c: Likewise.
3332 * i386bsd-tdep.c: Likewise.
3333 * i386gnu-nat.c: Likewise.
3334 * i386nbsd-tdep.c: Likewise.
3335 * i386obsd-tdep.c: Likewise.
3336 * i387-tdep.c: Likewise.
3337 * ia64-libunwind-tdep.c: Likewise.
3338 * ia64-linux-nat.c: Likewise.
3339 * inf-child.c: Likewise.
3340 * inf-ptrace.c: Likewise.
3341 * inf-ttrace.c: Likewise.
3342 * infcall.c: Likewise.
3343 * infcmd.c: Likewise.
3344 * inflow.c: Likewise.
3345 * infrun.c: Likewise.
3346 * interps.c: Likewise.
3347 * iq2000-tdep.c: Likewise.
3348 * irix5-nat.c: Likewise.
3349 * jv-exp.y: Likewise.
3350 * jv-lang.c: Likewise.
3351 * jv-typeprint.c: Likewise.
3352 * jv-valprint.c: Likewise.
3353 * language.c: Likewise.
3354 * linux-fork.c: Likewise.
3355 * linux-nat.c: Likewise.
3356 * lm32-tdep.c: Likewise.
3357 * m2-exp.y: Likewise.
3358 * m2-typeprint.c: Likewise.
3359 * m32c-tdep.c: Likewise.
3360 * m32r-linux-nat.c: Likewise.
3361 * m32r-linux-tdep.c: Likewise.
3362 * m32r-rom.c: Likewise.
3363 * m32r-tdep.c: Likewise.
3364 * m68hc11-tdep.c: Likewise.
3365 * m68k-tdep.c: Likewise.
3366 * m68kbsd-tdep.c: Likewise.
3367 * m68klinux-nat.c: Likewise.
3368 * m68klinux-tdep.c: Likewise.
3369 * m88k-tdep.c: Likewise.
3370 * machoread.c: Likewise.
3371 * macrocmd.c: Likewise.
3373 * mdebugread.c: Likewise.
3374 * mem-break.c: Likewise.
3375 * memattr.c: Likewise.
3376 * memory-map.c: Likewise.
3377 * mep-tdep.c: Likewise.
3378 * mi/mi-cmd-break.c: Likewise.
3379 * mi/mi-cmd-disas.c: Likewise.
3380 * mi/mi-cmd-env.c: Likewise.
3381 * mi/mi-cmd-stack.c: Likewise.
3382 * mi/mi-cmd-var.c: Likewise.
3383 * mi/mi-cmds.c: Likewise.
3384 * mi/mi-console.c: Likewise.
3385 * mi/mi-getopt.c: Likewise.
3386 * mi/mi-interp.c: Likewise.
3387 * mi/mi-main.c: Likewise.
3388 * mi/mi-parse.c: Likewise.
3389 * microblaze-rom.c: Likewise.
3390 * microblaze-tdep.c: Likewise.
3391 * mingw-hdep.c: Likewise.
3392 * minidebug.c: Likewise.
3393 * minsyms.c: Likewise.
3394 * mips-irix-tdep.c: Likewise.
3395 * mips-linux-tdep.c: Likewise.
3396 * mips-tdep.c: Likewise.
3397 * mips64obsd-tdep.c: Likewise.
3398 * mipsnbsd-tdep.c: Likewise.
3399 * mipsread.c: Likewise.
3400 * mn10300-linux-tdep.c: Likewise.
3401 * mn10300-tdep.c: Likewise.
3402 * monitor.c: Likewise.
3403 * moxie-tdep.c: Likewise.
3404 * mt-tdep.c: Likewise.
3405 * nat/linux-btrace.c: Likewise.
3406 * nat/linux-osdata.c: Likewise.
3407 * nat/linux-procfs.c: Likewise.
3408 * nat/linux-ptrace.c: Likewise.
3409 * nat/linux-waitpid.c: Likewise.
3410 * nbsd-tdep.c: Likewise.
3411 * nios2-linux-tdep.c: Likewise.
3412 * nto-procfs.c: Likewise.
3413 * nto-tdep.c: Likewise.
3414 * objc-lang.c: Likewise.
3415 * objfiles.c: Likewise.
3416 * opencl-lang.c: Likewise.
3417 * osabi.c: Likewise.
3418 * osdata.c: Likewise.
3419 * p-exp.y: Likewise.
3420 * p-lang.c: Likewise.
3421 * p-typeprint.c: Likewise.
3422 * parse.c: Likewise.
3423 * posix-hdep.c: Likewise.
3424 * ppc-linux-nat.c: Likewise.
3425 * ppc-sysv-tdep.c: Likewise.
3426 * ppcfbsd-tdep.c: Likewise.
3427 * ppcnbsd-tdep.c: Likewise.
3428 * ppcobsd-tdep.c: Likewise.
3429 * printcmd.c: Likewise.
3430 * procfs.c: Likewise.
3431 * prologue-value.c: Likewise.
3432 * python/py-auto-load.c: Likewise.
3433 * python/py-gdb-readline.c: Likewise.
3434 * ravenscar-thread.c: Likewise.
3435 * regcache.c: Likewise.
3436 * registry.c: Likewise.
3437 * remote-fileio.c: Likewise.
3438 * remote-m32r-sdi.c: Likewise.
3439 * remote-mips.c: Likewise.
3440 * remote-notif.c: Likewise.
3441 * remote-sim.c: Likewise.
3442 * remote.c: Likewise.
3443 * reverse.c: Likewise.
3444 * rs6000-aix-tdep.c: Likewise.
3445 * ser-base.c: Likewise.
3446 * ser-go32.c: Likewise.
3447 * ser-mingw.c: Likewise.
3448 * ser-pipe.c: Likewise.
3449 * ser-tcp.c: Likewise.
3450 * ser-unix.c: Likewise.
3451 * serial.c: Likewise.
3452 * sh-tdep.c: Likewise.
3453 * sh64-tdep.c: Likewise.
3454 * shnbsd-tdep.c: Likewise.
3456 * sol-thread.c: Likewise.
3457 * solib-dsbt.c: Likewise.
3458 * solib-frv.c: Likewise.
3459 * solib-osf.c: Likewise.
3460 * solib-som.c: Likewise.
3461 * solib-spu.c: Likewise.
3462 * solib-target.c: Likewise.
3463 * solib.c: Likewise.
3464 * somread.c: Likewise.
3465 * source.c: Likewise.
3466 * sparc-nat.c: Likewise.
3467 * sparc-sol2-tdep.c: Likewise.
3468 * sparc-tdep.c: Likewise.
3469 * sparc64-tdep.c: Likewise.
3470 * sparc64fbsd-tdep.c: Likewise.
3471 * sparc64nbsd-tdep.c: Likewise.
3472 * sparcnbsd-tdep.c: Likewise.
3473 * spu-linux-nat.c: Likewise.
3474 * spu-multiarch.c: Likewise.
3475 * spu-tdep.c: Likewise.
3476 * stabsread.c: Likewise.
3477 * stack.c: Likewise.
3478 * std-regs.c: Likewise.
3479 * symfile.c: Likewise.
3480 * symmisc.c: Likewise.
3481 * symtab.c: Likewise.
3482 * target.c: Likewise.
3483 * thread.c: Likewise.
3484 * tilegx-linux-nat.c: Likewise.
3485 * tilegx-tdep.c: Likewise.
3487 * tracepoint.c: Likewise.
3488 * tui/tui-command.c: Likewise.
3489 * tui/tui-data.c: Likewise.
3490 * tui/tui-disasm.c: Likewise.
3491 * tui/tui-file.c: Likewise.
3492 * tui/tui-layout.c: Likewise.
3493 * tui/tui-out.c: Likewise.
3494 * tui/tui-regs.c: Likewise.
3495 * tui/tui-source.c: Likewise.
3496 * tui/tui-stack.c: Likewise.
3497 * tui/tui-win.c: Likewise.
3498 * tui/tui-windata.c: Likewise.
3499 * tui/tui-winsource.c: Likewise.
3500 * typeprint.c: Likewise.
3501 * ui-file.c: Likewise.
3502 * ui-out.c: Likewise.
3503 * user-regs.c: Likewise.
3504 * utils.c: Likewise.
3505 * v850-tdep.c: Likewise.
3506 * valarith.c: Likewise.
3507 * valops.c: Likewise.
3508 * valprint.c: Likewise.
3509 * value.c: Likewise.
3510 * varobj.c: Likewise.
3511 * vax-tdep.c: Likewise.
3512 * vaxnbsd-tdep.c: Likewise.
3513 * vaxobsd-tdep.c: Likewise.
3514 * windows-nat.c: Likewise.
3515 * xcoffread.c: Likewise.
3516 * xml-support.c: Likewise.
3517 * xstormy16-tdep.c: Likewise.
3518 * xtensa-linux-nat.c: Likewise.
3520 2014-08-07 Gary Benson <gbenson@redhat.com>
3522 * common/common-defs.h: Include gdb_assert.h.
3523 * aarch64-tdep.c: Do not include gdb_assert.h.
3524 * addrmap.c: Likewise.
3525 * aix-thread.c: Likewise.
3526 * alpha-linux-tdep.c: Likewise.
3527 * alpha-mdebug-tdep.c: Likewise.
3528 * alphanbsd-tdep.c: Likewise.
3529 * amd64-nat.c: Likewise.
3530 * amd64-tdep.c: Likewise.
3531 * amd64bsd-nat.c: Likewise.
3532 * amd64fbsd-nat.c: Likewise.
3533 * amd64fbsd-tdep.c: Likewise.
3534 * amd64nbsd-nat.c: Likewise.
3535 * amd64nbsd-tdep.c: Likewise.
3536 * amd64obsd-nat.c: Likewise.
3537 * amd64obsd-tdep.c: Likewise.
3538 * arch-utils.c: Likewise.
3539 * arm-tdep.c: Likewise.
3540 * armbsd-tdep.c: Likewise.
3542 * bcache.c: Likewise.
3543 * bfin-tdep.c: Likewise.
3544 * blockframe.c: Likewise.
3545 * breakpoint.c: Likewise.
3546 * bsd-kvm.c: Likewise.
3547 * bsd-uthread.c: Likewise.
3548 * buildsym.c: Likewise.
3549 * c-exp.y: Likewise.
3550 * c-lang.c: Likewise.
3551 * charset.c: Likewise.
3552 * cleanups.c: Likewise.
3553 * cli-out.c: Likewise.
3554 * cli/cli-decode.c: Likewise.
3555 * cli/cli-dump.c: Likewise.
3556 * cli/cli-logging.c: Likewise.
3557 * cli/cli-script.c: Likewise.
3558 * cli/cli-utils.c: Likewise.
3559 * coffread.c: Likewise.
3560 * common/common-utils.c: Likewise.
3561 * common/queue.h: Likewise.
3562 * common/signals.c: Likewise.
3563 * common/vec.h: Likewise.
3564 * complaints.c: Likewise.
3565 * completer.c: Likewise.
3566 * corelow.c: Likewise.
3567 * cp-abi.c: Likewise.
3568 * cp-name-parser.y: Likewise.
3569 * cp-namespace.c: Likewise.
3570 * cp-support.c: Likewise.
3571 * cris-tdep.c: Likewise.
3572 * dbxread.c: Likewise.
3573 * dictionary.c: Likewise.
3574 * doublest.c: Likewise.
3575 * dsrec.c: Likewise.
3576 * dummy-frame.c: Likewise.
3577 * dwarf2-frame-tailcall.c: Likewise.
3578 * dwarf2-frame.c: Likewise.
3579 * dwarf2expr.c: Likewise.
3580 * dwarf2loc.c: Likewise.
3581 * dwarf2read.c: Likewise.
3583 * event-loop.c: Likewise.
3584 * exceptions.c: Likewise.
3585 * expprint.c: Likewise.
3586 * f-valprint.c: Likewise.
3587 * fbsd-nat.c: Likewise.
3588 * findvar.c: Likewise.
3589 * frame-unwind.c: Likewise.
3590 * frame.c: Likewise.
3591 * frv-tdep.c: Likewise.
3592 * gcore.c: Likewise.
3593 * gdb-dlfcn.c: Likewise.
3594 * gdb_bfd.c: Likewise.
3595 * gdbarch.c: Likewise.
3596 * gdbarch.sh: Likewise.
3597 * gdbtypes.c: Likewise.
3598 * gnu-nat.c: Likewise.
3599 * gnu-v3-abi.c: Likewise.
3600 * go-lang.c: Likewise.
3601 * guile/scm-exception.c: Likewise.
3602 * guile/scm-gsmob.c: Likewise.
3603 * guile/scm-lazy-string.c: Likewise.
3604 * guile/scm-math.c: Likewise.
3605 * guile/scm-pretty-print.c: Likewise.
3606 * guile/scm-safe-call.c: Likewise.
3607 * guile/scm-utils.c: Likewise.
3608 * guile/scm-value.c: Likewise.
3609 * h8300-tdep.c: Likewise.
3610 * hppa-hpux-nat.c: Likewise.
3611 * hppa-tdep.c: Likewise.
3612 * hppanbsd-tdep.c: Likewise.
3613 * hppaobsd-tdep.c: Likewise.
3614 * i386-darwin-nat.c: Likewise.
3615 * i386-darwin-tdep.c: Likewise.
3616 * i386-nto-tdep.c: Likewise.
3617 * i386-tdep.c: Likewise.
3618 * i386bsd-nat.c: Likewise.
3619 * i386fbsd-tdep.c: Likewise.
3620 * i386gnu-nat.c: Likewise.
3621 * i386nbsd-tdep.c: Likewise.
3622 * i386obsd-tdep.c: Likewise.
3623 * i387-tdep.c: Likewise.
3624 * ia64-libunwind-tdep.c: Likewise.
3625 * ia64-tdep.c: Likewise.
3626 * inf-ptrace.c: Likewise.
3627 * inf-ttrace.c: Likewise.
3628 * infcall.c: Likewise.
3629 * infcmd.c: Likewise.
3630 * infrun.c: Likewise.
3631 * inline-frame.c: Likewise.
3632 * interps.c: Likewise.
3633 * jv-lang.c: Likewise.
3634 * jv-typeprint.c: Likewise.
3635 * linux-fork.c: Likewise.
3636 * linux-nat.c: Likewise.
3637 * linux-thread-db.c: Likewise.
3638 * m32c-tdep.c: Likewise.
3639 * m32r-linux-nat.c: Likewise.
3640 * m32r-tdep.c: Likewise.
3641 * m68k-tdep.c: Likewise.
3642 * m68kbsd-nat.c: Likewise.
3643 * m68kbsd-tdep.c: Likewise.
3644 * m88k-tdep.c: Likewise.
3645 * machoread.c: Likewise.
3646 * macroexp.c: Likewise.
3647 * macrotab.c: Likewise.
3648 * maint.c: Likewise.
3649 * mdebugread.c: Likewise.
3650 * memory-map.c: Likewise.
3651 * mep-tdep.c: Likewise.
3652 * mi/mi-common.c: Likewise.
3653 * microblaze-tdep.c: Likewise.
3654 * mingw-hdep.c: Likewise.
3655 * mips-linux-nat.c: Likewise.
3656 * mips-linux-tdep.c: Likewise.
3657 * mips-tdep.c: Likewise.
3658 * mips64obsd-tdep.c: Likewise.
3659 * mipsnbsd-tdep.c: Likewise.
3660 * mn10300-linux-tdep.c: Likewise.
3661 * mn10300-tdep.c: Likewise.
3662 * moxie-tdep.c: Likewise.
3663 * mt-tdep.c: Likewise.
3664 * nat/linux-btrace.c: Likewise.
3665 * nat/linux-osdata.c: Likewise.
3666 * nat/linux-ptrace.c: Likewise.
3667 * nat/mips-linux-watch.c: Likewise.
3668 * nios2-linux-tdep.c: Likewise.
3669 * nios2-tdep.c: Likewise.
3670 * objc-lang.c: Likewise.
3671 * objfiles.c: Likewise.
3672 * obsd-nat.c: Likewise.
3673 * opencl-lang.c: Likewise.
3674 * osabi.c: Likewise.
3675 * parse.c: Likewise.
3676 * ppc-linux-nat.c: Likewise.
3677 * ppc-sysv-tdep.c: Likewise.
3678 * ppcfbsd-nat.c: Likewise.
3679 * ppcfbsd-tdep.c: Likewise.
3680 * ppcnbsd-nat.c: Likewise.
3681 * ppcnbsd-tdep.c: Likewise.
3682 * ppcobsd-nat.c: Likewise.
3683 * ppcobsd-tdep.c: Likewise.
3684 * printcmd.c: Likewise.
3685 * procfs.c: Likewise.
3686 * prologue-value.c: Likewise.
3687 * psymtab.c: Likewise.
3688 * python/py-lazy-string.c: Likewise.
3689 * python/py-value.c: Likewise.
3690 * regcache.c: Likewise.
3691 * reggroups.c: Likewise.
3692 * registry.c: Likewise.
3693 * remote-sim.c: Likewise.
3694 * remote.c: Likewise.
3695 * rs6000-aix-tdep.c: Likewise.
3696 * rs6000-tdep.c: Likewise.
3697 * s390-linux-tdep.c: Likewise.
3698 * score-tdep.c: Likewise.
3699 * ser-base.c: Likewise.
3700 * ser-mingw.c: Likewise.
3701 * sh-tdep.c: Likewise.
3702 * sh64-tdep.c: Likewise.
3703 * solib-darwin.c: Likewise.
3704 * solib-spu.c: Likewise.
3705 * solib-svr4.c: Likewise.
3706 * source.c: Likewise.
3707 * sparc-nat.c: Likewise.
3708 * sparc-sol2-tdep.c: Likewise.
3709 * sparc-tdep.c: Likewise.
3710 * sparc64-sol2-tdep.c: Likewise.
3711 * sparc64-tdep.c: Likewise.
3712 * sparc64fbsd-tdep.c: Likewise.
3713 * sparc64nbsd-tdep.c: Likewise.
3714 * sparc64obsd-tdep.c: Likewise.
3715 * sparcnbsd-tdep.c: Likewise.
3716 * sparcobsd-tdep.c: Likewise.
3717 * spu-multiarch.c: Likewise.
3718 * spu-tdep.c: Likewise.
3719 * stabsread.c: Likewise.
3720 * stack.c: Likewise.
3721 * symfile.c: Likewise.
3722 * symtab.c: Likewise.
3723 * target-descriptions.c: Likewise.
3724 * target-memory.c: Likewise.
3725 * target.c: Likewise.
3726 * tic6x-linux-tdep.c: Likewise.
3727 * tic6x-tdep.c: Likewise.
3728 * tilegx-linux-nat.c: Likewise.
3729 * tilegx-tdep.c: Likewise.
3731 * tramp-frame.c: Likewise.
3732 * tui/tui-out.c: Likewise.
3733 * tui/tui-winsource.c: Likewise.
3734 * ui-out.c: Likewise.
3735 * user-regs.c: Likewise.
3736 * utils.c: Likewise.
3737 * v850-tdep.c: Likewise.
3738 * valops.c: Likewise.
3739 * value.c: Likewise.
3740 * varobj.c: Likewise.
3741 * vax-nat.c: Likewise.
3742 * xml-syscall.c: Likewise.
3743 * xml-tdesc.c: Likewise.
3744 * xstormy16-tdep.c: Likewise.
3745 * xtensa-linux-nat.c: Likewise.
3746 * xtensa-tdep.c: Likewise.
3748 2014-08-07 Gary Benson <gbenson@redhat.com>
3750 * common/common-defs.h: Include common-utils.h.
3751 * defs.h: Do not include common-utils.h.
3752 * common/gdb_assert.h: Likewise.
3753 * darwin-nat.h: Likewise.
3754 * nat/linux-btrace.c: Likewise.
3755 * target/waitstatus.h: Likewise.
3757 2014-08-07 Gary Benson <gbenson@redhat.com>
3759 * common/common-defs.h: Include ptid.h.
3760 * defs.h: Do not include ptid.h.
3761 * inferior.h: Likewise.
3762 * infrun.h: Likewise.
3763 * nat/linux-btrace.h: Likewise.
3764 * nat/linux-osdata.h: Likewise.
3765 * target/waitstatus.h: Likewise.
3767 2014-08-07 Gary Benson <gbenson@redhat.com>
3769 * common/common-defs.h: Include gdb_locale.h.
3770 * defs.h: Do not include gdb_locale.h.
3772 2014-08-07 Gary Benson <gbenson@redhat.com>
3774 * common/common-defs.h: Include gdb/signals.h.
3775 * defs.h: Do not include gdb/signals.h.
3777 2014-08-07 Gary Benson <gbenson@redhat.com>
3779 * common/common-defs.h: Include pathmax.h.
3780 * defs.h: Do not include pathmax.h.
3782 2014-08-07 Gary Benson <gbenson@redhat.com>
3784 * common/common-defs.h: Include libiberty.h.
3785 * defs.h: Do not include libiberty.h.
3786 * common/queue.h: Likewise.
3787 * cp-name-parser.y: Likewise.
3788 * mi/mi-cmd-catch.c: Likewise.
3789 * python/python.c: Likewise.
3791 2014-08-07 Gary Benson <gbenson@redhat.com>
3793 * common/common-defs.h: Include ansidecl.h.
3794 * defs.h: Do not include ansidecl.h.
3795 * common/buffer.h: Likewise.
3796 * common/common-utils.h: Likewise.
3798 2014-08-07 Gary Benson <gbenson@redhat.com>
3800 * common/common-defs.h: Include stddef.h.
3801 * defs.h: Do not include stddef.h.
3802 * common/common-utils.h: Likewise.
3803 * amd64fbsd-nat.c: Likewise.
3804 * bcache.c: Likewise.
3805 * charset.c: Likewise.
3806 * common/buffer.h: Likewise.
3807 * common/vec.h: Likewise.
3808 * i386bsd-nat.c: Likewise.
3809 * nat/linux-btrace.h: Likewise.
3810 * ppcfbsd-nat.c: Likewise.
3811 * ppcnbsd-tdep.h: Likewise.
3812 * ppcobsd-nat.c: Likewise.
3813 * ppcobsd-tdep.h: Likewise.
3814 * python/py-gdb-readline.c: Likewise.
3816 2014-08-07 Gary Benson <gbenson@redhat.com>
3818 * common/common-defs.h: Include stdarg.h.
3819 * defs.h: Do not include stdarg.h.
3820 * ada-lang.c: Likewise.
3821 * common/common-utils.h: Likewise.
3822 * guile/scm-string.c: Likewise.
3823 * guile/scm-utils.c: Likewise.
3824 * m32c-tdep.c: Likewise.
3826 2014-08-07 Gary Benson <gbenson@redhat.com>
3828 * common/common-defs.h: Include stdlib.h.
3829 * defs.h: Do not include stdlib.h.
3830 * addrmap.c: Likewise.
3831 * bcache.c: Likewise.
3832 * common/buffer.c: Likewise.
3833 * common/common-utils.c: Likewise.
3834 * cp-name-parser.y: Likewise.
3835 * go32-nat.c: Likewise.
3836 * mn10300-linux-tdep.c: Likewise.
3837 * nat/linux-osdata.c: Likewise.
3838 * tui/tui.c: Likewise.
3839 * windows-nat.c: Likewise.
3841 2014-08-07 Gary Benson <gbenson@redhat.com>
3843 * common/common-defs.h: Include stdio.h.
3844 * defs.h: Do not include stdio.h.
3845 * ada-lang.c: Likewise.
3846 * common/buffer.c: Likewise.
3847 * common/common-utils.c: Likewise.
3848 * cp-name-parser.y: Likewise.
3849 * gnu-nat.c: Likewise.
3850 * go32-nat.c: Likewise.
3851 * i386gnu-nat.c: Likewise.
3852 * proc-api.c: Likewise.
3853 * proc-events.c: Likewise.
3854 * proc-flags.c: Likewise.
3855 * proc-why.c: Likewise.
3856 * python/python-internal.h: Likewise.
3857 * target-memory.c: Likewise.
3858 * tui/tui-io.c: Likewise.
3859 * tui/tui.c: Likewise.
3861 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3863 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3864 (scan_dyntag_auxv): Same.
3866 2014-08-06 Yao Qi <yao@codesourcery.com>
3868 * amd64-linux-nat.c: Remove duplicated include
3870 * i386-linux-nat.c: Likewise.
3872 2014-08-06 Yao Qi <yao@codesourcery.com>
3874 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3875 operand" with "Special opcode" in comments.
3877 2014-08-05 Gary Benson <gbenson@redhat.com>
3879 * interps.c (initialize_interps): Remove prototype.
3880 (interpreter_initialized): Remove static global.
3881 (interp_add): Do not call initialize_interps.
3882 (initialize_interps): Remove function.
3884 2014-08-05 Gary Benson <gbenson@redhat.com>
3886 * utils.c (vwarning): Remove spurious va_end.
3888 2014-08-05 Alan Modra <amodra@gmail.com>
3890 * charset.c (convert_between_encodings): Cast result of obstack_base.
3891 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3892 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3893 (read_unwind_info): Use size_t for some locals.
3894 * jit.c (finalize_symtab): Likewise.
3895 * utils.c (hashtab_obstack_allocate): Likewise.
3896 * symmisc.c (print_objfile_statistics): Update format strings.
3898 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3900 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3901 (Changes in GDB 7.8): ... here.
3903 2014-08-04 Tom Tromey <tromey@redhat.com>
3905 * target.c (set_targetdebug): New function.
3906 (initialize_targets): Pass set_targetdebug when creating "set
3909 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3911 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3912 if detecting a variable-sized field that is not the last field.
3913 Fix struct type length computation.
3915 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3917 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3920 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3922 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3923 Remove "+ 8" offset in computation of CHAIN_VMA.
3925 2014-07-31 Doug Evans <dje@google.com>
3927 * inflow.c (child_terminal_inferior): Add comment.
3928 (child_terminal_ours_for_output): Add comment.
3929 (child_terminal_ours): Add comment.
3930 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3931 (linux_nat_terminal_ours): Add comment.
3933 2014-07-31 Gary Benson <gbenson@redhat.com>
3935 * common/btrace-common.h: Do not include defs.h or server.h.
3936 * nat/mips-linux-watch.h: Likewise.
3937 * gdb-dlfcn.h: Do not include defs.h.
3938 * tracefile.h: Likewise.
3940 2014-07-30 Roland McGrath <mcgrathr@google.com>
3942 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3944 2014-07-30 Tom Tromey <tromey@redhat.com>
3946 * bsd-kvm.c (bsd_kvm_open): Constify.
3947 * corelow.c (core_open): Constify.
3948 * ctf.c (ctf_open): Constify.
3949 * dbug-rom.c (dbug_open): Constify.
3950 * exec.c (exec_open): Constify.
3951 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3952 * microblaze-rom.c (picobug_open): Constify.
3953 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3955 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3956 * record-btrace.c (record_btrace_open): Constify.
3957 * record-full.c (record_full_core_open_1, record_full_open_1)
3958 (record_full_open): Constify.
3959 * remote-m32r-sdi.c (m32r_open): Constify.
3960 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3961 (rockhopper_open, lsi_open): Constify.
3962 * remote-sim.c (gdbsim_open): Constify.
3963 * remote.c (remote_open, extended_remote_open, remote_open_1):
3965 * target.h (struct target_ops) <to_open>: Make "arg" const.
3966 * tracefile-tfile.c (tfile_open): Constify.
3968 2014-07-30 Tom Tromey <tromey@redhat.com>
3970 * breakpoint.c (map_breakpoint_numbers): Update.
3971 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3972 (get_number_const): New function.
3973 (get_number): Rewrite using get_number_const.
3974 (init_number_or_range): Make "string" const.
3975 (number_is_in_list): Make "list" const.
3976 * cli/cli-utils.h (get_number_const): Declare.
3977 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3978 (init_number_or_range, number_is_in_list): Update.
3979 * printcmd.c (map_display_numbers): Update.
3980 * value.c (value_from_history_ref): Constify.
3981 * value.h (value_from_history_ref): Update.
3983 2014-07-30 Tom Tromey <tromey@redhat.com>
3985 * corefile.c (hook_type, call_extra_exec_file_hooks)
3986 (specify_exec_file_hook): Constify.
3987 * exec.c (exec_file_attach): Make "filename" const.
3988 * gdbcore.h (deprecated_exec_file_display_hook)
3989 (specify_exec_file_hook, exec_file_attach): Constify.
3990 * main.c (captured_main): Use catch_command_errors_const.
3992 2014-07-30 Tom Tromey <tromey@redhat.com>
3994 * target.c (open_target): New function.
3995 (add_target_with_completer, add_deprecated_target_alias): Use
3996 set_cmd_sfunc, set_cmd_context.
3997 (debug_to_open): Remove.
3998 (setup_target_debug): Update.
4000 2014-07-30 Yao Qi <yao@codesourcery.com>
4002 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4004 * parse.c (exp_iterate): Update comments.
4006 2014-07-30 Gary Benson <gbenson@redhat.com>
4008 * common/common-defs.h: New file.
4009 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4010 * defs.h: Include common-defs.h.
4011 Do not include config.h or build-gnulib/config.h.
4013 2014-07-30 Gary Benson <gbenson@redhat.com>
4015 * common/common-utils.h: Do not include config.h.
4016 * nat/linux-btrace.h: Likewise.
4018 2014-07-30 Gary Benson <gbenson@redhat.com>
4020 * btrace.c: Include defs.h.
4021 * common/ptid.c: Include defs.h or server.h as appropriate.
4022 * nat/mips-linux-watch.c: Likewise.
4024 2014-07-29 Tom Tromey <tromey@redhat.com>
4026 * target.c (target_is_pushed): Simplify.
4028 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4032 2014-07-29 Yao Qi <yao@codesourcery.com>
4035 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4037 2014-07-28 Doug Evans <xdje42@gmail.com>
4040 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4041 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4044 2014-07-28 Will Newton <will.newton@linaro.org>
4046 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4047 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4048 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4049 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4050 (THUMB2_EABI_SYSCALL): Likewise.
4051 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4053 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4054 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4056 2014-07-27 Doug Evans <xdje42@gmail.com>
4058 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4060 2014-07-27 Doug Evans <xdje42@gmail.com>
4062 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4064 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4065 Doug Evans <xdje42@gmail.com>
4068 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4069 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4070 * configure.ac: Try to use guild to compile an scm file, if it fails
4071 then disable guile support.
4072 * configure: Regenerate.
4073 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4075 (GUILE_COMPILED_FILES): New variable.
4076 (GUILE_FILES) Update.
4077 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4078 (stamp-guile): Compile scm files.
4079 * guile/guile.c (boot_guile_support): New function.
4080 (standard_throw_args_p): New function.
4081 (print_standard_throw_error, print_throw_error): New functions.
4082 (handle_boot_error): New function.
4083 (initialize_scheme_side): Rewrite to call boot_guile_support.
4084 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4085 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4087 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4088 Doug Evans <xdje42@gmail.com>
4091 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4092 * guile/lib/gdb/support.scm: New file.
4093 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4094 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4096 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4098 (%assert-type): Ditto, and renamed to assert-type.
4099 (%exception-print-style): Delete.
4101 2014-07-26 Doug Evans <xdje42@gmail.com>
4104 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4105 * configure: Regenerate.
4106 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4108 (PYTHON_FILES): New variable.
4109 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4110 (GUILE_FILES): New variable.
4111 (stamp-python, install-python, uninstall-python): Handle empty
4113 (stamp-guile, install-guile, uninstall-guile): Ditto.
4115 2014-07-26 Doug Evans <xdje42@gmail.com>
4118 * guile/lib/gdb.scm (pretty-printers): Export.
4119 (set-pretty-printers!): Export.
4120 * guile/lib/gdb/printing.scm (gdb module): Update.
4121 (prepend-pretty-printer!, append-pretty-printer!): Update.
4122 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4123 (pretty_printer_list_var): Delete.
4124 (pretty_printer_list): New static global.
4125 (gdbscm_pretty_printers): New function.
4126 (gdbscm_set_pretty_printers_x): New function.
4127 (ppscm_find_pretty_printer_from_gdb): Update.
4128 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4129 (gdbscm_initialize_pretty_printers): Update.
4131 2014-07-26 Doug Evans <xdje42@gmail.com>
4134 * configure.ac: Add check for header gc/gc.h.
4135 Add check for function setenv.
4136 * configure: Regenerate.
4137 * config.in: Regenerate.
4138 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4140 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4142 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4143 variation in gdbarch matching.
4145 2014-07-25 Tom Tromey <tromey@redhat.com>
4147 * exec.c (using_exec_ops): Remove.
4148 (exec_close_1): Update. Remove extraneous block, reindent.
4149 (add_target_sections): Use target_is_pushed.
4151 2014-07-25 Pedro Alves <palves@redhat.com>
4153 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4154 * monitor.c (monitor_create_inferior): Likewise.
4155 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4156 * remote-sim.c (gdbsim_create_inferior): Likewise.
4157 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4158 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4159 * windows-nat.c (do_initial_windows_stuff): Likewise.
4161 2014-07-25 Pedro Alves <palves@redhat.com>
4163 * NEWS: Mention signal passing and "signal" command changes.
4164 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4166 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4168 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4169 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4170 (jump_command): Adjust clear_proceed_status call.
4171 (signal_command): Warn if other thread that are resumed have
4172 signals that will be delivered. Adjust clear_proceed_status call.
4173 (until_next_command, finish_command)
4174 (proceed_after_attach_callback, attach_command_post_wait)
4175 (attach_command): Adjust clear_proceed_status call.
4176 * infrun.c (proceed_after_vfork_done): Likewise.
4177 (proceed_after_attach_callback): Adjust comment.
4178 (clear_proceed_status_thread): Clear stop_signal if not in pass
4180 (clear_proceed_status_callback): Delete.
4181 (clear_proceed_status): New 'step' parameter. Only clear the
4182 proceed status of threads the command being prepared is about to
4184 (proceed): If passed in an explicit signal, override stop_signal
4185 with it. Don't pass the last stop signal to the thread we're
4187 (init_wait_for_inferior): Adjust clear_proceed_status call.
4188 (switch_back_to_stepped_thread): Clear the signal if it should not
4190 * infrun.h (clear_proceed_status): New 'step' parameter.
4191 (user_visible_resume_ptid): Add comment.
4192 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4193 signal is in pass state.
4194 * remote.c (append_pending_thread_resumptions): Likewise.
4195 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4197 2014-07-25 Tom Tromey <tromey@redhat.com>
4199 * target.h (target_stopped_data_address)
4200 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4203 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4205 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4207 (avr_pointer_to_address): Likewise.
4209 2014-07-24 Tom Tromey <tromey@redhat.com>
4211 * monitor.c (compile_pattern): Update.
4212 * target.h (struct target_ops) <to_shortname, to_longname,
4215 2014-07-24 Tom Tromey <tromey@redhat.com>
4217 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4218 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4219 (add_info_alias, add_com): Make "doc" const.
4220 (print_doc_line): Make "str" const.
4221 (delete_cmd): Update.
4222 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4223 (print_doc_line): Update.
4224 * cli/cli-script.c (document_command): Update.
4225 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4226 (add_com, add_info, add_info_alias): Update.
4227 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4228 * python/py-cmd.c (cmdpy_destroyer): Update.
4230 2014-07-24 Tom Tromey <tromey@redhat.com>
4232 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4233 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4234 (help_cmd_list): Constify.
4235 (lookup_cmd): Update.
4236 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4238 (help_cmd_list, apropos_cmd): Update.
4239 * cli/cli-script.c (show_user): Update.
4240 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4241 * cli/cli-setshow.h (cmd_show_list): Update.
4242 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4243 (cmd_show_list): Update.
4244 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4245 * python/py-cmd.c (cmdpy_destroyer): Update.
4247 2014-07-24 Tom Tromey <tromey@redhat.com>
4249 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4250 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4252 * command.h (deprecate_cmd): Update.
4253 * maint.c (maintenance_do_deprecate): Add casts.
4255 2014-07-24 Tom Tromey <tromey@redhat.com>
4257 * cli/cli-decode.c (help_cmd): Make parameter "const".
4258 * cli/cli-decode.h (help_cmd): Update.
4260 2014-07-24 Tom Tromey <tromey@redhat.com>
4262 * stack.c (up_silently_base, down_silently_base): Make argument
4265 2014-07-24 Tom Tromey <tromey@redhat.com>
4267 * solib.c (solib_add): Make "pattern" const.
4268 * solib.h (solib_add): Update.
4270 2014-07-24 Tom Tromey <tromey@redhat.com>
4272 * remote.c (remote_serial_open, print_packet, putpkt)
4273 (putpkt_binary): Constify.
4274 * remote.h (putpkt): Update.
4276 2014-07-24 Tom Tromey <tromey@redhat.com>
4278 * monitor.c (monitor_open): Make "args" const.
4279 * monitor.h (monitor_open): Update.
4281 2014-07-24 Tom Tromey <tromey@redhat.com>
4283 * maint.c (match_bfd_flags): Make "string" const.
4284 (print_bfd_section_info): Remove casts.
4285 (print_objfile_section_info): Make "string" const.
4287 2014-07-24 Tom Tromey <tromey@redhat.com>
4289 * inf-child.c (inf_child_open_target): Make "arg" const.
4290 * inf-child.h (inf_child_open_target): Update.
4292 2014-07-24 Tom Tromey <tromey@redhat.com>
4294 * environ.c (unset_in_environ): Make "var" const.
4295 * environ.h (unset_in_environ): Update.
4297 2014-07-24 Tom Tromey <tromey@redhat.com>
4299 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4301 (scan_filename_with_cleanup): Likewise.
4302 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4303 Make arguments const.
4304 (restore_command): Update.
4306 2014-07-24 Pedro Alves <palves@redhat.com>
4308 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4310 2014-07-24 Tom Tromey <tromey@redhat.com>
4311 Gary Benson <gbenson@redhat.com>
4313 * nat/linux-ptrace.c (additional_flags): New global.
4314 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4315 additional_flags; don't check GDBSERVER.
4316 (linux_ptrace_set_additional_flags): New function.
4317 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4319 * linux-nat.c (_initialize_linux_nat): Call
4320 linux_ptrace_set_additional_flags.
4322 2014-07-24 Tom Tromey <tromey@redhat.com>
4324 * make-target-delegates (munge_type, write_debugmethod): New
4326 (debug_names): New global.
4327 ($TARGET_DEBUG_PRINTER): New global.
4328 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4330 Write debug methods. Generate init_debug_target.
4331 * target-debug.h: New file.
4332 * target-delegates.c: Rebuild.
4333 * target.c: Include target-debug.h.
4334 (debug_target): Hoist definition.
4335 (target_kill, target_get_section_table, target_memory_map)
4336 (target_flash_erase, target_flash_done, target_detach)
4337 (target_disconnect, target_wait, target_resume)
4338 (target_pass_signals, target_program_signals, target_follow_fork)
4339 (target_mourn_inferior, target_search_memory)
4340 (target_thread_address_space, target_close)
4341 (target_find_new_threads, target_core_of_thread)
4342 (target_verify_memory, target_insert_mask_watchpoint)
4343 (target_remove_mask_watchpoint): Remove targetdebug code.
4344 (debug_to_post_attach, debug_to_prepare_to_store)
4345 (debug_to_files_info, debug_to_insert_breakpoint)
4346 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4347 (debug_to_region_ok_for_hw_watchpoint)
4348 (debug_to_can_accel_watchpoint_condition)
4349 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4350 (debug_to_watchpoint_addr_within_range)
4351 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4352 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4353 (debug_to_terminal_init, debug_to_terminal_inferior)
4354 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4355 (debug_to_terminal_save_ours, debug_to_terminal_info)
4356 (debug_to_load, debug_to_post_startup_inferior)
4357 (debug_to_insert_fork_catchpoint)
4358 (debug_to_remove_fork_catchpoint)
4359 (debug_to_insert_vfork_catchpoint)
4360 (debug_to_remove_vfork_catchpoint)
4361 (debug_to_insert_exec_catchpoint)
4362 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4363 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4364 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4365 (setup_target_debug): Call init_debug_target.
4366 * target.h (TARGET_DEBUG_PRINTER): New macro.
4367 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4368 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4370 2014-07-24 Gary Benson <gbenson@redhat.com>
4372 * exceptions.h (throw_vfatal): Renamed to...
4373 (throw_vquit): New declaration.
4374 (throw_quit): Likewise.
4375 * exceptions.c (throw_vfatal): Renamed to...
4376 (throw_vquit): New function.
4377 (throw_quit): Likewise.
4378 (throw_error): Call throw_verror rather than throw_it.
4379 * utils.h (vfatal): Removed.
4381 * utils.c (vfatal): Removed.
4383 (internal_verror): Replaced call to fatal with call to throw_quit.
4384 (quit): Replaced calls to fatal with calls to throw_quit.
4386 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4388 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4391 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4393 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4394 less than zero in conditional expression.
4396 2014-07-23 Tom Tromey <tromey@redhat.com>
4398 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4399 ($INTRO_PART): Don't match whitespace.
4400 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4402 ($METHOD): Add $METHOD_TRAILER.
4404 (scan_target_h): New sub.
4405 Change main loop not to collect state.
4406 * target-delegates.c: Rebuild.
4408 2014-07-23 Gary Benson <gbenson@redhat.com>
4410 * cp-support.c (gdb_demangle): Fix build on systems without
4413 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4415 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4416 for reference entry value target data value.
4418 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4420 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4421 value_available_contents_eq.
4423 2014-07-22 Pedro Alves <palves@redhat.com>
4425 * value.c (allocate_optimized_out_value): Don't mark value as
4428 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4430 * MAINTAINERS (Write After Approval): Update my email address.
4432 2014-07-20 Doug Evans <dje@google.com>
4435 * remote.c (putpkt_binary): Add text to error message.
4437 2014-07-20 Yao Qi <yao@codesourcery.com>
4439 * eval.c: Remove "Chill" from comments.
4440 * gdbtypes.h: Likewise.
4441 * symtab.h: Likewise.
4443 2014-07-20 Yao Qi <yao@codesourcery.com>
4445 * std-operator.def: Update comments to TERNOP_SLICE.
4447 2014-07-20 Yao Qi <yao@codesourcery.com>
4449 * std-operator.def: Remove BINOP_RANGE.
4450 * breakpoint.c (watchpoint_exp_is_const): Update.
4451 * expprint.c (dump_subexp_body_standard): Likewise.
4452 * eval.c (init_array_element): Remove dead code.
4453 (evaluate_subexp_standard): Likewise.
4455 2014-07-20 Yao Qi <yao@codesourcery.com>
4457 * std-operator.def: Remove BINOP_IN.
4458 * breakpoint.c (watchpoint_exp_is_const): Update.
4459 * eval.c (evaluate_subexp_standard): Likewise.
4460 * expprint.c (dump_subexp_body_standard): Likewise.
4462 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4464 * microblaze-tdep.c (microblaze_register_names): Add
4465 the rshr and rslr register names.
4466 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4467 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4468 Use of tdesc_numbered_register. Use of
4469 microblaze_register_g_packet_guesses. Use of
4470 tdesc_use_registers. Use of set_gdbarch_register_type.
4471 (microblaze_register_g_packet_guesses): New.
4472 * microblaze-tdep.h (microblaze_reg_num): Add
4473 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4474 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4475 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4476 * features/microblaze-core.xml: New file.
4477 * features/microblaze-stack-protect.xml: New file.
4478 * features/microblaze-with-stack-protect.c: New file.
4479 * features/microblaze-with-stack-protect.xml: New file.
4480 * features/microblaze.xml: New file.
4481 * features/microblaze.c: New file.
4482 * features/Makefile (microblaze-with-stack-protect): Add
4483 microblaze-with-stack-protect microblaze and microblaze-expedite.
4484 * regformats/microblaze-with-stack-protect.dat: New file.
4485 * regformats/microblaze.dat: New file.
4486 * doc/gdb.texinfo (MicroBlaze Features): Added.
4488 2014-07-18 Tom Tromey <tromey@redhat.com>
4490 * exec.c (exec_ops): Now static.
4491 * exec.h (exec_ops): Don't declare.
4493 2014-07-18 Tom Tromey <tromey@redhat.com>
4495 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4496 to find_target_beneath.
4497 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4498 find_target_beneath.
4499 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4501 2014-07-18 Tom Tromey <tromey@redhat.com>
4504 * utils.c (quit): Use target_supports_terminal_ours.
4505 * target.h (target_supports_terminal_ours): Declare.
4506 * target.c (target_supports_delete_record): Don't check
4507 to_delete_record against NULL.
4508 (target_supports_terminal_ours): New function.
4510 2014-07-18 Tom Tromey <tromey@redhat.com>
4513 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4514 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4515 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4516 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4517 * windows-nat.c (windows_xfer_partial): Always delegate.
4518 * record-btrace.c (record_btrace_xfer_partial): Simplify
4520 (record_btrace_fetch_registers, record_btrace_store_registers)
4521 (record_btrace_prepare_to_store, record_btrace_resume)
4522 (record_btrace_wait, record_btrace_find_new_threads)
4523 (record_btrace_thread_alive): Likewise.
4524 * procfs.c (procfs_xfer_partial): Always delegate.
4525 * corelow.c (core_xfer_partial): Always delegate.
4526 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4528 2014-07-18 Tom Tromey <tromey@redhat.com>
4530 * exec.c (exec_make_note_section): Move earlier.
4532 2014-07-17 Doug Evans <dje@google.com>
4535 * maint.c (count_symtabs_and_blocks): Handle NULL
4536 current_program_space.
4537 (report_command_stats): Check global enabled flag in addition to
4538 recorded enabled flag.
4539 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4541 2014-07-16 Pedro Alves <palves@redhat.com>
4543 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4545 2014-07-16 Tom Tromey <tromey@redhat.com>
4547 * target.h (struct target_ops) <to_delete_record>: Reformat
4550 2014-07-16 Tom Tromey <tromey@redhat.com>
4552 * target-delegates.c: Rebuild.
4554 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4556 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4557 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4558 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4559 (avr_pointer_to_address): Likewise.
4560 (avr_address_class_type_flags): New function.
4561 (avr_address_class_type_flags_to_name): Likewise.
4562 (avr_address_class_name_to_type_flags): Likewise.
4563 (avr_gdbarch_init): Set address_class_type_flags,
4564 address_class_type_flags_to_name and
4565 address_class_name_to_type_flags.
4567 2014-07-15 Pedro Alves <palves@redhat.com>
4569 * linux-nat.c (kill_callback): Save errno and work with saved
4572 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4574 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4576 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4578 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4579 breakpoint support correctly.
4581 2014-07-14 Pedro Alves <palves@redhat.com>
4583 * utils.c (prompt_for_continue): Call target_terminal_ours.
4585 2014-07-14 Pedro Alves <palves@redhat.com>
4587 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4588 catch_errors. Don't re-enable stdin or notify observers where,
4590 (fetch_inferior_event_wrapper): Delete.
4592 2014-07-14 Pedro Alves <palves@redhat.com>
4595 * top.c: Include "inf-loop.h".
4596 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4598 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4600 (gdb_readline_wrapper): Store whether the target is async, and
4603 2014-07-14 Pedro Alves <palves@redhat.com>
4606 * top.c (gdb_readline_wrapper_line): Tweak comment.
4607 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4608 the input handler callback.
4610 2014-07-14 Pedro Alves <palves@redhat.com>
4613 * main.c: Include event-top.h.
4614 (handle_command_errors): New function.
4615 (catch_command_errors, catch_command_errors_const): Use it.
4617 2014-07-14 Pedro Alves <palves@redhat.com>
4619 * exceptions.c (catch_command_errors, catch_command_errors_const):
4621 * exceptions.h (catch_command_errors_ftype)
4622 (catch_command_errors_const_ftype): Moved to main.c.
4623 (catch_command_errors, catch_command_errors_const): Delete
4625 * main.c (catch_command_errors_ftype)
4626 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4627 (catch_command_errors, catch_command_errors_const)): Moved here
4628 from exceptions.c and make static.
4630 2014-07-14 Pedro Alves <palves@redhat.com>
4632 * exceptions.c (print_any_exception): Delete.
4633 (catch_exceptions_with_msg): Use exception_print instead of
4634 print_any_exception.
4635 (catch_errors): Use exception_fprintf instead of
4636 print_any_exception.
4637 (catch_command_errors, catch_command_errors_const): Use
4638 exception_print instead of print_any_exception.
4640 2014-07-14 Pedro Alves <palves@redhat.com>
4642 * infcall.c (run_inferior_call): Set 'sync_execution' while
4643 running the inferior call.
4645 2014-07-14 Pedro Alves <palves@redhat.com>
4647 * value.c (value_contents_equal): Delete function.
4648 * value.h (value_contents_equal): Delete declaration.
4650 2014-07-14 Tom Tromey <tromey@redhat.com>
4653 * gdbtypes.c (is_dynamic_type_internal): New function, from
4655 (is_dynamic_type): Rewrite.
4656 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4657 (resolve_dynamic_struct): Likewise.
4658 (resolve_dynamic_type_internal): New function, from
4659 resolve_dynamic_type.
4660 (resolve_dynamic_type): Rewrite.
4662 2014-07-14 Tom Tromey <tromey@redhat.com>
4664 * target.c (target_require_runnable): Also check record_stratum.
4667 2014-07-11 Yao Qi <yao@codesourcery.com>
4669 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4670 thumb_instruction_restores_sp return true.
4672 2014-07-11 Yao Qi <yao@codesourcery.com>
4674 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4675 (thumb_in_function_epilogue_p): Call
4676 thumb_instruction_restores_sp.
4678 2014-07-11 Yao Qi <yao@codesourcery.com>
4680 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4682 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4684 2014-07-11 Gary Benson <gbenson@redhat.com>
4686 * amd64-linux-nat.c (gdbcore.h): Remove include.
4687 (regset.h): Likewise.
4688 (nat/linux-btrace.h): Likewise.
4689 (btrace.h): Likewise.
4690 (gdb_assert.h): Likewise.
4691 (string.h): Likewise.
4692 (sys/uio.h): Likewise.
4693 (sys/debugreg.h): Likewise.
4694 (sys/syscall.h): Likewise.
4695 (sys/procfs.h): Likewise.
4696 (sys/user.h): Likewise.
4697 (asm/ptrace.h): Likewise.
4698 (i386-nat.h): Likewise.
4699 * i386-linux-nat.c (i386-nat.h): Likewise.
4700 (regset.h): Likewise.
4701 (target.h): Likewise.
4702 (linux-nat.h): Likewise.
4703 (nat/linux-btrace.h): Likewise.
4704 (btrace.h): Likewise.
4705 (gdb_assert.h): Likewise.
4706 (string.h): Likewise.
4707 (sys/uio.h): Likewise.
4708 (sys/user.h): Likewise.
4709 (sys/procfs.h): Likewise.
4710 (sys/reg.h): Likewise.
4711 (sys/debugreg.h): Likewise.
4712 (ORIG_EAX): Remove definition.
4714 2014-07-11 Gary Benson <gbenson@redhat.com>
4716 * i386-linux-nat.h: New file.
4717 * x86-linux-nat.h: Likewise.
4718 * x86-linux-nat.c: Likewise.
4719 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4720 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4721 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4722 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4723 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4724 (PTRACE_SETREGSET): Likewise.
4725 (arch_lwp_info): Now in x86-linux-nat.c.
4726 (have_ptrace_getregset): Now in x86-linux-nat.h.
4727 (x86_linux_dr_get): Now in x86-linux-nat.c.
4728 (x86_linux_dr_set): Likewise.
4729 (x86_linux_dr_get_addr): Likewise.
4730 (x86_linux_dr_get_control): Likewise.
4731 (x86_linux_dr_get_status): Likewise.
4732 (update_debug_registers_callback): Likewise.
4733 (x86_linux_dr_set_control): Likewise.
4734 (x86_linux_dr_set_addr): Likewise.
4735 (x86_linux_prepare_to_resume): Likewise.
4736 (x86_linux_new_thread): Likewise.
4737 (x86_linux_new_fork): Likewise.
4738 (x86_linux_get_thread_area): Likewise.
4739 (super_post_startup_inferior): Likewise.
4740 (x86_linux_child_post_startup_inferior): Likewise.
4741 (AMD64_LINUX_USER64_CS): Likewise.
4742 (AMD64_LINUX_X32_DS): Likewise.
4743 (x86_linux_read_description): Likewise.
4744 (x86_linux_enable_btrace): Likewise.
4745 (x86_linux_disable_btrace): Likewise.
4746 (x86_linux_teardown_btrace): Likewise.
4747 (x86_linux_read_btrace): Likewise.
4748 (x86_linux_create_target): Likewise.
4749 (x86_linux_add_target): Likewise.
4750 * i386-linux-nat.c (x86-linux-nat.h): New include.
4751 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4752 (PTRACE_SETREGSET): Likewise.
4753 (arch_lwp_info): Now in x86-linux-nat.c.
4754 (have_ptrace_getregset): Now in x86-linux-nat.h.
4755 (x86_linux_dr_get): Now in x86-linux-nat.c.
4756 (x86_linux_dr_set): Likewise.
4757 (x86_linux_dr_get_addr): Likewise.
4758 (x86_linux_dr_get_control): Likewise.
4759 (x86_linux_dr_get_status): Likewise.
4760 (update_debug_registers_callback): Likewise.
4761 (x86_linux_dr_set_control): Likewise.
4762 (x86_linux_dr_set_addr): Likewise.
4763 (x86_linux_prepare_to_resume): Likewise.
4764 (x86_linux_new_thread): Likewise.
4765 (x86_linux_new_fork): Likewise.
4766 (x86_linux_get_thread_area): Likewise.
4767 (super_post_startup_inferior): Likewise.
4768 (x86_linux_child_post_startup_inferior): Likewise.
4769 (AMD64_LINUX_USER64_CS): Likewise.
4770 (AMD64_LINUX_X32_DS): Likewise.
4771 (x86_linux_read_description): Likewise.
4772 (x86_linux_enable_btrace): Likewise.
4773 (x86_linux_disable_btrace): Likewise.
4774 (x86_linux_teardown_btrace): Likewise.
4775 (x86_linux_read_btrace): Likewise.
4776 (x86_linux_create_target): Likewise.
4777 (x86_linux_add_target): Likewise.
4779 2014-07-11 Gary Benson <gbenson@redhat.com>
4781 * amd64-linux-nat.c: Comment and whitespace changes.
4782 * i386-linux-nat.c: Comment and whitespace changes.
4784 2014-07-11 Gary Benson <gbenson@redhat.com>
4786 * amd64-linux-nat.c (x86_linux_create_target): New function.
4787 (x86_linux_add_target): Likewise.
4788 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4789 * i386-linux-nat.c (x86_linux_create_target): New function.
4790 (x86_linux_add_target): Likewise.
4791 (_initialize_i386_linux_nat): Delegate to the above new functions.
4793 2014-07-11 Gary Benson <gbenson@redhat.com>
4795 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4796 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4797 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4798 (ps_get_thread_area): Delegate to the above.
4800 2014-07-11 Gary Benson <gbenson@redhat.com>
4802 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4803 x86_linux_read_description. All uses updated. amd64-specific
4804 code conditionalized. Conditionalized i386-specific code added.
4805 Redundant cast removed.
4806 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4807 x86_linux_read_description. All uses updated. i386-specific
4808 code conditionalized. Conditionalized amd64-specific code added.
4809 One sizeof replaced with the actual type it is describing.
4811 2014-07-11 Gary Benson <gbenson@redhat.com>
4813 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4814 x86_linux_dr_get. All uses updated.
4815 (amd64_linux_dr_set): Renamed to
4816 x86_linux_dr_set. All uses updated.
4817 (amd64_linux_dr_get_addr): Renamed to
4818 x86_linux_dr_get_addr. All uses updated.
4819 (amd64_linux_dr_get_control): Renamed to
4820 x86_linux_dr_get_control. All uses updated.
4821 (amd64_linux_dr_get_status): Renamed to
4822 x86_linux_dr_get_status. All uses updated.
4823 (amd64_linux_dr_set_control): Renamed to
4824 x86_linux_dr_set_control. All uses updated.
4825 (amd64_linux_dr_set_addr): Renamed to
4826 x86_linux_dr_set_addr. All uses updated.
4827 (amd64_linux_prepare_to_resume): Renamed to
4828 x86_linux_prepare_to_resume. All uses updated.
4829 (amd64_linux_new_thread): Renamed to
4830 x86_linux_new_thread. All uses updated.
4831 (amd64_linux_new_fork): Renamed to
4832 x86_linux_new_fork. All uses updated.
4833 (amd64_linux_child_post_startup_inferior): Renamed to
4834 x86_linux_child_post_startup_inferior. All uses updated.
4835 (amd64_linux_enable_btrace): Renamed to
4836 x86_linux_enable_btrace. All uses updated.
4837 (amd64_linux_disable_btrace): Renamed to
4838 x86_linux_disable_btrace. All uses updated.
4839 (amd64_linux_teardown_btrace): Renamed to
4840 x86_linux_teardown_btrace. All uses updated.
4841 (amd64_linux_read_btrace): Renamed to
4842 x86_linux_read_btrace. All uses updated.
4843 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4844 x86_linux_dr_get. All uses updated.
4845 (i386_linux_dr_set): Renamed to
4846 x86_linux_dr_set. All uses updated.
4847 (i386_linux_dr_get_addr): Renamed to
4848 x86_linux_dr_get_addr. All uses updated.
4849 (i386_linux_dr_get_control): Renamed to
4850 x86_linux_dr_get_control. All uses updated.
4851 (i386_linux_dr_get_status): Renamed to
4852 x86_linux_dr_get_status. All uses updated.
4853 (i386_linux_dr_set_control): Renamed to
4854 x86_linux_dr_set_control. All uses updated.
4855 (i386_linux_dr_set_addr): Renamed to
4856 x86_linux_dr_set_addr. All uses updated.
4857 (i386_linux_prepare_to_resume): Renamed to
4858 x86_linux_prepare_to_resume. All uses updated.
4859 (i386_linux_new_thread): Renamed to
4860 x86_linux_new_thread. All uses updated.
4861 (i386_linux_new_fork): Renamed to
4862 x86_linux_new_fork. All uses updated.
4863 (i386_linux_child_post_startup_inferior): Renamed to
4864 x86_linux_child_post_startup_inferior. All uses updated.
4865 (i386_linux_enable_btrace): Renamed to
4866 x86_linux_enable_btrace. All uses updated.
4867 (i386_linux_disable_btrace): Renamed to
4868 x86_linux_disable_btrace. All uses updated.
4869 (i386_linux_teardown_btrace): Renamed to
4870 x86_linux_teardown_btrace. All uses updated.
4871 (i386_linux_read_btrace): Renamed to
4872 x86_linux_read_btrace. All uses updated.
4874 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4876 * remote.c (extended_remote_post_attach): New function.
4877 (init_extended_remote_ops): Install it as to_post_attach method.
4879 2014-07-09 Pedro Alves <palves@redhat.com>
4881 * infcmd.c (attach_command_post_wait): Don't call
4882 target_terminal_inferior here.
4883 (attach_command): Call it here instead.
4885 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4887 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4889 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4890 from varobj.c, with additional checks.
4891 (c_varobj_ops): Fill in is_path_expr_parent field.
4892 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4893 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4895 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4897 (varobj_default_is_path_expr_parent): New function.
4898 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4899 (varobj_default_is_path_expr_parent): Declare new function.
4901 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4903 * infcmd.c (finish_backward): Turn internal error into normal error.
4905 2014-07-07 Pedro Alves <palves@redhat.com>
4908 * remote.c (async_handle_remote_sigint)
4909 (async_handle_remote_sigint_twice): Call
4910 gdb_call_async_signal_handler instead of
4911 mark_async_signal_handler.
4913 2014-07-07 Tom Tromey <tromey@redhat.com>
4915 * target-delegates.c: Rebuild.
4916 * target.c (target_info_record): Remove.
4917 * record.c (info_record_command): Unconditionally call
4919 * target.h (struct target_ops) <to_info_record>: Use
4920 TARGET_DEFAULT_IGNORE.
4921 (target_info_record): Remove.
4923 2014-07-07 Tom Tromey <tromey@redhat.com>
4925 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4926 TARGET_DEFAULT_NORETURN.
4927 * target.c (generic_tls_error): New function.
4928 (target_translate_tls_address): Don't search target stack.
4929 * target-delegates.c: Rebuild.
4930 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4932 * linux-thread-db.c (thread_db_get_thread_local_address):
4933 Unconditionally call beneath target.
4935 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4937 * cli/cli-logging.c (pop_output_files): Assign targerr to
4940 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4942 * MAINTAINERS (Write After Approval): Update my email address.
4944 2014-07-02 Gary Benson <gbenson@redhat.com>
4946 * proc-service.c (ps_xfer_memory): Update comment.
4947 (ps_pstop): Remove unused function.
4948 (ps_pcontinue): Likewise.
4949 (ps_lstop): Likewise.
4950 (ps_lcontinue): Likewise.
4951 (ps_lgetxregsize): Likewise.
4952 (ps_lgetxregs): Likewise.
4953 (ps_lsetxregs): Likewise.
4954 (ps_plog): Likewise.
4955 (ps_ptread): Likewise.
4956 (ps_ptwrite): Likewise.
4958 2014-07-01 Mark Wielaard <mjw@redhat.com>
4960 * dwarf2read.c (add_array_cv_type): New function.
4961 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4962 (read_tag_volatile_type): Likewise.
4964 2014-07-01 Tom Tromey <tromey@redhat.com>
4966 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4967 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4968 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4969 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4970 * command.h (cmd_cfunc_ftype): Move earlier.
4971 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4972 (add_com, add_info): Use cmd_cfunc_ftype.
4974 2014-06-30 Tom Tromey <tromey@redhat.com>
4976 * symtab.c (operator_chars): Make parameters and return type
4978 (file_matches): Make "files" const.
4979 (struct search_symbols_data) <files>: Now const.
4980 (search_symbols): Make "regexp" and "files" parameters const.
4982 (symtab_symbol_info): Remove cast.
4983 (rbreak_command): Update.
4984 * symtab.h (search_symbols): Update.
4986 2014-06-27 Yao Qi <yao@codesourcery.com>
4988 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4989 Change parameter type to 'struct thread_info *'. Caller
4991 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4993 * dummy-frame.c (struct dummy_frame_id): New.
4994 (dummy_frame_id_eq): New function.
4995 (struct dummy_frame) <id>: Change its type to 'struct
4997 (dummy_frame_push): Add parameter ptid and save it in
4999 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5001 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5003 (lookup_dummy_frame): Change parameter type to 'struct
5004 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5005 instead of frame_id_eq.
5006 (dummy_frame_pop): Add parameter ptid. Callers updated.
5007 Update comments. Compose dummy_frame_id and pass it to
5009 (dummy_frame_discard): Add parameter ptid.
5010 (dummy_frame_sniffer): Compose dummy_frame_id and call
5011 dummy_frame_id_eq instead of frame_id_eq.
5012 (fprint_dummy_frames): Print ptid.
5013 * dummy-frame.h: Remove comments.
5014 (dummy_frame_push): Add ptid in declaration.
5015 (dummy_frame_pop, dummy_frame_discard): Likewise.
5017 2014-06-26 Tom Tromey <tromey@redhat.com>
5019 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5020 * command.h (error_no_arg): Update.
5022 2014-06-26 Tom Tromey <tromey@redhat.com>
5024 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5025 (do_show_command): Make "arg" const.
5026 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5028 2014-06-26 Tom Tromey <tromey@redhat.com>
5030 * record-full.c (record_full_get_bookmark): Make "args" const.
5031 (record_full_goto_bookmark): Make "raw_bookmark" const.
5032 * record.c (record_goto): New function.
5033 (cmd_record_goto): Use it. Now static.
5034 * record.h (record_goto): Declare.
5035 (cmd_record_goto): Remove declaration.
5036 * target-delegates.c: Rebuild.
5037 * target.h (struct target_ops) <to_get_bookmark,
5038 to_goto_bookmark>: Make parameter const.
5040 2014-06-26 Tom Tromey <tromey@redhat.com>
5042 * defs.h (generic_load): Update.
5043 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5044 * monitor.c (monitor_load): Make "args" const.
5045 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5046 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5048 (mips_load): Make "file" const.
5049 * remote-sim.c (gdbsim_load): Make "args" const.
5050 * remote.c (remote_load): Make "name" const.
5051 * symfile.c (generic_load): Make "args" const.
5052 * target-delegates.c: Rebuild.
5053 * target.c (target_load): Make "arg" const.
5054 (debug_to_load): Make "args" const.
5055 * target.h (struct target_ops) <to_load>: Make parameter const.
5056 (target_load): Update.
5058 2014-06-26 Tom Tromey <tromey@redhat.com>
5061 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5062 (dwarf2_physname, read_partial_die)
5063 (guess_partial_die_structure_name, fixup_partial_die)
5064 (guess_full_die_structure_name, anonymous_struct_prefix)
5065 (dwarf2_name): Use per-BFD obstack.
5067 2014-06-26 Yao Qi <yao@codesourcery.com>
5069 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5070 dummyframe and this_id into inner block below.
5072 2014-06-26 Yao Qi <yao@codesourcery.com>
5074 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5075 with "signal_pass[0]" in the initialization of signal_pass.
5077 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5079 * record-btrace.c (record_btrace_generating_corefile)
5080 (record_btrace_prepare_to_generate_core)
5081 (record_btrace_done_generating_core): New.
5082 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5083 (record_btrace_store_registers, record_btrace_prepare_to_store):
5084 Forward request when generating a core file.
5085 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5086 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5087 to_done_generating_core.
5089 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5091 * target.h (target_ops) <to_prepare_to_generate_core>
5092 <to_done_generating_core>: New.
5093 (target_prepare_to_generate_core, target_done_generating_core): New.
5094 * target.c (target_prepare_to_generate_core)
5095 (target_done_generating_core): New.
5096 * target-delegates.c: Regenerate.
5097 * gcore.c: (write_gcore_file): Rename to ...
5098 (write_gcore_file_1): ...this.
5099 (write_gcore_file): Call target_prepare_to_generate_core
5100 and target_done_generating_core.
5102 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5104 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5105 * gcore.c (write_gcore_file): Free memory returned from
5106 make_corefile_notes.
5107 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5108 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5110 2014-06-24 Yao Qi <yao@codesourcery.com>
5112 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5113 (arm_linux_init_abi): Set skip_trampoline_code with
5114 gdbarch_skip_trampoline_code instead of
5115 find_solib_trampoline_target.
5117 2014-06-24 Yao Qi <yao@codesourcery.com>
5119 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5120 arm_skip_bx_reg returns non-zero.
5122 2014-06-24 Yao Qi <yao@codesourcery.com>
5124 * arm-tdep.c (arm_skip_bx_reg): New function.
5125 (arm_skip_stub): Call arm_skip_bx_reg.
5127 2014-06-23 Don Breazeal <donb@codesourcery.com>
5129 * MAINTAINERS: Add myself as write-after-approval maintainer.
5131 2014-06-23 Pedro Alves <palves@redhat.com>
5133 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5134 DR_CONTROL before setting DR0..DR3.
5135 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5136 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5137 bits of DR_CONTROL related to the debug register slot being
5138 disabled. If all slots are vacant, clear local slowdown as well,
5139 and assert DR_CONTROL is 0.
5141 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5143 * python/lib/gdb/command/xmethods.py
5144 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5145 current progspace only if the string "progspace" matches LOCUS_RE.
5147 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5149 Fix --with-system-readline with readline-6.3 patch 5.
5150 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5151 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5154 2014-06-20 Tom Tromey <tromey@redhat.com>
5156 * dwarf2read.c (dw2_get_real_path): Use correct type in
5158 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5160 2014-06-20 Gary Benson <gbenson@redhat.com>
5162 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5163 * common/glibc_thread_db.h: Likewise.
5164 * common/i386-cpuid.h: Likewise.
5165 * common/i386-gcc-cpuid.h: Likewise.
5166 * common/linux-btrace.h: Likewise.
5167 * common/linux-osdata.h: Likewise.
5168 * common/linux-procfs.h: Likewise.
5169 * common/linux-ptrace.h: Likewise.
5170 * common/mips-linux-watch.h: Likewise.
5171 * common/linux-btrace.c: Moved to nat.
5172 * common/linux-osdata.c: Likewise.
5173 * common/linux-procfs.c: Likewise.
5174 * common/linux-ptrace.c: Likewise.
5175 * common/mips-linux-watch.c: Likewise.
5176 * nat/gdb_thread_db.h: Moved from common.
5177 * nat/glibc_thread_db.h: Likewise.
5178 * nat/i386-cpuid.h: Likewise.
5179 * nat/i386-gcc-cpuid.h: Likewise.
5180 * nat/linux-btrace.c: Likewise.
5181 * nat/linux-btrace.h: Likewise.
5182 * nat/linux-osdata.c: Likewise.
5183 * nat/linux-osdata.h: Likewise.
5184 * nat/linux-procfs.c: Likewise.
5185 * nat/linux-procfs.h: Likewise.
5186 * nat/linux-ptrace.c: Likewise.
5187 * nat/linux-ptrace.h: Likewise.
5188 * nat/mips-linux-watch.c: Likewise.
5189 * nat/mips-linux-watch.h: Likewise.
5190 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5191 (object file files): Reordered.
5192 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5193 of glibc_thread_db.h.
5195 2014-06-20 Gary Benson <gbenson@redhat.com>
5197 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5198 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5199 (i386_dr_low): Likewise.
5200 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5201 (i386_dr_low_set_addr): Likewise.
5202 (i386_dr_low_get_addr): Likewise.
5203 (i386_dr_low_can_set_control): Likewise.
5204 (i386_dr_low_set_control): Likewise.
5205 (i386_dr_low_get_control): Likewise.
5206 (i386_dr_low_get_status): Likewise.
5207 (i386_get_debug_register_length): Likewise.
5208 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5209 (i386_dr_low): Likewise.
5210 * nat/i386-dregs.c (i386-low.h): Remove include.
5211 (i386-nat.h): Likewise.
5212 (nat/i386-dregs.h): New include.
5213 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5214 (i386_dr_low_set_addr): Likewise.
5215 (i386_dr_low_get_addr): Likewise.
5216 (i386_dr_low_can_set_control): Likewise.
5217 (i386_dr_low_set_control): Likewise.
5218 (i386_dr_low_get_control): Likewise.
5219 (i386_dr_low_get_status): Likewise.
5220 (i386_get_debug_register_length): Likewise.
5221 (debug_hw_points): Likewise.
5223 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5225 * Makefile.in (SFILES): Add d-exp.y.
5226 (YYFILES): Add d-exp.c.
5227 (YYOBJ): Add d-exp.o.
5228 (local-maintainer-clean): Delete d-exp.c.
5229 * d-exp.y: New file.
5230 * d-lang.h (d_parse): New declaration.
5231 (d_error): New declaration.
5232 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5233 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5234 PREC_ORDER operators.
5235 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5237 2014-06-19 Yao Qi <yao@codesourcery.com>
5239 * gdbthread.h (any_running): Remove the declaration.
5240 * thread.c (any_running): Remove.
5242 2014-06-19 Yao Qi <yao@codesourcery.com>
5244 * gdbthread.h (struct thread_info) <state>: Change its type to
5245 'enum thread_state'. Update comments.
5247 2014-06-19 Pedro Alves <palves@redhat.com>
5249 * gdbthread.h (ALL_THREADS): Delete.
5250 (ALL_NON_EXITED_THREADS): New macro.
5251 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5252 instead of ALL_THREADS.
5253 * infrun.c (find_thread_needs_step_over)
5254 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5255 instead of ALL_THREADS.
5256 * record-btrace.c (record_btrace_open)
5257 (record_btrace_stop_recording, record_btrace_close)
5258 (record_btrace_is_replaying, record_btrace_resume)
5259 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5260 * remote.c (append_pending_thread_resumptions): Likewise.
5261 * thread.c (thread_apply_all_command): Likewise.
5263 2014-06-19 Gary Benson <gbenson@redhat.com>
5265 * i386-nat.c (i386_stopped_by_watchpoint):
5266 Use i386_dr_stopped_by_watchpoint.
5267 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5268 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5270 2014-06-19 Gary Benson <gbenson@redhat.com>
5272 * nat/i386-dregs.c: New file.
5273 * Makefile.in (i386-dregs.o): New rule.
5274 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5275 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5276 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5277 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5278 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5279 * config/i386/go32.mh (NATDEPFILES): Likewise.
5280 * config/i386/linux.mh (NATDEPFILES): Likewise.
5281 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5282 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5283 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5284 * i386-nat.h (debug_hw_points): New declaration.
5285 * i386-nat.c (breakpoint.h): Remove include.
5286 (command.h): Likewise.
5287 (target.h): Likewise.
5288 (gdb_assert.h): Likewise.
5289 (debug_hw_points): Made nonstatic.
5290 (debug_printf): Now in i386-dregs.c.
5291 (TARGET_HAS_DR_LEN_8): Likewise.
5292 (DR_CONTROL_SHIFT): Likewise.
5293 (DR_CONTROL_SIZE): Likewise.
5294 (DR_RW_EXECUTE): Likewise.
5295 (DR_RW_WRITE): Likewise.
5296 (DR_RW_READ): Likewise.
5297 (DR_RW_IORW): Likewise.
5298 (DR_LEN_1): Likewise.
5299 (DR_LEN_2): Likewise.
5300 (DR_LEN_4): Likewise.
5301 (DR_LEN_8): Likewise.
5302 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5303 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5304 (DR_ENABLE_SIZE): Likewise.
5305 (DR_LOCAL_SLOWDOWN): Likewise.
5306 (DR_GLOBAL_SLOWDOWN): Likewise.
5307 (DR_CONTROL_RESERVED): Likewise.
5308 (I386_DR_CONTROL_MASK): Likewise.
5309 (I386_DR_VACANT): Likewise.
5310 (I386_DR_LOCAL_ENABLE): Likewise.
5311 (I386_DR_GLOBAL_ENABLE): Likewise.
5312 (I386_DR_DISABLE): Likewise.
5313 (I386_DR_SET_RW_LEN): Likewise.
5314 (I386_DR_GET_RW_LEN): Likewise.
5315 (I386_DR_WATCH_HIT): Likewise.
5316 (i386_wp_op_t): Likewise.
5317 (i386_show_dr): Likewise.
5318 (i386_length_and_rw_bits): Likewise.
5319 (i386_insert_aligned_watchpoint): Likewise.
5320 (i386_remove_aligned_watchpoint): Likewise.
5321 (i386_handle_nonaligned_watchpoint): Likewise.
5322 (i386_update_inferior_debug_regs): Likewise.
5323 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5324 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5325 (i386_region_ok_for_watchpoint):
5326 Use i386_dr_region_ok_for_watchpoint.
5327 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5329 2014-06-19 Gary Benson <gbenson@redhat.com>
5331 * i386-nat.c (i386_insert_hw_breakpoint): Use
5332 i386_insert_watchpoint.
5333 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5335 2014-06-19 Gary Benson <gbenson@redhat.com>
5337 * i386-nat.c (i386_dr_show): Renamed to
5338 i386_show_dr and made static. All uses updated.
5339 (i386_dr_length_and_rw_bits): Renamed to
5340 i386_length_and_rw_bits and made static.
5342 (i386_dr_insert_aligned_watchpoint): Renamed to
5343 i386_insert_aligned_watchpoint and made static.
5345 (i386_dr_remove_aligned_watchpoint): Renamed to
5346 i386_remove_aligned_watchpoint and made static.
5348 (i386_dr_update_inferior_debug_regs): Renamed to
5349 i386_update_inferior_debug_regs and made static.
5351 * nat/i386-dregs.h (i386_dr_show): Removed.
5352 (i386_dr_length_and_rw_bits): Likewise.
5353 (i386_dr_insert_aligned_watchpoint): Likewise.
5354 (i386_dr_remove_aligned_watchpoint): Likewise.
5355 (i386_dr_update_inferior_debug_regs): Likewise.
5357 2014-06-19 Gary Benson <gbenson@redhat.com>
5359 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5360 * configure: Regenerate.
5361 * config.in: Likewise.
5362 * main.c (signal.h): New include.
5363 (setup_alternate_signal_stack): New function.
5364 (captured_main): Call the above.
5365 * cp-support.c (signal.h): New include.
5366 (catch_demangler_crashes): New flag.
5367 (SIGJMP_BUF): New define.
5368 (SIGSETJMP): Likewise.
5369 (SIGLONGJMP): Likewise.
5370 (gdb_demangle_jmp_buf): New static global.
5371 (gdb_demangle_attempt_core_dump): Likewise.
5372 (gdb_demangle_signal_handler): New function.
5373 (gdb_demangle): If catch_demangler_crashes is set, install the
5374 above signal handler before calling bfd_demangle, and restore
5375 the original signal handler afterwards. Display the offending
5376 symbol and call demangler_warning the first time a segmentation
5378 (_initialize_cp_support): New maint set/show command.
5380 2014-06-19 Gary Benson <gbenson@redhat.com>
5382 * utils.h (resource_limit_kind): New enum.
5383 (can_dump_core): New declaration.
5384 (warn_cant_dump_core): Likewise.
5385 (dump_core): Likewise.
5386 * utils.c (dump_core): Made nonstatic. Added new
5387 parameter "limit_kind".
5388 (can_dump_core): Made nonstatic. Moved printing code to...
5389 (warn_cant_dump_core): New function.
5390 (can_dump_core_warn): Likewise.
5391 (internal_vproblem): Replace calls to can_dump_core with
5392 calls to can_dump_core_warn. Supply new argument to each.
5394 2014-06-19 Gary Benson <gbenson@redhat.com>
5396 * utils.h (demangler_vwarning): New declaration.
5397 (demangler_warning): Likewise.
5398 * utils.c (struct internal_problem)
5399 <user_settable_should_quit>: New field.
5400 <user_settable_should_dump_core>: Likewise
5401 (internal_error_problem): Add values for above new fields.
5402 (internal_warning_problem): Likewise.
5403 (demangler_warning_problem): New static global.
5404 (demangler_vwarning): New function.
5405 (demangler_warning): Likewise.
5406 (add_internal_problem_command): Selectively add commands.
5407 (_initialize_utils): New internal problem command.
5408 * maint.c (maintenance_demangler_warning): New function.
5409 (_initialize_maint_cmds): New command.
5411 2014-06-18 Tom Tromey <tromey@redhat.com>
5413 * f-valprint.c (info_common_command_for_block): Update.
5414 * symtab.h (struct general_symbol_info) <common_block>: Now
5417 2014-06-18 Tom Tromey <tromey@redhat.com>
5419 * symtab.h (struct symtab) <blockvector>: Now const.
5420 * ada-lang.c (ada_add_global_exceptions): Update.
5421 * buildsym.c (augment_type_symtab): Update.
5422 * dwarf2read.c (dw2_lookup_symbol): Update.
5423 * jit.c (finalize_symtab): Update.
5424 * jv-lang.c (add_class_symtab_symbol): Update.
5425 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5427 * objfiles.c (objfile_relocate1): Update.
5428 * psymtab.c (lookup_symbol_aux_psymtabs)
5429 (maintenance_check_psymtabs): Update.
5430 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5432 * spu-tdep.c (spu_catch_start): Update.
5433 * symmisc.c (dump_symtab_1): Update.
5434 * symtab.c (lookup_global_symbol_from_objfile)
5435 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5436 (basic_lookup_transparent_type_quick)
5437 (basic_lookup_transparent_type, find_pc_sect_symtab)
5438 (find_pc_sect_line, search_symbols): Update.
5439 * block.c (find_block_in_blockvector): Make "bl" const.
5440 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5442 (blockvector_contains_pc): Make "bv" const.
5443 (block_for_pc_sect): Update.
5444 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5445 (blockvector_contains_pc): Update.
5446 * breakpoint.c (resolve_sal_pc): Update.
5447 * inline-frame.c (block_starting_point_at): Update.
5449 2014-06-18 Tom Tromey <tromey@redhat.com>
5451 * completer.c (complete_line): Make "line_buffer" const.
5452 * completer.h (complete_line): Update.
5454 2014-06-18 Tom Tromey <tromey@redhat.com>
5456 * symtab.c (add_macro_name): Remove unneeded cast.
5458 2014-06-18 Tom Tromey <tromey@redhat.com>
5460 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5461 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5463 2014-06-18 Tom Tromey <tromey@redhat.com>
5465 * probe.c (info_probes_for_ops): Make "arg" const.
5466 * probe.h (info_probes_for_ops): Update.
5468 2014-06-18 Tom Tromey <tromey@redhat.com>
5470 * varobj.c (varobj_create): Update.
5471 * valops.c (value_of_this): Update.
5472 * tracepoint.c (add_local_symbols, scope_info): Update.
5473 * symtab.h (struct general_symbol_info) <block>: Now const.
5474 * symtab.c (skip_prologue_sal)
5475 (default_make_symbol_completion_list_break_on)
5476 (skip_prologue_using_sal): Update.
5477 * stack.h (iterate_over_block_locals)
5478 (iterate_over_block_local_vars): Update.
5479 * stack.c (print_frame_args): Update.
5480 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5482 (get_selected_block): Make return type const.
5483 * python/py-frame.c (frapy_block): Update.
5484 * python/py-block.c (gdbpy_block_for_pc): Update.
5485 * p-exp.y (%union) <bval>: Now const.
5486 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5487 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5488 * m2-exp.y (%union) <bval>: Now const.
5489 * linespec.c (get_current_search_block): Make return type const.
5490 (create_sals_line_offset, find_label_symbols): Update.
5491 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5493 (block_starting_point_at): Make "block" const.
5494 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5495 (check_exception_resume): Update.
5496 * guile/scm-frame.c (gdbscm_frame_block): Update.
5497 * guile/scm-block.c (gdbscm_lookup_block): Update.
5498 * frame.h (get_frame_block): Update.
5499 (get_selected_block): Make return type const.
5500 * frame.c (frame_id_inner): Update.
5501 * f-valprint.c (info_common_command_for_block)
5502 (info_common_command): Update.
5503 * dwarf2loc.c (dwarf2_find_location_expression)
5504 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5505 (locexpr_describe_location_piece): Update.
5506 * c-exp.y (%union) <bval>: Now const.
5507 * breakpoint.c (resolve_sal_pc): Update.
5508 * blockframe.c (get_frame_block):Make return type const.
5509 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5510 (block_innermost_frame): Update.
5511 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5512 (block_for_pc, block_for_pc_sect): Update.
5513 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5515 (block_for_pc_sect, block_for_pc): Make return type const.
5516 * ax-gdb.c (gen_expr): Update.
5517 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5518 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5519 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5520 (ada_read_var_value): Update.
5521 * ada-exp.y (struct name_info) <block>: Now const.
5523 (block_lookup): Constify.
5525 2014-06-18 Gary Benson <gbenson@redhat.com>
5527 * nat/i386-dregs.h: New file.
5528 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5529 * i386-nat.h (i386-dregs.h): New include.
5530 (DR_FIRSTADDR): Now in i386-dregs.h.
5531 (DR_LASTADDR): Likewise.
5532 (DR_NADDR): Likewise.
5533 (DR_STATUS): Likewise.
5534 (DR_CONTROL): Likewise.
5535 (i386_debug_reg_state): Likewise.
5536 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5538 2014-06-18 Don Breazeal <donb@codesourcery.com>
5540 * breakpoint.c (set_longjmp_breakpoint): Call
5541 momentary_breakpoint_from_master with additional argument.
5542 (set_longjmp_breakpoint_for_call_dummy): Call
5543 momentary_breakpoint_from_master with additional argument.
5544 (set_std_terminate_breakpoint): Call
5545 momentary_breakpoint_from_master with additional argument.
5546 (momentary_breakpoint_from_master): Add argument to function
5547 definition and use it to initialize structure member flag.
5548 (clone_momentary_breakpoint): Call
5549 momentary_breakpoint_from_master with additional argument.
5550 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5551 member flags set in momentary_breakpoint_from_master.
5553 2014-06-18 Gary Benson <gbenson@redhat.com>
5555 * i386-nat.c (i386_show_dr): Renamed to
5556 i386_dr_show and made nonstatic. All uses updated.
5557 (i386_length_and_rw_bits): Renamed to
5558 i386_dr_length_and_rw_bits and made nonstatic.
5560 (i386_insert_aligned_watchpoint): Renamed to
5561 i386_dr_insert_aligned_watchpoint and made nonstatic.
5563 (i386_remove_aligned_watchpoint): Renamed to
5564 i386_dr_remove_aligned_watchpoint and made nonstatic.
5566 (i386_update_inferior_debug_regs): Renamed to
5567 i386_dr_update_inferior_debug_regs and made nonstatic.
5570 2014-06-18 Gary Benson <gbenson@redhat.com>
5572 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5573 (i386_dr_low_can_set_control): Likewise.
5574 (i386_dr_low_set_addr): Likewise.
5575 (i386_dr_low_set_control): Likewise.
5576 (i386_dr_low_get_addr): Likewise.
5577 (i386_dr_low_get_status): Likewise.
5578 (i386_dr_low_get_control): Likewise.
5579 (i386_insert_aligned_watchpoint): Use new macros.
5580 (i386_update_inferior_debug_regs): Likewise.
5581 (i386_stopped_data_address): Likewise.
5583 2014-06-18 Gary Benson <gbenson@redhat.com>
5585 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5586 New parameter. All uses updated.
5588 2014-06-18 Gary Benson <gbenson@redhat.com>
5590 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5593 2014-06-18 Gary Benson <gbenson@redhat.com>
5595 * i386-nat.c (debug_printf): New macro.
5596 (i386_get_debug_register_length): Likewise.
5597 (TARGET_HAS_DR_LEN_8): Use above macro.
5598 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5599 and printf_unfiltered. Use phex to format values.
5601 2014-06-18 Gary Benson <gbenson@redhat.com>
5603 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5606 2014-06-18 Gary Benson <gbenson@redhat.com>
5608 * i386-nat.c: Comment changes.
5610 2014-06-18 Gary Benson <gbenson@redhat.com>
5612 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5614 2014-06-18 Gary Benson <gbenson@redhat.com>
5616 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5617 (i386_insert_aligned_watchpoint): Likewise.
5618 (i386_remove_aligned_watchpoint): Likewise.
5619 (i386_handle_nonaligned_watchpoint): Likewise.
5621 2014-06-18 Gary Benson <gbenson@redhat.com>
5623 * i386-nat.c: Whitespace changes.
5625 2014-06-17 Samuel Bronson <naesten@gmail.com>
5627 * MAINTAINERS: Update Roland McGrath's email address.
5628 Thanks to Sergio Durigan Junior for pointing out that he left
5629 Red Hat a while ago, and giving me a current address.
5631 2014-06-17 Tom Tromey <tromey@redhat.com>
5633 * utils.h (savestring): Remove declaration.
5635 2014-06-17 Tom Tromey <tromey@redhat.com>
5637 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5639 2014-06-16 Keith Seitz <keiths@redhat.com>
5642 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5643 to update the varobj if inferior_ptid is null_ptid.
5645 2014-06-16 Tom Tromey <tromey@redhat.com>
5647 * target.h (struct target_ops) <to_info_proc>: Make parameter
5649 (target_info_proc): Update.
5650 * target.c (target_info_proc): Make "args" const.
5651 * procfs.c (procfs_info_proc): Update.
5652 * linux-tdep.c (linux_info_proc): Update.
5653 (linux_core_info_proc_mappings): Make "args" const.
5654 (linux_core_info_proc): Update.
5655 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5656 * gdbarch.c: Rebuild.
5657 * gdbarch.h: Rebuild.
5658 * corelow.c (core_info_proc): Update.
5660 2014-06-16 Tom Tromey <tromey@redhat.com>
5662 * target.h (struct target_ops) <to_disconnect>: Make parameter
5664 (target_disconnect): Update.
5665 * target.c (target_disconnect): Make "args" const.
5666 * target-delegates.c: Rebuild.
5667 * remote.c (remote_disconnect): Update.
5668 * record.h (record_disconnect): Update.
5669 * record.c (record_disconnect): Update.
5670 * inf-child.c (inf_child_disconnect): Update.
5672 2014-06-16 Tom Tromey <tromey@redhat.com>
5674 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5675 * target.c (debug_to_rcmd, default_rcmd): Update.
5676 * target-delegates.c: Rebuild.
5677 * remote.c (remote_rcmd): Update.
5678 * monitor.c (monitor_rcmd): Update.
5680 2014-06-16 Pedro Alves <palves@redhat.com>
5682 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5683 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5684 have OBJF_SHARED set.
5685 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5686 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5687 instead of OBJF_USERLOADED.
5688 * objfiles.h (OBJF_SHARED): Update comment.
5689 (userloaded_objfile_contains_address_p): Rename to ...
5690 (shared_objfile_contains_address_p): ... this, and update
5692 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5694 (remove_symbol_file_command): Skip objfiles that don't have
5697 2014-06-16 Tom Tromey <tromey@redhat.com>
5699 * minsyms.h (prim_record_minimal_symbol)
5700 (prim_record_minimal_symbol_and_info): Update comments.
5702 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5704 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5705 or --without-guile, according to how GDB was built.
5707 2014-06-13 Tom Tromey <tromey@redhat.com>
5709 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5711 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5713 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5715 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5716 help_list.Pass all_commands, not -1, to help_list.
5717 * cli/cli-dump.c (dump_command, append_command)
5718 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5719 (binary_dump_command, binary_append_command): Pass all_commands,
5720 not -1, to help_list.
5721 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5723 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5725 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5727 * top.c (set_history): Pass all_commands, not -1, to help_list.
5728 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5729 all_commands, not -1, to help_list.
5730 * symfile.c (overlay_command): Pass all_commands, not -1, to
5732 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5734 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5736 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5738 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5739 not -1, to help_list.
5740 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5741 not -1, to help_list.
5742 * maint.c (maintenance_command, maintenance_info_command)
5743 (maintenance_print_command, maintenance_set_cmd): Pass
5744 all_commands, not -1, to help_list.
5745 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5747 * language.c (set_check): Pass all_commands, not -1, to help_list.
5748 * infcmd.c (unset_command): Pass all_commands, not -1, to
5750 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5752 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5754 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5756 * breakpoint.c (save_command): Pass all_commands, not -1, to
5758 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5759 all_commands, not -1, to help_list.
5761 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5763 * regcache.c (struct register_to_invalidate): New structure.
5764 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5766 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5768 2014-06-12 Yao Qi <yao@codesourcery.com>
5770 * varobj.c (varobj_get_num_children): Call
5771 varobj_is_dynamic_p.
5772 (varobj_list_children): Likewise.
5773 (varobj_update): Likewise. Update comments.
5775 2014-06-12 Yao Qi <yao@codesourcery.com>
5777 * varobj.c (varobj_pretty_printed_p): Rename to ...
5778 (varobj_is_dynamic_p): ... this. New function.
5779 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5780 (varobj_is_dynamic_p): Declare.
5781 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5782 (mi_print_value_p, varobj_update_one): Likewise.
5784 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5785 Yao Qi <yao@codesourcery.com>
5787 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5788 (varobj_get_iterator): Wrap up code for pretty-printer by
5789 "#if HAVE_PYTHON" and "#endif".
5790 (update_dynamic_varobj_children): Likewise.
5792 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5793 Yao Qi <yao@codesourcery.com>
5795 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5796 gdb_python_initialized is false. Move some code from varobj.c.
5797 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5798 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5799 (struct varobj_item): Moved to varobj-iter.h".
5800 (varobj_clear_saved_item): New function.
5801 (update_dynamic_varobj_children): Move python-related code to
5803 (free_variable): Call varobj_clear_saved_item and
5806 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5807 Yao Qi <yao@codesourcery.com>
5809 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5810 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5811 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5812 (py-varobj.o): New rule.
5813 * python/py-varobj.c: New file.
5814 * python/python-internal.h (py_varobj_get_iterator): Declare.
5815 * varobj-iter.h: New file.
5816 * varobj.c: Include "varobj-iter.h"
5817 (struct varobj) <child_iter>: Change its type from "PyObject *"
5818 to "struct varobj_iter *".
5819 <saved_item>: Likewise.
5820 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5821 [HAVE_PYTHON] (varobj_get_iterator): New function.
5822 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5823 python-specific code to python/py-varobj.c.
5824 (install_visualizer): Call varobj_iter_delete instead of
5826 * varobj.h (varobj_ensure_python_env): Declare.
5828 2014-06-12 Yao Qi <yao@codesourcery.com>
5830 * varobj.c (struct varobj_item): New structure.
5831 (create_child_with_value): Update declaration.
5832 (varobj_add_child): Replace arguments 'name' and 'value' with
5833 'item'. All callers updated.
5834 (install_dynamic_child): Likewise.
5835 (update_dynamic_varobj_children): Likewise.
5836 (varobj_add_child): Likewise.
5837 (create_child_with_value): Likewise.
5839 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5841 * NEWS: Create a new section for the next release branch.
5842 Rename the section of the current branch, now that it has
5845 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5847 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5848 * version.in: Bump version to 7.8.50.DATE-cvs.
5850 2014-06-11 Pedro Alves <palves@redhat.com>
5853 * ser-mingw.c (net_windows_socket_check_pending): New function.
5854 (net_windows_select_thread): Ignore spurious wakeups. Use
5855 net_windows_socket_check_pending.
5856 (net_windows_wait_handle): Check for pending events with
5857 ioctlsocket, through net_windows_socket_check_pending, instead of
5858 checking the socket's event.
5860 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5862 * python/python-internal.h (gdb_PyObject_GetAttrString)
5863 (gdb_PyObject_HasAttrString): New inline function definitions.
5864 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5865 char * of the second argument to PyObject_GetAttrString.
5867 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5869 * serial.c (serial_write): Fix index of character to be printed
5870 in call to serial_logchar when serial debug traces are enabled.
5872 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5874 * gdbtypes (resolve_dynamic_range): Add function description.
5876 2014-06-09 Pedro Alves <palves@redhat.com>
5878 * linux-nat.c (linux_child_follow_fork): Initialize status with
5879 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5880 inner block. Only pass the signal to PTRACE_DETACH if in pass
5883 2014-06-09 Gary Benson <gbenson@redhat.com>
5885 * common/signals.c (gdb_signal_from_host): Reorder to separate
5886 the always-available ANSI-standard signals from the signals that
5888 (do_gdb_signal_to_host): Likewise.
5889 * proc-events.c (signal_table): Likewise.
5891 2014-06-08 Hui Zhu <hui@codesourcery.com>
5893 * common/linux-ptrace.c (linux_disable_event_reporting): New
5895 * common/linux-ptrace.h (linux_disable_event_reporting): New
5897 * linux-nat.c (linux_child_follow_fork): Do a single step before
5900 2014-06-07 Keith Seitz <keiths@redhat.com>
5904 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5905 from symbol_matches_domain in symtab.c. All local callers
5906 of symbol_matches_domain updated.
5907 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5908 search STRUCT_DOMAIN.
5909 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5910 independently. standard_lookup will do that automatically.
5911 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5912 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5913 (cp_lookup_symbol_in_namespace): Likewise.
5914 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5915 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5916 may return a STRUCT_DOMAIN match.
5917 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5918 * cp-support.c: Include language.h.
5919 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5921 * psymtab.c (match_partial_symbol): Compare the requested
5922 domain with the symbol's domain directly.
5923 (lookup_partial_symbol): Likewise.
5924 * symtab.c (lookup_symbol_in_language): Explain when/why
5925 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5926 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5927 appropriate languages.
5928 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5929 and moved to ada-lang.c
5930 (lookup_block_symbol): Explain that this function only returns
5931 symbol matching the requested DOMAIN.
5932 Compare the requested domain with the symbol's domain directly.
5933 (iterate_over_symbols): Compare the requested domain with the
5934 symbol's domain directly.
5935 * symtab.h (symbol_matches_domain): Remove.
5937 2014-06-06 Doug Evans <xdje42@gmail.com>
5939 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5940 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5941 (gdbscm_guile_version_is_at_least): Declare.
5942 (gdbscm_scm_string_to_int): Declare.
5943 * guile/guile.c (gdbscm_guile_major_version): New global.
5944 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5945 (guile_datadir): New static global.
5946 (gdbscm_guile_data_directory): New function.
5947 (initialize_scheme_side): Update.
5948 (misc_guile_functions): Add guile-data-directory.
5949 (initialize_gdb_module): Fetch guile version number.
5950 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5951 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5952 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5953 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5955 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5956 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5957 * guile/scm-value.c (gdbscm_value_to_string): Only call
5958 scm_port_conversion_strategy if Guile version >= 2.0.6.
5960 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5962 * main.c (print_gdb_help): Add -q and --silent.
5964 2014-06-06 Gary Benson <gbenson@redhat.com>
5966 * common/signals.c: Remove preprocessor conditionals for
5967 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5968 SIGSEGV and SIGTERM.
5969 * proc-events.c: Likewise.
5971 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5973 * symfile.c (symfile_free_objfile): Remove restriction to
5975 * symfile-mem.c (symbol_file_add_from_memory): Call
5976 add_target_sections_of_objfile.
5978 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5980 * guile/scm-value.c (gdbscm_history_append_x): Use
5981 'vlscm_get_value_smob_arg_unsafe' instead of
5982 'vlscm_scm_to_value'.
5984 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5987 * utils.c (printchar): Don't escape at all if quoter is NUL.
5988 Update function documentation to clarify effect of parameter
5990 * remote.c (escape_buffer): Pass '\\' as the quoter to
5991 fputstrn_unfiltered.
5992 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5993 generate the output.
5994 (mi_solib_unloaded): Same.
5996 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5998 * development.sh: Delete.
5999 * Makefile.in (config.status): Adjust dependency on development.sh.
6000 * configure.ac: Adjust development.sh source call.
6001 * configure: Regenerate.
6003 2014-06-04 Doug Evans <xdje42@gmail.com>
6005 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6006 is_scheme_bkpt, spec.
6007 (bpscm_make_breakpoint_smob): Initialize new members.
6008 (gdbscm_create_breakpoint_x): Split into two ...
6009 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6010 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6011 (scheme_function breakpoint_functions): Update.
6012 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6013 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6014 register-breakpoint!.
6016 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6019 * mem-break.c (z_type_supported): Return zero if
6020 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6022 2014-06-04 Tom Tromey <tromey@redhat.com>
6024 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6025 value_from_contents_and_address_unresolved.
6026 (ada_template_to_fixed_record_type_1): Likewise.
6027 (ada_which_variant_applies): Likewise.
6028 * value.h (value_from_contents_and_address_unresolved): Declare.
6029 * value.c (value_from_contents_and_address_unresolved): New
6031 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6032 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6033 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6035 2014-06-04 Tom Tromey <tromey@redhat.com>
6037 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6039 2014-06-04 Tom Tromey <tromey@redhat.com>
6041 * procfs.c (procfs_attach): Make "args" const.
6042 * windows-nat.c (windows_attach): Make "args" const.
6043 * nto-procfs.c (procfs_attach): Make "args" const.
6044 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6045 * go32-nat.c (go32_attach): Make "args" const.
6046 * gnu-nat.c (gnu_attach): Make "args" const.
6047 * darwin-nat.c (darwin_attach): Make "args" const.
6048 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6049 * linux-nat.c (linux_nat_attach): Make "args" const.
6050 * remote.c (extended_remote_attach_1, extended_remote_attach):
6052 * target.h (struct target_ops) <to_attach>: Make "args" const.
6053 (find_default_attach): Likewise.
6054 * utils.c (parse_pid_to_attach): Make "args" const.
6055 * utils.h (parse_pid_to_attach): Update.
6057 2014-06-04 Tom Tromey <tromey@redhat.com>
6059 * target-delegates.c: Rebuild.
6060 * target.c (default_thread_address_space): New function.
6061 (target_thread_address_space): Simplify.
6062 * target.h (struct target_ops) <to_thread_address_space>: Add
6063 TARGET_DEFAULT_FUNC.
6065 2014-06-04 Doug Evans <xdje42@gmail.com>
6067 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6069 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6071 * record-btrace.c: Include event-loop.h and inf-loop.h.
6072 (record_btrace_resume_exec_dir)
6073 (record_btrace_async_inferior_event_handler)
6074 (record_btrace_handle_async_inferior_event): New.
6075 (record_btrace_open): Create async event handler.
6076 (record_btrace_close): Delete async event handler.
6077 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6078 Mark async event handler.
6079 (record_btrace_execution_direction): New.
6080 (init_record_btrace_ops): Initialize to_execution_direction.
6082 2014-06-03 Doug Evans <xdje42@gmail.com>
6084 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6085 (gdbscm_make_parameter): Ditto.
6087 2014-06-03 Doug Evans <dje@google.com>
6089 * exec.c (exec_close_1): Call clear_section_table instead of
6090 resize_section_table.
6091 (clear_section_table): New function.
6092 (resize_section_table): Make static. Rename arg num_added to
6094 * exec.h (clear_section_table): Declare.
6095 (resize_section_table): Delete.
6096 * progspace.c (release_program_space): Call clear_section_table
6097 instead of resize_section_table.
6099 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6101 * NEWS (Python Scripting): Add entry about the new xmethods
6104 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6106 * python/py-xmethods.c: New file.
6107 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6108 (objfpy_dealloc): XDECREF on the new xmethods field.
6109 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6111 (objfpy_get_xmethods): New function.
6112 (objfile_getset): New entry 'xmethods'.
6113 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6114 (pspy_dealloc): XDECREF on the new xmethods field.
6115 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6117 (pspy_get_xmethods): New function.
6118 (pspace_getset): New entry 'xmethods'.
6119 * python/python-internal.h: Add declarations for new functions.
6120 * python/python.c (_initialize_python): Invoke
6121 gdbpy_initialize_xmethods.
6122 * python/lib/gdb/__init__.py (xmethods): New
6124 * python/lib/gdb/xmethod.py: New file.
6125 * python/lib/gdb/command/xmethods.py: New file.
6127 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6129 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6130 best match method returned by find_overload_match is an xmethod.
6131 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6132 the best matching operator returned by find_overload_match is an
6134 * valops.c: #include "extension.h".
6135 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6136 Return void. The list of matching source methods is returned in
6137 "fn_list" and a vector of matching debug method workers is
6138 returned in "xm_worker_vec". Update all callers.
6139 (value_find_oload_method_list): Likewise.
6140 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6141 non-NULL, then the index of the best matching method in this
6142 vector is returned. Update all callers.
6143 (find_overload_match): Include xmethods while performing overload
6146 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6148 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6149 * extension-priv.h (struct extension_language_ops): Add the
6151 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6152 get_matching_xmethod_workers, get_xmethod_argtypes,
6153 invoke_xmethod, free_xmethod_worker,
6154 free_xmethod_worker_vec): New functions.
6155 * extension.h: #include "common/vec.h".
6156 New function declarations.
6157 (struct xmethod_worker): New struct.
6158 (VEC (xmethod_worker_ptr)): New vector type.
6159 (xmethod_worker_ptr): New typedef.
6160 (xmethod_worker_vec): Likewise.
6161 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6163 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6164 (struct builtin_type): New field "xmethod".
6165 * valarith.c (value_ptradd): Assert that the value argument is not
6167 * valops.c (value_must_coerce_to_target): Return 0 for
6168 lval_xcallable values.
6169 * value.c (struct value): New field XM_WORKER in the field
6171 (value_address, value_raw_address): Return 0 for lval_xcallable
6173 (set_value_address): Assert that the value is not an
6175 (value_free): Free the associated xmethod worker when freeing
6176 lval_xcallable values.
6177 (set_value_component_location): Assert that the WHOLE value is not
6179 (value_of_xmethod, call_xmethod): New functions.
6180 * value.h: Declare "struct xmethod_worker".
6181 Declare new functions value_of_xmethod, call_xmethod.
6183 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6184 Pedro Alves <palves@redhat.com>
6186 PR breakpoints/17000
6187 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6188 New function, extracted from software_breakpoint_inserted_here_p.
6189 (software_breakpoint_inserted_here_p): Replace factored out code
6190 by call to find_non_raw_software_breakpoint_inserted_here.
6191 (bp_target_info_copy_insertion_state): New function.
6192 (bkpt_insert_location): Handle the case of a single-step
6193 breakpoint already inserted at the same address.
6194 (bkpt_remove_location): Handle the case of a single-step
6195 breakpoint still inserted at the same address.
6196 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6197 breakpoint already inserted at the same address.
6198 (deprecated_remove_raw_breakpoint): Handle the case of a
6199 non-raw breakpoint still inserted at the same address.
6200 (find_single_step_breakpoint): New function, extracted from
6201 single_step_breakpoint_inserted_here_p.
6202 (find_single_step_breakpoint): New function,
6203 factored out from single_step_breakpoint_inserted_here_p.
6204 (single_step_breakpoint_inserted_here_p): Reimplement.
6206 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6208 Pushed by Joel Brobecker <brobecker@adacore.com>
6209 * source.c (show_substitute_path_command): Fix display of matching
6212 2014-06-03 Gary Benson <gbenson@redhat.com>
6214 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6216 2014-06-02 Doug Evans <xdje42@gmail.com>
6218 Add parameter support for Guile.
6219 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6220 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6221 (scm-param.o): New rule.
6222 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6223 (gdbscm_misc_error): Declare.
6224 (gdbscm_canonicalize_command_name): Declare.
6225 (gdbscm_scm_to_host_string): Declare.
6226 (gdbscm_scm_from_host_string): Declare.
6227 (gdbscm_initialize_parameters): Declare.
6228 * guile/guile.c (initialize_gdb_module): Call
6229 gdbscm_initialize_parameters.
6230 * guile/lib/gdb.scm: Export parameter symbols.
6231 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6232 cmdscm_canonicalize_name and made public. All callers updated.
6233 * guile/scm-exception.c (gdbscm_misc_error): New function.
6234 * guile/scm-param.c: New file.
6235 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6236 (gdbscm_scm_to_host_string): New function.
6237 (gdbscm_scm_from_host_string): New function.
6238 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6240 2014-06-02 Doug Evans <xdje42@gmail.com>
6242 Add command support for Guile.
6243 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6244 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6245 (scm-cmd.o): New rule.
6246 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6247 (gdbscm_user_error_p): Declare.
6248 (gdbscm_parse_command_name): Declare.
6249 (gdbscm_valid_command_class_p): Declare.
6250 (gdbscm_initialize_commands): Declare.
6251 * guile/guile.c (initialize_gdb_module): Call
6252 gdbscm_initialize_commands.
6253 * guile/lib/gdb.scm: Export command symbols.
6254 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6255 (throw-user-error): New function.
6256 * guile/scm-cmd.c: New file.
6257 * guile/scm-exception.c (user_error_symbol): New static global.
6258 (gdbscm_user_error_p): New function.
6259 (gdbscm_initialize_exceptions): Set user_error_symbol.
6260 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6262 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6264 * top.c (command_loop): Handle comments here...
6265 (command_line_input): ... not here.
6267 2014-06-02 Doug Evans <xdje42@gmail.com>
6269 Add progspace support for Guile.
6270 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6271 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6272 (scm-progspace.o): New rule.
6273 * guile/guile-internal.h (pspace_smob): New typedef.
6274 (psscm_pspace_smob_pretty_printers): Declare.
6275 (psscm_pspace_smob_from_pspace): Declare.
6276 (psscm_scm_from_pspace): Declare.
6277 * guile/guile.c (initialize_gdb_module): Call
6278 gdbscm_initialize_pspaces.
6279 * guile/lib/gdb.scm: Export progspace symbols.
6280 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6282 (append-pretty-printer!): Ditto.
6283 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6285 * guile/scm-progspace.c: New file.
6287 2014-06-03 Alan Modra <amodra@gmail.com>
6289 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6290 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6292 2014-06-02 Doug Evans <dje@google.com>
6294 Add support for skeletonless type units.
6295 * dwarf2read.c (struct dwarf2_per_objfile): New member
6296 n_allocated_type_units.
6297 (struct dwarf2_per_objfile) <tu_stats>: New member
6298 nr_all_type_units_reallocs.
6299 (create_signatured_type_table_from_index): Initialize
6300 n_allocated_type_units
6301 (create_all_type_units): Ditto.
6302 (add_type_unit): Move up in file. New arg slot.
6303 All callers updated. Increase space for all_type_units more
6305 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6306 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6307 (lookup_dwp_signatured_type): Ditto.
6308 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6309 All callers updated.
6310 (build_type_psymtabs_1): Leave type_unit_groups as
6311 NULL if no TUs present.
6312 (print_tu_stats): New function.
6313 (process_skeletonless_type_unit): New function.
6314 (process_dwo_file_for_skeletonless_type_units): New
6316 (process_skeletonless_type_units): New function.
6317 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6318 Call print tu_stats if debugging enabled.
6320 2014-06-02 Pedro Alves <palves@redhat.com>
6322 * breakpoint.c (build_target_command_list): Don't build a command
6323 list if we have any duplicate location that isn't a dprintf.
6325 2014-06-02 Pedro Alves <palves@redhat.com>
6327 * breakpoint.c (dprintf_breakpoint_hit): New function.
6328 (initialize_breakpoint_ops): Install it as dprintf's
6329 breakpoint_hit method.
6331 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6333 * source.c (substitute_path_rule_matches): Simplify using
6334 filename_ncmp instead of FILENAME_CMP.
6336 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6338 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6340 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6342 * configure.ac: When Guile is available, check for the
6343 availability of 'scm_new_smob'.
6344 * configure, config.h.in: Regenerate.
6345 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6348 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6350 * frame.c (struct frame_info): Add stop_string field.
6351 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6352 (get_prev_frame_always): Old content moved into
6353 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6354 TRY_CATCH, handle MEMORY_ERROR exceptions.
6355 (frame_stop_reason_string): New function definition.
6356 * frame.h (unwind_stop_reason_to_string): Extend comment to
6357 mention frame_stop_reason_string.
6358 (frame_stop_reason_string): New function declaration.
6359 * stack.c (frame_info): Switch to frame_stop_reason_string.
6360 (backtrace_command_1): Switch to frame_stop_reason_string.
6361 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6362 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6363 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6365 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6367 * frame.c (frame_stop_reason_string): Rename to ...
6368 (unwind_stop_reason_to_string): this.
6369 * frame.h (frame_stop_reason_string): Rename to ...
6370 (unwind_stop_reason_to_string): this.
6371 * stack.c (frame_info): Update call to frame_stop_reason_string.
6372 (backtrace_command_1): Likewise.
6373 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6374 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6376 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6378 * frame.c (remove_prev_frame): New function.
6379 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6382 2014-05-29 Pedro Alves <palves@redhat.com>
6384 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6385 and make it const. When a single-step decays to a continue,
6386 clear 'step', not 'hw_step'. Pass whether the caller wanted
6387 to step to user_visible_resume_ptid, not what we ask the
6390 2014-05-29 Pedro Alves <palves@redhat.com>
6392 * infrun.c (process_event_stop_test, handle_step_into_function)
6393 (handle_step_into_function_backward): Adjust.
6394 Don't set the even thread's stop_step and call stop_waiting before
6395 calling end_stepping_range. Instead do that ...
6396 (end_stepping_range): ... here. Take an ecs pointer parameter.
6398 2014-05-29 Pedro Alves <palves@redhat.com>
6400 * infrun.c (stop_stepping): Rename to ...
6401 (stop_waiting): ... this.
6402 (proceed): Update comment.
6403 (process_event_stop_test, handle_inferior_event)
6404 (handle_signal_stop, handle_step_into_function)
6405 (handle_step_into_function_backward): Update.
6407 2014-05-29 Pedro Alves <palves@redhat.com>
6409 * infcall.c (run_inferior_call): Don't check whether the current
6410 thread is running after the proceed call.
6412 2014-05-29 Pedro Alves <palves@redhat.com>
6413 Tom Tromey <tromey@redhat.com>
6415 * NEWS: Mention "maint set target-async", "set mi-async", and that
6416 background execution commands are now always available.
6417 * target.h (target_async_permitted): Update comment.
6418 * target.c (target_async_permitted, target_async_permitted_1):
6420 (set_target_async_command): Rename to ...
6421 (maint_set_target_async_command): ... this.
6422 (show_target_async_command): Rename to ...
6423 (maint_show_target_async_command): ... this.
6424 (_initialize_target): Adjust.
6425 * infcmd.c (prepare_execution_command): Make extern.
6426 * inferior.h (prepare_execution_command): Declare.
6427 * infrun.c (set_observer_mode): Leave target async alone.
6428 * mi/mi-interp.c (mi_interpreter_init): Install
6429 mi_on_sync_execution_done as sync_execution_done observer.
6430 (mi_on_sync_execution_done): New function.
6431 (mi_execute_command_input_handler): Don't print the prompt if we
6432 just started a synchronous command with an async target.
6433 (mi_on_resume): Check sync_execution before printing prompt.
6434 * mi/mi-main.h (mi_async_p): Declare.
6435 * mi/mi-main.c: Include gdbcmd.h.
6436 (mi_async_p): New function.
6437 (mi_async, mi_async_1): New globals.
6438 (set_mi_async_command, show_mi_async_command, mi_async): New
6440 (exec_continue): Call prepare_execution_command.
6441 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6442 (mi_execute_async_cli_command): Use mi_async_p.
6443 (_initialize_mi_main): Install "set mi-async". Make
6444 "target-async" a deprecated alias.
6446 2014-05-29 Pedro Alves <palves@redhat.com>
6448 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6449 (_initialize_cli_interp): Adjust.
6450 * event-loop.c: Include "observer.h".
6451 (start_event_loop): Notify 'command_error' observers instead of
6452 calling display_gdb_prompt. Remove FIXME comment.
6453 * event-top.c (display_gdb_prompt): Remove call into the
6455 * inf-loop.c: Include "observer.h".
6456 (inferior_event_handler): Notify 'command_error' observers instead
6457 of calling display_gdb_prompt.
6458 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6459 observers instead of calling display_gdb_prompt.
6460 * interps.c (interp_set): Don't call display_gdb_prompt.
6461 (current_interp_display_prompt_p): Delete.
6462 * interps.h (interp_prompt_p): Delete declaration.
6463 (interp_prompt_p_ftype): Delete.
6464 (struct interp_procs) <prompt_proc_p>: Delete field.
6465 (current_interp_display_prompt_p): Delete declaration.
6466 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6467 (_initialize_mi_interp): Adjust.
6468 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6469 'command_error' observers.
6470 (tui_on_sync_execution_done, tui_on_command_error): New
6472 (tui_display_prompt_p): Delete.
6473 (_initialize_tui_interp): Adjust.
6475 2014-05-29 Pedro Alves <palves@redhat.com>
6478 * cli/cli-interp.c: Include infrun.h and observer.h.
6479 (cli_uiout, cli_interp): New globals.
6480 (cli_on_signal_received, cli_on_end_stepping_range)
6481 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6483 (cli_interpreter_init): Install them as 'end_stepping_range',
6484 'signal_received' 'signal_exited', 'exited' and 'no_history'
6486 (_initialize_cli_interp): Remove cli_interp local.
6487 * infrun.c (handle_inferior_event): Call the several stop reason
6488 observers instead of printing the stop reason directly.
6489 (end_stepping_range): New function.
6490 (print_end_stepping_range_reason, print_signal_exited_reason)
6491 (print_exited_reason, print_signal_received_reason)
6492 (print_no_history_reason): Make static, and add an uiout
6493 parameter. Print to that instead of to CURRENT_UIOUT.
6494 * infrun.h (print_end_stepping_range_reason)
6495 (print_signal_exited_reason, print_exited_reason)
6496 (print_signal_received_reason print_no_history_reason): New
6498 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6500 <cli_uiout>: New field.
6501 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6502 uiout for CLI output. Install 'signal_received',
6503 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6505 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6506 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6507 (mi_on_no_history): New functions.
6508 (ui_out_free_cleanup): Delete function.
6509 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6510 instead use the one already stored in the MI interpreter data.
6511 (mi_ui_out): Adjust.
6512 * tui/tui-interp.c: Include infrun.h and observer.h.
6513 (tui_interp): New global.
6514 (tui_on_signal_received, tui_on_end_stepping_range)
6515 (tui_on_signal_exited, tui_on_exited)
6516 (tui_on_no_history): New functions.
6517 (tui_init): Install them as 'end_stepping_range',
6518 'signal_received' 'signal_exited', 'exited' and 'no_history'
6520 (_initialize_tui_interp): Delete tui_interp local.
6522 2014-05-29 Pedro Alves <palves@redhat.com>
6525 * linux-nat.c (linux_nat_resume_callback): Rename the second
6526 parameter to 'except'. Skip LP if it points to EXCEPT.
6527 (linux_nat_resume): Don't mark the event lwp as not stopped
6528 before resuming sibling lwps. Instead ask
6529 linux_nat_resume_callback to skip the event lwp. Mark it as not
6530 stopped after actually resuming it.
6531 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6533 (wait_lwp): Mark the lwp as stopped here.
6534 (stop_wait_callback): Mark the lwp as not stopped right after
6535 resuming it. Don't mark lwps as stopped here.
6536 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6537 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6539 2014-05-29 Pedro Alves <palves@redhat.com>
6542 * infrun.c (resume): Determine how much to resume depending on
6543 whether the caller wanted a step, not whether we can hardware step
6544 the target. Mark all threads that we intend to run as running,
6545 unless we're calling an inferior function.
6546 (normal_stop): If the thread is running an infcall, don't finish
6548 * target.c (target_resume): Don't mark threads as running here.
6550 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6552 * serial.c (_initialize_serial): Remove support for
6553 the "set remotebaud" and "show remotebaud" commands.
6554 * NEWS: Add entry documenting the removal of that command.
6556 2014-05-28 Yao Qi <yao@codesourcery.com>
6558 * charset.c: Fix typo in comments.
6560 2014-05-27 Gary Benson <gbenson@redhat.com>
6562 * utils.c (internal_vproblem): Prompt for a bug report.
6564 2014-05-26 Andy Wingo <wingo@igalia.com>
6566 * guile/scm-arch.c (arscm_mark_arch_smob):
6567 * guile/scm-block.c (bkscm_mark_block_smob)
6568 (bkscm_mark_block_syms_progress_smob):
6569 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6570 * guile/scm-exception.c (exscm_mark_exception_smob):
6571 * guile/scm-frame.c (frscm_mark_frame_smob):
6572 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6573 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6574 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6575 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6576 (ppscm_mark_pretty_printer_worker_smob):
6577 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6578 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6579 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6580 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6582 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6585 2014-05-26 Andy Wingo <wingo@igalia.com>
6586 Doug Evans <xdje42@gmail.com>
6588 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6589 empty_base_class. All uses updated.
6590 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6591 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6593 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6594 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6595 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6596 (gdbscm_gsmob_has_property_p, add_property_name)
6597 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6598 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6599 (gdb-object-has-property?, gdb-object-properties): Remove.
6600 (gdb-object-kind): Renamed from gsmob-kind.
6602 2014-05-26 Andy Wingo <wingo@igalia.com>
6604 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6605 * configure: Regenerate.
6607 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6609 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6611 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6613 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6614 (replay_memory_access_read_only, replay_memory_access_read_write)
6615 (replay_memory_access_types, replay_memory_access)
6616 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6617 (cmd_set_record_btrace, cmd_show_record_btrace)
6618 (cmd_show_replay_memory_access): New.
6619 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6620 (record_btrace_remove_breakpoint): Replace
6621 record_btrace_allow_memory_access with replay_memory_access.
6622 (_initialize_record_btrace): Add commands.
6623 * NEWS: Announce it.
6625 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6627 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6629 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6631 * MAINTAINERS (Write After Approval): Move self back from
6634 2014-05-22 Pedro Alves <palves@redhat.com>
6636 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6637 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6638 (disable_randomization, enum exec_direction_kind)
6639 (execution_direction, stop_registers, start_remote)
6640 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6641 (wait_for_inferior, normal_stop, get_last_target_status)
6642 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6643 (insert_step_resume_breakpoint_at_sal)
6644 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6645 (set_step_info, print_stop_event, signal_stop_state)
6646 (signal_print_state, signal_pass_state, signal_stop_update)
6647 (signal_print_update, signal_pass_update)
6648 (update_signals_program_target, clear_exit_convenience_vars)
6649 (displaced_step_dump_bytes, update_observer_mode)
6650 (signal_catch_update, gdb_signal_from_command): Move
6652 * infrun.h: ... to this new file.
6653 * amd64-tdep.c: Include infrun.h.
6654 * annotate.c: Include infrun.h.
6655 * arch-utils.c: Include infrun.h.
6656 * arm-linux-tdep.c: Include infrun.h.
6657 * arm-tdep.c: Include infrun.h.
6658 * break-catch-sig.c: Include infrun.h.
6659 * breakpoint.c: Include infrun.h.
6660 * common/agent.c: Include infrun.h instead of inferior.h.
6661 * corelow.c: Include infrun.h.
6662 * event-top.c: Include infrun.h.
6663 * go32-nat.c: Include infrun.h.
6664 * i386-tdep.c: Include infrun.h.
6665 * inf-loop.c: Include infrun.h.
6666 * infcall.c: Include infrun.h.
6667 * infcmd.c: Include infrun.h.
6668 * infrun.c: Include infrun.h.
6669 * linux-fork.c: Include infrun.h.
6670 * linux-nat.c: Include infrun.h.
6671 * linux-thread-db.c: Include infrun.h.
6672 * monitor.c: Include infrun.h.
6673 * nto-tdep.c: Include infrun.h.
6674 * procfs.c: Include infrun.h.
6675 * record-btrace.c: Include infrun.h.
6676 * record-full.c: Include infrun.h.
6677 * remote-m32r-sdi.c: Include infrun.h.
6678 * remote-mips.c: Include infrun.h.
6679 * remote-notif.c: Include infrun.h.
6680 * remote-sim.c: Include infrun.h.
6681 * remote.c: Include infrun.h.
6682 * reverse.c: Include infrun.h.
6683 * rs6000-tdep.c: Include infrun.h.
6684 * s390-linux-tdep.c: Include infrun.h.
6685 * solib-irix.c: Include infrun.h.
6686 * solib-osf.c: Include infrun.h.
6687 * solib-svr4.c: Include infrun.h.
6688 * target.c: Include infrun.h.
6689 * top.c: Include infrun.h.
6690 * windows-nat.c: Include infrun.h.
6691 * mi/mi-interp.c: Include infrun.h.
6692 * mi/mi-main.c: Include infrun.h.
6693 * python/py-threadevent.c: Include infrun.h.
6695 2014-05-22 Pedro Alves <palves@redhat.com>
6697 * infrun.c (handle_inferior_event): Store the exit code for
6698 --return-child-result here, instead of ...
6699 (print_exited_reason): ... here.
6701 2014-05-21 Pedro Alves <palves@redhat.com>
6704 * gdbthread.h (struct thread_control_state): New field
6706 * infrun.c (follow_fork): Copy the new thread control field to the
6708 (clear_proceed_status_thread): Clear the new thread control field.
6709 (proceed): Set the new thread control field.
6710 * interps.h (command_interp): Declare.
6711 * interps.c (command_interpreter): New global.
6712 (command_interp): New function.
6713 (interp_exec): Set `command_interpreter' while here.
6714 * cli-out.c (cli_uiout_dtor): New function.
6715 (cli_ui_out_impl): Install it.
6716 * mi/mi-interp.c: Include cli-out.h.
6717 (mi_cmd_interpreter_exec): Add comment.
6718 (restore_current_uiout_cleanup): New function.
6719 (ui_out_free_cleanup): New function.
6720 (mi_on_normal_stop): If finishing an execution command started by
6721 a CLI command, or any kind of breakpoint-like event triggered,
6722 print the stop event to the output (CLI) stream.
6723 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6725 2014-05-21 Pedro Alves <palves@redhat.com>
6727 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6728 current source line having changed.
6729 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6730 * infrun.c (normal_stop): Adjust call to
6731 set_current_sal_from_frame.
6732 * source.c (clear_lines_listed_range): New function.
6733 (set_current_source_symtab_and_line, identify_source_line): Clear
6734 the lines listed range.
6735 (line_info): Handle the first "info line" after the current source
6736 line having changed.
6737 * stack.c (print_stack_frame): Remove center handling.
6738 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6741 2014-05-21 Pedro Alves <palves@redhat.com>
6743 * inf-child.c (inf_child_mourn_inferior): New function.
6744 * inf-child.h (inf_child_mourn_inferior): New declaration.
6745 * darwin-nat.c (darwin_mourn_inferior): Use
6746 inf_child_mourn_inferior.
6747 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6748 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6749 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6750 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6751 * windows-nat.c (windows_mourn_inferior): Likewise.
6753 2014-05-21 Doug Evans <xdje42@gmail.com>
6755 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6757 2014-05-21 Doug Evans <xdje42@gmail.com>
6759 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6760 (gdbscm_out_of_range_error): Ditto.
6761 (gdbscm_memory_error): Ditto.
6762 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6763 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6764 (gdbscm_out_of_range_error): Update.
6765 (gdbscm_memory_error): Update.
6766 (gdbscm_scm_to_target_string_unsafe): Delete.
6768 2014-05-21 Pedro Alves <palves@redhat.com>
6770 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6772 (inf_child_open_target): New function.
6773 (inf_child_open): Use inf_child_open_target to push the target
6774 instead of erroring out.
6775 (inf_child_disconnect, inf_child_close)
6776 (inf_child_maybe_unpush_target): New functions.
6777 (inf_child_target): Install inf_child_disconnect and
6778 inf_child_close. Store a pointer to the returned object.
6779 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6781 * target.c (auto_connect_native_target): New global.
6782 (show_default_run_target): New function.
6783 (find_default_run_target): Return NULL if automatically connecting
6784 to the native target is disabled.
6785 (_initialize_target): Install set/show auto-connect-native-target.
6786 * NEWS: Mention "set auto-connect-native-target", and "target
6788 * linux-nat.c (super_close): New global.
6789 (linux_nat_close): Call super_close.
6790 (linux_nat_add_target): Store a pointer to the base class's
6792 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6793 inf_child_maybe_unpush.
6794 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6796 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6797 the inferior. Use inf_child_maybe_unpush_target.
6798 (inf_ttrace_attach): Don't push the target if it is already
6800 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6801 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6802 after mourning the inferior. Use inf_child_maybe_unpush_target.
6803 (darwin_attach_pid): Don't push the target if it is already
6805 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6806 mourning the inferior. Use inf_child_maybe_unpush_target.
6807 (gnu_detach): Use inf_child_maybe_unpush_target.
6808 * go32-nat.c (go32_create_inferior): Don't push the target if it
6810 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6811 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6812 (procfs_open): Rename to ...
6813 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6814 comments. Can target_preopen before changing node. Call
6815 inf_child_open_target to push the target explicitly.
6816 (procfs_attach): Don't push the target if it is already pushed.
6817 (procfs_detach): Use inf_child_maybe_unpush_target.
6818 (procfs_create_inferior): Don't push the target if it is already
6820 (nto_native_ops): New global.
6821 (procfs_open): Reimplement.
6822 (procfs_native_open): New function.
6823 (init_procfs_targets): Install procfs_native_open as to_open of
6824 "target native". Store a pointer to the "native" target in
6826 * procfs.c (procfs_attach): Don't push the target if it is already
6828 (procfs_detach): Use inf_child_maybe_unpush_target.
6829 (procfs_mourn_inferior): Only unpush the target after mourning the
6830 inferior. Use inf_child_maybe_unpush_target.
6831 (procfs_init_inferior): Don't push the target if it is already
6833 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6834 if it is already pushed.
6836 2014-05-21 Pedro Alves <palves@redhat.com>
6838 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6839 and "procfs" targets are now called "native" instead.
6841 2014-05-21 Pedro Alves <palves@redhat.com>
6843 * go32-nat.c (go32_open): Delete.
6844 (go32_target): Don't override the to_open method.
6846 2014-05-21 Pedro Alves <palves@redhat.com>
6848 * nto-procfs.c (procfs_can_run): New function.
6849 (nto_procfs_ops): New global.
6850 (init_procfs_targets): New, based on procfs_target. Install
6851 "target native" in addition to "target procfs".
6852 (_initialize_procfs): Call init_procfs_targets instead of adding
6855 2014-05-21 Pedro Alves <palves@redhat.com>
6857 * windows-nat.c (windows_target): Don't override to_shortname,
6858 to_longname or to_doc.
6860 2014-05-21 Pedro Alves <palves@redhat.com>
6862 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6865 2014-05-21 Pedro Alves <palves@redhat.com>
6867 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6868 to_shortname, to_longname or to_doc.
6870 2014-05-21 Pedro Alves <palves@redhat.com>
6872 * go32-nat.c (go32_target): Don't override to_shortname,
6873 to_longname or to_doc.
6875 2014-05-21 Pedro Alves <palves@redhat.com>
6877 * inf-child.c (inf_child_open): Remove mention of "child".
6878 (inf_child_target): Rename target to "native" instead of "child".
6880 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6882 * Makefile.in (SFILES): Delete "regset.c".
6883 (COMMON_OBS): Delete "regset.o".
6885 * regset.h (regset_alloc): Delete prototype.
6887 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6889 * sparc-linux-tdep.c (sparc32_linux_gregset)
6890 (sparc32_linux_fpregset): New static regset structures.
6891 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6892 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6894 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6895 (sparc64_linux_fpregset): New static regset structures.
6896 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6897 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6898 New static regset structures.
6899 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6900 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6901 New static regset structures.
6902 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6903 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6904 New static regset structures.
6905 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6906 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6907 New static regset structures.
6908 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6910 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6912 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6913 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6914 register maps ("regmaps") from "*regset" to "*regmap". Do this
6915 for all regmap types and variables.
6916 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6917 (sparc32_linux_supply_core_gregset)
6918 (sparc32_linux_collect_core_gregset)
6919 (sparc32_linux_supply_core_fpregset)
6920 (sparc32_linux_collect_core_fpregset): Likewise.
6921 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6922 (sparc_gregmap, sparc_fpregmap): ... these.
6923 (sparc_supply_gregset, sparc_collect_gregset)
6924 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6925 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6926 (_initialize_sparc_nat): Rename regmaps.
6927 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6928 (sparc_gregmap, sparc_fpregmap): ... these.
6929 (sparc_supply_gregset, sparc_collect_gregset)
6930 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6931 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6933 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6934 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6936 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6938 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6939 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6940 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6942 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6943 (sparc32_bsd_fpregset): Rename to...
6944 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6945 (sparc32_bsd_fpregmap): ... these.
6946 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6947 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6948 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6949 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6950 (struct sparc_gregmap, struct sparc_fpregmap)
6951 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6952 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6953 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6954 (sparc32_supply_regset, sparc32_collect_gregset)
6955 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6957 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6958 (sparc64_linux_ptrace_gregmap): ... this.
6959 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6960 (_initialize_sparc64_linux_nat): Rename regmaps.
6961 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6962 (sparc64_linux_core_gregmap): ... this.
6963 (sparc64_linux_supply_core_gregset)
6964 (sparc64_linux_collect_core_gregset)
6965 (sparc64_linux_supply_core_fpregset)
6966 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6967 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6968 (sparc64_sol2_fpregset): Rename to...
6969 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6970 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6971 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6973 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6974 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6975 (sparc64_bsd_fpregset): Rename to...
6976 (struct sparc_gregmap, sparc64_sol2_gregmap)
6977 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6978 (sparc64_bsd_fpregmap): ... these.
6979 (sparc64_supply_gregset, sparc64_collect_gregset)
6980 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6982 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6983 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6984 (sparc64fbsd_gregmap): ... this.
6985 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6986 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6988 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6989 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6990 (sparc64nbsd_collect_fpregset): Likewise.
6991 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6992 (sparc64nbsd_gregmap): ... this.
6993 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6995 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6996 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6997 (sparc64obsd_gregmap): ... this.
6998 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7000 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7001 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7002 (sparc32nbsd_gregmap): ... this.
7003 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7006 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7008 * score-tdep.c (score7_linux_gregset): New static regset
7010 (score7_linux_regset_from_core_section): Remove dynamic regset
7012 (score_gdbarch_init): Drop allocation of tdep structure.
7013 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7015 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7017 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7019 (am33_regset_from_core_section): Remove dynamic regset
7022 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7024 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7025 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7027 (mips_linux_regset_from_core_section): Remove dynamic regset
7029 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7030 'gregset64', 'fpregset', and 'fpregset64'.
7031 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7032 deleted tdep fields.
7034 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7036 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7038 (amd64_regset_from_core_section): Remove dynamic regset
7040 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7042 (amd64obsd_regset_from_core_section): Remove dynamic regset
7044 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7046 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7047 x86-common regset supply function.
7048 * i386-tdep.c (i386_collect_gregset): Make static.
7049 (i386_gregset): New global regset structure.
7050 (i386_fpregset, i386_xstateregset): New static regset structures.
7051 (i386_regset_from_core_section): Remove dynamic regset
7053 (i386_gdbarch_init): Remove initialization of tdep fields
7054 'gregset', 'fpregset', and 'xstateregset'.
7055 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7056 'fpregset', and 'xstateregset'.
7057 (i386_collect_gregset): Remove prototype.
7058 (i386_gregset): New declaration.
7059 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7061 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7064 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7066 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7067 (arm_linux_vfpregset): New static regset structures.
7068 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7070 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7071 and 'vfpregset' fields.
7073 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7075 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7076 (aarch64_linux_fpregset): New static regset structures.
7077 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7078 of regset structures.
7079 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7082 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7084 * regset.h (struct regset): Remove gdbarch field.
7085 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7086 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7087 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7089 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7090 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7091 (ppc32_linux_vsxregset): Likewise.
7092 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7093 via the regcache instead of the regset.
7094 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7095 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7096 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7097 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7100 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7102 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7103 Constify structures.
7104 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7105 (alphanbsd_aout_gregset): Likewise.
7106 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7107 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7109 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7110 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7112 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7113 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7114 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7115 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7116 * m88k-tdep.c (m88k_gregset): Likewise.
7117 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7118 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7119 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7120 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7121 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7122 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7123 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7124 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7125 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7127 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7128 * sh-tdep.h (sh_corefile_gregset): Likewise.
7129 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7130 * vax-tdep.c (vax_gregset): Likewise.
7132 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7134 Fix TLS access for -static -pthread.
7135 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7136 (try_thread_db_load_1): Initialize it.
7137 (thread_db_get_thread_local_address): Call it if LM is zero.
7138 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7139 * target.h (struct target_ops) (to_get_thread_local_address): Add
7140 load_module_addr comment.
7142 2014-05-21 Pedro Alves <palves@redhat.com>
7144 * dcache.c (dcache_read_memory_partial): If reading the cache line
7145 fails, fallback to reading just the memory the caller wanted.
7147 2014-05-20 Doug Evans <dje@google.com>
7149 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7150 instead of get_current_arch.
7152 2014-05-20 Pedro Alves <palves@redhat.com>
7154 * NEWS: Mention that compare-sections now works with all targets.
7156 * remote.c (PACKET_qCRC): New enum value.
7157 (remote_verify_memory): Don't send qCRC if the target has no
7158 execution. Use packet_support/packet_ok. If the target doesn't
7159 support the qCRC packet, fallback to a deep memory copy.
7160 (compare_sections_command): Say "target image" instead of "remote
7162 (_initialize_remote): Add PACKET_qCRC to the list of config
7163 packets that have no associated command. Extend comment.
7164 * target.c (simple_verify_memory, default_verify_memory): New
7166 * target.h (struct target_ops) <to_verify_memory>: Default to
7167 default_verify_memory.
7168 (simple_verify_memory): New declaration.
7169 * target-delegates.c: Regenerate.
7171 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7173 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7175 2014-05-20 Hui Zhu <hui@codesourcery.com>
7176 Yao Qi <yao@codesourcery.com>
7179 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7180 and change address of sp and pc.
7182 2014-05-19 Tom Tromey <tromey@redhat.com>
7184 * gdbtypes.c (rank_function): Use XNEWVEC.
7185 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7187 2014-05-19 Doug Evans <dje@google.com>
7189 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7190 build_type_unit_groups and moved closer to only caller. Remove
7191 arguments. All references updated. Remove outdated .gdb_index
7193 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7194 build_type_psymtabs_1.
7196 2014-05-19 Doug Evans <dje@google.com>
7198 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7199 n_type_unit_groups, all_type_unit_groups. All uses removed.
7200 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7201 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7202 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7203 (add_type_unit_group_to_table): Delete.
7205 2014-05-19 Doug Evans <dje@google.com>
7207 * eval.c (evaluate_subexp_standard): Add some comments.
7209 2014-05-17 Doug Evans <xdje42@gmail.com>
7211 * progspace.c (remove_program_space): Delete, unused.
7212 * progspace.h (remove_program_space): Ditto.
7214 2014-05-17 Doug Evans <xdje42@gmail.com>
7216 * inferior.c (prune_inferiors): Fix comment.
7217 (remove_inferior_command): Call prune_program_spaces.
7219 2014-05-16 Doug Evans <dje@google.com>
7221 New command line option -D.
7223 * main.c (set_gdb_data_directory): New function.
7224 (captured_main): Recognize -D. Flag error for --data-directory "".
7225 Call set_gdb_data_directory.
7226 (print_gdb_help): Print --data-directory, -D.
7227 * main.h (set_gdb_data_directory): Declare.
7228 * top.c (staged_gdb_datadir): New static global.
7229 (set_gdb_datadir): Call set_gdb_data_directory
7230 (show_gdb_datadir): New function.
7231 (init_main): Update init of data-directory parameter.
7233 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7235 Import the "dirfd" gnulib module.
7236 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7237 * gnulib/aclocal.m4: Update.
7238 * gnulib/config.in: Update.
7239 * gnulib/configure: Update.
7240 * gnulib/import/Makefile.am: Update.
7241 * gnulib/import/Makefile.in: Update.
7242 * gnulib/import/dirfd.c: New.
7243 * gnulib/import/m4/dirfd.m4: New.
7244 * gnulib/import/m4/gnulib-cache.m4: Update.
7245 * gnulib/import/m4/gnulib-comp.m4: Update.
7247 2014-05-16 Pierre Muller <muller@sourceware.org>
7248 Yao Qi <yao@codesourcery.com>
7250 * valprint.c (print_wchar): Move the code on checking whether
7251 W is a printable wide char to the default branch of switch
7252 statement below. Call wchar_printable instead of gdb_iswprint.
7254 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7256 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7257 ldr.w and ldrd instructions.
7259 2014-05-15 Doug Evans <dje@google.com>
7261 * dwarf2read.c (read_structure_type): Delete outdated comments.
7263 2014-05-14 Tom Tromey <tromey@redhat.com>
7265 * macrocmd.c (print_macro_definition): Reindent.
7267 2014-05-13 Doug Evans <xdje42@gmail.com>
7269 * python/py-cmd.c (cmdpy_completer): Add comment.
7270 (completers): Make const.
7272 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7274 * infrun.c (resume): Remove should_resume (unused). Move up
7275 declaration of resume_ptid.
7277 2014-05-13 Tom Tromey <tromey@redhat.com>
7279 * language.h (unop_type_check): Remove.
7280 (binop_type_check): Don't declare.
7282 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7284 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7285 call to regcache_raw_collect.
7287 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7289 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7290 mi_console->quote as the quoting character.
7292 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7294 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7296 2014-04-29 Tom Tromey <tromey@redhat.com>
7298 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7299 "show debug varobj".
7301 2014-05-07 Kyle McMartin <kyle@redhat.com>
7303 Pushed by Joel Brobecker <brobecker@adacore.com>.
7304 * aarch64-tdep.c (aarch64_software_single_step): New function.
7305 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7306 with aarch64_software_single_step.
7308 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7312 2014-05-05 Keith Seitz <keiths@redhat.com>
7314 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7315 variable or history value is successfully parsed.
7317 2014-05-05 Yao Qi <yao@codesourcery.com>
7318 Pedro Alves <palves@redhat.com>
7320 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7321 address of blocks that intersects the requested range. Trim
7322 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7324 * ctf.c (ctf_xfer_partial): Likewise.
7326 2014-05-05 Yao Qi <yao@codesourcery.com>
7328 * printcmd.c (display_command): Remove the check to
7329 target_has_execution.
7331 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7333 * ppcobsd-nat.c: Include "obsd-nat.h".
7334 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7336 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7338 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7340 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7341 and 16-bit signed and unsigned arguments. Update comment.
7342 (stap_parse_probe_arguments): Extend code to handle such
7343 arguments. Use warning instead of complaint to notify about
7344 unrecognized bitness.
7346 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7348 PR breakpoints/16889
7349 * stap-probe.c (stap_parse_probe_arguments): Simplify
7350 check for non-prefixed probes (i.e., probes whose
7351 arguments do not start with "N@"). Always set the
7352 argument type to a sane value.
7354 2014-05-01 David Taylor <dtaylor@emc.com>
7356 * remote.c (compare_sections_command): Add -r option to compare
7357 all loadable read-only sections.
7359 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7361 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7362 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7364 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7365 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7366 Remove unused CORE_ADDR argument. Update all callers.
7368 2014-04-29 Pedro Alves <palves@redhat.com>
7370 * remote.c (struct packet_config) <detect>: Extend comment.
7371 (add_packet_config_cmd): Don't set the config's detect or support
7373 (init_all_packet_configs): Also initialize the config's 'detect'
7375 (reset_all_packet_configs_support): New function.
7376 (remote_open_1): Call reset_all_packet_configs_support instead of
7377 init_all_packet_configs.
7378 (_initialize_remote): Initialize all packet configs. Assert that
7379 all packets have an associated command, except a few known
7382 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7384 * dwarf2read.c (read_subrange_type): Handle dynamic
7385 DW_AT_lower_bound attributes.
7387 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7389 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7390 dynamic bounds before computing its upper bound.
7391 (ada_discrete_type_low_bound): Same as above with the lower bound.
7393 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7395 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7396 range types. Adjust the array handling implementation to
7397 take advantage of this change.
7398 (resolve_dynamic_range): New function, mostly extracted from
7399 resolve_dynamic_bounds.
7400 (resolve_dynamic_array): New function, mostly extracted from
7401 resolve_dynamic_bounds.
7402 (resolve_dynamic_bounds): Delete.
7403 (resolve_dynamic_type): Reimplement. Add handling of
7404 TYPE_CODE_RANGE types.
7406 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7408 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7409 handling of parallel ___XA types.
7411 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7413 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7414 unnecessary second call to static_unwrap_type.
7416 2014-04-27 Hui Zhu <hui@codesourcery.com>
7418 * stack.c (print_frame_info): Call do_gdb_disassembly with
7419 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7421 2014-04-26 Doug Evans <xdje42@gmail.com>
7423 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7425 2014-04-25 Pedro Alves <palves@redhat.com>
7428 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7429 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7430 and newline from built string.
7431 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7432 (linux_ptrace_attach_fail_reason): ... this.
7433 * linux-nat.c (linux_nat_attach): Adjust to use
7434 linux_ptrace_attach_fail_reason.
7436 2014-04-25 Pedro Alves <palves@redhat.com>
7438 * remote.c (struct remote_state): Remove multi_process_aware,
7439 non_stop_aware, cond_tracepoints, cond_breakpoints,
7440 breakpoint_commands, fast_tracepoints, static_tracepoints,
7441 install_in_trace, disconnected_tracing,
7442 enable_disable_tracepoints, string_tracing, and
7443 augmented_libraries_svr4_read fields.
7444 (remote_multi_process_p): Move further below in the file.
7445 (struct packet_config): Add comments.
7446 (update_packet_config): Delete function.
7447 (show_packet_config_cmd): Use packet_config_support.
7448 (add_packet_config_cmd): Use NULL as set callback.
7449 (packet_ok): "set remote foo-packet"-style commands no longer
7450 change config->supported -- adjust.
7451 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7452 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7453 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7454 (PACKET_QNonStop, PACKET_multiprocess_feature)
7455 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7456 (PACKET_DisconnectedTracing_feature)
7457 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7458 (set_remote_protocol_packet_cmd): Delete function.
7459 (packet_config_support, packet_support): New functions.
7460 (set_remote_protocol_Z_packet_cmd): Don't call
7461 update_packet_config.
7462 (remote_query_attached, remote_pass_signals)
7463 (remote_program_signals, remote_threads_info)
7464 (remote_threads_extra_info, remote_start_remote): Use
7466 (remote_start_remote): Use packet_config_support and
7468 (init_all_packet_configs): Set all packets to unknown support,
7469 instead of calling update_packet_config.
7470 (remote_check_symbols): Use packet_support.
7471 (remote_supported_packet): Unconditionally set the packet config's
7473 (remote_multi_process_feature, remote_non_stop_feature)
7474 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7475 (remote_breakpoint_commands_feature)
7476 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7477 (remote_install_in_trace_feature)
7478 (remote_disconnected_tracing_feature)
7479 (remote_enable_disable_tracepoint_feature)
7480 (remote_string_tracing_feature)
7481 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7482 (remote_protocol_features): Adjust to use remote_supported_packet
7483 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7484 "ConditionalTracepoints", "ConditionalBreakpoints",
7485 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7486 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7487 "EnableDisableTracepoints", and "tracenz".
7488 (remote_query_supported): Use packet_support.
7489 (remote_open_1): Adjust.
7490 (extended_remote_attach_1): Use packet_support. Switch on the
7491 result of packet_ok instead of checking whether the packet ended
7493 (remote_vcont_resume): Use packet_support.
7494 (remote_resume, remote_stop_ns, fetch_register_using_p)
7495 (remote_prepare_to_store, store_register_using_P)
7496 (check_binary_download, remote_write_bytes): Use packet_support.
7497 (remote_vkill): Use packet_support. Switch on the result of
7498 packet_ok instead of checking whether the packet ended up
7500 (extended_remote_supports_disable_randomization): Use
7502 (extended_remote_run): Switch on the result of packet_ok instead
7503 of checking whether the packet ended up disabled.
7504 (remote_insert_breakpoint, remote_remove_breakpoint)
7505 (remote_insert_watchpoint, remote_remove_watchpoint)
7506 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7508 (remote_search_memory): Use packet_config_support.
7509 (remote_get_thread_local_address, remote_get_tib_address)
7510 (remote_hostio_send_command, remote_can_execute_reverse): Use
7512 (remote_supports_cond_tracepoints)
7513 (remote_supports_cond_breakpoints)
7514 (remote_supports_fast_tracepoints)
7515 (remote_supports_static_tracepoints)
7516 (remote_supports_install_in_trace)
7517 (remote_supports_enable_disable_tracepoint)
7518 (remote_supports_string_tracing)
7519 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7520 the packet config says the feature is enabled or disabled.
7521 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7522 (remote_get_trace_status): Use packet_support.
7523 (remote_set_disconnected_tracing): Adjust to check whether the
7524 feature is enabled with packet_support.
7525 (remote_set_trace_buffer_size, remote_use_agent)
7526 (remote_can_use_agent, remote_supports_btrace): Use
7528 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7529 Use packet_config_support.
7530 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7531 the packet config says the feature is enabled or disabled.
7532 (set_range_stepping): Use packet_support.
7534 2014-04-25 Tom Tromey <tromey@redhat.com>
7536 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7539 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7541 * NEWS: Mention support for C99 variable length arrays.
7543 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7545 * ada-lang.c (standard_exc): Expand introductory comment.
7547 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7548 Walfred Tedeschi <walfred.tedeschi@intel.com>
7550 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7552 (amd64_linux_read_description): Add code to handle AVX512 xstate
7553 mask and return respective tdesc.
7554 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7555 and features/i386/x32-avx512-linux.c.
7556 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7557 (amd64_linux_core_read_description): Add code to handle AVX512
7558 xstate mask and return respective tdesc.
7559 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7560 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7562 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7563 (tdesc_amd64_avx512_linux): New prototype.
7564 (tdesc_x32_avx512_linux): Likewise.
7565 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7566 features/i386/x32-avx512.c.
7567 (amd64_ymm_avx512_names): New register names for pseudo
7569 (amd64_ymmh_avx512_names): New register names for raw registers
7571 (amd64_k_names): New register names for K registers.
7572 (amd64_zmmh_names): New register names for ZMM raw registers.
7573 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7574 (amd64_xmm_avx512_names): New register names for XMM16-31
7576 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7578 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7579 if feature is present.
7580 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7581 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7582 (AMD64_NUM_REGS): Adjust to new number of registers.
7583 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7584 registers supplied via XSTATE by AVX512 registers.
7585 (i386_linux_read_description): Add case for AVX512.
7586 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7587 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7588 (i386_linux_core_read_description): Add case for AVX512.
7589 (i386_linux_init_abi): Install supported register note section
7591 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7593 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7594 registers to be number of zmm7h + 1.
7595 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7596 * i386-tdep.c: Include features/i386/i386-avx512.c.
7597 (i386_zmm_names): Add ZMM pseudo register names array.
7598 (i386_zmmh_names): Add ZMM raw register names array.
7599 (i386_k_names): Add K raw register names array.
7600 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7601 registers. AVX512 has 16 more ZMM registers than there are YMM
7603 (i386_zmmh_regnum_p): Add function to look up register number of
7605 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7606 (i386_k_regnum_p): Likewise for K raw registers.
7607 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7608 registers added by AVX512.
7609 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7610 registers added by AVX512.
7611 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7613 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7614 (i386_pseudo_register_name): Add ZMM pseudo registers.
7615 (i386_zmm_type): Construct and return vector registers type for ZMM
7617 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7618 ZMM0-31 pseudo registers and K registers.
7619 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7620 and YMM16-31 registers from register cache.
7621 (i386_pseudo_register_write): Add code to write K, ZMM and
7623 (i386_register_reggroup_p): Add code to include/exclude AVX512
7624 registers in/from respective register groups.
7625 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7626 registers if feature is present in xcr0.
7627 (i386_gdbarch_init): Add code to initialize AVX512 feature
7628 variables in tdep structure, wire in pseudo registers and call
7629 initialize_tdesc_i386_avx512.
7630 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7632 (i386_regnum): Add AVX512 registers.
7633 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7634 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7635 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7636 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7638 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7639 (i386_ymm_avx512_regnum_p): Likewise.
7640 (i386_k_regnum_p): Likewise.
7641 (i386_zmm_regnum_p): Likewise.
7642 (i386_zmmh_regnum_p): Likewise.
7643 * i387-tdep.c : Update year in copyright notice.
7644 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7646 (XSAVE_YMM_AVX512_ADDR): New macro.
7647 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7649 (XSAVE_XMM_AVX512_ADDR): New macro.
7650 (xsave_avx512_k_offset): New table for K register offsets in
7652 (XSAVE_AVX512_K_ADDR): New macro.
7653 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7655 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7656 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7658 (i387_collect_xsave): Add code to collect AVX512 registers from
7660 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7661 of XMM16-31 registers.
7662 (I387_NUM_K_REGS): New define for number of K registers.
7663 (I387_K0_REGNUM): New define for K0 register number.
7664 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7665 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7666 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7668 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7669 (I387_XMM16_REGNUM): New define for XMM16 register number.
7670 (I387_YMM0_REGNUM): New define for YMM0 register number.
7671 (I387_KEND_REGNUM): New define for last K register number.
7672 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7673 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7675 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7677 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7679 * features/Makefile: Add AVX512 related files.
7680 * features/i386/32bit-avx512.xml: New file.
7681 * features/i386/64bit-avx512.xml: Likewise.
7682 * features/i386/amd64-avx512-linux.c: Likewise.
7683 * features/i386/amd64-avx512-linux.xml: Likewise.
7684 * features/i386/amd64-avx512.c: Likewise.
7685 * features/i386/amd64-avx512.xml: Likewise.
7686 * features/i386/i386-avx512-linux.c: Likewise.
7687 * features/i386/i386-avx512-linux.xml: Likewise.
7688 * features/i386/i386-avx512.c: Likewise.
7689 * features/i386/i386-avx512.xml: Likewise.
7690 * features/i386/x32-avx512-linux.c: Likewise.
7691 * features/i386/x32-avx512-linux.xml: Likewise.
7692 * features/i386/x32-avx512.c: Likewise.
7693 * features/i386/x32-avx512.xml: Likewise.
7694 * regformats/i386/amd64-avx512-linux.dat: New file.
7695 * regformats/i386/amd64-avx512.dat: Likewise.
7696 * regformats/i386/i386-avx512-linux.dat: Likewise.
7697 * regformats/i386/i386-avx512.dat: Likewise.
7698 * regformats/i386/x32-avx512-linux.dat: Likewise.
7699 * regformats/i386/x32-avx512.dat: Likewise.
7700 * NEWS: Add note about new support for AVX512.
7703 2014-04-23 Pedro Alves <palves@redhat.com>
7705 * breakpoint.c (insert_bp_location): Tolerate errors if the
7706 breakpoint is set in a user-loaded objfile.
7707 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7708 location is marked shlib_disabled. If the breakpoint is set in a
7709 user-loaded objfile is a GDB-side memory breakpoint, validate it
7710 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7711 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7713 * mem-break.c (memory_validate_breakpoint): New function.
7714 * objfiles.c (userloaded_objfile_contains_address_p): New
7716 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7717 * target.h (memory_validate_breakpoint): New declaration.
7719 2014-04-23 Pedro Alves <palves@redhat.com>
7721 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7722 the breakpoint is set in a shared library, only suppress
7723 errors for software breakpoints, not hardware breakpoints.
7725 2014-04-22 Pedro Alves <palves@redhat.com>
7727 * infrun.c (schedlock_applies): New function, factored out from
7728 find_thread_needs_step_over.
7729 (find_thread_needs_step_over): Use it.
7730 (switch_back_to_stepped_thread): Always clear trap_expected if the
7731 step over is finished. Return early if scheduler locking applies.
7732 Look for the stepping thread and a potential step-over thread with
7734 (currently_stepping_or_nexting_callback): Delete.
7736 2014-04-22 Nick Clifton <nickc@redhat.com>
7738 * NEWS: Mention that ARM sim now supports tracing.
7740 2014-04-22 Yao Qi <yao@codesourcery.com>
7742 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7744 * tracefile.c (tracefile_fetch_registers): ... it. New
7746 * tracefile.h (tracefile_fetch_registers): Declare.
7747 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7748 tracefile_fetch_registers.
7750 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7753 * windows-nat.c (thread_rec): Don't display a warning when
7754 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7755 fails for any reason, set th->suspended to -1, so that we don't
7756 try to resume such a thread. Also, don't return NULL in these
7757 cases, to avoid completely ruin the session due to "PC register is
7758 not available" error.
7759 (do_windows_fetch_inferior_registers): Check errors in
7760 GetThreadContext call.
7761 (windows_continue): Accept an additional argument KILLED; if not
7762 zero, ignore errors in the SetThreadContext call, since the
7763 inferior was killed and is shutting down.
7764 (windows_resume, get_windows_debug_event)
7765 (windows_create_inferior, windows_mourn_inferior)
7766 (windows_kill_inferior): All callers of windows_continue changed
7767 to adjust to its new calling sequence.
7769 2014-04-19 Yao Qi <yao@codesourcery.com>
7771 * ctf.c (ctf_open): Call post_create_inferior.
7773 2014-04-19 Yao Qi <yao@codesourcery.com>
7775 * ctf.c (handle_id): New static variable.
7776 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7777 value. Get the declaration of event "register" and get length
7778 of field "contents".
7780 2014-04-19 Yao Qi <yao@codesourcery.com>
7782 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7784 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7786 * valops.c (oload_method_static): Remove unnecessary argument
7787 METHOD. Update all callers.
7789 2014-04-18 Pedro alves <palves@redhat.com>
7790 Tom Tromey <tromey@redhat.com>
7793 * frame.c (get_prev_frame_1): Rename to ...
7794 (get_prev_frame_always): ... this, and make extern. Adjust.
7795 (skip_artificial_frames): Use get_prev_frame_always.
7796 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7797 (get_frame_unwind_stop_reason): Adjust to rename.
7798 * frame.h (get_prev_frame_always): Declare.
7799 * inline-frame.c: Include frame.h.
7800 (inline_frame_this_id): Use get_prev_frame_always.
7802 2014-04-18 Tristan Gingold <gingold@adacore.com>
7804 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7805 code by using bfd_mach_o_get_base_address.
7807 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7809 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7810 (spu_ax_pseudo_register_collect): New function.
7811 (spu_ax_pseudo_register_push_stack): Likewise.
7812 (spu_dwarf_reg_to_regnum): Likewise.
7813 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7815 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7817 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7818 Replace FRAME argument with FRAME_ID.
7819 * gdbarch.c, gdbarch.h: Regenerate.
7820 * findvar.c (default_value_from_register): Add GDBARCH argument;
7821 replace FRAME by FRAME_ID. No longer call get_frame_id.
7822 (value_from_register): Update call to gdbarch_value_from_register.
7823 * value.h (default_value_from_register): Update prototype.
7824 * s390-linux-tdep.c (s390_value_from_register): Update interface
7825 and call to default_value_from_register.
7826 * spu-tdep.c (spu_value_from_register): Likewise.
7828 * findvar.c (address_from_register): Remove TYPE argument.
7829 Do not call value_from_register; use gdbarch_value_from_register
7830 with null_frame_id instead.
7831 * value.h (address_from_register): Update prototype.
7832 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7833 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7834 address_from_register interface change.
7836 2014-04-17 Yao Qi <yao@codesourcery.com>
7838 * gdbtypes.h: Update comments to link to types and macros'
7841 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7843 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7845 2014-04-16 Keith Seitz <keiths@redhat.com>
7848 * dwarf2read.c (skip_one_die): Check that all relative-offset
7849 sibling DIEs fall within range of the current reader's buffer.
7850 (read_partial_die): Likewise.
7852 2014-04-16 Keith Seitz <keiths@redhat.com>
7855 * cp-namespace.c (lookup_symbol_file): If the type name of
7856 `this' is NULL, return immediately.
7858 2014-04-14 Keith Seitz <keiths@redhat.com>
7861 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7862 from symbol_matches_domain in symtab.c. All local callers
7863 of symbol_matches_domain updated.
7864 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7865 search STRUCT_DOMAIN.
7866 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7867 independently. standard_lookup will do that automatically.
7868 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7869 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7870 (cp_lookup_symbol_in_namespace): Likewise.
7871 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7872 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7873 may return a STRUCT_DOMAIN match.
7874 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7875 * cp-support.c: Include language.h.
7876 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7878 * psymtab.c (match_partial_symbol): Compare the requested
7879 domain with the symbol's domain directly.
7880 (lookup_partial_symbol): Likewise.
7881 * symtab.c (lookup_symbol_in_language): Explain when/why
7882 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7883 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7884 appropriate languages.
7885 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7886 and moved to ada-lang.c
7887 (lookup_block_symbol): Explain that this function only returns
7888 symbol matching the requested DOMAIN.
7889 Compare the requested domain with the symbol's domain directly.
7890 (iterate_over_symbols): Compare the requested domain with the
7891 symbol's domain directly.
7892 * symtab.h (symbol_matches_domain): Remove.
7894 2014-04-14 Tom Tromey <tromey@redhat.com>
7897 * c-exp.y (type_aggregate_p): New function.
7898 (qualified_name, classify_inner_name): Use it.
7899 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7900 and TYPE_TARGET_TYPE of an enum type.
7901 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7903 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7904 handle TYPE_DECLARED_CLASS.
7905 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7907 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7908 * valops.c (enum_constant_from_type): New function.
7909 (value_aggregate_elt): Use it.
7910 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7913 2014-04-14 Tom Tromey <tromey@redhat.com>
7915 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7916 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7918 * value.h (value_aggregate_elt): Update.
7920 2014-04-14 Tom Tromey <tromey@redhat.com>
7922 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7924 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7926 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7927 (evaluate_subexp_standard): Pass noside argument.
7928 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7929 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7930 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7931 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7932 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7934 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7936 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7937 points to a constant blob.
7939 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7941 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7942 property and store it as the high bound and flag the range accordingly.
7943 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7944 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7945 * gdbtypes.h (enum range_flags): New enum.
7946 (struct range_bounds): Add flags member.
7948 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7950 * c-typeprint.c (c_type_print_varspec_suffix): Added
7951 check for not yet resolved high bound. If unresolved, print
7952 "variable length" string to the console instead of random
7955 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7957 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7959 (ada_template_to_fixed_record_type_1): Likewise.
7960 (ada_to_fixed_type_1): Likewise.
7961 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7962 (cp_print_value): Likewise.
7963 * d-valprint.c (dynamic_array_type): Likewise.
7964 * findvar.c (address_of_variable): Likewise.
7965 * jv-valprint.c (java_value_print): Likewise.
7966 * valops.c (value_ind): Likewise.
7967 * value.c (coerce_ref): Likewise.
7969 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7971 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7972 value and retrieve the dynamic type size.
7974 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7976 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7977 passed to sizeof is dynamic evaluate the argument to compute the length.
7979 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7980 Joel Brobecker <brobecker@adacore.com>
7982 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7983 (dwarf2_evaluate_property): New function.
7984 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7985 * dwarf2read.c (attr_to_dynamic_prop): New function.
7986 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7988 * gdbtypes.c: Include dwarf2loc.h.
7989 (is_dynamic_type): New function.
7990 (resolve_dynamic_type): New function.
7991 (resolve_dynamic_bounds): New function.
7992 (get_type_length): New function.
7993 (check_typedef): Use get_type_length to compute type length.
7994 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7995 (TYPE_LOW_BOUND_KIND): New macro.
7996 (is_dynamic_type): New function prototype.
7997 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7998 to resolve dynamic properties of the type. Update comment.
7999 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8001 2014-04-14 Richard Henderson <rth@redhat.com>
8003 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8005 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8006 Doug Evans <xdje42@gmail.com>
8008 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8009 dereference TYPE_CODE_REF values.
8011 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8013 Revert the following changes due to regressions:
8015 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8016 (dwarf2_evaluate_property): New function.
8017 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8018 * dwarf2read.c (attr_to_dynamic_prop): New function.
8019 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8021 * gdbtypes.c: Include dwarf2loc.h.
8022 (is_dynamic_type): New function.
8023 (resolve_dynamic_type): New function.
8024 (resolve_dynamic_bounds): New function.
8025 (get_type_length): New function.
8026 (check_typedef): Use get_type_length to compute type length.
8027 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8028 (TYPE_LOW_BOUND_KIND): New macro.
8029 (is_dynamic_type): New function prototype.
8030 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8031 to resolve dynamic properties of the type. Update comment.
8032 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8034 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8035 passed to sizeof is dynamic evaluate the argument to compute the length.
8037 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8038 value and retrieve the dynamic type size.
8040 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8041 (ada_template_to_fixed_record_type_1): Likewise.
8042 (ada_to_fixed_type_1): Likewise.
8043 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8044 (cp_print_value): Likewise.
8045 * d-valprint.c (dynamic_array_type): Likewise.
8046 * eval.c (evaluate_subexp_with_coercion): Likewise.
8047 * findvar.c (address_of_variable): Likewise.
8048 * jv-valprint.c (java_value_print): Likewise.
8049 * valops.c (value_ind): Likewise.
8050 * value.c (coerce_ref): Likewise.
8052 * c-typeprint.c (c_type_print_varspec_suffix): Added
8053 check for not yet resolved high bound. If unresolved, print
8054 "variable length" string to the console instead of random
8057 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8058 property and store it as the high bound and flag the range accordingly.
8059 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8060 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8061 * gdbtypes.h (enum range_flags): New enum.
8062 (struct range_bounds): Add flags member.
8064 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8065 points to a constant blob.
8067 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8068 (evaluate_subexp_standard): Pass noside argument.
8069 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8070 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8071 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8072 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8073 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8075 2014-04-11 Keith Seitz <keiths@redhat.com>
8078 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8079 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8082 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8084 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8085 (evaluate_subexp_standard): Pass noside argument.
8086 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8087 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8088 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8089 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8090 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8092 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8094 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8095 points to a constant blob.
8097 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8099 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8100 property and store it as the high bound and flag the range accordingly.
8101 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8102 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8103 * gdbtypes.h (enum range_flags): New enum.
8104 (struct range_bounds): Add flags member.
8106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8108 * c-typeprint.c (c_type_print_varspec_suffix): Added
8109 check for not yet resolved high bound. If unresolved, print
8110 "variable length" string to the console instead of random
8113 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8115 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8116 (ada_template_to_fixed_record_type_1): Likewise.
8117 (ada_to_fixed_type_1): Likewise.
8118 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8119 (cp_print_value): Likewise.
8120 * d-valprint.c (dynamic_array_type): Likewise.
8121 * eval.c (evaluate_subexp_with_coercion): Likewise.
8122 * findvar.c (address_of_variable): Likewise.
8123 * jv-valprint.c (java_value_print): Likewise.
8124 * valops.c (value_ind): Likewise.
8125 * value.c (coerce_ref): Likewise.
8127 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8129 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8130 value and retrieve the dynamic type size.
8132 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8134 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8135 passed to sizeof is dynamic evaluate the argument to compute the length.
8137 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8139 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8140 (dwarf2_evaluate_property): New function.
8141 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8142 * dwarf2read.c (attr_to_dynamic_prop): New function.
8143 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8145 * gdbtypes.c: Include dwarf2loc.h.
8146 (is_dynamic_type): New function.
8147 (resolve_dynamic_type): New function.
8148 (resolve_dynamic_bounds): New function.
8149 (get_type_length): New function.
8150 (check_typedef): Use get_type_length to compute type length.
8151 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8152 (TYPE_LOW_BOUND_KIND): New macro.
8153 (is_dynamic_type): New function prototype.
8154 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8155 to resolve dynamic properties of the type. Update comment.
8156 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8158 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8160 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8161 declaring high/low bounds and change uses accordingly. Call
8162 create_range_type instead of create_static_range_type.
8163 * gdbtypes.c (create_range_type): New function.
8164 (create_range_type): Convert bounds into struct bound_prop and pass
8165 them to create_range_type.
8166 * gdbtypes.h (struct bound_prop): New struct.
8167 (create_range_type): New function prototype.
8168 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8169 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8170 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8172 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8174 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8176 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8177 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8178 * ada-lang.c: All uses of create_range_type updated.
8179 * coffread.c: All uses of create_range_type updated.
8180 * dwarf2read.c: All uses of create_range_type updated.
8181 * f-exp.y: All uses of create_range_type updated.
8182 * m2-valprint.c: All uses of create_range_type updated.
8183 * mdebugread.c: All uses of create_range_type updated.
8184 * stabsread.c: All uses of create_range_type updated.
8185 * valops.c: All uses of create_range_type updated.
8186 * valprint.c: All uses of create_range_type updated.
8188 2014-04-10 Pedro Alves <palves@redhat.com>
8190 * breakpoint.c (single_step_breakpoints)
8191 (single_step_gdbarch): Move up in the file.
8192 (one_breakpoint_xfer_memory): New function, factored out from ...
8193 (breakpoint_xfer_memory): ... here. Also process single-step
8196 2014-04-09 Tristan Gingold <gingold@adacore.com>
8198 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8200 (darwin_decode_exception_message): Free port only after use.
8202 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8204 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8205 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8206 when setting the size of call_length.
8208 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8210 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8211 dereference TYPE_CODE_REF values.
8213 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8215 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8216 end of warning message.
8218 2014-04-03 Doug Evans <dje@google.com>
8220 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8221 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8223 2014-04-02 Alan Modra <amodra@gmail.com>
8225 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8226 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8227 (struct symbol_file_add_from_memory_args): Add size field.
8228 (find_vdso_size): New function.
8229 (add_vsyscall_page): Attempt to find vdso size.
8231 2014-04-01 Doug Evans <dje@google.com>
8233 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8235 2014-04-01 Tristan Gingold <gingold@adacore.com>
8237 * darwin-nat.c (darwin_encode_reply): Add prototype.
8238 (darwin_decode_exception_message): Reply to unknown inferiors.
8239 (darwin_decode_message): Handle message by id. Ignore message
8240 to unknown inferior.
8241 (darwin_wait): Discard unknown messages, add debug trace.
8243 2014-03-31 Doug Evans <dje@google.com>
8245 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8248 2014-03-31 Doug Evans <dje@google.com>
8250 New option "set print symbol-loading".
8252 * solib.c (solib_read_symbols): Only print symbol loading messages
8254 (solib_add): If symbol loading is in "brief" mode, notify user
8255 symbols are being loaded.
8256 (reload_shared_libraries_1): Ditto.
8257 * symfile.c (print_symbol_loading_off): New static global.
8258 (print_symbol_loading_brief): New static global.
8259 (print_symbol_loading_full): New static global.
8260 (print_symbol_loading_enums): New static global.
8261 (print_symbol_loading): New static global.
8262 (print_symbol_loading_p): New function.
8263 (symbol_file_add_with_addrs): Only print symbol loading messages
8265 (_initialize_symfile): Register "print symbol-loading" set/show
8267 * symfile.h (print_symbol_loading_p): Declare.
8269 2014-03-30 Doug Evans <xdje42@gmail.com>
8271 * infrun.c (set_last_target_status): New function.
8272 (handle_inferior_event): Call it.
8274 2014-03-30 Doug Evans <xdje42@gmail.com>
8276 * inferior.h (enum stop_kind): Improve comment.
8278 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8280 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8281 a reference, strip the reference layer before calling
8282 the lang_ops value_has_mutated callback.
8284 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8286 Remove some globals from our parser.
8287 * language.c (unk_lang_parser): Add "struct parser_state"
8289 * language.h (struct language_defn) <la_parser>: Likewise.
8290 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8291 (initialize_expout): Add "struct parser_state" argument.
8292 Rewrite function to use the parser state.
8293 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8294 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8295 write_exp_elt_longcst, write_exp_elt_dblcst,
8296 write_exp_elt_decfloatcst, write_exp_elt_type,
8297 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8298 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8299 write_dollar_variable): Likewise.
8300 (parse_exp_in_context_1): Use parser state.
8301 (insert_type_address_space): Add "struct parser_state" argument.
8303 (increase_expout_size): New function.
8304 * parser-defs.h: Forward declare "struct language_defn" and
8305 "struct parser_state".
8306 (expout, expout_size, expout_ptr): Remove extern declarations.
8307 (parse_gdbarch, parse_language): Rewrite macro declarations to
8308 accept the parser state.
8309 (struct parser_state): New struct.
8310 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8311 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8312 write_exp_elt_decfloatcst, write_exp_elt_type,
8313 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8314 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8315 write_exp_msymbol, write_dollar_variable,
8316 mark_struct_expression, insert_type_address_space): Add "struct
8317 parser_state" argument.
8318 (increase_expout_size): New function.
8319 * utils.c (do_clear_parser_state): New function.
8320 (make_cleanup_clear_parser_state): Likewise.
8321 * utils.h (make_cleanup_clear_parser_state): New function
8323 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8324 Update calls to write_exp* in order to pass the parser state.
8325 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8326 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8327 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8328 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8329 * stap-probe.c (stap_parse_register_operand): Likewise.
8330 (stap_parse_single_operand): Likewise.
8331 (stap_parse_argument_1): Likewise.
8332 (stap_parse_argument): Use parser state.
8333 * stap-probe.h: Include "parser-defs.h".
8334 (struct stap_parse_info) <pstate>: New field.
8335 * c-exp.y (parse_type): Rewrite to use parser state.
8336 (yyparse): Redefine to c_parse_internal.
8337 (pstate): New global variable.
8338 (parse_number): Add "struct parser_state" argument.
8339 (write_destructor_name): Likewise.
8340 (type_exp): Update calls to write_exp* and similars in order to
8342 (exp1, exp, variable, qualified_name, space_identifier,
8343 typename, typebase): Likewise.
8344 (write_destructor_name, parse_number, lex_one_token,
8345 classify_name, classify_inner_name, c_parse): Add "struct
8346 parser_state" argument. Update function to use parser state.
8347 * c-lang.h: Forward declare "struct parser_state".
8348 (c_parse): Add "struct parser_state" argument.
8349 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8350 (yyparse): Redefine macro to ada_parse_internal.
8351 (pstate): New variable.
8352 (write_int, write_object_renaming, write_var_or_type,
8353 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8354 type_int, type_long, type_long_long, type_float, type_double,
8355 type_long_double, type_char, type_boolean, type_system_address):
8356 Add "struct parser_state" argument.
8357 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8358 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8359 var_or_type, aggregate, aggregate_component_list,
8360 positional_list, others, component_group,
8361 component_associations): Update calls to write_exp* and similar
8362 functions in order to use parser state.
8363 (ada_parse, write_var_from_sym, write_int,
8364 write_exp_op_with_string, write_object_renaming,
8365 find_primitive_type, write_selectors, write_ambiguous_var,
8366 write_var_or_type, write_name_assoc, type_int, type_long,
8367 type_long_long, type_float, type_double, type_long_double,
8368 type_char, type_boolean, type_system_address): Add "struct
8369 parser_state" argument. Adjust function to use parser state.
8370 * ada-lang.c (parse): Likewise.
8371 * ada-lang.h: Forward declare "struct parser_state".
8372 (ada_parse): Add "struct parser_state" argument.
8373 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8374 calls to both functions.
8375 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8377 (yyparse): Redefine macro to f_parse_internal.
8378 (pstate): New variable.
8379 (parse_number): Add "struct parser_state" argument.
8380 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8381 and similars in order to use parser state.
8382 (parse_number): Adjust code to use parser state.
8384 (f_parse): New function.
8385 * f-lang.h: Forward declare "struct parser_state".
8386 (f_parse): Add "struct parser_state" argument.
8387 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8389 (yyparse): Redefine macro for java_parse_internal.
8390 (pstate): New variable.
8391 (push_expression_name, push_expression_name, insert_exp): Add
8392 "struct parser_state" argument.
8393 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8394 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8395 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8396 PostIncrementExpression, PostDecrementExpression,
8397 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8398 UnaryExpressionNotPlusMinus, CastExpression,
8399 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8400 RelationalExpression, EqualityExpression, AndExpression,
8401 ExclusiveOrExpression, InclusiveOrExpression,
8402 ConditionalAndExpression, ConditionalOrExpression,
8403 ConditionalExpression, Assignment, LeftHandSide): Update
8404 calls to write_exp* and similars in order to use parser state.
8405 (parse_number): Ajust code to use parser state.
8407 (java_parse): New function.
8408 (push_variable): Add "struct parser_state" argument. Adjust
8409 code to user parser state.
8410 (push_fieldnames, push_qualified_expression_name,
8411 push_expression_name, insert_exp): Likewise.
8412 * jv-lang.h: Forward declare "struct parser_state".
8413 (java_parse): Add "struct parser_state" argument.
8414 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8416 (yyparse): Redefine macro to m2_parse_internal.
8417 (pstate): New variable.
8418 (type_exp, exp, fblock, variable, type): Update calls to
8419 write_exp* and similars to use parser state.
8421 (m2_parse): New function.
8422 * m2-lang.h: Forward declare "struct parser_state".
8423 (m2_parse): Add "struct parser_state" argument.
8424 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8425 * objc-lang.h: Forward declare "struct parser_state".
8426 (end_msglist): Add "struct parser_state" argument.
8427 * p-exp.y (parse_type): Rewrite macro to use parser state.
8428 (yyparse): Redefine macro to pascal_parse_internal.
8429 (pstate): New variable.
8430 (parse_number): Add "struct parser_state" argument.
8431 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8432 write_exp* and similars in order to use parser state.
8433 (parse_number, yylex): Adjust code to use parser state.
8434 (pascal_parse): New function.
8435 * p-lang.h: Forward declare "struct parser_state".
8436 (pascal_parse): Add "struct parser_state" argument.
8437 * go-exp.y (parse_type): Rewrite macro to use parser state.
8438 (yyparse): Redefine macro to go_parse_internal.
8439 (pstate): New variable.
8440 (parse_number): Add "struct parser_state" argument.
8441 (type_exp, exp1, exp, variable, type): Update calls to
8442 write_exp* and similars in order to use parser state.
8443 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8444 to use parser state.
8445 (go_parse): Likewise.
8446 * go-lang.h: Forward declare "struct parser_state".
8447 (go_parse): Add "struct parser_state" argument.
8449 2014-03-27 Doug Evans <dje@google.com>
8451 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8453 2014-03-27 Doug Evans <dje@google.com>
8455 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8456 Remove argument abbrev_section. All callers updated.
8458 2014-03-27 Doug Evans <dje@google.com>
8460 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8461 addr_base, ranges_base.
8463 2014-03-26 Keith Seitz <keiths@redhat.com>
8465 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8466 types, not VAR_DOMAIN.
8468 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8470 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8472 * features/nios2-linux.c: Regenerated.
8473 * features/nios2.c: Regenerated.
8475 2014-03-25 Pedro Alves <palves@redhat.com>
8477 * cli/cli-script.c (script_from_file): Force the interpreter to
8480 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8482 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8483 small stack allocation.
8485 2014-03-24 Tristan Gingold <gingold@adacore.com>
8487 * darwin-nat.c (exc_server): Remove unused prototype.
8488 (darwin_dump_message): Correctly display data on x86_64.
8489 (darwin_encode_reply): Fix style.
8490 Add comments and fix indentation.
8492 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8494 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8496 2014-03-22 Doug Evans <xdje42@gmail.com>
8498 * infcmd.c: Whitespace fixes.
8499 (interrupt_command): Merge two function comments into one.
8501 2014-03-22 Doug Evans <xdje42@gmail.com>
8503 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8506 2014-03-22 Yao Qi <yao@codesourcery.com>
8508 * remote.c (target_read_live_memory): Remove.
8509 (memory_xfer_live_readonly_partial): Rename it to
8510 remote_xfer_live_readonly_partial. Remove argument 'object'.
8511 All callers updated. Call remote_read_bytes_1
8512 instead of target_read_live_memory.
8513 * tracepoint.c (set_traceframe_number): Remove.
8514 (make_cleanup_restore_traceframe_number): Likewise .
8515 * tracepoint.h (set_traceframe_number): Remove declaration.
8516 (make_cleanup_restore_traceframe_number): Likewise.
8518 2014-03-22 Yao Qi <yao@codesourcery.com>
8520 * remote.c (remote_read_bytes): Move code on reading from the
8522 (remote_read_bytes_1): ... here. New function.
8524 2014-03-22 Yao Qi <yao@codesourcery.com>
8526 * ctf.c (ctf_xfer_partial): Check the return value of
8527 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8528 return TARGET_XFER_UNAVAILABLE.
8529 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8530 * target.c (target_read_live_memory): Move it to remote.c.
8531 (memory_xfer_live_readonly_partial): Likewise.
8532 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8533 * remote.c (target_read_live_memory): Moved from target.c.
8534 (memory_xfer_live_readonly_partial): Likewise.
8535 (remote_read_bytes): Factored out from
8536 memory_xfer_partial_1.
8538 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8540 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8543 2014-03-21 Pedro Alves <palves@redhat.com>
8545 * infrun.c (normal_stop): Extend comment.
8547 2014-03-21 Hui Zhu <hui@codesourcery.com>
8548 Pedro Alves <palves@redhat.com>
8550 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8552 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8553 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8554 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8556 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8558 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8559 `z' formatted output modifier.
8561 2014-03-20 Tom Tromey <tromey@redhat.com>
8562 Sergio Durigan Junior <sergiodj@redhat.com>
8564 * probe.c (parse_probes): Turn assert into an ordinary error.
8565 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8566 exceptions when parsing probes. Rearrange the code for clarity.
8568 2014-03-20 Tom Tromey <tromey@redhat.com>
8571 * top.c (execute_command): Only dispatch events if the command
8574 2014-03-20 Tom Tromey <tromey@redhat.com>
8577 * infcall.c: Include event-top.h.
8578 (run_inferior_call): Call async_disable_stdin if needed.
8580 2014-03-20 Pedro Alves <palves@redhat.com>
8582 * infrun.c (prepare_to_proceed): Delete.
8583 (thread_still_needs_step_over): New function.
8584 (find_thread_needs_step_over): New function.
8585 (proceed): If the current thread needs a step-over, set its
8586 steping_over_breakpoint flag. Adjust to use
8587 find_thread_needs_step_over instead of prepare_to_proceed.
8588 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8589 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8591 (switch_back_to_stepped_thread): Step over breakpoints of all
8592 threads not the stepping thread, before switching back to the
8595 2014-03-20 Pedro Alves <palves@redhat.com>
8597 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8599 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8600 * infrun.c (saved_singlestep_ptid)
8601 (stepping_past_singlestep_breakpoint): Delete.
8602 (resume): Remove stepping_past_singlestep_breakpoint handling.
8603 (proceed): Store the prev_pc of the stepping thread too.
8604 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8606 (enum infwait_states): Delete infwait_thread_hop_state.
8607 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8609 (handle_inferior_event): Adjust.
8610 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8611 handling and the thread-hop code. Before removing single-step
8612 breakpoints, check whether the thread hit a single-step breakpoint
8613 of another thread. If it did, the trap is not a random signal.
8614 (switch_back_to_stepped_thread): If the event thread hit a
8615 single-step breakpoint, unblock it before switching to the
8616 stepping thread. Handle the case of the stepped thread having
8618 (keep_going): Handle the case of the current thread moving past a
8619 single-step breakpoint.
8621 2014-03-20 Pedro Alves <palves@redhat.com>
8624 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8625 are being stepped over.
8626 (breakpoint_address_match): Make extern.
8627 * breakpoint.h (breakpoint_address_match): New declaration.
8628 * inferior.h (stepping_past_instruction_at): New declaration.
8629 * infrun.c (struct step_over_info): New type.
8630 (step_over_info): New global.
8631 (set_step_over_info, clear_step_over_info)
8632 (stepping_past_instruction_at): New functions.
8633 (handle_inferior_event): Clear the step-over info when
8634 trap_expected is cleared.
8635 (resume): Remove now stale comment.
8636 (clear_proceed_status): Clear step-over info.
8637 (proceed): Adjust step-over handling to set or clear the step-over
8638 info instead of removing all breakpoints.
8639 (handle_signal_stop): When setting up a thread-hop, don't remove
8641 (stop_stepping): Clear step-over info.
8642 (keep_going): Adjust step-over handling to set or clear step-over
8643 info and then always inserting breakpoints, instead of removing
8644 all breakpoints when stepping over one.
8646 2014-03-20 Pedro Alves <palves@redhat.com>
8648 * infrun.c (previous_inferior_ptid): Adjust comment.
8649 (deferred_step_ptid): Delete.
8650 (infrun_thread_ptid_changed, prepare_to_proceed)
8651 (init_wait_for_inferior): Adjust.
8652 (handle_signal_stop): Delete deferred_step_ptid handling.
8654 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8657 * defs.h (sync_quit_force_run): New declaration.
8658 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8659 * event-top.c (async_sigterm_handler): New declaration.
8660 (async_sigterm_token): New variable.
8661 (async_init_signals): Create also async_sigterm_token.
8662 (async_sigterm_handler): New function.
8663 (sync_quit_force_run): New variable.
8664 (handle_sigterm): Replace quit_force call by other calls.
8665 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8667 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8669 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8670 offset into SPE pseudo registers.
8672 2014-03-18 Pedro Alves <palves@redhat.com>
8675 * inferior.h (print_stop_event): Declare.
8676 * infrun.c (print_stop_event): New, factored out from ...
8677 (normal_stop): ... this.
8678 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8679 of bpstat_print/print_stack_frame.
8681 2014-03-17 Tom Tromey <tromey@redhat.com>
8683 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8685 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8687 * ada-lang.c (decode_constrained_packed_array): Perform a
8688 minimal coercion for reference with coerce_ref instead of
8691 2014-03-17 Tristan Gingold <gingold@adacore.com>
8693 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8694 (darwin_solib_create_inferior_hook): Emit a warning if version
8697 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8699 * python/py-value.c (get_field_flag): Cast flag_name argument to
8700 PyObject_GetAttrString to support Python 2.4.
8702 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8704 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8705 (Global Maintainers): Remove Jan Kratochvil.
8707 2014-03-14 Pedro Alves <palves@redhat.com>
8709 * inferior.h (terminal_ours_for_output): Rename to ...
8710 (child_terminal_ours_for_output): ... this.
8711 (terminal_save_ours): Rename to ...
8712 (child_terminal_save_ours): ... this.
8713 (terminal_ours): Rename to ...
8714 (child_terminal_ours): ... this.
8715 (terminal_inferior): Rename to ...
8716 (child_terminal_inferior): ... this.
8717 (terminal_init_inferior): Rename to ...
8718 (child_terminal_init_inferior): ... this.
8719 (terminal_init_inferior_with_pgrp): Rename to ...
8720 (child_terminal_init_inferior_with_pgrp): ... this.
8721 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8722 (child_terminal_init_with_pgrp): ... this.
8723 (terminal_save_ours): Rename to ...
8724 (child_terminal_save_ours): ... this.
8725 (terminal_init_inferior): Rename to ...
8726 (child_terminal_init): ... this. Adjust.
8727 (terminal_inferior): Rename to ...
8728 (child_terminal_inferior): ... this.
8729 (terminal_ours_for_output): Rename to ...
8730 (child_terminal_ours_for_output): ... this. Adjust.
8731 (terminal_ours): Rename to ...
8732 (child_terminal_ours): ... this.
8733 (terminal_ours_1): Rename to ...
8734 (child_terminal_ours_1): ... this. Adjust.
8735 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8736 * windows-nat.c (do_initial_windows_stuff): Adjust.
8737 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8738 (gnu_terminal_init): ... this. Adjust.
8739 (gnu_target): Adjust.
8740 * inf-child.c (inf_child_target): Adjust.
8742 2014-03-13 Doug Evans <xdje42@gmail.com>
8745 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8748 2014-03-13 Doug Evans <xdje42@gmail.com>
8750 * value.c (record_latest_value): Call release_value_or_incref
8751 instead of release_value.
8753 2014-03-13 Pedro Alves <palves@redhat.com>
8755 * procfs.c (procfs_target): Don't override to_shortname,
8756 to_longname or to_doc.
8758 2014-03-13 Pedro Alves <palves@redhat.com>
8760 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8761 Unix in user visible strings.
8763 2014-03-12 Stan Shebs <stan@codesourcery.com>
8765 * gdbtypes.h: Annotate comments for Doxygen, add a page
8766 block comment with some general info.
8768 2014-03-12 Pedro Alves <palves@redhat.com>
8770 * infcmd.c (prepare_execution_command): New function, factored out
8771 from several execution commands.
8772 (run_command_1, continue_command, step_1, jump_command)
8773 (signal_command, until_command, advance_command, finish_command)
8774 (attach_command): Use prepare_execution_command.
8776 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8778 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8781 (struct arm_linux_thread_points): Removed.
8782 (struct arm_linux_process_info): New.
8783 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8784 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8785 (arm_linux_find_breakpoints_by_tid): Removed.
8786 (struct arch_lwp_info): New.
8787 (arm_linux_find_process_pid): New functions.
8788 (arm_linux_add_process): New functions.
8789 (arm_linux_process_info_get): New functions.
8790 (arm_linux_forget_process): New function.
8791 (arm_linux_get_debug_reg_state): New function.
8792 (struct update_registers_data): New.
8793 (update_registers_callback): New function.
8794 (arm_linux_insert_hw_breakpoint1): Updated.
8795 (arm_linux_remove_hw_breakpoint1): Updated.
8796 (arm_linux_insert_hw_breakpoint): Updated.
8797 (arm_linux_remove_hw_breakpoint): Updated.
8798 (arm_linux_insert_watchpoint): Updated.
8799 (arm_linux_remove_watchpoint): Updated.
8800 (arm_linux_new_thread): Updated.
8801 (arm_linux_prepare_to_resume): New function.
8802 (arm_linux_new_fork): New function.
8803 (_initialize_arm_linux_nat): Updated.
8805 2014-03-12 Pedro Alves <palves@redhat.com>
8807 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8809 2014-03-12 Tom Tromey <tromey@redhat.com>
8811 * inf-child.c (return_zero): New function.
8812 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8813 * aix-thread.c (aix_thread_inferior_created): New function.
8814 (aix_thread_attach): Remove.
8815 (init_aix_thread_ops): Don't set to_attach.
8816 (_initialize_aix_thread): Register inferior_created observer.
8817 * corelow.c (init_core_ops): Don't set to_attach or
8819 * exec.c (init_exec_ops): Don't set to_attach or
8821 * infcmd.c (run_command_1): Use find_run_target. Make direct
8823 (attach_command): Use find_attach_target. Make direct target
8825 * record-btrace.c (init_record_btrace_ops): Don't set
8827 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8829 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8830 set to_create_inferior.
8831 * target.c (complete_target_initialization): Add assertion.
8832 (target_create_inferior): Remove.
8833 (find_default_attach, find_default_create_inferior): Remove.
8834 (find_attach_target, find_run_target): New functions.
8835 (find_default_is_async_p, find_default_can_async_p)
8836 (target_supports_non_stop, target_attach): Remove.
8837 (init_dummy_target): Don't set to_create_inferior or
8838 to_supports_non_stop.
8839 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8840 TARGET_DEFAULT_FUNC.
8841 <to_create_inferior>: Add comment.
8842 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8843 TARGET_DEFAULT_RETURN.
8844 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8845 (find_attach_target, find_run_target): Declare.
8846 (target_create_inferior): Remove.
8847 (target_has_execution_1): Update comment.
8848 (target_supports_non_stop): Remove.
8849 * target-delegates.c: Rebuild.
8851 2014-03-12 Pedro Alves <palves@redhat.com>
8853 * inf-child.h: Update comment to not mention Unix.
8855 2014-03-12 Pedro Alves <palves@redhat.com>
8857 * inf-child.c: Update top comment to not mention Unix. Add
8858 generic comment describing how this target is meant to be used.
8859 (inf_child_post_attach, inf_child_post_startup_inferior)
8860 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8863 2014-03-12 Pedro Alves <palves@redhat.com>
8865 * nto-procfs.c: Include inf-child.h.
8866 (procfs_ops): Delete global.
8867 (procfs_can_run): Delete method.
8868 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8869 target pointer instead of referencing procfs_ops.
8870 (procfs_prepare_to_store): Delete.
8871 (init_procfs_ops): Delete function.
8872 (procfs_target): New function, based on init_procfs_ops, but
8873 inherit inf_child_target.
8874 (_initialize_procfs): Use procfs_target.
8876 2014-03-12 Pedro Alves <palves@redhat.com>
8878 * windows-nat.c: Include inf-child.h.
8879 (windows_ops): Delete global.
8880 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8882 (init_windows_ops): Delete function.
8883 (windows_target): New function, based on init_windows_ops, but
8884 inherit inf_child_target.
8885 (_initialize_windows_nat): Use windows_target. Install x86
8886 specific target methods here.
8888 2014-03-10 Doug Evans <xdje42@gmail.com>
8890 * guile/guile.c (call_initialize_gdb_module): New function.
8891 (initialize_guile): Replace call to scm_init_guile with call to
8894 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8896 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8897 in call to TYPE_CODE macro.
8899 2014-03-10 Jerome Guitton <guitton@adacore.com>
8901 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8902 Resolve tagged types to full view.
8904 2014-03-10 Hui Zhu <hui@codesourcery.com>
8906 * target.h (target_insert_breakpoint): Remove "hardware" from its
8909 2014-03-07 Doug Evans <dje@google.com>
8911 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8913 2014-03-07 Doug Evans <dje@google.com>
8915 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8916 Remove unused local comp_dir_attr. Assert exactly one of
8917 stub_comp_unit_die, stub_comp_dir is non-NULL.
8919 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8921 * target.h (complete_target_initialization, add_target):
8924 2014-03-07 Pedro Alves <palves@redhat.com>
8926 * go32-nat.c: Include inf-child.h.
8927 (go32_ops): Delete global.
8928 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8930 (go32_create_inferior): Push the passed in target pointer instead
8931 of referencing go32_ops.
8932 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8933 (go32_target): New function, based on init_go32_ops, but inherit
8935 (_initialize_go32_nat): Use go32_target. Move parts of
8938 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8940 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8941 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8942 SYMBOL_VALUE_ADDRESS.
8943 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8945 2014-03-06 Yao Qi <yao@codesourcery.com>
8947 * breakpoint.c (get_tracepoint_by_number): Remove argument
8948 optional_p. All callers updated. Adjust comments. Update
8950 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8952 2014-03-06 Yao Qi <yao@codesourcery.com>
8954 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8955 early if get_number returns zero. Use 'p' instead of 'args'.
8957 2014-03-06 Yao Qi <yao@codesourcery.com>
8959 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8962 2014-03-06 Yao Qi <yao@codesourcery.com>
8964 PR breakpoints/16508
8965 * tracepoint.c (check_trace_running): New function.
8966 (trace_find_command): Move code to check_trace_running and
8967 call check_trace_running.
8968 (trace_find_pc_command): Likewise.
8969 (trace_find_tracepoint_command): Likewise.
8970 (trace_find_line_command): Likewise.
8971 (trace_find_range_command): Likewise.
8972 * tracepoint.h (check_trace_running): Likewise.
8973 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8975 2014-03-06 Yao Qi <yao@codesourcery.com>
8977 * target.h (struct target_ops) <to_traceframe_info>: Use
8978 TARGET_DEFAULT_NORETURN (tcomplain ()).
8979 * target-delegates.c: Regenerated.
8981 2014-03-05 Pedro Alves <palves@redhat.com>
8984 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8985 void. Update comment.
8986 (dcache_xfer_memory): Delete.
8987 (dcache_read_memory_partial): New, based on the read bits of
8989 (dcache_update): Add status parameter. Use ULONGEST for len, and
8990 adjust. Discard cache lines if the reason for the update was
8992 * dcache.h (dcache_xfer_memory): Delete declaration.
8993 (dcache_read_memory_partial): New declaration.
8994 (dcache_update): Update prototype.
8995 * target.c (raw_memory_xfer_partial): Update the dcache here.
8996 (memory_xfer_partial_1): Don't handle dcache writes here.
8998 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9000 * remote-sim.c (gdbsim_load): Add const to prog.
9002 2014-03-03 Tom Tromey <tromey@redhat.com>
9004 * elfread.c (probe_key): Change to bfd_data.
9005 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9006 now per-BFD, not per-objfile.
9007 * stap-probe.c (stap_probe_destroy): Update comment.
9008 (handle_stap_probe): Allocate on the per-BFD obstack.
9010 2014-03-03 Tom Tromey <tromey@redhat.com>
9012 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9013 * breakpoint.c (create_longjmp_master_breakpoint): Use
9015 (add_location_to_breakpoint, bkpt_probe_insert_location)
9016 (bkpt_probe_remove_location): Update.
9017 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9018 * elfread.c (elf_symfile_relocate_probe): Remove.
9019 (elf_probe_fns): Update.
9020 (insert_exception_resume_breakpoint): Change type of "probe"
9021 parameter to bound_probe.
9022 (check_exception_resume): Update.
9023 * objfiles.c (objfile_relocate1): Don't relocate probes.
9024 * probe.c (bound_probe_s): New typedef.
9025 (parse_probes): Use get_probe_address. Set sal's objfile.
9026 (find_probe_by_pc): Return a bound_probe.
9027 (collect_probes): Return a VEC(bound_probe_s).
9028 (compare_probes): Update.
9029 (gen_ui_out_table_header_info): Change type of "probes"
9031 (info_probes_for_ops): Update.
9032 (get_probe_address): New function.
9033 (probe_safe_evaluate_at_pc): Update.
9034 * probe.h (struct probe_ops) <get_probe_address>: New field.
9035 <set_semaphore, clear_semaphore>: Add objfile parameter.
9036 (struct probe) <objfile>: Remove field.
9038 <address>: Update comment.
9039 (struct bound_probe): New.
9040 (find_probe_by_pc): Return a bound_probe.
9041 (get_probe_address): Declare.
9042 * solib-svr4.c (struct probe_and_action) <address>: New field.
9043 (hash_probe_and_action, equal_probe_and_action): Update.
9044 (register_solib_event_probe): Add address parameter.
9045 (solib_event_probe_at): Update.
9046 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9048 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9049 (stap_get_probe_address): New function.
9050 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9051 (compile_probe_arg): Update.
9052 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9054 (handle_stap_probe): Don't relocate the probe.
9055 (stap_relocate): Remove.
9056 (stap_gen_info_probes_table_values): Update.
9057 (stap_probe_ops): Remove stap_relocate.
9058 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9059 (debug_sym_probe_fns): Update.
9060 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9061 * symtab.c (init_sal): Use memset.
9062 * symtab.h (struct symtab_and_line) <objfile>: New field.
9063 * tracepoint.c (start_tracing, stop_tracing): Update.
9065 2014-03-03 Tom Tromey <tromey@redhat.com>
9067 * probe.h (parse_probes, find_probe_by_pc)
9068 (find_probes_in_objfile): Fix comments.
9070 2014-03-02 Doug Evans <xdje42@gmail.com>
9072 * infrun.c (handle_signal_stop): Replace test for
9073 TARGET_WAITKIND_STOPPED with an assert.
9075 2014-03-02 Doug Evans <xdje42@gmail.com>
9077 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9079 2014-03-02 Doug Evans <xdje42@gmail.com>
9081 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9083 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9085 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9087 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9089 * i386obsd-nat.c: Include "obsd-nat.h".
9090 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9092 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9094 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9096 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9098 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9100 * mips64obsd-nat.c: Include "obsd-nath".
9101 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9103 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9105 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9107 * amd64obsd-nat.c: Include "obsd-nat,h.
9108 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9110 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9112 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9114 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9115 (find_overload_match): Update call to find_oload_champ.
9116 (find_oload_champ_namespace_loop): Likewise
9118 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9120 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9122 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9123 * config/sparc/obsd64.mh: New file.
9124 * sparc64obsd-nat.c: New file.
9126 * obsd-nat.h: New file.
9127 * obsd-nat.c: New file.
9128 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9129 (ALLDEPFILES): Add obsd-nat.c.
9131 2014-02-28 Tom Tromey <tromey@redhat.com>
9133 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9134 * cli-out.h (cli_ui_out_impl): Now const.
9135 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9136 * ui-out.c (struct ui_out) <impl>: Now const.
9137 (default_ui_out_impl): Now const.
9138 (ui_out_new): Make 'impl' parameter const.
9139 * ui-out.h (ui_out_new): Update.
9141 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9143 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9145 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9147 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9149 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9151 Additional PR 8882 fix.
9152 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9154 2014-02-27 Pedro Alves <palves@redhat.com>
9156 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9159 2014-02-27 Pedro Alves <palves@redhat.com>
9162 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9163 * nat/linux-waitpid.c: Include string.h.
9164 (status_to_str): Moved here and made extern.
9165 * nat/linux-waitpid.h (status_to_str): New declaration.
9167 2014-02-27 Hui Zhu <hui@codesourcery.com>
9170 * infrun.c (ptid_match): Move ...
9171 * common/ptid.c (ptid_match): ... here.
9172 * inferior.h (ptid_match): Move ...
9173 * common/ptid.h (ptid_match): ... here.
9175 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9177 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9178 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9181 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9183 * obsd-tdep.c (obsd_auxv_parse): New function.
9184 (obsd_init_abi): Set auxv_parse.
9186 * gdbarch.sh (auxv_parse): New.
9187 * gdbarch.h: Regenerated.
9188 * gdbarch.c: Regenerated.
9189 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9191 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9193 * guile/scm-value.c (gdbscm_history_append_x): New function.
9194 (value_functions): Add it.
9196 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9198 * dwarf2read.c (attr_value_as_address): New function.
9199 (dwarf2_find_base_address, read_call_site_scope): Use
9200 attr_value_as_address in place of DW_ADDR.
9201 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9202 the low and high addresses. Slight rework of the handling
9203 of the high pc being a constant form, and limit it to
9204 DWARF verson 4 or higher.
9205 (dwarf2_record_block_ranges): Likewise.
9206 (read_partial_die): Likewise.
9207 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9209 2014-02-26 Tom Tromey <tromey@redhat.com>
9211 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9213 2014-02-26 Tom Tromey <tromey@redhat.com>
9215 * elfread.c (elf_read_minimal_symbols): Return early if
9216 minimal symbols have already been read. Add "ei" parameter.
9217 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9218 * minsyms.c (prim_record_minimal_symbol_full): Update.
9219 * objfiles.h (struct objstats) <n_minsyms>: Move...
9220 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9221 * symmisc.c (print_objfile_statistics): Update.
9223 2014-02-26 Tom Tromey <tromey@redhat.com>
9225 * elfread.c (elf_read_minimal_symbols): New function, from
9227 (elf_symfile_read): Call it.
9229 2014-02-26 Tom Tromey <tromey@redhat.com>
9231 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9232 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9233 (lookup_minimal_symbol_solib_trampoline)
9234 (lookup_minimal_symbol_by_pc_section_1)
9235 (lookup_minimal_symbol_and_objfile): Update.
9236 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9237 Don't allocate a minimal symbol if minsyms have already been read.
9238 (build_minimal_symbol_hash_tables): Update.
9239 (install_minimal_symbols): Do nothing if minsyms already read.
9240 Use the per-BFD obstack.
9241 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9242 * objfiles.c (allocate_objfile): Call
9243 terminate_minimal_symbol_table later.
9244 (have_minimal_symbols): Update.
9245 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9246 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9247 Move from struct objfile.
9248 <minsyms_read>: New field.
9249 (struct objfile) <msymbols, minimal_symbol_count,
9250 msymbol_hash, msymbol_demangled_hash>: Move.
9251 (ALL_OBJFILE_MSYMBOLS): Update.
9252 * symfile.c (read_symbols): Set minsyms_read.
9253 (reread_symbols): Update.
9254 * symmisc.c (dump_objfile, dump_msymbols): Update.
9256 2014-02-26 Tom Tromey <tromey@redhat.com>
9258 * minsyms.c (msymbols_sort): Remove.
9259 * minsyms.h (msymbols_sort): Remove.
9260 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9261 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9262 * elfread.c (elf_symtab_read): Don't add section offsets.
9263 * xcoffread.c (record_minimal_symbol): Don't add section offset
9264 to minimal symbol address.
9265 * somread.c (text_offset, data_offset): Remove.
9266 (som_symtab_read): Don't add section offsets to minimal symbol
9268 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9269 Don't add section offsets to minimal symbols.
9270 * coffread.c (coff_symtab_read): Don't add section offsets
9271 to minimal symbol addresses.
9272 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9273 to minimal symbol addresses.
9274 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9275 section offset to minimal symbol addresses.
9276 * mdebugread.c (parse_partial_symbols): Don't add section
9277 offset to minimal symbol addresses.
9278 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9279 offset to minimal symbol addresses.
9281 2014-02-26 Tom Tromey <tromey@redhat.com>
9283 * ada-lang.c (ada_main_name): Update.
9284 (ada_add_standard_exceptions): Update.
9285 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9286 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9287 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9288 * auxv.c (ld_so_xfer_auxv): Update.
9289 * avr-tdep.c (avr_scan_prologue): Update.
9290 * ax-gdb.c (gen_var_ref): Update.
9291 * blockframe.c (get_pc_function_start)
9292 (find_pc_partial_function_gnu_ifunc): Update.
9293 * breakpoint.c (create_overlay_event_breakpoint)
9294 (create_longjmp_master_breakpoint)
9295 (create_std_terminate_master_breakpoint)
9296 (create_exception_master_breakpoint): Update.
9297 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9298 * c-valprint.c (c_val_print): Update.
9299 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9300 * common/agent.c (agent_look_up_symbols): Update.
9301 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9302 * dwarf2loc.c (call_site_to_target_addr): Update.
9303 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9304 * elfread.c (elf_gnu_ifunc_record_cache)
9305 (elf_gnu_ifunc_resolve_by_got): Update.
9306 * findvar.c (default_read_var_value): Update.
9307 * frame.c (inside_main_func): Update.
9308 * frv-tdep.c (frv_frame_this_id): Update.
9309 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9310 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9312 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9313 (hppa_hpux_find_dummy_bpaddr): Update.
9314 * hppa-tdep.c (hppa_symbol_address): Update.
9315 * infcmd.c (until_next_command): Update.
9316 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9318 * linespec.c (minsym_found, add_minsym): Update.
9319 * linux-nat.c (get_signo): Update.
9320 * linux-thread-db.c (inferior_has_bug): Update.
9321 * m32c-tdep.c (m32c_return_value)
9322 (m32c_m16c_address_to_pointer): Update.
9323 * m32r-tdep.c (m32r_frame_this_id): Update.
9324 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9325 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9326 * maint.c (maintenance_translate_address): Update.
9327 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9328 (frob_address): New function.
9329 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9330 frob_address. Rename parameter to "pc_in".
9331 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9333 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9335 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9336 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9337 * objc-lang.c (find_objc_msgsend): Update.
9338 * objfiles.c (objfile_relocate1): Update.
9339 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9340 * p-valprint.c (pascal_val_print): Update.
9341 * parse.c (write_exp_msymbol): Update.
9342 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9343 (ppc_elfv2_skip_entrypoint): Update.
9344 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9345 * printcmd.c (build_address_symbolic, msym_info)
9346 (address_info): Update.
9347 * proc-service.c (ps_pglobal_lookup): Update.
9348 * psymtab.c (find_pc_sect_psymtab_closer)
9349 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9350 Change msymbol parameter to bound_minimal_symbol.
9351 * ravenscar-thread.c (get_running_thread_id): Update.
9352 * remote.c (remote_check_symbols): Update.
9353 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9355 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9356 * solib-dsbt.c (lm_base): Update.
9357 * solib-frv.c (lm_base, main_got): Update.
9358 * solib-irix.c (locate_base): Update.
9359 * solib-som.c (som_solib_create_inferior_hook)
9360 (link_map_start): Update.
9361 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9362 * solib-svr4.c (elf_locate_base, enable_break): Update.
9363 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9364 (flush_ea_cache): Update.
9365 * stabsread.c (define_symbol, scan_file_globals): Update.
9366 * stack.c (find_frame_funname): Update.
9367 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9368 (debug_qf_find_pc_sect_symtab): Update.
9369 * symfile.c (simple_read_overlay_table)
9370 (simple_overlay_update): Update.
9371 * symfile.h (struct quick_symbol_functions)
9372 <find_pc_sect_symtab>: Change type of msymbol to
9373 bound_minimal_symbol.
9374 * symmisc.c (dump_msymbols): Update.
9375 * symtab.c (find_pc_sect_symtab_via_partial)
9376 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9377 (search_symbols, print_msymbol_info): Update.
9378 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9379 (MSYMBOL_VALUE_ADDRESS): Redefine.
9380 (BMSYMBOL_VALUE_ADDRESS): New macro.
9381 * tracepoint.c (scope_info): Update.
9382 * tui/tui-disasm.c (tui_find_disassembly_address)
9383 (tui_get_begin_asm_address): Update.
9384 * valops.c (find_function_in_inferior): Update.
9385 * value.c (value_static_field, value_fn_field): Update.
9387 2014-02-26 Tom Tromey <tromey@redhat.com>
9389 * ada-lang.c (ada_update_initial_language): Update.
9390 (ada_main_name, ada_has_this_exception_support): Update.
9391 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9392 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9393 * arm-tdep.c (arm_skip_stub): Update.
9394 * auxv.c (ld_so_xfer_auxv): Update.
9395 * avr-tdep.c (avr_scan_prologue): Update.
9396 * ax-gdb.c (gen_var_ref): Update.
9397 * breakpoint.c (struct breakpoint_objfile_data)
9398 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9399 type to bound_minimal_symbol.
9400 (create_overlay_event_breakpoint)
9401 (create_longjmp_master_breakpoint)
9402 (create_std_terminate_master_breakpoint)
9403 (create_exception_master_breakpoint): Update.
9404 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9405 * c-exp.y (classify_name): Update.
9406 * coffread.c (coff_symfile_read): Update.
9407 * common/agent.c (agent_look_up_symbols): Update.
9408 * d-lang.c (d_main_name): Update.
9409 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9410 * dec-thread.c (enable_dec_thread): Update.
9411 * dwarf2loc.c (call_site_to_target_addr): Update.
9412 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9413 * eval.c (evaluate_subexp_standard): Update.
9414 * findvar.c (struct minsym_lookup_data) <result>: Change type
9415 to bound_minimal_symbol.
9417 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9418 * frame.c (inside_main_func): Update.
9419 * frv-tdep.c (frv_frame_this_id): Update.
9420 * gcore.c (call_target_sbrk): Update.
9421 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9422 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9424 * go-lang.c (go_main_name): Update.
9425 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9426 (hppa_hpux_find_import_stub_for_addr): Update.
9427 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9428 Update. Change return type.
9429 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9431 * jit.c (jit_breakpoint_re_set_internal): Update.
9432 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9434 * linux-nat.c (get_signo): Update.
9435 * linux-thread-db.c (inferior_has_bug): Update
9436 * m32c-tdep.c (m32c_return_value)
9437 (m32c_m16c_address_to_pointer): Update.
9438 * m32r-tdep.c (m32r_frame_this_id): Update.
9439 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9440 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9441 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9442 lookup_minimal_symbol. Change return type.
9443 (lookup_minimal_symbol): Remove.
9444 (lookup_bound_minimal_symbol): Update.
9445 (lookup_minimal_symbol_text): Change return type.
9446 (lookup_minimal_symbol_solib_trampoline): Change return type.
9447 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9448 (lookup_minimal_symbol_solib_trampoline): Change return type.
9449 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9450 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9451 (value_nsstring, find_imps): Update.
9452 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9453 * p-lang.c (pascal_main_name): Update.
9454 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9455 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9456 * proc-service.c (ps_pglobal_lookup): Update.
9457 * ravenscar-thread.c (get_running_thread_msymbol): Change
9459 (has_ravenscar_runtime, get_running_thread_id): Update.
9460 * remote.c (remote_check_symbols): Update.
9461 * sol-thread.c (ps_pglobal_lookup): Update.
9462 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9463 * solib-dsbt.c (lm_base): Update.
9464 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9466 * solib-irix.c (locate_base): Update.
9467 * solib-som.c (som_solib_create_inferior_hook)
9468 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9470 * solib-spu.c (spu_enable_break): Update.
9471 * solib-svr4.c (elf_locate_base, enable_break): Update.
9472 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9473 (flush_ea_cache): Update.
9474 * stabsread.c (define_symbol): Update.
9475 * symfile.c (simple_read_overlay_table): Update.
9476 * symtab.c (find_pc_sect_line): Update.
9477 * tracepoint.c (scope_info): Update.
9478 * tui-disasm.c (tui_get_begin_asm_address): Update.
9479 * value.c (value_static_field): Update.
9481 2014-02-26 Tom Tromey <tromey@redhat.com>
9483 * minsyms.c (prim_record_minimal_symbol_full): Use
9484 SET_MSYMBOL_VALUE_ADDRESS.
9485 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9486 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9487 SET_MSYMBOL_VALUE_ADDRESS.
9488 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9489 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9491 2014-02-26 Tom Tromey <tromey@redhat.com>
9493 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9494 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9495 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9496 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9497 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9498 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9499 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9500 * ada-lang.c (ada_main_name): Update.
9501 (ada_lookup_simple_minsym): Update.
9502 (ada_make_symbol_completion_list): Update.
9503 (ada_add_standard_exceptions): Update.
9504 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9505 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9506 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9507 * arm-tdep.c (skip_prologue_function): Update.
9508 (arm_skip_stack_protector, arm_skip_stub): Update.
9509 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9510 (arm_wince_skip_main_prologue): Update.
9511 * auxv.c (ld_so_xfer_auxv): Update.
9512 * avr-tdep.c (avr_scan_prologue): Update.
9513 * ax-gdb.c (gen_var_ref): Update.
9514 * block.c (call_site_for_pc): Update.
9515 * blockframe.c (get_pc_function_start): Update.
9516 (find_pc_partial_function_gnu_ifunc): Update.
9517 * breakpoint.c (create_overlay_event_breakpoint): Update.
9518 (create_longjmp_master_breakpoint): Update.
9519 (create_std_terminate_master_breakpoint): Update.
9520 (create_exception_master_breakpoint): Update.
9521 (resolve_sal_pc): Update.
9522 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9523 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9525 * c-valprint.c (c_val_print): Update.
9526 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9527 * coffread.c (coff_symfile_read): Update.
9528 * common/agent.c (agent_look_up_symbols): Update.
9529 * dbxread.c (find_stab_function_addr): Update.
9530 (end_psymtab): Update.
9531 * dwarf2loc.c (call_site_to_target_addr): Update.
9532 (func_verify_no_selftailcall): Update.
9533 (tailcall_dump): Update.
9534 (call_site_find_chain_1): Update.
9535 (dwarf_expr_reg_to_entry_parameter): Update.
9536 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9537 (elf_gnu_ifunc_resolve_by_got): Update.
9538 * f-valprint.c (info_common_command): Update.
9539 * findvar.c (read_var_value): Update.
9540 * frame.c (get_prev_frame_1): Update.
9541 (inside_main_func): Update.
9542 * frv-tdep.c (frv_skip_main_prologue): Update.
9543 (frv_frame_this_id): Update.
9544 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9545 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9546 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9547 (gnuv3_skip_trampoline): Update.
9548 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9549 (hppa64_hpux_in_solib_call_trampoline): Update.
9550 (hppa_hpux_skip_trampoline_code): Update.
9551 (hppa64_hpux_search_dummy_call_sequence): Update.
9552 (hppa_hpux_find_import_stub_for_addr): Update.
9553 (hppa_hpux_find_dummy_bpaddr): Update.
9554 * hppa-tdep.c (hppa_symbol_address)
9555 (hppa_lookup_stub_minimal_symbol): Update.
9556 * i386-tdep.c (i386_skip_main_prologue): Update.
9557 (i386_pe_skip_trampoline_code): Update.
9558 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9559 * infcall.c (get_function_name): Update.
9560 * infcmd.c (until_next_command): Update.
9561 * jit.c (jit_breakpoint_re_set_internal): Update.
9562 (jit_inferior_init): Update.
9563 * linespec.c (minsym_found): Update.
9564 (add_minsym): Update.
9565 * linux-fork.c (info_checkpoints_command): Update.
9566 * linux-nat.c (get_signo): Update.
9567 * linux-thread-db.c (inferior_has_bug): Update.
9568 * m32c-tdep.c (m32c_return_value): Update.
9569 (m32c_m16c_address_to_pointer): Update.
9570 (m32c_m16c_pointer_to_address): Update.
9571 * m32r-tdep.c (m32r_frame_this_id): Update.
9572 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9573 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9574 * maint.c (maintenance_translate_address): Update.
9575 * minsyms.c (add_minsym_to_hash_table): Update.
9576 (add_minsym_to_demangled_hash_table): Update.
9577 (msymbol_objfile): Update.
9578 (lookup_minimal_symbol): Update.
9579 (iterate_over_minimal_symbols): Update.
9580 (lookup_minimal_symbol_text): Update.
9581 (lookup_minimal_symbol_by_pc_name): Update.
9582 (lookup_minimal_symbol_solib_trampoline): Update.
9583 (lookup_minimal_symbol_by_pc_section_1): Update.
9584 (lookup_minimal_symbol_and_objfile): Update.
9585 (prim_record_minimal_symbol_full): Update.
9586 (compare_minimal_symbols): Update.
9587 (compact_minimal_symbols): Update.
9588 (build_minimal_symbol_hash_tables): Update.
9589 (install_minimal_symbols): Update.
9590 (terminate_minimal_symbol_table): Update.
9591 (find_solib_trampoline_target): Update.
9592 (minimal_symbol_upper_bound): Update.
9593 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9594 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9595 (mips_skip_pic_trampoline_code): Update.
9596 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9597 * objc-lang.c (selectors_info): Update.
9598 (classes_info): Update.
9599 (find_methods): Update.
9600 (find_imps): Update.
9601 (find_objc_msgsend): Update.
9602 * objfiles.c (objfile_relocate1): Update.
9603 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9604 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9605 * p-valprint.c (pascal_val_print): Update.
9606 * parse.c (write_exp_msymbol): Update.
9607 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9608 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9609 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9610 * printcmd.c (build_address_symbolic): Update.
9612 (address_info): Update.
9613 * proc-service.c (ps_pglobal_lookup): Update.
9614 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9615 (find_pc_sect_psymtab): Update.
9616 * python/py-framefilter.c (py_print_frame): Update.
9617 * ravenscar-thread.c (get_running_thread_id): Update.
9618 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9620 * remote.c (remote_check_symbols): Update.
9621 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9622 (rs6000_skip_trampoline_code): Update.
9623 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9624 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9625 * solib-dsbt.c (lm_base): Update.
9626 * solib-frv.c (lm_base): Update.
9628 * solib-irix.c (locate_base): Update.
9629 * solib-som.c (som_solib_create_inferior_hook): Update.
9630 (som_solib_desire_dynamic_linker_symbols): Update.
9631 (link_map_start): Update.
9632 * solib-spu.c (spu_enable_break): Update.
9633 (ocl_enable_break): Update.
9634 * solib-svr4.c (elf_locate_base): Update.
9635 (enable_break): Update.
9636 * spu-tdep.c (spu_get_overlay_table): Update.
9637 (spu_catch_start): Update.
9638 (flush_ea_cache): Update.
9639 * stabsread.c (define_symbol): Update.
9640 (scan_file_globals): Update.
9641 * stack.c (find_frame_funname): Update.
9642 (frame_info): Update.
9643 * symfile.c (simple_read_overlay_table): Update.
9644 (simple_overlay_update): Update.
9645 * symmisc.c (dump_msymbols): Update.
9646 * symtab.c (fixup_section): Update.
9647 (find_pc_sect_line): Update.
9648 (skip_prologue_sal): Update.
9649 (search_symbols): Update.
9650 (print_msymbol_info): Update.
9651 (rbreak_command): Update.
9652 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9653 (completion_list_objc_symbol): Update.
9654 (default_make_symbol_completion_list_break_on): Update.
9655 * tracepoint.c (scope_info): Update.
9656 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9657 (tui_get_begin_asm_address): Update.
9658 * valops.c (find_function_in_inferior): Update.
9659 * value.c (value_static_field): Update.
9660 (value_fn_field): Update.
9662 2014-02-26 Tom Tromey <tromey@redhat.com>
9664 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9665 bound minimal symbols. Move code that knows about minsym
9667 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9669 * minsyms.h (minimal_symbol_upper_bound): Declare.
9670 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9671 minimal_symbol_upper_bound.
9673 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9675 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9676 Use the type's name if its basic type does not have a tag.
9678 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9680 * dwarf2read.c (read_subrange_type): Add comment.
9682 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9684 * dwarf2read.c (update_enumeration_type_from_children): New
9685 function, mostly extracted from process_structure_scope.
9686 (read_enumeration_type): Call update_enumeration_type_from_children.
9687 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9688 and flag_flag_enum fields.
9690 2014-02-26 Pedro Alves <palves@redhat.com>
9692 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9693 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9694 to_xfer_partial method.
9696 2014-02-26 Pedro Alves <palves@redhat.com>
9698 * target.c (complete_target_initialization): Don't install
9699 default_xfer_partial as to_xfer_partial hook.
9701 (update_current_target): Don't INHERIT nor de_fault
9702 deprecated_xfer_memory. Delete de_fault macro.
9703 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9704 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9705 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9708 2014-02-26 Pedro Alves <palves@redhat.com>
9710 * go32-nat.c (my_write_child): New function.
9711 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9712 (go32_xfer_partial): New function.
9713 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9714 Instead install a to_xfer_partial hook.
9716 2014-02-26 Pedro Alves <palves@redhat.com>
9718 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9719 to_xfer_partial helper. Rewrite.
9720 (procfs_xfer_partial): New function.
9721 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9722 Install a to_xfer_partial hook.
9724 2014-02-26 Pedro Alves <palves@redhat.com>
9726 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9727 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9728 (m32r_xfer_partial): New function.
9729 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9730 Install a to_xfer_partial hook.
9732 2014-02-26 Pedro Alves <palves@redhat.com>
9734 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9736 (mips_xfer_partial): New function.
9737 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9738 hook. Install a to_xfer_partial hook.
9740 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9742 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9743 * gdbtypes.c (create_array_type_with_stride): New function,
9744 renaming create_array_type, but with an added parameter
9745 called "bit_stride".
9746 (create_array_type): Re-implement using
9747 create_array_type_with_stride.
9748 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9749 and DW_AT_bit_stride attributes.
9751 2014-02-26 Pedro Alves <palves@redhat.com>
9753 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9754 task-specific breakpoints.
9756 2014-02-25 Pedro Alves <palves@redhat.com>
9758 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9759 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9761 2014-02-25 Stan Shebs <stan@codesourcery.com>
9763 * defs.h: Annotate comments for Doxygen.
9765 2014-02-25 Tom Tromey <tromey@redhat.com>
9767 * target.h (target_ignore): Don't declare.
9768 * target.c (target_ignore): Remove.
9770 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9773 * auto-load.c (auto_load_objfile_script_1): Change filename to
9776 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9778 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9779 documentation. Adjust prototype to match the target_ops
9780 to_xfer_partial method. Adjust implementation accordingly.
9782 2014-02-25 Hui Zhu <hui@codesourcery.com>
9784 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9787 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9789 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9790 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9791 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9792 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9793 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9794 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9795 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9796 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9798 (rl78_register_type): Use a data pointer type for SP and
9799 new pseudo registers mentioned above. Use a 16 bit integer
9800 type for all other register pairs.
9801 (rl78_register_name, rl78_g10_register_name): Update for
9802 new pseudo registers.
9803 (rl78_pseudo_register_read): Likewise.
9804 (rl78_pseudo_register_write): Likewise.
9805 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9806 to the newly added pseudo registers.
9808 2014-02-24 Doug Evans <dje@google.com>
9810 * value.c (record_latest_value): Fix comment.
9811 * printcmd.c (print_command_1): Remove code to handle -1 return from
9812 record_latest_value.
9814 2014-02-24 Pedro Alves <palves@redhat.com>
9816 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9817 deprecated_xfer_memory hook.
9818 (procfs_xfer_partial): Call procfs_xfer_memory instead
9819 of the deprecated_xfer_memory target hook.
9820 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9823 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9825 * windows-nat.c (windows_xfer_shared_libraries): Return
9826 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9827 requested object is TARGET_OBJECT_LIBRARIES.
9829 2014-02-24 Yao Qi <yao@codesourcery.com>
9831 * target.h (enum target_xfer_status)
9832 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9833 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9835 * corefile.c (memory_error_message): User updated.
9836 * exec.c (section_table_read_available_memory): Likewise.
9837 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9838 * target.c (target_xfer_status_to_string): Likewise.
9839 (raw_memory_xfer_partial): Likewise.
9840 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9841 * valops.c (read_value_memory): Likewise.
9842 * exec.h: Update comments.
9844 2014-02-24 Yao Qi <yao@codesourcery.com>
9846 * target.c (target_xfer_status_to_string): Rename argument err
9848 * target.h (target_xfer_status_to_string): Update declaration.
9849 Replace target_xfer_error_to_string with
9850 target_xfer_status_to_string in comment.
9852 2014-02-24 Yao Qi <yao@codesourcery.com>
9854 * mips-linux-nat.c (super_close): Update its type.
9855 (mips_linux_close): Pass 'self' to super_close.
9857 2014-02-24 Yao Qi <yao@codesourcery.com>
9859 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9860 * corefile.c (read_memory): Adjusted.
9861 * target.c (target_write_with_progress): Adjusted.
9863 2014-02-23 Yao Qi <yao@codesourcery.com>
9867 2013-10-25 Yao Qi <yao@codesourcery.com>
9869 * remote.c (remote_traceframe_info): Return early if
9870 traceframe is not selected.
9872 2013-07-19 Yao Qi <yao@codesourcery.com>
9874 * target.c (update_current_target): Change the default action
9875 of 'to_traceframe_info' from tcomplain to return_zero.
9876 * target.h (struct target_ops) <to_traceframe_info>: Add more
9879 2014-02-23 Yao Qi <yao@codesourcery.com>
9881 * valops.c (read_value_memory): Rewrite it. Call
9882 target_xfer_partial in a loop.
9883 * exec.h (section_table_available_memory): Remove declaration.
9884 Move comments to ...
9885 * exec.c (section_table_available_memory): ... here. Make it
9888 2014-02-23 Yao Qi <yao@codesourcery.com>
9890 * exec.c (section_table_read_available_memory): New function.
9891 * exec.h (section_table_read_available_memory): Declare.
9892 * ctf.c (ctf_xfer_partial): Call
9893 section_table_read_available_memory.
9894 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9896 2014-02-23 Yao Qi <yao@codesourcery.com>
9898 * ctf.c (ctf_xfer_partial): Move code to ...
9899 * exec.c (exec_read_partial_read_only): ... it. New function.
9900 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9901 * tracefile.c: Include "exec.h".
9902 * exec.h (exec_read_partial_read_only): Declare.
9904 2014-02-23 Yao Qi <yao@codesourcery.com>
9906 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9907 (tfile_has_memory): Remove.
9908 (init_tfile_ops): Don't set fields to_has_all_memory and
9909 to_has_memory of tfile_ops.
9910 * tracefile.c (tracefile_has_all_memory): New function.
9911 (tracefile_has_memory): New function.
9912 (init_tracefile_ops): Initialize fields to_has_all_memory and
9913 to_has_memory of 'ops'.
9915 2014-02-23 Yao Qi <yao@codesourcery.com>
9917 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9918 (ctf_thread_alive, ctf_get_trace_status): Remove.
9919 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9921 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9922 (tfile_has_stack, tfile_has_registers): Remove.
9923 (tfile_thread_alive): Remove.
9924 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9926 * tracefile.c (tracefile_has_stack): New function.
9927 (tracefile_has_registers): New function.
9928 (tracefile_thread_alive): New function.
9929 (tracefile_get_trace_status): New function.
9930 (init_tracefile_ops): New function.
9931 * tracefile.h (init_tracefile_ops): Declare.
9933 2014-02-23 Yao Qi <yao@codesourcery.com>
9935 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9936 (O_LARGEFILE): Likewise.
9937 (tfile_ops): Likewise.
9938 (TRACE_HEADER_SIZE): Likewise.
9939 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9940 (cur_data_size): Likewise.
9941 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9942 (tfile_close, tfile_files_info): Likewise.
9943 (tfile_get_trace_status): Likewise.
9944 (tfile_get_tracepoint_status): Likewise.
9945 (tfile_get_traceframe_address): Likewise.
9946 (tfile_trace_find, match_blocktype): Likewise.
9947 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9948 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9949 (tfile_get_trace_state_variable_value): Likewise.
9950 (tfile_has_all_memory, tfile_has_memory): Likewise.
9951 (tfile_has_stack, tfile_has_registers): Likewise.
9952 (tfile_thread_alive, build_traceframe_info): Likewise.
9953 (tfile_traceframe_info, init_tfile_ops): Likewise.
9954 (_initialize_tracepoint): Don't call init_tfile_ops
9955 and add_target_with_completer.
9956 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9957 exec.h, completer.h and filenames.h.
9958 (_initialize_tracefile_tfile): New function.
9960 2014-02-23 Yao Qi <yao@codesourcery.com>
9962 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9964 (HFILES_NO_SRCDIR): Add tracefile.h.
9965 * ctf.c: Include "tracefile.h".
9966 * tracefile.h: New file.
9967 * tracefile.c: New file
9968 * tracefile-tfile.c: New file.
9969 * tracepoint.c: Include "tracefile.h".
9970 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9971 (stop_reason_names): Add const.
9972 (trace_file_writer_xfree): Move it to tracefile.c.
9973 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9974 (trace_save_ctf): Likewise.
9975 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9976 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9977 (tfile_write_header, tfile_write_regblock_type): Likewise.
9978 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9979 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9980 (tfile_write_raw_data, tfile_end): Likewise.
9981 (tfile_trace_file_writer_new): Likewise.
9982 (free_uploaded_tp): Make it extern.
9983 (free_uploaded_tsv): Make it extern.
9984 (_initialize_tracepoint): Move code to register command 'tsave'
9986 * tracepoint.h (stop_reason_names): Declare.
9987 (struct trace_frame_write_ops): Move it to tracefile.h.
9988 (struct trace_file_write_ops): Likewise.
9989 (struct trace_file_writer): Likewise.
9990 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9992 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9995 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9997 (get_cores_used_by_process): New parameter num_cores, use it.
9998 (linux_xfer_osdata_processes): Pass num_cores to it.
9999 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10002 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10004 * target.c (memory_xfer_partial): Fix length arg in call to
10005 breakpoint_xfer_memory.
10007 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10010 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10011 number comes after the + or - signs. Adjust length of register
10012 name to be extracted.
10014 2014-02-20 Tom Tromey <tromey@redhat.com>
10016 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10017 (ada_varobj_ops): Mark "extern".
10019 2014-02-20 Tom Tromey <tromey@redhat.com>
10021 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10023 2014-02-20 Doug Evans <xdje42@gmail.com>
10025 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10026 All callers updated.
10027 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10028 All callers updated.
10029 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10030 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10032 2014-02-20 lin zuojian <manjian2006@gmail.com>
10033 Joel Brobecker <brobecker@adacore.com>
10034 Doug Evans <xdje42@gmail.com>
10037 * dwarf2read.c (struct die_info): New member in_process.
10038 (reset_die_in_process): New function.
10039 (process_die): Set it at the start, reset when returning.
10040 (inherit_abstract_dies): Only call process_die if origin_child_die
10041 not already being processed.
10043 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10045 * windows-nat.c (handle_unload_dll): Add function documentation.
10046 (do_initial_windows_stuff): Add comment explaining why we wait
10047 until after inferior initialization has finished before
10048 processing all DLLs.
10050 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10052 * windows-nat.c (get_module_name): Delete.
10053 (windows_get_exec_module_filename): New function, mostly
10054 inspired from get_module_name.
10055 (windows_pid_to_exec_file): Replace call to get_module_name
10056 by call to windows_get_exec_module_filename.
10058 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10060 * windows-nat.c (handle_load_dll): Rewrite this function's
10061 introductory comment. Remove code using get_module_name
10062 to get the DLL's name.
10064 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10066 * windows-nat.c (get_windows_debug_event): Ignore
10067 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10068 if windows_initialization_done == 0.
10069 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10070 Adjust implementation to always load all DLLs.
10071 (do_initial_windows_stuff): Replace call to
10072 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10074 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10076 * windows-nat.c (_initialize_windows_nat): Deprecate the
10077 "dll-symbols" command. Turn the "add-shared-symbol-files"
10078 and "assf" aliases into commands, and deprecate them as well.
10079 * NEWS: Add entry explaining that "dll-symbols" and its two
10080 aliases are now deprecated.
10082 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10084 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10085 new-line in debug string. Remove trailing spaces.
10087 2014-02-19 Stan Shebs <stan@codesourcery.com>
10089 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10091 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10093 * NEWS: Add entry for the new feature
10094 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10097 2014-02-19 Stan Shebs <stan@codesourcery.com>
10099 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10101 2014-02-19 Pedro Alves <palves@redhat.com>
10103 * common/ptid.h (struct ptid): Mention that process_stratum
10104 targets should prefer ptid.lwp.
10106 2014-02-19 Pedro Alves <palves@redhat.com>
10108 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10109 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10110 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10111 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10112 store remote thread ids rather than ptid.tid.
10113 (_initialize_remote): Adjust.
10115 2014-02-19 Tom Tromey <tromey@redhat.com>
10117 * target.c (target_get_unwinder): Rewrite.
10118 (target_get_tailcall_unwinder): Rewrite.
10119 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10120 (record_btrace_to_get_tailcall_unwinder): New function.
10121 (init_record_btrace_ops): Update.
10122 * target.h (struct target_ops) <to_get_unwinder,
10123 to_get_tailcall_unwinder>: Now function pointers. Use
10124 TARGET_DEFAULT_RETURN.
10126 2014-02-19 Tom Tromey <tromey@redhat.com>
10128 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10130 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10134 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10136 * target-delegates.c: Rebuild.
10137 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10138 TARGET_DEFAULT_FUNC.
10139 * target.c (default_target_decr_pc_after_break): Rename from
10140 forward_target_decr_pc_after_break. Simplify.
10141 (target_decr_pc_after_break): Rely on delegation.
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target.c (update_current_target): Do not INHERIT to_doc or
10146 to_magic. Do not de_fault to_open or to_close.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * gcore.h (objfile_find_memory_regions): Declare.
10151 * gcore.c (objfile_find_memory_regions): No longer static. Add
10153 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10154 * exec.c: Include gcore.h.
10155 (exec_set_find_memory_regions): Remove.
10156 (exec_find_memory_regions): Remove.
10157 (exec_do_find_memory_regions): Remove.
10158 (init_exec_ops): Update.
10159 * defs.h (exec_set_find_memory_regions): Remove.
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target-delegates.c: Rebuild.
10164 * target.h (struct target_ops) <to_extra_thread_info,
10165 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10166 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10167 not 0, in TARGET_DEFAULT_RETURN.
10169 2014-02-19 Tom Tromey <tromey@redhat.com>
10171 * target.c (complete_target_initialization): Remove casts. Use
10172 return_zero_has_execution.
10173 (return_zero): Add "ignore" argument.
10174 (return_zero_has_execution): New function.
10175 (init_dummy_target): Remove casts. Use
10176 return_zero_has_execution.
10178 2014-02-19 Tom Tromey <tromey@redhat.com>
10180 * target.c (update_current_target): Update comments. Do not
10181 INHERIT to_stratum.
10183 2014-02-19 Tom Tromey <tromey@redhat.com>
10185 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10187 * corelow.c (core_read_description): Delegate when needed.
10188 * remote.c (remote_read_description): Delegate when needed.
10189 * target-delegates.c: Rebuild.
10190 * target.c (target_read_description): Rewrite.
10191 * target.h (struct target_ops) <to_read_description>: Update
10192 comment. Use TARGET_DEFAULT_RETURN.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target-delegates.c: Rebuild.
10197 * target.c (update_current_target): Don't inherit or default
10199 (find_default_run_target): Check against delegate_can_run.
10200 * target.h (struct target_ops) <to_can_run>: Use
10201 TARGET_DEFAULT_RETURN.
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10205 * target-delegates.c: Rebuild.
10206 * target.c (target_disconnect): Unconditionally delegate.
10207 * target.h (struct target_ops) <to_disconnect>: Use
10208 TARGET_DEFAULT_NORETURN.
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * record.c (record_stop): Unconditionally delegate.
10213 * target-delegates.c: Rebuild.
10214 * target.c (target_stop_recording): Unconditionally delegate.
10215 * target.h (struct target_ops) <to_stop_recording>: Use
10216 TARGET_DEFAULT_IGNORE.
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10220 * target-delegates.c: Rebuild.
10221 * target.c (target_enable_btrace): Unconditionally delegate.
10222 * target.h (struct target_ops) <to_enable_btrace>: Use
10223 TARGET_DEFAULT_NORETURN.
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10227 * target-delegates.c: Rebuild.
10228 * target.c (target_read_btrace): Unconditionally delegate.
10229 * target.h (struct target_ops) <to_read_btrace>: Use
10230 TARGET_DEFAULT_NORETURN.
10232 2014-02-19 Tom Tromey <tromey@redhat.com>
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_teardown_btrace): Unconditionally delegate.
10236 * target.h (struct target_ops) <to_teardown_btrace>: Use
10237 TARGET_DEFAULT_NORETURN.
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10241 * target-delegates.c: Rebuild.
10242 * target.c (target_disable_btrace): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_disable_btrace>: Use
10244 TARGET_DEFAULT_NORETURN.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target-delegates.c: Rebuild.
10249 * target.c (default_search_memory): New function.
10250 (simple_search_memory): Update comment.
10251 (target_search_memory): Unconditionally delegate.
10252 * target.h (struct target_ops) <to_search_memory>: Use
10253 TARGET_DEFAULT_FUNC.
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10257 * auxv.c (default_auxv_parse): No longer static.
10258 (target_auxv_parse): Unconditionally delegate.
10259 * auxv.h (default_auxv_parse): Declare.
10260 * target-delegates.c: Rebuild.
10261 * target.c: Include auxv.h.
10262 * target.h (struct target_ops) <to_auxv_parse>: Use
10263 TARGET_DEFAULT_FUNC.
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target-delegates.c: Rebuild.
10268 * target.c (target_memory_map): Unconditionally delegate.
10269 * target.h (struct target_ops) <to_memory_map>: Use
10270 TARGET_DEFAULT_RETURN.
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * target-delegates.c: Rebuild.
10275 * target.c (target_thread_alive): Unconditionally delegate.
10276 * target.h (struct target_ops) <to_thread_alive>: Use
10277 TARGET_DEFAULT_RETURN.
10279 2014-02-19 Tom Tromey <tromey@redhat.com>
10281 * target-delegates.c: Rebuild.
10282 * target.c (target_save_record): Unconditionally delegate.
10283 * target.h (struct target_ops) <to_save_record>: Use
10284 TARGET_DEFAULT_NORETURN.
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10288 * target-delegates.c: Rebuild.
10289 * target.c (target_delete_record): Unconditionally delegate.
10290 * target.h (struct target_ops) <to_delete_record>: Use
10291 TARGET_DEFAULT_NORETURN.
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10295 * target-delegates.c: Rebuild.
10296 * target.c (target_record_is_replaying): Unconditionally
10298 * target.h (struct target_ops) <to_record_is_replaying>: Use
10299 TARGET_DEFAULT_RETURN.
10301 2014-02-19 Tom Tromey <tromey@redhat.com>
10303 * target-delegates.c: Rebuild.
10304 * target.c (target_goto_record_begin): Unconditionally delegate.
10305 * target.h (struct target_ops) <to_goto_record_begin>: Use
10306 TARGET_DEFAULT_NORETURN.
10308 2014-02-19 Tom Tromey <tromey@redhat.com>
10310 * target-delegates.c: Rebuild.
10311 * target.c (target_goto_record_end): Unconditionally delegate.
10312 * target.h (struct target_ops) <to_goto_record_end>: Use
10313 TARGET_DEFAULT_NORETURN.
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10317 * target-delegates.c: Rebuild.
10318 * target.c (target_goto_record): Unconditionally delegate.
10319 * target.h (struct target_ops) <to_goto_record>: Use
10320 TARGET_DEFAULT_NORETURN.
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10324 * target-delegates.c: Rebuild.
10325 * target.c (target_insn_history): Unconditionally delegate.
10326 * target.h (struct target_ops) <to_insn_history>: Use
10327 TARGET_DEFAULT_NORETURN.
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10331 * target-delegates.c: Rebuild.
10332 * target.c (target_insn_history_from): Unconditionally delegate.
10333 * target.h (struct target_ops) <to_insn_history_from>: Use
10334 TARGET_DEFAULT_NORETURN.
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10338 * target-delegates.c: Rebuild.
10339 * target.c (target_insn_history_range): Unconditionally delegate.
10340 * target.h (struct target_ops) <to_insn_history_range>: Use
10341 TARGET_DEFAULT_NORETURN.
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10345 * target-delegates.c: Rebuild.
10346 * target.c (target_call_history): Unconditionally delegate.
10347 * target.h (struct target_ops) <to_call_history>: Use
10348 TARGET_DEFAULT_NORETURN.
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10352 * target-delegates.c: Rebuild.
10353 * target.c (target_call_history_from): Unconditionally delegate.
10354 * target.h (struct target_ops) <to_call_history_from>: Use
10355 TARGET_DEFAULT_NORETURN.
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target-delegates.c: Rebuild.
10360 * target.c (target_call_history_range): Unconditionally delegate.
10361 * target.h (struct target_ops) <to_call_history_range>: Use
10362 TARGET_DEFAULT_NORETURN.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * target-delegates.c: Rebuild.
10367 * target.c (target_verify_memory): Unconditionally delegate.
10368 * target.h (struct target_ops) <to_verify_memory>: Use
10369 TARGET_DEFAULT_NORETURN.
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10373 * target-delegates.c: Rebuild.
10374 * target.c (target_core_of_thread): Unconditionally delegate.
10375 * target.h (struct target_ops) <to_core_of_thread>: Use
10376 TARGET_DEFAULT_RETURN.
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10380 * target-delegates.c: Rebuild.
10381 * target.c (target_flash_done): Unconditionally delegate.
10382 * target.h (struct target_ops) <to_flash_done>: Use
10383 TARGET_DEFAULT_NORETURN.
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10387 * target-delegates.c: Rebuild.
10388 * target.c (target_flash_erase): Unconditionally delegate.
10389 * target.h (struct target_ops) <to_flash_erase>: Use
10390 TARGET_DEFAULT_NORETURN.
10392 2014-02-19 Tom Tromey <tromey@redhat.com>
10394 * target-delegates.c: Rebuild.
10395 * target.c (target_get_section_table): Unconditionally delegate.
10396 * target.h (struct target_ops) <to_get_section_table>: Use
10397 TARGET_DEFAULT_RETURN.
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10401 * target-delegates.c: Rebuild.
10402 * target.c (target_pid_to_str): Unconditionally delegate.
10403 (init_dummy_target): Don't initialize to_pid_to_str.
10404 (default_pid_to_str): Rename from dummy_pid_to_str.
10405 * target.h (struct target_ops) <to_pid_to_str>: Use
10406 TARGET_DEFAULT_FUNC.
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10410 * target-delegates.c: Rebuild.
10411 * target.c (target_find_new_threads): Unconditionally delegate.
10412 * target.h (struct target_ops) <to_find_new_threads>: Use
10413 TARGET_DEFAULT_RETURN.
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10417 * target-delegates.c: Rebuild.
10418 * target.c (target_program_signals): Unconditionally delegate.
10419 * target.h (struct target_ops) <to_program_signals>: Use
10420 TARGET_DEFAULT_IGNORE.
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target-delegates.c: Rebuild.
10425 * target.c (target_pass_signals): Unconditionally delegate.
10426 * target.h (struct target_ops) <to_pass_signals>: Use
10427 TARGET_DEFAULT_IGNORE.
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10431 * target-delegates.c: Rebuild.
10432 * target.c (default_mourn_inferior): New function.
10433 (target_mourn_inferior): Unconditionally delegate.
10434 * target.h (struct target_ops) <to_mourn_inferior>: Use
10435 TARGET_DEFAULT_FUNC.
10437 2014-02-19 Tom Tromey <tromey@redhat.com>
10439 * target-delegates.c: Rebuild.
10440 * target.c (default_follow_fork): New function.
10441 (target_follow_fork): Unconditionally delegate.
10442 * target.h (struct target_ops) <to_follow_fork>: Use
10443 TARGET_DEFAULT_FUNC.
10445 2014-02-19 Tom Tromey <tromey@redhat.com>
10447 * target-delegates.c: Rebuild.
10448 * target.c (target_kill): Unconditionally delegate.
10449 * target.h (struct target_ops) <to_kill>: Use
10450 TARGET_DEFAULT_NORETURN.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target-delegates.c: Rebuild.
10455 * target.c (target_masked_watch_num_registers): Unconditionally
10457 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10458 Use TARGET_DEFAULT_RETURN.
10460 2014-02-19 Tom Tromey <tromey@redhat.com>
10462 * target-delegates.c: Rebuild.
10463 * target.c (target_remove_mask_watchpoint): Unconditionally
10465 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10466 TARGET_DEFAULT_RETURN.
10468 2014-02-19 Tom Tromey <tromey@redhat.com>
10470 * target-delegates.c: Rebuild.
10471 * target.c (target_insert_mask_watchpoint): Unconditionally
10473 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10474 TARGET_DEFAULT_RETURN.
10476 2014-02-19 Tom Tromey <tromey@redhat.com>
10478 * target-delegates.c: Rebuild.
10479 * target.c (target_ranged_break_num_registers): Unconditionally
10481 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10482 Use TARGET_DEFAULT_RETURN.
10484 2014-02-19 Tom Tromey <tromey@redhat.com>
10486 * target-delegates.c: Rebuild.
10487 * target.c (target_fetch_registers): Unconditionally delegate.
10488 * target.h (struct target_ops) <to_fetch_registers>: Use
10489 TARGET_DEFAULT_NORETURN.
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10493 * target-delegates.c: Rebuild.
10494 * target.c (update_current_target): Don't inherit or default
10496 * target.h (struct target_ops) <to_stop>: Use
10497 TARGET_DEFAULT_IGNORE.
10499 2014-02-19 Tom Tromey <tromey@redhat.com>
10501 * target-delegates.c: Rebuild.
10502 * target.c (update_current_target): Don't inherit or default
10503 to_can_run_breakpoint_commands.
10504 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10505 Use TARGET_DEFAULT_RETURN.
10507 2014-02-19 Tom Tromey <tromey@redhat.com>
10509 * target-delegates.c: Rebuild.
10510 * target.c (update_current_target): Don't inherit or default
10511 to_supports_evaluation_of_breakpoint_conditions.
10512 * target.h (struct target_ops)
10513 <to_supports_evaluation_of_breakpoint_conditions>: Use
10514 TARGET_DEFAULT_RETURN.
10516 2014-02-19 Tom Tromey <tromey@redhat.com>
10518 * target-delegates.c: Rebuild.
10519 * target.c (update_current_target): Don't inherit or default
10520 to_augmented_libraries_svr4_read.
10521 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10522 Use TARGET_DEFAULT_RETURN.
10524 2014-02-19 Tom Tromey <tromey@redhat.com>
10526 * target-delegates.c: Rebuild.
10527 * target.c (update_current_target): Don't inherit or default
10529 * target.h (struct target_ops) <to_can_use_agent>: Use
10530 TARGET_DEFAULT_RETURN.
10532 2014-02-19 Tom Tromey <tromey@redhat.com>
10534 * target-delegates.c: Rebuild.
10535 * target.c (update_current_target): Don't inherit or default
10537 * target.h (struct target_ops) <to_use_agent>: Use
10538 TARGET_DEFAULT_NORETURN.
10540 2014-02-19 Tom Tromey <tromey@redhat.com>
10542 * target-delegates.c: Rebuild.
10543 * target.c (update_current_target): Don't inherit or default
10544 to_traceframe_info.
10545 (return_null): Remove.
10546 * target.h (struct target_ops) <to_traceframe_info>: Use
10547 TARGET_DEFAULT_RETURN.
10549 2014-02-19 Tom Tromey <tromey@redhat.com>
10551 * target-delegates.c: Rebuild.
10552 * target.c (update_current_target): Don't inherit or default
10553 to_static_tracepoint_markers_by_strid.
10554 * target.h (struct target_ops)
10555 <to_static_tracepoint_markers_by_strid>: Use
10556 TARGET_DEFAULT_NORETURN.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_static_tracepoint_marker_at.
10563 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10564 Use TARGET_DEFAULT_RETURN.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10570 to_set_permissions.
10571 * target.h (struct target_ops) <to_set_permissions>: Use
10572 TARGET_DEFAULT_IGNORE.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_get_tib_address.
10579 * target.h (struct target_ops) <to_get_tib_address>: Use
10580 TARGET_DEFAULT_NORETURN.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10586 to_set_trace_notes.
10587 * target.h (struct target_ops) <to_set_trace_notes>: Use
10588 TARGET_DEFAULT_RETURN.
10590 2014-02-19 Tom Tromey <tromey@redhat.com>
10592 * target-delegates.c: Rebuild.
10593 * target.c (update_current_target): Don't initialize
10594 to_set_trace_buffer_size.
10595 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10596 TARGET_DEFAULT_IGNORE.
10598 2014-02-19 Tom Tromey <tromey@redhat.com>
10600 * target-delegates.c: Rebuild.
10601 * target.c (update_current_target): Don't inherit or default
10602 to_set_circular_trace_buffer.
10603 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10604 TARGET_DEFAULT_IGNORE.
10606 2014-02-19 Tom Tromey <tromey@redhat.com>
10608 * target-delegates.c: Rebuild.
10609 * target.c (update_current_target): Don't inherit or default
10610 to_set_disconnected_tracing.
10611 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10612 TARGET_DEFAULT_IGNORE.
10614 2014-02-19 Tom Tromey <tromey@redhat.com>
10616 * target-delegates.c: Rebuild.
10617 * target.c (update_current_target): Don't inherit or default
10618 to_get_min_fast_tracepoint_insn_len.
10619 (return_minus_one): Remove.
10620 * target.h (struct target_ops)
10621 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10623 2014-02-19 Tom Tromey <tromey@redhat.com>
10625 * target-delegates.c: Rebuild.
10626 * target.c (update_current_target): Don't inherit or default
10627 to_get_raw_trace_data.
10628 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10629 TARGET_DEFAULT_NORETURN.
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * target-delegates.c: Rebuild.
10634 * target.c (update_current_target): Don't inherit or default
10635 to_upload_trace_state_variables.
10636 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10637 Use TARGET_DEFAULT_RETURN.
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10641 * target-delegates.c: Rebuild.
10642 * target.c (update_current_target): Don't inherit or default
10643 to_upload_tracepoints.
10644 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10645 TARGET_DEFAULT_RETURN.
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * target-delegates.c: Rebuild.
10650 * target.c (update_current_target): Don't inherit or default
10651 to_save_trace_data.
10652 * target.h (struct target_ops) <to_save_trace_data>: Use
10653 TARGET_DEFAULT_NORETURN.
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10657 * target-delegates.c: Rebuild.
10658 * target.c (update_current_target): Don't inherit or default
10659 to_get_trace_state_variable_value.
10660 * target.h (struct target_ops)
10661 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10668 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10670 2014-02-19 Tom Tromey <tromey@redhat.com>
10672 * target-delegates.c: Rebuild.
10673 * target.c (update_current_target): Don't inherit or default
10675 * target.h (struct target_ops) <to_trace_stop>: Use
10676 TARGET_DEFAULT_NORETURN.
10678 2014-02-19 Tom Tromey <tromey@redhat.com>
10680 * target-delegates.c: Rebuild.
10681 * target.c (update_current_target): Don't inherit or default
10682 to_get_tracepoint_status.
10683 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10684 TARGET_DEFAULT_NORETURN.
10686 2014-02-19 Tom Tromey <tromey@redhat.com>
10688 * target-delegates.c: Rebuild.
10689 * target.c (update_current_target): Don't inherit or default
10690 to_get_trace_status.
10691 * target.h (struct target_ops) <to_get_trace_status>: Use
10692 TARGET_DEFAULT_RETURN.
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10699 * target.h (struct target_ops) <to_trace_start>: Use
10700 TARGET_DEFAULT_NORETURN.
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_trace_set_readonly_regions.
10707 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10708 Use TARGET_DEFAULT_NORETURN.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_disable_tracepoint.
10715 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10716 TARGET_DEFAULT_NORETURN.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * target-delegates.c: Rebuild.
10721 * target.c (update_current_target): Don't inherit or default
10722 to_enable_tracepoint.
10723 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10724 TARGET_DEFAULT_NORETURN.
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target-delegates.c: Rebuild.
10729 * target.c (update_current_target): Don't inherit or default
10730 to_download_trace_state_variable.
10731 * target.h (struct target_ops) <to_download_trace_state_variable>:
10732 Use TARGET_DEFAULT_NORETURN.
10734 2014-02-19 Tom Tromey <tromey@redhat.com>
10736 * target-delegates.c: Rebuild.
10737 * target.c (update_current_target): Don't inherit or default
10738 to_can_download_tracepoint.
10739 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10740 TARGET_DEFAULT_RETURN.
10742 2014-02-19 Tom Tromey <tromey@redhat.com>
10744 * target-delegates.c: Rebuild.
10745 * target.c (update_current_target): Don't inherit or default
10746 to_download_tracepoint.
10747 * target.h (struct target_ops) <to_download_tracepoint>: Use
10748 TARGET_DEFAULT_NORETURN.
10750 2014-02-19 Tom Tromey <tromey@redhat.com>
10752 * target-delegates.c: Rebuild.
10753 * target.c (update_current_target): Don't inherit or default
10755 * target.h (struct target_ops) <to_trace_init>: Use
10756 TARGET_DEFAULT_RETURN.
10758 2014-02-19 Tom Tromey <tromey@redhat.com>
10760 * target-delegates.c: Rebuild.
10761 * target.c (update_current_target): Don't inherit or default
10762 to_supports_string_tracing.
10763 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10764 TARGET_DEFAULT_RETURN.
10766 2014-02-19 Tom Tromey <tromey@redhat.com>
10768 * target-delegates.c: Rebuild.
10769 * target.c (update_current_target): Don't inherit or default
10770 to_supports_enable_disable_tracepoint.
10771 * target.h (struct target_ops)
10772 <to_supports_enable_disable_tracepoint>: Use
10773 TARGET_DEFAULT_RETURN.
10775 2014-02-19 Tom Tromey <tromey@redhat.com>
10777 * target-delegates.c: Rebuild.
10778 * target.c (update_current_target): Don't inherit or default
10779 to_supports_multi_process.
10780 * target.h (struct target_ops) <to_supports_multi_process>: Use
10781 TARGET_DEFAULT_RETURN.
10783 2014-02-19 Tom Tromey <tromey@redhat.com>
10785 * target-delegates.c: Rebuild.
10786 * target.c (update_current_target): Don't inherit or default
10787 to_get_ada_task_ptid.
10788 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10789 TARGET_DEFAULT_FUNC.
10791 2014-02-19 Tom Tromey <tromey@redhat.com>
10793 * target-delegates.c: Rebuild.
10794 * target.c (update_current_target): Don't inherit or default
10795 to_thread_architecture.
10796 * target.h (struct target_ops) <to_thread_architecture>: Use
10797 TARGET_DEFAULT_FUNC.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10803 to_execution_direction.
10804 * target.h (struct target_ops) <to_execution_direction>: Use
10805 TARGET_DEFAULT_FUNC.
10807 2014-02-19 Tom Tromey <tromey@redhat.com>
10809 * target-delegates.c: Rebuild.
10810 * target.c (update_current_target): Don't inherit or default
10811 to_can_execute_reverse.
10812 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10813 TARGET_DEFAULT_RETURN.
10814 (target_can_execute_reverse): Unconditionally delegate.
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10818 * target-delegates.c: Rebuild.
10819 * target.c (update_current_target): Don't inherit or default
10821 (dummy_goto_bookmark): Remove.
10822 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10823 * target.h (struct target_ops) <to_goto_bookmark>: Use
10824 TARGET_DEFAULT_NORETURN.
10826 2014-02-19 Tom Tromey <tromey@redhat.com>
10828 * target-delegates.c: Rebuild.
10829 * target.c (update_current_target): Don't inherit or default
10831 (dummy_get_bookmark): Remove.
10832 (init_dummy_target): Don't inherit or default to_get_bookmark.
10833 * target.h (struct target_ops) <to_get_bookmark>: Use
10834 TARGET_DEFAULT_NORETURN
10836 2014-02-19 Tom Tromey <tromey@redhat.com>
10838 * target-delegates.c: Rebuild.
10839 * target.c (update_current_target): Don't inherit or default
10840 to_make_corefile_notes.
10841 (init_dummy_target): Don't initialize to_make_corefile_notes.
10842 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10843 TARGET_DEFAULT_FUNC.
10845 2014-02-19 Tom Tromey <tromey@redhat.com>
10847 * target-delegates.c: Rebuild.
10848 * target.c (update_current_target): Don't inherit or default
10849 to_find_memory_regions.
10850 (init_dummy_target): Don't initialize to_find_memory_regions.
10851 * target.h (struct target_ops) <to_find_memory_regions>: Use
10852 TARGET_DEFAULT_FUNC.
10854 2014-02-19 Tom Tromey <tromey@redhat.com>
10856 * target-delegates.c: Rebuild.
10857 * target.c (update_current_target): Don't inherit or default
10859 * target.h (struct target_ops) <to_log_command>: Use
10860 TARGET_DEFAULT_IGNORE.
10861 (target_log_command): Unconditionally delegate.
10863 2014-02-19 Tom Tromey <tromey@redhat.com>
10865 * target-delegates.c: Rebuild.
10866 * target.c (update_current_target): Don't inherit or default
10867 to_pid_to_exec_file.
10868 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10869 TARGET_DEFAULT_RETURN.
10871 2014-02-19 Tom Tromey <tromey@redhat.com>
10873 * target-delegates.c: Rebuild.
10874 * target.c (update_current_target): Don't inherit or default
10876 (target_thread_name): Unconditionally delegate.
10877 * target.h (struct target_ops) <to_thread_name>: Use
10878 TARGET_DEFAULT_RETURN.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target-delegates.c: Rebuild.
10883 * target.c (update_current_target): Don't inherit or default
10884 to_extra_thread_info.
10885 * target.h (struct target_ops) <to_extra_thread_info>: Use
10886 TARGET_DEFAULT_RETURN.
10888 2014-02-19 Tom Tromey <tromey@redhat.com>
10890 * target-delegates.c: Rebuild.
10891 * target.c (update_current_target): Don't inherit or default
10893 * target.h (struct target_ops) <to_has_exited>: Use
10894 TARGET_DEFAULT_RETURN..
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target-delegates.c: Rebuild.
10899 * target.c (update_current_target): Don't inherit or default
10900 to_set_syscall_catchpoint.
10901 (return_one): Remove.
10902 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10903 TARGET_DEFAULT_RETURN.
10905 2014-02-19 Tom Tromey <tromey@redhat.com>
10907 * target-delegates.c: Rebuild.
10908 * target.c (update_current_target): Don't inherit or default
10909 to_insert_exec_catchpoint.
10910 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10911 TARGET_DEFAULT_RETURN.
10913 2014-01-08 Tom Tromey <tromey@redhat.com>
10915 * target-delegates.c: Rebuild.
10916 * target.c (update_current_target): Don't inherit or default
10917 to_insert_exec_catchpoint.
10918 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10919 TARGET_DEFAULT_RETURN.
10921 2014-02-19 Tom Tromey <tromey@redhat.com>
10923 * target-delegates.c: Rebuild.
10924 * target.c (update_current_target): Don't inherit or default
10925 to_remove_vfork_catchpoint.
10926 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10927 TARGET_DEFAULT_RETURN.
10929 2014-02-19 Tom Tromey <tromey@redhat.com>
10931 * target-delegates.c: Rebuild.
10932 * target.c (update_current_target): Don't inherit or default
10933 to_insert_vfork_catchpoint.
10934 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10935 TARGET_DEFAULT_RETURN.
10937 2014-02-19 Tom Tromey <tromey@redhat.com>
10939 * target-delegates.c: Rebuild.
10940 * target.c (update_current_target): Don't inherit or default
10941 to_remove_fork_catchpoint.
10942 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10943 TARGET_DEFAULT_RETURN.
10945 2014-02-19 Tom Tromey <tromey@redhat.com>
10947 * target-delegates.c: Rebuild.
10948 * target.c (update_current_target): Don't inherit or default
10949 to_insert_fork_catchpoint.
10950 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10951 TARGET_DEFAULT_RETURN.
10953 2014-02-19 Tom Tromey <tromey@redhat.com>
10955 * target-delegates.c: Rebuild.
10956 * target.c (update_current_target): Don't inherit or default
10957 to_post_startup_inferior.
10958 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10959 TARGET_DEFAULT_IGNORE.
10961 2014-02-19 Tom Tromey <tromey@redhat.com>
10963 * target-delegates.c: Rebuild.
10964 * target.c (update_current_target): Don't inherit or default
10966 * target.h (struct target_ops) <to_load>: Use
10967 TARGET_DEFAULT_NORETURN.
10969 2014-02-19 Tom Tromey <tromey@redhat.com>
10971 * target-delegates.c: Rebuild.
10972 * target.c (update_current_target): Don't inherit or default
10974 * target.h (struct target_ops) <to_terminal_info>: Use
10975 TARGET_DEFAULT_FUNC.
10977 2014-02-19 Tom Tromey <tromey@redhat.com>
10979 * target-delegates.c: Rebuild.
10980 * target.c (update_current_target): Don't inherit or default
10981 to_terminal_save_ours.
10982 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10983 TARGET_DEFAULT_IGNORE.
10985 2014-02-19 Tom Tromey <tromey@redhat.com>
10987 * target-delegates.c: Rebuild.
10988 * target.c (update_current_target): Don't inherit or default
10990 * target.h (struct target_ops) <to_terminal_ours>: Use
10991 TARGET_DEFAULT_IGNORE.
10993 2014-02-19 Tom Tromey <tromey@redhat.com>
10995 * target-delegates.c: Rebuild.
10996 * target.c (update_current_target): Don't inherit or default
10997 to_terminal_ours_for_output.
10998 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10999 TARGET_DEFAULT_IGNORE.
11001 2014-02-19 Tom Tromey <tromey@redhat.com>
11003 * target-delegates.c: Rebuild.
11004 * target.c (update_current_target): Don't inherit or default
11005 to_terminal_inferior.
11006 * target.h (struct target_ops) <to_terminal_inferior>: Use
11007 TARGET_DEFAULT_IGNORE.
11009 2014-02-19 Tom Tromey <tromey@redhat.com>
11011 * target-delegates.c: Rebuild.
11012 * target.c (update_current_target): Don't inherit or default
11014 * target.h (struct target_ops) <to_terminal_init>: Use
11015 TARGET_DEFAULT_IGNORE.
11017 2014-02-19 Tom Tromey <tromey@redhat.com>
11019 * target-delegates.c: Rebuild.
11020 * target.c (update_current_target): Don't inherit or default
11021 to_can_accel_watchpoint_condition.
11022 * target.h (struct target_ops)
11023 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11025 2014-02-19 Tom Tromey <tromey@redhat.com>
11027 * target-delegates.c: Rebuild.
11028 * target.c (update_current_target): Don't inherit or default
11029 to_region_ok_for_hw_watchpoint.
11030 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11031 Use TARGET_DEFAULT_FUNC.
11033 2014-02-19 Tom Tromey <tromey@redhat.com>
11035 * target-delegates.c: Rebuild.
11036 * target.c (update_current_target): Don't inherit or default
11037 to_watchpoint_addr_within_range.
11038 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11039 Use TARGET_DEFAULT_FUNC.
11041 2014-02-19 Tom Tromey <tromey@redhat.com>
11043 * target-delegates.c: Rebuild.
11044 * target.c (update_current_target): Don't inherit or default
11045 to_remove_watchpoint.
11046 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11047 TARGET_DEFAULT_NORETURN.
11049 2014-02-19 Tom Tromey <tromey@redhat.com>
11051 * target-delegates.c: Rebuild.
11052 * target.c (update_current_target): Don't inherit or default
11053 to_insert_watchpoint.
11054 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11055 TARGET_DEFAULT_RETURN.
11057 2014-02-19 Tom Tromey <tromey@redhat.com>
11059 * target-delegates.c: Rebuild.
11060 * target.c (update_current_target): Don't inherit or default
11061 to_remove_hw_breakpoint.
11062 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11063 TARGET_DEFAULT_RETURN.
11065 2014-02-19 Tom Tromey <tromey@redhat.com>
11067 * target-delegates.c: Rebuild.
11068 * target.c (update_current_target): Don't inherit or default
11069 to_insert_hw_breakpoint.
11070 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11071 TARGET_DEFAULT_RETURN.
11073 2014-02-19 Tom Tromey <tromey@redhat.com>
11075 * target-delegates.c: Rebuild.
11076 * target.c (update_current_target): Don't inherit or default
11077 to_can_use_hw_breakpoint.
11078 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11079 TARGET_DEFAULT_RETURN.
11081 2014-02-19 Tom Tromey <tromey@redhat.com>
11083 * target-delegates.c: Rebuild.
11084 * target.c (update_current_target): Don't inherit or default
11086 * target.h (struct target_ops) <to_files_info>: Use
11087 TARGET_DEFAULT_IGNORE.
11089 2014-02-19 Tom Tromey <tromey@redhat.com>
11091 * target-delegates.c: Rebuild.
11092 * target.c (update_current_target): Don't inherit or default
11094 * target.h (struct target_ops) <to_store>: Use
11095 TARGET_DEFAULT_NORETURN.
11097 2014-02-19 Tom Tromey <tromey@redhat.com>
11099 * target-delegates.c: Rebuild.
11100 * target.c (update_current_target): Don't inherit or default
11102 * target.h (struct target_ops) <to_post_attach>: Use
11103 TARGET_DEFAULT_IGNORE.
11105 2014-02-19 Tom Tromey <tromey@redhat.com>
11107 * target-delegates.c: Rebuild.
11108 * target.c (update_current_target): Don't inherit or default
11110 (default_rcmd): New function.
11111 (do_monitor_command): Unconditionally delegate.
11112 * target.h (struct target_ops) <to_rmcd>: Use
11113 TARGET_DEFAULT_FUNC.
11115 2014-02-19 Tom Tromey <tromey@redhat.com>
11117 * target-delegates.c: Rebuild.
11118 * target.c (init_dummy_target): Don't initialize to_attach.
11119 (target_attach): Unconditionally delegate.
11120 * target.h (struct target_ops) <to_attach>: Use
11121 TARGET_DEFAULT_FUNC.
11123 2014-02-19 Tom Tromey <tromey@redhat.com>
11125 * target-delegates.c: Rebuild.
11126 * target.c (target_detach): Unconditionally delegate.
11127 (init_dummy_target): Don't initialize to_detach.
11128 * target.h (struct target_ops) <to_detach>: Use
11129 TARGET_DEFAULT_IGNORE.
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11133 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11135 (target_augmented_libraries_svr4_read): Add argument.
11136 * target.c (update_current_target): Update.
11137 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target.h (struct target_ops) <to_call_history_range>: Add
11144 * target.c (target_call_history_range): Add argument.
11145 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11147 (record_btrace_call_history_from): Update.
11149 2014-02-19 Tom Tromey <tromey@redhat.com>
11151 * target.h (struct target_ops) <to_call_history_from>: Add
11153 * target.c (target_call_history_from): Add argument.
11154 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target.h (struct target_ops) <to_call_history>: Add argument.
11160 * target.c (target_call_history): Add argument.
11161 * record-btrace.c (record_btrace_call_history): Add 'self'
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target.h (struct target_ops) <to_insn_history_range>: Add
11168 * target.c (target_insn_history_range): Add argument.
11169 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11171 (record_btrace_insn_history_from): Update.
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target.h (struct target_ops) <to_insn_history_from>: Add
11177 * target.c (target_insn_history_from): Add argument.
11178 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.h (struct target_ops) <to_insn_history>: Add argument.
11184 * target.c (target_insn_history): Add argument.
11185 * record-btrace.c (record_btrace_insn_history): Add 'self'
11188 2014-02-19 Tom Tromey <tromey@redhat.com>
11190 * target.h (struct target_ops) <to_goto_record>: Add argument.
11191 * target.c (target_goto_record): Add argument.
11192 * record-full.c (record_full_goto): Add 'self' argument.
11193 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11197 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11198 * target.c (target_goto_record_end): Add argument.
11199 * record-full.c (record_full_goto_end): Add 'self' argument.
11200 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11202 2014-02-19 Tom Tromey <tromey@redhat.com>
11204 * target.h (struct target_ops) <to_goto_record_begin>: Add
11206 * target.c (target_goto_record_begin): Add argument.
11207 * record-full.c (record_full_goto_begin): Add 'self' argument.
11208 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11211 2014-02-19 Tom Tromey <tromey@redhat.com>
11213 * target.h (struct target_ops) <to_record_is_replaying>: Add
11215 * target.c (target_record_is_replaying): Add argument.
11216 * record-full.c (record_full_is_replaying): Add 'self' argument.
11217 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11219 (record_btrace_xfer_partial, record_btrace_store_registers)
11220 (record_btrace_prepare_to_store, record_btrace_resume)
11221 (record_btrace_wait, record_btrace_decr_pc_after_break)
11222 (record_btrace_find_new_threads, record_btrace_thread_alive):
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11227 * target.h (struct target_ops) <to_delete_record>: Add argument.
11228 * target.c (target_delete_record): Add argument.
11229 * record-full.c (record_full_delete): Add 'self' argument.
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11233 * target.h (struct target_ops) <to_save_record>: Add argument.
11234 * target.c (target_save_record): Add argument.
11235 * record-full.c (record_full_save): Add 'self' argument.
11236 (record_full_save): Add 'self' argument.
11238 2014-02-19 Tom Tromey <tromey@redhat.com>
11240 * target.h (struct target_ops) <to_info_record>: Add argument.
11241 * target.c (target_info_record): Add argument.
11242 * record.c (info_record_command): Add argument.
11243 * record-full.c (record_full_info): Add 'self' argument.
11244 * record-btrace.c (record_btrace_info): Add 'self' argument.
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11248 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11249 * target.c (target_stop_recording): Add argument.
11250 * record.c (record_stop): Add argument.
11251 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11254 2014-02-19 Tom Tromey <tromey@redhat.com>
11256 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11257 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11258 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11260 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11261 (_initialize_amd64_linux_nat): Use it.
11262 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11263 (_initialize_i386_linux_nat): Use it.
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11267 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11268 * target.c (target_teardown_btrace): Add argument.
11269 * remote.c (remote_teardown_btrace): Add 'self' argument.
11270 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11272 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11277 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11278 * target.c (target_disable_btrace): Add argument.
11279 * remote.c (remote_disable_btrace): Add 'self' argument.
11280 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11282 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11285 2014-02-19 Tom Tromey <tromey@redhat.com>
11287 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11288 * target.c (target_enable_btrace): Add argument.
11289 * remote.c (remote_enable_btrace): Add 'self' argument.
11290 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11292 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11295 2014-02-19 Tom Tromey <tromey@redhat.com>
11297 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11298 (target_can_use_agent): Add argument.
11299 * target.c (update_current_target): Update.
11300 * remote.c (remote_can_use_agent): Add 'self' argument.
11301 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11303 2014-02-19 Tom Tromey <tromey@redhat.com>
11305 * target.h (struct target_ops) <to_use_agent>: Add argument.
11306 (target_use_agent): Add argument.
11307 * target.c (update_current_target): Update.
11308 * remote.c (remote_use_agent): Add 'self' argument.
11309 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11313 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11314 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11315 (target_traceframe_info): Add argument.
11316 * target.c (update_current_target): Update.
11317 * remote.c (remote_traceframe_info): Add 'self' argument.
11318 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11320 2014-02-19 Tom Tromey <tromey@redhat.com>
11322 * target.h (target_static_tracepoint_markers_by_strid): Add
11324 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11326 * target.c (update_current_target): Update.
11327 * remote.c (struct target_ops)
11328 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11329 * linux-nat.c (struct target_ops)
11330 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11334 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11336 (target_static_tracepoint_marker_at): Add argument.
11337 * target.c (update_current_target): Update.
11338 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11343 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11344 (target_set_permissions): Add argument.
11345 * target.c (update_current_target): Update.
11346 * remote.c (remote_set_permissions): Add 'self' argument.
11347 (remote_start_remote): Update.
11349 2014-02-19 Tom Tromey <tromey@redhat.com>
11351 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11352 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11353 (target_get_tib_address): Add argument.
11354 * target.c (update_current_target): Update.
11355 * remote.c (remote_get_tib_address): Add 'self' argument.
11357 2014-02-19 Tom Tromey <tromey@redhat.com>
11359 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11360 (target_set_trace_notes): Add argument.
11361 * target.c (update_current_target): Update.
11362 * remote.c (remote_set_trace_notes): Add 'self' argument.
11364 2014-02-19 Tom Tromey <tromey@redhat.com>
11366 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11368 (target_set_trace_buffer_size): Add argument.
11369 * target.c (update_current_target): Update.
11370 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11376 (target_set_circular_trace_buffer): Add argument.
11377 * target.c (update_current_target): Update.
11378 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11381 2014-02-19 Tom Tromey <tromey@redhat.com>
11383 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11385 (target_set_disconnected_tracing): Add argument.
11386 * target.c (update_current_target): Update.
11387 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11391 * target.h (struct target_ops)
11392 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11393 (target_get_min_fast_tracepoint_insn_len): Add argument.
11394 * target.c (update_current_target): Update.
11395 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11398 2014-02-19 Tom Tromey <tromey@redhat.com>
11400 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11402 (target_get_raw_trace_data): Add argument.
11403 * target.c (update_current_target): Update.
11404 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11408 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11410 (target_upload_trace_state_variables): Add argument.
11411 * target.c (update_current_target): Update.
11412 * remote.c (remote_upload_trace_state_variables): Add 'self'
11414 (remote_start_remote): Update.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11420 (target_upload_tracepoints): Add argument.
11421 * target.c (update_current_target): Update.
11422 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11423 (remote_start_remote): Update.
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11428 (target_save_trace_data): Add argument.
11429 * target.c (update_current_target): Update.
11430 * remote.c (remote_save_trace_data): Add 'self' argument.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11436 * target.h (struct target_ops)
11437 <to_get_trace_state_variable_value>: Add argument.
11438 (target_get_trace_state_variable_value): Add argument.
11439 * target.c (update_current_target): Update.
11440 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11442 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11444 2014-02-19 Tom Tromey <tromey@redhat.com>
11446 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11447 * target.h (struct target_ops) <to_trace_find>: Add argument.
11448 (target_trace_find): Add argument.
11449 * target.c (update_current_target): Update.
11450 * remote.c (remote_trace_find): Add 'self' argument.
11451 * ctf.c (ctf_trace_find): Add 'self' argument.
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11455 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11456 (target_trace_stop): Add argument.
11457 * target.c (update_current_target): Update.
11458 * remote.c (remote_trace_stop): Add 'self' argument.
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11462 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11463 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11465 (target_get_tracepoint_status): Add argument.
11466 * target.c (update_current_target): Update.
11467 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11469 2014-02-19 Tom Tromey <tromey@redhat.com>
11471 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11472 * target.h (struct target_ops) <to_get_trace_status>: Add
11474 (target_get_trace_status): Add argument.
11475 * target.c (update_current_target): Update.
11476 * remote.c (remote_get_trace_status): Add 'self' argument.
11477 (remote_start_remote, remote_can_download_tracepoint): Update.
11478 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11482 * target.h (struct target_ops) <to_trace_start>: Add argument.
11483 (target_trace_start): Add argument.
11484 * target.c (update_current_target): Update.
11485 * remote.c (remote_trace_start): Add 'self' argument.
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11491 (target_trace_set_readonly_regions): Add argument.
11492 * target.c (update_current_target): Update.
11493 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11500 (target_disable_tracepoint): Add argument.
11501 * target.c (update_current_target): Update.
11502 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11506 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11508 (target_enable_tracepoint): Add argument.
11509 * target.c (update_current_target): Update.
11510 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target.h (struct target_ops) <to_download_trace_state_variable>:
11516 (target_download_trace_state_variable): Add argument.
11517 * target.c (update_current_target): Update.
11518 * remote.c (remote_download_trace_state_variable): Add 'self'
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11525 (target_can_download_tracepoint): Add argument.
11526 * target.c (update_current_target): Update.
11527 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11531 * target.h (struct target_ops) <to_download_tracepoint>: Add
11533 (target_download_tracepoint): Add argument.
11534 * target.c (update_current_target): Update.
11535 * remote.c (remote_download_tracepoint): Add 'self' argument.
11537 2014-02-19 Tom Tromey <tromey@redhat.com>
11539 * target.h (struct target_ops) <to_trace_init>: Add argument.
11540 (target_trace_init): Add argument.
11541 * target.c (update_current_target): Update.
11542 * remote.c (remote_trace_init): Add 'self' argument.
11544 2014-02-19 Tom Tromey <tromey@redhat.com>
11546 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11547 * target.c (target_fileio_readlink): Add argument.
11548 * remote.c (remote_hostio_readlink): Add 'self' argument.
11549 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11551 2014-02-19 Tom Tromey <tromey@redhat.com>
11553 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11554 * target.c (target_fileio_unlink): Add argument.
11555 * remote.c (remote_hostio_unlink): Add 'self' argument.
11556 (remote_file_delete): Update.
11557 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11559 2014-02-19 Tom Tromey <tromey@redhat.com>
11561 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11562 * target.c (target_fileio_close): Add argument.
11563 * remote.c (remote_hostio_close): Add 'self' argument.
11564 (remote_hostio_close_cleanup): Update.
11565 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11567 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11569 2014-02-19 Tom Tromey <tromey@redhat.com>
11571 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11572 * target.c (target_fileio_pread): Add argument.
11573 * remote.c (remote_hostio_pread): Add 'self' argument.
11574 (remote_bfd_iovec_pread, remote_file_get): Update.
11575 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11580 * target.c (target_fileio_pwrite): Add argument.
11581 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11582 (remote_file_put): Update.
11583 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11587 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11588 * target.c (target_fileio_open): Add argument.
11589 * remote.c (remote_hostio_open): Add 'self' argument.
11590 (remote_bfd_iovec_open): Add 'self' argument.
11591 (remote_file_put): Add 'self' argument.
11592 (remote_file_get): Add 'self' argument.
11593 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11597 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11599 (target_can_run_breakpoint_commands): Add argument.
11600 * target.c (update_current_target): Update.
11601 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11603 (remote_insert_breakpoint): Add 'self' argument.
11604 (remote_insert_hw_breakpoint): Add 'self' argument.
11605 (remote_can_run_breakpoint_commands): Add 'self' argument.
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11609 * target.h (struct target_ops)
11610 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11611 (target_supports_evaluation_of_breakpoint_conditions): Add
11613 * target.c (update_current_target): Update.
11614 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11616 (remote_insert_breakpoint): Add 'self' argument.
11617 (remote_insert_hw_breakpoint): Add 'self' argument.
11618 (remote_supports_cond_breakpoints): Add 'self' argument.
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11622 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11624 (target_supports_string_tracing): Add argument.
11625 * target.c (update_current_target): Update.
11626 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11630 * target.h (struct target_ops)
11631 <to_supports_disable_randomization>: Add argument.
11632 * target.c (find_default_supports_disable_randomization): Add
11634 (target_supports_disable_randomization): Add argument.
11635 (find_default_supports_disable_randomization): Add 'self'
11637 * remote.c (extended_remote_supports_disable_randomization): Add
11639 (remote_supports_disable_randomization): Add 'self' argument.
11640 (extended_remote_create_inferior): Update.
11641 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target.h (struct target_ops)
11647 <to_supports_enable_disable_tracepoint>: Add argument.
11648 (target_supports_enable_disable_tracepoint): Add argument.
11649 * target.c (update_current_target): Update.
11650 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11653 2014-02-19 Tom Tromey <tromey@redhat.com>
11655 * target.h (struct target_ops) <to_supports_multi_process>: Add
11657 (target_supports_multi_process): Add argument.
11658 * target.c (update_current_target): Update.
11659 * remote.c (remote_supports_multi_process): Add 'self' argument.
11660 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11662 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target.h (struct target_ops) <to_execution_direction>: Add
11669 (target_execution_direction): Add argument.
11670 * target.c (default_execution_direction): Add 'self' argument.
11671 * record-full.c (record_full_execution_direction): Add 'self'
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11676 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11678 (target_can_execute_reverse): Add argument.
11679 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11680 * record-full.c (record_full_can_execute_reverse): Add 'self'
11682 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11685 2014-02-19 Tom Tromey <tromey@redhat.com>
11687 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11688 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11690 (target_get_ada_task_ptid): Add argument.
11691 * target.c (update_current_target): Update.
11692 (default_get_ada_task_ptid): Add 'self' argument.
11693 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11694 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11695 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11697 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11699 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11701 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11703 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11704 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11709 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11710 (target_goto_bookmark): Add argument.
11711 * target.c (dummy_goto_bookmark): Add 'self' argument.
11712 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11716 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11717 (target_get_bookmark): Add argument.
11718 * target.c (dummy_get_bookmark): Add 'self' argument.
11719 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11721 2014-02-19 Tom Tromey <tromey@redhat.com>
11723 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11725 (target_make_corefile_notes): Add argument.
11726 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11727 * procfs.c (procfs_make_note_section): Add 'self' argument.
11728 (procfs_make_note_section): Add 'self' argument.
11729 (procfs_make_note_section): Add 'self' argument.
11730 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11732 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11733 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11734 * exec.c (exec_make_note_section): Add 'self' argument.
11735 (exec_make_note_section): Add 'self' argument.
11737 2014-02-19 Tom Tromey <tromey@redhat.com>
11739 * target.h (struct target_ops) <to_find_memory_regions>: Add
11741 (target_find_memory_regions): Add argument.
11742 * target.c (dummy_find_memory_regions): Add 'self' argument.
11743 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11744 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11745 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11746 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11747 * exec. (exec_do_find_memory_regions): New global.
11748 (exec_set_find_memory_regions): Rewrite.
11749 (exec_find_memory_regions): New function.
11750 (init_exec_ops): Use exec_find_memory_regions.
11752 2014-02-19 Tom Tromey <tromey@redhat.com>
11754 * target.h (struct target_ops) <to_supports_non_stop>: Add
11756 * target.c (find_default_supports_non_stop): Add argument.
11757 (target_supports_non_stop): Add argument.
11758 (find_default_supports_non_stop): Add 'self' argument.
11759 * remote.c (remote_supports_non_stop): Add 'self' argument.
11760 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11762 2014-02-19 Tom Tromey <tromey@redhat.com>
11764 * target.h (struct target_ops) <to_log_command>: Add argument.
11765 (target_log_command): Add argument.
11766 * serial.h (serial_log_command): Add 'self' argument.
11767 * serial.c (serial_log_command): Add 'self' argument.
11769 2014-02-19 Tom Tromey <tromey@redhat.com>
11771 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11772 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11774 (target_pid_to_exec_file): Add argument.
11775 * target.c (debug_to_pid_to_exec_file): Add argument.
11776 (update_current_target): Update.
11777 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11778 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11779 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11780 (linux_handle_extended_wait): Update.
11781 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11782 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11783 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11784 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * target.h (struct target_ops) <to_rcmd>: Add argument.
11789 (target_rcmd): Add argument.
11790 * target.c (debug_to_rcmd): Add argument.
11791 (update_current_target, do_monitor_command): Update.
11792 * remote.c (remote_rcmd): Add 'self' argument.
11793 * monitor.c (monitor_rcmd): Add 'self' argument.
11795 2014-02-19 Tom Tromey <tromey@redhat.com>
11797 * windows-nat.c (windows_stop): Add 'self' argument.
11798 * target.h (struct target_ops) <to_stop>: Add argument.
11799 * target.c (target_stop): Add argument.
11800 (debug_to_stop): Add argument.
11801 (update_current_target): Update.
11802 * remote.c (remote_stop): Add 'self' argument.
11803 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11804 (gdbsim_cntrl_c): Update.
11805 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11806 * procfs.c (procfs_stop): Add 'self' argument.
11807 * nto-procfs.c (procfs_stop): Add 'self' argument.
11808 * monitor.c (monitor_stop): Add 'self' argument.
11809 (monitor_open): Update.
11810 * linux-nat.c (linux_nat_stop): Add argument.
11811 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11812 * gnu-nat.c (gnu_stop): Add 'self' argument.
11813 * darwin-nat.c (darwin_stop): Add 'self' argument.
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11817 * target.h (struct target_ops) <to_thread_name>: Add argument.
11818 * target.c (target_thread_name): Add argument.
11819 (update_current_target): Update.
11820 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * target.h (struct target_ops) <to_extra_thread_info>: Add
11826 (target_extra_thread_info): Add argument.
11827 * target.c (update_current_target): Update.
11828 * remote.c (remote_threads_extra_info): Add 'self' argument.
11829 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11831 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11832 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11833 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11835 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11837 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11839 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11842 2014-02-19 Tom Tromey <tromey@redhat.com>
11844 * target.h (struct target_ops) <to_program_signals>: Add argument.
11845 * target.c (target_program_signals): Add argument.
11846 * remote.c (remote_program_signals): Add 'self' argument.
11848 2014-02-19 Tom Tromey <tromey@redhat.com>
11850 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11851 * target.c (target_pass_signals): Add argument.
11852 * remote.c (remote_pass_signals): Add 'self' argument.
11853 (remote_start_remote): Update.
11854 * procfs.c (procfs_pass_signals): Add 'self' argument.
11855 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11856 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11857 (linux_nat_create_inferior, linux_nat_attach): Update.
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11861 * windows-nat.c (windows_can_run): Add 'self' argument.
11862 * target.h (struct target_ops) <to_can_run>: Add argument.
11863 (target_can_run): Add argument.
11864 * target.c (debug_to_can_run): Add argument.
11865 (update_current_target): Update.
11866 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11867 * inf-child.c (inf_child_can_run): Add 'self' argument.
11868 * go32-nat.c (go32_can_run): Add 'self' argument.
11870 2014-02-19 Tom Tromey <tromey@redhat.com>
11872 * target.h (struct target_ops) <to_has_exited>: Add argument.
11873 (target_has_exited): Add argument.
11874 * target.c (debug_to_has_exited): Add argument.
11875 (update_current_target): Update.
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11879 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11881 (target_set_syscall_catchpoint): Add argument.
11882 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11884 * target.c (update_current_target): Update.
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11888 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11890 (target_remove_exec_catchpoint): Add argument.
11891 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11892 (update_current_target): Update.
11893 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11900 (target_insert_exec_catchpoint): Add argument.
11901 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11902 (update_current_target): Update.
11903 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11908 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11910 (target_remove_vfork_catchpoint): Add argument.
11911 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11912 (update_current_target): Update.
11913 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11920 (target_insert_vfork_catchpoint): Add argument.
11921 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11922 (update_current_target): Update.
11923 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11926 2014-02-19 Tom Tromey <tromey@redhat.com>
11928 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11930 (target_remove_fork_catchpoint): Add argument.
11931 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11932 (update_current_target): Update.
11933 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11938 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11940 (target_insert_fork_catchpoint): Add argument.
11941 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11942 (update_current_target): Update.
11943 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11948 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11950 (target_post_startup_inferior): Add argument.
11951 * target.c (debug_to_post_startup_inferior): Add argument.
11952 (update_current_target): Update.
11953 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11955 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11957 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11959 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11961 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11963 (super_post_startup_inferior): Likewise.
11964 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11966 (super_post_startup_inferior): Likewise.
11967 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11968 Add 'self' argument.
11969 (super_post_startup_inferior): Likewise.
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11973 * target.h (struct target_ops) <to_load>: Add argument.
11974 * target.c (target_load): Add argument.
11975 (debug_to_load): Add argument.
11976 (update_current_target): Update.
11977 * remote.c (remote_load): Add 'self' argument.
11978 * remote-sim.c (gdbsim_load): Add 'self' argument.
11979 * remote-mips.c (mips_load): Add 'self' argument.
11980 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11981 * monitor.c (monitor_load): Add 'self' argument.
11982 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11986 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11987 (target_terminal_info): Add argument.
11988 * target.c (debug_to_terminal_info): Add argument.
11989 (default_terminal_info): Likewise.
11990 * inflow.c (child_terminal_info): Add 'self' argument.
11991 * inferior.h (child_terminal_info): Add 'self' argument.
11992 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11996 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11998 (target_terminal_save_ours): Add argument.
11999 * target.c (debug_to_terminal_save_ours): Add argument.
12000 (update_current_target): Update.
12001 * inflow.c (terminal_save_ours): Add 'self' argument.
12002 * inferior.h (terminal_save_ours): Add 'self' argument.
12004 2014-02-19 Tom Tromey <tromey@redhat.com>
12006 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12007 (target_terminal_ours): Add argument.
12008 * target.c (debug_to_terminal_ours): Add argument.
12009 (update_current_target): Update.
12010 * remote.c (remote_terminal_ours): Add 'self' argument.
12011 (remote_close): Update.
12012 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12013 * inflow.c (terminal_ours): Add 'self' argument.
12014 * inferior.h (terminal_ours): Add 'self' argument.
12015 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12017 2014-02-19 Pedro Alves <palves@redhat.com>
12018 Tom Tromey <tromey@redhat.com>
12020 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12022 (target_terminal_ours_for_output): Add argument.
12023 * target.c (debug_to_terminal_ours_for_output): Add argument.
12024 (update_current_target): Update.
12025 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12026 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12027 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12031 * target.h (struct target_ops) <to_terminal_inferior>: Add
12033 * target.c (target_terminal_inferior): Add argument.
12034 (update_current_target): Update.
12035 * remote.c (remote_terminal_inferior): Add 'self' argument.
12036 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12037 * inflow.c (terminal_inferior): Add 'self' argument.
12038 * inferior.h (terminal_inferior): Add 'self' argument.
12039 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12040 (go32_terminal_inferior): Add 'self' argument.
12042 2014-02-19 Tom Tromey <tromey@redhat.com>
12044 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12045 (target_terminal_init): Add argument.
12046 * target.c (debug_to_terminal_init): Add argument.
12047 (update_current_target): Update.
12048 * inflow.c (terminal_init_inferior): Add 'self' argument.
12049 * inferior.h (terminal_init_inferior): Add 'self' argument.
12050 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12051 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12053 2014-02-19 Tom Tromey <tromey@redhat.com>
12055 * target.h (struct target_ops)
12056 <to_can_accel_watchpoint_condition>: Add argument.
12057 (target_can_accel_watchpoint_condition): Add argument.
12058 * target.c (debug_to_can_accel_watchpoint_condition): Add
12060 (update_current_target): Update.
12061 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12068 (target_region_ok_for_hw_watchpoint): Add argument.
12069 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12070 (default_region_ok_for_hw_watchpoint): Add argument.
12071 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12072 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12074 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12076 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12078 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12080 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12082 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12084 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12085 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12087 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12088 Add 'self' argument.
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12092 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12094 (target_insert_watchpoint): Add argument.
12095 * target.c (debug_to_insert_watchpoint): Add argument.
12096 (update_current_target): Update.
12097 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12098 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12099 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12100 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12101 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12102 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12104 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12105 (procfs_insert_hw_watchpoint): Add 'self' argument.
12106 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12108 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12110 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12112 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12113 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12115 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12120 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12122 (target_remove_watchpoint): Add argument.
12123 * target.c (debug_to_remove_watchpoint): Add argument.
12124 (update_current_target): Update.
12125 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12126 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12127 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12128 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12129 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12130 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12132 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12133 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12135 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12137 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12139 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12140 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12142 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12147 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12149 (target_remove_hw_breakpoint): Add argument.
12150 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12151 (update_current_target): Update.
12152 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12153 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12155 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12156 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12158 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12163 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12165 (target_insert_hw_breakpoint): Add argument.
12166 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12167 (update_current_target): Update.
12168 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12169 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12171 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12172 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12173 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12175 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12178 2014-02-19 Tom Tromey <tromey@redhat.com>
12180 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12182 (target_can_use_hardware_watchpoint): Add argument.
12183 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12184 (update_current_target): Update.
12185 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12187 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12189 * remote.c (remote_check_watch_resources): Add 'self' argument.
12190 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12191 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12193 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12194 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12196 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12198 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12200 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12202 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12204 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12206 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12207 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12209 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12212 2014-02-19 Tom Tromey <tromey@redhat.com>
12214 * target.h (struct target_ops) <to_post_attach>: Add argument.
12215 (target_post_attach): Add argument.
12216 * target.c (debug_to_post_attach): Add argument.
12217 (update_current_target): Update.
12218 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12219 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12220 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12221 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12222 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12224 2014-02-19 Tom Tromey <tromey@redhat.com>
12226 * windows-nat.c (windows_close): Add 'self' argument.
12227 * tracepoint.c (tfile_close): Add 'self' argument.
12228 * target.h (struct target_ops) <to_close>: Add argument.
12229 * target.c (target_close): Add argument.
12230 (update_current_target): Update.
12231 * remote.c (remote_close): Add 'self' argument.
12232 * remote-sim.c (gdbsim_close): Add 'self' argument.
12233 * remote-mips.c (mips_close): Add 'self' argument.
12234 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12235 * record-full.c (record_full_close): Add 'self' argument.
12236 * record-btrace.c (record_btrace_close): Add 'self' argument.
12237 * monitor.h (monitor_close): Add 'self' argument.
12238 * monitor.c (monitor_close): Add 'self' argument.
12239 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12240 * linux-nat.c (linux_nat_close): Add argument.
12241 * go32-nat.c (go32_close): Add 'self' argument.
12242 * exec.c (exec_close_1): Add 'self' argument.
12243 * ctf.c (ctf_close): Add 'self' argument.
12244 * corelow.c (core_close): Add 'self' argument.
12245 (core_close_cleanup): Update.
12246 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12247 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12249 2014-02-19 Tom Tromey <tromey@redhat.com>
12251 * remote.c (remote_load): New function.
12252 (init_remote_ops): Use it.
12254 2014-02-19 Tom Tromey <tromey@redhat.com>
12256 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12258 * common/linux-btrace.h (linux_supports_btrace): Update.
12259 * remote.c (remote_supports_btrace): Add "self" argument.
12260 * target-delegates.c: Rebuild.
12261 * target.c (target_supports_btrace): Remove.
12262 * target.h (struct target_ops) <to_supports_btrace>: Add
12263 target_ops argument.
12264 (target_supports_btrace): New define.
12266 2014-02-19 Tom Tromey <tromey@redhat.com>
12268 * record-full.c (record_full_beneath_to_resume_ops)
12269 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12270 (record_full_beneath_to_wait)
12271 (record_full_beneath_to_store_registers_ops)
12272 (record_full_beneath_to_store_registers)
12273 (record_full_beneath_to_xfer_partial_ops)
12274 (record_full_beneath_to_xfer_partial)
12275 (record_full_beneath_to_insert_breakpoint_ops)
12276 (record_full_beneath_to_insert_breakpoint)
12277 (record_full_beneath_to_remove_breakpoint_ops)
12278 (record_full_beneath_to_remove_breakpoint)
12279 (record_full_beneath_to_stopped_by_watchpoint)
12280 (record_full_beneath_to_stopped_data_address)
12281 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12282 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12283 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12284 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12285 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12286 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12287 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12288 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12289 (record_full_resume, record_full_wait_1)
12290 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12291 (record_full_store_registers, record_full_xfer_partial)
12292 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12293 (record_full_async, record_full_core_xfer_partial): Use target
12295 * target-delegates.c: Rebuild.
12296 * target.c (current_xfer_partial): Remove.
12297 (update_current_target): Do not INHERIT or de_fault
12298 to_insert_breakpoint, to_remove_breakpoint,
12299 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12300 to_is_async_p, to_async. Do not set to_xfer_partial field.
12301 (default_xfer_partial): Simplify.
12302 (current_xfer_partial): Remove.
12303 (target_wait, target_resume): Simplify.
12304 (find_default_can_async_p, find_default_is_async_p): Update.
12305 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12306 to_xfer_partial, to_stopped_by_watchpoint,
12307 to_stopped_data_address.
12308 (target_store_registers): Simplify.
12309 (forward_target_remove_breakpoint)
12310 (forward_target_insert_breakpoint): Remove.
12311 (target_remove_breakpoint, target_insert_breakpoint)
12312 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12313 * target.h (struct target_ops) <to_resume, to_wait,
12314 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12315 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12316 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12318 (forward_target_remove_breakpoint)
12319 (forward_target_insert_breakpoint): Remove.
12320 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12322 (record_btrace_insert_breakpoint): Delegate directly.
12324 2014-02-19 Tom Tromey <tromey@redhat.com>
12327 * target-delegates.c: New file.
12328 * target.c: Include target-delegates.c.
12329 (init_dummy_target): Call install_dummy_methods.
12330 (complete_target_initialization): Call install_delegators.
12331 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12332 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12333 * make-target-delegates: New file.
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12337 * record.c (find_record_target): Use find_target_at.
12338 * target.c (find_target_at): New function.
12339 * target.h (find_target_at): Declare.
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12343 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12344 Add 'ops' argument.
12345 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12347 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12348 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12350 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12352 * linux-nat.c (save_sigtrap): Update.
12353 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12354 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12355 (linux_nat_close): Update.
12356 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12358 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12360 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12361 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12362 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12363 (tmp_to_async): Add 'ops' argument.
12364 (record_full_stopped_by_watchpoint, record_full_async)
12365 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12367 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12368 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12369 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12370 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12371 (remote_is_async_p, remote_async): Add 'ops' argument.
12372 (remote_stopped_data_address): Update.
12373 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12374 * target.c (update_current_target)
12375 (find_default_can_async_p, find_default_is_async_p): Update.
12376 (init_dummy_target): Update.
12377 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12378 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12379 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12380 (target_can_async_p, target_is_async_p, target_async)
12381 (target_stopped_by_watchpoint): Update.
12383 2014-02-19 Yao Qi <yao@codesourcery.com>
12386 * gdbarch.sh: Remove startup_gdbarch.
12387 * gdbarch.c: Regenerated.
12388 * gdbarch.h: Likewise.
12390 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12392 * rl78-tdep.c (rl78_g10_register_name): New function.
12393 (rl78_return_value): Add g10 support.
12394 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12397 2014-02-17 Doug Evans <xdje42@gmail.com>
12399 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12400 (SUBDIR_GUILE_SRCS): Ditto.
12401 (scm-gsmob.o): Ditto.
12403 2014-02-17 Yao Qi <yao@codesourcery.com>
12405 * gnu-nat.c (ILL_RPC): Declare defined function.
12407 2014-02-17 Yao Qi <yao@codesourcery.com>
12409 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12410 mach_msg_type_number_t.
12411 (gnu_write_inferior): Likewise.
12413 2014-02-17 Yao Qi <yao@codesourcery.com>
12415 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12417 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12418 (inf_validate_procs, inf_signal): Likewise.
12419 (S_exception_raise_request): Likewise.
12420 (do_mach_notify_dead_name): Likewise.
12421 (steal_exc_port): Likewise.
12422 (gnu_read_inferior): Change 'copy_count''s type to
12423 mach_msg_type_number_t.
12424 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12427 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12429 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12430 flag. Adjust all users; in particular...
12431 (gnu_wait): ..., don't decrement its value in here...
12432 (gnu_create_inferior): ..., and instead set the flag in here,
12433 around the startup_inferior call, and call that one with
12434 START_INFERIOR_TRAPS_EXPECTED.
12436 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12437 (ILL_RPC): ... new macro.
12438 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12439 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12440 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12441 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12442 functions with ILL_RPC macro.
12443 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12444 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12445 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12446 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12447 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12448 (S_proc_getlogin_reply, S_proc_getsid_reply)
12449 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12450 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12451 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12452 (S_proc_getnports_reply, S_proc_is_important_reply)
12453 (S_proc_get_code_reply): New stub functions, generated with
12456 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12457 collected the type check structures.
12459 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12461 2014-02-14 Doug Evans <dje@google.com>
12463 * target.c (target_write_partial): Fix result type.
12465 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12467 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12468 the proper offsets to access fpregset_t.
12470 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12472 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12473 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12474 * h8300-tdep.c (setmachinelist): Remove global.
12475 * hppa-tdep.c (hppa_sigtramp): Remove global.
12476 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12477 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12478 * ravenscar-thread.c (update_target_observer): Remove global.
12479 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12481 2014-02-12 Tom Tromey <tromey@redhat.com>
12483 * common/rsp-low.c: Update comments.
12484 * common/rsp-low.h: Update comments.
12486 2014-02-12 Tom Tromey <tromey@redhat.com>
12488 * common/rsp-low.c (convert_ascii_to_int): Remove.
12489 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12491 2014-02-12 Tom Tromey <tromey@redhat.com>
12493 * common/rsp-low.h (unhexify): Don't declare.
12494 * common/rsp-low.c (unhexify): Remove.
12496 2014-02-12 Tom Tromey <tromey@redhat.com>
12498 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12499 * common/rsp-low.c (convert_int_to_ascii): Remove.
12501 2014-02-12 Tom Tromey <tromey@redhat.com>
12503 * common/rsp-low.h (hexify): Don't declare.
12504 * common/rsp-low.c (hexify): Remove.
12506 2014-02-12 Tom Tromey <tromey@redhat.com>
12508 * common/rsp-low.c (hexify): Never take strlen of argument.
12510 2014-02-12 Tom Tromey <tromey@redhat.com>
12512 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12513 * remote.c (extended_remote_run, remote_rcmd)
12514 (remote_download_trace_state_variable, remote_save_trace_data)
12515 (remote_set_trace_notes): Update.
12516 * tracepoint.c (encode_source_string, tfile_write_status)
12517 (tfile_write_uploaded_tsv): Update.
12519 2014-02-12 Tom Tromey <tromey@redhat.com>
12521 * tracepoint.c: Include rsp-low.h.
12522 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12523 * remote.c: Include rsp-low.h.
12524 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12525 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12526 (remote_unescape_input): Move to common/rsp-low.c.
12527 * common/rsp-low.h: New file.
12528 * common/rsp-low.c: New file.
12529 * Makefile.in (SFILES): Add common/rsp-low.c.
12530 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12531 (COMMON_OBS): Add rsp-low.o.
12532 (rsp-low.o): New target.
12534 2014-02-12 Tom Tromey <tromey@redhat.com>
12536 * utils.h: Include print-utils.h.
12537 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12538 (int_string, core_addr_to_string, core_addr_to_string_nz)
12539 (hex_string, hex_string_custom): Don't declare.
12540 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12541 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12542 (hex_string_custom, int_string, core_addr_to_string)
12543 (core_addr_to_string_nz, host_address_to_string): Move to
12544 common/print-utils.c.
12545 * common/print-utils.h: New file.
12546 * common/print-utils.c: New file
12547 * Makefile.in (SFILES): Add common/print-utils.c.
12548 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12549 (COMMON_OBS): Add print-utils.o.
12550 (print-utils.o): New target.
12552 2014-02-12 Tom Tromey <tromey@redhat.com>
12554 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12556 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12558 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12560 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12562 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12563 if a PT_IO ptrace request returns sucessfully but indicates that 0
12564 bytes were transferred.
12566 2014-02-12 Pedro Alves <palves@redhat.com>
12567 Kevin Buettner <kevinb@redhat.com>
12569 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12570 TYPE_INSTANCE_FLAG_CODE_SPACE.
12572 2014-02-12 Pedro Alves <palves@redhat.com>
12574 * h8300-tdep.c (pseudo_from_raw_register)
12575 (raw_from_pseudo_register): New functions.
12576 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12579 2014-02-12 Pedro Alves <palves@redhat.com>
12581 * h8300-tdep.c (h8300_register_sim_regno): New function.
12582 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12583 gdbarch_register_sim_regno hook.
12585 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12587 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12589 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12591 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12593 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12595 * obsd-tdep.h (obsd_init_abi): New prototype.
12596 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12597 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12598 (obsd_init_abi): New functions.
12599 * i386obsd-tdep.c: Include "obsd-tdep.h".
12600 (i386obsd_init_abi): Call obsd_init_abi.
12601 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12602 (amd64obsd_init_abi): Call obsd_init_abi.
12603 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12604 obsd-tdep.c to gdb_target_obs.
12606 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12608 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12609 double float arguments to 16-byte in the argument slots.
12611 2014-02-11 Doug Evans <xdje42@gmail.com>
12613 * configure.ac: Don't crash if pkg-config is not found and guile
12614 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12616 * configure: Regenerate.
12618 2014-02-11 Yao Qi <yao@codesourcery.com>
12620 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12621 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12622 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12623 * gnu-nat.c (gnu_xfer_memory): Likewise.
12624 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12625 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12626 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12627 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12629 2014-02-11 Yao Qi <yao@codesourcery.com>
12631 * target.h (enum target_xfer_error): Rename to ...
12632 (enum target_xfer_status): ... it. New. All users updated.
12633 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12635 (TARGET_XFER_STATUS_ERROR_P): New macro.
12636 (target_xfer_error_to_string): Remove declaration.
12637 (target_xfer_status_to_string): Declare.
12638 (target_xfer_partial_ftype): Adjust it.
12639 (struct target_ops) <to_xfer_partial>: Return
12640 target_xfer_status. Add argument xfered_len. Update
12642 * target.c (target_xfer_error_to_string): Rename to ...
12643 (target_xfer_status_to_string): ... it. New. All callers
12645 (target_read_live_memory): Likewise. Call target_xfer_partial
12646 instead of target_read.
12647 (memory_xfer_live_readonly_partial): Return
12648 target_xfer_status. Add argument xfered_len.
12649 (raw_memory_xfer_partial): Likewise.
12650 (memory_xfer_partial_1): Likewise.
12651 (memory_xfer_partial): Likewise.
12652 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12653 properly. Update debug message.
12654 (default_xfer_partial, current_xfer_partial): Likewise.
12655 (target_write_partial): Likewise.
12656 (target_read_partial): Likewise. All callers updated.
12657 (read_whatever_is_readable): Likewise.
12658 (target_write_with_progress): Likewise.
12659 (target_read_alloc_1): Likewise.
12661 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12662 * auxv.c (procfs_xfer_auxv): Likewise.
12663 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12664 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12665 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12666 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12667 * corefile.c (read_memory): Adjust.
12668 * corelow.c (core_xfer_partial): Likewise.
12669 * ctf.c (ctf_xfer_partial): Likewise.
12670 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12672 (darwin_xfer_partial): Likewise.
12673 * exec.c (section_table_xfer_memory_partial): Likewise. All
12675 (exec_xfer_partial): Likewise.
12676 * exec.h (section_table_xfer_memory_partial): Update
12678 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12680 (gnu_xfer_partial): Likewise.
12681 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12682 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12683 (ia64_hpux_xfer_solib_got): Likewise.
12684 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12685 type of 'partial_len' to ULONGEST.
12686 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12687 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12688 (linux_nat_xfer_partial): Likewise.
12689 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12690 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12691 * monitor.c (monitor_xfer_memory): Likewise.
12692 (monitor_xfer_partial): Likewise.
12693 * procfs.c (procfs_xfer_partial): Likewise.
12694 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12695 * record-full.c (record_full_xfer_partial): Likewise.
12696 (record_full_core_xfer_partial): Likewise.
12697 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12698 (gdbsim_xfer_partial): Likewise.
12699 * remote.c (remote_write_bytes_aux): Likewise. All callers
12701 (remote_write_bytes, remote_read_bytes): Likewise. All
12703 (remote_flash_erase): Likewise. All callers updated.
12704 (remote_write_qxfer): Likewise. All callers updated.
12705 (remote_read_qxfer): Likewise. All callers updated.
12706 (remote_xfer_partial): Likewise.
12707 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12708 (rs6000_xfer_shared_libraries): Likewise.
12709 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12710 (sol_thread_xfer_partial): Likewise.
12711 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12712 (sparc_xfer_partial): Likewise.
12713 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12715 (spu_xfer_partial): Likewise.
12716 * spu-multiarch.c (spu_xfer_partial): Likewise.
12717 * tracepoint.c (tfile_xfer_partial): Likewise.
12718 * windows-nat.c (windows_xfer_memory): Likewise.
12719 (windows_xfer_shared_libraries): Likewise.
12720 (windows_xfer_partial): Likewise.
12721 * valprint.c: Replace 'target_xfer_error' with
12722 'target_xfer_status' in comments.
12724 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12726 Checked in by Joel Brobecker <brobecker@adacore.com>.
12727 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12729 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12731 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12732 function parameters.
12734 2014-02-10 Will Newton <will.newton@linaro.org>
12736 * elfread.c (elf_rel_plt_read): Look for a .got section if
12737 looking up .got.plt fails.
12738 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12739 on address passed to elf_gnu_ifunc_record_cache.
12740 (elf_gnu_ifunc_resolve_addr): Likewise.
12741 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12743 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12745 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12746 (X_RETTURN): New macro.
12747 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12749 * sparc64-tdep.c (sparc64_init_abi): Hook
12750 sparc_in_function_epilogue_p.
12752 2014-02-10 Gary Benson <gbenson@redhat.com>
12754 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12755 Rename name_matcher to symbol_matcher.
12757 2014-02-10 Gary Benson <gbenson@redhat.com>
12759 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12760 Use expand_symtabs_file_matcher_ftype and
12761 expand_symtabs_symbol_matcher_ftype.
12763 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12765 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12766 (struct ada_symbol_cache): New.
12767 (ada_free_symbol_cache): Forward declare.
12768 (struct ada_pspace_data): New.
12769 (ada_pspace_data_handle): New static global.
12770 (get_ada_pspace_data, ada_pspace_data_cleanup)
12771 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12772 (cache_space, cache): Delete, now folded inside struct
12774 (ada_get_symbol_cache): New function.
12775 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12777 (_initialize_ada_language): Remove initialization of cache_space.
12778 Move call to observer_attach_inferior_exit up, grouping it
12779 with the other observer registrations inside this function.
12780 Rename command to be more general. Add call to
12781 register_program_space_data_with_cleanup.
12783 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12785 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12786 ada_new_objfile_observer.
12787 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12788 (_initialize_tasks): Update uses of ada_new_objfile_observer
12789 and ada_tasks_normal_stop_observer.
12791 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12793 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12794 returned by the 'Length attribute to integer.
12796 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12798 * ada-lang.c (_initialize_ada_language): Initialize
12799 cache_space obstack.
12801 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12803 * ada-lang.c (HASH_SIZE): New macro.
12804 (struct cache_entry): New type.
12805 (cache_space, cache): New static globals.
12806 (ada_clear_symbol_cache, find_entry): New functions.
12807 (lookup_cached_symbol, cache_symbol): Implement.
12808 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12809 (_initialize_ada_language): Attach ada_new_objfile_observer
12810 and ada_free_objfile_observer.
12812 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12814 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12815 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12816 struct block * parameter.
12817 (ada_lookup_symbol_list_worker): Constify local variable "block".
12818 Remove cast which is no longer necessary.
12820 2014-02-10 Doug Evans <xdje42@gmail.com>
12822 Add Guile as an extension language.
12823 * NEWS: Mention Guile scripting.
12824 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12825 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12826 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12827 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12828 (CLIBS): Add GUILE_LIBS.
12829 (install-guile): New rule.
12830 (guile.o): New rule.
12831 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12832 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12833 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12834 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12835 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12836 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12837 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12838 * configure.ac: New option --with-guile.
12839 * configure: Regenerate.
12840 * config.in: Regenerate.
12841 * auto-load.c: Remove #include "python/python.h". Add #include
12842 "gdb/section-scripts.h".
12843 (source_section_scripts): Handle Guile scripts.
12844 (_initialize_auto_load): Add name of Guile objfile script to
12845 scripts-directory help text.
12846 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12847 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12848 (struct breakpoint): New member scm_bp_object.
12849 * defs.h (enum command_control_type): New value guile_control.
12850 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12852 (show_user): Update comment.
12853 (_initialize_cli_cmds): Update help text for "show user". Update help
12854 text for max-user-call-depth.
12855 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12857 (multi_line_command_p): Add guile_control.
12858 (print_command_lines): Handle guile_control.
12859 (execute_control_command, recurse_read_control_structure): Ditto.
12860 (process_next_line): Recognize "guile" commands.
12861 * disasm.c (gdb_disassemble_info): Make non-static.
12862 * disasm.h: #include "dis-asm.h".
12863 (struct gdbarch): Add forward decl.
12864 (gdb_disassemble_info): Declare.
12865 * extension.c: #include "guile/guile.h".
12866 (extension_languages): Add guile.
12867 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12868 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12869 * gdbtypes.c (get_unsigned_type_max): New function.
12870 (get_signed_type_minmax): New function.
12871 * gdbtypes.h (get_unsigned_type_max): Declare.
12872 (get_signed_type_minmax): Declare.
12873 * guile/README: New file.
12874 * guile/guile-internal.h: New file.
12875 * guile/guile.c: New file.
12876 * guile/guile.h: New file.
12877 * guile/scm-arch.c: New file.
12878 * guile/scm-auto-load.c: New file.
12879 * guile/scm-block.c: New file.
12880 * guile/scm-breakpoint.c: New file.
12881 * guile/scm-disasm.c: New file.
12882 * guile/scm-exception.c: New file.
12883 * guile/scm-frame.c: New file.
12884 * guile/scm-gsmob.c: New file.
12885 * guile/scm-iterator.c: New file.
12886 * guile/scm-lazy-string.c: New file.
12887 * guile/scm-math.c: New file.
12888 * guile/scm-objfile.c: New file.
12889 * guile/scm-ports.c: New file.
12890 * guile/scm-pretty-print.c: New file.
12891 * guile/scm-safe-call.c: New file.
12892 * guile/scm-string.c: New file.
12893 * guile/scm-symbol.c: New file.
12894 * guile/scm-symtab.c: New file.
12895 * guile/scm-type.c: New file.
12896 * guile/scm-utils.c: New file.
12897 * guile/scm-value.c: New file.
12898 * guile/lib/gdb.scm: New file.
12899 * guile/lib/gdb/boot.scm: New file.
12900 * guile/lib/gdb/experimental.scm: New file.
12901 * guile/lib/gdb/init.scm: New file.
12902 * guile/lib/gdb/iterator.scm: New file.
12903 * guile/lib/gdb/printing.scm: New file.
12904 * guile/lib/gdb/types.scm: New file.
12905 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12906 (VPATH): Add $(GUILE_SRCDIR).
12907 (GUILE_DIR): New variable.
12908 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12909 (all): Add stamp-guile dependency.
12910 (stamp-guile): New rule.
12911 (clean-guile, install-guile, uninstall-guile): New rules.
12912 (install-only): Add install-guile dependency.
12913 (uninstall): Add uninstall-guile dependency.
12914 (clean): Add clean-guile dependency.
12916 2014-02-09 Doug Evans <xdje42@gmail.com>
12918 Revert this patch (which I approved, mea culpa).
12920 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12922 * Makefile.in (all-lib): Remove.
12923 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12925 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12927 Fix Python stack corruption.
12928 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12931 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12933 * Makefile.in (all-lib): Remove.
12934 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12936 2014-02-07 Doug Evans <dje@google.com>
12938 * extension-priv.h (extension_language_script_ops): Add comment.
12939 (extension_language_ops): Add comment.
12940 (active_ext_lang_state): Fix typo in comment.
12942 2014-02-07 Pedro Alves <palves@redhat.com>
12944 PR breakpoints/16292
12945 * infrun.c (handle_signal_stop) <signal arrives while stepping
12946 over a breakpoint>: Switch back to the stepping thread.
12948 2014-02-07 Yao Qi <yao@codesourcery.com>
12950 * target.c (target_xfer_partial): Return zero if LEN is zero.
12952 2014-02-07 Yao Qi <yao@codesourcery.com>
12954 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12955 (ld_so_xfer_auxv): Likewise.
12956 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12957 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12958 * corelow.c (core_xfer_partial): Likewise.
12959 * ctf.c (ctf_xfer_partial): Likewise.
12960 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12961 (darwin_xfer_partial): Likewise.
12962 * exec.c (exec_xfer_partial): Likewise.
12963 * gnu-nat.c (gnu_xfer_partial): Likewise.
12964 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12965 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12966 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12967 * linux-nat.c (linux_xfer_siginfo): Likewise.
12968 (linux_proc_xfer_spu): Likewise.
12969 * procfs.c (procfs_xfer_partial): Likewise.
12970 * record-full.c (record_full_xfer_partial): Likewise.
12971 (record_full_core_xfer_partial): Likewise.
12972 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12973 * remote.c (remote_write_qxfer): Likewise.
12974 (remote_write_qxfer, remote_read_qxfer): Likewise.
12975 (remote_xfer_partial): Likewise.
12976 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12977 (rs6000_xfer_shared_libraries): Likewise.
12978 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12979 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12980 (spu_xfer_partial): Likewise.
12981 * target.c (memory_xfer_partial_1): Likewise.
12982 * tracepoint.c (tfile_xfer_partial): Likewise.
12983 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12984 (windows_xfer_partial): Likewise.
12986 2014-02-07 Yao Qi <yao@codesourcery.com>
12988 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12990 (core_xfer_shared_libraries_aix): Likewise.
12991 * gdbarch.c, gdbarch.h: Regenerated.
12992 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12993 ULONGEST. Change 'len_avail' type to ULONGEST.
12994 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12995 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12997 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12999 2014-02-07 Yao Qi <yao@codesourcery.com>
13001 * corefile.c (memory_error): Get 'exception' from ERR and pass
13002 'exception' to throw_error.
13004 2014-02-06 Doug Evans <xdje42@gmail.com>
13006 * configure.ac (libpython checking): Remove all but python.o from
13007 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13008 * configure: Regenerate.
13010 * Makefile.in (SFILES): Add extension.c.
13011 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13012 (COMMON_OBS): Add extension.o.
13013 * extension.h: New file.
13014 * extension-priv.h: New file.
13015 * extension.c: New file.
13017 * python/python-internal.h: #include "extension.h".
13018 (gdbpy_auto_load_enabled): Declare.
13019 (gdbpy_apply_val_pretty_printer): Declare.
13020 (gdbpy_apply_frame_filter): Declare.
13021 (gdbpy_preserve_values): Declare.
13022 (gdbpy_breakpoint_cond_says_stop): Declare.
13023 (gdbpy_breakpoint_has_cond): Declare.
13024 (void source_python_script_for_objfile): Delete.
13025 * python/python.c: #include "extension-priv.h".
13026 Delete inclusion of "observer.h".
13027 (extension_language_python): Moved here and renamed from
13028 script_language_python in py-auto-load.c.
13029 Redefined to be of type extension_language_defn.
13030 (python_extension_script_ops): New global.
13031 (python_extension_ops): New global.
13032 (struct python_env): New member previous_active.
13033 (restore_python_env): Call restore_active_ext_lang.
13034 (ensure_python_env): Call set_active_ext_lang.
13035 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13037 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13039 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13041 (gdbpy_eval_from_control_command): Renamed from
13042 eval_python_from_control_command, made static. New arg extlang.
13043 (gdbpy_source_script) Renamed from source_python_script, made static.
13045 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13046 result to int. New arg extlang.
13047 (gdbpy_source_objfile_script): Renamed from
13048 source_python_script_for_objfile, made static. New arg extlang.
13049 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13050 static. New args extlang, extlang_printers. Change result type to
13052 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13053 static. New arg extlang. Rename arg printers to extlang_printers
13054 and change type to ext_lang_type_printers *.
13055 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13056 static. Replace argument arg with extlang, extlang_printers.
13057 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13058 (!HAVE_PYTHON, source_python_script): Delete.
13059 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13060 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13061 (!HAVE_PYTHON, start_type_printers): Delete.
13062 (!HAVE_PYTHON, apply_type_printers): Delete.
13063 (!HAVE_PYTHON, free_type_printers): Delete.
13064 (_initialize_python): Delete call to observer_attach_before_prompt.
13065 (finalize_python): Set/restore active extension language.
13066 (gdbpy_finish_initialization) Renamed from
13067 finish_python_initialization, made static. New arg extlang.
13068 (gdbpy_initialized): New function.
13069 * python/python.h: #include "extension.h". Delete #include
13070 "value.h", "mi/mi-cmds.h".
13071 (extension_language_python): Declare.
13072 (GDBPY_AUTO_FILE_NAME): Delete.
13073 (enum py_bt_status): Moved to extension.h and renamed to
13074 ext_lang_bt_status.
13075 (enum frame_filter_flags): Moved to extension.h.
13076 (enum py_frame_args): Moved to extension.h and renamed to
13077 ext_lang_frame_args.
13078 (finish_python_initialization): Delete.
13079 (eval_python_from_control_command): Delete.
13080 (source_python_script): Delete.
13081 (apply_val_pretty_printer): Delete.
13082 (apply_frame_filter): Delete.
13083 (preserve_python_values): Delete.
13084 (gdbpy_script_language_defn): Delete.
13085 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13086 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13088 * auto-load.c: #include "extension.h".
13089 (GDB_AUTO_FILE_NAME): Delete.
13090 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13091 (script_language_gdb): Delete, moved to extension.c and renamed to
13092 extension_language_gdb.
13093 (source_gdb_script_for_objfile): Delete.
13094 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13095 (loaded_script): Change type of language member to
13096 struct extension_language_defn *.
13097 (init_loaded_scripts_info): Initialize
13098 unsupported_script_warning_printed.
13099 (maybe_add_script): Make static. Change type of language arg to
13100 struct extension_language_defn *.
13101 (clear_section_scripts): Reset unsupported_script_warning_printed.
13102 (auto_load_objfile_script_1): Rewrite to use extension language API.
13103 (auto_load_objfile_script): Make public. Remove support-compiled-in
13104 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13105 (source_section_scripts): Rewrite to use extension language API.
13106 (load_auto_scripts_for_objfile): Rewrite to use
13107 auto_load_scripts_for_objfile.
13108 (collect_matching_scripts_data): Change type of language member to
13109 struct extension_language_defn *.
13110 (auto_load_info_scripts): Change type of language arg to
13111 struct extension_language_defn *.
13112 (unsupported_script_warning_print): New function.
13113 (script_not_found_warning_print): Make static.
13114 (_initialize_auto_load): Rewrite construction of scripts-directory
13116 * auto-load.h (struct objfile): Add forward decl.
13117 (struct script_language): Delete.
13118 (struct auto_load_pspace_info): Add forward decl.
13119 (struct extension_language_defn): Add forward decl.
13120 (maybe_add_script): Delete.
13121 (auto_load_objfile_script): Declare.
13122 (script_not_found_warning_print): Delete.
13123 (auto_load_info_scripts): Update prototype.
13124 (auto_load_gdb_scripts_enabled): Declare.
13125 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13126 auto_load_python_scripts_enabled and made public.
13127 (script_language_python): Delete, moved to python.c.
13128 (gdbpy_script_language_defn): Delete.
13129 (info_auto_load_python_scripts): Update to use
13130 extension_language_python.
13132 * breakpoint.c (condition_command): Replace call to
13133 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13134 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13135 with call to breakpoint_ext_lang_cond_says_stop.
13136 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13137 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13138 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13139 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13141 (local_setattro): Print name of extension language with existing
13144 * valprint.c (val_print, value_print): Update to call
13145 apply_ext_lang_val_pretty_printer.
13146 * cp-valprint.c (cp_print_value): Update call to
13147 apply_ext_lang_val_pretty_printer.
13148 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13149 (gdbpy_apply_val_pretty_printer): Renamed from
13150 apply_val_pretty_printer. New arg extlang.
13151 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13153 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13154 extension language API.
13155 * cli/cli-script.c (execute_control_command): Update to call
13156 eval_ext_lang_from_control_command.
13158 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13159 enum ext_lang_bt_status values. Update call to
13160 apply_ext_lang_frame_filter.
13161 (mi_cmd_stack_list_locals): Ditto.
13162 (mi_cmd_stack_list_args): Ditto.
13163 (mi_cmd_stack_list_variables): Ditto.
13164 * mi/mi-main.c: Delete #include "python/python-internal.h".
13165 Add #include "extension.h".
13166 (mi_cmd_list_features): Replace reference to python internal variable
13167 gdb_python_initialized with call to ext_lang_initialized_p.
13169 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13170 Update to use enum ext_lang_frame_args. Update to call
13171 apply_ext_lang_frame_filter.
13172 * python/py-framefilter.c (extract_sym): Update to use enum
13173 ext_lang_bt_status.
13174 (extract_value, py_print_type, py_print_value): Ditto.
13175 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13176 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13177 (py_print_frame): Ditto.
13178 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13179 New arg extlang. Update to use enum ext_lang_bt_status.
13181 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13182 finish_python_initialization. Replace with call to
13183 finish_ext_lang_initialization.
13185 * typeprint.c (do_free_global_table): Update to call
13186 free_ext_lang_type_printers.
13187 (create_global_typedef_table): Update to call
13188 start_ext_lang_type_printers.
13189 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13190 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13191 (type_print_options): Change type of global_printers from "void *"
13192 to "struct ext_lang_type_printers *".
13194 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13195 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13196 (gdbpy_preserve_values): Renamed from preserve_python_values.
13198 (!HAVE_PYTHON, preserve_python_values): Delete.
13200 * utils.c (quit_flag): Delete, moved to extension.c.
13201 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13204 * eval.c: Delete #include "python/python.h".
13205 * main.c: Delete #include "python/python.h".
13207 * defs.h: Update comment.
13209 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13213 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13215 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13218 2014-02-05 Yao Qi <yao@codesourcery.com>
13220 * remote.c (remote_pass_signals): Remove local 'buf' and use
13222 (remote_program_signals): Likewise.
13224 2014-02-05 Yao Qi <yao@codesourcery.com>
13226 * ctf.c: Include "inferior.h" and "gdbthread.h".
13227 (CTF_PID): A new macro.
13228 (ctf_open): Call inferior_appeared and add_thread_silent.
13229 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13230 (ctf_thread_alive): New function.
13231 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13233 2014-02-05 Yao Qi <yao@codesourcery.com>
13237 2013-05-24 Yao Qi <yao@codesourcery.com>
13239 * tracepoint.c (TFILE_PID): Remove.
13240 (tfile_open): Don't add thread and inferior.
13241 (tfile_close): Don't set 'inferior_ptid'. Don't call
13242 exit_inferior_silent.
13243 (tfile_thread_alive): Remove.
13244 (init_tfile_ops): Don't set field 'to_thread_alive' of
13247 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13249 * remote.c (remote_start_remote): Call remote_check_symbols even
13250 if only symbol-file (not file) has been given.
13252 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13254 * gdbarch.sh (skip_entrypoint): New callback.
13255 * gdbarch.c, gdbarch.h: Regenerate.
13256 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13257 * infrun.c (fill_in_stop_func): Likewise.
13258 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13259 (ppc_elfv2_elf_make_msymbol_special): New function.
13260 (ppc_elfv2_skip_entrypoint): Likewise.
13261 (ppc_linux_init_abi): Install them for ELFv2.
13263 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13265 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13266 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13267 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13268 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13269 structures returned in GPRs.
13271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13273 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13274 offset to the stack parameter list for the ELFv2 ABI.
13276 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13278 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13279 set_gdbarch_convert_from_func_ptr_addr and
13280 set_gdbarch_elf_make_msymbol_special for ELFv1.
13281 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13282 function descriptors on ELFv1.
13283 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13284 set up r12 at function entry.
13286 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13288 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13289 (struct gdbarch_tdep): New member elf_abi.
13291 * rs6000-tdep.c: Include "elf/ppc64.h".
13292 (rs6000_gdbarch_init): Detect ELF ABI version.
13294 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13296 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13297 within a register pair holding a DFP 128-bit value on little-endian.
13298 (ppc64_sysv_abi_return_value_base): Likewise.
13299 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13300 (dfp_pseudo_register_write): Likewise.
13302 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13304 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13305 offset on little-endian when passing _Decimal32.
13306 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13308 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13310 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13311 of the overlapped FP register within the VSX register on little-
13313 (efpr_pseudo_register_write): Likewise.
13315 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13317 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13318 offset on little-endian when passing small structures.
13320 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13322 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13323 (struct ppc64_sysv_argpos): New data structure.
13324 (ppc64_sysv_abi_push_float): Remove.
13325 (ppc64_sysv_abi_push_val): New function.
13326 (ppc64_sysv_abi_push_integer): Likewise.
13327 (ppc64_sysv_abi_push_freg): Likewise.
13328 (ppc64_sysv_abi_push_vreg): Likewise.
13329 (ppc64_sysv_abi_push_param): Likewise.
13330 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13331 (ppc64_sysv_abi_return_value_base): New function.
13332 (ppc64_sysv_abi_return_value): Refactor to use it.
13334 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13336 * NEWS: Document new target powerpc64le-*-linux*.
13338 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13340 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13341 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13343 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13344 register set used in ELF core dumps. Add floating-point register set.
13346 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13348 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13349 dwarf2_to_gdb[] table using symbolic constants. Adjust
13350 penultimate entry from number representing the PC register
13351 to symbolic constant representing the MDR register. Add
13352 constant for the PC register to the end of the table.
13354 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13356 * bsd-kvm.c: Include <sys/param.h>
13358 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13360 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13362 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13364 * ada-lang.h (clear_ada_sym_cache): Delete.
13366 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13368 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13370 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13372 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13373 the sigreturn register save area only if the syscall is
13376 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13378 * valops.c (value_slice): Minor reformatting.
13380 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13382 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13384 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13386 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13387 New static globals.
13388 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13389 (ada_ignore_descriptive_types_p): New static global.
13390 (find_parallel_type_by_descriptive_type): Return immediately
13391 if ada_ignore_descriptive_types_p is set.
13392 (_initialize_ada_language): Register new commands "maintenance
13393 set ada", "maintenance show ada", "maintenance set ada
13394 ignore-descriptive-types" and "maintenance show ada
13395 ignore-descriptive-types".
13396 * NEWS: Add entry for new "maint ada set/show
13397 ignore-descriptive-types" commands.
13399 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13401 * record-btrace.c (record_btrace_close): Call btrace_teardown
13404 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13406 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13409 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13411 * ada-typeprint (type_is_full_subrange_of_target_type):
13413 (print_range): Add parameter bounds_prefered_p. If not set,
13414 try printing range types using the name of their base type.
13415 (print_range_type): Add parameter bounds_prefered_p.
13416 Use it in call to print_range.
13417 (print_array_type, ada_print_type): Update calls to print_range
13418 and print_range_type.
13420 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13422 * ada-typeprint.c (print_array_type, print_choices, print_range)
13423 (print_range_bound, print_dynamic_range_bound, print_range_type):
13424 Remove declaration.
13426 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13428 * ada-typeprint.c (print_range): Add missing empty line
13429 after local declaration.
13431 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13433 * ada-valprint.c (print_optional_low_bound): Get index_type's
13434 target type for as long as it is a TYPE_CODE_RANGE.
13436 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13438 * procfs.c (procfs_make_note_section): Remove assertion and
13439 associated comment.
13441 2014-01-24 Yao Qi <yao@codesourcery.com>
13443 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13444 * corelow.c (get_core_siginfo): Likewise.
13446 2014-01-24 Yao Qi <yao@codesourcery.com>
13448 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13449 ULONGEST. Don't check 'len' is negative.
13450 (remote_write_bytes): Change type of 'len' to ULONGEST.
13452 2014-01-23 Tom Tromey <tromey@redhat.com>
13455 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13456 Handle exception from frame.block.
13457 (FrameVars.fetch_frame_locals): Likewise.
13459 2014-01-23 Tom Tromey <tromey@redhat.com>
13462 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13463 on a NULL pointer. Move "goto error" to correct place.
13465 2014-01-23 Tom Tromey <tromey@redhat.com>
13468 * python/py-framefilter.c (apply_frame_filter): Call
13469 ensure_python_env after computing gdbarch.
13471 2014-01-23 Yao Qi <yao@codesourcery.com>
13473 * target.c (raw_memory_xfer_partial): Change argument type
13474 from void * to gdb_byte *.
13475 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13477 2014-01-22 Doug Evans <dje@google.com>
13479 New gdbserver option --debug-format=timestamp.
13480 * NEWS: Mention it.
13482 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13484 * syscalls/s390x-linux.xml: New file.
13485 * syscalls/s390-linux.xml: New file.
13486 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13487 (XML_SYSCALL_FILENAME_S390X): Likewise.
13488 (op_svc): New enum value for SVC opcode.
13489 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13490 (s390_linux_get_syscall_number): New function.
13491 (s390_gdbarch_init): Register '*get_syscall_number' and the
13492 syscall xml file name.
13493 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13494 "s390-linux.xml" and "s390x-linux.xml".
13495 * NEWS: Announce new feature.
13497 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13499 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13501 2014-01-22 Pedro Alves <palves@redhat.com>
13503 * xtensa-config.c: Include defs.h.
13505 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13507 * common/common-utils.h: Add "ARI:" comment beside __func__
13510 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13512 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13513 documentation a bit.
13515 2014-01-21 Roland McGrath <mcgrathr@google.com>
13517 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13518 * configure: Regenerate.
13519 * aclocal.m4: Regenerate.
13520 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13521 New substituted variables.
13522 (install-strip): New target.
13523 (INSTALL_SCRIPT): New substituted variable.
13524 (FLAGS_TO_PASS): Add it.
13525 (install-only): Use $(INSTALL_SCRIPT) rather than
13526 $(INSTALL_PROGRAM) for gcore.
13528 2014-01-20 Tom Tromey <tromey@redhat.com>
13530 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13533 2014-01-20 Tom Tromey <tromey@redhat.com>
13535 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13536 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13537 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13538 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13539 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13540 (struct cmd_list_element) <flags>: Remove.
13541 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13542 doc_allocated>: New fields.
13543 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13545 * maint.c (maintenance_do_deprecate): Update.
13546 * top.c (execute_command): Update.
13548 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13550 * xtensa-linux-nat.c: Include asm/ptrace.h.
13552 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13554 * Makefile.in (SFILES): Add d-support.c.
13555 (COMMON_OBS): Add d-support.o.
13556 * d-lang.h (d_parse_symbol): Add comment, now defined in
13558 * d-lang.c (parse_call_convention)
13559 (parse_attributes, parse_function_types)
13560 (parse_function_args, parse_type, parse_identifier)
13561 (call_convention_p, d_parse_symbol): Move functions to ...
13562 * d-support.c: ... New file.
13564 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13566 * d-lang.h (d_parse_symbol): Add declaration.
13567 * d-lang.c (extract_identifiers)
13568 (extract_type_info): Remove functions.
13569 (parse_call_convention, parse_attributes)
13570 (parse_function_types, parse_function_args)
13571 (parse_type, parse_identifier, call_convention_p)
13572 (d_parse_symbol): New functions.
13573 (d_demangle): Use d_parse_symbol to demangle D symbols.
13575 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13577 * d-lang.h (struct builtin_d_type): New data type.
13578 (builtin_d_type): Add declaration.
13579 * d-lang.c (d_language_arch_info, build_d_types)
13580 (builtin_d_type): New functions.
13581 (enum d_primitive_types): New data type.
13582 (d_language_defn): Change c_language_arch_info to
13583 d_language_arch_info.
13584 (d_type_data): New static variable.
13585 (_initialize_d_language): Initialize d_type_data.
13587 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13589 * d-lang.h (d_main_name): Add declaration.
13590 * d-lang.c (d_main_name): New function.
13591 * symtab.c (find_main_name): Add call to d_main_name.
13593 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13595 * d-lang.c (d_language_defn): Change macro_expansion_c to
13596 macro_expansion_no.
13598 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13600 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13602 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13604 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13605 gdb_exception" declaration.
13606 * remote.c (getpkt_or_notif_sane): Likewise.
13608 2014-01-17 Doug Evans <dje@google.com>
13610 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13611 function, contents of dirnames_to_char_ptr_vec_append moved here.
13612 (delim_string_to_char_ptr_vec): New function.
13613 (dirnames_to_char_ptr_vec_append): Rewrite.
13614 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13616 2014-01-17 Doug Evans <dje@google.com>
13618 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13620 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13621 #include "common-utils.h".
13622 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13623 * common/vec.h (VEC_ASSERT_PASS): Update.
13624 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13625 (MACH_CHECK_ERROR): Update.
13627 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13629 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13631 * gdbarch.h: Regenerate.
13633 2014-01-16 Tom Tromey <tromey@redhat.com>
13635 * value.c (struct value) <regnum>: Move earlier.
13637 2014-01-16 Tom Tromey <tromey@redhat.com>
13639 * remote.c (extended_remote_create_inferior): Rename from
13640 extended_remote_create_inferior_1. Add "ops" argument. Remove
13641 old implementation.
13643 2014-01-16 Pedro Alves <palves@redhat.com>
13645 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13646 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13649 2014-01-16 Doug Evans <dje@google.com>
13651 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13653 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13655 * btrace.h (btrace_thread_flag): New.
13656 (struct btrace_thread_info) <flags>: New.
13657 * record-btrace.c (record_btrace_resume_thread)
13658 (record_btrace_find_thread_to_move, btrace_step_no_history)
13659 (btrace_step_stopped, record_btrace_start_replaying)
13660 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13661 (record_btrace_find_resume_thread): New.
13662 (record_btrace_resume, record_btrace_wait): Extend.
13663 (record_btrace_can_execute_reverse): New.
13664 (record_btrace_open): Fail in non-stop mode.
13665 (record_btrace_set_replay): Split into this, ...
13666 (record_btrace_stop_replaying): ... this, ...
13667 (record_btrace_clear_histories): ... and this.
13668 (init_record_btrace_ops): Init to_can_execute_reverse.
13669 * NEWS: Announce it.
13671 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13673 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13674 (forward_target_decr_pc_after_break)
13675 (target_decr_pc_after_break): New.
13676 * target.c (forward_target_decr_pc_after_break)
13677 (target_decr_pc_after_break): New.
13678 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13679 instead of gdbarch_decr_pc_after_break.
13680 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13681 instead of gdbarch_decr_pc_after_break.
13682 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13683 instead of gdbarch_decr_pc_after_break.
13684 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13685 instead of gdbarch_decr_pc_after_break.
13686 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13687 instead of gdbarch_decr_pc_after_break.
13688 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13689 instead of gdbarch_decr_pc_after_break.
13691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13693 * btrace.c: Include regcache.h.
13694 (btrace_add_pc): New.
13695 (btrace_enable): Call btrace_add_pc.
13696 (btrace_is_empty): New.
13697 * btrace.h (btrace_is_empty): New.
13698 * record-btrace.c (require_btrace, record_btrace_info): Call
13701 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13703 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13704 Support delta reads.
13705 (linux_disable_btrace): Change return type.
13706 * common/linux-btrace.h (linux_read_btrace): Change parameters
13707 and return type to allow error reporting. Update users.
13708 (linux_disable_btrace): Change return type. Update users.
13709 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13711 (btrace_error): New.
13712 (btrace_block) <begin>: Comment on BEGIN == 0.
13713 * btrace.c (btrace_compute_ftrace): Start from the end of
13715 (btrace_stitch_trace, btrace_clear_history): New.
13716 (btrace_fetch): Read delta trace, return if replaying.
13717 (btrace_clear): Move clear history code to btrace_clear_history.
13718 (parse_xml_btrace): Throw an error if parsing failed.
13719 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13720 and return type to allow error reporting.
13721 (target_read_btrace): Change parameters and return type to allow
13723 * target.c (target_read_btrace): Update.
13724 * remote.c (remote_read_btrace): Support delta reads. Pass
13726 * NEWS: Announce it.
13728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13730 * record.h (record_btrace_frame_unwind)
13731 (record_btrace_tailcall_frame_unwind): New declarations.
13732 * dwarf2-frame: Include record.h
13733 (dwarf2_frame_cfa): Throw an error for btrace frames.
13734 * record-btrace.c: Include hashtab.h.
13735 (btrace_get_bfun_name): New.
13736 (btrace_call_history): Call btrace_get_bfun_name.
13737 (struct btrace_frame_cache): New.
13739 (bfcache_hash, bfcache_eq, bfcache_new): New.
13740 (btrace_get_frame_function): New.
13741 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13742 (record_btrace_frame_this_id): Compute own id.
13743 (record_btrace_frame_prev_register): Provide PC, throw_error
13744 for all other registers.
13745 (record_btrace_frame_sniffer): Detect btrace frames.
13746 (record_btrace_tailcall_frame_sniffer): New.
13747 (record_btrace_frame_dealloc_cache): New.
13748 (record_btrace_frame_unwind): Add new functions.
13749 (record_btrace_tailcall_frame_unwind): New.
13750 (_initialize_record_btrace): Allocate cache.
13751 * btrace.c (btrace_clear): Call reinit_frame_cache.
13752 * NEWS: Announce it.
13754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13756 * record-btrace.c (record_btrace_set_replay)
13757 (record_btrace_goto_begin, record_btrace_goto_end)
13758 (record_btrace_goto): New.
13759 (init_record_btrace_ops): Initialize them.
13760 * NEWS: Announce it.
13762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13764 * record-btrace.c (record_btrace_find_new_threads)
13765 (record_btrace_thread_alive): New.
13766 (init_record_btrace_ops): Initialize to_find_new_threads and
13769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13771 * record-btrace.c (record_btrace_resume): New.
13772 (record_btrace_wait): New.
13773 (init_record_btrace_ops): Initialize to_wait and to_resume.
13775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13777 * record-btrace.c (record_btrace_xfer_partial)
13778 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13779 (record_btrace_allow_memory_access): New.
13780 (init_record_btrace_ops): Initialize new methods.
13781 * target.c (raw_memory_xfer_partial): Bail out if target reports
13782 that this memory is not available.
13784 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13786 * target.h (target_ops) <to_insert_breakpoint>
13787 <to_remove_breakpoint>: Add target_ops parameter.
13788 (forward_target_insert_breakpoint): New.
13789 (forward_target_remove_breakpoint): New.
13790 (memory_remove_breakpoint, memory_insert_breakpoint):
13791 Add target_ops parameter.
13792 * target.c (target_insert_breakpoint): Split into this and ...
13793 (forward_target_insert_breakpoint): ... this.
13794 (target_remove_breakpoint): Split into this and ...
13795 (forward_target_remove_breakpoint): ... this.
13796 (debug_to_insert_breakpoint): Add target_ops parameter.
13797 Call forward_target_insert_breakpoint.
13798 (debug_to_remove_breakpoint): Add target_ops parameter.
13799 Call forward_target_remove_breakpoint.
13800 (update_current_target): Do not inherit or default to_insert_breakpoint
13801 and to_remove_breakpoint.
13802 * corelow.c (ignore): Add target_ops parameter.
13803 * exec.c (ignore): Add target_ops parameter.
13804 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13805 Add target_ops parameter.
13806 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13807 Add target_ops parameter.
13808 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13809 Add target_ops parameter.
13810 * record-full.c (record_full_beneath_to_insert_breakpoint)
13811 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13812 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13813 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13814 (record_full_core_remove_breakpoint): Add target_ops parameter.
13816 (record_full_beneath_to_insert_breakpoint_ops)
13817 (record_full_beneath_to_remove_breakpoint_ops)
13818 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13819 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13820 tmp_to_remove_breakpoint_ops,
13821 record_full_beneath_to_insert_breakpoint_ops, and
13822 record_full_beneath_to_remove_breakpoint_ops.
13823 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13824 (m32r_remove_breakpoint): Add target_ops parameter.
13825 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13826 Add target_ops parameter.
13827 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13828 Add target_ops parameter.
13830 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13831 Markus Metzger <markus.t.metzger@intel.com>
13833 * record-btrace.c: Include frame-unwind.h.
13834 (record_btrace_frame_unwind_stop_reason)
13835 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13836 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13838 (init_record_btrace_ops): Install it.
13840 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13842 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13845 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13847 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13850 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13852 * frame-unwind.c: Include target.h.
13853 (frame_unwind_try_unwinder): New function with code from ...
13854 (frame_unwind_find_by_frame): ... here. New variable
13855 unwinder_from_target, call also target_get_unwinder)
13856 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13857 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13858 * target.h (struct target_ops): New fields to_get_unwinder and
13859 to_get_tailcall_unwinder.
13860 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13862 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13864 * record-btrace.c (record_btrace_fetch_registers)
13865 (record_btrace_store_registers)
13866 (record_btrace_to_prepare_to_store): New.
13867 (init_record_btrace_ops): Add the above.
13869 2014-01-16 Tom Tromey <tromey@redhat.com>
13871 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13872 * target.h (struct target_ops) <to_prepare_to_store>: Add
13874 (target_prepare_to_store): Add argument.
13875 * target.c (debug_to_prepare_to_store): Add argument.
13876 (update_current_target): Update.
13877 * remote.c (remote_prepare_to_store): Add 'self' argument.
13878 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13879 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13880 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13881 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13883 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13884 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13885 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13886 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13887 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13891 * btrace.h (replay) <replay>: New.
13892 (btrace_is_replaying): New.
13893 * btrace.c (btrace_clear): Free replay iterator.
13894 (btrace_is_replaying): New.
13895 * record-btrace.c (record_btrace_is_replaying): New.
13896 (record_btrace_info): Print insn number if replaying.
13897 (record_btrace_insn_history): Start at replay position.
13898 (record_btrace_call_history): Start at replay position.
13899 (init_record_btrace_ops): Init to_record_is_replaying.
13901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13903 * record-btrace.c (record_btrace_insn_history_range): Include
13905 (record_btrace_insn_history_from): Adjust range.
13906 (record_btrace_call_history_range): Include
13908 (record_btrace_call_history_from): Adjust range.
13909 * NEWS: Announce changes.
13911 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13913 * record.h (enum record_print_flag)
13914 <record_print_indent_calls>: New.
13915 * record.c (get_call_history_modifiers): Recognize /c modifier.
13916 (_initialize_record): Document /c modifier.
13917 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13918 Reorder fields. Optionally indent the function name. Update
13920 * NEWS: Announce changes.
13922 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13924 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13926 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13928 * btrace.c (ftrace_new_function): Start counting at one.
13929 * record-btrace.c (record_btrace_info): Adjust number of calls
13931 * NEWS: Announce it.
13933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13935 * record-btrace.c (btrace_call_history_insn_range): Print
13936 insn range as [begin, end].
13938 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13940 * btrace.h (struct btrace_func_link): New.
13941 (enum btrace_function_flag): New.
13942 (struct btrace_inst): Rename to ...
13943 (struct btrace_insn): ...this. Update all users.
13944 (struct btrace_func) <ibegin, iend>: Remove.
13945 (struct btrace_func_link): New.
13946 (struct btrace_func): Rename to ...
13947 (struct btrace_function): ...this. Update all users.
13948 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13949 (number, level, flags>: New.
13950 (struct btrace_insn_iterator): Rename to ...
13951 (struct btrace_insn_history): ...this.
13953 (struct btrace_insn_iterator, btrace_call_iterator): New.
13954 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13955 (struct btrace_target_info) <begin, end, level>
13956 <insn_history, call_history>: New.
13957 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13958 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13959 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13960 (btrace_call_number, btrace_call_begin, btrace_call_end)
13961 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13962 (btrace_find_function_by_number, btrace_set_insn_history)
13963 (btrace_set_call_history): New.
13964 * btrace.c (btrace_init_insn_iterator)
13965 (btrace_init_func_iterator, compute_itrace): Remove.
13966 (ftrace_print_function_name, ftrace_print_filename)
13967 (ftrace_skip_file): Change
13968 parameter to const.
13969 (ftrace_init_func): Remove.
13970 (ftrace_debug): Use new btrace_function fields.
13971 (ftrace_function_switched): Also consider gaining and
13972 losing symbol information).
13973 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13974 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13975 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13977 (ftrace_new_function): Move. Remove debug print.
13978 (ftrace_update_lines, ftrace_update_insns): New.
13979 (ftrace_update_function): Check for call, ret, and jump.
13980 (compute_ftrace): Renamed to ...
13981 (btrace_compute_ftrace): ...this. Rewritten to compute call
13983 (btrace_fetch, btrace_clear): Updated.
13984 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13985 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13986 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13987 (btrace_call_number, btrace_call_begin, btrace_call_end)
13988 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13989 (btrace_find_function_by_number, btrace_set_insn_history)
13990 (btrace_set_call_history): New.
13991 * record-btrace.c (require_btrace): Use new btrace thread
13993 (record_btrace_info, btrace_insn_history)
13994 (record_btrace_insn_history, record_btrace_insn_history_range):
13995 Use new btrace thread info fields and new iterator.
13996 (btrace_func_history_src_line): Rename to ...
13997 (btrace_call_history_src_line): ...this. Use new btrace
13998 thread info fields.
13999 (btrace_func_history): Rename to ...
14000 (btrace_call_history): ...this. Use new btrace thread info
14001 fields and new iterator.
14002 (record_btrace_call_history, record_btrace_call_history_range):
14003 Use new btrace thread info fields and new iterator.
14005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14007 * frame.h (frame_id_build_unavailable_stack_special): New.
14008 * frame.c (frame_id_build_unavailable_stack_special): New.
14010 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14012 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14013 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14014 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14016 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14017 (i386_insn_is_jump, i386_jmp_p): New.
14018 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14019 insn_is_jump to gdbarch.
14020 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14021 * gdbarch.h: Regenerated.
14022 * gdbarch.c: Regenerated.
14023 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14024 (default_insn_is_jump): New.
14025 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14026 (default_insn_is_jump): New.
14028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14030 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14032 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14033 (btrace_read_type) <btrace_read_new>: Change to ...
14034 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14036 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14038 * common/linux-btrace.c (linux_read_btrace): Free trace from
14039 previous iteration.
14041 2014-01-15 Doug Evans <dje@google.com>
14043 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14046 2014-01-15 Tom Tromey <tromey@redhat.com>
14048 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14049 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14050 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14051 (set_objfile_main_name): New function.
14052 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14053 language_of_main>: New fields.
14054 (set_objfile_main_name): Declare.
14055 * symtab.c (find_main_name): Loop over objfiles to find the main
14057 (set_main_name): Now static.
14058 (get_main_info): Add comment.
14059 * symtab.h (set_main_name): Don't declare.
14061 2014-01-15 Tom Tromey <tromey@redhat.com>
14063 * symtab.c (main_progspace_key): New global.
14064 (struct main_info): New.
14065 (name_of_main, language_of_main): Remove.
14066 (get_main_info, main_info_cleanup): New function.
14067 (set_main_name, main_name, main_language): Use get_main_info.
14068 (_initialize_symtab): Initialize main_progspace_key.
14070 2014-01-15 Tom Tromey <tromey@redhat.com>
14072 * dbxread.c (process_one_symbol): Update.
14073 * dwarf2read.c (read_partial_die): Update.
14074 * symfile.c (set_initial_language): Call main_language.
14075 * symtab.c (language_of_main): Now static.
14076 (set_main_name): Add 'lang' parameter.
14077 (find_main_name): Update.
14078 (main_language): New function.
14079 (symtab_observer_executable_changed): Update.
14080 * symtab.h (set_main_name): Update.
14081 (language_of_main): Remove.
14082 (main_language): Declare.
14084 2014-01-15 Tom Tromey <tromey@redhat.com>
14086 * symfile.c (init_entry_point_info): Use new "initialized" field.
14088 * objfiles.h (struct entry_point) <initialized>: New field.
14089 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14090 (struct objfile) <ei>: ...here. Remove.
14091 * objfiles.c (entry_point_address_query): Update.
14093 2014-01-15 Tom Tromey <tromey@redhat.com>
14095 * objfiles.c (entry_point_address_query): Relocate entry point
14097 (objfile_relocate1): Do not relocate entry point address.
14098 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14099 <the_bfd_section_index>: New field.
14100 * symfile.c (init_entry_point_info): Find the entry point's
14103 2014-01-15 Tom Tromey <tromey@redhat.com>
14105 * solib-frv.c (enable_break): Use entry_point_address_query.
14107 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14109 * NEWS: Add note on improved process record-replay on
14110 arm*-linux* targets.
14112 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14114 * arm-tdep.c (enum arm_record_result): New enum.
14115 (arm_record_unsupported_insn): New function.
14116 (arm_record_coproc_data_proc): Removed.
14117 (thumb2_record_ld_st_multiple): New function.
14118 (thumb2_record_ld_st_dual_ex_tbb): New function.
14119 (thumb2_record_data_proc_sreg_mimm): New function.
14120 (thumb2_record_ps_dest_generic): New function.
14121 (thumb2_record_branch_misc_cntrl): New function.
14122 (thumb2_record_str_single_data): New function.
14123 (thumb2_record_ld_mem_hints): New function.
14124 (thumb2_record_ld_word): New function.
14125 (thumb2_record_lmul_lmla_div): New function.
14126 (thumb2_record_decode_insn_handler): New function.
14127 (decode_insn): Add thumb32 instruction handlers.
14129 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14131 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14132 (struct arm_linux_record_tdep): Declare.
14133 (arm_canonicalize_syscall): New function.
14134 (arm_all_but_pc_registers_record): New function.
14135 (arm_linux_syscall_record): New function.
14136 (arm_linux_init_abi): Add syscall recording constructs.
14137 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14138 decoding. (arm_record_coproc_data_proc): Update arm syscall
14140 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14141 <arm_syscall_record>: New field.
14142 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14145 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14147 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14148 register for push instruction recording.
14150 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14152 * arm-tdep.c (thumb_record_misc): Update to correct logical
14153 error while recording ldm, ldmia and pop instructions.
14155 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14157 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14159 2014-01-15 Pedro Alves <palves@redhat.com>
14161 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14162 (go32_resume, go32_fetch_registers, store_register)
14163 (go32_store_registers, go32_prepare_to_store)
14164 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14165 (go32_create_inferior, go32_can_run, go32_terminal_init)
14166 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14169 2014-01-15 Tom Tromey <tromey@redhat.com>
14171 * target.h (async_callback_ftype): New typedef.
14172 (struct target_ops) <to_async>: Use it.
14174 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14176 * python/py-value.c (get_field_type): Remove unnecessary curly
14177 braces for single-statement if block.
14179 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14181 * python/py-type.c (convert_field): Add missing empty line
14182 after declarations.
14184 2014-01-14 Doug Evans <dje@google.com>
14186 * symfile.h (expand_symtabs_matching): Renamed from
14187 expand_partial_symbol_names. Update prototype.
14188 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14189 * symfile.c (expand_symtabs_matching): Renamed from
14190 expand_partial_symbol_names. New args file_matcher, kind.
14191 Rename arg fun to symbol_matcher.
14192 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14193 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14194 ada_expand_partial_symbol_name.
14195 (ada_make_symbol_completion_list): Update to call
14196 expand_symtabs_matching.
14197 (ada_add_global_exceptions): Call expand_symtabs_matching.
14198 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14199 call map_symbol_filenames.
14200 * symtab.c (sources_info): Update to call map_symbol_filenames.
14201 (search_symbols): Call expand_symtabs_matching.
14202 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14203 (default_make_symbol_completion_list_break_on): Update to call
14204 expand_symtabs_matching.
14205 (make_source_files_completion_list): Update to call
14206 map_symbol_filenames.
14208 2014-01-14 Doug Evans <dje@google.com>
14210 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14211 (expand_symtabs_symbol_matcher_ftype): New typedef.
14212 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14213 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14214 * symfile.c (expand_partial_symbol_names): Update to use
14215 expand_symtabs_symbol_matcher_ftype.
14216 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14217 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14218 Arg name_matcher renamed to symbol_matcher.
14219 * psymtab.c (recursively_search_psymtabs): Update to use
14220 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14222 (expand_symtabs_matching_via_partial): Update to use
14223 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14224 Arg name_matcher renamed to symbol_matcher.
14226 2014-01-14 Doug Evans <dje@google.com>
14228 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14229 (map_partial_symbol_filenames): Ditto.
14230 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14231 (map_partial_symbol_filenames): Ditto.
14232 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14233 (map_partial_symbol_filenames): Ditto.
14234 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14235 (map_partial_symbol_filenames): Ditto.
14236 * symtab.c: Delete #include "psymtab.h".
14238 2014-01-14 Pedro Alves <palves@redhat.com>
14239 Tom Tromey <tromey@redhat.com>
14241 * infrun.c (use_displaced_stepping): Use find_record_target
14242 instead of RECORD_IS_USED.
14243 (adjust_pc_after_break): Use record_full_is_used instead of
14245 * record-btrace.c (record_btrace_open): Call record_preopen
14246 instead of checking RECORD_IS_USED.
14247 * record-full.c (record_full_shortname)
14248 (record_full_core_shortname): New globals.
14249 (record_full_is_used): New function.
14250 (find_full_open): Call record_preopen instead of checking
14252 (init_record_full_ops): Set the target's shortname to
14253 record_full_shortname.
14254 (init_record_full_core_ops): Set the target's shortname to
14255 record_full_core_shortname.
14256 * record-full.h (record_full_is_used): Declare.
14257 * record.c (find_record_target): Make extern.
14258 (record_preopen): New function.
14259 * record.h (RECORD_IS_USED): Delete macro.
14260 (find_record_target, record_preopen): Declare functions.
14262 2014-01-14 Yao Qi <yao@codesourcery.com>
14264 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14265 'len''s type to ULONGEST.
14266 (core_xfer_shared_libraries_aix): Likewise.
14267 * gdbarch.c, gdbarch.h: Regenerated.
14268 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14269 Change type of 'len' to ULONGEST.
14270 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14271 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14273 2014-01-14 Yao Qi <yao@codesourcery.com>
14275 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14276 type of 'len' to ULONGEST.
14277 (linux_xfer_osdata_processgroups): Likewise.
14278 (linux_xfer_osdata_threads): Likewise.
14279 (linux_xfer_osdata_fds): Likewise.
14280 (linux_xfer_osdata_isockets): Likewise.
14281 (linux_xfer_osdata_shm): Likewise.
14282 (linux_xfer_osdata_sem): Likewise.
14283 (linux_xfer_osdata_msg): Likewise.
14284 (linux_common_xfer_osdata): Likewise.
14285 (struct osdata_type) <getter>: Likewise.
14286 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14289 2014-01-14 Yao Qi <yao@codesourcery.com>
14291 * target.h (target_xfer_partial_ftype): Update.
14292 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14294 * aix-thread.c (aix_thread_xfer_partial): Change type of
14295 argument 'len' to ULONGEST.
14296 * auxv.c (procfs_xfer_auxv): Likewise.
14297 (ld_so_xfer_auxv): Likewise.
14298 (memory_xfer_auxv): Likewise.
14299 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14300 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14301 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14302 * corelow.c (core_xfer_partial): Likewise.
14303 * ctf.c (ctf_xfer_partial): Likewise.
14304 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14306 (darwin_read_dyld_info): Likewise.
14307 (darwin_xfer_partial): Likewise.
14308 * exec.c (section_table_xfer_memory_partial): Likewise.
14309 (exec_xfer_partial): Likewise.
14310 * exec.h (section_table_xfer_memory_partial): Update
14312 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14313 instead of plongest.
14314 (gnu_xfer_partial): Likewise.
14315 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14316 (ia64_hpux_xfer_solib_got): Likewise.
14317 (ia64_hpux_xfer_partial): Likewise.
14318 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14319 * inf-ptrace.c (inf_ptrace_xfer_partial):
14320 * inf-ttrace.c (inf_ttrace_xfer_partial):
14321 * linux-nat.c (linux_xfer_siginfo): Likewise.
14322 (linux_nat_xfer_partial): Likewise.
14323 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14324 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14325 * monitor.c (monitor_xfer_memory): Likewise.
14326 (monitor_xfer_partial): Likewise.
14327 * procfs.c (procfs_xfer_partial): Likewise.
14328 * record-full.c (record_full_xfer_partial): Likewise.
14329 (record_full_core_xfer_partial): Likewise.
14330 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14331 instead of plongest.
14332 (gdbsim_xfer_partial): Likewise.
14333 * remote.c (remote_xfer_partial): Likewise.
14334 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14335 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14337 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14338 (rs6000_xfer_shared_libraries): Likewise.
14339 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14340 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14341 (sparc_xfer_partial): Likewise.
14342 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14343 (spu_xfer_partial): Likewise.
14344 * spu-multiarch.c (spu_xfer_partial): Likewise.
14345 * target.c (target_read_live_memory): Likewise.
14346 (memory_xfer_live_readonly_partial): Likewise.
14347 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14348 (target_xfer_partial, default_xfer_partial): Likewise.
14349 (current_xfer_partial): Likewise.
14350 * tracepoint.c (tfile_xfer_partial): Likewise.
14351 * windows-nat.c (windows_xfer_memory): Likewise. Call
14352 pulongest instead of plongest.
14353 (windows_xfer_partial): Likewise.
14354 (windows_xfer_shared_libraries): Likewise.
14356 2014-01-14 Yao Qi <yao@codesourcery.com>
14358 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14359 target_xfer_partial_ftype.
14361 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14365 * valops.c (value_struct_elt_bitpos): New function
14366 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14367 object to 'None' if the field name is an empty string ("").
14368 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14369 attribute to look for a field when 'name' is 'None'.
14370 (get_field_type): New function
14372 2014-01-13 Doug Evans <dje@google.com>
14375 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14376 (try_open_dwop_file): Ditto.
14377 * gdb_bfd.c: #include "vec.h".
14378 (bfdp): New typedef.
14379 (struct gdb_bfd_data): New member included_bfds.
14380 (gdb_bfd_unref): Unref all included bfds.
14381 (gdb_bfd_record_inclusion): New function.
14382 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14384 2014-01-13 Tom Tromey <tromey@redhat.com>
14386 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14388 2014-01-13 Tom Tromey <tromey@redhat.com>
14390 * defs.h (use_windows): Remove.
14391 * gdb.c (main): Update.
14392 * main.c (captured_main, gdb_main): Update.
14393 * main.h (struct captured_main_args) <use_windows>: Remove.
14394 * top.c (use_windows): Remove.
14396 2014-01-13 Tom Tromey <tromey@redhat.com>
14398 * defs.h (deprecated_flush_hook): Remove.
14400 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14403 * linux-thread-db.c (try_thread_db_load): Add parameter
14404 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14405 (try_thread_db_load_from_pdir_1): Move it there from here.
14406 (try_thread_db_load_from_sdir): Update caller.
14407 (try_thread_db_load_from_dir): Move it there from here.
14409 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14411 * regformats/regdat.sh: Always rewrite the register file.
14413 2014-01-13 Pedro Alves <palves@redhat.com>
14415 * Makefile.in (CHECK_HEADERS): New variable.
14416 (check-headers:): New rule.
14418 2014-01-13 Tom Tromey <tromey@redhat.com>
14420 * cli/cli-setshow.c (do_set_command): Update.
14421 * defs.h (deprecated_set_hook): Remove.
14422 * top.c (deprecated_set_hook): Remove.
14424 2014-01-13 Pedro Alves <palves@redhat.com>
14426 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14427 the tracepoint if the PC is a pseudo-register.
14429 2014-01-13 Tom Tromey <tromey@redhat.com>
14431 * defs.h (XCALLOC): Remove.
14432 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14433 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14434 * dwarf2loc.c (allocate_piece_closure): Likewise.
14435 * elfread.c (elf_symfile_segments): Likewise.
14436 (elf_symfile_segments): Likewise.
14437 * gdbtypes.c (copy_type_recursive): Likewise.
14438 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14439 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14440 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14442 * mt-tdep.c (mt_gdbarch_init): Likewise.
14443 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14445 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14446 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14447 * registry.c (registry_alloc_data): Likewise.
14448 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14449 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14450 * serial.c (serial_fdopen_ops): Likewise.
14451 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14453 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14454 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14457 2014-01-13 Tom Tromey <tromey@redhat.com>
14459 * defs.h (XMALLOC): Remove.
14460 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14461 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14462 * cli-out.c (struct ui_out *): Likewise.
14463 * cli/cli-dump.c (add_dump_command): Likewise.
14464 (add_dump_command): Likewise.
14465 * complaints.c (get_complaints): Likewise.
14466 (find_complaint): Likewise.
14467 * dwarf2-frame.c (execute_cfa_program): Likewise.
14468 * dwarf2read.c (abbrev_table_read_table): Likewise.
14469 * gdbarch.sh: Likewise.
14470 * gdbarch.c: Rebuild.
14471 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14472 * interps.c (interp_new): Likewise.
14473 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14474 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14475 * mi/mi-console.c (mi_console_file_new): Likewise.
14476 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14477 * mi/mi-out.c (mi_out_new): Likewise.
14478 * mi/mi-parse.c (mi_parse): Likewise.
14479 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14480 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14481 * observer.c (xalloc_observer_list_node): Likewise.
14482 * regcache.c (regcache_xmalloc_1): Likewise.
14483 * reggroups.c (reggroup_new): Likewise.
14484 (_initialize_reggroup): Likewise.
14485 * registry.c (register_data_with_cleanup): Likewise.
14486 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14487 * ser-base.c (serial_ttystate): Likewise.
14488 * ser-mingw.c (make_pipe_state): Likewise.
14489 * ser-pipe.c (pipe_open): Likewise.
14490 * serial.c (serial_open): Likewise.
14491 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14492 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14493 (tui_alloc_win_info): Likewise.
14494 (tui_add_content_elements): Likewise.
14495 * tui/tui-file.c (tui_file_new): Likewise.
14496 * tui/tui-out.c (tui_out_new): Likewise.
14497 * ui-file.c (mem_file_new): Likewise.
14498 * ui-out.c (push_level): Likewise.
14499 (make_cleanup_ui_out_end): Likewise.
14500 (append_header_to_list): Likewise.
14501 (ui_out_new): Likewise.
14502 * user-regs.c (user_reg_add_builtin): Likewise.
14504 2014-01-13 Tom Tromey <tromey@redhat.com>
14506 * defs.h (XZALLOC): Remove.
14507 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14508 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14509 (get_ada_tasks_inferior_data): Likewise.
14510 * auto-load.c (get_auto_load_pspace_data): Likewise.
14511 * auxv.c (get_auxv_inferior_data): Likewise.
14512 * bfd-target.c (target_bfd_reopen): Likewise.
14513 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14514 (deprecated_insert_raw_breakpoint): Likewise.
14515 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14516 * corelow.c (core_open): Likewise.
14517 * darwin-nat.c (darwin_check_new_threads): Likewise.
14518 (darwin_attach_pid): Likewise.
14519 * dummy-frame.c (dummy_frame_push): Likewise.
14520 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14521 * dwarf2loc.c (allocate_piece_closure): Likewise.
14522 * elfread.c (elf_symfile_segments): Likewise.
14523 * eval.c (ptrmath_type_p): Likewise.
14524 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14525 * gdbtypes.c (alloc_type_arch): Likewise.
14526 (alloc_type_instance): Likewise.
14527 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14528 * inf-child.c (inf_child_can_use_agent): Likewise.
14529 * inflow.c (get_inflow_inferior_data): Likewise.
14530 * infrun.c (save_infcall_suspend_state): Likewise.
14531 * jit.c (jit_reader_load): Likewise.
14532 (get_jit_objfile_data): Likewise.
14533 (get_jit_program_space_data): Likewise.
14534 (jit_object_open_impl): Likewise.
14535 (jit_symtab_open_impl): Likewise.
14536 (jit_block_open_impl): Likewise.
14537 (jit_frame_sniffer): Likewise.
14538 * linux-fork.c (add_fork): Likewise.
14539 * maint.c (make_command_stats_cleanup): Likewise.
14540 * objfiles.c (get_objfile_pspace_data): Likewise.
14541 * opencl-lang.c (struct lval_closure): Likewise.
14542 * osdata.c (osdata_start_osdata): Likewise.
14543 * progspace.c (new_address_space): Likewise.
14544 (add_program_space): Likewise.
14545 * remote-sim.c (get_sim_inferior_data): Likewise.
14546 * sh-tdep.c (sh_gdbarch_init): Likewise.
14547 * skip.c (Ignore): Likewise.
14548 (skip_delete_command): Likewise.
14549 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14550 (library_list_start_library): Likewise.
14551 (solib_aix_current_sos): Likewise.
14552 * solib-darwin.c (get_darwin_info): Likewise.
14553 (darwin_current_sos): Likewise.
14554 * solib-dsbt.c (get_dsbt_info): Likewise.
14555 * solib-ia64-hpux.c (new_so_list): Likewise.
14556 (ia64_hpux_get_solib_linkage_addr): Likewise.
14557 * solib-spu.c (append_ocl_sos): Likewise.
14558 (spu_current_sos): Likewise.
14559 * solib-svr4.c (get_svr4_info): Likewise.
14560 (svr4_keep_data_in_core): Likewise.
14561 (library_list_start_library): Likewise.
14562 (svr4_default_sos): Likewise.
14563 (svr4_read_so_list): Likewise.
14564 * solib-target.c (library_list_start_library): Likewise.
14565 (solib_target_current_sos): Likewise.
14566 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14567 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14568 * symfile.c (default_symfile_segments): Likewise.
14569 * target-descriptions.c (tdesc_data_init): Likewise.
14570 (tdesc_create_reg): Likewise.
14571 (struct tdesc_type *): Likewise.
14572 (tdesc_create_vector): Likewise.
14573 (tdesc_set_struct_size): Likewise.
14574 (struct tdesc_type *): Likewise.
14575 (tdesc_free_feature): Likewise.
14576 (tdesc_create_feature): Likewise.
14577 * windows-nat.c (windows_add_thread): Likewise.
14578 (windows_make_so): Likewise.
14579 * xml-support.c (gdb_xml_body_text): Likewise.
14580 (gdb_xml_create_parser_and_cleanup): Likewise.
14581 (xml_process_xincludes): Likewise.
14582 * xml-syscall.c (allocate_syscalls_info): Likewise.
14583 (syscall_create_syscall_desc): Likewise.
14585 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14587 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14588 function, with code from i386_stap_parse_special_token.
14589 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14590 (i386_stap_parse_special_token): Move code to the two functions
14591 above; simplify it.
14593 2014-01-09 Pedro Alves <palves@redhat.com>
14594 Hui Zhu <hui@codesourcery.com>
14597 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14598 bp_err_string. Don't mark the location shlib_disabled if the
14599 error thrown wasn't a generic or memory error. Catch errors
14600 thrown while inserting breakpoints in overlayed code. Output
14601 error message of software breakpoints.
14602 * remote.c (remote_insert_breakpoint): If this breakpoint has
14603 target-side commands but this stub doesn't support Z0 packets,
14604 throw NOT_SUPPORTED_ERROR error.
14605 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14606 * target.h (target_insert_breakpoint): Extend comment.
14607 (target_insert_hw_breakpoint): Add comment.
14609 2014-01-08 Pedro Alves <palves@redhat.com>
14611 * remote.c (remote_add_thread): Add threads silently if starting
14613 (remote_notice_new_inferior): If in all-stop, and starting up,
14614 don't call notice_new_inferior.
14615 (get_current_thread): New function, factored out from ...
14616 (add_current_inferior_and_thread): ... this. Adjust.
14617 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14618 found any thread, then select the remote's current thread as GDB's
14619 current thread too.
14621 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14623 * NEWS: Create a new section for the next release branch.
14624 Rename the section of the current branch, now that it has
14627 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14629 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14630 * version.in: Bump version to 7.7.50.DATE-cvs.
14632 2014-01-08 Yao Qi <yao@codesourcery.com>
14634 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14635 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14636 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14638 2014-01-08 Yao Qi <yao@codesourcery.com>
14640 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14641 return value of bfd_get_filename to symbol_file_add_from_bfd.
14643 2014-01-08 Pierre Muller <muller@sourceware.org>
14646 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14647 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14648 to prim_record_mininal_symbol_and_info.
14649 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14650 in call to prim_record_minimal_symbol_and_info.
14651 (read_pe_exported_syms): Set index field of section_data.
14653 2014-01-07 Andrew Pinski <apinski@cavium.com>
14655 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14656 * features/aarch64.c: Regenerate.
14658 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14660 * target.c (return_null): Define.
14661 (update_current_target): Use it instead of return_zero for
14662 functions that return a pointer.
14664 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14666 * source.c (add_path): Fix check for duplicated paths in the previously
14669 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14671 * ada-lang.c: Remove duplicated include statements.
14672 * alphabsd-nat.c: Ditto.
14673 * amd64-darwin-tdep.c: Ditto.
14674 * amd64fbsd-nat.c: Ditto.
14675 * auto-load.c: Ditto.
14677 * breakpoint.c: Ditto.
14678 * dbxread.c: Ditto.
14679 * fork-child.c: Ditto.
14680 * gdb_usleep.c: Ditto.
14681 * i386-darwin-tdep.c: Ditto.
14682 * i386fbsd-nat.c: Ditto.
14684 * inferior.c: Ditto.
14685 * jv-lang.c: Ditto.
14686 * linux-nat.c: Ditto.
14687 * linux-tdep.c: Ditto.
14688 * m68kbsd-nat.c: Ditto.
14689 * m68klinux-nat.c: Ditto.
14690 * microblaze-tdep.c: Ditto.
14691 * mips-linux-tdep.c: Ditto.
14692 * mn10300-tdep.c: Ditto.
14693 * nto-tdep.c: Ditto.
14694 * opencl-lang.c: Ditto.
14696 * printcmd.c: Ditto.
14697 * regcache.c: Ditto.
14698 * remote-m32r-sdi.c: Ditto.
14700 * symfile.c: Ditto.
14702 * tilegx-linux-nat.c: Ditto.
14703 * tilegx-tdep.c: Ditto.
14704 * tracepoint.c: Ditto.
14706 * vaxbsd-nat.c: Ditto.
14707 * windows-nat.c: Ditto.
14708 * xtensa-tdep.c: Ditto.
14710 2014-01-07 Yao Qi <yao@codesourcery.com>
14712 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14714 2014-01-07 Yao Qi <yao@codesourcery.com>
14715 Joel Brobecker <brobecker@adacore.com>
14717 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14718 (pdc_write_regs): Likewise.
14719 (fetch_regs_kernel_thread): Likewise.
14720 (store_regs_kernel_thread): Likewise.
14722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14724 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14725 tagged type objects to their actual type.
14727 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14729 * ada-valprint.c (print_field_values): Add "language" parameter.
14730 Update calls to print_field_values and print_variant_part.
14731 Pass new parameter "language" in call to val_print instead
14732 of "current_language". Replace call to ada_val_print by call
14734 (print_variant_part): Add "language" parameter.
14735 (ada_val_print_struct_union): Update call to print_field_values.
14737 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14739 * ada-valprint.c (ui_memcpy): Delete.
14740 (ada_print_floating): Update documentation. Add empty line
14741 between between function documentation and implementation.
14742 Delete variable "buffer". Use ui_file_xstrdup in place of
14743 ui_file_put. Minor adjustments following this change.
14745 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14747 * ada-valprint.c (ada_val_print_string): New function,
14748 extracted from ada_val_print_array.
14749 (ada_val_print_array): Replace extracted code by call
14750 to ada_val_print_string followed by a return. Move
14751 "else" branch to the function's top block.
14753 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14755 * ada-valprint.c (ada_val_print_array): Move implementation
14756 down. Rename parameter "offset" and "val" into "offset_aligned"
14757 and "original_value" respectively. Add parameter "offset".
14759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14761 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14762 re-organizing the code. Change the "???" message printed
14763 when target type is a TYPE_CODE_UNDEF into
14764 "<ref to undefined type>".
14766 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14768 * ada-valprint.c (print_record): Delete, implementation inlined...
14769 (ada_val_print_struct_union): ... here. Remove call to
14770 ada_check_typedef in inlined implementation.
14772 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14774 * ada-valprint.c (ada_val_print_gnat_array): New function,
14775 extracted from ada_val_print_1;
14776 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14777 (ada_val_print_flt, ada_val_print_struct_union)
14778 (ada_val_print_ref): Likewise.
14779 (ada_val_print_1): Delete variables i and elttype.
14780 Replace extracted-out code by call to corresponding
14783 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14785 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14787 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14789 * ada-valprint.c (ada_val_print_1): Replace calls to
14790 ada_val_print_1 by calls to val_print.
14792 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14794 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14795 Update calls to self accordingly. Replace calls to c_val_print
14796 by calls to val_print.
14798 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14800 * ada-valprint.c (print_record): Delete declaration.
14801 (adjust_type_signedness, ada_val_print_1): Likewise.
14802 (ada_val_print): Move function implementation down.
14803 (print_variant_part, print_field_values, print_record):
14804 Move function implementation up.
14806 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14808 * python/py-type.c (typy_get_name): New function.
14809 (type_object_getset): Add entry for attribute "name".
14810 * NEWS: Add entry mentioning this new attribute.
14812 2014-01-07 Yao Qi <yao@codesourcery.com>
14814 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14817 2014-01-07 Yao Qi <yao@codesourcery.com>
14819 * gnu-nat.c (info_port_rights): Add qualifier const to
14822 2014-01-07 Yao Qi <yao@codesourcery.com>
14824 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14826 2014-01-07 Yao Qi <yao@codesourcery.com>
14828 * gnu-nat.c (make_inf) Update declaration.
14829 (make_inf): Make it static.
14830 (inf_set_traced): Likewise.
14831 (inf_port_to_thread, inf_task_died_status): Likewise.
14833 2014-01-07 Yao Qi <yao@codesourcery.com>
14835 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14837 2014-01-07 Yao Qi <yao@codesourcery.com>
14839 * gnu-nat.c (_initialize_gnu_nat): Declare.
14841 2014-01-07 Yao Qi <yao@codesourcery.com>
14843 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14845 (struct gdbarch_info) <byte_order>: Change type to
14847 <byte_order_for_code>: Likewise.
14848 * gdbarch.c, gdbarch.h: Regenerated.
14850 2014-01-06 Sasha Smundak <asmundak@google.com>
14852 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14854 2014-01-06 Tom Tromey <tromey@redhat.com>
14856 * doublest.c (convert_doublest_to_floatformat): Use const, not
14858 * somread.c (som_symtab_read): Likewise.
14860 2014-01-07 Hui Zhu <hui@codesourcery.com>
14862 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14863 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14864 (gdb_bfd_fopen): Ditto.
14865 (gdb_bfd_openr): Ditto.
14866 (gdb_bfd_openw): Ditto.
14867 (gdb_bfd_openr_iovec): Ditto.
14868 (gdb_bfd_fdopenr): Ditto.
14869 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14870 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14872 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14874 * symfile-mem.c (symbol_file_add_from_memory): Removed
14875 gdb_bfd_stash_filename.
14877 2014-01-03 Doug Evans <dje@google.com>
14879 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14882 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14884 Update year range in copyright notice of all files.
14886 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14888 * top.c (print_gdb_version): Set copyright year to 2014.
14890 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14892 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14894 For older changes see ChangeLog-2013.
14900 version-control: never