1 2014-11-12 Pedro Alves <palves@redhat.com>
3 * infrun.c (enum infwait_states, infwait_state): Delete.
5 2014-11-12 Pedro Alves <palves@redhat.com>
7 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
8 Rewrite stepping over a permanent breakpoint.
9 (thread_still_needs_step_over, proceed): Don't set
10 stepping_over_breakpoint for permanent breakpoints.
11 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
12 single-step breakpoints out of the target on hardware step
14 (process_event_stop_test): If stepping a permanent breakpoint
15 doesn't hit the step-resume breakpoint, delete the step-resume
17 (switch_back_to_stepped_thread): Also check if the stepped thread
18 has advanced already on hardware step targets.
19 (currently_stepping): Return true if the thread stepped a
22 2014-11-12 Pedro Alves <palves@redhat.com>
24 Mark locations as permanent, not the whole breakpoint.
25 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
26 (mark_breakpoints_out): Don't mark permanent breakpoints as
28 (breakpoint_init_inferior): Use mark_breakpoints_out.
29 (breakpoint_here_p): Adjust.
30 (bpstat_stop_status, describe_other_breakpoints): Remove handling
31 of permanent breakpoints.
32 (make_breakpoint_permanent): Mark each location as permanent,
33 instead of marking the breakpoint.
34 (add_location_to_breakpoint): If the location is permanent, mark
35 it as such, and as inserted.
36 (init_breakpoint_sal): Don't make the breakpoint permanent here.
37 (bp_location_compare, update_global_location_list): Adjust.
38 (update_breakpoint_locations): Don't make the breakpoint permanent
40 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
42 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
43 (struct bp_location) <permanent>: New field.
44 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
45 reference to bp_permanent.
47 2014-11-12 Pedro Alves <palves@redhat.com>
49 * arch-utils.c (default_skip_permanent_breakpoint): New function.
50 * arch-utils.h (default_skip_permanent_breakpoint): New
52 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
53 Install default_skip_permanent_breakpoint as default method.
54 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
55 (i386_gdbarch_init): Don't install it.
56 * infrun.c (resume): Assume there's always a
57 gdbarch_skip_permanent_breakpoint implementation.
58 * gdbarch.h, gdbarch.c: Regenerate.
60 2014-11-11 Daniel Colascione <dancol@dancol.org>
62 Warn about cross-PID-namespace debugging.
63 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
64 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
65 * linux-thread-db.c (check_pid_namespace_match): New function.
66 (thread_db_inferior_created): Call it.
68 2014-11-10 Doug Evans <xdje42@gmail.com>
70 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
71 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
73 2014-11-10 Doug Evans <xdje42@gmail.com>
75 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
77 2014-11-10 Doug Evans <xdje42@gmail.com>
80 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
81 (lookup_static_symbol): Move definition to new location and rewrite.
82 (lookup_symbol_in_objfile): New function.
83 (lookup_symbol_global_iterator_cb): Call it.
85 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
87 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
89 2014-11-07 Pedro Alves <palves@redhat.com>
91 * infrun.c (process_event_stop_test) <subroutine check>: Don't
92 check if we did a "nexti" inside a prologue.
93 * symtab.c (in_prologue): Delete function.
94 * symtab.h (in_prologue): Delete declaration.
96 2014-11-06 Doug Evans <xdje42@gmail.com>
98 * symtab.h (lookup_global_symbol): Improve function comment.
100 2014-11-06 Doug Evans <xdje42@gmail.com>
102 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
104 * symtab.h (lookup_global_symbol): Update decl.
105 (lookup_static_symbol): Move decl to better location.
107 2014-11-06 Doug Evans <xdje42@gmail.com>
109 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
111 2014-11-06 Doug Evans <xdje42@gmail.com>
113 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
115 (lookup_symbol_in_all_objfiles): Renamed from
116 lookup_symbol_aux_symtabs. All callers updated.
117 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
119 (lookup_symbol_in_objfile_symtabs): Renamed from
120 lookup_symbol_aux_objfile. All callers updated.
122 2014-11-06 Doug Evans <xdje42@gmail.com>
124 * symtab.c (lookup_symbol_in_block): Renamed from
125 lookup_symbol_aux_block. All callers updated.
127 2014-11-06 Doug Evans <xdje42@gmail.com>
129 * symtab.c (lookup_static_symbol): Renamed from
130 lookup_static_symbol_aux. All callers updated.
131 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
134 2014-11-06 Doug Evans <xdje42@gmail.com>
136 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
137 * block.c (block_lookup_symbol): Use it.
138 * cp-support.c (make_symbol_overload_list_block): Use it.
139 * symtab.c (iterate_over_symbols): Use it.
141 2014-11-06 Doug Evans <xdje42@gmail.com>
143 * symtab.c (lookup_block_symbol): Moved to ...
144 * block.c (block_lookup_symbol): ... here and renamed.
146 * block.h (block_lookup_symbol): Declare.
147 * symtab.h (lookup_block_symbol): Delete.
149 2014-11-06 Doug Evans <xdje42@gmail.com>
151 * ada-lang.c (ada_make_symbol_completion_list): Use
152 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
153 * symtab.c (lookup_objfile_from_block): Ditto.
155 2014-11-06 Doug Evans <xdje42@gmail.com>
157 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
160 2014-11-06 Doug Evans <xdje42@gmail.com>
162 * objfiles.c (get_objfile_arch): Constify.
163 * objfiles.h (get_objfile_arch): Update prototype.
164 * solib.c (solib_global_lookup): Fetch arch from objfile,
167 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
169 * nios2-tdep.c (wild_insn): Delete.
170 (profiler_insn, irqentry_insn): Delete.
171 (nios2_match_sequence): Delete.
172 (nios2_analyze_prologue): Update comments. Remove matching
173 of obsolete profiler_insn and irqentry_insn sequences.
175 2014-11-05 Alan Modra <amodra@gmail.com>
177 * charset.c (convert_between_encodings): Shrink obstack using
179 * minsyms.c (install_minimal_symbols): Likewise.
180 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
181 to char* before doing pointer arithmetic.
183 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
185 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
187 2014-11-04 Pedro Alves <palves@redhat.com>
189 * breakpoint.c (breakpoint_thread_match): Delete function.
190 * breakpoint.h (breakpoint_thread_match): Delete declaration.
192 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
195 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
196 the method args also under EVAL_SKIP when evaluating method
197 calls under EVAL_SKIP.
199 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
201 * dwarf2loc.c (read_pieced_value): Do big endian
202 processing only if gdb_regnum is not -1.
203 (write_pieced_value): Ditto.
205 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
207 * arm-linux-tdep.c (arm_linux_init_abi): Use
208 info.byte_order_for_code to choose endianity of breakpoint
209 instructions snippets.
211 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
213 * arm-tdep.c (extract_arm_insn): Use
214 gdbarch_byte_order_for_code to read arm instruction.
216 2014-11-02 Doug Evans <xdje42@gmail.com>
218 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
220 2014-11-02 Doug Evans <xdje42@gmail.com>
222 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
223 main_subfile before returning.
225 2014-10-31 Doug Evans <xdje42@gmail.com>
227 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
228 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
230 2014-10-31 Doug Evans <xdje42@gmail.com>
232 * valops.c (value_cast_pointers): Fix whitespace.
233 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
236 2014-10-30 Doug Evans <dje@google.com>
238 * NEWS: Mention ability add attributes to gdb.Objfile and
239 gdb.Progspace objects.
240 * python/py-objfile.c (objfile_object): New member dict.
241 (objfpy_dealloc): Py_XDECREF dict.
242 (objfpy_initialize): Initialize dict.
243 (objfile_getset): Add __dict__.
244 (objfile_object_type): Set tp_dictoffset member.
245 * python/py-progspace.c (progspace_object): New member dict.
246 (pspy_dealloc): Py_XDECREF dict.
247 (pspy_initialize): Initialize dict.
248 (pspace_getset): Add __dict__.
249 (pspace_object_type): Set tp_dictoffset member.
251 2014-10-30 Yao Qi <yao@codesourcery.com>
253 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
254 replace '\\' with '\\\\'.
256 2014-10-29 Joel Brobecker <brobecker@adacore.com>
260 2014-10-29 Pedro Alves <palves@redhat.com>
263 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
264 instead of assuming a thread with a stepping range is always
267 2014-10-29 Pedro Alves <palves@redhat.com>
270 * event-top.c (change_line_handler): Call
271 gdb_rl_callback_handler_remove instead of
272 rl_callback_handler_remove.
273 (callback_handler_installed): New global.
274 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
275 (gdb_rl_callback_handler_reinstall): New functions.
276 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
277 gdb_rl_callback_handler_install instead of
278 rl_callback_handler_remove and rl_callback_handler_install.
279 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
280 instead of rl_callback_handler_remove.
281 * event-top.h (gdb_rl_callback_handler_remove)
282 (gdb_rl_callback_handler_install)
283 (gdb_rl_callback_handler_reinstall): New declarations.
284 * infrun.c (reinstall_readline_callback_handler_cleanup): New
286 (fetch_inferior_event): Install it.
287 * top.c (gdb_readline_wrapper_line) Call
288 gdb_rl_callback_handler_remove instead of
289 rl_callback_handler_remove.
290 (gdb_readline_wrapper_cleanup): Don't call
291 rl_callback_handler_install.
293 2014-10-29 Pedro Alves <palves@redhat.com>
295 * event-top.c (command_line_handler): Clear the first byte of
296 linebuffer, when it is first allocated.
298 2014-10-29 Pedro Alves <palves@redhat.com>
300 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
303 2014-10-29 Pedro Alves <palves@redhat.com>
307 * tui/tui-interp.c (tui_is_toplevel): Delete global.
308 (tui_allowed_p): Delete function.
309 * tui/tui.c: Include "interps.h".
310 (tui_enable): Don't use tui_allowed_p. Error out here with
311 detailed error messages if the TUI is the top level interpreter,
312 or if output is not a terminal. Use newterm instead of initscr,
313 and error out if initializing the terminal fails. Also error out if
314 the terminal doesn't support cursor addressing.
315 * tui/tui.h (tui_allowed_p): Delete declaration.
317 2014-10-29 Joel Brobecker <brobecker@adacore.com>
319 * arm-tdep.c (arm_skip_stack_protector): Return early if
320 address loaded by first "ldr" instruction does not have
321 a corresponding minimal symbol. Update comment.
323 2014-10-29 Yao Qi <yao@codesourcery.com>
325 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
326 loaded address correctly of ldr instruction.
328 2014-10-28 Pedro Alves <palves@redhat.com>
331 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
333 * infrun.c (resume) <stepping breakpoint instruction>: Set the
334 thread's stepped_breakpoint field. Skip if reverse debugging.
336 (init_thread_stepping_state, handle_signal_stop): Clear the
337 thread's stepped_breakpoint field.
339 2014-10-27 Pedro Alves <palves@redhat.com>
341 * remote.c (remote_thread_alive): New, factored out from ...
342 (remote_thread_alive): ... this.
343 (remote_update_thread_list): Bail out before deleting threads if
344 the target returned an empty list, and, the current thread has a
347 2014-10-27 Pedro Alves <palves@redhat.com>
349 * infrun.c (handle_signal_stop): Also skip handlers when a random
350 signal arrives while handling a "stepi" or a "nexti". Set the
351 thread's 'step_after_step_resume_breakpoint' flag.
353 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
355 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
356 (arm_record_ld_st_imm_offset): Reimplement to cover all
357 load/store cases for ARM opcode 010.
358 (arm_record_ld_st_multiple): Reimplement to cover all
359 load/store cases for ARM opcode 100.
361 2014-10-26 Doug Evans <xdje42@gmail.com>
363 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
365 2014-10-26 Doug Evans <xdje42@gmail.com>
367 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
368 parameter "kind" to "block_index".
369 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
371 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
373 2014-10-26 Doug Evans <xdje42@gmail.com>
375 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
377 2014-10-26 Doug Evans <xdje42@gmail.com>
379 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
382 2014-10-26 Doug Evans <xdje42@gmail.com>
384 * parser-defs.h (block_found): Move decl from here ...
385 * symtab.h (block_found): ... to here.
387 2014-10-26 Doug Evans <xdje42@gmail.com>
389 * symtab.h (struct field_of_this_result): Fix typo in comment.
390 (lookup_symbol_in_language): Move function comment here.
391 (lookup_symbol): Improve function comment.
392 (basic_lookup_symbol_nonlocal): Ditto.
393 (lookup_symbol_static, lookup_symbol_global): Ditto.
394 (lookup_symbol_aux_block): Ditto.
395 (lookup_language_this): Add function comment.
396 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
398 (lookup_block_symbol): Improve function comment.
399 (lookup_struct): Fix capitalization in function comment.
400 (lookup_transparent_type): Add function comment.
401 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
402 Improve function comment.
403 (lookup_objfile_from_block): Add function comment.
404 * symtab.c (lookup_symbol_in_language): Update function comment.
405 (lookup_symbol, lookup_language_this): Ditto.
406 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
407 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
408 (basic_lookup_symbol_nonlocal): Ditto.
409 (lookup_symbol_static, lookup_symbol_global): Ditto.
410 (lookup_transparent_type, lookup_block_symbol): Ditto.
412 2014-10-25 Doug Evans <xdje42@gmail.com>
414 * symtab.c (types_info): Delete forward decl.
415 (functions_info, variables_info, sources_info): Ditto.
416 (_initialize_symtab): Rewrite forward decl to use
417 initialize_file_ftype.
419 2014-10-25 Doug Evans <xdje42@gmail.com>
421 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
423 2014-10-25 Doug Evans <xdje42@gmail.com>
425 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
426 of local var child_die.
428 2014-10-24 Don Breazeal <donb@codesourcery.com>
430 * infrun.c (follow_fork_inferior): Update fork message printing
431 to use target_terminal_ours_for_output instead of
432 target_terminal_ours, to use _() for all format strings, to print
433 "vfork" instead of "fork" for vforks, and to add a detach message.
434 (handle_vfork_child_exec_or_exit): Update message printing to use
435 target_terminal_ours_for_output instead of target_terminal_ours, to
436 use _() for all format strings, and to fix some formatting.
438 2014-10-24 Pedro Alves <palves@redhat.com>
440 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
441 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
442 * config/vax/vax.mh: Delete.
443 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
444 obsolete configurations section.
445 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
446 * vax-nat.c: Delete file.
448 2014-10-24 Pedro Alves <palves@redhat.com>
450 * NEWS (Removed targets): Add OS/arch column.
452 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
454 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
455 on the arg type of a constructor only if it is of reference type.
457 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
459 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
460 accessors and constants from nios2 opcodes update.
461 (nios2_get_next_pc): Likewise.
463 2014-10-19 Doug Evans <xdje42@gmail.com>
465 * gdbthread.h (set_running): Fix comment.
466 (set_executing, finish_thread_state): Fix comment.
468 2014-10-18 Doug Evans <xdje42@gmail.com>
470 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
472 2014-10-17 Doug Evans <dje@google.com>
474 * NEWS: Mention new event gdb.clear_objfiles.
475 * python/py-event.h (emit_clear_objfiles_event): Clear
476 * python/py-events.h (events_object): New member clear_objfiles.
477 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
479 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
480 emit clear_objfiles event.
481 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
483 (emit_clear_objfiles_event): New function.
484 (clear_objfiles): New event.
485 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
487 * python/python.c (_initialize_python): Call
488 gdbpy_initialize_clear_objfiles_event.
490 2014-10-17 Doug Evans <dje@google.com>
492 * NEWS: Mention new gdb.Objfile.progspace attribute.
493 * python/py-objfile.c (objfpy_get_progspace): New function.
494 (objfile_getset): New entry for "progspace".
496 2014-10-17 Pedro Alves <palves@redhat.com>
499 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
500 returns a copy of the input.
501 (run_command_1, continue_command, step_1, jump_command)
502 (signal_command, until_command, advance_command, finish_command)
503 (attach_command): Adjust and install a cleanup to free the
506 2014-10-17 Pedro Alves <palves@redhat.com>
509 * infcmd.c (continue_1): If continuing all threads in the
510 foreground, make sure the inferior's terminal settings are put in
513 2014-10-17 Pedro Alves <palves@redhat.com>
516 * annotate.c (annotate_breakpoints_invalid): Use
517 target_terminal_our_for_output instead of target_terminal_ours.
518 Give back the terminal to the target.
519 (annotate_frames_invalid): Likewise.
521 2014-10-17 Pedro Alves <palves@redhat.com>
523 * target.c (enum terminal_state): New enum.
524 (terminal_state): New global.
525 (target_terminal_init): New function.
526 (target_terminal_inferior): Skip if inferior already owns the
528 (target_terminal_ours, target_terminal_ours_for_output): New
530 * target.h (target_terminal_init): Convert to function prototype.
531 (target_terminal_ours_for_output): Convert to function prototype
533 (target_terminal_ours): Convert to function prototype and tweak
535 * windows-nat.c (do_initial_windows_stuff): Call
536 target_terminal_init instead of child_terminal_init_with_pgrp.
538 2014-10-17 Pedro Alves <palves@redhat.com>
540 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
541 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
542 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
544 * NEWS: Mention that support for alpha*-*-osf* has been removed.
545 * ada-lang.h [__alpha__ && __osf__]
546 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
547 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
548 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
550 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
552 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
553 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
554 * configure: Regenerate.
555 * configure.ac: Remove references to osf.
556 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
557 section. Remove all other references to osf.
558 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
559 Remove all other references to osf.
560 * dec-thread.c: Delete file.
561 * defs.h (GDB_OSABI_OSF1): Delete.
562 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
564 * osabi.c (gdb_osabi_names): Delete "OSF/1".
565 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
567 (unconditionally_kill_inferior)
568 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
569 * solib-osf.c: Delete file.
571 2014-10-17 Pedro Alves <palves@redhat.com>
573 * remote.c (clear_threads_listing_context): Move higher up, out of
574 the HAVE_LIBEXPAT guard.
576 2014-10-16 Tristan Gingold <gingold@adacore.com>
578 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
579 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
582 2014-10-15 Pedro Alves <palves@redhat.com>
584 * dec-thread.c (dec_thread_count_gdb_threads)
585 (dec_thread_add_gdb_thread): Delete.
586 (dec_thread_update_thread_list): Delete.
587 (dec_thread_find_new_threads): Rename to ...
588 (dec_thread_update_thread_list): ... this. Delete GDB-size
589 threads that are no longer found in dec_thread_list.
590 (resync_thread_list): Delete.
591 (dec_thread_wait): Call dec_thread_update_thread_list instead of
594 2014-10-15 Pedro Alves <palves@redhat.com>
596 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
597 * remote.c (remote_update_thread_list): Skip calling prune_threads
598 if any thread listing method is supported, and instead walk over
599 the set of remote threads listed, deleting those that are not
600 found in GDB's thread list.
602 2014-10-15 Pedro Alves <palves@redhat.com>
604 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
605 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
606 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
607 (bsd_uthread_target): Adjust.
608 * corelow.c (core_open): Adjust.
609 * dec-thread.c (dec_thread_find_new_threads): Update comment.
610 (dec_thread_update_thread_list): New function.
611 (init_dec_thread_ops): Adjust.
612 * gdbthread.h (prune_threads): New declaration.
613 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
614 (thread_db_update_thread_list): ... this. Call prune_threads.
615 (init_thread_db_ops): Adjust.
616 * nto-procfs.c (procfs_find_new_threads): Rename to ...
617 (procfs_update_thread_list): ... this. Call prune_threads.
618 (procfs_attach, procfs_create_inferior, init_procfs_targets):
620 * obsd-nat.c (obsd_find_new_threads): Rename to ...
621 (obsd_update_thread_list): ... this. Call prune_threads.
622 (obsd_add_target): Adjust.
623 * procfs.c (procfs_target): Adjust.
624 (procfs_notice_thread): Update comment.
625 (procfs_find_new_threads): Rename to ...
626 (procfs_update_thread_list): ... this. Call prune_threads.
627 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
629 (ravenscar_wait): Adjust.
630 (ravenscar_find_new_threads): Rename to ...
631 (ravenscar_update_thread_list): ... this. Call prune_threads.
632 (init_ravenscar_thread_ops): Adjust.
633 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
634 (record_btrace_update_thread_list): ... this. Adjust comment.
635 (init_record_btrace_ops): Adjust.
636 * remote.c (remote_threads_info): Rename to ...
637 (remote_update_thread_list): ... this. Call prune_threads.
638 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
640 * sol-thread.c (check_for_thread_db): Adjust.
641 (sol_find_new_threads_callback): Rename to ...
642 (sol_update_thread_list_callback): ... this.
643 (sol_find_new_threads): Rename to ...
644 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
645 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
646 * target-delegates.c: Regenerate.
647 * target.c (target_find_new_threads): Rename to ...
648 (target_update_thread_list): ... this.
649 * target.h (struct target_ops): Rename to_find_new_threads field
650 to to_update_thread_list.
651 (target_find_new_threads): Rename to ...
652 (target_update_thread_list): ... this.
653 * thread.c (prune_threads): Make extern.
654 (update_thread_list): Adjust.
656 2014-10-15 Pedro Alves <palves@redhat.com>
658 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
659 Add describing comment. Return -1 if the qL packet is not
661 (struct thread_item, thread_item_t): Move higher up in
662 the file. Add comments.
663 (struct threads_parsing_context): Move higher up in
664 the file, add comments, and remote to ...
665 (struct threads_listing_context): ... this.
666 (remote_newthread_step): Don't add the thread to GDB's thread
667 database here. Instead push it to the thread_listing_context
669 (remote_find_new_threads): Rename to ...
670 (remote_get_threads_with_ql): ... this. Add target_ops and
671 targets_listing_context parameters. Pass down context.
672 (start_thread): Adjust.
673 (clear_threads_parsing_context): Rename to ...
674 (clear_threads_listing_context): ... this.
675 (remote_get_threads_with_qxfer): New, with parts salvaged from old
677 (remote_get_threads_with_qthreadinfo): Ditto.
678 (remote_threads_info): Reimplement.
680 2014-10-15 Pedro Alves <palves@redhat.com>
682 * infrun.c (resume): Don't force displaced-stepping for all
683 single-steps on software single-stepping archs.
685 2014-10-15 Pedro Alves <palves@redhat.com>
687 * breakpoint.c (single_step_breakpoints): Delete global.
688 (insert_single_step_breakpoint): Adjust to store the breakpoint
689 pointer in the current thread.
690 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
691 (cancel_single_step_breakpoints): Delete functions.
692 (breakpoint_has_location_inserted_here): Make extern.
693 (single_step_breakpoint_inserted_here_p): Adjust to walk the
695 * breakpoint.h (breakpoint_has_location_inserted_here): New
697 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
698 (cancel_single_step_breakpoints): Remove declarations.
699 * gdbthread.h (struct thread_control_state)
700 <single_step_breakpoints>: New field.
701 (delete_single_step_breakpoints)
702 (thread_has_single_step_breakpoints_set)
703 (thread_has_single_step_breakpoint_here): New declarations.
704 * infrun.c (follow_exec): Also clear the single-step breakpoints.
705 (singlestep_breakpoints_inserted_p, singlestep_ptid)
706 (singlestep_pc): Delete globals.
707 (infrun_thread_ptid_changed): Remove references to removed
709 (resume_cleanups): Delete the current thread's single-step
711 (maybe_software_singlestep): Remove references to removed globals.
712 (resume): Adjust to use thread_has_single_step_breakpoints_set and
713 delete_single_step_breakpoints.
714 (init_wait_for_inferior): Remove references to removed globals.
715 (delete_thread_infrun_breakpoints): Delete the thread's
716 single-step breakpoints too.
717 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
718 single-step breakpoints here.
719 (delete_stopped_threads_single_step_breakpoints): New function.
720 (adjust_pc_after_break): Adjust to use
721 thread_has_single_step_breakpoints_set.
722 (handle_inferior_event): Remove references to removed globals.
723 Use delete_stopped_threads_single_step_breakpoints.
724 (handle_signal_stop): Adjust to per-thread single-step
725 breakpoints. Swap test order to do cheaper tests first.
726 (switch_back_to_stepped_thread): Extend debug output. Remove
727 references to removed globals.
728 * record-full.c (record_full_wait_1): Adjust to per-thread
729 single-step breakpoints.
730 * thread.c (delete_single_step_breakpoints)
731 (thread_has_single_step_breakpoints_set)
732 (thread_has_single_step_breakpoint_here): New functions.
733 (clear_thread_inferior_resources): Also delete the thread's
734 single-step breakpoints.
736 2014-10-15 Pedro Alves <palves@redhat.com>
738 * thread.c (delete_thread_breakpoint): New function.
739 (delete_step_resume_breakpoint)
740 (delete_exception_resume_breakpoint): Use it.
741 (delete_at_next_stop): New function.
742 (clear_thread_inferior_resources): Use delete_at_next_stop.
744 2014-10-15 Pedro Alves <palves@redhat.com>
746 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
747 (breakpoint_inserted_here_p): ... here. Remove special case for
748 software single-step breakpoints.
749 (find_non_raw_software_breakpoint_inserted_here): Inline ...
750 (software_breakpoint_inserted_here_p): ... here. Remove special
751 case for software single-step breakpoints.
752 (bp_target_info_copy_insertion_state)
753 (deprecated_insert_raw_breakpoint)
754 (deprecated_remove_raw_breakpoint): Delete functions.
755 * breakpoint.h (deprecated_insert_raw_breakpoint)
756 (deprecated_remove_raw_breakpoint): Remove declarations.
758 2014-10-15 Pedro Alves <palves@redhat.com>
761 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
762 Delete array globals.
763 (single_step_breakpoints): New global.
764 (breakpoint_xfer_memory): Remove special handling for single-step
766 (update_breakpoints_after_exec): Delete bp_single_step
768 (detach_breakpoints): Remove special handling for single-step
770 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
771 (bpstat_stop_status): Add comment.
772 (bpstat_what, bptype_string, print_one_breakpoint_location)
773 (adjust_breakpoint_address, init_bp_location): Handle
775 (new_single_step_breakpoint): New function.
776 (set_momentary_breakpoint, bkpt_remove_location): Remove special
777 handling for single-step breakpoints.
778 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
779 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
781 (detach_single_step_breakpoints, find_single_step_breakpoint):
783 (breakpoint_has_location_inserted_here): New function.
784 (single_step_breakpoint_inserted_here_p): Rewrite.
785 * breakpoint.h: Remove FIXME.
786 (enum bptype) <bp_single_step>: New enum value.
787 (insert_single_step_breakpoint): Update comment.
788 * infrun.c (resume_cleanups)
789 (delete_step_thread_step_resume_breakpoint): Remove single-step
791 (fetch_inferior_event): Install a cleanup that removes infrun
793 (switch_back_to_stepped_thread) <expect thread advanced also>:
794 Clear step-over info.
796 2014-10-15 Pedro Alves <palves@redhat.com>
798 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
799 (delete_thread_infrun_breakpoints): New function, with parts
800 salvaged from delete_step_resume_breakpoint_callback.
801 (delete_step_thread_step_resume_breakpoint): Delete.
802 (for_each_just_stopped_thread_callback_func): New typedef.
803 (for_each_just_stopped_thread): New function.
804 (delete_just_stopped_threads_infrun_breakpoints): New function.
805 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
806 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
808 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
810 2014-10-15 Pedro Alves <palves@redhat.com>
812 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
813 trying to step past a non-steppable watchpoint.
814 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
816 * infrun.c (struct step_over_info): Add new field
817 'nonsteppable_watchpoint_p' and adjust comments.
818 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
820 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
821 (stepping_past_nonsteppable_watchpoint): New function.
822 (step_over_info_valid_p): Also return true if stepping past a
823 nonsteppable watchpoint.
824 (proceed): Adjust call to set_step_over_info. Remove reference to
826 (init_wait_for_inferior): Remove reference to init_infwait_state.
827 (waiton_ptid): Delete global.
828 (struct execution_control_state)
829 <stepped_after_stopped_by_watchpoint>: Delete field.
830 (wait_for_inferior, fetch_inferior_event): Always pass
831 minus_one_ptid to target_wait.
832 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
834 (init_infwait_state): Delete function.
835 (handle_inferior_event): Remove infwait_state handling.
836 (handle_signal_stop) <watchpoints handling>: Adjust after
837 stepped_after_stopped_by_watchpoint removal. Don't remove
838 breakpoints here nor set infwait_state. Set the thread's
839 stepping_over_watchpoint flag, and call keep_going instead.
840 (keep_going): Handle stepping_over_watchpoint. Adjust
841 set_step_over_info calls.
842 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
845 2014-10-15 Pedro Alves <palves@redhat.com>
847 * infrun.c (step_over_info_valid_p): New function.
848 (resume): Use step_over_info_valid_p instead of checking the
849 threads's trap_expected flag.
851 2014-10-15 Doug Evans <dje@google.com>
852 Walfred Tedeschi <walfred.tedeschi@intel.com>
855 * python/lib/gdb/__init__.py (packages): Add "printer".
856 * python/lib/gdb/command/bound_registers.py: Moved to ...
857 * python/lib/gdb/printer/bound_registers.py: ... here.
858 Add printer to global set of builtin printers. Rename printer from
859 "bound" to "mpx_bound128".
860 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
861 registered as global "builtin" printer.
862 (add_builtin_pretty_printer): New function.
863 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
864 gdb/printer/__init__.py.
866 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
868 * Makefile.in (SFILES): Remove d-support.c.
869 (COMMON_OBS): Remove d-support.o.
870 * d-lang.h (d_parse_symbol): Remove declaration.
871 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
872 * d-support.c: Remove file.
874 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
876 * gdb/infrun.c (process_event_stop_test): Apply
877 gdbarch_addr_bits_remove to longjmp resume address.
879 2014-10-15 Pedro Alves <palves@redhat.com>
881 * regformats/microblaze.dat: Delete file.
883 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
885 * features/Makefile (microblaze-expedite): Replace pc with rpc.
886 * regformats/microblaze-with-stack-protect.dat: Regenerate.
888 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
890 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
893 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
897 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
900 2014-10-14 Joel Brobecker <brobecker@adacore.com>
902 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
903 of the case where the second operand is a pointer.
904 <BINOP_SUB>: Likewise.
906 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
908 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
909 only if it is not NULL.
910 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
911 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
912 (struct probe_ops) <clear_semaphore>: Likewise.
913 * tracepoint.c (start_tracing): Call set_semaphore only if it is
915 (stop_tracing): Likewise, for clear_semaphore.
917 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
919 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
920 using language_c, instead of current_language.
922 2014-10-13 Doug Evans <dje@google.com>
924 * python/py-objfile.c (objfpy_initialize): New function.
925 (objfpy_new, objfile_to_objfile_object): Call it.
926 * python/py-progspace.c (pspy_initialize): New function.
927 (pspy_new, pspace_to_pspace_object): Call it.
929 2014-10-13 Miroslav Franc <mfranc@redhat.com>
930 Jan Kratochvil <jan.kratochvil@redhat.com>
932 Fix "save breakpoints" for "catch" command.
933 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
936 2014-10-12 Miroslav Franc <mfranc@redhat.com>
938 Fix "save breakpoints" for "disable $bpnum" command.
939 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
941 2014-10-10 Pedro Alves <palves@redhat.com>
943 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
944 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
945 (HFILES_NO_SRCDIR): Remove solib-irix.h.
946 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
948 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
949 * configure.ac: Remove references to IRIX.
950 * configure.host: Add *-*-irix* to the obsolete hosts section.
951 Remove all other references to irix.
952 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
955 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
957 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
958 isn't valid, release the tdesc arch data and return NULL.
960 2014-10-10 Pedro Alves <palves@redhat.com>
962 * linux-tdep.c: Include observer.h.
963 (linux_inferior_data): New global.
964 (struct linux_info): New structure.
965 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
966 (get_linux_inferior_data): New functions.
967 (linux_vsyscall_range): Rename to ...
968 (linux_vsyscall_range_raw): ... this.
969 (linux_vsyscall_range): New function; handles caching.
970 (_initialize_linux_tdep): Register linux_inferior_data. Install
971 inferior_exit and inferior_appeared observers.
973 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
974 Pedro Alves <palves@redhat.com>
977 * solib-svr4.c (svr4_read_so_list): Rename to ...
978 (svr4_current_sos_1): ... this and change the function comment.
979 (svr4_current_sos): New function.
981 2014-10-10 Pedro Alves <palves@redhat.com>
983 * arch-utils.c (default_vsyscall_range): New function.
984 * arch-utils.h (default_vsyscall_range): New declaration.
985 * gdbarch.sh (vsyscall_range): New hook.
986 * gdbarch.h, gdbarch.c: Regenerate.
987 * linux-tdep.c (linux_vsyscall_range): New function.
988 (linux_init_abi): Install linux_vsyscall_range as
989 vsyscall_range gdbarch hook.
990 * memrange.c (address_in_mem_range): New function.
991 * memrange.h (address_in_mem_range): New declaration.
992 * symfile-mem.c (find_vdso_size): Delete function.
993 (add_vsyscall_page): Use gdbarch_vsyscall_range.
995 2014-10-10 Pedro Alves <palves@redhat.com>
997 * infrun.c (normal_stop): Fix typo in comment.
999 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1002 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1003 typo when using logical AND to determine instruction type.
1005 2014-10-09 Yao Qi <yao@codesourcery.com>
1007 * infrun.c (handle_signal_stop): Remove local variable
1010 2014-10-08 Stan Shebs <stan@codesourcery.com>
1012 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1014 2014-10-08 Gary Benson <gbenson@redhat.com>
1016 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1018 2014-10-08 Gary Benson <gbenson@redhat.com>
1020 * common/common-defs.h: Include common-exceptions.h.
1021 * exceptions.h: Do not include common-exceptions.h.
1023 2014-10-08 Gary Benson <gbenson@redhat.com>
1025 * common/common-defs.h: Include cleanups.h.
1026 * common/common-exceptions.c: Do not include cleanups.h.
1027 * utils.h: Likewise.
1029 2014-10-08 Gary Benson <gbenson@redhat.com>
1031 * ada-lang.c: Do not include exceptions.h.
1032 * ada-valprint.c: Likewise.
1033 * amd64-tdep.c: Likewise.
1034 * auto-load.c: Likewise.
1035 * block.c: Likewise.
1036 * break-catch-throw.c: Likewise.
1037 * breakpoint.c: Likewise.
1038 * btrace.c: Likewise.
1039 * c-lang.c: Likewise.
1040 * cli/cli-cmds.c: Likewise.
1041 * cli/cli-interp.c: Likewise.
1042 * cli/cli-script.c: Likewise.
1043 * completer.c: Likewise.
1044 * corefile.c: Likewise.
1045 * corelow.c: Likewise.
1046 * cp-abi.c: Likewise.
1047 * cp-support.c: Likewise.
1048 * cp-valprint.c: Likewise.
1049 * darwin-nat.c: Likewise.
1050 * dwarf2-frame-tailcall.c: Likewise.
1051 * dwarf2-frame.c: Likewise.
1052 * dwarf2loc.c: Likewise.
1053 * dwarf2read.c: Likewise.
1055 * event-loop.c: Likewise.
1056 * event-top.c: Likewise.
1057 * f-valprint.c: Likewise.
1058 * frame-unwind.c: Likewise.
1059 * frame.c: Likewise.
1060 * gdbtypes.c: Likewise.
1061 * gnu-v2-abi.c: Likewise.
1062 * gnu-v3-abi.c: Likewise.
1063 * guile/scm-auto-load.c: Likewise.
1064 * guile/scm-breakpoint.c: Likewise.
1065 * guile/scm-cmd.c: Likewise.
1066 * guile/scm-frame.c: Likewise.
1067 * guile/scm-lazy-string.c: Likewise.
1068 * guile/scm-param.c: Likewise.
1069 * guile/scm-symbol.c: Likewise.
1070 * guile/scm-type.c: Likewise.
1071 * hppa-hpux-tdep.c: Likewise.
1072 * i386-tdep.c: Likewise.
1073 * inf-loop.c: Likewise.
1074 * infcall.c: Likewise.
1075 * infcmd.c: Likewise.
1076 * infrun.c: Likewise.
1077 * interps.c: Likewise.
1078 * interps.h: Likewise.
1080 * linespec.c: Likewise.
1081 * linux-nat.c: Likewise.
1082 * linux-thread-db.c: Likewise.
1083 * m32r-rom.c: Likewise.
1085 * memory-map.c: Likewise.
1086 * mi/mi-cmd-break.c: Likewise.
1087 * mi/mi-cmd-stack.c: Likewise.
1088 * mi/mi-interp.c: Likewise.
1089 * mi/mi-main.c: Likewise.
1090 * monitor.c: Likewise.
1091 * nto-procfs.c: Likewise.
1092 * objc-lang.c: Likewise.
1093 * p-valprint.c: Likewise.
1094 * parse.c: Likewise.
1095 * ppc-linux-tdep.c: Likewise.
1096 * printcmd.c: Likewise.
1097 * probe.c: Likewise.
1098 * python/py-auto-load.c: Likewise.
1099 * python/py-breakpoint.c: Likewise.
1100 * python/py-cmd.c: Likewise.
1101 * python/py-finishbreakpoint.c: Likewise.
1102 * python/py-frame.c: Likewise.
1103 * python/py-framefilter.c: Likewise.
1104 * python/py-function.c: Likewise.
1105 * python/py-gdb-readline.c: Likewise.
1106 * python/py-inferior.c: Likewise.
1107 * python/py-infthread.c: Likewise.
1108 * python/py-lazy-string.c: Likewise.
1109 * python/py-linetable.c: Likewise.
1110 * python/py-param.c: Likewise.
1111 * python/py-prettyprint.c: Likewise.
1112 * python/py-symbol.c: Likewise.
1113 * python/py-type.c: Likewise.
1114 * python/py-value.c: Likewise.
1115 * python/python-internal.h: Likewise.
1116 * python/python.c: Likewise.
1117 * record-btrace.c: Likewise.
1118 * record-full.c: Likewise.
1119 * regcache.c: Likewise.
1120 * remote-fileio.c: Likewise.
1121 * remote-mips.c: Likewise.
1122 * remote.c: Likewise.
1123 * rs6000-aix-tdep.c: Likewise.
1124 * rs6000-nat.c: Likewise.
1126 * solib-darwin.c: Likewise.
1127 * solib-dsbt.c: Likewise.
1128 * solib-frv.c: Likewise.
1129 * solib-ia64-hpux.c: Likewise.
1130 * solib-spu.c: Likewise.
1131 * solib-svr4.c: Likewise.
1132 * solib.c: Likewise.
1133 * spu-tdep.c: Likewise.
1134 * stack.c: Likewise.
1135 * stap-probe.c: Likewise.
1136 * symfile-mem.c: Likewise.
1137 * symmisc.c: Likewise.
1138 * target.c: Likewise.
1139 * thread.c: Likewise.
1141 * tracepoint.c: Likewise.
1142 * tui/tui-interp.c: Likewise.
1143 * typeprint.c: Likewise.
1144 * utils.c: Likewise.
1145 * valarith.c: Likewise.
1146 * valops.c: Likewise.
1147 * valprint.c: Likewise.
1148 * value.c: Likewise.
1149 * varobj.c: Likewise.
1150 * windows-nat.c: Likewise.
1151 * xml-support.c: Likewise.
1153 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1155 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1157 (extended_mips16_next_pc): Update accordingly.
1159 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1161 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1163 (micromips_instruction_is_compact_branch): Likewise.
1164 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1165 or a compact jump, reaching a jump delay slot, or seeing a
1166 second non-prologue instruction.
1167 (micromips_scan_prologue): Also terminate scanning upon seeing a
1168 compact branch or jump, or reaching a branch or jump delay slot.
1169 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1170 or jump delay slot, or seeing a second non-prologue instruction.
1171 (mips32_instruction_has_delay_slot): Retain instruction
1172 examination code only, update arguments accordingly and move
1173 instruction fetch pieces to...
1174 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1175 (micromips_instruction_has_delay_slot): Likewise and to...
1176 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1177 (mips16_instruction_has_delay_slot): Likewise and to...
1178 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1179 (mips_single_step_through_delay): Update accordingly.
1180 (mips_adjust_breakpoint_address): Likewise.
1182 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1184 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1185 !mustbe32 also return 1 for 32-bit instructions.
1186 (mips16_instruction_has_delay_slot): Likewise. Add an
1187 explanatory comment.
1189 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1191 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1194 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1196 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1198 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1199 for the breakpoint's address. Don't preinitialize `placed_size'.
1200 (insert_bp_location): Set `reqstd_address' rather than
1202 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1203 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1205 (bkpt_remove_location): Likewise.
1206 (deprecated_insert_raw_breakpoint): Likewise.
1207 (deprecated_remove_raw_breakpoint): Likewise.
1208 (find_single_step_breakpoint): Likewise.
1209 * mem-break.c (default_memory_insert_breakpoint): Use
1210 `reqstd_address' for the breakpoint's address. Don't set
1211 `placed_address' or `placed_size' if breakpoint contents couldn't
1212 have been determined.
1213 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1214 the breakpoint's address.
1215 (remote_insert_hw_breakpoint): Likewise. Don't set
1216 `placed_address' or `placed_size' if breakpoint couldn't have been
1218 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1219 `reqstd_address' for the breakpoint's address.
1220 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1221 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1222 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1223 * microblaze-linux-tdep.c
1224 (microblaze_linux_memory_remove_breakpoint): Likewise.
1225 * monitor.c (monitor_insert_breakpoint): Likewise.
1226 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1227 (procfs_insert_hw_breakpoint): Likewise.
1228 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1229 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1230 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1231 * remote-mips.c (mips_insert_breakpoint): Likewise.
1232 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1234 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1236 * valops.c (value_assign): Check for bit field assignments
1237 before calling architecture-specific register value
1238 conversion functions.
1240 2014-10-03 Pierre Muller <muller@sourceware.org>
1242 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1244 2014-10-02 Pedro Alves <palves@redhat.com>
1246 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1247 threads_are_executing.
1248 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1250 * gdbthread.h (threads_are_executing): Declare.
1251 (handle_signal_stop) <random signals>: Don't print about the
1252 signal here if stopping.
1253 (end_stepping_range): Don't notify observers here.
1254 (normal_stop): Update the thread list. If stopped by a random
1255 signal or a stepping range ended, notify observers.
1256 * thread.c (threads_executing): New global.
1257 (init_thread_list): Clear 'threads_executing'.
1258 (set_executing): Set or clear 'threads_executing'.
1259 (threads_are_executing): New function.
1260 (update_threads_executing): New function.
1261 (update_thread_list): Use it.
1263 2014-10-02 Pedro Alves <palves@redhat.com>
1265 PR breakpoints/17431
1266 * breakpoint.c (update_breakpoints_after_exec): Don't create
1267 overlay, longjmp, std terminate nor exception breakpoints here.
1269 2014-10-02 Pedro Alves <palves@redhat.com>
1271 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1273 * inferior.c (find_inferior_for_program_space): Give preference to
1274 the current inferior.
1275 * inferior.h (find_inferior_for_program_space): Update comment.
1276 * progspace.c (switch_to_program_space_and_thread): Prefer the
1277 current inferior if it's bound to the program space requested. If
1278 the inferior found doesn't have a PID yet, don't bother looking up
1280 * progspace.h (switch_to_program_space_and_thread): Adjust
1282 * thread.c (any_thread_of_process, any_live_thread_of_process):
1283 Give preference to the current thread.
1285 2014-10-01 Pedro Alves <palves@redhat.com>
1287 * breakpoint.c (insert_bp_location): Error out if inserting a
1288 software breakpoint at a read-only address.
1289 * target.c (memory_xfer_check_region): New function, factored out
1291 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1293 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1294 against the memory region attributes.
1296 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1298 * NEWS: Announce new exit-code field in -list-thread-groups
1300 * inferior.c (exit_inferior_1): Don't clear exit code.
1301 (inferior_appeared): Clear exit code.
1302 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1305 2014-10-01 Pedro Alves <palves@redhat.com>
1307 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1308 GENERATED" along with emacs/vi read-only markers.
1309 * regformats/aarch64.dat: Regenerate.
1310 * regformats/arm-with-iwmmxt.dat: Regenerate.
1311 * regformats/arm-with-neon.dat: Regenerate.
1312 * regformats/arm-with-vfpv2.dat: Regenerate.
1313 * regformats/arm-with-vfpv3.dat: Regenerate.
1314 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1315 * regformats/i386/amd64-avx.dat: Regenerate.
1316 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1317 * regformats/i386/amd64-avx512.dat: Regenerate.
1318 * regformats/i386/amd64-linux.dat: Regenerate.
1319 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1320 * regformats/i386/amd64-mpx.dat: Regenerate.
1321 * regformats/i386/amd64.dat: Regenerate.
1322 * regformats/i386/i386-avx-linux.dat: Regenerate.
1323 * regformats/i386/i386-avx.dat: Regenerate.
1324 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1325 * regformats/i386/i386-avx512.dat: Regenerate.
1326 * regformats/i386/i386-linux.dat: Regenerate.
1327 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1328 * regformats/i386/i386-mmx.dat: Regenerate.
1329 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1330 * regformats/i386/i386-mpx.dat: Regenerate.
1331 * regformats/i386/i386.dat: Regenerate.
1332 * regformats/i386/x32-avx-linux.dat: Regenerate.
1333 * regformats/i386/x32-avx.dat: Regenerate.
1334 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1335 * regformats/i386/x32-avx512.dat: Regenerate.
1336 * regformats/i386/x32-linux.dat: Regenerate.
1337 * regformats/i386/x32.dat: Regenerate.
1338 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1339 * regformats/mips-dsp-linux.dat: Regenerate.
1340 * regformats/mips-linux.dat: Regenerate.
1341 * regformats/mips64-dsp-linux.dat: Regenerate.
1342 * regformats/mips64-linux.dat: Regenerate.
1343 * regformats/nios2-linux.dat: Regenerate.
1344 * regformats/rs6000/powerpc-32.dat: Regenerate.
1345 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1346 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1347 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1348 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1349 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1350 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1351 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1352 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1353 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1354 * regformats/s390-linux32.dat: Regenerate.
1355 * regformats/s390-linux32v1.dat: Regenerate.
1356 * regformats/s390-linux32v2.dat: Regenerate.
1357 * regformats/s390-linux64.dat: Regenerate.
1358 * regformats/s390-linux64v1.dat: Regenerate.
1359 * regformats/s390-linux64v2.dat: Regenerate.
1360 * regformats/s390-te-linux64.dat: Regenerate.
1361 * regformats/s390x-linux64.dat: Regenerate.
1362 * regformats/s390x-linux64v1.dat: Regenerate.
1363 * regformats/s390x-linux64v2.dat: Regenerate.
1364 * regformats/s390x-te-linux64.dat: Regenerate.
1365 * regformats/tic6x-c62x-linux.dat: Regenerate.
1366 * regformats/tic6x-c62x.dat: Regenerate.
1367 * regformats/tic6x-c64x-linux.dat: Regenerate.
1368 * regformats/tic6x-c64x.dat: Regenerate.
1369 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1370 * regformats/tic6x-c64xp.dat: Regenerate.
1372 2014-10-01 Pedro Alves <palves@redhat.com>
1374 * features/Makefile: Update comments.
1375 (XMLTOC): List all xml files we build C files from.
1376 (clean-cfiles): New rule.
1378 2014-10-01 Pedro Alves <palves@redhat.com>
1380 * features/i386/amd64-avx512-linux.c: Regenerate.
1381 * features/i386/amd64-avx512.c: Regenerate.
1382 * features/i386/x32-avx512-linux.c: Regenerate.
1383 * features/i386/x32-avx512.c: Regenerate.
1385 2014-10-01 Pedro Alves <palves@redhat.com>
1387 * features/Makefile (WHICH): Remove arm-with-m,
1388 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1390 2014-10-01 Pedro Alves <palves@redhat.com>
1392 * features/Makefile (clean): New rule.
1394 2014-10-01 Pedro Alves <palves@redhat.com>
1396 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1397 (zmm14h): Add missing end quotes.
1399 2014-10-01 Pedro Alves <palves@redhat.com>
1401 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1402 * features/aarch64.c: Regenerate.
1404 2014-09-30 Don Breazeal <donb@codesourcery.com>
1406 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1407 code so as to work with follow_fork_inferior.
1408 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1409 (inf_ttrace_create_inferior): Remove reference to
1410 inf_ttrace_vfork_ppid.
1411 (inf_ttrace_attach): Ditto.
1412 (inf_ttrace_detach): Ditto.
1413 (inf_ttrace_kill): Use current_inferior instead of
1414 inf_ttrace_vfork_ppid.
1415 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1416 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1417 inferior away from the parent.
1418 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1420 (follow_fork_inferior): New function.
1421 (follow_inferior_reset_breakpoints): Make function static.
1422 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1423 * linux-nat.c (linux_child_follow_fork): Move target-independent
1424 code to infrun.c:follow_fork_inferior.
1426 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1428 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1429 * gdbarch.c: Regenerate.
1430 * gdbarch.h: Likewise.
1431 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1432 gdbarch method 'regset_from_core_section'.
1433 (get_core_register_section): Remove handling for the case that
1434 regset == NULL and regset_from_core_section is defined.
1435 (get_core_registers): Drop check for deleted method.
1436 * procfs.c (procfs_do_thread_registers): Adjust comment.
1438 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1440 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1441 (linux_nat_make_corefile_notes): Remove.
1442 (linux_target_install_ops): Do not set target method
1443 'make_corefile_notes'.
1444 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1446 (linux_corefile_thread_callback): Instead of args->collect, call
1447 linux_collect_thread_registers.
1448 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1449 NULL unless there is a regset iterator.
1450 (linux_make_corefile_notes_1): Remove.
1451 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1452 by linux_make_corefile_notes.
1453 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1455 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1457 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1458 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1460 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1462 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1464 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1465 (xtensa_iterate_over_regset_sections): New.
1466 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1470 * vax-tdep.c (vax_regset_from_core_section): Remove.
1471 (vax_iterate_over_regset_sections): New.
1472 (vax_gdbarch_init): Adjust gdbarch initialization.
1474 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1476 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1477 (tilegx_regset_from_core_section): Remove.
1478 (tilegx_iterate_over_regset_sections): New.
1479 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1481 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1483 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1484 (sparc_iterate_over_regset_sections): New.
1485 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1486 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1488 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1489 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1490 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1491 target method 'make_corefile_notes'.
1493 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1495 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1496 'sizeof_gregset' and 'sizeof_fpregset'.
1497 * sh-tdep.c (sh_regset_from_core_section): Remove.
1498 (sh_iterate_over_regset_sections): New.
1499 (sh_gdbarch_init): Adjust gdbarch initialization.
1500 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1502 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1505 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1507 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1508 (score7_linux_iterate_over_regset_sections): New.
1509 (score_gdbarch_init): Adjust gdbarch initialization.
1511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1513 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1515 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1516 method 'make_corefile_notes'.
1517 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1518 (ppcfbsd_regset_from_core_section): Remove.
1519 (ppcfbsd_iterate_over_regset_sections): New.
1520 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1522 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1523 (ppcnbsd_iterate_over_regset_sections): New.
1524 (ppcnbsd_init_abi): Adjust.
1525 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1526 (ppcobsd_iterate_over_regset_sections): New.
1527 (ppcobsd_init_abi): Adjust.
1528 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1529 (rs6000_aix_iterate_over_regset_sections): New.
1530 (rs6000_aix_init_osabi): Adjust.
1532 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1534 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1535 (nios2_regset_from_core_section): Remove.
1536 (nios2_iterate_over_regset_sections): New.
1537 (nios2_linux_init_abi): Adjust gdbarch initialization.
1539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1541 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1542 (am33_iterate_over_regset_sections): New.
1543 (am33_linux_init_osabi): Adjust gdbarch initialization.
1545 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1547 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1548 (mips_linux_iterate_over_regset_sections): New.
1549 (mips_linux_init_abi): Adjust gdbarch initialization.
1550 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1551 (mips64obsd_iterate_over_regset_sections): New.
1552 (mips64obsd_init_abi): Adjust.
1553 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1554 (mipsnbsd_iterate_over_regset_sections): New.
1555 (mipsnbsd_init_abi): Adjust.
1557 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1559 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1560 (m88k_iterate_over_regset_sections): New.
1561 (m88k_gdbarch_init): Adjust gdbarch initialization.
1563 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1565 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1566 (ia64_linux_iterate_over_regset_sections): New.
1567 (ia64_linux_init_abi): Adjust gdbarch initialization.
1569 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1571 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1572 (m68kbsd_iterate_over_regset_sections): New.
1573 (m68kbsd_init_abi): Adjust gdbarch initialization.
1574 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1575 (m68k_linux_iterate_over_regset_sections): New.
1576 (m68k_linux_init_abi): Adjust gdbarch initialization.
1578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1580 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1581 (m32r_linux_regset_from_core_section): Remove.
1582 (m32r_linux_iterate_over_regset_sections): New.
1583 (m32r_linux_init_abi): Adjust gdbarch initialization.
1585 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1587 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1588 (amd64obsd_iterate_over_regset_sections): New.
1589 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1590 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1592 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1593 regset_from_core_section initialization.
1594 * i386-tdep.c (i386_regset_from_core_section): Remove.
1595 (i386_iterate_over_regset_sections): New.
1596 (i386_gdbarch_init): Adjust gdbarch initialization.
1597 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1598 (i386_iterate_over_regset_sections): New prototype.
1599 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1601 (i386obsd_aout_iterate_over_regset_sections): New.
1602 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1603 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1605 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1606 (amd64fbsd_init_abi): Call fbsd_init_abi.
1607 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1608 (i386fbsd4_init_abi): Call fbsd_init_abi.
1609 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1610 target method 'make_corefile_notes'.
1611 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1613 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1615 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1616 (hppa_hpux_iterate_over_regset_sections): New.
1617 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1618 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1619 (hppa_linux_iterate_over_regset_sections): New.
1620 (hppa_linux_init_abi): Adjust.
1621 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1622 (hppanbsd_iterate_over_regset_sections): New.
1623 (hppanbsd_init_abi): Adjust.
1624 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1625 (hppaobsd_iterate_over_regset_sections): New.
1626 (hppaobsd_init_abi): Adjust.
1628 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1630 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1631 (frv_linux_iterate_over_regset_sections): New.
1632 (frv_linux_init_abi): Adjust gdbarch initialization.
1634 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1636 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1637 (armbsd_iterate_over_regset_sections): New prototype.
1638 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1639 (armbsd_iterate_over_regset_sections): New.
1640 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1643 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1645 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1646 (alpha_linux_iterate_over_regset_sections): New.
1647 (alpha_linux_init_abi): Adjust gdbarch initialization.
1648 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1650 (alphanbsd_iterate_over_regset_sections): New prototype.
1652 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1654 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1656 (aarch64_linux_iterate_over_regset_sections): New.
1657 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1659 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1661 * fbsd-tdep.c: New file.
1662 * fbsd-tdep.h: New file.
1663 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1664 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1665 (ALLDEPFILES): Add fbsd-tdep.c.
1667 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1669 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1671 * gdbarch.h: Regenerate.
1672 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1674 (get_core_register_section): Add parameter 'regset' and use it, if
1675 set. Add parameter 'min_size' and verify the bfd section size
1677 (get_core_registers_cb): Add parameter 'regset' and pass it to
1678 get_core_register section. For the "standard" register sections
1679 ".reg" and ".reg2", set an appropriate default for human_name.
1680 (get_core_registers): Don't abort when the gdbarch has an iterator
1681 but no regset_from_core_section. Add NULL/0 for parameters
1682 'regset'/'min_size' in calls to get_core_register_section.
1683 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1684 'regset' and use it instead of calling the
1685 regset_from_core_section gdbarch method.
1686 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1687 * i386-tdep.c (i386_supply_xstateregset)
1688 (i386_collect_xstateregset, i386_xstateregset): Moved to
1690 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1692 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1693 core file support only if the regset iterator hasn't been set.
1694 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1695 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1696 Moved from i386-tdep.c and renamed to *_linux*.
1697 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1698 each callback invocation. Allow any .reg-xstate size when reading
1700 * amd64-tdep.c (amd64_supply_xstateregset)
1701 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1703 (amd64_regset_from_core_section): Remove.
1704 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1705 install an amd64-specific regset_from_core_section gdbarch method.
1706 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1707 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1708 Moved from amd64-tdep.c and renamed to *_linux*.
1709 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1710 to each callback invocation. Allow any .reg-xstate size when
1711 reading from a core file.
1712 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1713 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1714 each callback invocation.
1715 (arm_linux_init_abi): No longer set the regset_from_core_section
1717 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1718 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1719 each callback invocation.
1720 (ppc_linux_init_abi): No longer set the regset_from_core_section
1722 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1723 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1724 (s390_regset_from_core_section): Remove.
1725 (s390_iterate_over_regset_sections): Add regset parameter to each
1726 callback invocation.
1727 (s390_gdbarch_init): No longer set the regset_from_core_section
1728 gdbarch method. Drop initialization of deleted tdep fields.
1730 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1732 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1733 (amd64_linux_iterate_over_regset_sections): New.
1734 (amd64_linux_init_abi_common): Don't install the regset section
1735 list, but the new iterator in gdbarch.
1736 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1737 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1738 (arm_linux_iterate_over_regset_sections): ...here. New function.
1739 (arm_linux_init_abi): Set iterator instead of section list.
1740 * corelow.c (get_core_registers_cb): New function, logic moved
1742 (get_core_registers): ...loop body here. Use new iterator method
1743 instead of walking through the regset section list.
1744 * gdbarch.sh: Remove 'core_regset_sections'. New method
1745 'iterate_over_regset_sections'. New typedef
1746 'iterate_over_regset_sections_cb'.
1747 * gdbarch.c: Regenerate.
1748 * gdbarch.h: Likewise.
1749 * i386-linux-tdep.c (i386_linux_regset_sections)
1750 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1752 (i386_linux_iterate_over_regset_sections): New.
1753 (i386_linux_init_abi): Don't choose a regset section list, but
1754 install new iterator in gdbarch.
1755 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1756 (linux_collect_regset_section_cb): New function, logic moved
1758 (linux_collect_thread_registers): ...loop body here. Use iterator
1759 method instead of walking through list.
1760 (linux_make_corefile_notes_1): Check for presence of iterator
1761 method instead of regset section list.
1762 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1763 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1764 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1765 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1766 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1767 (ppc_linux_init_abi): Don't choose from above regset section
1768 lists, but install new iterator in gdbarch.
1769 * regset.h (struct core_regset_section): Remove.
1770 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1771 have_linux_v1, have_linux_v2, and have_tdb.
1772 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1773 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1774 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1775 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1776 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1777 (s390_iterate_over_regset_sections): ...here. New function. Use
1779 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1780 regset section lists, but install new iterator.
1782 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1784 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1786 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1788 * progspace.c (print_program_space): Don't prune program spaces
1789 before printing them.
1791 2014-09-25 Pedro Alves <palves@redhat.com>
1793 * infrun.c (user_visible_resume_ptid): Don't check
1794 singlestep_breakpoints_inserted_p.
1796 2014-09-25 Pedro Alves <palves@redhat.com>
1798 * breakpoint.c (should_be_inserted): Add debug output.
1800 2014-09-25 Pedro Alves <palves@redhat.com>
1802 * infrun.c (stepping_past_instruction_at)
1803 (clear_exit_convenience_vars): Point at infrun.h instead of
1805 (handle_signal_stop): Fix typo.
1807 2014-09-24 Yao Qi <yao@codesourcery.com>
1809 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1812 2014-09-22 Gary Benson <gbenson@redhat.com>
1814 * target.c (target_stop): Updated comment.
1816 2014-09-22 Gary Benson <gbenson@redhat.com>
1818 * target/target.h (target_stop_ptid): Renamed as...
1819 (target_stop_and_wait): New function. Updated comment.
1821 (target_continue_ptid): Renamed as...
1822 (target_continue_no_signal): New function. Updated comment.
1825 2014-09-22 Pedro Alves <palves@redhat.com>
1827 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1829 * breakpoint.c (enum ugll_insert_mode): New enum.
1830 (always_inserted_mode): Now a plain boolean.
1831 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1832 (breakpoints_always_inserted_mode): Delete.
1833 (breakpoints_should_be_inserted_now): New function.
1834 (insert_breakpoints): Pass UGLL_INSERT to
1835 update_global_location_list instead of calling
1836 insert_breakpoint_locations manually.
1837 (create_solib_event_breakpoint_1): New, factored out from ...
1838 (create_solib_event_breakpoint): ... this.
1839 (create_and_insert_solib_event_breakpoint): Use
1840 create_solib_event_breakpoint_1 instead of calling
1841 insert_breakpoint_locations manually.
1842 (update_global_location_list): Change parameter type from boolean
1843 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1844 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1845 (update_global_location_list_nothrow): Change parameter type from
1846 boolean to enum ugll_insert_mode.
1847 (_initialize_breakpoint): "breakpoint always-inserted" option is
1848 now a boolean command. Update help text.
1849 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1850 (breakpoints_should_be_inserted_now): New declaration.
1851 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1852 Remove breakpoints_always_inserted_mode check.
1853 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1854 * remote.c (remote_start_remote): Likewise.
1856 2014-09-22 Pedro Alves <palves@redhat.com>
1858 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1859 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1860 Instead, pass UGLL_INSERT to update_global_location_list.
1861 (update_global_location_list): Change parameter type from boolean
1862 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1863 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1864 (create_solib_event_breakpoint_1): New, factored out from ...
1865 (create_solib_event_breakpoint): ... this.
1866 (create_and_insert_solib_event_breakpoint): Use
1867 create_solib_event_breakpoint_1 instead of calling
1868 insert_breakpoint_locations manually.
1869 (update_global_location_list): Handle UGLL_INSERT.
1871 2014-09-22 Pedro Alves <palves@redhat.com>
1873 * breakpoint.c (enum ugll_insert_mode): New enum.
1874 (update_global_location_list)
1875 (update_global_location_list_nothrow): Change parameter type from
1876 boolean to enum ugll_insert_mode. All callers adjusted.
1878 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1880 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1881 SystemTap support in GDB.
1883 2014-09-19 Don Breazeal <donb@codesourcery.com>
1885 * linux-nat.c (linux_handle_extended_wait): Call
1886 linux_ptrace_get_extended_event.
1887 (wait_lwp): Call linux_is_extended_waitstatus.
1888 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1889 and linux_is_extended_waitstatus.
1890 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1891 linux_ptrace_get_extended_event.
1892 (linux_ptrace_get_extended_event): New function.
1893 (linux_is_extended_waitstatus): New function.
1894 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1895 (linux_is_extended_waitstatus): New declarations.
1897 2014-09-19 Yao Qi <yao@codesourcery.com>
1899 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1900 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1901 comments. Callers update.
1902 (dwarf_decode_lines): Likewise.
1903 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1904 comments. Skip the line table if 'lowpc' is greater than
1905 'address'. Don't check
1906 dwarf2_per_objfile->has_section_at_zero.
1908 2014-09-18 Doug Evans <dje@google.com>
1910 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1911 * python/py-symtab.c (stpy_get_producer): New function.
1912 (symtab_object_getset): Add "producer" attribute.
1914 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1917 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1918 (do_captured_read_memory_integer): Remove.
1919 (safe_read_memory_integer): Use target_read_memory directly instead
1920 of catching errors in do_captured_read_memory_integer.
1922 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1924 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1927 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1929 * objc-lang.c (find_implementation_from_class): Remove dead code.
1931 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1934 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1935 "fprintf_unfiltered (gdb_stdlog...)".
1937 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1939 PR breakpoints/12526
1940 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1942 * breakpoint.c (watch_command_1): Use these fields to retain
1943 bitfield information.
1944 (extract_bitfield_from_watchpoint_value): New function.
1945 (watchpoint_check): Use it.
1946 (update_watchpoint): Use it. Optimize the address and length of a
1947 HW watchpoint pointing to a bitfield.
1948 * value.h (unpack_value_bitfield): New prototype.
1949 * value.c (unpack_value_bitfield): Make extern.
1951 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1953 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1955 * gnu-nat.c (inf_threads): New function.
1956 * gnu-nat.h (inf_threads_ftype): New typedef.
1957 (inf_threads): New declaration.
1958 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1959 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1960 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1961 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1962 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1963 (i386_gnu_dr_get_control): New functions.
1964 (reg_addr): New structure.
1965 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1966 i386 debugging register hooks.
1967 * NEWS: Mention this.
1969 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1971 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1972 vector data transfer instructions.
1973 (arm_record_coproc_data_proc): Updated.
1975 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1977 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1978 arm_record_exreg_ld_st_insn.
1979 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1982 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1984 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1985 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1986 processing instructions.
1988 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1990 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1991 for advance SIMD struct ld/st insn.
1992 (thumb2_record_decode_insn_handler): Replace stub handler with
1993 thumb2_record_asimd_struct_ld_st.
1995 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1997 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1998 for asimd, vfp and coprocessor insns.
1999 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2000 and coprocessor insns.
2001 (thumb2_record_coproc_insn): New function.
2002 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2004 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2007 2014-09-13 Doug Evans <xdje42@gmail.com>
2009 * NEWS: Mention new "queue-signal" command.
2010 * infcmd.c (queue_signal_command): New function.
2011 (_initialize_infcmd): Add new queue-signal command.
2013 2014-09-13 Doug Evans <xdje42@gmail.com>
2015 * linux-nat.c (wait_lwp): Add debugging printf.
2016 (linux_nat_wait_1): Ditto.
2018 2014-09-12 Pedro Alves <palves@redhat.com>
2020 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2021 (create_and_insert_solib_event_breakpoint): New functions.
2022 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2023 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2024 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2025 (remove_dbx_link_breakpoint): Delete function.
2026 (insert_dbx_link_bpt_in_file): Use
2027 create_and_insert_solib_event_breakpoint instead of
2028 deprecated_insert_raw_breakpoint.
2029 (procfs_wait): Don't check whether we hit __dbx_link here.
2030 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2032 * solib-irix.c (base_breakpoint): Delete global.
2033 (disable_break): Delete function.
2034 (enable_break): Use create_solib_event_breakpoint
2035 instead of deprecated_insert_raw_breakpoint.
2036 (irix_solib_handle_event): New function.
2037 (irix_solib_create_inferior_hook): Don't run the target or disable
2038 the mapping-complete breakpoint here.
2039 (_initialize_irix_solib): Install irix_solib_handle_event as
2040 so_ops->handle_event hook.
2042 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2043 Ulrich Weigand <uweigand@de.ibm.com>
2046 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2047 instead of read_memory_unsigned_integer.
2049 2014-09-12 Gary Benson <gbenson@redhat.com>
2051 * nat/linux-waitpid.c: Include common-defs.h.
2052 [GDBSERVER]: Add FIXME comment.
2053 [!GDBSERVER]: Don't include defs.h or signal.h.
2054 (linux_debug) [!GDBSERVER]: Remove empty block.
2056 2014-09-12 Gary Benson <gbenson@redhat.com>
2058 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2059 Don't include defs.h or server.h.
2061 2014-09-12 Gary Benson <gbenson@redhat.com>
2063 * nat/linux-btrace.c: Include common-defs.h.
2064 Don't include defs.h, server.h or gdbthread.h.
2065 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2067 2014-09-12 Gary Benson <gbenson@redhat.com>
2069 * common/agent.c: Include common-defs.h.
2070 Don't include defs.h or server.h.
2071 * common/buffer.c: Likewise.
2072 * common/common-debug.c: Likewise.
2073 * common/common-utils.c: Likewise.
2074 * common/errors.c: Likewise.
2075 * common/filestuff.c: Likewise.
2076 * common/format.c: Likewise.
2077 * common/gdb_vecs.c: Likewise.
2078 * common/print-utils.c: Likewise.
2079 * common/ptid.c: Likewise.
2080 * common/rsp-low.c: Likewise.
2081 * common/signals.c: Likewise.
2082 * common/vec.c: Likewise.
2083 * common/xml-utils.c: Likewise.
2084 * nat/linux-osdata.c: Likewise.
2085 * nat/linux-procfs.c: Likewise.
2086 * nat/linux-ptrace.c: Likewise.
2087 * nat/mips-linux-watch.c: Likewise.
2088 * target/waitstatus.c: Likewise.
2090 2014-09-12 Tom Tromey <tromey@redhat.com>
2091 Gary Benson <gbenson@redhat.com>
2093 * common/common-regcache.h: New file.
2094 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2095 * regcache.h: Include common-regcache.h.
2096 (regcache_read_pc): Don't declare.
2097 * regcache.c (get_thread_regcache_for_ptid): New function.
2098 * nat/linux-btrace.c: Don't include regcache.h.
2099 Include common-regcache.h.
2100 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2102 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2104 * regcache.h (struct regset): Declare.
2106 2014-09-11 Pedro Alves <palves@redhat.com>
2109 * main.c: Include "infrun.h".
2110 (catch_command_errors, catch_command_errors_const): Wait for the
2111 foreground command to complete.
2112 * top.c (maybe_wait_sync_command_done): New function, factored out
2114 (maybe_wait_sync_command_done): ... here.
2115 * top.h (maybe_wait_sync_command_done): New declaration.
2117 2014-09-11 Tom Tromey <tromey@redhat.com>
2118 Gary Benson <gbenson@redhat.com>
2120 * common/symbol.h: New file.
2121 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2122 * minsyms.c (find_minimal_symbol_address): New function.
2123 * common/agent.c: Include common/symbol.h.
2124 [!GDBSERVER]: Don't include objfiles.h.
2125 (agent_look_up_symbols): Use find_minimal_symbol_address.
2127 2014-09-11 Gary Benson <gbenson@redhat.com>
2129 * target/target.h (target_stop_ptid, target_continue_ptid):
2131 * target.c (target_stop_ptid, target_continue_ptid): New
2133 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2134 (agent_run_command): Always use target_stop_ptid and
2135 target_continue_ptid.
2137 2014-09-11 Tom Tromey <tromey@redhat.com>
2138 Gary Benson <gbenson@redhat.com>
2140 * target/target.h: New file.
2141 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2142 * target.h: Include target/target.h.
2143 (target_read_memory, target_write_memory): Don't declare.
2144 * target.c (target_read_uint32): New function.
2145 * common/agent.c: Include target/target.h.
2146 [!GDBSERVER]: Don't include target.h.
2147 (helper_thread_id): Type changed to uint32_t.
2148 (agent_get_helper_thread_id): Use target_read_uint32.
2149 (agent_run_command): Always use target_read_memory and
2150 target_write_memory.
2151 (agent_capability): Type changed to uint32_t.
2152 (agent_capability_check): Use target_read_uint32.
2154 2014-09-11 Gary Benson <gbenson@redhat.com>
2156 * common/common-debug.h (show_debug_regs): Declare.
2157 * common/common-debug.c (show_debug_regs): Define.
2158 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2159 all uses with show_debug_regs. Replace all uses that considered
2160 debug_hw_points as a multi-value integer with straight boolean
2162 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2163 with show_debug_regs.
2164 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2165 all uses with show_debug_regs.
2166 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2167 uses with show_debug_regs.
2169 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2171 * findvar.c (address_from_register): Handle targets requiring
2172 a special conversion routine even for plain pointer types.
2174 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2176 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2177 (store_register): Do not call exec_one_dummy_insn.
2179 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2181 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2182 dereference it first. Use value_enclosing_type instead of
2184 (ada_array_length): Likewise.
2186 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2188 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2189 Adjust function implementation and documentation accordingly.
2190 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2191 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2192 Update call to ada_value_ptr_subscript.
2194 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2196 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2197 instead of VAL's type.
2199 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2201 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2203 2014-09-09 Doug Evans <xdje42@gmail.com>
2206 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2207 last parameter to pkg-config, not first.
2208 * configure.ac: Pass --with-guile provided pkg-config path to
2209 GDB_GUILE_PROGRAM_NAMES.
2210 * configure: Regenerate.
2212 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2214 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2217 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2219 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2220 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2221 the list of sections determining GDB_OSABI_IRIX.
2223 2014-09-09 James Hogan <james.hogan@imgtec.com>
2225 * MAINTAINERS (Write After Approval): Add "James Hogan".
2227 2014-09-09 James Hogan <james.hogan@imgtec.com>
2229 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2231 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2233 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2235 2014-09-08 Doug Evans <xdje42@gmail.com>
2238 * guile.c: #include <signal.h>.
2239 (_initialize_guile): Block SIGCHLD while initializing Guile.
2241 Replaces the following, which is reverted.
2243 2014-07-26 Doug Evans <xdje42@gmail.com>
2246 * configure.ac: Add check for header gc/gc.h.
2247 Add check for function setenv.
2248 * configure: Regenerate.
2249 * config.in: Regenerate.
2250 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2252 2014-09-08 Doug Evans <xdje42@gmail.com>
2254 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2255 with named constant. Fix style of pointer comparison.
2256 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2258 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2261 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2262 decide whether we display the command on "show user".
2263 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2264 printing command name.
2265 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2266 * cli/cli-decode.c (cli_user_command_p): Create helper function
2267 to verify whether cmd_list_element is a user-defined command.
2269 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2272 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2273 Fix goto out of TRY_CATCH.
2275 2014-09-06 Doug Evans <xdje42@gmail.com>
2276 Tom Tromey <tromey@redhat.com>
2279 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2280 $_any_caller_matches.
2281 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2282 * python/lib/gdb/function/caller_is.py: New file.
2284 2014-09-06 Doug Evans <xdje42@gmail.com>
2286 * infcmd.c (program_info): Fix typo.
2288 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2291 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2292 'number'. New variable 'has_digit'. Rewrite code to deal with
2293 subexpressions on SDT probes.
2295 2014-09-04 Pedro Alves <palves@redhat.com>
2297 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2298 the input is only one character long.
2300 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2303 * f-valprint.c (f_val_print): Specify the correct print option to
2304 use when printing integer values.
2306 2014-09-04 Gary Benson <gbenson@redhat.com>
2308 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2309 Remove code to cope with LWPs wrapped as PIDs.
2310 Add assertions to ensure no wrapped LWPs are passed.
2312 2014-09-04 Pedro Alves <palves@redhat.com>
2314 * value.c (value_ranges_copy_adjusted): New function, factored out
2316 (value_contents_copy_raw): ... here.
2317 (unpack_value_bits_as_long_1): Rename back to ...
2318 (unpack_bits_as_long): ... this. Remove 'original_value' and
2319 'result' parameters. Change return type to LONGEST.
2320 (unpack_value_bits_as_long): Delete.
2321 (unpack_value_field_as_long_1): Delete.
2322 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2323 (unpack_value_bitfield): New function.
2324 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2325 (value_fetch_lazy): Use unpack_value_bitfield.
2326 * value.h (unpack_value_bits_as_long): Delete declaration.
2328 2014-09-03 Sasha Smundak <asmundak@google.com>
2330 * python/py-frame.c (frapy_read_register): New function.
2332 2014-09-03 James Hogan <james.hogan@imgtec.com>
2334 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2335 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2337 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2340 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2342 (add_cmd): Set "completer_handle_brkchars" to NULL.
2343 * cli/cli-decode.h (struct cmd_list_element)
2344 <completer_handle_brkchars>: New field.
2345 * command.h (completer_ftype_void): New typedef.
2346 (set_cmd_completer_handle_brkchars): New prototype.
2347 * completer.c (set_gdb_completion_word_break_characters): New
2349 (complete_line_internal): Call "completer_handle_brkchars"
2350 callback from command.
2351 * completer.h: Include "command.h".
2352 (set_gdb_completion_word_break_characters): New prototype.
2353 * python/py-cmd.c (cmdpy_completer_helper): New function.
2354 (cmdpy_completer_handle_brkchars): New function.
2355 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2356 (cmdpy_init): Set completer_handle_brkchars to
2357 cmdpy_completer_handle_brkchars.
2359 2014-09-03 Gary Benson <gbenson@redhat.com>
2361 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2362 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2363 Loop conditions changed to equivalent form.
2364 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2365 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2366 ALL_DEBUG_ADDRESS_REGISTERS.
2368 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2370 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2373 2014-09-02 Doug Evans <dje@google.com>
2375 * typeprint.c (find_global_typedef): Fix comment.
2377 2014-09-02 Gary Benson <gbenson@redhat.com>
2379 * i386-nat.h: Renamed as...
2380 * x86-nat.h: New file. All type, function and variable name
2381 prefixes changed from "i386_" to "x86_". All references updated.
2382 * i386-nat.c: Renamed as...
2383 * x86-nat.c: New file. All type, function and variable name
2384 prefixes changed from "i386_" to "x86_". All references updated.
2385 * common/i386-xstate.h: Renamed as...
2386 * common/x86-xstate.h: New file. All type, function and variable
2387 name prefixes changed from "i386_" to "x86_". All references
2389 * nat/i386-cpuid.h: Renamed as...
2390 * nat/x86-cpuid.h: New file. All type, function and variable name
2391 prefixes changed from "i386_" to "x86_". All references updated.
2392 * nat/i386-gcc-cpuid.h: Renamed as...
2393 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2394 name prefixes changed from "i386_" to "x86_". All references
2396 * nat/i386-dregs.h: Renamed as...
2397 * nat/x86-dregs.h: New file. All type, function and variable name
2398 prefixes changed from "i386_" to "x86_". All references updated.
2399 * nat/i386-dregs.c: Renamed as...
2400 * nat/x86-dregs.c: New file. All type, function and variable name
2401 prefixes changed from "i386_" to "x86_". All references updated.
2403 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2405 * varobj.c (_initialize_varobj): Move to the end of file.
2407 2014-08-29 Gary Benson <gbenson@redhat.com>
2409 * common/common-exceptions.h: New file.
2410 * common/common-exceptions.c: Likewise.
2411 * Makefile.in (SFILES): Add common/common-exceptions.c.
2412 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2413 (COMMON_OBS): Add common-exceptions.o.
2414 (common-exceptions.o): New rule.
2415 * exceptions.h (common-exceptions.h): Include.
2416 (gdb_setjmp.h): Do not include.
2417 (return_reason): Moved to common-exceptions.h.
2418 (enum return_reason): Likewise.
2419 (RETURN_MASK): Likewise.
2420 (typedef return_mask): Likewise.
2421 (enum errors): Likewise.
2422 (struct gdb_exception): Likewise.
2423 (exceptions_state_mc_init): Likewise.
2424 (exceptions_state_mc_action_iter): Likewise.
2425 (exceptions_state_mc_action_iter_1): Likewise.
2426 (TRY_CATCH): Likewise.
2427 (throw_exception): Likewise.
2428 (throw_verror): Likewise.
2429 (throw_vquit): Likewise.
2430 (throw_error): Likewise.
2431 (throw_quit): Likewise.
2432 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2433 (enum catcher_action): Likewise.
2434 (struct catcher): Likewise.
2435 (current_catcher): Likewise.
2436 (catcher_list_size): Likewise.
2437 (exceptions_state_mc_init): Likewise.
2438 (catcher_pop): Likewise.
2439 (exceptions_state_mc): Likewise.
2440 (exceptions_state_mc_action_iter): Likewise.
2441 (exceptions_state_mc_action_iter_1): Likewise.
2442 (throw_exception): Likewise.
2443 (exception_messages): Likewise.
2444 (exception_messages_size): Likewise.
2445 (throw_it): Likewise.
2446 (throw_verror): Likewise.
2447 (throw_vquit): Likewise.
2448 (throw_error): Likewise.
2449 (throw_quit): Likewise.
2450 (prepare_to_throw_exception): New function.
2452 2014-08-29 Gary Benson <gbenson@redhat.com>
2454 * common/gdb_setjmp.h: New file.
2455 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2456 * configure.ac: Move sigsetjmp check...
2457 * common/common.m4: ...here.
2458 * configure: Regenerate.
2459 * cp-support.c (SIGJMP_BUF): Delete.
2460 (SIGSETJMP): Likewise.
2461 (SIGLONGJMP): Likewise.
2462 * exceptions.h (gdb_setjmp.h): Include.
2463 (setjmp.h): Do not include.
2464 (EXCEPTIONS_SIGJMP_BUF): Delete.
2465 (EXCEPTIONS_SIGSETJMP): Likewise.
2466 (EXCEPTIONS_SIGLONGJMP): Likewise.
2467 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2469 * exceptions.c: Likewise.
2471 2014-08-29 Gary Benson <gbenson@redhat.com>
2473 * cleanups.h: Moved to...
2474 * common/cleanups.h: New file.
2475 * cleanups.c: Moved to...
2476 * common/cleanups.c: New file. Include common-defs.h and
2477 cleanups.h. Do not include defs.h.
2478 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2479 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2480 (cleanups.o): New rule.
2482 2014-08-29 Gary Benson <gbenson@redhat.com>
2484 * common/errors.h (internal_warning): New declaration.
2485 (internal_vwarning): Likewise.
2486 * common/errors.c (internal_warning): New function.
2487 * utils.h (internal_warning): Don't declare.
2488 (internal_vwarning): Likewise.
2489 * utils.c (internal_warning): Removed.
2491 2014-08-29 Gary Benson <gbenson@redhat.com>
2493 * main.c (captured_main): Use warning during startup.
2494 Prefix startup warning messages with command name.
2496 2014-08-29 Gary Benson <gbenson@redhat.com>
2498 * main.c (captured_main): Handle usage errors with error.
2500 2014-08-29 Gary Benson <gbenson@redhat.com>
2502 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2503 exit pair with a call to error. Wrap the message with _().
2505 2014-08-29 Gary Benson <gbenson@redhat.com>
2507 * main.c (captured_main): Replace a fprintf/exit
2508 pair with a call to error. Wrap the message with _().
2510 2014-08-29 Gary Benson <gbenson@redhat.com>
2512 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2513 pairs with calls to error. Wrap the message with _().
2515 2014-08-29 Gary Benson <gbenson@redhat.com>
2517 * utils.c (vwarning): Protect calls to target_terminal_ours
2520 2014-08-29 Gary Benson <gbenson@redhat.com>
2522 * exceptions.c (print_flush): Protect calls to
2523 target_terminal_ours and wrap_here.
2525 2014-08-29 Gary Benson <gbenson@redhat.com>
2527 * utils.h (filtered_printing_initialized): New declaration.
2528 * utils.c (abort_with_message): New function.
2529 (internal_vproblem): Use abort_with_message for first level
2530 recursive internal problems, and if gdb_stderr is not set up.
2531 Protect calls to target_terminal_ours, begin_line and query.
2533 2014-08-28 Doug Evans <dje@google.com>
2535 * symtab.c (in_prologue): Move definition to better spot.
2536 (skip_prologue_using_sal): Ditto.
2538 2014-08-28 Doug Evans <dje@google.com>
2540 * symtab.c (find_function_start_sal): Move definition to better spot.
2542 2014-08-28 Yao Qi <yao@codesourcery.com>
2544 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2545 found_stack_adjust in forward scan. Remove condition check
2546 on found_stack_adjust which is always true. Indent the code.
2548 2014-08-28 Yao Qi <yao@codesourcery.com>
2550 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2551 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2552 (dwarf_decode_lines): Remove argument
2553 want_line_info. Remove condition check on want_line_info.
2556 2014-08-27 Doug Evans <dje@google.com>
2558 * dwarf2read.c (dwarf_record_line): Fix typo.
2560 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2562 * target.h (struct target_ops::to_terminal_save_ours): Remove
2564 (target_terminal_save_ours): Remove macro.
2565 * target-delegates.c: Regenerate.
2566 * inf-child.c (inf_child_target): Don't set the nonexistent
2567 field to_terminal_save_ours.
2568 * inferior.h (child_terminal_save_ours): Remove declaration.
2569 * terminal.h (gdb_save_tty_state): New declaration.
2570 * inflow.c (child_terminal_save_ours): Rename to ...
2571 (gdb_save_tty_state): ... this.
2572 * tui/tui.c: Include terminal.h.
2573 (tui_enable): Use gdb_save_tty_state instead of
2574 target_terminal_save_ours.
2575 (tui_disable): Likewise.
2577 2014-08-25 Doug Evans <dje@google.com>
2579 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2580 Pass NULL instead of 0 for context pointer.
2582 2014-08-25 Yao Qi <yao@codesourcery.com>
2584 * dwarf2read.c: Fix grammatical error.
2586 2014-08-24 Yao Qi <yao@codesourcery.com>
2588 * dwarf2read.c (scan_partial_symbols): Update comments.
2589 Rename argument 'need_pc' with 'set_addrmap'.
2590 (add_partial_namespace): Rename argument 'need_pc' with
2592 (add_partial_module): Likewise.
2593 (add_partial_subprogram): Likewise. Update comments.
2594 (dwarf2_name): Fix typo.
2596 2014-08-22 Doug Evans <dje@google.com>
2599 * dwarf2read.c (dwarf_record_line_p): New function.
2600 (dwarf_decode_lines_1): Ignore subsequent line number entries
2601 for the same line if any entry had a non-zero discriminator.
2603 2014-08-22 Doug Evans <dje@google.com>
2605 * buildsym.h (record_line_ftype): New typedef.
2606 (record_line): Use it.
2607 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2608 (dwarf_decode_lines_1): Call them.
2610 2014-08-22 Yao Qi <yao@codesourcery.com>
2612 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2613 (ctf_end): Remove code.
2615 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2617 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2618 (linux_make_corefile_notes): call update_thread_list, protected against
2621 2014-08-21 Pedro Alves <palves@redhat.com>
2623 * infcmd.c (attach_command): Remove comment.
2625 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2627 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2628 unsigned LONGEST to ULONGEST.
2630 2014-08-20 Pedro Alves <palves@redhat.com>
2632 * Makefile.in (check-read1): New rule.
2634 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2636 * value.c (value_from_contents_and_address): Strip resolved_type's
2637 typedef layers before checking its TYPE_DATA_LOCATION.
2639 2014-08-20 Pedro Alves <palves@redhat.com>
2641 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2643 2014-08-20 Yao Qi <yao@codesourcery.com>
2645 * amd64-tdep.c (amd64_classify): Add a blank line after the
2646 example. Move "*/" to a new line.
2647 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2648 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2649 * dwarf2read.c (psymtab_include_file_name): Likewise.
2651 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2652 Pedro Alves <palves@redhat.com>
2656 * ada-lang.c (coerce_unspec_val_to_type): Use
2657 value_contents_copy_raw.
2658 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2659 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2660 * cp-valprint.c (cp_print_value_fields): Let the common printing
2661 code handle optimized out values.
2662 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2663 * d-valprint.c (dynamic_array_type): Use
2664 value_bits_any_optimized_out.
2665 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2666 check_any_valid fields.
2667 (check_pieced_value_bits): Delete and inline ...
2668 (check_pieced_synthetic_pointer): ... here.
2669 (check_pieced_value_validity): Delete.
2670 (check_pieced_value_invalid): Delete.
2671 (pieced_value_funcs): Remove check_validity and check_any_valid
2673 (read_pieced_value): Use mark_value_bits_optimized_out.
2674 (write_pieced_value): Switch to use
2675 mark_value_bytes_optimized_out.
2676 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2677 of assuming the whole value is optimized out.
2678 * findvar.c (read_frame_register_value): Remove special handling
2679 of optimized out registers.
2680 (value_from_register): Use mark_value_bytes_optimized_out.
2681 * frame-unwind.c (frame_unwind_got_optimized): Use
2682 mark_value_bytes_optimized_out.
2683 * jv-valprint.c (java_value_print): Adjust.
2684 (java_print_value_fields): Let the common printing code handle
2685 optimized out values.
2686 * mips-tdep.c (mips_print_register): Remove special handling of
2687 optimized out registers.
2688 * opencl-lang.c (lval_func_check_validity): Delete.
2689 (lval_func_check_any_valid): Delete.
2690 (opencl_value_funcs): Remove check_validity and check_any_valid
2692 * p-valprint.c (pascal_object_print_value_fields): Let the common
2693 printing code handle optimized out values.
2694 * stack.c (read_frame_arg): Remove special handling of optimized
2695 out values. Fetch both VAL and ENTRYVAL before comparing
2696 contents. Adjust to value_available_contents_eq rename.
2697 * valprint.c (valprint_check_validity)
2698 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2699 (val_print_array_elements): Adjust.
2700 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2701 (value_bits_any_optimized_out): New function.
2702 (value_entirely_covered_by_range_vector): New function, factored
2703 out from value_entirely_unavailable.
2704 (value_entirely_unavailable): Reimplement.
2705 (value_entirely_optimized_out): New function.
2706 (insert_into_bit_range_vector): New function, factored out from
2707 mark_value_bits_unavailable.
2708 (mark_value_bits_unavailable): Reimplement.
2709 (struct ranges_and_idx): New struct.
2710 (find_first_range_overlap_and_match): New function, factored out
2711 from value_available_contents_bits_eq.
2712 (value_available_contents_bits_eq): Rename to ...
2713 (value_contents_bits_eq): ... this. Check both unavailable
2714 contents and optimized out contents.
2715 (value_available_contents_eq): Rename to ...
2716 (value_contents_eq): ... this.
2717 (allocate_value_lazy): Remove reference to the old optimized_out
2719 (allocate_optimized_out_value): Use
2720 mark_value_bytes_optimized_out.
2721 (require_not_optimized_out): Adjust to check whether the
2722 optimized_out vec is empty.
2723 (ranges_copy_adjusted): New function, factored out from
2724 value_contents_copy_raw.
2725 (value_contents_copy_raw): Also copy the optimized out ranges.
2726 Assert the destination ranges aren't optimized out.
2727 (value_contents_copy): Update comment, remove call to
2728 require_not_optimized_out.
2729 (value_contents_equal): Adjust to check whether the optimized_out
2731 (set_value_optimized_out, value_optimized_out_const): Delete.
2732 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2734 (value_entirely_optimized_out, value_bits_valid): Delete.
2735 (value_copy): Take a VEC copy of the 'optimized_out' field.
2736 (value_primitive_field): Remove special handling of optimized out.
2737 (value_fetch_lazy): Assert that lazy values have no unavailable
2738 regions. Use value_bits_any_optimized_out. Remove some special
2739 handling for optimized out values.
2740 * value.h: Add intro comment about <optimized out> and
2742 (struct lval_funcs): Remove check_validity and check_any_valid
2744 (set_value_optimized_out, value_optimized_out_const): Remove.
2745 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2747 (value_bits_any_optimized_out): New declaration.
2748 (value_bits_valid): Delete declaration.
2749 (value_available_contents_eq): Rename to ...
2750 (value_contents_eq): ... this, and extend comments.
2752 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2754 Fix -fsanitize=address on unreadable inferior strings.
2755 * valprint.c (val_print_string): Fix access before BUFFER.
2757 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2759 * target.c (target_struct_size): Remove.
2760 (target_struct_allocsize): Remove.
2761 (DEFAULT_ALLOCSIZE): Remove.
2762 (target_ops_p): New typedef.
2763 (DEF_VEC_P (target_ops_p)): New vector type.
2764 (target_structs): Change type to VEC (target_ops_p).
2765 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2766 (find_default_run_target): Rewrite for loop following changes to
2769 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2771 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2772 Adjust code accordingly. Adjust function description comment.
2774 2014-08-19 Yao Qi <yao@codesourcery.com>
2776 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2779 2014-08-19 Alan Modra <amodra@gmail.com>
2781 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2782 * config.in: Regenerate.
2783 * configure: Regenerate.
2785 2014-08-19 Tom Tromey <tromey@redhat.com>
2786 Gary Benson <gbenson@redhat.com>
2788 * common/common-debug.h: New file.
2789 * common/common-debug.c: Likewise.
2790 * debug.c: Likewise.
2791 * Makefile.in (SFILES): Add common/common-debug.c.
2792 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2793 (COMMON_OBS): Add common-debug.o and debug.o.
2794 (common-debug.o): New rule.
2795 * common/common-defs.h: Include common-debug.h.
2796 * common/agent.c (debug_agent_printf): New function.
2797 (DEBUG_AGENT): Redefine.
2798 * nat/i386-dregs.c (debug_printf): Undefine.
2800 2014-08-19 Gary Benson <gbenson@redhat.com>
2802 * common/common-defs.h: Include print-utils.h.
2803 * utils.h: Do not include print-utils.h.
2805 2014-08-19 Tom Tromey <tromey@redhat.com>
2806 Gary Benson <gbenson@redhat.com>
2808 * common/common-types.h: New file.
2809 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2810 * common/common-defs.h: Include common-types.h.
2811 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2814 2014-08-19 Tom Tromey <tromey@redhat.com>
2815 Gary Benson <gbenson@redhat.com>
2817 * common/errors.h: New file.
2818 * common/errors.c: Likewise.
2819 * Makefile.in (SFILES): Add common/errors.c.
2820 (HFILES_NO_SRCDIR): Add common/errors.h.
2821 (COMMON_OBS): Add errors.o.
2822 (errors.o): New rule.
2823 * common/common-defs.h: Include errors.h.
2824 * utils.h (perror_with_name, error, verror, warning, vwarning):
2826 * common/common-utils.h: (malloc_failure, internal_error):
2829 2014-08-19 Gary Benson <gbenson@redhat.com>
2831 * utils.c (internal_vproblem): Always print the message.
2833 2014-08-18 Doug Evans <dje@google.com>
2835 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2837 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2839 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2840 Return 0 if TYPE is dynamic.
2841 (print_range): Add handling of dynamic ranges.
2843 2014-08-18 Keven Boell <keven.boell@intel.com>
2844 Joel Brobecker <brobecker@adacore.com>
2846 * gdbtypes.h (struct main_type): Add field "data_location".
2847 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2848 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2849 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2850 a dynamic data location.
2851 (resolve_dynamic_type): Add DW_AT_data_location handling.
2852 (copy_recursive, copy_type): Copy the data_location information
2854 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2855 * value.c (value_from_contents_and_address): Add
2856 DW_AT_data_location handling.
2858 2014-08-18 Keven Boell <keven.boell@intel.com>
2859 Joel Brobecker <brobecker@adacore.com>
2861 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2862 field "get_object_address".
2863 * dwarf2expr.c (execute_stack_op): Add handling for
2864 DW_OP_push_object_address.
2865 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2866 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2867 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2868 (dwarf_expr_get_obj_addr): New function.
2869 (dwarf_expr_ctx_funcs): Add get_object_address field.
2870 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2871 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2872 (dwarf2_evaluate_property): Add parameter "address". Use it.
2873 (needs_get_obj_addr): New function.
2874 (needs_frame_ctx_funcs): Add get_object_address field.
2875 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2876 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2877 (resolve_dynamic_array): Likewise.
2879 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2881 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2882 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2883 fixed value for records and unions for which some GNAT encodings
2886 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2888 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2889 rewrite to avoid "else if" and "else" constructs. Should be
2890 a no-op in practice.
2892 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2894 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2897 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2900 * eval.c: Update all calls to find_overload_match.
2901 * valarith.c: Likewise.
2902 (value_user_defined_cpp_op, value_user_defined_op): New
2903 argument NOSIDE. Update all callers.
2904 * valops.c (find_overload_match): New argument NOSIDE.
2905 * value.h (find_overload_match): Update signature.
2907 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2909 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2910 'items' methods instead of 'iteritems' method on dictionaries.
2912 2014-08-15 Doug Evans <dje@google.com>
2914 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2917 2014-08-15 Doug Evans <dje@google.com>
2919 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2921 2014-08-15 Doug Evans <dje@google.com>
2923 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2925 2014-08-15 Doug Evans <dje@google.com>
2927 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2930 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2932 * dcache.h: Include target.h, to avoid compile time warnings.
2934 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2936 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2937 frame_info" partial declaration.
2938 * gdbarch.h: Regenerate.
2940 2014-08-15 Yao Qi <yao@codesourcery.com>
2942 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2943 Add parameter 'decode_for_pst_p'. Callers update.
2945 2014-08-13 Yao Qi <yao@codesourcery.com>
2948 * configure.ac: Use local variable 'pos'.
2949 * configure: Regenerated.
2951 2014-08-11 Doug Evans <dje@google.com>
2953 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2954 message, it is redundant with "Reading symbols from ..." message.
2956 2014-08-10 Doug Evans <xdje42@gmail.com>
2958 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2960 2014-08-09 Yao Qi <yao@codesourcery.com>
2963 * remote.c (remote_xfer_partial): Remove dead code.
2965 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2967 * ia64-linux-tdep.c: Include "regset.h".
2968 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2969 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2970 (ia64_linux_supply_fpregset): New function.
2971 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2972 (ia64_linux_regset_from_core_section): New function.
2973 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2976 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2978 * m68klinux-tdep.c: Include "regset.h".
2979 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2980 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2981 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2982 (m68k_linux_regset_from_core_section): New function.
2983 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2986 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2988 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2989 function. Move logic to...
2990 (tilegx_linux_regmap): ... this new register map.
2991 (tilegx_linux_regset): Refer to register map, replace supply
2992 method by regcache_supply_regset, and add collect method.
2993 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2994 TILEGX_FIRST_EASY_REGNUM.
2996 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2998 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2999 that calls regcache_supply_regset and handles the EPC register
3000 separately. Move main logic to...
3001 (score7_linux_gregmap): ... this new register map.
3002 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3003 (score7_linux_gregset): Refer to register map. Add collect method.
3004 (score7_linux_regset_from_core_section): Replace
3005 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3006 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3007 (struct regset): Delete unused forward declaraction.
3008 (struct pt_regs): Delete structure definition.
3009 (elf_gregset_t): Delete typedef.
3011 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3013 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3014 (nios2_core_regset): Add collect method.
3016 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3018 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3019 platform-independent and don't write to read-only input buffer.
3020 (m32r_linux_collect_gregset): New function.
3021 (m32r_linux_gregset): Add collect method.
3023 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3025 * hppa-linux-tdep.c (greg_map): Rename to...
3026 (hppa_linux_gregmap): ... this. Also convert to
3027 regcache_map_entry format.
3028 (hppa_linux_supply_regset): Delete function.
3029 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3030 (hppa_linux_fpregmap): ... this new register map.
3031 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3032 register map, replace supply method by regcache_supply_regset, and
3033 add collect method regcache_collect_regset.
3035 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3037 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3038 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3039 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3040 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3041 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3042 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3043 (frv_linux_supply_gregset): Replace main logic by call to
3044 regcache_supply_regset, but keep clearing gr32-gr63.
3045 (frv_linux_supply_fpregset): Delete function.
3046 (frv_linux_gregset): Refer to appropriate register map and add
3047 regcache_collect_regset as the collect method.
3048 (frv_linux_fpregset): Likewise. Also exchange the supply method
3049 by regcache_supply_regset.
3051 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3053 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3054 by call to alpha_supply_int_regs.
3055 (alpha_linux_collect_gregset): New function.
3056 (alpha_linux_supply_fpregset): Replace logic by call to
3057 alpha_supply_fp_regs.
3058 (alpha_linux_collect_fpregset): New function.
3059 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3061 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3063 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3064 by call to regcache_collect_regset.
3065 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3066 instead of aarch64_linux_supply_gregset/_fpregset.
3067 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3068 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3069 header file instead.
3070 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3071 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3072 functions. Move logic to ...
3073 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3075 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3076 refer to new register maps, replace *_regset_from_core by
3077 regcache_supply_regset, and also use regcache_collect_regset.
3078 * aarch64-linux-tdep.h: Include "regset.h".
3079 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3081 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3082 macros, moved from C source file.
3083 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3084 variable declarations.
3086 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3088 * s390-linux-nat.c: Include "regset.h".
3089 (regmap_gregset): Delete macro.
3090 (s390_64_regmap_gregset): New register map for
3091 regcache_supply/_collect_regset.
3092 (s390_64_gregset): New regset.
3093 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3094 (regmap_fpregset): Delete macro.
3095 (s390_native_supply, s390_native_collect): Delete functions.
3096 (supply_gregset, fill_gregset): Replace s390-specific regmap
3097 handling by a call to regcache_supply/_collect_regset.
3098 (supply_fpregset, fill_fpregset): Call regcache_supply/
3099 _collect_regset instead of s390_native_supply/_collect.
3100 (fetch_regset, store_regset): Likewise. Also change the last
3101 parameter to a regset instead of a regmap.
3102 (s390_linux_fetch_inferior_registers)
3103 (390_linux_store_inferior_registers): Adjust last parameter in
3104 calls to fetch_regset and store_regset.
3105 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3106 (s390_gregmap): ... this. Also make static const and convert to
3107 regcache_map_entry format.
3108 (s390x_regmap_gregset): Delete.
3109 (s390_regmap_fpregset): Rename to...
3110 (s390_fpregmap): ... this. Make static const and convert to
3111 regcache_map_entry format.
3112 (s390_regmap_upper, s390_regmap_last_break)
3113 (s390x_regmap_last_break, s390_regmap_system_call)
3114 (s390_regmap_tdb): Likewise.
3115 (s390_supply_regset, s390_collect_regset): Remove functions.
3116 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3118 (s390_gregset, s390_fpregset, s390_upper_regset)
3119 (s390_last_break_regset, s390x_last_break_regset)
3120 (s390_system_call_regset, s390_tdb_regset): Make global and
3121 replace s390_supply/_collect_regset by regcache_supply/
3123 (s390x_gregset): Delete.
3124 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3125 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3126 (s390_regmap_fpregset, s390_regmap_last_break)
3127 (s390x_regmap_last_break, s390_regmap_system_call)
3128 (s390_regmap_tdb): Delete global variable declarations.
3129 (s390_gregset, s390_fpregset, s390_last_break_regset)
3130 (s390x_last_break_regset, s390_system_call_regset)
3131 (s390_tdb_regset): New global variable declarations.
3133 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3135 * regcache.c: Include "regset.h".
3136 (regcache_transfer_regset): New local function.
3137 (regcache_supply_regset, regcache_collect_regset): New functions.
3138 * regcache.h (struct regcache_map_entry): New structure.
3139 (REGCACHE_MAP_SKIP): New enum value.
3140 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3142 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3144 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3145 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3146 (ppc_linux_collect_gregset ): Likewise.
3147 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3148 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3149 (ppc_collect_vrregset): Likewise.
3150 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3153 2014-08-07 Yao Qi <yao@codesourcery.com>
3155 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3156 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3157 * remote.c (remote_read_bytes): Likewise.
3159 2014-08-07 Yao Qi <yao@codesourcery.com>
3161 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3163 2014-08-07 Yao Qi <yao@codesourcery.com>
3166 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3167 TARGET_XFER_OK instead of 0.
3169 2014-08-07 Gary Benson <gbenson@redhat.com>
3171 * common/common-defs.h: Include errno.h.
3172 * defs.h: Do not include errno.h.
3173 * ada-typeprint.c: Likewise.
3174 * c-typeprint.c: Likewise.
3175 * core-regset.c: Likewise.
3176 * corefile.c: Likewise.
3177 * corelow.c: Likewise.
3178 * event-loop.c: Likewise.
3179 * f-typeprint.c: Likewise.
3180 * gnu-nat.c: Likewise.
3181 * go32-nat.c: Likewise.
3182 * i386gnu-nat.c: Likewise.
3183 * m2-typeprint.c: Likewise.
3184 * nat/linux-btrace.c: Likewise.
3185 * p-typeprint.c: Likewise.
3186 * procfs.c: Likewise.
3187 * remote-sim.c: Likewise.
3188 * rs6000-nat.c: Likewise.
3189 * target.c: Likewise.
3190 * typeprint.c: Likewise.
3191 * ui-file.c: Likewise.
3192 * valops.c: Likewise.
3193 * valprint.c: Likewise.
3195 2014-08-07 Gary Benson <gbenson@redhat.com>
3197 * common/common-defs.h: Include string.h.
3198 * aarch64-tdep.c: Do not include string.h.
3199 * ada-exp.y: Likewise.
3200 * ada-lang.c: Likewise.
3201 * ada-lex.l: Likewise.
3202 * ada-typeprint.c: Likewise.
3203 * ada-valprint.c: Likewise.
3204 * aix-thread.c: Likewise.
3205 * alpha-linux-tdep.c: Likewise.
3206 * alpha-mdebug-tdep.c: Likewise.
3207 * alpha-nat.c: Likewise.
3208 * alpha-osf1-tdep.c: Likewise.
3209 * alpha-tdep.c: Likewise.
3210 * alphanbsd-tdep.c: Likewise.
3211 * amd64-dicos-tdep.c: Likewise.
3212 * amd64-linux-tdep.c: Likewise.
3213 * amd64-nat.c: Likewise.
3214 * amd64-sol2-tdep.c: Likewise.
3215 * amd64fbsd-tdep.c: Likewise.
3216 * amd64obsd-tdep.c: Likewise.
3217 * arch-utils.c: Likewise.
3218 * arm-linux-nat.c: Likewise.
3219 * arm-linux-tdep.c: Likewise.
3220 * arm-tdep.c: Likewise.
3221 * arm-wince-tdep.c: Likewise.
3222 * armbsd-tdep.c: Likewise.
3223 * armnbsd-nat.c: Likewise.
3224 * armnbsd-tdep.c: Likewise.
3225 * armobsd-tdep.c: Likewise.
3226 * avr-tdep.c: Likewise.
3227 * ax-gdb.c: Likewise.
3228 * ax-general.c: Likewise.
3229 * bcache.c: Likewise.
3230 * bfin-tdep.c: Likewise.
3231 * breakpoint.c: Likewise.
3232 * build-id.c: Likewise.
3233 * buildsym.c: Likewise.
3234 * c-exp.y: Likewise.
3235 * c-lang.c: Likewise.
3236 * c-typeprint.c: Likewise.
3237 * c-valprint.c: Likewise.
3238 * charset.c: Likewise.
3239 * cli-out.c: Likewise.
3240 * cli/cli-cmds.c: Likewise.
3241 * cli/cli-decode.c: Likewise.
3242 * cli/cli-dump.c: Likewise.
3243 * cli/cli-interp.c: Likewise.
3244 * cli/cli-logging.c: Likewise.
3245 * cli/cli-script.c: Likewise.
3246 * cli/cli-setshow.c: Likewise.
3247 * cli/cli-utils.c: Likewise.
3248 * coffread.c: Likewise.
3249 * common/agent.c: Likewise.
3250 * common/buffer.c: Likewise.
3251 * common/buffer.h: Likewise.
3252 * common/common-utils.c: Likewise.
3253 * common/filestuff.c: Likewise.
3254 * common/filestuff.c: Likewise.
3255 * common/format.c: Likewise.
3256 * common/print-utils.c: Likewise.
3257 * common/rsp-low.c: Likewise.
3258 * common/signals.c: Likewise.
3259 * common/vec.h: Likewise.
3260 * common/xml-utils.c: Likewise.
3261 * core-regset.c: Likewise.
3262 * corefile.c: Likewise.
3263 * corelow.c: Likewise.
3264 * cp-abi.c: Likewise.
3265 * cp-name-parser.y: Likewise.
3266 * cp-support.c: Likewise.
3267 * cp-valprint.c: Likewise.
3268 * cris-tdep.c: Likewise.
3269 * d-exp.y: Likewise.
3270 * darwin-nat.c: Likewise.
3271 * dbxread.c: Likewise.
3272 * dcache.c: Likewise.
3273 * demangle.c: Likewise.
3274 * dicos-tdep.c: Likewise.
3275 * disasm.c: Likewise.
3276 * doublest.c: Likewise.
3277 * dsrec.c: Likewise.
3278 * dummy-frame.c: Likewise.
3279 * dwarf2-frame.c: Likewise.
3280 * dwarf2loc.c: Likewise.
3281 * dwarf2read.c: Likewise.
3282 * elfread.c: Likewise.
3283 * environ.c: Likewise.
3285 * event-loop.c: Likewise.
3286 * exceptions.c: Likewise.
3288 * expprint.c: Likewise.
3289 * f-exp.y: Likewise.
3290 * f-lang.c: Likewise.
3291 * f-typeprint.c: Likewise.
3292 * f-valprint.c: Likewise.
3293 * fbsd-nat.c: Likewise.
3294 * findcmd.c: Likewise.
3295 * findvar.c: Likewise.
3296 * fork-child.c: Likewise.
3297 * frame.c: Likewise.
3298 * frv-linux-tdep.c: Likewise.
3299 * frv-tdep.c: Likewise.
3301 * gdb_bfd.c: Likewise.
3302 * gdbarch.c: Likewise.
3303 * gdbarch.sh: Likewise.
3304 * gdbtypes.c: Likewise.
3305 * gnu-nat.c: Likewise.
3306 * gnu-v2-abi.c: Likewise.
3307 * gnu-v3-abi.c: Likewise.
3308 * go-exp.y: Likewise.
3309 * go-lang.c: Likewise.
3310 * go32-nat.c: Likewise.
3311 * guile/guile.c: Likewise.
3312 * guile/scm-auto-load.c: Likewise.
3313 * hppa-hpux-tdep.c: Likewise.
3314 * hppa-linux-nat.c: Likewise.
3315 * hppanbsd-tdep.c: Likewise.
3316 * hppaobsd-tdep.c: Likewise.
3317 * i386-cygwin-tdep.c: Likewise.
3318 * i386-dicos-tdep.c: Likewise.
3319 * i386-linux-tdep.c: Likewise.
3320 * i386-nto-tdep.c: Likewise.
3321 * i386-sol2-tdep.c: Likewise.
3322 * i386-tdep.c: Likewise.
3323 * i386bsd-tdep.c: Likewise.
3324 * i386gnu-nat.c: Likewise.
3325 * i386nbsd-tdep.c: Likewise.
3326 * i386obsd-tdep.c: Likewise.
3327 * i387-tdep.c: Likewise.
3328 * ia64-libunwind-tdep.c: Likewise.
3329 * ia64-linux-nat.c: Likewise.
3330 * inf-child.c: Likewise.
3331 * inf-ptrace.c: Likewise.
3332 * inf-ttrace.c: Likewise.
3333 * infcall.c: Likewise.
3334 * infcmd.c: Likewise.
3335 * inflow.c: Likewise.
3336 * infrun.c: Likewise.
3337 * interps.c: Likewise.
3338 * iq2000-tdep.c: Likewise.
3339 * irix5-nat.c: Likewise.
3340 * jv-exp.y: Likewise.
3341 * jv-lang.c: Likewise.
3342 * jv-typeprint.c: Likewise.
3343 * jv-valprint.c: Likewise.
3344 * language.c: Likewise.
3345 * linux-fork.c: Likewise.
3346 * linux-nat.c: Likewise.
3347 * lm32-tdep.c: Likewise.
3348 * m2-exp.y: Likewise.
3349 * m2-typeprint.c: Likewise.
3350 * m32c-tdep.c: Likewise.
3351 * m32r-linux-nat.c: Likewise.
3352 * m32r-linux-tdep.c: Likewise.
3353 * m32r-rom.c: Likewise.
3354 * m32r-tdep.c: Likewise.
3355 * m68hc11-tdep.c: Likewise.
3356 * m68k-tdep.c: Likewise.
3357 * m68kbsd-tdep.c: Likewise.
3358 * m68klinux-nat.c: Likewise.
3359 * m68klinux-tdep.c: Likewise.
3360 * m88k-tdep.c: Likewise.
3361 * machoread.c: Likewise.
3362 * macrocmd.c: Likewise.
3364 * mdebugread.c: Likewise.
3365 * mem-break.c: Likewise.
3366 * memattr.c: Likewise.
3367 * memory-map.c: Likewise.
3368 * mep-tdep.c: Likewise.
3369 * mi/mi-cmd-break.c: Likewise.
3370 * mi/mi-cmd-disas.c: Likewise.
3371 * mi/mi-cmd-env.c: Likewise.
3372 * mi/mi-cmd-stack.c: Likewise.
3373 * mi/mi-cmd-var.c: Likewise.
3374 * mi/mi-cmds.c: Likewise.
3375 * mi/mi-console.c: Likewise.
3376 * mi/mi-getopt.c: Likewise.
3377 * mi/mi-interp.c: Likewise.
3378 * mi/mi-main.c: Likewise.
3379 * mi/mi-parse.c: Likewise.
3380 * microblaze-rom.c: Likewise.
3381 * microblaze-tdep.c: Likewise.
3382 * mingw-hdep.c: Likewise.
3383 * minidebug.c: Likewise.
3384 * minsyms.c: Likewise.
3385 * mips-irix-tdep.c: Likewise.
3386 * mips-linux-tdep.c: Likewise.
3387 * mips-tdep.c: Likewise.
3388 * mips64obsd-tdep.c: Likewise.
3389 * mipsnbsd-tdep.c: Likewise.
3390 * mipsread.c: Likewise.
3391 * mn10300-linux-tdep.c: Likewise.
3392 * mn10300-tdep.c: Likewise.
3393 * monitor.c: Likewise.
3394 * moxie-tdep.c: Likewise.
3395 * mt-tdep.c: Likewise.
3396 * nat/linux-btrace.c: Likewise.
3397 * nat/linux-osdata.c: Likewise.
3398 * nat/linux-procfs.c: Likewise.
3399 * nat/linux-ptrace.c: Likewise.
3400 * nat/linux-waitpid.c: Likewise.
3401 * nbsd-tdep.c: Likewise.
3402 * nios2-linux-tdep.c: Likewise.
3403 * nto-procfs.c: Likewise.
3404 * nto-tdep.c: Likewise.
3405 * objc-lang.c: Likewise.
3406 * objfiles.c: Likewise.
3407 * opencl-lang.c: Likewise.
3408 * osabi.c: Likewise.
3409 * osdata.c: Likewise.
3410 * p-exp.y: Likewise.
3411 * p-lang.c: Likewise.
3412 * p-typeprint.c: Likewise.
3413 * parse.c: Likewise.
3414 * posix-hdep.c: Likewise.
3415 * ppc-linux-nat.c: Likewise.
3416 * ppc-sysv-tdep.c: Likewise.
3417 * ppcfbsd-tdep.c: Likewise.
3418 * ppcnbsd-tdep.c: Likewise.
3419 * ppcobsd-tdep.c: Likewise.
3420 * printcmd.c: Likewise.
3421 * procfs.c: Likewise.
3422 * prologue-value.c: Likewise.
3423 * python/py-auto-load.c: Likewise.
3424 * python/py-gdb-readline.c: Likewise.
3425 * ravenscar-thread.c: Likewise.
3426 * regcache.c: Likewise.
3427 * registry.c: Likewise.
3428 * remote-fileio.c: Likewise.
3429 * remote-m32r-sdi.c: Likewise.
3430 * remote-mips.c: Likewise.
3431 * remote-notif.c: Likewise.
3432 * remote-sim.c: Likewise.
3433 * remote.c: Likewise.
3434 * reverse.c: Likewise.
3435 * rs6000-aix-tdep.c: Likewise.
3436 * ser-base.c: Likewise.
3437 * ser-go32.c: Likewise.
3438 * ser-mingw.c: Likewise.
3439 * ser-pipe.c: Likewise.
3440 * ser-tcp.c: Likewise.
3441 * ser-unix.c: Likewise.
3442 * serial.c: Likewise.
3443 * sh-tdep.c: Likewise.
3444 * sh64-tdep.c: Likewise.
3445 * shnbsd-tdep.c: Likewise.
3447 * sol-thread.c: Likewise.
3448 * solib-dsbt.c: Likewise.
3449 * solib-frv.c: Likewise.
3450 * solib-osf.c: Likewise.
3451 * solib-som.c: Likewise.
3452 * solib-spu.c: Likewise.
3453 * solib-target.c: Likewise.
3454 * solib.c: Likewise.
3455 * somread.c: Likewise.
3456 * source.c: Likewise.
3457 * sparc-nat.c: Likewise.
3458 * sparc-sol2-tdep.c: Likewise.
3459 * sparc-tdep.c: Likewise.
3460 * sparc64-tdep.c: Likewise.
3461 * sparc64fbsd-tdep.c: Likewise.
3462 * sparc64nbsd-tdep.c: Likewise.
3463 * sparcnbsd-tdep.c: Likewise.
3464 * spu-linux-nat.c: Likewise.
3465 * spu-multiarch.c: Likewise.
3466 * spu-tdep.c: Likewise.
3467 * stabsread.c: Likewise.
3468 * stack.c: Likewise.
3469 * std-regs.c: Likewise.
3470 * symfile.c: Likewise.
3471 * symmisc.c: Likewise.
3472 * symtab.c: Likewise.
3473 * target.c: Likewise.
3474 * thread.c: Likewise.
3475 * tilegx-linux-nat.c: Likewise.
3476 * tilegx-tdep.c: Likewise.
3478 * tracepoint.c: Likewise.
3479 * tui/tui-command.c: Likewise.
3480 * tui/tui-data.c: Likewise.
3481 * tui/tui-disasm.c: Likewise.
3482 * tui/tui-file.c: Likewise.
3483 * tui/tui-layout.c: Likewise.
3484 * tui/tui-out.c: Likewise.
3485 * tui/tui-regs.c: Likewise.
3486 * tui/tui-source.c: Likewise.
3487 * tui/tui-stack.c: Likewise.
3488 * tui/tui-win.c: Likewise.
3489 * tui/tui-windata.c: Likewise.
3490 * tui/tui-winsource.c: Likewise.
3491 * typeprint.c: Likewise.
3492 * ui-file.c: Likewise.
3493 * ui-out.c: Likewise.
3494 * user-regs.c: Likewise.
3495 * utils.c: Likewise.
3496 * v850-tdep.c: Likewise.
3497 * valarith.c: Likewise.
3498 * valops.c: Likewise.
3499 * valprint.c: Likewise.
3500 * value.c: Likewise.
3501 * varobj.c: Likewise.
3502 * vax-tdep.c: Likewise.
3503 * vaxnbsd-tdep.c: Likewise.
3504 * vaxobsd-tdep.c: Likewise.
3505 * windows-nat.c: Likewise.
3506 * xcoffread.c: Likewise.
3507 * xml-support.c: Likewise.
3508 * xstormy16-tdep.c: Likewise.
3509 * xtensa-linux-nat.c: Likewise.
3511 2014-08-07 Gary Benson <gbenson@redhat.com>
3513 * common/common-defs.h: Include gdb_assert.h.
3514 * aarch64-tdep.c: Do not include gdb_assert.h.
3515 * addrmap.c: Likewise.
3516 * aix-thread.c: Likewise.
3517 * alpha-linux-tdep.c: Likewise.
3518 * alpha-mdebug-tdep.c: Likewise.
3519 * alphanbsd-tdep.c: Likewise.
3520 * amd64-nat.c: Likewise.
3521 * amd64-tdep.c: Likewise.
3522 * amd64bsd-nat.c: Likewise.
3523 * amd64fbsd-nat.c: Likewise.
3524 * amd64fbsd-tdep.c: Likewise.
3525 * amd64nbsd-nat.c: Likewise.
3526 * amd64nbsd-tdep.c: Likewise.
3527 * amd64obsd-nat.c: Likewise.
3528 * amd64obsd-tdep.c: Likewise.
3529 * arch-utils.c: Likewise.
3530 * arm-tdep.c: Likewise.
3531 * armbsd-tdep.c: Likewise.
3533 * bcache.c: Likewise.
3534 * bfin-tdep.c: Likewise.
3535 * blockframe.c: Likewise.
3536 * breakpoint.c: Likewise.
3537 * bsd-kvm.c: Likewise.
3538 * bsd-uthread.c: Likewise.
3539 * buildsym.c: Likewise.
3540 * c-exp.y: Likewise.
3541 * c-lang.c: Likewise.
3542 * charset.c: Likewise.
3543 * cleanups.c: Likewise.
3544 * cli-out.c: Likewise.
3545 * cli/cli-decode.c: Likewise.
3546 * cli/cli-dump.c: Likewise.
3547 * cli/cli-logging.c: Likewise.
3548 * cli/cli-script.c: Likewise.
3549 * cli/cli-utils.c: Likewise.
3550 * coffread.c: Likewise.
3551 * common/common-utils.c: Likewise.
3552 * common/queue.h: Likewise.
3553 * common/signals.c: Likewise.
3554 * common/vec.h: Likewise.
3555 * complaints.c: Likewise.
3556 * completer.c: Likewise.
3557 * corelow.c: Likewise.
3558 * cp-abi.c: Likewise.
3559 * cp-name-parser.y: Likewise.
3560 * cp-namespace.c: Likewise.
3561 * cp-support.c: Likewise.
3562 * cris-tdep.c: Likewise.
3563 * dbxread.c: Likewise.
3564 * dictionary.c: Likewise.
3565 * doublest.c: Likewise.
3566 * dsrec.c: Likewise.
3567 * dummy-frame.c: Likewise.
3568 * dwarf2-frame-tailcall.c: Likewise.
3569 * dwarf2-frame.c: Likewise.
3570 * dwarf2expr.c: Likewise.
3571 * dwarf2loc.c: Likewise.
3572 * dwarf2read.c: Likewise.
3574 * event-loop.c: Likewise.
3575 * exceptions.c: Likewise.
3576 * expprint.c: Likewise.
3577 * f-valprint.c: Likewise.
3578 * fbsd-nat.c: Likewise.
3579 * findvar.c: Likewise.
3580 * frame-unwind.c: Likewise.
3581 * frame.c: Likewise.
3582 * frv-tdep.c: Likewise.
3583 * gcore.c: Likewise.
3584 * gdb-dlfcn.c: Likewise.
3585 * gdb_bfd.c: Likewise.
3586 * gdbarch.c: Likewise.
3587 * gdbarch.sh: Likewise.
3588 * gdbtypes.c: Likewise.
3589 * gnu-nat.c: Likewise.
3590 * gnu-v3-abi.c: Likewise.
3591 * go-lang.c: Likewise.
3592 * guile/scm-exception.c: Likewise.
3593 * guile/scm-gsmob.c: Likewise.
3594 * guile/scm-lazy-string.c: Likewise.
3595 * guile/scm-math.c: Likewise.
3596 * guile/scm-pretty-print.c: Likewise.
3597 * guile/scm-safe-call.c: Likewise.
3598 * guile/scm-utils.c: Likewise.
3599 * guile/scm-value.c: Likewise.
3600 * h8300-tdep.c: Likewise.
3601 * hppa-hpux-nat.c: Likewise.
3602 * hppa-tdep.c: Likewise.
3603 * hppanbsd-tdep.c: Likewise.
3604 * hppaobsd-tdep.c: Likewise.
3605 * i386-darwin-nat.c: Likewise.
3606 * i386-darwin-tdep.c: Likewise.
3607 * i386-nto-tdep.c: Likewise.
3608 * i386-tdep.c: Likewise.
3609 * i386bsd-nat.c: Likewise.
3610 * i386fbsd-tdep.c: Likewise.
3611 * i386gnu-nat.c: Likewise.
3612 * i386nbsd-tdep.c: Likewise.
3613 * i386obsd-tdep.c: Likewise.
3614 * i387-tdep.c: Likewise.
3615 * ia64-libunwind-tdep.c: Likewise.
3616 * ia64-tdep.c: Likewise.
3617 * inf-ptrace.c: Likewise.
3618 * inf-ttrace.c: Likewise.
3619 * infcall.c: Likewise.
3620 * infcmd.c: Likewise.
3621 * infrun.c: Likewise.
3622 * inline-frame.c: Likewise.
3623 * interps.c: Likewise.
3624 * jv-lang.c: Likewise.
3625 * jv-typeprint.c: Likewise.
3626 * linux-fork.c: Likewise.
3627 * linux-nat.c: Likewise.
3628 * linux-thread-db.c: Likewise.
3629 * m32c-tdep.c: Likewise.
3630 * m32r-linux-nat.c: Likewise.
3631 * m32r-tdep.c: Likewise.
3632 * m68k-tdep.c: Likewise.
3633 * m68kbsd-nat.c: Likewise.
3634 * m68kbsd-tdep.c: Likewise.
3635 * m88k-tdep.c: Likewise.
3636 * machoread.c: Likewise.
3637 * macroexp.c: Likewise.
3638 * macrotab.c: Likewise.
3639 * maint.c: Likewise.
3640 * mdebugread.c: Likewise.
3641 * memory-map.c: Likewise.
3642 * mep-tdep.c: Likewise.
3643 * mi/mi-common.c: Likewise.
3644 * microblaze-tdep.c: Likewise.
3645 * mingw-hdep.c: Likewise.
3646 * mips-linux-nat.c: Likewise.
3647 * mips-linux-tdep.c: Likewise.
3648 * mips-tdep.c: Likewise.
3649 * mips64obsd-tdep.c: Likewise.
3650 * mipsnbsd-tdep.c: Likewise.
3651 * mn10300-linux-tdep.c: Likewise.
3652 * mn10300-tdep.c: Likewise.
3653 * moxie-tdep.c: Likewise.
3654 * mt-tdep.c: Likewise.
3655 * nat/linux-btrace.c: Likewise.
3656 * nat/linux-osdata.c: Likewise.
3657 * nat/linux-ptrace.c: Likewise.
3658 * nat/mips-linux-watch.c: Likewise.
3659 * nios2-linux-tdep.c: Likewise.
3660 * nios2-tdep.c: Likewise.
3661 * objc-lang.c: Likewise.
3662 * objfiles.c: Likewise.
3663 * obsd-nat.c: Likewise.
3664 * opencl-lang.c: Likewise.
3665 * osabi.c: Likewise.
3666 * parse.c: Likewise.
3667 * ppc-linux-nat.c: Likewise.
3668 * ppc-sysv-tdep.c: Likewise.
3669 * ppcfbsd-nat.c: Likewise.
3670 * ppcfbsd-tdep.c: Likewise.
3671 * ppcnbsd-nat.c: Likewise.
3672 * ppcnbsd-tdep.c: Likewise.
3673 * ppcobsd-nat.c: Likewise.
3674 * ppcobsd-tdep.c: Likewise.
3675 * printcmd.c: Likewise.
3676 * procfs.c: Likewise.
3677 * prologue-value.c: Likewise.
3678 * psymtab.c: Likewise.
3679 * python/py-lazy-string.c: Likewise.
3680 * python/py-value.c: Likewise.
3681 * regcache.c: Likewise.
3682 * reggroups.c: Likewise.
3683 * registry.c: Likewise.
3684 * remote-sim.c: Likewise.
3685 * remote.c: Likewise.
3686 * rs6000-aix-tdep.c: Likewise.
3687 * rs6000-tdep.c: Likewise.
3688 * s390-linux-tdep.c: Likewise.
3689 * score-tdep.c: Likewise.
3690 * ser-base.c: Likewise.
3691 * ser-mingw.c: Likewise.
3692 * sh-tdep.c: Likewise.
3693 * sh64-tdep.c: Likewise.
3694 * solib-darwin.c: Likewise.
3695 * solib-spu.c: Likewise.
3696 * solib-svr4.c: Likewise.
3697 * source.c: Likewise.
3698 * sparc-nat.c: Likewise.
3699 * sparc-sol2-tdep.c: Likewise.
3700 * sparc-tdep.c: Likewise.
3701 * sparc64-sol2-tdep.c: Likewise.
3702 * sparc64-tdep.c: Likewise.
3703 * sparc64fbsd-tdep.c: Likewise.
3704 * sparc64nbsd-tdep.c: Likewise.
3705 * sparc64obsd-tdep.c: Likewise.
3706 * sparcnbsd-tdep.c: Likewise.
3707 * sparcobsd-tdep.c: Likewise.
3708 * spu-multiarch.c: Likewise.
3709 * spu-tdep.c: Likewise.
3710 * stabsread.c: Likewise.
3711 * stack.c: Likewise.
3712 * symfile.c: Likewise.
3713 * symtab.c: Likewise.
3714 * target-descriptions.c: Likewise.
3715 * target-memory.c: Likewise.
3716 * target.c: Likewise.
3717 * tic6x-linux-tdep.c: Likewise.
3718 * tic6x-tdep.c: Likewise.
3719 * tilegx-linux-nat.c: Likewise.
3720 * tilegx-tdep.c: Likewise.
3722 * tramp-frame.c: Likewise.
3723 * tui/tui-out.c: Likewise.
3724 * tui/tui-winsource.c: Likewise.
3725 * ui-out.c: Likewise.
3726 * user-regs.c: Likewise.
3727 * utils.c: Likewise.
3728 * v850-tdep.c: Likewise.
3729 * valops.c: Likewise.
3730 * value.c: Likewise.
3731 * varobj.c: Likewise.
3732 * vax-nat.c: Likewise.
3733 * xml-syscall.c: Likewise.
3734 * xml-tdesc.c: Likewise.
3735 * xstormy16-tdep.c: Likewise.
3736 * xtensa-linux-nat.c: Likewise.
3737 * xtensa-tdep.c: Likewise.
3739 2014-08-07 Gary Benson <gbenson@redhat.com>
3741 * common/common-defs.h: Include common-utils.h.
3742 * defs.h: Do not include common-utils.h.
3743 * common/gdb_assert.h: Likewise.
3744 * darwin-nat.h: Likewise.
3745 * nat/linux-btrace.c: Likewise.
3746 * target/waitstatus.h: Likewise.
3748 2014-08-07 Gary Benson <gbenson@redhat.com>
3750 * common/common-defs.h: Include ptid.h.
3751 * defs.h: Do not include ptid.h.
3752 * inferior.h: Likewise.
3753 * infrun.h: Likewise.
3754 * nat/linux-btrace.h: Likewise.
3755 * nat/linux-osdata.h: Likewise.
3756 * target/waitstatus.h: Likewise.
3758 2014-08-07 Gary Benson <gbenson@redhat.com>
3760 * common/common-defs.h: Include gdb_locale.h.
3761 * defs.h: Do not include gdb_locale.h.
3763 2014-08-07 Gary Benson <gbenson@redhat.com>
3765 * common/common-defs.h: Include gdb/signals.h.
3766 * defs.h: Do not include gdb/signals.h.
3768 2014-08-07 Gary Benson <gbenson@redhat.com>
3770 * common/common-defs.h: Include pathmax.h.
3771 * defs.h: Do not include pathmax.h.
3773 2014-08-07 Gary Benson <gbenson@redhat.com>
3775 * common/common-defs.h: Include libiberty.h.
3776 * defs.h: Do not include libiberty.h.
3777 * common/queue.h: Likewise.
3778 * cp-name-parser.y: Likewise.
3779 * mi/mi-cmd-catch.c: Likewise.
3780 * python/python.c: Likewise.
3782 2014-08-07 Gary Benson <gbenson@redhat.com>
3784 * common/common-defs.h: Include ansidecl.h.
3785 * defs.h: Do not include ansidecl.h.
3786 * common/buffer.h: Likewise.
3787 * common/common-utils.h: Likewise.
3789 2014-08-07 Gary Benson <gbenson@redhat.com>
3791 * common/common-defs.h: Include stddef.h.
3792 * defs.h: Do not include stddef.h.
3793 * common/common-utils.h: Likewise.
3794 * amd64fbsd-nat.c: Likewise.
3795 * bcache.c: Likewise.
3796 * charset.c: Likewise.
3797 * common/buffer.h: Likewise.
3798 * common/vec.h: Likewise.
3799 * i386bsd-nat.c: Likewise.
3800 * nat/linux-btrace.h: Likewise.
3801 * ppcfbsd-nat.c: Likewise.
3802 * ppcnbsd-tdep.h: Likewise.
3803 * ppcobsd-nat.c: Likewise.
3804 * ppcobsd-tdep.h: Likewise.
3805 * python/py-gdb-readline.c: Likewise.
3807 2014-08-07 Gary Benson <gbenson@redhat.com>
3809 * common/common-defs.h: Include stdarg.h.
3810 * defs.h: Do not include stdarg.h.
3811 * ada-lang.c: Likewise.
3812 * common/common-utils.h: Likewise.
3813 * guile/scm-string.c: Likewise.
3814 * guile/scm-utils.c: Likewise.
3815 * m32c-tdep.c: Likewise.
3817 2014-08-07 Gary Benson <gbenson@redhat.com>
3819 * common/common-defs.h: Include stdlib.h.
3820 * defs.h: Do not include stdlib.h.
3821 * addrmap.c: Likewise.
3822 * bcache.c: Likewise.
3823 * common/buffer.c: Likewise.
3824 * common/common-utils.c: Likewise.
3825 * cp-name-parser.y: Likewise.
3826 * go32-nat.c: Likewise.
3827 * mn10300-linux-tdep.c: Likewise.
3828 * nat/linux-osdata.c: Likewise.
3829 * tui/tui.c: Likewise.
3830 * windows-nat.c: Likewise.
3832 2014-08-07 Gary Benson <gbenson@redhat.com>
3834 * common/common-defs.h: Include stdio.h.
3835 * defs.h: Do not include stdio.h.
3836 * ada-lang.c: Likewise.
3837 * common/buffer.c: Likewise.
3838 * common/common-utils.c: Likewise.
3839 * cp-name-parser.y: Likewise.
3840 * gnu-nat.c: Likewise.
3841 * go32-nat.c: Likewise.
3842 * i386gnu-nat.c: Likewise.
3843 * proc-api.c: Likewise.
3844 * proc-events.c: Likewise.
3845 * proc-flags.c: Likewise.
3846 * proc-why.c: Likewise.
3847 * python/python-internal.h: Likewise.
3848 * target-memory.c: Likewise.
3849 * tui/tui-io.c: Likewise.
3850 * tui/tui.c: Likewise.
3852 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3854 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3855 (scan_dyntag_auxv): Same.
3857 2014-08-06 Yao Qi <yao@codesourcery.com>
3859 * amd64-linux-nat.c: Remove duplicated include
3861 * i386-linux-nat.c: Likewise.
3863 2014-08-06 Yao Qi <yao@codesourcery.com>
3865 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3866 operand" with "Special opcode" in comments.
3868 2014-08-05 Gary Benson <gbenson@redhat.com>
3870 * interps.c (initialize_interps): Remove prototype.
3871 (interpreter_initialized): Remove static global.
3872 (interp_add): Do not call initialize_interps.
3873 (initialize_interps): Remove function.
3875 2014-08-05 Gary Benson <gbenson@redhat.com>
3877 * utils.c (vwarning): Remove spurious va_end.
3879 2014-08-05 Alan Modra <amodra@gmail.com>
3881 * charset.c (convert_between_encodings): Cast result of obstack_base.
3882 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3883 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3884 (read_unwind_info): Use size_t for some locals.
3885 * jit.c (finalize_symtab): Likewise.
3886 * utils.c (hashtab_obstack_allocate): Likewise.
3887 * symmisc.c (print_objfile_statistics): Update format strings.
3889 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3891 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3892 (Changes in GDB 7.8): ... here.
3894 2014-08-04 Tom Tromey <tromey@redhat.com>
3896 * target.c (set_targetdebug): New function.
3897 (initialize_targets): Pass set_targetdebug when creating "set
3900 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3902 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3903 if detecting a variable-sized field that is not the last field.
3904 Fix struct type length computation.
3906 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3908 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3911 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3913 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3914 Remove "+ 8" offset in computation of CHAIN_VMA.
3916 2014-07-31 Doug Evans <dje@google.com>
3918 * inflow.c (child_terminal_inferior): Add comment.
3919 (child_terminal_ours_for_output): Add comment.
3920 (child_terminal_ours): Add comment.
3921 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3922 (linux_nat_terminal_ours): Add comment.
3924 2014-07-31 Gary Benson <gbenson@redhat.com>
3926 * common/btrace-common.h: Do not include defs.h or server.h.
3927 * nat/mips-linux-watch.h: Likewise.
3928 * gdb-dlfcn.h: Do not include defs.h.
3929 * tracefile.h: Likewise.
3931 2014-07-30 Roland McGrath <mcgrathr@google.com>
3933 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3935 2014-07-30 Tom Tromey <tromey@redhat.com>
3937 * bsd-kvm.c (bsd_kvm_open): Constify.
3938 * corelow.c (core_open): Constify.
3939 * ctf.c (ctf_open): Constify.
3940 * dbug-rom.c (dbug_open): Constify.
3941 * exec.c (exec_open): Constify.
3942 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3943 * microblaze-rom.c (picobug_open): Constify.
3944 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3946 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3947 * record-btrace.c (record_btrace_open): Constify.
3948 * record-full.c (record_full_core_open_1, record_full_open_1)
3949 (record_full_open): Constify.
3950 * remote-m32r-sdi.c (m32r_open): Constify.
3951 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3952 (rockhopper_open, lsi_open): Constify.
3953 * remote-sim.c (gdbsim_open): Constify.
3954 * remote.c (remote_open, extended_remote_open, remote_open_1):
3956 * target.h (struct target_ops) <to_open>: Make "arg" const.
3957 * tracefile-tfile.c (tfile_open): Constify.
3959 2014-07-30 Tom Tromey <tromey@redhat.com>
3961 * breakpoint.c (map_breakpoint_numbers): Update.
3962 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3963 (get_number_const): New function.
3964 (get_number): Rewrite using get_number_const.
3965 (init_number_or_range): Make "string" const.
3966 (number_is_in_list): Make "list" const.
3967 * cli/cli-utils.h (get_number_const): Declare.
3968 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3969 (init_number_or_range, number_is_in_list): Update.
3970 * printcmd.c (map_display_numbers): Update.
3971 * value.c (value_from_history_ref): Constify.
3972 * value.h (value_from_history_ref): Update.
3974 2014-07-30 Tom Tromey <tromey@redhat.com>
3976 * corefile.c (hook_type, call_extra_exec_file_hooks)
3977 (specify_exec_file_hook): Constify.
3978 * exec.c (exec_file_attach): Make "filename" const.
3979 * gdbcore.h (deprecated_exec_file_display_hook)
3980 (specify_exec_file_hook, exec_file_attach): Constify.
3981 * main.c (captured_main): Use catch_command_errors_const.
3983 2014-07-30 Tom Tromey <tromey@redhat.com>
3985 * target.c (open_target): New function.
3986 (add_target_with_completer, add_deprecated_target_alias): Use
3987 set_cmd_sfunc, set_cmd_context.
3988 (debug_to_open): Remove.
3989 (setup_target_debug): Update.
3991 2014-07-30 Yao Qi <yao@codesourcery.com>
3993 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3995 * parse.c (exp_iterate): Update comments.
3997 2014-07-30 Gary Benson <gbenson@redhat.com>
3999 * common/common-defs.h: New file.
4000 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4001 * defs.h: Include common-defs.h.
4002 Do not include config.h or build-gnulib/config.h.
4004 2014-07-30 Gary Benson <gbenson@redhat.com>
4006 * common/common-utils.h: Do not include config.h.
4007 * nat/linux-btrace.h: Likewise.
4009 2014-07-30 Gary Benson <gbenson@redhat.com>
4011 * btrace.c: Include defs.h.
4012 * common/ptid.c: Include defs.h or server.h as appropriate.
4013 * nat/mips-linux-watch.c: Likewise.
4015 2014-07-29 Tom Tromey <tromey@redhat.com>
4017 * target.c (target_is_pushed): Simplify.
4019 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4023 2014-07-29 Yao Qi <yao@codesourcery.com>
4026 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4028 2014-07-28 Doug Evans <xdje42@gmail.com>
4031 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4032 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4035 2014-07-28 Will Newton <will.newton@linaro.org>
4037 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4038 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4039 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4040 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4041 (THUMB2_EABI_SYSCALL): Likewise.
4042 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4044 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4045 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4047 2014-07-27 Doug Evans <xdje42@gmail.com>
4049 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4051 2014-07-27 Doug Evans <xdje42@gmail.com>
4053 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4055 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4056 Doug Evans <xdje42@gmail.com>
4059 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4060 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4061 * configure.ac: Try to use guild to compile an scm file, if it fails
4062 then disable guile support.
4063 * configure: Regenerate.
4064 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4066 (GUILE_COMPILED_FILES): New variable.
4067 (GUILE_FILES) Update.
4068 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4069 (stamp-guile): Compile scm files.
4070 * guile/guile.c (boot_guile_support): New function.
4071 (standard_throw_args_p): New function.
4072 (print_standard_throw_error, print_throw_error): New functions.
4073 (handle_boot_error): New function.
4074 (initialize_scheme_side): Rewrite to call boot_guile_support.
4075 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4076 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4078 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4079 Doug Evans <xdje42@gmail.com>
4082 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4083 * guile/lib/gdb/support.scm: New file.
4084 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4085 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4087 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4089 (%assert-type): Ditto, and renamed to assert-type.
4090 (%exception-print-style): Delete.
4092 2014-07-26 Doug Evans <xdje42@gmail.com>
4095 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4096 * configure: Regenerate.
4097 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4099 (PYTHON_FILES): New variable.
4100 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4101 (GUILE_FILES): New variable.
4102 (stamp-python, install-python, uninstall-python): Handle empty
4104 (stamp-guile, install-guile, uninstall-guile): Ditto.
4106 2014-07-26 Doug Evans <xdje42@gmail.com>
4109 * guile/lib/gdb.scm (pretty-printers): Export.
4110 (set-pretty-printers!): Export.
4111 * guile/lib/gdb/printing.scm (gdb module): Update.
4112 (prepend-pretty-printer!, append-pretty-printer!): Update.
4113 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4114 (pretty_printer_list_var): Delete.
4115 (pretty_printer_list): New static global.
4116 (gdbscm_pretty_printers): New function.
4117 (gdbscm_set_pretty_printers_x): New function.
4118 (ppscm_find_pretty_printer_from_gdb): Update.
4119 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4120 (gdbscm_initialize_pretty_printers): Update.
4122 2014-07-26 Doug Evans <xdje42@gmail.com>
4125 * configure.ac: Add check for header gc/gc.h.
4126 Add check for function setenv.
4127 * configure: Regenerate.
4128 * config.in: Regenerate.
4129 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4131 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4133 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4134 variation in gdbarch matching.
4136 2014-07-25 Tom Tromey <tromey@redhat.com>
4138 * exec.c (using_exec_ops): Remove.
4139 (exec_close_1): Update. Remove extraneous block, reindent.
4140 (add_target_sections): Use target_is_pushed.
4142 2014-07-25 Pedro Alves <palves@redhat.com>
4144 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4145 * monitor.c (monitor_create_inferior): Likewise.
4146 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4147 * remote-sim.c (gdbsim_create_inferior): Likewise.
4148 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4149 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4150 * windows-nat.c (do_initial_windows_stuff): Likewise.
4152 2014-07-25 Pedro Alves <palves@redhat.com>
4154 * NEWS: Mention signal passing and "signal" command changes.
4155 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4157 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4159 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4160 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4161 (jump_command): Adjust clear_proceed_status call.
4162 (signal_command): Warn if other thread that are resumed have
4163 signals that will be delivered. Adjust clear_proceed_status call.
4164 (until_next_command, finish_command)
4165 (proceed_after_attach_callback, attach_command_post_wait)
4166 (attach_command): Adjust clear_proceed_status call.
4167 * infrun.c (proceed_after_vfork_done): Likewise.
4168 (proceed_after_attach_callback): Adjust comment.
4169 (clear_proceed_status_thread): Clear stop_signal if not in pass
4171 (clear_proceed_status_callback): Delete.
4172 (clear_proceed_status): New 'step' parameter. Only clear the
4173 proceed status of threads the command being prepared is about to
4175 (proceed): If passed in an explicit signal, override stop_signal
4176 with it. Don't pass the last stop signal to the thread we're
4178 (init_wait_for_inferior): Adjust clear_proceed_status call.
4179 (switch_back_to_stepped_thread): Clear the signal if it should not
4181 * infrun.h (clear_proceed_status): New 'step' parameter.
4182 (user_visible_resume_ptid): Add comment.
4183 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4184 signal is in pass state.
4185 * remote.c (append_pending_thread_resumptions): Likewise.
4186 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4188 2014-07-25 Tom Tromey <tromey@redhat.com>
4190 * target.h (target_stopped_data_address)
4191 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4194 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4196 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4198 (avr_pointer_to_address): Likewise.
4200 2014-07-24 Tom Tromey <tromey@redhat.com>
4202 * monitor.c (compile_pattern): Update.
4203 * target.h (struct target_ops) <to_shortname, to_longname,
4206 2014-07-24 Tom Tromey <tromey@redhat.com>
4208 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4209 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4210 (add_info_alias, add_com): Make "doc" const.
4211 (print_doc_line): Make "str" const.
4212 (delete_cmd): Update.
4213 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4214 (print_doc_line): Update.
4215 * cli/cli-script.c (document_command): Update.
4216 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4217 (add_com, add_info, add_info_alias): Update.
4218 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4219 * python/py-cmd.c (cmdpy_destroyer): Update.
4221 2014-07-24 Tom Tromey <tromey@redhat.com>
4223 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4224 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4225 (help_cmd_list): Constify.
4226 (lookup_cmd): Update.
4227 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4229 (help_cmd_list, apropos_cmd): Update.
4230 * cli/cli-script.c (show_user): Update.
4231 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4232 * cli/cli-setshow.h (cmd_show_list): Update.
4233 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4234 (cmd_show_list): Update.
4235 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4236 * python/py-cmd.c (cmdpy_destroyer): Update.
4238 2014-07-24 Tom Tromey <tromey@redhat.com>
4240 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4241 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4243 * command.h (deprecate_cmd): Update.
4244 * maint.c (maintenance_do_deprecate): Add casts.
4246 2014-07-24 Tom Tromey <tromey@redhat.com>
4248 * cli/cli-decode.c (help_cmd): Make parameter "const".
4249 * cli/cli-decode.h (help_cmd): Update.
4251 2014-07-24 Tom Tromey <tromey@redhat.com>
4253 * stack.c (up_silently_base, down_silently_base): Make argument
4256 2014-07-24 Tom Tromey <tromey@redhat.com>
4258 * solib.c (solib_add): Make "pattern" const.
4259 * solib.h (solib_add): Update.
4261 2014-07-24 Tom Tromey <tromey@redhat.com>
4263 * remote.c (remote_serial_open, print_packet, putpkt)
4264 (putpkt_binary): Constify.
4265 * remote.h (putpkt): Update.
4267 2014-07-24 Tom Tromey <tromey@redhat.com>
4269 * monitor.c (monitor_open): Make "args" const.
4270 * monitor.h (monitor_open): Update.
4272 2014-07-24 Tom Tromey <tromey@redhat.com>
4274 * maint.c (match_bfd_flags): Make "string" const.
4275 (print_bfd_section_info): Remove casts.
4276 (print_objfile_section_info): Make "string" const.
4278 2014-07-24 Tom Tromey <tromey@redhat.com>
4280 * inf-child.c (inf_child_open_target): Make "arg" const.
4281 * inf-child.h (inf_child_open_target): Update.
4283 2014-07-24 Tom Tromey <tromey@redhat.com>
4285 * environ.c (unset_in_environ): Make "var" const.
4286 * environ.h (unset_in_environ): Update.
4288 2014-07-24 Tom Tromey <tromey@redhat.com>
4290 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4292 (scan_filename_with_cleanup): Likewise.
4293 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4294 Make arguments const.
4295 (restore_command): Update.
4297 2014-07-24 Pedro Alves <palves@redhat.com>
4299 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4301 2014-07-24 Tom Tromey <tromey@redhat.com>
4302 Gary Benson <gbenson@redhat.com>
4304 * nat/linux-ptrace.c (additional_flags): New global.
4305 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4306 additional_flags; don't check GDBSERVER.
4307 (linux_ptrace_set_additional_flags): New function.
4308 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4310 * linux-nat.c (_initialize_linux_nat): Call
4311 linux_ptrace_set_additional_flags.
4313 2014-07-24 Tom Tromey <tromey@redhat.com>
4315 * make-target-delegates (munge_type, write_debugmethod): New
4317 (debug_names): New global.
4318 ($TARGET_DEBUG_PRINTER): New global.
4319 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4321 Write debug methods. Generate init_debug_target.
4322 * target-debug.h: New file.
4323 * target-delegates.c: Rebuild.
4324 * target.c: Include target-debug.h.
4325 (debug_target): Hoist definition.
4326 (target_kill, target_get_section_table, target_memory_map)
4327 (target_flash_erase, target_flash_done, target_detach)
4328 (target_disconnect, target_wait, target_resume)
4329 (target_pass_signals, target_program_signals, target_follow_fork)
4330 (target_mourn_inferior, target_search_memory)
4331 (target_thread_address_space, target_close)
4332 (target_find_new_threads, target_core_of_thread)
4333 (target_verify_memory, target_insert_mask_watchpoint)
4334 (target_remove_mask_watchpoint): Remove targetdebug code.
4335 (debug_to_post_attach, debug_to_prepare_to_store)
4336 (debug_to_files_info, debug_to_insert_breakpoint)
4337 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4338 (debug_to_region_ok_for_hw_watchpoint)
4339 (debug_to_can_accel_watchpoint_condition)
4340 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4341 (debug_to_watchpoint_addr_within_range)
4342 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4343 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4344 (debug_to_terminal_init, debug_to_terminal_inferior)
4345 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4346 (debug_to_terminal_save_ours, debug_to_terminal_info)
4347 (debug_to_load, debug_to_post_startup_inferior)
4348 (debug_to_insert_fork_catchpoint)
4349 (debug_to_remove_fork_catchpoint)
4350 (debug_to_insert_vfork_catchpoint)
4351 (debug_to_remove_vfork_catchpoint)
4352 (debug_to_insert_exec_catchpoint)
4353 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4354 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4355 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4356 (setup_target_debug): Call init_debug_target.
4357 * target.h (TARGET_DEBUG_PRINTER): New macro.
4358 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4359 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4361 2014-07-24 Gary Benson <gbenson@redhat.com>
4363 * exceptions.h (throw_vfatal): Renamed to...
4364 (throw_vquit): New declaration.
4365 (throw_quit): Likewise.
4366 * exceptions.c (throw_vfatal): Renamed to...
4367 (throw_vquit): New function.
4368 (throw_quit): Likewise.
4369 (throw_error): Call throw_verror rather than throw_it.
4370 * utils.h (vfatal): Removed.
4372 * utils.c (vfatal): Removed.
4374 (internal_verror): Replaced call to fatal with call to throw_quit.
4375 (quit): Replaced calls to fatal with calls to throw_quit.
4377 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4379 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4382 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4384 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4385 less than zero in conditional expression.
4387 2014-07-23 Tom Tromey <tromey@redhat.com>
4389 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4390 ($INTRO_PART): Don't match whitespace.
4391 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4393 ($METHOD): Add $METHOD_TRAILER.
4395 (scan_target_h): New sub.
4396 Change main loop not to collect state.
4397 * target-delegates.c: Rebuild.
4399 2014-07-23 Gary Benson <gbenson@redhat.com>
4401 * cp-support.c (gdb_demangle): Fix build on systems without
4404 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4406 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4407 for reference entry value target data value.
4409 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4411 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4412 value_available_contents_eq.
4414 2014-07-22 Pedro Alves <palves@redhat.com>
4416 * value.c (allocate_optimized_out_value): Don't mark value as
4419 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4421 * MAINTAINERS (Write After Approval): Update my email address.
4423 2014-07-20 Doug Evans <dje@google.com>
4426 * remote.c (putpkt_binary): Add text to error message.
4428 2014-07-20 Yao Qi <yao@codesourcery.com>
4430 * eval.c: Remove "Chill" from comments.
4431 * gdbtypes.h: Likewise.
4432 * symtab.h: Likewise.
4434 2014-07-20 Yao Qi <yao@codesourcery.com>
4436 * std-operator.def: Update comments to TERNOP_SLICE.
4438 2014-07-20 Yao Qi <yao@codesourcery.com>
4440 * std-operator.def: Remove BINOP_RANGE.
4441 * breakpoint.c (watchpoint_exp_is_const): Update.
4442 * expprint.c (dump_subexp_body_standard): Likewise.
4443 * eval.c (init_array_element): Remove dead code.
4444 (evaluate_subexp_standard): Likewise.
4446 2014-07-20 Yao Qi <yao@codesourcery.com>
4448 * std-operator.def: Remove BINOP_IN.
4449 * breakpoint.c (watchpoint_exp_is_const): Update.
4450 * eval.c (evaluate_subexp_standard): Likewise.
4451 * expprint.c (dump_subexp_body_standard): Likewise.
4453 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4455 * microblaze-tdep.c (microblaze_register_names): Add
4456 the rshr and rslr register names.
4457 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4458 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4459 Use of tdesc_numbered_register. Use of
4460 microblaze_register_g_packet_guesses. Use of
4461 tdesc_use_registers. Use of set_gdbarch_register_type.
4462 (microblaze_register_g_packet_guesses): New.
4463 * microblaze-tdep.h (microblaze_reg_num): Add
4464 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4465 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4466 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4467 * features/microblaze-core.xml: New file.
4468 * features/microblaze-stack-protect.xml: New file.
4469 * features/microblaze-with-stack-protect.c: New file.
4470 * features/microblaze-with-stack-protect.xml: New file.
4471 * features/microblaze.xml: New file.
4472 * features/microblaze.c: New file.
4473 * features/Makefile (microblaze-with-stack-protect): Add
4474 microblaze-with-stack-protect microblaze and microblaze-expedite.
4475 * regformats/microblaze-with-stack-protect.dat: New file.
4476 * regformats/microblaze.dat: New file.
4477 * doc/gdb.texinfo (MicroBlaze Features): Added.
4479 2014-07-18 Tom Tromey <tromey@redhat.com>
4481 * exec.c (exec_ops): Now static.
4482 * exec.h (exec_ops): Don't declare.
4484 2014-07-18 Tom Tromey <tromey@redhat.com>
4486 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4487 to find_target_beneath.
4488 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4489 find_target_beneath.
4490 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4492 2014-07-18 Tom Tromey <tromey@redhat.com>
4495 * utils.c (quit): Use target_supports_terminal_ours.
4496 * target.h (target_supports_terminal_ours): Declare.
4497 * target.c (target_supports_delete_record): Don't check
4498 to_delete_record against NULL.
4499 (target_supports_terminal_ours): New function.
4501 2014-07-18 Tom Tromey <tromey@redhat.com>
4504 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4505 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4506 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4507 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4508 * windows-nat.c (windows_xfer_partial): Always delegate.
4509 * record-btrace.c (record_btrace_xfer_partial): Simplify
4511 (record_btrace_fetch_registers, record_btrace_store_registers)
4512 (record_btrace_prepare_to_store, record_btrace_resume)
4513 (record_btrace_wait, record_btrace_find_new_threads)
4514 (record_btrace_thread_alive): Likewise.
4515 * procfs.c (procfs_xfer_partial): Always delegate.
4516 * corelow.c (core_xfer_partial): Always delegate.
4517 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4519 2014-07-18 Tom Tromey <tromey@redhat.com>
4521 * exec.c (exec_make_note_section): Move earlier.
4523 2014-07-17 Doug Evans <dje@google.com>
4526 * maint.c (count_symtabs_and_blocks): Handle NULL
4527 current_program_space.
4528 (report_command_stats): Check global enabled flag in addition to
4529 recorded enabled flag.
4530 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4532 2014-07-16 Pedro Alves <palves@redhat.com>
4534 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4536 2014-07-16 Tom Tromey <tromey@redhat.com>
4538 * target.h (struct target_ops) <to_delete_record>: Reformat
4541 2014-07-16 Tom Tromey <tromey@redhat.com>
4543 * target-delegates.c: Rebuild.
4545 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4547 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4548 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4549 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4550 (avr_pointer_to_address): Likewise.
4551 (avr_address_class_type_flags): New function.
4552 (avr_address_class_type_flags_to_name): Likewise.
4553 (avr_address_class_name_to_type_flags): Likewise.
4554 (avr_gdbarch_init): Set address_class_type_flags,
4555 address_class_type_flags_to_name and
4556 address_class_name_to_type_flags.
4558 2014-07-15 Pedro Alves <palves@redhat.com>
4560 * linux-nat.c (kill_callback): Save errno and work with saved
4563 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4565 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4567 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4569 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4570 breakpoint support correctly.
4572 2014-07-14 Pedro Alves <palves@redhat.com>
4574 * utils.c (prompt_for_continue): Call target_terminal_ours.
4576 2014-07-14 Pedro Alves <palves@redhat.com>
4578 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4579 catch_errors. Don't re-enable stdin or notify observers where,
4581 (fetch_inferior_event_wrapper): Delete.
4583 2014-07-14 Pedro Alves <palves@redhat.com>
4586 * top.c: Include "inf-loop.h".
4587 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4589 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4591 (gdb_readline_wrapper): Store whether the target is async, and
4594 2014-07-14 Pedro Alves <palves@redhat.com>
4597 * top.c (gdb_readline_wrapper_line): Tweak comment.
4598 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4599 the input handler callback.
4601 2014-07-14 Pedro Alves <palves@redhat.com>
4604 * main.c: Include event-top.h.
4605 (handle_command_errors): New function.
4606 (catch_command_errors, catch_command_errors_const): Use it.
4608 2014-07-14 Pedro Alves <palves@redhat.com>
4610 * exceptions.c (catch_command_errors, catch_command_errors_const):
4612 * exceptions.h (catch_command_errors_ftype)
4613 (catch_command_errors_const_ftype): Moved to main.c.
4614 (catch_command_errors, catch_command_errors_const): Delete
4616 * main.c (catch_command_errors_ftype)
4617 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4618 (catch_command_errors, catch_command_errors_const)): Moved here
4619 from exceptions.c and make static.
4621 2014-07-14 Pedro Alves <palves@redhat.com>
4623 * exceptions.c (print_any_exception): Delete.
4624 (catch_exceptions_with_msg): Use exception_print instead of
4625 print_any_exception.
4626 (catch_errors): Use exception_fprintf instead of
4627 print_any_exception.
4628 (catch_command_errors, catch_command_errors_const): Use
4629 exception_print instead of print_any_exception.
4631 2014-07-14 Pedro Alves <palves@redhat.com>
4633 * infcall.c (run_inferior_call): Set 'sync_execution' while
4634 running the inferior call.
4636 2014-07-14 Pedro Alves <palves@redhat.com>
4638 * value.c (value_contents_equal): Delete function.
4639 * value.h (value_contents_equal): Delete declaration.
4641 2014-07-14 Tom Tromey <tromey@redhat.com>
4644 * gdbtypes.c (is_dynamic_type_internal): New function, from
4646 (is_dynamic_type): Rewrite.
4647 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4648 (resolve_dynamic_struct): Likewise.
4649 (resolve_dynamic_type_internal): New function, from
4650 resolve_dynamic_type.
4651 (resolve_dynamic_type): Rewrite.
4653 2014-07-14 Tom Tromey <tromey@redhat.com>
4655 * target.c (target_require_runnable): Also check record_stratum.
4658 2014-07-11 Yao Qi <yao@codesourcery.com>
4660 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4661 thumb_instruction_restores_sp return true.
4663 2014-07-11 Yao Qi <yao@codesourcery.com>
4665 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4666 (thumb_in_function_epilogue_p): Call
4667 thumb_instruction_restores_sp.
4669 2014-07-11 Yao Qi <yao@codesourcery.com>
4671 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4673 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4675 2014-07-11 Gary Benson <gbenson@redhat.com>
4677 * amd64-linux-nat.c (gdbcore.h): Remove include.
4678 (regset.h): Likewise.
4679 (nat/linux-btrace.h): Likewise.
4680 (btrace.h): Likewise.
4681 (gdb_assert.h): Likewise.
4682 (string.h): Likewise.
4683 (sys/uio.h): Likewise.
4684 (sys/debugreg.h): Likewise.
4685 (sys/syscall.h): Likewise.
4686 (sys/procfs.h): Likewise.
4687 (sys/user.h): Likewise.
4688 (asm/ptrace.h): Likewise.
4689 (i386-nat.h): Likewise.
4690 * i386-linux-nat.c (i386-nat.h): Likewise.
4691 (regset.h): Likewise.
4692 (target.h): Likewise.
4693 (linux-nat.h): Likewise.
4694 (nat/linux-btrace.h): Likewise.
4695 (btrace.h): Likewise.
4696 (gdb_assert.h): Likewise.
4697 (string.h): Likewise.
4698 (sys/uio.h): Likewise.
4699 (sys/user.h): Likewise.
4700 (sys/procfs.h): Likewise.
4701 (sys/reg.h): Likewise.
4702 (sys/debugreg.h): Likewise.
4703 (ORIG_EAX): Remove definition.
4705 2014-07-11 Gary Benson <gbenson@redhat.com>
4707 * i386-linux-nat.h: New file.
4708 * x86-linux-nat.h: Likewise.
4709 * x86-linux-nat.c: Likewise.
4710 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4711 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4712 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4713 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4714 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4715 (PTRACE_SETREGSET): Likewise.
4716 (arch_lwp_info): Now in x86-linux-nat.c.
4717 (have_ptrace_getregset): Now in x86-linux-nat.h.
4718 (x86_linux_dr_get): Now in x86-linux-nat.c.
4719 (x86_linux_dr_set): Likewise.
4720 (x86_linux_dr_get_addr): Likewise.
4721 (x86_linux_dr_get_control): Likewise.
4722 (x86_linux_dr_get_status): Likewise.
4723 (update_debug_registers_callback): Likewise.
4724 (x86_linux_dr_set_control): Likewise.
4725 (x86_linux_dr_set_addr): Likewise.
4726 (x86_linux_prepare_to_resume): Likewise.
4727 (x86_linux_new_thread): Likewise.
4728 (x86_linux_new_fork): Likewise.
4729 (x86_linux_get_thread_area): Likewise.
4730 (super_post_startup_inferior): Likewise.
4731 (x86_linux_child_post_startup_inferior): Likewise.
4732 (AMD64_LINUX_USER64_CS): Likewise.
4733 (AMD64_LINUX_X32_DS): Likewise.
4734 (x86_linux_read_description): Likewise.
4735 (x86_linux_enable_btrace): Likewise.
4736 (x86_linux_disable_btrace): Likewise.
4737 (x86_linux_teardown_btrace): Likewise.
4738 (x86_linux_read_btrace): Likewise.
4739 (x86_linux_create_target): Likewise.
4740 (x86_linux_add_target): Likewise.
4741 * i386-linux-nat.c (x86-linux-nat.h): New include.
4742 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4743 (PTRACE_SETREGSET): Likewise.
4744 (arch_lwp_info): Now in x86-linux-nat.c.
4745 (have_ptrace_getregset): Now in x86-linux-nat.h.
4746 (x86_linux_dr_get): Now in x86-linux-nat.c.
4747 (x86_linux_dr_set): Likewise.
4748 (x86_linux_dr_get_addr): Likewise.
4749 (x86_linux_dr_get_control): Likewise.
4750 (x86_linux_dr_get_status): Likewise.
4751 (update_debug_registers_callback): Likewise.
4752 (x86_linux_dr_set_control): Likewise.
4753 (x86_linux_dr_set_addr): Likewise.
4754 (x86_linux_prepare_to_resume): Likewise.
4755 (x86_linux_new_thread): Likewise.
4756 (x86_linux_new_fork): Likewise.
4757 (x86_linux_get_thread_area): Likewise.
4758 (super_post_startup_inferior): Likewise.
4759 (x86_linux_child_post_startup_inferior): Likewise.
4760 (AMD64_LINUX_USER64_CS): Likewise.
4761 (AMD64_LINUX_X32_DS): Likewise.
4762 (x86_linux_read_description): Likewise.
4763 (x86_linux_enable_btrace): Likewise.
4764 (x86_linux_disable_btrace): Likewise.
4765 (x86_linux_teardown_btrace): Likewise.
4766 (x86_linux_read_btrace): Likewise.
4767 (x86_linux_create_target): Likewise.
4768 (x86_linux_add_target): Likewise.
4770 2014-07-11 Gary Benson <gbenson@redhat.com>
4772 * amd64-linux-nat.c: Comment and whitespace changes.
4773 * i386-linux-nat.c: Comment and whitespace changes.
4775 2014-07-11 Gary Benson <gbenson@redhat.com>
4777 * amd64-linux-nat.c (x86_linux_create_target): New function.
4778 (x86_linux_add_target): Likewise.
4779 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4780 * i386-linux-nat.c (x86_linux_create_target): New function.
4781 (x86_linux_add_target): Likewise.
4782 (_initialize_i386_linux_nat): Delegate to the above new functions.
4784 2014-07-11 Gary Benson <gbenson@redhat.com>
4786 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4787 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4788 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4789 (ps_get_thread_area): Delegate to the above.
4791 2014-07-11 Gary Benson <gbenson@redhat.com>
4793 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4794 x86_linux_read_description. All uses updated. amd64-specific
4795 code conditionalized. Conditionalized i386-specific code added.
4796 Redundant cast removed.
4797 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4798 x86_linux_read_description. All uses updated. i386-specific
4799 code conditionalized. Conditionalized amd64-specific code added.
4800 One sizeof replaced with the actual type it is describing.
4802 2014-07-11 Gary Benson <gbenson@redhat.com>
4804 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4805 x86_linux_dr_get. All uses updated.
4806 (amd64_linux_dr_set): Renamed to
4807 x86_linux_dr_set. All uses updated.
4808 (amd64_linux_dr_get_addr): Renamed to
4809 x86_linux_dr_get_addr. All uses updated.
4810 (amd64_linux_dr_get_control): Renamed to
4811 x86_linux_dr_get_control. All uses updated.
4812 (amd64_linux_dr_get_status): Renamed to
4813 x86_linux_dr_get_status. All uses updated.
4814 (amd64_linux_dr_set_control): Renamed to
4815 x86_linux_dr_set_control. All uses updated.
4816 (amd64_linux_dr_set_addr): Renamed to
4817 x86_linux_dr_set_addr. All uses updated.
4818 (amd64_linux_prepare_to_resume): Renamed to
4819 x86_linux_prepare_to_resume. All uses updated.
4820 (amd64_linux_new_thread): Renamed to
4821 x86_linux_new_thread. All uses updated.
4822 (amd64_linux_new_fork): Renamed to
4823 x86_linux_new_fork. All uses updated.
4824 (amd64_linux_child_post_startup_inferior): Renamed to
4825 x86_linux_child_post_startup_inferior. All uses updated.
4826 (amd64_linux_enable_btrace): Renamed to
4827 x86_linux_enable_btrace. All uses updated.
4828 (amd64_linux_disable_btrace): Renamed to
4829 x86_linux_disable_btrace. All uses updated.
4830 (amd64_linux_teardown_btrace): Renamed to
4831 x86_linux_teardown_btrace. All uses updated.
4832 (amd64_linux_read_btrace): Renamed to
4833 x86_linux_read_btrace. All uses updated.
4834 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4835 x86_linux_dr_get. All uses updated.
4836 (i386_linux_dr_set): Renamed to
4837 x86_linux_dr_set. All uses updated.
4838 (i386_linux_dr_get_addr): Renamed to
4839 x86_linux_dr_get_addr. All uses updated.
4840 (i386_linux_dr_get_control): Renamed to
4841 x86_linux_dr_get_control. All uses updated.
4842 (i386_linux_dr_get_status): Renamed to
4843 x86_linux_dr_get_status. All uses updated.
4844 (i386_linux_dr_set_control): Renamed to
4845 x86_linux_dr_set_control. All uses updated.
4846 (i386_linux_dr_set_addr): Renamed to
4847 x86_linux_dr_set_addr. All uses updated.
4848 (i386_linux_prepare_to_resume): Renamed to
4849 x86_linux_prepare_to_resume. All uses updated.
4850 (i386_linux_new_thread): Renamed to
4851 x86_linux_new_thread. All uses updated.
4852 (i386_linux_new_fork): Renamed to
4853 x86_linux_new_fork. All uses updated.
4854 (i386_linux_child_post_startup_inferior): Renamed to
4855 x86_linux_child_post_startup_inferior. All uses updated.
4856 (i386_linux_enable_btrace): Renamed to
4857 x86_linux_enable_btrace. All uses updated.
4858 (i386_linux_disable_btrace): Renamed to
4859 x86_linux_disable_btrace. All uses updated.
4860 (i386_linux_teardown_btrace): Renamed to
4861 x86_linux_teardown_btrace. All uses updated.
4862 (i386_linux_read_btrace): Renamed to
4863 x86_linux_read_btrace. All uses updated.
4865 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4867 * remote.c (extended_remote_post_attach): New function.
4868 (init_extended_remote_ops): Install it as to_post_attach method.
4870 2014-07-09 Pedro Alves <palves@redhat.com>
4872 * infcmd.c (attach_command_post_wait): Don't call
4873 target_terminal_inferior here.
4874 (attach_command): Call it here instead.
4876 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4878 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4880 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4881 from varobj.c, with additional checks.
4882 (c_varobj_ops): Fill in is_path_expr_parent field.
4883 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4884 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4886 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4888 (varobj_default_is_path_expr_parent): New function.
4889 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4890 (varobj_default_is_path_expr_parent): Declare new function.
4892 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4894 * infcmd.c (finish_backward): Turn internal error into normal error.
4896 2014-07-07 Pedro Alves <palves@redhat.com>
4899 * remote.c (async_handle_remote_sigint)
4900 (async_handle_remote_sigint_twice): Call
4901 gdb_call_async_signal_handler instead of
4902 mark_async_signal_handler.
4904 2014-07-07 Tom Tromey <tromey@redhat.com>
4906 * target-delegates.c: Rebuild.
4907 * target.c (target_info_record): Remove.
4908 * record.c (info_record_command): Unconditionally call
4910 * target.h (struct target_ops) <to_info_record>: Use
4911 TARGET_DEFAULT_IGNORE.
4912 (target_info_record): Remove.
4914 2014-07-07 Tom Tromey <tromey@redhat.com>
4916 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4917 TARGET_DEFAULT_NORETURN.
4918 * target.c (generic_tls_error): New function.
4919 (target_translate_tls_address): Don't search target stack.
4920 * target-delegates.c: Rebuild.
4921 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4923 * linux-thread-db.c (thread_db_get_thread_local_address):
4924 Unconditionally call beneath target.
4926 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4928 * cli/cli-logging.c (pop_output_files): Assign targerr to
4931 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4933 * MAINTAINERS (Write After Approval): Update my email address.
4935 2014-07-02 Gary Benson <gbenson@redhat.com>
4937 * proc-service.c (ps_xfer_memory): Update comment.
4938 (ps_pstop): Remove unused function.
4939 (ps_pcontinue): Likewise.
4940 (ps_lstop): Likewise.
4941 (ps_lcontinue): Likewise.
4942 (ps_lgetxregsize): Likewise.
4943 (ps_lgetxregs): Likewise.
4944 (ps_lsetxregs): Likewise.
4945 (ps_plog): Likewise.
4946 (ps_ptread): Likewise.
4947 (ps_ptwrite): Likewise.
4949 2014-07-01 Mark Wielaard <mjw@redhat.com>
4951 * dwarf2read.c (add_array_cv_type): New function.
4952 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4953 (read_tag_volatile_type): Likewise.
4955 2014-07-01 Tom Tromey <tromey@redhat.com>
4957 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4958 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4959 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4960 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4961 * command.h (cmd_cfunc_ftype): Move earlier.
4962 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4963 (add_com, add_info): Use cmd_cfunc_ftype.
4965 2014-06-30 Tom Tromey <tromey@redhat.com>
4967 * symtab.c (operator_chars): Make parameters and return type
4969 (file_matches): Make "files" const.
4970 (struct search_symbols_data) <files>: Now const.
4971 (search_symbols): Make "regexp" and "files" parameters const.
4973 (symtab_symbol_info): Remove cast.
4974 (rbreak_command): Update.
4975 * symtab.h (search_symbols): Update.
4977 2014-06-27 Yao Qi <yao@codesourcery.com>
4979 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4980 Change parameter type to 'struct thread_info *'. Caller
4982 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4984 * dummy-frame.c (struct dummy_frame_id): New.
4985 (dummy_frame_id_eq): New function.
4986 (struct dummy_frame) <id>: Change its type to 'struct
4988 (dummy_frame_push): Add parameter ptid and save it in
4990 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4992 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4994 (lookup_dummy_frame): Change parameter type to 'struct
4995 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4996 instead of frame_id_eq.
4997 (dummy_frame_pop): Add parameter ptid. Callers updated.
4998 Update comments. Compose dummy_frame_id and pass it to
5000 (dummy_frame_discard): Add parameter ptid.
5001 (dummy_frame_sniffer): Compose dummy_frame_id and call
5002 dummy_frame_id_eq instead of frame_id_eq.
5003 (fprint_dummy_frames): Print ptid.
5004 * dummy-frame.h: Remove comments.
5005 (dummy_frame_push): Add ptid in declaration.
5006 (dummy_frame_pop, dummy_frame_discard): Likewise.
5008 2014-06-26 Tom Tromey <tromey@redhat.com>
5010 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5011 * command.h (error_no_arg): Update.
5013 2014-06-26 Tom Tromey <tromey@redhat.com>
5015 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5016 (do_show_command): Make "arg" const.
5017 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5019 2014-06-26 Tom Tromey <tromey@redhat.com>
5021 * record-full.c (record_full_get_bookmark): Make "args" const.
5022 (record_full_goto_bookmark): Make "raw_bookmark" const.
5023 * record.c (record_goto): New function.
5024 (cmd_record_goto): Use it. Now static.
5025 * record.h (record_goto): Declare.
5026 (cmd_record_goto): Remove declaration.
5027 * target-delegates.c: Rebuild.
5028 * target.h (struct target_ops) <to_get_bookmark,
5029 to_goto_bookmark>: Make parameter const.
5031 2014-06-26 Tom Tromey <tromey@redhat.com>
5033 * defs.h (generic_load): Update.
5034 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5035 * monitor.c (monitor_load): Make "args" const.
5036 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5037 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5039 (mips_load): Make "file" const.
5040 * remote-sim.c (gdbsim_load): Make "args" const.
5041 * remote.c (remote_load): Make "name" const.
5042 * symfile.c (generic_load): Make "args" const.
5043 * target-delegates.c: Rebuild.
5044 * target.c (target_load): Make "arg" const.
5045 (debug_to_load): Make "args" const.
5046 * target.h (struct target_ops) <to_load>: Make parameter const.
5047 (target_load): Update.
5049 2014-06-26 Tom Tromey <tromey@redhat.com>
5052 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5053 (dwarf2_physname, read_partial_die)
5054 (guess_partial_die_structure_name, fixup_partial_die)
5055 (guess_full_die_structure_name, anonymous_struct_prefix)
5056 (dwarf2_name): Use per-BFD obstack.
5058 2014-06-26 Yao Qi <yao@codesourcery.com>
5060 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5061 dummyframe and this_id into inner block below.
5063 2014-06-26 Yao Qi <yao@codesourcery.com>
5065 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5066 with "signal_pass[0]" in the initialization of signal_pass.
5068 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5070 * record-btrace.c (record_btrace_generating_corefile)
5071 (record_btrace_prepare_to_generate_core)
5072 (record_btrace_done_generating_core): New.
5073 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5074 (record_btrace_store_registers, record_btrace_prepare_to_store):
5075 Forward request when generating a core file.
5076 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5077 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5078 to_done_generating_core.
5080 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5082 * target.h (target_ops) <to_prepare_to_generate_core>
5083 <to_done_generating_core>: New.
5084 (target_prepare_to_generate_core, target_done_generating_core): New.
5085 * target.c (target_prepare_to_generate_core)
5086 (target_done_generating_core): New.
5087 * target-delegates.c: Regenerate.
5088 * gcore.c: (write_gcore_file): Rename to ...
5089 (write_gcore_file_1): ...this.
5090 (write_gcore_file): Call target_prepare_to_generate_core
5091 and target_done_generating_core.
5093 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5095 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5096 * gcore.c (write_gcore_file): Free memory returned from
5097 make_corefile_notes.
5098 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5099 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5101 2014-06-24 Yao Qi <yao@codesourcery.com>
5103 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5104 (arm_linux_init_abi): Set skip_trampoline_code with
5105 gdbarch_skip_trampoline_code instead of
5106 find_solib_trampoline_target.
5108 2014-06-24 Yao Qi <yao@codesourcery.com>
5110 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5111 arm_skip_bx_reg returns non-zero.
5113 2014-06-24 Yao Qi <yao@codesourcery.com>
5115 * arm-tdep.c (arm_skip_bx_reg): New function.
5116 (arm_skip_stub): Call arm_skip_bx_reg.
5118 2014-06-23 Don Breazeal <donb@codesourcery.com>
5120 * MAINTAINERS: Add myself as write-after-approval maintainer.
5122 2014-06-23 Pedro Alves <palves@redhat.com>
5124 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5125 DR_CONTROL before setting DR0..DR3.
5126 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5127 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5128 bits of DR_CONTROL related to the debug register slot being
5129 disabled. If all slots are vacant, clear local slowdown as well,
5130 and assert DR_CONTROL is 0.
5132 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5134 * python/lib/gdb/command/xmethods.py
5135 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5136 current progspace only if the string "progspace" matches LOCUS_RE.
5138 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5140 Fix --with-system-readline with readline-6.3 patch 5.
5141 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5142 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5145 2014-06-20 Tom Tromey <tromey@redhat.com>
5147 * dwarf2read.c (dw2_get_real_path): Use correct type in
5149 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5151 2014-06-20 Gary Benson <gbenson@redhat.com>
5153 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5154 * common/glibc_thread_db.h: Likewise.
5155 * common/i386-cpuid.h: Likewise.
5156 * common/i386-gcc-cpuid.h: Likewise.
5157 * common/linux-btrace.h: Likewise.
5158 * common/linux-osdata.h: Likewise.
5159 * common/linux-procfs.h: Likewise.
5160 * common/linux-ptrace.h: Likewise.
5161 * common/mips-linux-watch.h: Likewise.
5162 * common/linux-btrace.c: Moved to nat.
5163 * common/linux-osdata.c: Likewise.
5164 * common/linux-procfs.c: Likewise.
5165 * common/linux-ptrace.c: Likewise.
5166 * common/mips-linux-watch.c: Likewise.
5167 * nat/gdb_thread_db.h: Moved from common.
5168 * nat/glibc_thread_db.h: Likewise.
5169 * nat/i386-cpuid.h: Likewise.
5170 * nat/i386-gcc-cpuid.h: Likewise.
5171 * nat/linux-btrace.c: Likewise.
5172 * nat/linux-btrace.h: Likewise.
5173 * nat/linux-osdata.c: Likewise.
5174 * nat/linux-osdata.h: Likewise.
5175 * nat/linux-procfs.c: Likewise.
5176 * nat/linux-procfs.h: Likewise.
5177 * nat/linux-ptrace.c: Likewise.
5178 * nat/linux-ptrace.h: Likewise.
5179 * nat/mips-linux-watch.c: Likewise.
5180 * nat/mips-linux-watch.h: Likewise.
5181 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5182 (object file files): Reordered.
5183 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5184 of glibc_thread_db.h.
5186 2014-06-20 Gary Benson <gbenson@redhat.com>
5188 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5189 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5190 (i386_dr_low): Likewise.
5191 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5192 (i386_dr_low_set_addr): Likewise.
5193 (i386_dr_low_get_addr): Likewise.
5194 (i386_dr_low_can_set_control): Likewise.
5195 (i386_dr_low_set_control): Likewise.
5196 (i386_dr_low_get_control): Likewise.
5197 (i386_dr_low_get_status): Likewise.
5198 (i386_get_debug_register_length): Likewise.
5199 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5200 (i386_dr_low): Likewise.
5201 * nat/i386-dregs.c (i386-low.h): Remove include.
5202 (i386-nat.h): Likewise.
5203 (nat/i386-dregs.h): New include.
5204 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5205 (i386_dr_low_set_addr): Likewise.
5206 (i386_dr_low_get_addr): Likewise.
5207 (i386_dr_low_can_set_control): Likewise.
5208 (i386_dr_low_set_control): Likewise.
5209 (i386_dr_low_get_control): Likewise.
5210 (i386_dr_low_get_status): Likewise.
5211 (i386_get_debug_register_length): Likewise.
5212 (debug_hw_points): Likewise.
5214 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5216 * Makefile.in (SFILES): Add d-exp.y.
5217 (YYFILES): Add d-exp.c.
5218 (YYOBJ): Add d-exp.o.
5219 (local-maintainer-clean): Delete d-exp.c.
5220 * d-exp.y: New file.
5221 * d-lang.h (d_parse): New declaration.
5222 (d_error): New declaration.
5223 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5224 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5225 PREC_ORDER operators.
5226 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5228 2014-06-19 Yao Qi <yao@codesourcery.com>
5230 * gdbthread.h (any_running): Remove the declaration.
5231 * thread.c (any_running): Remove.
5233 2014-06-19 Yao Qi <yao@codesourcery.com>
5235 * gdbthread.h (struct thread_info) <state>: Change its type to
5236 'enum thread_state'. Update comments.
5238 2014-06-19 Pedro Alves <palves@redhat.com>
5240 * gdbthread.h (ALL_THREADS): Delete.
5241 (ALL_NON_EXITED_THREADS): New macro.
5242 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5243 instead of ALL_THREADS.
5244 * infrun.c (find_thread_needs_step_over)
5245 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5246 instead of ALL_THREADS.
5247 * record-btrace.c (record_btrace_open)
5248 (record_btrace_stop_recording, record_btrace_close)
5249 (record_btrace_is_replaying, record_btrace_resume)
5250 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5251 * remote.c (append_pending_thread_resumptions): Likewise.
5252 * thread.c (thread_apply_all_command): Likewise.
5254 2014-06-19 Gary Benson <gbenson@redhat.com>
5256 * i386-nat.c (i386_stopped_by_watchpoint):
5257 Use i386_dr_stopped_by_watchpoint.
5258 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5259 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5261 2014-06-19 Gary Benson <gbenson@redhat.com>
5263 * nat/i386-dregs.c: New file.
5264 * Makefile.in (i386-dregs.o): New rule.
5265 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5266 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5267 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5268 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5269 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5270 * config/i386/go32.mh (NATDEPFILES): Likewise.
5271 * config/i386/linux.mh (NATDEPFILES): Likewise.
5272 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5273 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5274 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5275 * i386-nat.h (debug_hw_points): New declaration.
5276 * i386-nat.c (breakpoint.h): Remove include.
5277 (command.h): Likewise.
5278 (target.h): Likewise.
5279 (gdb_assert.h): Likewise.
5280 (debug_hw_points): Made nonstatic.
5281 (debug_printf): Now in i386-dregs.c.
5282 (TARGET_HAS_DR_LEN_8): Likewise.
5283 (DR_CONTROL_SHIFT): Likewise.
5284 (DR_CONTROL_SIZE): Likewise.
5285 (DR_RW_EXECUTE): Likewise.
5286 (DR_RW_WRITE): Likewise.
5287 (DR_RW_READ): Likewise.
5288 (DR_RW_IORW): Likewise.
5289 (DR_LEN_1): Likewise.
5290 (DR_LEN_2): Likewise.
5291 (DR_LEN_4): Likewise.
5292 (DR_LEN_8): Likewise.
5293 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5294 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5295 (DR_ENABLE_SIZE): Likewise.
5296 (DR_LOCAL_SLOWDOWN): Likewise.
5297 (DR_GLOBAL_SLOWDOWN): Likewise.
5298 (DR_CONTROL_RESERVED): Likewise.
5299 (I386_DR_CONTROL_MASK): Likewise.
5300 (I386_DR_VACANT): Likewise.
5301 (I386_DR_LOCAL_ENABLE): Likewise.
5302 (I386_DR_GLOBAL_ENABLE): Likewise.
5303 (I386_DR_DISABLE): Likewise.
5304 (I386_DR_SET_RW_LEN): Likewise.
5305 (I386_DR_GET_RW_LEN): Likewise.
5306 (I386_DR_WATCH_HIT): Likewise.
5307 (i386_wp_op_t): Likewise.
5308 (i386_show_dr): Likewise.
5309 (i386_length_and_rw_bits): Likewise.
5310 (i386_insert_aligned_watchpoint): Likewise.
5311 (i386_remove_aligned_watchpoint): Likewise.
5312 (i386_handle_nonaligned_watchpoint): Likewise.
5313 (i386_update_inferior_debug_regs): Likewise.
5314 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5315 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5316 (i386_region_ok_for_watchpoint):
5317 Use i386_dr_region_ok_for_watchpoint.
5318 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5320 2014-06-19 Gary Benson <gbenson@redhat.com>
5322 * i386-nat.c (i386_insert_hw_breakpoint): Use
5323 i386_insert_watchpoint.
5324 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5326 2014-06-19 Gary Benson <gbenson@redhat.com>
5328 * i386-nat.c (i386_dr_show): Renamed to
5329 i386_show_dr and made static. All uses updated.
5330 (i386_dr_length_and_rw_bits): Renamed to
5331 i386_length_and_rw_bits and made static.
5333 (i386_dr_insert_aligned_watchpoint): Renamed to
5334 i386_insert_aligned_watchpoint and made static.
5336 (i386_dr_remove_aligned_watchpoint): Renamed to
5337 i386_remove_aligned_watchpoint and made static.
5339 (i386_dr_update_inferior_debug_regs): Renamed to
5340 i386_update_inferior_debug_regs and made static.
5342 * nat/i386-dregs.h (i386_dr_show): Removed.
5343 (i386_dr_length_and_rw_bits): Likewise.
5344 (i386_dr_insert_aligned_watchpoint): Likewise.
5345 (i386_dr_remove_aligned_watchpoint): Likewise.
5346 (i386_dr_update_inferior_debug_regs): Likewise.
5348 2014-06-19 Gary Benson <gbenson@redhat.com>
5350 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5351 * configure: Regenerate.
5352 * config.in: Likewise.
5353 * main.c (signal.h): New include.
5354 (setup_alternate_signal_stack): New function.
5355 (captured_main): Call the above.
5356 * cp-support.c (signal.h): New include.
5357 (catch_demangler_crashes): New flag.
5358 (SIGJMP_BUF): New define.
5359 (SIGSETJMP): Likewise.
5360 (SIGLONGJMP): Likewise.
5361 (gdb_demangle_jmp_buf): New static global.
5362 (gdb_demangle_attempt_core_dump): Likewise.
5363 (gdb_demangle_signal_handler): New function.
5364 (gdb_demangle): If catch_demangler_crashes is set, install the
5365 above signal handler before calling bfd_demangle, and restore
5366 the original signal handler afterwards. Display the offending
5367 symbol and call demangler_warning the first time a segmentation
5369 (_initialize_cp_support): New maint set/show command.
5371 2014-06-19 Gary Benson <gbenson@redhat.com>
5373 * utils.h (resource_limit_kind): New enum.
5374 (can_dump_core): New declaration.
5375 (warn_cant_dump_core): Likewise.
5376 (dump_core): Likewise.
5377 * utils.c (dump_core): Made nonstatic. Added new
5378 parameter "limit_kind".
5379 (can_dump_core): Made nonstatic. Moved printing code to...
5380 (warn_cant_dump_core): New function.
5381 (can_dump_core_warn): Likewise.
5382 (internal_vproblem): Replace calls to can_dump_core with
5383 calls to can_dump_core_warn. Supply new argument to each.
5385 2014-06-19 Gary Benson <gbenson@redhat.com>
5387 * utils.h (demangler_vwarning): New declaration.
5388 (demangler_warning): Likewise.
5389 * utils.c (struct internal_problem)
5390 <user_settable_should_quit>: New field.
5391 <user_settable_should_dump_core>: Likewise
5392 (internal_error_problem): Add values for above new fields.
5393 (internal_warning_problem): Likewise.
5394 (demangler_warning_problem): New static global.
5395 (demangler_vwarning): New function.
5396 (demangler_warning): Likewise.
5397 (add_internal_problem_command): Selectively add commands.
5398 (_initialize_utils): New internal problem command.
5399 * maint.c (maintenance_demangler_warning): New function.
5400 (_initialize_maint_cmds): New command.
5402 2014-06-18 Tom Tromey <tromey@redhat.com>
5404 * f-valprint.c (info_common_command_for_block): Update.
5405 * symtab.h (struct general_symbol_info) <common_block>: Now
5408 2014-06-18 Tom Tromey <tromey@redhat.com>
5410 * symtab.h (struct symtab) <blockvector>: Now const.
5411 * ada-lang.c (ada_add_global_exceptions): Update.
5412 * buildsym.c (augment_type_symtab): Update.
5413 * dwarf2read.c (dw2_lookup_symbol): Update.
5414 * jit.c (finalize_symtab): Update.
5415 * jv-lang.c (add_class_symtab_symbol): Update.
5416 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5418 * objfiles.c (objfile_relocate1): Update.
5419 * psymtab.c (lookup_symbol_aux_psymtabs)
5420 (maintenance_check_psymtabs): Update.
5421 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5423 * spu-tdep.c (spu_catch_start): Update.
5424 * symmisc.c (dump_symtab_1): Update.
5425 * symtab.c (lookup_global_symbol_from_objfile)
5426 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5427 (basic_lookup_transparent_type_quick)
5428 (basic_lookup_transparent_type, find_pc_sect_symtab)
5429 (find_pc_sect_line, search_symbols): Update.
5430 * block.c (find_block_in_blockvector): Make "bl" const.
5431 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5433 (blockvector_contains_pc): Make "bv" const.
5434 (block_for_pc_sect): Update.
5435 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5436 (blockvector_contains_pc): Update.
5437 * breakpoint.c (resolve_sal_pc): Update.
5438 * inline-frame.c (block_starting_point_at): Update.
5440 2014-06-18 Tom Tromey <tromey@redhat.com>
5442 * completer.c (complete_line): Make "line_buffer" const.
5443 * completer.h (complete_line): Update.
5445 2014-06-18 Tom Tromey <tromey@redhat.com>
5447 * symtab.c (add_macro_name): Remove unneeded cast.
5449 2014-06-18 Tom Tromey <tromey@redhat.com>
5451 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5452 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5454 2014-06-18 Tom Tromey <tromey@redhat.com>
5456 * probe.c (info_probes_for_ops): Make "arg" const.
5457 * probe.h (info_probes_for_ops): Update.
5459 2014-06-18 Tom Tromey <tromey@redhat.com>
5461 * varobj.c (varobj_create): Update.
5462 * valops.c (value_of_this): Update.
5463 * tracepoint.c (add_local_symbols, scope_info): Update.
5464 * symtab.h (struct general_symbol_info) <block>: Now const.
5465 * symtab.c (skip_prologue_sal)
5466 (default_make_symbol_completion_list_break_on)
5467 (skip_prologue_using_sal): Update.
5468 * stack.h (iterate_over_block_locals)
5469 (iterate_over_block_local_vars): Update.
5470 * stack.c (print_frame_args): Update.
5471 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5473 (get_selected_block): Make return type const.
5474 * python/py-frame.c (frapy_block): Update.
5475 * python/py-block.c (gdbpy_block_for_pc): Update.
5476 * p-exp.y (%union) <bval>: Now const.
5477 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5478 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5479 * m2-exp.y (%union) <bval>: Now const.
5480 * linespec.c (get_current_search_block): Make return type const.
5481 (create_sals_line_offset, find_label_symbols): Update.
5482 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5484 (block_starting_point_at): Make "block" const.
5485 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5486 (check_exception_resume): Update.
5487 * guile/scm-frame.c (gdbscm_frame_block): Update.
5488 * guile/scm-block.c (gdbscm_lookup_block): Update.
5489 * frame.h (get_frame_block): Update.
5490 (get_selected_block): Make return type const.
5491 * frame.c (frame_id_inner): Update.
5492 * f-valprint.c (info_common_command_for_block)
5493 (info_common_command): Update.
5494 * dwarf2loc.c (dwarf2_find_location_expression)
5495 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5496 (locexpr_describe_location_piece): Update.
5497 * c-exp.y (%union) <bval>: Now const.
5498 * breakpoint.c (resolve_sal_pc): Update.
5499 * blockframe.c (get_frame_block):Make return type const.
5500 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5501 (block_innermost_frame): Update.
5502 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5503 (block_for_pc, block_for_pc_sect): Update.
5504 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5506 (block_for_pc_sect, block_for_pc): Make return type const.
5507 * ax-gdb.c (gen_expr): Update.
5508 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5509 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5510 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5511 (ada_read_var_value): Update.
5512 * ada-exp.y (struct name_info) <block>: Now const.
5514 (block_lookup): Constify.
5516 2014-06-18 Gary Benson <gbenson@redhat.com>
5518 * nat/i386-dregs.h: New file.
5519 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5520 * i386-nat.h (i386-dregs.h): New include.
5521 (DR_FIRSTADDR): Now in i386-dregs.h.
5522 (DR_LASTADDR): Likewise.
5523 (DR_NADDR): Likewise.
5524 (DR_STATUS): Likewise.
5525 (DR_CONTROL): Likewise.
5526 (i386_debug_reg_state): Likewise.
5527 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5529 2014-06-18 Don Breazeal <donb@codesourcery.com>
5531 * breakpoint.c (set_longjmp_breakpoint): Call
5532 momentary_breakpoint_from_master with additional argument.
5533 (set_longjmp_breakpoint_for_call_dummy): Call
5534 momentary_breakpoint_from_master with additional argument.
5535 (set_std_terminate_breakpoint): Call
5536 momentary_breakpoint_from_master with additional argument.
5537 (momentary_breakpoint_from_master): Add argument to function
5538 definition and use it to initialize structure member flag.
5539 (clone_momentary_breakpoint): Call
5540 momentary_breakpoint_from_master with additional argument.
5541 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5542 member flags set in momentary_breakpoint_from_master.
5544 2014-06-18 Gary Benson <gbenson@redhat.com>
5546 * i386-nat.c (i386_show_dr): Renamed to
5547 i386_dr_show and made nonstatic. All uses updated.
5548 (i386_length_and_rw_bits): Renamed to
5549 i386_dr_length_and_rw_bits and made nonstatic.
5551 (i386_insert_aligned_watchpoint): Renamed to
5552 i386_dr_insert_aligned_watchpoint and made nonstatic.
5554 (i386_remove_aligned_watchpoint): Renamed to
5555 i386_dr_remove_aligned_watchpoint and made nonstatic.
5557 (i386_update_inferior_debug_regs): Renamed to
5558 i386_dr_update_inferior_debug_regs and made nonstatic.
5561 2014-06-18 Gary Benson <gbenson@redhat.com>
5563 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5564 (i386_dr_low_can_set_control): Likewise.
5565 (i386_dr_low_set_addr): Likewise.
5566 (i386_dr_low_set_control): Likewise.
5567 (i386_dr_low_get_addr): Likewise.
5568 (i386_dr_low_get_status): Likewise.
5569 (i386_dr_low_get_control): Likewise.
5570 (i386_insert_aligned_watchpoint): Use new macros.
5571 (i386_update_inferior_debug_regs): Likewise.
5572 (i386_stopped_data_address): Likewise.
5574 2014-06-18 Gary Benson <gbenson@redhat.com>
5576 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5577 New parameter. All uses updated.
5579 2014-06-18 Gary Benson <gbenson@redhat.com>
5581 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5584 2014-06-18 Gary Benson <gbenson@redhat.com>
5586 * i386-nat.c (debug_printf): New macro.
5587 (i386_get_debug_register_length): Likewise.
5588 (TARGET_HAS_DR_LEN_8): Use above macro.
5589 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5590 and printf_unfiltered. Use phex to format values.
5592 2014-06-18 Gary Benson <gbenson@redhat.com>
5594 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5597 2014-06-18 Gary Benson <gbenson@redhat.com>
5599 * i386-nat.c: Comment changes.
5601 2014-06-18 Gary Benson <gbenson@redhat.com>
5603 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5605 2014-06-18 Gary Benson <gbenson@redhat.com>
5607 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5608 (i386_insert_aligned_watchpoint): Likewise.
5609 (i386_remove_aligned_watchpoint): Likewise.
5610 (i386_handle_nonaligned_watchpoint): Likewise.
5612 2014-06-18 Gary Benson <gbenson@redhat.com>
5614 * i386-nat.c: Whitespace changes.
5616 2014-06-17 Samuel Bronson <naesten@gmail.com>
5618 * MAINTAINERS: Update Roland McGrath's email address.
5619 Thanks to Sergio Durigan Junior for pointing out that he left
5620 Red Hat a while ago, and giving me a current address.
5622 2014-06-17 Tom Tromey <tromey@redhat.com>
5624 * utils.h (savestring): Remove declaration.
5626 2014-06-17 Tom Tromey <tromey@redhat.com>
5628 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5630 2014-06-16 Keith Seitz <keiths@redhat.com>
5633 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5634 to update the varobj if inferior_ptid is null_ptid.
5636 2014-06-16 Tom Tromey <tromey@redhat.com>
5638 * target.h (struct target_ops) <to_info_proc>: Make parameter
5640 (target_info_proc): Update.
5641 * target.c (target_info_proc): Make "args" const.
5642 * procfs.c (procfs_info_proc): Update.
5643 * linux-tdep.c (linux_info_proc): Update.
5644 (linux_core_info_proc_mappings): Make "args" const.
5645 (linux_core_info_proc): Update.
5646 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5647 * gdbarch.c: Rebuild.
5648 * gdbarch.h: Rebuild.
5649 * corelow.c (core_info_proc): Update.
5651 2014-06-16 Tom Tromey <tromey@redhat.com>
5653 * target.h (struct target_ops) <to_disconnect>: Make parameter
5655 (target_disconnect): Update.
5656 * target.c (target_disconnect): Make "args" const.
5657 * target-delegates.c: Rebuild.
5658 * remote.c (remote_disconnect): Update.
5659 * record.h (record_disconnect): Update.
5660 * record.c (record_disconnect): Update.
5661 * inf-child.c (inf_child_disconnect): Update.
5663 2014-06-16 Tom Tromey <tromey@redhat.com>
5665 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5666 * target.c (debug_to_rcmd, default_rcmd): Update.
5667 * target-delegates.c: Rebuild.
5668 * remote.c (remote_rcmd): Update.
5669 * monitor.c (monitor_rcmd): Update.
5671 2014-06-16 Pedro Alves <palves@redhat.com>
5673 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5674 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5675 have OBJF_SHARED set.
5676 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5677 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5678 instead of OBJF_USERLOADED.
5679 * objfiles.h (OBJF_SHARED): Update comment.
5680 (userloaded_objfile_contains_address_p): Rename to ...
5681 (shared_objfile_contains_address_p): ... this, and update
5683 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5685 (remove_symbol_file_command): Skip objfiles that don't have
5688 2014-06-16 Tom Tromey <tromey@redhat.com>
5690 * minsyms.h (prim_record_minimal_symbol)
5691 (prim_record_minimal_symbol_and_info): Update comments.
5693 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5695 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5696 or --without-guile, according to how GDB was built.
5698 2014-06-13 Tom Tromey <tromey@redhat.com>
5700 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5702 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5704 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5706 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5707 help_list.Pass all_commands, not -1, to help_list.
5708 * cli/cli-dump.c (dump_command, append_command)
5709 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5710 (binary_dump_command, binary_append_command): Pass all_commands,
5711 not -1, to help_list.
5712 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5714 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5716 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5718 * top.c (set_history): Pass all_commands, not -1, to help_list.
5719 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5720 all_commands, not -1, to help_list.
5721 * symfile.c (overlay_command): Pass all_commands, not -1, to
5723 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5725 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5727 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5729 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5730 not -1, to help_list.
5731 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5732 not -1, to help_list.
5733 * maint.c (maintenance_command, maintenance_info_command)
5734 (maintenance_print_command, maintenance_set_cmd): Pass
5735 all_commands, not -1, to help_list.
5736 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5738 * language.c (set_check): Pass all_commands, not -1, to help_list.
5739 * infcmd.c (unset_command): Pass all_commands, not -1, to
5741 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5743 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5745 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5747 * breakpoint.c (save_command): Pass all_commands, not -1, to
5749 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5750 all_commands, not -1, to help_list.
5752 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5754 * regcache.c (struct register_to_invalidate): New structure.
5755 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5757 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5759 2014-06-12 Yao Qi <yao@codesourcery.com>
5761 * varobj.c (varobj_get_num_children): Call
5762 varobj_is_dynamic_p.
5763 (varobj_list_children): Likewise.
5764 (varobj_update): Likewise. Update comments.
5766 2014-06-12 Yao Qi <yao@codesourcery.com>
5768 * varobj.c (varobj_pretty_printed_p): Rename to ...
5769 (varobj_is_dynamic_p): ... this. New function.
5770 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5771 (varobj_is_dynamic_p): Declare.
5772 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5773 (mi_print_value_p, varobj_update_one): Likewise.
5775 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5776 Yao Qi <yao@codesourcery.com>
5778 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5779 (varobj_get_iterator): Wrap up code for pretty-printer by
5780 "#if HAVE_PYTHON" and "#endif".
5781 (update_dynamic_varobj_children): Likewise.
5783 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5784 Yao Qi <yao@codesourcery.com>
5786 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5787 gdb_python_initialized is false. Move some code from varobj.c.
5788 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5789 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5790 (struct varobj_item): Moved to varobj-iter.h".
5791 (varobj_clear_saved_item): New function.
5792 (update_dynamic_varobj_children): Move python-related code to
5794 (free_variable): Call varobj_clear_saved_item and
5797 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5798 Yao Qi <yao@codesourcery.com>
5800 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5801 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5802 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5803 (py-varobj.o): New rule.
5804 * python/py-varobj.c: New file.
5805 * python/python-internal.h (py_varobj_get_iterator): Declare.
5806 * varobj-iter.h: New file.
5807 * varobj.c: Include "varobj-iter.h"
5808 (struct varobj) <child_iter>: Change its type from "PyObject *"
5809 to "struct varobj_iter *".
5810 <saved_item>: Likewise.
5811 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5812 [HAVE_PYTHON] (varobj_get_iterator): New function.
5813 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5814 python-specific code to python/py-varobj.c.
5815 (install_visualizer): Call varobj_iter_delete instead of
5817 * varobj.h (varobj_ensure_python_env): Declare.
5819 2014-06-12 Yao Qi <yao@codesourcery.com>
5821 * varobj.c (struct varobj_item): New structure.
5822 (create_child_with_value): Update declaration.
5823 (varobj_add_child): Replace arguments 'name' and 'value' with
5824 'item'. All callers updated.
5825 (install_dynamic_child): Likewise.
5826 (update_dynamic_varobj_children): Likewise.
5827 (varobj_add_child): Likewise.
5828 (create_child_with_value): Likewise.
5830 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5832 * NEWS: Create a new section for the next release branch.
5833 Rename the section of the current branch, now that it has
5836 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5838 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5839 * version.in: Bump version to 7.8.50.DATE-cvs.
5841 2014-06-11 Pedro Alves <palves@redhat.com>
5844 * ser-mingw.c (net_windows_socket_check_pending): New function.
5845 (net_windows_select_thread): Ignore spurious wakeups. Use
5846 net_windows_socket_check_pending.
5847 (net_windows_wait_handle): Check for pending events with
5848 ioctlsocket, through net_windows_socket_check_pending, instead of
5849 checking the socket's event.
5851 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5853 * python/python-internal.h (gdb_PyObject_GetAttrString)
5854 (gdb_PyObject_HasAttrString): New inline function definitions.
5855 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5856 char * of the second argument to PyObject_GetAttrString.
5858 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5860 * serial.c (serial_write): Fix index of character to be printed
5861 in call to serial_logchar when serial debug traces are enabled.
5863 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5865 * gdbtypes (resolve_dynamic_range): Add function description.
5867 2014-06-09 Pedro Alves <palves@redhat.com>
5869 * linux-nat.c (linux_child_follow_fork): Initialize status with
5870 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5871 inner block. Only pass the signal to PTRACE_DETACH if in pass
5874 2014-06-09 Gary Benson <gbenson@redhat.com>
5876 * common/signals.c (gdb_signal_from_host): Reorder to separate
5877 the always-available ANSI-standard signals from the signals that
5879 (do_gdb_signal_to_host): Likewise.
5880 * proc-events.c (signal_table): Likewise.
5882 2014-06-08 Hui Zhu <hui@codesourcery.com>
5884 * common/linux-ptrace.c (linux_disable_event_reporting): New
5886 * common/linux-ptrace.h (linux_disable_event_reporting): New
5888 * linux-nat.c (linux_child_follow_fork): Do a single step before
5891 2014-06-07 Keith Seitz <keiths@redhat.com>
5895 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5896 from symbol_matches_domain in symtab.c. All local callers
5897 of symbol_matches_domain updated.
5898 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5899 search STRUCT_DOMAIN.
5900 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5901 independently. standard_lookup will do that automatically.
5902 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5903 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5904 (cp_lookup_symbol_in_namespace): Likewise.
5905 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5906 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5907 may return a STRUCT_DOMAIN match.
5908 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5909 * cp-support.c: Include language.h.
5910 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5912 * psymtab.c (match_partial_symbol): Compare the requested
5913 domain with the symbol's domain directly.
5914 (lookup_partial_symbol): Likewise.
5915 * symtab.c (lookup_symbol_in_language): Explain when/why
5916 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5917 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5918 appropriate languages.
5919 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5920 and moved to ada-lang.c
5921 (lookup_block_symbol): Explain that this function only returns
5922 symbol matching the requested DOMAIN.
5923 Compare the requested domain with the symbol's domain directly.
5924 (iterate_over_symbols): Compare the requested domain with the
5925 symbol's domain directly.
5926 * symtab.h (symbol_matches_domain): Remove.
5928 2014-06-06 Doug Evans <xdje42@gmail.com>
5930 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5931 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5932 (gdbscm_guile_version_is_at_least): Declare.
5933 (gdbscm_scm_string_to_int): Declare.
5934 * guile/guile.c (gdbscm_guile_major_version): New global.
5935 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5936 (guile_datadir): New static global.
5937 (gdbscm_guile_data_directory): New function.
5938 (initialize_scheme_side): Update.
5939 (misc_guile_functions): Add guile-data-directory.
5940 (initialize_gdb_module): Fetch guile version number.
5941 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5942 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5943 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5944 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5946 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5947 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5948 * guile/scm-value.c (gdbscm_value_to_string): Only call
5949 scm_port_conversion_strategy if Guile version >= 2.0.6.
5951 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5953 * main.c (print_gdb_help): Add -q and --silent.
5955 2014-06-06 Gary Benson <gbenson@redhat.com>
5957 * common/signals.c: Remove preprocessor conditionals for
5958 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5959 SIGSEGV and SIGTERM.
5960 * proc-events.c: Likewise.
5962 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5964 * symfile.c (symfile_free_objfile): Remove restriction to
5966 * symfile-mem.c (symbol_file_add_from_memory): Call
5967 add_target_sections_of_objfile.
5969 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5971 * guile/scm-value.c (gdbscm_history_append_x): Use
5972 'vlscm_get_value_smob_arg_unsafe' instead of
5973 'vlscm_scm_to_value'.
5975 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5978 * utils.c (printchar): Don't escape at all if quoter is NUL.
5979 Update function documentation to clarify effect of parameter
5981 * remote.c (escape_buffer): Pass '\\' as the quoter to
5982 fputstrn_unfiltered.
5983 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5984 generate the output.
5985 (mi_solib_unloaded): Same.
5987 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5989 * development.sh: Delete.
5990 * Makefile.in (config.status): Adjust dependency on development.sh.
5991 * configure.ac: Adjust development.sh source call.
5992 * configure: Regenerate.
5994 2014-06-04 Doug Evans <xdje42@gmail.com>
5996 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5997 is_scheme_bkpt, spec.
5998 (bpscm_make_breakpoint_smob): Initialize new members.
5999 (gdbscm_create_breakpoint_x): Split into two ...
6000 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6001 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6002 (scheme_function breakpoint_functions): Update.
6003 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6004 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6005 register-breakpoint!.
6007 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6010 * mem-break.c (z_type_supported): Return zero if
6011 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6013 2014-06-04 Tom Tromey <tromey@redhat.com>
6015 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6016 value_from_contents_and_address_unresolved.
6017 (ada_template_to_fixed_record_type_1): Likewise.
6018 (ada_which_variant_applies): Likewise.
6019 * value.h (value_from_contents_and_address_unresolved): Declare.
6020 * value.c (value_from_contents_and_address_unresolved): New
6022 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6023 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6024 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6026 2014-06-04 Tom Tromey <tromey@redhat.com>
6028 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6030 2014-06-04 Tom Tromey <tromey@redhat.com>
6032 * procfs.c (procfs_attach): Make "args" const.
6033 * windows-nat.c (windows_attach): Make "args" const.
6034 * nto-procfs.c (procfs_attach): Make "args" const.
6035 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6036 * go32-nat.c (go32_attach): Make "args" const.
6037 * gnu-nat.c (gnu_attach): Make "args" const.
6038 * darwin-nat.c (darwin_attach): Make "args" const.
6039 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6040 * linux-nat.c (linux_nat_attach): Make "args" const.
6041 * remote.c (extended_remote_attach_1, extended_remote_attach):
6043 * target.h (struct target_ops) <to_attach>: Make "args" const.
6044 (find_default_attach): Likewise.
6045 * utils.c (parse_pid_to_attach): Make "args" const.
6046 * utils.h (parse_pid_to_attach): Update.
6048 2014-06-04 Tom Tromey <tromey@redhat.com>
6050 * target-delegates.c: Rebuild.
6051 * target.c (default_thread_address_space): New function.
6052 (target_thread_address_space): Simplify.
6053 * target.h (struct target_ops) <to_thread_address_space>: Add
6054 TARGET_DEFAULT_FUNC.
6056 2014-06-04 Doug Evans <xdje42@gmail.com>
6058 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6060 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6062 * record-btrace.c: Include event-loop.h and inf-loop.h.
6063 (record_btrace_resume_exec_dir)
6064 (record_btrace_async_inferior_event_handler)
6065 (record_btrace_handle_async_inferior_event): New.
6066 (record_btrace_open): Create async event handler.
6067 (record_btrace_close): Delete async event handler.
6068 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6069 Mark async event handler.
6070 (record_btrace_execution_direction): New.
6071 (init_record_btrace_ops): Initialize to_execution_direction.
6073 2014-06-03 Doug Evans <xdje42@gmail.com>
6075 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6076 (gdbscm_make_parameter): Ditto.
6078 2014-06-03 Doug Evans <dje@google.com>
6080 * exec.c (exec_close_1): Call clear_section_table instead of
6081 resize_section_table.
6082 (clear_section_table): New function.
6083 (resize_section_table): Make static. Rename arg num_added to
6085 * exec.h (clear_section_table): Declare.
6086 (resize_section_table): Delete.
6087 * progspace.c (release_program_space): Call clear_section_table
6088 instead of resize_section_table.
6090 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6092 * NEWS (Python Scripting): Add entry about the new xmethods
6095 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6097 * python/py-xmethods.c: New file.
6098 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6099 (objfpy_dealloc): XDECREF on the new xmethods field.
6100 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6102 (objfpy_get_xmethods): New function.
6103 (objfile_getset): New entry 'xmethods'.
6104 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6105 (pspy_dealloc): XDECREF on the new xmethods field.
6106 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6108 (pspy_get_xmethods): New function.
6109 (pspace_getset): New entry 'xmethods'.
6110 * python/python-internal.h: Add declarations for new functions.
6111 * python/python.c (_initialize_python): Invoke
6112 gdbpy_initialize_xmethods.
6113 * python/lib/gdb/__init__.py (xmethods): New
6115 * python/lib/gdb/xmethod.py: New file.
6116 * python/lib/gdb/command/xmethods.py: New file.
6118 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6120 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6121 best match method returned by find_overload_match is an xmethod.
6122 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6123 the best matching operator returned by find_overload_match is an
6125 * valops.c: #include "extension.h".
6126 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6127 Return void. The list of matching source methods is returned in
6128 "fn_list" and a vector of matching debug method workers is
6129 returned in "xm_worker_vec". Update all callers.
6130 (value_find_oload_method_list): Likewise.
6131 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6132 non-NULL, then the index of the best matching method in this
6133 vector is returned. Update all callers.
6134 (find_overload_match): Include xmethods while performing overload
6137 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6139 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6140 * extension-priv.h (struct extension_language_ops): Add the
6142 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6143 get_matching_xmethod_workers, get_xmethod_argtypes,
6144 invoke_xmethod, free_xmethod_worker,
6145 free_xmethod_worker_vec): New functions.
6146 * extension.h: #include "common/vec.h".
6147 New function declarations.
6148 (struct xmethod_worker): New struct.
6149 (VEC (xmethod_worker_ptr)): New vector type.
6150 (xmethod_worker_ptr): New typedef.
6151 (xmethod_worker_vec): Likewise.
6152 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6154 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6155 (struct builtin_type): New field "xmethod".
6156 * valarith.c (value_ptradd): Assert that the value argument is not
6158 * valops.c (value_must_coerce_to_target): Return 0 for
6159 lval_xcallable values.
6160 * value.c (struct value): New field XM_WORKER in the field
6162 (value_address, value_raw_address): Return 0 for lval_xcallable
6164 (set_value_address): Assert that the value is not an
6166 (value_free): Free the associated xmethod worker when freeing
6167 lval_xcallable values.
6168 (set_value_component_location): Assert that the WHOLE value is not
6170 (value_of_xmethod, call_xmethod): New functions.
6171 * value.h: Declare "struct xmethod_worker".
6172 Declare new functions value_of_xmethod, call_xmethod.
6174 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6175 Pedro Alves <palves@redhat.com>
6177 PR breakpoints/17000
6178 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6179 New function, extracted from software_breakpoint_inserted_here_p.
6180 (software_breakpoint_inserted_here_p): Replace factored out code
6181 by call to find_non_raw_software_breakpoint_inserted_here.
6182 (bp_target_info_copy_insertion_state): New function.
6183 (bkpt_insert_location): Handle the case of a single-step
6184 breakpoint already inserted at the same address.
6185 (bkpt_remove_location): Handle the case of a single-step
6186 breakpoint still inserted at the same address.
6187 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6188 breakpoint already inserted at the same address.
6189 (deprecated_remove_raw_breakpoint): Handle the case of a
6190 non-raw breakpoint still inserted at the same address.
6191 (find_single_step_breakpoint): New function, extracted from
6192 single_step_breakpoint_inserted_here_p.
6193 (find_single_step_breakpoint): New function,
6194 factored out from single_step_breakpoint_inserted_here_p.
6195 (single_step_breakpoint_inserted_here_p): Reimplement.
6197 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6199 Pushed by Joel Brobecker <brobecker@adacore.com>
6200 * source.c (show_substitute_path_command): Fix display of matching
6203 2014-06-03 Gary Benson <gbenson@redhat.com>
6205 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6207 2014-06-02 Doug Evans <xdje42@gmail.com>
6209 Add parameter support for Guile.
6210 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6211 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6212 (scm-param.o): New rule.
6213 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6214 (gdbscm_misc_error): Declare.
6215 (gdbscm_canonicalize_command_name): Declare.
6216 (gdbscm_scm_to_host_string): Declare.
6217 (gdbscm_scm_from_host_string): Declare.
6218 (gdbscm_initialize_parameters): Declare.
6219 * guile/guile.c (initialize_gdb_module): Call
6220 gdbscm_initialize_parameters.
6221 * guile/lib/gdb.scm: Export parameter symbols.
6222 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6223 cmdscm_canonicalize_name and made public. All callers updated.
6224 * guile/scm-exception.c (gdbscm_misc_error): New function.
6225 * guile/scm-param.c: New file.
6226 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6227 (gdbscm_scm_to_host_string): New function.
6228 (gdbscm_scm_from_host_string): New function.
6229 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6231 2014-06-02 Doug Evans <xdje42@gmail.com>
6233 Add command support for Guile.
6234 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6235 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6236 (scm-cmd.o): New rule.
6237 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6238 (gdbscm_user_error_p): Declare.
6239 (gdbscm_parse_command_name): Declare.
6240 (gdbscm_valid_command_class_p): Declare.
6241 (gdbscm_initialize_commands): Declare.
6242 * guile/guile.c (initialize_gdb_module): Call
6243 gdbscm_initialize_commands.
6244 * guile/lib/gdb.scm: Export command symbols.
6245 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6246 (throw-user-error): New function.
6247 * guile/scm-cmd.c: New file.
6248 * guile/scm-exception.c (user_error_symbol): New static global.
6249 (gdbscm_user_error_p): New function.
6250 (gdbscm_initialize_exceptions): Set user_error_symbol.
6251 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6253 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6255 * top.c (command_loop): Handle comments here...
6256 (command_line_input): ... not here.
6258 2014-06-02 Doug Evans <xdje42@gmail.com>
6260 Add progspace support for Guile.
6261 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6262 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6263 (scm-progspace.o): New rule.
6264 * guile/guile-internal.h (pspace_smob): New typedef.
6265 (psscm_pspace_smob_pretty_printers): Declare.
6266 (psscm_pspace_smob_from_pspace): Declare.
6267 (psscm_scm_from_pspace): Declare.
6268 * guile/guile.c (initialize_gdb_module): Call
6269 gdbscm_initialize_pspaces.
6270 * guile/lib/gdb.scm: Export progspace symbols.
6271 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6273 (append-pretty-printer!): Ditto.
6274 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6276 * guile/scm-progspace.c: New file.
6278 2014-06-03 Alan Modra <amodra@gmail.com>
6280 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6281 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6283 2014-06-02 Doug Evans <dje@google.com>
6285 Add support for skeletonless type units.
6286 * dwarf2read.c (struct dwarf2_per_objfile): New member
6287 n_allocated_type_units.
6288 (struct dwarf2_per_objfile) <tu_stats>: New member
6289 nr_all_type_units_reallocs.
6290 (create_signatured_type_table_from_index): Initialize
6291 n_allocated_type_units
6292 (create_all_type_units): Ditto.
6293 (add_type_unit): Move up in file. New arg slot.
6294 All callers updated. Increase space for all_type_units more
6296 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6297 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6298 (lookup_dwp_signatured_type): Ditto.
6299 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6300 All callers updated.
6301 (build_type_psymtabs_1): Leave type_unit_groups as
6302 NULL if no TUs present.
6303 (print_tu_stats): New function.
6304 (process_skeletonless_type_unit): New function.
6305 (process_dwo_file_for_skeletonless_type_units): New
6307 (process_skeletonless_type_units): New function.
6308 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6309 Call print tu_stats if debugging enabled.
6311 2014-06-02 Pedro Alves <palves@redhat.com>
6313 * breakpoint.c (build_target_command_list): Don't build a command
6314 list if we have any duplicate location that isn't a dprintf.
6316 2014-06-02 Pedro Alves <palves@redhat.com>
6318 * breakpoint.c (dprintf_breakpoint_hit): New function.
6319 (initialize_breakpoint_ops): Install it as dprintf's
6320 breakpoint_hit method.
6322 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6324 * source.c (substitute_path_rule_matches): Simplify using
6325 filename_ncmp instead of FILENAME_CMP.
6327 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6329 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6331 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6333 * configure.ac: When Guile is available, check for the
6334 availability of 'scm_new_smob'.
6335 * configure, config.h.in: Regenerate.
6336 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6339 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6341 * frame.c (struct frame_info): Add stop_string field.
6342 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6343 (get_prev_frame_always): Old content moved into
6344 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6345 TRY_CATCH, handle MEMORY_ERROR exceptions.
6346 (frame_stop_reason_string): New function definition.
6347 * frame.h (unwind_stop_reason_to_string): Extend comment to
6348 mention frame_stop_reason_string.
6349 (frame_stop_reason_string): New function declaration.
6350 * stack.c (frame_info): Switch to frame_stop_reason_string.
6351 (backtrace_command_1): Switch to frame_stop_reason_string.
6352 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6353 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6354 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6356 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6358 * frame.c (frame_stop_reason_string): Rename to ...
6359 (unwind_stop_reason_to_string): this.
6360 * frame.h (frame_stop_reason_string): Rename to ...
6361 (unwind_stop_reason_to_string): this.
6362 * stack.c (frame_info): Update call to frame_stop_reason_string.
6363 (backtrace_command_1): Likewise.
6364 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6365 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6367 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6369 * frame.c (remove_prev_frame): New function.
6370 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6373 2014-05-29 Pedro Alves <palves@redhat.com>
6375 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6376 and make it const. When a single-step decays to a continue,
6377 clear 'step', not 'hw_step'. Pass whether the caller wanted
6378 to step to user_visible_resume_ptid, not what we ask the
6381 2014-05-29 Pedro Alves <palves@redhat.com>
6383 * infrun.c (process_event_stop_test, handle_step_into_function)
6384 (handle_step_into_function_backward): Adjust.
6385 Don't set the even thread's stop_step and call stop_waiting before
6386 calling end_stepping_range. Instead do that ...
6387 (end_stepping_range): ... here. Take an ecs pointer parameter.
6389 2014-05-29 Pedro Alves <palves@redhat.com>
6391 * infrun.c (stop_stepping): Rename to ...
6392 (stop_waiting): ... this.
6393 (proceed): Update comment.
6394 (process_event_stop_test, handle_inferior_event)
6395 (handle_signal_stop, handle_step_into_function)
6396 (handle_step_into_function_backward): Update.
6398 2014-05-29 Pedro Alves <palves@redhat.com>
6400 * infcall.c (run_inferior_call): Don't check whether the current
6401 thread is running after the proceed call.
6403 2014-05-29 Pedro Alves <palves@redhat.com>
6404 Tom Tromey <tromey@redhat.com>
6406 * NEWS: Mention "maint set target-async", "set mi-async", and that
6407 background execution commands are now always available.
6408 * target.h (target_async_permitted): Update comment.
6409 * target.c (target_async_permitted, target_async_permitted_1):
6411 (set_target_async_command): Rename to ...
6412 (maint_set_target_async_command): ... this.
6413 (show_target_async_command): Rename to ...
6414 (maint_show_target_async_command): ... this.
6415 (_initialize_target): Adjust.
6416 * infcmd.c (prepare_execution_command): Make extern.
6417 * inferior.h (prepare_execution_command): Declare.
6418 * infrun.c (set_observer_mode): Leave target async alone.
6419 * mi/mi-interp.c (mi_interpreter_init): Install
6420 mi_on_sync_execution_done as sync_execution_done observer.
6421 (mi_on_sync_execution_done): New function.
6422 (mi_execute_command_input_handler): Don't print the prompt if we
6423 just started a synchronous command with an async target.
6424 (mi_on_resume): Check sync_execution before printing prompt.
6425 * mi/mi-main.h (mi_async_p): Declare.
6426 * mi/mi-main.c: Include gdbcmd.h.
6427 (mi_async_p): New function.
6428 (mi_async, mi_async_1): New globals.
6429 (set_mi_async_command, show_mi_async_command, mi_async): New
6431 (exec_continue): Call prepare_execution_command.
6432 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6433 (mi_execute_async_cli_command): Use mi_async_p.
6434 (_initialize_mi_main): Install "set mi-async". Make
6435 "target-async" a deprecated alias.
6437 2014-05-29 Pedro Alves <palves@redhat.com>
6439 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6440 (_initialize_cli_interp): Adjust.
6441 * event-loop.c: Include "observer.h".
6442 (start_event_loop): Notify 'command_error' observers instead of
6443 calling display_gdb_prompt. Remove FIXME comment.
6444 * event-top.c (display_gdb_prompt): Remove call into the
6446 * inf-loop.c: Include "observer.h".
6447 (inferior_event_handler): Notify 'command_error' observers instead
6448 of calling display_gdb_prompt.
6449 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6450 observers instead of calling display_gdb_prompt.
6451 * interps.c (interp_set): Don't call display_gdb_prompt.
6452 (current_interp_display_prompt_p): Delete.
6453 * interps.h (interp_prompt_p): Delete declaration.
6454 (interp_prompt_p_ftype): Delete.
6455 (struct interp_procs) <prompt_proc_p>: Delete field.
6456 (current_interp_display_prompt_p): Delete declaration.
6457 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6458 (_initialize_mi_interp): Adjust.
6459 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6460 'command_error' observers.
6461 (tui_on_sync_execution_done, tui_on_command_error): New
6463 (tui_display_prompt_p): Delete.
6464 (_initialize_tui_interp): Adjust.
6466 2014-05-29 Pedro Alves <palves@redhat.com>
6469 * cli/cli-interp.c: Include infrun.h and observer.h.
6470 (cli_uiout, cli_interp): New globals.
6471 (cli_on_signal_received, cli_on_end_stepping_range)
6472 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6474 (cli_interpreter_init): Install them as 'end_stepping_range',
6475 'signal_received' 'signal_exited', 'exited' and 'no_history'
6477 (_initialize_cli_interp): Remove cli_interp local.
6478 * infrun.c (handle_inferior_event): Call the several stop reason
6479 observers instead of printing the stop reason directly.
6480 (end_stepping_range): New function.
6481 (print_end_stepping_range_reason, print_signal_exited_reason)
6482 (print_exited_reason, print_signal_received_reason)
6483 (print_no_history_reason): Make static, and add an uiout
6484 parameter. Print to that instead of to CURRENT_UIOUT.
6485 * infrun.h (print_end_stepping_range_reason)
6486 (print_signal_exited_reason, print_exited_reason)
6487 (print_signal_received_reason print_no_history_reason): New
6489 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6491 <cli_uiout>: New field.
6492 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6493 uiout for CLI output. Install 'signal_received',
6494 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6496 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6497 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6498 (mi_on_no_history): New functions.
6499 (ui_out_free_cleanup): Delete function.
6500 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6501 instead use the one already stored in the MI interpreter data.
6502 (mi_ui_out): Adjust.
6503 * tui/tui-interp.c: Include infrun.h and observer.h.
6504 (tui_interp): New global.
6505 (tui_on_signal_received, tui_on_end_stepping_range)
6506 (tui_on_signal_exited, tui_on_exited)
6507 (tui_on_no_history): New functions.
6508 (tui_init): Install them as 'end_stepping_range',
6509 'signal_received' 'signal_exited', 'exited' and 'no_history'
6511 (_initialize_tui_interp): Delete tui_interp local.
6513 2014-05-29 Pedro Alves <palves@redhat.com>
6516 * linux-nat.c (linux_nat_resume_callback): Rename the second
6517 parameter to 'except'. Skip LP if it points to EXCEPT.
6518 (linux_nat_resume): Don't mark the event lwp as not stopped
6519 before resuming sibling lwps. Instead ask
6520 linux_nat_resume_callback to skip the event lwp. Mark it as not
6521 stopped after actually resuming it.
6522 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6524 (wait_lwp): Mark the lwp as stopped here.
6525 (stop_wait_callback): Mark the lwp as not stopped right after
6526 resuming it. Don't mark lwps as stopped here.
6527 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6528 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6530 2014-05-29 Pedro Alves <palves@redhat.com>
6533 * infrun.c (resume): Determine how much to resume depending on
6534 whether the caller wanted a step, not whether we can hardware step
6535 the target. Mark all threads that we intend to run as running,
6536 unless we're calling an inferior function.
6537 (normal_stop): If the thread is running an infcall, don't finish
6539 * target.c (target_resume): Don't mark threads as running here.
6541 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6543 * serial.c (_initialize_serial): Remove support for
6544 the "set remotebaud" and "show remotebaud" commands.
6545 * NEWS: Add entry documenting the removal of that command.
6547 2014-05-28 Yao Qi <yao@codesourcery.com>
6549 * charset.c: Fix typo in comments.
6551 2014-05-27 Gary Benson <gbenson@redhat.com>
6553 * utils.c (internal_vproblem): Prompt for a bug report.
6555 2014-05-26 Andy Wingo <wingo@igalia.com>
6557 * guile/scm-arch.c (arscm_mark_arch_smob):
6558 * guile/scm-block.c (bkscm_mark_block_smob)
6559 (bkscm_mark_block_syms_progress_smob):
6560 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6561 * guile/scm-exception.c (exscm_mark_exception_smob):
6562 * guile/scm-frame.c (frscm_mark_frame_smob):
6563 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6564 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6565 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6566 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6567 (ppscm_mark_pretty_printer_worker_smob):
6568 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6569 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6570 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6571 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6573 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6576 2014-05-26 Andy Wingo <wingo@igalia.com>
6577 Doug Evans <xdje42@gmail.com>
6579 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6580 empty_base_class. All uses updated.
6581 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6582 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6584 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6585 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6586 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6587 (gdbscm_gsmob_has_property_p, add_property_name)
6588 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6589 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6590 (gdb-object-has-property?, gdb-object-properties): Remove.
6591 (gdb-object-kind): Renamed from gsmob-kind.
6593 2014-05-26 Andy Wingo <wingo@igalia.com>
6595 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6596 * configure: Regenerate.
6598 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6600 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6602 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6604 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6605 (replay_memory_access_read_only, replay_memory_access_read_write)
6606 (replay_memory_access_types, replay_memory_access)
6607 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6608 (cmd_set_record_btrace, cmd_show_record_btrace)
6609 (cmd_show_replay_memory_access): New.
6610 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6611 (record_btrace_remove_breakpoint): Replace
6612 record_btrace_allow_memory_access with replay_memory_access.
6613 (_initialize_record_btrace): Add commands.
6614 * NEWS: Announce it.
6616 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6618 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6620 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6622 * MAINTAINERS (Write After Approval): Move self back from
6625 2014-05-22 Pedro Alves <palves@redhat.com>
6627 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6628 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6629 (disable_randomization, enum exec_direction_kind)
6630 (execution_direction, stop_registers, start_remote)
6631 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6632 (wait_for_inferior, normal_stop, get_last_target_status)
6633 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6634 (insert_step_resume_breakpoint_at_sal)
6635 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6636 (set_step_info, print_stop_event, signal_stop_state)
6637 (signal_print_state, signal_pass_state, signal_stop_update)
6638 (signal_print_update, signal_pass_update)
6639 (update_signals_program_target, clear_exit_convenience_vars)
6640 (displaced_step_dump_bytes, update_observer_mode)
6641 (signal_catch_update, gdb_signal_from_command): Move
6643 * infrun.h: ... to this new file.
6644 * amd64-tdep.c: Include infrun.h.
6645 * annotate.c: Include infrun.h.
6646 * arch-utils.c: Include infrun.h.
6647 * arm-linux-tdep.c: Include infrun.h.
6648 * arm-tdep.c: Include infrun.h.
6649 * break-catch-sig.c: Include infrun.h.
6650 * breakpoint.c: Include infrun.h.
6651 * common/agent.c: Include infrun.h instead of inferior.h.
6652 * corelow.c: Include infrun.h.
6653 * event-top.c: Include infrun.h.
6654 * go32-nat.c: Include infrun.h.
6655 * i386-tdep.c: Include infrun.h.
6656 * inf-loop.c: Include infrun.h.
6657 * infcall.c: Include infrun.h.
6658 * infcmd.c: Include infrun.h.
6659 * infrun.c: Include infrun.h.
6660 * linux-fork.c: Include infrun.h.
6661 * linux-nat.c: Include infrun.h.
6662 * linux-thread-db.c: Include infrun.h.
6663 * monitor.c: Include infrun.h.
6664 * nto-tdep.c: Include infrun.h.
6665 * procfs.c: Include infrun.h.
6666 * record-btrace.c: Include infrun.h.
6667 * record-full.c: Include infrun.h.
6668 * remote-m32r-sdi.c: Include infrun.h.
6669 * remote-mips.c: Include infrun.h.
6670 * remote-notif.c: Include infrun.h.
6671 * remote-sim.c: Include infrun.h.
6672 * remote.c: Include infrun.h.
6673 * reverse.c: Include infrun.h.
6674 * rs6000-tdep.c: Include infrun.h.
6675 * s390-linux-tdep.c: Include infrun.h.
6676 * solib-irix.c: Include infrun.h.
6677 * solib-osf.c: Include infrun.h.
6678 * solib-svr4.c: Include infrun.h.
6679 * target.c: Include infrun.h.
6680 * top.c: Include infrun.h.
6681 * windows-nat.c: Include infrun.h.
6682 * mi/mi-interp.c: Include infrun.h.
6683 * mi/mi-main.c: Include infrun.h.
6684 * python/py-threadevent.c: Include infrun.h.
6686 2014-05-22 Pedro Alves <palves@redhat.com>
6688 * infrun.c (handle_inferior_event): Store the exit code for
6689 --return-child-result here, instead of ...
6690 (print_exited_reason): ... here.
6692 2014-05-21 Pedro Alves <palves@redhat.com>
6695 * gdbthread.h (struct thread_control_state): New field
6697 * infrun.c (follow_fork): Copy the new thread control field to the
6699 (clear_proceed_status_thread): Clear the new thread control field.
6700 (proceed): Set the new thread control field.
6701 * interps.h (command_interp): Declare.
6702 * interps.c (command_interpreter): New global.
6703 (command_interp): New function.
6704 (interp_exec): Set `command_interpreter' while here.
6705 * cli-out.c (cli_uiout_dtor): New function.
6706 (cli_ui_out_impl): Install it.
6707 * mi/mi-interp.c: Include cli-out.h.
6708 (mi_cmd_interpreter_exec): Add comment.
6709 (restore_current_uiout_cleanup): New function.
6710 (ui_out_free_cleanup): New function.
6711 (mi_on_normal_stop): If finishing an execution command started by
6712 a CLI command, or any kind of breakpoint-like event triggered,
6713 print the stop event to the output (CLI) stream.
6714 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6716 2014-05-21 Pedro Alves <palves@redhat.com>
6718 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6719 current source line having changed.
6720 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6721 * infrun.c (normal_stop): Adjust call to
6722 set_current_sal_from_frame.
6723 * source.c (clear_lines_listed_range): New function.
6724 (set_current_source_symtab_and_line, identify_source_line): Clear
6725 the lines listed range.
6726 (line_info): Handle the first "info line" after the current source
6727 line having changed.
6728 * stack.c (print_stack_frame): Remove center handling.
6729 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6732 2014-05-21 Pedro Alves <palves@redhat.com>
6734 * inf-child.c (inf_child_mourn_inferior): New function.
6735 * inf-child.h (inf_child_mourn_inferior): New declaration.
6736 * darwin-nat.c (darwin_mourn_inferior): Use
6737 inf_child_mourn_inferior.
6738 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6739 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6740 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6741 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6742 * windows-nat.c (windows_mourn_inferior): Likewise.
6744 2014-05-21 Doug Evans <xdje42@gmail.com>
6746 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6748 2014-05-21 Doug Evans <xdje42@gmail.com>
6750 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6751 (gdbscm_out_of_range_error): Ditto.
6752 (gdbscm_memory_error): Ditto.
6753 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6754 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6755 (gdbscm_out_of_range_error): Update.
6756 (gdbscm_memory_error): Update.
6757 (gdbscm_scm_to_target_string_unsafe): Delete.
6759 2014-05-21 Pedro Alves <palves@redhat.com>
6761 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6763 (inf_child_open_target): New function.
6764 (inf_child_open): Use inf_child_open_target to push the target
6765 instead of erroring out.
6766 (inf_child_disconnect, inf_child_close)
6767 (inf_child_maybe_unpush_target): New functions.
6768 (inf_child_target): Install inf_child_disconnect and
6769 inf_child_close. Store a pointer to the returned object.
6770 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6772 * target.c (auto_connect_native_target): New global.
6773 (show_default_run_target): New function.
6774 (find_default_run_target): Return NULL if automatically connecting
6775 to the native target is disabled.
6776 (_initialize_target): Install set/show auto-connect-native-target.
6777 * NEWS: Mention "set auto-connect-native-target", and "target
6779 * linux-nat.c (super_close): New global.
6780 (linux_nat_close): Call super_close.
6781 (linux_nat_add_target): Store a pointer to the base class's
6783 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6784 inf_child_maybe_unpush.
6785 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6787 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6788 the inferior. Use inf_child_maybe_unpush_target.
6789 (inf_ttrace_attach): Don't push the target if it is already
6791 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6792 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6793 after mourning the inferior. Use inf_child_maybe_unpush_target.
6794 (darwin_attach_pid): Don't push the target if it is already
6796 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6797 mourning the inferior. Use inf_child_maybe_unpush_target.
6798 (gnu_detach): Use inf_child_maybe_unpush_target.
6799 * go32-nat.c (go32_create_inferior): Don't push the target if it
6801 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6802 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6803 (procfs_open): Rename to ...
6804 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6805 comments. Can target_preopen before changing node. Call
6806 inf_child_open_target to push the target explicitly.
6807 (procfs_attach): Don't push the target if it is already pushed.
6808 (procfs_detach): Use inf_child_maybe_unpush_target.
6809 (procfs_create_inferior): Don't push the target if it is already
6811 (nto_native_ops): New global.
6812 (procfs_open): Reimplement.
6813 (procfs_native_open): New function.
6814 (init_procfs_targets): Install procfs_native_open as to_open of
6815 "target native". Store a pointer to the "native" target in
6817 * procfs.c (procfs_attach): Don't push the target if it is already
6819 (procfs_detach): Use inf_child_maybe_unpush_target.
6820 (procfs_mourn_inferior): Only unpush the target after mourning the
6821 inferior. Use inf_child_maybe_unpush_target.
6822 (procfs_init_inferior): Don't push the target if it is already
6824 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6825 if it is already pushed.
6827 2014-05-21 Pedro Alves <palves@redhat.com>
6829 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6830 and "procfs" targets are now called "native" instead.
6832 2014-05-21 Pedro Alves <palves@redhat.com>
6834 * go32-nat.c (go32_open): Delete.
6835 (go32_target): Don't override the to_open method.
6837 2014-05-21 Pedro Alves <palves@redhat.com>
6839 * nto-procfs.c (procfs_can_run): New function.
6840 (nto_procfs_ops): New global.
6841 (init_procfs_targets): New, based on procfs_target. Install
6842 "target native" in addition to "target procfs".
6843 (_initialize_procfs): Call init_procfs_targets instead of adding
6846 2014-05-21 Pedro Alves <palves@redhat.com>
6848 * windows-nat.c (windows_target): Don't override to_shortname,
6849 to_longname or to_doc.
6851 2014-05-21 Pedro Alves <palves@redhat.com>
6853 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6856 2014-05-21 Pedro Alves <palves@redhat.com>
6858 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6859 to_shortname, to_longname or to_doc.
6861 2014-05-21 Pedro Alves <palves@redhat.com>
6863 * go32-nat.c (go32_target): Don't override to_shortname,
6864 to_longname or to_doc.
6866 2014-05-21 Pedro Alves <palves@redhat.com>
6868 * inf-child.c (inf_child_open): Remove mention of "child".
6869 (inf_child_target): Rename target to "native" instead of "child".
6871 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6873 * Makefile.in (SFILES): Delete "regset.c".
6874 (COMMON_OBS): Delete "regset.o".
6876 * regset.h (regset_alloc): Delete prototype.
6878 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6880 * sparc-linux-tdep.c (sparc32_linux_gregset)
6881 (sparc32_linux_fpregset): New static regset structures.
6882 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6883 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6885 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6886 (sparc64_linux_fpregset): New static regset structures.
6887 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6888 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6889 New static regset structures.
6890 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6891 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6892 New static regset structures.
6893 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6894 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6895 New static regset structures.
6896 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6897 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6898 New static regset structures.
6899 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6901 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6903 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6904 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6905 register maps ("regmaps") from "*regset" to "*regmap". Do this
6906 for all regmap types and variables.
6907 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6908 (sparc32_linux_supply_core_gregset)
6909 (sparc32_linux_collect_core_gregset)
6910 (sparc32_linux_supply_core_fpregset)
6911 (sparc32_linux_collect_core_fpregset): Likewise.
6912 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6913 (sparc_gregmap, sparc_fpregmap): ... these.
6914 (sparc_supply_gregset, sparc_collect_gregset)
6915 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6916 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6917 (_initialize_sparc_nat): Rename regmaps.
6918 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6919 (sparc_gregmap, sparc_fpregmap): ... these.
6920 (sparc_supply_gregset, sparc_collect_gregset)
6921 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6922 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6924 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6925 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6927 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6929 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6930 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6931 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6933 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6934 (sparc32_bsd_fpregset): Rename to...
6935 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6936 (sparc32_bsd_fpregmap): ... these.
6937 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6938 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6939 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6940 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6941 (struct sparc_gregmap, struct sparc_fpregmap)
6942 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6943 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6944 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6945 (sparc32_supply_regset, sparc32_collect_gregset)
6946 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6948 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6949 (sparc64_linux_ptrace_gregmap): ... this.
6950 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6951 (_initialize_sparc64_linux_nat): Rename regmaps.
6952 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6953 (sparc64_linux_core_gregmap): ... this.
6954 (sparc64_linux_supply_core_gregset)
6955 (sparc64_linux_collect_core_gregset)
6956 (sparc64_linux_supply_core_fpregset)
6957 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6958 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6959 (sparc64_sol2_fpregset): Rename to...
6960 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6961 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6962 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6964 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6965 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6966 (sparc64_bsd_fpregset): Rename to...
6967 (struct sparc_gregmap, sparc64_sol2_gregmap)
6968 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6969 (sparc64_bsd_fpregmap): ... these.
6970 (sparc64_supply_gregset, sparc64_collect_gregset)
6971 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6973 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6974 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6975 (sparc64fbsd_gregmap): ... this.
6976 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6977 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6979 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6980 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6981 (sparc64nbsd_collect_fpregset): Likewise.
6982 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6983 (sparc64nbsd_gregmap): ... this.
6984 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6986 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6987 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6988 (sparc64obsd_gregmap): ... this.
6989 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6991 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6992 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6993 (sparc32nbsd_gregmap): ... this.
6994 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6997 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6999 * score-tdep.c (score7_linux_gregset): New static regset
7001 (score7_linux_regset_from_core_section): Remove dynamic regset
7003 (score_gdbarch_init): Drop allocation of tdep structure.
7004 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7006 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7008 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7010 (am33_regset_from_core_section): Remove dynamic regset
7013 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7015 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7016 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7018 (mips_linux_regset_from_core_section): Remove dynamic regset
7020 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7021 'gregset64', 'fpregset', and 'fpregset64'.
7022 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7023 deleted tdep fields.
7025 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7027 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7029 (amd64_regset_from_core_section): Remove dynamic regset
7031 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7033 (amd64obsd_regset_from_core_section): Remove dynamic regset
7035 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7037 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7038 x86-common regset supply function.
7039 * i386-tdep.c (i386_collect_gregset): Make static.
7040 (i386_gregset): New global regset structure.
7041 (i386_fpregset, i386_xstateregset): New static regset structures.
7042 (i386_regset_from_core_section): Remove dynamic regset
7044 (i386_gdbarch_init): Remove initialization of tdep fields
7045 'gregset', 'fpregset', and 'xstateregset'.
7046 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7047 'fpregset', and 'xstateregset'.
7048 (i386_collect_gregset): Remove prototype.
7049 (i386_gregset): New declaration.
7050 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7052 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7055 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7057 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7058 (arm_linux_vfpregset): New static regset structures.
7059 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7061 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7062 and 'vfpregset' fields.
7064 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7066 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7067 (aarch64_linux_fpregset): New static regset structures.
7068 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7069 of regset structures.
7070 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7073 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7075 * regset.h (struct regset): Remove gdbarch field.
7076 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7077 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7078 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7080 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7081 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7082 (ppc32_linux_vsxregset): Likewise.
7083 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7084 via the regcache instead of the regset.
7085 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7086 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7087 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7088 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7091 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7093 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7094 Constify structures.
7095 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7096 (alphanbsd_aout_gregset): Likewise.
7097 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7098 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7100 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7101 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7103 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7104 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7105 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7106 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7107 * m88k-tdep.c (m88k_gregset): Likewise.
7108 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7109 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7110 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7111 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7112 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7113 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7114 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7115 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7116 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7118 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7119 * sh-tdep.h (sh_corefile_gregset): Likewise.
7120 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7121 * vax-tdep.c (vax_gregset): Likewise.
7123 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7125 Fix TLS access for -static -pthread.
7126 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7127 (try_thread_db_load_1): Initialize it.
7128 (thread_db_get_thread_local_address): Call it if LM is zero.
7129 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7130 * target.h (struct target_ops) (to_get_thread_local_address): Add
7131 load_module_addr comment.
7133 2014-05-21 Pedro Alves <palves@redhat.com>
7135 * dcache.c (dcache_read_memory_partial): If reading the cache line
7136 fails, fallback to reading just the memory the caller wanted.
7138 2014-05-20 Doug Evans <dje@google.com>
7140 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7141 instead of get_current_arch.
7143 2014-05-20 Pedro Alves <palves@redhat.com>
7145 * NEWS: Mention that compare-sections now works with all targets.
7147 * remote.c (PACKET_qCRC): New enum value.
7148 (remote_verify_memory): Don't send qCRC if the target has no
7149 execution. Use packet_support/packet_ok. If the target doesn't
7150 support the qCRC packet, fallback to a deep memory copy.
7151 (compare_sections_command): Say "target image" instead of "remote
7153 (_initialize_remote): Add PACKET_qCRC to the list of config
7154 packets that have no associated command. Extend comment.
7155 * target.c (simple_verify_memory, default_verify_memory): New
7157 * target.h (struct target_ops) <to_verify_memory>: Default to
7158 default_verify_memory.
7159 (simple_verify_memory): New declaration.
7160 * target-delegates.c: Regenerate.
7162 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7164 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7166 2014-05-20 Hui Zhu <hui@codesourcery.com>
7167 Yao Qi <yao@codesourcery.com>
7170 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7171 and change address of sp and pc.
7173 2014-05-19 Tom Tromey <tromey@redhat.com>
7175 * gdbtypes.c (rank_function): Use XNEWVEC.
7176 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7178 2014-05-19 Doug Evans <dje@google.com>
7180 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7181 build_type_unit_groups and moved closer to only caller. Remove
7182 arguments. All references updated. Remove outdated .gdb_index
7184 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7185 build_type_psymtabs_1.
7187 2014-05-19 Doug Evans <dje@google.com>
7189 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7190 n_type_unit_groups, all_type_unit_groups. All uses removed.
7191 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7192 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7193 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7194 (add_type_unit_group_to_table): Delete.
7196 2014-05-19 Doug Evans <dje@google.com>
7198 * eval.c (evaluate_subexp_standard): Add some comments.
7200 2014-05-17 Doug Evans <xdje42@gmail.com>
7202 * progspace.c (remove_program_space): Delete, unused.
7203 * progspace.h (remove_program_space): Ditto.
7205 2014-05-17 Doug Evans <xdje42@gmail.com>
7207 * inferior.c (prune_inferiors): Fix comment.
7208 (remove_inferior_command): Call prune_program_spaces.
7210 2014-05-16 Doug Evans <dje@google.com>
7212 New command line option -D.
7214 * main.c (set_gdb_data_directory): New function.
7215 (captured_main): Recognize -D. Flag error for --data-directory "".
7216 Call set_gdb_data_directory.
7217 (print_gdb_help): Print --data-directory, -D.
7218 * main.h (set_gdb_data_directory): Declare.
7219 * top.c (staged_gdb_datadir): New static global.
7220 (set_gdb_datadir): Call set_gdb_data_directory
7221 (show_gdb_datadir): New function.
7222 (init_main): Update init of data-directory parameter.
7224 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7226 Import the "dirfd" gnulib module.
7227 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7228 * gnulib/aclocal.m4: Update.
7229 * gnulib/config.in: Update.
7230 * gnulib/configure: Update.
7231 * gnulib/import/Makefile.am: Update.
7232 * gnulib/import/Makefile.in: Update.
7233 * gnulib/import/dirfd.c: New.
7234 * gnulib/import/m4/dirfd.m4: New.
7235 * gnulib/import/m4/gnulib-cache.m4: Update.
7236 * gnulib/import/m4/gnulib-comp.m4: Update.
7238 2014-05-16 Pierre Muller <muller@sourceware.org>
7239 Yao Qi <yao@codesourcery.com>
7241 * valprint.c (print_wchar): Move the code on checking whether
7242 W is a printable wide char to the default branch of switch
7243 statement below. Call wchar_printable instead of gdb_iswprint.
7245 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7247 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7248 ldr.w and ldrd instructions.
7250 2014-05-15 Doug Evans <dje@google.com>
7252 * dwarf2read.c (read_structure_type): Delete outdated comments.
7254 2014-05-14 Tom Tromey <tromey@redhat.com>
7256 * macrocmd.c (print_macro_definition): Reindent.
7258 2014-05-13 Doug Evans <xdje42@gmail.com>
7260 * python/py-cmd.c (cmdpy_completer): Add comment.
7261 (completers): Make const.
7263 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7265 * infrun.c (resume): Remove should_resume (unused). Move up
7266 declaration of resume_ptid.
7268 2014-05-13 Tom Tromey <tromey@redhat.com>
7270 * language.h (unop_type_check): Remove.
7271 (binop_type_check): Don't declare.
7273 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7275 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7276 call to regcache_raw_collect.
7278 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7280 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7281 mi_console->quote as the quoting character.
7283 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7285 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7287 2014-04-29 Tom Tromey <tromey@redhat.com>
7289 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7290 "show debug varobj".
7292 2014-05-07 Kyle McMartin <kyle@redhat.com>
7294 Pushed by Joel Brobecker <brobecker@adacore.com>.
7295 * aarch64-tdep.c (aarch64_software_single_step): New function.
7296 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7297 with aarch64_software_single_step.
7299 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7303 2014-05-05 Keith Seitz <keiths@redhat.com>
7305 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7306 variable or history value is successfully parsed.
7308 2014-05-05 Yao Qi <yao@codesourcery.com>
7309 Pedro Alves <palves@redhat.com>
7311 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7312 address of blocks that intersects the requested range. Trim
7313 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7315 * ctf.c (ctf_xfer_partial): Likewise.
7317 2014-05-05 Yao Qi <yao@codesourcery.com>
7319 * printcmd.c (display_command): Remove the check to
7320 target_has_execution.
7322 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7324 * ppcobsd-nat.c: Include "obsd-nat.h".
7325 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7327 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7329 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7331 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7332 and 16-bit signed and unsigned arguments. Update comment.
7333 (stap_parse_probe_arguments): Extend code to handle such
7334 arguments. Use warning instead of complaint to notify about
7335 unrecognized bitness.
7337 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7339 PR breakpoints/16889
7340 * stap-probe.c (stap_parse_probe_arguments): Simplify
7341 check for non-prefixed probes (i.e., probes whose
7342 arguments do not start with "N@"). Always set the
7343 argument type to a sane value.
7345 2014-05-01 David Taylor <dtaylor@emc.com>
7347 * remote.c (compare_sections_command): Add -r option to compare
7348 all loadable read-only sections.
7350 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7352 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7353 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7355 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7356 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7357 Remove unused CORE_ADDR argument. Update all callers.
7359 2014-04-29 Pedro Alves <palves@redhat.com>
7361 * remote.c (struct packet_config) <detect>: Extend comment.
7362 (add_packet_config_cmd): Don't set the config's detect or support
7364 (init_all_packet_configs): Also initialize the config's 'detect'
7366 (reset_all_packet_configs_support): New function.
7367 (remote_open_1): Call reset_all_packet_configs_support instead of
7368 init_all_packet_configs.
7369 (_initialize_remote): Initialize all packet configs. Assert that
7370 all packets have an associated command, except a few known
7373 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7375 * dwarf2read.c (read_subrange_type): Handle dynamic
7376 DW_AT_lower_bound attributes.
7378 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7380 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7381 dynamic bounds before computing its upper bound.
7382 (ada_discrete_type_low_bound): Same as above with the lower bound.
7384 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7386 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7387 range types. Adjust the array handling implementation to
7388 take advantage of this change.
7389 (resolve_dynamic_range): New function, mostly extracted from
7390 resolve_dynamic_bounds.
7391 (resolve_dynamic_array): New function, mostly extracted from
7392 resolve_dynamic_bounds.
7393 (resolve_dynamic_bounds): Delete.
7394 (resolve_dynamic_type): Reimplement. Add handling of
7395 TYPE_CODE_RANGE types.
7397 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7399 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7400 handling of parallel ___XA types.
7402 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7404 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7405 unnecessary second call to static_unwrap_type.
7407 2014-04-27 Hui Zhu <hui@codesourcery.com>
7409 * stack.c (print_frame_info): Call do_gdb_disassembly with
7410 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7412 2014-04-26 Doug Evans <xdje42@gmail.com>
7414 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7416 2014-04-25 Pedro Alves <palves@redhat.com>
7419 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7420 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7421 and newline from built string.
7422 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7423 (linux_ptrace_attach_fail_reason): ... this.
7424 * linux-nat.c (linux_nat_attach): Adjust to use
7425 linux_ptrace_attach_fail_reason.
7427 2014-04-25 Pedro Alves <palves@redhat.com>
7429 * remote.c (struct remote_state): Remove multi_process_aware,
7430 non_stop_aware, cond_tracepoints, cond_breakpoints,
7431 breakpoint_commands, fast_tracepoints, static_tracepoints,
7432 install_in_trace, disconnected_tracing,
7433 enable_disable_tracepoints, string_tracing, and
7434 augmented_libraries_svr4_read fields.
7435 (remote_multi_process_p): Move further below in the file.
7436 (struct packet_config): Add comments.
7437 (update_packet_config): Delete function.
7438 (show_packet_config_cmd): Use packet_config_support.
7439 (add_packet_config_cmd): Use NULL as set callback.
7440 (packet_ok): "set remote foo-packet"-style commands no longer
7441 change config->supported -- adjust.
7442 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7443 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7444 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7445 (PACKET_QNonStop, PACKET_multiprocess_feature)
7446 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7447 (PACKET_DisconnectedTracing_feature)
7448 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7449 (set_remote_protocol_packet_cmd): Delete function.
7450 (packet_config_support, packet_support): New functions.
7451 (set_remote_protocol_Z_packet_cmd): Don't call
7452 update_packet_config.
7453 (remote_query_attached, remote_pass_signals)
7454 (remote_program_signals, remote_threads_info)
7455 (remote_threads_extra_info, remote_start_remote): Use
7457 (remote_start_remote): Use packet_config_support and
7459 (init_all_packet_configs): Set all packets to unknown support,
7460 instead of calling update_packet_config.
7461 (remote_check_symbols): Use packet_support.
7462 (remote_supported_packet): Unconditionally set the packet config's
7464 (remote_multi_process_feature, remote_non_stop_feature)
7465 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7466 (remote_breakpoint_commands_feature)
7467 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7468 (remote_install_in_trace_feature)
7469 (remote_disconnected_tracing_feature)
7470 (remote_enable_disable_tracepoint_feature)
7471 (remote_string_tracing_feature)
7472 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7473 (remote_protocol_features): Adjust to use remote_supported_packet
7474 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7475 "ConditionalTracepoints", "ConditionalBreakpoints",
7476 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7477 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7478 "EnableDisableTracepoints", and "tracenz".
7479 (remote_query_supported): Use packet_support.
7480 (remote_open_1): Adjust.
7481 (extended_remote_attach_1): Use packet_support. Switch on the
7482 result of packet_ok instead of checking whether the packet ended
7484 (remote_vcont_resume): Use packet_support.
7485 (remote_resume, remote_stop_ns, fetch_register_using_p)
7486 (remote_prepare_to_store, store_register_using_P)
7487 (check_binary_download, remote_write_bytes): Use packet_support.
7488 (remote_vkill): Use packet_support. Switch on the result of
7489 packet_ok instead of checking whether the packet ended up
7491 (extended_remote_supports_disable_randomization): Use
7493 (extended_remote_run): Switch on the result of packet_ok instead
7494 of checking whether the packet ended up disabled.
7495 (remote_insert_breakpoint, remote_remove_breakpoint)
7496 (remote_insert_watchpoint, remote_remove_watchpoint)
7497 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7499 (remote_search_memory): Use packet_config_support.
7500 (remote_get_thread_local_address, remote_get_tib_address)
7501 (remote_hostio_send_command, remote_can_execute_reverse): Use
7503 (remote_supports_cond_tracepoints)
7504 (remote_supports_cond_breakpoints)
7505 (remote_supports_fast_tracepoints)
7506 (remote_supports_static_tracepoints)
7507 (remote_supports_install_in_trace)
7508 (remote_supports_enable_disable_tracepoint)
7509 (remote_supports_string_tracing)
7510 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7511 the packet config says the feature is enabled or disabled.
7512 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7513 (remote_get_trace_status): Use packet_support.
7514 (remote_set_disconnected_tracing): Adjust to check whether the
7515 feature is enabled with packet_support.
7516 (remote_set_trace_buffer_size, remote_use_agent)
7517 (remote_can_use_agent, remote_supports_btrace): Use
7519 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7520 Use packet_config_support.
7521 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7522 the packet config says the feature is enabled or disabled.
7523 (set_range_stepping): Use packet_support.
7525 2014-04-25 Tom Tromey <tromey@redhat.com>
7527 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7530 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7532 * NEWS: Mention support for C99 variable length arrays.
7534 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7536 * ada-lang.c (standard_exc): Expand introductory comment.
7538 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7539 Walfred Tedeschi <walfred.tedeschi@intel.com>
7541 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7543 (amd64_linux_read_description): Add code to handle AVX512 xstate
7544 mask and return respective tdesc.
7545 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7546 and features/i386/x32-avx512-linux.c.
7547 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7548 (amd64_linux_core_read_description): Add code to handle AVX512
7549 xstate mask and return respective tdesc.
7550 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7551 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7553 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7554 (tdesc_amd64_avx512_linux): New prototype.
7555 (tdesc_x32_avx512_linux): Likewise.
7556 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7557 features/i386/x32-avx512.c.
7558 (amd64_ymm_avx512_names): New register names for pseudo
7560 (amd64_ymmh_avx512_names): New register names for raw registers
7562 (amd64_k_names): New register names for K registers.
7563 (amd64_zmmh_names): New register names for ZMM raw registers.
7564 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7565 (amd64_xmm_avx512_names): New register names for XMM16-31
7567 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7569 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7570 if feature is present.
7571 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7572 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7573 (AMD64_NUM_REGS): Adjust to new number of registers.
7574 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7575 registers supplied via XSTATE by AVX512 registers.
7576 (i386_linux_read_description): Add case for AVX512.
7577 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7578 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7579 (i386_linux_core_read_description): Add case for AVX512.
7580 (i386_linux_init_abi): Install supported register note section
7582 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7584 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7585 registers to be number of zmm7h + 1.
7586 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7587 * i386-tdep.c: Include features/i386/i386-avx512.c.
7588 (i386_zmm_names): Add ZMM pseudo register names array.
7589 (i386_zmmh_names): Add ZMM raw register names array.
7590 (i386_k_names): Add K raw register names array.
7591 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7592 registers. AVX512 has 16 more ZMM registers than there are YMM
7594 (i386_zmmh_regnum_p): Add function to look up register number of
7596 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7597 (i386_k_regnum_p): Likewise for K raw registers.
7598 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7599 registers added by AVX512.
7600 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7601 registers added by AVX512.
7602 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7604 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7605 (i386_pseudo_register_name): Add ZMM pseudo registers.
7606 (i386_zmm_type): Construct and return vector registers type for ZMM
7608 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7609 ZMM0-31 pseudo registers and K registers.
7610 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7611 and YMM16-31 registers from register cache.
7612 (i386_pseudo_register_write): Add code to write K, ZMM and
7614 (i386_register_reggroup_p): Add code to include/exclude AVX512
7615 registers in/from respective register groups.
7616 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7617 registers if feature is present in xcr0.
7618 (i386_gdbarch_init): Add code to initialize AVX512 feature
7619 variables in tdep structure, wire in pseudo registers and call
7620 initialize_tdesc_i386_avx512.
7621 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7623 (i386_regnum): Add AVX512 registers.
7624 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7625 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7626 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7627 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7629 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7630 (i386_ymm_avx512_regnum_p): Likewise.
7631 (i386_k_regnum_p): Likewise.
7632 (i386_zmm_regnum_p): Likewise.
7633 (i386_zmmh_regnum_p): Likewise.
7634 * i387-tdep.c : Update year in copyright notice.
7635 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7637 (XSAVE_YMM_AVX512_ADDR): New macro.
7638 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7640 (XSAVE_XMM_AVX512_ADDR): New macro.
7641 (xsave_avx512_k_offset): New table for K register offsets in
7643 (XSAVE_AVX512_K_ADDR): New macro.
7644 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7646 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7647 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7649 (i387_collect_xsave): Add code to collect AVX512 registers from
7651 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7652 of XMM16-31 registers.
7653 (I387_NUM_K_REGS): New define for number of K registers.
7654 (I387_K0_REGNUM): New define for K0 register number.
7655 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7656 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7657 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7659 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7660 (I387_XMM16_REGNUM): New define for XMM16 register number.
7661 (I387_YMM0_REGNUM): New define for YMM0 register number.
7662 (I387_KEND_REGNUM): New define for last K register number.
7663 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7664 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7666 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7668 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7670 * features/Makefile: Add AVX512 related files.
7671 * features/i386/32bit-avx512.xml: New file.
7672 * features/i386/64bit-avx512.xml: Likewise.
7673 * features/i386/amd64-avx512-linux.c: Likewise.
7674 * features/i386/amd64-avx512-linux.xml: Likewise.
7675 * features/i386/amd64-avx512.c: Likewise.
7676 * features/i386/amd64-avx512.xml: Likewise.
7677 * features/i386/i386-avx512-linux.c: Likewise.
7678 * features/i386/i386-avx512-linux.xml: Likewise.
7679 * features/i386/i386-avx512.c: Likewise.
7680 * features/i386/i386-avx512.xml: Likewise.
7681 * features/i386/x32-avx512-linux.c: Likewise.
7682 * features/i386/x32-avx512-linux.xml: Likewise.
7683 * features/i386/x32-avx512.c: Likewise.
7684 * features/i386/x32-avx512.xml: Likewise.
7685 * regformats/i386/amd64-avx512-linux.dat: New file.
7686 * regformats/i386/amd64-avx512.dat: Likewise.
7687 * regformats/i386/i386-avx512-linux.dat: Likewise.
7688 * regformats/i386/i386-avx512.dat: Likewise.
7689 * regformats/i386/x32-avx512-linux.dat: Likewise.
7690 * regformats/i386/x32-avx512.dat: Likewise.
7691 * NEWS: Add note about new support for AVX512.
7694 2014-04-23 Pedro Alves <palves@redhat.com>
7696 * breakpoint.c (insert_bp_location): Tolerate errors if the
7697 breakpoint is set in a user-loaded objfile.
7698 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7699 location is marked shlib_disabled. If the breakpoint is set in a
7700 user-loaded objfile is a GDB-side memory breakpoint, validate it
7701 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7702 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7704 * mem-break.c (memory_validate_breakpoint): New function.
7705 * objfiles.c (userloaded_objfile_contains_address_p): New
7707 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7708 * target.h (memory_validate_breakpoint): New declaration.
7710 2014-04-23 Pedro Alves <palves@redhat.com>
7712 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7713 the breakpoint is set in a shared library, only suppress
7714 errors for software breakpoints, not hardware breakpoints.
7716 2014-04-22 Pedro Alves <palves@redhat.com>
7718 * infrun.c (schedlock_applies): New function, factored out from
7719 find_thread_needs_step_over.
7720 (find_thread_needs_step_over): Use it.
7721 (switch_back_to_stepped_thread): Always clear trap_expected if the
7722 step over is finished. Return early if scheduler locking applies.
7723 Look for the stepping thread and a potential step-over thread with
7725 (currently_stepping_or_nexting_callback): Delete.
7727 2014-04-22 Nick Clifton <nickc@redhat.com>
7729 * NEWS: Mention that ARM sim now supports tracing.
7731 2014-04-22 Yao Qi <yao@codesourcery.com>
7733 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7735 * tracefile.c (tracefile_fetch_registers): ... it. New
7737 * tracefile.h (tracefile_fetch_registers): Declare.
7738 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7739 tracefile_fetch_registers.
7741 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7744 * windows-nat.c (thread_rec): Don't display a warning when
7745 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7746 fails for any reason, set th->suspended to -1, so that we don't
7747 try to resume such a thread. Also, don't return NULL in these
7748 cases, to avoid completely ruin the session due to "PC register is
7749 not available" error.
7750 (do_windows_fetch_inferior_registers): Check errors in
7751 GetThreadContext call.
7752 (windows_continue): Accept an additional argument KILLED; if not
7753 zero, ignore errors in the SetThreadContext call, since the
7754 inferior was killed and is shutting down.
7755 (windows_resume, get_windows_debug_event)
7756 (windows_create_inferior, windows_mourn_inferior)
7757 (windows_kill_inferior): All callers of windows_continue changed
7758 to adjust to its new calling sequence.
7760 2014-04-19 Yao Qi <yao@codesourcery.com>
7762 * ctf.c (ctf_open): Call post_create_inferior.
7764 2014-04-19 Yao Qi <yao@codesourcery.com>
7766 * ctf.c (handle_id): New static variable.
7767 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7768 value. Get the declaration of event "register" and get length
7769 of field "contents".
7771 2014-04-19 Yao Qi <yao@codesourcery.com>
7773 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7775 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7777 * valops.c (oload_method_static): Remove unnecessary argument
7778 METHOD. Update all callers.
7780 2014-04-18 Pedro alves <palves@redhat.com>
7781 Tom Tromey <tromey@redhat.com>
7784 * frame.c (get_prev_frame_1): Rename to ...
7785 (get_prev_frame_always): ... this, and make extern. Adjust.
7786 (skip_artificial_frames): Use get_prev_frame_always.
7787 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7788 (get_frame_unwind_stop_reason): Adjust to rename.
7789 * frame.h (get_prev_frame_always): Declare.
7790 * inline-frame.c: Include frame.h.
7791 (inline_frame_this_id): Use get_prev_frame_always.
7793 2014-04-18 Tristan Gingold <gingold@adacore.com>
7795 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7796 code by using bfd_mach_o_get_base_address.
7798 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7800 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7801 (spu_ax_pseudo_register_collect): New function.
7802 (spu_ax_pseudo_register_push_stack): Likewise.
7803 (spu_dwarf_reg_to_regnum): Likewise.
7804 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7806 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7808 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7809 Replace FRAME argument with FRAME_ID.
7810 * gdbarch.c, gdbarch.h: Regenerate.
7811 * findvar.c (default_value_from_register): Add GDBARCH argument;
7812 replace FRAME by FRAME_ID. No longer call get_frame_id.
7813 (value_from_register): Update call to gdbarch_value_from_register.
7814 * value.h (default_value_from_register): Update prototype.
7815 * s390-linux-tdep.c (s390_value_from_register): Update interface
7816 and call to default_value_from_register.
7817 * spu-tdep.c (spu_value_from_register): Likewise.
7819 * findvar.c (address_from_register): Remove TYPE argument.
7820 Do not call value_from_register; use gdbarch_value_from_register
7821 with null_frame_id instead.
7822 * value.h (address_from_register): Update prototype.
7823 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7824 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7825 address_from_register interface change.
7827 2014-04-17 Yao Qi <yao@codesourcery.com>
7829 * gdbtypes.h: Update comments to link to types and macros'
7832 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7834 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7836 2014-04-16 Keith Seitz <keiths@redhat.com>
7839 * dwarf2read.c (skip_one_die): Check that all relative-offset
7840 sibling DIEs fall within range of the current reader's buffer.
7841 (read_partial_die): Likewise.
7843 2014-04-16 Keith Seitz <keiths@redhat.com>
7846 * cp-namespace.c (lookup_symbol_file): If the type name of
7847 `this' is NULL, return immediately.
7849 2014-04-14 Keith Seitz <keiths@redhat.com>
7852 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7853 from symbol_matches_domain in symtab.c. All local callers
7854 of symbol_matches_domain updated.
7855 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7856 search STRUCT_DOMAIN.
7857 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7858 independently. standard_lookup will do that automatically.
7859 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7860 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7861 (cp_lookup_symbol_in_namespace): Likewise.
7862 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7863 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7864 may return a STRUCT_DOMAIN match.
7865 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7866 * cp-support.c: Include language.h.
7867 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7869 * psymtab.c (match_partial_symbol): Compare the requested
7870 domain with the symbol's domain directly.
7871 (lookup_partial_symbol): Likewise.
7872 * symtab.c (lookup_symbol_in_language): Explain when/why
7873 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7874 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7875 appropriate languages.
7876 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7877 and moved to ada-lang.c
7878 (lookup_block_symbol): Explain that this function only returns
7879 symbol matching the requested DOMAIN.
7880 Compare the requested domain with the symbol's domain directly.
7881 (iterate_over_symbols): Compare the requested domain with the
7882 symbol's domain directly.
7883 * symtab.h (symbol_matches_domain): Remove.
7885 2014-04-14 Tom Tromey <tromey@redhat.com>
7888 * c-exp.y (type_aggregate_p): New function.
7889 (qualified_name, classify_inner_name): Use it.
7890 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7891 and TYPE_TARGET_TYPE of an enum type.
7892 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7894 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7895 handle TYPE_DECLARED_CLASS.
7896 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7898 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7899 * valops.c (enum_constant_from_type): New function.
7900 (value_aggregate_elt): Use it.
7901 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7904 2014-04-14 Tom Tromey <tromey@redhat.com>
7906 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7907 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7909 * value.h (value_aggregate_elt): Update.
7911 2014-04-14 Tom Tromey <tromey@redhat.com>
7913 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7915 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7917 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7918 (evaluate_subexp_standard): Pass noside argument.
7919 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7920 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7921 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7922 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7923 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7925 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7927 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7928 points to a constant blob.
7930 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7932 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7933 property and store it as the high bound and flag the range accordingly.
7934 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7935 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7936 * gdbtypes.h (enum range_flags): New enum.
7937 (struct range_bounds): Add flags member.
7939 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7941 * c-typeprint.c (c_type_print_varspec_suffix): Added
7942 check for not yet resolved high bound. If unresolved, print
7943 "variable length" string to the console instead of random
7946 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7948 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7950 (ada_template_to_fixed_record_type_1): Likewise.
7951 (ada_to_fixed_type_1): Likewise.
7952 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7953 (cp_print_value): Likewise.
7954 * d-valprint.c (dynamic_array_type): Likewise.
7955 * findvar.c (address_of_variable): Likewise.
7956 * jv-valprint.c (java_value_print): Likewise.
7957 * valops.c (value_ind): Likewise.
7958 * value.c (coerce_ref): Likewise.
7960 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7962 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7963 value and retrieve the dynamic type size.
7965 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7967 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7968 passed to sizeof is dynamic evaluate the argument to compute the length.
7970 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7971 Joel Brobecker <brobecker@adacore.com>
7973 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7974 (dwarf2_evaluate_property): New function.
7975 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7976 * dwarf2read.c (attr_to_dynamic_prop): New function.
7977 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7979 * gdbtypes.c: Include dwarf2loc.h.
7980 (is_dynamic_type): New function.
7981 (resolve_dynamic_type): New function.
7982 (resolve_dynamic_bounds): New function.
7983 (get_type_length): New function.
7984 (check_typedef): Use get_type_length to compute type length.
7985 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7986 (TYPE_LOW_BOUND_KIND): New macro.
7987 (is_dynamic_type): New function prototype.
7988 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7989 to resolve dynamic properties of the type. Update comment.
7990 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7992 2014-04-14 Richard Henderson <rth@redhat.com>
7994 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7996 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7997 Doug Evans <xdje42@gmail.com>
7999 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8000 dereference TYPE_CODE_REF values.
8002 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8004 Revert the following changes due to regressions:
8006 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8007 (dwarf2_evaluate_property): New function.
8008 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8009 * dwarf2read.c (attr_to_dynamic_prop): New function.
8010 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8012 * gdbtypes.c: Include dwarf2loc.h.
8013 (is_dynamic_type): New function.
8014 (resolve_dynamic_type): New function.
8015 (resolve_dynamic_bounds): New function.
8016 (get_type_length): New function.
8017 (check_typedef): Use get_type_length to compute type length.
8018 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8019 (TYPE_LOW_BOUND_KIND): New macro.
8020 (is_dynamic_type): New function prototype.
8021 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8022 to resolve dynamic properties of the type. Update comment.
8023 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8025 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8026 passed to sizeof is dynamic evaluate the argument to compute the length.
8028 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8029 value and retrieve the dynamic type size.
8031 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8032 (ada_template_to_fixed_record_type_1): Likewise.
8033 (ada_to_fixed_type_1): Likewise.
8034 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8035 (cp_print_value): Likewise.
8036 * d-valprint.c (dynamic_array_type): Likewise.
8037 * eval.c (evaluate_subexp_with_coercion): Likewise.
8038 * findvar.c (address_of_variable): Likewise.
8039 * jv-valprint.c (java_value_print): Likewise.
8040 * valops.c (value_ind): Likewise.
8041 * value.c (coerce_ref): Likewise.
8043 * c-typeprint.c (c_type_print_varspec_suffix): Added
8044 check for not yet resolved high bound. If unresolved, print
8045 "variable length" string to the console instead of random
8048 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8049 property and store it as the high bound and flag the range accordingly.
8050 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8051 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8052 * gdbtypes.h (enum range_flags): New enum.
8053 (struct range_bounds): Add flags member.
8055 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8056 points to a constant blob.
8058 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8059 (evaluate_subexp_standard): Pass noside argument.
8060 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8061 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8062 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8063 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8064 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8066 2014-04-11 Keith Seitz <keiths@redhat.com>
8069 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8070 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8073 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8075 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8076 (evaluate_subexp_standard): Pass noside argument.
8077 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8078 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8079 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8080 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8081 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8083 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8085 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8086 points to a constant blob.
8088 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8090 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8091 property and store it as the high bound and flag the range accordingly.
8092 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8093 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8094 * gdbtypes.h (enum range_flags): New enum.
8095 (struct range_bounds): Add flags member.
8097 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8099 * c-typeprint.c (c_type_print_varspec_suffix): Added
8100 check for not yet resolved high bound. If unresolved, print
8101 "variable length" string to the console instead of random
8104 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8106 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8107 (ada_template_to_fixed_record_type_1): Likewise.
8108 (ada_to_fixed_type_1): Likewise.
8109 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8110 (cp_print_value): Likewise.
8111 * d-valprint.c (dynamic_array_type): Likewise.
8112 * eval.c (evaluate_subexp_with_coercion): Likewise.
8113 * findvar.c (address_of_variable): Likewise.
8114 * jv-valprint.c (java_value_print): Likewise.
8115 * valops.c (value_ind): Likewise.
8116 * value.c (coerce_ref): Likewise.
8118 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8120 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8121 value and retrieve the dynamic type size.
8123 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8125 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8126 passed to sizeof is dynamic evaluate the argument to compute the length.
8128 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8130 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8131 (dwarf2_evaluate_property): New function.
8132 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8133 * dwarf2read.c (attr_to_dynamic_prop): New function.
8134 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8136 * gdbtypes.c: Include dwarf2loc.h.
8137 (is_dynamic_type): New function.
8138 (resolve_dynamic_type): New function.
8139 (resolve_dynamic_bounds): New function.
8140 (get_type_length): New function.
8141 (check_typedef): Use get_type_length to compute type length.
8142 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8143 (TYPE_LOW_BOUND_KIND): New macro.
8144 (is_dynamic_type): New function prototype.
8145 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8146 to resolve dynamic properties of the type. Update comment.
8147 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8149 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8151 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8152 declaring high/low bounds and change uses accordingly. Call
8153 create_range_type instead of create_static_range_type.
8154 * gdbtypes.c (create_range_type): New function.
8155 (create_range_type): Convert bounds into struct bound_prop and pass
8156 them to create_range_type.
8157 * gdbtypes.h (struct bound_prop): New struct.
8158 (create_range_type): New function prototype.
8159 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8160 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8161 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8163 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8165 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8167 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8168 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8169 * ada-lang.c: All uses of create_range_type updated.
8170 * coffread.c: All uses of create_range_type updated.
8171 * dwarf2read.c: All uses of create_range_type updated.
8172 * f-exp.y: All uses of create_range_type updated.
8173 * m2-valprint.c: All uses of create_range_type updated.
8174 * mdebugread.c: All uses of create_range_type updated.
8175 * stabsread.c: All uses of create_range_type updated.
8176 * valops.c: All uses of create_range_type updated.
8177 * valprint.c: All uses of create_range_type updated.
8179 2014-04-10 Pedro Alves <palves@redhat.com>
8181 * breakpoint.c (single_step_breakpoints)
8182 (single_step_gdbarch): Move up in the file.
8183 (one_breakpoint_xfer_memory): New function, factored out from ...
8184 (breakpoint_xfer_memory): ... here. Also process single-step
8187 2014-04-09 Tristan Gingold <gingold@adacore.com>
8189 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8191 (darwin_decode_exception_message): Free port only after use.
8193 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8195 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8196 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8197 when setting the size of call_length.
8199 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8201 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8202 dereference TYPE_CODE_REF values.
8204 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8206 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8207 end of warning message.
8209 2014-04-03 Doug Evans <dje@google.com>
8211 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8212 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8214 2014-04-02 Alan Modra <amodra@gmail.com>
8216 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8217 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8218 (struct symbol_file_add_from_memory_args): Add size field.
8219 (find_vdso_size): New function.
8220 (add_vsyscall_page): Attempt to find vdso size.
8222 2014-04-01 Doug Evans <dje@google.com>
8224 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8226 2014-04-01 Tristan Gingold <gingold@adacore.com>
8228 * darwin-nat.c (darwin_encode_reply): Add prototype.
8229 (darwin_decode_exception_message): Reply to unknown inferiors.
8230 (darwin_decode_message): Handle message by id. Ignore message
8231 to unknown inferior.
8232 (darwin_wait): Discard unknown messages, add debug trace.
8234 2014-03-31 Doug Evans <dje@google.com>
8236 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8239 2014-03-31 Doug Evans <dje@google.com>
8241 New option "set print symbol-loading".
8243 * solib.c (solib_read_symbols): Only print symbol loading messages
8245 (solib_add): If symbol loading is in "brief" mode, notify user
8246 symbols are being loaded.
8247 (reload_shared_libraries_1): Ditto.
8248 * symfile.c (print_symbol_loading_off): New static global.
8249 (print_symbol_loading_brief): New static global.
8250 (print_symbol_loading_full): New static global.
8251 (print_symbol_loading_enums): New static global.
8252 (print_symbol_loading): New static global.
8253 (print_symbol_loading_p): New function.
8254 (symbol_file_add_with_addrs): Only print symbol loading messages
8256 (_initialize_symfile): Register "print symbol-loading" set/show
8258 * symfile.h (print_symbol_loading_p): Declare.
8260 2014-03-30 Doug Evans <xdje42@gmail.com>
8262 * infrun.c (set_last_target_status): New function.
8263 (handle_inferior_event): Call it.
8265 2014-03-30 Doug Evans <xdje42@gmail.com>
8267 * inferior.h (enum stop_kind): Improve comment.
8269 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8271 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8272 a reference, strip the reference layer before calling
8273 the lang_ops value_has_mutated callback.
8275 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8277 Remove some globals from our parser.
8278 * language.c (unk_lang_parser): Add "struct parser_state"
8280 * language.h (struct language_defn) <la_parser>: Likewise.
8281 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8282 (initialize_expout): Add "struct parser_state" argument.
8283 Rewrite function to use the parser state.
8284 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8285 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8286 write_exp_elt_longcst, write_exp_elt_dblcst,
8287 write_exp_elt_decfloatcst, write_exp_elt_type,
8288 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8289 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8290 write_dollar_variable): Likewise.
8291 (parse_exp_in_context_1): Use parser state.
8292 (insert_type_address_space): Add "struct parser_state" argument.
8294 (increase_expout_size): New function.
8295 * parser-defs.h: Forward declare "struct language_defn" and
8296 "struct parser_state".
8297 (expout, expout_size, expout_ptr): Remove extern declarations.
8298 (parse_gdbarch, parse_language): Rewrite macro declarations to
8299 accept the parser state.
8300 (struct parser_state): New struct.
8301 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8302 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8303 write_exp_elt_decfloatcst, write_exp_elt_type,
8304 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8305 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8306 write_exp_msymbol, write_dollar_variable,
8307 mark_struct_expression, insert_type_address_space): Add "struct
8308 parser_state" argument.
8309 (increase_expout_size): New function.
8310 * utils.c (do_clear_parser_state): New function.
8311 (make_cleanup_clear_parser_state): Likewise.
8312 * utils.h (make_cleanup_clear_parser_state): New function
8314 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8315 Update calls to write_exp* in order to pass the parser state.
8316 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8317 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8318 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8319 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8320 * stap-probe.c (stap_parse_register_operand): Likewise.
8321 (stap_parse_single_operand): Likewise.
8322 (stap_parse_argument_1): Likewise.
8323 (stap_parse_argument): Use parser state.
8324 * stap-probe.h: Include "parser-defs.h".
8325 (struct stap_parse_info) <pstate>: New field.
8326 * c-exp.y (parse_type): Rewrite to use parser state.
8327 (yyparse): Redefine to c_parse_internal.
8328 (pstate): New global variable.
8329 (parse_number): Add "struct parser_state" argument.
8330 (write_destructor_name): Likewise.
8331 (type_exp): Update calls to write_exp* and similars in order to
8333 (exp1, exp, variable, qualified_name, space_identifier,
8334 typename, typebase): Likewise.
8335 (write_destructor_name, parse_number, lex_one_token,
8336 classify_name, classify_inner_name, c_parse): Add "struct
8337 parser_state" argument. Update function to use parser state.
8338 * c-lang.h: Forward declare "struct parser_state".
8339 (c_parse): Add "struct parser_state" argument.
8340 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8341 (yyparse): Redefine macro to ada_parse_internal.
8342 (pstate): New variable.
8343 (write_int, write_object_renaming, write_var_or_type,
8344 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8345 type_int, type_long, type_long_long, type_float, type_double,
8346 type_long_double, type_char, type_boolean, type_system_address):
8347 Add "struct parser_state" argument.
8348 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8349 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8350 var_or_type, aggregate, aggregate_component_list,
8351 positional_list, others, component_group,
8352 component_associations): Update calls to write_exp* and similar
8353 functions in order to use parser state.
8354 (ada_parse, write_var_from_sym, write_int,
8355 write_exp_op_with_string, write_object_renaming,
8356 find_primitive_type, write_selectors, write_ambiguous_var,
8357 write_var_or_type, write_name_assoc, type_int, type_long,
8358 type_long_long, type_float, type_double, type_long_double,
8359 type_char, type_boolean, type_system_address): Add "struct
8360 parser_state" argument. Adjust function to use parser state.
8361 * ada-lang.c (parse): Likewise.
8362 * ada-lang.h: Forward declare "struct parser_state".
8363 (ada_parse): Add "struct parser_state" argument.
8364 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8365 calls to both functions.
8366 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8368 (yyparse): Redefine macro to f_parse_internal.
8369 (pstate): New variable.
8370 (parse_number): Add "struct parser_state" argument.
8371 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8372 and similars in order to use parser state.
8373 (parse_number): Adjust code to use parser state.
8375 (f_parse): New function.
8376 * f-lang.h: Forward declare "struct parser_state".
8377 (f_parse): Add "struct parser_state" argument.
8378 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8380 (yyparse): Redefine macro for java_parse_internal.
8381 (pstate): New variable.
8382 (push_expression_name, push_expression_name, insert_exp): Add
8383 "struct parser_state" argument.
8384 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8385 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8386 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8387 PostIncrementExpression, PostDecrementExpression,
8388 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8389 UnaryExpressionNotPlusMinus, CastExpression,
8390 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8391 RelationalExpression, EqualityExpression, AndExpression,
8392 ExclusiveOrExpression, InclusiveOrExpression,
8393 ConditionalAndExpression, ConditionalOrExpression,
8394 ConditionalExpression, Assignment, LeftHandSide): Update
8395 calls to write_exp* and similars in order to use parser state.
8396 (parse_number): Ajust code to use parser state.
8398 (java_parse): New function.
8399 (push_variable): Add "struct parser_state" argument. Adjust
8400 code to user parser state.
8401 (push_fieldnames, push_qualified_expression_name,
8402 push_expression_name, insert_exp): Likewise.
8403 * jv-lang.h: Forward declare "struct parser_state".
8404 (java_parse): Add "struct parser_state" argument.
8405 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8407 (yyparse): Redefine macro to m2_parse_internal.
8408 (pstate): New variable.
8409 (type_exp, exp, fblock, variable, type): Update calls to
8410 write_exp* and similars to use parser state.
8412 (m2_parse): New function.
8413 * m2-lang.h: Forward declare "struct parser_state".
8414 (m2_parse): Add "struct parser_state" argument.
8415 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8416 * objc-lang.h: Forward declare "struct parser_state".
8417 (end_msglist): Add "struct parser_state" argument.
8418 * p-exp.y (parse_type): Rewrite macro to use parser state.
8419 (yyparse): Redefine macro to pascal_parse_internal.
8420 (pstate): New variable.
8421 (parse_number): Add "struct parser_state" argument.
8422 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8423 write_exp* and similars in order to use parser state.
8424 (parse_number, yylex): Adjust code to use parser state.
8425 (pascal_parse): New function.
8426 * p-lang.h: Forward declare "struct parser_state".
8427 (pascal_parse): Add "struct parser_state" argument.
8428 * go-exp.y (parse_type): Rewrite macro to use parser state.
8429 (yyparse): Redefine macro to go_parse_internal.
8430 (pstate): New variable.
8431 (parse_number): Add "struct parser_state" argument.
8432 (type_exp, exp1, exp, variable, type): Update calls to
8433 write_exp* and similars in order to use parser state.
8434 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8435 to use parser state.
8436 (go_parse): Likewise.
8437 * go-lang.h: Forward declare "struct parser_state".
8438 (go_parse): Add "struct parser_state" argument.
8440 2014-03-27 Doug Evans <dje@google.com>
8442 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8444 2014-03-27 Doug Evans <dje@google.com>
8446 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8447 Remove argument abbrev_section. All callers updated.
8449 2014-03-27 Doug Evans <dje@google.com>
8451 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8452 addr_base, ranges_base.
8454 2014-03-26 Keith Seitz <keiths@redhat.com>
8456 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8457 types, not VAR_DOMAIN.
8459 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8461 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8463 * features/nios2-linux.c: Regenerated.
8464 * features/nios2.c: Regenerated.
8466 2014-03-25 Pedro Alves <palves@redhat.com>
8468 * cli/cli-script.c (script_from_file): Force the interpreter to
8471 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8473 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8474 small stack allocation.
8476 2014-03-24 Tristan Gingold <gingold@adacore.com>
8478 * darwin-nat.c (exc_server): Remove unused prototype.
8479 (darwin_dump_message): Correctly display data on x86_64.
8480 (darwin_encode_reply): Fix style.
8481 Add comments and fix indentation.
8483 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8485 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8487 2014-03-22 Doug Evans <xdje42@gmail.com>
8489 * infcmd.c: Whitespace fixes.
8490 (interrupt_command): Merge two function comments into one.
8492 2014-03-22 Doug Evans <xdje42@gmail.com>
8494 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8497 2014-03-22 Yao Qi <yao@codesourcery.com>
8499 * remote.c (target_read_live_memory): Remove.
8500 (memory_xfer_live_readonly_partial): Rename it to
8501 remote_xfer_live_readonly_partial. Remove argument 'object'.
8502 All callers updated. Call remote_read_bytes_1
8503 instead of target_read_live_memory.
8504 * tracepoint.c (set_traceframe_number): Remove.
8505 (make_cleanup_restore_traceframe_number): Likewise .
8506 * tracepoint.h (set_traceframe_number): Remove declaration.
8507 (make_cleanup_restore_traceframe_number): Likewise.
8509 2014-03-22 Yao Qi <yao@codesourcery.com>
8511 * remote.c (remote_read_bytes): Move code on reading from the
8513 (remote_read_bytes_1): ... here. New function.
8515 2014-03-22 Yao Qi <yao@codesourcery.com>
8517 * ctf.c (ctf_xfer_partial): Check the return value of
8518 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8519 return TARGET_XFER_UNAVAILABLE.
8520 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8521 * target.c (target_read_live_memory): Move it to remote.c.
8522 (memory_xfer_live_readonly_partial): Likewise.
8523 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8524 * remote.c (target_read_live_memory): Moved from target.c.
8525 (memory_xfer_live_readonly_partial): Likewise.
8526 (remote_read_bytes): Factored out from
8527 memory_xfer_partial_1.
8529 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8531 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8534 2014-03-21 Pedro Alves <palves@redhat.com>
8536 * infrun.c (normal_stop): Extend comment.
8538 2014-03-21 Hui Zhu <hui@codesourcery.com>
8539 Pedro Alves <palves@redhat.com>
8541 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8543 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8544 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8545 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8547 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8549 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8550 `z' formatted output modifier.
8552 2014-03-20 Tom Tromey <tromey@redhat.com>
8553 Sergio Durigan Junior <sergiodj@redhat.com>
8555 * probe.c (parse_probes): Turn assert into an ordinary error.
8556 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8557 exceptions when parsing probes. Rearrange the code for clarity.
8559 2014-03-20 Tom Tromey <tromey@redhat.com>
8562 * top.c (execute_command): Only dispatch events if the command
8565 2014-03-20 Tom Tromey <tromey@redhat.com>
8568 * infcall.c: Include event-top.h.
8569 (run_inferior_call): Call async_disable_stdin if needed.
8571 2014-03-20 Pedro Alves <palves@redhat.com>
8573 * infrun.c (prepare_to_proceed): Delete.
8574 (thread_still_needs_step_over): New function.
8575 (find_thread_needs_step_over): New function.
8576 (proceed): If the current thread needs a step-over, set its
8577 steping_over_breakpoint flag. Adjust to use
8578 find_thread_needs_step_over instead of prepare_to_proceed.
8579 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8580 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8582 (switch_back_to_stepped_thread): Step over breakpoints of all
8583 threads not the stepping thread, before switching back to the
8586 2014-03-20 Pedro Alves <palves@redhat.com>
8588 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8590 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8591 * infrun.c (saved_singlestep_ptid)
8592 (stepping_past_singlestep_breakpoint): Delete.
8593 (resume): Remove stepping_past_singlestep_breakpoint handling.
8594 (proceed): Store the prev_pc of the stepping thread too.
8595 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8597 (enum infwait_states): Delete infwait_thread_hop_state.
8598 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8600 (handle_inferior_event): Adjust.
8601 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8602 handling and the thread-hop code. Before removing single-step
8603 breakpoints, check whether the thread hit a single-step breakpoint
8604 of another thread. If it did, the trap is not a random signal.
8605 (switch_back_to_stepped_thread): If the event thread hit a
8606 single-step breakpoint, unblock it before switching to the
8607 stepping thread. Handle the case of the stepped thread having
8609 (keep_going): Handle the case of the current thread moving past a
8610 single-step breakpoint.
8612 2014-03-20 Pedro Alves <palves@redhat.com>
8615 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8616 are being stepped over.
8617 (breakpoint_address_match): Make extern.
8618 * breakpoint.h (breakpoint_address_match): New declaration.
8619 * inferior.h (stepping_past_instruction_at): New declaration.
8620 * infrun.c (struct step_over_info): New type.
8621 (step_over_info): New global.
8622 (set_step_over_info, clear_step_over_info)
8623 (stepping_past_instruction_at): New functions.
8624 (handle_inferior_event): Clear the step-over info when
8625 trap_expected is cleared.
8626 (resume): Remove now stale comment.
8627 (clear_proceed_status): Clear step-over info.
8628 (proceed): Adjust step-over handling to set or clear the step-over
8629 info instead of removing all breakpoints.
8630 (handle_signal_stop): When setting up a thread-hop, don't remove
8632 (stop_stepping): Clear step-over info.
8633 (keep_going): Adjust step-over handling to set or clear step-over
8634 info and then always inserting breakpoints, instead of removing
8635 all breakpoints when stepping over one.
8637 2014-03-20 Pedro Alves <palves@redhat.com>
8639 * infrun.c (previous_inferior_ptid): Adjust comment.
8640 (deferred_step_ptid): Delete.
8641 (infrun_thread_ptid_changed, prepare_to_proceed)
8642 (init_wait_for_inferior): Adjust.
8643 (handle_signal_stop): Delete deferred_step_ptid handling.
8645 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8648 * defs.h (sync_quit_force_run): New declaration.
8649 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8650 * event-top.c (async_sigterm_handler): New declaration.
8651 (async_sigterm_token): New variable.
8652 (async_init_signals): Create also async_sigterm_token.
8653 (async_sigterm_handler): New function.
8654 (sync_quit_force_run): New variable.
8655 (handle_sigterm): Replace quit_force call by other calls.
8656 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8658 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8660 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8661 offset into SPE pseudo registers.
8663 2014-03-18 Pedro Alves <palves@redhat.com>
8666 * inferior.h (print_stop_event): Declare.
8667 * infrun.c (print_stop_event): New, factored out from ...
8668 (normal_stop): ... this.
8669 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8670 of bpstat_print/print_stack_frame.
8672 2014-03-17 Tom Tromey <tromey@redhat.com>
8674 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8676 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8678 * ada-lang.c (decode_constrained_packed_array): Perform a
8679 minimal coercion for reference with coerce_ref instead of
8682 2014-03-17 Tristan Gingold <gingold@adacore.com>
8684 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8685 (darwin_solib_create_inferior_hook): Emit a warning if version
8688 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8690 * python/py-value.c (get_field_flag): Cast flag_name argument to
8691 PyObject_GetAttrString to support Python 2.4.
8693 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8695 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8696 (Global Maintainers): Remove Jan Kratochvil.
8698 2014-03-14 Pedro Alves <palves@redhat.com>
8700 * inferior.h (terminal_ours_for_output): Rename to ...
8701 (child_terminal_ours_for_output): ... this.
8702 (terminal_save_ours): Rename to ...
8703 (child_terminal_save_ours): ... this.
8704 (terminal_ours): Rename to ...
8705 (child_terminal_ours): ... this.
8706 (terminal_inferior): Rename to ...
8707 (child_terminal_inferior): ... this.
8708 (terminal_init_inferior): Rename to ...
8709 (child_terminal_init_inferior): ... this.
8710 (terminal_init_inferior_with_pgrp): Rename to ...
8711 (child_terminal_init_inferior_with_pgrp): ... this.
8712 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8713 (child_terminal_init_with_pgrp): ... this.
8714 (terminal_save_ours): Rename to ...
8715 (child_terminal_save_ours): ... this.
8716 (terminal_init_inferior): Rename to ...
8717 (child_terminal_init): ... this. Adjust.
8718 (terminal_inferior): Rename to ...
8719 (child_terminal_inferior): ... this.
8720 (terminal_ours_for_output): Rename to ...
8721 (child_terminal_ours_for_output): ... this. Adjust.
8722 (terminal_ours): Rename to ...
8723 (child_terminal_ours): ... this.
8724 (terminal_ours_1): Rename to ...
8725 (child_terminal_ours_1): ... this. Adjust.
8726 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8727 * windows-nat.c (do_initial_windows_stuff): Adjust.
8728 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8729 (gnu_terminal_init): ... this. Adjust.
8730 (gnu_target): Adjust.
8731 * inf-child.c (inf_child_target): Adjust.
8733 2014-03-13 Doug Evans <xdje42@gmail.com>
8736 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8739 2014-03-13 Doug Evans <xdje42@gmail.com>
8741 * value.c (record_latest_value): Call release_value_or_incref
8742 instead of release_value.
8744 2014-03-13 Pedro Alves <palves@redhat.com>
8746 * procfs.c (procfs_target): Don't override to_shortname,
8747 to_longname or to_doc.
8749 2014-03-13 Pedro Alves <palves@redhat.com>
8751 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8752 Unix in user visible strings.
8754 2014-03-12 Stan Shebs <stan@codesourcery.com>
8756 * gdbtypes.h: Annotate comments for Doxygen, add a page
8757 block comment with some general info.
8759 2014-03-12 Pedro Alves <palves@redhat.com>
8761 * infcmd.c (prepare_execution_command): New function, factored out
8762 from several execution commands.
8763 (run_command_1, continue_command, step_1, jump_command)
8764 (signal_command, until_command, advance_command, finish_command)
8765 (attach_command): Use prepare_execution_command.
8767 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8769 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8772 (struct arm_linux_thread_points): Removed.
8773 (struct arm_linux_process_info): New.
8774 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8775 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8776 (arm_linux_find_breakpoints_by_tid): Removed.
8777 (struct arch_lwp_info): New.
8778 (arm_linux_find_process_pid): New functions.
8779 (arm_linux_add_process): New functions.
8780 (arm_linux_process_info_get): New functions.
8781 (arm_linux_forget_process): New function.
8782 (arm_linux_get_debug_reg_state): New function.
8783 (struct update_registers_data): New.
8784 (update_registers_callback): New function.
8785 (arm_linux_insert_hw_breakpoint1): Updated.
8786 (arm_linux_remove_hw_breakpoint1): Updated.
8787 (arm_linux_insert_hw_breakpoint): Updated.
8788 (arm_linux_remove_hw_breakpoint): Updated.
8789 (arm_linux_insert_watchpoint): Updated.
8790 (arm_linux_remove_watchpoint): Updated.
8791 (arm_linux_new_thread): Updated.
8792 (arm_linux_prepare_to_resume): New function.
8793 (arm_linux_new_fork): New function.
8794 (_initialize_arm_linux_nat): Updated.
8796 2014-03-12 Pedro Alves <palves@redhat.com>
8798 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8800 2014-03-12 Tom Tromey <tromey@redhat.com>
8802 * inf-child.c (return_zero): New function.
8803 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8804 * aix-thread.c (aix_thread_inferior_created): New function.
8805 (aix_thread_attach): Remove.
8806 (init_aix_thread_ops): Don't set to_attach.
8807 (_initialize_aix_thread): Register inferior_created observer.
8808 * corelow.c (init_core_ops): Don't set to_attach or
8810 * exec.c (init_exec_ops): Don't set to_attach or
8812 * infcmd.c (run_command_1): Use find_run_target. Make direct
8814 (attach_command): Use find_attach_target. Make direct target
8816 * record-btrace.c (init_record_btrace_ops): Don't set
8818 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8820 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8821 set to_create_inferior.
8822 * target.c (complete_target_initialization): Add assertion.
8823 (target_create_inferior): Remove.
8824 (find_default_attach, find_default_create_inferior): Remove.
8825 (find_attach_target, find_run_target): New functions.
8826 (find_default_is_async_p, find_default_can_async_p)
8827 (target_supports_non_stop, target_attach): Remove.
8828 (init_dummy_target): Don't set to_create_inferior or
8829 to_supports_non_stop.
8830 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8831 TARGET_DEFAULT_FUNC.
8832 <to_create_inferior>: Add comment.
8833 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8834 TARGET_DEFAULT_RETURN.
8835 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8836 (find_attach_target, find_run_target): Declare.
8837 (target_create_inferior): Remove.
8838 (target_has_execution_1): Update comment.
8839 (target_supports_non_stop): Remove.
8840 * target-delegates.c: Rebuild.
8842 2014-03-12 Pedro Alves <palves@redhat.com>
8844 * inf-child.h: Update comment to not mention Unix.
8846 2014-03-12 Pedro Alves <palves@redhat.com>
8848 * inf-child.c: Update top comment to not mention Unix. Add
8849 generic comment describing how this target is meant to be used.
8850 (inf_child_post_attach, inf_child_post_startup_inferior)
8851 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8854 2014-03-12 Pedro Alves <palves@redhat.com>
8856 * nto-procfs.c: Include inf-child.h.
8857 (procfs_ops): Delete global.
8858 (procfs_can_run): Delete method.
8859 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8860 target pointer instead of referencing procfs_ops.
8861 (procfs_prepare_to_store): Delete.
8862 (init_procfs_ops): Delete function.
8863 (procfs_target): New function, based on init_procfs_ops, but
8864 inherit inf_child_target.
8865 (_initialize_procfs): Use procfs_target.
8867 2014-03-12 Pedro Alves <palves@redhat.com>
8869 * windows-nat.c: Include inf-child.h.
8870 (windows_ops): Delete global.
8871 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8873 (init_windows_ops): Delete function.
8874 (windows_target): New function, based on init_windows_ops, but
8875 inherit inf_child_target.
8876 (_initialize_windows_nat): Use windows_target. Install x86
8877 specific target methods here.
8879 2014-03-10 Doug Evans <xdje42@gmail.com>
8881 * guile/guile.c (call_initialize_gdb_module): New function.
8882 (initialize_guile): Replace call to scm_init_guile with call to
8885 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8887 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8888 in call to TYPE_CODE macro.
8890 2014-03-10 Jerome Guitton <guitton@adacore.com>
8892 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8893 Resolve tagged types to full view.
8895 2014-03-10 Hui Zhu <hui@codesourcery.com>
8897 * target.h (target_insert_breakpoint): Remove "hardware" from its
8900 2014-03-07 Doug Evans <dje@google.com>
8902 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8904 2014-03-07 Doug Evans <dje@google.com>
8906 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8907 Remove unused local comp_dir_attr. Assert exactly one of
8908 stub_comp_unit_die, stub_comp_dir is non-NULL.
8910 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8912 * target.h (complete_target_initialization, add_target):
8915 2014-03-07 Pedro Alves <palves@redhat.com>
8917 * go32-nat.c: Include inf-child.h.
8918 (go32_ops): Delete global.
8919 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8921 (go32_create_inferior): Push the passed in target pointer instead
8922 of referencing go32_ops.
8923 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8924 (go32_target): New function, based on init_go32_ops, but inherit
8926 (_initialize_go32_nat): Use go32_target. Move parts of
8929 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8931 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8932 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8933 SYMBOL_VALUE_ADDRESS.
8934 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8936 2014-03-06 Yao Qi <yao@codesourcery.com>
8938 * breakpoint.c (get_tracepoint_by_number): Remove argument
8939 optional_p. All callers updated. Adjust comments. Update
8941 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8943 2014-03-06 Yao Qi <yao@codesourcery.com>
8945 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8946 early if get_number returns zero. Use 'p' instead of 'args'.
8948 2014-03-06 Yao Qi <yao@codesourcery.com>
8950 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8953 2014-03-06 Yao Qi <yao@codesourcery.com>
8955 PR breakpoints/16508
8956 * tracepoint.c (check_trace_running): New function.
8957 (trace_find_command): Move code to check_trace_running and
8958 call check_trace_running.
8959 (trace_find_pc_command): Likewise.
8960 (trace_find_tracepoint_command): Likewise.
8961 (trace_find_line_command): Likewise.
8962 (trace_find_range_command): Likewise.
8963 * tracepoint.h (check_trace_running): Likewise.
8964 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8966 2014-03-06 Yao Qi <yao@codesourcery.com>
8968 * target.h (struct target_ops) <to_traceframe_info>: Use
8969 TARGET_DEFAULT_NORETURN (tcomplain ()).
8970 * target-delegates.c: Regenerated.
8972 2014-03-05 Pedro Alves <palves@redhat.com>
8975 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8976 void. Update comment.
8977 (dcache_xfer_memory): Delete.
8978 (dcache_read_memory_partial): New, based on the read bits of
8980 (dcache_update): Add status parameter. Use ULONGEST for len, and
8981 adjust. Discard cache lines if the reason for the update was
8983 * dcache.h (dcache_xfer_memory): Delete declaration.
8984 (dcache_read_memory_partial): New declaration.
8985 (dcache_update): Update prototype.
8986 * target.c (raw_memory_xfer_partial): Update the dcache here.
8987 (memory_xfer_partial_1): Don't handle dcache writes here.
8989 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8991 * remote-sim.c (gdbsim_load): Add const to prog.
8993 2014-03-03 Tom Tromey <tromey@redhat.com>
8995 * elfread.c (probe_key): Change to bfd_data.
8996 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8997 now per-BFD, not per-objfile.
8998 * stap-probe.c (stap_probe_destroy): Update comment.
8999 (handle_stap_probe): Allocate on the per-BFD obstack.
9001 2014-03-03 Tom Tromey <tromey@redhat.com>
9003 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9004 * breakpoint.c (create_longjmp_master_breakpoint): Use
9006 (add_location_to_breakpoint, bkpt_probe_insert_location)
9007 (bkpt_probe_remove_location): Update.
9008 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9009 * elfread.c (elf_symfile_relocate_probe): Remove.
9010 (elf_probe_fns): Update.
9011 (insert_exception_resume_breakpoint): Change type of "probe"
9012 parameter to bound_probe.
9013 (check_exception_resume): Update.
9014 * objfiles.c (objfile_relocate1): Don't relocate probes.
9015 * probe.c (bound_probe_s): New typedef.
9016 (parse_probes): Use get_probe_address. Set sal's objfile.
9017 (find_probe_by_pc): Return a bound_probe.
9018 (collect_probes): Return a VEC(bound_probe_s).
9019 (compare_probes): Update.
9020 (gen_ui_out_table_header_info): Change type of "probes"
9022 (info_probes_for_ops): Update.
9023 (get_probe_address): New function.
9024 (probe_safe_evaluate_at_pc): Update.
9025 * probe.h (struct probe_ops) <get_probe_address>: New field.
9026 <set_semaphore, clear_semaphore>: Add objfile parameter.
9027 (struct probe) <objfile>: Remove field.
9029 <address>: Update comment.
9030 (struct bound_probe): New.
9031 (find_probe_by_pc): Return a bound_probe.
9032 (get_probe_address): Declare.
9033 * solib-svr4.c (struct probe_and_action) <address>: New field.
9034 (hash_probe_and_action, equal_probe_and_action): Update.
9035 (register_solib_event_probe): Add address parameter.
9036 (solib_event_probe_at): Update.
9037 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9039 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9040 (stap_get_probe_address): New function.
9041 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9042 (compile_probe_arg): Update.
9043 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9045 (handle_stap_probe): Don't relocate the probe.
9046 (stap_relocate): Remove.
9047 (stap_gen_info_probes_table_values): Update.
9048 (stap_probe_ops): Remove stap_relocate.
9049 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9050 (debug_sym_probe_fns): Update.
9051 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9052 * symtab.c (init_sal): Use memset.
9053 * symtab.h (struct symtab_and_line) <objfile>: New field.
9054 * tracepoint.c (start_tracing, stop_tracing): Update.
9056 2014-03-03 Tom Tromey <tromey@redhat.com>
9058 * probe.h (parse_probes, find_probe_by_pc)
9059 (find_probes_in_objfile): Fix comments.
9061 2014-03-02 Doug Evans <xdje42@gmail.com>
9063 * infrun.c (handle_signal_stop): Replace test for
9064 TARGET_WAITKIND_STOPPED with an assert.
9066 2014-03-02 Doug Evans <xdje42@gmail.com>
9068 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9070 2014-03-02 Doug Evans <xdje42@gmail.com>
9072 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9074 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9076 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9078 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9080 * i386obsd-nat.c: Include "obsd-nat.h".
9081 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9083 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9085 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9087 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9089 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9091 * mips64obsd-nat.c: Include "obsd-nath".
9092 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9094 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9096 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9098 * amd64obsd-nat.c: Include "obsd-nat,h.
9099 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9101 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9103 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9105 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9106 (find_overload_match): Update call to find_oload_champ.
9107 (find_oload_champ_namespace_loop): Likewise
9109 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9111 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9113 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9114 * config/sparc/obsd64.mh: New file.
9115 * sparc64obsd-nat.c: New file.
9117 * obsd-nat.h: New file.
9118 * obsd-nat.c: New file.
9119 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9120 (ALLDEPFILES): Add obsd-nat.c.
9122 2014-02-28 Tom Tromey <tromey@redhat.com>
9124 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9125 * cli-out.h (cli_ui_out_impl): Now const.
9126 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9127 * ui-out.c (struct ui_out) <impl>: Now const.
9128 (default_ui_out_impl): Now const.
9129 (ui_out_new): Make 'impl' parameter const.
9130 * ui-out.h (ui_out_new): Update.
9132 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9134 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9136 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9138 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9140 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9142 Additional PR 8882 fix.
9143 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9145 2014-02-27 Pedro Alves <palves@redhat.com>
9147 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9150 2014-02-27 Pedro Alves <palves@redhat.com>
9153 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9154 * nat/linux-waitpid.c: Include string.h.
9155 (status_to_str): Moved here and made extern.
9156 * nat/linux-waitpid.h (status_to_str): New declaration.
9158 2014-02-27 Hui Zhu <hui@codesourcery.com>
9161 * infrun.c (ptid_match): Move ...
9162 * common/ptid.c (ptid_match): ... here.
9163 * inferior.h (ptid_match): Move ...
9164 * common/ptid.h (ptid_match): ... here.
9166 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9168 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9169 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9172 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9174 * obsd-tdep.c (obsd_auxv_parse): New function.
9175 (obsd_init_abi): Set auxv_parse.
9177 * gdbarch.sh (auxv_parse): New.
9178 * gdbarch.h: Regenerated.
9179 * gdbarch.c: Regenerated.
9180 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9182 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9184 * guile/scm-value.c (gdbscm_history_append_x): New function.
9185 (value_functions): Add it.
9187 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9189 * dwarf2read.c (attr_value_as_address): New function.
9190 (dwarf2_find_base_address, read_call_site_scope): Use
9191 attr_value_as_address in place of DW_ADDR.
9192 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9193 the low and high addresses. Slight rework of the handling
9194 of the high pc being a constant form, and limit it to
9195 DWARF verson 4 or higher.
9196 (dwarf2_record_block_ranges): Likewise.
9197 (read_partial_die): Likewise.
9198 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9200 2014-02-26 Tom Tromey <tromey@redhat.com>
9202 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9204 2014-02-26 Tom Tromey <tromey@redhat.com>
9206 * elfread.c (elf_read_minimal_symbols): Return early if
9207 minimal symbols have already been read. Add "ei" parameter.
9208 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9209 * minsyms.c (prim_record_minimal_symbol_full): Update.
9210 * objfiles.h (struct objstats) <n_minsyms>: Move...
9211 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9212 * symmisc.c (print_objfile_statistics): Update.
9214 2014-02-26 Tom Tromey <tromey@redhat.com>
9216 * elfread.c (elf_read_minimal_symbols): New function, from
9218 (elf_symfile_read): Call it.
9220 2014-02-26 Tom Tromey <tromey@redhat.com>
9222 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9223 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9224 (lookup_minimal_symbol_solib_trampoline)
9225 (lookup_minimal_symbol_by_pc_section_1)
9226 (lookup_minimal_symbol_and_objfile): Update.
9227 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9228 Don't allocate a minimal symbol if minsyms have already been read.
9229 (build_minimal_symbol_hash_tables): Update.
9230 (install_minimal_symbols): Do nothing if minsyms already read.
9231 Use the per-BFD obstack.
9232 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9233 * objfiles.c (allocate_objfile): Call
9234 terminate_minimal_symbol_table later.
9235 (have_minimal_symbols): Update.
9236 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9237 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9238 Move from struct objfile.
9239 <minsyms_read>: New field.
9240 (struct objfile) <msymbols, minimal_symbol_count,
9241 msymbol_hash, msymbol_demangled_hash>: Move.
9242 (ALL_OBJFILE_MSYMBOLS): Update.
9243 * symfile.c (read_symbols): Set minsyms_read.
9244 (reread_symbols): Update.
9245 * symmisc.c (dump_objfile, dump_msymbols): Update.
9247 2014-02-26 Tom Tromey <tromey@redhat.com>
9249 * minsyms.c (msymbols_sort): Remove.
9250 * minsyms.h (msymbols_sort): Remove.
9251 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9252 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9253 * elfread.c (elf_symtab_read): Don't add section offsets.
9254 * xcoffread.c (record_minimal_symbol): Don't add section offset
9255 to minimal symbol address.
9256 * somread.c (text_offset, data_offset): Remove.
9257 (som_symtab_read): Don't add section offsets to minimal symbol
9259 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9260 Don't add section offsets to minimal symbols.
9261 * coffread.c (coff_symtab_read): Don't add section offsets
9262 to minimal symbol addresses.
9263 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9264 to minimal symbol addresses.
9265 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9266 section offset to minimal symbol addresses.
9267 * mdebugread.c (parse_partial_symbols): Don't add section
9268 offset to minimal symbol addresses.
9269 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9270 offset to minimal symbol addresses.
9272 2014-02-26 Tom Tromey <tromey@redhat.com>
9274 * ada-lang.c (ada_main_name): Update.
9275 (ada_add_standard_exceptions): Update.
9276 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9277 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9278 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9279 * auxv.c (ld_so_xfer_auxv): Update.
9280 * avr-tdep.c (avr_scan_prologue): Update.
9281 * ax-gdb.c (gen_var_ref): Update.
9282 * blockframe.c (get_pc_function_start)
9283 (find_pc_partial_function_gnu_ifunc): Update.
9284 * breakpoint.c (create_overlay_event_breakpoint)
9285 (create_longjmp_master_breakpoint)
9286 (create_std_terminate_master_breakpoint)
9287 (create_exception_master_breakpoint): Update.
9288 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9289 * c-valprint.c (c_val_print): Update.
9290 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9291 * common/agent.c (agent_look_up_symbols): Update.
9292 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9293 * dwarf2loc.c (call_site_to_target_addr): Update.
9294 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9295 * elfread.c (elf_gnu_ifunc_record_cache)
9296 (elf_gnu_ifunc_resolve_by_got): Update.
9297 * findvar.c (default_read_var_value): Update.
9298 * frame.c (inside_main_func): Update.
9299 * frv-tdep.c (frv_frame_this_id): Update.
9300 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9301 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9303 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9304 (hppa_hpux_find_dummy_bpaddr): Update.
9305 * hppa-tdep.c (hppa_symbol_address): Update.
9306 * infcmd.c (until_next_command): Update.
9307 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9309 * linespec.c (minsym_found, add_minsym): Update.
9310 * linux-nat.c (get_signo): Update.
9311 * linux-thread-db.c (inferior_has_bug): Update.
9312 * m32c-tdep.c (m32c_return_value)
9313 (m32c_m16c_address_to_pointer): Update.
9314 * m32r-tdep.c (m32r_frame_this_id): Update.
9315 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9316 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9317 * maint.c (maintenance_translate_address): Update.
9318 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9319 (frob_address): New function.
9320 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9321 frob_address. Rename parameter to "pc_in".
9322 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9324 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9326 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9327 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9328 * objc-lang.c (find_objc_msgsend): Update.
9329 * objfiles.c (objfile_relocate1): Update.
9330 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9331 * p-valprint.c (pascal_val_print): Update.
9332 * parse.c (write_exp_msymbol): Update.
9333 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9334 (ppc_elfv2_skip_entrypoint): Update.
9335 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9336 * printcmd.c (build_address_symbolic, msym_info)
9337 (address_info): Update.
9338 * proc-service.c (ps_pglobal_lookup): Update.
9339 * psymtab.c (find_pc_sect_psymtab_closer)
9340 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9341 Change msymbol parameter to bound_minimal_symbol.
9342 * ravenscar-thread.c (get_running_thread_id): Update.
9343 * remote.c (remote_check_symbols): Update.
9344 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9346 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9347 * solib-dsbt.c (lm_base): Update.
9348 * solib-frv.c (lm_base, main_got): Update.
9349 * solib-irix.c (locate_base): Update.
9350 * solib-som.c (som_solib_create_inferior_hook)
9351 (link_map_start): Update.
9352 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9353 * solib-svr4.c (elf_locate_base, enable_break): Update.
9354 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9355 (flush_ea_cache): Update.
9356 * stabsread.c (define_symbol, scan_file_globals): Update.
9357 * stack.c (find_frame_funname): Update.
9358 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9359 (debug_qf_find_pc_sect_symtab): Update.
9360 * symfile.c (simple_read_overlay_table)
9361 (simple_overlay_update): Update.
9362 * symfile.h (struct quick_symbol_functions)
9363 <find_pc_sect_symtab>: Change type of msymbol to
9364 bound_minimal_symbol.
9365 * symmisc.c (dump_msymbols): Update.
9366 * symtab.c (find_pc_sect_symtab_via_partial)
9367 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9368 (search_symbols, print_msymbol_info): Update.
9369 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9370 (MSYMBOL_VALUE_ADDRESS): Redefine.
9371 (BMSYMBOL_VALUE_ADDRESS): New macro.
9372 * tracepoint.c (scope_info): Update.
9373 * tui/tui-disasm.c (tui_find_disassembly_address)
9374 (tui_get_begin_asm_address): Update.
9375 * valops.c (find_function_in_inferior): Update.
9376 * value.c (value_static_field, value_fn_field): Update.
9378 2014-02-26 Tom Tromey <tromey@redhat.com>
9380 * ada-lang.c (ada_update_initial_language): Update.
9381 (ada_main_name, ada_has_this_exception_support): Update.
9382 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9383 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9384 * arm-tdep.c (arm_skip_stub): Update.
9385 * auxv.c (ld_so_xfer_auxv): Update.
9386 * avr-tdep.c (avr_scan_prologue): Update.
9387 * ax-gdb.c (gen_var_ref): Update.
9388 * breakpoint.c (struct breakpoint_objfile_data)
9389 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9390 type to bound_minimal_symbol.
9391 (create_overlay_event_breakpoint)
9392 (create_longjmp_master_breakpoint)
9393 (create_std_terminate_master_breakpoint)
9394 (create_exception_master_breakpoint): Update.
9395 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9396 * c-exp.y (classify_name): Update.
9397 * coffread.c (coff_symfile_read): Update.
9398 * common/agent.c (agent_look_up_symbols): Update.
9399 * d-lang.c (d_main_name): Update.
9400 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9401 * dec-thread.c (enable_dec_thread): Update.
9402 * dwarf2loc.c (call_site_to_target_addr): Update.
9403 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9404 * eval.c (evaluate_subexp_standard): Update.
9405 * findvar.c (struct minsym_lookup_data) <result>: Change type
9406 to bound_minimal_symbol.
9408 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9409 * frame.c (inside_main_func): Update.
9410 * frv-tdep.c (frv_frame_this_id): Update.
9411 * gcore.c (call_target_sbrk): Update.
9412 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9413 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9415 * go-lang.c (go_main_name): Update.
9416 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9417 (hppa_hpux_find_import_stub_for_addr): Update.
9418 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9419 Update. Change return type.
9420 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9422 * jit.c (jit_breakpoint_re_set_internal): Update.
9423 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9425 * linux-nat.c (get_signo): Update.
9426 * linux-thread-db.c (inferior_has_bug): Update
9427 * m32c-tdep.c (m32c_return_value)
9428 (m32c_m16c_address_to_pointer): Update.
9429 * m32r-tdep.c (m32r_frame_this_id): Update.
9430 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9431 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9432 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9433 lookup_minimal_symbol. Change return type.
9434 (lookup_minimal_symbol): Remove.
9435 (lookup_bound_minimal_symbol): Update.
9436 (lookup_minimal_symbol_text): Change return type.
9437 (lookup_minimal_symbol_solib_trampoline): Change return type.
9438 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9439 (lookup_minimal_symbol_solib_trampoline): Change return type.
9440 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9441 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9442 (value_nsstring, find_imps): Update.
9443 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9444 * p-lang.c (pascal_main_name): Update.
9445 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9446 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9447 * proc-service.c (ps_pglobal_lookup): Update.
9448 * ravenscar-thread.c (get_running_thread_msymbol): Change
9450 (has_ravenscar_runtime, get_running_thread_id): Update.
9451 * remote.c (remote_check_symbols): Update.
9452 * sol-thread.c (ps_pglobal_lookup): Update.
9453 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9454 * solib-dsbt.c (lm_base): Update.
9455 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9457 * solib-irix.c (locate_base): Update.
9458 * solib-som.c (som_solib_create_inferior_hook)
9459 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9461 * solib-spu.c (spu_enable_break): Update.
9462 * solib-svr4.c (elf_locate_base, enable_break): Update.
9463 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9464 (flush_ea_cache): Update.
9465 * stabsread.c (define_symbol): Update.
9466 * symfile.c (simple_read_overlay_table): Update.
9467 * symtab.c (find_pc_sect_line): Update.
9468 * tracepoint.c (scope_info): Update.
9469 * tui-disasm.c (tui_get_begin_asm_address): Update.
9470 * value.c (value_static_field): Update.
9472 2014-02-26 Tom Tromey <tromey@redhat.com>
9474 * minsyms.c (prim_record_minimal_symbol_full): Use
9475 SET_MSYMBOL_VALUE_ADDRESS.
9476 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9477 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9478 SET_MSYMBOL_VALUE_ADDRESS.
9479 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9480 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9482 2014-02-26 Tom Tromey <tromey@redhat.com>
9484 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9485 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9486 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9487 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9488 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9489 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9490 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9491 * ada-lang.c (ada_main_name): Update.
9492 (ada_lookup_simple_minsym): Update.
9493 (ada_make_symbol_completion_list): Update.
9494 (ada_add_standard_exceptions): Update.
9495 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9496 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9497 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9498 * arm-tdep.c (skip_prologue_function): Update.
9499 (arm_skip_stack_protector, arm_skip_stub): Update.
9500 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9501 (arm_wince_skip_main_prologue): Update.
9502 * auxv.c (ld_so_xfer_auxv): Update.
9503 * avr-tdep.c (avr_scan_prologue): Update.
9504 * ax-gdb.c (gen_var_ref): Update.
9505 * block.c (call_site_for_pc): Update.
9506 * blockframe.c (get_pc_function_start): Update.
9507 (find_pc_partial_function_gnu_ifunc): Update.
9508 * breakpoint.c (create_overlay_event_breakpoint): Update.
9509 (create_longjmp_master_breakpoint): Update.
9510 (create_std_terminate_master_breakpoint): Update.
9511 (create_exception_master_breakpoint): Update.
9512 (resolve_sal_pc): Update.
9513 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9514 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9516 * c-valprint.c (c_val_print): Update.
9517 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9518 * coffread.c (coff_symfile_read): Update.
9519 * common/agent.c (agent_look_up_symbols): Update.
9520 * dbxread.c (find_stab_function_addr): Update.
9521 (end_psymtab): Update.
9522 * dwarf2loc.c (call_site_to_target_addr): Update.
9523 (func_verify_no_selftailcall): Update.
9524 (tailcall_dump): Update.
9525 (call_site_find_chain_1): Update.
9526 (dwarf_expr_reg_to_entry_parameter): Update.
9527 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9528 (elf_gnu_ifunc_resolve_by_got): Update.
9529 * f-valprint.c (info_common_command): Update.
9530 * findvar.c (read_var_value): Update.
9531 * frame.c (get_prev_frame_1): Update.
9532 (inside_main_func): Update.
9533 * frv-tdep.c (frv_skip_main_prologue): Update.
9534 (frv_frame_this_id): Update.
9535 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9536 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9537 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9538 (gnuv3_skip_trampoline): Update.
9539 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9540 (hppa64_hpux_in_solib_call_trampoline): Update.
9541 (hppa_hpux_skip_trampoline_code): Update.
9542 (hppa64_hpux_search_dummy_call_sequence): Update.
9543 (hppa_hpux_find_import_stub_for_addr): Update.
9544 (hppa_hpux_find_dummy_bpaddr): Update.
9545 * hppa-tdep.c (hppa_symbol_address)
9546 (hppa_lookup_stub_minimal_symbol): Update.
9547 * i386-tdep.c (i386_skip_main_prologue): Update.
9548 (i386_pe_skip_trampoline_code): Update.
9549 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9550 * infcall.c (get_function_name): Update.
9551 * infcmd.c (until_next_command): Update.
9552 * jit.c (jit_breakpoint_re_set_internal): Update.
9553 (jit_inferior_init): Update.
9554 * linespec.c (minsym_found): Update.
9555 (add_minsym): Update.
9556 * linux-fork.c (info_checkpoints_command): Update.
9557 * linux-nat.c (get_signo): Update.
9558 * linux-thread-db.c (inferior_has_bug): Update.
9559 * m32c-tdep.c (m32c_return_value): Update.
9560 (m32c_m16c_address_to_pointer): Update.
9561 (m32c_m16c_pointer_to_address): Update.
9562 * m32r-tdep.c (m32r_frame_this_id): Update.
9563 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9564 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9565 * maint.c (maintenance_translate_address): Update.
9566 * minsyms.c (add_minsym_to_hash_table): Update.
9567 (add_minsym_to_demangled_hash_table): Update.
9568 (msymbol_objfile): Update.
9569 (lookup_minimal_symbol): Update.
9570 (iterate_over_minimal_symbols): Update.
9571 (lookup_minimal_symbol_text): Update.
9572 (lookup_minimal_symbol_by_pc_name): Update.
9573 (lookup_minimal_symbol_solib_trampoline): Update.
9574 (lookup_minimal_symbol_by_pc_section_1): Update.
9575 (lookup_minimal_symbol_and_objfile): Update.
9576 (prim_record_minimal_symbol_full): Update.
9577 (compare_minimal_symbols): Update.
9578 (compact_minimal_symbols): Update.
9579 (build_minimal_symbol_hash_tables): Update.
9580 (install_minimal_symbols): Update.
9581 (terminate_minimal_symbol_table): Update.
9582 (find_solib_trampoline_target): Update.
9583 (minimal_symbol_upper_bound): Update.
9584 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9585 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9586 (mips_skip_pic_trampoline_code): Update.
9587 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9588 * objc-lang.c (selectors_info): Update.
9589 (classes_info): Update.
9590 (find_methods): Update.
9591 (find_imps): Update.
9592 (find_objc_msgsend): Update.
9593 * objfiles.c (objfile_relocate1): Update.
9594 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9595 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9596 * p-valprint.c (pascal_val_print): Update.
9597 * parse.c (write_exp_msymbol): Update.
9598 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9599 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9600 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9601 * printcmd.c (build_address_symbolic): Update.
9603 (address_info): Update.
9604 * proc-service.c (ps_pglobal_lookup): Update.
9605 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9606 (find_pc_sect_psymtab): Update.
9607 * python/py-framefilter.c (py_print_frame): Update.
9608 * ravenscar-thread.c (get_running_thread_id): Update.
9609 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9611 * remote.c (remote_check_symbols): Update.
9612 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9613 (rs6000_skip_trampoline_code): Update.
9614 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9615 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9616 * solib-dsbt.c (lm_base): Update.
9617 * solib-frv.c (lm_base): Update.
9619 * solib-irix.c (locate_base): Update.
9620 * solib-som.c (som_solib_create_inferior_hook): Update.
9621 (som_solib_desire_dynamic_linker_symbols): Update.
9622 (link_map_start): Update.
9623 * solib-spu.c (spu_enable_break): Update.
9624 (ocl_enable_break): Update.
9625 * solib-svr4.c (elf_locate_base): Update.
9626 (enable_break): Update.
9627 * spu-tdep.c (spu_get_overlay_table): Update.
9628 (spu_catch_start): Update.
9629 (flush_ea_cache): Update.
9630 * stabsread.c (define_symbol): Update.
9631 (scan_file_globals): Update.
9632 * stack.c (find_frame_funname): Update.
9633 (frame_info): Update.
9634 * symfile.c (simple_read_overlay_table): Update.
9635 (simple_overlay_update): Update.
9636 * symmisc.c (dump_msymbols): Update.
9637 * symtab.c (fixup_section): Update.
9638 (find_pc_sect_line): Update.
9639 (skip_prologue_sal): Update.
9640 (search_symbols): Update.
9641 (print_msymbol_info): Update.
9642 (rbreak_command): Update.
9643 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9644 (completion_list_objc_symbol): Update.
9645 (default_make_symbol_completion_list_break_on): Update.
9646 * tracepoint.c (scope_info): Update.
9647 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9648 (tui_get_begin_asm_address): Update.
9649 * valops.c (find_function_in_inferior): Update.
9650 * value.c (value_static_field): Update.
9651 (value_fn_field): Update.
9653 2014-02-26 Tom Tromey <tromey@redhat.com>
9655 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9656 bound minimal symbols. Move code that knows about minsym
9658 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9660 * minsyms.h (minimal_symbol_upper_bound): Declare.
9661 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9662 minimal_symbol_upper_bound.
9664 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9666 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9667 Use the type's name if its basic type does not have a tag.
9669 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9671 * dwarf2read.c (read_subrange_type): Add comment.
9673 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9675 * dwarf2read.c (update_enumeration_type_from_children): New
9676 function, mostly extracted from process_structure_scope.
9677 (read_enumeration_type): Call update_enumeration_type_from_children.
9678 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9679 and flag_flag_enum fields.
9681 2014-02-26 Pedro Alves <palves@redhat.com>
9683 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9684 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9685 to_xfer_partial method.
9687 2014-02-26 Pedro Alves <palves@redhat.com>
9689 * target.c (complete_target_initialization): Don't install
9690 default_xfer_partial as to_xfer_partial hook.
9692 (update_current_target): Don't INHERIT nor de_fault
9693 deprecated_xfer_memory. Delete de_fault macro.
9694 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9695 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9696 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9699 2014-02-26 Pedro Alves <palves@redhat.com>
9701 * go32-nat.c (my_write_child): New function.
9702 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9703 (go32_xfer_partial): New function.
9704 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9705 Instead install a to_xfer_partial hook.
9707 2014-02-26 Pedro Alves <palves@redhat.com>
9709 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9710 to_xfer_partial helper. Rewrite.
9711 (procfs_xfer_partial): New function.
9712 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9713 Install a to_xfer_partial hook.
9715 2014-02-26 Pedro Alves <palves@redhat.com>
9717 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9718 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9719 (m32r_xfer_partial): New function.
9720 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9721 Install a to_xfer_partial hook.
9723 2014-02-26 Pedro Alves <palves@redhat.com>
9725 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9727 (mips_xfer_partial): New function.
9728 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9729 hook. Install a to_xfer_partial hook.
9731 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9733 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9734 * gdbtypes.c (create_array_type_with_stride): New function,
9735 renaming create_array_type, but with an added parameter
9736 called "bit_stride".
9737 (create_array_type): Re-implement using
9738 create_array_type_with_stride.
9739 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9740 and DW_AT_bit_stride attributes.
9742 2014-02-26 Pedro Alves <palves@redhat.com>
9744 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9745 task-specific breakpoints.
9747 2014-02-25 Pedro Alves <palves@redhat.com>
9749 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9750 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9752 2014-02-25 Stan Shebs <stan@codesourcery.com>
9754 * defs.h: Annotate comments for Doxygen.
9756 2014-02-25 Tom Tromey <tromey@redhat.com>
9758 * target.h (target_ignore): Don't declare.
9759 * target.c (target_ignore): Remove.
9761 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9764 * auto-load.c (auto_load_objfile_script_1): Change filename to
9767 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9769 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9770 documentation. Adjust prototype to match the target_ops
9771 to_xfer_partial method. Adjust implementation accordingly.
9773 2014-02-25 Hui Zhu <hui@codesourcery.com>
9775 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9778 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9780 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9781 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9782 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9783 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9784 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9785 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9786 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9787 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9789 (rl78_register_type): Use a data pointer type for SP and
9790 new pseudo registers mentioned above. Use a 16 bit integer
9791 type for all other register pairs.
9792 (rl78_register_name, rl78_g10_register_name): Update for
9793 new pseudo registers.
9794 (rl78_pseudo_register_read): Likewise.
9795 (rl78_pseudo_register_write): Likewise.
9796 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9797 to the newly added pseudo registers.
9799 2014-02-24 Doug Evans <dje@google.com>
9801 * value.c (record_latest_value): Fix comment.
9802 * printcmd.c (print_command_1): Remove code to handle -1 return from
9803 record_latest_value.
9805 2014-02-24 Pedro Alves <palves@redhat.com>
9807 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9808 deprecated_xfer_memory hook.
9809 (procfs_xfer_partial): Call procfs_xfer_memory instead
9810 of the deprecated_xfer_memory target hook.
9811 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9814 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9816 * windows-nat.c (windows_xfer_shared_libraries): Return
9817 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9818 requested object is TARGET_OBJECT_LIBRARIES.
9820 2014-02-24 Yao Qi <yao@codesourcery.com>
9822 * target.h (enum target_xfer_status)
9823 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9824 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9826 * corefile.c (memory_error_message): User updated.
9827 * exec.c (section_table_read_available_memory): Likewise.
9828 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9829 * target.c (target_xfer_status_to_string): Likewise.
9830 (raw_memory_xfer_partial): Likewise.
9831 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9832 * valops.c (read_value_memory): Likewise.
9833 * exec.h: Update comments.
9835 2014-02-24 Yao Qi <yao@codesourcery.com>
9837 * target.c (target_xfer_status_to_string): Rename argument err
9839 * target.h (target_xfer_status_to_string): Update declaration.
9840 Replace target_xfer_error_to_string with
9841 target_xfer_status_to_string in comment.
9843 2014-02-24 Yao Qi <yao@codesourcery.com>
9845 * mips-linux-nat.c (super_close): Update its type.
9846 (mips_linux_close): Pass 'self' to super_close.
9848 2014-02-24 Yao Qi <yao@codesourcery.com>
9850 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9851 * corefile.c (read_memory): Adjusted.
9852 * target.c (target_write_with_progress): Adjusted.
9854 2014-02-23 Yao Qi <yao@codesourcery.com>
9858 2013-10-25 Yao Qi <yao@codesourcery.com>
9860 * remote.c (remote_traceframe_info): Return early if
9861 traceframe is not selected.
9863 2013-07-19 Yao Qi <yao@codesourcery.com>
9865 * target.c (update_current_target): Change the default action
9866 of 'to_traceframe_info' from tcomplain to return_zero.
9867 * target.h (struct target_ops) <to_traceframe_info>: Add more
9870 2014-02-23 Yao Qi <yao@codesourcery.com>
9872 * valops.c (read_value_memory): Rewrite it. Call
9873 target_xfer_partial in a loop.
9874 * exec.h (section_table_available_memory): Remove declaration.
9875 Move comments to ...
9876 * exec.c (section_table_available_memory): ... here. Make it
9879 2014-02-23 Yao Qi <yao@codesourcery.com>
9881 * exec.c (section_table_read_available_memory): New function.
9882 * exec.h (section_table_read_available_memory): Declare.
9883 * ctf.c (ctf_xfer_partial): Call
9884 section_table_read_available_memory.
9885 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9887 2014-02-23 Yao Qi <yao@codesourcery.com>
9889 * ctf.c (ctf_xfer_partial): Move code to ...
9890 * exec.c (exec_read_partial_read_only): ... it. New function.
9891 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9892 * tracefile.c: Include "exec.h".
9893 * exec.h (exec_read_partial_read_only): Declare.
9895 2014-02-23 Yao Qi <yao@codesourcery.com>
9897 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9898 (tfile_has_memory): Remove.
9899 (init_tfile_ops): Don't set fields to_has_all_memory and
9900 to_has_memory of tfile_ops.
9901 * tracefile.c (tracefile_has_all_memory): New function.
9902 (tracefile_has_memory): New function.
9903 (init_tracefile_ops): Initialize fields to_has_all_memory and
9904 to_has_memory of 'ops'.
9906 2014-02-23 Yao Qi <yao@codesourcery.com>
9908 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9909 (ctf_thread_alive, ctf_get_trace_status): Remove.
9910 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9912 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9913 (tfile_has_stack, tfile_has_registers): Remove.
9914 (tfile_thread_alive): Remove.
9915 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9917 * tracefile.c (tracefile_has_stack): New function.
9918 (tracefile_has_registers): New function.
9919 (tracefile_thread_alive): New function.
9920 (tracefile_get_trace_status): New function.
9921 (init_tracefile_ops): New function.
9922 * tracefile.h (init_tracefile_ops): Declare.
9924 2014-02-23 Yao Qi <yao@codesourcery.com>
9926 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9927 (O_LARGEFILE): Likewise.
9928 (tfile_ops): Likewise.
9929 (TRACE_HEADER_SIZE): Likewise.
9930 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9931 (cur_data_size): Likewise.
9932 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9933 (tfile_close, tfile_files_info): Likewise.
9934 (tfile_get_trace_status): Likewise.
9935 (tfile_get_tracepoint_status): Likewise.
9936 (tfile_get_traceframe_address): Likewise.
9937 (tfile_trace_find, match_blocktype): Likewise.
9938 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9939 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9940 (tfile_get_trace_state_variable_value): Likewise.
9941 (tfile_has_all_memory, tfile_has_memory): Likewise.
9942 (tfile_has_stack, tfile_has_registers): Likewise.
9943 (tfile_thread_alive, build_traceframe_info): Likewise.
9944 (tfile_traceframe_info, init_tfile_ops): Likewise.
9945 (_initialize_tracepoint): Don't call init_tfile_ops
9946 and add_target_with_completer.
9947 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9948 exec.h, completer.h and filenames.h.
9949 (_initialize_tracefile_tfile): New function.
9951 2014-02-23 Yao Qi <yao@codesourcery.com>
9953 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9955 (HFILES_NO_SRCDIR): Add tracefile.h.
9956 * ctf.c: Include "tracefile.h".
9957 * tracefile.h: New file.
9958 * tracefile.c: New file
9959 * tracefile-tfile.c: New file.
9960 * tracepoint.c: Include "tracefile.h".
9961 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9962 (stop_reason_names): Add const.
9963 (trace_file_writer_xfree): Move it to tracefile.c.
9964 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9965 (trace_save_ctf): Likewise.
9966 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9967 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9968 (tfile_write_header, tfile_write_regblock_type): Likewise.
9969 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9970 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9971 (tfile_write_raw_data, tfile_end): Likewise.
9972 (tfile_trace_file_writer_new): Likewise.
9973 (free_uploaded_tp): Make it extern.
9974 (free_uploaded_tsv): Make it extern.
9975 (_initialize_tracepoint): Move code to register command 'tsave'
9977 * tracepoint.h (stop_reason_names): Declare.
9978 (struct trace_frame_write_ops): Move it to tracefile.h.
9979 (struct trace_file_write_ops): Likewise.
9980 (struct trace_file_writer): Likewise.
9981 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9983 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9986 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9988 (get_cores_used_by_process): New parameter num_cores, use it.
9989 (linux_xfer_osdata_processes): Pass num_cores to it.
9990 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9993 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9995 * target.c (memory_xfer_partial): Fix length arg in call to
9996 breakpoint_xfer_memory.
9998 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10001 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10002 number comes after the + or - signs. Adjust length of register
10003 name to be extracted.
10005 2014-02-20 Tom Tromey <tromey@redhat.com>
10007 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10008 (ada_varobj_ops): Mark "extern".
10010 2014-02-20 Tom Tromey <tromey@redhat.com>
10012 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10014 2014-02-20 Doug Evans <xdje42@gmail.com>
10016 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10017 All callers updated.
10018 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10019 All callers updated.
10020 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10021 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10023 2014-02-20 lin zuojian <manjian2006@gmail.com>
10024 Joel Brobecker <brobecker@adacore.com>
10025 Doug Evans <xdje42@gmail.com>
10028 * dwarf2read.c (struct die_info): New member in_process.
10029 (reset_die_in_process): New function.
10030 (process_die): Set it at the start, reset when returning.
10031 (inherit_abstract_dies): Only call process_die if origin_child_die
10032 not already being processed.
10034 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10036 * windows-nat.c (handle_unload_dll): Add function documentation.
10037 (do_initial_windows_stuff): Add comment explaining why we wait
10038 until after inferior initialization has finished before
10039 processing all DLLs.
10041 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10043 * windows-nat.c (get_module_name): Delete.
10044 (windows_get_exec_module_filename): New function, mostly
10045 inspired from get_module_name.
10046 (windows_pid_to_exec_file): Replace call to get_module_name
10047 by call to windows_get_exec_module_filename.
10049 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10051 * windows-nat.c (handle_load_dll): Rewrite this function's
10052 introductory comment. Remove code using get_module_name
10053 to get the DLL's name.
10055 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10057 * windows-nat.c (get_windows_debug_event): Ignore
10058 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10059 if windows_initialization_done == 0.
10060 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10061 Adjust implementation to always load all DLLs.
10062 (do_initial_windows_stuff): Replace call to
10063 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10065 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10067 * windows-nat.c (_initialize_windows_nat): Deprecate the
10068 "dll-symbols" command. Turn the "add-shared-symbol-files"
10069 and "assf" aliases into commands, and deprecate them as well.
10070 * NEWS: Add entry explaining that "dll-symbols" and its two
10071 aliases are now deprecated.
10073 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10075 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10076 new-line in debug string. Remove trailing spaces.
10078 2014-02-19 Stan Shebs <stan@codesourcery.com>
10080 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10082 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10084 * NEWS: Add entry for the new feature
10085 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10088 2014-02-19 Stan Shebs <stan@codesourcery.com>
10090 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10092 2014-02-19 Pedro Alves <palves@redhat.com>
10094 * common/ptid.h (struct ptid): Mention that process_stratum
10095 targets should prefer ptid.lwp.
10097 2014-02-19 Pedro Alves <palves@redhat.com>
10099 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10100 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10101 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10102 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10103 store remote thread ids rather than ptid.tid.
10104 (_initialize_remote): Adjust.
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10108 * target.c (target_get_unwinder): Rewrite.
10109 (target_get_tailcall_unwinder): Rewrite.
10110 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10111 (record_btrace_to_get_tailcall_unwinder): New function.
10112 (init_record_btrace_ops): Update.
10113 * target.h (struct target_ops) <to_get_unwinder,
10114 to_get_tailcall_unwinder>: Now function pointers. Use
10115 TARGET_DEFAULT_RETURN.
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10119 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10121 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10123 2014-02-19 Tom Tromey <tromey@redhat.com>
10125 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10127 * target-delegates.c: Rebuild.
10128 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10129 TARGET_DEFAULT_FUNC.
10130 * target.c (default_target_decr_pc_after_break): Rename from
10131 forward_target_decr_pc_after_break. Simplify.
10132 (target_decr_pc_after_break): Rely on delegation.
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10136 * target.c (update_current_target): Do not INHERIT to_doc or
10137 to_magic. Do not de_fault to_open or to_close.
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10141 * gcore.h (objfile_find_memory_regions): Declare.
10142 * gcore.c (objfile_find_memory_regions): No longer static. Add
10144 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10145 * exec.c: Include gcore.h.
10146 (exec_set_find_memory_regions): Remove.
10147 (exec_find_memory_regions): Remove.
10148 (exec_do_find_memory_regions): Remove.
10149 (init_exec_ops): Update.
10150 * defs.h (exec_set_find_memory_regions): Remove.
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10154 * target-delegates.c: Rebuild.
10155 * target.h (struct target_ops) <to_extra_thread_info,
10156 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10157 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10158 not 0, in TARGET_DEFAULT_RETURN.
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10162 * target.c (complete_target_initialization): Remove casts. Use
10163 return_zero_has_execution.
10164 (return_zero): Add "ignore" argument.
10165 (return_zero_has_execution): New function.
10166 (init_dummy_target): Remove casts. Use
10167 return_zero_has_execution.
10169 2014-02-19 Tom Tromey <tromey@redhat.com>
10171 * target.c (update_current_target): Update comments. Do not
10172 INHERIT to_stratum.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10178 * corelow.c (core_read_description): Delegate when needed.
10179 * remote.c (remote_read_description): Delegate when needed.
10180 * target-delegates.c: Rebuild.
10181 * target.c (target_read_description): Rewrite.
10182 * target.h (struct target_ops) <to_read_description>: Update
10183 comment. Use TARGET_DEFAULT_RETURN.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target-delegates.c: Rebuild.
10188 * target.c (update_current_target): Don't inherit or default
10190 (find_default_run_target): Check against delegate_can_run.
10191 * target.h (struct target_ops) <to_can_run>: Use
10192 TARGET_DEFAULT_RETURN.
10194 2014-02-19 Tom Tromey <tromey@redhat.com>
10196 * target-delegates.c: Rebuild.
10197 * target.c (target_disconnect): Unconditionally delegate.
10198 * target.h (struct target_ops) <to_disconnect>: Use
10199 TARGET_DEFAULT_NORETURN.
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * record.c (record_stop): Unconditionally delegate.
10204 * target-delegates.c: Rebuild.
10205 * target.c (target_stop_recording): Unconditionally delegate.
10206 * target.h (struct target_ops) <to_stop_recording>: Use
10207 TARGET_DEFAULT_IGNORE.
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10211 * target-delegates.c: Rebuild.
10212 * target.c (target_enable_btrace): Unconditionally delegate.
10213 * target.h (struct target_ops) <to_enable_btrace>: Use
10214 TARGET_DEFAULT_NORETURN.
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10218 * target-delegates.c: Rebuild.
10219 * target.c (target_read_btrace): Unconditionally delegate.
10220 * target.h (struct target_ops) <to_read_btrace>: Use
10221 TARGET_DEFAULT_NORETURN.
10223 2014-02-19 Tom Tromey <tromey@redhat.com>
10225 * target-delegates.c: Rebuild.
10226 * target.c (target_teardown_btrace): Unconditionally delegate.
10227 * target.h (struct target_ops) <to_teardown_btrace>: Use
10228 TARGET_DEFAULT_NORETURN.
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10232 * target-delegates.c: Rebuild.
10233 * target.c (target_disable_btrace): Unconditionally delegate.
10234 * target.h (struct target_ops) <to_disable_btrace>: Use
10235 TARGET_DEFAULT_NORETURN.
10237 2014-02-19 Tom Tromey <tromey@redhat.com>
10239 * target-delegates.c: Rebuild.
10240 * target.c (default_search_memory): New function.
10241 (simple_search_memory): Update comment.
10242 (target_search_memory): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_search_memory>: Use
10244 TARGET_DEFAULT_FUNC.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * auxv.c (default_auxv_parse): No longer static.
10249 (target_auxv_parse): Unconditionally delegate.
10250 * auxv.h (default_auxv_parse): Declare.
10251 * target-delegates.c: Rebuild.
10252 * target.c: Include auxv.h.
10253 * target.h (struct target_ops) <to_auxv_parse>: Use
10254 TARGET_DEFAULT_FUNC.
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10258 * target-delegates.c: Rebuild.
10259 * target.c (target_memory_map): Unconditionally delegate.
10260 * target.h (struct target_ops) <to_memory_map>: Use
10261 TARGET_DEFAULT_RETURN.
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10265 * target-delegates.c: Rebuild.
10266 * target.c (target_thread_alive): Unconditionally delegate.
10267 * target.h (struct target_ops) <to_thread_alive>: Use
10268 TARGET_DEFAULT_RETURN.
10270 2014-02-19 Tom Tromey <tromey@redhat.com>
10272 * target-delegates.c: Rebuild.
10273 * target.c (target_save_record): Unconditionally delegate.
10274 * target.h (struct target_ops) <to_save_record>: Use
10275 TARGET_DEFAULT_NORETURN.
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10279 * target-delegates.c: Rebuild.
10280 * target.c (target_delete_record): Unconditionally delegate.
10281 * target.h (struct target_ops) <to_delete_record>: Use
10282 TARGET_DEFAULT_NORETURN.
10284 2014-02-19 Tom Tromey <tromey@redhat.com>
10286 * target-delegates.c: Rebuild.
10287 * target.c (target_record_is_replaying): Unconditionally
10289 * target.h (struct target_ops) <to_record_is_replaying>: Use
10290 TARGET_DEFAULT_RETURN.
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target-delegates.c: Rebuild.
10295 * target.c (target_goto_record_begin): Unconditionally delegate.
10296 * target.h (struct target_ops) <to_goto_record_begin>: Use
10297 TARGET_DEFAULT_NORETURN.
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10301 * target-delegates.c: Rebuild.
10302 * target.c (target_goto_record_end): Unconditionally delegate.
10303 * target.h (struct target_ops) <to_goto_record_end>: Use
10304 TARGET_DEFAULT_NORETURN.
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10308 * target-delegates.c: Rebuild.
10309 * target.c (target_goto_record): Unconditionally delegate.
10310 * target.h (struct target_ops) <to_goto_record>: Use
10311 TARGET_DEFAULT_NORETURN.
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10315 * target-delegates.c: Rebuild.
10316 * target.c (target_insn_history): Unconditionally delegate.
10317 * target.h (struct target_ops) <to_insn_history>: Use
10318 TARGET_DEFAULT_NORETURN.
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10322 * target-delegates.c: Rebuild.
10323 * target.c (target_insn_history_from): Unconditionally delegate.
10324 * target.h (struct target_ops) <to_insn_history_from>: Use
10325 TARGET_DEFAULT_NORETURN.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target-delegates.c: Rebuild.
10330 * target.c (target_insn_history_range): Unconditionally delegate.
10331 * target.h (struct target_ops) <to_insn_history_range>: Use
10332 TARGET_DEFAULT_NORETURN.
10334 2014-02-19 Tom Tromey <tromey@redhat.com>
10336 * target-delegates.c: Rebuild.
10337 * target.c (target_call_history): Unconditionally delegate.
10338 * target.h (struct target_ops) <to_call_history>: Use
10339 TARGET_DEFAULT_NORETURN.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (target_call_history_from): Unconditionally delegate.
10345 * target.h (struct target_ops) <to_call_history_from>: Use
10346 TARGET_DEFAULT_NORETURN.
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * target-delegates.c: Rebuild.
10351 * target.c (target_call_history_range): Unconditionally delegate.
10352 * target.h (struct target_ops) <to_call_history_range>: Use
10353 TARGET_DEFAULT_NORETURN.
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10357 * target-delegates.c: Rebuild.
10358 * target.c (target_verify_memory): Unconditionally delegate.
10359 * target.h (struct target_ops) <to_verify_memory>: Use
10360 TARGET_DEFAULT_NORETURN.
10362 2014-02-19 Tom Tromey <tromey@redhat.com>
10364 * target-delegates.c: Rebuild.
10365 * target.c (target_core_of_thread): Unconditionally delegate.
10366 * target.h (struct target_ops) <to_core_of_thread>: Use
10367 TARGET_DEFAULT_RETURN.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target-delegates.c: Rebuild.
10372 * target.c (target_flash_done): Unconditionally delegate.
10373 * target.h (struct target_ops) <to_flash_done>: Use
10374 TARGET_DEFAULT_NORETURN.
10376 2014-02-19 Tom Tromey <tromey@redhat.com>
10378 * target-delegates.c: Rebuild.
10379 * target.c (target_flash_erase): Unconditionally delegate.
10380 * target.h (struct target_ops) <to_flash_erase>: Use
10381 TARGET_DEFAULT_NORETURN.
10383 2014-02-19 Tom Tromey <tromey@redhat.com>
10385 * target-delegates.c: Rebuild.
10386 * target.c (target_get_section_table): Unconditionally delegate.
10387 * target.h (struct target_ops) <to_get_section_table>: Use
10388 TARGET_DEFAULT_RETURN.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * target-delegates.c: Rebuild.
10393 * target.c (target_pid_to_str): Unconditionally delegate.
10394 (init_dummy_target): Don't initialize to_pid_to_str.
10395 (default_pid_to_str): Rename from dummy_pid_to_str.
10396 * target.h (struct target_ops) <to_pid_to_str>: Use
10397 TARGET_DEFAULT_FUNC.
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10401 * target-delegates.c: Rebuild.
10402 * target.c (target_find_new_threads): Unconditionally delegate.
10403 * target.h (struct target_ops) <to_find_new_threads>: Use
10404 TARGET_DEFAULT_RETURN.
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10408 * target-delegates.c: Rebuild.
10409 * target.c (target_program_signals): Unconditionally delegate.
10410 * target.h (struct target_ops) <to_program_signals>: Use
10411 TARGET_DEFAULT_IGNORE.
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10415 * target-delegates.c: Rebuild.
10416 * target.c (target_pass_signals): Unconditionally delegate.
10417 * target.h (struct target_ops) <to_pass_signals>: Use
10418 TARGET_DEFAULT_IGNORE.
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10422 * target-delegates.c: Rebuild.
10423 * target.c (default_mourn_inferior): New function.
10424 (target_mourn_inferior): Unconditionally delegate.
10425 * target.h (struct target_ops) <to_mourn_inferior>: Use
10426 TARGET_DEFAULT_FUNC.
10428 2014-02-19 Tom Tromey <tromey@redhat.com>
10430 * target-delegates.c: Rebuild.
10431 * target.c (default_follow_fork): New function.
10432 (target_follow_fork): Unconditionally delegate.
10433 * target.h (struct target_ops) <to_follow_fork>: Use
10434 TARGET_DEFAULT_FUNC.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target-delegates.c: Rebuild.
10439 * target.c (target_kill): Unconditionally delegate.
10440 * target.h (struct target_ops) <to_kill>: Use
10441 TARGET_DEFAULT_NORETURN.
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target-delegates.c: Rebuild.
10446 * target.c (target_masked_watch_num_registers): Unconditionally
10448 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10449 Use TARGET_DEFAULT_RETURN.
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target-delegates.c: Rebuild.
10454 * target.c (target_remove_mask_watchpoint): Unconditionally
10456 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10457 TARGET_DEFAULT_RETURN.
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10461 * target-delegates.c: Rebuild.
10462 * target.c (target_insert_mask_watchpoint): Unconditionally
10464 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10465 TARGET_DEFAULT_RETURN.
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * target-delegates.c: Rebuild.
10470 * target.c (target_ranged_break_num_registers): Unconditionally
10472 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10473 Use TARGET_DEFAULT_RETURN.
10475 2014-02-19 Tom Tromey <tromey@redhat.com>
10477 * target-delegates.c: Rebuild.
10478 * target.c (target_fetch_registers): Unconditionally delegate.
10479 * target.h (struct target_ops) <to_fetch_registers>: Use
10480 TARGET_DEFAULT_NORETURN.
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10484 * target-delegates.c: Rebuild.
10485 * target.c (update_current_target): Don't inherit or default
10487 * target.h (struct target_ops) <to_stop>: Use
10488 TARGET_DEFAULT_IGNORE.
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10492 * target-delegates.c: Rebuild.
10493 * target.c (update_current_target): Don't inherit or default
10494 to_can_run_breakpoint_commands.
10495 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10496 Use TARGET_DEFAULT_RETURN.
10498 2014-02-19 Tom Tromey <tromey@redhat.com>
10500 * target-delegates.c: Rebuild.
10501 * target.c (update_current_target): Don't inherit or default
10502 to_supports_evaluation_of_breakpoint_conditions.
10503 * target.h (struct target_ops)
10504 <to_supports_evaluation_of_breakpoint_conditions>: Use
10505 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_augmented_libraries_svr4_read.
10512 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10513 Use TARGET_DEFAULT_RETURN.
10515 2014-02-19 Tom Tromey <tromey@redhat.com>
10517 * target-delegates.c: Rebuild.
10518 * target.c (update_current_target): Don't inherit or default
10520 * target.h (struct target_ops) <to_can_use_agent>: Use
10521 TARGET_DEFAULT_RETURN.
10523 2014-02-19 Tom Tromey <tromey@redhat.com>
10525 * target-delegates.c: Rebuild.
10526 * target.c (update_current_target): Don't inherit or default
10528 * target.h (struct target_ops) <to_use_agent>: Use
10529 TARGET_DEFAULT_NORETURN.
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10533 * target-delegates.c: Rebuild.
10534 * target.c (update_current_target): Don't inherit or default
10535 to_traceframe_info.
10536 (return_null): Remove.
10537 * target.h (struct target_ops) <to_traceframe_info>: Use
10538 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
10545 * target.h (struct target_ops)
10546 <to_static_tracepoint_markers_by_strid>: Use
10547 TARGET_DEFAULT_NORETURN.
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_marker_at.
10554 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10555 Use TARGET_DEFAULT_RETURN.
10557 2014-02-19 Tom Tromey <tromey@redhat.com>
10559 * target-delegates.c: Rebuild.
10560 * target.c (update_current_target): Don't inherit or default
10561 to_set_permissions.
10562 * target.h (struct target_ops) <to_set_permissions>: Use
10563 TARGET_DEFAULT_IGNORE.
10565 2014-02-19 Tom Tromey <tromey@redhat.com>
10567 * target-delegates.c: Rebuild.
10568 * target.c (update_current_target): Don't inherit or default
10569 to_get_tib_address.
10570 * target.h (struct target_ops) <to_get_tib_address>: Use
10571 TARGET_DEFAULT_NORETURN.
10573 2014-02-19 Tom Tromey <tromey@redhat.com>
10575 * target-delegates.c: Rebuild.
10576 * target.c (update_current_target): Don't inherit or default
10577 to_set_trace_notes.
10578 * target.h (struct target_ops) <to_set_trace_notes>: Use
10579 TARGET_DEFAULT_RETURN.
10581 2014-02-19 Tom Tromey <tromey@redhat.com>
10583 * target-delegates.c: Rebuild.
10584 * target.c (update_current_target): Don't initialize
10585 to_set_trace_buffer_size.
10586 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10587 TARGET_DEFAULT_IGNORE.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target-delegates.c: Rebuild.
10592 * target.c (update_current_target): Don't inherit or default
10593 to_set_circular_trace_buffer.
10594 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10595 TARGET_DEFAULT_IGNORE.
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10599 * target-delegates.c: Rebuild.
10600 * target.c (update_current_target): Don't inherit or default
10601 to_set_disconnected_tracing.
10602 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10603 TARGET_DEFAULT_IGNORE.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * target-delegates.c: Rebuild.
10608 * target.c (update_current_target): Don't inherit or default
10609 to_get_min_fast_tracepoint_insn_len.
10610 (return_minus_one): Remove.
10611 * target.h (struct target_ops)
10612 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_raw_trace_data.
10619 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10620 TARGET_DEFAULT_NORETURN.
10622 2014-02-19 Tom Tromey <tromey@redhat.com>
10624 * target-delegates.c: Rebuild.
10625 * target.c (update_current_target): Don't inherit or default
10626 to_upload_trace_state_variables.
10627 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10628 Use TARGET_DEFAULT_RETURN.
10630 2014-02-19 Tom Tromey <tromey@redhat.com>
10632 * target-delegates.c: Rebuild.
10633 * target.c (update_current_target): Don't inherit or default
10634 to_upload_tracepoints.
10635 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10636 TARGET_DEFAULT_RETURN.
10638 2014-02-19 Tom Tromey <tromey@redhat.com>
10640 * target-delegates.c: Rebuild.
10641 * target.c (update_current_target): Don't inherit or default
10642 to_save_trace_data.
10643 * target.h (struct target_ops) <to_save_trace_data>: Use
10644 TARGET_DEFAULT_NORETURN.
10646 2014-02-19 Tom Tromey <tromey@redhat.com>
10648 * target-delegates.c: Rebuild.
10649 * target.c (update_current_target): Don't inherit or default
10650 to_get_trace_state_variable_value.
10651 * target.h (struct target_ops)
10652 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10654 2014-02-19 Tom Tromey <tromey@redhat.com>
10656 * target-delegates.c: Rebuild.
10657 * target.c (update_current_target): Don't inherit or default
10659 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * target-delegates.c: Rebuild.
10664 * target.c (update_current_target): Don't inherit or default
10666 * target.h (struct target_ops) <to_trace_stop>: Use
10667 TARGET_DEFAULT_NORETURN.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10673 to_get_tracepoint_status.
10674 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10675 TARGET_DEFAULT_NORETURN.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target-delegates.c: Rebuild.
10680 * target.c (update_current_target): Don't inherit or default
10681 to_get_trace_status.
10682 * target.h (struct target_ops) <to_get_trace_status>: Use
10683 TARGET_DEFAULT_RETURN.
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10687 * target-delegates.c: Rebuild.
10688 * target.c (update_current_target): Don't inherit or default
10690 * target.h (struct target_ops) <to_trace_start>: Use
10691 TARGET_DEFAULT_NORETURN.
10693 2014-02-19 Tom Tromey <tromey@redhat.com>
10695 * target-delegates.c: Rebuild.
10696 * target.c (update_current_target): Don't inherit or default
10697 to_trace_set_readonly_regions.
10698 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10699 Use TARGET_DEFAULT_NORETURN.
10701 2014-02-19 Tom Tromey <tromey@redhat.com>
10703 * target-delegates.c: Rebuild.
10704 * target.c (update_current_target): Don't inherit or default
10705 to_disable_tracepoint.
10706 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10707 TARGET_DEFAULT_NORETURN.
10709 2014-02-19 Tom Tromey <tromey@redhat.com>
10711 * target-delegates.c: Rebuild.
10712 * target.c (update_current_target): Don't inherit or default
10713 to_enable_tracepoint.
10714 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10715 TARGET_DEFAULT_NORETURN.
10717 2014-02-19 Tom Tromey <tromey@redhat.com>
10719 * target-delegates.c: Rebuild.
10720 * target.c (update_current_target): Don't inherit or default
10721 to_download_trace_state_variable.
10722 * target.h (struct target_ops) <to_download_trace_state_variable>:
10723 Use TARGET_DEFAULT_NORETURN.
10725 2014-02-19 Tom Tromey <tromey@redhat.com>
10727 * target-delegates.c: Rebuild.
10728 * target.c (update_current_target): Don't inherit or default
10729 to_can_download_tracepoint.
10730 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10731 TARGET_DEFAULT_RETURN.
10733 2014-02-19 Tom Tromey <tromey@redhat.com>
10735 * target-delegates.c: Rebuild.
10736 * target.c (update_current_target): Don't inherit or default
10737 to_download_tracepoint.
10738 * target.h (struct target_ops) <to_download_tracepoint>: Use
10739 TARGET_DEFAULT_NORETURN.
10741 2014-02-19 Tom Tromey <tromey@redhat.com>
10743 * target-delegates.c: Rebuild.
10744 * target.c (update_current_target): Don't inherit or default
10746 * target.h (struct target_ops) <to_trace_init>: Use
10747 TARGET_DEFAULT_RETURN.
10749 2014-02-19 Tom Tromey <tromey@redhat.com>
10751 * target-delegates.c: Rebuild.
10752 * target.c (update_current_target): Don't inherit or default
10753 to_supports_string_tracing.
10754 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10755 TARGET_DEFAULT_RETURN.
10757 2014-02-19 Tom Tromey <tromey@redhat.com>
10759 * target-delegates.c: Rebuild.
10760 * target.c (update_current_target): Don't inherit or default
10761 to_supports_enable_disable_tracepoint.
10762 * target.h (struct target_ops)
10763 <to_supports_enable_disable_tracepoint>: 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_multi_process.
10771 * target.h (struct target_ops) <to_supports_multi_process>: Use
10772 TARGET_DEFAULT_RETURN.
10774 2014-02-19 Tom Tromey <tromey@redhat.com>
10776 * target-delegates.c: Rebuild.
10777 * target.c (update_current_target): Don't inherit or default
10778 to_get_ada_task_ptid.
10779 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10780 TARGET_DEFAULT_FUNC.
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10784 * target-delegates.c: Rebuild.
10785 * target.c (update_current_target): Don't inherit or default
10786 to_thread_architecture.
10787 * target.h (struct target_ops) <to_thread_architecture>: Use
10788 TARGET_DEFAULT_FUNC.
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10792 * target-delegates.c: Rebuild.
10793 * target.c (update_current_target): Don't inherit or default
10794 to_execution_direction.
10795 * target.h (struct target_ops) <to_execution_direction>: Use
10796 TARGET_DEFAULT_FUNC.
10798 2014-02-19 Tom Tromey <tromey@redhat.com>
10800 * target-delegates.c: Rebuild.
10801 * target.c (update_current_target): Don't inherit or default
10802 to_can_execute_reverse.
10803 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10804 TARGET_DEFAULT_RETURN.
10805 (target_can_execute_reverse): Unconditionally delegate.
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
10812 (dummy_goto_bookmark): Remove.
10813 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10814 * target.h (struct target_ops) <to_goto_bookmark>: Use
10815 TARGET_DEFAULT_NORETURN.
10817 2014-02-19 Tom Tromey <tromey@redhat.com>
10819 * target-delegates.c: Rebuild.
10820 * target.c (update_current_target): Don't inherit or default
10822 (dummy_get_bookmark): Remove.
10823 (init_dummy_target): Don't inherit or default to_get_bookmark.
10824 * target.h (struct target_ops) <to_get_bookmark>: Use
10825 TARGET_DEFAULT_NORETURN
10827 2014-02-19 Tom Tromey <tromey@redhat.com>
10829 * target-delegates.c: Rebuild.
10830 * target.c (update_current_target): Don't inherit or default
10831 to_make_corefile_notes.
10832 (init_dummy_target): Don't initialize to_make_corefile_notes.
10833 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10834 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
10841 (init_dummy_target): Don't initialize to_find_memory_regions.
10842 * target.h (struct target_ops) <to_find_memory_regions>: 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
10850 * target.h (struct target_ops) <to_log_command>: Use
10851 TARGET_DEFAULT_IGNORE.
10852 (target_log_command): Unconditionally delegate.
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
10858 to_pid_to_exec_file.
10859 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10860 TARGET_DEFAULT_RETURN.
10862 2014-02-19 Tom Tromey <tromey@redhat.com>
10864 * target-delegates.c: Rebuild.
10865 * target.c (update_current_target): Don't inherit or default
10867 (target_thread_name): Unconditionally delegate.
10868 * target.h (struct target_ops) <to_thread_name>: 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
10875 to_extra_thread_info.
10876 * target.h (struct target_ops) <to_extra_thread_info>: Use
10877 TARGET_DEFAULT_RETURN.
10879 2014-02-19 Tom Tromey <tromey@redhat.com>
10881 * target-delegates.c: Rebuild.
10882 * target.c (update_current_target): Don't inherit or default
10884 * target.h (struct target_ops) <to_has_exited>: Use
10885 TARGET_DEFAULT_RETURN..
10887 2014-02-19 Tom Tromey <tromey@redhat.com>
10889 * target-delegates.c: Rebuild.
10890 * target.c (update_current_target): Don't inherit or default
10891 to_set_syscall_catchpoint.
10892 (return_one): Remove.
10893 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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_insert_exec_catchpoint.
10901 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10902 TARGET_DEFAULT_RETURN.
10904 2014-01-08 Tom Tromey <tromey@redhat.com>
10906 * target-delegates.c: Rebuild.
10907 * target.c (update_current_target): Don't inherit or default
10908 to_insert_exec_catchpoint.
10909 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10910 TARGET_DEFAULT_RETURN.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target-delegates.c: Rebuild.
10915 * target.c (update_current_target): Don't inherit or default
10916 to_remove_vfork_catchpoint.
10917 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10918 TARGET_DEFAULT_RETURN.
10920 2014-02-19 Tom Tromey <tromey@redhat.com>
10922 * target-delegates.c: Rebuild.
10923 * target.c (update_current_target): Don't inherit or default
10924 to_insert_vfork_catchpoint.
10925 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10926 TARGET_DEFAULT_RETURN.
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target-delegates.c: Rebuild.
10931 * target.c (update_current_target): Don't inherit or default
10932 to_remove_fork_catchpoint.
10933 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10934 TARGET_DEFAULT_RETURN.
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10938 * target-delegates.c: Rebuild.
10939 * target.c (update_current_target): Don't inherit or default
10940 to_insert_fork_catchpoint.
10941 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10942 TARGET_DEFAULT_RETURN.
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10946 * target-delegates.c: Rebuild.
10947 * target.c (update_current_target): Don't inherit or default
10948 to_post_startup_inferior.
10949 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10950 TARGET_DEFAULT_IGNORE.
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10954 * target-delegates.c: Rebuild.
10955 * target.c (update_current_target): Don't inherit or default
10957 * target.h (struct target_ops) <to_load>: Use
10958 TARGET_DEFAULT_NORETURN.
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10962 * target-delegates.c: Rebuild.
10963 * target.c (update_current_target): Don't inherit or default
10965 * target.h (struct target_ops) <to_terminal_info>: Use
10966 TARGET_DEFAULT_FUNC.
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10970 * target-delegates.c: Rebuild.
10971 * target.c (update_current_target): Don't inherit or default
10972 to_terminal_save_ours.
10973 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10974 TARGET_DEFAULT_IGNORE.
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * target-delegates.c: Rebuild.
10979 * target.c (update_current_target): Don't inherit or default
10981 * target.h (struct target_ops) <to_terminal_ours>: Use
10982 TARGET_DEFAULT_IGNORE.
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10986 * target-delegates.c: Rebuild.
10987 * target.c (update_current_target): Don't inherit or default
10988 to_terminal_ours_for_output.
10989 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10990 TARGET_DEFAULT_IGNORE.
10992 2014-02-19 Tom Tromey <tromey@redhat.com>
10994 * target-delegates.c: Rebuild.
10995 * target.c (update_current_target): Don't inherit or default
10996 to_terminal_inferior.
10997 * target.h (struct target_ops) <to_terminal_inferior>: Use
10998 TARGET_DEFAULT_IGNORE.
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target-delegates.c: Rebuild.
11003 * target.c (update_current_target): Don't inherit or default
11005 * target.h (struct target_ops) <to_terminal_init>: Use
11006 TARGET_DEFAULT_IGNORE.
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11010 * target-delegates.c: Rebuild.
11011 * target.c (update_current_target): Don't inherit or default
11012 to_can_accel_watchpoint_condition.
11013 * target.h (struct target_ops)
11014 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target-delegates.c: Rebuild.
11019 * target.c (update_current_target): Don't inherit or default
11020 to_region_ok_for_hw_watchpoint.
11021 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11022 Use TARGET_DEFAULT_FUNC.
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * target-delegates.c: Rebuild.
11027 * target.c (update_current_target): Don't inherit or default
11028 to_watchpoint_addr_within_range.
11029 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11030 Use TARGET_DEFAULT_FUNC.
11032 2014-02-19 Tom Tromey <tromey@redhat.com>
11034 * target-delegates.c: Rebuild.
11035 * target.c (update_current_target): Don't inherit or default
11036 to_remove_watchpoint.
11037 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11038 TARGET_DEFAULT_NORETURN.
11040 2014-02-19 Tom Tromey <tromey@redhat.com>
11042 * target-delegates.c: Rebuild.
11043 * target.c (update_current_target): Don't inherit or default
11044 to_insert_watchpoint.
11045 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11046 TARGET_DEFAULT_RETURN.
11048 2014-02-19 Tom Tromey <tromey@redhat.com>
11050 * target-delegates.c: Rebuild.
11051 * target.c (update_current_target): Don't inherit or default
11052 to_remove_hw_breakpoint.
11053 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11054 TARGET_DEFAULT_RETURN.
11056 2014-02-19 Tom Tromey <tromey@redhat.com>
11058 * target-delegates.c: Rebuild.
11059 * target.c (update_current_target): Don't inherit or default
11060 to_insert_hw_breakpoint.
11061 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11062 TARGET_DEFAULT_RETURN.
11064 2014-02-19 Tom Tromey <tromey@redhat.com>
11066 * target-delegates.c: Rebuild.
11067 * target.c (update_current_target): Don't inherit or default
11068 to_can_use_hw_breakpoint.
11069 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11070 TARGET_DEFAULT_RETURN.
11072 2014-02-19 Tom Tromey <tromey@redhat.com>
11074 * target-delegates.c: Rebuild.
11075 * target.c (update_current_target): Don't inherit or default
11077 * target.h (struct target_ops) <to_files_info>: Use
11078 TARGET_DEFAULT_IGNORE.
11080 2014-02-19 Tom Tromey <tromey@redhat.com>
11082 * target-delegates.c: Rebuild.
11083 * target.c (update_current_target): Don't inherit or default
11085 * target.h (struct target_ops) <to_store>: Use
11086 TARGET_DEFAULT_NORETURN.
11088 2014-02-19 Tom Tromey <tromey@redhat.com>
11090 * target-delegates.c: Rebuild.
11091 * target.c (update_current_target): Don't inherit or default
11093 * target.h (struct target_ops) <to_post_attach>: Use
11094 TARGET_DEFAULT_IGNORE.
11096 2014-02-19 Tom Tromey <tromey@redhat.com>
11098 * target-delegates.c: Rebuild.
11099 * target.c (update_current_target): Don't inherit or default
11101 (default_rcmd): New function.
11102 (do_monitor_command): Unconditionally delegate.
11103 * target.h (struct target_ops) <to_rmcd>: Use
11104 TARGET_DEFAULT_FUNC.
11106 2014-02-19 Tom Tromey <tromey@redhat.com>
11108 * target-delegates.c: Rebuild.
11109 * target.c (init_dummy_target): Don't initialize to_attach.
11110 (target_attach): Unconditionally delegate.
11111 * target.h (struct target_ops) <to_attach>: Use
11112 TARGET_DEFAULT_FUNC.
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target-delegates.c: Rebuild.
11117 * target.c (target_detach): Unconditionally delegate.
11118 (init_dummy_target): Don't initialize to_detach.
11119 * target.h (struct target_ops) <to_detach>: Use
11120 TARGET_DEFAULT_IGNORE.
11122 2014-02-19 Tom Tromey <tromey@redhat.com>
11124 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11126 (target_augmented_libraries_svr4_read): Add argument.
11127 * target.c (update_current_target): Update.
11128 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11131 2014-02-19 Tom Tromey <tromey@redhat.com>
11133 * target.h (struct target_ops) <to_call_history_range>: Add
11135 * target.c (target_call_history_range): Add argument.
11136 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11138 (record_btrace_call_history_from): Update.
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target.h (struct target_ops) <to_call_history_from>: Add
11144 * target.c (target_call_history_from): Add argument.
11145 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11148 2014-02-19 Tom Tromey <tromey@redhat.com>
11150 * target.h (struct target_ops) <to_call_history>: Add argument.
11151 * target.c (target_call_history): Add argument.
11152 * record-btrace.c (record_btrace_call_history): Add 'self'
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11157 * target.h (struct target_ops) <to_insn_history_range>: Add
11159 * target.c (target_insn_history_range): Add argument.
11160 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11162 (record_btrace_insn_history_from): Update.
11164 2014-02-19 Tom Tromey <tromey@redhat.com>
11166 * target.h (struct target_ops) <to_insn_history_from>: Add
11168 * target.c (target_insn_history_from): Add argument.
11169 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11174 * target.h (struct target_ops) <to_insn_history>: Add argument.
11175 * target.c (target_insn_history): Add argument.
11176 * record-btrace.c (record_btrace_insn_history): Add 'self'
11179 2014-02-19 Tom Tromey <tromey@redhat.com>
11181 * target.h (struct target_ops) <to_goto_record>: Add argument.
11182 * target.c (target_goto_record): Add argument.
11183 * record-full.c (record_full_goto): Add 'self' argument.
11184 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11186 2014-02-19 Tom Tromey <tromey@redhat.com>
11188 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11189 * target.c (target_goto_record_end): Add argument.
11190 * record-full.c (record_full_goto_end): Add 'self' argument.
11191 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11193 2014-02-19 Tom Tromey <tromey@redhat.com>
11195 * target.h (struct target_ops) <to_goto_record_begin>: Add
11197 * target.c (target_goto_record_begin): Add argument.
11198 * record-full.c (record_full_goto_begin): Add 'self' argument.
11199 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11202 2014-02-19 Tom Tromey <tromey@redhat.com>
11204 * target.h (struct target_ops) <to_record_is_replaying>: Add
11206 * target.c (target_record_is_replaying): Add argument.
11207 * record-full.c (record_full_is_replaying): Add 'self' argument.
11208 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11210 (record_btrace_xfer_partial, record_btrace_store_registers)
11211 (record_btrace_prepare_to_store, record_btrace_resume)
11212 (record_btrace_wait, record_btrace_decr_pc_after_break)
11213 (record_btrace_find_new_threads, record_btrace_thread_alive):
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11218 * target.h (struct target_ops) <to_delete_record>: Add argument.
11219 * target.c (target_delete_record): Add argument.
11220 * record-full.c (record_full_delete): Add 'self' argument.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target.h (struct target_ops) <to_save_record>: Add argument.
11225 * target.c (target_save_record): Add argument.
11226 * record-full.c (record_full_save): Add 'self' argument.
11227 (record_full_save): Add 'self' argument.
11229 2014-02-19 Tom Tromey <tromey@redhat.com>
11231 * target.h (struct target_ops) <to_info_record>: Add argument.
11232 * target.c (target_info_record): Add argument.
11233 * record.c (info_record_command): Add argument.
11234 * record-full.c (record_full_info): Add 'self' argument.
11235 * record-btrace.c (record_btrace_info): Add 'self' argument.
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11239 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11240 * target.c (target_stop_recording): Add argument.
11241 * record.c (record_stop): Add argument.
11242 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11247 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11248 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11249 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11251 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11252 (_initialize_amd64_linux_nat): Use it.
11253 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11254 (_initialize_i386_linux_nat): Use it.
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11258 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11259 * target.c (target_teardown_btrace): Add argument.
11260 * remote.c (remote_teardown_btrace): Add 'self' argument.
11261 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11263 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11266 2014-02-19 Tom Tromey <tromey@redhat.com>
11268 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11269 * target.c (target_disable_btrace): Add argument.
11270 * remote.c (remote_disable_btrace): Add 'self' argument.
11271 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11273 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11278 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11279 * target.c (target_enable_btrace): Add argument.
11280 * remote.c (remote_enable_btrace): Add 'self' argument.
11281 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11283 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11289 (target_can_use_agent): Add argument.
11290 * target.c (update_current_target): Update.
11291 * remote.c (remote_can_use_agent): Add 'self' argument.
11292 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11296 * target.h (struct target_ops) <to_use_agent>: Add argument.
11297 (target_use_agent): Add argument.
11298 * target.c (update_current_target): Update.
11299 * remote.c (remote_use_agent): Add 'self' argument.
11300 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11304 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11305 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11306 (target_traceframe_info): Add argument.
11307 * target.c (update_current_target): Update.
11308 * remote.c (remote_traceframe_info): Add 'self' argument.
11309 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11313 * target.h (target_static_tracepoint_markers_by_strid): Add
11315 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11317 * target.c (update_current_target): Update.
11318 * remote.c (struct target_ops)
11319 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11320 * linux-nat.c (struct target_ops)
11321 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11323 2014-02-19 Tom Tromey <tromey@redhat.com>
11325 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11327 (target_static_tracepoint_marker_at): Add argument.
11328 * target.c (update_current_target): Update.
11329 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11334 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11335 (target_set_permissions): Add argument.
11336 * target.c (update_current_target): Update.
11337 * remote.c (remote_set_permissions): Add 'self' argument.
11338 (remote_start_remote): Update.
11340 2014-02-19 Tom Tromey <tromey@redhat.com>
11342 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11343 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11344 (target_get_tib_address): Add argument.
11345 * target.c (update_current_target): Update.
11346 * remote.c (remote_get_tib_address): Add 'self' argument.
11348 2014-02-19 Tom Tromey <tromey@redhat.com>
11350 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11351 (target_set_trace_notes): Add argument.
11352 * target.c (update_current_target): Update.
11353 * remote.c (remote_set_trace_notes): Add 'self' argument.
11355 2014-02-19 Tom Tromey <tromey@redhat.com>
11357 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11359 (target_set_trace_buffer_size): Add argument.
11360 * target.c (update_current_target): Update.
11361 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11367 (target_set_circular_trace_buffer): Add argument.
11368 * target.c (update_current_target): Update.
11369 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11376 (target_set_disconnected_tracing): Add argument.
11377 * target.c (update_current_target): Update.
11378 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11380 2014-02-19 Tom Tromey <tromey@redhat.com>
11382 * target.h (struct target_ops)
11383 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11384 (target_get_min_fast_tracepoint_insn_len): Add argument.
11385 * target.c (update_current_target): Update.
11386 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11391 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11393 (target_get_raw_trace_data): Add argument.
11394 * target.c (update_current_target): Update.
11395 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11397 2014-02-19 Tom Tromey <tromey@redhat.com>
11399 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11401 (target_upload_trace_state_variables): Add argument.
11402 * target.c (update_current_target): Update.
11403 * remote.c (remote_upload_trace_state_variables): Add 'self'
11405 (remote_start_remote): Update.
11407 2014-02-19 Tom Tromey <tromey@redhat.com>
11409 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11411 (target_upload_tracepoints): Add argument.
11412 * target.c (update_current_target): Update.
11413 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11414 (remote_start_remote): Update.
11416 2014-02-19 Tom Tromey <tromey@redhat.com>
11418 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11419 (target_save_trace_data): Add argument.
11420 * target.c (update_current_target): Update.
11421 * remote.c (remote_save_trace_data): Add 'self' argument.
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11425 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11427 * target.h (struct target_ops)
11428 <to_get_trace_state_variable_value>: Add argument.
11429 (target_get_trace_state_variable_value): Add argument.
11430 * target.c (update_current_target): Update.
11431 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11433 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11435 2014-02-19 Tom Tromey <tromey@redhat.com>
11437 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11438 * target.h (struct target_ops) <to_trace_find>: Add argument.
11439 (target_trace_find): Add argument.
11440 * target.c (update_current_target): Update.
11441 * remote.c (remote_trace_find): Add 'self' argument.
11442 * ctf.c (ctf_trace_find): Add 'self' argument.
11444 2014-02-19 Tom Tromey <tromey@redhat.com>
11446 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11447 (target_trace_stop): Add argument.
11448 * target.c (update_current_target): Update.
11449 * remote.c (remote_trace_stop): Add 'self' argument.
11451 2014-02-19 Tom Tromey <tromey@redhat.com>
11453 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11454 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11456 (target_get_tracepoint_status): Add argument.
11457 * target.c (update_current_target): Update.
11458 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11460 2014-02-19 Tom Tromey <tromey@redhat.com>
11462 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11463 * target.h (struct target_ops) <to_get_trace_status>: Add
11465 (target_get_trace_status): Add argument.
11466 * target.c (update_current_target): Update.
11467 * remote.c (remote_get_trace_status): Add 'self' argument.
11468 (remote_start_remote, remote_can_download_tracepoint): Update.
11469 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11473 * target.h (struct target_ops) <to_trace_start>: Add argument.
11474 (target_trace_start): Add argument.
11475 * target.c (update_current_target): Update.
11476 * remote.c (remote_trace_start): Add 'self' argument.
11478 2014-02-19 Tom Tromey <tromey@redhat.com>
11480 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11482 (target_trace_set_readonly_regions): Add argument.
11483 * target.c (update_current_target): Update.
11484 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11489 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11491 (target_disable_tracepoint): Add argument.
11492 * target.c (update_current_target): Update.
11493 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11495 2014-02-19 Tom Tromey <tromey@redhat.com>
11497 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11499 (target_enable_tracepoint): Add argument.
11500 * target.c (update_current_target): Update.
11501 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11505 * target.h (struct target_ops) <to_download_trace_state_variable>:
11507 (target_download_trace_state_variable): Add argument.
11508 * target.c (update_current_target): Update.
11509 * remote.c (remote_download_trace_state_variable): Add 'self'
11512 2014-02-19 Tom Tromey <tromey@redhat.com>
11514 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11516 (target_can_download_tracepoint): Add argument.
11517 * target.c (update_current_target): Update.
11518 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11522 * target.h (struct target_ops) <to_download_tracepoint>: Add
11524 (target_download_tracepoint): Add argument.
11525 * target.c (update_current_target): Update.
11526 * remote.c (remote_download_tracepoint): Add 'self' argument.
11528 2014-02-19 Tom Tromey <tromey@redhat.com>
11530 * target.h (struct target_ops) <to_trace_init>: Add argument.
11531 (target_trace_init): Add argument.
11532 * target.c (update_current_target): Update.
11533 * remote.c (remote_trace_init): Add 'self' argument.
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11537 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11538 * target.c (target_fileio_readlink): Add argument.
11539 * remote.c (remote_hostio_readlink): Add 'self' argument.
11540 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11542 2014-02-19 Tom Tromey <tromey@redhat.com>
11544 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11545 * target.c (target_fileio_unlink): Add argument.
11546 * remote.c (remote_hostio_unlink): Add 'self' argument.
11547 (remote_file_delete): Update.
11548 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11552 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11553 * target.c (target_fileio_close): Add argument.
11554 * remote.c (remote_hostio_close): Add 'self' argument.
11555 (remote_hostio_close_cleanup): Update.
11556 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11558 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11560 2014-02-19 Tom Tromey <tromey@redhat.com>
11562 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11563 * target.c (target_fileio_pread): Add argument.
11564 * remote.c (remote_hostio_pread): Add 'self' argument.
11565 (remote_bfd_iovec_pread, remote_file_get): Update.
11566 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11568 2014-02-19 Tom Tromey <tromey@redhat.com>
11570 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11571 * target.c (target_fileio_pwrite): Add argument.
11572 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11573 (remote_file_put): Update.
11574 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11576 2014-02-19 Tom Tromey <tromey@redhat.com>
11578 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11579 * target.c (target_fileio_open): Add argument.
11580 * remote.c (remote_hostio_open): Add 'self' argument.
11581 (remote_bfd_iovec_open): Add 'self' argument.
11582 (remote_file_put): Add 'self' argument.
11583 (remote_file_get): Add 'self' argument.
11584 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11588 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11590 (target_can_run_breakpoint_commands): Add argument.
11591 * target.c (update_current_target): Update.
11592 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11594 (remote_insert_breakpoint): Add 'self' argument.
11595 (remote_insert_hw_breakpoint): Add 'self' argument.
11596 (remote_can_run_breakpoint_commands): Add 'self' argument.
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11600 * target.h (struct target_ops)
11601 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11602 (target_supports_evaluation_of_breakpoint_conditions): Add
11604 * target.c (update_current_target): Update.
11605 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11607 (remote_insert_breakpoint): Add 'self' argument.
11608 (remote_insert_hw_breakpoint): Add 'self' argument.
11609 (remote_supports_cond_breakpoints): Add 'self' argument.
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11613 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11615 (target_supports_string_tracing): Add argument.
11616 * target.c (update_current_target): Update.
11617 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target.h (struct target_ops)
11622 <to_supports_disable_randomization>: Add argument.
11623 * target.c (find_default_supports_disable_randomization): Add
11625 (target_supports_disable_randomization): Add argument.
11626 (find_default_supports_disable_randomization): Add 'self'
11628 * remote.c (extended_remote_supports_disable_randomization): Add
11630 (remote_supports_disable_randomization): Add 'self' argument.
11631 (extended_remote_create_inferior): Update.
11632 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target.h (struct target_ops)
11638 <to_supports_enable_disable_tracepoint>: Add argument.
11639 (target_supports_enable_disable_tracepoint): Add argument.
11640 * target.c (update_current_target): Update.
11641 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target.h (struct target_ops) <to_supports_multi_process>: Add
11648 (target_supports_multi_process): Add argument.
11649 * target.c (update_current_target): Update.
11650 * remote.c (remote_supports_multi_process): Add 'self' argument.
11651 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11653 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11658 * target.h (struct target_ops) <to_execution_direction>: Add
11660 (target_execution_direction): Add argument.
11661 * target.c (default_execution_direction): Add 'self' argument.
11662 * record-full.c (record_full_execution_direction): Add 'self'
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11667 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11669 (target_can_execute_reverse): Add argument.
11670 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11671 * record-full.c (record_full_can_execute_reverse): Add 'self'
11673 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11676 2014-02-19 Tom Tromey <tromey@redhat.com>
11678 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11679 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11681 (target_get_ada_task_ptid): Add argument.
11682 * target.c (update_current_target): Update.
11683 (default_get_ada_task_ptid): Add 'self' argument.
11684 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11685 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11686 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11688 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11690 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11692 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11694 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11695 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11700 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11701 (target_goto_bookmark): Add argument.
11702 * target.c (dummy_goto_bookmark): Add 'self' argument.
11703 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11708 (target_get_bookmark): Add argument.
11709 * target.c (dummy_get_bookmark): Add 'self' argument.
11710 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11712 2014-02-19 Tom Tromey <tromey@redhat.com>
11714 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11716 (target_make_corefile_notes): Add argument.
11717 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11718 * procfs.c (procfs_make_note_section): Add 'self' argument.
11719 (procfs_make_note_section): Add 'self' argument.
11720 (procfs_make_note_section): Add 'self' argument.
11721 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11723 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11724 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11725 * exec.c (exec_make_note_section): Add 'self' argument.
11726 (exec_make_note_section): Add 'self' argument.
11728 2014-02-19 Tom Tromey <tromey@redhat.com>
11730 * target.h (struct target_ops) <to_find_memory_regions>: Add
11732 (target_find_memory_regions): Add argument.
11733 * target.c (dummy_find_memory_regions): Add 'self' argument.
11734 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11735 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11736 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11737 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11738 * exec. (exec_do_find_memory_regions): New global.
11739 (exec_set_find_memory_regions): Rewrite.
11740 (exec_find_memory_regions): New function.
11741 (init_exec_ops): Use exec_find_memory_regions.
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11745 * target.h (struct target_ops) <to_supports_non_stop>: Add
11747 * target.c (find_default_supports_non_stop): Add argument.
11748 (target_supports_non_stop): Add argument.
11749 (find_default_supports_non_stop): Add 'self' argument.
11750 * remote.c (remote_supports_non_stop): Add 'self' argument.
11751 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11753 2014-02-19 Tom Tromey <tromey@redhat.com>
11755 * target.h (struct target_ops) <to_log_command>: Add argument.
11756 (target_log_command): Add argument.
11757 * serial.h (serial_log_command): Add 'self' argument.
11758 * serial.c (serial_log_command): Add 'self' argument.
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11762 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11763 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11765 (target_pid_to_exec_file): Add argument.
11766 * target.c (debug_to_pid_to_exec_file): Add argument.
11767 (update_current_target): Update.
11768 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11769 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11770 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11771 (linux_handle_extended_wait): Update.
11772 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11773 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11774 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11775 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11777 2014-02-19 Tom Tromey <tromey@redhat.com>
11779 * target.h (struct target_ops) <to_rcmd>: Add argument.
11780 (target_rcmd): Add argument.
11781 * target.c (debug_to_rcmd): Add argument.
11782 (update_current_target, do_monitor_command): Update.
11783 * remote.c (remote_rcmd): Add 'self' argument.
11784 * monitor.c (monitor_rcmd): Add 'self' argument.
11786 2014-02-19 Tom Tromey <tromey@redhat.com>
11788 * windows-nat.c (windows_stop): Add 'self' argument.
11789 * target.h (struct target_ops) <to_stop>: Add argument.
11790 * target.c (target_stop): Add argument.
11791 (debug_to_stop): Add argument.
11792 (update_current_target): Update.
11793 * remote.c (remote_stop): Add 'self' argument.
11794 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11795 (gdbsim_cntrl_c): Update.
11796 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11797 * procfs.c (procfs_stop): Add 'self' argument.
11798 * nto-procfs.c (procfs_stop): Add 'self' argument.
11799 * monitor.c (monitor_stop): Add 'self' argument.
11800 (monitor_open): Update.
11801 * linux-nat.c (linux_nat_stop): Add argument.
11802 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11803 * gnu-nat.c (gnu_stop): Add 'self' argument.
11804 * darwin-nat.c (darwin_stop): Add 'self' argument.
11806 2014-02-19 Tom Tromey <tromey@redhat.com>
11808 * target.h (struct target_ops) <to_thread_name>: Add argument.
11809 * target.c (target_thread_name): Add argument.
11810 (update_current_target): Update.
11811 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11813 2014-02-19 Tom Tromey <tromey@redhat.com>
11815 * target.h (struct target_ops) <to_extra_thread_info>: Add
11817 (target_extra_thread_info): Add argument.
11818 * target.c (update_current_target): Update.
11819 * remote.c (remote_threads_extra_info): Add 'self' argument.
11820 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11822 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11823 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11824 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11826 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11828 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11830 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11833 2014-02-19 Tom Tromey <tromey@redhat.com>
11835 * target.h (struct target_ops) <to_program_signals>: Add argument.
11836 * target.c (target_program_signals): Add argument.
11837 * remote.c (remote_program_signals): Add 'self' argument.
11839 2014-02-19 Tom Tromey <tromey@redhat.com>
11841 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11842 * target.c (target_pass_signals): Add argument.
11843 * remote.c (remote_pass_signals): Add 'self' argument.
11844 (remote_start_remote): Update.
11845 * procfs.c (procfs_pass_signals): Add 'self' argument.
11846 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11847 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11848 (linux_nat_create_inferior, linux_nat_attach): Update.
11850 2014-02-19 Tom Tromey <tromey@redhat.com>
11852 * windows-nat.c (windows_can_run): Add 'self' argument.
11853 * target.h (struct target_ops) <to_can_run>: Add argument.
11854 (target_can_run): Add argument.
11855 * target.c (debug_to_can_run): Add argument.
11856 (update_current_target): Update.
11857 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11858 * inf-child.c (inf_child_can_run): Add 'self' argument.
11859 * go32-nat.c (go32_can_run): Add 'self' argument.
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * target.h (struct target_ops) <to_has_exited>: Add argument.
11864 (target_has_exited): Add argument.
11865 * target.c (debug_to_has_exited): Add argument.
11866 (update_current_target): Update.
11868 2014-02-19 Tom Tromey <tromey@redhat.com>
11870 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11872 (target_set_syscall_catchpoint): Add argument.
11873 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11875 * target.c (update_current_target): Update.
11877 2014-02-19 Tom Tromey <tromey@redhat.com>
11879 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11881 (target_remove_exec_catchpoint): Add argument.
11882 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11883 (update_current_target): Update.
11884 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11889 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11891 (target_insert_exec_catchpoint): Add argument.
11892 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11893 (update_current_target): Update.
11894 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11897 2014-02-19 Tom Tromey <tromey@redhat.com>
11899 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11901 (target_remove_vfork_catchpoint): Add argument.
11902 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11903 (update_current_target): Update.
11904 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11909 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11911 (target_insert_vfork_catchpoint): Add argument.
11912 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11913 (update_current_target): Update.
11914 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11917 2014-02-19 Tom Tromey <tromey@redhat.com>
11919 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11921 (target_remove_fork_catchpoint): Add argument.
11922 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11923 (update_current_target): Update.
11924 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11929 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11931 (target_insert_fork_catchpoint): Add argument.
11932 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11933 (update_current_target): Update.
11934 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11937 2014-02-19 Tom Tromey <tromey@redhat.com>
11939 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11941 (target_post_startup_inferior): Add argument.
11942 * target.c (debug_to_post_startup_inferior): Add argument.
11943 (update_current_target): Update.
11944 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11946 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11948 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11950 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11952 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11954 (super_post_startup_inferior): Likewise.
11955 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11957 (super_post_startup_inferior): Likewise.
11958 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11959 Add 'self' argument.
11960 (super_post_startup_inferior): Likewise.
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11964 * target.h (struct target_ops) <to_load>: Add argument.
11965 * target.c (target_load): Add argument.
11966 (debug_to_load): Add argument.
11967 (update_current_target): Update.
11968 * remote.c (remote_load): Add 'self' argument.
11969 * remote-sim.c (gdbsim_load): Add 'self' argument.
11970 * remote-mips.c (mips_load): Add 'self' argument.
11971 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11972 * monitor.c (monitor_load): Add 'self' argument.
11973 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11977 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11978 (target_terminal_info): Add argument.
11979 * target.c (debug_to_terminal_info): Add argument.
11980 (default_terminal_info): Likewise.
11981 * inflow.c (child_terminal_info): Add 'self' argument.
11982 * inferior.h (child_terminal_info): Add 'self' argument.
11983 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11987 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11989 (target_terminal_save_ours): Add argument.
11990 * target.c (debug_to_terminal_save_ours): Add argument.
11991 (update_current_target): Update.
11992 * inflow.c (terminal_save_ours): Add 'self' argument.
11993 * inferior.h (terminal_save_ours): Add 'self' argument.
11995 2014-02-19 Tom Tromey <tromey@redhat.com>
11997 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11998 (target_terminal_ours): Add argument.
11999 * target.c (debug_to_terminal_ours): Add argument.
12000 (update_current_target): Update.
12001 * remote.c (remote_terminal_ours): Add 'self' argument.
12002 (remote_close): Update.
12003 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12004 * inflow.c (terminal_ours): Add 'self' argument.
12005 * inferior.h (terminal_ours): Add 'self' argument.
12006 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12008 2014-02-19 Pedro Alves <palves@redhat.com>
12009 Tom Tromey <tromey@redhat.com>
12011 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12013 (target_terminal_ours_for_output): Add argument.
12014 * target.c (debug_to_terminal_ours_for_output): Add argument.
12015 (update_current_target): Update.
12016 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12017 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12018 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12022 * target.h (struct target_ops) <to_terminal_inferior>: Add
12024 * target.c (target_terminal_inferior): Add argument.
12025 (update_current_target): Update.
12026 * remote.c (remote_terminal_inferior): Add 'self' argument.
12027 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12028 * inflow.c (terminal_inferior): Add 'self' argument.
12029 * inferior.h (terminal_inferior): Add 'self' argument.
12030 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12031 (go32_terminal_inferior): Add 'self' argument.
12033 2014-02-19 Tom Tromey <tromey@redhat.com>
12035 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12036 (target_terminal_init): Add argument.
12037 * target.c (debug_to_terminal_init): Add argument.
12038 (update_current_target): Update.
12039 * inflow.c (terminal_init_inferior): Add 'self' argument.
12040 * inferior.h (terminal_init_inferior): Add 'self' argument.
12041 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12042 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12044 2014-02-19 Tom Tromey <tromey@redhat.com>
12046 * target.h (struct target_ops)
12047 <to_can_accel_watchpoint_condition>: Add argument.
12048 (target_can_accel_watchpoint_condition): Add argument.
12049 * target.c (debug_to_can_accel_watchpoint_condition): Add
12051 (update_current_target): Update.
12052 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12055 2014-02-19 Tom Tromey <tromey@redhat.com>
12057 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12059 (target_region_ok_for_hw_watchpoint): Add argument.
12060 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12061 (default_region_ok_for_hw_watchpoint): Add argument.
12062 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12063 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12065 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12067 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12069 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12071 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12073 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12075 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12076 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12078 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12079 Add 'self' argument.
12081 2014-02-19 Tom Tromey <tromey@redhat.com>
12083 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12085 (target_insert_watchpoint): Add argument.
12086 * target.c (debug_to_insert_watchpoint): Add argument.
12087 (update_current_target): Update.
12088 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12089 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12090 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12091 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12092 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12093 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12095 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12096 (procfs_insert_hw_watchpoint): Add 'self' argument.
12097 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12099 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12101 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12103 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12104 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12106 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12109 2014-02-19 Tom Tromey <tromey@redhat.com>
12111 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12113 (target_remove_watchpoint): Add argument.
12114 * target.c (debug_to_remove_watchpoint): Add argument.
12115 (update_current_target): Update.
12116 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12117 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12118 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12119 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12120 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12121 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12123 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12124 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12126 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12128 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12130 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12131 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12133 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12136 2014-02-19 Tom Tromey <tromey@redhat.com>
12138 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12140 (target_remove_hw_breakpoint): Add argument.
12141 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12142 (update_current_target): Update.
12143 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12144 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12146 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12147 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12149 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12152 2014-02-19 Tom Tromey <tromey@redhat.com>
12154 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12156 (target_insert_hw_breakpoint): Add argument.
12157 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12158 (update_current_target): Update.
12159 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12160 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12162 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12163 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12164 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12166 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12171 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12173 (target_can_use_hardware_watchpoint): Add argument.
12174 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12175 (update_current_target): Update.
12176 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12178 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12180 * remote.c (remote_check_watch_resources): Add 'self' argument.
12181 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12182 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12184 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12185 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12187 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12189 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12191 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12193 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12195 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12197 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12198 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12200 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12203 2014-02-19 Tom Tromey <tromey@redhat.com>
12205 * target.h (struct target_ops) <to_post_attach>: Add argument.
12206 (target_post_attach): Add argument.
12207 * target.c (debug_to_post_attach): Add argument.
12208 (update_current_target): Update.
12209 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12210 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12211 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12212 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12213 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12215 2014-02-19 Tom Tromey <tromey@redhat.com>
12217 * windows-nat.c (windows_close): Add 'self' argument.
12218 * tracepoint.c (tfile_close): Add 'self' argument.
12219 * target.h (struct target_ops) <to_close>: Add argument.
12220 * target.c (target_close): Add argument.
12221 (update_current_target): Update.
12222 * remote.c (remote_close): Add 'self' argument.
12223 * remote-sim.c (gdbsim_close): Add 'self' argument.
12224 * remote-mips.c (mips_close): Add 'self' argument.
12225 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12226 * record-full.c (record_full_close): Add 'self' argument.
12227 * record-btrace.c (record_btrace_close): Add 'self' argument.
12228 * monitor.h (monitor_close): Add 'self' argument.
12229 * monitor.c (monitor_close): Add 'self' argument.
12230 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12231 * linux-nat.c (linux_nat_close): Add argument.
12232 * go32-nat.c (go32_close): Add 'self' argument.
12233 * exec.c (exec_close_1): Add 'self' argument.
12234 * ctf.c (ctf_close): Add 'self' argument.
12235 * corelow.c (core_close): Add 'self' argument.
12236 (core_close_cleanup): Update.
12237 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12238 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12240 2014-02-19 Tom Tromey <tromey@redhat.com>
12242 * remote.c (remote_load): New function.
12243 (init_remote_ops): Use it.
12245 2014-02-19 Tom Tromey <tromey@redhat.com>
12247 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12249 * common/linux-btrace.h (linux_supports_btrace): Update.
12250 * remote.c (remote_supports_btrace): Add "self" argument.
12251 * target-delegates.c: Rebuild.
12252 * target.c (target_supports_btrace): Remove.
12253 * target.h (struct target_ops) <to_supports_btrace>: Add
12254 target_ops argument.
12255 (target_supports_btrace): New define.
12257 2014-02-19 Tom Tromey <tromey@redhat.com>
12259 * record-full.c (record_full_beneath_to_resume_ops)
12260 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12261 (record_full_beneath_to_wait)
12262 (record_full_beneath_to_store_registers_ops)
12263 (record_full_beneath_to_store_registers)
12264 (record_full_beneath_to_xfer_partial_ops)
12265 (record_full_beneath_to_xfer_partial)
12266 (record_full_beneath_to_insert_breakpoint_ops)
12267 (record_full_beneath_to_insert_breakpoint)
12268 (record_full_beneath_to_remove_breakpoint_ops)
12269 (record_full_beneath_to_remove_breakpoint)
12270 (record_full_beneath_to_stopped_by_watchpoint)
12271 (record_full_beneath_to_stopped_data_address)
12272 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12273 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12274 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12275 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12276 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12277 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12278 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12279 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12280 (record_full_resume, record_full_wait_1)
12281 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12282 (record_full_store_registers, record_full_xfer_partial)
12283 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12284 (record_full_async, record_full_core_xfer_partial): Use target
12286 * target-delegates.c: Rebuild.
12287 * target.c (current_xfer_partial): Remove.
12288 (update_current_target): Do not INHERIT or de_fault
12289 to_insert_breakpoint, to_remove_breakpoint,
12290 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12291 to_is_async_p, to_async. Do not set to_xfer_partial field.
12292 (default_xfer_partial): Simplify.
12293 (current_xfer_partial): Remove.
12294 (target_wait, target_resume): Simplify.
12295 (find_default_can_async_p, find_default_is_async_p): Update.
12296 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12297 to_xfer_partial, to_stopped_by_watchpoint,
12298 to_stopped_data_address.
12299 (target_store_registers): Simplify.
12300 (forward_target_remove_breakpoint)
12301 (forward_target_insert_breakpoint): Remove.
12302 (target_remove_breakpoint, target_insert_breakpoint)
12303 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12304 * target.h (struct target_ops) <to_resume, to_wait,
12305 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12306 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12307 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12309 (forward_target_remove_breakpoint)
12310 (forward_target_insert_breakpoint): Remove.
12311 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12313 (record_btrace_insert_breakpoint): Delegate directly.
12315 2014-02-19 Tom Tromey <tromey@redhat.com>
12318 * target-delegates.c: New file.
12319 * target.c: Include target-delegates.c.
12320 (init_dummy_target): Call install_dummy_methods.
12321 (complete_target_initialization): Call install_delegators.
12322 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12323 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12324 * make-target-delegates: New file.
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12328 * record.c (find_record_target): Use find_target_at.
12329 * target.c (find_target_at): New function.
12330 * target.h (find_target_at): Declare.
12332 2014-02-19 Tom Tromey <tromey@redhat.com>
12334 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12335 Add 'ops' argument.
12336 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12338 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12339 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12341 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12343 * linux-nat.c (save_sigtrap): Update.
12344 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12345 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12346 (linux_nat_close): Update.
12347 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12349 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12351 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12352 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12353 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12354 (tmp_to_async): Add 'ops' argument.
12355 (record_full_stopped_by_watchpoint, record_full_async)
12356 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12358 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12359 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12360 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12361 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12362 (remote_is_async_p, remote_async): Add 'ops' argument.
12363 (remote_stopped_data_address): Update.
12364 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12365 * target.c (update_current_target)
12366 (find_default_can_async_p, find_default_is_async_p): Update.
12367 (init_dummy_target): Update.
12368 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12369 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12370 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12371 (target_can_async_p, target_is_async_p, target_async)
12372 (target_stopped_by_watchpoint): Update.
12374 2014-02-19 Yao Qi <yao@codesourcery.com>
12377 * gdbarch.sh: Remove startup_gdbarch.
12378 * gdbarch.c: Regenerated.
12379 * gdbarch.h: Likewise.
12381 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12383 * rl78-tdep.c (rl78_g10_register_name): New function.
12384 (rl78_return_value): Add g10 support.
12385 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12388 2014-02-17 Doug Evans <xdje42@gmail.com>
12390 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12391 (SUBDIR_GUILE_SRCS): Ditto.
12392 (scm-gsmob.o): Ditto.
12394 2014-02-17 Yao Qi <yao@codesourcery.com>
12396 * gnu-nat.c (ILL_RPC): Declare defined function.
12398 2014-02-17 Yao Qi <yao@codesourcery.com>
12400 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12401 mach_msg_type_number_t.
12402 (gnu_write_inferior): Likewise.
12404 2014-02-17 Yao Qi <yao@codesourcery.com>
12406 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12408 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12409 (inf_validate_procs, inf_signal): Likewise.
12410 (S_exception_raise_request): Likewise.
12411 (do_mach_notify_dead_name): Likewise.
12412 (steal_exc_port): Likewise.
12413 (gnu_read_inferior): Change 'copy_count''s type to
12414 mach_msg_type_number_t.
12415 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12418 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12420 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12421 flag. Adjust all users; in particular...
12422 (gnu_wait): ..., don't decrement its value in here...
12423 (gnu_create_inferior): ..., and instead set the flag in here,
12424 around the startup_inferior call, and call that one with
12425 START_INFERIOR_TRAPS_EXPECTED.
12427 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12428 (ILL_RPC): ... new macro.
12429 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12430 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12431 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12432 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12433 functions with ILL_RPC macro.
12434 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12435 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12436 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12437 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12438 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12439 (S_proc_getlogin_reply, S_proc_getsid_reply)
12440 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12441 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12442 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12443 (S_proc_getnports_reply, S_proc_is_important_reply)
12444 (S_proc_get_code_reply): New stub functions, generated with
12447 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12448 collected the type check structures.
12450 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12452 2014-02-14 Doug Evans <dje@google.com>
12454 * target.c (target_write_partial): Fix result type.
12456 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12458 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12459 the proper offsets to access fpregset_t.
12461 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12463 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12464 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12465 * h8300-tdep.c (setmachinelist): Remove global.
12466 * hppa-tdep.c (hppa_sigtramp): Remove global.
12467 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12468 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12469 * ravenscar-thread.c (update_target_observer): Remove global.
12470 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12472 2014-02-12 Tom Tromey <tromey@redhat.com>
12474 * common/rsp-low.c: Update comments.
12475 * common/rsp-low.h: Update comments.
12477 2014-02-12 Tom Tromey <tromey@redhat.com>
12479 * common/rsp-low.c (convert_ascii_to_int): Remove.
12480 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12482 2014-02-12 Tom Tromey <tromey@redhat.com>
12484 * common/rsp-low.h (unhexify): Don't declare.
12485 * common/rsp-low.c (unhexify): Remove.
12487 2014-02-12 Tom Tromey <tromey@redhat.com>
12489 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12490 * common/rsp-low.c (convert_int_to_ascii): Remove.
12492 2014-02-12 Tom Tromey <tromey@redhat.com>
12494 * common/rsp-low.h (hexify): Don't declare.
12495 * common/rsp-low.c (hexify): Remove.
12497 2014-02-12 Tom Tromey <tromey@redhat.com>
12499 * common/rsp-low.c (hexify): Never take strlen of argument.
12501 2014-02-12 Tom Tromey <tromey@redhat.com>
12503 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12504 * remote.c (extended_remote_run, remote_rcmd)
12505 (remote_download_trace_state_variable, remote_save_trace_data)
12506 (remote_set_trace_notes): Update.
12507 * tracepoint.c (encode_source_string, tfile_write_status)
12508 (tfile_write_uploaded_tsv): Update.
12510 2014-02-12 Tom Tromey <tromey@redhat.com>
12512 * tracepoint.c: Include rsp-low.h.
12513 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12514 * remote.c: Include rsp-low.h.
12515 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12516 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12517 (remote_unescape_input): Move to common/rsp-low.c.
12518 * common/rsp-low.h: New file.
12519 * common/rsp-low.c: New file.
12520 * Makefile.in (SFILES): Add common/rsp-low.c.
12521 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12522 (COMMON_OBS): Add rsp-low.o.
12523 (rsp-low.o): New target.
12525 2014-02-12 Tom Tromey <tromey@redhat.com>
12527 * utils.h: Include print-utils.h.
12528 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12529 (int_string, core_addr_to_string, core_addr_to_string_nz)
12530 (hex_string, hex_string_custom): Don't declare.
12531 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12532 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12533 (hex_string_custom, int_string, core_addr_to_string)
12534 (core_addr_to_string_nz, host_address_to_string): Move to
12535 common/print-utils.c.
12536 * common/print-utils.h: New file.
12537 * common/print-utils.c: New file
12538 * Makefile.in (SFILES): Add common/print-utils.c.
12539 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12540 (COMMON_OBS): Add print-utils.o.
12541 (print-utils.o): New target.
12543 2014-02-12 Tom Tromey <tromey@redhat.com>
12545 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12547 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12549 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12551 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12553 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12554 if a PT_IO ptrace request returns sucessfully but indicates that 0
12555 bytes were transferred.
12557 2014-02-12 Pedro Alves <palves@redhat.com>
12558 Kevin Buettner <kevinb@redhat.com>
12560 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12561 TYPE_INSTANCE_FLAG_CODE_SPACE.
12563 2014-02-12 Pedro Alves <palves@redhat.com>
12565 * h8300-tdep.c (pseudo_from_raw_register)
12566 (raw_from_pseudo_register): New functions.
12567 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12570 2014-02-12 Pedro Alves <palves@redhat.com>
12572 * h8300-tdep.c (h8300_register_sim_regno): New function.
12573 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12574 gdbarch_register_sim_regno hook.
12576 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12578 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12580 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12582 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12584 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12586 * obsd-tdep.h (obsd_init_abi): New prototype.
12587 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12588 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12589 (obsd_init_abi): New functions.
12590 * i386obsd-tdep.c: Include "obsd-tdep.h".
12591 (i386obsd_init_abi): Call obsd_init_abi.
12592 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12593 (amd64obsd_init_abi): Call obsd_init_abi.
12594 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12595 obsd-tdep.c to gdb_target_obs.
12597 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12599 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12600 double float arguments to 16-byte in the argument slots.
12602 2014-02-11 Doug Evans <xdje42@gmail.com>
12604 * configure.ac: Don't crash if pkg-config is not found and guile
12605 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12607 * configure: Regenerate.
12609 2014-02-11 Yao Qi <yao@codesourcery.com>
12611 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12612 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12613 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12614 * gnu-nat.c (gnu_xfer_memory): Likewise.
12615 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12616 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12617 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12618 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12620 2014-02-11 Yao Qi <yao@codesourcery.com>
12622 * target.h (enum target_xfer_error): Rename to ...
12623 (enum target_xfer_status): ... it. New. All users updated.
12624 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12626 (TARGET_XFER_STATUS_ERROR_P): New macro.
12627 (target_xfer_error_to_string): Remove declaration.
12628 (target_xfer_status_to_string): Declare.
12629 (target_xfer_partial_ftype): Adjust it.
12630 (struct target_ops) <to_xfer_partial>: Return
12631 target_xfer_status. Add argument xfered_len. Update
12633 * target.c (target_xfer_error_to_string): Rename to ...
12634 (target_xfer_status_to_string): ... it. New. All callers
12636 (target_read_live_memory): Likewise. Call target_xfer_partial
12637 instead of target_read.
12638 (memory_xfer_live_readonly_partial): Return
12639 target_xfer_status. Add argument xfered_len.
12640 (raw_memory_xfer_partial): Likewise.
12641 (memory_xfer_partial_1): Likewise.
12642 (memory_xfer_partial): Likewise.
12643 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12644 properly. Update debug message.
12645 (default_xfer_partial, current_xfer_partial): Likewise.
12646 (target_write_partial): Likewise.
12647 (target_read_partial): Likewise. All callers updated.
12648 (read_whatever_is_readable): Likewise.
12649 (target_write_with_progress): Likewise.
12650 (target_read_alloc_1): Likewise.
12652 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12653 * auxv.c (procfs_xfer_auxv): Likewise.
12654 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12655 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12656 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12657 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12658 * corefile.c (read_memory): Adjust.
12659 * corelow.c (core_xfer_partial): Likewise.
12660 * ctf.c (ctf_xfer_partial): Likewise.
12661 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12663 (darwin_xfer_partial): Likewise.
12664 * exec.c (section_table_xfer_memory_partial): Likewise. All
12666 (exec_xfer_partial): Likewise.
12667 * exec.h (section_table_xfer_memory_partial): Update
12669 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12671 (gnu_xfer_partial): Likewise.
12672 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12673 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12674 (ia64_hpux_xfer_solib_got): Likewise.
12675 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12676 type of 'partial_len' to ULONGEST.
12677 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12678 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12679 (linux_nat_xfer_partial): Likewise.
12680 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12681 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12682 * monitor.c (monitor_xfer_memory): Likewise.
12683 (monitor_xfer_partial): Likewise.
12684 * procfs.c (procfs_xfer_partial): Likewise.
12685 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12686 * record-full.c (record_full_xfer_partial): Likewise.
12687 (record_full_core_xfer_partial): Likewise.
12688 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12689 (gdbsim_xfer_partial): Likewise.
12690 * remote.c (remote_write_bytes_aux): Likewise. All callers
12692 (remote_write_bytes, remote_read_bytes): Likewise. All
12694 (remote_flash_erase): Likewise. All callers updated.
12695 (remote_write_qxfer): Likewise. All callers updated.
12696 (remote_read_qxfer): Likewise. All callers updated.
12697 (remote_xfer_partial): Likewise.
12698 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12699 (rs6000_xfer_shared_libraries): Likewise.
12700 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12701 (sol_thread_xfer_partial): Likewise.
12702 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12703 (sparc_xfer_partial): Likewise.
12704 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12706 (spu_xfer_partial): Likewise.
12707 * spu-multiarch.c (spu_xfer_partial): Likewise.
12708 * tracepoint.c (tfile_xfer_partial): Likewise.
12709 * windows-nat.c (windows_xfer_memory): Likewise.
12710 (windows_xfer_shared_libraries): Likewise.
12711 (windows_xfer_partial): Likewise.
12712 * valprint.c: Replace 'target_xfer_error' with
12713 'target_xfer_status' in comments.
12715 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12717 Checked in by Joel Brobecker <brobecker@adacore.com>.
12718 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12720 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12722 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12723 function parameters.
12725 2014-02-10 Will Newton <will.newton@linaro.org>
12727 * elfread.c (elf_rel_plt_read): Look for a .got section if
12728 looking up .got.plt fails.
12729 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12730 on address passed to elf_gnu_ifunc_record_cache.
12731 (elf_gnu_ifunc_resolve_addr): Likewise.
12732 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12734 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12736 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12737 (X_RETTURN): New macro.
12738 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12740 * sparc64-tdep.c (sparc64_init_abi): Hook
12741 sparc_in_function_epilogue_p.
12743 2014-02-10 Gary Benson <gbenson@redhat.com>
12745 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12746 Rename name_matcher to symbol_matcher.
12748 2014-02-10 Gary Benson <gbenson@redhat.com>
12750 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12751 Use expand_symtabs_file_matcher_ftype and
12752 expand_symtabs_symbol_matcher_ftype.
12754 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12756 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12757 (struct ada_symbol_cache): New.
12758 (ada_free_symbol_cache): Forward declare.
12759 (struct ada_pspace_data): New.
12760 (ada_pspace_data_handle): New static global.
12761 (get_ada_pspace_data, ada_pspace_data_cleanup)
12762 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12763 (cache_space, cache): Delete, now folded inside struct
12765 (ada_get_symbol_cache): New function.
12766 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12768 (_initialize_ada_language): Remove initialization of cache_space.
12769 Move call to observer_attach_inferior_exit up, grouping it
12770 with the other observer registrations inside this function.
12771 Rename command to be more general. Add call to
12772 register_program_space_data_with_cleanup.
12774 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12776 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12777 ada_new_objfile_observer.
12778 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12779 (_initialize_tasks): Update uses of ada_new_objfile_observer
12780 and ada_tasks_normal_stop_observer.
12782 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12784 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12785 returned by the 'Length attribute to integer.
12787 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12789 * ada-lang.c (_initialize_ada_language): Initialize
12790 cache_space obstack.
12792 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12794 * ada-lang.c (HASH_SIZE): New macro.
12795 (struct cache_entry): New type.
12796 (cache_space, cache): New static globals.
12797 (ada_clear_symbol_cache, find_entry): New functions.
12798 (lookup_cached_symbol, cache_symbol): Implement.
12799 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12800 (_initialize_ada_language): Attach ada_new_objfile_observer
12801 and ada_free_objfile_observer.
12803 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12805 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12806 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12807 struct block * parameter.
12808 (ada_lookup_symbol_list_worker): Constify local variable "block".
12809 Remove cast which is no longer necessary.
12811 2014-02-10 Doug Evans <xdje42@gmail.com>
12813 Add Guile as an extension language.
12814 * NEWS: Mention Guile scripting.
12815 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12816 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12817 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12818 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12819 (CLIBS): Add GUILE_LIBS.
12820 (install-guile): New rule.
12821 (guile.o): New rule.
12822 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12823 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12824 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12825 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12826 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12827 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12828 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12829 * configure.ac: New option --with-guile.
12830 * configure: Regenerate.
12831 * config.in: Regenerate.
12832 * auto-load.c: Remove #include "python/python.h". Add #include
12833 "gdb/section-scripts.h".
12834 (source_section_scripts): Handle Guile scripts.
12835 (_initialize_auto_load): Add name of Guile objfile script to
12836 scripts-directory help text.
12837 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12838 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12839 (struct breakpoint): New member scm_bp_object.
12840 * defs.h (enum command_control_type): New value guile_control.
12841 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12843 (show_user): Update comment.
12844 (_initialize_cli_cmds): Update help text for "show user". Update help
12845 text for max-user-call-depth.
12846 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12848 (multi_line_command_p): Add guile_control.
12849 (print_command_lines): Handle guile_control.
12850 (execute_control_command, recurse_read_control_structure): Ditto.
12851 (process_next_line): Recognize "guile" commands.
12852 * disasm.c (gdb_disassemble_info): Make non-static.
12853 * disasm.h: #include "dis-asm.h".
12854 (struct gdbarch): Add forward decl.
12855 (gdb_disassemble_info): Declare.
12856 * extension.c: #include "guile/guile.h".
12857 (extension_languages): Add guile.
12858 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12859 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12860 * gdbtypes.c (get_unsigned_type_max): New function.
12861 (get_signed_type_minmax): New function.
12862 * gdbtypes.h (get_unsigned_type_max): Declare.
12863 (get_signed_type_minmax): Declare.
12864 * guile/README: New file.
12865 * guile/guile-internal.h: New file.
12866 * guile/guile.c: New file.
12867 * guile/guile.h: New file.
12868 * guile/scm-arch.c: New file.
12869 * guile/scm-auto-load.c: New file.
12870 * guile/scm-block.c: New file.
12871 * guile/scm-breakpoint.c: New file.
12872 * guile/scm-disasm.c: New file.
12873 * guile/scm-exception.c: New file.
12874 * guile/scm-frame.c: New file.
12875 * guile/scm-gsmob.c: New file.
12876 * guile/scm-iterator.c: New file.
12877 * guile/scm-lazy-string.c: New file.
12878 * guile/scm-math.c: New file.
12879 * guile/scm-objfile.c: New file.
12880 * guile/scm-ports.c: New file.
12881 * guile/scm-pretty-print.c: New file.
12882 * guile/scm-safe-call.c: New file.
12883 * guile/scm-string.c: New file.
12884 * guile/scm-symbol.c: New file.
12885 * guile/scm-symtab.c: New file.
12886 * guile/scm-type.c: New file.
12887 * guile/scm-utils.c: New file.
12888 * guile/scm-value.c: New file.
12889 * guile/lib/gdb.scm: New file.
12890 * guile/lib/gdb/boot.scm: New file.
12891 * guile/lib/gdb/experimental.scm: New file.
12892 * guile/lib/gdb/init.scm: New file.
12893 * guile/lib/gdb/iterator.scm: New file.
12894 * guile/lib/gdb/printing.scm: New file.
12895 * guile/lib/gdb/types.scm: New file.
12896 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12897 (VPATH): Add $(GUILE_SRCDIR).
12898 (GUILE_DIR): New variable.
12899 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12900 (all): Add stamp-guile dependency.
12901 (stamp-guile): New rule.
12902 (clean-guile, install-guile, uninstall-guile): New rules.
12903 (install-only): Add install-guile dependency.
12904 (uninstall): Add uninstall-guile dependency.
12905 (clean): Add clean-guile dependency.
12907 2014-02-09 Doug Evans <xdje42@gmail.com>
12909 Revert this patch (which I approved, mea culpa).
12911 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12913 * Makefile.in (all-lib): Remove.
12914 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12916 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12918 Fix Python stack corruption.
12919 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12922 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12924 * Makefile.in (all-lib): Remove.
12925 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12927 2014-02-07 Doug Evans <dje@google.com>
12929 * extension-priv.h (extension_language_script_ops): Add comment.
12930 (extension_language_ops): Add comment.
12931 (active_ext_lang_state): Fix typo in comment.
12933 2014-02-07 Pedro Alves <palves@redhat.com>
12935 PR breakpoints/16292
12936 * infrun.c (handle_signal_stop) <signal arrives while stepping
12937 over a breakpoint>: Switch back to the stepping thread.
12939 2014-02-07 Yao Qi <yao@codesourcery.com>
12941 * target.c (target_xfer_partial): Return zero if LEN is zero.
12943 2014-02-07 Yao Qi <yao@codesourcery.com>
12945 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12946 (ld_so_xfer_auxv): Likewise.
12947 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12948 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12949 * corelow.c (core_xfer_partial): Likewise.
12950 * ctf.c (ctf_xfer_partial): Likewise.
12951 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12952 (darwin_xfer_partial): Likewise.
12953 * exec.c (exec_xfer_partial): Likewise.
12954 * gnu-nat.c (gnu_xfer_partial): Likewise.
12955 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12956 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12957 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12958 * linux-nat.c (linux_xfer_siginfo): Likewise.
12959 (linux_proc_xfer_spu): Likewise.
12960 * procfs.c (procfs_xfer_partial): Likewise.
12961 * record-full.c (record_full_xfer_partial): Likewise.
12962 (record_full_core_xfer_partial): Likewise.
12963 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12964 * remote.c (remote_write_qxfer): Likewise.
12965 (remote_write_qxfer, remote_read_qxfer): Likewise.
12966 (remote_xfer_partial): Likewise.
12967 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12968 (rs6000_xfer_shared_libraries): Likewise.
12969 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12970 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12971 (spu_xfer_partial): Likewise.
12972 * target.c (memory_xfer_partial_1): Likewise.
12973 * tracepoint.c (tfile_xfer_partial): Likewise.
12974 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12975 (windows_xfer_partial): Likewise.
12977 2014-02-07 Yao Qi <yao@codesourcery.com>
12979 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12981 (core_xfer_shared_libraries_aix): Likewise.
12982 * gdbarch.c, gdbarch.h: Regenerated.
12983 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12984 ULONGEST. Change 'len_avail' type to ULONGEST.
12985 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12986 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12988 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12990 2014-02-07 Yao Qi <yao@codesourcery.com>
12992 * corefile.c (memory_error): Get 'exception' from ERR and pass
12993 'exception' to throw_error.
12995 2014-02-06 Doug Evans <xdje42@gmail.com>
12997 * configure.ac (libpython checking): Remove all but python.o from
12998 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12999 * configure: Regenerate.
13001 * Makefile.in (SFILES): Add extension.c.
13002 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13003 (COMMON_OBS): Add extension.o.
13004 * extension.h: New file.
13005 * extension-priv.h: New file.
13006 * extension.c: New file.
13008 * python/python-internal.h: #include "extension.h".
13009 (gdbpy_auto_load_enabled): Declare.
13010 (gdbpy_apply_val_pretty_printer): Declare.
13011 (gdbpy_apply_frame_filter): Declare.
13012 (gdbpy_preserve_values): Declare.
13013 (gdbpy_breakpoint_cond_says_stop): Declare.
13014 (gdbpy_breakpoint_has_cond): Declare.
13015 (void source_python_script_for_objfile): Delete.
13016 * python/python.c: #include "extension-priv.h".
13017 Delete inclusion of "observer.h".
13018 (extension_language_python): Moved here and renamed from
13019 script_language_python in py-auto-load.c.
13020 Redefined to be of type extension_language_defn.
13021 (python_extension_script_ops): New global.
13022 (python_extension_ops): New global.
13023 (struct python_env): New member previous_active.
13024 (restore_python_env): Call restore_active_ext_lang.
13025 (ensure_python_env): Call set_active_ext_lang.
13026 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13028 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13030 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13032 (gdbpy_eval_from_control_command): Renamed from
13033 eval_python_from_control_command, made static. New arg extlang.
13034 (gdbpy_source_script) Renamed from source_python_script, made static.
13036 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13037 result to int. New arg extlang.
13038 (gdbpy_source_objfile_script): Renamed from
13039 source_python_script_for_objfile, made static. New arg extlang.
13040 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13041 static. New args extlang, extlang_printers. Change result type to
13043 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13044 static. New arg extlang. Rename arg printers to extlang_printers
13045 and change type to ext_lang_type_printers *.
13046 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13047 static. Replace argument arg with extlang, extlang_printers.
13048 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13049 (!HAVE_PYTHON, source_python_script): Delete.
13050 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13051 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13052 (!HAVE_PYTHON, start_type_printers): Delete.
13053 (!HAVE_PYTHON, apply_type_printers): Delete.
13054 (!HAVE_PYTHON, free_type_printers): Delete.
13055 (_initialize_python): Delete call to observer_attach_before_prompt.
13056 (finalize_python): Set/restore active extension language.
13057 (gdbpy_finish_initialization) Renamed from
13058 finish_python_initialization, made static. New arg extlang.
13059 (gdbpy_initialized): New function.
13060 * python/python.h: #include "extension.h". Delete #include
13061 "value.h", "mi/mi-cmds.h".
13062 (extension_language_python): Declare.
13063 (GDBPY_AUTO_FILE_NAME): Delete.
13064 (enum py_bt_status): Moved to extension.h and renamed to
13065 ext_lang_bt_status.
13066 (enum frame_filter_flags): Moved to extension.h.
13067 (enum py_frame_args): Moved to extension.h and renamed to
13068 ext_lang_frame_args.
13069 (finish_python_initialization): Delete.
13070 (eval_python_from_control_command): Delete.
13071 (source_python_script): Delete.
13072 (apply_val_pretty_printer): Delete.
13073 (apply_frame_filter): Delete.
13074 (preserve_python_values): Delete.
13075 (gdbpy_script_language_defn): Delete.
13076 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13077 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13079 * auto-load.c: #include "extension.h".
13080 (GDB_AUTO_FILE_NAME): Delete.
13081 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13082 (script_language_gdb): Delete, moved to extension.c and renamed to
13083 extension_language_gdb.
13084 (source_gdb_script_for_objfile): Delete.
13085 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13086 (loaded_script): Change type of language member to
13087 struct extension_language_defn *.
13088 (init_loaded_scripts_info): Initialize
13089 unsupported_script_warning_printed.
13090 (maybe_add_script): Make static. Change type of language arg to
13091 struct extension_language_defn *.
13092 (clear_section_scripts): Reset unsupported_script_warning_printed.
13093 (auto_load_objfile_script_1): Rewrite to use extension language API.
13094 (auto_load_objfile_script): Make public. Remove support-compiled-in
13095 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13096 (source_section_scripts): Rewrite to use extension language API.
13097 (load_auto_scripts_for_objfile): Rewrite to use
13098 auto_load_scripts_for_objfile.
13099 (collect_matching_scripts_data): Change type of language member to
13100 struct extension_language_defn *.
13101 (auto_load_info_scripts): Change type of language arg to
13102 struct extension_language_defn *.
13103 (unsupported_script_warning_print): New function.
13104 (script_not_found_warning_print): Make static.
13105 (_initialize_auto_load): Rewrite construction of scripts-directory
13107 * auto-load.h (struct objfile): Add forward decl.
13108 (struct script_language): Delete.
13109 (struct auto_load_pspace_info): Add forward decl.
13110 (struct extension_language_defn): Add forward decl.
13111 (maybe_add_script): Delete.
13112 (auto_load_objfile_script): Declare.
13113 (script_not_found_warning_print): Delete.
13114 (auto_load_info_scripts): Update prototype.
13115 (auto_load_gdb_scripts_enabled): Declare.
13116 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13117 auto_load_python_scripts_enabled and made public.
13118 (script_language_python): Delete, moved to python.c.
13119 (gdbpy_script_language_defn): Delete.
13120 (info_auto_load_python_scripts): Update to use
13121 extension_language_python.
13123 * breakpoint.c (condition_command): Replace call to
13124 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13125 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13126 with call to breakpoint_ext_lang_cond_says_stop.
13127 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13128 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13129 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13130 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13132 (local_setattro): Print name of extension language with existing
13135 * valprint.c (val_print, value_print): Update to call
13136 apply_ext_lang_val_pretty_printer.
13137 * cp-valprint.c (cp_print_value): Update call to
13138 apply_ext_lang_val_pretty_printer.
13139 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13140 (gdbpy_apply_val_pretty_printer): Renamed from
13141 apply_val_pretty_printer. New arg extlang.
13142 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13144 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13145 extension language API.
13146 * cli/cli-script.c (execute_control_command): Update to call
13147 eval_ext_lang_from_control_command.
13149 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13150 enum ext_lang_bt_status values. Update call to
13151 apply_ext_lang_frame_filter.
13152 (mi_cmd_stack_list_locals): Ditto.
13153 (mi_cmd_stack_list_args): Ditto.
13154 (mi_cmd_stack_list_variables): Ditto.
13155 * mi/mi-main.c: Delete #include "python/python-internal.h".
13156 Add #include "extension.h".
13157 (mi_cmd_list_features): Replace reference to python internal variable
13158 gdb_python_initialized with call to ext_lang_initialized_p.
13160 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13161 Update to use enum ext_lang_frame_args. Update to call
13162 apply_ext_lang_frame_filter.
13163 * python/py-framefilter.c (extract_sym): Update to use enum
13164 ext_lang_bt_status.
13165 (extract_value, py_print_type, py_print_value): Ditto.
13166 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13167 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13168 (py_print_frame): Ditto.
13169 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13170 New arg extlang. Update to use enum ext_lang_bt_status.
13172 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13173 finish_python_initialization. Replace with call to
13174 finish_ext_lang_initialization.
13176 * typeprint.c (do_free_global_table): Update to call
13177 free_ext_lang_type_printers.
13178 (create_global_typedef_table): Update to call
13179 start_ext_lang_type_printers.
13180 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13181 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13182 (type_print_options): Change type of global_printers from "void *"
13183 to "struct ext_lang_type_printers *".
13185 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13186 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13187 (gdbpy_preserve_values): Renamed from preserve_python_values.
13189 (!HAVE_PYTHON, preserve_python_values): Delete.
13191 * utils.c (quit_flag): Delete, moved to extension.c.
13192 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13195 * eval.c: Delete #include "python/python.h".
13196 * main.c: Delete #include "python/python.h".
13198 * defs.h: Update comment.
13200 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13204 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13206 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13209 2014-02-05 Yao Qi <yao@codesourcery.com>
13211 * remote.c (remote_pass_signals): Remove local 'buf' and use
13213 (remote_program_signals): Likewise.
13215 2014-02-05 Yao Qi <yao@codesourcery.com>
13217 * ctf.c: Include "inferior.h" and "gdbthread.h".
13218 (CTF_PID): A new macro.
13219 (ctf_open): Call inferior_appeared and add_thread_silent.
13220 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13221 (ctf_thread_alive): New function.
13222 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13224 2014-02-05 Yao Qi <yao@codesourcery.com>
13228 2013-05-24 Yao Qi <yao@codesourcery.com>
13230 * tracepoint.c (TFILE_PID): Remove.
13231 (tfile_open): Don't add thread and inferior.
13232 (tfile_close): Don't set 'inferior_ptid'. Don't call
13233 exit_inferior_silent.
13234 (tfile_thread_alive): Remove.
13235 (init_tfile_ops): Don't set field 'to_thread_alive' of
13238 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13240 * remote.c (remote_start_remote): Call remote_check_symbols even
13241 if only symbol-file (not file) has been given.
13243 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13245 * gdbarch.sh (skip_entrypoint): New callback.
13246 * gdbarch.c, gdbarch.h: Regenerate.
13247 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13248 * infrun.c (fill_in_stop_func): Likewise.
13249 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13250 (ppc_elfv2_elf_make_msymbol_special): New function.
13251 (ppc_elfv2_skip_entrypoint): Likewise.
13252 (ppc_linux_init_abi): Install them for ELFv2.
13254 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13256 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13257 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13258 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13259 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13260 structures returned in GPRs.
13262 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13264 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13265 offset to the stack parameter list for the ELFv2 ABI.
13267 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13269 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13270 set_gdbarch_convert_from_func_ptr_addr and
13271 set_gdbarch_elf_make_msymbol_special for ELFv1.
13272 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13273 function descriptors on ELFv1.
13274 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13275 set up r12 at function entry.
13277 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13279 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13280 (struct gdbarch_tdep): New member elf_abi.
13282 * rs6000-tdep.c: Include "elf/ppc64.h".
13283 (rs6000_gdbarch_init): Detect ELF ABI version.
13285 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13287 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13288 within a register pair holding a DFP 128-bit value on little-endian.
13289 (ppc64_sysv_abi_return_value_base): Likewise.
13290 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13291 (dfp_pseudo_register_write): Likewise.
13293 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13295 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13296 offset on little-endian when passing _Decimal32.
13297 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13299 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13301 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13302 of the overlapped FP register within the VSX register on little-
13304 (efpr_pseudo_register_write): Likewise.
13306 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13308 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13309 offset on little-endian when passing small structures.
13311 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13313 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13314 (struct ppc64_sysv_argpos): New data structure.
13315 (ppc64_sysv_abi_push_float): Remove.
13316 (ppc64_sysv_abi_push_val): New function.
13317 (ppc64_sysv_abi_push_integer): Likewise.
13318 (ppc64_sysv_abi_push_freg): Likewise.
13319 (ppc64_sysv_abi_push_vreg): Likewise.
13320 (ppc64_sysv_abi_push_param): Likewise.
13321 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13322 (ppc64_sysv_abi_return_value_base): New function.
13323 (ppc64_sysv_abi_return_value): Refactor to use it.
13325 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13327 * NEWS: Document new target powerpc64le-*-linux*.
13329 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13331 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13332 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13334 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13335 register set used in ELF core dumps. Add floating-point register set.
13337 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13339 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13340 dwarf2_to_gdb[] table using symbolic constants. Adjust
13341 penultimate entry from number representing the PC register
13342 to symbolic constant representing the MDR register. Add
13343 constant for the PC register to the end of the table.
13345 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13347 * bsd-kvm.c: Include <sys/param.h>
13349 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13351 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13353 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13355 * ada-lang.h (clear_ada_sym_cache): Delete.
13357 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13359 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13361 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13363 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13364 the sigreturn register save area only if the syscall is
13367 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13369 * valops.c (value_slice): Minor reformatting.
13371 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13373 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13375 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13377 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13378 New static globals.
13379 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13380 (ada_ignore_descriptive_types_p): New static global.
13381 (find_parallel_type_by_descriptive_type): Return immediately
13382 if ada_ignore_descriptive_types_p is set.
13383 (_initialize_ada_language): Register new commands "maintenance
13384 set ada", "maintenance show ada", "maintenance set ada
13385 ignore-descriptive-types" and "maintenance show ada
13386 ignore-descriptive-types".
13387 * NEWS: Add entry for new "maint ada set/show
13388 ignore-descriptive-types" commands.
13390 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13392 * record-btrace.c (record_btrace_close): Call btrace_teardown
13395 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13397 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13400 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13402 * ada-typeprint (type_is_full_subrange_of_target_type):
13404 (print_range): Add parameter bounds_prefered_p. If not set,
13405 try printing range types using the name of their base type.
13406 (print_range_type): Add parameter bounds_prefered_p.
13407 Use it in call to print_range.
13408 (print_array_type, ada_print_type): Update calls to print_range
13409 and print_range_type.
13411 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13413 * ada-typeprint.c (print_array_type, print_choices, print_range)
13414 (print_range_bound, print_dynamic_range_bound, print_range_type):
13415 Remove declaration.
13417 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13419 * ada-typeprint.c (print_range): Add missing empty line
13420 after local declaration.
13422 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13424 * ada-valprint.c (print_optional_low_bound): Get index_type's
13425 target type for as long as it is a TYPE_CODE_RANGE.
13427 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13429 * procfs.c (procfs_make_note_section): Remove assertion and
13430 associated comment.
13432 2014-01-24 Yao Qi <yao@codesourcery.com>
13434 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13435 * corelow.c (get_core_siginfo): Likewise.
13437 2014-01-24 Yao Qi <yao@codesourcery.com>
13439 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13440 ULONGEST. Don't check 'len' is negative.
13441 (remote_write_bytes): Change type of 'len' to ULONGEST.
13443 2014-01-23 Tom Tromey <tromey@redhat.com>
13446 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13447 Handle exception from frame.block.
13448 (FrameVars.fetch_frame_locals): Likewise.
13450 2014-01-23 Tom Tromey <tromey@redhat.com>
13453 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13454 on a NULL pointer. Move "goto error" to correct place.
13456 2014-01-23 Tom Tromey <tromey@redhat.com>
13459 * python/py-framefilter.c (apply_frame_filter): Call
13460 ensure_python_env after computing gdbarch.
13462 2014-01-23 Yao Qi <yao@codesourcery.com>
13464 * target.c (raw_memory_xfer_partial): Change argument type
13465 from void * to gdb_byte *.
13466 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13468 2014-01-22 Doug Evans <dje@google.com>
13470 New gdbserver option --debug-format=timestamp.
13471 * NEWS: Mention it.
13473 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13475 * syscalls/s390x-linux.xml: New file.
13476 * syscalls/s390-linux.xml: New file.
13477 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13478 (XML_SYSCALL_FILENAME_S390X): Likewise.
13479 (op_svc): New enum value for SVC opcode.
13480 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13481 (s390_linux_get_syscall_number): New function.
13482 (s390_gdbarch_init): Register '*get_syscall_number' and the
13483 syscall xml file name.
13484 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13485 "s390-linux.xml" and "s390x-linux.xml".
13486 * NEWS: Announce new feature.
13488 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13490 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13492 2014-01-22 Pedro Alves <palves@redhat.com>
13494 * xtensa-config.c: Include defs.h.
13496 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13498 * common/common-utils.h: Add "ARI:" comment beside __func__
13501 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13503 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13504 documentation a bit.
13506 2014-01-21 Roland McGrath <mcgrathr@google.com>
13508 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13509 * configure: Regenerate.
13510 * aclocal.m4: Regenerate.
13511 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13512 New substituted variables.
13513 (install-strip): New target.
13514 (INSTALL_SCRIPT): New substituted variable.
13515 (FLAGS_TO_PASS): Add it.
13516 (install-only): Use $(INSTALL_SCRIPT) rather than
13517 $(INSTALL_PROGRAM) for gcore.
13519 2014-01-20 Tom Tromey <tromey@redhat.com>
13521 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13524 2014-01-20 Tom Tromey <tromey@redhat.com>
13526 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13527 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13528 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13529 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13530 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13531 (struct cmd_list_element) <flags>: Remove.
13532 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13533 doc_allocated>: New fields.
13534 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13536 * maint.c (maintenance_do_deprecate): Update.
13537 * top.c (execute_command): Update.
13539 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13541 * xtensa-linux-nat.c: Include asm/ptrace.h.
13543 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13545 * Makefile.in (SFILES): Add d-support.c.
13546 (COMMON_OBS): Add d-support.o.
13547 * d-lang.h (d_parse_symbol): Add comment, now defined in
13549 * d-lang.c (parse_call_convention)
13550 (parse_attributes, parse_function_types)
13551 (parse_function_args, parse_type, parse_identifier)
13552 (call_convention_p, d_parse_symbol): Move functions to ...
13553 * d-support.c: ... New file.
13555 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13557 * d-lang.h (d_parse_symbol): Add declaration.
13558 * d-lang.c (extract_identifiers)
13559 (extract_type_info): Remove functions.
13560 (parse_call_convention, parse_attributes)
13561 (parse_function_types, parse_function_args)
13562 (parse_type, parse_identifier, call_convention_p)
13563 (d_parse_symbol): New functions.
13564 (d_demangle): Use d_parse_symbol to demangle D symbols.
13566 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13568 * d-lang.h (struct builtin_d_type): New data type.
13569 (builtin_d_type): Add declaration.
13570 * d-lang.c (d_language_arch_info, build_d_types)
13571 (builtin_d_type): New functions.
13572 (enum d_primitive_types): New data type.
13573 (d_language_defn): Change c_language_arch_info to
13574 d_language_arch_info.
13575 (d_type_data): New static variable.
13576 (_initialize_d_language): Initialize d_type_data.
13578 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13580 * d-lang.h (d_main_name): Add declaration.
13581 * d-lang.c (d_main_name): New function.
13582 * symtab.c (find_main_name): Add call to d_main_name.
13584 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13586 * d-lang.c (d_language_defn): Change macro_expansion_c to
13587 macro_expansion_no.
13589 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13591 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13593 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13595 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13596 gdb_exception" declaration.
13597 * remote.c (getpkt_or_notif_sane): Likewise.
13599 2014-01-17 Doug Evans <dje@google.com>
13601 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13602 function, contents of dirnames_to_char_ptr_vec_append moved here.
13603 (delim_string_to_char_ptr_vec): New function.
13604 (dirnames_to_char_ptr_vec_append): Rewrite.
13605 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13607 2014-01-17 Doug Evans <dje@google.com>
13609 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13611 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13612 #include "common-utils.h".
13613 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13614 * common/vec.h (VEC_ASSERT_PASS): Update.
13615 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13616 (MACH_CHECK_ERROR): Update.
13618 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13620 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13622 * gdbarch.h: Regenerate.
13624 2014-01-16 Tom Tromey <tromey@redhat.com>
13626 * value.c (struct value) <regnum>: Move earlier.
13628 2014-01-16 Tom Tromey <tromey@redhat.com>
13630 * remote.c (extended_remote_create_inferior): Rename from
13631 extended_remote_create_inferior_1. Add "ops" argument. Remove
13632 old implementation.
13634 2014-01-16 Pedro Alves <palves@redhat.com>
13636 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13637 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13640 2014-01-16 Doug Evans <dje@google.com>
13642 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13644 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13646 * btrace.h (btrace_thread_flag): New.
13647 (struct btrace_thread_info) <flags>: New.
13648 * record-btrace.c (record_btrace_resume_thread)
13649 (record_btrace_find_thread_to_move, btrace_step_no_history)
13650 (btrace_step_stopped, record_btrace_start_replaying)
13651 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13652 (record_btrace_find_resume_thread): New.
13653 (record_btrace_resume, record_btrace_wait): Extend.
13654 (record_btrace_can_execute_reverse): New.
13655 (record_btrace_open): Fail in non-stop mode.
13656 (record_btrace_set_replay): Split into this, ...
13657 (record_btrace_stop_replaying): ... this, ...
13658 (record_btrace_clear_histories): ... and this.
13659 (init_record_btrace_ops): Init to_can_execute_reverse.
13660 * NEWS: Announce it.
13662 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13664 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13665 (forward_target_decr_pc_after_break)
13666 (target_decr_pc_after_break): New.
13667 * target.c (forward_target_decr_pc_after_break)
13668 (target_decr_pc_after_break): New.
13669 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13670 instead of gdbarch_decr_pc_after_break.
13671 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13672 instead of gdbarch_decr_pc_after_break.
13673 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13674 instead of gdbarch_decr_pc_after_break.
13675 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13676 instead of gdbarch_decr_pc_after_break.
13677 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13678 instead of gdbarch_decr_pc_after_break.
13679 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13680 instead of gdbarch_decr_pc_after_break.
13682 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13684 * btrace.c: Include regcache.h.
13685 (btrace_add_pc): New.
13686 (btrace_enable): Call btrace_add_pc.
13687 (btrace_is_empty): New.
13688 * btrace.h (btrace_is_empty): New.
13689 * record-btrace.c (require_btrace, record_btrace_info): Call
13692 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13694 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13695 Support delta reads.
13696 (linux_disable_btrace): Change return type.
13697 * common/linux-btrace.h (linux_read_btrace): Change parameters
13698 and return type to allow error reporting. Update users.
13699 (linux_disable_btrace): Change return type. Update users.
13700 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13702 (btrace_error): New.
13703 (btrace_block) <begin>: Comment on BEGIN == 0.
13704 * btrace.c (btrace_compute_ftrace): Start from the end of
13706 (btrace_stitch_trace, btrace_clear_history): New.
13707 (btrace_fetch): Read delta trace, return if replaying.
13708 (btrace_clear): Move clear history code to btrace_clear_history.
13709 (parse_xml_btrace): Throw an error if parsing failed.
13710 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13711 and return type to allow error reporting.
13712 (target_read_btrace): Change parameters and return type to allow
13714 * target.c (target_read_btrace): Update.
13715 * remote.c (remote_read_btrace): Support delta reads. Pass
13717 * NEWS: Announce it.
13719 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13721 * record.h (record_btrace_frame_unwind)
13722 (record_btrace_tailcall_frame_unwind): New declarations.
13723 * dwarf2-frame: Include record.h
13724 (dwarf2_frame_cfa): Throw an error for btrace frames.
13725 * record-btrace.c: Include hashtab.h.
13726 (btrace_get_bfun_name): New.
13727 (btrace_call_history): Call btrace_get_bfun_name.
13728 (struct btrace_frame_cache): New.
13730 (bfcache_hash, bfcache_eq, bfcache_new): New.
13731 (btrace_get_frame_function): New.
13732 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13733 (record_btrace_frame_this_id): Compute own id.
13734 (record_btrace_frame_prev_register): Provide PC, throw_error
13735 for all other registers.
13736 (record_btrace_frame_sniffer): Detect btrace frames.
13737 (record_btrace_tailcall_frame_sniffer): New.
13738 (record_btrace_frame_dealloc_cache): New.
13739 (record_btrace_frame_unwind): Add new functions.
13740 (record_btrace_tailcall_frame_unwind): New.
13741 (_initialize_record_btrace): Allocate cache.
13742 * btrace.c (btrace_clear): Call reinit_frame_cache.
13743 * NEWS: Announce it.
13745 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13747 * record-btrace.c (record_btrace_set_replay)
13748 (record_btrace_goto_begin, record_btrace_goto_end)
13749 (record_btrace_goto): New.
13750 (init_record_btrace_ops): Initialize them.
13751 * NEWS: Announce it.
13753 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13755 * record-btrace.c (record_btrace_find_new_threads)
13756 (record_btrace_thread_alive): New.
13757 (init_record_btrace_ops): Initialize to_find_new_threads and
13760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13762 * record-btrace.c (record_btrace_resume): New.
13763 (record_btrace_wait): New.
13764 (init_record_btrace_ops): Initialize to_wait and to_resume.
13766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13768 * record-btrace.c (record_btrace_xfer_partial)
13769 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13770 (record_btrace_allow_memory_access): New.
13771 (init_record_btrace_ops): Initialize new methods.
13772 * target.c (raw_memory_xfer_partial): Bail out if target reports
13773 that this memory is not available.
13775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13777 * target.h (target_ops) <to_insert_breakpoint>
13778 <to_remove_breakpoint>: Add target_ops parameter.
13779 (forward_target_insert_breakpoint): New.
13780 (forward_target_remove_breakpoint): New.
13781 (memory_remove_breakpoint, memory_insert_breakpoint):
13782 Add target_ops parameter.
13783 * target.c (target_insert_breakpoint): Split into this and ...
13784 (forward_target_insert_breakpoint): ... this.
13785 (target_remove_breakpoint): Split into this and ...
13786 (forward_target_remove_breakpoint): ... this.
13787 (debug_to_insert_breakpoint): Add target_ops parameter.
13788 Call forward_target_insert_breakpoint.
13789 (debug_to_remove_breakpoint): Add target_ops parameter.
13790 Call forward_target_remove_breakpoint.
13791 (update_current_target): Do not inherit or default to_insert_breakpoint
13792 and to_remove_breakpoint.
13793 * corelow.c (ignore): Add target_ops parameter.
13794 * exec.c (ignore): Add target_ops parameter.
13795 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13796 Add target_ops parameter.
13797 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13798 Add target_ops parameter.
13799 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13800 Add target_ops parameter.
13801 * record-full.c (record_full_beneath_to_insert_breakpoint)
13802 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13803 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13804 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13805 (record_full_core_remove_breakpoint): Add target_ops parameter.
13807 (record_full_beneath_to_insert_breakpoint_ops)
13808 (record_full_beneath_to_remove_breakpoint_ops)
13809 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13810 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13811 tmp_to_remove_breakpoint_ops,
13812 record_full_beneath_to_insert_breakpoint_ops, and
13813 record_full_beneath_to_remove_breakpoint_ops.
13814 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13815 (m32r_remove_breakpoint): Add target_ops parameter.
13816 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13817 Add target_ops parameter.
13818 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13819 Add target_ops parameter.
13821 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13822 Markus Metzger <markus.t.metzger@intel.com>
13824 * record-btrace.c: Include frame-unwind.h.
13825 (record_btrace_frame_unwind_stop_reason)
13826 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13827 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13829 (init_record_btrace_ops): Install it.
13831 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13833 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13836 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13838 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13841 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13843 * frame-unwind.c: Include target.h.
13844 (frame_unwind_try_unwinder): New function with code from ...
13845 (frame_unwind_find_by_frame): ... here. New variable
13846 unwinder_from_target, call also target_get_unwinder)
13847 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13848 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13849 * target.h (struct target_ops): New fields to_get_unwinder and
13850 to_get_tailcall_unwinder.
13851 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13853 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13855 * record-btrace.c (record_btrace_fetch_registers)
13856 (record_btrace_store_registers)
13857 (record_btrace_to_prepare_to_store): New.
13858 (init_record_btrace_ops): Add the above.
13860 2014-01-16 Tom Tromey <tromey@redhat.com>
13862 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13863 * target.h (struct target_ops) <to_prepare_to_store>: Add
13865 (target_prepare_to_store): Add argument.
13866 * target.c (debug_to_prepare_to_store): Add argument.
13867 (update_current_target): Update.
13868 * remote.c (remote_prepare_to_store): Add 'self' argument.
13869 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13870 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13871 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13872 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13874 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13875 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13876 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13877 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13878 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13882 * btrace.h (replay) <replay>: New.
13883 (btrace_is_replaying): New.
13884 * btrace.c (btrace_clear): Free replay iterator.
13885 (btrace_is_replaying): New.
13886 * record-btrace.c (record_btrace_is_replaying): New.
13887 (record_btrace_info): Print insn number if replaying.
13888 (record_btrace_insn_history): Start at replay position.
13889 (record_btrace_call_history): Start at replay position.
13890 (init_record_btrace_ops): Init to_record_is_replaying.
13892 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13894 * record-btrace.c (record_btrace_insn_history_range): Include
13896 (record_btrace_insn_history_from): Adjust range.
13897 (record_btrace_call_history_range): Include
13899 (record_btrace_call_history_from): Adjust range.
13900 * NEWS: Announce changes.
13902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13904 * record.h (enum record_print_flag)
13905 <record_print_indent_calls>: New.
13906 * record.c (get_call_history_modifiers): Recognize /c modifier.
13907 (_initialize_record): Document /c modifier.
13908 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13909 Reorder fields. Optionally indent the function name. Update
13911 * NEWS: Announce changes.
13913 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13915 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13919 * btrace.c (ftrace_new_function): Start counting at one.
13920 * record-btrace.c (record_btrace_info): Adjust number of calls
13922 * NEWS: Announce it.
13924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13926 * record-btrace.c (btrace_call_history_insn_range): Print
13927 insn range as [begin, end].
13929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13931 * btrace.h (struct btrace_func_link): New.
13932 (enum btrace_function_flag): New.
13933 (struct btrace_inst): Rename to ...
13934 (struct btrace_insn): ...this. Update all users.
13935 (struct btrace_func) <ibegin, iend>: Remove.
13936 (struct btrace_func_link): New.
13937 (struct btrace_func): Rename to ...
13938 (struct btrace_function): ...this. Update all users.
13939 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13940 (number, level, flags>: New.
13941 (struct btrace_insn_iterator): Rename to ...
13942 (struct btrace_insn_history): ...this.
13944 (struct btrace_insn_iterator, btrace_call_iterator): New.
13945 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13946 (struct btrace_target_info) <begin, end, level>
13947 <insn_history, call_history>: New.
13948 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13949 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13950 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13951 (btrace_call_number, btrace_call_begin, btrace_call_end)
13952 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13953 (btrace_find_function_by_number, btrace_set_insn_history)
13954 (btrace_set_call_history): New.
13955 * btrace.c (btrace_init_insn_iterator)
13956 (btrace_init_func_iterator, compute_itrace): Remove.
13957 (ftrace_print_function_name, ftrace_print_filename)
13958 (ftrace_skip_file): Change
13959 parameter to const.
13960 (ftrace_init_func): Remove.
13961 (ftrace_debug): Use new btrace_function fields.
13962 (ftrace_function_switched): Also consider gaining and
13963 losing symbol information).
13964 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13965 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13966 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13968 (ftrace_new_function): Move. Remove debug print.
13969 (ftrace_update_lines, ftrace_update_insns): New.
13970 (ftrace_update_function): Check for call, ret, and jump.
13971 (compute_ftrace): Renamed to ...
13972 (btrace_compute_ftrace): ...this. Rewritten to compute call
13974 (btrace_fetch, btrace_clear): Updated.
13975 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13976 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13977 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13978 (btrace_call_number, btrace_call_begin, btrace_call_end)
13979 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13980 (btrace_find_function_by_number, btrace_set_insn_history)
13981 (btrace_set_call_history): New.
13982 * record-btrace.c (require_btrace): Use new btrace thread
13984 (record_btrace_info, btrace_insn_history)
13985 (record_btrace_insn_history, record_btrace_insn_history_range):
13986 Use new btrace thread info fields and new iterator.
13987 (btrace_func_history_src_line): Rename to ...
13988 (btrace_call_history_src_line): ...this. Use new btrace
13989 thread info fields.
13990 (btrace_func_history): Rename to ...
13991 (btrace_call_history): ...this. Use new btrace thread info
13992 fields and new iterator.
13993 (record_btrace_call_history, record_btrace_call_history_range):
13994 Use new btrace thread info fields and new iterator.
13996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13998 * frame.h (frame_id_build_unavailable_stack_special): New.
13999 * frame.c (frame_id_build_unavailable_stack_special): New.
14001 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14003 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14004 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14005 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14007 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14008 (i386_insn_is_jump, i386_jmp_p): New.
14009 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14010 insn_is_jump to gdbarch.
14011 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14012 * gdbarch.h: Regenerated.
14013 * gdbarch.c: Regenerated.
14014 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14015 (default_insn_is_jump): New.
14016 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14017 (default_insn_is_jump): New.
14019 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14021 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14023 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14024 (btrace_read_type) <btrace_read_new>: Change to ...
14025 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14027 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14029 * common/linux-btrace.c (linux_read_btrace): Free trace from
14030 previous iteration.
14032 2014-01-15 Doug Evans <dje@google.com>
14034 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14037 2014-01-15 Tom Tromey <tromey@redhat.com>
14039 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14040 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14041 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14042 (set_objfile_main_name): New function.
14043 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14044 language_of_main>: New fields.
14045 (set_objfile_main_name): Declare.
14046 * symtab.c (find_main_name): Loop over objfiles to find the main
14048 (set_main_name): Now static.
14049 (get_main_info): Add comment.
14050 * symtab.h (set_main_name): Don't declare.
14052 2014-01-15 Tom Tromey <tromey@redhat.com>
14054 * symtab.c (main_progspace_key): New global.
14055 (struct main_info): New.
14056 (name_of_main, language_of_main): Remove.
14057 (get_main_info, main_info_cleanup): New function.
14058 (set_main_name, main_name, main_language): Use get_main_info.
14059 (_initialize_symtab): Initialize main_progspace_key.
14061 2014-01-15 Tom Tromey <tromey@redhat.com>
14063 * dbxread.c (process_one_symbol): Update.
14064 * dwarf2read.c (read_partial_die): Update.
14065 * symfile.c (set_initial_language): Call main_language.
14066 * symtab.c (language_of_main): Now static.
14067 (set_main_name): Add 'lang' parameter.
14068 (find_main_name): Update.
14069 (main_language): New function.
14070 (symtab_observer_executable_changed): Update.
14071 * symtab.h (set_main_name): Update.
14072 (language_of_main): Remove.
14073 (main_language): Declare.
14075 2014-01-15 Tom Tromey <tromey@redhat.com>
14077 * symfile.c (init_entry_point_info): Use new "initialized" field.
14079 * objfiles.h (struct entry_point) <initialized>: New field.
14080 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14081 (struct objfile) <ei>: ...here. Remove.
14082 * objfiles.c (entry_point_address_query): Update.
14084 2014-01-15 Tom Tromey <tromey@redhat.com>
14086 * objfiles.c (entry_point_address_query): Relocate entry point
14088 (objfile_relocate1): Do not relocate entry point address.
14089 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14090 <the_bfd_section_index>: New field.
14091 * symfile.c (init_entry_point_info): Find the entry point's
14094 2014-01-15 Tom Tromey <tromey@redhat.com>
14096 * solib-frv.c (enable_break): Use entry_point_address_query.
14098 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14100 * NEWS: Add note on improved process record-replay on
14101 arm*-linux* targets.
14103 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14105 * arm-tdep.c (enum arm_record_result): New enum.
14106 (arm_record_unsupported_insn): New function.
14107 (arm_record_coproc_data_proc): Removed.
14108 (thumb2_record_ld_st_multiple): New function.
14109 (thumb2_record_ld_st_dual_ex_tbb): New function.
14110 (thumb2_record_data_proc_sreg_mimm): New function.
14111 (thumb2_record_ps_dest_generic): New function.
14112 (thumb2_record_branch_misc_cntrl): New function.
14113 (thumb2_record_str_single_data): New function.
14114 (thumb2_record_ld_mem_hints): New function.
14115 (thumb2_record_ld_word): New function.
14116 (thumb2_record_lmul_lmla_div): New function.
14117 (thumb2_record_decode_insn_handler): New function.
14118 (decode_insn): Add thumb32 instruction handlers.
14120 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14122 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14123 (struct arm_linux_record_tdep): Declare.
14124 (arm_canonicalize_syscall): New function.
14125 (arm_all_but_pc_registers_record): New function.
14126 (arm_linux_syscall_record): New function.
14127 (arm_linux_init_abi): Add syscall recording constructs.
14128 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14129 decoding. (arm_record_coproc_data_proc): Update arm syscall
14131 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14132 <arm_syscall_record>: New field.
14133 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14136 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14138 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14139 register for push instruction recording.
14141 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14143 * arm-tdep.c (thumb_record_misc): Update to correct logical
14144 error while recording ldm, ldmia and pop instructions.
14146 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14148 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14150 2014-01-15 Pedro Alves <palves@redhat.com>
14152 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14153 (go32_resume, go32_fetch_registers, store_register)
14154 (go32_store_registers, go32_prepare_to_store)
14155 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14156 (go32_create_inferior, go32_can_run, go32_terminal_init)
14157 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14160 2014-01-15 Tom Tromey <tromey@redhat.com>
14162 * target.h (async_callback_ftype): New typedef.
14163 (struct target_ops) <to_async>: Use it.
14165 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14167 * python/py-value.c (get_field_type): Remove unnecessary curly
14168 braces for single-statement if block.
14170 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14172 * python/py-type.c (convert_field): Add missing empty line
14173 after declarations.
14175 2014-01-14 Doug Evans <dje@google.com>
14177 * symfile.h (expand_symtabs_matching): Renamed from
14178 expand_partial_symbol_names. Update prototype.
14179 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14180 * symfile.c (expand_symtabs_matching): Renamed from
14181 expand_partial_symbol_names. New args file_matcher, kind.
14182 Rename arg fun to symbol_matcher.
14183 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14184 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14185 ada_expand_partial_symbol_name.
14186 (ada_make_symbol_completion_list): Update to call
14187 expand_symtabs_matching.
14188 (ada_add_global_exceptions): Call expand_symtabs_matching.
14189 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14190 call map_symbol_filenames.
14191 * symtab.c (sources_info): Update to call map_symbol_filenames.
14192 (search_symbols): Call expand_symtabs_matching.
14193 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14194 (default_make_symbol_completion_list_break_on): Update to call
14195 expand_symtabs_matching.
14196 (make_source_files_completion_list): Update to call
14197 map_symbol_filenames.
14199 2014-01-14 Doug Evans <dje@google.com>
14201 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14202 (expand_symtabs_symbol_matcher_ftype): New typedef.
14203 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14204 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14205 * symfile.c (expand_partial_symbol_names): Update to use
14206 expand_symtabs_symbol_matcher_ftype.
14207 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14208 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14209 Arg name_matcher renamed to symbol_matcher.
14210 * psymtab.c (recursively_search_psymtabs): Update to use
14211 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14213 (expand_symtabs_matching_via_partial): Update to use
14214 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14215 Arg name_matcher renamed to symbol_matcher.
14217 2014-01-14 Doug Evans <dje@google.com>
14219 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14220 (map_partial_symbol_filenames): Ditto.
14221 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14222 (map_partial_symbol_filenames): Ditto.
14223 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14224 (map_partial_symbol_filenames): Ditto.
14225 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14226 (map_partial_symbol_filenames): Ditto.
14227 * symtab.c: Delete #include "psymtab.h".
14229 2014-01-14 Pedro Alves <palves@redhat.com>
14230 Tom Tromey <tromey@redhat.com>
14232 * infrun.c (use_displaced_stepping): Use find_record_target
14233 instead of RECORD_IS_USED.
14234 (adjust_pc_after_break): Use record_full_is_used instead of
14236 * record-btrace.c (record_btrace_open): Call record_preopen
14237 instead of checking RECORD_IS_USED.
14238 * record-full.c (record_full_shortname)
14239 (record_full_core_shortname): New globals.
14240 (record_full_is_used): New function.
14241 (find_full_open): Call record_preopen instead of checking
14243 (init_record_full_ops): Set the target's shortname to
14244 record_full_shortname.
14245 (init_record_full_core_ops): Set the target's shortname to
14246 record_full_core_shortname.
14247 * record-full.h (record_full_is_used): Declare.
14248 * record.c (find_record_target): Make extern.
14249 (record_preopen): New function.
14250 * record.h (RECORD_IS_USED): Delete macro.
14251 (find_record_target, record_preopen): Declare functions.
14253 2014-01-14 Yao Qi <yao@codesourcery.com>
14255 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14256 'len''s type to ULONGEST.
14257 (core_xfer_shared_libraries_aix): Likewise.
14258 * gdbarch.c, gdbarch.h: Regenerated.
14259 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14260 Change type of 'len' to ULONGEST.
14261 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14262 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14264 2014-01-14 Yao Qi <yao@codesourcery.com>
14266 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14267 type of 'len' to ULONGEST.
14268 (linux_xfer_osdata_processgroups): Likewise.
14269 (linux_xfer_osdata_threads): Likewise.
14270 (linux_xfer_osdata_fds): Likewise.
14271 (linux_xfer_osdata_isockets): Likewise.
14272 (linux_xfer_osdata_shm): Likewise.
14273 (linux_xfer_osdata_sem): Likewise.
14274 (linux_xfer_osdata_msg): Likewise.
14275 (linux_common_xfer_osdata): Likewise.
14276 (struct osdata_type) <getter>: Likewise.
14277 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14280 2014-01-14 Yao Qi <yao@codesourcery.com>
14282 * target.h (target_xfer_partial_ftype): Update.
14283 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14285 * aix-thread.c (aix_thread_xfer_partial): Change type of
14286 argument 'len' to ULONGEST.
14287 * auxv.c (procfs_xfer_auxv): Likewise.
14288 (ld_so_xfer_auxv): Likewise.
14289 (memory_xfer_auxv): Likewise.
14290 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14291 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14292 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14293 * corelow.c (core_xfer_partial): Likewise.
14294 * ctf.c (ctf_xfer_partial): Likewise.
14295 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14297 (darwin_read_dyld_info): Likewise.
14298 (darwin_xfer_partial): Likewise.
14299 * exec.c (section_table_xfer_memory_partial): Likewise.
14300 (exec_xfer_partial): Likewise.
14301 * exec.h (section_table_xfer_memory_partial): Update
14303 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14304 instead of plongest.
14305 (gnu_xfer_partial): Likewise.
14306 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14307 (ia64_hpux_xfer_solib_got): Likewise.
14308 (ia64_hpux_xfer_partial): Likewise.
14309 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14310 * inf-ptrace.c (inf_ptrace_xfer_partial):
14311 * inf-ttrace.c (inf_ttrace_xfer_partial):
14312 * linux-nat.c (linux_xfer_siginfo): Likewise.
14313 (linux_nat_xfer_partial): Likewise.
14314 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14315 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14316 * monitor.c (monitor_xfer_memory): Likewise.
14317 (monitor_xfer_partial): Likewise.
14318 * procfs.c (procfs_xfer_partial): Likewise.
14319 * record-full.c (record_full_xfer_partial): Likewise.
14320 (record_full_core_xfer_partial): Likewise.
14321 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14322 instead of plongest.
14323 (gdbsim_xfer_partial): Likewise.
14324 * remote.c (remote_xfer_partial): Likewise.
14325 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14326 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14328 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14329 (rs6000_xfer_shared_libraries): Likewise.
14330 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14331 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14332 (sparc_xfer_partial): Likewise.
14333 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14334 (spu_xfer_partial): Likewise.
14335 * spu-multiarch.c (spu_xfer_partial): Likewise.
14336 * target.c (target_read_live_memory): Likewise.
14337 (memory_xfer_live_readonly_partial): Likewise.
14338 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14339 (target_xfer_partial, default_xfer_partial): Likewise.
14340 (current_xfer_partial): Likewise.
14341 * tracepoint.c (tfile_xfer_partial): Likewise.
14342 * windows-nat.c (windows_xfer_memory): Likewise. Call
14343 pulongest instead of plongest.
14344 (windows_xfer_partial): Likewise.
14345 (windows_xfer_shared_libraries): Likewise.
14347 2014-01-14 Yao Qi <yao@codesourcery.com>
14349 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14350 target_xfer_partial_ftype.
14352 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14356 * valops.c (value_struct_elt_bitpos): New function
14357 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14358 object to 'None' if the field name is an empty string ("").
14359 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14360 attribute to look for a field when 'name' is 'None'.
14361 (get_field_type): New function
14363 2014-01-13 Doug Evans <dje@google.com>
14366 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14367 (try_open_dwop_file): Ditto.
14368 * gdb_bfd.c: #include "vec.h".
14369 (bfdp): New typedef.
14370 (struct gdb_bfd_data): New member included_bfds.
14371 (gdb_bfd_unref): Unref all included bfds.
14372 (gdb_bfd_record_inclusion): New function.
14373 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14375 2014-01-13 Tom Tromey <tromey@redhat.com>
14377 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14379 2014-01-13 Tom Tromey <tromey@redhat.com>
14381 * defs.h (use_windows): Remove.
14382 * gdb.c (main): Update.
14383 * main.c (captured_main, gdb_main): Update.
14384 * main.h (struct captured_main_args) <use_windows>: Remove.
14385 * top.c (use_windows): Remove.
14387 2014-01-13 Tom Tromey <tromey@redhat.com>
14389 * defs.h (deprecated_flush_hook): Remove.
14391 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14394 * linux-thread-db.c (try_thread_db_load): Add parameter
14395 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14396 (try_thread_db_load_from_pdir_1): Move it there from here.
14397 (try_thread_db_load_from_sdir): Update caller.
14398 (try_thread_db_load_from_dir): Move it there from here.
14400 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14402 * regformats/regdat.sh: Always rewrite the register file.
14404 2014-01-13 Pedro Alves <palves@redhat.com>
14406 * Makefile.in (CHECK_HEADERS): New variable.
14407 (check-headers:): New rule.
14409 2014-01-13 Tom Tromey <tromey@redhat.com>
14411 * cli/cli-setshow.c (do_set_command): Update.
14412 * defs.h (deprecated_set_hook): Remove.
14413 * top.c (deprecated_set_hook): Remove.
14415 2014-01-13 Pedro Alves <palves@redhat.com>
14417 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14418 the tracepoint if the PC is a pseudo-register.
14420 2014-01-13 Tom Tromey <tromey@redhat.com>
14422 * defs.h (XCALLOC): Remove.
14423 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14424 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14425 * dwarf2loc.c (allocate_piece_closure): Likewise.
14426 * elfread.c (elf_symfile_segments): Likewise.
14427 (elf_symfile_segments): Likewise.
14428 * gdbtypes.c (copy_type_recursive): Likewise.
14429 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14430 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14431 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14433 * mt-tdep.c (mt_gdbarch_init): Likewise.
14434 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14436 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14437 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14438 * registry.c (registry_alloc_data): Likewise.
14439 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14440 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14441 * serial.c (serial_fdopen_ops): Likewise.
14442 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14444 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14445 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14448 2014-01-13 Tom Tromey <tromey@redhat.com>
14450 * defs.h (XMALLOC): Remove.
14451 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14452 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14453 * cli-out.c (struct ui_out *): Likewise.
14454 * cli/cli-dump.c (add_dump_command): Likewise.
14455 (add_dump_command): Likewise.
14456 * complaints.c (get_complaints): Likewise.
14457 (find_complaint): Likewise.
14458 * dwarf2-frame.c (execute_cfa_program): Likewise.
14459 * dwarf2read.c (abbrev_table_read_table): Likewise.
14460 * gdbarch.sh: Likewise.
14461 * gdbarch.c: Rebuild.
14462 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14463 * interps.c (interp_new): Likewise.
14464 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14465 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14466 * mi/mi-console.c (mi_console_file_new): Likewise.
14467 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14468 * mi/mi-out.c (mi_out_new): Likewise.
14469 * mi/mi-parse.c (mi_parse): Likewise.
14470 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14471 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14472 * observer.c (xalloc_observer_list_node): Likewise.
14473 * regcache.c (regcache_xmalloc_1): Likewise.
14474 * reggroups.c (reggroup_new): Likewise.
14475 (_initialize_reggroup): Likewise.
14476 * registry.c (register_data_with_cleanup): Likewise.
14477 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14478 * ser-base.c (serial_ttystate): Likewise.
14479 * ser-mingw.c (make_pipe_state): Likewise.
14480 * ser-pipe.c (pipe_open): Likewise.
14481 * serial.c (serial_open): Likewise.
14482 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14483 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14484 (tui_alloc_win_info): Likewise.
14485 (tui_add_content_elements): Likewise.
14486 * tui/tui-file.c (tui_file_new): Likewise.
14487 * tui/tui-out.c (tui_out_new): Likewise.
14488 * ui-file.c (mem_file_new): Likewise.
14489 * ui-out.c (push_level): Likewise.
14490 (make_cleanup_ui_out_end): Likewise.
14491 (append_header_to_list): Likewise.
14492 (ui_out_new): Likewise.
14493 * user-regs.c (user_reg_add_builtin): Likewise.
14495 2014-01-13 Tom Tromey <tromey@redhat.com>
14497 * defs.h (XZALLOC): Remove.
14498 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14499 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14500 (get_ada_tasks_inferior_data): Likewise.
14501 * auto-load.c (get_auto_load_pspace_data): Likewise.
14502 * auxv.c (get_auxv_inferior_data): Likewise.
14503 * bfd-target.c (target_bfd_reopen): Likewise.
14504 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14505 (deprecated_insert_raw_breakpoint): Likewise.
14506 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14507 * corelow.c (core_open): Likewise.
14508 * darwin-nat.c (darwin_check_new_threads): Likewise.
14509 (darwin_attach_pid): Likewise.
14510 * dummy-frame.c (dummy_frame_push): Likewise.
14511 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14512 * dwarf2loc.c (allocate_piece_closure): Likewise.
14513 * elfread.c (elf_symfile_segments): Likewise.
14514 * eval.c (ptrmath_type_p): Likewise.
14515 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14516 * gdbtypes.c (alloc_type_arch): Likewise.
14517 (alloc_type_instance): Likewise.
14518 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14519 * inf-child.c (inf_child_can_use_agent): Likewise.
14520 * inflow.c (get_inflow_inferior_data): Likewise.
14521 * infrun.c (save_infcall_suspend_state): Likewise.
14522 * jit.c (jit_reader_load): Likewise.
14523 (get_jit_objfile_data): Likewise.
14524 (get_jit_program_space_data): Likewise.
14525 (jit_object_open_impl): Likewise.
14526 (jit_symtab_open_impl): Likewise.
14527 (jit_block_open_impl): Likewise.
14528 (jit_frame_sniffer): Likewise.
14529 * linux-fork.c (add_fork): Likewise.
14530 * maint.c (make_command_stats_cleanup): Likewise.
14531 * objfiles.c (get_objfile_pspace_data): Likewise.
14532 * opencl-lang.c (struct lval_closure): Likewise.
14533 * osdata.c (osdata_start_osdata): Likewise.
14534 * progspace.c (new_address_space): Likewise.
14535 (add_program_space): Likewise.
14536 * remote-sim.c (get_sim_inferior_data): Likewise.
14537 * sh-tdep.c (sh_gdbarch_init): Likewise.
14538 * skip.c (Ignore): Likewise.
14539 (skip_delete_command): Likewise.
14540 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14541 (library_list_start_library): Likewise.
14542 (solib_aix_current_sos): Likewise.
14543 * solib-darwin.c (get_darwin_info): Likewise.
14544 (darwin_current_sos): Likewise.
14545 * solib-dsbt.c (get_dsbt_info): Likewise.
14546 * solib-ia64-hpux.c (new_so_list): Likewise.
14547 (ia64_hpux_get_solib_linkage_addr): Likewise.
14548 * solib-spu.c (append_ocl_sos): Likewise.
14549 (spu_current_sos): Likewise.
14550 * solib-svr4.c (get_svr4_info): Likewise.
14551 (svr4_keep_data_in_core): Likewise.
14552 (library_list_start_library): Likewise.
14553 (svr4_default_sos): Likewise.
14554 (svr4_read_so_list): Likewise.
14555 * solib-target.c (library_list_start_library): Likewise.
14556 (solib_target_current_sos): Likewise.
14557 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14558 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14559 * symfile.c (default_symfile_segments): Likewise.
14560 * target-descriptions.c (tdesc_data_init): Likewise.
14561 (tdesc_create_reg): Likewise.
14562 (struct tdesc_type *): Likewise.
14563 (tdesc_create_vector): Likewise.
14564 (tdesc_set_struct_size): Likewise.
14565 (struct tdesc_type *): Likewise.
14566 (tdesc_free_feature): Likewise.
14567 (tdesc_create_feature): Likewise.
14568 * windows-nat.c (windows_add_thread): Likewise.
14569 (windows_make_so): Likewise.
14570 * xml-support.c (gdb_xml_body_text): Likewise.
14571 (gdb_xml_create_parser_and_cleanup): Likewise.
14572 (xml_process_xincludes): Likewise.
14573 * xml-syscall.c (allocate_syscalls_info): Likewise.
14574 (syscall_create_syscall_desc): Likewise.
14576 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14578 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14579 function, with code from i386_stap_parse_special_token.
14580 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14581 (i386_stap_parse_special_token): Move code to the two functions
14582 above; simplify it.
14584 2014-01-09 Pedro Alves <palves@redhat.com>
14585 Hui Zhu <hui@codesourcery.com>
14588 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14589 bp_err_string. Don't mark the location shlib_disabled if the
14590 error thrown wasn't a generic or memory error. Catch errors
14591 thrown while inserting breakpoints in overlayed code. Output
14592 error message of software breakpoints.
14593 * remote.c (remote_insert_breakpoint): If this breakpoint has
14594 target-side commands but this stub doesn't support Z0 packets,
14595 throw NOT_SUPPORTED_ERROR error.
14596 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14597 * target.h (target_insert_breakpoint): Extend comment.
14598 (target_insert_hw_breakpoint): Add comment.
14600 2014-01-08 Pedro Alves <palves@redhat.com>
14602 * remote.c (remote_add_thread): Add threads silently if starting
14604 (remote_notice_new_inferior): If in all-stop, and starting up,
14605 don't call notice_new_inferior.
14606 (get_current_thread): New function, factored out from ...
14607 (add_current_inferior_and_thread): ... this. Adjust.
14608 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14609 found any thread, then select the remote's current thread as GDB's
14610 current thread too.
14612 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14614 * NEWS: Create a new section for the next release branch.
14615 Rename the section of the current branch, now that it has
14618 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14620 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14621 * version.in: Bump version to 7.7.50.DATE-cvs.
14623 2014-01-08 Yao Qi <yao@codesourcery.com>
14625 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14626 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14627 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14629 2014-01-08 Yao Qi <yao@codesourcery.com>
14631 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14632 return value of bfd_get_filename to symbol_file_add_from_bfd.
14634 2014-01-08 Pierre Muller <muller@sourceware.org>
14637 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14638 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14639 to prim_record_mininal_symbol_and_info.
14640 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14641 in call to prim_record_minimal_symbol_and_info.
14642 (read_pe_exported_syms): Set index field of section_data.
14644 2014-01-07 Andrew Pinski <apinski@cavium.com>
14646 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14647 * features/aarch64.c: Regenerate.
14649 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14651 * target.c (return_null): Define.
14652 (update_current_target): Use it instead of return_zero for
14653 functions that return a pointer.
14655 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14657 * source.c (add_path): Fix check for duplicated paths in the previously
14660 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14662 * ada-lang.c: Remove duplicated include statements.
14663 * alphabsd-nat.c: Ditto.
14664 * amd64-darwin-tdep.c: Ditto.
14665 * amd64fbsd-nat.c: Ditto.
14666 * auto-load.c: Ditto.
14668 * breakpoint.c: Ditto.
14669 * dbxread.c: Ditto.
14670 * fork-child.c: Ditto.
14671 * gdb_usleep.c: Ditto.
14672 * i386-darwin-tdep.c: Ditto.
14673 * i386fbsd-nat.c: Ditto.
14675 * inferior.c: Ditto.
14676 * jv-lang.c: Ditto.
14677 * linux-nat.c: Ditto.
14678 * linux-tdep.c: Ditto.
14679 * m68kbsd-nat.c: Ditto.
14680 * m68klinux-nat.c: Ditto.
14681 * microblaze-tdep.c: Ditto.
14682 * mips-linux-tdep.c: Ditto.
14683 * mn10300-tdep.c: Ditto.
14684 * nto-tdep.c: Ditto.
14685 * opencl-lang.c: Ditto.
14687 * printcmd.c: Ditto.
14688 * regcache.c: Ditto.
14689 * remote-m32r-sdi.c: Ditto.
14691 * symfile.c: Ditto.
14693 * tilegx-linux-nat.c: Ditto.
14694 * tilegx-tdep.c: Ditto.
14695 * tracepoint.c: Ditto.
14697 * vaxbsd-nat.c: Ditto.
14698 * windows-nat.c: Ditto.
14699 * xtensa-tdep.c: Ditto.
14701 2014-01-07 Yao Qi <yao@codesourcery.com>
14703 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14705 2014-01-07 Yao Qi <yao@codesourcery.com>
14706 Joel Brobecker <brobecker@adacore.com>
14708 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14709 (pdc_write_regs): Likewise.
14710 (fetch_regs_kernel_thread): Likewise.
14711 (store_regs_kernel_thread): Likewise.
14713 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14715 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14716 tagged type objects to their actual type.
14718 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14720 * ada-valprint.c (print_field_values): Add "language" parameter.
14721 Update calls to print_field_values and print_variant_part.
14722 Pass new parameter "language" in call to val_print instead
14723 of "current_language". Replace call to ada_val_print by call
14725 (print_variant_part): Add "language" parameter.
14726 (ada_val_print_struct_union): Update call to print_field_values.
14728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14730 * ada-valprint.c (ui_memcpy): Delete.
14731 (ada_print_floating): Update documentation. Add empty line
14732 between between function documentation and implementation.
14733 Delete variable "buffer". Use ui_file_xstrdup in place of
14734 ui_file_put. Minor adjustments following this change.
14736 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14738 * ada-valprint.c (ada_val_print_string): New function,
14739 extracted from ada_val_print_array.
14740 (ada_val_print_array): Replace extracted code by call
14741 to ada_val_print_string followed by a return. Move
14742 "else" branch to the function's top block.
14744 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14746 * ada-valprint.c (ada_val_print_array): Move implementation
14747 down. Rename parameter "offset" and "val" into "offset_aligned"
14748 and "original_value" respectively. Add parameter "offset".
14750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14752 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14753 re-organizing the code. Change the "???" message printed
14754 when target type is a TYPE_CODE_UNDEF into
14755 "<ref to undefined type>".
14757 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14759 * ada-valprint.c (print_record): Delete, implementation inlined...
14760 (ada_val_print_struct_union): ... here. Remove call to
14761 ada_check_typedef in inlined implementation.
14763 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14765 * ada-valprint.c (ada_val_print_gnat_array): New function,
14766 extracted from ada_val_print_1;
14767 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14768 (ada_val_print_flt, ada_val_print_struct_union)
14769 (ada_val_print_ref): Likewise.
14770 (ada_val_print_1): Delete variables i and elttype.
14771 Replace extracted-out code by call to corresponding
14774 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14776 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14778 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14780 * ada-valprint.c (ada_val_print_1): Replace calls to
14781 ada_val_print_1 by calls to val_print.
14783 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14785 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14786 Update calls to self accordingly. Replace calls to c_val_print
14787 by calls to val_print.
14789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14791 * ada-valprint.c (print_record): Delete declaration.
14792 (adjust_type_signedness, ada_val_print_1): Likewise.
14793 (ada_val_print): Move function implementation down.
14794 (print_variant_part, print_field_values, print_record):
14795 Move function implementation up.
14797 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14799 * python/py-type.c (typy_get_name): New function.
14800 (type_object_getset): Add entry for attribute "name".
14801 * NEWS: Add entry mentioning this new attribute.
14803 2014-01-07 Yao Qi <yao@codesourcery.com>
14805 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14808 2014-01-07 Yao Qi <yao@codesourcery.com>
14810 * gnu-nat.c (info_port_rights): Add qualifier const to
14813 2014-01-07 Yao Qi <yao@codesourcery.com>
14815 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14817 2014-01-07 Yao Qi <yao@codesourcery.com>
14819 * gnu-nat.c (make_inf) Update declaration.
14820 (make_inf): Make it static.
14821 (inf_set_traced): Likewise.
14822 (inf_port_to_thread, inf_task_died_status): Likewise.
14824 2014-01-07 Yao Qi <yao@codesourcery.com>
14826 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14828 2014-01-07 Yao Qi <yao@codesourcery.com>
14830 * gnu-nat.c (_initialize_gnu_nat): Declare.
14832 2014-01-07 Yao Qi <yao@codesourcery.com>
14834 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14836 (struct gdbarch_info) <byte_order>: Change type to
14838 <byte_order_for_code>: Likewise.
14839 * gdbarch.c, gdbarch.h: Regenerated.
14841 2014-01-06 Sasha Smundak <asmundak@google.com>
14843 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14845 2014-01-06 Tom Tromey <tromey@redhat.com>
14847 * doublest.c (convert_doublest_to_floatformat): Use const, not
14849 * somread.c (som_symtab_read): Likewise.
14851 2014-01-07 Hui Zhu <hui@codesourcery.com>
14853 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14854 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14855 (gdb_bfd_fopen): Ditto.
14856 (gdb_bfd_openr): Ditto.
14857 (gdb_bfd_openw): Ditto.
14858 (gdb_bfd_openr_iovec): Ditto.
14859 (gdb_bfd_fdopenr): Ditto.
14860 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14861 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14863 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14865 * symfile-mem.c (symbol_file_add_from_memory): Removed
14866 gdb_bfd_stash_filename.
14868 2014-01-03 Doug Evans <dje@google.com>
14870 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14873 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14875 Update year range in copyright notice of all files.
14877 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14879 * top.c (print_gdb_version): Set copyright year to 2014.
14881 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14883 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14885 For older changes see ChangeLog-2013.
14891 version-control: never