1 2014-11-12 Pedro Alves <palves@redhat.com>
3 Mark locations as permanent, not the whole breakpoint.
4 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
5 (mark_breakpoints_out): Don't mark permanent breakpoints as
7 (breakpoint_init_inferior): Use mark_breakpoints_out.
8 (breakpoint_here_p): Adjust.
9 (bpstat_stop_status, describe_other_breakpoints): Remove handling
10 of permanent breakpoints.
11 (make_breakpoint_permanent): Mark each location as permanent,
12 instead of marking the breakpoint.
13 (add_location_to_breakpoint): If the location is permanent, mark
14 it as such, and as inserted.
15 (init_breakpoint_sal): Don't make the breakpoint permanent here.
16 (bp_location_compare, update_global_location_list): Adjust.
17 (update_breakpoint_locations): Don't make the breakpoint permanent
19 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
21 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
22 (struct bp_location) <permanent>: New field.
23 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
24 reference to bp_permanent.
26 2014-11-12 Pedro Alves <palves@redhat.com>
28 * arch-utils.c (default_skip_permanent_breakpoint): New function.
29 * arch-utils.h (default_skip_permanent_breakpoint): New
31 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
32 Install default_skip_permanent_breakpoint as default method.
33 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
34 (i386_gdbarch_init): Don't install it.
35 * infrun.c (resume): Assume there's always a
36 gdbarch_skip_permanent_breakpoint implementation.
37 * gdbarch.h, gdbarch.c: Regenerate.
39 2014-11-11 Daniel Colascione <dancol@dancol.org>
41 Warn about cross-PID-namespace debugging.
42 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
43 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
44 * linux-thread-db.c (check_pid_namespace_match): New function.
45 (thread_db_inferior_created): Call it.
47 2014-11-10 Doug Evans <xdje42@gmail.com>
49 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
50 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
52 2014-11-10 Doug Evans <xdje42@gmail.com>
54 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
56 2014-11-10 Doug Evans <xdje42@gmail.com>
59 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
60 (lookup_static_symbol): Move definition to new location and rewrite.
61 (lookup_symbol_in_objfile): New function.
62 (lookup_symbol_global_iterator_cb): Call it.
64 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
66 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
68 2014-11-07 Pedro Alves <palves@redhat.com>
70 * infrun.c (process_event_stop_test) <subroutine check>: Don't
71 check if we did a "nexti" inside a prologue.
72 * symtab.c (in_prologue): Delete function.
73 * symtab.h (in_prologue): Delete declaration.
75 2014-11-06 Doug Evans <xdje42@gmail.com>
77 * symtab.h (lookup_global_symbol): Improve function comment.
79 2014-11-06 Doug Evans <xdje42@gmail.com>
81 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
83 * symtab.h (lookup_global_symbol): Update decl.
84 (lookup_static_symbol): Move decl to better location.
86 2014-11-06 Doug Evans <xdje42@gmail.com>
88 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
90 2014-11-06 Doug Evans <xdje42@gmail.com>
92 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
94 (lookup_symbol_in_all_objfiles): Renamed from
95 lookup_symbol_aux_symtabs. All callers updated.
96 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
98 (lookup_symbol_in_objfile_symtabs): Renamed from
99 lookup_symbol_aux_objfile. All callers updated.
101 2014-11-06 Doug Evans <xdje42@gmail.com>
103 * symtab.c (lookup_symbol_in_block): Renamed from
104 lookup_symbol_aux_block. All callers updated.
106 2014-11-06 Doug Evans <xdje42@gmail.com>
108 * symtab.c (lookup_static_symbol): Renamed from
109 lookup_static_symbol_aux. All callers updated.
110 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
113 2014-11-06 Doug Evans <xdje42@gmail.com>
115 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
116 * block.c (block_lookup_symbol): Use it.
117 * cp-support.c (make_symbol_overload_list_block): Use it.
118 * symtab.c (iterate_over_symbols): Use it.
120 2014-11-06 Doug Evans <xdje42@gmail.com>
122 * symtab.c (lookup_block_symbol): Moved to ...
123 * block.c (block_lookup_symbol): ... here and renamed.
125 * block.h (block_lookup_symbol): Declare.
126 * symtab.h (lookup_block_symbol): Delete.
128 2014-11-06 Doug Evans <xdje42@gmail.com>
130 * ada-lang.c (ada_make_symbol_completion_list): Use
131 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
132 * symtab.c (lookup_objfile_from_block): Ditto.
134 2014-11-06 Doug Evans <xdje42@gmail.com>
136 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
139 2014-11-06 Doug Evans <xdje42@gmail.com>
141 * objfiles.c (get_objfile_arch): Constify.
142 * objfiles.h (get_objfile_arch): Update prototype.
143 * solib.c (solib_global_lookup): Fetch arch from objfile,
146 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
148 * nios2-tdep.c (wild_insn): Delete.
149 (profiler_insn, irqentry_insn): Delete.
150 (nios2_match_sequence): Delete.
151 (nios2_analyze_prologue): Update comments. Remove matching
152 of obsolete profiler_insn and irqentry_insn sequences.
154 2014-11-05 Alan Modra <amodra@gmail.com>
156 * charset.c (convert_between_encodings): Shrink obstack using
158 * minsyms.c (install_minimal_symbols): Likewise.
159 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
160 to char* before doing pointer arithmetic.
162 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
164 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
166 2014-11-04 Pedro Alves <palves@redhat.com>
168 * breakpoint.c (breakpoint_thread_match): Delete function.
169 * breakpoint.h (breakpoint_thread_match): Delete declaration.
171 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
174 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
175 the method args also under EVAL_SKIP when evaluating method
176 calls under EVAL_SKIP.
178 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
180 * dwarf2loc.c (read_pieced_value): Do big endian
181 processing only if gdb_regnum is not -1.
182 (write_pieced_value): Ditto.
184 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
186 * arm-linux-tdep.c (arm_linux_init_abi): Use
187 info.byte_order_for_code to choose endianity of breakpoint
188 instructions snippets.
190 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
192 * arm-tdep.c (extract_arm_insn): Use
193 gdbarch_byte_order_for_code to read arm instruction.
195 2014-11-02 Doug Evans <xdje42@gmail.com>
197 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
199 2014-11-02 Doug Evans <xdje42@gmail.com>
201 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
202 main_subfile before returning.
204 2014-10-31 Doug Evans <xdje42@gmail.com>
206 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
207 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
209 2014-10-31 Doug Evans <xdje42@gmail.com>
211 * valops.c (value_cast_pointers): Fix whitespace.
212 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
215 2014-10-30 Doug Evans <dje@google.com>
217 * NEWS: Mention ability add attributes to gdb.Objfile and
218 gdb.Progspace objects.
219 * python/py-objfile.c (objfile_object): New member dict.
220 (objfpy_dealloc): Py_XDECREF dict.
221 (objfpy_initialize): Initialize dict.
222 (objfile_getset): Add __dict__.
223 (objfile_object_type): Set tp_dictoffset member.
224 * python/py-progspace.c (progspace_object): New member dict.
225 (pspy_dealloc): Py_XDECREF dict.
226 (pspy_initialize): Initialize dict.
227 (pspace_getset): Add __dict__.
228 (pspace_object_type): Set tp_dictoffset member.
230 2014-10-30 Yao Qi <yao@codesourcery.com>
232 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
233 replace '\\' with '\\\\'.
235 2014-10-29 Joel Brobecker <brobecker@adacore.com>
239 2014-10-29 Pedro Alves <palves@redhat.com>
242 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
243 instead of assuming a thread with a stepping range is always
246 2014-10-29 Pedro Alves <palves@redhat.com>
249 * event-top.c (change_line_handler): Call
250 gdb_rl_callback_handler_remove instead of
251 rl_callback_handler_remove.
252 (callback_handler_installed): New global.
253 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
254 (gdb_rl_callback_handler_reinstall): New functions.
255 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
256 gdb_rl_callback_handler_install instead of
257 rl_callback_handler_remove and rl_callback_handler_install.
258 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
259 instead of rl_callback_handler_remove.
260 * event-top.h (gdb_rl_callback_handler_remove)
261 (gdb_rl_callback_handler_install)
262 (gdb_rl_callback_handler_reinstall): New declarations.
263 * infrun.c (reinstall_readline_callback_handler_cleanup): New
265 (fetch_inferior_event): Install it.
266 * top.c (gdb_readline_wrapper_line) Call
267 gdb_rl_callback_handler_remove instead of
268 rl_callback_handler_remove.
269 (gdb_readline_wrapper_cleanup): Don't call
270 rl_callback_handler_install.
272 2014-10-29 Pedro Alves <palves@redhat.com>
274 * event-top.c (command_line_handler): Clear the first byte of
275 linebuffer, when it is first allocated.
277 2014-10-29 Pedro Alves <palves@redhat.com>
279 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
282 2014-10-29 Pedro Alves <palves@redhat.com>
286 * tui/tui-interp.c (tui_is_toplevel): Delete global.
287 (tui_allowed_p): Delete function.
288 * tui/tui.c: Include "interps.h".
289 (tui_enable): Don't use tui_allowed_p. Error out here with
290 detailed error messages if the TUI is the top level interpreter,
291 or if output is not a terminal. Use newterm instead of initscr,
292 and error out if initializing the terminal fails. Also error out if
293 the terminal doesn't support cursor addressing.
294 * tui/tui.h (tui_allowed_p): Delete declaration.
296 2014-10-29 Joel Brobecker <brobecker@adacore.com>
298 * arm-tdep.c (arm_skip_stack_protector): Return early if
299 address loaded by first "ldr" instruction does not have
300 a corresponding minimal symbol. Update comment.
302 2014-10-29 Yao Qi <yao@codesourcery.com>
304 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
305 loaded address correctly of ldr instruction.
307 2014-10-28 Pedro Alves <palves@redhat.com>
310 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
312 * infrun.c (resume) <stepping breakpoint instruction>: Set the
313 thread's stepped_breakpoint field. Skip if reverse debugging.
315 (init_thread_stepping_state, handle_signal_stop): Clear the
316 thread's stepped_breakpoint field.
318 2014-10-27 Pedro Alves <palves@redhat.com>
320 * remote.c (remote_thread_alive): New, factored out from ...
321 (remote_thread_alive): ... this.
322 (remote_update_thread_list): Bail out before deleting threads if
323 the target returned an empty list, and, the current thread has a
326 2014-10-27 Pedro Alves <palves@redhat.com>
328 * infrun.c (handle_signal_stop): Also skip handlers when a random
329 signal arrives while handling a "stepi" or a "nexti". Set the
330 thread's 'step_after_step_resume_breakpoint' flag.
332 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
334 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
335 (arm_record_ld_st_imm_offset): Reimplement to cover all
336 load/store cases for ARM opcode 010.
337 (arm_record_ld_st_multiple): Reimplement to cover all
338 load/store cases for ARM opcode 100.
340 2014-10-26 Doug Evans <xdje42@gmail.com>
342 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
344 2014-10-26 Doug Evans <xdje42@gmail.com>
346 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
347 parameter "kind" to "block_index".
348 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
350 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
352 2014-10-26 Doug Evans <xdje42@gmail.com>
354 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
356 2014-10-26 Doug Evans <xdje42@gmail.com>
358 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
361 2014-10-26 Doug Evans <xdje42@gmail.com>
363 * parser-defs.h (block_found): Move decl from here ...
364 * symtab.h (block_found): ... to here.
366 2014-10-26 Doug Evans <xdje42@gmail.com>
368 * symtab.h (struct field_of_this_result): Fix typo in comment.
369 (lookup_symbol_in_language): Move function comment here.
370 (lookup_symbol): Improve function comment.
371 (basic_lookup_symbol_nonlocal): Ditto.
372 (lookup_symbol_static, lookup_symbol_global): Ditto.
373 (lookup_symbol_aux_block): Ditto.
374 (lookup_language_this): Add function comment.
375 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
377 (lookup_block_symbol): Improve function comment.
378 (lookup_struct): Fix capitalization in function comment.
379 (lookup_transparent_type): Add function comment.
380 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
381 Improve function comment.
382 (lookup_objfile_from_block): Add function comment.
383 * symtab.c (lookup_symbol_in_language): Update function comment.
384 (lookup_symbol, lookup_language_this): Ditto.
385 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
386 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
387 (basic_lookup_symbol_nonlocal): Ditto.
388 (lookup_symbol_static, lookup_symbol_global): Ditto.
389 (lookup_transparent_type, lookup_block_symbol): Ditto.
391 2014-10-25 Doug Evans <xdje42@gmail.com>
393 * symtab.c (types_info): Delete forward decl.
394 (functions_info, variables_info, sources_info): Ditto.
395 (_initialize_symtab): Rewrite forward decl to use
396 initialize_file_ftype.
398 2014-10-25 Doug Evans <xdje42@gmail.com>
400 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
402 2014-10-25 Doug Evans <xdje42@gmail.com>
404 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
405 of local var child_die.
407 2014-10-24 Don Breazeal <donb@codesourcery.com>
409 * infrun.c (follow_fork_inferior): Update fork message printing
410 to use target_terminal_ours_for_output instead of
411 target_terminal_ours, to use _() for all format strings, to print
412 "vfork" instead of "fork" for vforks, and to add a detach message.
413 (handle_vfork_child_exec_or_exit): Update message printing to use
414 target_terminal_ours_for_output instead of target_terminal_ours, to
415 use _() for all format strings, and to fix some formatting.
417 2014-10-24 Pedro Alves <palves@redhat.com>
419 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
420 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
421 * config/vax/vax.mh: Delete.
422 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
423 obsolete configurations section.
424 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
425 * vax-nat.c: Delete file.
427 2014-10-24 Pedro Alves <palves@redhat.com>
429 * NEWS (Removed targets): Add OS/arch column.
431 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
433 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
434 on the arg type of a constructor only if it is of reference type.
436 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
438 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
439 accessors and constants from nios2 opcodes update.
440 (nios2_get_next_pc): Likewise.
442 2014-10-19 Doug Evans <xdje42@gmail.com>
444 * gdbthread.h (set_running): Fix comment.
445 (set_executing, finish_thread_state): Fix comment.
447 2014-10-18 Doug Evans <xdje42@gmail.com>
449 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
451 2014-10-17 Doug Evans <dje@google.com>
453 * NEWS: Mention new event gdb.clear_objfiles.
454 * python/py-event.h (emit_clear_objfiles_event): Clear
455 * python/py-events.h (events_object): New member clear_objfiles.
456 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
458 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
459 emit clear_objfiles event.
460 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
462 (emit_clear_objfiles_event): New function.
463 (clear_objfiles): New event.
464 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
466 * python/python.c (_initialize_python): Call
467 gdbpy_initialize_clear_objfiles_event.
469 2014-10-17 Doug Evans <dje@google.com>
471 * NEWS: Mention new gdb.Objfile.progspace attribute.
472 * python/py-objfile.c (objfpy_get_progspace): New function.
473 (objfile_getset): New entry for "progspace".
475 2014-10-17 Pedro Alves <palves@redhat.com>
478 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
479 returns a copy of the input.
480 (run_command_1, continue_command, step_1, jump_command)
481 (signal_command, until_command, advance_command, finish_command)
482 (attach_command): Adjust and install a cleanup to free the
485 2014-10-17 Pedro Alves <palves@redhat.com>
488 * infcmd.c (continue_1): If continuing all threads in the
489 foreground, make sure the inferior's terminal settings are put in
492 2014-10-17 Pedro Alves <palves@redhat.com>
495 * annotate.c (annotate_breakpoints_invalid): Use
496 target_terminal_our_for_output instead of target_terminal_ours.
497 Give back the terminal to the target.
498 (annotate_frames_invalid): Likewise.
500 2014-10-17 Pedro Alves <palves@redhat.com>
502 * target.c (enum terminal_state): New enum.
503 (terminal_state): New global.
504 (target_terminal_init): New function.
505 (target_terminal_inferior): Skip if inferior already owns the
507 (target_terminal_ours, target_terminal_ours_for_output): New
509 * target.h (target_terminal_init): Convert to function prototype.
510 (target_terminal_ours_for_output): Convert to function prototype
512 (target_terminal_ours): Convert to function prototype and tweak
514 * windows-nat.c (do_initial_windows_stuff): Call
515 target_terminal_init instead of child_terminal_init_with_pgrp.
517 2014-10-17 Pedro Alves <palves@redhat.com>
519 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
520 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
521 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
523 * NEWS: Mention that support for alpha*-*-osf* has been removed.
524 * ada-lang.h [__alpha__ && __osf__]
525 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
526 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
527 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
529 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
531 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
532 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
533 * configure: Regenerate.
534 * configure.ac: Remove references to osf.
535 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
536 section. Remove all other references to osf.
537 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
538 Remove all other references to osf.
539 * dec-thread.c: Delete file.
540 * defs.h (GDB_OSABI_OSF1): Delete.
541 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
543 * osabi.c (gdb_osabi_names): Delete "OSF/1".
544 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
546 (unconditionally_kill_inferior)
547 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
548 * solib-osf.c: Delete file.
550 2014-10-17 Pedro Alves <palves@redhat.com>
552 * remote.c (clear_threads_listing_context): Move higher up, out of
553 the HAVE_LIBEXPAT guard.
555 2014-10-16 Tristan Gingold <gingold@adacore.com>
557 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
558 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
561 2014-10-15 Pedro Alves <palves@redhat.com>
563 * dec-thread.c (dec_thread_count_gdb_threads)
564 (dec_thread_add_gdb_thread): Delete.
565 (dec_thread_update_thread_list): Delete.
566 (dec_thread_find_new_threads): Rename to ...
567 (dec_thread_update_thread_list): ... this. Delete GDB-size
568 threads that are no longer found in dec_thread_list.
569 (resync_thread_list): Delete.
570 (dec_thread_wait): Call dec_thread_update_thread_list instead of
573 2014-10-15 Pedro Alves <palves@redhat.com>
575 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
576 * remote.c (remote_update_thread_list): Skip calling prune_threads
577 if any thread listing method is supported, and instead walk over
578 the set of remote threads listed, deleting those that are not
579 found in GDB's thread list.
581 2014-10-15 Pedro Alves <palves@redhat.com>
583 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
584 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
585 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
586 (bsd_uthread_target): Adjust.
587 * corelow.c (core_open): Adjust.
588 * dec-thread.c (dec_thread_find_new_threads): Update comment.
589 (dec_thread_update_thread_list): New function.
590 (init_dec_thread_ops): Adjust.
591 * gdbthread.h (prune_threads): New declaration.
592 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
593 (thread_db_update_thread_list): ... this. Call prune_threads.
594 (init_thread_db_ops): Adjust.
595 * nto-procfs.c (procfs_find_new_threads): Rename to ...
596 (procfs_update_thread_list): ... this. Call prune_threads.
597 (procfs_attach, procfs_create_inferior, init_procfs_targets):
599 * obsd-nat.c (obsd_find_new_threads): Rename to ...
600 (obsd_update_thread_list): ... this. Call prune_threads.
601 (obsd_add_target): Adjust.
602 * procfs.c (procfs_target): Adjust.
603 (procfs_notice_thread): Update comment.
604 (procfs_find_new_threads): Rename to ...
605 (procfs_update_thread_list): ... this. Call prune_threads.
606 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
608 (ravenscar_wait): Adjust.
609 (ravenscar_find_new_threads): Rename to ...
610 (ravenscar_update_thread_list): ... this. Call prune_threads.
611 (init_ravenscar_thread_ops): Adjust.
612 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
613 (record_btrace_update_thread_list): ... this. Adjust comment.
614 (init_record_btrace_ops): Adjust.
615 * remote.c (remote_threads_info): Rename to ...
616 (remote_update_thread_list): ... this. Call prune_threads.
617 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
619 * sol-thread.c (check_for_thread_db): Adjust.
620 (sol_find_new_threads_callback): Rename to ...
621 (sol_update_thread_list_callback): ... this.
622 (sol_find_new_threads): Rename to ...
623 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
624 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
625 * target-delegates.c: Regenerate.
626 * target.c (target_find_new_threads): Rename to ...
627 (target_update_thread_list): ... this.
628 * target.h (struct target_ops): Rename to_find_new_threads field
629 to to_update_thread_list.
630 (target_find_new_threads): Rename to ...
631 (target_update_thread_list): ... this.
632 * thread.c (prune_threads): Make extern.
633 (update_thread_list): Adjust.
635 2014-10-15 Pedro Alves <palves@redhat.com>
637 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
638 Add describing comment. Return -1 if the qL packet is not
640 (struct thread_item, thread_item_t): Move higher up in
641 the file. Add comments.
642 (struct threads_parsing_context): Move higher up in
643 the file, add comments, and remote to ...
644 (struct threads_listing_context): ... this.
645 (remote_newthread_step): Don't add the thread to GDB's thread
646 database here. Instead push it to the thread_listing_context
648 (remote_find_new_threads): Rename to ...
649 (remote_get_threads_with_ql): ... this. Add target_ops and
650 targets_listing_context parameters. Pass down context.
651 (start_thread): Adjust.
652 (clear_threads_parsing_context): Rename to ...
653 (clear_threads_listing_context): ... this.
654 (remote_get_threads_with_qxfer): New, with parts salvaged from old
656 (remote_get_threads_with_qthreadinfo): Ditto.
657 (remote_threads_info): Reimplement.
659 2014-10-15 Pedro Alves <palves@redhat.com>
661 * infrun.c (resume): Don't force displaced-stepping for all
662 single-steps on software single-stepping archs.
664 2014-10-15 Pedro Alves <palves@redhat.com>
666 * breakpoint.c (single_step_breakpoints): Delete global.
667 (insert_single_step_breakpoint): Adjust to store the breakpoint
668 pointer in the current thread.
669 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
670 (cancel_single_step_breakpoints): Delete functions.
671 (breakpoint_has_location_inserted_here): Make extern.
672 (single_step_breakpoint_inserted_here_p): Adjust to walk the
674 * breakpoint.h (breakpoint_has_location_inserted_here): New
676 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
677 (cancel_single_step_breakpoints): Remove declarations.
678 * gdbthread.h (struct thread_control_state)
679 <single_step_breakpoints>: New field.
680 (delete_single_step_breakpoints)
681 (thread_has_single_step_breakpoints_set)
682 (thread_has_single_step_breakpoint_here): New declarations.
683 * infrun.c (follow_exec): Also clear the single-step breakpoints.
684 (singlestep_breakpoints_inserted_p, singlestep_ptid)
685 (singlestep_pc): Delete globals.
686 (infrun_thread_ptid_changed): Remove references to removed
688 (resume_cleanups): Delete the current thread's single-step
690 (maybe_software_singlestep): Remove references to removed globals.
691 (resume): Adjust to use thread_has_single_step_breakpoints_set and
692 delete_single_step_breakpoints.
693 (init_wait_for_inferior): Remove references to removed globals.
694 (delete_thread_infrun_breakpoints): Delete the thread's
695 single-step breakpoints too.
696 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
697 single-step breakpoints here.
698 (delete_stopped_threads_single_step_breakpoints): New function.
699 (adjust_pc_after_break): Adjust to use
700 thread_has_single_step_breakpoints_set.
701 (handle_inferior_event): Remove references to removed globals.
702 Use delete_stopped_threads_single_step_breakpoints.
703 (handle_signal_stop): Adjust to per-thread single-step
704 breakpoints. Swap test order to do cheaper tests first.
705 (switch_back_to_stepped_thread): Extend debug output. Remove
706 references to removed globals.
707 * record-full.c (record_full_wait_1): Adjust to per-thread
708 single-step breakpoints.
709 * thread.c (delete_single_step_breakpoints)
710 (thread_has_single_step_breakpoints_set)
711 (thread_has_single_step_breakpoint_here): New functions.
712 (clear_thread_inferior_resources): Also delete the thread's
713 single-step breakpoints.
715 2014-10-15 Pedro Alves <palves@redhat.com>
717 * thread.c (delete_thread_breakpoint): New function.
718 (delete_step_resume_breakpoint)
719 (delete_exception_resume_breakpoint): Use it.
720 (delete_at_next_stop): New function.
721 (clear_thread_inferior_resources): Use delete_at_next_stop.
723 2014-10-15 Pedro Alves <palves@redhat.com>
725 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
726 (breakpoint_inserted_here_p): ... here. Remove special case for
727 software single-step breakpoints.
728 (find_non_raw_software_breakpoint_inserted_here): Inline ...
729 (software_breakpoint_inserted_here_p): ... here. Remove special
730 case for software single-step breakpoints.
731 (bp_target_info_copy_insertion_state)
732 (deprecated_insert_raw_breakpoint)
733 (deprecated_remove_raw_breakpoint): Delete functions.
734 * breakpoint.h (deprecated_insert_raw_breakpoint)
735 (deprecated_remove_raw_breakpoint): Remove declarations.
737 2014-10-15 Pedro Alves <palves@redhat.com>
740 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
741 Delete array globals.
742 (single_step_breakpoints): New global.
743 (breakpoint_xfer_memory): Remove special handling for single-step
745 (update_breakpoints_after_exec): Delete bp_single_step
747 (detach_breakpoints): Remove special handling for single-step
749 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
750 (bpstat_stop_status): Add comment.
751 (bpstat_what, bptype_string, print_one_breakpoint_location)
752 (adjust_breakpoint_address, init_bp_location): Handle
754 (new_single_step_breakpoint): New function.
755 (set_momentary_breakpoint, bkpt_remove_location): Remove special
756 handling for single-step breakpoints.
757 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
758 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
760 (detach_single_step_breakpoints, find_single_step_breakpoint):
762 (breakpoint_has_location_inserted_here): New function.
763 (single_step_breakpoint_inserted_here_p): Rewrite.
764 * breakpoint.h: Remove FIXME.
765 (enum bptype) <bp_single_step>: New enum value.
766 (insert_single_step_breakpoint): Update comment.
767 * infrun.c (resume_cleanups)
768 (delete_step_thread_step_resume_breakpoint): Remove single-step
770 (fetch_inferior_event): Install a cleanup that removes infrun
772 (switch_back_to_stepped_thread) <expect thread advanced also>:
773 Clear step-over info.
775 2014-10-15 Pedro Alves <palves@redhat.com>
777 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
778 (delete_thread_infrun_breakpoints): New function, with parts
779 salvaged from delete_step_resume_breakpoint_callback.
780 (delete_step_thread_step_resume_breakpoint): Delete.
781 (for_each_just_stopped_thread_callback_func): New typedef.
782 (for_each_just_stopped_thread): New function.
783 (delete_just_stopped_threads_infrun_breakpoints): New function.
784 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
785 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
787 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
789 2014-10-15 Pedro Alves <palves@redhat.com>
791 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
792 trying to step past a non-steppable watchpoint.
793 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
795 * infrun.c (struct step_over_info): Add new field
796 'nonsteppable_watchpoint_p' and adjust comments.
797 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
799 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
800 (stepping_past_nonsteppable_watchpoint): New function.
801 (step_over_info_valid_p): Also return true if stepping past a
802 nonsteppable watchpoint.
803 (proceed): Adjust call to set_step_over_info. Remove reference to
805 (init_wait_for_inferior): Remove reference to init_infwait_state.
806 (waiton_ptid): Delete global.
807 (struct execution_control_state)
808 <stepped_after_stopped_by_watchpoint>: Delete field.
809 (wait_for_inferior, fetch_inferior_event): Always pass
810 minus_one_ptid to target_wait.
811 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
813 (init_infwait_state): Delete function.
814 (handle_inferior_event): Remove infwait_state handling.
815 (handle_signal_stop) <watchpoints handling>: Adjust after
816 stepped_after_stopped_by_watchpoint removal. Don't remove
817 breakpoints here nor set infwait_state. Set the thread's
818 stepping_over_watchpoint flag, and call keep_going instead.
819 (keep_going): Handle stepping_over_watchpoint. Adjust
820 set_step_over_info calls.
821 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
824 2014-10-15 Pedro Alves <palves@redhat.com>
826 * infrun.c (step_over_info_valid_p): New function.
827 (resume): Use step_over_info_valid_p instead of checking the
828 threads's trap_expected flag.
830 2014-10-15 Doug Evans <dje@google.com>
831 Walfred Tedeschi <walfred.tedeschi@intel.com>
834 * python/lib/gdb/__init__.py (packages): Add "printer".
835 * python/lib/gdb/command/bound_registers.py: Moved to ...
836 * python/lib/gdb/printer/bound_registers.py: ... here.
837 Add printer to global set of builtin printers. Rename printer from
838 "bound" to "mpx_bound128".
839 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
840 registered as global "builtin" printer.
841 (add_builtin_pretty_printer): New function.
842 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
843 gdb/printer/__init__.py.
845 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
847 * Makefile.in (SFILES): Remove d-support.c.
848 (COMMON_OBS): Remove d-support.o.
849 * d-lang.h (d_parse_symbol): Remove declaration.
850 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
851 * d-support.c: Remove file.
853 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
855 * gdb/infrun.c (process_event_stop_test): Apply
856 gdbarch_addr_bits_remove to longjmp resume address.
858 2014-10-15 Pedro Alves <palves@redhat.com>
860 * regformats/microblaze.dat: Delete file.
862 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
864 * features/Makefile (microblaze-expedite): Replace pc with rpc.
865 * regformats/microblaze-with-stack-protect.dat: Regenerate.
867 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
869 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
872 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
876 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
879 2014-10-14 Joel Brobecker <brobecker@adacore.com>
881 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
882 of the case where the second operand is a pointer.
883 <BINOP_SUB>: Likewise.
885 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
887 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
888 only if it is not NULL.
889 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
890 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
891 (struct probe_ops) <clear_semaphore>: Likewise.
892 * tracepoint.c (start_tracing): Call set_semaphore only if it is
894 (stop_tracing): Likewise, for clear_semaphore.
896 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
898 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
899 using language_c, instead of current_language.
901 2014-10-13 Doug Evans <dje@google.com>
903 * python/py-objfile.c (objfpy_initialize): New function.
904 (objfpy_new, objfile_to_objfile_object): Call it.
905 * python/py-progspace.c (pspy_initialize): New function.
906 (pspy_new, pspace_to_pspace_object): Call it.
908 2014-10-13 Miroslav Franc <mfranc@redhat.com>
909 Jan Kratochvil <jan.kratochvil@redhat.com>
911 Fix "save breakpoints" for "catch" command.
912 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
915 2014-10-12 Miroslav Franc <mfranc@redhat.com>
917 Fix "save breakpoints" for "disable $bpnum" command.
918 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
920 2014-10-10 Pedro Alves <palves@redhat.com>
922 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
923 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
924 (HFILES_NO_SRCDIR): Remove solib-irix.h.
925 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
927 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
928 * configure.ac: Remove references to IRIX.
929 * configure.host: Add *-*-irix* to the obsolete hosts section.
930 Remove all other references to irix.
931 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
934 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
936 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
937 isn't valid, release the tdesc arch data and return NULL.
939 2014-10-10 Pedro Alves <palves@redhat.com>
941 * linux-tdep.c: Include observer.h.
942 (linux_inferior_data): New global.
943 (struct linux_info): New structure.
944 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
945 (get_linux_inferior_data): New functions.
946 (linux_vsyscall_range): Rename to ...
947 (linux_vsyscall_range_raw): ... this.
948 (linux_vsyscall_range): New function; handles caching.
949 (_initialize_linux_tdep): Register linux_inferior_data. Install
950 inferior_exit and inferior_appeared observers.
952 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
953 Pedro Alves <palves@redhat.com>
956 * solib-svr4.c (svr4_read_so_list): Rename to ...
957 (svr4_current_sos_1): ... this and change the function comment.
958 (svr4_current_sos): New function.
960 2014-10-10 Pedro Alves <palves@redhat.com>
962 * arch-utils.c (default_vsyscall_range): New function.
963 * arch-utils.h (default_vsyscall_range): New declaration.
964 * gdbarch.sh (vsyscall_range): New hook.
965 * gdbarch.h, gdbarch.c: Regenerate.
966 * linux-tdep.c (linux_vsyscall_range): New function.
967 (linux_init_abi): Install linux_vsyscall_range as
968 vsyscall_range gdbarch hook.
969 * memrange.c (address_in_mem_range): New function.
970 * memrange.h (address_in_mem_range): New declaration.
971 * symfile-mem.c (find_vdso_size): Delete function.
972 (add_vsyscall_page): Use gdbarch_vsyscall_range.
974 2014-10-10 Pedro Alves <palves@redhat.com>
976 * infrun.c (normal_stop): Fix typo in comment.
978 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
981 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
982 typo when using logical AND to determine instruction type.
984 2014-10-09 Yao Qi <yao@codesourcery.com>
986 * infrun.c (handle_signal_stop): Remove local variable
989 2014-10-08 Stan Shebs <stan@codesourcery.com>
991 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
993 2014-10-08 Gary Benson <gbenson@redhat.com>
995 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
997 2014-10-08 Gary Benson <gbenson@redhat.com>
999 * common/common-defs.h: Include common-exceptions.h.
1000 * exceptions.h: Do not include common-exceptions.h.
1002 2014-10-08 Gary Benson <gbenson@redhat.com>
1004 * common/common-defs.h: Include cleanups.h.
1005 * common/common-exceptions.c: Do not include cleanups.h.
1006 * utils.h: Likewise.
1008 2014-10-08 Gary Benson <gbenson@redhat.com>
1010 * ada-lang.c: Do not include exceptions.h.
1011 * ada-valprint.c: Likewise.
1012 * amd64-tdep.c: Likewise.
1013 * auto-load.c: Likewise.
1014 * block.c: Likewise.
1015 * break-catch-throw.c: Likewise.
1016 * breakpoint.c: Likewise.
1017 * btrace.c: Likewise.
1018 * c-lang.c: Likewise.
1019 * cli/cli-cmds.c: Likewise.
1020 * cli/cli-interp.c: Likewise.
1021 * cli/cli-script.c: Likewise.
1022 * completer.c: Likewise.
1023 * corefile.c: Likewise.
1024 * corelow.c: Likewise.
1025 * cp-abi.c: Likewise.
1026 * cp-support.c: Likewise.
1027 * cp-valprint.c: Likewise.
1028 * darwin-nat.c: Likewise.
1029 * dwarf2-frame-tailcall.c: Likewise.
1030 * dwarf2-frame.c: Likewise.
1031 * dwarf2loc.c: Likewise.
1032 * dwarf2read.c: Likewise.
1034 * event-loop.c: Likewise.
1035 * event-top.c: Likewise.
1036 * f-valprint.c: Likewise.
1037 * frame-unwind.c: Likewise.
1038 * frame.c: Likewise.
1039 * gdbtypes.c: Likewise.
1040 * gnu-v2-abi.c: Likewise.
1041 * gnu-v3-abi.c: Likewise.
1042 * guile/scm-auto-load.c: Likewise.
1043 * guile/scm-breakpoint.c: Likewise.
1044 * guile/scm-cmd.c: Likewise.
1045 * guile/scm-frame.c: Likewise.
1046 * guile/scm-lazy-string.c: Likewise.
1047 * guile/scm-param.c: Likewise.
1048 * guile/scm-symbol.c: Likewise.
1049 * guile/scm-type.c: Likewise.
1050 * hppa-hpux-tdep.c: Likewise.
1051 * i386-tdep.c: Likewise.
1052 * inf-loop.c: Likewise.
1053 * infcall.c: Likewise.
1054 * infcmd.c: Likewise.
1055 * infrun.c: Likewise.
1056 * interps.c: Likewise.
1057 * interps.h: Likewise.
1059 * linespec.c: Likewise.
1060 * linux-nat.c: Likewise.
1061 * linux-thread-db.c: Likewise.
1062 * m32r-rom.c: Likewise.
1064 * memory-map.c: Likewise.
1065 * mi/mi-cmd-break.c: Likewise.
1066 * mi/mi-cmd-stack.c: Likewise.
1067 * mi/mi-interp.c: Likewise.
1068 * mi/mi-main.c: Likewise.
1069 * monitor.c: Likewise.
1070 * nto-procfs.c: Likewise.
1071 * objc-lang.c: Likewise.
1072 * p-valprint.c: Likewise.
1073 * parse.c: Likewise.
1074 * ppc-linux-tdep.c: Likewise.
1075 * printcmd.c: Likewise.
1076 * probe.c: Likewise.
1077 * python/py-auto-load.c: Likewise.
1078 * python/py-breakpoint.c: Likewise.
1079 * python/py-cmd.c: Likewise.
1080 * python/py-finishbreakpoint.c: Likewise.
1081 * python/py-frame.c: Likewise.
1082 * python/py-framefilter.c: Likewise.
1083 * python/py-function.c: Likewise.
1084 * python/py-gdb-readline.c: Likewise.
1085 * python/py-inferior.c: Likewise.
1086 * python/py-infthread.c: Likewise.
1087 * python/py-lazy-string.c: Likewise.
1088 * python/py-linetable.c: Likewise.
1089 * python/py-param.c: Likewise.
1090 * python/py-prettyprint.c: Likewise.
1091 * python/py-symbol.c: Likewise.
1092 * python/py-type.c: Likewise.
1093 * python/py-value.c: Likewise.
1094 * python/python-internal.h: Likewise.
1095 * python/python.c: Likewise.
1096 * record-btrace.c: Likewise.
1097 * record-full.c: Likewise.
1098 * regcache.c: Likewise.
1099 * remote-fileio.c: Likewise.
1100 * remote-mips.c: Likewise.
1101 * remote.c: Likewise.
1102 * rs6000-aix-tdep.c: Likewise.
1103 * rs6000-nat.c: Likewise.
1105 * solib-darwin.c: Likewise.
1106 * solib-dsbt.c: Likewise.
1107 * solib-frv.c: Likewise.
1108 * solib-ia64-hpux.c: Likewise.
1109 * solib-spu.c: Likewise.
1110 * solib-svr4.c: Likewise.
1111 * solib.c: Likewise.
1112 * spu-tdep.c: Likewise.
1113 * stack.c: Likewise.
1114 * stap-probe.c: Likewise.
1115 * symfile-mem.c: Likewise.
1116 * symmisc.c: Likewise.
1117 * target.c: Likewise.
1118 * thread.c: Likewise.
1120 * tracepoint.c: Likewise.
1121 * tui/tui-interp.c: Likewise.
1122 * typeprint.c: Likewise.
1123 * utils.c: Likewise.
1124 * valarith.c: Likewise.
1125 * valops.c: Likewise.
1126 * valprint.c: Likewise.
1127 * value.c: Likewise.
1128 * varobj.c: Likewise.
1129 * windows-nat.c: Likewise.
1130 * xml-support.c: Likewise.
1132 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1134 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1136 (extended_mips16_next_pc): Update accordingly.
1138 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1140 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1142 (micromips_instruction_is_compact_branch): Likewise.
1143 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1144 or a compact jump, reaching a jump delay slot, or seeing a
1145 second non-prologue instruction.
1146 (micromips_scan_prologue): Also terminate scanning upon seeing a
1147 compact branch or jump, or reaching a branch or jump delay slot.
1148 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1149 or jump delay slot, or seeing a second non-prologue instruction.
1150 (mips32_instruction_has_delay_slot): Retain instruction
1151 examination code only, update arguments accordingly and move
1152 instruction fetch pieces to...
1153 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1154 (micromips_instruction_has_delay_slot): Likewise and to...
1155 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1156 (mips16_instruction_has_delay_slot): Likewise and to...
1157 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1158 (mips_single_step_through_delay): Update accordingly.
1159 (mips_adjust_breakpoint_address): Likewise.
1161 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1163 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1164 !mustbe32 also return 1 for 32-bit instructions.
1165 (mips16_instruction_has_delay_slot): Likewise. Add an
1166 explanatory comment.
1168 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1170 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1173 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1175 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1177 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1178 for the breakpoint's address. Don't preinitialize `placed_size'.
1179 (insert_bp_location): Set `reqstd_address' rather than
1181 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1182 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1184 (bkpt_remove_location): Likewise.
1185 (deprecated_insert_raw_breakpoint): Likewise.
1186 (deprecated_remove_raw_breakpoint): Likewise.
1187 (find_single_step_breakpoint): Likewise.
1188 * mem-break.c (default_memory_insert_breakpoint): Use
1189 `reqstd_address' for the breakpoint's address. Don't set
1190 `placed_address' or `placed_size' if breakpoint contents couldn't
1191 have been determined.
1192 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1193 the breakpoint's address.
1194 (remote_insert_hw_breakpoint): Likewise. Don't set
1195 `placed_address' or `placed_size' if breakpoint couldn't have been
1197 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1198 `reqstd_address' for the breakpoint's address.
1199 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1200 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1201 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1202 * microblaze-linux-tdep.c
1203 (microblaze_linux_memory_remove_breakpoint): Likewise.
1204 * monitor.c (monitor_insert_breakpoint): Likewise.
1205 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1206 (procfs_insert_hw_breakpoint): Likewise.
1207 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1208 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1209 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1210 * remote-mips.c (mips_insert_breakpoint): Likewise.
1211 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1213 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1215 * valops.c (value_assign): Check for bit field assignments
1216 before calling architecture-specific register value
1217 conversion functions.
1219 2014-10-03 Pierre Muller <muller@sourceware.org>
1221 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1223 2014-10-02 Pedro Alves <palves@redhat.com>
1225 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1226 threads_are_executing.
1227 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1229 * gdbthread.h (threads_are_executing): Declare.
1230 (handle_signal_stop) <random signals>: Don't print about the
1231 signal here if stopping.
1232 (end_stepping_range): Don't notify observers here.
1233 (normal_stop): Update the thread list. If stopped by a random
1234 signal or a stepping range ended, notify observers.
1235 * thread.c (threads_executing): New global.
1236 (init_thread_list): Clear 'threads_executing'.
1237 (set_executing): Set or clear 'threads_executing'.
1238 (threads_are_executing): New function.
1239 (update_threads_executing): New function.
1240 (update_thread_list): Use it.
1242 2014-10-02 Pedro Alves <palves@redhat.com>
1244 PR breakpoints/17431
1245 * breakpoint.c (update_breakpoints_after_exec): Don't create
1246 overlay, longjmp, std terminate nor exception breakpoints here.
1248 2014-10-02 Pedro Alves <palves@redhat.com>
1250 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1252 * inferior.c (find_inferior_for_program_space): Give preference to
1253 the current inferior.
1254 * inferior.h (find_inferior_for_program_space): Update comment.
1255 * progspace.c (switch_to_program_space_and_thread): Prefer the
1256 current inferior if it's bound to the program space requested. If
1257 the inferior found doesn't have a PID yet, don't bother looking up
1259 * progspace.h (switch_to_program_space_and_thread): Adjust
1261 * thread.c (any_thread_of_process, any_live_thread_of_process):
1262 Give preference to the current thread.
1264 2014-10-01 Pedro Alves <palves@redhat.com>
1266 * breakpoint.c (insert_bp_location): Error out if inserting a
1267 software breakpoint at a read-only address.
1268 * target.c (memory_xfer_check_region): New function, factored out
1270 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1272 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1273 against the memory region attributes.
1275 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1277 * NEWS: Announce new exit-code field in -list-thread-groups
1279 * inferior.c (exit_inferior_1): Don't clear exit code.
1280 (inferior_appeared): Clear exit code.
1281 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1284 2014-10-01 Pedro Alves <palves@redhat.com>
1286 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1287 GENERATED" along with emacs/vi read-only markers.
1288 * regformats/aarch64.dat: Regenerate.
1289 * regformats/arm-with-iwmmxt.dat: Regenerate.
1290 * regformats/arm-with-neon.dat: Regenerate.
1291 * regformats/arm-with-vfpv2.dat: Regenerate.
1292 * regformats/arm-with-vfpv3.dat: Regenerate.
1293 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1294 * regformats/i386/amd64-avx.dat: Regenerate.
1295 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1296 * regformats/i386/amd64-avx512.dat: Regenerate.
1297 * regformats/i386/amd64-linux.dat: Regenerate.
1298 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1299 * regformats/i386/amd64-mpx.dat: Regenerate.
1300 * regformats/i386/amd64.dat: Regenerate.
1301 * regformats/i386/i386-avx-linux.dat: Regenerate.
1302 * regformats/i386/i386-avx.dat: Regenerate.
1303 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1304 * regformats/i386/i386-avx512.dat: Regenerate.
1305 * regformats/i386/i386-linux.dat: Regenerate.
1306 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1307 * regformats/i386/i386-mmx.dat: Regenerate.
1308 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1309 * regformats/i386/i386-mpx.dat: Regenerate.
1310 * regformats/i386/i386.dat: Regenerate.
1311 * regformats/i386/x32-avx-linux.dat: Regenerate.
1312 * regformats/i386/x32-avx.dat: Regenerate.
1313 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1314 * regformats/i386/x32-avx512.dat: Regenerate.
1315 * regformats/i386/x32-linux.dat: Regenerate.
1316 * regformats/i386/x32.dat: Regenerate.
1317 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1318 * regformats/mips-dsp-linux.dat: Regenerate.
1319 * regformats/mips-linux.dat: Regenerate.
1320 * regformats/mips64-dsp-linux.dat: Regenerate.
1321 * regformats/mips64-linux.dat: Regenerate.
1322 * regformats/nios2-linux.dat: Regenerate.
1323 * regformats/rs6000/powerpc-32.dat: Regenerate.
1324 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1325 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1326 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1327 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1328 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1329 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1330 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1331 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1332 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1333 * regformats/s390-linux32.dat: Regenerate.
1334 * regformats/s390-linux32v1.dat: Regenerate.
1335 * regformats/s390-linux32v2.dat: Regenerate.
1336 * regformats/s390-linux64.dat: Regenerate.
1337 * regformats/s390-linux64v1.dat: Regenerate.
1338 * regformats/s390-linux64v2.dat: Regenerate.
1339 * regformats/s390-te-linux64.dat: Regenerate.
1340 * regformats/s390x-linux64.dat: Regenerate.
1341 * regformats/s390x-linux64v1.dat: Regenerate.
1342 * regformats/s390x-linux64v2.dat: Regenerate.
1343 * regformats/s390x-te-linux64.dat: Regenerate.
1344 * regformats/tic6x-c62x-linux.dat: Regenerate.
1345 * regformats/tic6x-c62x.dat: Regenerate.
1346 * regformats/tic6x-c64x-linux.dat: Regenerate.
1347 * regformats/tic6x-c64x.dat: Regenerate.
1348 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1349 * regformats/tic6x-c64xp.dat: Regenerate.
1351 2014-10-01 Pedro Alves <palves@redhat.com>
1353 * features/Makefile: Update comments.
1354 (XMLTOC): List all xml files we build C files from.
1355 (clean-cfiles): New rule.
1357 2014-10-01 Pedro Alves <palves@redhat.com>
1359 * features/i386/amd64-avx512-linux.c: Regenerate.
1360 * features/i386/amd64-avx512.c: Regenerate.
1361 * features/i386/x32-avx512-linux.c: Regenerate.
1362 * features/i386/x32-avx512.c: Regenerate.
1364 2014-10-01 Pedro Alves <palves@redhat.com>
1366 * features/Makefile (WHICH): Remove arm-with-m,
1367 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1369 2014-10-01 Pedro Alves <palves@redhat.com>
1371 * features/Makefile (clean): New rule.
1373 2014-10-01 Pedro Alves <palves@redhat.com>
1375 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1376 (zmm14h): Add missing end quotes.
1378 2014-10-01 Pedro Alves <palves@redhat.com>
1380 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1381 * features/aarch64.c: Regenerate.
1383 2014-09-30 Don Breazeal <donb@codesourcery.com>
1385 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1386 code so as to work with follow_fork_inferior.
1387 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1388 (inf_ttrace_create_inferior): Remove reference to
1389 inf_ttrace_vfork_ppid.
1390 (inf_ttrace_attach): Ditto.
1391 (inf_ttrace_detach): Ditto.
1392 (inf_ttrace_kill): Use current_inferior instead of
1393 inf_ttrace_vfork_ppid.
1394 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1395 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1396 inferior away from the parent.
1397 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1399 (follow_fork_inferior): New function.
1400 (follow_inferior_reset_breakpoints): Make function static.
1401 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1402 * linux-nat.c (linux_child_follow_fork): Move target-independent
1403 code to infrun.c:follow_fork_inferior.
1405 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1407 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1408 * gdbarch.c: Regenerate.
1409 * gdbarch.h: Likewise.
1410 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1411 gdbarch method 'regset_from_core_section'.
1412 (get_core_register_section): Remove handling for the case that
1413 regset == NULL and regset_from_core_section is defined.
1414 (get_core_registers): Drop check for deleted method.
1415 * procfs.c (procfs_do_thread_registers): Adjust comment.
1417 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1419 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1420 (linux_nat_make_corefile_notes): Remove.
1421 (linux_target_install_ops): Do not set target method
1422 'make_corefile_notes'.
1423 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1425 (linux_corefile_thread_callback): Instead of args->collect, call
1426 linux_collect_thread_registers.
1427 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1428 NULL unless there is a regset iterator.
1429 (linux_make_corefile_notes_1): Remove.
1430 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1431 by linux_make_corefile_notes.
1432 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1434 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1436 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1437 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1439 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1441 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1443 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1444 (xtensa_iterate_over_regset_sections): New.
1445 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1447 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1449 * vax-tdep.c (vax_regset_from_core_section): Remove.
1450 (vax_iterate_over_regset_sections): New.
1451 (vax_gdbarch_init): Adjust gdbarch initialization.
1453 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1455 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1456 (tilegx_regset_from_core_section): Remove.
1457 (tilegx_iterate_over_regset_sections): New.
1458 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1460 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1462 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1463 (sparc_iterate_over_regset_sections): New.
1464 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1465 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1467 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1468 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1469 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1470 target method 'make_corefile_notes'.
1472 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1474 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1475 'sizeof_gregset' and 'sizeof_fpregset'.
1476 * sh-tdep.c (sh_regset_from_core_section): Remove.
1477 (sh_iterate_over_regset_sections): New.
1478 (sh_gdbarch_init): Adjust gdbarch initialization.
1479 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1481 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1484 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1486 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1487 (score7_linux_iterate_over_regset_sections): New.
1488 (score_gdbarch_init): Adjust gdbarch initialization.
1490 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1492 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1494 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1495 method 'make_corefile_notes'.
1496 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1497 (ppcfbsd_regset_from_core_section): Remove.
1498 (ppcfbsd_iterate_over_regset_sections): New.
1499 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1501 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1502 (ppcnbsd_iterate_over_regset_sections): New.
1503 (ppcnbsd_init_abi): Adjust.
1504 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1505 (ppcobsd_iterate_over_regset_sections): New.
1506 (ppcobsd_init_abi): Adjust.
1507 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1508 (rs6000_aix_iterate_over_regset_sections): New.
1509 (rs6000_aix_init_osabi): Adjust.
1511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1513 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1514 (nios2_regset_from_core_section): Remove.
1515 (nios2_iterate_over_regset_sections): New.
1516 (nios2_linux_init_abi): Adjust gdbarch initialization.
1518 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1520 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1521 (am33_iterate_over_regset_sections): New.
1522 (am33_linux_init_osabi): Adjust gdbarch initialization.
1524 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1526 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1527 (mips_linux_iterate_over_regset_sections): New.
1528 (mips_linux_init_abi): Adjust gdbarch initialization.
1529 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1530 (mips64obsd_iterate_over_regset_sections): New.
1531 (mips64obsd_init_abi): Adjust.
1532 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1533 (mipsnbsd_iterate_over_regset_sections): New.
1534 (mipsnbsd_init_abi): Adjust.
1536 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1538 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1539 (m88k_iterate_over_regset_sections): New.
1540 (m88k_gdbarch_init): Adjust gdbarch initialization.
1542 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1544 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1545 (ia64_linux_iterate_over_regset_sections): New.
1546 (ia64_linux_init_abi): Adjust gdbarch initialization.
1548 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1550 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1551 (m68kbsd_iterate_over_regset_sections): New.
1552 (m68kbsd_init_abi): Adjust gdbarch initialization.
1553 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1554 (m68k_linux_iterate_over_regset_sections): New.
1555 (m68k_linux_init_abi): Adjust gdbarch initialization.
1557 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1559 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1560 (m32r_linux_regset_from_core_section): Remove.
1561 (m32r_linux_iterate_over_regset_sections): New.
1562 (m32r_linux_init_abi): Adjust gdbarch initialization.
1564 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1566 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1567 (amd64obsd_iterate_over_regset_sections): New.
1568 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1569 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1571 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1572 regset_from_core_section initialization.
1573 * i386-tdep.c (i386_regset_from_core_section): Remove.
1574 (i386_iterate_over_regset_sections): New.
1575 (i386_gdbarch_init): Adjust gdbarch initialization.
1576 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1577 (i386_iterate_over_regset_sections): New prototype.
1578 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1580 (i386obsd_aout_iterate_over_regset_sections): New.
1581 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1582 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1584 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1585 (amd64fbsd_init_abi): Call fbsd_init_abi.
1586 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1587 (i386fbsd4_init_abi): Call fbsd_init_abi.
1588 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1589 target method 'make_corefile_notes'.
1590 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1592 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1594 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1595 (hppa_hpux_iterate_over_regset_sections): New.
1596 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1597 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1598 (hppa_linux_iterate_over_regset_sections): New.
1599 (hppa_linux_init_abi): Adjust.
1600 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1601 (hppanbsd_iterate_over_regset_sections): New.
1602 (hppanbsd_init_abi): Adjust.
1603 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1604 (hppaobsd_iterate_over_regset_sections): New.
1605 (hppaobsd_init_abi): Adjust.
1607 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1610 (frv_linux_iterate_over_regset_sections): New.
1611 (frv_linux_init_abi): Adjust gdbarch initialization.
1613 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1615 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1616 (armbsd_iterate_over_regset_sections): New prototype.
1617 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1618 (armbsd_iterate_over_regset_sections): New.
1619 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1622 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1624 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1625 (alpha_linux_iterate_over_regset_sections): New.
1626 (alpha_linux_init_abi): Adjust gdbarch initialization.
1627 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1629 (alphanbsd_iterate_over_regset_sections): New prototype.
1631 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1633 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1635 (aarch64_linux_iterate_over_regset_sections): New.
1636 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1638 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1640 * fbsd-tdep.c: New file.
1641 * fbsd-tdep.h: New file.
1642 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1643 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1644 (ALLDEPFILES): Add fbsd-tdep.c.
1646 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1648 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1650 * gdbarch.h: Regenerate.
1651 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1653 (get_core_register_section): Add parameter 'regset' and use it, if
1654 set. Add parameter 'min_size' and verify the bfd section size
1656 (get_core_registers_cb): Add parameter 'regset' and pass it to
1657 get_core_register section. For the "standard" register sections
1658 ".reg" and ".reg2", set an appropriate default for human_name.
1659 (get_core_registers): Don't abort when the gdbarch has an iterator
1660 but no regset_from_core_section. Add NULL/0 for parameters
1661 'regset'/'min_size' in calls to get_core_register_section.
1662 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1663 'regset' and use it instead of calling the
1664 regset_from_core_section gdbarch method.
1665 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1666 * i386-tdep.c (i386_supply_xstateregset)
1667 (i386_collect_xstateregset, i386_xstateregset): Moved to
1669 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1671 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1672 core file support only if the regset iterator hasn't been set.
1673 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1674 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1675 Moved from i386-tdep.c and renamed to *_linux*.
1676 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1677 each callback invocation. Allow any .reg-xstate size when reading
1679 * amd64-tdep.c (amd64_supply_xstateregset)
1680 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1682 (amd64_regset_from_core_section): Remove.
1683 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1684 install an amd64-specific regset_from_core_section gdbarch method.
1685 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1686 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1687 Moved from amd64-tdep.c and renamed to *_linux*.
1688 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1689 to each callback invocation. Allow any .reg-xstate size when
1690 reading from a core file.
1691 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1692 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1693 each callback invocation.
1694 (arm_linux_init_abi): No longer set the regset_from_core_section
1696 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1697 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1698 each callback invocation.
1699 (ppc_linux_init_abi): No longer set the regset_from_core_section
1701 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1702 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1703 (s390_regset_from_core_section): Remove.
1704 (s390_iterate_over_regset_sections): Add regset parameter to each
1705 callback invocation.
1706 (s390_gdbarch_init): No longer set the regset_from_core_section
1707 gdbarch method. Drop initialization of deleted tdep fields.
1709 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1711 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1712 (amd64_linux_iterate_over_regset_sections): New.
1713 (amd64_linux_init_abi_common): Don't install the regset section
1714 list, but the new iterator in gdbarch.
1715 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1716 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1717 (arm_linux_iterate_over_regset_sections): ...here. New function.
1718 (arm_linux_init_abi): Set iterator instead of section list.
1719 * corelow.c (get_core_registers_cb): New function, logic moved
1721 (get_core_registers): ...loop body here. Use new iterator method
1722 instead of walking through the regset section list.
1723 * gdbarch.sh: Remove 'core_regset_sections'. New method
1724 'iterate_over_regset_sections'. New typedef
1725 'iterate_over_regset_sections_cb'.
1726 * gdbarch.c: Regenerate.
1727 * gdbarch.h: Likewise.
1728 * i386-linux-tdep.c (i386_linux_regset_sections)
1729 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1731 (i386_linux_iterate_over_regset_sections): New.
1732 (i386_linux_init_abi): Don't choose a regset section list, but
1733 install new iterator in gdbarch.
1734 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1735 (linux_collect_regset_section_cb): New function, logic moved
1737 (linux_collect_thread_registers): ...loop body here. Use iterator
1738 method instead of walking through list.
1739 (linux_make_corefile_notes_1): Check for presence of iterator
1740 method instead of regset section list.
1741 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1742 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1743 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1744 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1745 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1746 (ppc_linux_init_abi): Don't choose from above regset section
1747 lists, but install new iterator in gdbarch.
1748 * regset.h (struct core_regset_section): Remove.
1749 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1750 have_linux_v1, have_linux_v2, and have_tdb.
1751 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1752 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1753 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1754 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1755 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1756 (s390_iterate_over_regset_sections): ...here. New function. Use
1758 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1759 regset section lists, but install new iterator.
1761 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1763 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1765 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1767 * progspace.c (print_program_space): Don't prune program spaces
1768 before printing them.
1770 2014-09-25 Pedro Alves <palves@redhat.com>
1772 * infrun.c (user_visible_resume_ptid): Don't check
1773 singlestep_breakpoints_inserted_p.
1775 2014-09-25 Pedro Alves <palves@redhat.com>
1777 * breakpoint.c (should_be_inserted): Add debug output.
1779 2014-09-25 Pedro Alves <palves@redhat.com>
1781 * infrun.c (stepping_past_instruction_at)
1782 (clear_exit_convenience_vars): Point at infrun.h instead of
1784 (handle_signal_stop): Fix typo.
1786 2014-09-24 Yao Qi <yao@codesourcery.com>
1788 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1791 2014-09-22 Gary Benson <gbenson@redhat.com>
1793 * target.c (target_stop): Updated comment.
1795 2014-09-22 Gary Benson <gbenson@redhat.com>
1797 * target/target.h (target_stop_ptid): Renamed as...
1798 (target_stop_and_wait): New function. Updated comment.
1800 (target_continue_ptid): Renamed as...
1801 (target_continue_no_signal): New function. Updated comment.
1804 2014-09-22 Pedro Alves <palves@redhat.com>
1806 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1808 * breakpoint.c (enum ugll_insert_mode): New enum.
1809 (always_inserted_mode): Now a plain boolean.
1810 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1811 (breakpoints_always_inserted_mode): Delete.
1812 (breakpoints_should_be_inserted_now): New function.
1813 (insert_breakpoints): Pass UGLL_INSERT to
1814 update_global_location_list instead of calling
1815 insert_breakpoint_locations manually.
1816 (create_solib_event_breakpoint_1): New, factored out from ...
1817 (create_solib_event_breakpoint): ... this.
1818 (create_and_insert_solib_event_breakpoint): Use
1819 create_solib_event_breakpoint_1 instead of calling
1820 insert_breakpoint_locations manually.
1821 (update_global_location_list): Change parameter type from boolean
1822 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1823 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1824 (update_global_location_list_nothrow): Change parameter type from
1825 boolean to enum ugll_insert_mode.
1826 (_initialize_breakpoint): "breakpoint always-inserted" option is
1827 now a boolean command. Update help text.
1828 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1829 (breakpoints_should_be_inserted_now): New declaration.
1830 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1831 Remove breakpoints_always_inserted_mode check.
1832 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1833 * remote.c (remote_start_remote): Likewise.
1835 2014-09-22 Pedro Alves <palves@redhat.com>
1837 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1838 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1839 Instead, pass UGLL_INSERT to update_global_location_list.
1840 (update_global_location_list): Change parameter type from boolean
1841 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1842 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1843 (create_solib_event_breakpoint_1): New, factored out from ...
1844 (create_solib_event_breakpoint): ... this.
1845 (create_and_insert_solib_event_breakpoint): Use
1846 create_solib_event_breakpoint_1 instead of calling
1847 insert_breakpoint_locations manually.
1848 (update_global_location_list): Handle UGLL_INSERT.
1850 2014-09-22 Pedro Alves <palves@redhat.com>
1852 * breakpoint.c (enum ugll_insert_mode): New enum.
1853 (update_global_location_list)
1854 (update_global_location_list_nothrow): Change parameter type from
1855 boolean to enum ugll_insert_mode. All callers adjusted.
1857 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1859 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1860 SystemTap support in GDB.
1862 2014-09-19 Don Breazeal <donb@codesourcery.com>
1864 * linux-nat.c (linux_handle_extended_wait): Call
1865 linux_ptrace_get_extended_event.
1866 (wait_lwp): Call linux_is_extended_waitstatus.
1867 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1868 and linux_is_extended_waitstatus.
1869 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1870 linux_ptrace_get_extended_event.
1871 (linux_ptrace_get_extended_event): New function.
1872 (linux_is_extended_waitstatus): New function.
1873 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1874 (linux_is_extended_waitstatus): New declarations.
1876 2014-09-19 Yao Qi <yao@codesourcery.com>
1878 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1879 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1880 comments. Callers update.
1881 (dwarf_decode_lines): Likewise.
1882 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1883 comments. Skip the line table if 'lowpc' is greater than
1884 'address'. Don't check
1885 dwarf2_per_objfile->has_section_at_zero.
1887 2014-09-18 Doug Evans <dje@google.com>
1889 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1890 * python/py-symtab.c (stpy_get_producer): New function.
1891 (symtab_object_getset): Add "producer" attribute.
1893 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1896 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1897 (do_captured_read_memory_integer): Remove.
1898 (safe_read_memory_integer): Use target_read_memory directly instead
1899 of catching errors in do_captured_read_memory_integer.
1901 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1903 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1906 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1908 * objc-lang.c (find_implementation_from_class): Remove dead code.
1910 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1913 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1914 "fprintf_unfiltered (gdb_stdlog...)".
1916 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1918 PR breakpoints/12526
1919 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1921 * breakpoint.c (watch_command_1): Use these fields to retain
1922 bitfield information.
1923 (extract_bitfield_from_watchpoint_value): New function.
1924 (watchpoint_check): Use it.
1925 (update_watchpoint): Use it. Optimize the address and length of a
1926 HW watchpoint pointing to a bitfield.
1927 * value.h (unpack_value_bitfield): New prototype.
1928 * value.c (unpack_value_bitfield): Make extern.
1930 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1932 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1934 * gnu-nat.c (inf_threads): New function.
1935 * gnu-nat.h (inf_threads_ftype): New typedef.
1936 (inf_threads): New declaration.
1937 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1938 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1939 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1940 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1941 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1942 (i386_gnu_dr_get_control): New functions.
1943 (reg_addr): New structure.
1944 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1945 i386 debugging register hooks.
1946 * NEWS: Mention this.
1948 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1950 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1951 vector data transfer instructions.
1952 (arm_record_coproc_data_proc): Updated.
1954 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1956 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1957 arm_record_exreg_ld_st_insn.
1958 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1961 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1963 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1964 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1965 processing instructions.
1967 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1969 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1970 for advance SIMD struct ld/st insn.
1971 (thumb2_record_decode_insn_handler): Replace stub handler with
1972 thumb2_record_asimd_struct_ld_st.
1974 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1976 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1977 for asimd, vfp and coprocessor insns.
1978 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1979 and coprocessor insns.
1980 (thumb2_record_coproc_insn): New function.
1981 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1983 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1986 2014-09-13 Doug Evans <xdje42@gmail.com>
1988 * NEWS: Mention new "queue-signal" command.
1989 * infcmd.c (queue_signal_command): New function.
1990 (_initialize_infcmd): Add new queue-signal command.
1992 2014-09-13 Doug Evans <xdje42@gmail.com>
1994 * linux-nat.c (wait_lwp): Add debugging printf.
1995 (linux_nat_wait_1): Ditto.
1997 2014-09-12 Pedro Alves <palves@redhat.com>
1999 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2000 (create_and_insert_solib_event_breakpoint): New functions.
2001 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2002 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2003 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2004 (remove_dbx_link_breakpoint): Delete function.
2005 (insert_dbx_link_bpt_in_file): Use
2006 create_and_insert_solib_event_breakpoint instead of
2007 deprecated_insert_raw_breakpoint.
2008 (procfs_wait): Don't check whether we hit __dbx_link here.
2009 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2011 * solib-irix.c (base_breakpoint): Delete global.
2012 (disable_break): Delete function.
2013 (enable_break): Use create_solib_event_breakpoint
2014 instead of deprecated_insert_raw_breakpoint.
2015 (irix_solib_handle_event): New function.
2016 (irix_solib_create_inferior_hook): Don't run the target or disable
2017 the mapping-complete breakpoint here.
2018 (_initialize_irix_solib): Install irix_solib_handle_event as
2019 so_ops->handle_event hook.
2021 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2022 Ulrich Weigand <uweigand@de.ibm.com>
2025 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2026 instead of read_memory_unsigned_integer.
2028 2014-09-12 Gary Benson <gbenson@redhat.com>
2030 * nat/linux-waitpid.c: Include common-defs.h.
2031 [GDBSERVER]: Add FIXME comment.
2032 [!GDBSERVER]: Don't include defs.h or signal.h.
2033 (linux_debug) [!GDBSERVER]: Remove empty block.
2035 2014-09-12 Gary Benson <gbenson@redhat.com>
2037 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2038 Don't include defs.h or server.h.
2040 2014-09-12 Gary Benson <gbenson@redhat.com>
2042 * nat/linux-btrace.c: Include common-defs.h.
2043 Don't include defs.h, server.h or gdbthread.h.
2044 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2046 2014-09-12 Gary Benson <gbenson@redhat.com>
2048 * common/agent.c: Include common-defs.h.
2049 Don't include defs.h or server.h.
2050 * common/buffer.c: Likewise.
2051 * common/common-debug.c: Likewise.
2052 * common/common-utils.c: Likewise.
2053 * common/errors.c: Likewise.
2054 * common/filestuff.c: Likewise.
2055 * common/format.c: Likewise.
2056 * common/gdb_vecs.c: Likewise.
2057 * common/print-utils.c: Likewise.
2058 * common/ptid.c: Likewise.
2059 * common/rsp-low.c: Likewise.
2060 * common/signals.c: Likewise.
2061 * common/vec.c: Likewise.
2062 * common/xml-utils.c: Likewise.
2063 * nat/linux-osdata.c: Likewise.
2064 * nat/linux-procfs.c: Likewise.
2065 * nat/linux-ptrace.c: Likewise.
2066 * nat/mips-linux-watch.c: Likewise.
2067 * target/waitstatus.c: Likewise.
2069 2014-09-12 Tom Tromey <tromey@redhat.com>
2070 Gary Benson <gbenson@redhat.com>
2072 * common/common-regcache.h: New file.
2073 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2074 * regcache.h: Include common-regcache.h.
2075 (regcache_read_pc): Don't declare.
2076 * regcache.c (get_thread_regcache_for_ptid): New function.
2077 * nat/linux-btrace.c: Don't include regcache.h.
2078 Include common-regcache.h.
2079 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2081 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2083 * regcache.h (struct regset): Declare.
2085 2014-09-11 Pedro Alves <palves@redhat.com>
2088 * main.c: Include "infrun.h".
2089 (catch_command_errors, catch_command_errors_const): Wait for the
2090 foreground command to complete.
2091 * top.c (maybe_wait_sync_command_done): New function, factored out
2093 (maybe_wait_sync_command_done): ... here.
2094 * top.h (maybe_wait_sync_command_done): New declaration.
2096 2014-09-11 Tom Tromey <tromey@redhat.com>
2097 Gary Benson <gbenson@redhat.com>
2099 * common/symbol.h: New file.
2100 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2101 * minsyms.c (find_minimal_symbol_address): New function.
2102 * common/agent.c: Include common/symbol.h.
2103 [!GDBSERVER]: Don't include objfiles.h.
2104 (agent_look_up_symbols): Use find_minimal_symbol_address.
2106 2014-09-11 Gary Benson <gbenson@redhat.com>
2108 * target/target.h (target_stop_ptid, target_continue_ptid):
2110 * target.c (target_stop_ptid, target_continue_ptid): New
2112 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2113 (agent_run_command): Always use target_stop_ptid and
2114 target_continue_ptid.
2116 2014-09-11 Tom Tromey <tromey@redhat.com>
2117 Gary Benson <gbenson@redhat.com>
2119 * target/target.h: New file.
2120 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2121 * target.h: Include target/target.h.
2122 (target_read_memory, target_write_memory): Don't declare.
2123 * target.c (target_read_uint32): New function.
2124 * common/agent.c: Include target/target.h.
2125 [!GDBSERVER]: Don't include target.h.
2126 (helper_thread_id): Type changed to uint32_t.
2127 (agent_get_helper_thread_id): Use target_read_uint32.
2128 (agent_run_command): Always use target_read_memory and
2129 target_write_memory.
2130 (agent_capability): Type changed to uint32_t.
2131 (agent_capability_check): Use target_read_uint32.
2133 2014-09-11 Gary Benson <gbenson@redhat.com>
2135 * common/common-debug.h (show_debug_regs): Declare.
2136 * common/common-debug.c (show_debug_regs): Define.
2137 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2138 all uses with show_debug_regs. Replace all uses that considered
2139 debug_hw_points as a multi-value integer with straight boolean
2141 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2142 with show_debug_regs.
2143 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2144 all uses with show_debug_regs.
2145 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2146 uses with show_debug_regs.
2148 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2150 * findvar.c (address_from_register): Handle targets requiring
2151 a special conversion routine even for plain pointer types.
2153 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2155 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2156 (store_register): Do not call exec_one_dummy_insn.
2158 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2160 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2161 dereference it first. Use value_enclosing_type instead of
2163 (ada_array_length): Likewise.
2165 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2167 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2168 Adjust function implementation and documentation accordingly.
2169 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2170 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2171 Update call to ada_value_ptr_subscript.
2173 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2175 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2176 instead of VAL's type.
2178 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2180 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2182 2014-09-09 Doug Evans <xdje42@gmail.com>
2185 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2186 last parameter to pkg-config, not first.
2187 * configure.ac: Pass --with-guile provided pkg-config path to
2188 GDB_GUILE_PROGRAM_NAMES.
2189 * configure: Regenerate.
2191 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2193 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2196 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2198 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2199 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2200 the list of sections determining GDB_OSABI_IRIX.
2202 2014-09-09 James Hogan <james.hogan@imgtec.com>
2204 * MAINTAINERS (Write After Approval): Add "James Hogan".
2206 2014-09-09 James Hogan <james.hogan@imgtec.com>
2208 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2210 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2212 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2214 2014-09-08 Doug Evans <xdje42@gmail.com>
2217 * guile.c: #include <signal.h>.
2218 (_initialize_guile): Block SIGCHLD while initializing Guile.
2220 Replaces the following, which is reverted.
2222 2014-07-26 Doug Evans <xdje42@gmail.com>
2225 * configure.ac: Add check for header gc/gc.h.
2226 Add check for function setenv.
2227 * configure: Regenerate.
2228 * config.in: Regenerate.
2229 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2231 2014-09-08 Doug Evans <xdje42@gmail.com>
2233 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2234 with named constant. Fix style of pointer comparison.
2235 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2237 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2240 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2241 decide whether we display the command on "show user".
2242 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2243 printing command name.
2244 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2245 * cli/cli-decode.c (cli_user_command_p): Create helper function
2246 to verify whether cmd_list_element is a user-defined command.
2248 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2251 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2252 Fix goto out of TRY_CATCH.
2254 2014-09-06 Doug Evans <xdje42@gmail.com>
2255 Tom Tromey <tromey@redhat.com>
2258 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2259 $_any_caller_matches.
2260 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2261 * python/lib/gdb/function/caller_is.py: New file.
2263 2014-09-06 Doug Evans <xdje42@gmail.com>
2265 * infcmd.c (program_info): Fix typo.
2267 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2270 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2271 'number'. New variable 'has_digit'. Rewrite code to deal with
2272 subexpressions on SDT probes.
2274 2014-09-04 Pedro Alves <palves@redhat.com>
2276 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2277 the input is only one character long.
2279 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2282 * f-valprint.c (f_val_print): Specify the correct print option to
2283 use when printing integer values.
2285 2014-09-04 Gary Benson <gbenson@redhat.com>
2287 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2288 Remove code to cope with LWPs wrapped as PIDs.
2289 Add assertions to ensure no wrapped LWPs are passed.
2291 2014-09-04 Pedro Alves <palves@redhat.com>
2293 * value.c (value_ranges_copy_adjusted): New function, factored out
2295 (value_contents_copy_raw): ... here.
2296 (unpack_value_bits_as_long_1): Rename back to ...
2297 (unpack_bits_as_long): ... this. Remove 'original_value' and
2298 'result' parameters. Change return type to LONGEST.
2299 (unpack_value_bits_as_long): Delete.
2300 (unpack_value_field_as_long_1): Delete.
2301 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2302 (unpack_value_bitfield): New function.
2303 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2304 (value_fetch_lazy): Use unpack_value_bitfield.
2305 * value.h (unpack_value_bits_as_long): Delete declaration.
2307 2014-09-03 Sasha Smundak <asmundak@google.com>
2309 * python/py-frame.c (frapy_read_register): New function.
2311 2014-09-03 James Hogan <james.hogan@imgtec.com>
2313 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2314 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2316 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2319 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2321 (add_cmd): Set "completer_handle_brkchars" to NULL.
2322 * cli/cli-decode.h (struct cmd_list_element)
2323 <completer_handle_brkchars>: New field.
2324 * command.h (completer_ftype_void): New typedef.
2325 (set_cmd_completer_handle_brkchars): New prototype.
2326 * completer.c (set_gdb_completion_word_break_characters): New
2328 (complete_line_internal): Call "completer_handle_brkchars"
2329 callback from command.
2330 * completer.h: Include "command.h".
2331 (set_gdb_completion_word_break_characters): New prototype.
2332 * python/py-cmd.c (cmdpy_completer_helper): New function.
2333 (cmdpy_completer_handle_brkchars): New function.
2334 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2335 (cmdpy_init): Set completer_handle_brkchars to
2336 cmdpy_completer_handle_brkchars.
2338 2014-09-03 Gary Benson <gbenson@redhat.com>
2340 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2341 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2342 Loop conditions changed to equivalent form.
2343 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2344 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2345 ALL_DEBUG_ADDRESS_REGISTERS.
2347 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2349 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2352 2014-09-02 Doug Evans <dje@google.com>
2354 * typeprint.c (find_global_typedef): Fix comment.
2356 2014-09-02 Gary Benson <gbenson@redhat.com>
2358 * i386-nat.h: Renamed as...
2359 * x86-nat.h: New file. All type, function and variable name
2360 prefixes changed from "i386_" to "x86_". All references updated.
2361 * i386-nat.c: Renamed as...
2362 * x86-nat.c: New file. All type, function and variable name
2363 prefixes changed from "i386_" to "x86_". All references updated.
2364 * common/i386-xstate.h: Renamed as...
2365 * common/x86-xstate.h: New file. All type, function and variable
2366 name prefixes changed from "i386_" to "x86_". All references
2368 * nat/i386-cpuid.h: Renamed as...
2369 * nat/x86-cpuid.h: New file. All type, function and variable name
2370 prefixes changed from "i386_" to "x86_". All references updated.
2371 * nat/i386-gcc-cpuid.h: Renamed as...
2372 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2373 name prefixes changed from "i386_" to "x86_". All references
2375 * nat/i386-dregs.h: Renamed as...
2376 * nat/x86-dregs.h: New file. All type, function and variable name
2377 prefixes changed from "i386_" to "x86_". All references updated.
2378 * nat/i386-dregs.c: Renamed as...
2379 * nat/x86-dregs.c: New file. All type, function and variable name
2380 prefixes changed from "i386_" to "x86_". All references updated.
2382 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2384 * varobj.c (_initialize_varobj): Move to the end of file.
2386 2014-08-29 Gary Benson <gbenson@redhat.com>
2388 * common/common-exceptions.h: New file.
2389 * common/common-exceptions.c: Likewise.
2390 * Makefile.in (SFILES): Add common/common-exceptions.c.
2391 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2392 (COMMON_OBS): Add common-exceptions.o.
2393 (common-exceptions.o): New rule.
2394 * exceptions.h (common-exceptions.h): Include.
2395 (gdb_setjmp.h): Do not include.
2396 (return_reason): Moved to common-exceptions.h.
2397 (enum return_reason): Likewise.
2398 (RETURN_MASK): Likewise.
2399 (typedef return_mask): Likewise.
2400 (enum errors): Likewise.
2401 (struct gdb_exception): Likewise.
2402 (exceptions_state_mc_init): Likewise.
2403 (exceptions_state_mc_action_iter): Likewise.
2404 (exceptions_state_mc_action_iter_1): Likewise.
2405 (TRY_CATCH): Likewise.
2406 (throw_exception): Likewise.
2407 (throw_verror): Likewise.
2408 (throw_vquit): Likewise.
2409 (throw_error): Likewise.
2410 (throw_quit): Likewise.
2411 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2412 (enum catcher_action): Likewise.
2413 (struct catcher): Likewise.
2414 (current_catcher): Likewise.
2415 (catcher_list_size): Likewise.
2416 (exceptions_state_mc_init): Likewise.
2417 (catcher_pop): Likewise.
2418 (exceptions_state_mc): Likewise.
2419 (exceptions_state_mc_action_iter): Likewise.
2420 (exceptions_state_mc_action_iter_1): Likewise.
2421 (throw_exception): Likewise.
2422 (exception_messages): Likewise.
2423 (exception_messages_size): Likewise.
2424 (throw_it): Likewise.
2425 (throw_verror): Likewise.
2426 (throw_vquit): Likewise.
2427 (throw_error): Likewise.
2428 (throw_quit): Likewise.
2429 (prepare_to_throw_exception): New function.
2431 2014-08-29 Gary Benson <gbenson@redhat.com>
2433 * common/gdb_setjmp.h: New file.
2434 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2435 * configure.ac: Move sigsetjmp check...
2436 * common/common.m4: ...here.
2437 * configure: Regenerate.
2438 * cp-support.c (SIGJMP_BUF): Delete.
2439 (SIGSETJMP): Likewise.
2440 (SIGLONGJMP): Likewise.
2441 * exceptions.h (gdb_setjmp.h): Include.
2442 (setjmp.h): Do not include.
2443 (EXCEPTIONS_SIGJMP_BUF): Delete.
2444 (EXCEPTIONS_SIGSETJMP): Likewise.
2445 (EXCEPTIONS_SIGLONGJMP): Likewise.
2446 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2448 * exceptions.c: Likewise.
2450 2014-08-29 Gary Benson <gbenson@redhat.com>
2452 * cleanups.h: Moved to...
2453 * common/cleanups.h: New file.
2454 * cleanups.c: Moved to...
2455 * common/cleanups.c: New file. Include common-defs.h and
2456 cleanups.h. Do not include defs.h.
2457 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2458 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2459 (cleanups.o): New rule.
2461 2014-08-29 Gary Benson <gbenson@redhat.com>
2463 * common/errors.h (internal_warning): New declaration.
2464 (internal_vwarning): Likewise.
2465 * common/errors.c (internal_warning): New function.
2466 * utils.h (internal_warning): Don't declare.
2467 (internal_vwarning): Likewise.
2468 * utils.c (internal_warning): Removed.
2470 2014-08-29 Gary Benson <gbenson@redhat.com>
2472 * main.c (captured_main): Use warning during startup.
2473 Prefix startup warning messages with command name.
2475 2014-08-29 Gary Benson <gbenson@redhat.com>
2477 * main.c (captured_main): Handle usage errors with error.
2479 2014-08-29 Gary Benson <gbenson@redhat.com>
2481 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2482 exit pair with a call to error. Wrap the message with _().
2484 2014-08-29 Gary Benson <gbenson@redhat.com>
2486 * main.c (captured_main): Replace a fprintf/exit
2487 pair with a call to error. Wrap the message with _().
2489 2014-08-29 Gary Benson <gbenson@redhat.com>
2491 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2492 pairs with calls to error. Wrap the message with _().
2494 2014-08-29 Gary Benson <gbenson@redhat.com>
2496 * utils.c (vwarning): Protect calls to target_terminal_ours
2499 2014-08-29 Gary Benson <gbenson@redhat.com>
2501 * exceptions.c (print_flush): Protect calls to
2502 target_terminal_ours and wrap_here.
2504 2014-08-29 Gary Benson <gbenson@redhat.com>
2506 * utils.h (filtered_printing_initialized): New declaration.
2507 * utils.c (abort_with_message): New function.
2508 (internal_vproblem): Use abort_with_message for first level
2509 recursive internal problems, and if gdb_stderr is not set up.
2510 Protect calls to target_terminal_ours, begin_line and query.
2512 2014-08-28 Doug Evans <dje@google.com>
2514 * symtab.c (in_prologue): Move definition to better spot.
2515 (skip_prologue_using_sal): Ditto.
2517 2014-08-28 Doug Evans <dje@google.com>
2519 * symtab.c (find_function_start_sal): Move definition to better spot.
2521 2014-08-28 Yao Qi <yao@codesourcery.com>
2523 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2524 found_stack_adjust in forward scan. Remove condition check
2525 on found_stack_adjust which is always true. Indent the code.
2527 2014-08-28 Yao Qi <yao@codesourcery.com>
2529 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2530 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2531 (dwarf_decode_lines): Remove argument
2532 want_line_info. Remove condition check on want_line_info.
2535 2014-08-27 Doug Evans <dje@google.com>
2537 * dwarf2read.c (dwarf_record_line): Fix typo.
2539 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2541 * target.h (struct target_ops::to_terminal_save_ours): Remove
2543 (target_terminal_save_ours): Remove macro.
2544 * target-delegates.c: Regenerate.
2545 * inf-child.c (inf_child_target): Don't set the nonexistent
2546 field to_terminal_save_ours.
2547 * inferior.h (child_terminal_save_ours): Remove declaration.
2548 * terminal.h (gdb_save_tty_state): New declaration.
2549 * inflow.c (child_terminal_save_ours): Rename to ...
2550 (gdb_save_tty_state): ... this.
2551 * tui/tui.c: Include terminal.h.
2552 (tui_enable): Use gdb_save_tty_state instead of
2553 target_terminal_save_ours.
2554 (tui_disable): Likewise.
2556 2014-08-25 Doug Evans <dje@google.com>
2558 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2559 Pass NULL instead of 0 for context pointer.
2561 2014-08-25 Yao Qi <yao@codesourcery.com>
2563 * dwarf2read.c: Fix grammatical error.
2565 2014-08-24 Yao Qi <yao@codesourcery.com>
2567 * dwarf2read.c (scan_partial_symbols): Update comments.
2568 Rename argument 'need_pc' with 'set_addrmap'.
2569 (add_partial_namespace): Rename argument 'need_pc' with
2571 (add_partial_module): Likewise.
2572 (add_partial_subprogram): Likewise. Update comments.
2573 (dwarf2_name): Fix typo.
2575 2014-08-22 Doug Evans <dje@google.com>
2578 * dwarf2read.c (dwarf_record_line_p): New function.
2579 (dwarf_decode_lines_1): Ignore subsequent line number entries
2580 for the same line if any entry had a non-zero discriminator.
2582 2014-08-22 Doug Evans <dje@google.com>
2584 * buildsym.h (record_line_ftype): New typedef.
2585 (record_line): Use it.
2586 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2587 (dwarf_decode_lines_1): Call them.
2589 2014-08-22 Yao Qi <yao@codesourcery.com>
2591 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2592 (ctf_end): Remove code.
2594 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2596 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2597 (linux_make_corefile_notes): call update_thread_list, protected against
2600 2014-08-21 Pedro Alves <palves@redhat.com>
2602 * infcmd.c (attach_command): Remove comment.
2604 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2606 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2607 unsigned LONGEST to ULONGEST.
2609 2014-08-20 Pedro Alves <palves@redhat.com>
2611 * Makefile.in (check-read1): New rule.
2613 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2615 * value.c (value_from_contents_and_address): Strip resolved_type's
2616 typedef layers before checking its TYPE_DATA_LOCATION.
2618 2014-08-20 Pedro Alves <palves@redhat.com>
2620 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2622 2014-08-20 Yao Qi <yao@codesourcery.com>
2624 * amd64-tdep.c (amd64_classify): Add a blank line after the
2625 example. Move "*/" to a new line.
2626 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2627 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2628 * dwarf2read.c (psymtab_include_file_name): Likewise.
2630 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2631 Pedro Alves <palves@redhat.com>
2635 * ada-lang.c (coerce_unspec_val_to_type): Use
2636 value_contents_copy_raw.
2637 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2638 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2639 * cp-valprint.c (cp_print_value_fields): Let the common printing
2640 code handle optimized out values.
2641 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2642 * d-valprint.c (dynamic_array_type): Use
2643 value_bits_any_optimized_out.
2644 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2645 check_any_valid fields.
2646 (check_pieced_value_bits): Delete and inline ...
2647 (check_pieced_synthetic_pointer): ... here.
2648 (check_pieced_value_validity): Delete.
2649 (check_pieced_value_invalid): Delete.
2650 (pieced_value_funcs): Remove check_validity and check_any_valid
2652 (read_pieced_value): Use mark_value_bits_optimized_out.
2653 (write_pieced_value): Switch to use
2654 mark_value_bytes_optimized_out.
2655 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2656 of assuming the whole value is optimized out.
2657 * findvar.c (read_frame_register_value): Remove special handling
2658 of optimized out registers.
2659 (value_from_register): Use mark_value_bytes_optimized_out.
2660 * frame-unwind.c (frame_unwind_got_optimized): Use
2661 mark_value_bytes_optimized_out.
2662 * jv-valprint.c (java_value_print): Adjust.
2663 (java_print_value_fields): Let the common printing code handle
2664 optimized out values.
2665 * mips-tdep.c (mips_print_register): Remove special handling of
2666 optimized out registers.
2667 * opencl-lang.c (lval_func_check_validity): Delete.
2668 (lval_func_check_any_valid): Delete.
2669 (opencl_value_funcs): Remove check_validity and check_any_valid
2671 * p-valprint.c (pascal_object_print_value_fields): Let the common
2672 printing code handle optimized out values.
2673 * stack.c (read_frame_arg): Remove special handling of optimized
2674 out values. Fetch both VAL and ENTRYVAL before comparing
2675 contents. Adjust to value_available_contents_eq rename.
2676 * valprint.c (valprint_check_validity)
2677 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2678 (val_print_array_elements): Adjust.
2679 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2680 (value_bits_any_optimized_out): New function.
2681 (value_entirely_covered_by_range_vector): New function, factored
2682 out from value_entirely_unavailable.
2683 (value_entirely_unavailable): Reimplement.
2684 (value_entirely_optimized_out): New function.
2685 (insert_into_bit_range_vector): New function, factored out from
2686 mark_value_bits_unavailable.
2687 (mark_value_bits_unavailable): Reimplement.
2688 (struct ranges_and_idx): New struct.
2689 (find_first_range_overlap_and_match): New function, factored out
2690 from value_available_contents_bits_eq.
2691 (value_available_contents_bits_eq): Rename to ...
2692 (value_contents_bits_eq): ... this. Check both unavailable
2693 contents and optimized out contents.
2694 (value_available_contents_eq): Rename to ...
2695 (value_contents_eq): ... this.
2696 (allocate_value_lazy): Remove reference to the old optimized_out
2698 (allocate_optimized_out_value): Use
2699 mark_value_bytes_optimized_out.
2700 (require_not_optimized_out): Adjust to check whether the
2701 optimized_out vec is empty.
2702 (ranges_copy_adjusted): New function, factored out from
2703 value_contents_copy_raw.
2704 (value_contents_copy_raw): Also copy the optimized out ranges.
2705 Assert the destination ranges aren't optimized out.
2706 (value_contents_copy): Update comment, remove call to
2707 require_not_optimized_out.
2708 (value_contents_equal): Adjust to check whether the optimized_out
2710 (set_value_optimized_out, value_optimized_out_const): Delete.
2711 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2713 (value_entirely_optimized_out, value_bits_valid): Delete.
2714 (value_copy): Take a VEC copy of the 'optimized_out' field.
2715 (value_primitive_field): Remove special handling of optimized out.
2716 (value_fetch_lazy): Assert that lazy values have no unavailable
2717 regions. Use value_bits_any_optimized_out. Remove some special
2718 handling for optimized out values.
2719 * value.h: Add intro comment about <optimized out> and
2721 (struct lval_funcs): Remove check_validity and check_any_valid
2723 (set_value_optimized_out, value_optimized_out_const): Remove.
2724 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2726 (value_bits_any_optimized_out): New declaration.
2727 (value_bits_valid): Delete declaration.
2728 (value_available_contents_eq): Rename to ...
2729 (value_contents_eq): ... this, and extend comments.
2731 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2733 Fix -fsanitize=address on unreadable inferior strings.
2734 * valprint.c (val_print_string): Fix access before BUFFER.
2736 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2738 * target.c (target_struct_size): Remove.
2739 (target_struct_allocsize): Remove.
2740 (DEFAULT_ALLOCSIZE): Remove.
2741 (target_ops_p): New typedef.
2742 (DEF_VEC_P (target_ops_p)): New vector type.
2743 (target_structs): Change type to VEC (target_ops_p).
2744 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2745 (find_default_run_target): Rewrite for loop following changes to
2748 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2750 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2751 Adjust code accordingly. Adjust function description comment.
2753 2014-08-19 Yao Qi <yao@codesourcery.com>
2755 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2758 2014-08-19 Alan Modra <amodra@gmail.com>
2760 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2761 * config.in: Regenerate.
2762 * configure: Regenerate.
2764 2014-08-19 Tom Tromey <tromey@redhat.com>
2765 Gary Benson <gbenson@redhat.com>
2767 * common/common-debug.h: New file.
2768 * common/common-debug.c: Likewise.
2769 * debug.c: Likewise.
2770 * Makefile.in (SFILES): Add common/common-debug.c.
2771 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2772 (COMMON_OBS): Add common-debug.o and debug.o.
2773 (common-debug.o): New rule.
2774 * common/common-defs.h: Include common-debug.h.
2775 * common/agent.c (debug_agent_printf): New function.
2776 (DEBUG_AGENT): Redefine.
2777 * nat/i386-dregs.c (debug_printf): Undefine.
2779 2014-08-19 Gary Benson <gbenson@redhat.com>
2781 * common/common-defs.h: Include print-utils.h.
2782 * utils.h: Do not include print-utils.h.
2784 2014-08-19 Tom Tromey <tromey@redhat.com>
2785 Gary Benson <gbenson@redhat.com>
2787 * common/common-types.h: New file.
2788 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2789 * common/common-defs.h: Include common-types.h.
2790 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2793 2014-08-19 Tom Tromey <tromey@redhat.com>
2794 Gary Benson <gbenson@redhat.com>
2796 * common/errors.h: New file.
2797 * common/errors.c: Likewise.
2798 * Makefile.in (SFILES): Add common/errors.c.
2799 (HFILES_NO_SRCDIR): Add common/errors.h.
2800 (COMMON_OBS): Add errors.o.
2801 (errors.o): New rule.
2802 * common/common-defs.h: Include errors.h.
2803 * utils.h (perror_with_name, error, verror, warning, vwarning):
2805 * common/common-utils.h: (malloc_failure, internal_error):
2808 2014-08-19 Gary Benson <gbenson@redhat.com>
2810 * utils.c (internal_vproblem): Always print the message.
2812 2014-08-18 Doug Evans <dje@google.com>
2814 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2816 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2818 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2819 Return 0 if TYPE is dynamic.
2820 (print_range): Add handling of dynamic ranges.
2822 2014-08-18 Keven Boell <keven.boell@intel.com>
2823 Joel Brobecker <brobecker@adacore.com>
2825 * gdbtypes.h (struct main_type): Add field "data_location".
2826 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2827 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2828 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2829 a dynamic data location.
2830 (resolve_dynamic_type): Add DW_AT_data_location handling.
2831 (copy_recursive, copy_type): Copy the data_location information
2833 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2834 * value.c (value_from_contents_and_address): Add
2835 DW_AT_data_location handling.
2837 2014-08-18 Keven Boell <keven.boell@intel.com>
2838 Joel Brobecker <brobecker@adacore.com>
2840 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2841 field "get_object_address".
2842 * dwarf2expr.c (execute_stack_op): Add handling for
2843 DW_OP_push_object_address.
2844 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2845 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2846 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2847 (dwarf_expr_get_obj_addr): New function.
2848 (dwarf_expr_ctx_funcs): Add get_object_address field.
2849 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2850 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2851 (dwarf2_evaluate_property): Add parameter "address". Use it.
2852 (needs_get_obj_addr): New function.
2853 (needs_frame_ctx_funcs): Add get_object_address field.
2854 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2855 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2856 (resolve_dynamic_array): Likewise.
2858 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2860 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2861 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2862 fixed value for records and unions for which some GNAT encodings
2865 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2867 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2868 rewrite to avoid "else if" and "else" constructs. Should be
2869 a no-op in practice.
2871 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2873 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2876 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2879 * eval.c: Update all calls to find_overload_match.
2880 * valarith.c: Likewise.
2881 (value_user_defined_cpp_op, value_user_defined_op): New
2882 argument NOSIDE. Update all callers.
2883 * valops.c (find_overload_match): New argument NOSIDE.
2884 * value.h (find_overload_match): Update signature.
2886 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2888 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2889 'items' methods instead of 'iteritems' method on dictionaries.
2891 2014-08-15 Doug Evans <dje@google.com>
2893 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2896 2014-08-15 Doug Evans <dje@google.com>
2898 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2900 2014-08-15 Doug Evans <dje@google.com>
2902 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2904 2014-08-15 Doug Evans <dje@google.com>
2906 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2909 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2911 * dcache.h: Include target.h, to avoid compile time warnings.
2913 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2915 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2916 frame_info" partial declaration.
2917 * gdbarch.h: Regenerate.
2919 2014-08-15 Yao Qi <yao@codesourcery.com>
2921 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2922 Add parameter 'decode_for_pst_p'. Callers update.
2924 2014-08-13 Yao Qi <yao@codesourcery.com>
2927 * configure.ac: Use local variable 'pos'.
2928 * configure: Regenerated.
2930 2014-08-11 Doug Evans <dje@google.com>
2932 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2933 message, it is redundant with "Reading symbols from ..." message.
2935 2014-08-10 Doug Evans <xdje42@gmail.com>
2937 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2939 2014-08-09 Yao Qi <yao@codesourcery.com>
2942 * remote.c (remote_xfer_partial): Remove dead code.
2944 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2946 * ia64-linux-tdep.c: Include "regset.h".
2947 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2948 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2949 (ia64_linux_supply_fpregset): New function.
2950 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2951 (ia64_linux_regset_from_core_section): New function.
2952 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2955 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2957 * m68klinux-tdep.c: Include "regset.h".
2958 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2959 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2960 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2961 (m68k_linux_regset_from_core_section): New function.
2962 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2965 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2967 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2968 function. Move logic to...
2969 (tilegx_linux_regmap): ... this new register map.
2970 (tilegx_linux_regset): Refer to register map, replace supply
2971 method by regcache_supply_regset, and add collect method.
2972 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2973 TILEGX_FIRST_EASY_REGNUM.
2975 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2977 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2978 that calls regcache_supply_regset and handles the EPC register
2979 separately. Move main logic to...
2980 (score7_linux_gregmap): ... this new register map.
2981 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2982 (score7_linux_gregset): Refer to register map. Add collect method.
2983 (score7_linux_regset_from_core_section): Replace
2984 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2985 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2986 (struct regset): Delete unused forward declaraction.
2987 (struct pt_regs): Delete structure definition.
2988 (elf_gregset_t): Delete typedef.
2990 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2992 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2993 (nios2_core_regset): Add collect method.
2995 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2997 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2998 platform-independent and don't write to read-only input buffer.
2999 (m32r_linux_collect_gregset): New function.
3000 (m32r_linux_gregset): Add collect method.
3002 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3004 * hppa-linux-tdep.c (greg_map): Rename to...
3005 (hppa_linux_gregmap): ... this. Also convert to
3006 regcache_map_entry format.
3007 (hppa_linux_supply_regset): Delete function.
3008 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3009 (hppa_linux_fpregmap): ... this new register map.
3010 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3011 register map, replace supply method by regcache_supply_regset, and
3012 add collect method regcache_collect_regset.
3014 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3016 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3017 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3018 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3019 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3020 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3021 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3022 (frv_linux_supply_gregset): Replace main logic by call to
3023 regcache_supply_regset, but keep clearing gr32-gr63.
3024 (frv_linux_supply_fpregset): Delete function.
3025 (frv_linux_gregset): Refer to appropriate register map and add
3026 regcache_collect_regset as the collect method.
3027 (frv_linux_fpregset): Likewise. Also exchange the supply method
3028 by regcache_supply_regset.
3030 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3032 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3033 by call to alpha_supply_int_regs.
3034 (alpha_linux_collect_gregset): New function.
3035 (alpha_linux_supply_fpregset): Replace logic by call to
3036 alpha_supply_fp_regs.
3037 (alpha_linux_collect_fpregset): New function.
3038 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3040 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3042 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3043 by call to regcache_collect_regset.
3044 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3045 instead of aarch64_linux_supply_gregset/_fpregset.
3046 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3047 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3048 header file instead.
3049 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3050 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3051 functions. Move logic to ...
3052 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3054 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3055 refer to new register maps, replace *_regset_from_core by
3056 regcache_supply_regset, and also use regcache_collect_regset.
3057 * aarch64-linux-tdep.h: Include "regset.h".
3058 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3060 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3061 macros, moved from C source file.
3062 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3063 variable declarations.
3065 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3067 * s390-linux-nat.c: Include "regset.h".
3068 (regmap_gregset): Delete macro.
3069 (s390_64_regmap_gregset): New register map for
3070 regcache_supply/_collect_regset.
3071 (s390_64_gregset): New regset.
3072 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3073 (regmap_fpregset): Delete macro.
3074 (s390_native_supply, s390_native_collect): Delete functions.
3075 (supply_gregset, fill_gregset): Replace s390-specific regmap
3076 handling by a call to regcache_supply/_collect_regset.
3077 (supply_fpregset, fill_fpregset): Call regcache_supply/
3078 _collect_regset instead of s390_native_supply/_collect.
3079 (fetch_regset, store_regset): Likewise. Also change the last
3080 parameter to a regset instead of a regmap.
3081 (s390_linux_fetch_inferior_registers)
3082 (390_linux_store_inferior_registers): Adjust last parameter in
3083 calls to fetch_regset and store_regset.
3084 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3085 (s390_gregmap): ... this. Also make static const and convert to
3086 regcache_map_entry format.
3087 (s390x_regmap_gregset): Delete.
3088 (s390_regmap_fpregset): Rename to...
3089 (s390_fpregmap): ... this. Make static const and convert to
3090 regcache_map_entry format.
3091 (s390_regmap_upper, s390_regmap_last_break)
3092 (s390x_regmap_last_break, s390_regmap_system_call)
3093 (s390_regmap_tdb): Likewise.
3094 (s390_supply_regset, s390_collect_regset): Remove functions.
3095 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3097 (s390_gregset, s390_fpregset, s390_upper_regset)
3098 (s390_last_break_regset, s390x_last_break_regset)
3099 (s390_system_call_regset, s390_tdb_regset): Make global and
3100 replace s390_supply/_collect_regset by regcache_supply/
3102 (s390x_gregset): Delete.
3103 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3104 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3105 (s390_regmap_fpregset, s390_regmap_last_break)
3106 (s390x_regmap_last_break, s390_regmap_system_call)
3107 (s390_regmap_tdb): Delete global variable declarations.
3108 (s390_gregset, s390_fpregset, s390_last_break_regset)
3109 (s390x_last_break_regset, s390_system_call_regset)
3110 (s390_tdb_regset): New global variable declarations.
3112 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3114 * regcache.c: Include "regset.h".
3115 (regcache_transfer_regset): New local function.
3116 (regcache_supply_regset, regcache_collect_regset): New functions.
3117 * regcache.h (struct regcache_map_entry): New structure.
3118 (REGCACHE_MAP_SKIP): New enum value.
3119 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3121 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3123 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3124 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3125 (ppc_linux_collect_gregset ): Likewise.
3126 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3127 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3128 (ppc_collect_vrregset): Likewise.
3129 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3132 2014-08-07 Yao Qi <yao@codesourcery.com>
3134 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3135 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3136 * remote.c (remote_read_bytes): Likewise.
3138 2014-08-07 Yao Qi <yao@codesourcery.com>
3140 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3142 2014-08-07 Yao Qi <yao@codesourcery.com>
3145 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3146 TARGET_XFER_OK instead of 0.
3148 2014-08-07 Gary Benson <gbenson@redhat.com>
3150 * common/common-defs.h: Include errno.h.
3151 * defs.h: Do not include errno.h.
3152 * ada-typeprint.c: Likewise.
3153 * c-typeprint.c: Likewise.
3154 * core-regset.c: Likewise.
3155 * corefile.c: Likewise.
3156 * corelow.c: Likewise.
3157 * event-loop.c: Likewise.
3158 * f-typeprint.c: Likewise.
3159 * gnu-nat.c: Likewise.
3160 * go32-nat.c: Likewise.
3161 * i386gnu-nat.c: Likewise.
3162 * m2-typeprint.c: Likewise.
3163 * nat/linux-btrace.c: Likewise.
3164 * p-typeprint.c: Likewise.
3165 * procfs.c: Likewise.
3166 * remote-sim.c: Likewise.
3167 * rs6000-nat.c: Likewise.
3168 * target.c: Likewise.
3169 * typeprint.c: Likewise.
3170 * ui-file.c: Likewise.
3171 * valops.c: Likewise.
3172 * valprint.c: Likewise.
3174 2014-08-07 Gary Benson <gbenson@redhat.com>
3176 * common/common-defs.h: Include string.h.
3177 * aarch64-tdep.c: Do not include string.h.
3178 * ada-exp.y: Likewise.
3179 * ada-lang.c: Likewise.
3180 * ada-lex.l: Likewise.
3181 * ada-typeprint.c: Likewise.
3182 * ada-valprint.c: Likewise.
3183 * aix-thread.c: Likewise.
3184 * alpha-linux-tdep.c: Likewise.
3185 * alpha-mdebug-tdep.c: Likewise.
3186 * alpha-nat.c: Likewise.
3187 * alpha-osf1-tdep.c: Likewise.
3188 * alpha-tdep.c: Likewise.
3189 * alphanbsd-tdep.c: Likewise.
3190 * amd64-dicos-tdep.c: Likewise.
3191 * amd64-linux-tdep.c: Likewise.
3192 * amd64-nat.c: Likewise.
3193 * amd64-sol2-tdep.c: Likewise.
3194 * amd64fbsd-tdep.c: Likewise.
3195 * amd64obsd-tdep.c: Likewise.
3196 * arch-utils.c: Likewise.
3197 * arm-linux-nat.c: Likewise.
3198 * arm-linux-tdep.c: Likewise.
3199 * arm-tdep.c: Likewise.
3200 * arm-wince-tdep.c: Likewise.
3201 * armbsd-tdep.c: Likewise.
3202 * armnbsd-nat.c: Likewise.
3203 * armnbsd-tdep.c: Likewise.
3204 * armobsd-tdep.c: Likewise.
3205 * avr-tdep.c: Likewise.
3206 * ax-gdb.c: Likewise.
3207 * ax-general.c: Likewise.
3208 * bcache.c: Likewise.
3209 * bfin-tdep.c: Likewise.
3210 * breakpoint.c: Likewise.
3211 * build-id.c: Likewise.
3212 * buildsym.c: Likewise.
3213 * c-exp.y: Likewise.
3214 * c-lang.c: Likewise.
3215 * c-typeprint.c: Likewise.
3216 * c-valprint.c: Likewise.
3217 * charset.c: Likewise.
3218 * cli-out.c: Likewise.
3219 * cli/cli-cmds.c: Likewise.
3220 * cli/cli-decode.c: Likewise.
3221 * cli/cli-dump.c: Likewise.
3222 * cli/cli-interp.c: Likewise.
3223 * cli/cli-logging.c: Likewise.
3224 * cli/cli-script.c: Likewise.
3225 * cli/cli-setshow.c: Likewise.
3226 * cli/cli-utils.c: Likewise.
3227 * coffread.c: Likewise.
3228 * common/agent.c: Likewise.
3229 * common/buffer.c: Likewise.
3230 * common/buffer.h: Likewise.
3231 * common/common-utils.c: Likewise.
3232 * common/filestuff.c: Likewise.
3233 * common/filestuff.c: Likewise.
3234 * common/format.c: Likewise.
3235 * common/print-utils.c: Likewise.
3236 * common/rsp-low.c: Likewise.
3237 * common/signals.c: Likewise.
3238 * common/vec.h: Likewise.
3239 * common/xml-utils.c: Likewise.
3240 * core-regset.c: Likewise.
3241 * corefile.c: Likewise.
3242 * corelow.c: Likewise.
3243 * cp-abi.c: Likewise.
3244 * cp-name-parser.y: Likewise.
3245 * cp-support.c: Likewise.
3246 * cp-valprint.c: Likewise.
3247 * cris-tdep.c: Likewise.
3248 * d-exp.y: Likewise.
3249 * darwin-nat.c: Likewise.
3250 * dbxread.c: Likewise.
3251 * dcache.c: Likewise.
3252 * demangle.c: Likewise.
3253 * dicos-tdep.c: Likewise.
3254 * disasm.c: Likewise.
3255 * doublest.c: Likewise.
3256 * dsrec.c: Likewise.
3257 * dummy-frame.c: Likewise.
3258 * dwarf2-frame.c: Likewise.
3259 * dwarf2loc.c: Likewise.
3260 * dwarf2read.c: Likewise.
3261 * elfread.c: Likewise.
3262 * environ.c: Likewise.
3264 * event-loop.c: Likewise.
3265 * exceptions.c: Likewise.
3267 * expprint.c: Likewise.
3268 * f-exp.y: Likewise.
3269 * f-lang.c: Likewise.
3270 * f-typeprint.c: Likewise.
3271 * f-valprint.c: Likewise.
3272 * fbsd-nat.c: Likewise.
3273 * findcmd.c: Likewise.
3274 * findvar.c: Likewise.
3275 * fork-child.c: Likewise.
3276 * frame.c: Likewise.
3277 * frv-linux-tdep.c: Likewise.
3278 * frv-tdep.c: Likewise.
3280 * gdb_bfd.c: Likewise.
3281 * gdbarch.c: Likewise.
3282 * gdbarch.sh: Likewise.
3283 * gdbtypes.c: Likewise.
3284 * gnu-nat.c: Likewise.
3285 * gnu-v2-abi.c: Likewise.
3286 * gnu-v3-abi.c: Likewise.
3287 * go-exp.y: Likewise.
3288 * go-lang.c: Likewise.
3289 * go32-nat.c: Likewise.
3290 * guile/guile.c: Likewise.
3291 * guile/scm-auto-load.c: Likewise.
3292 * hppa-hpux-tdep.c: Likewise.
3293 * hppa-linux-nat.c: Likewise.
3294 * hppanbsd-tdep.c: Likewise.
3295 * hppaobsd-tdep.c: Likewise.
3296 * i386-cygwin-tdep.c: Likewise.
3297 * i386-dicos-tdep.c: Likewise.
3298 * i386-linux-tdep.c: Likewise.
3299 * i386-nto-tdep.c: Likewise.
3300 * i386-sol2-tdep.c: Likewise.
3301 * i386-tdep.c: Likewise.
3302 * i386bsd-tdep.c: Likewise.
3303 * i386gnu-nat.c: Likewise.
3304 * i386nbsd-tdep.c: Likewise.
3305 * i386obsd-tdep.c: Likewise.
3306 * i387-tdep.c: Likewise.
3307 * ia64-libunwind-tdep.c: Likewise.
3308 * ia64-linux-nat.c: Likewise.
3309 * inf-child.c: Likewise.
3310 * inf-ptrace.c: Likewise.
3311 * inf-ttrace.c: Likewise.
3312 * infcall.c: Likewise.
3313 * infcmd.c: Likewise.
3314 * inflow.c: Likewise.
3315 * infrun.c: Likewise.
3316 * interps.c: Likewise.
3317 * iq2000-tdep.c: Likewise.
3318 * irix5-nat.c: Likewise.
3319 * jv-exp.y: Likewise.
3320 * jv-lang.c: Likewise.
3321 * jv-typeprint.c: Likewise.
3322 * jv-valprint.c: Likewise.
3323 * language.c: Likewise.
3324 * linux-fork.c: Likewise.
3325 * linux-nat.c: Likewise.
3326 * lm32-tdep.c: Likewise.
3327 * m2-exp.y: Likewise.
3328 * m2-typeprint.c: Likewise.
3329 * m32c-tdep.c: Likewise.
3330 * m32r-linux-nat.c: Likewise.
3331 * m32r-linux-tdep.c: Likewise.
3332 * m32r-rom.c: Likewise.
3333 * m32r-tdep.c: Likewise.
3334 * m68hc11-tdep.c: Likewise.
3335 * m68k-tdep.c: Likewise.
3336 * m68kbsd-tdep.c: Likewise.
3337 * m68klinux-nat.c: Likewise.
3338 * m68klinux-tdep.c: Likewise.
3339 * m88k-tdep.c: Likewise.
3340 * machoread.c: Likewise.
3341 * macrocmd.c: Likewise.
3343 * mdebugread.c: Likewise.
3344 * mem-break.c: Likewise.
3345 * memattr.c: Likewise.
3346 * memory-map.c: Likewise.
3347 * mep-tdep.c: Likewise.
3348 * mi/mi-cmd-break.c: Likewise.
3349 * mi/mi-cmd-disas.c: Likewise.
3350 * mi/mi-cmd-env.c: Likewise.
3351 * mi/mi-cmd-stack.c: Likewise.
3352 * mi/mi-cmd-var.c: Likewise.
3353 * mi/mi-cmds.c: Likewise.
3354 * mi/mi-console.c: Likewise.
3355 * mi/mi-getopt.c: Likewise.
3356 * mi/mi-interp.c: Likewise.
3357 * mi/mi-main.c: Likewise.
3358 * mi/mi-parse.c: Likewise.
3359 * microblaze-rom.c: Likewise.
3360 * microblaze-tdep.c: Likewise.
3361 * mingw-hdep.c: Likewise.
3362 * minidebug.c: Likewise.
3363 * minsyms.c: Likewise.
3364 * mips-irix-tdep.c: Likewise.
3365 * mips-linux-tdep.c: Likewise.
3366 * mips-tdep.c: Likewise.
3367 * mips64obsd-tdep.c: Likewise.
3368 * mipsnbsd-tdep.c: Likewise.
3369 * mipsread.c: Likewise.
3370 * mn10300-linux-tdep.c: Likewise.
3371 * mn10300-tdep.c: Likewise.
3372 * monitor.c: Likewise.
3373 * moxie-tdep.c: Likewise.
3374 * mt-tdep.c: Likewise.
3375 * nat/linux-btrace.c: Likewise.
3376 * nat/linux-osdata.c: Likewise.
3377 * nat/linux-procfs.c: Likewise.
3378 * nat/linux-ptrace.c: Likewise.
3379 * nat/linux-waitpid.c: Likewise.
3380 * nbsd-tdep.c: Likewise.
3381 * nios2-linux-tdep.c: Likewise.
3382 * nto-procfs.c: Likewise.
3383 * nto-tdep.c: Likewise.
3384 * objc-lang.c: Likewise.
3385 * objfiles.c: Likewise.
3386 * opencl-lang.c: Likewise.
3387 * osabi.c: Likewise.
3388 * osdata.c: Likewise.
3389 * p-exp.y: Likewise.
3390 * p-lang.c: Likewise.
3391 * p-typeprint.c: Likewise.
3392 * parse.c: Likewise.
3393 * posix-hdep.c: Likewise.
3394 * ppc-linux-nat.c: Likewise.
3395 * ppc-sysv-tdep.c: Likewise.
3396 * ppcfbsd-tdep.c: Likewise.
3397 * ppcnbsd-tdep.c: Likewise.
3398 * ppcobsd-tdep.c: Likewise.
3399 * printcmd.c: Likewise.
3400 * procfs.c: Likewise.
3401 * prologue-value.c: Likewise.
3402 * python/py-auto-load.c: Likewise.
3403 * python/py-gdb-readline.c: Likewise.
3404 * ravenscar-thread.c: Likewise.
3405 * regcache.c: Likewise.
3406 * registry.c: Likewise.
3407 * remote-fileio.c: Likewise.
3408 * remote-m32r-sdi.c: Likewise.
3409 * remote-mips.c: Likewise.
3410 * remote-notif.c: Likewise.
3411 * remote-sim.c: Likewise.
3412 * remote.c: Likewise.
3413 * reverse.c: Likewise.
3414 * rs6000-aix-tdep.c: Likewise.
3415 * ser-base.c: Likewise.
3416 * ser-go32.c: Likewise.
3417 * ser-mingw.c: Likewise.
3418 * ser-pipe.c: Likewise.
3419 * ser-tcp.c: Likewise.
3420 * ser-unix.c: Likewise.
3421 * serial.c: Likewise.
3422 * sh-tdep.c: Likewise.
3423 * sh64-tdep.c: Likewise.
3424 * shnbsd-tdep.c: Likewise.
3426 * sol-thread.c: Likewise.
3427 * solib-dsbt.c: Likewise.
3428 * solib-frv.c: Likewise.
3429 * solib-osf.c: Likewise.
3430 * solib-som.c: Likewise.
3431 * solib-spu.c: Likewise.
3432 * solib-target.c: Likewise.
3433 * solib.c: Likewise.
3434 * somread.c: Likewise.
3435 * source.c: Likewise.
3436 * sparc-nat.c: Likewise.
3437 * sparc-sol2-tdep.c: Likewise.
3438 * sparc-tdep.c: Likewise.
3439 * sparc64-tdep.c: Likewise.
3440 * sparc64fbsd-tdep.c: Likewise.
3441 * sparc64nbsd-tdep.c: Likewise.
3442 * sparcnbsd-tdep.c: Likewise.
3443 * spu-linux-nat.c: Likewise.
3444 * spu-multiarch.c: Likewise.
3445 * spu-tdep.c: Likewise.
3446 * stabsread.c: Likewise.
3447 * stack.c: Likewise.
3448 * std-regs.c: Likewise.
3449 * symfile.c: Likewise.
3450 * symmisc.c: Likewise.
3451 * symtab.c: Likewise.
3452 * target.c: Likewise.
3453 * thread.c: Likewise.
3454 * tilegx-linux-nat.c: Likewise.
3455 * tilegx-tdep.c: Likewise.
3457 * tracepoint.c: Likewise.
3458 * tui/tui-command.c: Likewise.
3459 * tui/tui-data.c: Likewise.
3460 * tui/tui-disasm.c: Likewise.
3461 * tui/tui-file.c: Likewise.
3462 * tui/tui-layout.c: Likewise.
3463 * tui/tui-out.c: Likewise.
3464 * tui/tui-regs.c: Likewise.
3465 * tui/tui-source.c: Likewise.
3466 * tui/tui-stack.c: Likewise.
3467 * tui/tui-win.c: Likewise.
3468 * tui/tui-windata.c: Likewise.
3469 * tui/tui-winsource.c: Likewise.
3470 * typeprint.c: Likewise.
3471 * ui-file.c: Likewise.
3472 * ui-out.c: Likewise.
3473 * user-regs.c: Likewise.
3474 * utils.c: Likewise.
3475 * v850-tdep.c: Likewise.
3476 * valarith.c: Likewise.
3477 * valops.c: Likewise.
3478 * valprint.c: Likewise.
3479 * value.c: Likewise.
3480 * varobj.c: Likewise.
3481 * vax-tdep.c: Likewise.
3482 * vaxnbsd-tdep.c: Likewise.
3483 * vaxobsd-tdep.c: Likewise.
3484 * windows-nat.c: Likewise.
3485 * xcoffread.c: Likewise.
3486 * xml-support.c: Likewise.
3487 * xstormy16-tdep.c: Likewise.
3488 * xtensa-linux-nat.c: Likewise.
3490 2014-08-07 Gary Benson <gbenson@redhat.com>
3492 * common/common-defs.h: Include gdb_assert.h.
3493 * aarch64-tdep.c: Do not include gdb_assert.h.
3494 * addrmap.c: Likewise.
3495 * aix-thread.c: Likewise.
3496 * alpha-linux-tdep.c: Likewise.
3497 * alpha-mdebug-tdep.c: Likewise.
3498 * alphanbsd-tdep.c: Likewise.
3499 * amd64-nat.c: Likewise.
3500 * amd64-tdep.c: Likewise.
3501 * amd64bsd-nat.c: Likewise.
3502 * amd64fbsd-nat.c: Likewise.
3503 * amd64fbsd-tdep.c: Likewise.
3504 * amd64nbsd-nat.c: Likewise.
3505 * amd64nbsd-tdep.c: Likewise.
3506 * amd64obsd-nat.c: Likewise.
3507 * amd64obsd-tdep.c: Likewise.
3508 * arch-utils.c: Likewise.
3509 * arm-tdep.c: Likewise.
3510 * armbsd-tdep.c: Likewise.
3512 * bcache.c: Likewise.
3513 * bfin-tdep.c: Likewise.
3514 * blockframe.c: Likewise.
3515 * breakpoint.c: Likewise.
3516 * bsd-kvm.c: Likewise.
3517 * bsd-uthread.c: Likewise.
3518 * buildsym.c: Likewise.
3519 * c-exp.y: Likewise.
3520 * c-lang.c: Likewise.
3521 * charset.c: Likewise.
3522 * cleanups.c: Likewise.
3523 * cli-out.c: Likewise.
3524 * cli/cli-decode.c: Likewise.
3525 * cli/cli-dump.c: Likewise.
3526 * cli/cli-logging.c: Likewise.
3527 * cli/cli-script.c: Likewise.
3528 * cli/cli-utils.c: Likewise.
3529 * coffread.c: Likewise.
3530 * common/common-utils.c: Likewise.
3531 * common/queue.h: Likewise.
3532 * common/signals.c: Likewise.
3533 * common/vec.h: Likewise.
3534 * complaints.c: Likewise.
3535 * completer.c: Likewise.
3536 * corelow.c: Likewise.
3537 * cp-abi.c: Likewise.
3538 * cp-name-parser.y: Likewise.
3539 * cp-namespace.c: Likewise.
3540 * cp-support.c: Likewise.
3541 * cris-tdep.c: Likewise.
3542 * dbxread.c: Likewise.
3543 * dictionary.c: Likewise.
3544 * doublest.c: Likewise.
3545 * dsrec.c: Likewise.
3546 * dummy-frame.c: Likewise.
3547 * dwarf2-frame-tailcall.c: Likewise.
3548 * dwarf2-frame.c: Likewise.
3549 * dwarf2expr.c: Likewise.
3550 * dwarf2loc.c: Likewise.
3551 * dwarf2read.c: Likewise.
3553 * event-loop.c: Likewise.
3554 * exceptions.c: Likewise.
3555 * expprint.c: Likewise.
3556 * f-valprint.c: Likewise.
3557 * fbsd-nat.c: Likewise.
3558 * findvar.c: Likewise.
3559 * frame-unwind.c: Likewise.
3560 * frame.c: Likewise.
3561 * frv-tdep.c: Likewise.
3562 * gcore.c: Likewise.
3563 * gdb-dlfcn.c: Likewise.
3564 * gdb_bfd.c: Likewise.
3565 * gdbarch.c: Likewise.
3566 * gdbarch.sh: Likewise.
3567 * gdbtypes.c: Likewise.
3568 * gnu-nat.c: Likewise.
3569 * gnu-v3-abi.c: Likewise.
3570 * go-lang.c: Likewise.
3571 * guile/scm-exception.c: Likewise.
3572 * guile/scm-gsmob.c: Likewise.
3573 * guile/scm-lazy-string.c: Likewise.
3574 * guile/scm-math.c: Likewise.
3575 * guile/scm-pretty-print.c: Likewise.
3576 * guile/scm-safe-call.c: Likewise.
3577 * guile/scm-utils.c: Likewise.
3578 * guile/scm-value.c: Likewise.
3579 * h8300-tdep.c: Likewise.
3580 * hppa-hpux-nat.c: Likewise.
3581 * hppa-tdep.c: Likewise.
3582 * hppanbsd-tdep.c: Likewise.
3583 * hppaobsd-tdep.c: Likewise.
3584 * i386-darwin-nat.c: Likewise.
3585 * i386-darwin-tdep.c: Likewise.
3586 * i386-nto-tdep.c: Likewise.
3587 * i386-tdep.c: Likewise.
3588 * i386bsd-nat.c: Likewise.
3589 * i386fbsd-tdep.c: Likewise.
3590 * i386gnu-nat.c: Likewise.
3591 * i386nbsd-tdep.c: Likewise.
3592 * i386obsd-tdep.c: Likewise.
3593 * i387-tdep.c: Likewise.
3594 * ia64-libunwind-tdep.c: Likewise.
3595 * ia64-tdep.c: Likewise.
3596 * inf-ptrace.c: Likewise.
3597 * inf-ttrace.c: Likewise.
3598 * infcall.c: Likewise.
3599 * infcmd.c: Likewise.
3600 * infrun.c: Likewise.
3601 * inline-frame.c: Likewise.
3602 * interps.c: Likewise.
3603 * jv-lang.c: Likewise.
3604 * jv-typeprint.c: Likewise.
3605 * linux-fork.c: Likewise.
3606 * linux-nat.c: Likewise.
3607 * linux-thread-db.c: Likewise.
3608 * m32c-tdep.c: Likewise.
3609 * m32r-linux-nat.c: Likewise.
3610 * m32r-tdep.c: Likewise.
3611 * m68k-tdep.c: Likewise.
3612 * m68kbsd-nat.c: Likewise.
3613 * m68kbsd-tdep.c: Likewise.
3614 * m88k-tdep.c: Likewise.
3615 * machoread.c: Likewise.
3616 * macroexp.c: Likewise.
3617 * macrotab.c: Likewise.
3618 * maint.c: Likewise.
3619 * mdebugread.c: Likewise.
3620 * memory-map.c: Likewise.
3621 * mep-tdep.c: Likewise.
3622 * mi/mi-common.c: Likewise.
3623 * microblaze-tdep.c: Likewise.
3624 * mingw-hdep.c: Likewise.
3625 * mips-linux-nat.c: Likewise.
3626 * mips-linux-tdep.c: Likewise.
3627 * mips-tdep.c: Likewise.
3628 * mips64obsd-tdep.c: Likewise.
3629 * mipsnbsd-tdep.c: Likewise.
3630 * mn10300-linux-tdep.c: Likewise.
3631 * mn10300-tdep.c: Likewise.
3632 * moxie-tdep.c: Likewise.
3633 * mt-tdep.c: Likewise.
3634 * nat/linux-btrace.c: Likewise.
3635 * nat/linux-osdata.c: Likewise.
3636 * nat/linux-ptrace.c: Likewise.
3637 * nat/mips-linux-watch.c: Likewise.
3638 * nios2-linux-tdep.c: Likewise.
3639 * nios2-tdep.c: Likewise.
3640 * objc-lang.c: Likewise.
3641 * objfiles.c: Likewise.
3642 * obsd-nat.c: Likewise.
3643 * opencl-lang.c: Likewise.
3644 * osabi.c: Likewise.
3645 * parse.c: Likewise.
3646 * ppc-linux-nat.c: Likewise.
3647 * ppc-sysv-tdep.c: Likewise.
3648 * ppcfbsd-nat.c: Likewise.
3649 * ppcfbsd-tdep.c: Likewise.
3650 * ppcnbsd-nat.c: Likewise.
3651 * ppcnbsd-tdep.c: Likewise.
3652 * ppcobsd-nat.c: Likewise.
3653 * ppcobsd-tdep.c: Likewise.
3654 * printcmd.c: Likewise.
3655 * procfs.c: Likewise.
3656 * prologue-value.c: Likewise.
3657 * psymtab.c: Likewise.
3658 * python/py-lazy-string.c: Likewise.
3659 * python/py-value.c: Likewise.
3660 * regcache.c: Likewise.
3661 * reggroups.c: Likewise.
3662 * registry.c: Likewise.
3663 * remote-sim.c: Likewise.
3664 * remote.c: Likewise.
3665 * rs6000-aix-tdep.c: Likewise.
3666 * rs6000-tdep.c: Likewise.
3667 * s390-linux-tdep.c: Likewise.
3668 * score-tdep.c: Likewise.
3669 * ser-base.c: Likewise.
3670 * ser-mingw.c: Likewise.
3671 * sh-tdep.c: Likewise.
3672 * sh64-tdep.c: Likewise.
3673 * solib-darwin.c: Likewise.
3674 * solib-spu.c: Likewise.
3675 * solib-svr4.c: Likewise.
3676 * source.c: Likewise.
3677 * sparc-nat.c: Likewise.
3678 * sparc-sol2-tdep.c: Likewise.
3679 * sparc-tdep.c: Likewise.
3680 * sparc64-sol2-tdep.c: Likewise.
3681 * sparc64-tdep.c: Likewise.
3682 * sparc64fbsd-tdep.c: Likewise.
3683 * sparc64nbsd-tdep.c: Likewise.
3684 * sparc64obsd-tdep.c: Likewise.
3685 * sparcnbsd-tdep.c: Likewise.
3686 * sparcobsd-tdep.c: Likewise.
3687 * spu-multiarch.c: Likewise.
3688 * spu-tdep.c: Likewise.
3689 * stabsread.c: Likewise.
3690 * stack.c: Likewise.
3691 * symfile.c: Likewise.
3692 * symtab.c: Likewise.
3693 * target-descriptions.c: Likewise.
3694 * target-memory.c: Likewise.
3695 * target.c: Likewise.
3696 * tic6x-linux-tdep.c: Likewise.
3697 * tic6x-tdep.c: Likewise.
3698 * tilegx-linux-nat.c: Likewise.
3699 * tilegx-tdep.c: Likewise.
3701 * tramp-frame.c: Likewise.
3702 * tui/tui-out.c: Likewise.
3703 * tui/tui-winsource.c: Likewise.
3704 * ui-out.c: Likewise.
3705 * user-regs.c: Likewise.
3706 * utils.c: Likewise.
3707 * v850-tdep.c: Likewise.
3708 * valops.c: Likewise.
3709 * value.c: Likewise.
3710 * varobj.c: Likewise.
3711 * vax-nat.c: Likewise.
3712 * xml-syscall.c: Likewise.
3713 * xml-tdesc.c: Likewise.
3714 * xstormy16-tdep.c: Likewise.
3715 * xtensa-linux-nat.c: Likewise.
3716 * xtensa-tdep.c: Likewise.
3718 2014-08-07 Gary Benson <gbenson@redhat.com>
3720 * common/common-defs.h: Include common-utils.h.
3721 * defs.h: Do not include common-utils.h.
3722 * common/gdb_assert.h: Likewise.
3723 * darwin-nat.h: Likewise.
3724 * nat/linux-btrace.c: Likewise.
3725 * target/waitstatus.h: Likewise.
3727 2014-08-07 Gary Benson <gbenson@redhat.com>
3729 * common/common-defs.h: Include ptid.h.
3730 * defs.h: Do not include ptid.h.
3731 * inferior.h: Likewise.
3732 * infrun.h: Likewise.
3733 * nat/linux-btrace.h: Likewise.
3734 * nat/linux-osdata.h: Likewise.
3735 * target/waitstatus.h: Likewise.
3737 2014-08-07 Gary Benson <gbenson@redhat.com>
3739 * common/common-defs.h: Include gdb_locale.h.
3740 * defs.h: Do not include gdb_locale.h.
3742 2014-08-07 Gary Benson <gbenson@redhat.com>
3744 * common/common-defs.h: Include gdb/signals.h.
3745 * defs.h: Do not include gdb/signals.h.
3747 2014-08-07 Gary Benson <gbenson@redhat.com>
3749 * common/common-defs.h: Include pathmax.h.
3750 * defs.h: Do not include pathmax.h.
3752 2014-08-07 Gary Benson <gbenson@redhat.com>
3754 * common/common-defs.h: Include libiberty.h.
3755 * defs.h: Do not include libiberty.h.
3756 * common/queue.h: Likewise.
3757 * cp-name-parser.y: Likewise.
3758 * mi/mi-cmd-catch.c: Likewise.
3759 * python/python.c: Likewise.
3761 2014-08-07 Gary Benson <gbenson@redhat.com>
3763 * common/common-defs.h: Include ansidecl.h.
3764 * defs.h: Do not include ansidecl.h.
3765 * common/buffer.h: Likewise.
3766 * common/common-utils.h: Likewise.
3768 2014-08-07 Gary Benson <gbenson@redhat.com>
3770 * common/common-defs.h: Include stddef.h.
3771 * defs.h: Do not include stddef.h.
3772 * common/common-utils.h: Likewise.
3773 * amd64fbsd-nat.c: Likewise.
3774 * bcache.c: Likewise.
3775 * charset.c: Likewise.
3776 * common/buffer.h: Likewise.
3777 * common/vec.h: Likewise.
3778 * i386bsd-nat.c: Likewise.
3779 * nat/linux-btrace.h: Likewise.
3780 * ppcfbsd-nat.c: Likewise.
3781 * ppcnbsd-tdep.h: Likewise.
3782 * ppcobsd-nat.c: Likewise.
3783 * ppcobsd-tdep.h: Likewise.
3784 * python/py-gdb-readline.c: Likewise.
3786 2014-08-07 Gary Benson <gbenson@redhat.com>
3788 * common/common-defs.h: Include stdarg.h.
3789 * defs.h: Do not include stdarg.h.
3790 * ada-lang.c: Likewise.
3791 * common/common-utils.h: Likewise.
3792 * guile/scm-string.c: Likewise.
3793 * guile/scm-utils.c: Likewise.
3794 * m32c-tdep.c: Likewise.
3796 2014-08-07 Gary Benson <gbenson@redhat.com>
3798 * common/common-defs.h: Include stdlib.h.
3799 * defs.h: Do not include stdlib.h.
3800 * addrmap.c: Likewise.
3801 * bcache.c: Likewise.
3802 * common/buffer.c: Likewise.
3803 * common/common-utils.c: Likewise.
3804 * cp-name-parser.y: Likewise.
3805 * go32-nat.c: Likewise.
3806 * mn10300-linux-tdep.c: Likewise.
3807 * nat/linux-osdata.c: Likewise.
3808 * tui/tui.c: Likewise.
3809 * windows-nat.c: Likewise.
3811 2014-08-07 Gary Benson <gbenson@redhat.com>
3813 * common/common-defs.h: Include stdio.h.
3814 * defs.h: Do not include stdio.h.
3815 * ada-lang.c: Likewise.
3816 * common/buffer.c: Likewise.
3817 * common/common-utils.c: Likewise.
3818 * cp-name-parser.y: Likewise.
3819 * gnu-nat.c: Likewise.
3820 * go32-nat.c: Likewise.
3821 * i386gnu-nat.c: Likewise.
3822 * proc-api.c: Likewise.
3823 * proc-events.c: Likewise.
3824 * proc-flags.c: Likewise.
3825 * proc-why.c: Likewise.
3826 * python/python-internal.h: Likewise.
3827 * target-memory.c: Likewise.
3828 * tui/tui-io.c: Likewise.
3829 * tui/tui.c: Likewise.
3831 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3833 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3834 (scan_dyntag_auxv): Same.
3836 2014-08-06 Yao Qi <yao@codesourcery.com>
3838 * amd64-linux-nat.c: Remove duplicated include
3840 * i386-linux-nat.c: Likewise.
3842 2014-08-06 Yao Qi <yao@codesourcery.com>
3844 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3845 operand" with "Special opcode" in comments.
3847 2014-08-05 Gary Benson <gbenson@redhat.com>
3849 * interps.c (initialize_interps): Remove prototype.
3850 (interpreter_initialized): Remove static global.
3851 (interp_add): Do not call initialize_interps.
3852 (initialize_interps): Remove function.
3854 2014-08-05 Gary Benson <gbenson@redhat.com>
3856 * utils.c (vwarning): Remove spurious va_end.
3858 2014-08-05 Alan Modra <amodra@gmail.com>
3860 * charset.c (convert_between_encodings): Cast result of obstack_base.
3861 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3862 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3863 (read_unwind_info): Use size_t for some locals.
3864 * jit.c (finalize_symtab): Likewise.
3865 * utils.c (hashtab_obstack_allocate): Likewise.
3866 * symmisc.c (print_objfile_statistics): Update format strings.
3868 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3870 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3871 (Changes in GDB 7.8): ... here.
3873 2014-08-04 Tom Tromey <tromey@redhat.com>
3875 * target.c (set_targetdebug): New function.
3876 (initialize_targets): Pass set_targetdebug when creating "set
3879 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3881 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3882 if detecting a variable-sized field that is not the last field.
3883 Fix struct type length computation.
3885 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3887 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3890 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3892 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3893 Remove "+ 8" offset in computation of CHAIN_VMA.
3895 2014-07-31 Doug Evans <dje@google.com>
3897 * inflow.c (child_terminal_inferior): Add comment.
3898 (child_terminal_ours_for_output): Add comment.
3899 (child_terminal_ours): Add comment.
3900 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3901 (linux_nat_terminal_ours): Add comment.
3903 2014-07-31 Gary Benson <gbenson@redhat.com>
3905 * common/btrace-common.h: Do not include defs.h or server.h.
3906 * nat/mips-linux-watch.h: Likewise.
3907 * gdb-dlfcn.h: Do not include defs.h.
3908 * tracefile.h: Likewise.
3910 2014-07-30 Roland McGrath <mcgrathr@google.com>
3912 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3914 2014-07-30 Tom Tromey <tromey@redhat.com>
3916 * bsd-kvm.c (bsd_kvm_open): Constify.
3917 * corelow.c (core_open): Constify.
3918 * ctf.c (ctf_open): Constify.
3919 * dbug-rom.c (dbug_open): Constify.
3920 * exec.c (exec_open): Constify.
3921 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3922 * microblaze-rom.c (picobug_open): Constify.
3923 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3925 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3926 * record-btrace.c (record_btrace_open): Constify.
3927 * record-full.c (record_full_core_open_1, record_full_open_1)
3928 (record_full_open): Constify.
3929 * remote-m32r-sdi.c (m32r_open): Constify.
3930 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3931 (rockhopper_open, lsi_open): Constify.
3932 * remote-sim.c (gdbsim_open): Constify.
3933 * remote.c (remote_open, extended_remote_open, remote_open_1):
3935 * target.h (struct target_ops) <to_open>: Make "arg" const.
3936 * tracefile-tfile.c (tfile_open): Constify.
3938 2014-07-30 Tom Tromey <tromey@redhat.com>
3940 * breakpoint.c (map_breakpoint_numbers): Update.
3941 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3942 (get_number_const): New function.
3943 (get_number): Rewrite using get_number_const.
3944 (init_number_or_range): Make "string" const.
3945 (number_is_in_list): Make "list" const.
3946 * cli/cli-utils.h (get_number_const): Declare.
3947 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3948 (init_number_or_range, number_is_in_list): Update.
3949 * printcmd.c (map_display_numbers): Update.
3950 * value.c (value_from_history_ref): Constify.
3951 * value.h (value_from_history_ref): Update.
3953 2014-07-30 Tom Tromey <tromey@redhat.com>
3955 * corefile.c (hook_type, call_extra_exec_file_hooks)
3956 (specify_exec_file_hook): Constify.
3957 * exec.c (exec_file_attach): Make "filename" const.
3958 * gdbcore.h (deprecated_exec_file_display_hook)
3959 (specify_exec_file_hook, exec_file_attach): Constify.
3960 * main.c (captured_main): Use catch_command_errors_const.
3962 2014-07-30 Tom Tromey <tromey@redhat.com>
3964 * target.c (open_target): New function.
3965 (add_target_with_completer, add_deprecated_target_alias): Use
3966 set_cmd_sfunc, set_cmd_context.
3967 (debug_to_open): Remove.
3968 (setup_target_debug): Update.
3970 2014-07-30 Yao Qi <yao@codesourcery.com>
3972 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3974 * parse.c (exp_iterate): Update comments.
3976 2014-07-30 Gary Benson <gbenson@redhat.com>
3978 * common/common-defs.h: New file.
3979 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3980 * defs.h: Include common-defs.h.
3981 Do not include config.h or build-gnulib/config.h.
3983 2014-07-30 Gary Benson <gbenson@redhat.com>
3985 * common/common-utils.h: Do not include config.h.
3986 * nat/linux-btrace.h: Likewise.
3988 2014-07-30 Gary Benson <gbenson@redhat.com>
3990 * btrace.c: Include defs.h.
3991 * common/ptid.c: Include defs.h or server.h as appropriate.
3992 * nat/mips-linux-watch.c: Likewise.
3994 2014-07-29 Tom Tromey <tromey@redhat.com>
3996 * target.c (target_is_pushed): Simplify.
3998 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4002 2014-07-29 Yao Qi <yao@codesourcery.com>
4005 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4007 2014-07-28 Doug Evans <xdje42@gmail.com>
4010 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4011 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4014 2014-07-28 Will Newton <will.newton@linaro.org>
4016 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4017 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4018 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4019 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4020 (THUMB2_EABI_SYSCALL): Likewise.
4021 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4023 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4024 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4026 2014-07-27 Doug Evans <xdje42@gmail.com>
4028 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4030 2014-07-27 Doug Evans <xdje42@gmail.com>
4032 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4034 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4035 Doug Evans <xdje42@gmail.com>
4038 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4039 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4040 * configure.ac: Try to use guild to compile an scm file, if it fails
4041 then disable guile support.
4042 * configure: Regenerate.
4043 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4045 (GUILE_COMPILED_FILES): New variable.
4046 (GUILE_FILES) Update.
4047 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4048 (stamp-guile): Compile scm files.
4049 * guile/guile.c (boot_guile_support): New function.
4050 (standard_throw_args_p): New function.
4051 (print_standard_throw_error, print_throw_error): New functions.
4052 (handle_boot_error): New function.
4053 (initialize_scheme_side): Rewrite to call boot_guile_support.
4054 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4055 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4057 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4058 Doug Evans <xdje42@gmail.com>
4061 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4062 * guile/lib/gdb/support.scm: New file.
4063 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4064 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4066 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4068 (%assert-type): Ditto, and renamed to assert-type.
4069 (%exception-print-style): Delete.
4071 2014-07-26 Doug Evans <xdje42@gmail.com>
4074 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4075 * configure: Regenerate.
4076 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4078 (PYTHON_FILES): New variable.
4079 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4080 (GUILE_FILES): New variable.
4081 (stamp-python, install-python, uninstall-python): Handle empty
4083 (stamp-guile, install-guile, uninstall-guile): Ditto.
4085 2014-07-26 Doug Evans <xdje42@gmail.com>
4088 * guile/lib/gdb.scm (pretty-printers): Export.
4089 (set-pretty-printers!): Export.
4090 * guile/lib/gdb/printing.scm (gdb module): Update.
4091 (prepend-pretty-printer!, append-pretty-printer!): Update.
4092 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4093 (pretty_printer_list_var): Delete.
4094 (pretty_printer_list): New static global.
4095 (gdbscm_pretty_printers): New function.
4096 (gdbscm_set_pretty_printers_x): New function.
4097 (ppscm_find_pretty_printer_from_gdb): Update.
4098 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4099 (gdbscm_initialize_pretty_printers): Update.
4101 2014-07-26 Doug Evans <xdje42@gmail.com>
4104 * configure.ac: Add check for header gc/gc.h.
4105 Add check for function setenv.
4106 * configure: Regenerate.
4107 * config.in: Regenerate.
4108 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4110 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4112 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4113 variation in gdbarch matching.
4115 2014-07-25 Tom Tromey <tromey@redhat.com>
4117 * exec.c (using_exec_ops): Remove.
4118 (exec_close_1): Update. Remove extraneous block, reindent.
4119 (add_target_sections): Use target_is_pushed.
4121 2014-07-25 Pedro Alves <palves@redhat.com>
4123 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4124 * monitor.c (monitor_create_inferior): Likewise.
4125 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4126 * remote-sim.c (gdbsim_create_inferior): Likewise.
4127 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4128 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4129 * windows-nat.c (do_initial_windows_stuff): Likewise.
4131 2014-07-25 Pedro Alves <palves@redhat.com>
4133 * NEWS: Mention signal passing and "signal" command changes.
4134 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4136 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4138 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4139 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4140 (jump_command): Adjust clear_proceed_status call.
4141 (signal_command): Warn if other thread that are resumed have
4142 signals that will be delivered. Adjust clear_proceed_status call.
4143 (until_next_command, finish_command)
4144 (proceed_after_attach_callback, attach_command_post_wait)
4145 (attach_command): Adjust clear_proceed_status call.
4146 * infrun.c (proceed_after_vfork_done): Likewise.
4147 (proceed_after_attach_callback): Adjust comment.
4148 (clear_proceed_status_thread): Clear stop_signal if not in pass
4150 (clear_proceed_status_callback): Delete.
4151 (clear_proceed_status): New 'step' parameter. Only clear the
4152 proceed status of threads the command being prepared is about to
4154 (proceed): If passed in an explicit signal, override stop_signal
4155 with it. Don't pass the last stop signal to the thread we're
4157 (init_wait_for_inferior): Adjust clear_proceed_status call.
4158 (switch_back_to_stepped_thread): Clear the signal if it should not
4160 * infrun.h (clear_proceed_status): New 'step' parameter.
4161 (user_visible_resume_ptid): Add comment.
4162 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4163 signal is in pass state.
4164 * remote.c (append_pending_thread_resumptions): Likewise.
4165 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4167 2014-07-25 Tom Tromey <tromey@redhat.com>
4169 * target.h (target_stopped_data_address)
4170 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4173 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4175 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4177 (avr_pointer_to_address): Likewise.
4179 2014-07-24 Tom Tromey <tromey@redhat.com>
4181 * monitor.c (compile_pattern): Update.
4182 * target.h (struct target_ops) <to_shortname, to_longname,
4185 2014-07-24 Tom Tromey <tromey@redhat.com>
4187 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4188 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4189 (add_info_alias, add_com): Make "doc" const.
4190 (print_doc_line): Make "str" const.
4191 (delete_cmd): Update.
4192 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4193 (print_doc_line): Update.
4194 * cli/cli-script.c (document_command): Update.
4195 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4196 (add_com, add_info, add_info_alias): Update.
4197 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4198 * python/py-cmd.c (cmdpy_destroyer): Update.
4200 2014-07-24 Tom Tromey <tromey@redhat.com>
4202 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4203 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4204 (help_cmd_list): Constify.
4205 (lookup_cmd): Update.
4206 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4208 (help_cmd_list, apropos_cmd): Update.
4209 * cli/cli-script.c (show_user): Update.
4210 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4211 * cli/cli-setshow.h (cmd_show_list): Update.
4212 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4213 (cmd_show_list): Update.
4214 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4215 * python/py-cmd.c (cmdpy_destroyer): Update.
4217 2014-07-24 Tom Tromey <tromey@redhat.com>
4219 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4220 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4222 * command.h (deprecate_cmd): Update.
4223 * maint.c (maintenance_do_deprecate): Add casts.
4225 2014-07-24 Tom Tromey <tromey@redhat.com>
4227 * cli/cli-decode.c (help_cmd): Make parameter "const".
4228 * cli/cli-decode.h (help_cmd): Update.
4230 2014-07-24 Tom Tromey <tromey@redhat.com>
4232 * stack.c (up_silently_base, down_silently_base): Make argument
4235 2014-07-24 Tom Tromey <tromey@redhat.com>
4237 * solib.c (solib_add): Make "pattern" const.
4238 * solib.h (solib_add): Update.
4240 2014-07-24 Tom Tromey <tromey@redhat.com>
4242 * remote.c (remote_serial_open, print_packet, putpkt)
4243 (putpkt_binary): Constify.
4244 * remote.h (putpkt): Update.
4246 2014-07-24 Tom Tromey <tromey@redhat.com>
4248 * monitor.c (monitor_open): Make "args" const.
4249 * monitor.h (monitor_open): Update.
4251 2014-07-24 Tom Tromey <tromey@redhat.com>
4253 * maint.c (match_bfd_flags): Make "string" const.
4254 (print_bfd_section_info): Remove casts.
4255 (print_objfile_section_info): Make "string" const.
4257 2014-07-24 Tom Tromey <tromey@redhat.com>
4259 * inf-child.c (inf_child_open_target): Make "arg" const.
4260 * inf-child.h (inf_child_open_target): Update.
4262 2014-07-24 Tom Tromey <tromey@redhat.com>
4264 * environ.c (unset_in_environ): Make "var" const.
4265 * environ.h (unset_in_environ): Update.
4267 2014-07-24 Tom Tromey <tromey@redhat.com>
4269 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4271 (scan_filename_with_cleanup): Likewise.
4272 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4273 Make arguments const.
4274 (restore_command): Update.
4276 2014-07-24 Pedro Alves <palves@redhat.com>
4278 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4280 2014-07-24 Tom Tromey <tromey@redhat.com>
4281 Gary Benson <gbenson@redhat.com>
4283 * nat/linux-ptrace.c (additional_flags): New global.
4284 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4285 additional_flags; don't check GDBSERVER.
4286 (linux_ptrace_set_additional_flags): New function.
4287 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4289 * linux-nat.c (_initialize_linux_nat): Call
4290 linux_ptrace_set_additional_flags.
4292 2014-07-24 Tom Tromey <tromey@redhat.com>
4294 * make-target-delegates (munge_type, write_debugmethod): New
4296 (debug_names): New global.
4297 ($TARGET_DEBUG_PRINTER): New global.
4298 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4300 Write debug methods. Generate init_debug_target.
4301 * target-debug.h: New file.
4302 * target-delegates.c: Rebuild.
4303 * target.c: Include target-debug.h.
4304 (debug_target): Hoist definition.
4305 (target_kill, target_get_section_table, target_memory_map)
4306 (target_flash_erase, target_flash_done, target_detach)
4307 (target_disconnect, target_wait, target_resume)
4308 (target_pass_signals, target_program_signals, target_follow_fork)
4309 (target_mourn_inferior, target_search_memory)
4310 (target_thread_address_space, target_close)
4311 (target_find_new_threads, target_core_of_thread)
4312 (target_verify_memory, target_insert_mask_watchpoint)
4313 (target_remove_mask_watchpoint): Remove targetdebug code.
4314 (debug_to_post_attach, debug_to_prepare_to_store)
4315 (debug_to_files_info, debug_to_insert_breakpoint)
4316 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4317 (debug_to_region_ok_for_hw_watchpoint)
4318 (debug_to_can_accel_watchpoint_condition)
4319 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4320 (debug_to_watchpoint_addr_within_range)
4321 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4322 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4323 (debug_to_terminal_init, debug_to_terminal_inferior)
4324 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4325 (debug_to_terminal_save_ours, debug_to_terminal_info)
4326 (debug_to_load, debug_to_post_startup_inferior)
4327 (debug_to_insert_fork_catchpoint)
4328 (debug_to_remove_fork_catchpoint)
4329 (debug_to_insert_vfork_catchpoint)
4330 (debug_to_remove_vfork_catchpoint)
4331 (debug_to_insert_exec_catchpoint)
4332 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4333 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4334 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4335 (setup_target_debug): Call init_debug_target.
4336 * target.h (TARGET_DEBUG_PRINTER): New macro.
4337 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4338 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4340 2014-07-24 Gary Benson <gbenson@redhat.com>
4342 * exceptions.h (throw_vfatal): Renamed to...
4343 (throw_vquit): New declaration.
4344 (throw_quit): Likewise.
4345 * exceptions.c (throw_vfatal): Renamed to...
4346 (throw_vquit): New function.
4347 (throw_quit): Likewise.
4348 (throw_error): Call throw_verror rather than throw_it.
4349 * utils.h (vfatal): Removed.
4351 * utils.c (vfatal): Removed.
4353 (internal_verror): Replaced call to fatal with call to throw_quit.
4354 (quit): Replaced calls to fatal with calls to throw_quit.
4356 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4358 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4361 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4363 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4364 less than zero in conditional expression.
4366 2014-07-23 Tom Tromey <tromey@redhat.com>
4368 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4369 ($INTRO_PART): Don't match whitespace.
4370 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4372 ($METHOD): Add $METHOD_TRAILER.
4374 (scan_target_h): New sub.
4375 Change main loop not to collect state.
4376 * target-delegates.c: Rebuild.
4378 2014-07-23 Gary Benson <gbenson@redhat.com>
4380 * cp-support.c (gdb_demangle): Fix build on systems without
4383 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4385 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4386 for reference entry value target data value.
4388 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4390 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4391 value_available_contents_eq.
4393 2014-07-22 Pedro Alves <palves@redhat.com>
4395 * value.c (allocate_optimized_out_value): Don't mark value as
4398 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4400 * MAINTAINERS (Write After Approval): Update my email address.
4402 2014-07-20 Doug Evans <dje@google.com>
4405 * remote.c (putpkt_binary): Add text to error message.
4407 2014-07-20 Yao Qi <yao@codesourcery.com>
4409 * eval.c: Remove "Chill" from comments.
4410 * gdbtypes.h: Likewise.
4411 * symtab.h: Likewise.
4413 2014-07-20 Yao Qi <yao@codesourcery.com>
4415 * std-operator.def: Update comments to TERNOP_SLICE.
4417 2014-07-20 Yao Qi <yao@codesourcery.com>
4419 * std-operator.def: Remove BINOP_RANGE.
4420 * breakpoint.c (watchpoint_exp_is_const): Update.
4421 * expprint.c (dump_subexp_body_standard): Likewise.
4422 * eval.c (init_array_element): Remove dead code.
4423 (evaluate_subexp_standard): Likewise.
4425 2014-07-20 Yao Qi <yao@codesourcery.com>
4427 * std-operator.def: Remove BINOP_IN.
4428 * breakpoint.c (watchpoint_exp_is_const): Update.
4429 * eval.c (evaluate_subexp_standard): Likewise.
4430 * expprint.c (dump_subexp_body_standard): Likewise.
4432 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4434 * microblaze-tdep.c (microblaze_register_names): Add
4435 the rshr and rslr register names.
4436 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4437 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4438 Use of tdesc_numbered_register. Use of
4439 microblaze_register_g_packet_guesses. Use of
4440 tdesc_use_registers. Use of set_gdbarch_register_type.
4441 (microblaze_register_g_packet_guesses): New.
4442 * microblaze-tdep.h (microblaze_reg_num): Add
4443 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4444 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4445 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4446 * features/microblaze-core.xml: New file.
4447 * features/microblaze-stack-protect.xml: New file.
4448 * features/microblaze-with-stack-protect.c: New file.
4449 * features/microblaze-with-stack-protect.xml: New file.
4450 * features/microblaze.xml: New file.
4451 * features/microblaze.c: New file.
4452 * features/Makefile (microblaze-with-stack-protect): Add
4453 microblaze-with-stack-protect microblaze and microblaze-expedite.
4454 * regformats/microblaze-with-stack-protect.dat: New file.
4455 * regformats/microblaze.dat: New file.
4456 * doc/gdb.texinfo (MicroBlaze Features): Added.
4458 2014-07-18 Tom Tromey <tromey@redhat.com>
4460 * exec.c (exec_ops): Now static.
4461 * exec.h (exec_ops): Don't declare.
4463 2014-07-18 Tom Tromey <tromey@redhat.com>
4465 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4466 to find_target_beneath.
4467 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4468 find_target_beneath.
4469 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4471 2014-07-18 Tom Tromey <tromey@redhat.com>
4474 * utils.c (quit): Use target_supports_terminal_ours.
4475 * target.h (target_supports_terminal_ours): Declare.
4476 * target.c (target_supports_delete_record): Don't check
4477 to_delete_record against NULL.
4478 (target_supports_terminal_ours): New function.
4480 2014-07-18 Tom Tromey <tromey@redhat.com>
4483 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4484 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4485 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4486 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4487 * windows-nat.c (windows_xfer_partial): Always delegate.
4488 * record-btrace.c (record_btrace_xfer_partial): Simplify
4490 (record_btrace_fetch_registers, record_btrace_store_registers)
4491 (record_btrace_prepare_to_store, record_btrace_resume)
4492 (record_btrace_wait, record_btrace_find_new_threads)
4493 (record_btrace_thread_alive): Likewise.
4494 * procfs.c (procfs_xfer_partial): Always delegate.
4495 * corelow.c (core_xfer_partial): Always delegate.
4496 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4498 2014-07-18 Tom Tromey <tromey@redhat.com>
4500 * exec.c (exec_make_note_section): Move earlier.
4502 2014-07-17 Doug Evans <dje@google.com>
4505 * maint.c (count_symtabs_and_blocks): Handle NULL
4506 current_program_space.
4507 (report_command_stats): Check global enabled flag in addition to
4508 recorded enabled flag.
4509 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4511 2014-07-16 Pedro Alves <palves@redhat.com>
4513 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4515 2014-07-16 Tom Tromey <tromey@redhat.com>
4517 * target.h (struct target_ops) <to_delete_record>: Reformat
4520 2014-07-16 Tom Tromey <tromey@redhat.com>
4522 * target-delegates.c: Rebuild.
4524 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4526 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4527 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4528 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4529 (avr_pointer_to_address): Likewise.
4530 (avr_address_class_type_flags): New function.
4531 (avr_address_class_type_flags_to_name): Likewise.
4532 (avr_address_class_name_to_type_flags): Likewise.
4533 (avr_gdbarch_init): Set address_class_type_flags,
4534 address_class_type_flags_to_name and
4535 address_class_name_to_type_flags.
4537 2014-07-15 Pedro Alves <palves@redhat.com>
4539 * linux-nat.c (kill_callback): Save errno and work with saved
4542 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4544 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4546 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4548 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4549 breakpoint support correctly.
4551 2014-07-14 Pedro Alves <palves@redhat.com>
4553 * utils.c (prompt_for_continue): Call target_terminal_ours.
4555 2014-07-14 Pedro Alves <palves@redhat.com>
4557 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4558 catch_errors. Don't re-enable stdin or notify observers where,
4560 (fetch_inferior_event_wrapper): Delete.
4562 2014-07-14 Pedro Alves <palves@redhat.com>
4565 * top.c: Include "inf-loop.h".
4566 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4568 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4570 (gdb_readline_wrapper): Store whether the target is async, and
4573 2014-07-14 Pedro Alves <palves@redhat.com>
4576 * top.c (gdb_readline_wrapper_line): Tweak comment.
4577 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4578 the input handler callback.
4580 2014-07-14 Pedro Alves <palves@redhat.com>
4583 * main.c: Include event-top.h.
4584 (handle_command_errors): New function.
4585 (catch_command_errors, catch_command_errors_const): Use it.
4587 2014-07-14 Pedro Alves <palves@redhat.com>
4589 * exceptions.c (catch_command_errors, catch_command_errors_const):
4591 * exceptions.h (catch_command_errors_ftype)
4592 (catch_command_errors_const_ftype): Moved to main.c.
4593 (catch_command_errors, catch_command_errors_const): Delete
4595 * main.c (catch_command_errors_ftype)
4596 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4597 (catch_command_errors, catch_command_errors_const)): Moved here
4598 from exceptions.c and make static.
4600 2014-07-14 Pedro Alves <palves@redhat.com>
4602 * exceptions.c (print_any_exception): Delete.
4603 (catch_exceptions_with_msg): Use exception_print instead of
4604 print_any_exception.
4605 (catch_errors): Use exception_fprintf instead of
4606 print_any_exception.
4607 (catch_command_errors, catch_command_errors_const): Use
4608 exception_print instead of print_any_exception.
4610 2014-07-14 Pedro Alves <palves@redhat.com>
4612 * infcall.c (run_inferior_call): Set 'sync_execution' while
4613 running the inferior call.
4615 2014-07-14 Pedro Alves <palves@redhat.com>
4617 * value.c (value_contents_equal): Delete function.
4618 * value.h (value_contents_equal): Delete declaration.
4620 2014-07-14 Tom Tromey <tromey@redhat.com>
4623 * gdbtypes.c (is_dynamic_type_internal): New function, from
4625 (is_dynamic_type): Rewrite.
4626 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4627 (resolve_dynamic_struct): Likewise.
4628 (resolve_dynamic_type_internal): New function, from
4629 resolve_dynamic_type.
4630 (resolve_dynamic_type): Rewrite.
4632 2014-07-14 Tom Tromey <tromey@redhat.com>
4634 * target.c (target_require_runnable): Also check record_stratum.
4637 2014-07-11 Yao Qi <yao@codesourcery.com>
4639 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4640 thumb_instruction_restores_sp return true.
4642 2014-07-11 Yao Qi <yao@codesourcery.com>
4644 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4645 (thumb_in_function_epilogue_p): Call
4646 thumb_instruction_restores_sp.
4648 2014-07-11 Yao Qi <yao@codesourcery.com>
4650 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4652 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4654 2014-07-11 Gary Benson <gbenson@redhat.com>
4656 * amd64-linux-nat.c (gdbcore.h): Remove include.
4657 (regset.h): Likewise.
4658 (nat/linux-btrace.h): Likewise.
4659 (btrace.h): Likewise.
4660 (gdb_assert.h): Likewise.
4661 (string.h): Likewise.
4662 (sys/uio.h): Likewise.
4663 (sys/debugreg.h): Likewise.
4664 (sys/syscall.h): Likewise.
4665 (sys/procfs.h): Likewise.
4666 (sys/user.h): Likewise.
4667 (asm/ptrace.h): Likewise.
4668 (i386-nat.h): Likewise.
4669 * i386-linux-nat.c (i386-nat.h): Likewise.
4670 (regset.h): Likewise.
4671 (target.h): Likewise.
4672 (linux-nat.h): Likewise.
4673 (nat/linux-btrace.h): Likewise.
4674 (btrace.h): Likewise.
4675 (gdb_assert.h): Likewise.
4676 (string.h): Likewise.
4677 (sys/uio.h): Likewise.
4678 (sys/user.h): Likewise.
4679 (sys/procfs.h): Likewise.
4680 (sys/reg.h): Likewise.
4681 (sys/debugreg.h): Likewise.
4682 (ORIG_EAX): Remove definition.
4684 2014-07-11 Gary Benson <gbenson@redhat.com>
4686 * i386-linux-nat.h: New file.
4687 * x86-linux-nat.h: Likewise.
4688 * x86-linux-nat.c: Likewise.
4689 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4690 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4691 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4692 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4693 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4694 (PTRACE_SETREGSET): Likewise.
4695 (arch_lwp_info): Now in x86-linux-nat.c.
4696 (have_ptrace_getregset): Now in x86-linux-nat.h.
4697 (x86_linux_dr_get): Now in x86-linux-nat.c.
4698 (x86_linux_dr_set): Likewise.
4699 (x86_linux_dr_get_addr): Likewise.
4700 (x86_linux_dr_get_control): Likewise.
4701 (x86_linux_dr_get_status): Likewise.
4702 (update_debug_registers_callback): Likewise.
4703 (x86_linux_dr_set_control): Likewise.
4704 (x86_linux_dr_set_addr): Likewise.
4705 (x86_linux_prepare_to_resume): Likewise.
4706 (x86_linux_new_thread): Likewise.
4707 (x86_linux_new_fork): Likewise.
4708 (x86_linux_get_thread_area): Likewise.
4709 (super_post_startup_inferior): Likewise.
4710 (x86_linux_child_post_startup_inferior): Likewise.
4711 (AMD64_LINUX_USER64_CS): Likewise.
4712 (AMD64_LINUX_X32_DS): Likewise.
4713 (x86_linux_read_description): Likewise.
4714 (x86_linux_enable_btrace): Likewise.
4715 (x86_linux_disable_btrace): Likewise.
4716 (x86_linux_teardown_btrace): Likewise.
4717 (x86_linux_read_btrace): Likewise.
4718 (x86_linux_create_target): Likewise.
4719 (x86_linux_add_target): Likewise.
4720 * i386-linux-nat.c (x86-linux-nat.h): New include.
4721 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4722 (PTRACE_SETREGSET): Likewise.
4723 (arch_lwp_info): Now in x86-linux-nat.c.
4724 (have_ptrace_getregset): Now in x86-linux-nat.h.
4725 (x86_linux_dr_get): Now in x86-linux-nat.c.
4726 (x86_linux_dr_set): Likewise.
4727 (x86_linux_dr_get_addr): Likewise.
4728 (x86_linux_dr_get_control): Likewise.
4729 (x86_linux_dr_get_status): Likewise.
4730 (update_debug_registers_callback): Likewise.
4731 (x86_linux_dr_set_control): Likewise.
4732 (x86_linux_dr_set_addr): Likewise.
4733 (x86_linux_prepare_to_resume): Likewise.
4734 (x86_linux_new_thread): Likewise.
4735 (x86_linux_new_fork): Likewise.
4736 (x86_linux_get_thread_area): Likewise.
4737 (super_post_startup_inferior): Likewise.
4738 (x86_linux_child_post_startup_inferior): Likewise.
4739 (AMD64_LINUX_USER64_CS): Likewise.
4740 (AMD64_LINUX_X32_DS): Likewise.
4741 (x86_linux_read_description): Likewise.
4742 (x86_linux_enable_btrace): Likewise.
4743 (x86_linux_disable_btrace): Likewise.
4744 (x86_linux_teardown_btrace): Likewise.
4745 (x86_linux_read_btrace): Likewise.
4746 (x86_linux_create_target): Likewise.
4747 (x86_linux_add_target): Likewise.
4749 2014-07-11 Gary Benson <gbenson@redhat.com>
4751 * amd64-linux-nat.c: Comment and whitespace changes.
4752 * i386-linux-nat.c: Comment and whitespace changes.
4754 2014-07-11 Gary Benson <gbenson@redhat.com>
4756 * amd64-linux-nat.c (x86_linux_create_target): New function.
4757 (x86_linux_add_target): Likewise.
4758 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4759 * i386-linux-nat.c (x86_linux_create_target): New function.
4760 (x86_linux_add_target): Likewise.
4761 (_initialize_i386_linux_nat): Delegate to the above new functions.
4763 2014-07-11 Gary Benson <gbenson@redhat.com>
4765 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4766 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4767 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4768 (ps_get_thread_area): Delegate to the above.
4770 2014-07-11 Gary Benson <gbenson@redhat.com>
4772 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4773 x86_linux_read_description. All uses updated. amd64-specific
4774 code conditionalized. Conditionalized i386-specific code added.
4775 Redundant cast removed.
4776 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4777 x86_linux_read_description. All uses updated. i386-specific
4778 code conditionalized. Conditionalized amd64-specific code added.
4779 One sizeof replaced with the actual type it is describing.
4781 2014-07-11 Gary Benson <gbenson@redhat.com>
4783 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4784 x86_linux_dr_get. All uses updated.
4785 (amd64_linux_dr_set): Renamed to
4786 x86_linux_dr_set. All uses updated.
4787 (amd64_linux_dr_get_addr): Renamed to
4788 x86_linux_dr_get_addr. All uses updated.
4789 (amd64_linux_dr_get_control): Renamed to
4790 x86_linux_dr_get_control. All uses updated.
4791 (amd64_linux_dr_get_status): Renamed to
4792 x86_linux_dr_get_status. All uses updated.
4793 (amd64_linux_dr_set_control): Renamed to
4794 x86_linux_dr_set_control. All uses updated.
4795 (amd64_linux_dr_set_addr): Renamed to
4796 x86_linux_dr_set_addr. All uses updated.
4797 (amd64_linux_prepare_to_resume): Renamed to
4798 x86_linux_prepare_to_resume. All uses updated.
4799 (amd64_linux_new_thread): Renamed to
4800 x86_linux_new_thread. All uses updated.
4801 (amd64_linux_new_fork): Renamed to
4802 x86_linux_new_fork. All uses updated.
4803 (amd64_linux_child_post_startup_inferior): Renamed to
4804 x86_linux_child_post_startup_inferior. All uses updated.
4805 (amd64_linux_enable_btrace): Renamed to
4806 x86_linux_enable_btrace. All uses updated.
4807 (amd64_linux_disable_btrace): Renamed to
4808 x86_linux_disable_btrace. All uses updated.
4809 (amd64_linux_teardown_btrace): Renamed to
4810 x86_linux_teardown_btrace. All uses updated.
4811 (amd64_linux_read_btrace): Renamed to
4812 x86_linux_read_btrace. All uses updated.
4813 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4814 x86_linux_dr_get. All uses updated.
4815 (i386_linux_dr_set): Renamed to
4816 x86_linux_dr_set. All uses updated.
4817 (i386_linux_dr_get_addr): Renamed to
4818 x86_linux_dr_get_addr. All uses updated.
4819 (i386_linux_dr_get_control): Renamed to
4820 x86_linux_dr_get_control. All uses updated.
4821 (i386_linux_dr_get_status): Renamed to
4822 x86_linux_dr_get_status. All uses updated.
4823 (i386_linux_dr_set_control): Renamed to
4824 x86_linux_dr_set_control. All uses updated.
4825 (i386_linux_dr_set_addr): Renamed to
4826 x86_linux_dr_set_addr. All uses updated.
4827 (i386_linux_prepare_to_resume): Renamed to
4828 x86_linux_prepare_to_resume. All uses updated.
4829 (i386_linux_new_thread): Renamed to
4830 x86_linux_new_thread. All uses updated.
4831 (i386_linux_new_fork): Renamed to
4832 x86_linux_new_fork. All uses updated.
4833 (i386_linux_child_post_startup_inferior): Renamed to
4834 x86_linux_child_post_startup_inferior. All uses updated.
4835 (i386_linux_enable_btrace): Renamed to
4836 x86_linux_enable_btrace. All uses updated.
4837 (i386_linux_disable_btrace): Renamed to
4838 x86_linux_disable_btrace. All uses updated.
4839 (i386_linux_teardown_btrace): Renamed to
4840 x86_linux_teardown_btrace. All uses updated.
4841 (i386_linux_read_btrace): Renamed to
4842 x86_linux_read_btrace. All uses updated.
4844 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4846 * remote.c (extended_remote_post_attach): New function.
4847 (init_extended_remote_ops): Install it as to_post_attach method.
4849 2014-07-09 Pedro Alves <palves@redhat.com>
4851 * infcmd.c (attach_command_post_wait): Don't call
4852 target_terminal_inferior here.
4853 (attach_command): Call it here instead.
4855 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4857 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4859 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4860 from varobj.c, with additional checks.
4861 (c_varobj_ops): Fill in is_path_expr_parent field.
4862 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4863 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4865 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4867 (varobj_default_is_path_expr_parent): New function.
4868 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4869 (varobj_default_is_path_expr_parent): Declare new function.
4871 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4873 * infcmd.c (finish_backward): Turn internal error into normal error.
4875 2014-07-07 Pedro Alves <palves@redhat.com>
4878 * remote.c (async_handle_remote_sigint)
4879 (async_handle_remote_sigint_twice): Call
4880 gdb_call_async_signal_handler instead of
4881 mark_async_signal_handler.
4883 2014-07-07 Tom Tromey <tromey@redhat.com>
4885 * target-delegates.c: Rebuild.
4886 * target.c (target_info_record): Remove.
4887 * record.c (info_record_command): Unconditionally call
4889 * target.h (struct target_ops) <to_info_record>: Use
4890 TARGET_DEFAULT_IGNORE.
4891 (target_info_record): Remove.
4893 2014-07-07 Tom Tromey <tromey@redhat.com>
4895 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4896 TARGET_DEFAULT_NORETURN.
4897 * target.c (generic_tls_error): New function.
4898 (target_translate_tls_address): Don't search target stack.
4899 * target-delegates.c: Rebuild.
4900 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4902 * linux-thread-db.c (thread_db_get_thread_local_address):
4903 Unconditionally call beneath target.
4905 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4907 * cli/cli-logging.c (pop_output_files): Assign targerr to
4910 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4912 * MAINTAINERS (Write After Approval): Update my email address.
4914 2014-07-02 Gary Benson <gbenson@redhat.com>
4916 * proc-service.c (ps_xfer_memory): Update comment.
4917 (ps_pstop): Remove unused function.
4918 (ps_pcontinue): Likewise.
4919 (ps_lstop): Likewise.
4920 (ps_lcontinue): Likewise.
4921 (ps_lgetxregsize): Likewise.
4922 (ps_lgetxregs): Likewise.
4923 (ps_lsetxregs): Likewise.
4924 (ps_plog): Likewise.
4925 (ps_ptread): Likewise.
4926 (ps_ptwrite): Likewise.
4928 2014-07-01 Mark Wielaard <mjw@redhat.com>
4930 * dwarf2read.c (add_array_cv_type): New function.
4931 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4932 (read_tag_volatile_type): Likewise.
4934 2014-07-01 Tom Tromey <tromey@redhat.com>
4936 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4937 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4938 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4939 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4940 * command.h (cmd_cfunc_ftype): Move earlier.
4941 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4942 (add_com, add_info): Use cmd_cfunc_ftype.
4944 2014-06-30 Tom Tromey <tromey@redhat.com>
4946 * symtab.c (operator_chars): Make parameters and return type
4948 (file_matches): Make "files" const.
4949 (struct search_symbols_data) <files>: Now const.
4950 (search_symbols): Make "regexp" and "files" parameters const.
4952 (symtab_symbol_info): Remove cast.
4953 (rbreak_command): Update.
4954 * symtab.h (search_symbols): Update.
4956 2014-06-27 Yao Qi <yao@codesourcery.com>
4958 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4959 Change parameter type to 'struct thread_info *'. Caller
4961 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4963 * dummy-frame.c (struct dummy_frame_id): New.
4964 (dummy_frame_id_eq): New function.
4965 (struct dummy_frame) <id>: Change its type to 'struct
4967 (dummy_frame_push): Add parameter ptid and save it in
4969 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4971 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4973 (lookup_dummy_frame): Change parameter type to 'struct
4974 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4975 instead of frame_id_eq.
4976 (dummy_frame_pop): Add parameter ptid. Callers updated.
4977 Update comments. Compose dummy_frame_id and pass it to
4979 (dummy_frame_discard): Add parameter ptid.
4980 (dummy_frame_sniffer): Compose dummy_frame_id and call
4981 dummy_frame_id_eq instead of frame_id_eq.
4982 (fprint_dummy_frames): Print ptid.
4983 * dummy-frame.h: Remove comments.
4984 (dummy_frame_push): Add ptid in declaration.
4985 (dummy_frame_pop, dummy_frame_discard): Likewise.
4987 2014-06-26 Tom Tromey <tromey@redhat.com>
4989 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4990 * command.h (error_no_arg): Update.
4992 2014-06-26 Tom Tromey <tromey@redhat.com>
4994 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4995 (do_show_command): Make "arg" const.
4996 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4998 2014-06-26 Tom Tromey <tromey@redhat.com>
5000 * record-full.c (record_full_get_bookmark): Make "args" const.
5001 (record_full_goto_bookmark): Make "raw_bookmark" const.
5002 * record.c (record_goto): New function.
5003 (cmd_record_goto): Use it. Now static.
5004 * record.h (record_goto): Declare.
5005 (cmd_record_goto): Remove declaration.
5006 * target-delegates.c: Rebuild.
5007 * target.h (struct target_ops) <to_get_bookmark,
5008 to_goto_bookmark>: Make parameter const.
5010 2014-06-26 Tom Tromey <tromey@redhat.com>
5012 * defs.h (generic_load): Update.
5013 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5014 * monitor.c (monitor_load): Make "args" const.
5015 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5016 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5018 (mips_load): Make "file" const.
5019 * remote-sim.c (gdbsim_load): Make "args" const.
5020 * remote.c (remote_load): Make "name" const.
5021 * symfile.c (generic_load): Make "args" const.
5022 * target-delegates.c: Rebuild.
5023 * target.c (target_load): Make "arg" const.
5024 (debug_to_load): Make "args" const.
5025 * target.h (struct target_ops) <to_load>: Make parameter const.
5026 (target_load): Update.
5028 2014-06-26 Tom Tromey <tromey@redhat.com>
5031 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5032 (dwarf2_physname, read_partial_die)
5033 (guess_partial_die_structure_name, fixup_partial_die)
5034 (guess_full_die_structure_name, anonymous_struct_prefix)
5035 (dwarf2_name): Use per-BFD obstack.
5037 2014-06-26 Yao Qi <yao@codesourcery.com>
5039 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5040 dummyframe and this_id into inner block below.
5042 2014-06-26 Yao Qi <yao@codesourcery.com>
5044 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5045 with "signal_pass[0]" in the initialization of signal_pass.
5047 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5049 * record-btrace.c (record_btrace_generating_corefile)
5050 (record_btrace_prepare_to_generate_core)
5051 (record_btrace_done_generating_core): New.
5052 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5053 (record_btrace_store_registers, record_btrace_prepare_to_store):
5054 Forward request when generating a core file.
5055 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5056 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5057 to_done_generating_core.
5059 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5061 * target.h (target_ops) <to_prepare_to_generate_core>
5062 <to_done_generating_core>: New.
5063 (target_prepare_to_generate_core, target_done_generating_core): New.
5064 * target.c (target_prepare_to_generate_core)
5065 (target_done_generating_core): New.
5066 * target-delegates.c: Regenerate.
5067 * gcore.c: (write_gcore_file): Rename to ...
5068 (write_gcore_file_1): ...this.
5069 (write_gcore_file): Call target_prepare_to_generate_core
5070 and target_done_generating_core.
5072 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5074 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5075 * gcore.c (write_gcore_file): Free memory returned from
5076 make_corefile_notes.
5077 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5078 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5080 2014-06-24 Yao Qi <yao@codesourcery.com>
5082 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5083 (arm_linux_init_abi): Set skip_trampoline_code with
5084 gdbarch_skip_trampoline_code instead of
5085 find_solib_trampoline_target.
5087 2014-06-24 Yao Qi <yao@codesourcery.com>
5089 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5090 arm_skip_bx_reg returns non-zero.
5092 2014-06-24 Yao Qi <yao@codesourcery.com>
5094 * arm-tdep.c (arm_skip_bx_reg): New function.
5095 (arm_skip_stub): Call arm_skip_bx_reg.
5097 2014-06-23 Don Breazeal <donb@codesourcery.com>
5099 * MAINTAINERS: Add myself as write-after-approval maintainer.
5101 2014-06-23 Pedro Alves <palves@redhat.com>
5103 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5104 DR_CONTROL before setting DR0..DR3.
5105 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5106 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5107 bits of DR_CONTROL related to the debug register slot being
5108 disabled. If all slots are vacant, clear local slowdown as well,
5109 and assert DR_CONTROL is 0.
5111 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5113 * python/lib/gdb/command/xmethods.py
5114 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5115 current progspace only if the string "progspace" matches LOCUS_RE.
5117 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5119 Fix --with-system-readline with readline-6.3 patch 5.
5120 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5121 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5124 2014-06-20 Tom Tromey <tromey@redhat.com>
5126 * dwarf2read.c (dw2_get_real_path): Use correct type in
5128 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5130 2014-06-20 Gary Benson <gbenson@redhat.com>
5132 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5133 * common/glibc_thread_db.h: Likewise.
5134 * common/i386-cpuid.h: Likewise.
5135 * common/i386-gcc-cpuid.h: Likewise.
5136 * common/linux-btrace.h: Likewise.
5137 * common/linux-osdata.h: Likewise.
5138 * common/linux-procfs.h: Likewise.
5139 * common/linux-ptrace.h: Likewise.
5140 * common/mips-linux-watch.h: Likewise.
5141 * common/linux-btrace.c: Moved to nat.
5142 * common/linux-osdata.c: Likewise.
5143 * common/linux-procfs.c: Likewise.
5144 * common/linux-ptrace.c: Likewise.
5145 * common/mips-linux-watch.c: Likewise.
5146 * nat/gdb_thread_db.h: Moved from common.
5147 * nat/glibc_thread_db.h: Likewise.
5148 * nat/i386-cpuid.h: Likewise.
5149 * nat/i386-gcc-cpuid.h: Likewise.
5150 * nat/linux-btrace.c: Likewise.
5151 * nat/linux-btrace.h: Likewise.
5152 * nat/linux-osdata.c: Likewise.
5153 * nat/linux-osdata.h: Likewise.
5154 * nat/linux-procfs.c: Likewise.
5155 * nat/linux-procfs.h: Likewise.
5156 * nat/linux-ptrace.c: Likewise.
5157 * nat/linux-ptrace.h: Likewise.
5158 * nat/mips-linux-watch.c: Likewise.
5159 * nat/mips-linux-watch.h: Likewise.
5160 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5161 (object file files): Reordered.
5162 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5163 of glibc_thread_db.h.
5165 2014-06-20 Gary Benson <gbenson@redhat.com>
5167 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5168 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5169 (i386_dr_low): Likewise.
5170 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5171 (i386_dr_low_set_addr): Likewise.
5172 (i386_dr_low_get_addr): Likewise.
5173 (i386_dr_low_can_set_control): Likewise.
5174 (i386_dr_low_set_control): Likewise.
5175 (i386_dr_low_get_control): Likewise.
5176 (i386_dr_low_get_status): Likewise.
5177 (i386_get_debug_register_length): Likewise.
5178 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5179 (i386_dr_low): Likewise.
5180 * nat/i386-dregs.c (i386-low.h): Remove include.
5181 (i386-nat.h): Likewise.
5182 (nat/i386-dregs.h): New include.
5183 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5184 (i386_dr_low_set_addr): Likewise.
5185 (i386_dr_low_get_addr): Likewise.
5186 (i386_dr_low_can_set_control): Likewise.
5187 (i386_dr_low_set_control): Likewise.
5188 (i386_dr_low_get_control): Likewise.
5189 (i386_dr_low_get_status): Likewise.
5190 (i386_get_debug_register_length): Likewise.
5191 (debug_hw_points): Likewise.
5193 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5195 * Makefile.in (SFILES): Add d-exp.y.
5196 (YYFILES): Add d-exp.c.
5197 (YYOBJ): Add d-exp.o.
5198 (local-maintainer-clean): Delete d-exp.c.
5199 * d-exp.y: New file.
5200 * d-lang.h (d_parse): New declaration.
5201 (d_error): New declaration.
5202 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5203 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5204 PREC_ORDER operators.
5205 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5207 2014-06-19 Yao Qi <yao@codesourcery.com>
5209 * gdbthread.h (any_running): Remove the declaration.
5210 * thread.c (any_running): Remove.
5212 2014-06-19 Yao Qi <yao@codesourcery.com>
5214 * gdbthread.h (struct thread_info) <state>: Change its type to
5215 'enum thread_state'. Update comments.
5217 2014-06-19 Pedro Alves <palves@redhat.com>
5219 * gdbthread.h (ALL_THREADS): Delete.
5220 (ALL_NON_EXITED_THREADS): New macro.
5221 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5222 instead of ALL_THREADS.
5223 * infrun.c (find_thread_needs_step_over)
5224 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5225 instead of ALL_THREADS.
5226 * record-btrace.c (record_btrace_open)
5227 (record_btrace_stop_recording, record_btrace_close)
5228 (record_btrace_is_replaying, record_btrace_resume)
5229 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5230 * remote.c (append_pending_thread_resumptions): Likewise.
5231 * thread.c (thread_apply_all_command): Likewise.
5233 2014-06-19 Gary Benson <gbenson@redhat.com>
5235 * i386-nat.c (i386_stopped_by_watchpoint):
5236 Use i386_dr_stopped_by_watchpoint.
5237 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5238 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5240 2014-06-19 Gary Benson <gbenson@redhat.com>
5242 * nat/i386-dregs.c: New file.
5243 * Makefile.in (i386-dregs.o): New rule.
5244 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5245 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5246 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5247 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5248 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5249 * config/i386/go32.mh (NATDEPFILES): Likewise.
5250 * config/i386/linux.mh (NATDEPFILES): Likewise.
5251 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5252 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5253 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5254 * i386-nat.h (debug_hw_points): New declaration.
5255 * i386-nat.c (breakpoint.h): Remove include.
5256 (command.h): Likewise.
5257 (target.h): Likewise.
5258 (gdb_assert.h): Likewise.
5259 (debug_hw_points): Made nonstatic.
5260 (debug_printf): Now in i386-dregs.c.
5261 (TARGET_HAS_DR_LEN_8): Likewise.
5262 (DR_CONTROL_SHIFT): Likewise.
5263 (DR_CONTROL_SIZE): Likewise.
5264 (DR_RW_EXECUTE): Likewise.
5265 (DR_RW_WRITE): Likewise.
5266 (DR_RW_READ): Likewise.
5267 (DR_RW_IORW): Likewise.
5268 (DR_LEN_1): Likewise.
5269 (DR_LEN_2): Likewise.
5270 (DR_LEN_4): Likewise.
5271 (DR_LEN_8): Likewise.
5272 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5273 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5274 (DR_ENABLE_SIZE): Likewise.
5275 (DR_LOCAL_SLOWDOWN): Likewise.
5276 (DR_GLOBAL_SLOWDOWN): Likewise.
5277 (DR_CONTROL_RESERVED): Likewise.
5278 (I386_DR_CONTROL_MASK): Likewise.
5279 (I386_DR_VACANT): Likewise.
5280 (I386_DR_LOCAL_ENABLE): Likewise.
5281 (I386_DR_GLOBAL_ENABLE): Likewise.
5282 (I386_DR_DISABLE): Likewise.
5283 (I386_DR_SET_RW_LEN): Likewise.
5284 (I386_DR_GET_RW_LEN): Likewise.
5285 (I386_DR_WATCH_HIT): Likewise.
5286 (i386_wp_op_t): Likewise.
5287 (i386_show_dr): Likewise.
5288 (i386_length_and_rw_bits): Likewise.
5289 (i386_insert_aligned_watchpoint): Likewise.
5290 (i386_remove_aligned_watchpoint): Likewise.
5291 (i386_handle_nonaligned_watchpoint): Likewise.
5292 (i386_update_inferior_debug_regs): Likewise.
5293 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5294 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5295 (i386_region_ok_for_watchpoint):
5296 Use i386_dr_region_ok_for_watchpoint.
5297 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5299 2014-06-19 Gary Benson <gbenson@redhat.com>
5301 * i386-nat.c (i386_insert_hw_breakpoint): Use
5302 i386_insert_watchpoint.
5303 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5305 2014-06-19 Gary Benson <gbenson@redhat.com>
5307 * i386-nat.c (i386_dr_show): Renamed to
5308 i386_show_dr and made static. All uses updated.
5309 (i386_dr_length_and_rw_bits): Renamed to
5310 i386_length_and_rw_bits and made static.
5312 (i386_dr_insert_aligned_watchpoint): Renamed to
5313 i386_insert_aligned_watchpoint and made static.
5315 (i386_dr_remove_aligned_watchpoint): Renamed to
5316 i386_remove_aligned_watchpoint and made static.
5318 (i386_dr_update_inferior_debug_regs): Renamed to
5319 i386_update_inferior_debug_regs and made static.
5321 * nat/i386-dregs.h (i386_dr_show): Removed.
5322 (i386_dr_length_and_rw_bits): Likewise.
5323 (i386_dr_insert_aligned_watchpoint): Likewise.
5324 (i386_dr_remove_aligned_watchpoint): Likewise.
5325 (i386_dr_update_inferior_debug_regs): Likewise.
5327 2014-06-19 Gary Benson <gbenson@redhat.com>
5329 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5330 * configure: Regenerate.
5331 * config.in: Likewise.
5332 * main.c (signal.h): New include.
5333 (setup_alternate_signal_stack): New function.
5334 (captured_main): Call the above.
5335 * cp-support.c (signal.h): New include.
5336 (catch_demangler_crashes): New flag.
5337 (SIGJMP_BUF): New define.
5338 (SIGSETJMP): Likewise.
5339 (SIGLONGJMP): Likewise.
5340 (gdb_demangle_jmp_buf): New static global.
5341 (gdb_demangle_attempt_core_dump): Likewise.
5342 (gdb_demangle_signal_handler): New function.
5343 (gdb_demangle): If catch_demangler_crashes is set, install the
5344 above signal handler before calling bfd_demangle, and restore
5345 the original signal handler afterwards. Display the offending
5346 symbol and call demangler_warning the first time a segmentation
5348 (_initialize_cp_support): New maint set/show command.
5350 2014-06-19 Gary Benson <gbenson@redhat.com>
5352 * utils.h (resource_limit_kind): New enum.
5353 (can_dump_core): New declaration.
5354 (warn_cant_dump_core): Likewise.
5355 (dump_core): Likewise.
5356 * utils.c (dump_core): Made nonstatic. Added new
5357 parameter "limit_kind".
5358 (can_dump_core): Made nonstatic. Moved printing code to...
5359 (warn_cant_dump_core): New function.
5360 (can_dump_core_warn): Likewise.
5361 (internal_vproblem): Replace calls to can_dump_core with
5362 calls to can_dump_core_warn. Supply new argument to each.
5364 2014-06-19 Gary Benson <gbenson@redhat.com>
5366 * utils.h (demangler_vwarning): New declaration.
5367 (demangler_warning): Likewise.
5368 * utils.c (struct internal_problem)
5369 <user_settable_should_quit>: New field.
5370 <user_settable_should_dump_core>: Likewise
5371 (internal_error_problem): Add values for above new fields.
5372 (internal_warning_problem): Likewise.
5373 (demangler_warning_problem): New static global.
5374 (demangler_vwarning): New function.
5375 (demangler_warning): Likewise.
5376 (add_internal_problem_command): Selectively add commands.
5377 (_initialize_utils): New internal problem command.
5378 * maint.c (maintenance_demangler_warning): New function.
5379 (_initialize_maint_cmds): New command.
5381 2014-06-18 Tom Tromey <tromey@redhat.com>
5383 * f-valprint.c (info_common_command_for_block): Update.
5384 * symtab.h (struct general_symbol_info) <common_block>: Now
5387 2014-06-18 Tom Tromey <tromey@redhat.com>
5389 * symtab.h (struct symtab) <blockvector>: Now const.
5390 * ada-lang.c (ada_add_global_exceptions): Update.
5391 * buildsym.c (augment_type_symtab): Update.
5392 * dwarf2read.c (dw2_lookup_symbol): Update.
5393 * jit.c (finalize_symtab): Update.
5394 * jv-lang.c (add_class_symtab_symbol): Update.
5395 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5397 * objfiles.c (objfile_relocate1): Update.
5398 * psymtab.c (lookup_symbol_aux_psymtabs)
5399 (maintenance_check_psymtabs): Update.
5400 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5402 * spu-tdep.c (spu_catch_start): Update.
5403 * symmisc.c (dump_symtab_1): Update.
5404 * symtab.c (lookup_global_symbol_from_objfile)
5405 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5406 (basic_lookup_transparent_type_quick)
5407 (basic_lookup_transparent_type, find_pc_sect_symtab)
5408 (find_pc_sect_line, search_symbols): Update.
5409 * block.c (find_block_in_blockvector): Make "bl" const.
5410 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5412 (blockvector_contains_pc): Make "bv" const.
5413 (block_for_pc_sect): Update.
5414 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5415 (blockvector_contains_pc): Update.
5416 * breakpoint.c (resolve_sal_pc): Update.
5417 * inline-frame.c (block_starting_point_at): Update.
5419 2014-06-18 Tom Tromey <tromey@redhat.com>
5421 * completer.c (complete_line): Make "line_buffer" const.
5422 * completer.h (complete_line): Update.
5424 2014-06-18 Tom Tromey <tromey@redhat.com>
5426 * symtab.c (add_macro_name): Remove unneeded cast.
5428 2014-06-18 Tom Tromey <tromey@redhat.com>
5430 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5431 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5433 2014-06-18 Tom Tromey <tromey@redhat.com>
5435 * probe.c (info_probes_for_ops): Make "arg" const.
5436 * probe.h (info_probes_for_ops): Update.
5438 2014-06-18 Tom Tromey <tromey@redhat.com>
5440 * varobj.c (varobj_create): Update.
5441 * valops.c (value_of_this): Update.
5442 * tracepoint.c (add_local_symbols, scope_info): Update.
5443 * symtab.h (struct general_symbol_info) <block>: Now const.
5444 * symtab.c (skip_prologue_sal)
5445 (default_make_symbol_completion_list_break_on)
5446 (skip_prologue_using_sal): Update.
5447 * stack.h (iterate_over_block_locals)
5448 (iterate_over_block_local_vars): Update.
5449 * stack.c (print_frame_args): Update.
5450 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5452 (get_selected_block): Make return type const.
5453 * python/py-frame.c (frapy_block): Update.
5454 * python/py-block.c (gdbpy_block_for_pc): Update.
5455 * p-exp.y (%union) <bval>: Now const.
5456 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5457 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5458 * m2-exp.y (%union) <bval>: Now const.
5459 * linespec.c (get_current_search_block): Make return type const.
5460 (create_sals_line_offset, find_label_symbols): Update.
5461 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5463 (block_starting_point_at): Make "block" const.
5464 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5465 (check_exception_resume): Update.
5466 * guile/scm-frame.c (gdbscm_frame_block): Update.
5467 * guile/scm-block.c (gdbscm_lookup_block): Update.
5468 * frame.h (get_frame_block): Update.
5469 (get_selected_block): Make return type const.
5470 * frame.c (frame_id_inner): Update.
5471 * f-valprint.c (info_common_command_for_block)
5472 (info_common_command): Update.
5473 * dwarf2loc.c (dwarf2_find_location_expression)
5474 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5475 (locexpr_describe_location_piece): Update.
5476 * c-exp.y (%union) <bval>: Now const.
5477 * breakpoint.c (resolve_sal_pc): Update.
5478 * blockframe.c (get_frame_block):Make return type const.
5479 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5480 (block_innermost_frame): Update.
5481 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5482 (block_for_pc, block_for_pc_sect): Update.
5483 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5485 (block_for_pc_sect, block_for_pc): Make return type const.
5486 * ax-gdb.c (gen_expr): Update.
5487 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5488 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5489 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5490 (ada_read_var_value): Update.
5491 * ada-exp.y (struct name_info) <block>: Now const.
5493 (block_lookup): Constify.
5495 2014-06-18 Gary Benson <gbenson@redhat.com>
5497 * nat/i386-dregs.h: New file.
5498 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5499 * i386-nat.h (i386-dregs.h): New include.
5500 (DR_FIRSTADDR): Now in i386-dregs.h.
5501 (DR_LASTADDR): Likewise.
5502 (DR_NADDR): Likewise.
5503 (DR_STATUS): Likewise.
5504 (DR_CONTROL): Likewise.
5505 (i386_debug_reg_state): Likewise.
5506 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5508 2014-06-18 Don Breazeal <donb@codesourcery.com>
5510 * breakpoint.c (set_longjmp_breakpoint): Call
5511 momentary_breakpoint_from_master with additional argument.
5512 (set_longjmp_breakpoint_for_call_dummy): Call
5513 momentary_breakpoint_from_master with additional argument.
5514 (set_std_terminate_breakpoint): Call
5515 momentary_breakpoint_from_master with additional argument.
5516 (momentary_breakpoint_from_master): Add argument to function
5517 definition and use it to initialize structure member flag.
5518 (clone_momentary_breakpoint): Call
5519 momentary_breakpoint_from_master with additional argument.
5520 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5521 member flags set in momentary_breakpoint_from_master.
5523 2014-06-18 Gary Benson <gbenson@redhat.com>
5525 * i386-nat.c (i386_show_dr): Renamed to
5526 i386_dr_show and made nonstatic. All uses updated.
5527 (i386_length_and_rw_bits): Renamed to
5528 i386_dr_length_and_rw_bits and made nonstatic.
5530 (i386_insert_aligned_watchpoint): Renamed to
5531 i386_dr_insert_aligned_watchpoint and made nonstatic.
5533 (i386_remove_aligned_watchpoint): Renamed to
5534 i386_dr_remove_aligned_watchpoint and made nonstatic.
5536 (i386_update_inferior_debug_regs): Renamed to
5537 i386_dr_update_inferior_debug_regs and made nonstatic.
5540 2014-06-18 Gary Benson <gbenson@redhat.com>
5542 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5543 (i386_dr_low_can_set_control): Likewise.
5544 (i386_dr_low_set_addr): Likewise.
5545 (i386_dr_low_set_control): Likewise.
5546 (i386_dr_low_get_addr): Likewise.
5547 (i386_dr_low_get_status): Likewise.
5548 (i386_dr_low_get_control): Likewise.
5549 (i386_insert_aligned_watchpoint): Use new macros.
5550 (i386_update_inferior_debug_regs): Likewise.
5551 (i386_stopped_data_address): Likewise.
5553 2014-06-18 Gary Benson <gbenson@redhat.com>
5555 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5556 New parameter. All uses updated.
5558 2014-06-18 Gary Benson <gbenson@redhat.com>
5560 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5563 2014-06-18 Gary Benson <gbenson@redhat.com>
5565 * i386-nat.c (debug_printf): New macro.
5566 (i386_get_debug_register_length): Likewise.
5567 (TARGET_HAS_DR_LEN_8): Use above macro.
5568 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5569 and printf_unfiltered. Use phex to format values.
5571 2014-06-18 Gary Benson <gbenson@redhat.com>
5573 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5576 2014-06-18 Gary Benson <gbenson@redhat.com>
5578 * i386-nat.c: Comment changes.
5580 2014-06-18 Gary Benson <gbenson@redhat.com>
5582 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5584 2014-06-18 Gary Benson <gbenson@redhat.com>
5586 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5587 (i386_insert_aligned_watchpoint): Likewise.
5588 (i386_remove_aligned_watchpoint): Likewise.
5589 (i386_handle_nonaligned_watchpoint): Likewise.
5591 2014-06-18 Gary Benson <gbenson@redhat.com>
5593 * i386-nat.c: Whitespace changes.
5595 2014-06-17 Samuel Bronson <naesten@gmail.com>
5597 * MAINTAINERS: Update Roland McGrath's email address.
5598 Thanks to Sergio Durigan Junior for pointing out that he left
5599 Red Hat a while ago, and giving me a current address.
5601 2014-06-17 Tom Tromey <tromey@redhat.com>
5603 * utils.h (savestring): Remove declaration.
5605 2014-06-17 Tom Tromey <tromey@redhat.com>
5607 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5609 2014-06-16 Keith Seitz <keiths@redhat.com>
5612 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5613 to update the varobj if inferior_ptid is null_ptid.
5615 2014-06-16 Tom Tromey <tromey@redhat.com>
5617 * target.h (struct target_ops) <to_info_proc>: Make parameter
5619 (target_info_proc): Update.
5620 * target.c (target_info_proc): Make "args" const.
5621 * procfs.c (procfs_info_proc): Update.
5622 * linux-tdep.c (linux_info_proc): Update.
5623 (linux_core_info_proc_mappings): Make "args" const.
5624 (linux_core_info_proc): Update.
5625 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5626 * gdbarch.c: Rebuild.
5627 * gdbarch.h: Rebuild.
5628 * corelow.c (core_info_proc): Update.
5630 2014-06-16 Tom Tromey <tromey@redhat.com>
5632 * target.h (struct target_ops) <to_disconnect>: Make parameter
5634 (target_disconnect): Update.
5635 * target.c (target_disconnect): Make "args" const.
5636 * target-delegates.c: Rebuild.
5637 * remote.c (remote_disconnect): Update.
5638 * record.h (record_disconnect): Update.
5639 * record.c (record_disconnect): Update.
5640 * inf-child.c (inf_child_disconnect): Update.
5642 2014-06-16 Tom Tromey <tromey@redhat.com>
5644 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5645 * target.c (debug_to_rcmd, default_rcmd): Update.
5646 * target-delegates.c: Rebuild.
5647 * remote.c (remote_rcmd): Update.
5648 * monitor.c (monitor_rcmd): Update.
5650 2014-06-16 Pedro Alves <palves@redhat.com>
5652 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5653 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5654 have OBJF_SHARED set.
5655 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5656 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5657 instead of OBJF_USERLOADED.
5658 * objfiles.h (OBJF_SHARED): Update comment.
5659 (userloaded_objfile_contains_address_p): Rename to ...
5660 (shared_objfile_contains_address_p): ... this, and update
5662 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5664 (remove_symbol_file_command): Skip objfiles that don't have
5667 2014-06-16 Tom Tromey <tromey@redhat.com>
5669 * minsyms.h (prim_record_minimal_symbol)
5670 (prim_record_minimal_symbol_and_info): Update comments.
5672 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5674 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5675 or --without-guile, according to how GDB was built.
5677 2014-06-13 Tom Tromey <tromey@redhat.com>
5679 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5681 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5683 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5685 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5686 help_list.Pass all_commands, not -1, to help_list.
5687 * cli/cli-dump.c (dump_command, append_command)
5688 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5689 (binary_dump_command, binary_append_command): Pass all_commands,
5690 not -1, to help_list.
5691 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5693 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5695 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5697 * top.c (set_history): Pass all_commands, not -1, to help_list.
5698 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5699 all_commands, not -1, to help_list.
5700 * symfile.c (overlay_command): Pass all_commands, not -1, to
5702 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5704 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5706 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5708 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5709 not -1, to help_list.
5710 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5711 not -1, to help_list.
5712 * maint.c (maintenance_command, maintenance_info_command)
5713 (maintenance_print_command, maintenance_set_cmd): Pass
5714 all_commands, not -1, to help_list.
5715 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5717 * language.c (set_check): Pass all_commands, not -1, to help_list.
5718 * infcmd.c (unset_command): Pass all_commands, not -1, to
5720 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5722 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5724 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5726 * breakpoint.c (save_command): Pass all_commands, not -1, to
5728 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5729 all_commands, not -1, to help_list.
5731 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5733 * regcache.c (struct register_to_invalidate): New structure.
5734 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5736 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5738 2014-06-12 Yao Qi <yao@codesourcery.com>
5740 * varobj.c (varobj_get_num_children): Call
5741 varobj_is_dynamic_p.
5742 (varobj_list_children): Likewise.
5743 (varobj_update): Likewise. Update comments.
5745 2014-06-12 Yao Qi <yao@codesourcery.com>
5747 * varobj.c (varobj_pretty_printed_p): Rename to ...
5748 (varobj_is_dynamic_p): ... this. New function.
5749 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5750 (varobj_is_dynamic_p): Declare.
5751 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5752 (mi_print_value_p, varobj_update_one): Likewise.
5754 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5755 Yao Qi <yao@codesourcery.com>
5757 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5758 (varobj_get_iterator): Wrap up code for pretty-printer by
5759 "#if HAVE_PYTHON" and "#endif".
5760 (update_dynamic_varobj_children): Likewise.
5762 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5763 Yao Qi <yao@codesourcery.com>
5765 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5766 gdb_python_initialized is false. Move some code from varobj.c.
5767 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5768 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5769 (struct varobj_item): Moved to varobj-iter.h".
5770 (varobj_clear_saved_item): New function.
5771 (update_dynamic_varobj_children): Move python-related code to
5773 (free_variable): Call varobj_clear_saved_item and
5776 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5777 Yao Qi <yao@codesourcery.com>
5779 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5780 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5781 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5782 (py-varobj.o): New rule.
5783 * python/py-varobj.c: New file.
5784 * python/python-internal.h (py_varobj_get_iterator): Declare.
5785 * varobj-iter.h: New file.
5786 * varobj.c: Include "varobj-iter.h"
5787 (struct varobj) <child_iter>: Change its type from "PyObject *"
5788 to "struct varobj_iter *".
5789 <saved_item>: Likewise.
5790 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5791 [HAVE_PYTHON] (varobj_get_iterator): New function.
5792 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5793 python-specific code to python/py-varobj.c.
5794 (install_visualizer): Call varobj_iter_delete instead of
5796 * varobj.h (varobj_ensure_python_env): Declare.
5798 2014-06-12 Yao Qi <yao@codesourcery.com>
5800 * varobj.c (struct varobj_item): New structure.
5801 (create_child_with_value): Update declaration.
5802 (varobj_add_child): Replace arguments 'name' and 'value' with
5803 'item'. All callers updated.
5804 (install_dynamic_child): Likewise.
5805 (update_dynamic_varobj_children): Likewise.
5806 (varobj_add_child): Likewise.
5807 (create_child_with_value): Likewise.
5809 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5811 * NEWS: Create a new section for the next release branch.
5812 Rename the section of the current branch, now that it has
5815 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5817 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5818 * version.in: Bump version to 7.8.50.DATE-cvs.
5820 2014-06-11 Pedro Alves <palves@redhat.com>
5823 * ser-mingw.c (net_windows_socket_check_pending): New function.
5824 (net_windows_select_thread): Ignore spurious wakeups. Use
5825 net_windows_socket_check_pending.
5826 (net_windows_wait_handle): Check for pending events with
5827 ioctlsocket, through net_windows_socket_check_pending, instead of
5828 checking the socket's event.
5830 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5832 * python/python-internal.h (gdb_PyObject_GetAttrString)
5833 (gdb_PyObject_HasAttrString): New inline function definitions.
5834 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5835 char * of the second argument to PyObject_GetAttrString.
5837 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5839 * serial.c (serial_write): Fix index of character to be printed
5840 in call to serial_logchar when serial debug traces are enabled.
5842 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5844 * gdbtypes (resolve_dynamic_range): Add function description.
5846 2014-06-09 Pedro Alves <palves@redhat.com>
5848 * linux-nat.c (linux_child_follow_fork): Initialize status with
5849 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5850 inner block. Only pass the signal to PTRACE_DETACH if in pass
5853 2014-06-09 Gary Benson <gbenson@redhat.com>
5855 * common/signals.c (gdb_signal_from_host): Reorder to separate
5856 the always-available ANSI-standard signals from the signals that
5858 (do_gdb_signal_to_host): Likewise.
5859 * proc-events.c (signal_table): Likewise.
5861 2014-06-08 Hui Zhu <hui@codesourcery.com>
5863 * common/linux-ptrace.c (linux_disable_event_reporting): New
5865 * common/linux-ptrace.h (linux_disable_event_reporting): New
5867 * linux-nat.c (linux_child_follow_fork): Do a single step before
5870 2014-06-07 Keith Seitz <keiths@redhat.com>
5874 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5875 from symbol_matches_domain in symtab.c. All local callers
5876 of symbol_matches_domain updated.
5877 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5878 search STRUCT_DOMAIN.
5879 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5880 independently. standard_lookup will do that automatically.
5881 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5882 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5883 (cp_lookup_symbol_in_namespace): Likewise.
5884 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5885 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5886 may return a STRUCT_DOMAIN match.
5887 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5888 * cp-support.c: Include language.h.
5889 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5891 * psymtab.c (match_partial_symbol): Compare the requested
5892 domain with the symbol's domain directly.
5893 (lookup_partial_symbol): Likewise.
5894 * symtab.c (lookup_symbol_in_language): Explain when/why
5895 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5896 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5897 appropriate languages.
5898 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5899 and moved to ada-lang.c
5900 (lookup_block_symbol): Explain that this function only returns
5901 symbol matching the requested DOMAIN.
5902 Compare the requested domain with the symbol's domain directly.
5903 (iterate_over_symbols): Compare the requested domain with the
5904 symbol's domain directly.
5905 * symtab.h (symbol_matches_domain): Remove.
5907 2014-06-06 Doug Evans <xdje42@gmail.com>
5909 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5910 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5911 (gdbscm_guile_version_is_at_least): Declare.
5912 (gdbscm_scm_string_to_int): Declare.
5913 * guile/guile.c (gdbscm_guile_major_version): New global.
5914 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5915 (guile_datadir): New static global.
5916 (gdbscm_guile_data_directory): New function.
5917 (initialize_scheme_side): Update.
5918 (misc_guile_functions): Add guile-data-directory.
5919 (initialize_gdb_module): Fetch guile version number.
5920 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5921 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5922 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5923 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5925 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5926 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5927 * guile/scm-value.c (gdbscm_value_to_string): Only call
5928 scm_port_conversion_strategy if Guile version >= 2.0.6.
5930 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5932 * main.c (print_gdb_help): Add -q and --silent.
5934 2014-06-06 Gary Benson <gbenson@redhat.com>
5936 * common/signals.c: Remove preprocessor conditionals for
5937 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5938 SIGSEGV and SIGTERM.
5939 * proc-events.c: Likewise.
5941 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5943 * symfile.c (symfile_free_objfile): Remove restriction to
5945 * symfile-mem.c (symbol_file_add_from_memory): Call
5946 add_target_sections_of_objfile.
5948 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5950 * guile/scm-value.c (gdbscm_history_append_x): Use
5951 'vlscm_get_value_smob_arg_unsafe' instead of
5952 'vlscm_scm_to_value'.
5954 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5957 * utils.c (printchar): Don't escape at all if quoter is NUL.
5958 Update function documentation to clarify effect of parameter
5960 * remote.c (escape_buffer): Pass '\\' as the quoter to
5961 fputstrn_unfiltered.
5962 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5963 generate the output.
5964 (mi_solib_unloaded): Same.
5966 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5968 * development.sh: Delete.
5969 * Makefile.in (config.status): Adjust dependency on development.sh.
5970 * configure.ac: Adjust development.sh source call.
5971 * configure: Regenerate.
5973 2014-06-04 Doug Evans <xdje42@gmail.com>
5975 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5976 is_scheme_bkpt, spec.
5977 (bpscm_make_breakpoint_smob): Initialize new members.
5978 (gdbscm_create_breakpoint_x): Split into two ...
5979 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5980 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5981 (scheme_function breakpoint_functions): Update.
5982 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5983 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5984 register-breakpoint!.
5986 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5989 * mem-break.c (z_type_supported): Return zero if
5990 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5992 2014-06-04 Tom Tromey <tromey@redhat.com>
5994 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5995 value_from_contents_and_address_unresolved.
5996 (ada_template_to_fixed_record_type_1): Likewise.
5997 (ada_which_variant_applies): Likewise.
5998 * value.h (value_from_contents_and_address_unresolved): Declare.
5999 * value.c (value_from_contents_and_address_unresolved): New
6001 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6002 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6003 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6005 2014-06-04 Tom Tromey <tromey@redhat.com>
6007 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6009 2014-06-04 Tom Tromey <tromey@redhat.com>
6011 * procfs.c (procfs_attach): Make "args" const.
6012 * windows-nat.c (windows_attach): Make "args" const.
6013 * nto-procfs.c (procfs_attach): Make "args" const.
6014 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6015 * go32-nat.c (go32_attach): Make "args" const.
6016 * gnu-nat.c (gnu_attach): Make "args" const.
6017 * darwin-nat.c (darwin_attach): Make "args" const.
6018 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6019 * linux-nat.c (linux_nat_attach): Make "args" const.
6020 * remote.c (extended_remote_attach_1, extended_remote_attach):
6022 * target.h (struct target_ops) <to_attach>: Make "args" const.
6023 (find_default_attach): Likewise.
6024 * utils.c (parse_pid_to_attach): Make "args" const.
6025 * utils.h (parse_pid_to_attach): Update.
6027 2014-06-04 Tom Tromey <tromey@redhat.com>
6029 * target-delegates.c: Rebuild.
6030 * target.c (default_thread_address_space): New function.
6031 (target_thread_address_space): Simplify.
6032 * target.h (struct target_ops) <to_thread_address_space>: Add
6033 TARGET_DEFAULT_FUNC.
6035 2014-06-04 Doug Evans <xdje42@gmail.com>
6037 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6039 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6041 * record-btrace.c: Include event-loop.h and inf-loop.h.
6042 (record_btrace_resume_exec_dir)
6043 (record_btrace_async_inferior_event_handler)
6044 (record_btrace_handle_async_inferior_event): New.
6045 (record_btrace_open): Create async event handler.
6046 (record_btrace_close): Delete async event handler.
6047 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6048 Mark async event handler.
6049 (record_btrace_execution_direction): New.
6050 (init_record_btrace_ops): Initialize to_execution_direction.
6052 2014-06-03 Doug Evans <xdje42@gmail.com>
6054 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6055 (gdbscm_make_parameter): Ditto.
6057 2014-06-03 Doug Evans <dje@google.com>
6059 * exec.c (exec_close_1): Call clear_section_table instead of
6060 resize_section_table.
6061 (clear_section_table): New function.
6062 (resize_section_table): Make static. Rename arg num_added to
6064 * exec.h (clear_section_table): Declare.
6065 (resize_section_table): Delete.
6066 * progspace.c (release_program_space): Call clear_section_table
6067 instead of resize_section_table.
6069 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6071 * NEWS (Python Scripting): Add entry about the new xmethods
6074 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6076 * python/py-xmethods.c: New file.
6077 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6078 (objfpy_dealloc): XDECREF on the new xmethods field.
6079 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6081 (objfpy_get_xmethods): New function.
6082 (objfile_getset): New entry 'xmethods'.
6083 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6084 (pspy_dealloc): XDECREF on the new xmethods field.
6085 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6087 (pspy_get_xmethods): New function.
6088 (pspace_getset): New entry 'xmethods'.
6089 * python/python-internal.h: Add declarations for new functions.
6090 * python/python.c (_initialize_python): Invoke
6091 gdbpy_initialize_xmethods.
6092 * python/lib/gdb/__init__.py (xmethods): New
6094 * python/lib/gdb/xmethod.py: New file.
6095 * python/lib/gdb/command/xmethods.py: New file.
6097 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6099 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6100 best match method returned by find_overload_match is an xmethod.
6101 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6102 the best matching operator returned by find_overload_match is an
6104 * valops.c: #include "extension.h".
6105 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6106 Return void. The list of matching source methods is returned in
6107 "fn_list" and a vector of matching debug method workers is
6108 returned in "xm_worker_vec". Update all callers.
6109 (value_find_oload_method_list): Likewise.
6110 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6111 non-NULL, then the index of the best matching method in this
6112 vector is returned. Update all callers.
6113 (find_overload_match): Include xmethods while performing overload
6116 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6118 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6119 * extension-priv.h (struct extension_language_ops): Add the
6121 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6122 get_matching_xmethod_workers, get_xmethod_argtypes,
6123 invoke_xmethod, free_xmethod_worker,
6124 free_xmethod_worker_vec): New functions.
6125 * extension.h: #include "common/vec.h".
6126 New function declarations.
6127 (struct xmethod_worker): New struct.
6128 (VEC (xmethod_worker_ptr)): New vector type.
6129 (xmethod_worker_ptr): New typedef.
6130 (xmethod_worker_vec): Likewise.
6131 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6133 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6134 (struct builtin_type): New field "xmethod".
6135 * valarith.c (value_ptradd): Assert that the value argument is not
6137 * valops.c (value_must_coerce_to_target): Return 0 for
6138 lval_xcallable values.
6139 * value.c (struct value): New field XM_WORKER in the field
6141 (value_address, value_raw_address): Return 0 for lval_xcallable
6143 (set_value_address): Assert that the value is not an
6145 (value_free): Free the associated xmethod worker when freeing
6146 lval_xcallable values.
6147 (set_value_component_location): Assert that the WHOLE value is not
6149 (value_of_xmethod, call_xmethod): New functions.
6150 * value.h: Declare "struct xmethod_worker".
6151 Declare new functions value_of_xmethod, call_xmethod.
6153 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6154 Pedro Alves <palves@redhat.com>
6156 PR breakpoints/17000
6157 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6158 New function, extracted from software_breakpoint_inserted_here_p.
6159 (software_breakpoint_inserted_here_p): Replace factored out code
6160 by call to find_non_raw_software_breakpoint_inserted_here.
6161 (bp_target_info_copy_insertion_state): New function.
6162 (bkpt_insert_location): Handle the case of a single-step
6163 breakpoint already inserted at the same address.
6164 (bkpt_remove_location): Handle the case of a single-step
6165 breakpoint still inserted at the same address.
6166 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6167 breakpoint already inserted at the same address.
6168 (deprecated_remove_raw_breakpoint): Handle the case of a
6169 non-raw breakpoint still inserted at the same address.
6170 (find_single_step_breakpoint): New function, extracted from
6171 single_step_breakpoint_inserted_here_p.
6172 (find_single_step_breakpoint): New function,
6173 factored out from single_step_breakpoint_inserted_here_p.
6174 (single_step_breakpoint_inserted_here_p): Reimplement.
6176 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6178 Pushed by Joel Brobecker <brobecker@adacore.com>
6179 * source.c (show_substitute_path_command): Fix display of matching
6182 2014-06-03 Gary Benson <gbenson@redhat.com>
6184 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6186 2014-06-02 Doug Evans <xdje42@gmail.com>
6188 Add parameter support for Guile.
6189 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6190 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6191 (scm-param.o): New rule.
6192 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6193 (gdbscm_misc_error): Declare.
6194 (gdbscm_canonicalize_command_name): Declare.
6195 (gdbscm_scm_to_host_string): Declare.
6196 (gdbscm_scm_from_host_string): Declare.
6197 (gdbscm_initialize_parameters): Declare.
6198 * guile/guile.c (initialize_gdb_module): Call
6199 gdbscm_initialize_parameters.
6200 * guile/lib/gdb.scm: Export parameter symbols.
6201 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6202 cmdscm_canonicalize_name and made public. All callers updated.
6203 * guile/scm-exception.c (gdbscm_misc_error): New function.
6204 * guile/scm-param.c: New file.
6205 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6206 (gdbscm_scm_to_host_string): New function.
6207 (gdbscm_scm_from_host_string): New function.
6208 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6210 2014-06-02 Doug Evans <xdje42@gmail.com>
6212 Add command support for Guile.
6213 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6214 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6215 (scm-cmd.o): New rule.
6216 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6217 (gdbscm_user_error_p): Declare.
6218 (gdbscm_parse_command_name): Declare.
6219 (gdbscm_valid_command_class_p): Declare.
6220 (gdbscm_initialize_commands): Declare.
6221 * guile/guile.c (initialize_gdb_module): Call
6222 gdbscm_initialize_commands.
6223 * guile/lib/gdb.scm: Export command symbols.
6224 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6225 (throw-user-error): New function.
6226 * guile/scm-cmd.c: New file.
6227 * guile/scm-exception.c (user_error_symbol): New static global.
6228 (gdbscm_user_error_p): New function.
6229 (gdbscm_initialize_exceptions): Set user_error_symbol.
6230 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6232 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6234 * top.c (command_loop): Handle comments here...
6235 (command_line_input): ... not here.
6237 2014-06-02 Doug Evans <xdje42@gmail.com>
6239 Add progspace support for Guile.
6240 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6241 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6242 (scm-progspace.o): New rule.
6243 * guile/guile-internal.h (pspace_smob): New typedef.
6244 (psscm_pspace_smob_pretty_printers): Declare.
6245 (psscm_pspace_smob_from_pspace): Declare.
6246 (psscm_scm_from_pspace): Declare.
6247 * guile/guile.c (initialize_gdb_module): Call
6248 gdbscm_initialize_pspaces.
6249 * guile/lib/gdb.scm: Export progspace symbols.
6250 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6252 (append-pretty-printer!): Ditto.
6253 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6255 * guile/scm-progspace.c: New file.
6257 2014-06-03 Alan Modra <amodra@gmail.com>
6259 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6260 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6262 2014-06-02 Doug Evans <dje@google.com>
6264 Add support for skeletonless type units.
6265 * dwarf2read.c (struct dwarf2_per_objfile): New member
6266 n_allocated_type_units.
6267 (struct dwarf2_per_objfile) <tu_stats>: New member
6268 nr_all_type_units_reallocs.
6269 (create_signatured_type_table_from_index): Initialize
6270 n_allocated_type_units
6271 (create_all_type_units): Ditto.
6272 (add_type_unit): Move up in file. New arg slot.
6273 All callers updated. Increase space for all_type_units more
6275 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6276 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6277 (lookup_dwp_signatured_type): Ditto.
6278 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6279 All callers updated.
6280 (build_type_psymtabs_1): Leave type_unit_groups as
6281 NULL if no TUs present.
6282 (print_tu_stats): New function.
6283 (process_skeletonless_type_unit): New function.
6284 (process_dwo_file_for_skeletonless_type_units): New
6286 (process_skeletonless_type_units): New function.
6287 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6288 Call print tu_stats if debugging enabled.
6290 2014-06-02 Pedro Alves <palves@redhat.com>
6292 * breakpoint.c (build_target_command_list): Don't build a command
6293 list if we have any duplicate location that isn't a dprintf.
6295 2014-06-02 Pedro Alves <palves@redhat.com>
6297 * breakpoint.c (dprintf_breakpoint_hit): New function.
6298 (initialize_breakpoint_ops): Install it as dprintf's
6299 breakpoint_hit method.
6301 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6303 * source.c (substitute_path_rule_matches): Simplify using
6304 filename_ncmp instead of FILENAME_CMP.
6306 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6308 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6310 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6312 * configure.ac: When Guile is available, check for the
6313 availability of 'scm_new_smob'.
6314 * configure, config.h.in: Regenerate.
6315 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6318 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6320 * frame.c (struct frame_info): Add stop_string field.
6321 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6322 (get_prev_frame_always): Old content moved into
6323 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6324 TRY_CATCH, handle MEMORY_ERROR exceptions.
6325 (frame_stop_reason_string): New function definition.
6326 * frame.h (unwind_stop_reason_to_string): Extend comment to
6327 mention frame_stop_reason_string.
6328 (frame_stop_reason_string): New function declaration.
6329 * stack.c (frame_info): Switch to frame_stop_reason_string.
6330 (backtrace_command_1): Switch to frame_stop_reason_string.
6331 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6332 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6333 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6335 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6337 * frame.c (frame_stop_reason_string): Rename to ...
6338 (unwind_stop_reason_to_string): this.
6339 * frame.h (frame_stop_reason_string): Rename to ...
6340 (unwind_stop_reason_to_string): this.
6341 * stack.c (frame_info): Update call to frame_stop_reason_string.
6342 (backtrace_command_1): Likewise.
6343 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6344 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6346 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6348 * frame.c (remove_prev_frame): New function.
6349 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6352 2014-05-29 Pedro Alves <palves@redhat.com>
6354 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6355 and make it const. When a single-step decays to a continue,
6356 clear 'step', not 'hw_step'. Pass whether the caller wanted
6357 to step to user_visible_resume_ptid, not what we ask the
6360 2014-05-29 Pedro Alves <palves@redhat.com>
6362 * infrun.c (process_event_stop_test, handle_step_into_function)
6363 (handle_step_into_function_backward): Adjust.
6364 Don't set the even thread's stop_step and call stop_waiting before
6365 calling end_stepping_range. Instead do that ...
6366 (end_stepping_range): ... here. Take an ecs pointer parameter.
6368 2014-05-29 Pedro Alves <palves@redhat.com>
6370 * infrun.c (stop_stepping): Rename to ...
6371 (stop_waiting): ... this.
6372 (proceed): Update comment.
6373 (process_event_stop_test, handle_inferior_event)
6374 (handle_signal_stop, handle_step_into_function)
6375 (handle_step_into_function_backward): Update.
6377 2014-05-29 Pedro Alves <palves@redhat.com>
6379 * infcall.c (run_inferior_call): Don't check whether the current
6380 thread is running after the proceed call.
6382 2014-05-29 Pedro Alves <palves@redhat.com>
6383 Tom Tromey <tromey@redhat.com>
6385 * NEWS: Mention "maint set target-async", "set mi-async", and that
6386 background execution commands are now always available.
6387 * target.h (target_async_permitted): Update comment.
6388 * target.c (target_async_permitted, target_async_permitted_1):
6390 (set_target_async_command): Rename to ...
6391 (maint_set_target_async_command): ... this.
6392 (show_target_async_command): Rename to ...
6393 (maint_show_target_async_command): ... this.
6394 (_initialize_target): Adjust.
6395 * infcmd.c (prepare_execution_command): Make extern.
6396 * inferior.h (prepare_execution_command): Declare.
6397 * infrun.c (set_observer_mode): Leave target async alone.
6398 * mi/mi-interp.c (mi_interpreter_init): Install
6399 mi_on_sync_execution_done as sync_execution_done observer.
6400 (mi_on_sync_execution_done): New function.
6401 (mi_execute_command_input_handler): Don't print the prompt if we
6402 just started a synchronous command with an async target.
6403 (mi_on_resume): Check sync_execution before printing prompt.
6404 * mi/mi-main.h (mi_async_p): Declare.
6405 * mi/mi-main.c: Include gdbcmd.h.
6406 (mi_async_p): New function.
6407 (mi_async, mi_async_1): New globals.
6408 (set_mi_async_command, show_mi_async_command, mi_async): New
6410 (exec_continue): Call prepare_execution_command.
6411 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6412 (mi_execute_async_cli_command): Use mi_async_p.
6413 (_initialize_mi_main): Install "set mi-async". Make
6414 "target-async" a deprecated alias.
6416 2014-05-29 Pedro Alves <palves@redhat.com>
6418 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6419 (_initialize_cli_interp): Adjust.
6420 * event-loop.c: Include "observer.h".
6421 (start_event_loop): Notify 'command_error' observers instead of
6422 calling display_gdb_prompt. Remove FIXME comment.
6423 * event-top.c (display_gdb_prompt): Remove call into the
6425 * inf-loop.c: Include "observer.h".
6426 (inferior_event_handler): Notify 'command_error' observers instead
6427 of calling display_gdb_prompt.
6428 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6429 observers instead of calling display_gdb_prompt.
6430 * interps.c (interp_set): Don't call display_gdb_prompt.
6431 (current_interp_display_prompt_p): Delete.
6432 * interps.h (interp_prompt_p): Delete declaration.
6433 (interp_prompt_p_ftype): Delete.
6434 (struct interp_procs) <prompt_proc_p>: Delete field.
6435 (current_interp_display_prompt_p): Delete declaration.
6436 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6437 (_initialize_mi_interp): Adjust.
6438 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6439 'command_error' observers.
6440 (tui_on_sync_execution_done, tui_on_command_error): New
6442 (tui_display_prompt_p): Delete.
6443 (_initialize_tui_interp): Adjust.
6445 2014-05-29 Pedro Alves <palves@redhat.com>
6448 * cli/cli-interp.c: Include infrun.h and observer.h.
6449 (cli_uiout, cli_interp): New globals.
6450 (cli_on_signal_received, cli_on_end_stepping_range)
6451 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6453 (cli_interpreter_init): Install them as 'end_stepping_range',
6454 'signal_received' 'signal_exited', 'exited' and 'no_history'
6456 (_initialize_cli_interp): Remove cli_interp local.
6457 * infrun.c (handle_inferior_event): Call the several stop reason
6458 observers instead of printing the stop reason directly.
6459 (end_stepping_range): New function.
6460 (print_end_stepping_range_reason, print_signal_exited_reason)
6461 (print_exited_reason, print_signal_received_reason)
6462 (print_no_history_reason): Make static, and add an uiout
6463 parameter. Print to that instead of to CURRENT_UIOUT.
6464 * infrun.h (print_end_stepping_range_reason)
6465 (print_signal_exited_reason, print_exited_reason)
6466 (print_signal_received_reason print_no_history_reason): New
6468 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6470 <cli_uiout>: New field.
6471 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6472 uiout for CLI output. Install 'signal_received',
6473 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6475 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6476 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6477 (mi_on_no_history): New functions.
6478 (ui_out_free_cleanup): Delete function.
6479 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6480 instead use the one already stored in the MI interpreter data.
6481 (mi_ui_out): Adjust.
6482 * tui/tui-interp.c: Include infrun.h and observer.h.
6483 (tui_interp): New global.
6484 (tui_on_signal_received, tui_on_end_stepping_range)
6485 (tui_on_signal_exited, tui_on_exited)
6486 (tui_on_no_history): New functions.
6487 (tui_init): Install them as 'end_stepping_range',
6488 'signal_received' 'signal_exited', 'exited' and 'no_history'
6490 (_initialize_tui_interp): Delete tui_interp local.
6492 2014-05-29 Pedro Alves <palves@redhat.com>
6495 * linux-nat.c (linux_nat_resume_callback): Rename the second
6496 parameter to 'except'. Skip LP if it points to EXCEPT.
6497 (linux_nat_resume): Don't mark the event lwp as not stopped
6498 before resuming sibling lwps. Instead ask
6499 linux_nat_resume_callback to skip the event lwp. Mark it as not
6500 stopped after actually resuming it.
6501 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6503 (wait_lwp): Mark the lwp as stopped here.
6504 (stop_wait_callback): Mark the lwp as not stopped right after
6505 resuming it. Don't mark lwps as stopped here.
6506 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6507 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6509 2014-05-29 Pedro Alves <palves@redhat.com>
6512 * infrun.c (resume): Determine how much to resume depending on
6513 whether the caller wanted a step, not whether we can hardware step
6514 the target. Mark all threads that we intend to run as running,
6515 unless we're calling an inferior function.
6516 (normal_stop): If the thread is running an infcall, don't finish
6518 * target.c (target_resume): Don't mark threads as running here.
6520 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6522 * serial.c (_initialize_serial): Remove support for
6523 the "set remotebaud" and "show remotebaud" commands.
6524 * NEWS: Add entry documenting the removal of that command.
6526 2014-05-28 Yao Qi <yao@codesourcery.com>
6528 * charset.c: Fix typo in comments.
6530 2014-05-27 Gary Benson <gbenson@redhat.com>
6532 * utils.c (internal_vproblem): Prompt for a bug report.
6534 2014-05-26 Andy Wingo <wingo@igalia.com>
6536 * guile/scm-arch.c (arscm_mark_arch_smob):
6537 * guile/scm-block.c (bkscm_mark_block_smob)
6538 (bkscm_mark_block_syms_progress_smob):
6539 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6540 * guile/scm-exception.c (exscm_mark_exception_smob):
6541 * guile/scm-frame.c (frscm_mark_frame_smob):
6542 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6543 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6544 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6545 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6546 (ppscm_mark_pretty_printer_worker_smob):
6547 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6548 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6549 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6550 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6552 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6555 2014-05-26 Andy Wingo <wingo@igalia.com>
6556 Doug Evans <xdje42@gmail.com>
6558 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6559 empty_base_class. All uses updated.
6560 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6561 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6563 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6564 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6565 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6566 (gdbscm_gsmob_has_property_p, add_property_name)
6567 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6568 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6569 (gdb-object-has-property?, gdb-object-properties): Remove.
6570 (gdb-object-kind): Renamed from gsmob-kind.
6572 2014-05-26 Andy Wingo <wingo@igalia.com>
6574 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6575 * configure: Regenerate.
6577 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6579 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6581 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6583 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6584 (replay_memory_access_read_only, replay_memory_access_read_write)
6585 (replay_memory_access_types, replay_memory_access)
6586 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6587 (cmd_set_record_btrace, cmd_show_record_btrace)
6588 (cmd_show_replay_memory_access): New.
6589 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6590 (record_btrace_remove_breakpoint): Replace
6591 record_btrace_allow_memory_access with replay_memory_access.
6592 (_initialize_record_btrace): Add commands.
6593 * NEWS: Announce it.
6595 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6597 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6599 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6601 * MAINTAINERS (Write After Approval): Move self back from
6604 2014-05-22 Pedro Alves <palves@redhat.com>
6606 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6607 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6608 (disable_randomization, enum exec_direction_kind)
6609 (execution_direction, stop_registers, start_remote)
6610 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6611 (wait_for_inferior, normal_stop, get_last_target_status)
6612 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6613 (insert_step_resume_breakpoint_at_sal)
6614 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6615 (set_step_info, print_stop_event, signal_stop_state)
6616 (signal_print_state, signal_pass_state, signal_stop_update)
6617 (signal_print_update, signal_pass_update)
6618 (update_signals_program_target, clear_exit_convenience_vars)
6619 (displaced_step_dump_bytes, update_observer_mode)
6620 (signal_catch_update, gdb_signal_from_command): Move
6622 * infrun.h: ... to this new file.
6623 * amd64-tdep.c: Include infrun.h.
6624 * annotate.c: Include infrun.h.
6625 * arch-utils.c: Include infrun.h.
6626 * arm-linux-tdep.c: Include infrun.h.
6627 * arm-tdep.c: Include infrun.h.
6628 * break-catch-sig.c: Include infrun.h.
6629 * breakpoint.c: Include infrun.h.
6630 * common/agent.c: Include infrun.h instead of inferior.h.
6631 * corelow.c: Include infrun.h.
6632 * event-top.c: Include infrun.h.
6633 * go32-nat.c: Include infrun.h.
6634 * i386-tdep.c: Include infrun.h.
6635 * inf-loop.c: Include infrun.h.
6636 * infcall.c: Include infrun.h.
6637 * infcmd.c: Include infrun.h.
6638 * infrun.c: Include infrun.h.
6639 * linux-fork.c: Include infrun.h.
6640 * linux-nat.c: Include infrun.h.
6641 * linux-thread-db.c: Include infrun.h.
6642 * monitor.c: Include infrun.h.
6643 * nto-tdep.c: Include infrun.h.
6644 * procfs.c: Include infrun.h.
6645 * record-btrace.c: Include infrun.h.
6646 * record-full.c: Include infrun.h.
6647 * remote-m32r-sdi.c: Include infrun.h.
6648 * remote-mips.c: Include infrun.h.
6649 * remote-notif.c: Include infrun.h.
6650 * remote-sim.c: Include infrun.h.
6651 * remote.c: Include infrun.h.
6652 * reverse.c: Include infrun.h.
6653 * rs6000-tdep.c: Include infrun.h.
6654 * s390-linux-tdep.c: Include infrun.h.
6655 * solib-irix.c: Include infrun.h.
6656 * solib-osf.c: Include infrun.h.
6657 * solib-svr4.c: Include infrun.h.
6658 * target.c: Include infrun.h.
6659 * top.c: Include infrun.h.
6660 * windows-nat.c: Include infrun.h.
6661 * mi/mi-interp.c: Include infrun.h.
6662 * mi/mi-main.c: Include infrun.h.
6663 * python/py-threadevent.c: Include infrun.h.
6665 2014-05-22 Pedro Alves <palves@redhat.com>
6667 * infrun.c (handle_inferior_event): Store the exit code for
6668 --return-child-result here, instead of ...
6669 (print_exited_reason): ... here.
6671 2014-05-21 Pedro Alves <palves@redhat.com>
6674 * gdbthread.h (struct thread_control_state): New field
6676 * infrun.c (follow_fork): Copy the new thread control field to the
6678 (clear_proceed_status_thread): Clear the new thread control field.
6679 (proceed): Set the new thread control field.
6680 * interps.h (command_interp): Declare.
6681 * interps.c (command_interpreter): New global.
6682 (command_interp): New function.
6683 (interp_exec): Set `command_interpreter' while here.
6684 * cli-out.c (cli_uiout_dtor): New function.
6685 (cli_ui_out_impl): Install it.
6686 * mi/mi-interp.c: Include cli-out.h.
6687 (mi_cmd_interpreter_exec): Add comment.
6688 (restore_current_uiout_cleanup): New function.
6689 (ui_out_free_cleanup): New function.
6690 (mi_on_normal_stop): If finishing an execution command started by
6691 a CLI command, or any kind of breakpoint-like event triggered,
6692 print the stop event to the output (CLI) stream.
6693 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6695 2014-05-21 Pedro Alves <palves@redhat.com>
6697 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6698 current source line having changed.
6699 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6700 * infrun.c (normal_stop): Adjust call to
6701 set_current_sal_from_frame.
6702 * source.c (clear_lines_listed_range): New function.
6703 (set_current_source_symtab_and_line, identify_source_line): Clear
6704 the lines listed range.
6705 (line_info): Handle the first "info line" after the current source
6706 line having changed.
6707 * stack.c (print_stack_frame): Remove center handling.
6708 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6711 2014-05-21 Pedro Alves <palves@redhat.com>
6713 * inf-child.c (inf_child_mourn_inferior): New function.
6714 * inf-child.h (inf_child_mourn_inferior): New declaration.
6715 * darwin-nat.c (darwin_mourn_inferior): Use
6716 inf_child_mourn_inferior.
6717 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6718 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6719 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6720 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6721 * windows-nat.c (windows_mourn_inferior): Likewise.
6723 2014-05-21 Doug Evans <xdje42@gmail.com>
6725 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6727 2014-05-21 Doug Evans <xdje42@gmail.com>
6729 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6730 (gdbscm_out_of_range_error): Ditto.
6731 (gdbscm_memory_error): Ditto.
6732 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6733 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6734 (gdbscm_out_of_range_error): Update.
6735 (gdbscm_memory_error): Update.
6736 (gdbscm_scm_to_target_string_unsafe): Delete.
6738 2014-05-21 Pedro Alves <palves@redhat.com>
6740 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6742 (inf_child_open_target): New function.
6743 (inf_child_open): Use inf_child_open_target to push the target
6744 instead of erroring out.
6745 (inf_child_disconnect, inf_child_close)
6746 (inf_child_maybe_unpush_target): New functions.
6747 (inf_child_target): Install inf_child_disconnect and
6748 inf_child_close. Store a pointer to the returned object.
6749 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6751 * target.c (auto_connect_native_target): New global.
6752 (show_default_run_target): New function.
6753 (find_default_run_target): Return NULL if automatically connecting
6754 to the native target is disabled.
6755 (_initialize_target): Install set/show auto-connect-native-target.
6756 * NEWS: Mention "set auto-connect-native-target", and "target
6758 * linux-nat.c (super_close): New global.
6759 (linux_nat_close): Call super_close.
6760 (linux_nat_add_target): Store a pointer to the base class's
6762 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6763 inf_child_maybe_unpush.
6764 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6766 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6767 the inferior. Use inf_child_maybe_unpush_target.
6768 (inf_ttrace_attach): Don't push the target if it is already
6770 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6771 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6772 after mourning the inferior. Use inf_child_maybe_unpush_target.
6773 (darwin_attach_pid): Don't push the target if it is already
6775 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6776 mourning the inferior. Use inf_child_maybe_unpush_target.
6777 (gnu_detach): Use inf_child_maybe_unpush_target.
6778 * go32-nat.c (go32_create_inferior): Don't push the target if it
6780 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6781 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6782 (procfs_open): Rename to ...
6783 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6784 comments. Can target_preopen before changing node. Call
6785 inf_child_open_target to push the target explicitly.
6786 (procfs_attach): Don't push the target if it is already pushed.
6787 (procfs_detach): Use inf_child_maybe_unpush_target.
6788 (procfs_create_inferior): Don't push the target if it is already
6790 (nto_native_ops): New global.
6791 (procfs_open): Reimplement.
6792 (procfs_native_open): New function.
6793 (init_procfs_targets): Install procfs_native_open as to_open of
6794 "target native". Store a pointer to the "native" target in
6796 * procfs.c (procfs_attach): Don't push the target if it is already
6798 (procfs_detach): Use inf_child_maybe_unpush_target.
6799 (procfs_mourn_inferior): Only unpush the target after mourning the
6800 inferior. Use inf_child_maybe_unpush_target.
6801 (procfs_init_inferior): Don't push the target if it is already
6803 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6804 if it is already pushed.
6806 2014-05-21 Pedro Alves <palves@redhat.com>
6808 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6809 and "procfs" targets are now called "native" instead.
6811 2014-05-21 Pedro Alves <palves@redhat.com>
6813 * go32-nat.c (go32_open): Delete.
6814 (go32_target): Don't override the to_open method.
6816 2014-05-21 Pedro Alves <palves@redhat.com>
6818 * nto-procfs.c (procfs_can_run): New function.
6819 (nto_procfs_ops): New global.
6820 (init_procfs_targets): New, based on procfs_target. Install
6821 "target native" in addition to "target procfs".
6822 (_initialize_procfs): Call init_procfs_targets instead of adding
6825 2014-05-21 Pedro Alves <palves@redhat.com>
6827 * windows-nat.c (windows_target): Don't override to_shortname,
6828 to_longname or to_doc.
6830 2014-05-21 Pedro Alves <palves@redhat.com>
6832 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6835 2014-05-21 Pedro Alves <palves@redhat.com>
6837 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6838 to_shortname, to_longname or to_doc.
6840 2014-05-21 Pedro Alves <palves@redhat.com>
6842 * go32-nat.c (go32_target): Don't override to_shortname,
6843 to_longname or to_doc.
6845 2014-05-21 Pedro Alves <palves@redhat.com>
6847 * inf-child.c (inf_child_open): Remove mention of "child".
6848 (inf_child_target): Rename target to "native" instead of "child".
6850 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6852 * Makefile.in (SFILES): Delete "regset.c".
6853 (COMMON_OBS): Delete "regset.o".
6855 * regset.h (regset_alloc): Delete prototype.
6857 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6859 * sparc-linux-tdep.c (sparc32_linux_gregset)
6860 (sparc32_linux_fpregset): New static regset structures.
6861 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6862 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6864 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6865 (sparc64_linux_fpregset): New static regset structures.
6866 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6867 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6868 New static regset structures.
6869 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6870 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6871 New static regset structures.
6872 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6873 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6874 New static regset structures.
6875 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6876 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6877 New static regset structures.
6878 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6880 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6882 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6883 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6884 register maps ("regmaps") from "*regset" to "*regmap". Do this
6885 for all regmap types and variables.
6886 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6887 (sparc32_linux_supply_core_gregset)
6888 (sparc32_linux_collect_core_gregset)
6889 (sparc32_linux_supply_core_fpregset)
6890 (sparc32_linux_collect_core_fpregset): Likewise.
6891 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6892 (sparc_gregmap, sparc_fpregmap): ... these.
6893 (sparc_supply_gregset, sparc_collect_gregset)
6894 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6895 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6896 (_initialize_sparc_nat): Rename regmaps.
6897 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6898 (sparc_gregmap, sparc_fpregmap): ... these.
6899 (sparc_supply_gregset, sparc_collect_gregset)
6900 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6901 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6903 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6904 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6906 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6908 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6909 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6910 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6912 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6913 (sparc32_bsd_fpregset): Rename to...
6914 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6915 (sparc32_bsd_fpregmap): ... these.
6916 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6917 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6918 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6919 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6920 (struct sparc_gregmap, struct sparc_fpregmap)
6921 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6922 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6923 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6924 (sparc32_supply_regset, sparc32_collect_gregset)
6925 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6927 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6928 (sparc64_linux_ptrace_gregmap): ... this.
6929 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6930 (_initialize_sparc64_linux_nat): Rename regmaps.
6931 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6932 (sparc64_linux_core_gregmap): ... this.
6933 (sparc64_linux_supply_core_gregset)
6934 (sparc64_linux_collect_core_gregset)
6935 (sparc64_linux_supply_core_fpregset)
6936 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6937 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6938 (sparc64_sol2_fpregset): Rename to...
6939 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6940 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6941 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6943 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6944 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6945 (sparc64_bsd_fpregset): Rename to...
6946 (struct sparc_gregmap, sparc64_sol2_gregmap)
6947 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6948 (sparc64_bsd_fpregmap): ... these.
6949 (sparc64_supply_gregset, sparc64_collect_gregset)
6950 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6952 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6953 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6954 (sparc64fbsd_gregmap): ... this.
6955 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6956 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6958 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6959 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6960 (sparc64nbsd_collect_fpregset): Likewise.
6961 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6962 (sparc64nbsd_gregmap): ... this.
6963 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6965 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6966 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6967 (sparc64obsd_gregmap): ... this.
6968 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6970 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6971 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6972 (sparc32nbsd_gregmap): ... this.
6973 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6976 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6978 * score-tdep.c (score7_linux_gregset): New static regset
6980 (score7_linux_regset_from_core_section): Remove dynamic regset
6982 (score_gdbarch_init): Drop allocation of tdep structure.
6983 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6987 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6989 (am33_regset_from_core_section): Remove dynamic regset
6992 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6994 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6995 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6997 (mips_linux_regset_from_core_section): Remove dynamic regset
6999 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7000 'gregset64', 'fpregset', and 'fpregset64'.
7001 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7002 deleted tdep fields.
7004 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7006 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7008 (amd64_regset_from_core_section): Remove dynamic regset
7010 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7012 (amd64obsd_regset_from_core_section): Remove dynamic regset
7014 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7016 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7017 x86-common regset supply function.
7018 * i386-tdep.c (i386_collect_gregset): Make static.
7019 (i386_gregset): New global regset structure.
7020 (i386_fpregset, i386_xstateregset): New static regset structures.
7021 (i386_regset_from_core_section): Remove dynamic regset
7023 (i386_gdbarch_init): Remove initialization of tdep fields
7024 'gregset', 'fpregset', and 'xstateregset'.
7025 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7026 'fpregset', and 'xstateregset'.
7027 (i386_collect_gregset): Remove prototype.
7028 (i386_gregset): New declaration.
7029 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7031 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7034 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7036 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7037 (arm_linux_vfpregset): New static regset structures.
7038 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7040 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7041 and 'vfpregset' fields.
7043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7045 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7046 (aarch64_linux_fpregset): New static regset structures.
7047 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7048 of regset structures.
7049 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7052 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7054 * regset.h (struct regset): Remove gdbarch field.
7055 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7056 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7057 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7059 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7060 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7061 (ppc32_linux_vsxregset): Likewise.
7062 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7063 via the regcache instead of the regset.
7064 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7065 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7066 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7067 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7072 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7073 Constify structures.
7074 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7075 (alphanbsd_aout_gregset): Likewise.
7076 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7077 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7079 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7080 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7082 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7083 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7084 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7085 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7086 * m88k-tdep.c (m88k_gregset): Likewise.
7087 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7088 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7089 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7090 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7091 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7092 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7093 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7094 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7095 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7097 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7098 * sh-tdep.h (sh_corefile_gregset): Likewise.
7099 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7100 * vax-tdep.c (vax_gregset): Likewise.
7102 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7104 Fix TLS access for -static -pthread.
7105 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7106 (try_thread_db_load_1): Initialize it.
7107 (thread_db_get_thread_local_address): Call it if LM is zero.
7108 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7109 * target.h (struct target_ops) (to_get_thread_local_address): Add
7110 load_module_addr comment.
7112 2014-05-21 Pedro Alves <palves@redhat.com>
7114 * dcache.c (dcache_read_memory_partial): If reading the cache line
7115 fails, fallback to reading just the memory the caller wanted.
7117 2014-05-20 Doug Evans <dje@google.com>
7119 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7120 instead of get_current_arch.
7122 2014-05-20 Pedro Alves <palves@redhat.com>
7124 * NEWS: Mention that compare-sections now works with all targets.
7126 * remote.c (PACKET_qCRC): New enum value.
7127 (remote_verify_memory): Don't send qCRC if the target has no
7128 execution. Use packet_support/packet_ok. If the target doesn't
7129 support the qCRC packet, fallback to a deep memory copy.
7130 (compare_sections_command): Say "target image" instead of "remote
7132 (_initialize_remote): Add PACKET_qCRC to the list of config
7133 packets that have no associated command. Extend comment.
7134 * target.c (simple_verify_memory, default_verify_memory): New
7136 * target.h (struct target_ops) <to_verify_memory>: Default to
7137 default_verify_memory.
7138 (simple_verify_memory): New declaration.
7139 * target-delegates.c: Regenerate.
7141 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7143 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7145 2014-05-20 Hui Zhu <hui@codesourcery.com>
7146 Yao Qi <yao@codesourcery.com>
7149 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7150 and change address of sp and pc.
7152 2014-05-19 Tom Tromey <tromey@redhat.com>
7154 * gdbtypes.c (rank_function): Use XNEWVEC.
7155 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7157 2014-05-19 Doug Evans <dje@google.com>
7159 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7160 build_type_unit_groups and moved closer to only caller. Remove
7161 arguments. All references updated. Remove outdated .gdb_index
7163 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7164 build_type_psymtabs_1.
7166 2014-05-19 Doug Evans <dje@google.com>
7168 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7169 n_type_unit_groups, all_type_unit_groups. All uses removed.
7170 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7171 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7172 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7173 (add_type_unit_group_to_table): Delete.
7175 2014-05-19 Doug Evans <dje@google.com>
7177 * eval.c (evaluate_subexp_standard): Add some comments.
7179 2014-05-17 Doug Evans <xdje42@gmail.com>
7181 * progspace.c (remove_program_space): Delete, unused.
7182 * progspace.h (remove_program_space): Ditto.
7184 2014-05-17 Doug Evans <xdje42@gmail.com>
7186 * inferior.c (prune_inferiors): Fix comment.
7187 (remove_inferior_command): Call prune_program_spaces.
7189 2014-05-16 Doug Evans <dje@google.com>
7191 New command line option -D.
7193 * main.c (set_gdb_data_directory): New function.
7194 (captured_main): Recognize -D. Flag error for --data-directory "".
7195 Call set_gdb_data_directory.
7196 (print_gdb_help): Print --data-directory, -D.
7197 * main.h (set_gdb_data_directory): Declare.
7198 * top.c (staged_gdb_datadir): New static global.
7199 (set_gdb_datadir): Call set_gdb_data_directory
7200 (show_gdb_datadir): New function.
7201 (init_main): Update init of data-directory parameter.
7203 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7205 Import the "dirfd" gnulib module.
7206 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7207 * gnulib/aclocal.m4: Update.
7208 * gnulib/config.in: Update.
7209 * gnulib/configure: Update.
7210 * gnulib/import/Makefile.am: Update.
7211 * gnulib/import/Makefile.in: Update.
7212 * gnulib/import/dirfd.c: New.
7213 * gnulib/import/m4/dirfd.m4: New.
7214 * gnulib/import/m4/gnulib-cache.m4: Update.
7215 * gnulib/import/m4/gnulib-comp.m4: Update.
7217 2014-05-16 Pierre Muller <muller@sourceware.org>
7218 Yao Qi <yao@codesourcery.com>
7220 * valprint.c (print_wchar): Move the code on checking whether
7221 W is a printable wide char to the default branch of switch
7222 statement below. Call wchar_printable instead of gdb_iswprint.
7224 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7226 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7227 ldr.w and ldrd instructions.
7229 2014-05-15 Doug Evans <dje@google.com>
7231 * dwarf2read.c (read_structure_type): Delete outdated comments.
7233 2014-05-14 Tom Tromey <tromey@redhat.com>
7235 * macrocmd.c (print_macro_definition): Reindent.
7237 2014-05-13 Doug Evans <xdje42@gmail.com>
7239 * python/py-cmd.c (cmdpy_completer): Add comment.
7240 (completers): Make const.
7242 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7244 * infrun.c (resume): Remove should_resume (unused). Move up
7245 declaration of resume_ptid.
7247 2014-05-13 Tom Tromey <tromey@redhat.com>
7249 * language.h (unop_type_check): Remove.
7250 (binop_type_check): Don't declare.
7252 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7254 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7255 call to regcache_raw_collect.
7257 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7259 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7260 mi_console->quote as the quoting character.
7262 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7264 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7266 2014-04-29 Tom Tromey <tromey@redhat.com>
7268 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7269 "show debug varobj".
7271 2014-05-07 Kyle McMartin <kyle@redhat.com>
7273 Pushed by Joel Brobecker <brobecker@adacore.com>.
7274 * aarch64-tdep.c (aarch64_software_single_step): New function.
7275 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7276 with aarch64_software_single_step.
7278 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7282 2014-05-05 Keith Seitz <keiths@redhat.com>
7284 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7285 variable or history value is successfully parsed.
7287 2014-05-05 Yao Qi <yao@codesourcery.com>
7288 Pedro Alves <palves@redhat.com>
7290 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7291 address of blocks that intersects the requested range. Trim
7292 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7294 * ctf.c (ctf_xfer_partial): Likewise.
7296 2014-05-05 Yao Qi <yao@codesourcery.com>
7298 * printcmd.c (display_command): Remove the check to
7299 target_has_execution.
7301 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7303 * ppcobsd-nat.c: Include "obsd-nat.h".
7304 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7306 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7308 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7310 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7311 and 16-bit signed and unsigned arguments. Update comment.
7312 (stap_parse_probe_arguments): Extend code to handle such
7313 arguments. Use warning instead of complaint to notify about
7314 unrecognized bitness.
7316 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7318 PR breakpoints/16889
7319 * stap-probe.c (stap_parse_probe_arguments): Simplify
7320 check for non-prefixed probes (i.e., probes whose
7321 arguments do not start with "N@"). Always set the
7322 argument type to a sane value.
7324 2014-05-01 David Taylor <dtaylor@emc.com>
7326 * remote.c (compare_sections_command): Add -r option to compare
7327 all loadable read-only sections.
7329 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7331 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7332 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7334 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7335 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7336 Remove unused CORE_ADDR argument. Update all callers.
7338 2014-04-29 Pedro Alves <palves@redhat.com>
7340 * remote.c (struct packet_config) <detect>: Extend comment.
7341 (add_packet_config_cmd): Don't set the config's detect or support
7343 (init_all_packet_configs): Also initialize the config's 'detect'
7345 (reset_all_packet_configs_support): New function.
7346 (remote_open_1): Call reset_all_packet_configs_support instead of
7347 init_all_packet_configs.
7348 (_initialize_remote): Initialize all packet configs. Assert that
7349 all packets have an associated command, except a few known
7352 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7354 * dwarf2read.c (read_subrange_type): Handle dynamic
7355 DW_AT_lower_bound attributes.
7357 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7359 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7360 dynamic bounds before computing its upper bound.
7361 (ada_discrete_type_low_bound): Same as above with the lower bound.
7363 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7365 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7366 range types. Adjust the array handling implementation to
7367 take advantage of this change.
7368 (resolve_dynamic_range): New function, mostly extracted from
7369 resolve_dynamic_bounds.
7370 (resolve_dynamic_array): New function, mostly extracted from
7371 resolve_dynamic_bounds.
7372 (resolve_dynamic_bounds): Delete.
7373 (resolve_dynamic_type): Reimplement. Add handling of
7374 TYPE_CODE_RANGE types.
7376 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7378 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7379 handling of parallel ___XA types.
7381 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7383 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7384 unnecessary second call to static_unwrap_type.
7386 2014-04-27 Hui Zhu <hui@codesourcery.com>
7388 * stack.c (print_frame_info): Call do_gdb_disassembly with
7389 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7391 2014-04-26 Doug Evans <xdje42@gmail.com>
7393 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7395 2014-04-25 Pedro Alves <palves@redhat.com>
7398 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7399 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7400 and newline from built string.
7401 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7402 (linux_ptrace_attach_fail_reason): ... this.
7403 * linux-nat.c (linux_nat_attach): Adjust to use
7404 linux_ptrace_attach_fail_reason.
7406 2014-04-25 Pedro Alves <palves@redhat.com>
7408 * remote.c (struct remote_state): Remove multi_process_aware,
7409 non_stop_aware, cond_tracepoints, cond_breakpoints,
7410 breakpoint_commands, fast_tracepoints, static_tracepoints,
7411 install_in_trace, disconnected_tracing,
7412 enable_disable_tracepoints, string_tracing, and
7413 augmented_libraries_svr4_read fields.
7414 (remote_multi_process_p): Move further below in the file.
7415 (struct packet_config): Add comments.
7416 (update_packet_config): Delete function.
7417 (show_packet_config_cmd): Use packet_config_support.
7418 (add_packet_config_cmd): Use NULL as set callback.
7419 (packet_ok): "set remote foo-packet"-style commands no longer
7420 change config->supported -- adjust.
7421 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7422 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7423 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7424 (PACKET_QNonStop, PACKET_multiprocess_feature)
7425 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7426 (PACKET_DisconnectedTracing_feature)
7427 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7428 (set_remote_protocol_packet_cmd): Delete function.
7429 (packet_config_support, packet_support): New functions.
7430 (set_remote_protocol_Z_packet_cmd): Don't call
7431 update_packet_config.
7432 (remote_query_attached, remote_pass_signals)
7433 (remote_program_signals, remote_threads_info)
7434 (remote_threads_extra_info, remote_start_remote): Use
7436 (remote_start_remote): Use packet_config_support and
7438 (init_all_packet_configs): Set all packets to unknown support,
7439 instead of calling update_packet_config.
7440 (remote_check_symbols): Use packet_support.
7441 (remote_supported_packet): Unconditionally set the packet config's
7443 (remote_multi_process_feature, remote_non_stop_feature)
7444 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7445 (remote_breakpoint_commands_feature)
7446 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7447 (remote_install_in_trace_feature)
7448 (remote_disconnected_tracing_feature)
7449 (remote_enable_disable_tracepoint_feature)
7450 (remote_string_tracing_feature)
7451 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7452 (remote_protocol_features): Adjust to use remote_supported_packet
7453 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7454 "ConditionalTracepoints", "ConditionalBreakpoints",
7455 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7456 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7457 "EnableDisableTracepoints", and "tracenz".
7458 (remote_query_supported): Use packet_support.
7459 (remote_open_1): Adjust.
7460 (extended_remote_attach_1): Use packet_support. Switch on the
7461 result of packet_ok instead of checking whether the packet ended
7463 (remote_vcont_resume): Use packet_support.
7464 (remote_resume, remote_stop_ns, fetch_register_using_p)
7465 (remote_prepare_to_store, store_register_using_P)
7466 (check_binary_download, remote_write_bytes): Use packet_support.
7467 (remote_vkill): Use packet_support. Switch on the result of
7468 packet_ok instead of checking whether the packet ended up
7470 (extended_remote_supports_disable_randomization): Use
7472 (extended_remote_run): Switch on the result of packet_ok instead
7473 of checking whether the packet ended up disabled.
7474 (remote_insert_breakpoint, remote_remove_breakpoint)
7475 (remote_insert_watchpoint, remote_remove_watchpoint)
7476 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7478 (remote_search_memory): Use packet_config_support.
7479 (remote_get_thread_local_address, remote_get_tib_address)
7480 (remote_hostio_send_command, remote_can_execute_reverse): Use
7482 (remote_supports_cond_tracepoints)
7483 (remote_supports_cond_breakpoints)
7484 (remote_supports_fast_tracepoints)
7485 (remote_supports_static_tracepoints)
7486 (remote_supports_install_in_trace)
7487 (remote_supports_enable_disable_tracepoint)
7488 (remote_supports_string_tracing)
7489 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7490 the packet config says the feature is enabled or disabled.
7491 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7492 (remote_get_trace_status): Use packet_support.
7493 (remote_set_disconnected_tracing): Adjust to check whether the
7494 feature is enabled with packet_support.
7495 (remote_set_trace_buffer_size, remote_use_agent)
7496 (remote_can_use_agent, remote_supports_btrace): Use
7498 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7499 Use packet_config_support.
7500 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7501 the packet config says the feature is enabled or disabled.
7502 (set_range_stepping): Use packet_support.
7504 2014-04-25 Tom Tromey <tromey@redhat.com>
7506 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7509 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7511 * NEWS: Mention support for C99 variable length arrays.
7513 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7515 * ada-lang.c (standard_exc): Expand introductory comment.
7517 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7518 Walfred Tedeschi <walfred.tedeschi@intel.com>
7520 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7522 (amd64_linux_read_description): Add code to handle AVX512 xstate
7523 mask and return respective tdesc.
7524 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7525 and features/i386/x32-avx512-linux.c.
7526 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7527 (amd64_linux_core_read_description): Add code to handle AVX512
7528 xstate mask and return respective tdesc.
7529 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7530 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7532 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7533 (tdesc_amd64_avx512_linux): New prototype.
7534 (tdesc_x32_avx512_linux): Likewise.
7535 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7536 features/i386/x32-avx512.c.
7537 (amd64_ymm_avx512_names): New register names for pseudo
7539 (amd64_ymmh_avx512_names): New register names for raw registers
7541 (amd64_k_names): New register names for K registers.
7542 (amd64_zmmh_names): New register names for ZMM raw registers.
7543 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7544 (amd64_xmm_avx512_names): New register names for XMM16-31
7546 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7548 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7549 if feature is present.
7550 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7551 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7552 (AMD64_NUM_REGS): Adjust to new number of registers.
7553 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7554 registers supplied via XSTATE by AVX512 registers.
7555 (i386_linux_read_description): Add case for AVX512.
7556 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7557 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7558 (i386_linux_core_read_description): Add case for AVX512.
7559 (i386_linux_init_abi): Install supported register note section
7561 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7563 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7564 registers to be number of zmm7h + 1.
7565 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7566 * i386-tdep.c: Include features/i386/i386-avx512.c.
7567 (i386_zmm_names): Add ZMM pseudo register names array.
7568 (i386_zmmh_names): Add ZMM raw register names array.
7569 (i386_k_names): Add K raw register names array.
7570 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7571 registers. AVX512 has 16 more ZMM registers than there are YMM
7573 (i386_zmmh_regnum_p): Add function to look up register number of
7575 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7576 (i386_k_regnum_p): Likewise for K raw registers.
7577 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7578 registers added by AVX512.
7579 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7580 registers added by AVX512.
7581 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7583 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7584 (i386_pseudo_register_name): Add ZMM pseudo registers.
7585 (i386_zmm_type): Construct and return vector registers type for ZMM
7587 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7588 ZMM0-31 pseudo registers and K registers.
7589 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7590 and YMM16-31 registers from register cache.
7591 (i386_pseudo_register_write): Add code to write K, ZMM and
7593 (i386_register_reggroup_p): Add code to include/exclude AVX512
7594 registers in/from respective register groups.
7595 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7596 registers if feature is present in xcr0.
7597 (i386_gdbarch_init): Add code to initialize AVX512 feature
7598 variables in tdep structure, wire in pseudo registers and call
7599 initialize_tdesc_i386_avx512.
7600 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7602 (i386_regnum): Add AVX512 registers.
7603 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7604 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7605 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7606 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7608 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7609 (i386_ymm_avx512_regnum_p): Likewise.
7610 (i386_k_regnum_p): Likewise.
7611 (i386_zmm_regnum_p): Likewise.
7612 (i386_zmmh_regnum_p): Likewise.
7613 * i387-tdep.c : Update year in copyright notice.
7614 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7616 (XSAVE_YMM_AVX512_ADDR): New macro.
7617 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7619 (XSAVE_XMM_AVX512_ADDR): New macro.
7620 (xsave_avx512_k_offset): New table for K register offsets in
7622 (XSAVE_AVX512_K_ADDR): New macro.
7623 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7625 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7626 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7628 (i387_collect_xsave): Add code to collect AVX512 registers from
7630 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7631 of XMM16-31 registers.
7632 (I387_NUM_K_REGS): New define for number of K registers.
7633 (I387_K0_REGNUM): New define for K0 register number.
7634 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7635 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7636 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7638 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7639 (I387_XMM16_REGNUM): New define for XMM16 register number.
7640 (I387_YMM0_REGNUM): New define for YMM0 register number.
7641 (I387_KEND_REGNUM): New define for last K register number.
7642 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7643 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7645 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7647 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7649 * features/Makefile: Add AVX512 related files.
7650 * features/i386/32bit-avx512.xml: New file.
7651 * features/i386/64bit-avx512.xml: Likewise.
7652 * features/i386/amd64-avx512-linux.c: Likewise.
7653 * features/i386/amd64-avx512-linux.xml: Likewise.
7654 * features/i386/amd64-avx512.c: Likewise.
7655 * features/i386/amd64-avx512.xml: Likewise.
7656 * features/i386/i386-avx512-linux.c: Likewise.
7657 * features/i386/i386-avx512-linux.xml: Likewise.
7658 * features/i386/i386-avx512.c: Likewise.
7659 * features/i386/i386-avx512.xml: Likewise.
7660 * features/i386/x32-avx512-linux.c: Likewise.
7661 * features/i386/x32-avx512-linux.xml: Likewise.
7662 * features/i386/x32-avx512.c: Likewise.
7663 * features/i386/x32-avx512.xml: Likewise.
7664 * regformats/i386/amd64-avx512-linux.dat: New file.
7665 * regformats/i386/amd64-avx512.dat: Likewise.
7666 * regformats/i386/i386-avx512-linux.dat: Likewise.
7667 * regformats/i386/i386-avx512.dat: Likewise.
7668 * regformats/i386/x32-avx512-linux.dat: Likewise.
7669 * regformats/i386/x32-avx512.dat: Likewise.
7670 * NEWS: Add note about new support for AVX512.
7673 2014-04-23 Pedro Alves <palves@redhat.com>
7675 * breakpoint.c (insert_bp_location): Tolerate errors if the
7676 breakpoint is set in a user-loaded objfile.
7677 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7678 location is marked shlib_disabled. If the breakpoint is set in a
7679 user-loaded objfile is a GDB-side memory breakpoint, validate it
7680 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7681 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7683 * mem-break.c (memory_validate_breakpoint): New function.
7684 * objfiles.c (userloaded_objfile_contains_address_p): New
7686 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7687 * target.h (memory_validate_breakpoint): New declaration.
7689 2014-04-23 Pedro Alves <palves@redhat.com>
7691 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7692 the breakpoint is set in a shared library, only suppress
7693 errors for software breakpoints, not hardware breakpoints.
7695 2014-04-22 Pedro Alves <palves@redhat.com>
7697 * infrun.c (schedlock_applies): New function, factored out from
7698 find_thread_needs_step_over.
7699 (find_thread_needs_step_over): Use it.
7700 (switch_back_to_stepped_thread): Always clear trap_expected if the
7701 step over is finished. Return early if scheduler locking applies.
7702 Look for the stepping thread and a potential step-over thread with
7704 (currently_stepping_or_nexting_callback): Delete.
7706 2014-04-22 Nick Clifton <nickc@redhat.com>
7708 * NEWS: Mention that ARM sim now supports tracing.
7710 2014-04-22 Yao Qi <yao@codesourcery.com>
7712 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7714 * tracefile.c (tracefile_fetch_registers): ... it. New
7716 * tracefile.h (tracefile_fetch_registers): Declare.
7717 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7718 tracefile_fetch_registers.
7720 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7723 * windows-nat.c (thread_rec): Don't display a warning when
7724 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7725 fails for any reason, set th->suspended to -1, so that we don't
7726 try to resume such a thread. Also, don't return NULL in these
7727 cases, to avoid completely ruin the session due to "PC register is
7728 not available" error.
7729 (do_windows_fetch_inferior_registers): Check errors in
7730 GetThreadContext call.
7731 (windows_continue): Accept an additional argument KILLED; if not
7732 zero, ignore errors in the SetThreadContext call, since the
7733 inferior was killed and is shutting down.
7734 (windows_resume, get_windows_debug_event)
7735 (windows_create_inferior, windows_mourn_inferior)
7736 (windows_kill_inferior): All callers of windows_continue changed
7737 to adjust to its new calling sequence.
7739 2014-04-19 Yao Qi <yao@codesourcery.com>
7741 * ctf.c (ctf_open): Call post_create_inferior.
7743 2014-04-19 Yao Qi <yao@codesourcery.com>
7745 * ctf.c (handle_id): New static variable.
7746 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7747 value. Get the declaration of event "register" and get length
7748 of field "contents".
7750 2014-04-19 Yao Qi <yao@codesourcery.com>
7752 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7754 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7756 * valops.c (oload_method_static): Remove unnecessary argument
7757 METHOD. Update all callers.
7759 2014-04-18 Pedro alves <palves@redhat.com>
7760 Tom Tromey <tromey@redhat.com>
7763 * frame.c (get_prev_frame_1): Rename to ...
7764 (get_prev_frame_always): ... this, and make extern. Adjust.
7765 (skip_artificial_frames): Use get_prev_frame_always.
7766 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7767 (get_frame_unwind_stop_reason): Adjust to rename.
7768 * frame.h (get_prev_frame_always): Declare.
7769 * inline-frame.c: Include frame.h.
7770 (inline_frame_this_id): Use get_prev_frame_always.
7772 2014-04-18 Tristan Gingold <gingold@adacore.com>
7774 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7775 code by using bfd_mach_o_get_base_address.
7777 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7779 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7780 (spu_ax_pseudo_register_collect): New function.
7781 (spu_ax_pseudo_register_push_stack): Likewise.
7782 (spu_dwarf_reg_to_regnum): Likewise.
7783 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7785 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7787 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7788 Replace FRAME argument with FRAME_ID.
7789 * gdbarch.c, gdbarch.h: Regenerate.
7790 * findvar.c (default_value_from_register): Add GDBARCH argument;
7791 replace FRAME by FRAME_ID. No longer call get_frame_id.
7792 (value_from_register): Update call to gdbarch_value_from_register.
7793 * value.h (default_value_from_register): Update prototype.
7794 * s390-linux-tdep.c (s390_value_from_register): Update interface
7795 and call to default_value_from_register.
7796 * spu-tdep.c (spu_value_from_register): Likewise.
7798 * findvar.c (address_from_register): Remove TYPE argument.
7799 Do not call value_from_register; use gdbarch_value_from_register
7800 with null_frame_id instead.
7801 * value.h (address_from_register): Update prototype.
7802 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7803 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7804 address_from_register interface change.
7806 2014-04-17 Yao Qi <yao@codesourcery.com>
7808 * gdbtypes.h: Update comments to link to types and macros'
7811 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7813 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7815 2014-04-16 Keith Seitz <keiths@redhat.com>
7818 * dwarf2read.c (skip_one_die): Check that all relative-offset
7819 sibling DIEs fall within range of the current reader's buffer.
7820 (read_partial_die): Likewise.
7822 2014-04-16 Keith Seitz <keiths@redhat.com>
7825 * cp-namespace.c (lookup_symbol_file): If the type name of
7826 `this' is NULL, return immediately.
7828 2014-04-14 Keith Seitz <keiths@redhat.com>
7831 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7832 from symbol_matches_domain in symtab.c. All local callers
7833 of symbol_matches_domain updated.
7834 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7835 search STRUCT_DOMAIN.
7836 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7837 independently. standard_lookup will do that automatically.
7838 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7839 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7840 (cp_lookup_symbol_in_namespace): Likewise.
7841 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7842 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7843 may return a STRUCT_DOMAIN match.
7844 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7845 * cp-support.c: Include language.h.
7846 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7848 * psymtab.c (match_partial_symbol): Compare the requested
7849 domain with the symbol's domain directly.
7850 (lookup_partial_symbol): Likewise.
7851 * symtab.c (lookup_symbol_in_language): Explain when/why
7852 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7853 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7854 appropriate languages.
7855 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7856 and moved to ada-lang.c
7857 (lookup_block_symbol): Explain that this function only returns
7858 symbol matching the requested DOMAIN.
7859 Compare the requested domain with the symbol's domain directly.
7860 (iterate_over_symbols): Compare the requested domain with the
7861 symbol's domain directly.
7862 * symtab.h (symbol_matches_domain): Remove.
7864 2014-04-14 Tom Tromey <tromey@redhat.com>
7867 * c-exp.y (type_aggregate_p): New function.
7868 (qualified_name, classify_inner_name): Use it.
7869 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7870 and TYPE_TARGET_TYPE of an enum type.
7871 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7873 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7874 handle TYPE_DECLARED_CLASS.
7875 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7877 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7878 * valops.c (enum_constant_from_type): New function.
7879 (value_aggregate_elt): Use it.
7880 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7883 2014-04-14 Tom Tromey <tromey@redhat.com>
7885 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7886 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7888 * value.h (value_aggregate_elt): Update.
7890 2014-04-14 Tom Tromey <tromey@redhat.com>
7892 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7894 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7896 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7897 (evaluate_subexp_standard): Pass noside argument.
7898 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7899 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7900 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7901 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7902 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7904 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7906 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7907 points to a constant blob.
7909 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7911 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7912 property and store it as the high bound and flag the range accordingly.
7913 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7914 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7915 * gdbtypes.h (enum range_flags): New enum.
7916 (struct range_bounds): Add flags member.
7918 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7920 * c-typeprint.c (c_type_print_varspec_suffix): Added
7921 check for not yet resolved high bound. If unresolved, print
7922 "variable length" string to the console instead of random
7925 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7927 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7929 (ada_template_to_fixed_record_type_1): Likewise.
7930 (ada_to_fixed_type_1): Likewise.
7931 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7932 (cp_print_value): Likewise.
7933 * d-valprint.c (dynamic_array_type): Likewise.
7934 * findvar.c (address_of_variable): Likewise.
7935 * jv-valprint.c (java_value_print): Likewise.
7936 * valops.c (value_ind): Likewise.
7937 * value.c (coerce_ref): Likewise.
7939 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7941 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7942 value and retrieve the dynamic type size.
7944 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7946 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7947 passed to sizeof is dynamic evaluate the argument to compute the length.
7949 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7950 Joel Brobecker <brobecker@adacore.com>
7952 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7953 (dwarf2_evaluate_property): New function.
7954 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7955 * dwarf2read.c (attr_to_dynamic_prop): New function.
7956 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7958 * gdbtypes.c: Include dwarf2loc.h.
7959 (is_dynamic_type): New function.
7960 (resolve_dynamic_type): New function.
7961 (resolve_dynamic_bounds): New function.
7962 (get_type_length): New function.
7963 (check_typedef): Use get_type_length to compute type length.
7964 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7965 (TYPE_LOW_BOUND_KIND): New macro.
7966 (is_dynamic_type): New function prototype.
7967 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7968 to resolve dynamic properties of the type. Update comment.
7969 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7971 2014-04-14 Richard Henderson <rth@redhat.com>
7973 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7975 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7976 Doug Evans <xdje42@gmail.com>
7978 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7979 dereference TYPE_CODE_REF values.
7981 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7983 Revert the following changes due to regressions:
7985 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7986 (dwarf2_evaluate_property): New function.
7987 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7988 * dwarf2read.c (attr_to_dynamic_prop): New function.
7989 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7991 * gdbtypes.c: Include dwarf2loc.h.
7992 (is_dynamic_type): New function.
7993 (resolve_dynamic_type): New function.
7994 (resolve_dynamic_bounds): New function.
7995 (get_type_length): New function.
7996 (check_typedef): Use get_type_length to compute type length.
7997 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7998 (TYPE_LOW_BOUND_KIND): New macro.
7999 (is_dynamic_type): New function prototype.
8000 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8001 to resolve dynamic properties of the type. Update comment.
8002 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8004 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8005 passed to sizeof is dynamic evaluate the argument to compute the length.
8007 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8008 value and retrieve the dynamic type size.
8010 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8011 (ada_template_to_fixed_record_type_1): Likewise.
8012 (ada_to_fixed_type_1): Likewise.
8013 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8014 (cp_print_value): Likewise.
8015 * d-valprint.c (dynamic_array_type): Likewise.
8016 * eval.c (evaluate_subexp_with_coercion): Likewise.
8017 * findvar.c (address_of_variable): Likewise.
8018 * jv-valprint.c (java_value_print): Likewise.
8019 * valops.c (value_ind): Likewise.
8020 * value.c (coerce_ref): Likewise.
8022 * c-typeprint.c (c_type_print_varspec_suffix): Added
8023 check for not yet resolved high bound. If unresolved, print
8024 "variable length" string to the console instead of random
8027 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8028 property and store it as the high bound and flag the range accordingly.
8029 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8030 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8031 * gdbtypes.h (enum range_flags): New enum.
8032 (struct range_bounds): Add flags member.
8034 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8035 points to a constant blob.
8037 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8038 (evaluate_subexp_standard): Pass noside argument.
8039 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8040 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8041 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8042 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8043 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8045 2014-04-11 Keith Seitz <keiths@redhat.com>
8048 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8049 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8052 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8054 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8055 (evaluate_subexp_standard): Pass noside argument.
8056 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8057 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8058 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8059 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8060 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8062 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8064 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8065 points to a constant blob.
8067 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8069 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8070 property and store it as the high bound and flag the range accordingly.
8071 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8072 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8073 * gdbtypes.h (enum range_flags): New enum.
8074 (struct range_bounds): Add flags member.
8076 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8078 * c-typeprint.c (c_type_print_varspec_suffix): Added
8079 check for not yet resolved high bound. If unresolved, print
8080 "variable length" string to the console instead of random
8083 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8085 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8086 (ada_template_to_fixed_record_type_1): Likewise.
8087 (ada_to_fixed_type_1): Likewise.
8088 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8089 (cp_print_value): Likewise.
8090 * d-valprint.c (dynamic_array_type): Likewise.
8091 * eval.c (evaluate_subexp_with_coercion): Likewise.
8092 * findvar.c (address_of_variable): Likewise.
8093 * jv-valprint.c (java_value_print): Likewise.
8094 * valops.c (value_ind): Likewise.
8095 * value.c (coerce_ref): Likewise.
8097 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8099 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8100 value and retrieve the dynamic type size.
8102 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8104 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8105 passed to sizeof is dynamic evaluate the argument to compute the length.
8107 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8109 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8110 (dwarf2_evaluate_property): New function.
8111 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8112 * dwarf2read.c (attr_to_dynamic_prop): New function.
8113 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8115 * gdbtypes.c: Include dwarf2loc.h.
8116 (is_dynamic_type): New function.
8117 (resolve_dynamic_type): New function.
8118 (resolve_dynamic_bounds): New function.
8119 (get_type_length): New function.
8120 (check_typedef): Use get_type_length to compute type length.
8121 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8122 (TYPE_LOW_BOUND_KIND): New macro.
8123 (is_dynamic_type): New function prototype.
8124 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8125 to resolve dynamic properties of the type. Update comment.
8126 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8128 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8130 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8131 declaring high/low bounds and change uses accordingly. Call
8132 create_range_type instead of create_static_range_type.
8133 * gdbtypes.c (create_range_type): New function.
8134 (create_range_type): Convert bounds into struct bound_prop and pass
8135 them to create_range_type.
8136 * gdbtypes.h (struct bound_prop): New struct.
8137 (create_range_type): New function prototype.
8138 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8139 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8140 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8142 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8144 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8146 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8147 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8148 * ada-lang.c: All uses of create_range_type updated.
8149 * coffread.c: All uses of create_range_type updated.
8150 * dwarf2read.c: All uses of create_range_type updated.
8151 * f-exp.y: All uses of create_range_type updated.
8152 * m2-valprint.c: All uses of create_range_type updated.
8153 * mdebugread.c: All uses of create_range_type updated.
8154 * stabsread.c: All uses of create_range_type updated.
8155 * valops.c: All uses of create_range_type updated.
8156 * valprint.c: All uses of create_range_type updated.
8158 2014-04-10 Pedro Alves <palves@redhat.com>
8160 * breakpoint.c (single_step_breakpoints)
8161 (single_step_gdbarch): Move up in the file.
8162 (one_breakpoint_xfer_memory): New function, factored out from ...
8163 (breakpoint_xfer_memory): ... here. Also process single-step
8166 2014-04-09 Tristan Gingold <gingold@adacore.com>
8168 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8170 (darwin_decode_exception_message): Free port only after use.
8172 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8174 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8175 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8176 when setting the size of call_length.
8178 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8180 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8181 dereference TYPE_CODE_REF values.
8183 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8185 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8186 end of warning message.
8188 2014-04-03 Doug Evans <dje@google.com>
8190 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8191 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8193 2014-04-02 Alan Modra <amodra@gmail.com>
8195 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8196 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8197 (struct symbol_file_add_from_memory_args): Add size field.
8198 (find_vdso_size): New function.
8199 (add_vsyscall_page): Attempt to find vdso size.
8201 2014-04-01 Doug Evans <dje@google.com>
8203 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8205 2014-04-01 Tristan Gingold <gingold@adacore.com>
8207 * darwin-nat.c (darwin_encode_reply): Add prototype.
8208 (darwin_decode_exception_message): Reply to unknown inferiors.
8209 (darwin_decode_message): Handle message by id. Ignore message
8210 to unknown inferior.
8211 (darwin_wait): Discard unknown messages, add debug trace.
8213 2014-03-31 Doug Evans <dje@google.com>
8215 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8218 2014-03-31 Doug Evans <dje@google.com>
8220 New option "set print symbol-loading".
8222 * solib.c (solib_read_symbols): Only print symbol loading messages
8224 (solib_add): If symbol loading is in "brief" mode, notify user
8225 symbols are being loaded.
8226 (reload_shared_libraries_1): Ditto.
8227 * symfile.c (print_symbol_loading_off): New static global.
8228 (print_symbol_loading_brief): New static global.
8229 (print_symbol_loading_full): New static global.
8230 (print_symbol_loading_enums): New static global.
8231 (print_symbol_loading): New static global.
8232 (print_symbol_loading_p): New function.
8233 (symbol_file_add_with_addrs): Only print symbol loading messages
8235 (_initialize_symfile): Register "print symbol-loading" set/show
8237 * symfile.h (print_symbol_loading_p): Declare.
8239 2014-03-30 Doug Evans <xdje42@gmail.com>
8241 * infrun.c (set_last_target_status): New function.
8242 (handle_inferior_event): Call it.
8244 2014-03-30 Doug Evans <xdje42@gmail.com>
8246 * inferior.h (enum stop_kind): Improve comment.
8248 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8250 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8251 a reference, strip the reference layer before calling
8252 the lang_ops value_has_mutated callback.
8254 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8256 Remove some globals from our parser.
8257 * language.c (unk_lang_parser): Add "struct parser_state"
8259 * language.h (struct language_defn) <la_parser>: Likewise.
8260 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8261 (initialize_expout): Add "struct parser_state" argument.
8262 Rewrite function to use the parser state.
8263 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8264 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8265 write_exp_elt_longcst, write_exp_elt_dblcst,
8266 write_exp_elt_decfloatcst, write_exp_elt_type,
8267 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8268 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8269 write_dollar_variable): Likewise.
8270 (parse_exp_in_context_1): Use parser state.
8271 (insert_type_address_space): Add "struct parser_state" argument.
8273 (increase_expout_size): New function.
8274 * parser-defs.h: Forward declare "struct language_defn" and
8275 "struct parser_state".
8276 (expout, expout_size, expout_ptr): Remove extern declarations.
8277 (parse_gdbarch, parse_language): Rewrite macro declarations to
8278 accept the parser state.
8279 (struct parser_state): New struct.
8280 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8281 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8282 write_exp_elt_decfloatcst, write_exp_elt_type,
8283 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8284 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8285 write_exp_msymbol, write_dollar_variable,
8286 mark_struct_expression, insert_type_address_space): Add "struct
8287 parser_state" argument.
8288 (increase_expout_size): New function.
8289 * utils.c (do_clear_parser_state): New function.
8290 (make_cleanup_clear_parser_state): Likewise.
8291 * utils.h (make_cleanup_clear_parser_state): New function
8293 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8294 Update calls to write_exp* in order to pass the parser state.
8295 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8296 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8297 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8298 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8299 * stap-probe.c (stap_parse_register_operand): Likewise.
8300 (stap_parse_single_operand): Likewise.
8301 (stap_parse_argument_1): Likewise.
8302 (stap_parse_argument): Use parser state.
8303 * stap-probe.h: Include "parser-defs.h".
8304 (struct stap_parse_info) <pstate>: New field.
8305 * c-exp.y (parse_type): Rewrite to use parser state.
8306 (yyparse): Redefine to c_parse_internal.
8307 (pstate): New global variable.
8308 (parse_number): Add "struct parser_state" argument.
8309 (write_destructor_name): Likewise.
8310 (type_exp): Update calls to write_exp* and similars in order to
8312 (exp1, exp, variable, qualified_name, space_identifier,
8313 typename, typebase): Likewise.
8314 (write_destructor_name, parse_number, lex_one_token,
8315 classify_name, classify_inner_name, c_parse): Add "struct
8316 parser_state" argument. Update function to use parser state.
8317 * c-lang.h: Forward declare "struct parser_state".
8318 (c_parse): Add "struct parser_state" argument.
8319 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8320 (yyparse): Redefine macro to ada_parse_internal.
8321 (pstate): New variable.
8322 (write_int, write_object_renaming, write_var_or_type,
8323 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8324 type_int, type_long, type_long_long, type_float, type_double,
8325 type_long_double, type_char, type_boolean, type_system_address):
8326 Add "struct parser_state" argument.
8327 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8328 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8329 var_or_type, aggregate, aggregate_component_list,
8330 positional_list, others, component_group,
8331 component_associations): Update calls to write_exp* and similar
8332 functions in order to use parser state.
8333 (ada_parse, write_var_from_sym, write_int,
8334 write_exp_op_with_string, write_object_renaming,
8335 find_primitive_type, write_selectors, write_ambiguous_var,
8336 write_var_or_type, write_name_assoc, type_int, type_long,
8337 type_long_long, type_float, type_double, type_long_double,
8338 type_char, type_boolean, type_system_address): Add "struct
8339 parser_state" argument. Adjust function to use parser state.
8340 * ada-lang.c (parse): Likewise.
8341 * ada-lang.h: Forward declare "struct parser_state".
8342 (ada_parse): Add "struct parser_state" argument.
8343 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8344 calls to both functions.
8345 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8347 (yyparse): Redefine macro to f_parse_internal.
8348 (pstate): New variable.
8349 (parse_number): Add "struct parser_state" argument.
8350 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8351 and similars in order to use parser state.
8352 (parse_number): Adjust code to use parser state.
8354 (f_parse): New function.
8355 * f-lang.h: Forward declare "struct parser_state".
8356 (f_parse): Add "struct parser_state" argument.
8357 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8359 (yyparse): Redefine macro for java_parse_internal.
8360 (pstate): New variable.
8361 (push_expression_name, push_expression_name, insert_exp): Add
8362 "struct parser_state" argument.
8363 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8364 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8365 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8366 PostIncrementExpression, PostDecrementExpression,
8367 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8368 UnaryExpressionNotPlusMinus, CastExpression,
8369 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8370 RelationalExpression, EqualityExpression, AndExpression,
8371 ExclusiveOrExpression, InclusiveOrExpression,
8372 ConditionalAndExpression, ConditionalOrExpression,
8373 ConditionalExpression, Assignment, LeftHandSide): Update
8374 calls to write_exp* and similars in order to use parser state.
8375 (parse_number): Ajust code to use parser state.
8377 (java_parse): New function.
8378 (push_variable): Add "struct parser_state" argument. Adjust
8379 code to user parser state.
8380 (push_fieldnames, push_qualified_expression_name,
8381 push_expression_name, insert_exp): Likewise.
8382 * jv-lang.h: Forward declare "struct parser_state".
8383 (java_parse): Add "struct parser_state" argument.
8384 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8386 (yyparse): Redefine macro to m2_parse_internal.
8387 (pstate): New variable.
8388 (type_exp, exp, fblock, variable, type): Update calls to
8389 write_exp* and similars to use parser state.
8391 (m2_parse): New function.
8392 * m2-lang.h: Forward declare "struct parser_state".
8393 (m2_parse): Add "struct parser_state" argument.
8394 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8395 * objc-lang.h: Forward declare "struct parser_state".
8396 (end_msglist): Add "struct parser_state" argument.
8397 * p-exp.y (parse_type): Rewrite macro to use parser state.
8398 (yyparse): Redefine macro to pascal_parse_internal.
8399 (pstate): New variable.
8400 (parse_number): Add "struct parser_state" argument.
8401 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8402 write_exp* and similars in order to use parser state.
8403 (parse_number, yylex): Adjust code to use parser state.
8404 (pascal_parse): New function.
8405 * p-lang.h: Forward declare "struct parser_state".
8406 (pascal_parse): Add "struct parser_state" argument.
8407 * go-exp.y (parse_type): Rewrite macro to use parser state.
8408 (yyparse): Redefine macro to go_parse_internal.
8409 (pstate): New variable.
8410 (parse_number): Add "struct parser_state" argument.
8411 (type_exp, exp1, exp, variable, type): Update calls to
8412 write_exp* and similars in order to use parser state.
8413 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8414 to use parser state.
8415 (go_parse): Likewise.
8416 * go-lang.h: Forward declare "struct parser_state".
8417 (go_parse): Add "struct parser_state" argument.
8419 2014-03-27 Doug Evans <dje@google.com>
8421 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8423 2014-03-27 Doug Evans <dje@google.com>
8425 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8426 Remove argument abbrev_section. All callers updated.
8428 2014-03-27 Doug Evans <dje@google.com>
8430 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8431 addr_base, ranges_base.
8433 2014-03-26 Keith Seitz <keiths@redhat.com>
8435 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8436 types, not VAR_DOMAIN.
8438 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8440 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8442 * features/nios2-linux.c: Regenerated.
8443 * features/nios2.c: Regenerated.
8445 2014-03-25 Pedro Alves <palves@redhat.com>
8447 * cli/cli-script.c (script_from_file): Force the interpreter to
8450 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8452 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8453 small stack allocation.
8455 2014-03-24 Tristan Gingold <gingold@adacore.com>
8457 * darwin-nat.c (exc_server): Remove unused prototype.
8458 (darwin_dump_message): Correctly display data on x86_64.
8459 (darwin_encode_reply): Fix style.
8460 Add comments and fix indentation.
8462 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8464 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8466 2014-03-22 Doug Evans <xdje42@gmail.com>
8468 * infcmd.c: Whitespace fixes.
8469 (interrupt_command): Merge two function comments into one.
8471 2014-03-22 Doug Evans <xdje42@gmail.com>
8473 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8476 2014-03-22 Yao Qi <yao@codesourcery.com>
8478 * remote.c (target_read_live_memory): Remove.
8479 (memory_xfer_live_readonly_partial): Rename it to
8480 remote_xfer_live_readonly_partial. Remove argument 'object'.
8481 All callers updated. Call remote_read_bytes_1
8482 instead of target_read_live_memory.
8483 * tracepoint.c (set_traceframe_number): Remove.
8484 (make_cleanup_restore_traceframe_number): Likewise .
8485 * tracepoint.h (set_traceframe_number): Remove declaration.
8486 (make_cleanup_restore_traceframe_number): Likewise.
8488 2014-03-22 Yao Qi <yao@codesourcery.com>
8490 * remote.c (remote_read_bytes): Move code on reading from the
8492 (remote_read_bytes_1): ... here. New function.
8494 2014-03-22 Yao Qi <yao@codesourcery.com>
8496 * ctf.c (ctf_xfer_partial): Check the return value of
8497 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8498 return TARGET_XFER_UNAVAILABLE.
8499 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8500 * target.c (target_read_live_memory): Move it to remote.c.
8501 (memory_xfer_live_readonly_partial): Likewise.
8502 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8503 * remote.c (target_read_live_memory): Moved from target.c.
8504 (memory_xfer_live_readonly_partial): Likewise.
8505 (remote_read_bytes): Factored out from
8506 memory_xfer_partial_1.
8508 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8510 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8513 2014-03-21 Pedro Alves <palves@redhat.com>
8515 * infrun.c (normal_stop): Extend comment.
8517 2014-03-21 Hui Zhu <hui@codesourcery.com>
8518 Pedro Alves <palves@redhat.com>
8520 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8522 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8523 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8524 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8526 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8528 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8529 `z' formatted output modifier.
8531 2014-03-20 Tom Tromey <tromey@redhat.com>
8532 Sergio Durigan Junior <sergiodj@redhat.com>
8534 * probe.c (parse_probes): Turn assert into an ordinary error.
8535 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8536 exceptions when parsing probes. Rearrange the code for clarity.
8538 2014-03-20 Tom Tromey <tromey@redhat.com>
8541 * top.c (execute_command): Only dispatch events if the command
8544 2014-03-20 Tom Tromey <tromey@redhat.com>
8547 * infcall.c: Include event-top.h.
8548 (run_inferior_call): Call async_disable_stdin if needed.
8550 2014-03-20 Pedro Alves <palves@redhat.com>
8552 * infrun.c (prepare_to_proceed): Delete.
8553 (thread_still_needs_step_over): New function.
8554 (find_thread_needs_step_over): New function.
8555 (proceed): If the current thread needs a step-over, set its
8556 steping_over_breakpoint flag. Adjust to use
8557 find_thread_needs_step_over instead of prepare_to_proceed.
8558 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8559 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8561 (switch_back_to_stepped_thread): Step over breakpoints of all
8562 threads not the stepping thread, before switching back to the
8565 2014-03-20 Pedro Alves <palves@redhat.com>
8567 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8569 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8570 * infrun.c (saved_singlestep_ptid)
8571 (stepping_past_singlestep_breakpoint): Delete.
8572 (resume): Remove stepping_past_singlestep_breakpoint handling.
8573 (proceed): Store the prev_pc of the stepping thread too.
8574 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8576 (enum infwait_states): Delete infwait_thread_hop_state.
8577 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8579 (handle_inferior_event): Adjust.
8580 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8581 handling and the thread-hop code. Before removing single-step
8582 breakpoints, check whether the thread hit a single-step breakpoint
8583 of another thread. If it did, the trap is not a random signal.
8584 (switch_back_to_stepped_thread): If the event thread hit a
8585 single-step breakpoint, unblock it before switching to the
8586 stepping thread. Handle the case of the stepped thread having
8588 (keep_going): Handle the case of the current thread moving past a
8589 single-step breakpoint.
8591 2014-03-20 Pedro Alves <palves@redhat.com>
8594 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8595 are being stepped over.
8596 (breakpoint_address_match): Make extern.
8597 * breakpoint.h (breakpoint_address_match): New declaration.
8598 * inferior.h (stepping_past_instruction_at): New declaration.
8599 * infrun.c (struct step_over_info): New type.
8600 (step_over_info): New global.
8601 (set_step_over_info, clear_step_over_info)
8602 (stepping_past_instruction_at): New functions.
8603 (handle_inferior_event): Clear the step-over info when
8604 trap_expected is cleared.
8605 (resume): Remove now stale comment.
8606 (clear_proceed_status): Clear step-over info.
8607 (proceed): Adjust step-over handling to set or clear the step-over
8608 info instead of removing all breakpoints.
8609 (handle_signal_stop): When setting up a thread-hop, don't remove
8611 (stop_stepping): Clear step-over info.
8612 (keep_going): Adjust step-over handling to set or clear step-over
8613 info and then always inserting breakpoints, instead of removing
8614 all breakpoints when stepping over one.
8616 2014-03-20 Pedro Alves <palves@redhat.com>
8618 * infrun.c (previous_inferior_ptid): Adjust comment.
8619 (deferred_step_ptid): Delete.
8620 (infrun_thread_ptid_changed, prepare_to_proceed)
8621 (init_wait_for_inferior): Adjust.
8622 (handle_signal_stop): Delete deferred_step_ptid handling.
8624 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8627 * defs.h (sync_quit_force_run): New declaration.
8628 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8629 * event-top.c (async_sigterm_handler): New declaration.
8630 (async_sigterm_token): New variable.
8631 (async_init_signals): Create also async_sigterm_token.
8632 (async_sigterm_handler): New function.
8633 (sync_quit_force_run): New variable.
8634 (handle_sigterm): Replace quit_force call by other calls.
8635 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8637 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8639 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8640 offset into SPE pseudo registers.
8642 2014-03-18 Pedro Alves <palves@redhat.com>
8645 * inferior.h (print_stop_event): Declare.
8646 * infrun.c (print_stop_event): New, factored out from ...
8647 (normal_stop): ... this.
8648 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8649 of bpstat_print/print_stack_frame.
8651 2014-03-17 Tom Tromey <tromey@redhat.com>
8653 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8655 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8657 * ada-lang.c (decode_constrained_packed_array): Perform a
8658 minimal coercion for reference with coerce_ref instead of
8661 2014-03-17 Tristan Gingold <gingold@adacore.com>
8663 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8664 (darwin_solib_create_inferior_hook): Emit a warning if version
8667 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8669 * python/py-value.c (get_field_flag): Cast flag_name argument to
8670 PyObject_GetAttrString to support Python 2.4.
8672 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8674 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8675 (Global Maintainers): Remove Jan Kratochvil.
8677 2014-03-14 Pedro Alves <palves@redhat.com>
8679 * inferior.h (terminal_ours_for_output): Rename to ...
8680 (child_terminal_ours_for_output): ... this.
8681 (terminal_save_ours): Rename to ...
8682 (child_terminal_save_ours): ... this.
8683 (terminal_ours): Rename to ...
8684 (child_terminal_ours): ... this.
8685 (terminal_inferior): Rename to ...
8686 (child_terminal_inferior): ... this.
8687 (terminal_init_inferior): Rename to ...
8688 (child_terminal_init_inferior): ... this.
8689 (terminal_init_inferior_with_pgrp): Rename to ...
8690 (child_terminal_init_inferior_with_pgrp): ... this.
8691 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8692 (child_terminal_init_with_pgrp): ... this.
8693 (terminal_save_ours): Rename to ...
8694 (child_terminal_save_ours): ... this.
8695 (terminal_init_inferior): Rename to ...
8696 (child_terminal_init): ... this. Adjust.
8697 (terminal_inferior): Rename to ...
8698 (child_terminal_inferior): ... this.
8699 (terminal_ours_for_output): Rename to ...
8700 (child_terminal_ours_for_output): ... this. Adjust.
8701 (terminal_ours): Rename to ...
8702 (child_terminal_ours): ... this.
8703 (terminal_ours_1): Rename to ...
8704 (child_terminal_ours_1): ... this. Adjust.
8705 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8706 * windows-nat.c (do_initial_windows_stuff): Adjust.
8707 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8708 (gnu_terminal_init): ... this. Adjust.
8709 (gnu_target): Adjust.
8710 * inf-child.c (inf_child_target): Adjust.
8712 2014-03-13 Doug Evans <xdje42@gmail.com>
8715 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8718 2014-03-13 Doug Evans <xdje42@gmail.com>
8720 * value.c (record_latest_value): Call release_value_or_incref
8721 instead of release_value.
8723 2014-03-13 Pedro Alves <palves@redhat.com>
8725 * procfs.c (procfs_target): Don't override to_shortname,
8726 to_longname or to_doc.
8728 2014-03-13 Pedro Alves <palves@redhat.com>
8730 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8731 Unix in user visible strings.
8733 2014-03-12 Stan Shebs <stan@codesourcery.com>
8735 * gdbtypes.h: Annotate comments for Doxygen, add a page
8736 block comment with some general info.
8738 2014-03-12 Pedro Alves <palves@redhat.com>
8740 * infcmd.c (prepare_execution_command): New function, factored out
8741 from several execution commands.
8742 (run_command_1, continue_command, step_1, jump_command)
8743 (signal_command, until_command, advance_command, finish_command)
8744 (attach_command): Use prepare_execution_command.
8746 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8748 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8751 (struct arm_linux_thread_points): Removed.
8752 (struct arm_linux_process_info): New.
8753 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8754 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8755 (arm_linux_find_breakpoints_by_tid): Removed.
8756 (struct arch_lwp_info): New.
8757 (arm_linux_find_process_pid): New functions.
8758 (arm_linux_add_process): New functions.
8759 (arm_linux_process_info_get): New functions.
8760 (arm_linux_forget_process): New function.
8761 (arm_linux_get_debug_reg_state): New function.
8762 (struct update_registers_data): New.
8763 (update_registers_callback): New function.
8764 (arm_linux_insert_hw_breakpoint1): Updated.
8765 (arm_linux_remove_hw_breakpoint1): Updated.
8766 (arm_linux_insert_hw_breakpoint): Updated.
8767 (arm_linux_remove_hw_breakpoint): Updated.
8768 (arm_linux_insert_watchpoint): Updated.
8769 (arm_linux_remove_watchpoint): Updated.
8770 (arm_linux_new_thread): Updated.
8771 (arm_linux_prepare_to_resume): New function.
8772 (arm_linux_new_fork): New function.
8773 (_initialize_arm_linux_nat): Updated.
8775 2014-03-12 Pedro Alves <palves@redhat.com>
8777 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8779 2014-03-12 Tom Tromey <tromey@redhat.com>
8781 * inf-child.c (return_zero): New function.
8782 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8783 * aix-thread.c (aix_thread_inferior_created): New function.
8784 (aix_thread_attach): Remove.
8785 (init_aix_thread_ops): Don't set to_attach.
8786 (_initialize_aix_thread): Register inferior_created observer.
8787 * corelow.c (init_core_ops): Don't set to_attach or
8789 * exec.c (init_exec_ops): Don't set to_attach or
8791 * infcmd.c (run_command_1): Use find_run_target. Make direct
8793 (attach_command): Use find_attach_target. Make direct target
8795 * record-btrace.c (init_record_btrace_ops): Don't set
8797 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8799 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8800 set to_create_inferior.
8801 * target.c (complete_target_initialization): Add assertion.
8802 (target_create_inferior): Remove.
8803 (find_default_attach, find_default_create_inferior): Remove.
8804 (find_attach_target, find_run_target): New functions.
8805 (find_default_is_async_p, find_default_can_async_p)
8806 (target_supports_non_stop, target_attach): Remove.
8807 (init_dummy_target): Don't set to_create_inferior or
8808 to_supports_non_stop.
8809 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8810 TARGET_DEFAULT_FUNC.
8811 <to_create_inferior>: Add comment.
8812 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8813 TARGET_DEFAULT_RETURN.
8814 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8815 (find_attach_target, find_run_target): Declare.
8816 (target_create_inferior): Remove.
8817 (target_has_execution_1): Update comment.
8818 (target_supports_non_stop): Remove.
8819 * target-delegates.c: Rebuild.
8821 2014-03-12 Pedro Alves <palves@redhat.com>
8823 * inf-child.h: Update comment to not mention Unix.
8825 2014-03-12 Pedro Alves <palves@redhat.com>
8827 * inf-child.c: Update top comment to not mention Unix. Add
8828 generic comment describing how this target is meant to be used.
8829 (inf_child_post_attach, inf_child_post_startup_inferior)
8830 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8833 2014-03-12 Pedro Alves <palves@redhat.com>
8835 * nto-procfs.c: Include inf-child.h.
8836 (procfs_ops): Delete global.
8837 (procfs_can_run): Delete method.
8838 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8839 target pointer instead of referencing procfs_ops.
8840 (procfs_prepare_to_store): Delete.
8841 (init_procfs_ops): Delete function.
8842 (procfs_target): New function, based on init_procfs_ops, but
8843 inherit inf_child_target.
8844 (_initialize_procfs): Use procfs_target.
8846 2014-03-12 Pedro Alves <palves@redhat.com>
8848 * windows-nat.c: Include inf-child.h.
8849 (windows_ops): Delete global.
8850 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8852 (init_windows_ops): Delete function.
8853 (windows_target): New function, based on init_windows_ops, but
8854 inherit inf_child_target.
8855 (_initialize_windows_nat): Use windows_target. Install x86
8856 specific target methods here.
8858 2014-03-10 Doug Evans <xdje42@gmail.com>
8860 * guile/guile.c (call_initialize_gdb_module): New function.
8861 (initialize_guile): Replace call to scm_init_guile with call to
8864 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8866 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8867 in call to TYPE_CODE macro.
8869 2014-03-10 Jerome Guitton <guitton@adacore.com>
8871 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8872 Resolve tagged types to full view.
8874 2014-03-10 Hui Zhu <hui@codesourcery.com>
8876 * target.h (target_insert_breakpoint): Remove "hardware" from its
8879 2014-03-07 Doug Evans <dje@google.com>
8881 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8883 2014-03-07 Doug Evans <dje@google.com>
8885 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8886 Remove unused local comp_dir_attr. Assert exactly one of
8887 stub_comp_unit_die, stub_comp_dir is non-NULL.
8889 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8891 * target.h (complete_target_initialization, add_target):
8894 2014-03-07 Pedro Alves <palves@redhat.com>
8896 * go32-nat.c: Include inf-child.h.
8897 (go32_ops): Delete global.
8898 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8900 (go32_create_inferior): Push the passed in target pointer instead
8901 of referencing go32_ops.
8902 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8903 (go32_target): New function, based on init_go32_ops, but inherit
8905 (_initialize_go32_nat): Use go32_target. Move parts of
8908 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8910 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8911 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8912 SYMBOL_VALUE_ADDRESS.
8913 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8915 2014-03-06 Yao Qi <yao@codesourcery.com>
8917 * breakpoint.c (get_tracepoint_by_number): Remove argument
8918 optional_p. All callers updated. Adjust comments. Update
8920 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8922 2014-03-06 Yao Qi <yao@codesourcery.com>
8924 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8925 early if get_number returns zero. Use 'p' instead of 'args'.
8927 2014-03-06 Yao Qi <yao@codesourcery.com>
8929 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8932 2014-03-06 Yao Qi <yao@codesourcery.com>
8934 PR breakpoints/16508
8935 * tracepoint.c (check_trace_running): New function.
8936 (trace_find_command): Move code to check_trace_running and
8937 call check_trace_running.
8938 (trace_find_pc_command): Likewise.
8939 (trace_find_tracepoint_command): Likewise.
8940 (trace_find_line_command): Likewise.
8941 (trace_find_range_command): Likewise.
8942 * tracepoint.h (check_trace_running): Likewise.
8943 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8945 2014-03-06 Yao Qi <yao@codesourcery.com>
8947 * target.h (struct target_ops) <to_traceframe_info>: Use
8948 TARGET_DEFAULT_NORETURN (tcomplain ()).
8949 * target-delegates.c: Regenerated.
8951 2014-03-05 Pedro Alves <palves@redhat.com>
8954 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8955 void. Update comment.
8956 (dcache_xfer_memory): Delete.
8957 (dcache_read_memory_partial): New, based on the read bits of
8959 (dcache_update): Add status parameter. Use ULONGEST for len, and
8960 adjust. Discard cache lines if the reason for the update was
8962 * dcache.h (dcache_xfer_memory): Delete declaration.
8963 (dcache_read_memory_partial): New declaration.
8964 (dcache_update): Update prototype.
8965 * target.c (raw_memory_xfer_partial): Update the dcache here.
8966 (memory_xfer_partial_1): Don't handle dcache writes here.
8968 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8970 * remote-sim.c (gdbsim_load): Add const to prog.
8972 2014-03-03 Tom Tromey <tromey@redhat.com>
8974 * elfread.c (probe_key): Change to bfd_data.
8975 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8976 now per-BFD, not per-objfile.
8977 * stap-probe.c (stap_probe_destroy): Update comment.
8978 (handle_stap_probe): Allocate on the per-BFD obstack.
8980 2014-03-03 Tom Tromey <tromey@redhat.com>
8982 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8983 * breakpoint.c (create_longjmp_master_breakpoint): Use
8985 (add_location_to_breakpoint, bkpt_probe_insert_location)
8986 (bkpt_probe_remove_location): Update.
8987 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8988 * elfread.c (elf_symfile_relocate_probe): Remove.
8989 (elf_probe_fns): Update.
8990 (insert_exception_resume_breakpoint): Change type of "probe"
8991 parameter to bound_probe.
8992 (check_exception_resume): Update.
8993 * objfiles.c (objfile_relocate1): Don't relocate probes.
8994 * probe.c (bound_probe_s): New typedef.
8995 (parse_probes): Use get_probe_address. Set sal's objfile.
8996 (find_probe_by_pc): Return a bound_probe.
8997 (collect_probes): Return a VEC(bound_probe_s).
8998 (compare_probes): Update.
8999 (gen_ui_out_table_header_info): Change type of "probes"
9001 (info_probes_for_ops): Update.
9002 (get_probe_address): New function.
9003 (probe_safe_evaluate_at_pc): Update.
9004 * probe.h (struct probe_ops) <get_probe_address>: New field.
9005 <set_semaphore, clear_semaphore>: Add objfile parameter.
9006 (struct probe) <objfile>: Remove field.
9008 <address>: Update comment.
9009 (struct bound_probe): New.
9010 (find_probe_by_pc): Return a bound_probe.
9011 (get_probe_address): Declare.
9012 * solib-svr4.c (struct probe_and_action) <address>: New field.
9013 (hash_probe_and_action, equal_probe_and_action): Update.
9014 (register_solib_event_probe): Add address parameter.
9015 (solib_event_probe_at): Update.
9016 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9018 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9019 (stap_get_probe_address): New function.
9020 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9021 (compile_probe_arg): Update.
9022 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9024 (handle_stap_probe): Don't relocate the probe.
9025 (stap_relocate): Remove.
9026 (stap_gen_info_probes_table_values): Update.
9027 (stap_probe_ops): Remove stap_relocate.
9028 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9029 (debug_sym_probe_fns): Update.
9030 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9031 * symtab.c (init_sal): Use memset.
9032 * symtab.h (struct symtab_and_line) <objfile>: New field.
9033 * tracepoint.c (start_tracing, stop_tracing): Update.
9035 2014-03-03 Tom Tromey <tromey@redhat.com>
9037 * probe.h (parse_probes, find_probe_by_pc)
9038 (find_probes_in_objfile): Fix comments.
9040 2014-03-02 Doug Evans <xdje42@gmail.com>
9042 * infrun.c (handle_signal_stop): Replace test for
9043 TARGET_WAITKIND_STOPPED with an assert.
9045 2014-03-02 Doug Evans <xdje42@gmail.com>
9047 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9049 2014-03-02 Doug Evans <xdje42@gmail.com>
9051 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9053 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9055 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9057 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9059 * i386obsd-nat.c: Include "obsd-nat.h".
9060 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9062 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9064 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9066 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9068 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9070 * mips64obsd-nat.c: Include "obsd-nath".
9071 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9073 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9075 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9077 * amd64obsd-nat.c: Include "obsd-nat,h.
9078 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9080 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9082 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9084 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9085 (find_overload_match): Update call to find_oload_champ.
9086 (find_oload_champ_namespace_loop): Likewise
9088 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9090 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9092 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9093 * config/sparc/obsd64.mh: New file.
9094 * sparc64obsd-nat.c: New file.
9096 * obsd-nat.h: New file.
9097 * obsd-nat.c: New file.
9098 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9099 (ALLDEPFILES): Add obsd-nat.c.
9101 2014-02-28 Tom Tromey <tromey@redhat.com>
9103 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9104 * cli-out.h (cli_ui_out_impl): Now const.
9105 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9106 * ui-out.c (struct ui_out) <impl>: Now const.
9107 (default_ui_out_impl): Now const.
9108 (ui_out_new): Make 'impl' parameter const.
9109 * ui-out.h (ui_out_new): Update.
9111 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9113 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9115 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9117 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9119 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9121 Additional PR 8882 fix.
9122 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9124 2014-02-27 Pedro Alves <palves@redhat.com>
9126 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9129 2014-02-27 Pedro Alves <palves@redhat.com>
9132 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9133 * nat/linux-waitpid.c: Include string.h.
9134 (status_to_str): Moved here and made extern.
9135 * nat/linux-waitpid.h (status_to_str): New declaration.
9137 2014-02-27 Hui Zhu <hui@codesourcery.com>
9140 * infrun.c (ptid_match): Move ...
9141 * common/ptid.c (ptid_match): ... here.
9142 * inferior.h (ptid_match): Move ...
9143 * common/ptid.h (ptid_match): ... here.
9145 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9147 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9148 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9151 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9153 * obsd-tdep.c (obsd_auxv_parse): New function.
9154 (obsd_init_abi): Set auxv_parse.
9156 * gdbarch.sh (auxv_parse): New.
9157 * gdbarch.h: Regenerated.
9158 * gdbarch.c: Regenerated.
9159 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9161 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9163 * guile/scm-value.c (gdbscm_history_append_x): New function.
9164 (value_functions): Add it.
9166 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9168 * dwarf2read.c (attr_value_as_address): New function.
9169 (dwarf2_find_base_address, read_call_site_scope): Use
9170 attr_value_as_address in place of DW_ADDR.
9171 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9172 the low and high addresses. Slight rework of the handling
9173 of the high pc being a constant form, and limit it to
9174 DWARF verson 4 or higher.
9175 (dwarf2_record_block_ranges): Likewise.
9176 (read_partial_die): Likewise.
9177 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9179 2014-02-26 Tom Tromey <tromey@redhat.com>
9181 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9183 2014-02-26 Tom Tromey <tromey@redhat.com>
9185 * elfread.c (elf_read_minimal_symbols): Return early if
9186 minimal symbols have already been read. Add "ei" parameter.
9187 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9188 * minsyms.c (prim_record_minimal_symbol_full): Update.
9189 * objfiles.h (struct objstats) <n_minsyms>: Move...
9190 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9191 * symmisc.c (print_objfile_statistics): Update.
9193 2014-02-26 Tom Tromey <tromey@redhat.com>
9195 * elfread.c (elf_read_minimal_symbols): New function, from
9197 (elf_symfile_read): Call it.
9199 2014-02-26 Tom Tromey <tromey@redhat.com>
9201 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9202 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9203 (lookup_minimal_symbol_solib_trampoline)
9204 (lookup_minimal_symbol_by_pc_section_1)
9205 (lookup_minimal_symbol_and_objfile): Update.
9206 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9207 Don't allocate a minimal symbol if minsyms have already been read.
9208 (build_minimal_symbol_hash_tables): Update.
9209 (install_minimal_symbols): Do nothing if minsyms already read.
9210 Use the per-BFD obstack.
9211 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9212 * objfiles.c (allocate_objfile): Call
9213 terminate_minimal_symbol_table later.
9214 (have_minimal_symbols): Update.
9215 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9216 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9217 Move from struct objfile.
9218 <minsyms_read>: New field.
9219 (struct objfile) <msymbols, minimal_symbol_count,
9220 msymbol_hash, msymbol_demangled_hash>: Move.
9221 (ALL_OBJFILE_MSYMBOLS): Update.
9222 * symfile.c (read_symbols): Set minsyms_read.
9223 (reread_symbols): Update.
9224 * symmisc.c (dump_objfile, dump_msymbols): Update.
9226 2014-02-26 Tom Tromey <tromey@redhat.com>
9228 * minsyms.c (msymbols_sort): Remove.
9229 * minsyms.h (msymbols_sort): Remove.
9230 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9231 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9232 * elfread.c (elf_symtab_read): Don't add section offsets.
9233 * xcoffread.c (record_minimal_symbol): Don't add section offset
9234 to minimal symbol address.
9235 * somread.c (text_offset, data_offset): Remove.
9236 (som_symtab_read): Don't add section offsets to minimal symbol
9238 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9239 Don't add section offsets to minimal symbols.
9240 * coffread.c (coff_symtab_read): Don't add section offsets
9241 to minimal symbol addresses.
9242 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9243 to minimal symbol addresses.
9244 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9245 section offset to minimal symbol addresses.
9246 * mdebugread.c (parse_partial_symbols): Don't add section
9247 offset to minimal symbol addresses.
9248 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9249 offset to minimal symbol addresses.
9251 2014-02-26 Tom Tromey <tromey@redhat.com>
9253 * ada-lang.c (ada_main_name): Update.
9254 (ada_add_standard_exceptions): Update.
9255 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9256 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9257 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9258 * auxv.c (ld_so_xfer_auxv): Update.
9259 * avr-tdep.c (avr_scan_prologue): Update.
9260 * ax-gdb.c (gen_var_ref): Update.
9261 * blockframe.c (get_pc_function_start)
9262 (find_pc_partial_function_gnu_ifunc): Update.
9263 * breakpoint.c (create_overlay_event_breakpoint)
9264 (create_longjmp_master_breakpoint)
9265 (create_std_terminate_master_breakpoint)
9266 (create_exception_master_breakpoint): Update.
9267 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9268 * c-valprint.c (c_val_print): Update.
9269 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9270 * common/agent.c (agent_look_up_symbols): Update.
9271 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9272 * dwarf2loc.c (call_site_to_target_addr): Update.
9273 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9274 * elfread.c (elf_gnu_ifunc_record_cache)
9275 (elf_gnu_ifunc_resolve_by_got): Update.
9276 * findvar.c (default_read_var_value): Update.
9277 * frame.c (inside_main_func): Update.
9278 * frv-tdep.c (frv_frame_this_id): Update.
9279 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9280 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9282 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9283 (hppa_hpux_find_dummy_bpaddr): Update.
9284 * hppa-tdep.c (hppa_symbol_address): Update.
9285 * infcmd.c (until_next_command): Update.
9286 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9288 * linespec.c (minsym_found, add_minsym): Update.
9289 * linux-nat.c (get_signo): Update.
9290 * linux-thread-db.c (inferior_has_bug): Update.
9291 * m32c-tdep.c (m32c_return_value)
9292 (m32c_m16c_address_to_pointer): Update.
9293 * m32r-tdep.c (m32r_frame_this_id): Update.
9294 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9295 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9296 * maint.c (maintenance_translate_address): Update.
9297 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9298 (frob_address): New function.
9299 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9300 frob_address. Rename parameter to "pc_in".
9301 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9303 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9305 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9306 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9307 * objc-lang.c (find_objc_msgsend): Update.
9308 * objfiles.c (objfile_relocate1): Update.
9309 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9310 * p-valprint.c (pascal_val_print): Update.
9311 * parse.c (write_exp_msymbol): Update.
9312 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9313 (ppc_elfv2_skip_entrypoint): Update.
9314 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9315 * printcmd.c (build_address_symbolic, msym_info)
9316 (address_info): Update.
9317 * proc-service.c (ps_pglobal_lookup): Update.
9318 * psymtab.c (find_pc_sect_psymtab_closer)
9319 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9320 Change msymbol parameter to bound_minimal_symbol.
9321 * ravenscar-thread.c (get_running_thread_id): Update.
9322 * remote.c (remote_check_symbols): Update.
9323 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9325 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9326 * solib-dsbt.c (lm_base): Update.
9327 * solib-frv.c (lm_base, main_got): Update.
9328 * solib-irix.c (locate_base): Update.
9329 * solib-som.c (som_solib_create_inferior_hook)
9330 (link_map_start): Update.
9331 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9332 * solib-svr4.c (elf_locate_base, enable_break): Update.
9333 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9334 (flush_ea_cache): Update.
9335 * stabsread.c (define_symbol, scan_file_globals): Update.
9336 * stack.c (find_frame_funname): Update.
9337 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9338 (debug_qf_find_pc_sect_symtab): Update.
9339 * symfile.c (simple_read_overlay_table)
9340 (simple_overlay_update): Update.
9341 * symfile.h (struct quick_symbol_functions)
9342 <find_pc_sect_symtab>: Change type of msymbol to
9343 bound_minimal_symbol.
9344 * symmisc.c (dump_msymbols): Update.
9345 * symtab.c (find_pc_sect_symtab_via_partial)
9346 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9347 (search_symbols, print_msymbol_info): Update.
9348 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9349 (MSYMBOL_VALUE_ADDRESS): Redefine.
9350 (BMSYMBOL_VALUE_ADDRESS): New macro.
9351 * tracepoint.c (scope_info): Update.
9352 * tui/tui-disasm.c (tui_find_disassembly_address)
9353 (tui_get_begin_asm_address): Update.
9354 * valops.c (find_function_in_inferior): Update.
9355 * value.c (value_static_field, value_fn_field): Update.
9357 2014-02-26 Tom Tromey <tromey@redhat.com>
9359 * ada-lang.c (ada_update_initial_language): Update.
9360 (ada_main_name, ada_has_this_exception_support): Update.
9361 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9362 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9363 * arm-tdep.c (arm_skip_stub): Update.
9364 * auxv.c (ld_so_xfer_auxv): Update.
9365 * avr-tdep.c (avr_scan_prologue): Update.
9366 * ax-gdb.c (gen_var_ref): Update.
9367 * breakpoint.c (struct breakpoint_objfile_data)
9368 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9369 type to bound_minimal_symbol.
9370 (create_overlay_event_breakpoint)
9371 (create_longjmp_master_breakpoint)
9372 (create_std_terminate_master_breakpoint)
9373 (create_exception_master_breakpoint): Update.
9374 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9375 * c-exp.y (classify_name): Update.
9376 * coffread.c (coff_symfile_read): Update.
9377 * common/agent.c (agent_look_up_symbols): Update.
9378 * d-lang.c (d_main_name): Update.
9379 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9380 * dec-thread.c (enable_dec_thread): Update.
9381 * dwarf2loc.c (call_site_to_target_addr): Update.
9382 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9383 * eval.c (evaluate_subexp_standard): Update.
9384 * findvar.c (struct minsym_lookup_data) <result>: Change type
9385 to bound_minimal_symbol.
9387 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9388 * frame.c (inside_main_func): Update.
9389 * frv-tdep.c (frv_frame_this_id): Update.
9390 * gcore.c (call_target_sbrk): Update.
9391 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9392 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9394 * go-lang.c (go_main_name): Update.
9395 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9396 (hppa_hpux_find_import_stub_for_addr): Update.
9397 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9398 Update. Change return type.
9399 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9401 * jit.c (jit_breakpoint_re_set_internal): Update.
9402 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9404 * linux-nat.c (get_signo): Update.
9405 * linux-thread-db.c (inferior_has_bug): Update
9406 * m32c-tdep.c (m32c_return_value)
9407 (m32c_m16c_address_to_pointer): Update.
9408 * m32r-tdep.c (m32r_frame_this_id): Update.
9409 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9410 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9411 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9412 lookup_minimal_symbol. Change return type.
9413 (lookup_minimal_symbol): Remove.
9414 (lookup_bound_minimal_symbol): Update.
9415 (lookup_minimal_symbol_text): Change return type.
9416 (lookup_minimal_symbol_solib_trampoline): Change return type.
9417 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9418 (lookup_minimal_symbol_solib_trampoline): Change return type.
9419 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9420 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9421 (value_nsstring, find_imps): Update.
9422 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9423 * p-lang.c (pascal_main_name): Update.
9424 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9425 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9426 * proc-service.c (ps_pglobal_lookup): Update.
9427 * ravenscar-thread.c (get_running_thread_msymbol): Change
9429 (has_ravenscar_runtime, get_running_thread_id): Update.
9430 * remote.c (remote_check_symbols): Update.
9431 * sol-thread.c (ps_pglobal_lookup): Update.
9432 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9433 * solib-dsbt.c (lm_base): Update.
9434 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9436 * solib-irix.c (locate_base): Update.
9437 * solib-som.c (som_solib_create_inferior_hook)
9438 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9440 * solib-spu.c (spu_enable_break): Update.
9441 * solib-svr4.c (elf_locate_base, enable_break): Update.
9442 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9443 (flush_ea_cache): Update.
9444 * stabsread.c (define_symbol): Update.
9445 * symfile.c (simple_read_overlay_table): Update.
9446 * symtab.c (find_pc_sect_line): Update.
9447 * tracepoint.c (scope_info): Update.
9448 * tui-disasm.c (tui_get_begin_asm_address): Update.
9449 * value.c (value_static_field): Update.
9451 2014-02-26 Tom Tromey <tromey@redhat.com>
9453 * minsyms.c (prim_record_minimal_symbol_full): Use
9454 SET_MSYMBOL_VALUE_ADDRESS.
9455 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9456 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9457 SET_MSYMBOL_VALUE_ADDRESS.
9458 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9459 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9461 2014-02-26 Tom Tromey <tromey@redhat.com>
9463 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9464 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9465 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9466 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9467 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9468 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9469 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9470 * ada-lang.c (ada_main_name): Update.
9471 (ada_lookup_simple_minsym): Update.
9472 (ada_make_symbol_completion_list): Update.
9473 (ada_add_standard_exceptions): Update.
9474 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9475 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9476 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9477 * arm-tdep.c (skip_prologue_function): Update.
9478 (arm_skip_stack_protector, arm_skip_stub): Update.
9479 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9480 (arm_wince_skip_main_prologue): Update.
9481 * auxv.c (ld_so_xfer_auxv): Update.
9482 * avr-tdep.c (avr_scan_prologue): Update.
9483 * ax-gdb.c (gen_var_ref): Update.
9484 * block.c (call_site_for_pc): Update.
9485 * blockframe.c (get_pc_function_start): Update.
9486 (find_pc_partial_function_gnu_ifunc): Update.
9487 * breakpoint.c (create_overlay_event_breakpoint): Update.
9488 (create_longjmp_master_breakpoint): Update.
9489 (create_std_terminate_master_breakpoint): Update.
9490 (create_exception_master_breakpoint): Update.
9491 (resolve_sal_pc): Update.
9492 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9493 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9495 * c-valprint.c (c_val_print): Update.
9496 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9497 * coffread.c (coff_symfile_read): Update.
9498 * common/agent.c (agent_look_up_symbols): Update.
9499 * dbxread.c (find_stab_function_addr): Update.
9500 (end_psymtab): Update.
9501 * dwarf2loc.c (call_site_to_target_addr): Update.
9502 (func_verify_no_selftailcall): Update.
9503 (tailcall_dump): Update.
9504 (call_site_find_chain_1): Update.
9505 (dwarf_expr_reg_to_entry_parameter): Update.
9506 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9507 (elf_gnu_ifunc_resolve_by_got): Update.
9508 * f-valprint.c (info_common_command): Update.
9509 * findvar.c (read_var_value): Update.
9510 * frame.c (get_prev_frame_1): Update.
9511 (inside_main_func): Update.
9512 * frv-tdep.c (frv_skip_main_prologue): Update.
9513 (frv_frame_this_id): Update.
9514 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9515 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9516 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9517 (gnuv3_skip_trampoline): Update.
9518 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9519 (hppa64_hpux_in_solib_call_trampoline): Update.
9520 (hppa_hpux_skip_trampoline_code): Update.
9521 (hppa64_hpux_search_dummy_call_sequence): Update.
9522 (hppa_hpux_find_import_stub_for_addr): Update.
9523 (hppa_hpux_find_dummy_bpaddr): Update.
9524 * hppa-tdep.c (hppa_symbol_address)
9525 (hppa_lookup_stub_minimal_symbol): Update.
9526 * i386-tdep.c (i386_skip_main_prologue): Update.
9527 (i386_pe_skip_trampoline_code): Update.
9528 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9529 * infcall.c (get_function_name): Update.
9530 * infcmd.c (until_next_command): Update.
9531 * jit.c (jit_breakpoint_re_set_internal): Update.
9532 (jit_inferior_init): Update.
9533 * linespec.c (minsym_found): Update.
9534 (add_minsym): Update.
9535 * linux-fork.c (info_checkpoints_command): Update.
9536 * linux-nat.c (get_signo): Update.
9537 * linux-thread-db.c (inferior_has_bug): Update.
9538 * m32c-tdep.c (m32c_return_value): Update.
9539 (m32c_m16c_address_to_pointer): Update.
9540 (m32c_m16c_pointer_to_address): Update.
9541 * m32r-tdep.c (m32r_frame_this_id): Update.
9542 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9543 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9544 * maint.c (maintenance_translate_address): Update.
9545 * minsyms.c (add_minsym_to_hash_table): Update.
9546 (add_minsym_to_demangled_hash_table): Update.
9547 (msymbol_objfile): Update.
9548 (lookup_minimal_symbol): Update.
9549 (iterate_over_minimal_symbols): Update.
9550 (lookup_minimal_symbol_text): Update.
9551 (lookup_minimal_symbol_by_pc_name): Update.
9552 (lookup_minimal_symbol_solib_trampoline): Update.
9553 (lookup_minimal_symbol_by_pc_section_1): Update.
9554 (lookup_minimal_symbol_and_objfile): Update.
9555 (prim_record_minimal_symbol_full): Update.
9556 (compare_minimal_symbols): Update.
9557 (compact_minimal_symbols): Update.
9558 (build_minimal_symbol_hash_tables): Update.
9559 (install_minimal_symbols): Update.
9560 (terminate_minimal_symbol_table): Update.
9561 (find_solib_trampoline_target): Update.
9562 (minimal_symbol_upper_bound): Update.
9563 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9564 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9565 (mips_skip_pic_trampoline_code): Update.
9566 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9567 * objc-lang.c (selectors_info): Update.
9568 (classes_info): Update.
9569 (find_methods): Update.
9570 (find_imps): Update.
9571 (find_objc_msgsend): Update.
9572 * objfiles.c (objfile_relocate1): Update.
9573 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9574 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9575 * p-valprint.c (pascal_val_print): Update.
9576 * parse.c (write_exp_msymbol): Update.
9577 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9578 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9579 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9580 * printcmd.c (build_address_symbolic): Update.
9582 (address_info): Update.
9583 * proc-service.c (ps_pglobal_lookup): Update.
9584 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9585 (find_pc_sect_psymtab): Update.
9586 * python/py-framefilter.c (py_print_frame): Update.
9587 * ravenscar-thread.c (get_running_thread_id): Update.
9588 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9590 * remote.c (remote_check_symbols): Update.
9591 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9592 (rs6000_skip_trampoline_code): Update.
9593 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9594 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9595 * solib-dsbt.c (lm_base): Update.
9596 * solib-frv.c (lm_base): Update.
9598 * solib-irix.c (locate_base): Update.
9599 * solib-som.c (som_solib_create_inferior_hook): Update.
9600 (som_solib_desire_dynamic_linker_symbols): Update.
9601 (link_map_start): Update.
9602 * solib-spu.c (spu_enable_break): Update.
9603 (ocl_enable_break): Update.
9604 * solib-svr4.c (elf_locate_base): Update.
9605 (enable_break): Update.
9606 * spu-tdep.c (spu_get_overlay_table): Update.
9607 (spu_catch_start): Update.
9608 (flush_ea_cache): Update.
9609 * stabsread.c (define_symbol): Update.
9610 (scan_file_globals): Update.
9611 * stack.c (find_frame_funname): Update.
9612 (frame_info): Update.
9613 * symfile.c (simple_read_overlay_table): Update.
9614 (simple_overlay_update): Update.
9615 * symmisc.c (dump_msymbols): Update.
9616 * symtab.c (fixup_section): Update.
9617 (find_pc_sect_line): Update.
9618 (skip_prologue_sal): Update.
9619 (search_symbols): Update.
9620 (print_msymbol_info): Update.
9621 (rbreak_command): Update.
9622 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9623 (completion_list_objc_symbol): Update.
9624 (default_make_symbol_completion_list_break_on): Update.
9625 * tracepoint.c (scope_info): Update.
9626 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9627 (tui_get_begin_asm_address): Update.
9628 * valops.c (find_function_in_inferior): Update.
9629 * value.c (value_static_field): Update.
9630 (value_fn_field): Update.
9632 2014-02-26 Tom Tromey <tromey@redhat.com>
9634 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9635 bound minimal symbols. Move code that knows about minsym
9637 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9639 * minsyms.h (minimal_symbol_upper_bound): Declare.
9640 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9641 minimal_symbol_upper_bound.
9643 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9645 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9646 Use the type's name if its basic type does not have a tag.
9648 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9650 * dwarf2read.c (read_subrange_type): Add comment.
9652 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9654 * dwarf2read.c (update_enumeration_type_from_children): New
9655 function, mostly extracted from process_structure_scope.
9656 (read_enumeration_type): Call update_enumeration_type_from_children.
9657 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9658 and flag_flag_enum fields.
9660 2014-02-26 Pedro Alves <palves@redhat.com>
9662 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9663 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9664 to_xfer_partial method.
9666 2014-02-26 Pedro Alves <palves@redhat.com>
9668 * target.c (complete_target_initialization): Don't install
9669 default_xfer_partial as to_xfer_partial hook.
9671 (update_current_target): Don't INHERIT nor de_fault
9672 deprecated_xfer_memory. Delete de_fault macro.
9673 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9674 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9675 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9678 2014-02-26 Pedro Alves <palves@redhat.com>
9680 * go32-nat.c (my_write_child): New function.
9681 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9682 (go32_xfer_partial): New function.
9683 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9684 Instead install a to_xfer_partial hook.
9686 2014-02-26 Pedro Alves <palves@redhat.com>
9688 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9689 to_xfer_partial helper. Rewrite.
9690 (procfs_xfer_partial): New function.
9691 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9692 Install a to_xfer_partial hook.
9694 2014-02-26 Pedro Alves <palves@redhat.com>
9696 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9697 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9698 (m32r_xfer_partial): New function.
9699 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9700 Install a to_xfer_partial hook.
9702 2014-02-26 Pedro Alves <palves@redhat.com>
9704 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9706 (mips_xfer_partial): New function.
9707 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9708 hook. Install a to_xfer_partial hook.
9710 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9712 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9713 * gdbtypes.c (create_array_type_with_stride): New function,
9714 renaming create_array_type, but with an added parameter
9715 called "bit_stride".
9716 (create_array_type): Re-implement using
9717 create_array_type_with_stride.
9718 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9719 and DW_AT_bit_stride attributes.
9721 2014-02-26 Pedro Alves <palves@redhat.com>
9723 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9724 task-specific breakpoints.
9726 2014-02-25 Pedro Alves <palves@redhat.com>
9728 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9729 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9731 2014-02-25 Stan Shebs <stan@codesourcery.com>
9733 * defs.h: Annotate comments for Doxygen.
9735 2014-02-25 Tom Tromey <tromey@redhat.com>
9737 * target.h (target_ignore): Don't declare.
9738 * target.c (target_ignore): Remove.
9740 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9743 * auto-load.c (auto_load_objfile_script_1): Change filename to
9746 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9748 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9749 documentation. Adjust prototype to match the target_ops
9750 to_xfer_partial method. Adjust implementation accordingly.
9752 2014-02-25 Hui Zhu <hui@codesourcery.com>
9754 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9757 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9759 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9760 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9761 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9762 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9763 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9764 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9765 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9766 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9768 (rl78_register_type): Use a data pointer type for SP and
9769 new pseudo registers mentioned above. Use a 16 bit integer
9770 type for all other register pairs.
9771 (rl78_register_name, rl78_g10_register_name): Update for
9772 new pseudo registers.
9773 (rl78_pseudo_register_read): Likewise.
9774 (rl78_pseudo_register_write): Likewise.
9775 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9776 to the newly added pseudo registers.
9778 2014-02-24 Doug Evans <dje@google.com>
9780 * value.c (record_latest_value): Fix comment.
9781 * printcmd.c (print_command_1): Remove code to handle -1 return from
9782 record_latest_value.
9784 2014-02-24 Pedro Alves <palves@redhat.com>
9786 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9787 deprecated_xfer_memory hook.
9788 (procfs_xfer_partial): Call procfs_xfer_memory instead
9789 of the deprecated_xfer_memory target hook.
9790 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9793 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9795 * windows-nat.c (windows_xfer_shared_libraries): Return
9796 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9797 requested object is TARGET_OBJECT_LIBRARIES.
9799 2014-02-24 Yao Qi <yao@codesourcery.com>
9801 * target.h (enum target_xfer_status)
9802 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9803 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9805 * corefile.c (memory_error_message): User updated.
9806 * exec.c (section_table_read_available_memory): Likewise.
9807 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9808 * target.c (target_xfer_status_to_string): Likewise.
9809 (raw_memory_xfer_partial): Likewise.
9810 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9811 * valops.c (read_value_memory): Likewise.
9812 * exec.h: Update comments.
9814 2014-02-24 Yao Qi <yao@codesourcery.com>
9816 * target.c (target_xfer_status_to_string): Rename argument err
9818 * target.h (target_xfer_status_to_string): Update declaration.
9819 Replace target_xfer_error_to_string with
9820 target_xfer_status_to_string in comment.
9822 2014-02-24 Yao Qi <yao@codesourcery.com>
9824 * mips-linux-nat.c (super_close): Update its type.
9825 (mips_linux_close): Pass 'self' to super_close.
9827 2014-02-24 Yao Qi <yao@codesourcery.com>
9829 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9830 * corefile.c (read_memory): Adjusted.
9831 * target.c (target_write_with_progress): Adjusted.
9833 2014-02-23 Yao Qi <yao@codesourcery.com>
9837 2013-10-25 Yao Qi <yao@codesourcery.com>
9839 * remote.c (remote_traceframe_info): Return early if
9840 traceframe is not selected.
9842 2013-07-19 Yao Qi <yao@codesourcery.com>
9844 * target.c (update_current_target): Change the default action
9845 of 'to_traceframe_info' from tcomplain to return_zero.
9846 * target.h (struct target_ops) <to_traceframe_info>: Add more
9849 2014-02-23 Yao Qi <yao@codesourcery.com>
9851 * valops.c (read_value_memory): Rewrite it. Call
9852 target_xfer_partial in a loop.
9853 * exec.h (section_table_available_memory): Remove declaration.
9854 Move comments to ...
9855 * exec.c (section_table_available_memory): ... here. Make it
9858 2014-02-23 Yao Qi <yao@codesourcery.com>
9860 * exec.c (section_table_read_available_memory): New function.
9861 * exec.h (section_table_read_available_memory): Declare.
9862 * ctf.c (ctf_xfer_partial): Call
9863 section_table_read_available_memory.
9864 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9866 2014-02-23 Yao Qi <yao@codesourcery.com>
9868 * ctf.c (ctf_xfer_partial): Move code to ...
9869 * exec.c (exec_read_partial_read_only): ... it. New function.
9870 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9871 * tracefile.c: Include "exec.h".
9872 * exec.h (exec_read_partial_read_only): Declare.
9874 2014-02-23 Yao Qi <yao@codesourcery.com>
9876 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9877 (tfile_has_memory): Remove.
9878 (init_tfile_ops): Don't set fields to_has_all_memory and
9879 to_has_memory of tfile_ops.
9880 * tracefile.c (tracefile_has_all_memory): New function.
9881 (tracefile_has_memory): New function.
9882 (init_tracefile_ops): Initialize fields to_has_all_memory and
9883 to_has_memory of 'ops'.
9885 2014-02-23 Yao Qi <yao@codesourcery.com>
9887 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9888 (ctf_thread_alive, ctf_get_trace_status): Remove.
9889 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9891 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9892 (tfile_has_stack, tfile_has_registers): Remove.
9893 (tfile_thread_alive): Remove.
9894 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9896 * tracefile.c (tracefile_has_stack): New function.
9897 (tracefile_has_registers): New function.
9898 (tracefile_thread_alive): New function.
9899 (tracefile_get_trace_status): New function.
9900 (init_tracefile_ops): New function.
9901 * tracefile.h (init_tracefile_ops): Declare.
9903 2014-02-23 Yao Qi <yao@codesourcery.com>
9905 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9906 (O_LARGEFILE): Likewise.
9907 (tfile_ops): Likewise.
9908 (TRACE_HEADER_SIZE): Likewise.
9909 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9910 (cur_data_size): Likewise.
9911 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9912 (tfile_close, tfile_files_info): Likewise.
9913 (tfile_get_trace_status): Likewise.
9914 (tfile_get_tracepoint_status): Likewise.
9915 (tfile_get_traceframe_address): Likewise.
9916 (tfile_trace_find, match_blocktype): Likewise.
9917 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9918 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9919 (tfile_get_trace_state_variable_value): Likewise.
9920 (tfile_has_all_memory, tfile_has_memory): Likewise.
9921 (tfile_has_stack, tfile_has_registers): Likewise.
9922 (tfile_thread_alive, build_traceframe_info): Likewise.
9923 (tfile_traceframe_info, init_tfile_ops): Likewise.
9924 (_initialize_tracepoint): Don't call init_tfile_ops
9925 and add_target_with_completer.
9926 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9927 exec.h, completer.h and filenames.h.
9928 (_initialize_tracefile_tfile): New function.
9930 2014-02-23 Yao Qi <yao@codesourcery.com>
9932 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9934 (HFILES_NO_SRCDIR): Add tracefile.h.
9935 * ctf.c: Include "tracefile.h".
9936 * tracefile.h: New file.
9937 * tracefile.c: New file
9938 * tracefile-tfile.c: New file.
9939 * tracepoint.c: Include "tracefile.h".
9940 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9941 (stop_reason_names): Add const.
9942 (trace_file_writer_xfree): Move it to tracefile.c.
9943 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9944 (trace_save_ctf): Likewise.
9945 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9946 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9947 (tfile_write_header, tfile_write_regblock_type): Likewise.
9948 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9949 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9950 (tfile_write_raw_data, tfile_end): Likewise.
9951 (tfile_trace_file_writer_new): Likewise.
9952 (free_uploaded_tp): Make it extern.
9953 (free_uploaded_tsv): Make it extern.
9954 (_initialize_tracepoint): Move code to register command 'tsave'
9956 * tracepoint.h (stop_reason_names): Declare.
9957 (struct trace_frame_write_ops): Move it to tracefile.h.
9958 (struct trace_file_write_ops): Likewise.
9959 (struct trace_file_writer): Likewise.
9960 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9962 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9965 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9967 (get_cores_used_by_process): New parameter num_cores, use it.
9968 (linux_xfer_osdata_processes): Pass num_cores to it.
9969 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9972 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9974 * target.c (memory_xfer_partial): Fix length arg in call to
9975 breakpoint_xfer_memory.
9977 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9980 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9981 number comes after the + or - signs. Adjust length of register
9982 name to be extracted.
9984 2014-02-20 Tom Tromey <tromey@redhat.com>
9986 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9987 (ada_varobj_ops): Mark "extern".
9989 2014-02-20 Tom Tromey <tromey@redhat.com>
9991 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9993 2014-02-20 Doug Evans <xdje42@gmail.com>
9995 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9996 All callers updated.
9997 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9998 All callers updated.
9999 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10000 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10002 2014-02-20 lin zuojian <manjian2006@gmail.com>
10003 Joel Brobecker <brobecker@adacore.com>
10004 Doug Evans <xdje42@gmail.com>
10007 * dwarf2read.c (struct die_info): New member in_process.
10008 (reset_die_in_process): New function.
10009 (process_die): Set it at the start, reset when returning.
10010 (inherit_abstract_dies): Only call process_die if origin_child_die
10011 not already being processed.
10013 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10015 * windows-nat.c (handle_unload_dll): Add function documentation.
10016 (do_initial_windows_stuff): Add comment explaining why we wait
10017 until after inferior initialization has finished before
10018 processing all DLLs.
10020 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10022 * windows-nat.c (get_module_name): Delete.
10023 (windows_get_exec_module_filename): New function, mostly
10024 inspired from get_module_name.
10025 (windows_pid_to_exec_file): Replace call to get_module_name
10026 by call to windows_get_exec_module_filename.
10028 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10030 * windows-nat.c (handle_load_dll): Rewrite this function's
10031 introductory comment. Remove code using get_module_name
10032 to get the DLL's name.
10034 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10036 * windows-nat.c (get_windows_debug_event): Ignore
10037 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10038 if windows_initialization_done == 0.
10039 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10040 Adjust implementation to always load all DLLs.
10041 (do_initial_windows_stuff): Replace call to
10042 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10044 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10046 * windows-nat.c (_initialize_windows_nat): Deprecate the
10047 "dll-symbols" command. Turn the "add-shared-symbol-files"
10048 and "assf" aliases into commands, and deprecate them as well.
10049 * NEWS: Add entry explaining that "dll-symbols" and its two
10050 aliases are now deprecated.
10052 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10054 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10055 new-line in debug string. Remove trailing spaces.
10057 2014-02-19 Stan Shebs <stan@codesourcery.com>
10059 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10061 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10063 * NEWS: Add entry for the new feature
10064 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10067 2014-02-19 Stan Shebs <stan@codesourcery.com>
10069 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10071 2014-02-19 Pedro Alves <palves@redhat.com>
10073 * common/ptid.h (struct ptid): Mention that process_stratum
10074 targets should prefer ptid.lwp.
10076 2014-02-19 Pedro Alves <palves@redhat.com>
10078 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10079 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10080 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10081 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10082 store remote thread ids rather than ptid.tid.
10083 (_initialize_remote): Adjust.
10085 2014-02-19 Tom Tromey <tromey@redhat.com>
10087 * target.c (target_get_unwinder): Rewrite.
10088 (target_get_tailcall_unwinder): Rewrite.
10089 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10090 (record_btrace_to_get_tailcall_unwinder): New function.
10091 (init_record_btrace_ops): Update.
10092 * target.h (struct target_ops) <to_get_unwinder,
10093 to_get_tailcall_unwinder>: Now function pointers. Use
10094 TARGET_DEFAULT_RETURN.
10096 2014-02-19 Tom Tromey <tromey@redhat.com>
10098 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10100 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10106 * target-delegates.c: Rebuild.
10107 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10108 TARGET_DEFAULT_FUNC.
10109 * target.c (default_target_decr_pc_after_break): Rename from
10110 forward_target_decr_pc_after_break. Simplify.
10111 (target_decr_pc_after_break): Rely on delegation.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * target.c (update_current_target): Do not INHERIT to_doc or
10116 to_magic. Do not de_fault to_open or to_close.
10118 2014-02-19 Tom Tromey <tromey@redhat.com>
10120 * gcore.h (objfile_find_memory_regions): Declare.
10121 * gcore.c (objfile_find_memory_regions): No longer static. Add
10123 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10124 * exec.c: Include gcore.h.
10125 (exec_set_find_memory_regions): Remove.
10126 (exec_find_memory_regions): Remove.
10127 (exec_do_find_memory_regions): Remove.
10128 (init_exec_ops): Update.
10129 * defs.h (exec_set_find_memory_regions): Remove.
10131 2014-02-19 Tom Tromey <tromey@redhat.com>
10133 * target-delegates.c: Rebuild.
10134 * target.h (struct target_ops) <to_extra_thread_info,
10135 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10136 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10137 not 0, in TARGET_DEFAULT_RETURN.
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10141 * target.c (complete_target_initialization): Remove casts. Use
10142 return_zero_has_execution.
10143 (return_zero): Add "ignore" argument.
10144 (return_zero_has_execution): New function.
10145 (init_dummy_target): Remove casts. Use
10146 return_zero_has_execution.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * target.c (update_current_target): Update comments. Do not
10151 INHERIT to_stratum.
10153 2014-02-19 Tom Tromey <tromey@redhat.com>
10155 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10157 * corelow.c (core_read_description): Delegate when needed.
10158 * remote.c (remote_read_description): Delegate when needed.
10159 * target-delegates.c: Rebuild.
10160 * target.c (target_read_description): Rewrite.
10161 * target.h (struct target_ops) <to_read_description>: Update
10162 comment. Use TARGET_DEFAULT_RETURN.
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10166 * target-delegates.c: Rebuild.
10167 * target.c (update_current_target): Don't inherit or default
10169 (find_default_run_target): Check against delegate_can_run.
10170 * target.h (struct target_ops) <to_can_run>: Use
10171 TARGET_DEFAULT_RETURN.
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target-delegates.c: Rebuild.
10176 * target.c (target_disconnect): Unconditionally delegate.
10177 * target.h (struct target_ops) <to_disconnect>: Use
10178 TARGET_DEFAULT_NORETURN.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * record.c (record_stop): Unconditionally delegate.
10183 * target-delegates.c: Rebuild.
10184 * target.c (target_stop_recording): Unconditionally delegate.
10185 * target.h (struct target_ops) <to_stop_recording>: Use
10186 TARGET_DEFAULT_IGNORE.
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10190 * target-delegates.c: Rebuild.
10191 * target.c (target_enable_btrace): Unconditionally delegate.
10192 * target.h (struct target_ops) <to_enable_btrace>: Use
10193 TARGET_DEFAULT_NORETURN.
10195 2014-02-19 Tom Tromey <tromey@redhat.com>
10197 * target-delegates.c: Rebuild.
10198 * target.c (target_read_btrace): Unconditionally delegate.
10199 * target.h (struct target_ops) <to_read_btrace>: Use
10200 TARGET_DEFAULT_NORETURN.
10202 2014-02-19 Tom Tromey <tromey@redhat.com>
10204 * target-delegates.c: Rebuild.
10205 * target.c (target_teardown_btrace): Unconditionally delegate.
10206 * target.h (struct target_ops) <to_teardown_btrace>: Use
10207 TARGET_DEFAULT_NORETURN.
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10211 * target-delegates.c: Rebuild.
10212 * target.c (target_disable_btrace): Unconditionally delegate.
10213 * target.h (struct target_ops) <to_disable_btrace>: Use
10214 TARGET_DEFAULT_NORETURN.
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10218 * target-delegates.c: Rebuild.
10219 * target.c (default_search_memory): New function.
10220 (simple_search_memory): Update comment.
10221 (target_search_memory): Unconditionally delegate.
10222 * target.h (struct target_ops) <to_search_memory>: Use
10223 TARGET_DEFAULT_FUNC.
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10227 * auxv.c (default_auxv_parse): No longer static.
10228 (target_auxv_parse): Unconditionally delegate.
10229 * auxv.h (default_auxv_parse): Declare.
10230 * target-delegates.c: Rebuild.
10231 * target.c: Include auxv.h.
10232 * target.h (struct target_ops) <to_auxv_parse>: Use
10233 TARGET_DEFAULT_FUNC.
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target-delegates.c: Rebuild.
10238 * target.c (target_memory_map): Unconditionally delegate.
10239 * target.h (struct target_ops) <to_memory_map>: Use
10240 TARGET_DEFAULT_RETURN.
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10244 * target-delegates.c: Rebuild.
10245 * target.c (target_thread_alive): Unconditionally delegate.
10246 * target.h (struct target_ops) <to_thread_alive>: Use
10247 TARGET_DEFAULT_RETURN.
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target-delegates.c: Rebuild.
10252 * target.c (target_save_record): Unconditionally delegate.
10253 * target.h (struct target_ops) <to_save_record>: Use
10254 TARGET_DEFAULT_NORETURN.
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10258 * target-delegates.c: Rebuild.
10259 * target.c (target_delete_record): Unconditionally delegate.
10260 * target.h (struct target_ops) <to_delete_record>: Use
10261 TARGET_DEFAULT_NORETURN.
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10265 * target-delegates.c: Rebuild.
10266 * target.c (target_record_is_replaying): Unconditionally
10268 * target.h (struct target_ops) <to_record_is_replaying>: Use
10269 TARGET_DEFAULT_RETURN.
10271 2014-02-19 Tom Tromey <tromey@redhat.com>
10273 * target-delegates.c: Rebuild.
10274 * target.c (target_goto_record_begin): Unconditionally delegate.
10275 * target.h (struct target_ops) <to_goto_record_begin>: Use
10276 TARGET_DEFAULT_NORETURN.
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10280 * target-delegates.c: Rebuild.
10281 * target.c (target_goto_record_end): Unconditionally delegate.
10282 * target.h (struct target_ops) <to_goto_record_end>: Use
10283 TARGET_DEFAULT_NORETURN.
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target-delegates.c: Rebuild.
10288 * target.c (target_goto_record): Unconditionally delegate.
10289 * target.h (struct target_ops) <to_goto_record>: Use
10290 TARGET_DEFAULT_NORETURN.
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10294 * target-delegates.c: Rebuild.
10295 * target.c (target_insn_history): Unconditionally delegate.
10296 * target.h (struct target_ops) <to_insn_history>: Use
10297 TARGET_DEFAULT_NORETURN.
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10301 * target-delegates.c: Rebuild.
10302 * target.c (target_insn_history_from): Unconditionally delegate.
10303 * target.h (struct target_ops) <to_insn_history_from>: Use
10304 TARGET_DEFAULT_NORETURN.
10306 2014-02-19 Tom Tromey <tromey@redhat.com>
10308 * target-delegates.c: Rebuild.
10309 * target.c (target_insn_history_range): Unconditionally delegate.
10310 * target.h (struct target_ops) <to_insn_history_range>: Use
10311 TARGET_DEFAULT_NORETURN.
10313 2014-02-19 Tom Tromey <tromey@redhat.com>
10315 * target-delegates.c: Rebuild.
10316 * target.c (target_call_history): Unconditionally delegate.
10317 * target.h (struct target_ops) <to_call_history>: Use
10318 TARGET_DEFAULT_NORETURN.
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10322 * target-delegates.c: Rebuild.
10323 * target.c (target_call_history_from): Unconditionally delegate.
10324 * target.h (struct target_ops) <to_call_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_call_history_range): Unconditionally delegate.
10331 * target.h (struct target_ops) <to_call_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_verify_memory): Unconditionally delegate.
10338 * target.h (struct target_ops) <to_verify_memory>: Use
10339 TARGET_DEFAULT_NORETURN.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (target_core_of_thread): Unconditionally delegate.
10345 * target.h (struct target_ops) <to_core_of_thread>: Use
10346 TARGET_DEFAULT_RETURN.
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * target-delegates.c: Rebuild.
10351 * target.c (target_flash_done): Unconditionally delegate.
10352 * target.h (struct target_ops) <to_flash_done>: Use
10353 TARGET_DEFAULT_NORETURN.
10355 2014-02-19 Tom Tromey <tromey@redhat.com>
10357 * target-delegates.c: Rebuild.
10358 * target.c (target_flash_erase): Unconditionally delegate.
10359 * target.h (struct target_ops) <to_flash_erase>: Use
10360 TARGET_DEFAULT_NORETURN.
10362 2014-02-19 Tom Tromey <tromey@redhat.com>
10364 * target-delegates.c: Rebuild.
10365 * target.c (target_get_section_table): Unconditionally delegate.
10366 * target.h (struct target_ops) <to_get_section_table>: Use
10367 TARGET_DEFAULT_RETURN.
10369 2014-02-19 Tom Tromey <tromey@redhat.com>
10371 * target-delegates.c: Rebuild.
10372 * target.c (target_pid_to_str): Unconditionally delegate.
10373 (init_dummy_target): Don't initialize to_pid_to_str.
10374 (default_pid_to_str): Rename from dummy_pid_to_str.
10375 * target.h (struct target_ops) <to_pid_to_str>: Use
10376 TARGET_DEFAULT_FUNC.
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10380 * target-delegates.c: Rebuild.
10381 * target.c (target_find_new_threads): Unconditionally delegate.
10382 * target.h (struct target_ops) <to_find_new_threads>: Use
10383 TARGET_DEFAULT_RETURN.
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10387 * target-delegates.c: Rebuild.
10388 * target.c (target_program_signals): Unconditionally delegate.
10389 * target.h (struct target_ops) <to_program_signals>: Use
10390 TARGET_DEFAULT_IGNORE.
10392 2014-02-19 Tom Tromey <tromey@redhat.com>
10394 * target-delegates.c: Rebuild.
10395 * target.c (target_pass_signals): Unconditionally delegate.
10396 * target.h (struct target_ops) <to_pass_signals>: Use
10397 TARGET_DEFAULT_IGNORE.
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10401 * target-delegates.c: Rebuild.
10402 * target.c (default_mourn_inferior): New function.
10403 (target_mourn_inferior): Unconditionally delegate.
10404 * target.h (struct target_ops) <to_mourn_inferior>: Use
10405 TARGET_DEFAULT_FUNC.
10407 2014-02-19 Tom Tromey <tromey@redhat.com>
10409 * target-delegates.c: Rebuild.
10410 * target.c (default_follow_fork): New function.
10411 (target_follow_fork): Unconditionally delegate.
10412 * target.h (struct target_ops) <to_follow_fork>: Use
10413 TARGET_DEFAULT_FUNC.
10415 2014-02-19 Tom Tromey <tromey@redhat.com>
10417 * target-delegates.c: Rebuild.
10418 * target.c (target_kill): Unconditionally delegate.
10419 * target.h (struct target_ops) <to_kill>: Use
10420 TARGET_DEFAULT_NORETURN.
10422 2014-02-19 Tom Tromey <tromey@redhat.com>
10424 * target-delegates.c: Rebuild.
10425 * target.c (target_masked_watch_num_registers): Unconditionally
10427 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10428 Use TARGET_DEFAULT_RETURN.
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10432 * target-delegates.c: Rebuild.
10433 * target.c (target_remove_mask_watchpoint): Unconditionally
10435 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10436 TARGET_DEFAULT_RETURN.
10438 2014-02-19 Tom Tromey <tromey@redhat.com>
10440 * target-delegates.c: Rebuild.
10441 * target.c (target_insert_mask_watchpoint): Unconditionally
10443 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10444 TARGET_DEFAULT_RETURN.
10446 2014-02-19 Tom Tromey <tromey@redhat.com>
10448 * target-delegates.c: Rebuild.
10449 * target.c (target_ranged_break_num_registers): Unconditionally
10451 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10452 Use TARGET_DEFAULT_RETURN.
10454 2014-02-19 Tom Tromey <tromey@redhat.com>
10456 * target-delegates.c: Rebuild.
10457 * target.c (target_fetch_registers): Unconditionally delegate.
10458 * target.h (struct target_ops) <to_fetch_registers>: Use
10459 TARGET_DEFAULT_NORETURN.
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10463 * target-delegates.c: Rebuild.
10464 * target.c (update_current_target): Don't inherit or default
10466 * target.h (struct target_ops) <to_stop>: Use
10467 TARGET_DEFAULT_IGNORE.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10473 to_can_run_breakpoint_commands.
10474 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10475 Use TARGET_DEFAULT_RETURN.
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_supports_evaluation_of_breakpoint_conditions.
10482 * target.h (struct target_ops)
10483 <to_supports_evaluation_of_breakpoint_conditions>: Use
10484 TARGET_DEFAULT_RETURN.
10486 2014-02-19 Tom Tromey <tromey@redhat.com>
10488 * target-delegates.c: Rebuild.
10489 * target.c (update_current_target): Don't inherit or default
10490 to_augmented_libraries_svr4_read.
10491 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10492 Use TARGET_DEFAULT_RETURN.
10494 2014-02-19 Tom Tromey <tromey@redhat.com>
10496 * target-delegates.c: Rebuild.
10497 * target.c (update_current_target): Don't inherit or default
10499 * target.h (struct target_ops) <to_can_use_agent>: Use
10500 TARGET_DEFAULT_RETURN.
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * target-delegates.c: Rebuild.
10505 * target.c (update_current_target): Don't inherit or default
10507 * target.h (struct target_ops) <to_use_agent>: Use
10508 TARGET_DEFAULT_NORETURN.
10510 2014-02-19 Tom Tromey <tromey@redhat.com>
10512 * target-delegates.c: Rebuild.
10513 * target.c (update_current_target): Don't inherit or default
10514 to_traceframe_info.
10515 (return_null): Remove.
10516 * target.h (struct target_ops) <to_traceframe_info>: Use
10517 TARGET_DEFAULT_RETURN.
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10523 to_static_tracepoint_markers_by_strid.
10524 * target.h (struct target_ops)
10525 <to_static_tracepoint_markers_by_strid>: Use
10526 TARGET_DEFAULT_NORETURN.
10528 2014-02-19 Tom Tromey <tromey@redhat.com>
10530 * target-delegates.c: Rebuild.
10531 * target.c (update_current_target): Don't inherit or default
10532 to_static_tracepoint_marker_at.
10533 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10534 Use TARGET_DEFAULT_RETURN.
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10538 * target-delegates.c: Rebuild.
10539 * target.c (update_current_target): Don't inherit or default
10540 to_set_permissions.
10541 * target.h (struct target_ops) <to_set_permissions>: Use
10542 TARGET_DEFAULT_IGNORE.
10544 2014-02-19 Tom Tromey <tromey@redhat.com>
10546 * target-delegates.c: Rebuild.
10547 * target.c (update_current_target): Don't inherit or default
10548 to_get_tib_address.
10549 * target.h (struct target_ops) <to_get_tib_address>: Use
10550 TARGET_DEFAULT_NORETURN.
10552 2014-02-19 Tom Tromey <tromey@redhat.com>
10554 * target-delegates.c: Rebuild.
10555 * target.c (update_current_target): Don't inherit or default
10556 to_set_trace_notes.
10557 * target.h (struct target_ops) <to_set_trace_notes>: Use
10558 TARGET_DEFAULT_RETURN.
10560 2014-02-19 Tom Tromey <tromey@redhat.com>
10562 * target-delegates.c: Rebuild.
10563 * target.c (update_current_target): Don't initialize
10564 to_set_trace_buffer_size.
10565 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10566 TARGET_DEFAULT_IGNORE.
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_set_circular_trace_buffer.
10573 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10574 TARGET_DEFAULT_IGNORE.
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10580 to_set_disconnected_tracing.
10581 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10582 TARGET_DEFAULT_IGNORE.
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10588 to_get_min_fast_tracepoint_insn_len.
10589 (return_minus_one): Remove.
10590 * target.h (struct target_ops)
10591 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10593 2014-02-19 Tom Tromey <tromey@redhat.com>
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10597 to_get_raw_trace_data.
10598 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10599 TARGET_DEFAULT_NORETURN.
10601 2014-02-19 Tom Tromey <tromey@redhat.com>
10603 * target-delegates.c: Rebuild.
10604 * target.c (update_current_target): Don't inherit or default
10605 to_upload_trace_state_variables.
10606 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10607 Use TARGET_DEFAULT_RETURN.
10609 2014-02-19 Tom Tromey <tromey@redhat.com>
10611 * target-delegates.c: Rebuild.
10612 * target.c (update_current_target): Don't inherit or default
10613 to_upload_tracepoints.
10614 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10615 TARGET_DEFAULT_RETURN.
10617 2014-02-19 Tom Tromey <tromey@redhat.com>
10619 * target-delegates.c: Rebuild.
10620 * target.c (update_current_target): Don't inherit or default
10621 to_save_trace_data.
10622 * target.h (struct target_ops) <to_save_trace_data>: Use
10623 TARGET_DEFAULT_NORETURN.
10625 2014-02-19 Tom Tromey <tromey@redhat.com>
10627 * target-delegates.c: Rebuild.
10628 * target.c (update_current_target): Don't inherit or default
10629 to_get_trace_state_variable_value.
10630 * target.h (struct target_ops)
10631 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10633 2014-02-19 Tom Tromey <tromey@redhat.com>
10635 * target-delegates.c: Rebuild.
10636 * target.c (update_current_target): Don't inherit or default
10638 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10640 2014-02-19 Tom Tromey <tromey@redhat.com>
10642 * target-delegates.c: Rebuild.
10643 * target.c (update_current_target): Don't inherit or default
10645 * target.h (struct target_ops) <to_trace_stop>: Use
10646 TARGET_DEFAULT_NORETURN.
10648 2014-02-19 Tom Tromey <tromey@redhat.com>
10650 * target-delegates.c: Rebuild.
10651 * target.c (update_current_target): Don't inherit or default
10652 to_get_tracepoint_status.
10653 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10654 TARGET_DEFAULT_NORETURN.
10656 2014-02-19 Tom Tromey <tromey@redhat.com>
10658 * target-delegates.c: Rebuild.
10659 * target.c (update_current_target): Don't inherit or default
10660 to_get_trace_status.
10661 * target.h (struct target_ops) <to_get_trace_status>: Use
10662 TARGET_DEFAULT_RETURN.
10664 2014-02-19 Tom Tromey <tromey@redhat.com>
10666 * target-delegates.c: Rebuild.
10667 * target.c (update_current_target): Don't inherit or default
10669 * target.h (struct target_ops) <to_trace_start>: Use
10670 TARGET_DEFAULT_NORETURN.
10672 2014-02-19 Tom Tromey <tromey@redhat.com>
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_trace_set_readonly_regions.
10677 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10678 Use TARGET_DEFAULT_NORETURN.
10680 2014-02-19 Tom Tromey <tromey@redhat.com>
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_disable_tracepoint.
10685 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10686 TARGET_DEFAULT_NORETURN.
10688 2014-02-19 Tom Tromey <tromey@redhat.com>
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_enable_tracepoint.
10693 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10694 TARGET_DEFAULT_NORETURN.
10696 2014-02-19 Tom Tromey <tromey@redhat.com>
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10700 to_download_trace_state_variable.
10701 * target.h (struct target_ops) <to_download_trace_state_variable>:
10702 Use TARGET_DEFAULT_NORETURN.
10704 2014-02-19 Tom Tromey <tromey@redhat.com>
10706 * target-delegates.c: Rebuild.
10707 * target.c (update_current_target): Don't inherit or default
10708 to_can_download_tracepoint.
10709 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10710 TARGET_DEFAULT_RETURN.
10712 2014-02-19 Tom Tromey <tromey@redhat.com>
10714 * target-delegates.c: Rebuild.
10715 * target.c (update_current_target): Don't inherit or default
10716 to_download_tracepoint.
10717 * target.h (struct target_ops) <to_download_tracepoint>: Use
10718 TARGET_DEFAULT_NORETURN.
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10725 * target.h (struct target_ops) <to_trace_init>: Use
10726 TARGET_DEFAULT_RETURN.
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_supports_string_tracing.
10733 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10734 TARGET_DEFAULT_RETURN.
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10740 to_supports_enable_disable_tracepoint.
10741 * target.h (struct target_ops)
10742 <to_supports_enable_disable_tracepoint>: Use
10743 TARGET_DEFAULT_RETURN.
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target-delegates.c: Rebuild.
10748 * target.c (update_current_target): Don't inherit or default
10749 to_supports_multi_process.
10750 * target.h (struct target_ops) <to_supports_multi_process>: Use
10751 TARGET_DEFAULT_RETURN.
10753 2014-02-19 Tom Tromey <tromey@redhat.com>
10755 * target-delegates.c: Rebuild.
10756 * target.c (update_current_target): Don't inherit or default
10757 to_get_ada_task_ptid.
10758 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10759 TARGET_DEFAULT_FUNC.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10765 to_thread_architecture.
10766 * target.h (struct target_ops) <to_thread_architecture>: Use
10767 TARGET_DEFAULT_FUNC.
10769 2014-02-19 Tom Tromey <tromey@redhat.com>
10771 * target-delegates.c: Rebuild.
10772 * target.c (update_current_target): Don't inherit or default
10773 to_execution_direction.
10774 * target.h (struct target_ops) <to_execution_direction>: Use
10775 TARGET_DEFAULT_FUNC.
10777 2014-02-19 Tom Tromey <tromey@redhat.com>
10779 * target-delegates.c: Rebuild.
10780 * target.c (update_current_target): Don't inherit or default
10781 to_can_execute_reverse.
10782 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10783 TARGET_DEFAULT_RETURN.
10784 (target_can_execute_reverse): Unconditionally delegate.
10786 2014-02-19 Tom Tromey <tromey@redhat.com>
10788 * target-delegates.c: Rebuild.
10789 * target.c (update_current_target): Don't inherit or default
10791 (dummy_goto_bookmark): Remove.
10792 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10793 * target.h (struct target_ops) <to_goto_bookmark>: Use
10794 TARGET_DEFAULT_NORETURN.
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10798 * target-delegates.c: Rebuild.
10799 * target.c (update_current_target): Don't inherit or default
10801 (dummy_get_bookmark): Remove.
10802 (init_dummy_target): Don't inherit or default to_get_bookmark.
10803 * target.h (struct target_ops) <to_get_bookmark>: Use
10804 TARGET_DEFAULT_NORETURN
10806 2014-02-19 Tom Tromey <tromey@redhat.com>
10808 * target-delegates.c: Rebuild.
10809 * target.c (update_current_target): Don't inherit or default
10810 to_make_corefile_notes.
10811 (init_dummy_target): Don't initialize to_make_corefile_notes.
10812 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10813 TARGET_DEFAULT_FUNC.
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target-delegates.c: Rebuild.
10818 * target.c (update_current_target): Don't inherit or default
10819 to_find_memory_regions.
10820 (init_dummy_target): Don't initialize to_find_memory_regions.
10821 * target.h (struct target_ops) <to_find_memory_regions>: Use
10822 TARGET_DEFAULT_FUNC.
10824 2014-02-19 Tom Tromey <tromey@redhat.com>
10826 * target-delegates.c: Rebuild.
10827 * target.c (update_current_target): Don't inherit or default
10829 * target.h (struct target_ops) <to_log_command>: Use
10830 TARGET_DEFAULT_IGNORE.
10831 (target_log_command): Unconditionally delegate.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target-delegates.c: Rebuild.
10836 * target.c (update_current_target): Don't inherit or default
10837 to_pid_to_exec_file.
10838 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10839 TARGET_DEFAULT_RETURN.
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target-delegates.c: Rebuild.
10844 * target.c (update_current_target): Don't inherit or default
10846 (target_thread_name): Unconditionally delegate.
10847 * target.h (struct target_ops) <to_thread_name>: Use
10848 TARGET_DEFAULT_RETURN.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target-delegates.c: Rebuild.
10853 * target.c (update_current_target): Don't inherit or default
10854 to_extra_thread_info.
10855 * target.h (struct target_ops) <to_extra_thread_info>: Use
10856 TARGET_DEFAULT_RETURN.
10858 2014-02-19 Tom Tromey <tromey@redhat.com>
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10863 * target.h (struct target_ops) <to_has_exited>: Use
10864 TARGET_DEFAULT_RETURN..
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_set_syscall_catchpoint.
10871 (return_one): Remove.
10872 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10873 TARGET_DEFAULT_RETURN.
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10877 * target-delegates.c: Rebuild.
10878 * target.c (update_current_target): Don't inherit or default
10879 to_insert_exec_catchpoint.
10880 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10881 TARGET_DEFAULT_RETURN.
10883 2014-01-08 Tom Tromey <tromey@redhat.com>
10885 * target-delegates.c: Rebuild.
10886 * target.c (update_current_target): Don't inherit or default
10887 to_insert_exec_catchpoint.
10888 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10889 TARGET_DEFAULT_RETURN.
10891 2014-02-19 Tom Tromey <tromey@redhat.com>
10893 * target-delegates.c: Rebuild.
10894 * target.c (update_current_target): Don't inherit or default
10895 to_remove_vfork_catchpoint.
10896 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10897 TARGET_DEFAULT_RETURN.
10899 2014-02-19 Tom Tromey <tromey@redhat.com>
10901 * target-delegates.c: Rebuild.
10902 * target.c (update_current_target): Don't inherit or default
10903 to_insert_vfork_catchpoint.
10904 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10905 TARGET_DEFAULT_RETURN.
10907 2014-02-19 Tom Tromey <tromey@redhat.com>
10909 * target-delegates.c: Rebuild.
10910 * target.c (update_current_target): Don't inherit or default
10911 to_remove_fork_catchpoint.
10912 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10913 TARGET_DEFAULT_RETURN.
10915 2014-02-19 Tom Tromey <tromey@redhat.com>
10917 * target-delegates.c: Rebuild.
10918 * target.c (update_current_target): Don't inherit or default
10919 to_insert_fork_catchpoint.
10920 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10921 TARGET_DEFAULT_RETURN.
10923 2014-02-19 Tom Tromey <tromey@redhat.com>
10925 * target-delegates.c: Rebuild.
10926 * target.c (update_current_target): Don't inherit or default
10927 to_post_startup_inferior.
10928 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10929 TARGET_DEFAULT_IGNORE.
10931 2014-02-19 Tom Tromey <tromey@redhat.com>
10933 * target-delegates.c: Rebuild.
10934 * target.c (update_current_target): Don't inherit or default
10936 * target.h (struct target_ops) <to_load>: Use
10937 TARGET_DEFAULT_NORETURN.
10939 2014-02-19 Tom Tromey <tromey@redhat.com>
10941 * target-delegates.c: Rebuild.
10942 * target.c (update_current_target): Don't inherit or default
10944 * target.h (struct target_ops) <to_terminal_info>: Use
10945 TARGET_DEFAULT_FUNC.
10947 2014-02-19 Tom Tromey <tromey@redhat.com>
10949 * target-delegates.c: Rebuild.
10950 * target.c (update_current_target): Don't inherit or default
10951 to_terminal_save_ours.
10952 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10953 TARGET_DEFAULT_IGNORE.
10955 2014-02-19 Tom Tromey <tromey@redhat.com>
10957 * target-delegates.c: Rebuild.
10958 * target.c (update_current_target): Don't inherit or default
10960 * target.h (struct target_ops) <to_terminal_ours>: Use
10961 TARGET_DEFAULT_IGNORE.
10963 2014-02-19 Tom Tromey <tromey@redhat.com>
10965 * target-delegates.c: Rebuild.
10966 * target.c (update_current_target): Don't inherit or default
10967 to_terminal_ours_for_output.
10968 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10969 TARGET_DEFAULT_IGNORE.
10971 2014-02-19 Tom Tromey <tromey@redhat.com>
10973 * target-delegates.c: Rebuild.
10974 * target.c (update_current_target): Don't inherit or default
10975 to_terminal_inferior.
10976 * target.h (struct target_ops) <to_terminal_inferior>: Use
10977 TARGET_DEFAULT_IGNORE.
10979 2014-02-19 Tom Tromey <tromey@redhat.com>
10981 * target-delegates.c: Rebuild.
10982 * target.c (update_current_target): Don't inherit or default
10984 * target.h (struct target_ops) <to_terminal_init>: Use
10985 TARGET_DEFAULT_IGNORE.
10987 2014-02-19 Tom Tromey <tromey@redhat.com>
10989 * target-delegates.c: Rebuild.
10990 * target.c (update_current_target): Don't inherit or default
10991 to_can_accel_watchpoint_condition.
10992 * target.h (struct target_ops)
10993 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10995 2014-02-19 Tom Tromey <tromey@redhat.com>
10997 * target-delegates.c: Rebuild.
10998 * target.c (update_current_target): Don't inherit or default
10999 to_region_ok_for_hw_watchpoint.
11000 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11001 Use TARGET_DEFAULT_FUNC.
11003 2014-02-19 Tom Tromey <tromey@redhat.com>
11005 * target-delegates.c: Rebuild.
11006 * target.c (update_current_target): Don't inherit or default
11007 to_watchpoint_addr_within_range.
11008 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11009 Use TARGET_DEFAULT_FUNC.
11011 2014-02-19 Tom Tromey <tromey@redhat.com>
11013 * target-delegates.c: Rebuild.
11014 * target.c (update_current_target): Don't inherit or default
11015 to_remove_watchpoint.
11016 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11017 TARGET_DEFAULT_NORETURN.
11019 2014-02-19 Tom Tromey <tromey@redhat.com>
11021 * target-delegates.c: Rebuild.
11022 * target.c (update_current_target): Don't inherit or default
11023 to_insert_watchpoint.
11024 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11025 TARGET_DEFAULT_RETURN.
11027 2014-02-19 Tom Tromey <tromey@redhat.com>
11029 * target-delegates.c: Rebuild.
11030 * target.c (update_current_target): Don't inherit or default
11031 to_remove_hw_breakpoint.
11032 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11033 TARGET_DEFAULT_RETURN.
11035 2014-02-19 Tom Tromey <tromey@redhat.com>
11037 * target-delegates.c: Rebuild.
11038 * target.c (update_current_target): Don't inherit or default
11039 to_insert_hw_breakpoint.
11040 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11041 TARGET_DEFAULT_RETURN.
11043 2014-02-19 Tom Tromey <tromey@redhat.com>
11045 * target-delegates.c: Rebuild.
11046 * target.c (update_current_target): Don't inherit or default
11047 to_can_use_hw_breakpoint.
11048 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11049 TARGET_DEFAULT_RETURN.
11051 2014-02-19 Tom Tromey <tromey@redhat.com>
11053 * target-delegates.c: Rebuild.
11054 * target.c (update_current_target): Don't inherit or default
11056 * target.h (struct target_ops) <to_files_info>: Use
11057 TARGET_DEFAULT_IGNORE.
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * target-delegates.c: Rebuild.
11062 * target.c (update_current_target): Don't inherit or default
11064 * target.h (struct target_ops) <to_store>: Use
11065 TARGET_DEFAULT_NORETURN.
11067 2014-02-19 Tom Tromey <tromey@redhat.com>
11069 * target-delegates.c: Rebuild.
11070 * target.c (update_current_target): Don't inherit or default
11072 * target.h (struct target_ops) <to_post_attach>: Use
11073 TARGET_DEFAULT_IGNORE.
11075 2014-02-19 Tom Tromey <tromey@redhat.com>
11077 * target-delegates.c: Rebuild.
11078 * target.c (update_current_target): Don't inherit or default
11080 (default_rcmd): New function.
11081 (do_monitor_command): Unconditionally delegate.
11082 * target.h (struct target_ops) <to_rmcd>: Use
11083 TARGET_DEFAULT_FUNC.
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target-delegates.c: Rebuild.
11088 * target.c (init_dummy_target): Don't initialize to_attach.
11089 (target_attach): Unconditionally delegate.
11090 * target.h (struct target_ops) <to_attach>: Use
11091 TARGET_DEFAULT_FUNC.
11093 2014-02-19 Tom Tromey <tromey@redhat.com>
11095 * target-delegates.c: Rebuild.
11096 * target.c (target_detach): Unconditionally delegate.
11097 (init_dummy_target): Don't initialize to_detach.
11098 * target.h (struct target_ops) <to_detach>: Use
11099 TARGET_DEFAULT_IGNORE.
11101 2014-02-19 Tom Tromey <tromey@redhat.com>
11103 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11105 (target_augmented_libraries_svr4_read): Add argument.
11106 * target.c (update_current_target): Update.
11107 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target.h (struct target_ops) <to_call_history_range>: Add
11114 * target.c (target_call_history_range): Add argument.
11115 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11117 (record_btrace_call_history_from): Update.
11119 2014-02-19 Tom Tromey <tromey@redhat.com>
11121 * target.h (struct target_ops) <to_call_history_from>: Add
11123 * target.c (target_call_history_from): Add argument.
11124 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops) <to_call_history>: Add argument.
11130 * target.c (target_call_history): Add argument.
11131 * record-btrace.c (record_btrace_call_history): Add 'self'
11134 2014-02-19 Tom Tromey <tromey@redhat.com>
11136 * target.h (struct target_ops) <to_insn_history_range>: Add
11138 * target.c (target_insn_history_range): Add argument.
11139 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11141 (record_btrace_insn_history_from): Update.
11143 2014-02-19 Tom Tromey <tromey@redhat.com>
11145 * target.h (struct target_ops) <to_insn_history_from>: Add
11147 * target.c (target_insn_history_from): Add argument.
11148 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11153 * target.h (struct target_ops) <to_insn_history>: Add argument.
11154 * target.c (target_insn_history): Add argument.
11155 * record-btrace.c (record_btrace_insn_history): Add 'self'
11158 2014-02-19 Tom Tromey <tromey@redhat.com>
11160 * target.h (struct target_ops) <to_goto_record>: Add argument.
11161 * target.c (target_goto_record): Add argument.
11162 * record-full.c (record_full_goto): Add 'self' argument.
11163 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11168 * target.c (target_goto_record_end): Add argument.
11169 * record-full.c (record_full_goto_end): Add 'self' argument.
11170 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11172 2014-02-19 Tom Tromey <tromey@redhat.com>
11174 * target.h (struct target_ops) <to_goto_record_begin>: Add
11176 * target.c (target_goto_record_begin): Add argument.
11177 * record-full.c (record_full_goto_begin): Add 'self' argument.
11178 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11181 2014-02-19 Tom Tromey <tromey@redhat.com>
11183 * target.h (struct target_ops) <to_record_is_replaying>: Add
11185 * target.c (target_record_is_replaying): Add argument.
11186 * record-full.c (record_full_is_replaying): Add 'self' argument.
11187 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11189 (record_btrace_xfer_partial, record_btrace_store_registers)
11190 (record_btrace_prepare_to_store, record_btrace_resume)
11191 (record_btrace_wait, record_btrace_decr_pc_after_break)
11192 (record_btrace_find_new_threads, record_btrace_thread_alive):
11195 2014-02-19 Tom Tromey <tromey@redhat.com>
11197 * target.h (struct target_ops) <to_delete_record>: Add argument.
11198 * target.c (target_delete_record): Add argument.
11199 * record-full.c (record_full_delete): Add 'self' argument.
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11203 * target.h (struct target_ops) <to_save_record>: Add argument.
11204 * target.c (target_save_record): Add argument.
11205 * record-full.c (record_full_save): Add 'self' argument.
11206 (record_full_save): Add 'self' argument.
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11210 * target.h (struct target_ops) <to_info_record>: Add argument.
11211 * target.c (target_info_record): Add argument.
11212 * record.c (info_record_command): Add argument.
11213 * record-full.c (record_full_info): Add 'self' argument.
11214 * record-btrace.c (record_btrace_info): Add 'self' argument.
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11218 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11219 * target.c (target_stop_recording): Add argument.
11220 * record.c (record_stop): Add argument.
11221 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11224 2014-02-19 Tom Tromey <tromey@redhat.com>
11226 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11227 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11228 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11230 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11231 (_initialize_amd64_linux_nat): Use it.
11232 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11233 (_initialize_i386_linux_nat): Use it.
11235 2014-02-19 Tom Tromey <tromey@redhat.com>
11237 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11238 * target.c (target_teardown_btrace): Add argument.
11239 * remote.c (remote_teardown_btrace): Add 'self' argument.
11240 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11242 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11245 2014-02-19 Tom Tromey <tromey@redhat.com>
11247 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11248 * target.c (target_disable_btrace): Add argument.
11249 * remote.c (remote_disable_btrace): Add 'self' argument.
11250 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11252 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11255 2014-02-19 Tom Tromey <tromey@redhat.com>
11257 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11258 * target.c (target_enable_btrace): Add argument.
11259 * remote.c (remote_enable_btrace): Add 'self' argument.
11260 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11262 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11267 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11268 (target_can_use_agent): Add argument.
11269 * target.c (update_current_target): Update.
11270 * remote.c (remote_can_use_agent): Add 'self' argument.
11271 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11273 2014-02-19 Tom Tromey <tromey@redhat.com>
11275 * target.h (struct target_ops) <to_use_agent>: Add argument.
11276 (target_use_agent): Add argument.
11277 * target.c (update_current_target): Update.
11278 * remote.c (remote_use_agent): Add 'self' argument.
11279 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11283 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11284 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11285 (target_traceframe_info): Add argument.
11286 * target.c (update_current_target): Update.
11287 * remote.c (remote_traceframe_info): Add 'self' argument.
11288 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11292 * target.h (target_static_tracepoint_markers_by_strid): Add
11294 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11296 * target.c (update_current_target): Update.
11297 * remote.c (struct target_ops)
11298 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11299 * linux-nat.c (struct target_ops)
11300 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11304 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11306 (target_static_tracepoint_marker_at): Add argument.
11307 * target.c (update_current_target): Update.
11308 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11311 2014-02-19 Tom Tromey <tromey@redhat.com>
11313 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11314 (target_set_permissions): Add argument.
11315 * target.c (update_current_target): Update.
11316 * remote.c (remote_set_permissions): Add 'self' argument.
11317 (remote_start_remote): Update.
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11321 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11322 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11323 (target_get_tib_address): Add argument.
11324 * target.c (update_current_target): Update.
11325 * remote.c (remote_get_tib_address): Add 'self' argument.
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11329 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11330 (target_set_trace_notes): Add argument.
11331 * target.c (update_current_target): Update.
11332 * remote.c (remote_set_trace_notes): Add 'self' argument.
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11336 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11338 (target_set_trace_buffer_size): Add argument.
11339 * target.c (update_current_target): Update.
11340 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11342 2014-02-19 Tom Tromey <tromey@redhat.com>
11344 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11346 (target_set_circular_trace_buffer): Add argument.
11347 * target.c (update_current_target): Update.
11348 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11353 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11355 (target_set_disconnected_tracing): Add argument.
11356 * target.c (update_current_target): Update.
11357 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * target.h (struct target_ops)
11362 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11363 (target_get_min_fast_tracepoint_insn_len): Add argument.
11364 * target.c (update_current_target): Update.
11365 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11370 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11372 (target_get_raw_trace_data): Add argument.
11373 * target.c (update_current_target): Update.
11374 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11376 2014-02-19 Tom Tromey <tromey@redhat.com>
11378 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11380 (target_upload_trace_state_variables): Add argument.
11381 * target.c (update_current_target): Update.
11382 * remote.c (remote_upload_trace_state_variables): Add 'self'
11384 (remote_start_remote): Update.
11386 2014-02-19 Tom Tromey <tromey@redhat.com>
11388 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11390 (target_upload_tracepoints): Add argument.
11391 * target.c (update_current_target): Update.
11392 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11393 (remote_start_remote): Update.
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11397 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11398 (target_save_trace_data): Add argument.
11399 * target.c (update_current_target): Update.
11400 * remote.c (remote_save_trace_data): Add 'self' argument.
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11404 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11406 * target.h (struct target_ops)
11407 <to_get_trace_state_variable_value>: Add argument.
11408 (target_get_trace_state_variable_value): Add argument.
11409 * target.c (update_current_target): Update.
11410 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11412 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11416 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11417 * target.h (struct target_ops) <to_trace_find>: Add argument.
11418 (target_trace_find): Add argument.
11419 * target.c (update_current_target): Update.
11420 * remote.c (remote_trace_find): Add 'self' argument.
11421 * ctf.c (ctf_trace_find): Add 'self' argument.
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11425 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11426 (target_trace_stop): Add argument.
11427 * target.c (update_current_target): Update.
11428 * remote.c (remote_trace_stop): Add 'self' argument.
11430 2014-02-19 Tom Tromey <tromey@redhat.com>
11432 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11433 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11435 (target_get_tracepoint_status): Add argument.
11436 * target.c (update_current_target): Update.
11437 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11439 2014-02-19 Tom Tromey <tromey@redhat.com>
11441 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11442 * target.h (struct target_ops) <to_get_trace_status>: Add
11444 (target_get_trace_status): Add argument.
11445 * target.c (update_current_target): Update.
11446 * remote.c (remote_get_trace_status): Add 'self' argument.
11447 (remote_start_remote, remote_can_download_tracepoint): Update.
11448 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11452 * target.h (struct target_ops) <to_trace_start>: Add argument.
11453 (target_trace_start): Add argument.
11454 * target.c (update_current_target): Update.
11455 * remote.c (remote_trace_start): Add 'self' argument.
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11459 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11461 (target_trace_set_readonly_regions): Add argument.
11462 * target.c (update_current_target): Update.
11463 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11470 (target_disable_tracepoint): Add argument.
11471 * target.c (update_current_target): Update.
11472 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11478 (target_enable_tracepoint): Add argument.
11479 * target.c (update_current_target): Update.
11480 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11484 * target.h (struct target_ops) <to_download_trace_state_variable>:
11486 (target_download_trace_state_variable): Add argument.
11487 * target.c (update_current_target): Update.
11488 * remote.c (remote_download_trace_state_variable): Add 'self'
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11495 (target_can_download_tracepoint): Add argument.
11496 * target.c (update_current_target): Update.
11497 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11501 * target.h (struct target_ops) <to_download_tracepoint>: Add
11503 (target_download_tracepoint): Add argument.
11504 * target.c (update_current_target): Update.
11505 * remote.c (remote_download_tracepoint): Add 'self' argument.
11507 2014-02-19 Tom Tromey <tromey@redhat.com>
11509 * target.h (struct target_ops) <to_trace_init>: Add argument.
11510 (target_trace_init): Add argument.
11511 * target.c (update_current_target): Update.
11512 * remote.c (remote_trace_init): Add 'self' argument.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11517 * target.c (target_fileio_readlink): Add argument.
11518 * remote.c (remote_hostio_readlink): Add 'self' argument.
11519 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11521 2014-02-19 Tom Tromey <tromey@redhat.com>
11523 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11524 * target.c (target_fileio_unlink): Add argument.
11525 * remote.c (remote_hostio_unlink): Add 'self' argument.
11526 (remote_file_delete): Update.
11527 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11531 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11532 * target.c (target_fileio_close): Add argument.
11533 * remote.c (remote_hostio_close): Add 'self' argument.
11534 (remote_hostio_close_cleanup): Update.
11535 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11537 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11541 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11542 * target.c (target_fileio_pread): Add argument.
11543 * remote.c (remote_hostio_pread): Add 'self' argument.
11544 (remote_bfd_iovec_pread, remote_file_get): Update.
11545 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11549 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11550 * target.c (target_fileio_pwrite): Add argument.
11551 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11552 (remote_file_put): Update.
11553 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11557 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11558 * target.c (target_fileio_open): Add argument.
11559 * remote.c (remote_hostio_open): Add 'self' argument.
11560 (remote_bfd_iovec_open): Add 'self' argument.
11561 (remote_file_put): Add 'self' argument.
11562 (remote_file_get): Add 'self' argument.
11563 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11567 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11569 (target_can_run_breakpoint_commands): Add argument.
11570 * target.c (update_current_target): Update.
11571 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11573 (remote_insert_breakpoint): Add 'self' argument.
11574 (remote_insert_hw_breakpoint): Add 'self' argument.
11575 (remote_can_run_breakpoint_commands): Add 'self' argument.
11577 2014-02-19 Tom Tromey <tromey@redhat.com>
11579 * target.h (struct target_ops)
11580 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11581 (target_supports_evaluation_of_breakpoint_conditions): Add
11583 * target.c (update_current_target): Update.
11584 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11586 (remote_insert_breakpoint): Add 'self' argument.
11587 (remote_insert_hw_breakpoint): Add 'self' argument.
11588 (remote_supports_cond_breakpoints): Add 'self' argument.
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11592 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11594 (target_supports_string_tracing): Add argument.
11595 * target.c (update_current_target): Update.
11596 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11600 * target.h (struct target_ops)
11601 <to_supports_disable_randomization>: Add argument.
11602 * target.c (find_default_supports_disable_randomization): Add
11604 (target_supports_disable_randomization): Add argument.
11605 (find_default_supports_disable_randomization): Add 'self'
11607 * remote.c (extended_remote_supports_disable_randomization): Add
11609 (remote_supports_disable_randomization): Add 'self' argument.
11610 (extended_remote_create_inferior): Update.
11611 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11614 2014-02-19 Tom Tromey <tromey@redhat.com>
11616 * target.h (struct target_ops)
11617 <to_supports_enable_disable_tracepoint>: Add argument.
11618 (target_supports_enable_disable_tracepoint): Add argument.
11619 * target.c (update_current_target): Update.
11620 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11625 * target.h (struct target_ops) <to_supports_multi_process>: Add
11627 (target_supports_multi_process): Add argument.
11628 * target.c (update_current_target): Update.
11629 * remote.c (remote_supports_multi_process): Add 'self' argument.
11630 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11632 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11635 2014-02-19 Tom Tromey <tromey@redhat.com>
11637 * target.h (struct target_ops) <to_execution_direction>: Add
11639 (target_execution_direction): Add argument.
11640 * target.c (default_execution_direction): Add 'self' argument.
11641 * record-full.c (record_full_execution_direction): Add 'self'
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11646 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11648 (target_can_execute_reverse): Add argument.
11649 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11650 * record-full.c (record_full_can_execute_reverse): Add 'self'
11652 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11655 2014-02-19 Tom Tromey <tromey@redhat.com>
11657 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11658 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11660 (target_get_ada_task_ptid): Add argument.
11661 * target.c (update_current_target): Update.
11662 (default_get_ada_task_ptid): Add 'self' argument.
11663 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11664 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11665 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11667 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11669 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11671 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11673 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11674 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11679 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11680 (target_goto_bookmark): Add argument.
11681 * target.c (dummy_goto_bookmark): Add 'self' argument.
11682 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11684 2014-02-19 Tom Tromey <tromey@redhat.com>
11686 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11687 (target_get_bookmark): Add argument.
11688 * target.c (dummy_get_bookmark): Add 'self' argument.
11689 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11693 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11695 (target_make_corefile_notes): Add argument.
11696 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11697 * procfs.c (procfs_make_note_section): Add 'self' argument.
11698 (procfs_make_note_section): Add 'self' argument.
11699 (procfs_make_note_section): Add 'self' argument.
11700 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11702 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11703 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11704 * exec.c (exec_make_note_section): Add 'self' argument.
11705 (exec_make_note_section): Add 'self' argument.
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11709 * target.h (struct target_ops) <to_find_memory_regions>: Add
11711 (target_find_memory_regions): Add argument.
11712 * target.c (dummy_find_memory_regions): Add 'self' argument.
11713 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11714 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11715 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11716 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11717 * exec. (exec_do_find_memory_regions): New global.
11718 (exec_set_find_memory_regions): Rewrite.
11719 (exec_find_memory_regions): New function.
11720 (init_exec_ops): Use exec_find_memory_regions.
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11724 * target.h (struct target_ops) <to_supports_non_stop>: Add
11726 * target.c (find_default_supports_non_stop): Add argument.
11727 (target_supports_non_stop): Add argument.
11728 (find_default_supports_non_stop): Add 'self' argument.
11729 * remote.c (remote_supports_non_stop): Add 'self' argument.
11730 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11732 2014-02-19 Tom Tromey <tromey@redhat.com>
11734 * target.h (struct target_ops) <to_log_command>: Add argument.
11735 (target_log_command): Add argument.
11736 * serial.h (serial_log_command): Add 'self' argument.
11737 * serial.c (serial_log_command): Add 'self' argument.
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11741 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11742 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11744 (target_pid_to_exec_file): Add argument.
11745 * target.c (debug_to_pid_to_exec_file): Add argument.
11746 (update_current_target): Update.
11747 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11748 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11749 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11750 (linux_handle_extended_wait): Update.
11751 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11752 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11753 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11754 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11756 2014-02-19 Tom Tromey <tromey@redhat.com>
11758 * target.h (struct target_ops) <to_rcmd>: Add argument.
11759 (target_rcmd): Add argument.
11760 * target.c (debug_to_rcmd): Add argument.
11761 (update_current_target, do_monitor_command): Update.
11762 * remote.c (remote_rcmd): Add 'self' argument.
11763 * monitor.c (monitor_rcmd): Add 'self' argument.
11765 2014-02-19 Tom Tromey <tromey@redhat.com>
11767 * windows-nat.c (windows_stop): Add 'self' argument.
11768 * target.h (struct target_ops) <to_stop>: Add argument.
11769 * target.c (target_stop): Add argument.
11770 (debug_to_stop): Add argument.
11771 (update_current_target): Update.
11772 * remote.c (remote_stop): Add 'self' argument.
11773 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11774 (gdbsim_cntrl_c): Update.
11775 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11776 * procfs.c (procfs_stop): Add 'self' argument.
11777 * nto-procfs.c (procfs_stop): Add 'self' argument.
11778 * monitor.c (monitor_stop): Add 'self' argument.
11779 (monitor_open): Update.
11780 * linux-nat.c (linux_nat_stop): Add argument.
11781 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11782 * gnu-nat.c (gnu_stop): Add 'self' argument.
11783 * darwin-nat.c (darwin_stop): Add 'self' argument.
11785 2014-02-19 Tom Tromey <tromey@redhat.com>
11787 * target.h (struct target_ops) <to_thread_name>: Add argument.
11788 * target.c (target_thread_name): Add argument.
11789 (update_current_target): Update.
11790 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11794 * target.h (struct target_ops) <to_extra_thread_info>: Add
11796 (target_extra_thread_info): Add argument.
11797 * target.c (update_current_target): Update.
11798 * remote.c (remote_threads_extra_info): Add 'self' argument.
11799 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11801 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11802 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11803 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11805 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11807 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11809 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11814 * target.h (struct target_ops) <to_program_signals>: Add argument.
11815 * target.c (target_program_signals): Add argument.
11816 * remote.c (remote_program_signals): Add 'self' argument.
11818 2014-02-19 Tom Tromey <tromey@redhat.com>
11820 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11821 * target.c (target_pass_signals): Add argument.
11822 * remote.c (remote_pass_signals): Add 'self' argument.
11823 (remote_start_remote): Update.
11824 * procfs.c (procfs_pass_signals): Add 'self' argument.
11825 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11826 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11827 (linux_nat_create_inferior, linux_nat_attach): Update.
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * windows-nat.c (windows_can_run): Add 'self' argument.
11832 * target.h (struct target_ops) <to_can_run>: Add argument.
11833 (target_can_run): Add argument.
11834 * target.c (debug_to_can_run): Add argument.
11835 (update_current_target): Update.
11836 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11837 * inf-child.c (inf_child_can_run): Add 'self' argument.
11838 * go32-nat.c (go32_can_run): Add 'self' argument.
11840 2014-02-19 Tom Tromey <tromey@redhat.com>
11842 * target.h (struct target_ops) <to_has_exited>: Add argument.
11843 (target_has_exited): Add argument.
11844 * target.c (debug_to_has_exited): Add argument.
11845 (update_current_target): Update.
11847 2014-02-19 Tom Tromey <tromey@redhat.com>
11849 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11851 (target_set_syscall_catchpoint): Add argument.
11852 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11854 * target.c (update_current_target): Update.
11856 2014-02-19 Tom Tromey <tromey@redhat.com>
11858 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11860 (target_remove_exec_catchpoint): Add argument.
11861 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11862 (update_current_target): Update.
11863 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11866 2014-02-19 Tom Tromey <tromey@redhat.com>
11868 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11870 (target_insert_exec_catchpoint): Add argument.
11871 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11872 (update_current_target): Update.
11873 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11878 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11880 (target_remove_vfork_catchpoint): Add argument.
11881 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11882 (update_current_target): Update.
11883 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11886 2014-02-19 Tom Tromey <tromey@redhat.com>
11888 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11890 (target_insert_vfork_catchpoint): Add argument.
11891 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11892 (update_current_target): Update.
11893 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11898 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11900 (target_remove_fork_catchpoint): Add argument.
11901 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11902 (update_current_target): Update.
11903 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11906 2014-02-19 Tom Tromey <tromey@redhat.com>
11908 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11910 (target_insert_fork_catchpoint): Add argument.
11911 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11912 (update_current_target): Update.
11913 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11920 (target_post_startup_inferior): Add argument.
11921 * target.c (debug_to_post_startup_inferior): Add argument.
11922 (update_current_target): Update.
11923 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11925 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11927 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11929 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11931 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11933 (super_post_startup_inferior): Likewise.
11934 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11936 (super_post_startup_inferior): Likewise.
11937 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11938 Add 'self' argument.
11939 (super_post_startup_inferior): Likewise.
11941 2014-02-19 Tom Tromey <tromey@redhat.com>
11943 * target.h (struct target_ops) <to_load>: Add argument.
11944 * target.c (target_load): Add argument.
11945 (debug_to_load): Add argument.
11946 (update_current_target): Update.
11947 * remote.c (remote_load): Add 'self' argument.
11948 * remote-sim.c (gdbsim_load): Add 'self' argument.
11949 * remote-mips.c (mips_load): Add 'self' argument.
11950 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11951 * monitor.c (monitor_load): Add 'self' argument.
11952 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11954 2014-02-19 Tom Tromey <tromey@redhat.com>
11956 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11957 (target_terminal_info): Add argument.
11958 * target.c (debug_to_terminal_info): Add argument.
11959 (default_terminal_info): Likewise.
11960 * inflow.c (child_terminal_info): Add 'self' argument.
11961 * inferior.h (child_terminal_info): Add 'self' argument.
11962 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11964 2014-02-19 Tom Tromey <tromey@redhat.com>
11966 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11968 (target_terminal_save_ours): Add argument.
11969 * target.c (debug_to_terminal_save_ours): Add argument.
11970 (update_current_target): Update.
11971 * inflow.c (terminal_save_ours): Add 'self' argument.
11972 * inferior.h (terminal_save_ours): Add 'self' argument.
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11976 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11977 (target_terminal_ours): Add argument.
11978 * target.c (debug_to_terminal_ours): Add argument.
11979 (update_current_target): Update.
11980 * remote.c (remote_terminal_ours): Add 'self' argument.
11981 (remote_close): Update.
11982 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11983 * inflow.c (terminal_ours): Add 'self' argument.
11984 * inferior.h (terminal_ours): Add 'self' argument.
11985 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11987 2014-02-19 Pedro Alves <palves@redhat.com>
11988 Tom Tromey <tromey@redhat.com>
11990 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11992 (target_terminal_ours_for_output): Add argument.
11993 * target.c (debug_to_terminal_ours_for_output): Add argument.
11994 (update_current_target): Update.
11995 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11996 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11997 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11999 2014-02-19 Tom Tromey <tromey@redhat.com>
12001 * target.h (struct target_ops) <to_terminal_inferior>: Add
12003 * target.c (target_terminal_inferior): Add argument.
12004 (update_current_target): Update.
12005 * remote.c (remote_terminal_inferior): Add 'self' argument.
12006 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12007 * inflow.c (terminal_inferior): Add 'self' argument.
12008 * inferior.h (terminal_inferior): Add 'self' argument.
12009 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12010 (go32_terminal_inferior): Add 'self' argument.
12012 2014-02-19 Tom Tromey <tromey@redhat.com>
12014 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12015 (target_terminal_init): Add argument.
12016 * target.c (debug_to_terminal_init): Add argument.
12017 (update_current_target): Update.
12018 * inflow.c (terminal_init_inferior): Add 'self' argument.
12019 * inferior.h (terminal_init_inferior): Add 'self' argument.
12020 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12021 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12023 2014-02-19 Tom Tromey <tromey@redhat.com>
12025 * target.h (struct target_ops)
12026 <to_can_accel_watchpoint_condition>: Add argument.
12027 (target_can_accel_watchpoint_condition): Add argument.
12028 * target.c (debug_to_can_accel_watchpoint_condition): Add
12030 (update_current_target): Update.
12031 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12034 2014-02-19 Tom Tromey <tromey@redhat.com>
12036 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12038 (target_region_ok_for_hw_watchpoint): Add argument.
12039 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12040 (default_region_ok_for_hw_watchpoint): Add argument.
12041 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12042 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12044 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12046 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12048 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12050 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12052 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12054 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12055 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12057 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12058 Add 'self' argument.
12060 2014-02-19 Tom Tromey <tromey@redhat.com>
12062 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12064 (target_insert_watchpoint): Add argument.
12065 * target.c (debug_to_insert_watchpoint): Add argument.
12066 (update_current_target): Update.
12067 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12068 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12069 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12070 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12071 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12072 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12074 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12075 (procfs_insert_hw_watchpoint): Add 'self' argument.
12076 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12078 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12080 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12082 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12083 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12085 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12088 2014-02-19 Tom Tromey <tromey@redhat.com>
12090 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12092 (target_remove_watchpoint): Add argument.
12093 * target.c (debug_to_remove_watchpoint): Add argument.
12094 (update_current_target): Update.
12095 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12096 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12097 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12098 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12099 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12100 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12102 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12103 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12105 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12107 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12109 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12110 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12112 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12117 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12119 (target_remove_hw_breakpoint): Add argument.
12120 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12121 (update_current_target): Update.
12122 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12123 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12125 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12126 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12128 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12135 (target_insert_hw_breakpoint): Add argument.
12136 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12137 (update_current_target): Update.
12138 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12139 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12141 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12142 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12143 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12145 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12148 2014-02-19 Tom Tromey <tromey@redhat.com>
12150 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12152 (target_can_use_hardware_watchpoint): Add argument.
12153 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12154 (update_current_target): Update.
12155 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12157 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12159 * remote.c (remote_check_watch_resources): Add 'self' argument.
12160 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12161 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12163 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12164 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12166 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12168 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12170 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12172 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12174 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12176 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12177 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12179 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12182 2014-02-19 Tom Tromey <tromey@redhat.com>
12184 * target.h (struct target_ops) <to_post_attach>: Add argument.
12185 (target_post_attach): Add argument.
12186 * target.c (debug_to_post_attach): Add argument.
12187 (update_current_target): Update.
12188 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12189 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12190 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12191 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12192 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12196 * windows-nat.c (windows_close): Add 'self' argument.
12197 * tracepoint.c (tfile_close): Add 'self' argument.
12198 * target.h (struct target_ops) <to_close>: Add argument.
12199 * target.c (target_close): Add argument.
12200 (update_current_target): Update.
12201 * remote.c (remote_close): Add 'self' argument.
12202 * remote-sim.c (gdbsim_close): Add 'self' argument.
12203 * remote-mips.c (mips_close): Add 'self' argument.
12204 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12205 * record-full.c (record_full_close): Add 'self' argument.
12206 * record-btrace.c (record_btrace_close): Add 'self' argument.
12207 * monitor.h (monitor_close): Add 'self' argument.
12208 * monitor.c (monitor_close): Add 'self' argument.
12209 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12210 * linux-nat.c (linux_nat_close): Add argument.
12211 * go32-nat.c (go32_close): Add 'self' argument.
12212 * exec.c (exec_close_1): Add 'self' argument.
12213 * ctf.c (ctf_close): Add 'self' argument.
12214 * corelow.c (core_close): Add 'self' argument.
12215 (core_close_cleanup): Update.
12216 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12217 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12219 2014-02-19 Tom Tromey <tromey@redhat.com>
12221 * remote.c (remote_load): New function.
12222 (init_remote_ops): Use it.
12224 2014-02-19 Tom Tromey <tromey@redhat.com>
12226 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12228 * common/linux-btrace.h (linux_supports_btrace): Update.
12229 * remote.c (remote_supports_btrace): Add "self" argument.
12230 * target-delegates.c: Rebuild.
12231 * target.c (target_supports_btrace): Remove.
12232 * target.h (struct target_ops) <to_supports_btrace>: Add
12233 target_ops argument.
12234 (target_supports_btrace): New define.
12236 2014-02-19 Tom Tromey <tromey@redhat.com>
12238 * record-full.c (record_full_beneath_to_resume_ops)
12239 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12240 (record_full_beneath_to_wait)
12241 (record_full_beneath_to_store_registers_ops)
12242 (record_full_beneath_to_store_registers)
12243 (record_full_beneath_to_xfer_partial_ops)
12244 (record_full_beneath_to_xfer_partial)
12245 (record_full_beneath_to_insert_breakpoint_ops)
12246 (record_full_beneath_to_insert_breakpoint)
12247 (record_full_beneath_to_remove_breakpoint_ops)
12248 (record_full_beneath_to_remove_breakpoint)
12249 (record_full_beneath_to_stopped_by_watchpoint)
12250 (record_full_beneath_to_stopped_data_address)
12251 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12252 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12253 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12254 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12255 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12256 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12257 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12258 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12259 (record_full_resume, record_full_wait_1)
12260 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12261 (record_full_store_registers, record_full_xfer_partial)
12262 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12263 (record_full_async, record_full_core_xfer_partial): Use target
12265 * target-delegates.c: Rebuild.
12266 * target.c (current_xfer_partial): Remove.
12267 (update_current_target): Do not INHERIT or de_fault
12268 to_insert_breakpoint, to_remove_breakpoint,
12269 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12270 to_is_async_p, to_async. Do not set to_xfer_partial field.
12271 (default_xfer_partial): Simplify.
12272 (current_xfer_partial): Remove.
12273 (target_wait, target_resume): Simplify.
12274 (find_default_can_async_p, find_default_is_async_p): Update.
12275 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12276 to_xfer_partial, to_stopped_by_watchpoint,
12277 to_stopped_data_address.
12278 (target_store_registers): Simplify.
12279 (forward_target_remove_breakpoint)
12280 (forward_target_insert_breakpoint): Remove.
12281 (target_remove_breakpoint, target_insert_breakpoint)
12282 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12283 * target.h (struct target_ops) <to_resume, to_wait,
12284 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12285 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12286 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12288 (forward_target_remove_breakpoint)
12289 (forward_target_insert_breakpoint): Remove.
12290 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12292 (record_btrace_insert_breakpoint): Delegate directly.
12294 2014-02-19 Tom Tromey <tromey@redhat.com>
12297 * target-delegates.c: New file.
12298 * target.c: Include target-delegates.c.
12299 (init_dummy_target): Call install_dummy_methods.
12300 (complete_target_initialization): Call install_delegators.
12301 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12302 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12303 * make-target-delegates: New file.
12305 2014-02-19 Tom Tromey <tromey@redhat.com>
12307 * record.c (find_record_target): Use find_target_at.
12308 * target.c (find_target_at): New function.
12309 * target.h (find_target_at): Declare.
12311 2014-02-19 Tom Tromey <tromey@redhat.com>
12313 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12314 Add 'ops' argument.
12315 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12317 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12318 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12320 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12322 * linux-nat.c (save_sigtrap): Update.
12323 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12324 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12325 (linux_nat_close): Update.
12326 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12328 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12330 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12331 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12332 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12333 (tmp_to_async): Add 'ops' argument.
12334 (record_full_stopped_by_watchpoint, record_full_async)
12335 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12337 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12338 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12339 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12340 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12341 (remote_is_async_p, remote_async): Add 'ops' argument.
12342 (remote_stopped_data_address): Update.
12343 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12344 * target.c (update_current_target)
12345 (find_default_can_async_p, find_default_is_async_p): Update.
12346 (init_dummy_target): Update.
12347 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12348 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12349 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12350 (target_can_async_p, target_is_async_p, target_async)
12351 (target_stopped_by_watchpoint): Update.
12353 2014-02-19 Yao Qi <yao@codesourcery.com>
12356 * gdbarch.sh: Remove startup_gdbarch.
12357 * gdbarch.c: Regenerated.
12358 * gdbarch.h: Likewise.
12360 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12362 * rl78-tdep.c (rl78_g10_register_name): New function.
12363 (rl78_return_value): Add g10 support.
12364 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12367 2014-02-17 Doug Evans <xdje42@gmail.com>
12369 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12370 (SUBDIR_GUILE_SRCS): Ditto.
12371 (scm-gsmob.o): Ditto.
12373 2014-02-17 Yao Qi <yao@codesourcery.com>
12375 * gnu-nat.c (ILL_RPC): Declare defined function.
12377 2014-02-17 Yao Qi <yao@codesourcery.com>
12379 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12380 mach_msg_type_number_t.
12381 (gnu_write_inferior): Likewise.
12383 2014-02-17 Yao Qi <yao@codesourcery.com>
12385 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12387 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12388 (inf_validate_procs, inf_signal): Likewise.
12389 (S_exception_raise_request): Likewise.
12390 (do_mach_notify_dead_name): Likewise.
12391 (steal_exc_port): Likewise.
12392 (gnu_read_inferior): Change 'copy_count''s type to
12393 mach_msg_type_number_t.
12394 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12397 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12399 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12400 flag. Adjust all users; in particular...
12401 (gnu_wait): ..., don't decrement its value in here...
12402 (gnu_create_inferior): ..., and instead set the flag in here,
12403 around the startup_inferior call, and call that one with
12404 START_INFERIOR_TRAPS_EXPECTED.
12406 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12407 (ILL_RPC): ... new macro.
12408 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12409 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12410 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12411 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12412 functions with ILL_RPC macro.
12413 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12414 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12415 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12416 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12417 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12418 (S_proc_getlogin_reply, S_proc_getsid_reply)
12419 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12420 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12421 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12422 (S_proc_getnports_reply, S_proc_is_important_reply)
12423 (S_proc_get_code_reply): New stub functions, generated with
12426 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12427 collected the type check structures.
12429 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12431 2014-02-14 Doug Evans <dje@google.com>
12433 * target.c (target_write_partial): Fix result type.
12435 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12437 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12438 the proper offsets to access fpregset_t.
12440 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12442 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12443 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12444 * h8300-tdep.c (setmachinelist): Remove global.
12445 * hppa-tdep.c (hppa_sigtramp): Remove global.
12446 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12447 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12448 * ravenscar-thread.c (update_target_observer): Remove global.
12449 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12451 2014-02-12 Tom Tromey <tromey@redhat.com>
12453 * common/rsp-low.c: Update comments.
12454 * common/rsp-low.h: Update comments.
12456 2014-02-12 Tom Tromey <tromey@redhat.com>
12458 * common/rsp-low.c (convert_ascii_to_int): Remove.
12459 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12461 2014-02-12 Tom Tromey <tromey@redhat.com>
12463 * common/rsp-low.h (unhexify): Don't declare.
12464 * common/rsp-low.c (unhexify): Remove.
12466 2014-02-12 Tom Tromey <tromey@redhat.com>
12468 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12469 * common/rsp-low.c (convert_int_to_ascii): Remove.
12471 2014-02-12 Tom Tromey <tromey@redhat.com>
12473 * common/rsp-low.h (hexify): Don't declare.
12474 * common/rsp-low.c (hexify): Remove.
12476 2014-02-12 Tom Tromey <tromey@redhat.com>
12478 * common/rsp-low.c (hexify): Never take strlen of argument.
12480 2014-02-12 Tom Tromey <tromey@redhat.com>
12482 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12483 * remote.c (extended_remote_run, remote_rcmd)
12484 (remote_download_trace_state_variable, remote_save_trace_data)
12485 (remote_set_trace_notes): Update.
12486 * tracepoint.c (encode_source_string, tfile_write_status)
12487 (tfile_write_uploaded_tsv): Update.
12489 2014-02-12 Tom Tromey <tromey@redhat.com>
12491 * tracepoint.c: Include rsp-low.h.
12492 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12493 * remote.c: Include rsp-low.h.
12494 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12495 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12496 (remote_unescape_input): Move to common/rsp-low.c.
12497 * common/rsp-low.h: New file.
12498 * common/rsp-low.c: New file.
12499 * Makefile.in (SFILES): Add common/rsp-low.c.
12500 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12501 (COMMON_OBS): Add rsp-low.o.
12502 (rsp-low.o): New target.
12504 2014-02-12 Tom Tromey <tromey@redhat.com>
12506 * utils.h: Include print-utils.h.
12507 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12508 (int_string, core_addr_to_string, core_addr_to_string_nz)
12509 (hex_string, hex_string_custom): Don't declare.
12510 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12511 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12512 (hex_string_custom, int_string, core_addr_to_string)
12513 (core_addr_to_string_nz, host_address_to_string): Move to
12514 common/print-utils.c.
12515 * common/print-utils.h: New file.
12516 * common/print-utils.c: New file
12517 * Makefile.in (SFILES): Add common/print-utils.c.
12518 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12519 (COMMON_OBS): Add print-utils.o.
12520 (print-utils.o): New target.
12522 2014-02-12 Tom Tromey <tromey@redhat.com>
12524 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12526 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12528 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12530 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12532 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12533 if a PT_IO ptrace request returns sucessfully but indicates that 0
12534 bytes were transferred.
12536 2014-02-12 Pedro Alves <palves@redhat.com>
12537 Kevin Buettner <kevinb@redhat.com>
12539 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12540 TYPE_INSTANCE_FLAG_CODE_SPACE.
12542 2014-02-12 Pedro Alves <palves@redhat.com>
12544 * h8300-tdep.c (pseudo_from_raw_register)
12545 (raw_from_pseudo_register): New functions.
12546 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12549 2014-02-12 Pedro Alves <palves@redhat.com>
12551 * h8300-tdep.c (h8300_register_sim_regno): New function.
12552 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12553 gdbarch_register_sim_regno hook.
12555 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12557 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12559 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12561 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12563 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12565 * obsd-tdep.h (obsd_init_abi): New prototype.
12566 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12567 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12568 (obsd_init_abi): New functions.
12569 * i386obsd-tdep.c: Include "obsd-tdep.h".
12570 (i386obsd_init_abi): Call obsd_init_abi.
12571 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12572 (amd64obsd_init_abi): Call obsd_init_abi.
12573 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12574 obsd-tdep.c to gdb_target_obs.
12576 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12578 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12579 double float arguments to 16-byte in the argument slots.
12581 2014-02-11 Doug Evans <xdje42@gmail.com>
12583 * configure.ac: Don't crash if pkg-config is not found and guile
12584 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12586 * configure: Regenerate.
12588 2014-02-11 Yao Qi <yao@codesourcery.com>
12590 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12591 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12592 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12593 * gnu-nat.c (gnu_xfer_memory): Likewise.
12594 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12595 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12596 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12597 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12599 2014-02-11 Yao Qi <yao@codesourcery.com>
12601 * target.h (enum target_xfer_error): Rename to ...
12602 (enum target_xfer_status): ... it. New. All users updated.
12603 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12605 (TARGET_XFER_STATUS_ERROR_P): New macro.
12606 (target_xfer_error_to_string): Remove declaration.
12607 (target_xfer_status_to_string): Declare.
12608 (target_xfer_partial_ftype): Adjust it.
12609 (struct target_ops) <to_xfer_partial>: Return
12610 target_xfer_status. Add argument xfered_len. Update
12612 * target.c (target_xfer_error_to_string): Rename to ...
12613 (target_xfer_status_to_string): ... it. New. All callers
12615 (target_read_live_memory): Likewise. Call target_xfer_partial
12616 instead of target_read.
12617 (memory_xfer_live_readonly_partial): Return
12618 target_xfer_status. Add argument xfered_len.
12619 (raw_memory_xfer_partial): Likewise.
12620 (memory_xfer_partial_1): Likewise.
12621 (memory_xfer_partial): Likewise.
12622 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12623 properly. Update debug message.
12624 (default_xfer_partial, current_xfer_partial): Likewise.
12625 (target_write_partial): Likewise.
12626 (target_read_partial): Likewise. All callers updated.
12627 (read_whatever_is_readable): Likewise.
12628 (target_write_with_progress): Likewise.
12629 (target_read_alloc_1): Likewise.
12631 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12632 * auxv.c (procfs_xfer_auxv): Likewise.
12633 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12634 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12635 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12636 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12637 * corefile.c (read_memory): Adjust.
12638 * corelow.c (core_xfer_partial): Likewise.
12639 * ctf.c (ctf_xfer_partial): Likewise.
12640 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12642 (darwin_xfer_partial): Likewise.
12643 * exec.c (section_table_xfer_memory_partial): Likewise. All
12645 (exec_xfer_partial): Likewise.
12646 * exec.h (section_table_xfer_memory_partial): Update
12648 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12650 (gnu_xfer_partial): Likewise.
12651 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12652 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12653 (ia64_hpux_xfer_solib_got): Likewise.
12654 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12655 type of 'partial_len' to ULONGEST.
12656 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12657 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12658 (linux_nat_xfer_partial): Likewise.
12659 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12660 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12661 * monitor.c (monitor_xfer_memory): Likewise.
12662 (monitor_xfer_partial): Likewise.
12663 * procfs.c (procfs_xfer_partial): Likewise.
12664 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12665 * record-full.c (record_full_xfer_partial): Likewise.
12666 (record_full_core_xfer_partial): Likewise.
12667 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12668 (gdbsim_xfer_partial): Likewise.
12669 * remote.c (remote_write_bytes_aux): Likewise. All callers
12671 (remote_write_bytes, remote_read_bytes): Likewise. All
12673 (remote_flash_erase): Likewise. All callers updated.
12674 (remote_write_qxfer): Likewise. All callers updated.
12675 (remote_read_qxfer): Likewise. All callers updated.
12676 (remote_xfer_partial): Likewise.
12677 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12678 (rs6000_xfer_shared_libraries): Likewise.
12679 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12680 (sol_thread_xfer_partial): Likewise.
12681 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12682 (sparc_xfer_partial): Likewise.
12683 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12685 (spu_xfer_partial): Likewise.
12686 * spu-multiarch.c (spu_xfer_partial): Likewise.
12687 * tracepoint.c (tfile_xfer_partial): Likewise.
12688 * windows-nat.c (windows_xfer_memory): Likewise.
12689 (windows_xfer_shared_libraries): Likewise.
12690 (windows_xfer_partial): Likewise.
12691 * valprint.c: Replace 'target_xfer_error' with
12692 'target_xfer_status' in comments.
12694 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12696 Checked in by Joel Brobecker <brobecker@adacore.com>.
12697 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12699 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12701 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12702 function parameters.
12704 2014-02-10 Will Newton <will.newton@linaro.org>
12706 * elfread.c (elf_rel_plt_read): Look for a .got section if
12707 looking up .got.plt fails.
12708 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12709 on address passed to elf_gnu_ifunc_record_cache.
12710 (elf_gnu_ifunc_resolve_addr): Likewise.
12711 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12713 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12715 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12716 (X_RETTURN): New macro.
12717 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12719 * sparc64-tdep.c (sparc64_init_abi): Hook
12720 sparc_in_function_epilogue_p.
12722 2014-02-10 Gary Benson <gbenson@redhat.com>
12724 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12725 Rename name_matcher to symbol_matcher.
12727 2014-02-10 Gary Benson <gbenson@redhat.com>
12729 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12730 Use expand_symtabs_file_matcher_ftype and
12731 expand_symtabs_symbol_matcher_ftype.
12733 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12735 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12736 (struct ada_symbol_cache): New.
12737 (ada_free_symbol_cache): Forward declare.
12738 (struct ada_pspace_data): New.
12739 (ada_pspace_data_handle): New static global.
12740 (get_ada_pspace_data, ada_pspace_data_cleanup)
12741 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12742 (cache_space, cache): Delete, now folded inside struct
12744 (ada_get_symbol_cache): New function.
12745 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12747 (_initialize_ada_language): Remove initialization of cache_space.
12748 Move call to observer_attach_inferior_exit up, grouping it
12749 with the other observer registrations inside this function.
12750 Rename command to be more general. Add call to
12751 register_program_space_data_with_cleanup.
12753 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12755 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12756 ada_new_objfile_observer.
12757 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12758 (_initialize_tasks): Update uses of ada_new_objfile_observer
12759 and ada_tasks_normal_stop_observer.
12761 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12763 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12764 returned by the 'Length attribute to integer.
12766 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12768 * ada-lang.c (_initialize_ada_language): Initialize
12769 cache_space obstack.
12771 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12773 * ada-lang.c (HASH_SIZE): New macro.
12774 (struct cache_entry): New type.
12775 (cache_space, cache): New static globals.
12776 (ada_clear_symbol_cache, find_entry): New functions.
12777 (lookup_cached_symbol, cache_symbol): Implement.
12778 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12779 (_initialize_ada_language): Attach ada_new_objfile_observer
12780 and ada_free_objfile_observer.
12782 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12784 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12785 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12786 struct block * parameter.
12787 (ada_lookup_symbol_list_worker): Constify local variable "block".
12788 Remove cast which is no longer necessary.
12790 2014-02-10 Doug Evans <xdje42@gmail.com>
12792 Add Guile as an extension language.
12793 * NEWS: Mention Guile scripting.
12794 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12795 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12796 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12797 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12798 (CLIBS): Add GUILE_LIBS.
12799 (install-guile): New rule.
12800 (guile.o): New rule.
12801 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12802 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12803 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12804 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12805 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12806 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12807 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12808 * configure.ac: New option --with-guile.
12809 * configure: Regenerate.
12810 * config.in: Regenerate.
12811 * auto-load.c: Remove #include "python/python.h". Add #include
12812 "gdb/section-scripts.h".
12813 (source_section_scripts): Handle Guile scripts.
12814 (_initialize_auto_load): Add name of Guile objfile script to
12815 scripts-directory help text.
12816 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12817 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12818 (struct breakpoint): New member scm_bp_object.
12819 * defs.h (enum command_control_type): New value guile_control.
12820 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12822 (show_user): Update comment.
12823 (_initialize_cli_cmds): Update help text for "show user". Update help
12824 text for max-user-call-depth.
12825 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12827 (multi_line_command_p): Add guile_control.
12828 (print_command_lines): Handle guile_control.
12829 (execute_control_command, recurse_read_control_structure): Ditto.
12830 (process_next_line): Recognize "guile" commands.
12831 * disasm.c (gdb_disassemble_info): Make non-static.
12832 * disasm.h: #include "dis-asm.h".
12833 (struct gdbarch): Add forward decl.
12834 (gdb_disassemble_info): Declare.
12835 * extension.c: #include "guile/guile.h".
12836 (extension_languages): Add guile.
12837 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12838 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12839 * gdbtypes.c (get_unsigned_type_max): New function.
12840 (get_signed_type_minmax): New function.
12841 * gdbtypes.h (get_unsigned_type_max): Declare.
12842 (get_signed_type_minmax): Declare.
12843 * guile/README: New file.
12844 * guile/guile-internal.h: New file.
12845 * guile/guile.c: New file.
12846 * guile/guile.h: New file.
12847 * guile/scm-arch.c: New file.
12848 * guile/scm-auto-load.c: New file.
12849 * guile/scm-block.c: New file.
12850 * guile/scm-breakpoint.c: New file.
12851 * guile/scm-disasm.c: New file.
12852 * guile/scm-exception.c: New file.
12853 * guile/scm-frame.c: New file.
12854 * guile/scm-gsmob.c: New file.
12855 * guile/scm-iterator.c: New file.
12856 * guile/scm-lazy-string.c: New file.
12857 * guile/scm-math.c: New file.
12858 * guile/scm-objfile.c: New file.
12859 * guile/scm-ports.c: New file.
12860 * guile/scm-pretty-print.c: New file.
12861 * guile/scm-safe-call.c: New file.
12862 * guile/scm-string.c: New file.
12863 * guile/scm-symbol.c: New file.
12864 * guile/scm-symtab.c: New file.
12865 * guile/scm-type.c: New file.
12866 * guile/scm-utils.c: New file.
12867 * guile/scm-value.c: New file.
12868 * guile/lib/gdb.scm: New file.
12869 * guile/lib/gdb/boot.scm: New file.
12870 * guile/lib/gdb/experimental.scm: New file.
12871 * guile/lib/gdb/init.scm: New file.
12872 * guile/lib/gdb/iterator.scm: New file.
12873 * guile/lib/gdb/printing.scm: New file.
12874 * guile/lib/gdb/types.scm: New file.
12875 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12876 (VPATH): Add $(GUILE_SRCDIR).
12877 (GUILE_DIR): New variable.
12878 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12879 (all): Add stamp-guile dependency.
12880 (stamp-guile): New rule.
12881 (clean-guile, install-guile, uninstall-guile): New rules.
12882 (install-only): Add install-guile dependency.
12883 (uninstall): Add uninstall-guile dependency.
12884 (clean): Add clean-guile dependency.
12886 2014-02-09 Doug Evans <xdje42@gmail.com>
12888 Revert this patch (which I approved, mea culpa).
12890 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12892 * Makefile.in (all-lib): Remove.
12893 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12895 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12897 Fix Python stack corruption.
12898 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12901 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12903 * Makefile.in (all-lib): Remove.
12904 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12906 2014-02-07 Doug Evans <dje@google.com>
12908 * extension-priv.h (extension_language_script_ops): Add comment.
12909 (extension_language_ops): Add comment.
12910 (active_ext_lang_state): Fix typo in comment.
12912 2014-02-07 Pedro Alves <palves@redhat.com>
12914 PR breakpoints/16292
12915 * infrun.c (handle_signal_stop) <signal arrives while stepping
12916 over a breakpoint>: Switch back to the stepping thread.
12918 2014-02-07 Yao Qi <yao@codesourcery.com>
12920 * target.c (target_xfer_partial): Return zero if LEN is zero.
12922 2014-02-07 Yao Qi <yao@codesourcery.com>
12924 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12925 (ld_so_xfer_auxv): Likewise.
12926 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12927 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12928 * corelow.c (core_xfer_partial): Likewise.
12929 * ctf.c (ctf_xfer_partial): Likewise.
12930 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12931 (darwin_xfer_partial): Likewise.
12932 * exec.c (exec_xfer_partial): Likewise.
12933 * gnu-nat.c (gnu_xfer_partial): Likewise.
12934 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12935 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12936 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12937 * linux-nat.c (linux_xfer_siginfo): Likewise.
12938 (linux_proc_xfer_spu): Likewise.
12939 * procfs.c (procfs_xfer_partial): Likewise.
12940 * record-full.c (record_full_xfer_partial): Likewise.
12941 (record_full_core_xfer_partial): Likewise.
12942 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12943 * remote.c (remote_write_qxfer): Likewise.
12944 (remote_write_qxfer, remote_read_qxfer): Likewise.
12945 (remote_xfer_partial): Likewise.
12946 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12947 (rs6000_xfer_shared_libraries): Likewise.
12948 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12949 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12950 (spu_xfer_partial): Likewise.
12951 * target.c (memory_xfer_partial_1): Likewise.
12952 * tracepoint.c (tfile_xfer_partial): Likewise.
12953 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12954 (windows_xfer_partial): Likewise.
12956 2014-02-07 Yao Qi <yao@codesourcery.com>
12958 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12960 (core_xfer_shared_libraries_aix): Likewise.
12961 * gdbarch.c, gdbarch.h: Regenerated.
12962 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12963 ULONGEST. Change 'len_avail' type to ULONGEST.
12964 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12965 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12967 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12969 2014-02-07 Yao Qi <yao@codesourcery.com>
12971 * corefile.c (memory_error): Get 'exception' from ERR and pass
12972 'exception' to throw_error.
12974 2014-02-06 Doug Evans <xdje42@gmail.com>
12976 * configure.ac (libpython checking): Remove all but python.o from
12977 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12978 * configure: Regenerate.
12980 * Makefile.in (SFILES): Add extension.c.
12981 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12982 (COMMON_OBS): Add extension.o.
12983 * extension.h: New file.
12984 * extension-priv.h: New file.
12985 * extension.c: New file.
12987 * python/python-internal.h: #include "extension.h".
12988 (gdbpy_auto_load_enabled): Declare.
12989 (gdbpy_apply_val_pretty_printer): Declare.
12990 (gdbpy_apply_frame_filter): Declare.
12991 (gdbpy_preserve_values): Declare.
12992 (gdbpy_breakpoint_cond_says_stop): Declare.
12993 (gdbpy_breakpoint_has_cond): Declare.
12994 (void source_python_script_for_objfile): Delete.
12995 * python/python.c: #include "extension-priv.h".
12996 Delete inclusion of "observer.h".
12997 (extension_language_python): Moved here and renamed from
12998 script_language_python in py-auto-load.c.
12999 Redefined to be of type extension_language_defn.
13000 (python_extension_script_ops): New global.
13001 (python_extension_ops): New global.
13002 (struct python_env): New member previous_active.
13003 (restore_python_env): Call restore_active_ext_lang.
13004 (ensure_python_env): Call set_active_ext_lang.
13005 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13007 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13009 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13011 (gdbpy_eval_from_control_command): Renamed from
13012 eval_python_from_control_command, made static. New arg extlang.
13013 (gdbpy_source_script) Renamed from source_python_script, made static.
13015 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13016 result to int. New arg extlang.
13017 (gdbpy_source_objfile_script): Renamed from
13018 source_python_script_for_objfile, made static. New arg extlang.
13019 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13020 static. New args extlang, extlang_printers. Change result type to
13022 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13023 static. New arg extlang. Rename arg printers to extlang_printers
13024 and change type to ext_lang_type_printers *.
13025 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13026 static. Replace argument arg with extlang, extlang_printers.
13027 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13028 (!HAVE_PYTHON, source_python_script): Delete.
13029 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13030 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13031 (!HAVE_PYTHON, start_type_printers): Delete.
13032 (!HAVE_PYTHON, apply_type_printers): Delete.
13033 (!HAVE_PYTHON, free_type_printers): Delete.
13034 (_initialize_python): Delete call to observer_attach_before_prompt.
13035 (finalize_python): Set/restore active extension language.
13036 (gdbpy_finish_initialization) Renamed from
13037 finish_python_initialization, made static. New arg extlang.
13038 (gdbpy_initialized): New function.
13039 * python/python.h: #include "extension.h". Delete #include
13040 "value.h", "mi/mi-cmds.h".
13041 (extension_language_python): Declare.
13042 (GDBPY_AUTO_FILE_NAME): Delete.
13043 (enum py_bt_status): Moved to extension.h and renamed to
13044 ext_lang_bt_status.
13045 (enum frame_filter_flags): Moved to extension.h.
13046 (enum py_frame_args): Moved to extension.h and renamed to
13047 ext_lang_frame_args.
13048 (finish_python_initialization): Delete.
13049 (eval_python_from_control_command): Delete.
13050 (source_python_script): Delete.
13051 (apply_val_pretty_printer): Delete.
13052 (apply_frame_filter): Delete.
13053 (preserve_python_values): Delete.
13054 (gdbpy_script_language_defn): Delete.
13055 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13056 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13058 * auto-load.c: #include "extension.h".
13059 (GDB_AUTO_FILE_NAME): Delete.
13060 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13061 (script_language_gdb): Delete, moved to extension.c and renamed to
13062 extension_language_gdb.
13063 (source_gdb_script_for_objfile): Delete.
13064 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13065 (loaded_script): Change type of language member to
13066 struct extension_language_defn *.
13067 (init_loaded_scripts_info): Initialize
13068 unsupported_script_warning_printed.
13069 (maybe_add_script): Make static. Change type of language arg to
13070 struct extension_language_defn *.
13071 (clear_section_scripts): Reset unsupported_script_warning_printed.
13072 (auto_load_objfile_script_1): Rewrite to use extension language API.
13073 (auto_load_objfile_script): Make public. Remove support-compiled-in
13074 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13075 (source_section_scripts): Rewrite to use extension language API.
13076 (load_auto_scripts_for_objfile): Rewrite to use
13077 auto_load_scripts_for_objfile.
13078 (collect_matching_scripts_data): Change type of language member to
13079 struct extension_language_defn *.
13080 (auto_load_info_scripts): Change type of language arg to
13081 struct extension_language_defn *.
13082 (unsupported_script_warning_print): New function.
13083 (script_not_found_warning_print): Make static.
13084 (_initialize_auto_load): Rewrite construction of scripts-directory
13086 * auto-load.h (struct objfile): Add forward decl.
13087 (struct script_language): Delete.
13088 (struct auto_load_pspace_info): Add forward decl.
13089 (struct extension_language_defn): Add forward decl.
13090 (maybe_add_script): Delete.
13091 (auto_load_objfile_script): Declare.
13092 (script_not_found_warning_print): Delete.
13093 (auto_load_info_scripts): Update prototype.
13094 (auto_load_gdb_scripts_enabled): Declare.
13095 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13096 auto_load_python_scripts_enabled and made public.
13097 (script_language_python): Delete, moved to python.c.
13098 (gdbpy_script_language_defn): Delete.
13099 (info_auto_load_python_scripts): Update to use
13100 extension_language_python.
13102 * breakpoint.c (condition_command): Replace call to
13103 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13104 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13105 with call to breakpoint_ext_lang_cond_says_stop.
13106 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13107 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13108 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13109 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13111 (local_setattro): Print name of extension language with existing
13114 * valprint.c (val_print, value_print): Update to call
13115 apply_ext_lang_val_pretty_printer.
13116 * cp-valprint.c (cp_print_value): Update call to
13117 apply_ext_lang_val_pretty_printer.
13118 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13119 (gdbpy_apply_val_pretty_printer): Renamed from
13120 apply_val_pretty_printer. New arg extlang.
13121 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13123 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13124 extension language API.
13125 * cli/cli-script.c (execute_control_command): Update to call
13126 eval_ext_lang_from_control_command.
13128 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13129 enum ext_lang_bt_status values. Update call to
13130 apply_ext_lang_frame_filter.
13131 (mi_cmd_stack_list_locals): Ditto.
13132 (mi_cmd_stack_list_args): Ditto.
13133 (mi_cmd_stack_list_variables): Ditto.
13134 * mi/mi-main.c: Delete #include "python/python-internal.h".
13135 Add #include "extension.h".
13136 (mi_cmd_list_features): Replace reference to python internal variable
13137 gdb_python_initialized with call to ext_lang_initialized_p.
13139 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13140 Update to use enum ext_lang_frame_args. Update to call
13141 apply_ext_lang_frame_filter.
13142 * python/py-framefilter.c (extract_sym): Update to use enum
13143 ext_lang_bt_status.
13144 (extract_value, py_print_type, py_print_value): Ditto.
13145 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13146 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13147 (py_print_frame): Ditto.
13148 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13149 New arg extlang. Update to use enum ext_lang_bt_status.
13151 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13152 finish_python_initialization. Replace with call to
13153 finish_ext_lang_initialization.
13155 * typeprint.c (do_free_global_table): Update to call
13156 free_ext_lang_type_printers.
13157 (create_global_typedef_table): Update to call
13158 start_ext_lang_type_printers.
13159 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13160 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13161 (type_print_options): Change type of global_printers from "void *"
13162 to "struct ext_lang_type_printers *".
13164 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13165 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13166 (gdbpy_preserve_values): Renamed from preserve_python_values.
13168 (!HAVE_PYTHON, preserve_python_values): Delete.
13170 * utils.c (quit_flag): Delete, moved to extension.c.
13171 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13174 * eval.c: Delete #include "python/python.h".
13175 * main.c: Delete #include "python/python.h".
13177 * defs.h: Update comment.
13179 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13183 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13185 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13188 2014-02-05 Yao Qi <yao@codesourcery.com>
13190 * remote.c (remote_pass_signals): Remove local 'buf' and use
13192 (remote_program_signals): Likewise.
13194 2014-02-05 Yao Qi <yao@codesourcery.com>
13196 * ctf.c: Include "inferior.h" and "gdbthread.h".
13197 (CTF_PID): A new macro.
13198 (ctf_open): Call inferior_appeared and add_thread_silent.
13199 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13200 (ctf_thread_alive): New function.
13201 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13203 2014-02-05 Yao Qi <yao@codesourcery.com>
13207 2013-05-24 Yao Qi <yao@codesourcery.com>
13209 * tracepoint.c (TFILE_PID): Remove.
13210 (tfile_open): Don't add thread and inferior.
13211 (tfile_close): Don't set 'inferior_ptid'. Don't call
13212 exit_inferior_silent.
13213 (tfile_thread_alive): Remove.
13214 (init_tfile_ops): Don't set field 'to_thread_alive' of
13217 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13219 * remote.c (remote_start_remote): Call remote_check_symbols even
13220 if only symbol-file (not file) has been given.
13222 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13224 * gdbarch.sh (skip_entrypoint): New callback.
13225 * gdbarch.c, gdbarch.h: Regenerate.
13226 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13227 * infrun.c (fill_in_stop_func): Likewise.
13228 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13229 (ppc_elfv2_elf_make_msymbol_special): New function.
13230 (ppc_elfv2_skip_entrypoint): Likewise.
13231 (ppc_linux_init_abi): Install them for ELFv2.
13233 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13235 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13236 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13237 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13238 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13239 structures returned in GPRs.
13241 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13243 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13244 offset to the stack parameter list for the ELFv2 ABI.
13246 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13248 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13249 set_gdbarch_convert_from_func_ptr_addr and
13250 set_gdbarch_elf_make_msymbol_special for ELFv1.
13251 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13252 function descriptors on ELFv1.
13253 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13254 set up r12 at function entry.
13256 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13258 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13259 (struct gdbarch_tdep): New member elf_abi.
13261 * rs6000-tdep.c: Include "elf/ppc64.h".
13262 (rs6000_gdbarch_init): Detect ELF ABI version.
13264 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13266 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13267 within a register pair holding a DFP 128-bit value on little-endian.
13268 (ppc64_sysv_abi_return_value_base): Likewise.
13269 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13270 (dfp_pseudo_register_write): Likewise.
13272 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13274 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13275 offset on little-endian when passing _Decimal32.
13276 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13278 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13280 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13281 of the overlapped FP register within the VSX register on little-
13283 (efpr_pseudo_register_write): Likewise.
13285 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13287 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13288 offset on little-endian when passing small structures.
13290 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13292 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13293 (struct ppc64_sysv_argpos): New data structure.
13294 (ppc64_sysv_abi_push_float): Remove.
13295 (ppc64_sysv_abi_push_val): New function.
13296 (ppc64_sysv_abi_push_integer): Likewise.
13297 (ppc64_sysv_abi_push_freg): Likewise.
13298 (ppc64_sysv_abi_push_vreg): Likewise.
13299 (ppc64_sysv_abi_push_param): Likewise.
13300 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13301 (ppc64_sysv_abi_return_value_base): New function.
13302 (ppc64_sysv_abi_return_value): Refactor to use it.
13304 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13306 * NEWS: Document new target powerpc64le-*-linux*.
13308 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13310 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13311 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13313 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13314 register set used in ELF core dumps. Add floating-point register set.
13316 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13318 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13319 dwarf2_to_gdb[] table using symbolic constants. Adjust
13320 penultimate entry from number representing the PC register
13321 to symbolic constant representing the MDR register. Add
13322 constant for the PC register to the end of the table.
13324 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13326 * bsd-kvm.c: Include <sys/param.h>
13328 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13330 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13332 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13334 * ada-lang.h (clear_ada_sym_cache): Delete.
13336 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13338 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13340 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13342 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13343 the sigreturn register save area only if the syscall is
13346 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13348 * valops.c (value_slice): Minor reformatting.
13350 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13352 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13354 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13356 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13357 New static globals.
13358 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13359 (ada_ignore_descriptive_types_p): New static global.
13360 (find_parallel_type_by_descriptive_type): Return immediately
13361 if ada_ignore_descriptive_types_p is set.
13362 (_initialize_ada_language): Register new commands "maintenance
13363 set ada", "maintenance show ada", "maintenance set ada
13364 ignore-descriptive-types" and "maintenance show ada
13365 ignore-descriptive-types".
13366 * NEWS: Add entry for new "maint ada set/show
13367 ignore-descriptive-types" commands.
13369 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13371 * record-btrace.c (record_btrace_close): Call btrace_teardown
13374 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13376 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13379 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13381 * ada-typeprint (type_is_full_subrange_of_target_type):
13383 (print_range): Add parameter bounds_prefered_p. If not set,
13384 try printing range types using the name of their base type.
13385 (print_range_type): Add parameter bounds_prefered_p.
13386 Use it in call to print_range.
13387 (print_array_type, ada_print_type): Update calls to print_range
13388 and print_range_type.
13390 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13392 * ada-typeprint.c (print_array_type, print_choices, print_range)
13393 (print_range_bound, print_dynamic_range_bound, print_range_type):
13394 Remove declaration.
13396 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13398 * ada-typeprint.c (print_range): Add missing empty line
13399 after local declaration.
13401 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13403 * ada-valprint.c (print_optional_low_bound): Get index_type's
13404 target type for as long as it is a TYPE_CODE_RANGE.
13406 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13408 * procfs.c (procfs_make_note_section): Remove assertion and
13409 associated comment.
13411 2014-01-24 Yao Qi <yao@codesourcery.com>
13413 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13414 * corelow.c (get_core_siginfo): Likewise.
13416 2014-01-24 Yao Qi <yao@codesourcery.com>
13418 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13419 ULONGEST. Don't check 'len' is negative.
13420 (remote_write_bytes): Change type of 'len' to ULONGEST.
13422 2014-01-23 Tom Tromey <tromey@redhat.com>
13425 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13426 Handle exception from frame.block.
13427 (FrameVars.fetch_frame_locals): Likewise.
13429 2014-01-23 Tom Tromey <tromey@redhat.com>
13432 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13433 on a NULL pointer. Move "goto error" to correct place.
13435 2014-01-23 Tom Tromey <tromey@redhat.com>
13438 * python/py-framefilter.c (apply_frame_filter): Call
13439 ensure_python_env after computing gdbarch.
13441 2014-01-23 Yao Qi <yao@codesourcery.com>
13443 * target.c (raw_memory_xfer_partial): Change argument type
13444 from void * to gdb_byte *.
13445 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13447 2014-01-22 Doug Evans <dje@google.com>
13449 New gdbserver option --debug-format=timestamp.
13450 * NEWS: Mention it.
13452 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13454 * syscalls/s390x-linux.xml: New file.
13455 * syscalls/s390-linux.xml: New file.
13456 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13457 (XML_SYSCALL_FILENAME_S390X): Likewise.
13458 (op_svc): New enum value for SVC opcode.
13459 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13460 (s390_linux_get_syscall_number): New function.
13461 (s390_gdbarch_init): Register '*get_syscall_number' and the
13462 syscall xml file name.
13463 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13464 "s390-linux.xml" and "s390x-linux.xml".
13465 * NEWS: Announce new feature.
13467 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13469 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13471 2014-01-22 Pedro Alves <palves@redhat.com>
13473 * xtensa-config.c: Include defs.h.
13475 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13477 * common/common-utils.h: Add "ARI:" comment beside __func__
13480 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13482 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13483 documentation a bit.
13485 2014-01-21 Roland McGrath <mcgrathr@google.com>
13487 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13488 * configure: Regenerate.
13489 * aclocal.m4: Regenerate.
13490 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13491 New substituted variables.
13492 (install-strip): New target.
13493 (INSTALL_SCRIPT): New substituted variable.
13494 (FLAGS_TO_PASS): Add it.
13495 (install-only): Use $(INSTALL_SCRIPT) rather than
13496 $(INSTALL_PROGRAM) for gcore.
13498 2014-01-20 Tom Tromey <tromey@redhat.com>
13500 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13503 2014-01-20 Tom Tromey <tromey@redhat.com>
13505 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13506 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13507 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13508 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13509 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13510 (struct cmd_list_element) <flags>: Remove.
13511 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13512 doc_allocated>: New fields.
13513 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13515 * maint.c (maintenance_do_deprecate): Update.
13516 * top.c (execute_command): Update.
13518 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13520 * xtensa-linux-nat.c: Include asm/ptrace.h.
13522 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13524 * Makefile.in (SFILES): Add d-support.c.
13525 (COMMON_OBS): Add d-support.o.
13526 * d-lang.h (d_parse_symbol): Add comment, now defined in
13528 * d-lang.c (parse_call_convention)
13529 (parse_attributes, parse_function_types)
13530 (parse_function_args, parse_type, parse_identifier)
13531 (call_convention_p, d_parse_symbol): Move functions to ...
13532 * d-support.c: ... New file.
13534 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13536 * d-lang.h (d_parse_symbol): Add declaration.
13537 * d-lang.c (extract_identifiers)
13538 (extract_type_info): Remove functions.
13539 (parse_call_convention, parse_attributes)
13540 (parse_function_types, parse_function_args)
13541 (parse_type, parse_identifier, call_convention_p)
13542 (d_parse_symbol): New functions.
13543 (d_demangle): Use d_parse_symbol to demangle D symbols.
13545 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13547 * d-lang.h (struct builtin_d_type): New data type.
13548 (builtin_d_type): Add declaration.
13549 * d-lang.c (d_language_arch_info, build_d_types)
13550 (builtin_d_type): New functions.
13551 (enum d_primitive_types): New data type.
13552 (d_language_defn): Change c_language_arch_info to
13553 d_language_arch_info.
13554 (d_type_data): New static variable.
13555 (_initialize_d_language): Initialize d_type_data.
13557 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13559 * d-lang.h (d_main_name): Add declaration.
13560 * d-lang.c (d_main_name): New function.
13561 * symtab.c (find_main_name): Add call to d_main_name.
13563 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13565 * d-lang.c (d_language_defn): Change macro_expansion_c to
13566 macro_expansion_no.
13568 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13570 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13572 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13574 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13575 gdb_exception" declaration.
13576 * remote.c (getpkt_or_notif_sane): Likewise.
13578 2014-01-17 Doug Evans <dje@google.com>
13580 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13581 function, contents of dirnames_to_char_ptr_vec_append moved here.
13582 (delim_string_to_char_ptr_vec): New function.
13583 (dirnames_to_char_ptr_vec_append): Rewrite.
13584 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13586 2014-01-17 Doug Evans <dje@google.com>
13588 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13590 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13591 #include "common-utils.h".
13592 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13593 * common/vec.h (VEC_ASSERT_PASS): Update.
13594 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13595 (MACH_CHECK_ERROR): Update.
13597 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13599 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13601 * gdbarch.h: Regenerate.
13603 2014-01-16 Tom Tromey <tromey@redhat.com>
13605 * value.c (struct value) <regnum>: Move earlier.
13607 2014-01-16 Tom Tromey <tromey@redhat.com>
13609 * remote.c (extended_remote_create_inferior): Rename from
13610 extended_remote_create_inferior_1. Add "ops" argument. Remove
13611 old implementation.
13613 2014-01-16 Pedro Alves <palves@redhat.com>
13615 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13616 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13619 2014-01-16 Doug Evans <dje@google.com>
13621 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13623 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13625 * btrace.h (btrace_thread_flag): New.
13626 (struct btrace_thread_info) <flags>: New.
13627 * record-btrace.c (record_btrace_resume_thread)
13628 (record_btrace_find_thread_to_move, btrace_step_no_history)
13629 (btrace_step_stopped, record_btrace_start_replaying)
13630 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13631 (record_btrace_find_resume_thread): New.
13632 (record_btrace_resume, record_btrace_wait): Extend.
13633 (record_btrace_can_execute_reverse): New.
13634 (record_btrace_open): Fail in non-stop mode.
13635 (record_btrace_set_replay): Split into this, ...
13636 (record_btrace_stop_replaying): ... this, ...
13637 (record_btrace_clear_histories): ... and this.
13638 (init_record_btrace_ops): Init to_can_execute_reverse.
13639 * NEWS: Announce it.
13641 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13643 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13644 (forward_target_decr_pc_after_break)
13645 (target_decr_pc_after_break): New.
13646 * target.c (forward_target_decr_pc_after_break)
13647 (target_decr_pc_after_break): New.
13648 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13649 instead of gdbarch_decr_pc_after_break.
13650 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13651 instead of gdbarch_decr_pc_after_break.
13652 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13653 instead of gdbarch_decr_pc_after_break.
13654 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13655 instead of gdbarch_decr_pc_after_break.
13656 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13657 instead of gdbarch_decr_pc_after_break.
13658 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13659 instead of gdbarch_decr_pc_after_break.
13661 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13663 * btrace.c: Include regcache.h.
13664 (btrace_add_pc): New.
13665 (btrace_enable): Call btrace_add_pc.
13666 (btrace_is_empty): New.
13667 * btrace.h (btrace_is_empty): New.
13668 * record-btrace.c (require_btrace, record_btrace_info): Call
13671 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13673 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13674 Support delta reads.
13675 (linux_disable_btrace): Change return type.
13676 * common/linux-btrace.h (linux_read_btrace): Change parameters
13677 and return type to allow error reporting. Update users.
13678 (linux_disable_btrace): Change return type. Update users.
13679 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13681 (btrace_error): New.
13682 (btrace_block) <begin>: Comment on BEGIN == 0.
13683 * btrace.c (btrace_compute_ftrace): Start from the end of
13685 (btrace_stitch_trace, btrace_clear_history): New.
13686 (btrace_fetch): Read delta trace, return if replaying.
13687 (btrace_clear): Move clear history code to btrace_clear_history.
13688 (parse_xml_btrace): Throw an error if parsing failed.
13689 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13690 and return type to allow error reporting.
13691 (target_read_btrace): Change parameters and return type to allow
13693 * target.c (target_read_btrace): Update.
13694 * remote.c (remote_read_btrace): Support delta reads. Pass
13696 * NEWS: Announce it.
13698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13700 * record.h (record_btrace_frame_unwind)
13701 (record_btrace_tailcall_frame_unwind): New declarations.
13702 * dwarf2-frame: Include record.h
13703 (dwarf2_frame_cfa): Throw an error for btrace frames.
13704 * record-btrace.c: Include hashtab.h.
13705 (btrace_get_bfun_name): New.
13706 (btrace_call_history): Call btrace_get_bfun_name.
13707 (struct btrace_frame_cache): New.
13709 (bfcache_hash, bfcache_eq, bfcache_new): New.
13710 (btrace_get_frame_function): New.
13711 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13712 (record_btrace_frame_this_id): Compute own id.
13713 (record_btrace_frame_prev_register): Provide PC, throw_error
13714 for all other registers.
13715 (record_btrace_frame_sniffer): Detect btrace frames.
13716 (record_btrace_tailcall_frame_sniffer): New.
13717 (record_btrace_frame_dealloc_cache): New.
13718 (record_btrace_frame_unwind): Add new functions.
13719 (record_btrace_tailcall_frame_unwind): New.
13720 (_initialize_record_btrace): Allocate cache.
13721 * btrace.c (btrace_clear): Call reinit_frame_cache.
13722 * NEWS: Announce it.
13724 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13726 * record-btrace.c (record_btrace_set_replay)
13727 (record_btrace_goto_begin, record_btrace_goto_end)
13728 (record_btrace_goto): New.
13729 (init_record_btrace_ops): Initialize them.
13730 * NEWS: Announce it.
13732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13734 * record-btrace.c (record_btrace_find_new_threads)
13735 (record_btrace_thread_alive): New.
13736 (init_record_btrace_ops): Initialize to_find_new_threads and
13739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13741 * record-btrace.c (record_btrace_resume): New.
13742 (record_btrace_wait): New.
13743 (init_record_btrace_ops): Initialize to_wait and to_resume.
13745 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13747 * record-btrace.c (record_btrace_xfer_partial)
13748 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13749 (record_btrace_allow_memory_access): New.
13750 (init_record_btrace_ops): Initialize new methods.
13751 * target.c (raw_memory_xfer_partial): Bail out if target reports
13752 that this memory is not available.
13754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13756 * target.h (target_ops) <to_insert_breakpoint>
13757 <to_remove_breakpoint>: Add target_ops parameter.
13758 (forward_target_insert_breakpoint): New.
13759 (forward_target_remove_breakpoint): New.
13760 (memory_remove_breakpoint, memory_insert_breakpoint):
13761 Add target_ops parameter.
13762 * target.c (target_insert_breakpoint): Split into this and ...
13763 (forward_target_insert_breakpoint): ... this.
13764 (target_remove_breakpoint): Split into this and ...
13765 (forward_target_remove_breakpoint): ... this.
13766 (debug_to_insert_breakpoint): Add target_ops parameter.
13767 Call forward_target_insert_breakpoint.
13768 (debug_to_remove_breakpoint): Add target_ops parameter.
13769 Call forward_target_remove_breakpoint.
13770 (update_current_target): Do not inherit or default to_insert_breakpoint
13771 and to_remove_breakpoint.
13772 * corelow.c (ignore): Add target_ops parameter.
13773 * exec.c (ignore): Add target_ops parameter.
13774 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13775 Add target_ops parameter.
13776 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13777 Add target_ops parameter.
13778 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13779 Add target_ops parameter.
13780 * record-full.c (record_full_beneath_to_insert_breakpoint)
13781 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13782 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13783 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13784 (record_full_core_remove_breakpoint): Add target_ops parameter.
13786 (record_full_beneath_to_insert_breakpoint_ops)
13787 (record_full_beneath_to_remove_breakpoint_ops)
13788 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13789 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13790 tmp_to_remove_breakpoint_ops,
13791 record_full_beneath_to_insert_breakpoint_ops, and
13792 record_full_beneath_to_remove_breakpoint_ops.
13793 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13794 (m32r_remove_breakpoint): Add target_ops parameter.
13795 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13796 Add target_ops parameter.
13797 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13798 Add target_ops parameter.
13800 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13801 Markus Metzger <markus.t.metzger@intel.com>
13803 * record-btrace.c: Include frame-unwind.h.
13804 (record_btrace_frame_unwind_stop_reason)
13805 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13806 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13808 (init_record_btrace_ops): Install it.
13810 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13812 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13815 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13817 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13820 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13822 * frame-unwind.c: Include target.h.
13823 (frame_unwind_try_unwinder): New function with code from ...
13824 (frame_unwind_find_by_frame): ... here. New variable
13825 unwinder_from_target, call also target_get_unwinder)
13826 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13827 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13828 * target.h (struct target_ops): New fields to_get_unwinder and
13829 to_get_tailcall_unwinder.
13830 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13834 * record-btrace.c (record_btrace_fetch_registers)
13835 (record_btrace_store_registers)
13836 (record_btrace_to_prepare_to_store): New.
13837 (init_record_btrace_ops): Add the above.
13839 2014-01-16 Tom Tromey <tromey@redhat.com>
13841 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13842 * target.h (struct target_ops) <to_prepare_to_store>: Add
13844 (target_prepare_to_store): Add argument.
13845 * target.c (debug_to_prepare_to_store): Add argument.
13846 (update_current_target): Update.
13847 * remote.c (remote_prepare_to_store): Add 'self' argument.
13848 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13849 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13850 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13851 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13853 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13854 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13855 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13856 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13857 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13859 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13861 * btrace.h (replay) <replay>: New.
13862 (btrace_is_replaying): New.
13863 * btrace.c (btrace_clear): Free replay iterator.
13864 (btrace_is_replaying): New.
13865 * record-btrace.c (record_btrace_is_replaying): New.
13866 (record_btrace_info): Print insn number if replaying.
13867 (record_btrace_insn_history): Start at replay position.
13868 (record_btrace_call_history): Start at replay position.
13869 (init_record_btrace_ops): Init to_record_is_replaying.
13871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13873 * record-btrace.c (record_btrace_insn_history_range): Include
13875 (record_btrace_insn_history_from): Adjust range.
13876 (record_btrace_call_history_range): Include
13878 (record_btrace_call_history_from): Adjust range.
13879 * NEWS: Announce changes.
13881 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13883 * record.h (enum record_print_flag)
13884 <record_print_indent_calls>: New.
13885 * record.c (get_call_history_modifiers): Recognize /c modifier.
13886 (_initialize_record): Document /c modifier.
13887 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13888 Reorder fields. Optionally indent the function name. Update
13890 * NEWS: Announce changes.
13892 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13894 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13898 * btrace.c (ftrace_new_function): Start counting at one.
13899 * record-btrace.c (record_btrace_info): Adjust number of calls
13901 * NEWS: Announce it.
13903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13905 * record-btrace.c (btrace_call_history_insn_range): Print
13906 insn range as [begin, end].
13908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13910 * btrace.h (struct btrace_func_link): New.
13911 (enum btrace_function_flag): New.
13912 (struct btrace_inst): Rename to ...
13913 (struct btrace_insn): ...this. Update all users.
13914 (struct btrace_func) <ibegin, iend>: Remove.
13915 (struct btrace_func_link): New.
13916 (struct btrace_func): Rename to ...
13917 (struct btrace_function): ...this. Update all users.
13918 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13919 (number, level, flags>: New.
13920 (struct btrace_insn_iterator): Rename to ...
13921 (struct btrace_insn_history): ...this.
13923 (struct btrace_insn_iterator, btrace_call_iterator): New.
13924 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13925 (struct btrace_target_info) <begin, end, level>
13926 <insn_history, call_history>: New.
13927 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13928 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13929 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13930 (btrace_call_number, btrace_call_begin, btrace_call_end)
13931 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13932 (btrace_find_function_by_number, btrace_set_insn_history)
13933 (btrace_set_call_history): New.
13934 * btrace.c (btrace_init_insn_iterator)
13935 (btrace_init_func_iterator, compute_itrace): Remove.
13936 (ftrace_print_function_name, ftrace_print_filename)
13937 (ftrace_skip_file): Change
13938 parameter to const.
13939 (ftrace_init_func): Remove.
13940 (ftrace_debug): Use new btrace_function fields.
13941 (ftrace_function_switched): Also consider gaining and
13942 losing symbol information).
13943 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13944 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13945 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13947 (ftrace_new_function): Move. Remove debug print.
13948 (ftrace_update_lines, ftrace_update_insns): New.
13949 (ftrace_update_function): Check for call, ret, and jump.
13950 (compute_ftrace): Renamed to ...
13951 (btrace_compute_ftrace): ...this. Rewritten to compute call
13953 (btrace_fetch, btrace_clear): Updated.
13954 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13955 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13956 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13957 (btrace_call_number, btrace_call_begin, btrace_call_end)
13958 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13959 (btrace_find_function_by_number, btrace_set_insn_history)
13960 (btrace_set_call_history): New.
13961 * record-btrace.c (require_btrace): Use new btrace thread
13963 (record_btrace_info, btrace_insn_history)
13964 (record_btrace_insn_history, record_btrace_insn_history_range):
13965 Use new btrace thread info fields and new iterator.
13966 (btrace_func_history_src_line): Rename to ...
13967 (btrace_call_history_src_line): ...this. Use new btrace
13968 thread info fields.
13969 (btrace_func_history): Rename to ...
13970 (btrace_call_history): ...this. Use new btrace thread info
13971 fields and new iterator.
13972 (record_btrace_call_history, record_btrace_call_history_range):
13973 Use new btrace thread info fields and new iterator.
13975 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13977 * frame.h (frame_id_build_unavailable_stack_special): New.
13978 * frame.c (frame_id_build_unavailable_stack_special): New.
13980 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13982 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13983 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13984 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13986 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13987 (i386_insn_is_jump, i386_jmp_p): New.
13988 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13989 insn_is_jump to gdbarch.
13990 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13991 * gdbarch.h: Regenerated.
13992 * gdbarch.c: Regenerated.
13993 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13994 (default_insn_is_jump): New.
13995 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13996 (default_insn_is_jump): New.
13998 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14000 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14002 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14003 (btrace_read_type) <btrace_read_new>: Change to ...
14004 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14006 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14008 * common/linux-btrace.c (linux_read_btrace): Free trace from
14009 previous iteration.
14011 2014-01-15 Doug Evans <dje@google.com>
14013 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14016 2014-01-15 Tom Tromey <tromey@redhat.com>
14018 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14019 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14020 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14021 (set_objfile_main_name): New function.
14022 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14023 language_of_main>: New fields.
14024 (set_objfile_main_name): Declare.
14025 * symtab.c (find_main_name): Loop over objfiles to find the main
14027 (set_main_name): Now static.
14028 (get_main_info): Add comment.
14029 * symtab.h (set_main_name): Don't declare.
14031 2014-01-15 Tom Tromey <tromey@redhat.com>
14033 * symtab.c (main_progspace_key): New global.
14034 (struct main_info): New.
14035 (name_of_main, language_of_main): Remove.
14036 (get_main_info, main_info_cleanup): New function.
14037 (set_main_name, main_name, main_language): Use get_main_info.
14038 (_initialize_symtab): Initialize main_progspace_key.
14040 2014-01-15 Tom Tromey <tromey@redhat.com>
14042 * dbxread.c (process_one_symbol): Update.
14043 * dwarf2read.c (read_partial_die): Update.
14044 * symfile.c (set_initial_language): Call main_language.
14045 * symtab.c (language_of_main): Now static.
14046 (set_main_name): Add 'lang' parameter.
14047 (find_main_name): Update.
14048 (main_language): New function.
14049 (symtab_observer_executable_changed): Update.
14050 * symtab.h (set_main_name): Update.
14051 (language_of_main): Remove.
14052 (main_language): Declare.
14054 2014-01-15 Tom Tromey <tromey@redhat.com>
14056 * symfile.c (init_entry_point_info): Use new "initialized" field.
14058 * objfiles.h (struct entry_point) <initialized>: New field.
14059 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14060 (struct objfile) <ei>: ...here. Remove.
14061 * objfiles.c (entry_point_address_query): Update.
14063 2014-01-15 Tom Tromey <tromey@redhat.com>
14065 * objfiles.c (entry_point_address_query): Relocate entry point
14067 (objfile_relocate1): Do not relocate entry point address.
14068 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14069 <the_bfd_section_index>: New field.
14070 * symfile.c (init_entry_point_info): Find the entry point's
14073 2014-01-15 Tom Tromey <tromey@redhat.com>
14075 * solib-frv.c (enable_break): Use entry_point_address_query.
14077 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14079 * NEWS: Add note on improved process record-replay on
14080 arm*-linux* targets.
14082 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14084 * arm-tdep.c (enum arm_record_result): New enum.
14085 (arm_record_unsupported_insn): New function.
14086 (arm_record_coproc_data_proc): Removed.
14087 (thumb2_record_ld_st_multiple): New function.
14088 (thumb2_record_ld_st_dual_ex_tbb): New function.
14089 (thumb2_record_data_proc_sreg_mimm): New function.
14090 (thumb2_record_ps_dest_generic): New function.
14091 (thumb2_record_branch_misc_cntrl): New function.
14092 (thumb2_record_str_single_data): New function.
14093 (thumb2_record_ld_mem_hints): New function.
14094 (thumb2_record_ld_word): New function.
14095 (thumb2_record_lmul_lmla_div): New function.
14096 (thumb2_record_decode_insn_handler): New function.
14097 (decode_insn): Add thumb32 instruction handlers.
14099 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14101 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14102 (struct arm_linux_record_tdep): Declare.
14103 (arm_canonicalize_syscall): New function.
14104 (arm_all_but_pc_registers_record): New function.
14105 (arm_linux_syscall_record): New function.
14106 (arm_linux_init_abi): Add syscall recording constructs.
14107 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14108 decoding. (arm_record_coproc_data_proc): Update arm syscall
14110 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14111 <arm_syscall_record>: New field.
14112 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14115 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14117 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14118 register for push instruction recording.
14120 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14122 * arm-tdep.c (thumb_record_misc): Update to correct logical
14123 error while recording ldm, ldmia and pop instructions.
14125 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14127 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14129 2014-01-15 Pedro Alves <palves@redhat.com>
14131 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14132 (go32_resume, go32_fetch_registers, store_register)
14133 (go32_store_registers, go32_prepare_to_store)
14134 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14135 (go32_create_inferior, go32_can_run, go32_terminal_init)
14136 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14139 2014-01-15 Tom Tromey <tromey@redhat.com>
14141 * target.h (async_callback_ftype): New typedef.
14142 (struct target_ops) <to_async>: Use it.
14144 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14146 * python/py-value.c (get_field_type): Remove unnecessary curly
14147 braces for single-statement if block.
14149 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14151 * python/py-type.c (convert_field): Add missing empty line
14152 after declarations.
14154 2014-01-14 Doug Evans <dje@google.com>
14156 * symfile.h (expand_symtabs_matching): Renamed from
14157 expand_partial_symbol_names. Update prototype.
14158 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14159 * symfile.c (expand_symtabs_matching): Renamed from
14160 expand_partial_symbol_names. New args file_matcher, kind.
14161 Rename arg fun to symbol_matcher.
14162 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14163 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14164 ada_expand_partial_symbol_name.
14165 (ada_make_symbol_completion_list): Update to call
14166 expand_symtabs_matching.
14167 (ada_add_global_exceptions): Call expand_symtabs_matching.
14168 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14169 call map_symbol_filenames.
14170 * symtab.c (sources_info): Update to call map_symbol_filenames.
14171 (search_symbols): Call expand_symtabs_matching.
14172 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14173 (default_make_symbol_completion_list_break_on): Update to call
14174 expand_symtabs_matching.
14175 (make_source_files_completion_list): Update to call
14176 map_symbol_filenames.
14178 2014-01-14 Doug Evans <dje@google.com>
14180 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14181 (expand_symtabs_symbol_matcher_ftype): New typedef.
14182 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14183 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14184 * symfile.c (expand_partial_symbol_names): Update to use
14185 expand_symtabs_symbol_matcher_ftype.
14186 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14187 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14188 Arg name_matcher renamed to symbol_matcher.
14189 * psymtab.c (recursively_search_psymtabs): Update to use
14190 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14192 (expand_symtabs_matching_via_partial): Update to use
14193 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14194 Arg name_matcher renamed to symbol_matcher.
14196 2014-01-14 Doug Evans <dje@google.com>
14198 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14199 (map_partial_symbol_filenames): Ditto.
14200 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14201 (map_partial_symbol_filenames): Ditto.
14202 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14203 (map_partial_symbol_filenames): Ditto.
14204 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14205 (map_partial_symbol_filenames): Ditto.
14206 * symtab.c: Delete #include "psymtab.h".
14208 2014-01-14 Pedro Alves <palves@redhat.com>
14209 Tom Tromey <tromey@redhat.com>
14211 * infrun.c (use_displaced_stepping): Use find_record_target
14212 instead of RECORD_IS_USED.
14213 (adjust_pc_after_break): Use record_full_is_used instead of
14215 * record-btrace.c (record_btrace_open): Call record_preopen
14216 instead of checking RECORD_IS_USED.
14217 * record-full.c (record_full_shortname)
14218 (record_full_core_shortname): New globals.
14219 (record_full_is_used): New function.
14220 (find_full_open): Call record_preopen instead of checking
14222 (init_record_full_ops): Set the target's shortname to
14223 record_full_shortname.
14224 (init_record_full_core_ops): Set the target's shortname to
14225 record_full_core_shortname.
14226 * record-full.h (record_full_is_used): Declare.
14227 * record.c (find_record_target): Make extern.
14228 (record_preopen): New function.
14229 * record.h (RECORD_IS_USED): Delete macro.
14230 (find_record_target, record_preopen): Declare functions.
14232 2014-01-14 Yao Qi <yao@codesourcery.com>
14234 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14235 'len''s type to ULONGEST.
14236 (core_xfer_shared_libraries_aix): Likewise.
14237 * gdbarch.c, gdbarch.h: Regenerated.
14238 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14239 Change type of 'len' to ULONGEST.
14240 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14241 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14243 2014-01-14 Yao Qi <yao@codesourcery.com>
14245 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14246 type of 'len' to ULONGEST.
14247 (linux_xfer_osdata_processgroups): Likewise.
14248 (linux_xfer_osdata_threads): Likewise.
14249 (linux_xfer_osdata_fds): Likewise.
14250 (linux_xfer_osdata_isockets): Likewise.
14251 (linux_xfer_osdata_shm): Likewise.
14252 (linux_xfer_osdata_sem): Likewise.
14253 (linux_xfer_osdata_msg): Likewise.
14254 (linux_common_xfer_osdata): Likewise.
14255 (struct osdata_type) <getter>: Likewise.
14256 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14259 2014-01-14 Yao Qi <yao@codesourcery.com>
14261 * target.h (target_xfer_partial_ftype): Update.
14262 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14264 * aix-thread.c (aix_thread_xfer_partial): Change type of
14265 argument 'len' to ULONGEST.
14266 * auxv.c (procfs_xfer_auxv): Likewise.
14267 (ld_so_xfer_auxv): Likewise.
14268 (memory_xfer_auxv): Likewise.
14269 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14270 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14271 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14272 * corelow.c (core_xfer_partial): Likewise.
14273 * ctf.c (ctf_xfer_partial): Likewise.
14274 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14276 (darwin_read_dyld_info): Likewise.
14277 (darwin_xfer_partial): Likewise.
14278 * exec.c (section_table_xfer_memory_partial): Likewise.
14279 (exec_xfer_partial): Likewise.
14280 * exec.h (section_table_xfer_memory_partial): Update
14282 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14283 instead of plongest.
14284 (gnu_xfer_partial): Likewise.
14285 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14286 (ia64_hpux_xfer_solib_got): Likewise.
14287 (ia64_hpux_xfer_partial): Likewise.
14288 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14289 * inf-ptrace.c (inf_ptrace_xfer_partial):
14290 * inf-ttrace.c (inf_ttrace_xfer_partial):
14291 * linux-nat.c (linux_xfer_siginfo): Likewise.
14292 (linux_nat_xfer_partial): Likewise.
14293 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14294 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14295 * monitor.c (monitor_xfer_memory): Likewise.
14296 (monitor_xfer_partial): Likewise.
14297 * procfs.c (procfs_xfer_partial): Likewise.
14298 * record-full.c (record_full_xfer_partial): Likewise.
14299 (record_full_core_xfer_partial): Likewise.
14300 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14301 instead of plongest.
14302 (gdbsim_xfer_partial): Likewise.
14303 * remote.c (remote_xfer_partial): Likewise.
14304 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14305 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14307 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14308 (rs6000_xfer_shared_libraries): Likewise.
14309 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14310 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14311 (sparc_xfer_partial): Likewise.
14312 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14313 (spu_xfer_partial): Likewise.
14314 * spu-multiarch.c (spu_xfer_partial): Likewise.
14315 * target.c (target_read_live_memory): Likewise.
14316 (memory_xfer_live_readonly_partial): Likewise.
14317 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14318 (target_xfer_partial, default_xfer_partial): Likewise.
14319 (current_xfer_partial): Likewise.
14320 * tracepoint.c (tfile_xfer_partial): Likewise.
14321 * windows-nat.c (windows_xfer_memory): Likewise. Call
14322 pulongest instead of plongest.
14323 (windows_xfer_partial): Likewise.
14324 (windows_xfer_shared_libraries): Likewise.
14326 2014-01-14 Yao Qi <yao@codesourcery.com>
14328 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14329 target_xfer_partial_ftype.
14331 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14335 * valops.c (value_struct_elt_bitpos): New function
14336 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14337 object to 'None' if the field name is an empty string ("").
14338 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14339 attribute to look for a field when 'name' is 'None'.
14340 (get_field_type): New function
14342 2014-01-13 Doug Evans <dje@google.com>
14345 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14346 (try_open_dwop_file): Ditto.
14347 * gdb_bfd.c: #include "vec.h".
14348 (bfdp): New typedef.
14349 (struct gdb_bfd_data): New member included_bfds.
14350 (gdb_bfd_unref): Unref all included bfds.
14351 (gdb_bfd_record_inclusion): New function.
14352 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14354 2014-01-13 Tom Tromey <tromey@redhat.com>
14356 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14358 2014-01-13 Tom Tromey <tromey@redhat.com>
14360 * defs.h (use_windows): Remove.
14361 * gdb.c (main): Update.
14362 * main.c (captured_main, gdb_main): Update.
14363 * main.h (struct captured_main_args) <use_windows>: Remove.
14364 * top.c (use_windows): Remove.
14366 2014-01-13 Tom Tromey <tromey@redhat.com>
14368 * defs.h (deprecated_flush_hook): Remove.
14370 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14373 * linux-thread-db.c (try_thread_db_load): Add parameter
14374 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14375 (try_thread_db_load_from_pdir_1): Move it there from here.
14376 (try_thread_db_load_from_sdir): Update caller.
14377 (try_thread_db_load_from_dir): Move it there from here.
14379 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14381 * regformats/regdat.sh: Always rewrite the register file.
14383 2014-01-13 Pedro Alves <palves@redhat.com>
14385 * Makefile.in (CHECK_HEADERS): New variable.
14386 (check-headers:): New rule.
14388 2014-01-13 Tom Tromey <tromey@redhat.com>
14390 * cli/cli-setshow.c (do_set_command): Update.
14391 * defs.h (deprecated_set_hook): Remove.
14392 * top.c (deprecated_set_hook): Remove.
14394 2014-01-13 Pedro Alves <palves@redhat.com>
14396 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14397 the tracepoint if the PC is a pseudo-register.
14399 2014-01-13 Tom Tromey <tromey@redhat.com>
14401 * defs.h (XCALLOC): Remove.
14402 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14403 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14404 * dwarf2loc.c (allocate_piece_closure): Likewise.
14405 * elfread.c (elf_symfile_segments): Likewise.
14406 (elf_symfile_segments): Likewise.
14407 * gdbtypes.c (copy_type_recursive): Likewise.
14408 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14409 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14410 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14412 * mt-tdep.c (mt_gdbarch_init): Likewise.
14413 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14415 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14416 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14417 * registry.c (registry_alloc_data): Likewise.
14418 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14419 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14420 * serial.c (serial_fdopen_ops): Likewise.
14421 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14423 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14424 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14427 2014-01-13 Tom Tromey <tromey@redhat.com>
14429 * defs.h (XMALLOC): Remove.
14430 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14431 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14432 * cli-out.c (struct ui_out *): Likewise.
14433 * cli/cli-dump.c (add_dump_command): Likewise.
14434 (add_dump_command): Likewise.
14435 * complaints.c (get_complaints): Likewise.
14436 (find_complaint): Likewise.
14437 * dwarf2-frame.c (execute_cfa_program): Likewise.
14438 * dwarf2read.c (abbrev_table_read_table): Likewise.
14439 * gdbarch.sh: Likewise.
14440 * gdbarch.c: Rebuild.
14441 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14442 * interps.c (interp_new): Likewise.
14443 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14444 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14445 * mi/mi-console.c (mi_console_file_new): Likewise.
14446 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14447 * mi/mi-out.c (mi_out_new): Likewise.
14448 * mi/mi-parse.c (mi_parse): Likewise.
14449 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14450 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14451 * observer.c (xalloc_observer_list_node): Likewise.
14452 * regcache.c (regcache_xmalloc_1): Likewise.
14453 * reggroups.c (reggroup_new): Likewise.
14454 (_initialize_reggroup): Likewise.
14455 * registry.c (register_data_with_cleanup): Likewise.
14456 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14457 * ser-base.c (serial_ttystate): Likewise.
14458 * ser-mingw.c (make_pipe_state): Likewise.
14459 * ser-pipe.c (pipe_open): Likewise.
14460 * serial.c (serial_open): Likewise.
14461 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14462 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14463 (tui_alloc_win_info): Likewise.
14464 (tui_add_content_elements): Likewise.
14465 * tui/tui-file.c (tui_file_new): Likewise.
14466 * tui/tui-out.c (tui_out_new): Likewise.
14467 * ui-file.c (mem_file_new): Likewise.
14468 * ui-out.c (push_level): Likewise.
14469 (make_cleanup_ui_out_end): Likewise.
14470 (append_header_to_list): Likewise.
14471 (ui_out_new): Likewise.
14472 * user-regs.c (user_reg_add_builtin): Likewise.
14474 2014-01-13 Tom Tromey <tromey@redhat.com>
14476 * defs.h (XZALLOC): Remove.
14477 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14478 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14479 (get_ada_tasks_inferior_data): Likewise.
14480 * auto-load.c (get_auto_load_pspace_data): Likewise.
14481 * auxv.c (get_auxv_inferior_data): Likewise.
14482 * bfd-target.c (target_bfd_reopen): Likewise.
14483 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14484 (deprecated_insert_raw_breakpoint): Likewise.
14485 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14486 * corelow.c (core_open): Likewise.
14487 * darwin-nat.c (darwin_check_new_threads): Likewise.
14488 (darwin_attach_pid): Likewise.
14489 * dummy-frame.c (dummy_frame_push): Likewise.
14490 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14491 * dwarf2loc.c (allocate_piece_closure): Likewise.
14492 * elfread.c (elf_symfile_segments): Likewise.
14493 * eval.c (ptrmath_type_p): Likewise.
14494 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14495 * gdbtypes.c (alloc_type_arch): Likewise.
14496 (alloc_type_instance): Likewise.
14497 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14498 * inf-child.c (inf_child_can_use_agent): Likewise.
14499 * inflow.c (get_inflow_inferior_data): Likewise.
14500 * infrun.c (save_infcall_suspend_state): Likewise.
14501 * jit.c (jit_reader_load): Likewise.
14502 (get_jit_objfile_data): Likewise.
14503 (get_jit_program_space_data): Likewise.
14504 (jit_object_open_impl): Likewise.
14505 (jit_symtab_open_impl): Likewise.
14506 (jit_block_open_impl): Likewise.
14507 (jit_frame_sniffer): Likewise.
14508 * linux-fork.c (add_fork): Likewise.
14509 * maint.c (make_command_stats_cleanup): Likewise.
14510 * objfiles.c (get_objfile_pspace_data): Likewise.
14511 * opencl-lang.c (struct lval_closure): Likewise.
14512 * osdata.c (osdata_start_osdata): Likewise.
14513 * progspace.c (new_address_space): Likewise.
14514 (add_program_space): Likewise.
14515 * remote-sim.c (get_sim_inferior_data): Likewise.
14516 * sh-tdep.c (sh_gdbarch_init): Likewise.
14517 * skip.c (Ignore): Likewise.
14518 (skip_delete_command): Likewise.
14519 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14520 (library_list_start_library): Likewise.
14521 (solib_aix_current_sos): Likewise.
14522 * solib-darwin.c (get_darwin_info): Likewise.
14523 (darwin_current_sos): Likewise.
14524 * solib-dsbt.c (get_dsbt_info): Likewise.
14525 * solib-ia64-hpux.c (new_so_list): Likewise.
14526 (ia64_hpux_get_solib_linkage_addr): Likewise.
14527 * solib-spu.c (append_ocl_sos): Likewise.
14528 (spu_current_sos): Likewise.
14529 * solib-svr4.c (get_svr4_info): Likewise.
14530 (svr4_keep_data_in_core): Likewise.
14531 (library_list_start_library): Likewise.
14532 (svr4_default_sos): Likewise.
14533 (svr4_read_so_list): Likewise.
14534 * solib-target.c (library_list_start_library): Likewise.
14535 (solib_target_current_sos): Likewise.
14536 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14537 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14538 * symfile.c (default_symfile_segments): Likewise.
14539 * target-descriptions.c (tdesc_data_init): Likewise.
14540 (tdesc_create_reg): Likewise.
14541 (struct tdesc_type *): Likewise.
14542 (tdesc_create_vector): Likewise.
14543 (tdesc_set_struct_size): Likewise.
14544 (struct tdesc_type *): Likewise.
14545 (tdesc_free_feature): Likewise.
14546 (tdesc_create_feature): Likewise.
14547 * windows-nat.c (windows_add_thread): Likewise.
14548 (windows_make_so): Likewise.
14549 * xml-support.c (gdb_xml_body_text): Likewise.
14550 (gdb_xml_create_parser_and_cleanup): Likewise.
14551 (xml_process_xincludes): Likewise.
14552 * xml-syscall.c (allocate_syscalls_info): Likewise.
14553 (syscall_create_syscall_desc): Likewise.
14555 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14557 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14558 function, with code from i386_stap_parse_special_token.
14559 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14560 (i386_stap_parse_special_token): Move code to the two functions
14561 above; simplify it.
14563 2014-01-09 Pedro Alves <palves@redhat.com>
14564 Hui Zhu <hui@codesourcery.com>
14567 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14568 bp_err_string. Don't mark the location shlib_disabled if the
14569 error thrown wasn't a generic or memory error. Catch errors
14570 thrown while inserting breakpoints in overlayed code. Output
14571 error message of software breakpoints.
14572 * remote.c (remote_insert_breakpoint): If this breakpoint has
14573 target-side commands but this stub doesn't support Z0 packets,
14574 throw NOT_SUPPORTED_ERROR error.
14575 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14576 * target.h (target_insert_breakpoint): Extend comment.
14577 (target_insert_hw_breakpoint): Add comment.
14579 2014-01-08 Pedro Alves <palves@redhat.com>
14581 * remote.c (remote_add_thread): Add threads silently if starting
14583 (remote_notice_new_inferior): If in all-stop, and starting up,
14584 don't call notice_new_inferior.
14585 (get_current_thread): New function, factored out from ...
14586 (add_current_inferior_and_thread): ... this. Adjust.
14587 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14588 found any thread, then select the remote's current thread as GDB's
14589 current thread too.
14591 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14593 * NEWS: Create a new section for the next release branch.
14594 Rename the section of the current branch, now that it has
14597 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14599 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14600 * version.in: Bump version to 7.7.50.DATE-cvs.
14602 2014-01-08 Yao Qi <yao@codesourcery.com>
14604 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14605 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14606 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14608 2014-01-08 Yao Qi <yao@codesourcery.com>
14610 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14611 return value of bfd_get_filename to symbol_file_add_from_bfd.
14613 2014-01-08 Pierre Muller <muller@sourceware.org>
14616 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14617 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14618 to prim_record_mininal_symbol_and_info.
14619 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14620 in call to prim_record_minimal_symbol_and_info.
14621 (read_pe_exported_syms): Set index field of section_data.
14623 2014-01-07 Andrew Pinski <apinski@cavium.com>
14625 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14626 * features/aarch64.c: Regenerate.
14628 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14630 * target.c (return_null): Define.
14631 (update_current_target): Use it instead of return_zero for
14632 functions that return a pointer.
14634 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14636 * source.c (add_path): Fix check for duplicated paths in the previously
14639 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14641 * ada-lang.c: Remove duplicated include statements.
14642 * alphabsd-nat.c: Ditto.
14643 * amd64-darwin-tdep.c: Ditto.
14644 * amd64fbsd-nat.c: Ditto.
14645 * auto-load.c: Ditto.
14647 * breakpoint.c: Ditto.
14648 * dbxread.c: Ditto.
14649 * fork-child.c: Ditto.
14650 * gdb_usleep.c: Ditto.
14651 * i386-darwin-tdep.c: Ditto.
14652 * i386fbsd-nat.c: Ditto.
14654 * inferior.c: Ditto.
14655 * jv-lang.c: Ditto.
14656 * linux-nat.c: Ditto.
14657 * linux-tdep.c: Ditto.
14658 * m68kbsd-nat.c: Ditto.
14659 * m68klinux-nat.c: Ditto.
14660 * microblaze-tdep.c: Ditto.
14661 * mips-linux-tdep.c: Ditto.
14662 * mn10300-tdep.c: Ditto.
14663 * nto-tdep.c: Ditto.
14664 * opencl-lang.c: Ditto.
14666 * printcmd.c: Ditto.
14667 * regcache.c: Ditto.
14668 * remote-m32r-sdi.c: Ditto.
14670 * symfile.c: Ditto.
14672 * tilegx-linux-nat.c: Ditto.
14673 * tilegx-tdep.c: Ditto.
14674 * tracepoint.c: Ditto.
14676 * vaxbsd-nat.c: Ditto.
14677 * windows-nat.c: Ditto.
14678 * xtensa-tdep.c: Ditto.
14680 2014-01-07 Yao Qi <yao@codesourcery.com>
14682 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14684 2014-01-07 Yao Qi <yao@codesourcery.com>
14685 Joel Brobecker <brobecker@adacore.com>
14687 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14688 (pdc_write_regs): Likewise.
14689 (fetch_regs_kernel_thread): Likewise.
14690 (store_regs_kernel_thread): Likewise.
14692 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14694 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14695 tagged type objects to their actual type.
14697 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14699 * ada-valprint.c (print_field_values): Add "language" parameter.
14700 Update calls to print_field_values and print_variant_part.
14701 Pass new parameter "language" in call to val_print instead
14702 of "current_language". Replace call to ada_val_print by call
14704 (print_variant_part): Add "language" parameter.
14705 (ada_val_print_struct_union): Update call to print_field_values.
14707 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14709 * ada-valprint.c (ui_memcpy): Delete.
14710 (ada_print_floating): Update documentation. Add empty line
14711 between between function documentation and implementation.
14712 Delete variable "buffer". Use ui_file_xstrdup in place of
14713 ui_file_put. Minor adjustments following this change.
14715 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14717 * ada-valprint.c (ada_val_print_string): New function,
14718 extracted from ada_val_print_array.
14719 (ada_val_print_array): Replace extracted code by call
14720 to ada_val_print_string followed by a return. Move
14721 "else" branch to the function's top block.
14723 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14725 * ada-valprint.c (ada_val_print_array): Move implementation
14726 down. Rename parameter "offset" and "val" into "offset_aligned"
14727 and "original_value" respectively. Add parameter "offset".
14729 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14731 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14732 re-organizing the code. Change the "???" message printed
14733 when target type is a TYPE_CODE_UNDEF into
14734 "<ref to undefined type>".
14736 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14738 * ada-valprint.c (print_record): Delete, implementation inlined...
14739 (ada_val_print_struct_union): ... here. Remove call to
14740 ada_check_typedef in inlined implementation.
14742 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14744 * ada-valprint.c (ada_val_print_gnat_array): New function,
14745 extracted from ada_val_print_1;
14746 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14747 (ada_val_print_flt, ada_val_print_struct_union)
14748 (ada_val_print_ref): Likewise.
14749 (ada_val_print_1): Delete variables i and elttype.
14750 Replace extracted-out code by call to corresponding
14753 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14755 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14757 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14759 * ada-valprint.c (ada_val_print_1): Replace calls to
14760 ada_val_print_1 by calls to val_print.
14762 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14764 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14765 Update calls to self accordingly. Replace calls to c_val_print
14766 by calls to val_print.
14768 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14770 * ada-valprint.c (print_record): Delete declaration.
14771 (adjust_type_signedness, ada_val_print_1): Likewise.
14772 (ada_val_print): Move function implementation down.
14773 (print_variant_part, print_field_values, print_record):
14774 Move function implementation up.
14776 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14778 * python/py-type.c (typy_get_name): New function.
14779 (type_object_getset): Add entry for attribute "name".
14780 * NEWS: Add entry mentioning this new attribute.
14782 2014-01-07 Yao Qi <yao@codesourcery.com>
14784 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14787 2014-01-07 Yao Qi <yao@codesourcery.com>
14789 * gnu-nat.c (info_port_rights): Add qualifier const to
14792 2014-01-07 Yao Qi <yao@codesourcery.com>
14794 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14796 2014-01-07 Yao Qi <yao@codesourcery.com>
14798 * gnu-nat.c (make_inf) Update declaration.
14799 (make_inf): Make it static.
14800 (inf_set_traced): Likewise.
14801 (inf_port_to_thread, inf_task_died_status): Likewise.
14803 2014-01-07 Yao Qi <yao@codesourcery.com>
14805 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14807 2014-01-07 Yao Qi <yao@codesourcery.com>
14809 * gnu-nat.c (_initialize_gnu_nat): Declare.
14811 2014-01-07 Yao Qi <yao@codesourcery.com>
14813 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14815 (struct gdbarch_info) <byte_order>: Change type to
14817 <byte_order_for_code>: Likewise.
14818 * gdbarch.c, gdbarch.h: Regenerated.
14820 2014-01-06 Sasha Smundak <asmundak@google.com>
14822 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14824 2014-01-06 Tom Tromey <tromey@redhat.com>
14826 * doublest.c (convert_doublest_to_floatformat): Use const, not
14828 * somread.c (som_symtab_read): Likewise.
14830 2014-01-07 Hui Zhu <hui@codesourcery.com>
14832 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14833 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14834 (gdb_bfd_fopen): Ditto.
14835 (gdb_bfd_openr): Ditto.
14836 (gdb_bfd_openw): Ditto.
14837 (gdb_bfd_openr_iovec): Ditto.
14838 (gdb_bfd_fdopenr): Ditto.
14839 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14840 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14842 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14844 * symfile-mem.c (symbol_file_add_from_memory): Removed
14845 gdb_bfd_stash_filename.
14847 2014-01-03 Doug Evans <dje@google.com>
14849 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14852 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14854 Update year range in copyright notice of all files.
14856 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14858 * top.c (print_gdb_version): Set copyright year to 2014.
14860 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14862 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14864 For older changes see ChangeLog-2013.
14870 version-control: never