1 2014-11-12 Pedro Alves <palves@redhat.com>
3 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
4 Rewrite stepping over a permanent breakpoint.
5 (thread_still_needs_step_over, proceed): Don't set
6 stepping_over_breakpoint for permanent breakpoints.
7 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
8 single-step breakpoints out of the target on hardware step
10 (process_event_stop_test): If stepping a permanent breakpoint
11 doesn't hit the step-resume breakpoint, delete the step-resume
13 (switch_back_to_stepped_thread): Also check if the stepped thread
14 has advanced already on hardware step targets.
15 (currently_stepping): Return true if the thread stepped a
18 2014-11-12 Pedro Alves <palves@redhat.com>
20 Mark locations as permanent, not the whole breakpoint.
21 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
22 (mark_breakpoints_out): Don't mark permanent breakpoints as
24 (breakpoint_init_inferior): Use mark_breakpoints_out.
25 (breakpoint_here_p): Adjust.
26 (bpstat_stop_status, describe_other_breakpoints): Remove handling
27 of permanent breakpoints.
28 (make_breakpoint_permanent): Mark each location as permanent,
29 instead of marking the breakpoint.
30 (add_location_to_breakpoint): If the location is permanent, mark
31 it as such, and as inserted.
32 (init_breakpoint_sal): Don't make the breakpoint permanent here.
33 (bp_location_compare, update_global_location_list): Adjust.
34 (update_breakpoint_locations): Don't make the breakpoint permanent
36 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
38 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
39 (struct bp_location) <permanent>: New field.
40 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
41 reference to bp_permanent.
43 2014-11-12 Pedro Alves <palves@redhat.com>
45 * arch-utils.c (default_skip_permanent_breakpoint): New function.
46 * arch-utils.h (default_skip_permanent_breakpoint): New
48 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
49 Install default_skip_permanent_breakpoint as default method.
50 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
51 (i386_gdbarch_init): Don't install it.
52 * infrun.c (resume): Assume there's always a
53 gdbarch_skip_permanent_breakpoint implementation.
54 * gdbarch.h, gdbarch.c: Regenerate.
56 2014-11-11 Daniel Colascione <dancol@dancol.org>
58 Warn about cross-PID-namespace debugging.
59 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
60 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
61 * linux-thread-db.c (check_pid_namespace_match): New function.
62 (thread_db_inferior_created): Call it.
64 2014-11-10 Doug Evans <xdje42@gmail.com>
66 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
67 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
69 2014-11-10 Doug Evans <xdje42@gmail.com>
71 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
73 2014-11-10 Doug Evans <xdje42@gmail.com>
76 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
77 (lookup_static_symbol): Move definition to new location and rewrite.
78 (lookup_symbol_in_objfile): New function.
79 (lookup_symbol_global_iterator_cb): Call it.
81 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
83 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
85 2014-11-07 Pedro Alves <palves@redhat.com>
87 * infrun.c (process_event_stop_test) <subroutine check>: Don't
88 check if we did a "nexti" inside a prologue.
89 * symtab.c (in_prologue): Delete function.
90 * symtab.h (in_prologue): Delete declaration.
92 2014-11-06 Doug Evans <xdje42@gmail.com>
94 * symtab.h (lookup_global_symbol): Improve function comment.
96 2014-11-06 Doug Evans <xdje42@gmail.com>
98 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
100 * symtab.h (lookup_global_symbol): Update decl.
101 (lookup_static_symbol): Move decl to better location.
103 2014-11-06 Doug Evans <xdje42@gmail.com>
105 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
107 2014-11-06 Doug Evans <xdje42@gmail.com>
109 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
111 (lookup_symbol_in_all_objfiles): Renamed from
112 lookup_symbol_aux_symtabs. All callers updated.
113 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
115 (lookup_symbol_in_objfile_symtabs): Renamed from
116 lookup_symbol_aux_objfile. All callers updated.
118 2014-11-06 Doug Evans <xdje42@gmail.com>
120 * symtab.c (lookup_symbol_in_block): Renamed from
121 lookup_symbol_aux_block. All callers updated.
123 2014-11-06 Doug Evans <xdje42@gmail.com>
125 * symtab.c (lookup_static_symbol): Renamed from
126 lookup_static_symbol_aux. All callers updated.
127 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
130 2014-11-06 Doug Evans <xdje42@gmail.com>
132 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
133 * block.c (block_lookup_symbol): Use it.
134 * cp-support.c (make_symbol_overload_list_block): Use it.
135 * symtab.c (iterate_over_symbols): Use it.
137 2014-11-06 Doug Evans <xdje42@gmail.com>
139 * symtab.c (lookup_block_symbol): Moved to ...
140 * block.c (block_lookup_symbol): ... here and renamed.
142 * block.h (block_lookup_symbol): Declare.
143 * symtab.h (lookup_block_symbol): Delete.
145 2014-11-06 Doug Evans <xdje42@gmail.com>
147 * ada-lang.c (ada_make_symbol_completion_list): Use
148 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
149 * symtab.c (lookup_objfile_from_block): Ditto.
151 2014-11-06 Doug Evans <xdje42@gmail.com>
153 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
156 2014-11-06 Doug Evans <xdje42@gmail.com>
158 * objfiles.c (get_objfile_arch): Constify.
159 * objfiles.h (get_objfile_arch): Update prototype.
160 * solib.c (solib_global_lookup): Fetch arch from objfile,
163 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
165 * nios2-tdep.c (wild_insn): Delete.
166 (profiler_insn, irqentry_insn): Delete.
167 (nios2_match_sequence): Delete.
168 (nios2_analyze_prologue): Update comments. Remove matching
169 of obsolete profiler_insn and irqentry_insn sequences.
171 2014-11-05 Alan Modra <amodra@gmail.com>
173 * charset.c (convert_between_encodings): Shrink obstack using
175 * minsyms.c (install_minimal_symbols): Likewise.
176 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
177 to char* before doing pointer arithmetic.
179 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
181 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
183 2014-11-04 Pedro Alves <palves@redhat.com>
185 * breakpoint.c (breakpoint_thread_match): Delete function.
186 * breakpoint.h (breakpoint_thread_match): Delete declaration.
188 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
191 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
192 the method args also under EVAL_SKIP when evaluating method
193 calls under EVAL_SKIP.
195 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
197 * dwarf2loc.c (read_pieced_value): Do big endian
198 processing only if gdb_regnum is not -1.
199 (write_pieced_value): Ditto.
201 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
203 * arm-linux-tdep.c (arm_linux_init_abi): Use
204 info.byte_order_for_code to choose endianity of breakpoint
205 instructions snippets.
207 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
209 * arm-tdep.c (extract_arm_insn): Use
210 gdbarch_byte_order_for_code to read arm instruction.
212 2014-11-02 Doug Evans <xdje42@gmail.com>
214 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
216 2014-11-02 Doug Evans <xdje42@gmail.com>
218 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
219 main_subfile before returning.
221 2014-10-31 Doug Evans <xdje42@gmail.com>
223 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
224 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
226 2014-10-31 Doug Evans <xdje42@gmail.com>
228 * valops.c (value_cast_pointers): Fix whitespace.
229 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
232 2014-10-30 Doug Evans <dje@google.com>
234 * NEWS: Mention ability add attributes to gdb.Objfile and
235 gdb.Progspace objects.
236 * python/py-objfile.c (objfile_object): New member dict.
237 (objfpy_dealloc): Py_XDECREF dict.
238 (objfpy_initialize): Initialize dict.
239 (objfile_getset): Add __dict__.
240 (objfile_object_type): Set tp_dictoffset member.
241 * python/py-progspace.c (progspace_object): New member dict.
242 (pspy_dealloc): Py_XDECREF dict.
243 (pspy_initialize): Initialize dict.
244 (pspace_getset): Add __dict__.
245 (pspace_object_type): Set tp_dictoffset member.
247 2014-10-30 Yao Qi <yao@codesourcery.com>
249 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
250 replace '\\' with '\\\\'.
252 2014-10-29 Joel Brobecker <brobecker@adacore.com>
256 2014-10-29 Pedro Alves <palves@redhat.com>
259 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
260 instead of assuming a thread with a stepping range is always
263 2014-10-29 Pedro Alves <palves@redhat.com>
266 * event-top.c (change_line_handler): Call
267 gdb_rl_callback_handler_remove instead of
268 rl_callback_handler_remove.
269 (callback_handler_installed): New global.
270 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
271 (gdb_rl_callback_handler_reinstall): New functions.
272 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
273 gdb_rl_callback_handler_install instead of
274 rl_callback_handler_remove and rl_callback_handler_install.
275 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
276 instead of rl_callback_handler_remove.
277 * event-top.h (gdb_rl_callback_handler_remove)
278 (gdb_rl_callback_handler_install)
279 (gdb_rl_callback_handler_reinstall): New declarations.
280 * infrun.c (reinstall_readline_callback_handler_cleanup): New
282 (fetch_inferior_event): Install it.
283 * top.c (gdb_readline_wrapper_line) Call
284 gdb_rl_callback_handler_remove instead of
285 rl_callback_handler_remove.
286 (gdb_readline_wrapper_cleanup): Don't call
287 rl_callback_handler_install.
289 2014-10-29 Pedro Alves <palves@redhat.com>
291 * event-top.c (command_line_handler): Clear the first byte of
292 linebuffer, when it is first allocated.
294 2014-10-29 Pedro Alves <palves@redhat.com>
296 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
299 2014-10-29 Pedro Alves <palves@redhat.com>
303 * tui/tui-interp.c (tui_is_toplevel): Delete global.
304 (tui_allowed_p): Delete function.
305 * tui/tui.c: Include "interps.h".
306 (tui_enable): Don't use tui_allowed_p. Error out here with
307 detailed error messages if the TUI is the top level interpreter,
308 or if output is not a terminal. Use newterm instead of initscr,
309 and error out if initializing the terminal fails. Also error out if
310 the terminal doesn't support cursor addressing.
311 * tui/tui.h (tui_allowed_p): Delete declaration.
313 2014-10-29 Joel Brobecker <brobecker@adacore.com>
315 * arm-tdep.c (arm_skip_stack_protector): Return early if
316 address loaded by first "ldr" instruction does not have
317 a corresponding minimal symbol. Update comment.
319 2014-10-29 Yao Qi <yao@codesourcery.com>
321 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
322 loaded address correctly of ldr instruction.
324 2014-10-28 Pedro Alves <palves@redhat.com>
327 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
329 * infrun.c (resume) <stepping breakpoint instruction>: Set the
330 thread's stepped_breakpoint field. Skip if reverse debugging.
332 (init_thread_stepping_state, handle_signal_stop): Clear the
333 thread's stepped_breakpoint field.
335 2014-10-27 Pedro Alves <palves@redhat.com>
337 * remote.c (remote_thread_alive): New, factored out from ...
338 (remote_thread_alive): ... this.
339 (remote_update_thread_list): Bail out before deleting threads if
340 the target returned an empty list, and, the current thread has a
343 2014-10-27 Pedro Alves <palves@redhat.com>
345 * infrun.c (handle_signal_stop): Also skip handlers when a random
346 signal arrives while handling a "stepi" or a "nexti". Set the
347 thread's 'step_after_step_resume_breakpoint' flag.
349 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
351 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
352 (arm_record_ld_st_imm_offset): Reimplement to cover all
353 load/store cases for ARM opcode 010.
354 (arm_record_ld_st_multiple): Reimplement to cover all
355 load/store cases for ARM opcode 100.
357 2014-10-26 Doug Evans <xdje42@gmail.com>
359 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
361 2014-10-26 Doug Evans <xdje42@gmail.com>
363 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
364 parameter "kind" to "block_index".
365 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
367 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
369 2014-10-26 Doug Evans <xdje42@gmail.com>
371 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
373 2014-10-26 Doug Evans <xdje42@gmail.com>
375 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
378 2014-10-26 Doug Evans <xdje42@gmail.com>
380 * parser-defs.h (block_found): Move decl from here ...
381 * symtab.h (block_found): ... to here.
383 2014-10-26 Doug Evans <xdje42@gmail.com>
385 * symtab.h (struct field_of_this_result): Fix typo in comment.
386 (lookup_symbol_in_language): Move function comment here.
387 (lookup_symbol): Improve function comment.
388 (basic_lookup_symbol_nonlocal): Ditto.
389 (lookup_symbol_static, lookup_symbol_global): Ditto.
390 (lookup_symbol_aux_block): Ditto.
391 (lookup_language_this): Add function comment.
392 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
394 (lookup_block_symbol): Improve function comment.
395 (lookup_struct): Fix capitalization in function comment.
396 (lookup_transparent_type): Add function comment.
397 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
398 Improve function comment.
399 (lookup_objfile_from_block): Add function comment.
400 * symtab.c (lookup_symbol_in_language): Update function comment.
401 (lookup_symbol, lookup_language_this): Ditto.
402 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
403 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
404 (basic_lookup_symbol_nonlocal): Ditto.
405 (lookup_symbol_static, lookup_symbol_global): Ditto.
406 (lookup_transparent_type, lookup_block_symbol): Ditto.
408 2014-10-25 Doug Evans <xdje42@gmail.com>
410 * symtab.c (types_info): Delete forward decl.
411 (functions_info, variables_info, sources_info): Ditto.
412 (_initialize_symtab): Rewrite forward decl to use
413 initialize_file_ftype.
415 2014-10-25 Doug Evans <xdje42@gmail.com>
417 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
419 2014-10-25 Doug Evans <xdje42@gmail.com>
421 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
422 of local var child_die.
424 2014-10-24 Don Breazeal <donb@codesourcery.com>
426 * infrun.c (follow_fork_inferior): Update fork message printing
427 to use target_terminal_ours_for_output instead of
428 target_terminal_ours, to use _() for all format strings, to print
429 "vfork" instead of "fork" for vforks, and to add a detach message.
430 (handle_vfork_child_exec_or_exit): Update message printing to use
431 target_terminal_ours_for_output instead of target_terminal_ours, to
432 use _() for all format strings, and to fix some formatting.
434 2014-10-24 Pedro Alves <palves@redhat.com>
436 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
437 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
438 * config/vax/vax.mh: Delete.
439 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
440 obsolete configurations section.
441 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
442 * vax-nat.c: Delete file.
444 2014-10-24 Pedro Alves <palves@redhat.com>
446 * NEWS (Removed targets): Add OS/arch column.
448 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
450 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
451 on the arg type of a constructor only if it is of reference type.
453 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
455 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
456 accessors and constants from nios2 opcodes update.
457 (nios2_get_next_pc): Likewise.
459 2014-10-19 Doug Evans <xdje42@gmail.com>
461 * gdbthread.h (set_running): Fix comment.
462 (set_executing, finish_thread_state): Fix comment.
464 2014-10-18 Doug Evans <xdje42@gmail.com>
466 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
468 2014-10-17 Doug Evans <dje@google.com>
470 * NEWS: Mention new event gdb.clear_objfiles.
471 * python/py-event.h (emit_clear_objfiles_event): Clear
472 * python/py-events.h (events_object): New member clear_objfiles.
473 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
475 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
476 emit clear_objfiles event.
477 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
479 (emit_clear_objfiles_event): New function.
480 (clear_objfiles): New event.
481 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
483 * python/python.c (_initialize_python): Call
484 gdbpy_initialize_clear_objfiles_event.
486 2014-10-17 Doug Evans <dje@google.com>
488 * NEWS: Mention new gdb.Objfile.progspace attribute.
489 * python/py-objfile.c (objfpy_get_progspace): New function.
490 (objfile_getset): New entry for "progspace".
492 2014-10-17 Pedro Alves <palves@redhat.com>
495 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
496 returns a copy of the input.
497 (run_command_1, continue_command, step_1, jump_command)
498 (signal_command, until_command, advance_command, finish_command)
499 (attach_command): Adjust and install a cleanup to free the
502 2014-10-17 Pedro Alves <palves@redhat.com>
505 * infcmd.c (continue_1): If continuing all threads in the
506 foreground, make sure the inferior's terminal settings are put in
509 2014-10-17 Pedro Alves <palves@redhat.com>
512 * annotate.c (annotate_breakpoints_invalid): Use
513 target_terminal_our_for_output instead of target_terminal_ours.
514 Give back the terminal to the target.
515 (annotate_frames_invalid): Likewise.
517 2014-10-17 Pedro Alves <palves@redhat.com>
519 * target.c (enum terminal_state): New enum.
520 (terminal_state): New global.
521 (target_terminal_init): New function.
522 (target_terminal_inferior): Skip if inferior already owns the
524 (target_terminal_ours, target_terminal_ours_for_output): New
526 * target.h (target_terminal_init): Convert to function prototype.
527 (target_terminal_ours_for_output): Convert to function prototype
529 (target_terminal_ours): Convert to function prototype and tweak
531 * windows-nat.c (do_initial_windows_stuff): Call
532 target_terminal_init instead of child_terminal_init_with_pgrp.
534 2014-10-17 Pedro Alves <palves@redhat.com>
536 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
537 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
538 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
540 * NEWS: Mention that support for alpha*-*-osf* has been removed.
541 * ada-lang.h [__alpha__ && __osf__]
542 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
543 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
544 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
546 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
548 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
549 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
550 * configure: Regenerate.
551 * configure.ac: Remove references to osf.
552 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
553 section. Remove all other references to osf.
554 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
555 Remove all other references to osf.
556 * dec-thread.c: Delete file.
557 * defs.h (GDB_OSABI_OSF1): Delete.
558 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
560 * osabi.c (gdb_osabi_names): Delete "OSF/1".
561 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
563 (unconditionally_kill_inferior)
564 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
565 * solib-osf.c: Delete file.
567 2014-10-17 Pedro Alves <palves@redhat.com>
569 * remote.c (clear_threads_listing_context): Move higher up, out of
570 the HAVE_LIBEXPAT guard.
572 2014-10-16 Tristan Gingold <gingold@adacore.com>
574 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
575 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
578 2014-10-15 Pedro Alves <palves@redhat.com>
580 * dec-thread.c (dec_thread_count_gdb_threads)
581 (dec_thread_add_gdb_thread): Delete.
582 (dec_thread_update_thread_list): Delete.
583 (dec_thread_find_new_threads): Rename to ...
584 (dec_thread_update_thread_list): ... this. Delete GDB-size
585 threads that are no longer found in dec_thread_list.
586 (resync_thread_list): Delete.
587 (dec_thread_wait): Call dec_thread_update_thread_list instead of
590 2014-10-15 Pedro Alves <palves@redhat.com>
592 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
593 * remote.c (remote_update_thread_list): Skip calling prune_threads
594 if any thread listing method is supported, and instead walk over
595 the set of remote threads listed, deleting those that are not
596 found in GDB's thread list.
598 2014-10-15 Pedro Alves <palves@redhat.com>
600 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
601 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
602 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
603 (bsd_uthread_target): Adjust.
604 * corelow.c (core_open): Adjust.
605 * dec-thread.c (dec_thread_find_new_threads): Update comment.
606 (dec_thread_update_thread_list): New function.
607 (init_dec_thread_ops): Adjust.
608 * gdbthread.h (prune_threads): New declaration.
609 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
610 (thread_db_update_thread_list): ... this. Call prune_threads.
611 (init_thread_db_ops): Adjust.
612 * nto-procfs.c (procfs_find_new_threads): Rename to ...
613 (procfs_update_thread_list): ... this. Call prune_threads.
614 (procfs_attach, procfs_create_inferior, init_procfs_targets):
616 * obsd-nat.c (obsd_find_new_threads): Rename to ...
617 (obsd_update_thread_list): ... this. Call prune_threads.
618 (obsd_add_target): Adjust.
619 * procfs.c (procfs_target): Adjust.
620 (procfs_notice_thread): Update comment.
621 (procfs_find_new_threads): Rename to ...
622 (procfs_update_thread_list): ... this. Call prune_threads.
623 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
625 (ravenscar_wait): Adjust.
626 (ravenscar_find_new_threads): Rename to ...
627 (ravenscar_update_thread_list): ... this. Call prune_threads.
628 (init_ravenscar_thread_ops): Adjust.
629 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
630 (record_btrace_update_thread_list): ... this. Adjust comment.
631 (init_record_btrace_ops): Adjust.
632 * remote.c (remote_threads_info): Rename to ...
633 (remote_update_thread_list): ... this. Call prune_threads.
634 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
636 * sol-thread.c (check_for_thread_db): Adjust.
637 (sol_find_new_threads_callback): Rename to ...
638 (sol_update_thread_list_callback): ... this.
639 (sol_find_new_threads): Rename to ...
640 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
641 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
642 * target-delegates.c: Regenerate.
643 * target.c (target_find_new_threads): Rename to ...
644 (target_update_thread_list): ... this.
645 * target.h (struct target_ops): Rename to_find_new_threads field
646 to to_update_thread_list.
647 (target_find_new_threads): Rename to ...
648 (target_update_thread_list): ... this.
649 * thread.c (prune_threads): Make extern.
650 (update_thread_list): Adjust.
652 2014-10-15 Pedro Alves <palves@redhat.com>
654 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
655 Add describing comment. Return -1 if the qL packet is not
657 (struct thread_item, thread_item_t): Move higher up in
658 the file. Add comments.
659 (struct threads_parsing_context): Move higher up in
660 the file, add comments, and remote to ...
661 (struct threads_listing_context): ... this.
662 (remote_newthread_step): Don't add the thread to GDB's thread
663 database here. Instead push it to the thread_listing_context
665 (remote_find_new_threads): Rename to ...
666 (remote_get_threads_with_ql): ... this. Add target_ops and
667 targets_listing_context parameters. Pass down context.
668 (start_thread): Adjust.
669 (clear_threads_parsing_context): Rename to ...
670 (clear_threads_listing_context): ... this.
671 (remote_get_threads_with_qxfer): New, with parts salvaged from old
673 (remote_get_threads_with_qthreadinfo): Ditto.
674 (remote_threads_info): Reimplement.
676 2014-10-15 Pedro Alves <palves@redhat.com>
678 * infrun.c (resume): Don't force displaced-stepping for all
679 single-steps on software single-stepping archs.
681 2014-10-15 Pedro Alves <palves@redhat.com>
683 * breakpoint.c (single_step_breakpoints): Delete global.
684 (insert_single_step_breakpoint): Adjust to store the breakpoint
685 pointer in the current thread.
686 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
687 (cancel_single_step_breakpoints): Delete functions.
688 (breakpoint_has_location_inserted_here): Make extern.
689 (single_step_breakpoint_inserted_here_p): Adjust to walk the
691 * breakpoint.h (breakpoint_has_location_inserted_here): New
693 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
694 (cancel_single_step_breakpoints): Remove declarations.
695 * gdbthread.h (struct thread_control_state)
696 <single_step_breakpoints>: New field.
697 (delete_single_step_breakpoints)
698 (thread_has_single_step_breakpoints_set)
699 (thread_has_single_step_breakpoint_here): New declarations.
700 * infrun.c (follow_exec): Also clear the single-step breakpoints.
701 (singlestep_breakpoints_inserted_p, singlestep_ptid)
702 (singlestep_pc): Delete globals.
703 (infrun_thread_ptid_changed): Remove references to removed
705 (resume_cleanups): Delete the current thread's single-step
707 (maybe_software_singlestep): Remove references to removed globals.
708 (resume): Adjust to use thread_has_single_step_breakpoints_set and
709 delete_single_step_breakpoints.
710 (init_wait_for_inferior): Remove references to removed globals.
711 (delete_thread_infrun_breakpoints): Delete the thread's
712 single-step breakpoints too.
713 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
714 single-step breakpoints here.
715 (delete_stopped_threads_single_step_breakpoints): New function.
716 (adjust_pc_after_break): Adjust to use
717 thread_has_single_step_breakpoints_set.
718 (handle_inferior_event): Remove references to removed globals.
719 Use delete_stopped_threads_single_step_breakpoints.
720 (handle_signal_stop): Adjust to per-thread single-step
721 breakpoints. Swap test order to do cheaper tests first.
722 (switch_back_to_stepped_thread): Extend debug output. Remove
723 references to removed globals.
724 * record-full.c (record_full_wait_1): Adjust to per-thread
725 single-step breakpoints.
726 * thread.c (delete_single_step_breakpoints)
727 (thread_has_single_step_breakpoints_set)
728 (thread_has_single_step_breakpoint_here): New functions.
729 (clear_thread_inferior_resources): Also delete the thread's
730 single-step breakpoints.
732 2014-10-15 Pedro Alves <palves@redhat.com>
734 * thread.c (delete_thread_breakpoint): New function.
735 (delete_step_resume_breakpoint)
736 (delete_exception_resume_breakpoint): Use it.
737 (delete_at_next_stop): New function.
738 (clear_thread_inferior_resources): Use delete_at_next_stop.
740 2014-10-15 Pedro Alves <palves@redhat.com>
742 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
743 (breakpoint_inserted_here_p): ... here. Remove special case for
744 software single-step breakpoints.
745 (find_non_raw_software_breakpoint_inserted_here): Inline ...
746 (software_breakpoint_inserted_here_p): ... here. Remove special
747 case for software single-step breakpoints.
748 (bp_target_info_copy_insertion_state)
749 (deprecated_insert_raw_breakpoint)
750 (deprecated_remove_raw_breakpoint): Delete functions.
751 * breakpoint.h (deprecated_insert_raw_breakpoint)
752 (deprecated_remove_raw_breakpoint): Remove declarations.
754 2014-10-15 Pedro Alves <palves@redhat.com>
757 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
758 Delete array globals.
759 (single_step_breakpoints): New global.
760 (breakpoint_xfer_memory): Remove special handling for single-step
762 (update_breakpoints_after_exec): Delete bp_single_step
764 (detach_breakpoints): Remove special handling for single-step
766 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
767 (bpstat_stop_status): Add comment.
768 (bpstat_what, bptype_string, print_one_breakpoint_location)
769 (adjust_breakpoint_address, init_bp_location): Handle
771 (new_single_step_breakpoint): New function.
772 (set_momentary_breakpoint, bkpt_remove_location): Remove special
773 handling for single-step breakpoints.
774 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
775 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
777 (detach_single_step_breakpoints, find_single_step_breakpoint):
779 (breakpoint_has_location_inserted_here): New function.
780 (single_step_breakpoint_inserted_here_p): Rewrite.
781 * breakpoint.h: Remove FIXME.
782 (enum bptype) <bp_single_step>: New enum value.
783 (insert_single_step_breakpoint): Update comment.
784 * infrun.c (resume_cleanups)
785 (delete_step_thread_step_resume_breakpoint): Remove single-step
787 (fetch_inferior_event): Install a cleanup that removes infrun
789 (switch_back_to_stepped_thread) <expect thread advanced also>:
790 Clear step-over info.
792 2014-10-15 Pedro Alves <palves@redhat.com>
794 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
795 (delete_thread_infrun_breakpoints): New function, with parts
796 salvaged from delete_step_resume_breakpoint_callback.
797 (delete_step_thread_step_resume_breakpoint): Delete.
798 (for_each_just_stopped_thread_callback_func): New typedef.
799 (for_each_just_stopped_thread): New function.
800 (delete_just_stopped_threads_infrun_breakpoints): New function.
801 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
802 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
804 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
806 2014-10-15 Pedro Alves <palves@redhat.com>
808 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
809 trying to step past a non-steppable watchpoint.
810 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
812 * infrun.c (struct step_over_info): Add new field
813 'nonsteppable_watchpoint_p' and adjust comments.
814 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
816 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
817 (stepping_past_nonsteppable_watchpoint): New function.
818 (step_over_info_valid_p): Also return true if stepping past a
819 nonsteppable watchpoint.
820 (proceed): Adjust call to set_step_over_info. Remove reference to
822 (init_wait_for_inferior): Remove reference to init_infwait_state.
823 (waiton_ptid): Delete global.
824 (struct execution_control_state)
825 <stepped_after_stopped_by_watchpoint>: Delete field.
826 (wait_for_inferior, fetch_inferior_event): Always pass
827 minus_one_ptid to target_wait.
828 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
830 (init_infwait_state): Delete function.
831 (handle_inferior_event): Remove infwait_state handling.
832 (handle_signal_stop) <watchpoints handling>: Adjust after
833 stepped_after_stopped_by_watchpoint removal. Don't remove
834 breakpoints here nor set infwait_state. Set the thread's
835 stepping_over_watchpoint flag, and call keep_going instead.
836 (keep_going): Handle stepping_over_watchpoint. Adjust
837 set_step_over_info calls.
838 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
841 2014-10-15 Pedro Alves <palves@redhat.com>
843 * infrun.c (step_over_info_valid_p): New function.
844 (resume): Use step_over_info_valid_p instead of checking the
845 threads's trap_expected flag.
847 2014-10-15 Doug Evans <dje@google.com>
848 Walfred Tedeschi <walfred.tedeschi@intel.com>
851 * python/lib/gdb/__init__.py (packages): Add "printer".
852 * python/lib/gdb/command/bound_registers.py: Moved to ...
853 * python/lib/gdb/printer/bound_registers.py: ... here.
854 Add printer to global set of builtin printers. Rename printer from
855 "bound" to "mpx_bound128".
856 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
857 registered as global "builtin" printer.
858 (add_builtin_pretty_printer): New function.
859 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
860 gdb/printer/__init__.py.
862 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
864 * Makefile.in (SFILES): Remove d-support.c.
865 (COMMON_OBS): Remove d-support.o.
866 * d-lang.h (d_parse_symbol): Remove declaration.
867 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
868 * d-support.c: Remove file.
870 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
872 * gdb/infrun.c (process_event_stop_test): Apply
873 gdbarch_addr_bits_remove to longjmp resume address.
875 2014-10-15 Pedro Alves <palves@redhat.com>
877 * regformats/microblaze.dat: Delete file.
879 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
881 * features/Makefile (microblaze-expedite): Replace pc with rpc.
882 * regformats/microblaze-with-stack-protect.dat: Regenerate.
884 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
886 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
889 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
893 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
896 2014-10-14 Joel Brobecker <brobecker@adacore.com>
898 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
899 of the case where the second operand is a pointer.
900 <BINOP_SUB>: Likewise.
902 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
904 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
905 only if it is not NULL.
906 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
907 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
908 (struct probe_ops) <clear_semaphore>: Likewise.
909 * tracepoint.c (start_tracing): Call set_semaphore only if it is
911 (stop_tracing): Likewise, for clear_semaphore.
913 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
915 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
916 using language_c, instead of current_language.
918 2014-10-13 Doug Evans <dje@google.com>
920 * python/py-objfile.c (objfpy_initialize): New function.
921 (objfpy_new, objfile_to_objfile_object): Call it.
922 * python/py-progspace.c (pspy_initialize): New function.
923 (pspy_new, pspace_to_pspace_object): Call it.
925 2014-10-13 Miroslav Franc <mfranc@redhat.com>
926 Jan Kratochvil <jan.kratochvil@redhat.com>
928 Fix "save breakpoints" for "catch" command.
929 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
932 2014-10-12 Miroslav Franc <mfranc@redhat.com>
934 Fix "save breakpoints" for "disable $bpnum" command.
935 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
937 2014-10-10 Pedro Alves <palves@redhat.com>
939 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
940 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
941 (HFILES_NO_SRCDIR): Remove solib-irix.h.
942 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
944 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
945 * configure.ac: Remove references to IRIX.
946 * configure.host: Add *-*-irix* to the obsolete hosts section.
947 Remove all other references to irix.
948 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
951 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
953 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
954 isn't valid, release the tdesc arch data and return NULL.
956 2014-10-10 Pedro Alves <palves@redhat.com>
958 * linux-tdep.c: Include observer.h.
959 (linux_inferior_data): New global.
960 (struct linux_info): New structure.
961 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
962 (get_linux_inferior_data): New functions.
963 (linux_vsyscall_range): Rename to ...
964 (linux_vsyscall_range_raw): ... this.
965 (linux_vsyscall_range): New function; handles caching.
966 (_initialize_linux_tdep): Register linux_inferior_data. Install
967 inferior_exit and inferior_appeared observers.
969 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
970 Pedro Alves <palves@redhat.com>
973 * solib-svr4.c (svr4_read_so_list): Rename to ...
974 (svr4_current_sos_1): ... this and change the function comment.
975 (svr4_current_sos): New function.
977 2014-10-10 Pedro Alves <palves@redhat.com>
979 * arch-utils.c (default_vsyscall_range): New function.
980 * arch-utils.h (default_vsyscall_range): New declaration.
981 * gdbarch.sh (vsyscall_range): New hook.
982 * gdbarch.h, gdbarch.c: Regenerate.
983 * linux-tdep.c (linux_vsyscall_range): New function.
984 (linux_init_abi): Install linux_vsyscall_range as
985 vsyscall_range gdbarch hook.
986 * memrange.c (address_in_mem_range): New function.
987 * memrange.h (address_in_mem_range): New declaration.
988 * symfile-mem.c (find_vdso_size): Delete function.
989 (add_vsyscall_page): Use gdbarch_vsyscall_range.
991 2014-10-10 Pedro Alves <palves@redhat.com>
993 * infrun.c (normal_stop): Fix typo in comment.
995 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
998 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
999 typo when using logical AND to determine instruction type.
1001 2014-10-09 Yao Qi <yao@codesourcery.com>
1003 * infrun.c (handle_signal_stop): Remove local variable
1006 2014-10-08 Stan Shebs <stan@codesourcery.com>
1008 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1010 2014-10-08 Gary Benson <gbenson@redhat.com>
1012 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1014 2014-10-08 Gary Benson <gbenson@redhat.com>
1016 * common/common-defs.h: Include common-exceptions.h.
1017 * exceptions.h: Do not include common-exceptions.h.
1019 2014-10-08 Gary Benson <gbenson@redhat.com>
1021 * common/common-defs.h: Include cleanups.h.
1022 * common/common-exceptions.c: Do not include cleanups.h.
1023 * utils.h: Likewise.
1025 2014-10-08 Gary Benson <gbenson@redhat.com>
1027 * ada-lang.c: Do not include exceptions.h.
1028 * ada-valprint.c: Likewise.
1029 * amd64-tdep.c: Likewise.
1030 * auto-load.c: Likewise.
1031 * block.c: Likewise.
1032 * break-catch-throw.c: Likewise.
1033 * breakpoint.c: Likewise.
1034 * btrace.c: Likewise.
1035 * c-lang.c: Likewise.
1036 * cli/cli-cmds.c: Likewise.
1037 * cli/cli-interp.c: Likewise.
1038 * cli/cli-script.c: Likewise.
1039 * completer.c: Likewise.
1040 * corefile.c: Likewise.
1041 * corelow.c: Likewise.
1042 * cp-abi.c: Likewise.
1043 * cp-support.c: Likewise.
1044 * cp-valprint.c: Likewise.
1045 * darwin-nat.c: Likewise.
1046 * dwarf2-frame-tailcall.c: Likewise.
1047 * dwarf2-frame.c: Likewise.
1048 * dwarf2loc.c: Likewise.
1049 * dwarf2read.c: Likewise.
1051 * event-loop.c: Likewise.
1052 * event-top.c: Likewise.
1053 * f-valprint.c: Likewise.
1054 * frame-unwind.c: Likewise.
1055 * frame.c: Likewise.
1056 * gdbtypes.c: Likewise.
1057 * gnu-v2-abi.c: Likewise.
1058 * gnu-v3-abi.c: Likewise.
1059 * guile/scm-auto-load.c: Likewise.
1060 * guile/scm-breakpoint.c: Likewise.
1061 * guile/scm-cmd.c: Likewise.
1062 * guile/scm-frame.c: Likewise.
1063 * guile/scm-lazy-string.c: Likewise.
1064 * guile/scm-param.c: Likewise.
1065 * guile/scm-symbol.c: Likewise.
1066 * guile/scm-type.c: Likewise.
1067 * hppa-hpux-tdep.c: Likewise.
1068 * i386-tdep.c: Likewise.
1069 * inf-loop.c: Likewise.
1070 * infcall.c: Likewise.
1071 * infcmd.c: Likewise.
1072 * infrun.c: Likewise.
1073 * interps.c: Likewise.
1074 * interps.h: Likewise.
1076 * linespec.c: Likewise.
1077 * linux-nat.c: Likewise.
1078 * linux-thread-db.c: Likewise.
1079 * m32r-rom.c: Likewise.
1081 * memory-map.c: Likewise.
1082 * mi/mi-cmd-break.c: Likewise.
1083 * mi/mi-cmd-stack.c: Likewise.
1084 * mi/mi-interp.c: Likewise.
1085 * mi/mi-main.c: Likewise.
1086 * monitor.c: Likewise.
1087 * nto-procfs.c: Likewise.
1088 * objc-lang.c: Likewise.
1089 * p-valprint.c: Likewise.
1090 * parse.c: Likewise.
1091 * ppc-linux-tdep.c: Likewise.
1092 * printcmd.c: Likewise.
1093 * probe.c: Likewise.
1094 * python/py-auto-load.c: Likewise.
1095 * python/py-breakpoint.c: Likewise.
1096 * python/py-cmd.c: Likewise.
1097 * python/py-finishbreakpoint.c: Likewise.
1098 * python/py-frame.c: Likewise.
1099 * python/py-framefilter.c: Likewise.
1100 * python/py-function.c: Likewise.
1101 * python/py-gdb-readline.c: Likewise.
1102 * python/py-inferior.c: Likewise.
1103 * python/py-infthread.c: Likewise.
1104 * python/py-lazy-string.c: Likewise.
1105 * python/py-linetable.c: Likewise.
1106 * python/py-param.c: Likewise.
1107 * python/py-prettyprint.c: Likewise.
1108 * python/py-symbol.c: Likewise.
1109 * python/py-type.c: Likewise.
1110 * python/py-value.c: Likewise.
1111 * python/python-internal.h: Likewise.
1112 * python/python.c: Likewise.
1113 * record-btrace.c: Likewise.
1114 * record-full.c: Likewise.
1115 * regcache.c: Likewise.
1116 * remote-fileio.c: Likewise.
1117 * remote-mips.c: Likewise.
1118 * remote.c: Likewise.
1119 * rs6000-aix-tdep.c: Likewise.
1120 * rs6000-nat.c: Likewise.
1122 * solib-darwin.c: Likewise.
1123 * solib-dsbt.c: Likewise.
1124 * solib-frv.c: Likewise.
1125 * solib-ia64-hpux.c: Likewise.
1126 * solib-spu.c: Likewise.
1127 * solib-svr4.c: Likewise.
1128 * solib.c: Likewise.
1129 * spu-tdep.c: Likewise.
1130 * stack.c: Likewise.
1131 * stap-probe.c: Likewise.
1132 * symfile-mem.c: Likewise.
1133 * symmisc.c: Likewise.
1134 * target.c: Likewise.
1135 * thread.c: Likewise.
1137 * tracepoint.c: Likewise.
1138 * tui/tui-interp.c: Likewise.
1139 * typeprint.c: Likewise.
1140 * utils.c: Likewise.
1141 * valarith.c: Likewise.
1142 * valops.c: Likewise.
1143 * valprint.c: Likewise.
1144 * value.c: Likewise.
1145 * varobj.c: Likewise.
1146 * windows-nat.c: Likewise.
1147 * xml-support.c: Likewise.
1149 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1151 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1153 (extended_mips16_next_pc): Update accordingly.
1155 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1157 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1159 (micromips_instruction_is_compact_branch): Likewise.
1160 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1161 or a compact jump, reaching a jump delay slot, or seeing a
1162 second non-prologue instruction.
1163 (micromips_scan_prologue): Also terminate scanning upon seeing a
1164 compact branch or jump, or reaching a branch or jump delay slot.
1165 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1166 or jump delay slot, or seeing a second non-prologue instruction.
1167 (mips32_instruction_has_delay_slot): Retain instruction
1168 examination code only, update arguments accordingly and move
1169 instruction fetch pieces to...
1170 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1171 (micromips_instruction_has_delay_slot): Likewise and to...
1172 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1173 (mips16_instruction_has_delay_slot): Likewise and to...
1174 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1175 (mips_single_step_through_delay): Update accordingly.
1176 (mips_adjust_breakpoint_address): Likewise.
1178 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1180 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1181 !mustbe32 also return 1 for 32-bit instructions.
1182 (mips16_instruction_has_delay_slot): Likewise. Add an
1183 explanatory comment.
1185 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1187 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1190 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1192 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1194 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1195 for the breakpoint's address. Don't preinitialize `placed_size'.
1196 (insert_bp_location): Set `reqstd_address' rather than
1198 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1199 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1201 (bkpt_remove_location): Likewise.
1202 (deprecated_insert_raw_breakpoint): Likewise.
1203 (deprecated_remove_raw_breakpoint): Likewise.
1204 (find_single_step_breakpoint): Likewise.
1205 * mem-break.c (default_memory_insert_breakpoint): Use
1206 `reqstd_address' for the breakpoint's address. Don't set
1207 `placed_address' or `placed_size' if breakpoint contents couldn't
1208 have been determined.
1209 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1210 the breakpoint's address.
1211 (remote_insert_hw_breakpoint): Likewise. Don't set
1212 `placed_address' or `placed_size' if breakpoint couldn't have been
1214 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1215 `reqstd_address' for the breakpoint's address.
1216 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1217 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1218 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1219 * microblaze-linux-tdep.c
1220 (microblaze_linux_memory_remove_breakpoint): Likewise.
1221 * monitor.c (monitor_insert_breakpoint): Likewise.
1222 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1223 (procfs_insert_hw_breakpoint): Likewise.
1224 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1225 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1226 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1227 * remote-mips.c (mips_insert_breakpoint): Likewise.
1228 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1230 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1232 * valops.c (value_assign): Check for bit field assignments
1233 before calling architecture-specific register value
1234 conversion functions.
1236 2014-10-03 Pierre Muller <muller@sourceware.org>
1238 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1240 2014-10-02 Pedro Alves <palves@redhat.com>
1242 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1243 threads_are_executing.
1244 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1246 * gdbthread.h (threads_are_executing): Declare.
1247 (handle_signal_stop) <random signals>: Don't print about the
1248 signal here if stopping.
1249 (end_stepping_range): Don't notify observers here.
1250 (normal_stop): Update the thread list. If stopped by a random
1251 signal or a stepping range ended, notify observers.
1252 * thread.c (threads_executing): New global.
1253 (init_thread_list): Clear 'threads_executing'.
1254 (set_executing): Set or clear 'threads_executing'.
1255 (threads_are_executing): New function.
1256 (update_threads_executing): New function.
1257 (update_thread_list): Use it.
1259 2014-10-02 Pedro Alves <palves@redhat.com>
1261 PR breakpoints/17431
1262 * breakpoint.c (update_breakpoints_after_exec): Don't create
1263 overlay, longjmp, std terminate nor exception breakpoints here.
1265 2014-10-02 Pedro Alves <palves@redhat.com>
1267 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1269 * inferior.c (find_inferior_for_program_space): Give preference to
1270 the current inferior.
1271 * inferior.h (find_inferior_for_program_space): Update comment.
1272 * progspace.c (switch_to_program_space_and_thread): Prefer the
1273 current inferior if it's bound to the program space requested. If
1274 the inferior found doesn't have a PID yet, don't bother looking up
1276 * progspace.h (switch_to_program_space_and_thread): Adjust
1278 * thread.c (any_thread_of_process, any_live_thread_of_process):
1279 Give preference to the current thread.
1281 2014-10-01 Pedro Alves <palves@redhat.com>
1283 * breakpoint.c (insert_bp_location): Error out if inserting a
1284 software breakpoint at a read-only address.
1285 * target.c (memory_xfer_check_region): New function, factored out
1287 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1289 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1290 against the memory region attributes.
1292 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1294 * NEWS: Announce new exit-code field in -list-thread-groups
1296 * inferior.c (exit_inferior_1): Don't clear exit code.
1297 (inferior_appeared): Clear exit code.
1298 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1301 2014-10-01 Pedro Alves <palves@redhat.com>
1303 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1304 GENERATED" along with emacs/vi read-only markers.
1305 * regformats/aarch64.dat: Regenerate.
1306 * regformats/arm-with-iwmmxt.dat: Regenerate.
1307 * regformats/arm-with-neon.dat: Regenerate.
1308 * regformats/arm-with-vfpv2.dat: Regenerate.
1309 * regformats/arm-with-vfpv3.dat: Regenerate.
1310 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1311 * regformats/i386/amd64-avx.dat: Regenerate.
1312 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1313 * regformats/i386/amd64-avx512.dat: Regenerate.
1314 * regformats/i386/amd64-linux.dat: Regenerate.
1315 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1316 * regformats/i386/amd64-mpx.dat: Regenerate.
1317 * regformats/i386/amd64.dat: Regenerate.
1318 * regformats/i386/i386-avx-linux.dat: Regenerate.
1319 * regformats/i386/i386-avx.dat: Regenerate.
1320 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1321 * regformats/i386/i386-avx512.dat: Regenerate.
1322 * regformats/i386/i386-linux.dat: Regenerate.
1323 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1324 * regformats/i386/i386-mmx.dat: Regenerate.
1325 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1326 * regformats/i386/i386-mpx.dat: Regenerate.
1327 * regformats/i386/i386.dat: Regenerate.
1328 * regformats/i386/x32-avx-linux.dat: Regenerate.
1329 * regformats/i386/x32-avx.dat: Regenerate.
1330 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1331 * regformats/i386/x32-avx512.dat: Regenerate.
1332 * regformats/i386/x32-linux.dat: Regenerate.
1333 * regformats/i386/x32.dat: Regenerate.
1334 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1335 * regformats/mips-dsp-linux.dat: Regenerate.
1336 * regformats/mips-linux.dat: Regenerate.
1337 * regformats/mips64-dsp-linux.dat: Regenerate.
1338 * regformats/mips64-linux.dat: Regenerate.
1339 * regformats/nios2-linux.dat: Regenerate.
1340 * regformats/rs6000/powerpc-32.dat: Regenerate.
1341 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1342 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1343 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1344 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1345 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1346 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1347 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1348 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1349 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1350 * regformats/s390-linux32.dat: Regenerate.
1351 * regformats/s390-linux32v1.dat: Regenerate.
1352 * regformats/s390-linux32v2.dat: Regenerate.
1353 * regformats/s390-linux64.dat: Regenerate.
1354 * regformats/s390-linux64v1.dat: Regenerate.
1355 * regformats/s390-linux64v2.dat: Regenerate.
1356 * regformats/s390-te-linux64.dat: Regenerate.
1357 * regformats/s390x-linux64.dat: Regenerate.
1358 * regformats/s390x-linux64v1.dat: Regenerate.
1359 * regformats/s390x-linux64v2.dat: Regenerate.
1360 * regformats/s390x-te-linux64.dat: Regenerate.
1361 * regformats/tic6x-c62x-linux.dat: Regenerate.
1362 * regformats/tic6x-c62x.dat: Regenerate.
1363 * regformats/tic6x-c64x-linux.dat: Regenerate.
1364 * regformats/tic6x-c64x.dat: Regenerate.
1365 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1366 * regformats/tic6x-c64xp.dat: Regenerate.
1368 2014-10-01 Pedro Alves <palves@redhat.com>
1370 * features/Makefile: Update comments.
1371 (XMLTOC): List all xml files we build C files from.
1372 (clean-cfiles): New rule.
1374 2014-10-01 Pedro Alves <palves@redhat.com>
1376 * features/i386/amd64-avx512-linux.c: Regenerate.
1377 * features/i386/amd64-avx512.c: Regenerate.
1378 * features/i386/x32-avx512-linux.c: Regenerate.
1379 * features/i386/x32-avx512.c: Regenerate.
1381 2014-10-01 Pedro Alves <palves@redhat.com>
1383 * features/Makefile (WHICH): Remove arm-with-m,
1384 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1386 2014-10-01 Pedro Alves <palves@redhat.com>
1388 * features/Makefile (clean): New rule.
1390 2014-10-01 Pedro Alves <palves@redhat.com>
1392 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1393 (zmm14h): Add missing end quotes.
1395 2014-10-01 Pedro Alves <palves@redhat.com>
1397 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1398 * features/aarch64.c: Regenerate.
1400 2014-09-30 Don Breazeal <donb@codesourcery.com>
1402 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1403 code so as to work with follow_fork_inferior.
1404 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1405 (inf_ttrace_create_inferior): Remove reference to
1406 inf_ttrace_vfork_ppid.
1407 (inf_ttrace_attach): Ditto.
1408 (inf_ttrace_detach): Ditto.
1409 (inf_ttrace_kill): Use current_inferior instead of
1410 inf_ttrace_vfork_ppid.
1411 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1412 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1413 inferior away from the parent.
1414 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1416 (follow_fork_inferior): New function.
1417 (follow_inferior_reset_breakpoints): Make function static.
1418 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1419 * linux-nat.c (linux_child_follow_fork): Move target-independent
1420 code to infrun.c:follow_fork_inferior.
1422 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1424 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1425 * gdbarch.c: Regenerate.
1426 * gdbarch.h: Likewise.
1427 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1428 gdbarch method 'regset_from_core_section'.
1429 (get_core_register_section): Remove handling for the case that
1430 regset == NULL and regset_from_core_section is defined.
1431 (get_core_registers): Drop check for deleted method.
1432 * procfs.c (procfs_do_thread_registers): Adjust comment.
1434 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1436 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1437 (linux_nat_make_corefile_notes): Remove.
1438 (linux_target_install_ops): Do not set target method
1439 'make_corefile_notes'.
1440 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1442 (linux_corefile_thread_callback): Instead of args->collect, call
1443 linux_collect_thread_registers.
1444 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1445 NULL unless there is a regset iterator.
1446 (linux_make_corefile_notes_1): Remove.
1447 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1448 by linux_make_corefile_notes.
1449 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1451 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1453 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1454 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1456 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1458 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1460 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1461 (xtensa_iterate_over_regset_sections): New.
1462 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1464 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1466 * vax-tdep.c (vax_regset_from_core_section): Remove.
1467 (vax_iterate_over_regset_sections): New.
1468 (vax_gdbarch_init): Adjust gdbarch initialization.
1470 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1472 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1473 (tilegx_regset_from_core_section): Remove.
1474 (tilegx_iterate_over_regset_sections): New.
1475 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1477 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1479 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1480 (sparc_iterate_over_regset_sections): New.
1481 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1482 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1484 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1485 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1486 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1487 target method 'make_corefile_notes'.
1489 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1491 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1492 'sizeof_gregset' and 'sizeof_fpregset'.
1493 * sh-tdep.c (sh_regset_from_core_section): Remove.
1494 (sh_iterate_over_regset_sections): New.
1495 (sh_gdbarch_init): Adjust gdbarch initialization.
1496 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1498 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1501 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1503 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1504 (score7_linux_iterate_over_regset_sections): New.
1505 (score_gdbarch_init): Adjust gdbarch initialization.
1507 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1509 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1511 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1512 method 'make_corefile_notes'.
1513 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1514 (ppcfbsd_regset_from_core_section): Remove.
1515 (ppcfbsd_iterate_over_regset_sections): New.
1516 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1518 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1519 (ppcnbsd_iterate_over_regset_sections): New.
1520 (ppcnbsd_init_abi): Adjust.
1521 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1522 (ppcobsd_iterate_over_regset_sections): New.
1523 (ppcobsd_init_abi): Adjust.
1524 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1525 (rs6000_aix_iterate_over_regset_sections): New.
1526 (rs6000_aix_init_osabi): Adjust.
1528 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1530 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1531 (nios2_regset_from_core_section): Remove.
1532 (nios2_iterate_over_regset_sections): New.
1533 (nios2_linux_init_abi): Adjust gdbarch initialization.
1535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1537 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1538 (am33_iterate_over_regset_sections): New.
1539 (am33_linux_init_osabi): Adjust gdbarch initialization.
1541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1543 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1544 (mips_linux_iterate_over_regset_sections): New.
1545 (mips_linux_init_abi): Adjust gdbarch initialization.
1546 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1547 (mips64obsd_iterate_over_regset_sections): New.
1548 (mips64obsd_init_abi): Adjust.
1549 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1550 (mipsnbsd_iterate_over_regset_sections): New.
1551 (mipsnbsd_init_abi): Adjust.
1553 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1555 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1556 (m88k_iterate_over_regset_sections): New.
1557 (m88k_gdbarch_init): Adjust gdbarch initialization.
1559 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1561 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1562 (ia64_linux_iterate_over_regset_sections): New.
1563 (ia64_linux_init_abi): Adjust gdbarch initialization.
1565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1567 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1568 (m68kbsd_iterate_over_regset_sections): New.
1569 (m68kbsd_init_abi): Adjust gdbarch initialization.
1570 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1571 (m68k_linux_iterate_over_regset_sections): New.
1572 (m68k_linux_init_abi): Adjust gdbarch initialization.
1574 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1576 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1577 (m32r_linux_regset_from_core_section): Remove.
1578 (m32r_linux_iterate_over_regset_sections): New.
1579 (m32r_linux_init_abi): Adjust gdbarch initialization.
1581 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1583 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1584 (amd64obsd_iterate_over_regset_sections): New.
1585 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1586 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1588 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1589 regset_from_core_section initialization.
1590 * i386-tdep.c (i386_regset_from_core_section): Remove.
1591 (i386_iterate_over_regset_sections): New.
1592 (i386_gdbarch_init): Adjust gdbarch initialization.
1593 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1594 (i386_iterate_over_regset_sections): New prototype.
1595 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1597 (i386obsd_aout_iterate_over_regset_sections): New.
1598 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1599 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1601 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1602 (amd64fbsd_init_abi): Call fbsd_init_abi.
1603 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1604 (i386fbsd4_init_abi): Call fbsd_init_abi.
1605 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1606 target method 'make_corefile_notes'.
1607 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1609 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1611 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1612 (hppa_hpux_iterate_over_regset_sections): New.
1613 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1614 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1615 (hppa_linux_iterate_over_regset_sections): New.
1616 (hppa_linux_init_abi): Adjust.
1617 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1618 (hppanbsd_iterate_over_regset_sections): New.
1619 (hppanbsd_init_abi): Adjust.
1620 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1621 (hppaobsd_iterate_over_regset_sections): New.
1622 (hppaobsd_init_abi): Adjust.
1624 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1626 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1627 (frv_linux_iterate_over_regset_sections): New.
1628 (frv_linux_init_abi): Adjust gdbarch initialization.
1630 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1632 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1633 (armbsd_iterate_over_regset_sections): New prototype.
1634 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1635 (armbsd_iterate_over_regset_sections): New.
1636 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1639 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1641 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1642 (alpha_linux_iterate_over_regset_sections): New.
1643 (alpha_linux_init_abi): Adjust gdbarch initialization.
1644 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1646 (alphanbsd_iterate_over_regset_sections): New prototype.
1648 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1650 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1652 (aarch64_linux_iterate_over_regset_sections): New.
1653 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1655 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1657 * fbsd-tdep.c: New file.
1658 * fbsd-tdep.h: New file.
1659 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1660 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1661 (ALLDEPFILES): Add fbsd-tdep.c.
1663 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1665 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1667 * gdbarch.h: Regenerate.
1668 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1670 (get_core_register_section): Add parameter 'regset' and use it, if
1671 set. Add parameter 'min_size' and verify the bfd section size
1673 (get_core_registers_cb): Add parameter 'regset' and pass it to
1674 get_core_register section. For the "standard" register sections
1675 ".reg" and ".reg2", set an appropriate default for human_name.
1676 (get_core_registers): Don't abort when the gdbarch has an iterator
1677 but no regset_from_core_section. Add NULL/0 for parameters
1678 'regset'/'min_size' in calls to get_core_register_section.
1679 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1680 'regset' and use it instead of calling the
1681 regset_from_core_section gdbarch method.
1682 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1683 * i386-tdep.c (i386_supply_xstateregset)
1684 (i386_collect_xstateregset, i386_xstateregset): Moved to
1686 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1688 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1689 core file support only if the regset iterator hasn't been set.
1690 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1691 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1692 Moved from i386-tdep.c and renamed to *_linux*.
1693 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1694 each callback invocation. Allow any .reg-xstate size when reading
1696 * amd64-tdep.c (amd64_supply_xstateregset)
1697 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1699 (amd64_regset_from_core_section): Remove.
1700 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1701 install an amd64-specific regset_from_core_section gdbarch method.
1702 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1703 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1704 Moved from amd64-tdep.c and renamed to *_linux*.
1705 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1706 to each callback invocation. Allow any .reg-xstate size when
1707 reading from a core file.
1708 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1709 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1710 each callback invocation.
1711 (arm_linux_init_abi): No longer set the regset_from_core_section
1713 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1714 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1715 each callback invocation.
1716 (ppc_linux_init_abi): No longer set the regset_from_core_section
1718 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1719 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1720 (s390_regset_from_core_section): Remove.
1721 (s390_iterate_over_regset_sections): Add regset parameter to each
1722 callback invocation.
1723 (s390_gdbarch_init): No longer set the regset_from_core_section
1724 gdbarch method. Drop initialization of deleted tdep fields.
1726 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1728 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1729 (amd64_linux_iterate_over_regset_sections): New.
1730 (amd64_linux_init_abi_common): Don't install the regset section
1731 list, but the new iterator in gdbarch.
1732 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1733 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1734 (arm_linux_iterate_over_regset_sections): ...here. New function.
1735 (arm_linux_init_abi): Set iterator instead of section list.
1736 * corelow.c (get_core_registers_cb): New function, logic moved
1738 (get_core_registers): ...loop body here. Use new iterator method
1739 instead of walking through the regset section list.
1740 * gdbarch.sh: Remove 'core_regset_sections'. New method
1741 'iterate_over_regset_sections'. New typedef
1742 'iterate_over_regset_sections_cb'.
1743 * gdbarch.c: Regenerate.
1744 * gdbarch.h: Likewise.
1745 * i386-linux-tdep.c (i386_linux_regset_sections)
1746 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1748 (i386_linux_iterate_over_regset_sections): New.
1749 (i386_linux_init_abi): Don't choose a regset section list, but
1750 install new iterator in gdbarch.
1751 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1752 (linux_collect_regset_section_cb): New function, logic moved
1754 (linux_collect_thread_registers): ...loop body here. Use iterator
1755 method instead of walking through list.
1756 (linux_make_corefile_notes_1): Check for presence of iterator
1757 method instead of regset section list.
1758 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1759 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1760 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1761 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1762 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1763 (ppc_linux_init_abi): Don't choose from above regset section
1764 lists, but install new iterator in gdbarch.
1765 * regset.h (struct core_regset_section): Remove.
1766 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1767 have_linux_v1, have_linux_v2, and have_tdb.
1768 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1769 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1770 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1771 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1772 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1773 (s390_iterate_over_regset_sections): ...here. New function. Use
1775 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1776 regset section lists, but install new iterator.
1778 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1780 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1782 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1784 * progspace.c (print_program_space): Don't prune program spaces
1785 before printing them.
1787 2014-09-25 Pedro Alves <palves@redhat.com>
1789 * infrun.c (user_visible_resume_ptid): Don't check
1790 singlestep_breakpoints_inserted_p.
1792 2014-09-25 Pedro Alves <palves@redhat.com>
1794 * breakpoint.c (should_be_inserted): Add debug output.
1796 2014-09-25 Pedro Alves <palves@redhat.com>
1798 * infrun.c (stepping_past_instruction_at)
1799 (clear_exit_convenience_vars): Point at infrun.h instead of
1801 (handle_signal_stop): Fix typo.
1803 2014-09-24 Yao Qi <yao@codesourcery.com>
1805 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1808 2014-09-22 Gary Benson <gbenson@redhat.com>
1810 * target.c (target_stop): Updated comment.
1812 2014-09-22 Gary Benson <gbenson@redhat.com>
1814 * target/target.h (target_stop_ptid): Renamed as...
1815 (target_stop_and_wait): New function. Updated comment.
1817 (target_continue_ptid): Renamed as...
1818 (target_continue_no_signal): New function. Updated comment.
1821 2014-09-22 Pedro Alves <palves@redhat.com>
1823 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1825 * breakpoint.c (enum ugll_insert_mode): New enum.
1826 (always_inserted_mode): Now a plain boolean.
1827 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1828 (breakpoints_always_inserted_mode): Delete.
1829 (breakpoints_should_be_inserted_now): New function.
1830 (insert_breakpoints): Pass UGLL_INSERT to
1831 update_global_location_list instead of calling
1832 insert_breakpoint_locations manually.
1833 (create_solib_event_breakpoint_1): New, factored out from ...
1834 (create_solib_event_breakpoint): ... this.
1835 (create_and_insert_solib_event_breakpoint): Use
1836 create_solib_event_breakpoint_1 instead of calling
1837 insert_breakpoint_locations manually.
1838 (update_global_location_list): Change parameter type from boolean
1839 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1840 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1841 (update_global_location_list_nothrow): Change parameter type from
1842 boolean to enum ugll_insert_mode.
1843 (_initialize_breakpoint): "breakpoint always-inserted" option is
1844 now a boolean command. Update help text.
1845 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1846 (breakpoints_should_be_inserted_now): New declaration.
1847 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1848 Remove breakpoints_always_inserted_mode check.
1849 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1850 * remote.c (remote_start_remote): Likewise.
1852 2014-09-22 Pedro Alves <palves@redhat.com>
1854 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1855 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1856 Instead, pass UGLL_INSERT to update_global_location_list.
1857 (update_global_location_list): Change parameter type from boolean
1858 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1859 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1860 (create_solib_event_breakpoint_1): New, factored out from ...
1861 (create_solib_event_breakpoint): ... this.
1862 (create_and_insert_solib_event_breakpoint): Use
1863 create_solib_event_breakpoint_1 instead of calling
1864 insert_breakpoint_locations manually.
1865 (update_global_location_list): Handle UGLL_INSERT.
1867 2014-09-22 Pedro Alves <palves@redhat.com>
1869 * breakpoint.c (enum ugll_insert_mode): New enum.
1870 (update_global_location_list)
1871 (update_global_location_list_nothrow): Change parameter type from
1872 boolean to enum ugll_insert_mode. All callers adjusted.
1874 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1876 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1877 SystemTap support in GDB.
1879 2014-09-19 Don Breazeal <donb@codesourcery.com>
1881 * linux-nat.c (linux_handle_extended_wait): Call
1882 linux_ptrace_get_extended_event.
1883 (wait_lwp): Call linux_is_extended_waitstatus.
1884 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1885 and linux_is_extended_waitstatus.
1886 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1887 linux_ptrace_get_extended_event.
1888 (linux_ptrace_get_extended_event): New function.
1889 (linux_is_extended_waitstatus): New function.
1890 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1891 (linux_is_extended_waitstatus): New declarations.
1893 2014-09-19 Yao Qi <yao@codesourcery.com>
1895 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1896 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1897 comments. Callers update.
1898 (dwarf_decode_lines): Likewise.
1899 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1900 comments. Skip the line table if 'lowpc' is greater than
1901 'address'. Don't check
1902 dwarf2_per_objfile->has_section_at_zero.
1904 2014-09-18 Doug Evans <dje@google.com>
1906 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1907 * python/py-symtab.c (stpy_get_producer): New function.
1908 (symtab_object_getset): Add "producer" attribute.
1910 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1913 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1914 (do_captured_read_memory_integer): Remove.
1915 (safe_read_memory_integer): Use target_read_memory directly instead
1916 of catching errors in do_captured_read_memory_integer.
1918 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1920 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1923 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1925 * objc-lang.c (find_implementation_from_class): Remove dead code.
1927 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1930 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1931 "fprintf_unfiltered (gdb_stdlog...)".
1933 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1935 PR breakpoints/12526
1936 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1938 * breakpoint.c (watch_command_1): Use these fields to retain
1939 bitfield information.
1940 (extract_bitfield_from_watchpoint_value): New function.
1941 (watchpoint_check): Use it.
1942 (update_watchpoint): Use it. Optimize the address and length of a
1943 HW watchpoint pointing to a bitfield.
1944 * value.h (unpack_value_bitfield): New prototype.
1945 * value.c (unpack_value_bitfield): Make extern.
1947 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1949 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1951 * gnu-nat.c (inf_threads): New function.
1952 * gnu-nat.h (inf_threads_ftype): New typedef.
1953 (inf_threads): New declaration.
1954 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1955 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1956 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1957 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1958 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1959 (i386_gnu_dr_get_control): New functions.
1960 (reg_addr): New structure.
1961 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1962 i386 debugging register hooks.
1963 * NEWS: Mention this.
1965 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1967 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1968 vector data transfer instructions.
1969 (arm_record_coproc_data_proc): Updated.
1971 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1973 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1974 arm_record_exreg_ld_st_insn.
1975 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1978 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1980 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1981 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1982 processing instructions.
1984 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1986 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1987 for advance SIMD struct ld/st insn.
1988 (thumb2_record_decode_insn_handler): Replace stub handler with
1989 thumb2_record_asimd_struct_ld_st.
1991 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1993 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1994 for asimd, vfp and coprocessor insns.
1995 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1996 and coprocessor insns.
1997 (thumb2_record_coproc_insn): New function.
1998 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2000 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2003 2014-09-13 Doug Evans <xdje42@gmail.com>
2005 * NEWS: Mention new "queue-signal" command.
2006 * infcmd.c (queue_signal_command): New function.
2007 (_initialize_infcmd): Add new queue-signal command.
2009 2014-09-13 Doug Evans <xdje42@gmail.com>
2011 * linux-nat.c (wait_lwp): Add debugging printf.
2012 (linux_nat_wait_1): Ditto.
2014 2014-09-12 Pedro Alves <palves@redhat.com>
2016 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2017 (create_and_insert_solib_event_breakpoint): New functions.
2018 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2019 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2020 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2021 (remove_dbx_link_breakpoint): Delete function.
2022 (insert_dbx_link_bpt_in_file): Use
2023 create_and_insert_solib_event_breakpoint instead of
2024 deprecated_insert_raw_breakpoint.
2025 (procfs_wait): Don't check whether we hit __dbx_link here.
2026 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2028 * solib-irix.c (base_breakpoint): Delete global.
2029 (disable_break): Delete function.
2030 (enable_break): Use create_solib_event_breakpoint
2031 instead of deprecated_insert_raw_breakpoint.
2032 (irix_solib_handle_event): New function.
2033 (irix_solib_create_inferior_hook): Don't run the target or disable
2034 the mapping-complete breakpoint here.
2035 (_initialize_irix_solib): Install irix_solib_handle_event as
2036 so_ops->handle_event hook.
2038 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2039 Ulrich Weigand <uweigand@de.ibm.com>
2042 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2043 instead of read_memory_unsigned_integer.
2045 2014-09-12 Gary Benson <gbenson@redhat.com>
2047 * nat/linux-waitpid.c: Include common-defs.h.
2048 [GDBSERVER]: Add FIXME comment.
2049 [!GDBSERVER]: Don't include defs.h or signal.h.
2050 (linux_debug) [!GDBSERVER]: Remove empty block.
2052 2014-09-12 Gary Benson <gbenson@redhat.com>
2054 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2055 Don't include defs.h or server.h.
2057 2014-09-12 Gary Benson <gbenson@redhat.com>
2059 * nat/linux-btrace.c: Include common-defs.h.
2060 Don't include defs.h, server.h or gdbthread.h.
2061 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2063 2014-09-12 Gary Benson <gbenson@redhat.com>
2065 * common/agent.c: Include common-defs.h.
2066 Don't include defs.h or server.h.
2067 * common/buffer.c: Likewise.
2068 * common/common-debug.c: Likewise.
2069 * common/common-utils.c: Likewise.
2070 * common/errors.c: Likewise.
2071 * common/filestuff.c: Likewise.
2072 * common/format.c: Likewise.
2073 * common/gdb_vecs.c: Likewise.
2074 * common/print-utils.c: Likewise.
2075 * common/ptid.c: Likewise.
2076 * common/rsp-low.c: Likewise.
2077 * common/signals.c: Likewise.
2078 * common/vec.c: Likewise.
2079 * common/xml-utils.c: Likewise.
2080 * nat/linux-osdata.c: Likewise.
2081 * nat/linux-procfs.c: Likewise.
2082 * nat/linux-ptrace.c: Likewise.
2083 * nat/mips-linux-watch.c: Likewise.
2084 * target/waitstatus.c: Likewise.
2086 2014-09-12 Tom Tromey <tromey@redhat.com>
2087 Gary Benson <gbenson@redhat.com>
2089 * common/common-regcache.h: New file.
2090 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2091 * regcache.h: Include common-regcache.h.
2092 (regcache_read_pc): Don't declare.
2093 * regcache.c (get_thread_regcache_for_ptid): New function.
2094 * nat/linux-btrace.c: Don't include regcache.h.
2095 Include common-regcache.h.
2096 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2098 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2100 * regcache.h (struct regset): Declare.
2102 2014-09-11 Pedro Alves <palves@redhat.com>
2105 * main.c: Include "infrun.h".
2106 (catch_command_errors, catch_command_errors_const): Wait for the
2107 foreground command to complete.
2108 * top.c (maybe_wait_sync_command_done): New function, factored out
2110 (maybe_wait_sync_command_done): ... here.
2111 * top.h (maybe_wait_sync_command_done): New declaration.
2113 2014-09-11 Tom Tromey <tromey@redhat.com>
2114 Gary Benson <gbenson@redhat.com>
2116 * common/symbol.h: New file.
2117 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2118 * minsyms.c (find_minimal_symbol_address): New function.
2119 * common/agent.c: Include common/symbol.h.
2120 [!GDBSERVER]: Don't include objfiles.h.
2121 (agent_look_up_symbols): Use find_minimal_symbol_address.
2123 2014-09-11 Gary Benson <gbenson@redhat.com>
2125 * target/target.h (target_stop_ptid, target_continue_ptid):
2127 * target.c (target_stop_ptid, target_continue_ptid): New
2129 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2130 (agent_run_command): Always use target_stop_ptid and
2131 target_continue_ptid.
2133 2014-09-11 Tom Tromey <tromey@redhat.com>
2134 Gary Benson <gbenson@redhat.com>
2136 * target/target.h: New file.
2137 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2138 * target.h: Include target/target.h.
2139 (target_read_memory, target_write_memory): Don't declare.
2140 * target.c (target_read_uint32): New function.
2141 * common/agent.c: Include target/target.h.
2142 [!GDBSERVER]: Don't include target.h.
2143 (helper_thread_id): Type changed to uint32_t.
2144 (agent_get_helper_thread_id): Use target_read_uint32.
2145 (agent_run_command): Always use target_read_memory and
2146 target_write_memory.
2147 (agent_capability): Type changed to uint32_t.
2148 (agent_capability_check): Use target_read_uint32.
2150 2014-09-11 Gary Benson <gbenson@redhat.com>
2152 * common/common-debug.h (show_debug_regs): Declare.
2153 * common/common-debug.c (show_debug_regs): Define.
2154 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2155 all uses with show_debug_regs. Replace all uses that considered
2156 debug_hw_points as a multi-value integer with straight boolean
2158 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2159 with show_debug_regs.
2160 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2161 all uses with show_debug_regs.
2162 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2163 uses with show_debug_regs.
2165 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2167 * findvar.c (address_from_register): Handle targets requiring
2168 a special conversion routine even for plain pointer types.
2170 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2172 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2173 (store_register): Do not call exec_one_dummy_insn.
2175 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2177 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2178 dereference it first. Use value_enclosing_type instead of
2180 (ada_array_length): Likewise.
2182 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2184 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2185 Adjust function implementation and documentation accordingly.
2186 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2187 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2188 Update call to ada_value_ptr_subscript.
2190 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2192 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2193 instead of VAL's type.
2195 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2197 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2199 2014-09-09 Doug Evans <xdje42@gmail.com>
2202 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2203 last parameter to pkg-config, not first.
2204 * configure.ac: Pass --with-guile provided pkg-config path to
2205 GDB_GUILE_PROGRAM_NAMES.
2206 * configure: Regenerate.
2208 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2210 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2213 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2215 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2216 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2217 the list of sections determining GDB_OSABI_IRIX.
2219 2014-09-09 James Hogan <james.hogan@imgtec.com>
2221 * MAINTAINERS (Write After Approval): Add "James Hogan".
2223 2014-09-09 James Hogan <james.hogan@imgtec.com>
2225 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2227 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2229 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2231 2014-09-08 Doug Evans <xdje42@gmail.com>
2234 * guile.c: #include <signal.h>.
2235 (_initialize_guile): Block SIGCHLD while initializing Guile.
2237 Replaces the following, which is reverted.
2239 2014-07-26 Doug Evans <xdje42@gmail.com>
2242 * configure.ac: Add check for header gc/gc.h.
2243 Add check for function setenv.
2244 * configure: Regenerate.
2245 * config.in: Regenerate.
2246 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2248 2014-09-08 Doug Evans <xdje42@gmail.com>
2250 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2251 with named constant. Fix style of pointer comparison.
2252 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2254 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2257 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2258 decide whether we display the command on "show user".
2259 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2260 printing command name.
2261 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2262 * cli/cli-decode.c (cli_user_command_p): Create helper function
2263 to verify whether cmd_list_element is a user-defined command.
2265 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2268 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2269 Fix goto out of TRY_CATCH.
2271 2014-09-06 Doug Evans <xdje42@gmail.com>
2272 Tom Tromey <tromey@redhat.com>
2275 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2276 $_any_caller_matches.
2277 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2278 * python/lib/gdb/function/caller_is.py: New file.
2280 2014-09-06 Doug Evans <xdje42@gmail.com>
2282 * infcmd.c (program_info): Fix typo.
2284 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2287 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2288 'number'. New variable 'has_digit'. Rewrite code to deal with
2289 subexpressions on SDT probes.
2291 2014-09-04 Pedro Alves <palves@redhat.com>
2293 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2294 the input is only one character long.
2296 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2299 * f-valprint.c (f_val_print): Specify the correct print option to
2300 use when printing integer values.
2302 2014-09-04 Gary Benson <gbenson@redhat.com>
2304 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2305 Remove code to cope with LWPs wrapped as PIDs.
2306 Add assertions to ensure no wrapped LWPs are passed.
2308 2014-09-04 Pedro Alves <palves@redhat.com>
2310 * value.c (value_ranges_copy_adjusted): New function, factored out
2312 (value_contents_copy_raw): ... here.
2313 (unpack_value_bits_as_long_1): Rename back to ...
2314 (unpack_bits_as_long): ... this. Remove 'original_value' and
2315 'result' parameters. Change return type to LONGEST.
2316 (unpack_value_bits_as_long): Delete.
2317 (unpack_value_field_as_long_1): Delete.
2318 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2319 (unpack_value_bitfield): New function.
2320 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2321 (value_fetch_lazy): Use unpack_value_bitfield.
2322 * value.h (unpack_value_bits_as_long): Delete declaration.
2324 2014-09-03 Sasha Smundak <asmundak@google.com>
2326 * python/py-frame.c (frapy_read_register): New function.
2328 2014-09-03 James Hogan <james.hogan@imgtec.com>
2330 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2331 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2333 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2336 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2338 (add_cmd): Set "completer_handle_brkchars" to NULL.
2339 * cli/cli-decode.h (struct cmd_list_element)
2340 <completer_handle_brkchars>: New field.
2341 * command.h (completer_ftype_void): New typedef.
2342 (set_cmd_completer_handle_brkchars): New prototype.
2343 * completer.c (set_gdb_completion_word_break_characters): New
2345 (complete_line_internal): Call "completer_handle_brkchars"
2346 callback from command.
2347 * completer.h: Include "command.h".
2348 (set_gdb_completion_word_break_characters): New prototype.
2349 * python/py-cmd.c (cmdpy_completer_helper): New function.
2350 (cmdpy_completer_handle_brkchars): New function.
2351 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2352 (cmdpy_init): Set completer_handle_brkchars to
2353 cmdpy_completer_handle_brkchars.
2355 2014-09-03 Gary Benson <gbenson@redhat.com>
2357 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2358 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2359 Loop conditions changed to equivalent form.
2360 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2361 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2362 ALL_DEBUG_ADDRESS_REGISTERS.
2364 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2366 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2369 2014-09-02 Doug Evans <dje@google.com>
2371 * typeprint.c (find_global_typedef): Fix comment.
2373 2014-09-02 Gary Benson <gbenson@redhat.com>
2375 * i386-nat.h: Renamed as...
2376 * x86-nat.h: New file. All type, function and variable name
2377 prefixes changed from "i386_" to "x86_". All references updated.
2378 * i386-nat.c: Renamed as...
2379 * x86-nat.c: New file. All type, function and variable name
2380 prefixes changed from "i386_" to "x86_". All references updated.
2381 * common/i386-xstate.h: Renamed as...
2382 * common/x86-xstate.h: New file. All type, function and variable
2383 name prefixes changed from "i386_" to "x86_". All references
2385 * nat/i386-cpuid.h: Renamed as...
2386 * nat/x86-cpuid.h: New file. All type, function and variable name
2387 prefixes changed from "i386_" to "x86_". All references updated.
2388 * nat/i386-gcc-cpuid.h: Renamed as...
2389 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2390 name prefixes changed from "i386_" to "x86_". All references
2392 * nat/i386-dregs.h: Renamed as...
2393 * nat/x86-dregs.h: New file. All type, function and variable name
2394 prefixes changed from "i386_" to "x86_". All references updated.
2395 * nat/i386-dregs.c: Renamed as...
2396 * nat/x86-dregs.c: New file. All type, function and variable name
2397 prefixes changed from "i386_" to "x86_". All references updated.
2399 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2401 * varobj.c (_initialize_varobj): Move to the end of file.
2403 2014-08-29 Gary Benson <gbenson@redhat.com>
2405 * common/common-exceptions.h: New file.
2406 * common/common-exceptions.c: Likewise.
2407 * Makefile.in (SFILES): Add common/common-exceptions.c.
2408 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2409 (COMMON_OBS): Add common-exceptions.o.
2410 (common-exceptions.o): New rule.
2411 * exceptions.h (common-exceptions.h): Include.
2412 (gdb_setjmp.h): Do not include.
2413 (return_reason): Moved to common-exceptions.h.
2414 (enum return_reason): Likewise.
2415 (RETURN_MASK): Likewise.
2416 (typedef return_mask): Likewise.
2417 (enum errors): Likewise.
2418 (struct gdb_exception): Likewise.
2419 (exceptions_state_mc_init): Likewise.
2420 (exceptions_state_mc_action_iter): Likewise.
2421 (exceptions_state_mc_action_iter_1): Likewise.
2422 (TRY_CATCH): Likewise.
2423 (throw_exception): Likewise.
2424 (throw_verror): Likewise.
2425 (throw_vquit): Likewise.
2426 (throw_error): Likewise.
2427 (throw_quit): Likewise.
2428 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2429 (enum catcher_action): Likewise.
2430 (struct catcher): Likewise.
2431 (current_catcher): Likewise.
2432 (catcher_list_size): Likewise.
2433 (exceptions_state_mc_init): Likewise.
2434 (catcher_pop): Likewise.
2435 (exceptions_state_mc): Likewise.
2436 (exceptions_state_mc_action_iter): Likewise.
2437 (exceptions_state_mc_action_iter_1): Likewise.
2438 (throw_exception): Likewise.
2439 (exception_messages): Likewise.
2440 (exception_messages_size): Likewise.
2441 (throw_it): Likewise.
2442 (throw_verror): Likewise.
2443 (throw_vquit): Likewise.
2444 (throw_error): Likewise.
2445 (throw_quit): Likewise.
2446 (prepare_to_throw_exception): New function.
2448 2014-08-29 Gary Benson <gbenson@redhat.com>
2450 * common/gdb_setjmp.h: New file.
2451 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2452 * configure.ac: Move sigsetjmp check...
2453 * common/common.m4: ...here.
2454 * configure: Regenerate.
2455 * cp-support.c (SIGJMP_BUF): Delete.
2456 (SIGSETJMP): Likewise.
2457 (SIGLONGJMP): Likewise.
2458 * exceptions.h (gdb_setjmp.h): Include.
2459 (setjmp.h): Do not include.
2460 (EXCEPTIONS_SIGJMP_BUF): Delete.
2461 (EXCEPTIONS_SIGSETJMP): Likewise.
2462 (EXCEPTIONS_SIGLONGJMP): Likewise.
2463 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2465 * exceptions.c: Likewise.
2467 2014-08-29 Gary Benson <gbenson@redhat.com>
2469 * cleanups.h: Moved to...
2470 * common/cleanups.h: New file.
2471 * cleanups.c: Moved to...
2472 * common/cleanups.c: New file. Include common-defs.h and
2473 cleanups.h. Do not include defs.h.
2474 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2475 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2476 (cleanups.o): New rule.
2478 2014-08-29 Gary Benson <gbenson@redhat.com>
2480 * common/errors.h (internal_warning): New declaration.
2481 (internal_vwarning): Likewise.
2482 * common/errors.c (internal_warning): New function.
2483 * utils.h (internal_warning): Don't declare.
2484 (internal_vwarning): Likewise.
2485 * utils.c (internal_warning): Removed.
2487 2014-08-29 Gary Benson <gbenson@redhat.com>
2489 * main.c (captured_main): Use warning during startup.
2490 Prefix startup warning messages with command name.
2492 2014-08-29 Gary Benson <gbenson@redhat.com>
2494 * main.c (captured_main): Handle usage errors with error.
2496 2014-08-29 Gary Benson <gbenson@redhat.com>
2498 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2499 exit pair with a call to error. Wrap the message with _().
2501 2014-08-29 Gary Benson <gbenson@redhat.com>
2503 * main.c (captured_main): Replace a fprintf/exit
2504 pair with a call to error. Wrap the message with _().
2506 2014-08-29 Gary Benson <gbenson@redhat.com>
2508 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2509 pairs with calls to error. Wrap the message with _().
2511 2014-08-29 Gary Benson <gbenson@redhat.com>
2513 * utils.c (vwarning): Protect calls to target_terminal_ours
2516 2014-08-29 Gary Benson <gbenson@redhat.com>
2518 * exceptions.c (print_flush): Protect calls to
2519 target_terminal_ours and wrap_here.
2521 2014-08-29 Gary Benson <gbenson@redhat.com>
2523 * utils.h (filtered_printing_initialized): New declaration.
2524 * utils.c (abort_with_message): New function.
2525 (internal_vproblem): Use abort_with_message for first level
2526 recursive internal problems, and if gdb_stderr is not set up.
2527 Protect calls to target_terminal_ours, begin_line and query.
2529 2014-08-28 Doug Evans <dje@google.com>
2531 * symtab.c (in_prologue): Move definition to better spot.
2532 (skip_prologue_using_sal): Ditto.
2534 2014-08-28 Doug Evans <dje@google.com>
2536 * symtab.c (find_function_start_sal): Move definition to better spot.
2538 2014-08-28 Yao Qi <yao@codesourcery.com>
2540 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2541 found_stack_adjust in forward scan. Remove condition check
2542 on found_stack_adjust which is always true. Indent the code.
2544 2014-08-28 Yao Qi <yao@codesourcery.com>
2546 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2547 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2548 (dwarf_decode_lines): Remove argument
2549 want_line_info. Remove condition check on want_line_info.
2552 2014-08-27 Doug Evans <dje@google.com>
2554 * dwarf2read.c (dwarf_record_line): Fix typo.
2556 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2558 * target.h (struct target_ops::to_terminal_save_ours): Remove
2560 (target_terminal_save_ours): Remove macro.
2561 * target-delegates.c: Regenerate.
2562 * inf-child.c (inf_child_target): Don't set the nonexistent
2563 field to_terminal_save_ours.
2564 * inferior.h (child_terminal_save_ours): Remove declaration.
2565 * terminal.h (gdb_save_tty_state): New declaration.
2566 * inflow.c (child_terminal_save_ours): Rename to ...
2567 (gdb_save_tty_state): ... this.
2568 * tui/tui.c: Include terminal.h.
2569 (tui_enable): Use gdb_save_tty_state instead of
2570 target_terminal_save_ours.
2571 (tui_disable): Likewise.
2573 2014-08-25 Doug Evans <dje@google.com>
2575 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2576 Pass NULL instead of 0 for context pointer.
2578 2014-08-25 Yao Qi <yao@codesourcery.com>
2580 * dwarf2read.c: Fix grammatical error.
2582 2014-08-24 Yao Qi <yao@codesourcery.com>
2584 * dwarf2read.c (scan_partial_symbols): Update comments.
2585 Rename argument 'need_pc' with 'set_addrmap'.
2586 (add_partial_namespace): Rename argument 'need_pc' with
2588 (add_partial_module): Likewise.
2589 (add_partial_subprogram): Likewise. Update comments.
2590 (dwarf2_name): Fix typo.
2592 2014-08-22 Doug Evans <dje@google.com>
2595 * dwarf2read.c (dwarf_record_line_p): New function.
2596 (dwarf_decode_lines_1): Ignore subsequent line number entries
2597 for the same line if any entry had a non-zero discriminator.
2599 2014-08-22 Doug Evans <dje@google.com>
2601 * buildsym.h (record_line_ftype): New typedef.
2602 (record_line): Use it.
2603 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2604 (dwarf_decode_lines_1): Call them.
2606 2014-08-22 Yao Qi <yao@codesourcery.com>
2608 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2609 (ctf_end): Remove code.
2611 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2613 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2614 (linux_make_corefile_notes): call update_thread_list, protected against
2617 2014-08-21 Pedro Alves <palves@redhat.com>
2619 * infcmd.c (attach_command): Remove comment.
2621 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2623 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2624 unsigned LONGEST to ULONGEST.
2626 2014-08-20 Pedro Alves <palves@redhat.com>
2628 * Makefile.in (check-read1): New rule.
2630 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2632 * value.c (value_from_contents_and_address): Strip resolved_type's
2633 typedef layers before checking its TYPE_DATA_LOCATION.
2635 2014-08-20 Pedro Alves <palves@redhat.com>
2637 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2639 2014-08-20 Yao Qi <yao@codesourcery.com>
2641 * amd64-tdep.c (amd64_classify): Add a blank line after the
2642 example. Move "*/" to a new line.
2643 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2644 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2645 * dwarf2read.c (psymtab_include_file_name): Likewise.
2647 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2648 Pedro Alves <palves@redhat.com>
2652 * ada-lang.c (coerce_unspec_val_to_type): Use
2653 value_contents_copy_raw.
2654 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2655 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2656 * cp-valprint.c (cp_print_value_fields): Let the common printing
2657 code handle optimized out values.
2658 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2659 * d-valprint.c (dynamic_array_type): Use
2660 value_bits_any_optimized_out.
2661 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2662 check_any_valid fields.
2663 (check_pieced_value_bits): Delete and inline ...
2664 (check_pieced_synthetic_pointer): ... here.
2665 (check_pieced_value_validity): Delete.
2666 (check_pieced_value_invalid): Delete.
2667 (pieced_value_funcs): Remove check_validity and check_any_valid
2669 (read_pieced_value): Use mark_value_bits_optimized_out.
2670 (write_pieced_value): Switch to use
2671 mark_value_bytes_optimized_out.
2672 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2673 of assuming the whole value is optimized out.
2674 * findvar.c (read_frame_register_value): Remove special handling
2675 of optimized out registers.
2676 (value_from_register): Use mark_value_bytes_optimized_out.
2677 * frame-unwind.c (frame_unwind_got_optimized): Use
2678 mark_value_bytes_optimized_out.
2679 * jv-valprint.c (java_value_print): Adjust.
2680 (java_print_value_fields): Let the common printing code handle
2681 optimized out values.
2682 * mips-tdep.c (mips_print_register): Remove special handling of
2683 optimized out registers.
2684 * opencl-lang.c (lval_func_check_validity): Delete.
2685 (lval_func_check_any_valid): Delete.
2686 (opencl_value_funcs): Remove check_validity and check_any_valid
2688 * p-valprint.c (pascal_object_print_value_fields): Let the common
2689 printing code handle optimized out values.
2690 * stack.c (read_frame_arg): Remove special handling of optimized
2691 out values. Fetch both VAL and ENTRYVAL before comparing
2692 contents. Adjust to value_available_contents_eq rename.
2693 * valprint.c (valprint_check_validity)
2694 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2695 (val_print_array_elements): Adjust.
2696 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2697 (value_bits_any_optimized_out): New function.
2698 (value_entirely_covered_by_range_vector): New function, factored
2699 out from value_entirely_unavailable.
2700 (value_entirely_unavailable): Reimplement.
2701 (value_entirely_optimized_out): New function.
2702 (insert_into_bit_range_vector): New function, factored out from
2703 mark_value_bits_unavailable.
2704 (mark_value_bits_unavailable): Reimplement.
2705 (struct ranges_and_idx): New struct.
2706 (find_first_range_overlap_and_match): New function, factored out
2707 from value_available_contents_bits_eq.
2708 (value_available_contents_bits_eq): Rename to ...
2709 (value_contents_bits_eq): ... this. Check both unavailable
2710 contents and optimized out contents.
2711 (value_available_contents_eq): Rename to ...
2712 (value_contents_eq): ... this.
2713 (allocate_value_lazy): Remove reference to the old optimized_out
2715 (allocate_optimized_out_value): Use
2716 mark_value_bytes_optimized_out.
2717 (require_not_optimized_out): Adjust to check whether the
2718 optimized_out vec is empty.
2719 (ranges_copy_adjusted): New function, factored out from
2720 value_contents_copy_raw.
2721 (value_contents_copy_raw): Also copy the optimized out ranges.
2722 Assert the destination ranges aren't optimized out.
2723 (value_contents_copy): Update comment, remove call to
2724 require_not_optimized_out.
2725 (value_contents_equal): Adjust to check whether the optimized_out
2727 (set_value_optimized_out, value_optimized_out_const): Delete.
2728 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2730 (value_entirely_optimized_out, value_bits_valid): Delete.
2731 (value_copy): Take a VEC copy of the 'optimized_out' field.
2732 (value_primitive_field): Remove special handling of optimized out.
2733 (value_fetch_lazy): Assert that lazy values have no unavailable
2734 regions. Use value_bits_any_optimized_out. Remove some special
2735 handling for optimized out values.
2736 * value.h: Add intro comment about <optimized out> and
2738 (struct lval_funcs): Remove check_validity and check_any_valid
2740 (set_value_optimized_out, value_optimized_out_const): Remove.
2741 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2743 (value_bits_any_optimized_out): New declaration.
2744 (value_bits_valid): Delete declaration.
2745 (value_available_contents_eq): Rename to ...
2746 (value_contents_eq): ... this, and extend comments.
2748 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2750 Fix -fsanitize=address on unreadable inferior strings.
2751 * valprint.c (val_print_string): Fix access before BUFFER.
2753 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2755 * target.c (target_struct_size): Remove.
2756 (target_struct_allocsize): Remove.
2757 (DEFAULT_ALLOCSIZE): Remove.
2758 (target_ops_p): New typedef.
2759 (DEF_VEC_P (target_ops_p)): New vector type.
2760 (target_structs): Change type to VEC (target_ops_p).
2761 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2762 (find_default_run_target): Rewrite for loop following changes to
2765 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2767 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2768 Adjust code accordingly. Adjust function description comment.
2770 2014-08-19 Yao Qi <yao@codesourcery.com>
2772 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2775 2014-08-19 Alan Modra <amodra@gmail.com>
2777 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2778 * config.in: Regenerate.
2779 * configure: Regenerate.
2781 2014-08-19 Tom Tromey <tromey@redhat.com>
2782 Gary Benson <gbenson@redhat.com>
2784 * common/common-debug.h: New file.
2785 * common/common-debug.c: Likewise.
2786 * debug.c: Likewise.
2787 * Makefile.in (SFILES): Add common/common-debug.c.
2788 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2789 (COMMON_OBS): Add common-debug.o and debug.o.
2790 (common-debug.o): New rule.
2791 * common/common-defs.h: Include common-debug.h.
2792 * common/agent.c (debug_agent_printf): New function.
2793 (DEBUG_AGENT): Redefine.
2794 * nat/i386-dregs.c (debug_printf): Undefine.
2796 2014-08-19 Gary Benson <gbenson@redhat.com>
2798 * common/common-defs.h: Include print-utils.h.
2799 * utils.h: Do not include print-utils.h.
2801 2014-08-19 Tom Tromey <tromey@redhat.com>
2802 Gary Benson <gbenson@redhat.com>
2804 * common/common-types.h: New file.
2805 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2806 * common/common-defs.h: Include common-types.h.
2807 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2810 2014-08-19 Tom Tromey <tromey@redhat.com>
2811 Gary Benson <gbenson@redhat.com>
2813 * common/errors.h: New file.
2814 * common/errors.c: Likewise.
2815 * Makefile.in (SFILES): Add common/errors.c.
2816 (HFILES_NO_SRCDIR): Add common/errors.h.
2817 (COMMON_OBS): Add errors.o.
2818 (errors.o): New rule.
2819 * common/common-defs.h: Include errors.h.
2820 * utils.h (perror_with_name, error, verror, warning, vwarning):
2822 * common/common-utils.h: (malloc_failure, internal_error):
2825 2014-08-19 Gary Benson <gbenson@redhat.com>
2827 * utils.c (internal_vproblem): Always print the message.
2829 2014-08-18 Doug Evans <dje@google.com>
2831 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2833 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2835 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2836 Return 0 if TYPE is dynamic.
2837 (print_range): Add handling of dynamic ranges.
2839 2014-08-18 Keven Boell <keven.boell@intel.com>
2840 Joel Brobecker <brobecker@adacore.com>
2842 * gdbtypes.h (struct main_type): Add field "data_location".
2843 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2844 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2845 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2846 a dynamic data location.
2847 (resolve_dynamic_type): Add DW_AT_data_location handling.
2848 (copy_recursive, copy_type): Copy the data_location information
2850 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2851 * value.c (value_from_contents_and_address): Add
2852 DW_AT_data_location handling.
2854 2014-08-18 Keven Boell <keven.boell@intel.com>
2855 Joel Brobecker <brobecker@adacore.com>
2857 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2858 field "get_object_address".
2859 * dwarf2expr.c (execute_stack_op): Add handling for
2860 DW_OP_push_object_address.
2861 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2862 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2863 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2864 (dwarf_expr_get_obj_addr): New function.
2865 (dwarf_expr_ctx_funcs): Add get_object_address field.
2866 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2867 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2868 (dwarf2_evaluate_property): Add parameter "address". Use it.
2869 (needs_get_obj_addr): New function.
2870 (needs_frame_ctx_funcs): Add get_object_address field.
2871 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2872 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2873 (resolve_dynamic_array): Likewise.
2875 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2877 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2878 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2879 fixed value for records and unions for which some GNAT encodings
2882 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2884 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2885 rewrite to avoid "else if" and "else" constructs. Should be
2886 a no-op in practice.
2888 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2890 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2893 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2896 * eval.c: Update all calls to find_overload_match.
2897 * valarith.c: Likewise.
2898 (value_user_defined_cpp_op, value_user_defined_op): New
2899 argument NOSIDE. Update all callers.
2900 * valops.c (find_overload_match): New argument NOSIDE.
2901 * value.h (find_overload_match): Update signature.
2903 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2905 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2906 'items' methods instead of 'iteritems' method on dictionaries.
2908 2014-08-15 Doug Evans <dje@google.com>
2910 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2913 2014-08-15 Doug Evans <dje@google.com>
2915 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2917 2014-08-15 Doug Evans <dje@google.com>
2919 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2921 2014-08-15 Doug Evans <dje@google.com>
2923 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2926 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2928 * dcache.h: Include target.h, to avoid compile time warnings.
2930 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2932 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2933 frame_info" partial declaration.
2934 * gdbarch.h: Regenerate.
2936 2014-08-15 Yao Qi <yao@codesourcery.com>
2938 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2939 Add parameter 'decode_for_pst_p'. Callers update.
2941 2014-08-13 Yao Qi <yao@codesourcery.com>
2944 * configure.ac: Use local variable 'pos'.
2945 * configure: Regenerated.
2947 2014-08-11 Doug Evans <dje@google.com>
2949 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2950 message, it is redundant with "Reading symbols from ..." message.
2952 2014-08-10 Doug Evans <xdje42@gmail.com>
2954 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2956 2014-08-09 Yao Qi <yao@codesourcery.com>
2959 * remote.c (remote_xfer_partial): Remove dead code.
2961 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2963 * ia64-linux-tdep.c: Include "regset.h".
2964 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2965 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2966 (ia64_linux_supply_fpregset): New function.
2967 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2968 (ia64_linux_regset_from_core_section): New function.
2969 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2972 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2974 * m68klinux-tdep.c: Include "regset.h".
2975 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2976 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2977 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2978 (m68k_linux_regset_from_core_section): New function.
2979 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2982 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2984 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2985 function. Move logic to...
2986 (tilegx_linux_regmap): ... this new register map.
2987 (tilegx_linux_regset): Refer to register map, replace supply
2988 method by regcache_supply_regset, and add collect method.
2989 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2990 TILEGX_FIRST_EASY_REGNUM.
2992 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2994 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2995 that calls regcache_supply_regset and handles the EPC register
2996 separately. Move main logic to...
2997 (score7_linux_gregmap): ... this new register map.
2998 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2999 (score7_linux_gregset): Refer to register map. Add collect method.
3000 (score7_linux_regset_from_core_section): Replace
3001 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3002 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3003 (struct regset): Delete unused forward declaraction.
3004 (struct pt_regs): Delete structure definition.
3005 (elf_gregset_t): Delete typedef.
3007 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3009 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3010 (nios2_core_regset): Add collect method.
3012 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3014 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3015 platform-independent and don't write to read-only input buffer.
3016 (m32r_linux_collect_gregset): New function.
3017 (m32r_linux_gregset): Add collect method.
3019 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3021 * hppa-linux-tdep.c (greg_map): Rename to...
3022 (hppa_linux_gregmap): ... this. Also convert to
3023 regcache_map_entry format.
3024 (hppa_linux_supply_regset): Delete function.
3025 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3026 (hppa_linux_fpregmap): ... this new register map.
3027 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3028 register map, replace supply method by regcache_supply_regset, and
3029 add collect method regcache_collect_regset.
3031 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3033 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3034 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3035 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3036 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3037 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3038 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3039 (frv_linux_supply_gregset): Replace main logic by call to
3040 regcache_supply_regset, but keep clearing gr32-gr63.
3041 (frv_linux_supply_fpregset): Delete function.
3042 (frv_linux_gregset): Refer to appropriate register map and add
3043 regcache_collect_regset as the collect method.
3044 (frv_linux_fpregset): Likewise. Also exchange the supply method
3045 by regcache_supply_regset.
3047 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3049 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3050 by call to alpha_supply_int_regs.
3051 (alpha_linux_collect_gregset): New function.
3052 (alpha_linux_supply_fpregset): Replace logic by call to
3053 alpha_supply_fp_regs.
3054 (alpha_linux_collect_fpregset): New function.
3055 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3057 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3059 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3060 by call to regcache_collect_regset.
3061 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3062 instead of aarch64_linux_supply_gregset/_fpregset.
3063 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3064 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3065 header file instead.
3066 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3067 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3068 functions. Move logic to ...
3069 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3071 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3072 refer to new register maps, replace *_regset_from_core by
3073 regcache_supply_regset, and also use regcache_collect_regset.
3074 * aarch64-linux-tdep.h: Include "regset.h".
3075 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3077 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3078 macros, moved from C source file.
3079 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3080 variable declarations.
3082 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3084 * s390-linux-nat.c: Include "regset.h".
3085 (regmap_gregset): Delete macro.
3086 (s390_64_regmap_gregset): New register map for
3087 regcache_supply/_collect_regset.
3088 (s390_64_gregset): New regset.
3089 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3090 (regmap_fpregset): Delete macro.
3091 (s390_native_supply, s390_native_collect): Delete functions.
3092 (supply_gregset, fill_gregset): Replace s390-specific regmap
3093 handling by a call to regcache_supply/_collect_regset.
3094 (supply_fpregset, fill_fpregset): Call regcache_supply/
3095 _collect_regset instead of s390_native_supply/_collect.
3096 (fetch_regset, store_regset): Likewise. Also change the last
3097 parameter to a regset instead of a regmap.
3098 (s390_linux_fetch_inferior_registers)
3099 (390_linux_store_inferior_registers): Adjust last parameter in
3100 calls to fetch_regset and store_regset.
3101 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3102 (s390_gregmap): ... this. Also make static const and convert to
3103 regcache_map_entry format.
3104 (s390x_regmap_gregset): Delete.
3105 (s390_regmap_fpregset): Rename to...
3106 (s390_fpregmap): ... this. Make static const and convert to
3107 regcache_map_entry format.
3108 (s390_regmap_upper, s390_regmap_last_break)
3109 (s390x_regmap_last_break, s390_regmap_system_call)
3110 (s390_regmap_tdb): Likewise.
3111 (s390_supply_regset, s390_collect_regset): Remove functions.
3112 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3114 (s390_gregset, s390_fpregset, s390_upper_regset)
3115 (s390_last_break_regset, s390x_last_break_regset)
3116 (s390_system_call_regset, s390_tdb_regset): Make global and
3117 replace s390_supply/_collect_regset by regcache_supply/
3119 (s390x_gregset): Delete.
3120 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3121 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3122 (s390_regmap_fpregset, s390_regmap_last_break)
3123 (s390x_regmap_last_break, s390_regmap_system_call)
3124 (s390_regmap_tdb): Delete global variable declarations.
3125 (s390_gregset, s390_fpregset, s390_last_break_regset)
3126 (s390x_last_break_regset, s390_system_call_regset)
3127 (s390_tdb_regset): New global variable declarations.
3129 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3131 * regcache.c: Include "regset.h".
3132 (regcache_transfer_regset): New local function.
3133 (regcache_supply_regset, regcache_collect_regset): New functions.
3134 * regcache.h (struct regcache_map_entry): New structure.
3135 (REGCACHE_MAP_SKIP): New enum value.
3136 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3138 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3140 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3141 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3142 (ppc_linux_collect_gregset ): Likewise.
3143 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3144 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3145 (ppc_collect_vrregset): Likewise.
3146 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3149 2014-08-07 Yao Qi <yao@codesourcery.com>
3151 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3152 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3153 * remote.c (remote_read_bytes): Likewise.
3155 2014-08-07 Yao Qi <yao@codesourcery.com>
3157 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3159 2014-08-07 Yao Qi <yao@codesourcery.com>
3162 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3163 TARGET_XFER_OK instead of 0.
3165 2014-08-07 Gary Benson <gbenson@redhat.com>
3167 * common/common-defs.h: Include errno.h.
3168 * defs.h: Do not include errno.h.
3169 * ada-typeprint.c: Likewise.
3170 * c-typeprint.c: Likewise.
3171 * core-regset.c: Likewise.
3172 * corefile.c: Likewise.
3173 * corelow.c: Likewise.
3174 * event-loop.c: Likewise.
3175 * f-typeprint.c: Likewise.
3176 * gnu-nat.c: Likewise.
3177 * go32-nat.c: Likewise.
3178 * i386gnu-nat.c: Likewise.
3179 * m2-typeprint.c: Likewise.
3180 * nat/linux-btrace.c: Likewise.
3181 * p-typeprint.c: Likewise.
3182 * procfs.c: Likewise.
3183 * remote-sim.c: Likewise.
3184 * rs6000-nat.c: Likewise.
3185 * target.c: Likewise.
3186 * typeprint.c: Likewise.
3187 * ui-file.c: Likewise.
3188 * valops.c: Likewise.
3189 * valprint.c: Likewise.
3191 2014-08-07 Gary Benson <gbenson@redhat.com>
3193 * common/common-defs.h: Include string.h.
3194 * aarch64-tdep.c: Do not include string.h.
3195 * ada-exp.y: Likewise.
3196 * ada-lang.c: Likewise.
3197 * ada-lex.l: Likewise.
3198 * ada-typeprint.c: Likewise.
3199 * ada-valprint.c: Likewise.
3200 * aix-thread.c: Likewise.
3201 * alpha-linux-tdep.c: Likewise.
3202 * alpha-mdebug-tdep.c: Likewise.
3203 * alpha-nat.c: Likewise.
3204 * alpha-osf1-tdep.c: Likewise.
3205 * alpha-tdep.c: Likewise.
3206 * alphanbsd-tdep.c: Likewise.
3207 * amd64-dicos-tdep.c: Likewise.
3208 * amd64-linux-tdep.c: Likewise.
3209 * amd64-nat.c: Likewise.
3210 * amd64-sol2-tdep.c: Likewise.
3211 * amd64fbsd-tdep.c: Likewise.
3212 * amd64obsd-tdep.c: Likewise.
3213 * arch-utils.c: Likewise.
3214 * arm-linux-nat.c: Likewise.
3215 * arm-linux-tdep.c: Likewise.
3216 * arm-tdep.c: Likewise.
3217 * arm-wince-tdep.c: Likewise.
3218 * armbsd-tdep.c: Likewise.
3219 * armnbsd-nat.c: Likewise.
3220 * armnbsd-tdep.c: Likewise.
3221 * armobsd-tdep.c: Likewise.
3222 * avr-tdep.c: Likewise.
3223 * ax-gdb.c: Likewise.
3224 * ax-general.c: Likewise.
3225 * bcache.c: Likewise.
3226 * bfin-tdep.c: Likewise.
3227 * breakpoint.c: Likewise.
3228 * build-id.c: Likewise.
3229 * buildsym.c: Likewise.
3230 * c-exp.y: Likewise.
3231 * c-lang.c: Likewise.
3232 * c-typeprint.c: Likewise.
3233 * c-valprint.c: Likewise.
3234 * charset.c: Likewise.
3235 * cli-out.c: Likewise.
3236 * cli/cli-cmds.c: Likewise.
3237 * cli/cli-decode.c: Likewise.
3238 * cli/cli-dump.c: Likewise.
3239 * cli/cli-interp.c: Likewise.
3240 * cli/cli-logging.c: Likewise.
3241 * cli/cli-script.c: Likewise.
3242 * cli/cli-setshow.c: Likewise.
3243 * cli/cli-utils.c: Likewise.
3244 * coffread.c: Likewise.
3245 * common/agent.c: Likewise.
3246 * common/buffer.c: Likewise.
3247 * common/buffer.h: Likewise.
3248 * common/common-utils.c: Likewise.
3249 * common/filestuff.c: Likewise.
3250 * common/filestuff.c: Likewise.
3251 * common/format.c: Likewise.
3252 * common/print-utils.c: Likewise.
3253 * common/rsp-low.c: Likewise.
3254 * common/signals.c: Likewise.
3255 * common/vec.h: Likewise.
3256 * common/xml-utils.c: Likewise.
3257 * core-regset.c: Likewise.
3258 * corefile.c: Likewise.
3259 * corelow.c: Likewise.
3260 * cp-abi.c: Likewise.
3261 * cp-name-parser.y: Likewise.
3262 * cp-support.c: Likewise.
3263 * cp-valprint.c: Likewise.
3264 * cris-tdep.c: Likewise.
3265 * d-exp.y: Likewise.
3266 * darwin-nat.c: Likewise.
3267 * dbxread.c: Likewise.
3268 * dcache.c: Likewise.
3269 * demangle.c: Likewise.
3270 * dicos-tdep.c: Likewise.
3271 * disasm.c: Likewise.
3272 * doublest.c: Likewise.
3273 * dsrec.c: Likewise.
3274 * dummy-frame.c: Likewise.
3275 * dwarf2-frame.c: Likewise.
3276 * dwarf2loc.c: Likewise.
3277 * dwarf2read.c: Likewise.
3278 * elfread.c: Likewise.
3279 * environ.c: Likewise.
3281 * event-loop.c: Likewise.
3282 * exceptions.c: Likewise.
3284 * expprint.c: Likewise.
3285 * f-exp.y: Likewise.
3286 * f-lang.c: Likewise.
3287 * f-typeprint.c: Likewise.
3288 * f-valprint.c: Likewise.
3289 * fbsd-nat.c: Likewise.
3290 * findcmd.c: Likewise.
3291 * findvar.c: Likewise.
3292 * fork-child.c: Likewise.
3293 * frame.c: Likewise.
3294 * frv-linux-tdep.c: Likewise.
3295 * frv-tdep.c: Likewise.
3297 * gdb_bfd.c: Likewise.
3298 * gdbarch.c: Likewise.
3299 * gdbarch.sh: Likewise.
3300 * gdbtypes.c: Likewise.
3301 * gnu-nat.c: Likewise.
3302 * gnu-v2-abi.c: Likewise.
3303 * gnu-v3-abi.c: Likewise.
3304 * go-exp.y: Likewise.
3305 * go-lang.c: Likewise.
3306 * go32-nat.c: Likewise.
3307 * guile/guile.c: Likewise.
3308 * guile/scm-auto-load.c: Likewise.
3309 * hppa-hpux-tdep.c: Likewise.
3310 * hppa-linux-nat.c: Likewise.
3311 * hppanbsd-tdep.c: Likewise.
3312 * hppaobsd-tdep.c: Likewise.
3313 * i386-cygwin-tdep.c: Likewise.
3314 * i386-dicos-tdep.c: Likewise.
3315 * i386-linux-tdep.c: Likewise.
3316 * i386-nto-tdep.c: Likewise.
3317 * i386-sol2-tdep.c: Likewise.
3318 * i386-tdep.c: Likewise.
3319 * i386bsd-tdep.c: Likewise.
3320 * i386gnu-nat.c: Likewise.
3321 * i386nbsd-tdep.c: Likewise.
3322 * i386obsd-tdep.c: Likewise.
3323 * i387-tdep.c: Likewise.
3324 * ia64-libunwind-tdep.c: Likewise.
3325 * ia64-linux-nat.c: Likewise.
3326 * inf-child.c: Likewise.
3327 * inf-ptrace.c: Likewise.
3328 * inf-ttrace.c: Likewise.
3329 * infcall.c: Likewise.
3330 * infcmd.c: Likewise.
3331 * inflow.c: Likewise.
3332 * infrun.c: Likewise.
3333 * interps.c: Likewise.
3334 * iq2000-tdep.c: Likewise.
3335 * irix5-nat.c: Likewise.
3336 * jv-exp.y: Likewise.
3337 * jv-lang.c: Likewise.
3338 * jv-typeprint.c: Likewise.
3339 * jv-valprint.c: Likewise.
3340 * language.c: Likewise.
3341 * linux-fork.c: Likewise.
3342 * linux-nat.c: Likewise.
3343 * lm32-tdep.c: Likewise.
3344 * m2-exp.y: Likewise.
3345 * m2-typeprint.c: Likewise.
3346 * m32c-tdep.c: Likewise.
3347 * m32r-linux-nat.c: Likewise.
3348 * m32r-linux-tdep.c: Likewise.
3349 * m32r-rom.c: Likewise.
3350 * m32r-tdep.c: Likewise.
3351 * m68hc11-tdep.c: Likewise.
3352 * m68k-tdep.c: Likewise.
3353 * m68kbsd-tdep.c: Likewise.
3354 * m68klinux-nat.c: Likewise.
3355 * m68klinux-tdep.c: Likewise.
3356 * m88k-tdep.c: Likewise.
3357 * machoread.c: Likewise.
3358 * macrocmd.c: Likewise.
3360 * mdebugread.c: Likewise.
3361 * mem-break.c: Likewise.
3362 * memattr.c: Likewise.
3363 * memory-map.c: Likewise.
3364 * mep-tdep.c: Likewise.
3365 * mi/mi-cmd-break.c: Likewise.
3366 * mi/mi-cmd-disas.c: Likewise.
3367 * mi/mi-cmd-env.c: Likewise.
3368 * mi/mi-cmd-stack.c: Likewise.
3369 * mi/mi-cmd-var.c: Likewise.
3370 * mi/mi-cmds.c: Likewise.
3371 * mi/mi-console.c: Likewise.
3372 * mi/mi-getopt.c: Likewise.
3373 * mi/mi-interp.c: Likewise.
3374 * mi/mi-main.c: Likewise.
3375 * mi/mi-parse.c: Likewise.
3376 * microblaze-rom.c: Likewise.
3377 * microblaze-tdep.c: Likewise.
3378 * mingw-hdep.c: Likewise.
3379 * minidebug.c: Likewise.
3380 * minsyms.c: Likewise.
3381 * mips-irix-tdep.c: Likewise.
3382 * mips-linux-tdep.c: Likewise.
3383 * mips-tdep.c: Likewise.
3384 * mips64obsd-tdep.c: Likewise.
3385 * mipsnbsd-tdep.c: Likewise.
3386 * mipsread.c: Likewise.
3387 * mn10300-linux-tdep.c: Likewise.
3388 * mn10300-tdep.c: Likewise.
3389 * monitor.c: Likewise.
3390 * moxie-tdep.c: Likewise.
3391 * mt-tdep.c: Likewise.
3392 * nat/linux-btrace.c: Likewise.
3393 * nat/linux-osdata.c: Likewise.
3394 * nat/linux-procfs.c: Likewise.
3395 * nat/linux-ptrace.c: Likewise.
3396 * nat/linux-waitpid.c: Likewise.
3397 * nbsd-tdep.c: Likewise.
3398 * nios2-linux-tdep.c: Likewise.
3399 * nto-procfs.c: Likewise.
3400 * nto-tdep.c: Likewise.
3401 * objc-lang.c: Likewise.
3402 * objfiles.c: Likewise.
3403 * opencl-lang.c: Likewise.
3404 * osabi.c: Likewise.
3405 * osdata.c: Likewise.
3406 * p-exp.y: Likewise.
3407 * p-lang.c: Likewise.
3408 * p-typeprint.c: Likewise.
3409 * parse.c: Likewise.
3410 * posix-hdep.c: Likewise.
3411 * ppc-linux-nat.c: Likewise.
3412 * ppc-sysv-tdep.c: Likewise.
3413 * ppcfbsd-tdep.c: Likewise.
3414 * ppcnbsd-tdep.c: Likewise.
3415 * ppcobsd-tdep.c: Likewise.
3416 * printcmd.c: Likewise.
3417 * procfs.c: Likewise.
3418 * prologue-value.c: Likewise.
3419 * python/py-auto-load.c: Likewise.
3420 * python/py-gdb-readline.c: Likewise.
3421 * ravenscar-thread.c: Likewise.
3422 * regcache.c: Likewise.
3423 * registry.c: Likewise.
3424 * remote-fileio.c: Likewise.
3425 * remote-m32r-sdi.c: Likewise.
3426 * remote-mips.c: Likewise.
3427 * remote-notif.c: Likewise.
3428 * remote-sim.c: Likewise.
3429 * remote.c: Likewise.
3430 * reverse.c: Likewise.
3431 * rs6000-aix-tdep.c: Likewise.
3432 * ser-base.c: Likewise.
3433 * ser-go32.c: Likewise.
3434 * ser-mingw.c: Likewise.
3435 * ser-pipe.c: Likewise.
3436 * ser-tcp.c: Likewise.
3437 * ser-unix.c: Likewise.
3438 * serial.c: Likewise.
3439 * sh-tdep.c: Likewise.
3440 * sh64-tdep.c: Likewise.
3441 * shnbsd-tdep.c: Likewise.
3443 * sol-thread.c: Likewise.
3444 * solib-dsbt.c: Likewise.
3445 * solib-frv.c: Likewise.
3446 * solib-osf.c: Likewise.
3447 * solib-som.c: Likewise.
3448 * solib-spu.c: Likewise.
3449 * solib-target.c: Likewise.
3450 * solib.c: Likewise.
3451 * somread.c: Likewise.
3452 * source.c: Likewise.
3453 * sparc-nat.c: Likewise.
3454 * sparc-sol2-tdep.c: Likewise.
3455 * sparc-tdep.c: Likewise.
3456 * sparc64-tdep.c: Likewise.
3457 * sparc64fbsd-tdep.c: Likewise.
3458 * sparc64nbsd-tdep.c: Likewise.
3459 * sparcnbsd-tdep.c: Likewise.
3460 * spu-linux-nat.c: Likewise.
3461 * spu-multiarch.c: Likewise.
3462 * spu-tdep.c: Likewise.
3463 * stabsread.c: Likewise.
3464 * stack.c: Likewise.
3465 * std-regs.c: Likewise.
3466 * symfile.c: Likewise.
3467 * symmisc.c: Likewise.
3468 * symtab.c: Likewise.
3469 * target.c: Likewise.
3470 * thread.c: Likewise.
3471 * tilegx-linux-nat.c: Likewise.
3472 * tilegx-tdep.c: Likewise.
3474 * tracepoint.c: Likewise.
3475 * tui/tui-command.c: Likewise.
3476 * tui/tui-data.c: Likewise.
3477 * tui/tui-disasm.c: Likewise.
3478 * tui/tui-file.c: Likewise.
3479 * tui/tui-layout.c: Likewise.
3480 * tui/tui-out.c: Likewise.
3481 * tui/tui-regs.c: Likewise.
3482 * tui/tui-source.c: Likewise.
3483 * tui/tui-stack.c: Likewise.
3484 * tui/tui-win.c: Likewise.
3485 * tui/tui-windata.c: Likewise.
3486 * tui/tui-winsource.c: Likewise.
3487 * typeprint.c: Likewise.
3488 * ui-file.c: Likewise.
3489 * ui-out.c: Likewise.
3490 * user-regs.c: Likewise.
3491 * utils.c: Likewise.
3492 * v850-tdep.c: Likewise.
3493 * valarith.c: Likewise.
3494 * valops.c: Likewise.
3495 * valprint.c: Likewise.
3496 * value.c: Likewise.
3497 * varobj.c: Likewise.
3498 * vax-tdep.c: Likewise.
3499 * vaxnbsd-tdep.c: Likewise.
3500 * vaxobsd-tdep.c: Likewise.
3501 * windows-nat.c: Likewise.
3502 * xcoffread.c: Likewise.
3503 * xml-support.c: Likewise.
3504 * xstormy16-tdep.c: Likewise.
3505 * xtensa-linux-nat.c: Likewise.
3507 2014-08-07 Gary Benson <gbenson@redhat.com>
3509 * common/common-defs.h: Include gdb_assert.h.
3510 * aarch64-tdep.c: Do not include gdb_assert.h.
3511 * addrmap.c: Likewise.
3512 * aix-thread.c: Likewise.
3513 * alpha-linux-tdep.c: Likewise.
3514 * alpha-mdebug-tdep.c: Likewise.
3515 * alphanbsd-tdep.c: Likewise.
3516 * amd64-nat.c: Likewise.
3517 * amd64-tdep.c: Likewise.
3518 * amd64bsd-nat.c: Likewise.
3519 * amd64fbsd-nat.c: Likewise.
3520 * amd64fbsd-tdep.c: Likewise.
3521 * amd64nbsd-nat.c: Likewise.
3522 * amd64nbsd-tdep.c: Likewise.
3523 * amd64obsd-nat.c: Likewise.
3524 * amd64obsd-tdep.c: Likewise.
3525 * arch-utils.c: Likewise.
3526 * arm-tdep.c: Likewise.
3527 * armbsd-tdep.c: Likewise.
3529 * bcache.c: Likewise.
3530 * bfin-tdep.c: Likewise.
3531 * blockframe.c: Likewise.
3532 * breakpoint.c: Likewise.
3533 * bsd-kvm.c: Likewise.
3534 * bsd-uthread.c: Likewise.
3535 * buildsym.c: Likewise.
3536 * c-exp.y: Likewise.
3537 * c-lang.c: Likewise.
3538 * charset.c: Likewise.
3539 * cleanups.c: Likewise.
3540 * cli-out.c: Likewise.
3541 * cli/cli-decode.c: Likewise.
3542 * cli/cli-dump.c: Likewise.
3543 * cli/cli-logging.c: Likewise.
3544 * cli/cli-script.c: Likewise.
3545 * cli/cli-utils.c: Likewise.
3546 * coffread.c: Likewise.
3547 * common/common-utils.c: Likewise.
3548 * common/queue.h: Likewise.
3549 * common/signals.c: Likewise.
3550 * common/vec.h: Likewise.
3551 * complaints.c: Likewise.
3552 * completer.c: Likewise.
3553 * corelow.c: Likewise.
3554 * cp-abi.c: Likewise.
3555 * cp-name-parser.y: Likewise.
3556 * cp-namespace.c: Likewise.
3557 * cp-support.c: Likewise.
3558 * cris-tdep.c: Likewise.
3559 * dbxread.c: Likewise.
3560 * dictionary.c: Likewise.
3561 * doublest.c: Likewise.
3562 * dsrec.c: Likewise.
3563 * dummy-frame.c: Likewise.
3564 * dwarf2-frame-tailcall.c: Likewise.
3565 * dwarf2-frame.c: Likewise.
3566 * dwarf2expr.c: Likewise.
3567 * dwarf2loc.c: Likewise.
3568 * dwarf2read.c: Likewise.
3570 * event-loop.c: Likewise.
3571 * exceptions.c: Likewise.
3572 * expprint.c: Likewise.
3573 * f-valprint.c: Likewise.
3574 * fbsd-nat.c: Likewise.
3575 * findvar.c: Likewise.
3576 * frame-unwind.c: Likewise.
3577 * frame.c: Likewise.
3578 * frv-tdep.c: Likewise.
3579 * gcore.c: Likewise.
3580 * gdb-dlfcn.c: Likewise.
3581 * gdb_bfd.c: Likewise.
3582 * gdbarch.c: Likewise.
3583 * gdbarch.sh: Likewise.
3584 * gdbtypes.c: Likewise.
3585 * gnu-nat.c: Likewise.
3586 * gnu-v3-abi.c: Likewise.
3587 * go-lang.c: Likewise.
3588 * guile/scm-exception.c: Likewise.
3589 * guile/scm-gsmob.c: Likewise.
3590 * guile/scm-lazy-string.c: Likewise.
3591 * guile/scm-math.c: Likewise.
3592 * guile/scm-pretty-print.c: Likewise.
3593 * guile/scm-safe-call.c: Likewise.
3594 * guile/scm-utils.c: Likewise.
3595 * guile/scm-value.c: Likewise.
3596 * h8300-tdep.c: Likewise.
3597 * hppa-hpux-nat.c: Likewise.
3598 * hppa-tdep.c: Likewise.
3599 * hppanbsd-tdep.c: Likewise.
3600 * hppaobsd-tdep.c: Likewise.
3601 * i386-darwin-nat.c: Likewise.
3602 * i386-darwin-tdep.c: Likewise.
3603 * i386-nto-tdep.c: Likewise.
3604 * i386-tdep.c: Likewise.
3605 * i386bsd-nat.c: Likewise.
3606 * i386fbsd-tdep.c: Likewise.
3607 * i386gnu-nat.c: Likewise.
3608 * i386nbsd-tdep.c: Likewise.
3609 * i386obsd-tdep.c: Likewise.
3610 * i387-tdep.c: Likewise.
3611 * ia64-libunwind-tdep.c: Likewise.
3612 * ia64-tdep.c: Likewise.
3613 * inf-ptrace.c: Likewise.
3614 * inf-ttrace.c: Likewise.
3615 * infcall.c: Likewise.
3616 * infcmd.c: Likewise.
3617 * infrun.c: Likewise.
3618 * inline-frame.c: Likewise.
3619 * interps.c: Likewise.
3620 * jv-lang.c: Likewise.
3621 * jv-typeprint.c: Likewise.
3622 * linux-fork.c: Likewise.
3623 * linux-nat.c: Likewise.
3624 * linux-thread-db.c: Likewise.
3625 * m32c-tdep.c: Likewise.
3626 * m32r-linux-nat.c: Likewise.
3627 * m32r-tdep.c: Likewise.
3628 * m68k-tdep.c: Likewise.
3629 * m68kbsd-nat.c: Likewise.
3630 * m68kbsd-tdep.c: Likewise.
3631 * m88k-tdep.c: Likewise.
3632 * machoread.c: Likewise.
3633 * macroexp.c: Likewise.
3634 * macrotab.c: Likewise.
3635 * maint.c: Likewise.
3636 * mdebugread.c: Likewise.
3637 * memory-map.c: Likewise.
3638 * mep-tdep.c: Likewise.
3639 * mi/mi-common.c: Likewise.
3640 * microblaze-tdep.c: Likewise.
3641 * mingw-hdep.c: Likewise.
3642 * mips-linux-nat.c: Likewise.
3643 * mips-linux-tdep.c: Likewise.
3644 * mips-tdep.c: Likewise.
3645 * mips64obsd-tdep.c: Likewise.
3646 * mipsnbsd-tdep.c: Likewise.
3647 * mn10300-linux-tdep.c: Likewise.
3648 * mn10300-tdep.c: Likewise.
3649 * moxie-tdep.c: Likewise.
3650 * mt-tdep.c: Likewise.
3651 * nat/linux-btrace.c: Likewise.
3652 * nat/linux-osdata.c: Likewise.
3653 * nat/linux-ptrace.c: Likewise.
3654 * nat/mips-linux-watch.c: Likewise.
3655 * nios2-linux-tdep.c: Likewise.
3656 * nios2-tdep.c: Likewise.
3657 * objc-lang.c: Likewise.
3658 * objfiles.c: Likewise.
3659 * obsd-nat.c: Likewise.
3660 * opencl-lang.c: Likewise.
3661 * osabi.c: Likewise.
3662 * parse.c: Likewise.
3663 * ppc-linux-nat.c: Likewise.
3664 * ppc-sysv-tdep.c: Likewise.
3665 * ppcfbsd-nat.c: Likewise.
3666 * ppcfbsd-tdep.c: Likewise.
3667 * ppcnbsd-nat.c: Likewise.
3668 * ppcnbsd-tdep.c: Likewise.
3669 * ppcobsd-nat.c: Likewise.
3670 * ppcobsd-tdep.c: Likewise.
3671 * printcmd.c: Likewise.
3672 * procfs.c: Likewise.
3673 * prologue-value.c: Likewise.
3674 * psymtab.c: Likewise.
3675 * python/py-lazy-string.c: Likewise.
3676 * python/py-value.c: Likewise.
3677 * regcache.c: Likewise.
3678 * reggroups.c: Likewise.
3679 * registry.c: Likewise.
3680 * remote-sim.c: Likewise.
3681 * remote.c: Likewise.
3682 * rs6000-aix-tdep.c: Likewise.
3683 * rs6000-tdep.c: Likewise.
3684 * s390-linux-tdep.c: Likewise.
3685 * score-tdep.c: Likewise.
3686 * ser-base.c: Likewise.
3687 * ser-mingw.c: Likewise.
3688 * sh-tdep.c: Likewise.
3689 * sh64-tdep.c: Likewise.
3690 * solib-darwin.c: Likewise.
3691 * solib-spu.c: Likewise.
3692 * solib-svr4.c: Likewise.
3693 * source.c: Likewise.
3694 * sparc-nat.c: Likewise.
3695 * sparc-sol2-tdep.c: Likewise.
3696 * sparc-tdep.c: Likewise.
3697 * sparc64-sol2-tdep.c: Likewise.
3698 * sparc64-tdep.c: Likewise.
3699 * sparc64fbsd-tdep.c: Likewise.
3700 * sparc64nbsd-tdep.c: Likewise.
3701 * sparc64obsd-tdep.c: Likewise.
3702 * sparcnbsd-tdep.c: Likewise.
3703 * sparcobsd-tdep.c: Likewise.
3704 * spu-multiarch.c: Likewise.
3705 * spu-tdep.c: Likewise.
3706 * stabsread.c: Likewise.
3707 * stack.c: Likewise.
3708 * symfile.c: Likewise.
3709 * symtab.c: Likewise.
3710 * target-descriptions.c: Likewise.
3711 * target-memory.c: Likewise.
3712 * target.c: Likewise.
3713 * tic6x-linux-tdep.c: Likewise.
3714 * tic6x-tdep.c: Likewise.
3715 * tilegx-linux-nat.c: Likewise.
3716 * tilegx-tdep.c: Likewise.
3718 * tramp-frame.c: Likewise.
3719 * tui/tui-out.c: Likewise.
3720 * tui/tui-winsource.c: Likewise.
3721 * ui-out.c: Likewise.
3722 * user-regs.c: Likewise.
3723 * utils.c: Likewise.
3724 * v850-tdep.c: Likewise.
3725 * valops.c: Likewise.
3726 * value.c: Likewise.
3727 * varobj.c: Likewise.
3728 * vax-nat.c: Likewise.
3729 * xml-syscall.c: Likewise.
3730 * xml-tdesc.c: Likewise.
3731 * xstormy16-tdep.c: Likewise.
3732 * xtensa-linux-nat.c: Likewise.
3733 * xtensa-tdep.c: Likewise.
3735 2014-08-07 Gary Benson <gbenson@redhat.com>
3737 * common/common-defs.h: Include common-utils.h.
3738 * defs.h: Do not include common-utils.h.
3739 * common/gdb_assert.h: Likewise.
3740 * darwin-nat.h: Likewise.
3741 * nat/linux-btrace.c: Likewise.
3742 * target/waitstatus.h: Likewise.
3744 2014-08-07 Gary Benson <gbenson@redhat.com>
3746 * common/common-defs.h: Include ptid.h.
3747 * defs.h: Do not include ptid.h.
3748 * inferior.h: Likewise.
3749 * infrun.h: Likewise.
3750 * nat/linux-btrace.h: Likewise.
3751 * nat/linux-osdata.h: Likewise.
3752 * target/waitstatus.h: Likewise.
3754 2014-08-07 Gary Benson <gbenson@redhat.com>
3756 * common/common-defs.h: Include gdb_locale.h.
3757 * defs.h: Do not include gdb_locale.h.
3759 2014-08-07 Gary Benson <gbenson@redhat.com>
3761 * common/common-defs.h: Include gdb/signals.h.
3762 * defs.h: Do not include gdb/signals.h.
3764 2014-08-07 Gary Benson <gbenson@redhat.com>
3766 * common/common-defs.h: Include pathmax.h.
3767 * defs.h: Do not include pathmax.h.
3769 2014-08-07 Gary Benson <gbenson@redhat.com>
3771 * common/common-defs.h: Include libiberty.h.
3772 * defs.h: Do not include libiberty.h.
3773 * common/queue.h: Likewise.
3774 * cp-name-parser.y: Likewise.
3775 * mi/mi-cmd-catch.c: Likewise.
3776 * python/python.c: Likewise.
3778 2014-08-07 Gary Benson <gbenson@redhat.com>
3780 * common/common-defs.h: Include ansidecl.h.
3781 * defs.h: Do not include ansidecl.h.
3782 * common/buffer.h: Likewise.
3783 * common/common-utils.h: Likewise.
3785 2014-08-07 Gary Benson <gbenson@redhat.com>
3787 * common/common-defs.h: Include stddef.h.
3788 * defs.h: Do not include stddef.h.
3789 * common/common-utils.h: Likewise.
3790 * amd64fbsd-nat.c: Likewise.
3791 * bcache.c: Likewise.
3792 * charset.c: Likewise.
3793 * common/buffer.h: Likewise.
3794 * common/vec.h: Likewise.
3795 * i386bsd-nat.c: Likewise.
3796 * nat/linux-btrace.h: Likewise.
3797 * ppcfbsd-nat.c: Likewise.
3798 * ppcnbsd-tdep.h: Likewise.
3799 * ppcobsd-nat.c: Likewise.
3800 * ppcobsd-tdep.h: Likewise.
3801 * python/py-gdb-readline.c: Likewise.
3803 2014-08-07 Gary Benson <gbenson@redhat.com>
3805 * common/common-defs.h: Include stdarg.h.
3806 * defs.h: Do not include stdarg.h.
3807 * ada-lang.c: Likewise.
3808 * common/common-utils.h: Likewise.
3809 * guile/scm-string.c: Likewise.
3810 * guile/scm-utils.c: Likewise.
3811 * m32c-tdep.c: Likewise.
3813 2014-08-07 Gary Benson <gbenson@redhat.com>
3815 * common/common-defs.h: Include stdlib.h.
3816 * defs.h: Do not include stdlib.h.
3817 * addrmap.c: Likewise.
3818 * bcache.c: Likewise.
3819 * common/buffer.c: Likewise.
3820 * common/common-utils.c: Likewise.
3821 * cp-name-parser.y: Likewise.
3822 * go32-nat.c: Likewise.
3823 * mn10300-linux-tdep.c: Likewise.
3824 * nat/linux-osdata.c: Likewise.
3825 * tui/tui.c: Likewise.
3826 * windows-nat.c: Likewise.
3828 2014-08-07 Gary Benson <gbenson@redhat.com>
3830 * common/common-defs.h: Include stdio.h.
3831 * defs.h: Do not include stdio.h.
3832 * ada-lang.c: Likewise.
3833 * common/buffer.c: Likewise.
3834 * common/common-utils.c: Likewise.
3835 * cp-name-parser.y: Likewise.
3836 * gnu-nat.c: Likewise.
3837 * go32-nat.c: Likewise.
3838 * i386gnu-nat.c: Likewise.
3839 * proc-api.c: Likewise.
3840 * proc-events.c: Likewise.
3841 * proc-flags.c: Likewise.
3842 * proc-why.c: Likewise.
3843 * python/python-internal.h: Likewise.
3844 * target-memory.c: Likewise.
3845 * tui/tui-io.c: Likewise.
3846 * tui/tui.c: Likewise.
3848 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3850 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3851 (scan_dyntag_auxv): Same.
3853 2014-08-06 Yao Qi <yao@codesourcery.com>
3855 * amd64-linux-nat.c: Remove duplicated include
3857 * i386-linux-nat.c: Likewise.
3859 2014-08-06 Yao Qi <yao@codesourcery.com>
3861 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3862 operand" with "Special opcode" in comments.
3864 2014-08-05 Gary Benson <gbenson@redhat.com>
3866 * interps.c (initialize_interps): Remove prototype.
3867 (interpreter_initialized): Remove static global.
3868 (interp_add): Do not call initialize_interps.
3869 (initialize_interps): Remove function.
3871 2014-08-05 Gary Benson <gbenson@redhat.com>
3873 * utils.c (vwarning): Remove spurious va_end.
3875 2014-08-05 Alan Modra <amodra@gmail.com>
3877 * charset.c (convert_between_encodings): Cast result of obstack_base.
3878 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3879 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3880 (read_unwind_info): Use size_t for some locals.
3881 * jit.c (finalize_symtab): Likewise.
3882 * utils.c (hashtab_obstack_allocate): Likewise.
3883 * symmisc.c (print_objfile_statistics): Update format strings.
3885 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3887 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3888 (Changes in GDB 7.8): ... here.
3890 2014-08-04 Tom Tromey <tromey@redhat.com>
3892 * target.c (set_targetdebug): New function.
3893 (initialize_targets): Pass set_targetdebug when creating "set
3896 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3898 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3899 if detecting a variable-sized field that is not the last field.
3900 Fix struct type length computation.
3902 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3904 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3907 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3909 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3910 Remove "+ 8" offset in computation of CHAIN_VMA.
3912 2014-07-31 Doug Evans <dje@google.com>
3914 * inflow.c (child_terminal_inferior): Add comment.
3915 (child_terminal_ours_for_output): Add comment.
3916 (child_terminal_ours): Add comment.
3917 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3918 (linux_nat_terminal_ours): Add comment.
3920 2014-07-31 Gary Benson <gbenson@redhat.com>
3922 * common/btrace-common.h: Do not include defs.h or server.h.
3923 * nat/mips-linux-watch.h: Likewise.
3924 * gdb-dlfcn.h: Do not include defs.h.
3925 * tracefile.h: Likewise.
3927 2014-07-30 Roland McGrath <mcgrathr@google.com>
3929 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3931 2014-07-30 Tom Tromey <tromey@redhat.com>
3933 * bsd-kvm.c (bsd_kvm_open): Constify.
3934 * corelow.c (core_open): Constify.
3935 * ctf.c (ctf_open): Constify.
3936 * dbug-rom.c (dbug_open): Constify.
3937 * exec.c (exec_open): Constify.
3938 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3939 * microblaze-rom.c (picobug_open): Constify.
3940 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3942 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3943 * record-btrace.c (record_btrace_open): Constify.
3944 * record-full.c (record_full_core_open_1, record_full_open_1)
3945 (record_full_open): Constify.
3946 * remote-m32r-sdi.c (m32r_open): Constify.
3947 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3948 (rockhopper_open, lsi_open): Constify.
3949 * remote-sim.c (gdbsim_open): Constify.
3950 * remote.c (remote_open, extended_remote_open, remote_open_1):
3952 * target.h (struct target_ops) <to_open>: Make "arg" const.
3953 * tracefile-tfile.c (tfile_open): Constify.
3955 2014-07-30 Tom Tromey <tromey@redhat.com>
3957 * breakpoint.c (map_breakpoint_numbers): Update.
3958 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3959 (get_number_const): New function.
3960 (get_number): Rewrite using get_number_const.
3961 (init_number_or_range): Make "string" const.
3962 (number_is_in_list): Make "list" const.
3963 * cli/cli-utils.h (get_number_const): Declare.
3964 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3965 (init_number_or_range, number_is_in_list): Update.
3966 * printcmd.c (map_display_numbers): Update.
3967 * value.c (value_from_history_ref): Constify.
3968 * value.h (value_from_history_ref): Update.
3970 2014-07-30 Tom Tromey <tromey@redhat.com>
3972 * corefile.c (hook_type, call_extra_exec_file_hooks)
3973 (specify_exec_file_hook): Constify.
3974 * exec.c (exec_file_attach): Make "filename" const.
3975 * gdbcore.h (deprecated_exec_file_display_hook)
3976 (specify_exec_file_hook, exec_file_attach): Constify.
3977 * main.c (captured_main): Use catch_command_errors_const.
3979 2014-07-30 Tom Tromey <tromey@redhat.com>
3981 * target.c (open_target): New function.
3982 (add_target_with_completer, add_deprecated_target_alias): Use
3983 set_cmd_sfunc, set_cmd_context.
3984 (debug_to_open): Remove.
3985 (setup_target_debug): Update.
3987 2014-07-30 Yao Qi <yao@codesourcery.com>
3989 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3991 * parse.c (exp_iterate): Update comments.
3993 2014-07-30 Gary Benson <gbenson@redhat.com>
3995 * common/common-defs.h: New file.
3996 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3997 * defs.h: Include common-defs.h.
3998 Do not include config.h or build-gnulib/config.h.
4000 2014-07-30 Gary Benson <gbenson@redhat.com>
4002 * common/common-utils.h: Do not include config.h.
4003 * nat/linux-btrace.h: Likewise.
4005 2014-07-30 Gary Benson <gbenson@redhat.com>
4007 * btrace.c: Include defs.h.
4008 * common/ptid.c: Include defs.h or server.h as appropriate.
4009 * nat/mips-linux-watch.c: Likewise.
4011 2014-07-29 Tom Tromey <tromey@redhat.com>
4013 * target.c (target_is_pushed): Simplify.
4015 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4019 2014-07-29 Yao Qi <yao@codesourcery.com>
4022 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4024 2014-07-28 Doug Evans <xdje42@gmail.com>
4027 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4028 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4031 2014-07-28 Will Newton <will.newton@linaro.org>
4033 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4034 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4035 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4036 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4037 (THUMB2_EABI_SYSCALL): Likewise.
4038 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4040 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4041 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4043 2014-07-27 Doug Evans <xdje42@gmail.com>
4045 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4047 2014-07-27 Doug Evans <xdje42@gmail.com>
4049 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4051 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4052 Doug Evans <xdje42@gmail.com>
4055 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4056 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4057 * configure.ac: Try to use guild to compile an scm file, if it fails
4058 then disable guile support.
4059 * configure: Regenerate.
4060 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4062 (GUILE_COMPILED_FILES): New variable.
4063 (GUILE_FILES) Update.
4064 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4065 (stamp-guile): Compile scm files.
4066 * guile/guile.c (boot_guile_support): New function.
4067 (standard_throw_args_p): New function.
4068 (print_standard_throw_error, print_throw_error): New functions.
4069 (handle_boot_error): New function.
4070 (initialize_scheme_side): Rewrite to call boot_guile_support.
4071 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4072 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4074 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4075 Doug Evans <xdje42@gmail.com>
4078 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4079 * guile/lib/gdb/support.scm: New file.
4080 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4081 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4083 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4085 (%assert-type): Ditto, and renamed to assert-type.
4086 (%exception-print-style): Delete.
4088 2014-07-26 Doug Evans <xdje42@gmail.com>
4091 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4092 * configure: Regenerate.
4093 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4095 (PYTHON_FILES): New variable.
4096 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4097 (GUILE_FILES): New variable.
4098 (stamp-python, install-python, uninstall-python): Handle empty
4100 (stamp-guile, install-guile, uninstall-guile): Ditto.
4102 2014-07-26 Doug Evans <xdje42@gmail.com>
4105 * guile/lib/gdb.scm (pretty-printers): Export.
4106 (set-pretty-printers!): Export.
4107 * guile/lib/gdb/printing.scm (gdb module): Update.
4108 (prepend-pretty-printer!, append-pretty-printer!): Update.
4109 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4110 (pretty_printer_list_var): Delete.
4111 (pretty_printer_list): New static global.
4112 (gdbscm_pretty_printers): New function.
4113 (gdbscm_set_pretty_printers_x): New function.
4114 (ppscm_find_pretty_printer_from_gdb): Update.
4115 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4116 (gdbscm_initialize_pretty_printers): Update.
4118 2014-07-26 Doug Evans <xdje42@gmail.com>
4121 * configure.ac: Add check for header gc/gc.h.
4122 Add check for function setenv.
4123 * configure: Regenerate.
4124 * config.in: Regenerate.
4125 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4127 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4129 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4130 variation in gdbarch matching.
4132 2014-07-25 Tom Tromey <tromey@redhat.com>
4134 * exec.c (using_exec_ops): Remove.
4135 (exec_close_1): Update. Remove extraneous block, reindent.
4136 (add_target_sections): Use target_is_pushed.
4138 2014-07-25 Pedro Alves <palves@redhat.com>
4140 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4141 * monitor.c (monitor_create_inferior): Likewise.
4142 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4143 * remote-sim.c (gdbsim_create_inferior): Likewise.
4144 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4145 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4146 * windows-nat.c (do_initial_windows_stuff): Likewise.
4148 2014-07-25 Pedro Alves <palves@redhat.com>
4150 * NEWS: Mention signal passing and "signal" command changes.
4151 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4153 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4155 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4156 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4157 (jump_command): Adjust clear_proceed_status call.
4158 (signal_command): Warn if other thread that are resumed have
4159 signals that will be delivered. Adjust clear_proceed_status call.
4160 (until_next_command, finish_command)
4161 (proceed_after_attach_callback, attach_command_post_wait)
4162 (attach_command): Adjust clear_proceed_status call.
4163 * infrun.c (proceed_after_vfork_done): Likewise.
4164 (proceed_after_attach_callback): Adjust comment.
4165 (clear_proceed_status_thread): Clear stop_signal if not in pass
4167 (clear_proceed_status_callback): Delete.
4168 (clear_proceed_status): New 'step' parameter. Only clear the
4169 proceed status of threads the command being prepared is about to
4171 (proceed): If passed in an explicit signal, override stop_signal
4172 with it. Don't pass the last stop signal to the thread we're
4174 (init_wait_for_inferior): Adjust clear_proceed_status call.
4175 (switch_back_to_stepped_thread): Clear the signal if it should not
4177 * infrun.h (clear_proceed_status): New 'step' parameter.
4178 (user_visible_resume_ptid): Add comment.
4179 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4180 signal is in pass state.
4181 * remote.c (append_pending_thread_resumptions): Likewise.
4182 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4184 2014-07-25 Tom Tromey <tromey@redhat.com>
4186 * target.h (target_stopped_data_address)
4187 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4190 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4192 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4194 (avr_pointer_to_address): Likewise.
4196 2014-07-24 Tom Tromey <tromey@redhat.com>
4198 * monitor.c (compile_pattern): Update.
4199 * target.h (struct target_ops) <to_shortname, to_longname,
4202 2014-07-24 Tom Tromey <tromey@redhat.com>
4204 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4205 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4206 (add_info_alias, add_com): Make "doc" const.
4207 (print_doc_line): Make "str" const.
4208 (delete_cmd): Update.
4209 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4210 (print_doc_line): Update.
4211 * cli/cli-script.c (document_command): Update.
4212 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4213 (add_com, add_info, add_info_alias): 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 (print_help_for_command): Make "prefix" const.
4220 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4221 (help_cmd_list): Constify.
4222 (lookup_cmd): Update.
4223 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4225 (help_cmd_list, apropos_cmd): Update.
4226 * cli/cli-script.c (show_user): Update.
4227 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4228 * cli/cli-setshow.h (cmd_show_list): Update.
4229 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4230 (cmd_show_list): Update.
4231 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4232 * python/py-cmd.c (cmdpy_destroyer): Update.
4234 2014-07-24 Tom Tromey <tromey@redhat.com>
4236 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4237 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4239 * command.h (deprecate_cmd): Update.
4240 * maint.c (maintenance_do_deprecate): Add casts.
4242 2014-07-24 Tom Tromey <tromey@redhat.com>
4244 * cli/cli-decode.c (help_cmd): Make parameter "const".
4245 * cli/cli-decode.h (help_cmd): Update.
4247 2014-07-24 Tom Tromey <tromey@redhat.com>
4249 * stack.c (up_silently_base, down_silently_base): Make argument
4252 2014-07-24 Tom Tromey <tromey@redhat.com>
4254 * solib.c (solib_add): Make "pattern" const.
4255 * solib.h (solib_add): Update.
4257 2014-07-24 Tom Tromey <tromey@redhat.com>
4259 * remote.c (remote_serial_open, print_packet, putpkt)
4260 (putpkt_binary): Constify.
4261 * remote.h (putpkt): Update.
4263 2014-07-24 Tom Tromey <tromey@redhat.com>
4265 * monitor.c (monitor_open): Make "args" const.
4266 * monitor.h (monitor_open): Update.
4268 2014-07-24 Tom Tromey <tromey@redhat.com>
4270 * maint.c (match_bfd_flags): Make "string" const.
4271 (print_bfd_section_info): Remove casts.
4272 (print_objfile_section_info): Make "string" const.
4274 2014-07-24 Tom Tromey <tromey@redhat.com>
4276 * inf-child.c (inf_child_open_target): Make "arg" const.
4277 * inf-child.h (inf_child_open_target): Update.
4279 2014-07-24 Tom Tromey <tromey@redhat.com>
4281 * environ.c (unset_in_environ): Make "var" const.
4282 * environ.h (unset_in_environ): Update.
4284 2014-07-24 Tom Tromey <tromey@redhat.com>
4286 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4288 (scan_filename_with_cleanup): Likewise.
4289 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4290 Make arguments const.
4291 (restore_command): Update.
4293 2014-07-24 Pedro Alves <palves@redhat.com>
4295 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4297 2014-07-24 Tom Tromey <tromey@redhat.com>
4298 Gary Benson <gbenson@redhat.com>
4300 * nat/linux-ptrace.c (additional_flags): New global.
4301 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4302 additional_flags; don't check GDBSERVER.
4303 (linux_ptrace_set_additional_flags): New function.
4304 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4306 * linux-nat.c (_initialize_linux_nat): Call
4307 linux_ptrace_set_additional_flags.
4309 2014-07-24 Tom Tromey <tromey@redhat.com>
4311 * make-target-delegates (munge_type, write_debugmethod): New
4313 (debug_names): New global.
4314 ($TARGET_DEBUG_PRINTER): New global.
4315 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4317 Write debug methods. Generate init_debug_target.
4318 * target-debug.h: New file.
4319 * target-delegates.c: Rebuild.
4320 * target.c: Include target-debug.h.
4321 (debug_target): Hoist definition.
4322 (target_kill, target_get_section_table, target_memory_map)
4323 (target_flash_erase, target_flash_done, target_detach)
4324 (target_disconnect, target_wait, target_resume)
4325 (target_pass_signals, target_program_signals, target_follow_fork)
4326 (target_mourn_inferior, target_search_memory)
4327 (target_thread_address_space, target_close)
4328 (target_find_new_threads, target_core_of_thread)
4329 (target_verify_memory, target_insert_mask_watchpoint)
4330 (target_remove_mask_watchpoint): Remove targetdebug code.
4331 (debug_to_post_attach, debug_to_prepare_to_store)
4332 (debug_to_files_info, debug_to_insert_breakpoint)
4333 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4334 (debug_to_region_ok_for_hw_watchpoint)
4335 (debug_to_can_accel_watchpoint_condition)
4336 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4337 (debug_to_watchpoint_addr_within_range)
4338 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4339 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4340 (debug_to_terminal_init, debug_to_terminal_inferior)
4341 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4342 (debug_to_terminal_save_ours, debug_to_terminal_info)
4343 (debug_to_load, debug_to_post_startup_inferior)
4344 (debug_to_insert_fork_catchpoint)
4345 (debug_to_remove_fork_catchpoint)
4346 (debug_to_insert_vfork_catchpoint)
4347 (debug_to_remove_vfork_catchpoint)
4348 (debug_to_insert_exec_catchpoint)
4349 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4350 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4351 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4352 (setup_target_debug): Call init_debug_target.
4353 * target.h (TARGET_DEBUG_PRINTER): New macro.
4354 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4355 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4357 2014-07-24 Gary Benson <gbenson@redhat.com>
4359 * exceptions.h (throw_vfatal): Renamed to...
4360 (throw_vquit): New declaration.
4361 (throw_quit): Likewise.
4362 * exceptions.c (throw_vfatal): Renamed to...
4363 (throw_vquit): New function.
4364 (throw_quit): Likewise.
4365 (throw_error): Call throw_verror rather than throw_it.
4366 * utils.h (vfatal): Removed.
4368 * utils.c (vfatal): Removed.
4370 (internal_verror): Replaced call to fatal with call to throw_quit.
4371 (quit): Replaced calls to fatal with calls to throw_quit.
4373 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4375 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4378 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4380 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4381 less than zero in conditional expression.
4383 2014-07-23 Tom Tromey <tromey@redhat.com>
4385 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4386 ($INTRO_PART): Don't match whitespace.
4387 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4389 ($METHOD): Add $METHOD_TRAILER.
4391 (scan_target_h): New sub.
4392 Change main loop not to collect state.
4393 * target-delegates.c: Rebuild.
4395 2014-07-23 Gary Benson <gbenson@redhat.com>
4397 * cp-support.c (gdb_demangle): Fix build on systems without
4400 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4402 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4403 for reference entry value target data value.
4405 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4407 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4408 value_available_contents_eq.
4410 2014-07-22 Pedro Alves <palves@redhat.com>
4412 * value.c (allocate_optimized_out_value): Don't mark value as
4415 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4417 * MAINTAINERS (Write After Approval): Update my email address.
4419 2014-07-20 Doug Evans <dje@google.com>
4422 * remote.c (putpkt_binary): Add text to error message.
4424 2014-07-20 Yao Qi <yao@codesourcery.com>
4426 * eval.c: Remove "Chill" from comments.
4427 * gdbtypes.h: Likewise.
4428 * symtab.h: Likewise.
4430 2014-07-20 Yao Qi <yao@codesourcery.com>
4432 * std-operator.def: Update comments to TERNOP_SLICE.
4434 2014-07-20 Yao Qi <yao@codesourcery.com>
4436 * std-operator.def: Remove BINOP_RANGE.
4437 * breakpoint.c (watchpoint_exp_is_const): Update.
4438 * expprint.c (dump_subexp_body_standard): Likewise.
4439 * eval.c (init_array_element): Remove dead code.
4440 (evaluate_subexp_standard): Likewise.
4442 2014-07-20 Yao Qi <yao@codesourcery.com>
4444 * std-operator.def: Remove BINOP_IN.
4445 * breakpoint.c (watchpoint_exp_is_const): Update.
4446 * eval.c (evaluate_subexp_standard): Likewise.
4447 * expprint.c (dump_subexp_body_standard): Likewise.
4449 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4451 * microblaze-tdep.c (microblaze_register_names): Add
4452 the rshr and rslr register names.
4453 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4454 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4455 Use of tdesc_numbered_register. Use of
4456 microblaze_register_g_packet_guesses. Use of
4457 tdesc_use_registers. Use of set_gdbarch_register_type.
4458 (microblaze_register_g_packet_guesses): New.
4459 * microblaze-tdep.h (microblaze_reg_num): Add
4460 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4461 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4462 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4463 * features/microblaze-core.xml: New file.
4464 * features/microblaze-stack-protect.xml: New file.
4465 * features/microblaze-with-stack-protect.c: New file.
4466 * features/microblaze-with-stack-protect.xml: New file.
4467 * features/microblaze.xml: New file.
4468 * features/microblaze.c: New file.
4469 * features/Makefile (microblaze-with-stack-protect): Add
4470 microblaze-with-stack-protect microblaze and microblaze-expedite.
4471 * regformats/microblaze-with-stack-protect.dat: New file.
4472 * regformats/microblaze.dat: New file.
4473 * doc/gdb.texinfo (MicroBlaze Features): Added.
4475 2014-07-18 Tom Tromey <tromey@redhat.com>
4477 * exec.c (exec_ops): Now static.
4478 * exec.h (exec_ops): Don't declare.
4480 2014-07-18 Tom Tromey <tromey@redhat.com>
4482 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4483 to find_target_beneath.
4484 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4485 find_target_beneath.
4486 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4488 2014-07-18 Tom Tromey <tromey@redhat.com>
4491 * utils.c (quit): Use target_supports_terminal_ours.
4492 * target.h (target_supports_terminal_ours): Declare.
4493 * target.c (target_supports_delete_record): Don't check
4494 to_delete_record against NULL.
4495 (target_supports_terminal_ours): New function.
4497 2014-07-18 Tom Tromey <tromey@redhat.com>
4500 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4501 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4502 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4503 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4504 * windows-nat.c (windows_xfer_partial): Always delegate.
4505 * record-btrace.c (record_btrace_xfer_partial): Simplify
4507 (record_btrace_fetch_registers, record_btrace_store_registers)
4508 (record_btrace_prepare_to_store, record_btrace_resume)
4509 (record_btrace_wait, record_btrace_find_new_threads)
4510 (record_btrace_thread_alive): Likewise.
4511 * procfs.c (procfs_xfer_partial): Always delegate.
4512 * corelow.c (core_xfer_partial): Always delegate.
4513 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4515 2014-07-18 Tom Tromey <tromey@redhat.com>
4517 * exec.c (exec_make_note_section): Move earlier.
4519 2014-07-17 Doug Evans <dje@google.com>
4522 * maint.c (count_symtabs_and_blocks): Handle NULL
4523 current_program_space.
4524 (report_command_stats): Check global enabled flag in addition to
4525 recorded enabled flag.
4526 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4528 2014-07-16 Pedro Alves <palves@redhat.com>
4530 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4532 2014-07-16 Tom Tromey <tromey@redhat.com>
4534 * target.h (struct target_ops) <to_delete_record>: Reformat
4537 2014-07-16 Tom Tromey <tromey@redhat.com>
4539 * target-delegates.c: Rebuild.
4541 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4543 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4544 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4545 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4546 (avr_pointer_to_address): Likewise.
4547 (avr_address_class_type_flags): New function.
4548 (avr_address_class_type_flags_to_name): Likewise.
4549 (avr_address_class_name_to_type_flags): Likewise.
4550 (avr_gdbarch_init): Set address_class_type_flags,
4551 address_class_type_flags_to_name and
4552 address_class_name_to_type_flags.
4554 2014-07-15 Pedro Alves <palves@redhat.com>
4556 * linux-nat.c (kill_callback): Save errno and work with saved
4559 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4561 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4563 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4565 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4566 breakpoint support correctly.
4568 2014-07-14 Pedro Alves <palves@redhat.com>
4570 * utils.c (prompt_for_continue): Call target_terminal_ours.
4572 2014-07-14 Pedro Alves <palves@redhat.com>
4574 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4575 catch_errors. Don't re-enable stdin or notify observers where,
4577 (fetch_inferior_event_wrapper): Delete.
4579 2014-07-14 Pedro Alves <palves@redhat.com>
4582 * top.c: Include "inf-loop.h".
4583 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4585 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4587 (gdb_readline_wrapper): Store whether the target is async, and
4590 2014-07-14 Pedro Alves <palves@redhat.com>
4593 * top.c (gdb_readline_wrapper_line): Tweak comment.
4594 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4595 the input handler callback.
4597 2014-07-14 Pedro Alves <palves@redhat.com>
4600 * main.c: Include event-top.h.
4601 (handle_command_errors): New function.
4602 (catch_command_errors, catch_command_errors_const): Use it.
4604 2014-07-14 Pedro Alves <palves@redhat.com>
4606 * exceptions.c (catch_command_errors, catch_command_errors_const):
4608 * exceptions.h (catch_command_errors_ftype)
4609 (catch_command_errors_const_ftype): Moved to main.c.
4610 (catch_command_errors, catch_command_errors_const): Delete
4612 * main.c (catch_command_errors_ftype)
4613 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4614 (catch_command_errors, catch_command_errors_const)): Moved here
4615 from exceptions.c and make static.
4617 2014-07-14 Pedro Alves <palves@redhat.com>
4619 * exceptions.c (print_any_exception): Delete.
4620 (catch_exceptions_with_msg): Use exception_print instead of
4621 print_any_exception.
4622 (catch_errors): Use exception_fprintf instead of
4623 print_any_exception.
4624 (catch_command_errors, catch_command_errors_const): Use
4625 exception_print instead of print_any_exception.
4627 2014-07-14 Pedro Alves <palves@redhat.com>
4629 * infcall.c (run_inferior_call): Set 'sync_execution' while
4630 running the inferior call.
4632 2014-07-14 Pedro Alves <palves@redhat.com>
4634 * value.c (value_contents_equal): Delete function.
4635 * value.h (value_contents_equal): Delete declaration.
4637 2014-07-14 Tom Tromey <tromey@redhat.com>
4640 * gdbtypes.c (is_dynamic_type_internal): New function, from
4642 (is_dynamic_type): Rewrite.
4643 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4644 (resolve_dynamic_struct): Likewise.
4645 (resolve_dynamic_type_internal): New function, from
4646 resolve_dynamic_type.
4647 (resolve_dynamic_type): Rewrite.
4649 2014-07-14 Tom Tromey <tromey@redhat.com>
4651 * target.c (target_require_runnable): Also check record_stratum.
4654 2014-07-11 Yao Qi <yao@codesourcery.com>
4656 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4657 thumb_instruction_restores_sp return true.
4659 2014-07-11 Yao Qi <yao@codesourcery.com>
4661 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4662 (thumb_in_function_epilogue_p): Call
4663 thumb_instruction_restores_sp.
4665 2014-07-11 Yao Qi <yao@codesourcery.com>
4667 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4669 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4671 2014-07-11 Gary Benson <gbenson@redhat.com>
4673 * amd64-linux-nat.c (gdbcore.h): Remove include.
4674 (regset.h): Likewise.
4675 (nat/linux-btrace.h): Likewise.
4676 (btrace.h): Likewise.
4677 (gdb_assert.h): Likewise.
4678 (string.h): Likewise.
4679 (sys/uio.h): Likewise.
4680 (sys/debugreg.h): Likewise.
4681 (sys/syscall.h): Likewise.
4682 (sys/procfs.h): Likewise.
4683 (sys/user.h): Likewise.
4684 (asm/ptrace.h): Likewise.
4685 (i386-nat.h): Likewise.
4686 * i386-linux-nat.c (i386-nat.h): Likewise.
4687 (regset.h): Likewise.
4688 (target.h): Likewise.
4689 (linux-nat.h): Likewise.
4690 (nat/linux-btrace.h): Likewise.
4691 (btrace.h): Likewise.
4692 (gdb_assert.h): Likewise.
4693 (string.h): Likewise.
4694 (sys/uio.h): Likewise.
4695 (sys/user.h): Likewise.
4696 (sys/procfs.h): Likewise.
4697 (sys/reg.h): Likewise.
4698 (sys/debugreg.h): Likewise.
4699 (ORIG_EAX): Remove definition.
4701 2014-07-11 Gary Benson <gbenson@redhat.com>
4703 * i386-linux-nat.h: New file.
4704 * x86-linux-nat.h: Likewise.
4705 * x86-linux-nat.c: Likewise.
4706 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4707 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4708 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4709 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4710 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4711 (PTRACE_SETREGSET): Likewise.
4712 (arch_lwp_info): Now in x86-linux-nat.c.
4713 (have_ptrace_getregset): Now in x86-linux-nat.h.
4714 (x86_linux_dr_get): Now in x86-linux-nat.c.
4715 (x86_linux_dr_set): Likewise.
4716 (x86_linux_dr_get_addr): Likewise.
4717 (x86_linux_dr_get_control): Likewise.
4718 (x86_linux_dr_get_status): Likewise.
4719 (update_debug_registers_callback): Likewise.
4720 (x86_linux_dr_set_control): Likewise.
4721 (x86_linux_dr_set_addr): Likewise.
4722 (x86_linux_prepare_to_resume): Likewise.
4723 (x86_linux_new_thread): Likewise.
4724 (x86_linux_new_fork): Likewise.
4725 (x86_linux_get_thread_area): Likewise.
4726 (super_post_startup_inferior): Likewise.
4727 (x86_linux_child_post_startup_inferior): Likewise.
4728 (AMD64_LINUX_USER64_CS): Likewise.
4729 (AMD64_LINUX_X32_DS): Likewise.
4730 (x86_linux_read_description): Likewise.
4731 (x86_linux_enable_btrace): Likewise.
4732 (x86_linux_disable_btrace): Likewise.
4733 (x86_linux_teardown_btrace): Likewise.
4734 (x86_linux_read_btrace): Likewise.
4735 (x86_linux_create_target): Likewise.
4736 (x86_linux_add_target): Likewise.
4737 * i386-linux-nat.c (x86-linux-nat.h): New include.
4738 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4739 (PTRACE_SETREGSET): Likewise.
4740 (arch_lwp_info): Now in x86-linux-nat.c.
4741 (have_ptrace_getregset): Now in x86-linux-nat.h.
4742 (x86_linux_dr_get): Now in x86-linux-nat.c.
4743 (x86_linux_dr_set): Likewise.
4744 (x86_linux_dr_get_addr): Likewise.
4745 (x86_linux_dr_get_control): Likewise.
4746 (x86_linux_dr_get_status): Likewise.
4747 (update_debug_registers_callback): Likewise.
4748 (x86_linux_dr_set_control): Likewise.
4749 (x86_linux_dr_set_addr): Likewise.
4750 (x86_linux_prepare_to_resume): Likewise.
4751 (x86_linux_new_thread): Likewise.
4752 (x86_linux_new_fork): Likewise.
4753 (x86_linux_get_thread_area): Likewise.
4754 (super_post_startup_inferior): Likewise.
4755 (x86_linux_child_post_startup_inferior): Likewise.
4756 (AMD64_LINUX_USER64_CS): Likewise.
4757 (AMD64_LINUX_X32_DS): Likewise.
4758 (x86_linux_read_description): Likewise.
4759 (x86_linux_enable_btrace): Likewise.
4760 (x86_linux_disable_btrace): Likewise.
4761 (x86_linux_teardown_btrace): Likewise.
4762 (x86_linux_read_btrace): Likewise.
4763 (x86_linux_create_target): Likewise.
4764 (x86_linux_add_target): Likewise.
4766 2014-07-11 Gary Benson <gbenson@redhat.com>
4768 * amd64-linux-nat.c: Comment and whitespace changes.
4769 * i386-linux-nat.c: Comment and whitespace changes.
4771 2014-07-11 Gary Benson <gbenson@redhat.com>
4773 * amd64-linux-nat.c (x86_linux_create_target): New function.
4774 (x86_linux_add_target): Likewise.
4775 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4776 * i386-linux-nat.c (x86_linux_create_target): New function.
4777 (x86_linux_add_target): Likewise.
4778 (_initialize_i386_linux_nat): Delegate to the above new functions.
4780 2014-07-11 Gary Benson <gbenson@redhat.com>
4782 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4783 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4784 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4785 (ps_get_thread_area): Delegate to the above.
4787 2014-07-11 Gary Benson <gbenson@redhat.com>
4789 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4790 x86_linux_read_description. All uses updated. amd64-specific
4791 code conditionalized. Conditionalized i386-specific code added.
4792 Redundant cast removed.
4793 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4794 x86_linux_read_description. All uses updated. i386-specific
4795 code conditionalized. Conditionalized amd64-specific code added.
4796 One sizeof replaced with the actual type it is describing.
4798 2014-07-11 Gary Benson <gbenson@redhat.com>
4800 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4801 x86_linux_dr_get. All uses updated.
4802 (amd64_linux_dr_set): Renamed to
4803 x86_linux_dr_set. All uses updated.
4804 (amd64_linux_dr_get_addr): Renamed to
4805 x86_linux_dr_get_addr. All uses updated.
4806 (amd64_linux_dr_get_control): Renamed to
4807 x86_linux_dr_get_control. All uses updated.
4808 (amd64_linux_dr_get_status): Renamed to
4809 x86_linux_dr_get_status. All uses updated.
4810 (amd64_linux_dr_set_control): Renamed to
4811 x86_linux_dr_set_control. All uses updated.
4812 (amd64_linux_dr_set_addr): Renamed to
4813 x86_linux_dr_set_addr. All uses updated.
4814 (amd64_linux_prepare_to_resume): Renamed to
4815 x86_linux_prepare_to_resume. All uses updated.
4816 (amd64_linux_new_thread): Renamed to
4817 x86_linux_new_thread. All uses updated.
4818 (amd64_linux_new_fork): Renamed to
4819 x86_linux_new_fork. All uses updated.
4820 (amd64_linux_child_post_startup_inferior): Renamed to
4821 x86_linux_child_post_startup_inferior. All uses updated.
4822 (amd64_linux_enable_btrace): Renamed to
4823 x86_linux_enable_btrace. All uses updated.
4824 (amd64_linux_disable_btrace): Renamed to
4825 x86_linux_disable_btrace. All uses updated.
4826 (amd64_linux_teardown_btrace): Renamed to
4827 x86_linux_teardown_btrace. All uses updated.
4828 (amd64_linux_read_btrace): Renamed to
4829 x86_linux_read_btrace. All uses updated.
4830 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4831 x86_linux_dr_get. All uses updated.
4832 (i386_linux_dr_set): Renamed to
4833 x86_linux_dr_set. All uses updated.
4834 (i386_linux_dr_get_addr): Renamed to
4835 x86_linux_dr_get_addr. All uses updated.
4836 (i386_linux_dr_get_control): Renamed to
4837 x86_linux_dr_get_control. All uses updated.
4838 (i386_linux_dr_get_status): Renamed to
4839 x86_linux_dr_get_status. All uses updated.
4840 (i386_linux_dr_set_control): Renamed to
4841 x86_linux_dr_set_control. All uses updated.
4842 (i386_linux_dr_set_addr): Renamed to
4843 x86_linux_dr_set_addr. All uses updated.
4844 (i386_linux_prepare_to_resume): Renamed to
4845 x86_linux_prepare_to_resume. All uses updated.
4846 (i386_linux_new_thread): Renamed to
4847 x86_linux_new_thread. All uses updated.
4848 (i386_linux_new_fork): Renamed to
4849 x86_linux_new_fork. All uses updated.
4850 (i386_linux_child_post_startup_inferior): Renamed to
4851 x86_linux_child_post_startup_inferior. All uses updated.
4852 (i386_linux_enable_btrace): Renamed to
4853 x86_linux_enable_btrace. All uses updated.
4854 (i386_linux_disable_btrace): Renamed to
4855 x86_linux_disable_btrace. All uses updated.
4856 (i386_linux_teardown_btrace): Renamed to
4857 x86_linux_teardown_btrace. All uses updated.
4858 (i386_linux_read_btrace): Renamed to
4859 x86_linux_read_btrace. All uses updated.
4861 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4863 * remote.c (extended_remote_post_attach): New function.
4864 (init_extended_remote_ops): Install it as to_post_attach method.
4866 2014-07-09 Pedro Alves <palves@redhat.com>
4868 * infcmd.c (attach_command_post_wait): Don't call
4869 target_terminal_inferior here.
4870 (attach_command): Call it here instead.
4872 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4874 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4876 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4877 from varobj.c, with additional checks.
4878 (c_varobj_ops): Fill in is_path_expr_parent field.
4879 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4880 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4882 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4884 (varobj_default_is_path_expr_parent): New function.
4885 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4886 (varobj_default_is_path_expr_parent): Declare new function.
4888 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4890 * infcmd.c (finish_backward): Turn internal error into normal error.
4892 2014-07-07 Pedro Alves <palves@redhat.com>
4895 * remote.c (async_handle_remote_sigint)
4896 (async_handle_remote_sigint_twice): Call
4897 gdb_call_async_signal_handler instead of
4898 mark_async_signal_handler.
4900 2014-07-07 Tom Tromey <tromey@redhat.com>
4902 * target-delegates.c: Rebuild.
4903 * target.c (target_info_record): Remove.
4904 * record.c (info_record_command): Unconditionally call
4906 * target.h (struct target_ops) <to_info_record>: Use
4907 TARGET_DEFAULT_IGNORE.
4908 (target_info_record): Remove.
4910 2014-07-07 Tom Tromey <tromey@redhat.com>
4912 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4913 TARGET_DEFAULT_NORETURN.
4914 * target.c (generic_tls_error): New function.
4915 (target_translate_tls_address): Don't search target stack.
4916 * target-delegates.c: Rebuild.
4917 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4919 * linux-thread-db.c (thread_db_get_thread_local_address):
4920 Unconditionally call beneath target.
4922 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4924 * cli/cli-logging.c (pop_output_files): Assign targerr to
4927 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4929 * MAINTAINERS (Write After Approval): Update my email address.
4931 2014-07-02 Gary Benson <gbenson@redhat.com>
4933 * proc-service.c (ps_xfer_memory): Update comment.
4934 (ps_pstop): Remove unused function.
4935 (ps_pcontinue): Likewise.
4936 (ps_lstop): Likewise.
4937 (ps_lcontinue): Likewise.
4938 (ps_lgetxregsize): Likewise.
4939 (ps_lgetxregs): Likewise.
4940 (ps_lsetxregs): Likewise.
4941 (ps_plog): Likewise.
4942 (ps_ptread): Likewise.
4943 (ps_ptwrite): Likewise.
4945 2014-07-01 Mark Wielaard <mjw@redhat.com>
4947 * dwarf2read.c (add_array_cv_type): New function.
4948 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4949 (read_tag_volatile_type): Likewise.
4951 2014-07-01 Tom Tromey <tromey@redhat.com>
4953 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4954 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4955 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4956 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4957 * command.h (cmd_cfunc_ftype): Move earlier.
4958 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4959 (add_com, add_info): Use cmd_cfunc_ftype.
4961 2014-06-30 Tom Tromey <tromey@redhat.com>
4963 * symtab.c (operator_chars): Make parameters and return type
4965 (file_matches): Make "files" const.
4966 (struct search_symbols_data) <files>: Now const.
4967 (search_symbols): Make "regexp" and "files" parameters const.
4969 (symtab_symbol_info): Remove cast.
4970 (rbreak_command): Update.
4971 * symtab.h (search_symbols): Update.
4973 2014-06-27 Yao Qi <yao@codesourcery.com>
4975 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4976 Change parameter type to 'struct thread_info *'. Caller
4978 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4980 * dummy-frame.c (struct dummy_frame_id): New.
4981 (dummy_frame_id_eq): New function.
4982 (struct dummy_frame) <id>: Change its type to 'struct
4984 (dummy_frame_push): Add parameter ptid and save it in
4986 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4988 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4990 (lookup_dummy_frame): Change parameter type to 'struct
4991 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4992 instead of frame_id_eq.
4993 (dummy_frame_pop): Add parameter ptid. Callers updated.
4994 Update comments. Compose dummy_frame_id and pass it to
4996 (dummy_frame_discard): Add parameter ptid.
4997 (dummy_frame_sniffer): Compose dummy_frame_id and call
4998 dummy_frame_id_eq instead of frame_id_eq.
4999 (fprint_dummy_frames): Print ptid.
5000 * dummy-frame.h: Remove comments.
5001 (dummy_frame_push): Add ptid in declaration.
5002 (dummy_frame_pop, dummy_frame_discard): Likewise.
5004 2014-06-26 Tom Tromey <tromey@redhat.com>
5006 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5007 * command.h (error_no_arg): Update.
5009 2014-06-26 Tom Tromey <tromey@redhat.com>
5011 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5012 (do_show_command): Make "arg" const.
5013 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5015 2014-06-26 Tom Tromey <tromey@redhat.com>
5017 * record-full.c (record_full_get_bookmark): Make "args" const.
5018 (record_full_goto_bookmark): Make "raw_bookmark" const.
5019 * record.c (record_goto): New function.
5020 (cmd_record_goto): Use it. Now static.
5021 * record.h (record_goto): Declare.
5022 (cmd_record_goto): Remove declaration.
5023 * target-delegates.c: Rebuild.
5024 * target.h (struct target_ops) <to_get_bookmark,
5025 to_goto_bookmark>: Make parameter const.
5027 2014-06-26 Tom Tromey <tromey@redhat.com>
5029 * defs.h (generic_load): Update.
5030 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5031 * monitor.c (monitor_load): Make "args" const.
5032 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5033 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5035 (mips_load): Make "file" const.
5036 * remote-sim.c (gdbsim_load): Make "args" const.
5037 * remote.c (remote_load): Make "name" const.
5038 * symfile.c (generic_load): Make "args" const.
5039 * target-delegates.c: Rebuild.
5040 * target.c (target_load): Make "arg" const.
5041 (debug_to_load): Make "args" const.
5042 * target.h (struct target_ops) <to_load>: Make parameter const.
5043 (target_load): Update.
5045 2014-06-26 Tom Tromey <tromey@redhat.com>
5048 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5049 (dwarf2_physname, read_partial_die)
5050 (guess_partial_die_structure_name, fixup_partial_die)
5051 (guess_full_die_structure_name, anonymous_struct_prefix)
5052 (dwarf2_name): Use per-BFD obstack.
5054 2014-06-26 Yao Qi <yao@codesourcery.com>
5056 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5057 dummyframe and this_id into inner block below.
5059 2014-06-26 Yao Qi <yao@codesourcery.com>
5061 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5062 with "signal_pass[0]" in the initialization of signal_pass.
5064 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5066 * record-btrace.c (record_btrace_generating_corefile)
5067 (record_btrace_prepare_to_generate_core)
5068 (record_btrace_done_generating_core): New.
5069 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5070 (record_btrace_store_registers, record_btrace_prepare_to_store):
5071 Forward request when generating a core file.
5072 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5073 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5074 to_done_generating_core.
5076 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5078 * target.h (target_ops) <to_prepare_to_generate_core>
5079 <to_done_generating_core>: New.
5080 (target_prepare_to_generate_core, target_done_generating_core): New.
5081 * target.c (target_prepare_to_generate_core)
5082 (target_done_generating_core): New.
5083 * target-delegates.c: Regenerate.
5084 * gcore.c: (write_gcore_file): Rename to ...
5085 (write_gcore_file_1): ...this.
5086 (write_gcore_file): Call target_prepare_to_generate_core
5087 and target_done_generating_core.
5089 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5091 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5092 * gcore.c (write_gcore_file): Free memory returned from
5093 make_corefile_notes.
5094 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5095 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5097 2014-06-24 Yao Qi <yao@codesourcery.com>
5099 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5100 (arm_linux_init_abi): Set skip_trampoline_code with
5101 gdbarch_skip_trampoline_code instead of
5102 find_solib_trampoline_target.
5104 2014-06-24 Yao Qi <yao@codesourcery.com>
5106 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5107 arm_skip_bx_reg returns non-zero.
5109 2014-06-24 Yao Qi <yao@codesourcery.com>
5111 * arm-tdep.c (arm_skip_bx_reg): New function.
5112 (arm_skip_stub): Call arm_skip_bx_reg.
5114 2014-06-23 Don Breazeal <donb@codesourcery.com>
5116 * MAINTAINERS: Add myself as write-after-approval maintainer.
5118 2014-06-23 Pedro Alves <palves@redhat.com>
5120 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5121 DR_CONTROL before setting DR0..DR3.
5122 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5123 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5124 bits of DR_CONTROL related to the debug register slot being
5125 disabled. If all slots are vacant, clear local slowdown as well,
5126 and assert DR_CONTROL is 0.
5128 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5130 * python/lib/gdb/command/xmethods.py
5131 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5132 current progspace only if the string "progspace" matches LOCUS_RE.
5134 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5136 Fix --with-system-readline with readline-6.3 patch 5.
5137 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5138 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5141 2014-06-20 Tom Tromey <tromey@redhat.com>
5143 * dwarf2read.c (dw2_get_real_path): Use correct type in
5145 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5147 2014-06-20 Gary Benson <gbenson@redhat.com>
5149 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5150 * common/glibc_thread_db.h: Likewise.
5151 * common/i386-cpuid.h: Likewise.
5152 * common/i386-gcc-cpuid.h: Likewise.
5153 * common/linux-btrace.h: Likewise.
5154 * common/linux-osdata.h: Likewise.
5155 * common/linux-procfs.h: Likewise.
5156 * common/linux-ptrace.h: Likewise.
5157 * common/mips-linux-watch.h: Likewise.
5158 * common/linux-btrace.c: Moved to nat.
5159 * common/linux-osdata.c: Likewise.
5160 * common/linux-procfs.c: Likewise.
5161 * common/linux-ptrace.c: Likewise.
5162 * common/mips-linux-watch.c: Likewise.
5163 * nat/gdb_thread_db.h: Moved from common.
5164 * nat/glibc_thread_db.h: Likewise.
5165 * nat/i386-cpuid.h: Likewise.
5166 * nat/i386-gcc-cpuid.h: Likewise.
5167 * nat/linux-btrace.c: Likewise.
5168 * nat/linux-btrace.h: Likewise.
5169 * nat/linux-osdata.c: Likewise.
5170 * nat/linux-osdata.h: Likewise.
5171 * nat/linux-procfs.c: Likewise.
5172 * nat/linux-procfs.h: Likewise.
5173 * nat/linux-ptrace.c: Likewise.
5174 * nat/linux-ptrace.h: Likewise.
5175 * nat/mips-linux-watch.c: Likewise.
5176 * nat/mips-linux-watch.h: Likewise.
5177 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5178 (object file files): Reordered.
5179 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5180 of glibc_thread_db.h.
5182 2014-06-20 Gary Benson <gbenson@redhat.com>
5184 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5185 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5186 (i386_dr_low): Likewise.
5187 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5188 (i386_dr_low_set_addr): Likewise.
5189 (i386_dr_low_get_addr): Likewise.
5190 (i386_dr_low_can_set_control): Likewise.
5191 (i386_dr_low_set_control): Likewise.
5192 (i386_dr_low_get_control): Likewise.
5193 (i386_dr_low_get_status): Likewise.
5194 (i386_get_debug_register_length): Likewise.
5195 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5196 (i386_dr_low): Likewise.
5197 * nat/i386-dregs.c (i386-low.h): Remove include.
5198 (i386-nat.h): Likewise.
5199 (nat/i386-dregs.h): New include.
5200 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5201 (i386_dr_low_set_addr): Likewise.
5202 (i386_dr_low_get_addr): Likewise.
5203 (i386_dr_low_can_set_control): Likewise.
5204 (i386_dr_low_set_control): Likewise.
5205 (i386_dr_low_get_control): Likewise.
5206 (i386_dr_low_get_status): Likewise.
5207 (i386_get_debug_register_length): Likewise.
5208 (debug_hw_points): Likewise.
5210 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5212 * Makefile.in (SFILES): Add d-exp.y.
5213 (YYFILES): Add d-exp.c.
5214 (YYOBJ): Add d-exp.o.
5215 (local-maintainer-clean): Delete d-exp.c.
5216 * d-exp.y: New file.
5217 * d-lang.h (d_parse): New declaration.
5218 (d_error): New declaration.
5219 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5220 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5221 PREC_ORDER operators.
5222 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5224 2014-06-19 Yao Qi <yao@codesourcery.com>
5226 * gdbthread.h (any_running): Remove the declaration.
5227 * thread.c (any_running): Remove.
5229 2014-06-19 Yao Qi <yao@codesourcery.com>
5231 * gdbthread.h (struct thread_info) <state>: Change its type to
5232 'enum thread_state'. Update comments.
5234 2014-06-19 Pedro Alves <palves@redhat.com>
5236 * gdbthread.h (ALL_THREADS): Delete.
5237 (ALL_NON_EXITED_THREADS): New macro.
5238 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5239 instead of ALL_THREADS.
5240 * infrun.c (find_thread_needs_step_over)
5241 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5242 instead of ALL_THREADS.
5243 * record-btrace.c (record_btrace_open)
5244 (record_btrace_stop_recording, record_btrace_close)
5245 (record_btrace_is_replaying, record_btrace_resume)
5246 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5247 * remote.c (append_pending_thread_resumptions): Likewise.
5248 * thread.c (thread_apply_all_command): Likewise.
5250 2014-06-19 Gary Benson <gbenson@redhat.com>
5252 * i386-nat.c (i386_stopped_by_watchpoint):
5253 Use i386_dr_stopped_by_watchpoint.
5254 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5255 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5257 2014-06-19 Gary Benson <gbenson@redhat.com>
5259 * nat/i386-dregs.c: New file.
5260 * Makefile.in (i386-dregs.o): New rule.
5261 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5262 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5263 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5264 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5265 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5266 * config/i386/go32.mh (NATDEPFILES): Likewise.
5267 * config/i386/linux.mh (NATDEPFILES): Likewise.
5268 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5269 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5270 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5271 * i386-nat.h (debug_hw_points): New declaration.
5272 * i386-nat.c (breakpoint.h): Remove include.
5273 (command.h): Likewise.
5274 (target.h): Likewise.
5275 (gdb_assert.h): Likewise.
5276 (debug_hw_points): Made nonstatic.
5277 (debug_printf): Now in i386-dregs.c.
5278 (TARGET_HAS_DR_LEN_8): Likewise.
5279 (DR_CONTROL_SHIFT): Likewise.
5280 (DR_CONTROL_SIZE): Likewise.
5281 (DR_RW_EXECUTE): Likewise.
5282 (DR_RW_WRITE): Likewise.
5283 (DR_RW_READ): Likewise.
5284 (DR_RW_IORW): Likewise.
5285 (DR_LEN_1): Likewise.
5286 (DR_LEN_2): Likewise.
5287 (DR_LEN_4): Likewise.
5288 (DR_LEN_8): Likewise.
5289 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5290 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5291 (DR_ENABLE_SIZE): Likewise.
5292 (DR_LOCAL_SLOWDOWN): Likewise.
5293 (DR_GLOBAL_SLOWDOWN): Likewise.
5294 (DR_CONTROL_RESERVED): Likewise.
5295 (I386_DR_CONTROL_MASK): Likewise.
5296 (I386_DR_VACANT): Likewise.
5297 (I386_DR_LOCAL_ENABLE): Likewise.
5298 (I386_DR_GLOBAL_ENABLE): Likewise.
5299 (I386_DR_DISABLE): Likewise.
5300 (I386_DR_SET_RW_LEN): Likewise.
5301 (I386_DR_GET_RW_LEN): Likewise.
5302 (I386_DR_WATCH_HIT): Likewise.
5303 (i386_wp_op_t): Likewise.
5304 (i386_show_dr): Likewise.
5305 (i386_length_and_rw_bits): Likewise.
5306 (i386_insert_aligned_watchpoint): Likewise.
5307 (i386_remove_aligned_watchpoint): Likewise.
5308 (i386_handle_nonaligned_watchpoint): Likewise.
5309 (i386_update_inferior_debug_regs): Likewise.
5310 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5311 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5312 (i386_region_ok_for_watchpoint):
5313 Use i386_dr_region_ok_for_watchpoint.
5314 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5316 2014-06-19 Gary Benson <gbenson@redhat.com>
5318 * i386-nat.c (i386_insert_hw_breakpoint): Use
5319 i386_insert_watchpoint.
5320 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5322 2014-06-19 Gary Benson <gbenson@redhat.com>
5324 * i386-nat.c (i386_dr_show): Renamed to
5325 i386_show_dr and made static. All uses updated.
5326 (i386_dr_length_and_rw_bits): Renamed to
5327 i386_length_and_rw_bits and made static.
5329 (i386_dr_insert_aligned_watchpoint): Renamed to
5330 i386_insert_aligned_watchpoint and made static.
5332 (i386_dr_remove_aligned_watchpoint): Renamed to
5333 i386_remove_aligned_watchpoint and made static.
5335 (i386_dr_update_inferior_debug_regs): Renamed to
5336 i386_update_inferior_debug_regs and made static.
5338 * nat/i386-dregs.h (i386_dr_show): Removed.
5339 (i386_dr_length_and_rw_bits): Likewise.
5340 (i386_dr_insert_aligned_watchpoint): Likewise.
5341 (i386_dr_remove_aligned_watchpoint): Likewise.
5342 (i386_dr_update_inferior_debug_regs): Likewise.
5344 2014-06-19 Gary Benson <gbenson@redhat.com>
5346 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5347 * configure: Regenerate.
5348 * config.in: Likewise.
5349 * main.c (signal.h): New include.
5350 (setup_alternate_signal_stack): New function.
5351 (captured_main): Call the above.
5352 * cp-support.c (signal.h): New include.
5353 (catch_demangler_crashes): New flag.
5354 (SIGJMP_BUF): New define.
5355 (SIGSETJMP): Likewise.
5356 (SIGLONGJMP): Likewise.
5357 (gdb_demangle_jmp_buf): New static global.
5358 (gdb_demangle_attempt_core_dump): Likewise.
5359 (gdb_demangle_signal_handler): New function.
5360 (gdb_demangle): If catch_demangler_crashes is set, install the
5361 above signal handler before calling bfd_demangle, and restore
5362 the original signal handler afterwards. Display the offending
5363 symbol and call demangler_warning the first time a segmentation
5365 (_initialize_cp_support): New maint set/show command.
5367 2014-06-19 Gary Benson <gbenson@redhat.com>
5369 * utils.h (resource_limit_kind): New enum.
5370 (can_dump_core): New declaration.
5371 (warn_cant_dump_core): Likewise.
5372 (dump_core): Likewise.
5373 * utils.c (dump_core): Made nonstatic. Added new
5374 parameter "limit_kind".
5375 (can_dump_core): Made nonstatic. Moved printing code to...
5376 (warn_cant_dump_core): New function.
5377 (can_dump_core_warn): Likewise.
5378 (internal_vproblem): Replace calls to can_dump_core with
5379 calls to can_dump_core_warn. Supply new argument to each.
5381 2014-06-19 Gary Benson <gbenson@redhat.com>
5383 * utils.h (demangler_vwarning): New declaration.
5384 (demangler_warning): Likewise.
5385 * utils.c (struct internal_problem)
5386 <user_settable_should_quit>: New field.
5387 <user_settable_should_dump_core>: Likewise
5388 (internal_error_problem): Add values for above new fields.
5389 (internal_warning_problem): Likewise.
5390 (demangler_warning_problem): New static global.
5391 (demangler_vwarning): New function.
5392 (demangler_warning): Likewise.
5393 (add_internal_problem_command): Selectively add commands.
5394 (_initialize_utils): New internal problem command.
5395 * maint.c (maintenance_demangler_warning): New function.
5396 (_initialize_maint_cmds): New command.
5398 2014-06-18 Tom Tromey <tromey@redhat.com>
5400 * f-valprint.c (info_common_command_for_block): Update.
5401 * symtab.h (struct general_symbol_info) <common_block>: Now
5404 2014-06-18 Tom Tromey <tromey@redhat.com>
5406 * symtab.h (struct symtab) <blockvector>: Now const.
5407 * ada-lang.c (ada_add_global_exceptions): Update.
5408 * buildsym.c (augment_type_symtab): Update.
5409 * dwarf2read.c (dw2_lookup_symbol): Update.
5410 * jit.c (finalize_symtab): Update.
5411 * jv-lang.c (add_class_symtab_symbol): Update.
5412 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5414 * objfiles.c (objfile_relocate1): Update.
5415 * psymtab.c (lookup_symbol_aux_psymtabs)
5416 (maintenance_check_psymtabs): Update.
5417 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5419 * spu-tdep.c (spu_catch_start): Update.
5420 * symmisc.c (dump_symtab_1): Update.
5421 * symtab.c (lookup_global_symbol_from_objfile)
5422 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5423 (basic_lookup_transparent_type_quick)
5424 (basic_lookup_transparent_type, find_pc_sect_symtab)
5425 (find_pc_sect_line, search_symbols): Update.
5426 * block.c (find_block_in_blockvector): Make "bl" const.
5427 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5429 (blockvector_contains_pc): Make "bv" const.
5430 (block_for_pc_sect): Update.
5431 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5432 (blockvector_contains_pc): Update.
5433 * breakpoint.c (resolve_sal_pc): Update.
5434 * inline-frame.c (block_starting_point_at): Update.
5436 2014-06-18 Tom Tromey <tromey@redhat.com>
5438 * completer.c (complete_line): Make "line_buffer" const.
5439 * completer.h (complete_line): Update.
5441 2014-06-18 Tom Tromey <tromey@redhat.com>
5443 * symtab.c (add_macro_name): Remove unneeded cast.
5445 2014-06-18 Tom Tromey <tromey@redhat.com>
5447 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5448 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5450 2014-06-18 Tom Tromey <tromey@redhat.com>
5452 * probe.c (info_probes_for_ops): Make "arg" const.
5453 * probe.h (info_probes_for_ops): Update.
5455 2014-06-18 Tom Tromey <tromey@redhat.com>
5457 * varobj.c (varobj_create): Update.
5458 * valops.c (value_of_this): Update.
5459 * tracepoint.c (add_local_symbols, scope_info): Update.
5460 * symtab.h (struct general_symbol_info) <block>: Now const.
5461 * symtab.c (skip_prologue_sal)
5462 (default_make_symbol_completion_list_break_on)
5463 (skip_prologue_using_sal): Update.
5464 * stack.h (iterate_over_block_locals)
5465 (iterate_over_block_local_vars): Update.
5466 * stack.c (print_frame_args): Update.
5467 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5469 (get_selected_block): Make return type const.
5470 * python/py-frame.c (frapy_block): Update.
5471 * python/py-block.c (gdbpy_block_for_pc): Update.
5472 * p-exp.y (%union) <bval>: Now const.
5473 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5474 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5475 * m2-exp.y (%union) <bval>: Now const.
5476 * linespec.c (get_current_search_block): Make return type const.
5477 (create_sals_line_offset, find_label_symbols): Update.
5478 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5480 (block_starting_point_at): Make "block" const.
5481 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5482 (check_exception_resume): Update.
5483 * guile/scm-frame.c (gdbscm_frame_block): Update.
5484 * guile/scm-block.c (gdbscm_lookup_block): Update.
5485 * frame.h (get_frame_block): Update.
5486 (get_selected_block): Make return type const.
5487 * frame.c (frame_id_inner): Update.
5488 * f-valprint.c (info_common_command_for_block)
5489 (info_common_command): Update.
5490 * dwarf2loc.c (dwarf2_find_location_expression)
5491 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5492 (locexpr_describe_location_piece): Update.
5493 * c-exp.y (%union) <bval>: Now const.
5494 * breakpoint.c (resolve_sal_pc): Update.
5495 * blockframe.c (get_frame_block):Make return type const.
5496 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5497 (block_innermost_frame): Update.
5498 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5499 (block_for_pc, block_for_pc_sect): Update.
5500 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5502 (block_for_pc_sect, block_for_pc): Make return type const.
5503 * ax-gdb.c (gen_expr): Update.
5504 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5505 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5506 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5507 (ada_read_var_value): Update.
5508 * ada-exp.y (struct name_info) <block>: Now const.
5510 (block_lookup): Constify.
5512 2014-06-18 Gary Benson <gbenson@redhat.com>
5514 * nat/i386-dregs.h: New file.
5515 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5516 * i386-nat.h (i386-dregs.h): New include.
5517 (DR_FIRSTADDR): Now in i386-dregs.h.
5518 (DR_LASTADDR): Likewise.
5519 (DR_NADDR): Likewise.
5520 (DR_STATUS): Likewise.
5521 (DR_CONTROL): Likewise.
5522 (i386_debug_reg_state): Likewise.
5523 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5525 2014-06-18 Don Breazeal <donb@codesourcery.com>
5527 * breakpoint.c (set_longjmp_breakpoint): Call
5528 momentary_breakpoint_from_master with additional argument.
5529 (set_longjmp_breakpoint_for_call_dummy): Call
5530 momentary_breakpoint_from_master with additional argument.
5531 (set_std_terminate_breakpoint): Call
5532 momentary_breakpoint_from_master with additional argument.
5533 (momentary_breakpoint_from_master): Add argument to function
5534 definition and use it to initialize structure member flag.
5535 (clone_momentary_breakpoint): Call
5536 momentary_breakpoint_from_master with additional argument.
5537 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5538 member flags set in momentary_breakpoint_from_master.
5540 2014-06-18 Gary Benson <gbenson@redhat.com>
5542 * i386-nat.c (i386_show_dr): Renamed to
5543 i386_dr_show and made nonstatic. All uses updated.
5544 (i386_length_and_rw_bits): Renamed to
5545 i386_dr_length_and_rw_bits and made nonstatic.
5547 (i386_insert_aligned_watchpoint): Renamed to
5548 i386_dr_insert_aligned_watchpoint and made nonstatic.
5550 (i386_remove_aligned_watchpoint): Renamed to
5551 i386_dr_remove_aligned_watchpoint and made nonstatic.
5553 (i386_update_inferior_debug_regs): Renamed to
5554 i386_dr_update_inferior_debug_regs and made nonstatic.
5557 2014-06-18 Gary Benson <gbenson@redhat.com>
5559 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5560 (i386_dr_low_can_set_control): Likewise.
5561 (i386_dr_low_set_addr): Likewise.
5562 (i386_dr_low_set_control): Likewise.
5563 (i386_dr_low_get_addr): Likewise.
5564 (i386_dr_low_get_status): Likewise.
5565 (i386_dr_low_get_control): Likewise.
5566 (i386_insert_aligned_watchpoint): Use new macros.
5567 (i386_update_inferior_debug_regs): Likewise.
5568 (i386_stopped_data_address): Likewise.
5570 2014-06-18 Gary Benson <gbenson@redhat.com>
5572 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5573 New parameter. All uses updated.
5575 2014-06-18 Gary Benson <gbenson@redhat.com>
5577 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5580 2014-06-18 Gary Benson <gbenson@redhat.com>
5582 * i386-nat.c (debug_printf): New macro.
5583 (i386_get_debug_register_length): Likewise.
5584 (TARGET_HAS_DR_LEN_8): Use above macro.
5585 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5586 and printf_unfiltered. Use phex to format values.
5588 2014-06-18 Gary Benson <gbenson@redhat.com>
5590 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5593 2014-06-18 Gary Benson <gbenson@redhat.com>
5595 * i386-nat.c: Comment changes.
5597 2014-06-18 Gary Benson <gbenson@redhat.com>
5599 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5601 2014-06-18 Gary Benson <gbenson@redhat.com>
5603 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5604 (i386_insert_aligned_watchpoint): Likewise.
5605 (i386_remove_aligned_watchpoint): Likewise.
5606 (i386_handle_nonaligned_watchpoint): Likewise.
5608 2014-06-18 Gary Benson <gbenson@redhat.com>
5610 * i386-nat.c: Whitespace changes.
5612 2014-06-17 Samuel Bronson <naesten@gmail.com>
5614 * MAINTAINERS: Update Roland McGrath's email address.
5615 Thanks to Sergio Durigan Junior for pointing out that he left
5616 Red Hat a while ago, and giving me a current address.
5618 2014-06-17 Tom Tromey <tromey@redhat.com>
5620 * utils.h (savestring): Remove declaration.
5622 2014-06-17 Tom Tromey <tromey@redhat.com>
5624 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5626 2014-06-16 Keith Seitz <keiths@redhat.com>
5629 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5630 to update the varobj if inferior_ptid is null_ptid.
5632 2014-06-16 Tom Tromey <tromey@redhat.com>
5634 * target.h (struct target_ops) <to_info_proc>: Make parameter
5636 (target_info_proc): Update.
5637 * target.c (target_info_proc): Make "args" const.
5638 * procfs.c (procfs_info_proc): Update.
5639 * linux-tdep.c (linux_info_proc): Update.
5640 (linux_core_info_proc_mappings): Make "args" const.
5641 (linux_core_info_proc): Update.
5642 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5643 * gdbarch.c: Rebuild.
5644 * gdbarch.h: Rebuild.
5645 * corelow.c (core_info_proc): Update.
5647 2014-06-16 Tom Tromey <tromey@redhat.com>
5649 * target.h (struct target_ops) <to_disconnect>: Make parameter
5651 (target_disconnect): Update.
5652 * target.c (target_disconnect): Make "args" const.
5653 * target-delegates.c: Rebuild.
5654 * remote.c (remote_disconnect): Update.
5655 * record.h (record_disconnect): Update.
5656 * record.c (record_disconnect): Update.
5657 * inf-child.c (inf_child_disconnect): Update.
5659 2014-06-16 Tom Tromey <tromey@redhat.com>
5661 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5662 * target.c (debug_to_rcmd, default_rcmd): Update.
5663 * target-delegates.c: Rebuild.
5664 * remote.c (remote_rcmd): Update.
5665 * monitor.c (monitor_rcmd): Update.
5667 2014-06-16 Pedro Alves <palves@redhat.com>
5669 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5670 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5671 have OBJF_SHARED set.
5672 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5673 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5674 instead of OBJF_USERLOADED.
5675 * objfiles.h (OBJF_SHARED): Update comment.
5676 (userloaded_objfile_contains_address_p): Rename to ...
5677 (shared_objfile_contains_address_p): ... this, and update
5679 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5681 (remove_symbol_file_command): Skip objfiles that don't have
5684 2014-06-16 Tom Tromey <tromey@redhat.com>
5686 * minsyms.h (prim_record_minimal_symbol)
5687 (prim_record_minimal_symbol_and_info): Update comments.
5689 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5691 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5692 or --without-guile, according to how GDB was built.
5694 2014-06-13 Tom Tromey <tromey@redhat.com>
5696 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5698 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5700 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5702 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5703 help_list.Pass all_commands, not -1, to help_list.
5704 * cli/cli-dump.c (dump_command, append_command)
5705 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5706 (binary_dump_command, binary_append_command): Pass all_commands,
5707 not -1, to help_list.
5708 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5710 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5712 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5714 * top.c (set_history): Pass all_commands, not -1, to help_list.
5715 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5716 all_commands, not -1, to help_list.
5717 * symfile.c (overlay_command): Pass all_commands, not -1, to
5719 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5721 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5723 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5725 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5726 not -1, to help_list.
5727 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5728 not -1, to help_list.
5729 * maint.c (maintenance_command, maintenance_info_command)
5730 (maintenance_print_command, maintenance_set_cmd): Pass
5731 all_commands, not -1, to help_list.
5732 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5734 * language.c (set_check): Pass all_commands, not -1, to help_list.
5735 * infcmd.c (unset_command): Pass all_commands, not -1, to
5737 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5739 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5741 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5743 * breakpoint.c (save_command): Pass all_commands, not -1, to
5745 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5746 all_commands, not -1, to help_list.
5748 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5750 * regcache.c (struct register_to_invalidate): New structure.
5751 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5753 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5755 2014-06-12 Yao Qi <yao@codesourcery.com>
5757 * varobj.c (varobj_get_num_children): Call
5758 varobj_is_dynamic_p.
5759 (varobj_list_children): Likewise.
5760 (varobj_update): Likewise. Update comments.
5762 2014-06-12 Yao Qi <yao@codesourcery.com>
5764 * varobj.c (varobj_pretty_printed_p): Rename to ...
5765 (varobj_is_dynamic_p): ... this. New function.
5766 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5767 (varobj_is_dynamic_p): Declare.
5768 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5769 (mi_print_value_p, varobj_update_one): Likewise.
5771 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5772 Yao Qi <yao@codesourcery.com>
5774 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5775 (varobj_get_iterator): Wrap up code for pretty-printer by
5776 "#if HAVE_PYTHON" and "#endif".
5777 (update_dynamic_varobj_children): Likewise.
5779 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5780 Yao Qi <yao@codesourcery.com>
5782 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5783 gdb_python_initialized is false. Move some code from varobj.c.
5784 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5785 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5786 (struct varobj_item): Moved to varobj-iter.h".
5787 (varobj_clear_saved_item): New function.
5788 (update_dynamic_varobj_children): Move python-related code to
5790 (free_variable): Call varobj_clear_saved_item and
5793 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5794 Yao Qi <yao@codesourcery.com>
5796 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5797 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5798 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5799 (py-varobj.o): New rule.
5800 * python/py-varobj.c: New file.
5801 * python/python-internal.h (py_varobj_get_iterator): Declare.
5802 * varobj-iter.h: New file.
5803 * varobj.c: Include "varobj-iter.h"
5804 (struct varobj) <child_iter>: Change its type from "PyObject *"
5805 to "struct varobj_iter *".
5806 <saved_item>: Likewise.
5807 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5808 [HAVE_PYTHON] (varobj_get_iterator): New function.
5809 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5810 python-specific code to python/py-varobj.c.
5811 (install_visualizer): Call varobj_iter_delete instead of
5813 * varobj.h (varobj_ensure_python_env): Declare.
5815 2014-06-12 Yao Qi <yao@codesourcery.com>
5817 * varobj.c (struct varobj_item): New structure.
5818 (create_child_with_value): Update declaration.
5819 (varobj_add_child): Replace arguments 'name' and 'value' with
5820 'item'. All callers updated.
5821 (install_dynamic_child): Likewise.
5822 (update_dynamic_varobj_children): Likewise.
5823 (varobj_add_child): Likewise.
5824 (create_child_with_value): Likewise.
5826 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5828 * NEWS: Create a new section for the next release branch.
5829 Rename the section of the current branch, now that it has
5832 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5834 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5835 * version.in: Bump version to 7.8.50.DATE-cvs.
5837 2014-06-11 Pedro Alves <palves@redhat.com>
5840 * ser-mingw.c (net_windows_socket_check_pending): New function.
5841 (net_windows_select_thread): Ignore spurious wakeups. Use
5842 net_windows_socket_check_pending.
5843 (net_windows_wait_handle): Check for pending events with
5844 ioctlsocket, through net_windows_socket_check_pending, instead of
5845 checking the socket's event.
5847 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5849 * python/python-internal.h (gdb_PyObject_GetAttrString)
5850 (gdb_PyObject_HasAttrString): New inline function definitions.
5851 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5852 char * of the second argument to PyObject_GetAttrString.
5854 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5856 * serial.c (serial_write): Fix index of character to be printed
5857 in call to serial_logchar when serial debug traces are enabled.
5859 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5861 * gdbtypes (resolve_dynamic_range): Add function description.
5863 2014-06-09 Pedro Alves <palves@redhat.com>
5865 * linux-nat.c (linux_child_follow_fork): Initialize status with
5866 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5867 inner block. Only pass the signal to PTRACE_DETACH if in pass
5870 2014-06-09 Gary Benson <gbenson@redhat.com>
5872 * common/signals.c (gdb_signal_from_host): Reorder to separate
5873 the always-available ANSI-standard signals from the signals that
5875 (do_gdb_signal_to_host): Likewise.
5876 * proc-events.c (signal_table): Likewise.
5878 2014-06-08 Hui Zhu <hui@codesourcery.com>
5880 * common/linux-ptrace.c (linux_disable_event_reporting): New
5882 * common/linux-ptrace.h (linux_disable_event_reporting): New
5884 * linux-nat.c (linux_child_follow_fork): Do a single step before
5887 2014-06-07 Keith Seitz <keiths@redhat.com>
5891 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5892 from symbol_matches_domain in symtab.c. All local callers
5893 of symbol_matches_domain updated.
5894 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5895 search STRUCT_DOMAIN.
5896 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5897 independently. standard_lookup will do that automatically.
5898 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5899 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5900 (cp_lookup_symbol_in_namespace): Likewise.
5901 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5902 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5903 may return a STRUCT_DOMAIN match.
5904 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5905 * cp-support.c: Include language.h.
5906 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5908 * psymtab.c (match_partial_symbol): Compare the requested
5909 domain with the symbol's domain directly.
5910 (lookup_partial_symbol): Likewise.
5911 * symtab.c (lookup_symbol_in_language): Explain when/why
5912 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5913 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5914 appropriate languages.
5915 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5916 and moved to ada-lang.c
5917 (lookup_block_symbol): Explain that this function only returns
5918 symbol matching the requested DOMAIN.
5919 Compare the requested domain with the symbol's domain directly.
5920 (iterate_over_symbols): Compare the requested domain with the
5921 symbol's domain directly.
5922 * symtab.h (symbol_matches_domain): Remove.
5924 2014-06-06 Doug Evans <xdje42@gmail.com>
5926 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5927 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5928 (gdbscm_guile_version_is_at_least): Declare.
5929 (gdbscm_scm_string_to_int): Declare.
5930 * guile/guile.c (gdbscm_guile_major_version): New global.
5931 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5932 (guile_datadir): New static global.
5933 (gdbscm_guile_data_directory): New function.
5934 (initialize_scheme_side): Update.
5935 (misc_guile_functions): Add guile-data-directory.
5936 (initialize_gdb_module): Fetch guile version number.
5937 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5938 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5939 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5940 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5942 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5943 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5944 * guile/scm-value.c (gdbscm_value_to_string): Only call
5945 scm_port_conversion_strategy if Guile version >= 2.0.6.
5947 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5949 * main.c (print_gdb_help): Add -q and --silent.
5951 2014-06-06 Gary Benson <gbenson@redhat.com>
5953 * common/signals.c: Remove preprocessor conditionals for
5954 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5955 SIGSEGV and SIGTERM.
5956 * proc-events.c: Likewise.
5958 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5960 * symfile.c (symfile_free_objfile): Remove restriction to
5962 * symfile-mem.c (symbol_file_add_from_memory): Call
5963 add_target_sections_of_objfile.
5965 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5967 * guile/scm-value.c (gdbscm_history_append_x): Use
5968 'vlscm_get_value_smob_arg_unsafe' instead of
5969 'vlscm_scm_to_value'.
5971 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5974 * utils.c (printchar): Don't escape at all if quoter is NUL.
5975 Update function documentation to clarify effect of parameter
5977 * remote.c (escape_buffer): Pass '\\' as the quoter to
5978 fputstrn_unfiltered.
5979 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5980 generate the output.
5981 (mi_solib_unloaded): Same.
5983 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5985 * development.sh: Delete.
5986 * Makefile.in (config.status): Adjust dependency on development.sh.
5987 * configure.ac: Adjust development.sh source call.
5988 * configure: Regenerate.
5990 2014-06-04 Doug Evans <xdje42@gmail.com>
5992 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5993 is_scheme_bkpt, spec.
5994 (bpscm_make_breakpoint_smob): Initialize new members.
5995 (gdbscm_create_breakpoint_x): Split into two ...
5996 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5997 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5998 (scheme_function breakpoint_functions): Update.
5999 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6000 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6001 register-breakpoint!.
6003 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6006 * mem-break.c (z_type_supported): Return zero if
6007 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6009 2014-06-04 Tom Tromey <tromey@redhat.com>
6011 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6012 value_from_contents_and_address_unresolved.
6013 (ada_template_to_fixed_record_type_1): Likewise.
6014 (ada_which_variant_applies): Likewise.
6015 * value.h (value_from_contents_and_address_unresolved): Declare.
6016 * value.c (value_from_contents_and_address_unresolved): New
6018 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6019 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6020 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6022 2014-06-04 Tom Tromey <tromey@redhat.com>
6024 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6026 2014-06-04 Tom Tromey <tromey@redhat.com>
6028 * procfs.c (procfs_attach): Make "args" const.
6029 * windows-nat.c (windows_attach): Make "args" const.
6030 * nto-procfs.c (procfs_attach): Make "args" const.
6031 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6032 * go32-nat.c (go32_attach): Make "args" const.
6033 * gnu-nat.c (gnu_attach): Make "args" const.
6034 * darwin-nat.c (darwin_attach): Make "args" const.
6035 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6036 * linux-nat.c (linux_nat_attach): Make "args" const.
6037 * remote.c (extended_remote_attach_1, extended_remote_attach):
6039 * target.h (struct target_ops) <to_attach>: Make "args" const.
6040 (find_default_attach): Likewise.
6041 * utils.c (parse_pid_to_attach): Make "args" const.
6042 * utils.h (parse_pid_to_attach): Update.
6044 2014-06-04 Tom Tromey <tromey@redhat.com>
6046 * target-delegates.c: Rebuild.
6047 * target.c (default_thread_address_space): New function.
6048 (target_thread_address_space): Simplify.
6049 * target.h (struct target_ops) <to_thread_address_space>: Add
6050 TARGET_DEFAULT_FUNC.
6052 2014-06-04 Doug Evans <xdje42@gmail.com>
6054 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6056 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6058 * record-btrace.c: Include event-loop.h and inf-loop.h.
6059 (record_btrace_resume_exec_dir)
6060 (record_btrace_async_inferior_event_handler)
6061 (record_btrace_handle_async_inferior_event): New.
6062 (record_btrace_open): Create async event handler.
6063 (record_btrace_close): Delete async event handler.
6064 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6065 Mark async event handler.
6066 (record_btrace_execution_direction): New.
6067 (init_record_btrace_ops): Initialize to_execution_direction.
6069 2014-06-03 Doug Evans <xdje42@gmail.com>
6071 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6072 (gdbscm_make_parameter): Ditto.
6074 2014-06-03 Doug Evans <dje@google.com>
6076 * exec.c (exec_close_1): Call clear_section_table instead of
6077 resize_section_table.
6078 (clear_section_table): New function.
6079 (resize_section_table): Make static. Rename arg num_added to
6081 * exec.h (clear_section_table): Declare.
6082 (resize_section_table): Delete.
6083 * progspace.c (release_program_space): Call clear_section_table
6084 instead of resize_section_table.
6086 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6088 * NEWS (Python Scripting): Add entry about the new xmethods
6091 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6093 * python/py-xmethods.c: New file.
6094 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6095 (objfpy_dealloc): XDECREF on the new xmethods field.
6096 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6098 (objfpy_get_xmethods): New function.
6099 (objfile_getset): New entry 'xmethods'.
6100 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6101 (pspy_dealloc): XDECREF on the new xmethods field.
6102 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6104 (pspy_get_xmethods): New function.
6105 (pspace_getset): New entry 'xmethods'.
6106 * python/python-internal.h: Add declarations for new functions.
6107 * python/python.c (_initialize_python): Invoke
6108 gdbpy_initialize_xmethods.
6109 * python/lib/gdb/__init__.py (xmethods): New
6111 * python/lib/gdb/xmethod.py: New file.
6112 * python/lib/gdb/command/xmethods.py: New file.
6114 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6116 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6117 best match method returned by find_overload_match is an xmethod.
6118 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6119 the best matching operator returned by find_overload_match is an
6121 * valops.c: #include "extension.h".
6122 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6123 Return void. The list of matching source methods is returned in
6124 "fn_list" and a vector of matching debug method workers is
6125 returned in "xm_worker_vec". Update all callers.
6126 (value_find_oload_method_list): Likewise.
6127 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6128 non-NULL, then the index of the best matching method in this
6129 vector is returned. Update all callers.
6130 (find_overload_match): Include xmethods while performing overload
6133 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6135 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6136 * extension-priv.h (struct extension_language_ops): Add the
6138 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6139 get_matching_xmethod_workers, get_xmethod_argtypes,
6140 invoke_xmethod, free_xmethod_worker,
6141 free_xmethod_worker_vec): New functions.
6142 * extension.h: #include "common/vec.h".
6143 New function declarations.
6144 (struct xmethod_worker): New struct.
6145 (VEC (xmethod_worker_ptr)): New vector type.
6146 (xmethod_worker_ptr): New typedef.
6147 (xmethod_worker_vec): Likewise.
6148 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6150 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6151 (struct builtin_type): New field "xmethod".
6152 * valarith.c (value_ptradd): Assert that the value argument is not
6154 * valops.c (value_must_coerce_to_target): Return 0 for
6155 lval_xcallable values.
6156 * value.c (struct value): New field XM_WORKER in the field
6158 (value_address, value_raw_address): Return 0 for lval_xcallable
6160 (set_value_address): Assert that the value is not an
6162 (value_free): Free the associated xmethod worker when freeing
6163 lval_xcallable values.
6164 (set_value_component_location): Assert that the WHOLE value is not
6166 (value_of_xmethod, call_xmethod): New functions.
6167 * value.h: Declare "struct xmethod_worker".
6168 Declare new functions value_of_xmethod, call_xmethod.
6170 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6171 Pedro Alves <palves@redhat.com>
6173 PR breakpoints/17000
6174 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6175 New function, extracted from software_breakpoint_inserted_here_p.
6176 (software_breakpoint_inserted_here_p): Replace factored out code
6177 by call to find_non_raw_software_breakpoint_inserted_here.
6178 (bp_target_info_copy_insertion_state): New function.
6179 (bkpt_insert_location): Handle the case of a single-step
6180 breakpoint already inserted at the same address.
6181 (bkpt_remove_location): Handle the case of a single-step
6182 breakpoint still inserted at the same address.
6183 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6184 breakpoint already inserted at the same address.
6185 (deprecated_remove_raw_breakpoint): Handle the case of a
6186 non-raw breakpoint still inserted at the same address.
6187 (find_single_step_breakpoint): New function, extracted from
6188 single_step_breakpoint_inserted_here_p.
6189 (find_single_step_breakpoint): New function,
6190 factored out from single_step_breakpoint_inserted_here_p.
6191 (single_step_breakpoint_inserted_here_p): Reimplement.
6193 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6195 Pushed by Joel Brobecker <brobecker@adacore.com>
6196 * source.c (show_substitute_path_command): Fix display of matching
6199 2014-06-03 Gary Benson <gbenson@redhat.com>
6201 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6203 2014-06-02 Doug Evans <xdje42@gmail.com>
6205 Add parameter support for Guile.
6206 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6207 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6208 (scm-param.o): New rule.
6209 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6210 (gdbscm_misc_error): Declare.
6211 (gdbscm_canonicalize_command_name): Declare.
6212 (gdbscm_scm_to_host_string): Declare.
6213 (gdbscm_scm_from_host_string): Declare.
6214 (gdbscm_initialize_parameters): Declare.
6215 * guile/guile.c (initialize_gdb_module): Call
6216 gdbscm_initialize_parameters.
6217 * guile/lib/gdb.scm: Export parameter symbols.
6218 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6219 cmdscm_canonicalize_name and made public. All callers updated.
6220 * guile/scm-exception.c (gdbscm_misc_error): New function.
6221 * guile/scm-param.c: New file.
6222 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6223 (gdbscm_scm_to_host_string): New function.
6224 (gdbscm_scm_from_host_string): New function.
6225 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6227 2014-06-02 Doug Evans <xdje42@gmail.com>
6229 Add command support for Guile.
6230 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6231 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6232 (scm-cmd.o): New rule.
6233 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6234 (gdbscm_user_error_p): Declare.
6235 (gdbscm_parse_command_name): Declare.
6236 (gdbscm_valid_command_class_p): Declare.
6237 (gdbscm_initialize_commands): Declare.
6238 * guile/guile.c (initialize_gdb_module): Call
6239 gdbscm_initialize_commands.
6240 * guile/lib/gdb.scm: Export command symbols.
6241 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6242 (throw-user-error): New function.
6243 * guile/scm-cmd.c: New file.
6244 * guile/scm-exception.c (user_error_symbol): New static global.
6245 (gdbscm_user_error_p): New function.
6246 (gdbscm_initialize_exceptions): Set user_error_symbol.
6247 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6249 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6251 * top.c (command_loop): Handle comments here...
6252 (command_line_input): ... not here.
6254 2014-06-02 Doug Evans <xdje42@gmail.com>
6256 Add progspace support for Guile.
6257 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6258 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6259 (scm-progspace.o): New rule.
6260 * guile/guile-internal.h (pspace_smob): New typedef.
6261 (psscm_pspace_smob_pretty_printers): Declare.
6262 (psscm_pspace_smob_from_pspace): Declare.
6263 (psscm_scm_from_pspace): Declare.
6264 * guile/guile.c (initialize_gdb_module): Call
6265 gdbscm_initialize_pspaces.
6266 * guile/lib/gdb.scm: Export progspace symbols.
6267 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6269 (append-pretty-printer!): Ditto.
6270 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6272 * guile/scm-progspace.c: New file.
6274 2014-06-03 Alan Modra <amodra@gmail.com>
6276 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6277 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6279 2014-06-02 Doug Evans <dje@google.com>
6281 Add support for skeletonless type units.
6282 * dwarf2read.c (struct dwarf2_per_objfile): New member
6283 n_allocated_type_units.
6284 (struct dwarf2_per_objfile) <tu_stats>: New member
6285 nr_all_type_units_reallocs.
6286 (create_signatured_type_table_from_index): Initialize
6287 n_allocated_type_units
6288 (create_all_type_units): Ditto.
6289 (add_type_unit): Move up in file. New arg slot.
6290 All callers updated. Increase space for all_type_units more
6292 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6293 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6294 (lookup_dwp_signatured_type): Ditto.
6295 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6296 All callers updated.
6297 (build_type_psymtabs_1): Leave type_unit_groups as
6298 NULL if no TUs present.
6299 (print_tu_stats): New function.
6300 (process_skeletonless_type_unit): New function.
6301 (process_dwo_file_for_skeletonless_type_units): New
6303 (process_skeletonless_type_units): New function.
6304 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6305 Call print tu_stats if debugging enabled.
6307 2014-06-02 Pedro Alves <palves@redhat.com>
6309 * breakpoint.c (build_target_command_list): Don't build a command
6310 list if we have any duplicate location that isn't a dprintf.
6312 2014-06-02 Pedro Alves <palves@redhat.com>
6314 * breakpoint.c (dprintf_breakpoint_hit): New function.
6315 (initialize_breakpoint_ops): Install it as dprintf's
6316 breakpoint_hit method.
6318 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6320 * source.c (substitute_path_rule_matches): Simplify using
6321 filename_ncmp instead of FILENAME_CMP.
6323 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6325 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6327 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6329 * configure.ac: When Guile is available, check for the
6330 availability of 'scm_new_smob'.
6331 * configure, config.h.in: Regenerate.
6332 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6335 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6337 * frame.c (struct frame_info): Add stop_string field.
6338 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6339 (get_prev_frame_always): Old content moved into
6340 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6341 TRY_CATCH, handle MEMORY_ERROR exceptions.
6342 (frame_stop_reason_string): New function definition.
6343 * frame.h (unwind_stop_reason_to_string): Extend comment to
6344 mention frame_stop_reason_string.
6345 (frame_stop_reason_string): New function declaration.
6346 * stack.c (frame_info): Switch to frame_stop_reason_string.
6347 (backtrace_command_1): Switch to frame_stop_reason_string.
6348 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6349 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6350 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6352 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6354 * frame.c (frame_stop_reason_string): Rename to ...
6355 (unwind_stop_reason_to_string): this.
6356 * frame.h (frame_stop_reason_string): Rename to ...
6357 (unwind_stop_reason_to_string): this.
6358 * stack.c (frame_info): Update call to frame_stop_reason_string.
6359 (backtrace_command_1): Likewise.
6360 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6361 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6363 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6365 * frame.c (remove_prev_frame): New function.
6366 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6369 2014-05-29 Pedro Alves <palves@redhat.com>
6371 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6372 and make it const. When a single-step decays to a continue,
6373 clear 'step', not 'hw_step'. Pass whether the caller wanted
6374 to step to user_visible_resume_ptid, not what we ask the
6377 2014-05-29 Pedro Alves <palves@redhat.com>
6379 * infrun.c (process_event_stop_test, handle_step_into_function)
6380 (handle_step_into_function_backward): Adjust.
6381 Don't set the even thread's stop_step and call stop_waiting before
6382 calling end_stepping_range. Instead do that ...
6383 (end_stepping_range): ... here. Take an ecs pointer parameter.
6385 2014-05-29 Pedro Alves <palves@redhat.com>
6387 * infrun.c (stop_stepping): Rename to ...
6388 (stop_waiting): ... this.
6389 (proceed): Update comment.
6390 (process_event_stop_test, handle_inferior_event)
6391 (handle_signal_stop, handle_step_into_function)
6392 (handle_step_into_function_backward): Update.
6394 2014-05-29 Pedro Alves <palves@redhat.com>
6396 * infcall.c (run_inferior_call): Don't check whether the current
6397 thread is running after the proceed call.
6399 2014-05-29 Pedro Alves <palves@redhat.com>
6400 Tom Tromey <tromey@redhat.com>
6402 * NEWS: Mention "maint set target-async", "set mi-async", and that
6403 background execution commands are now always available.
6404 * target.h (target_async_permitted): Update comment.
6405 * target.c (target_async_permitted, target_async_permitted_1):
6407 (set_target_async_command): Rename to ...
6408 (maint_set_target_async_command): ... this.
6409 (show_target_async_command): Rename to ...
6410 (maint_show_target_async_command): ... this.
6411 (_initialize_target): Adjust.
6412 * infcmd.c (prepare_execution_command): Make extern.
6413 * inferior.h (prepare_execution_command): Declare.
6414 * infrun.c (set_observer_mode): Leave target async alone.
6415 * mi/mi-interp.c (mi_interpreter_init): Install
6416 mi_on_sync_execution_done as sync_execution_done observer.
6417 (mi_on_sync_execution_done): New function.
6418 (mi_execute_command_input_handler): Don't print the prompt if we
6419 just started a synchronous command with an async target.
6420 (mi_on_resume): Check sync_execution before printing prompt.
6421 * mi/mi-main.h (mi_async_p): Declare.
6422 * mi/mi-main.c: Include gdbcmd.h.
6423 (mi_async_p): New function.
6424 (mi_async, mi_async_1): New globals.
6425 (set_mi_async_command, show_mi_async_command, mi_async): New
6427 (exec_continue): Call prepare_execution_command.
6428 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6429 (mi_execute_async_cli_command): Use mi_async_p.
6430 (_initialize_mi_main): Install "set mi-async". Make
6431 "target-async" a deprecated alias.
6433 2014-05-29 Pedro Alves <palves@redhat.com>
6435 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6436 (_initialize_cli_interp): Adjust.
6437 * event-loop.c: Include "observer.h".
6438 (start_event_loop): Notify 'command_error' observers instead of
6439 calling display_gdb_prompt. Remove FIXME comment.
6440 * event-top.c (display_gdb_prompt): Remove call into the
6442 * inf-loop.c: Include "observer.h".
6443 (inferior_event_handler): Notify 'command_error' observers instead
6444 of calling display_gdb_prompt.
6445 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6446 observers instead of calling display_gdb_prompt.
6447 * interps.c (interp_set): Don't call display_gdb_prompt.
6448 (current_interp_display_prompt_p): Delete.
6449 * interps.h (interp_prompt_p): Delete declaration.
6450 (interp_prompt_p_ftype): Delete.
6451 (struct interp_procs) <prompt_proc_p>: Delete field.
6452 (current_interp_display_prompt_p): Delete declaration.
6453 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6454 (_initialize_mi_interp): Adjust.
6455 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6456 'command_error' observers.
6457 (tui_on_sync_execution_done, tui_on_command_error): New
6459 (tui_display_prompt_p): Delete.
6460 (_initialize_tui_interp): Adjust.
6462 2014-05-29 Pedro Alves <palves@redhat.com>
6465 * cli/cli-interp.c: Include infrun.h and observer.h.
6466 (cli_uiout, cli_interp): New globals.
6467 (cli_on_signal_received, cli_on_end_stepping_range)
6468 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6470 (cli_interpreter_init): Install them as 'end_stepping_range',
6471 'signal_received' 'signal_exited', 'exited' and 'no_history'
6473 (_initialize_cli_interp): Remove cli_interp local.
6474 * infrun.c (handle_inferior_event): Call the several stop reason
6475 observers instead of printing the stop reason directly.
6476 (end_stepping_range): New function.
6477 (print_end_stepping_range_reason, print_signal_exited_reason)
6478 (print_exited_reason, print_signal_received_reason)
6479 (print_no_history_reason): Make static, and add an uiout
6480 parameter. Print to that instead of to CURRENT_UIOUT.
6481 * infrun.h (print_end_stepping_range_reason)
6482 (print_signal_exited_reason, print_exited_reason)
6483 (print_signal_received_reason print_no_history_reason): New
6485 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6487 <cli_uiout>: New field.
6488 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6489 uiout for CLI output. Install 'signal_received',
6490 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6492 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6493 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6494 (mi_on_no_history): New functions.
6495 (ui_out_free_cleanup): Delete function.
6496 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6497 instead use the one already stored in the MI interpreter data.
6498 (mi_ui_out): Adjust.
6499 * tui/tui-interp.c: Include infrun.h and observer.h.
6500 (tui_interp): New global.
6501 (tui_on_signal_received, tui_on_end_stepping_range)
6502 (tui_on_signal_exited, tui_on_exited)
6503 (tui_on_no_history): New functions.
6504 (tui_init): Install them as 'end_stepping_range',
6505 'signal_received' 'signal_exited', 'exited' and 'no_history'
6507 (_initialize_tui_interp): Delete tui_interp local.
6509 2014-05-29 Pedro Alves <palves@redhat.com>
6512 * linux-nat.c (linux_nat_resume_callback): Rename the second
6513 parameter to 'except'. Skip LP if it points to EXCEPT.
6514 (linux_nat_resume): Don't mark the event lwp as not stopped
6515 before resuming sibling lwps. Instead ask
6516 linux_nat_resume_callback to skip the event lwp. Mark it as not
6517 stopped after actually resuming it.
6518 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6520 (wait_lwp): Mark the lwp as stopped here.
6521 (stop_wait_callback): Mark the lwp as not stopped right after
6522 resuming it. Don't mark lwps as stopped here.
6523 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6524 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6526 2014-05-29 Pedro Alves <palves@redhat.com>
6529 * infrun.c (resume): Determine how much to resume depending on
6530 whether the caller wanted a step, not whether we can hardware step
6531 the target. Mark all threads that we intend to run as running,
6532 unless we're calling an inferior function.
6533 (normal_stop): If the thread is running an infcall, don't finish
6535 * target.c (target_resume): Don't mark threads as running here.
6537 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6539 * serial.c (_initialize_serial): Remove support for
6540 the "set remotebaud" and "show remotebaud" commands.
6541 * NEWS: Add entry documenting the removal of that command.
6543 2014-05-28 Yao Qi <yao@codesourcery.com>
6545 * charset.c: Fix typo in comments.
6547 2014-05-27 Gary Benson <gbenson@redhat.com>
6549 * utils.c (internal_vproblem): Prompt for a bug report.
6551 2014-05-26 Andy Wingo <wingo@igalia.com>
6553 * guile/scm-arch.c (arscm_mark_arch_smob):
6554 * guile/scm-block.c (bkscm_mark_block_smob)
6555 (bkscm_mark_block_syms_progress_smob):
6556 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6557 * guile/scm-exception.c (exscm_mark_exception_smob):
6558 * guile/scm-frame.c (frscm_mark_frame_smob):
6559 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6560 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6561 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6562 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6563 (ppscm_mark_pretty_printer_worker_smob):
6564 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6565 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6566 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6567 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6569 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6572 2014-05-26 Andy Wingo <wingo@igalia.com>
6573 Doug Evans <xdje42@gmail.com>
6575 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6576 empty_base_class. All uses updated.
6577 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6578 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6580 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6581 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6582 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6583 (gdbscm_gsmob_has_property_p, add_property_name)
6584 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6585 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6586 (gdb-object-has-property?, gdb-object-properties): Remove.
6587 (gdb-object-kind): Renamed from gsmob-kind.
6589 2014-05-26 Andy Wingo <wingo@igalia.com>
6591 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6592 * configure: Regenerate.
6594 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6596 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6598 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6600 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6601 (replay_memory_access_read_only, replay_memory_access_read_write)
6602 (replay_memory_access_types, replay_memory_access)
6603 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6604 (cmd_set_record_btrace, cmd_show_record_btrace)
6605 (cmd_show_replay_memory_access): New.
6606 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6607 (record_btrace_remove_breakpoint): Replace
6608 record_btrace_allow_memory_access with replay_memory_access.
6609 (_initialize_record_btrace): Add commands.
6610 * NEWS: Announce it.
6612 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6614 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6616 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6618 * MAINTAINERS (Write After Approval): Move self back from
6621 2014-05-22 Pedro Alves <palves@redhat.com>
6623 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6624 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6625 (disable_randomization, enum exec_direction_kind)
6626 (execution_direction, stop_registers, start_remote)
6627 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6628 (wait_for_inferior, normal_stop, get_last_target_status)
6629 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6630 (insert_step_resume_breakpoint_at_sal)
6631 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6632 (set_step_info, print_stop_event, signal_stop_state)
6633 (signal_print_state, signal_pass_state, signal_stop_update)
6634 (signal_print_update, signal_pass_update)
6635 (update_signals_program_target, clear_exit_convenience_vars)
6636 (displaced_step_dump_bytes, update_observer_mode)
6637 (signal_catch_update, gdb_signal_from_command): Move
6639 * infrun.h: ... to this new file.
6640 * amd64-tdep.c: Include infrun.h.
6641 * annotate.c: Include infrun.h.
6642 * arch-utils.c: Include infrun.h.
6643 * arm-linux-tdep.c: Include infrun.h.
6644 * arm-tdep.c: Include infrun.h.
6645 * break-catch-sig.c: Include infrun.h.
6646 * breakpoint.c: Include infrun.h.
6647 * common/agent.c: Include infrun.h instead of inferior.h.
6648 * corelow.c: Include infrun.h.
6649 * event-top.c: Include infrun.h.
6650 * go32-nat.c: Include infrun.h.
6651 * i386-tdep.c: Include infrun.h.
6652 * inf-loop.c: Include infrun.h.
6653 * infcall.c: Include infrun.h.
6654 * infcmd.c: Include infrun.h.
6655 * infrun.c: Include infrun.h.
6656 * linux-fork.c: Include infrun.h.
6657 * linux-nat.c: Include infrun.h.
6658 * linux-thread-db.c: Include infrun.h.
6659 * monitor.c: Include infrun.h.
6660 * nto-tdep.c: Include infrun.h.
6661 * procfs.c: Include infrun.h.
6662 * record-btrace.c: Include infrun.h.
6663 * record-full.c: Include infrun.h.
6664 * remote-m32r-sdi.c: Include infrun.h.
6665 * remote-mips.c: Include infrun.h.
6666 * remote-notif.c: Include infrun.h.
6667 * remote-sim.c: Include infrun.h.
6668 * remote.c: Include infrun.h.
6669 * reverse.c: Include infrun.h.
6670 * rs6000-tdep.c: Include infrun.h.
6671 * s390-linux-tdep.c: Include infrun.h.
6672 * solib-irix.c: Include infrun.h.
6673 * solib-osf.c: Include infrun.h.
6674 * solib-svr4.c: Include infrun.h.
6675 * target.c: Include infrun.h.
6676 * top.c: Include infrun.h.
6677 * windows-nat.c: Include infrun.h.
6678 * mi/mi-interp.c: Include infrun.h.
6679 * mi/mi-main.c: Include infrun.h.
6680 * python/py-threadevent.c: Include infrun.h.
6682 2014-05-22 Pedro Alves <palves@redhat.com>
6684 * infrun.c (handle_inferior_event): Store the exit code for
6685 --return-child-result here, instead of ...
6686 (print_exited_reason): ... here.
6688 2014-05-21 Pedro Alves <palves@redhat.com>
6691 * gdbthread.h (struct thread_control_state): New field
6693 * infrun.c (follow_fork): Copy the new thread control field to the
6695 (clear_proceed_status_thread): Clear the new thread control field.
6696 (proceed): Set the new thread control field.
6697 * interps.h (command_interp): Declare.
6698 * interps.c (command_interpreter): New global.
6699 (command_interp): New function.
6700 (interp_exec): Set `command_interpreter' while here.
6701 * cli-out.c (cli_uiout_dtor): New function.
6702 (cli_ui_out_impl): Install it.
6703 * mi/mi-interp.c: Include cli-out.h.
6704 (mi_cmd_interpreter_exec): Add comment.
6705 (restore_current_uiout_cleanup): New function.
6706 (ui_out_free_cleanup): New function.
6707 (mi_on_normal_stop): If finishing an execution command started by
6708 a CLI command, or any kind of breakpoint-like event triggered,
6709 print the stop event to the output (CLI) stream.
6710 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6712 2014-05-21 Pedro Alves <palves@redhat.com>
6714 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6715 current source line having changed.
6716 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6717 * infrun.c (normal_stop): Adjust call to
6718 set_current_sal_from_frame.
6719 * source.c (clear_lines_listed_range): New function.
6720 (set_current_source_symtab_and_line, identify_source_line): Clear
6721 the lines listed range.
6722 (line_info): Handle the first "info line" after the current source
6723 line having changed.
6724 * stack.c (print_stack_frame): Remove center handling.
6725 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6728 2014-05-21 Pedro Alves <palves@redhat.com>
6730 * inf-child.c (inf_child_mourn_inferior): New function.
6731 * inf-child.h (inf_child_mourn_inferior): New declaration.
6732 * darwin-nat.c (darwin_mourn_inferior): Use
6733 inf_child_mourn_inferior.
6734 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6735 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6736 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6737 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6738 * windows-nat.c (windows_mourn_inferior): Likewise.
6740 2014-05-21 Doug Evans <xdje42@gmail.com>
6742 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6744 2014-05-21 Doug Evans <xdje42@gmail.com>
6746 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6747 (gdbscm_out_of_range_error): Ditto.
6748 (gdbscm_memory_error): Ditto.
6749 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6750 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6751 (gdbscm_out_of_range_error): Update.
6752 (gdbscm_memory_error): Update.
6753 (gdbscm_scm_to_target_string_unsafe): Delete.
6755 2014-05-21 Pedro Alves <palves@redhat.com>
6757 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6759 (inf_child_open_target): New function.
6760 (inf_child_open): Use inf_child_open_target to push the target
6761 instead of erroring out.
6762 (inf_child_disconnect, inf_child_close)
6763 (inf_child_maybe_unpush_target): New functions.
6764 (inf_child_target): Install inf_child_disconnect and
6765 inf_child_close. Store a pointer to the returned object.
6766 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6768 * target.c (auto_connect_native_target): New global.
6769 (show_default_run_target): New function.
6770 (find_default_run_target): Return NULL if automatically connecting
6771 to the native target is disabled.
6772 (_initialize_target): Install set/show auto-connect-native-target.
6773 * NEWS: Mention "set auto-connect-native-target", and "target
6775 * linux-nat.c (super_close): New global.
6776 (linux_nat_close): Call super_close.
6777 (linux_nat_add_target): Store a pointer to the base class's
6779 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6780 inf_child_maybe_unpush.
6781 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6783 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6784 the inferior. Use inf_child_maybe_unpush_target.
6785 (inf_ttrace_attach): Don't push the target if it is already
6787 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6788 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6789 after mourning the inferior. Use inf_child_maybe_unpush_target.
6790 (darwin_attach_pid): Don't push the target if it is already
6792 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6793 mourning the inferior. Use inf_child_maybe_unpush_target.
6794 (gnu_detach): Use inf_child_maybe_unpush_target.
6795 * go32-nat.c (go32_create_inferior): Don't push the target if it
6797 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6798 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6799 (procfs_open): Rename to ...
6800 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6801 comments. Can target_preopen before changing node. Call
6802 inf_child_open_target to push the target explicitly.
6803 (procfs_attach): Don't push the target if it is already pushed.
6804 (procfs_detach): Use inf_child_maybe_unpush_target.
6805 (procfs_create_inferior): Don't push the target if it is already
6807 (nto_native_ops): New global.
6808 (procfs_open): Reimplement.
6809 (procfs_native_open): New function.
6810 (init_procfs_targets): Install procfs_native_open as to_open of
6811 "target native". Store a pointer to the "native" target in
6813 * procfs.c (procfs_attach): Don't push the target if it is already
6815 (procfs_detach): Use inf_child_maybe_unpush_target.
6816 (procfs_mourn_inferior): Only unpush the target after mourning the
6817 inferior. Use inf_child_maybe_unpush_target.
6818 (procfs_init_inferior): Don't push the target if it is already
6820 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6821 if it is already pushed.
6823 2014-05-21 Pedro Alves <palves@redhat.com>
6825 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6826 and "procfs" targets are now called "native" instead.
6828 2014-05-21 Pedro Alves <palves@redhat.com>
6830 * go32-nat.c (go32_open): Delete.
6831 (go32_target): Don't override the to_open method.
6833 2014-05-21 Pedro Alves <palves@redhat.com>
6835 * nto-procfs.c (procfs_can_run): New function.
6836 (nto_procfs_ops): New global.
6837 (init_procfs_targets): New, based on procfs_target. Install
6838 "target native" in addition to "target procfs".
6839 (_initialize_procfs): Call init_procfs_targets instead of adding
6842 2014-05-21 Pedro Alves <palves@redhat.com>
6844 * windows-nat.c (windows_target): Don't override to_shortname,
6845 to_longname or to_doc.
6847 2014-05-21 Pedro Alves <palves@redhat.com>
6849 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6852 2014-05-21 Pedro Alves <palves@redhat.com>
6854 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6855 to_shortname, to_longname or to_doc.
6857 2014-05-21 Pedro Alves <palves@redhat.com>
6859 * go32-nat.c (go32_target): Don't override to_shortname,
6860 to_longname or to_doc.
6862 2014-05-21 Pedro Alves <palves@redhat.com>
6864 * inf-child.c (inf_child_open): Remove mention of "child".
6865 (inf_child_target): Rename target to "native" instead of "child".
6867 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6869 * Makefile.in (SFILES): Delete "regset.c".
6870 (COMMON_OBS): Delete "regset.o".
6872 * regset.h (regset_alloc): Delete prototype.
6874 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6876 * sparc-linux-tdep.c (sparc32_linux_gregset)
6877 (sparc32_linux_fpregset): New static regset structures.
6878 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6879 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6881 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6882 (sparc64_linux_fpregset): New static regset structures.
6883 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6884 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6885 New static regset structures.
6886 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6887 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6888 New static regset structures.
6889 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6890 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6891 New static regset structures.
6892 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6893 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6894 New static regset structures.
6895 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6897 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6899 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6900 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6901 register maps ("regmaps") from "*regset" to "*regmap". Do this
6902 for all regmap types and variables.
6903 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6904 (sparc32_linux_supply_core_gregset)
6905 (sparc32_linux_collect_core_gregset)
6906 (sparc32_linux_supply_core_fpregset)
6907 (sparc32_linux_collect_core_fpregset): Likewise.
6908 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6909 (sparc_gregmap, sparc_fpregmap): ... these.
6910 (sparc_supply_gregset, sparc_collect_gregset)
6911 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6912 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6913 (_initialize_sparc_nat): Rename regmaps.
6914 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6915 (sparc_gregmap, sparc_fpregmap): ... these.
6916 (sparc_supply_gregset, sparc_collect_gregset)
6917 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6918 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6920 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6921 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6923 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6925 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6926 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6927 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6929 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6930 (sparc32_bsd_fpregset): Rename to...
6931 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6932 (sparc32_bsd_fpregmap): ... these.
6933 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6934 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6935 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6936 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6937 (struct sparc_gregmap, struct sparc_fpregmap)
6938 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6939 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6940 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6941 (sparc32_supply_regset, sparc32_collect_gregset)
6942 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6944 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6945 (sparc64_linux_ptrace_gregmap): ... this.
6946 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6947 (_initialize_sparc64_linux_nat): Rename regmaps.
6948 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6949 (sparc64_linux_core_gregmap): ... this.
6950 (sparc64_linux_supply_core_gregset)
6951 (sparc64_linux_collect_core_gregset)
6952 (sparc64_linux_supply_core_fpregset)
6953 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6954 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6955 (sparc64_sol2_fpregset): Rename to...
6956 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6957 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6958 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6960 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6961 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6962 (sparc64_bsd_fpregset): Rename to...
6963 (struct sparc_gregmap, sparc64_sol2_gregmap)
6964 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6965 (sparc64_bsd_fpregmap): ... these.
6966 (sparc64_supply_gregset, sparc64_collect_gregset)
6967 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6969 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6970 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6971 (sparc64fbsd_gregmap): ... this.
6972 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6973 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6975 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6976 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6977 (sparc64nbsd_collect_fpregset): Likewise.
6978 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6979 (sparc64nbsd_gregmap): ... this.
6980 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6982 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6983 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6984 (sparc64obsd_gregmap): ... this.
6985 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6987 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6988 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6989 (sparc32nbsd_gregmap): ... this.
6990 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6993 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6995 * score-tdep.c (score7_linux_gregset): New static regset
6997 (score7_linux_regset_from_core_section): Remove dynamic regset
6999 (score_gdbarch_init): Drop allocation of tdep structure.
7000 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7002 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7004 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7006 (am33_regset_from_core_section): Remove dynamic regset
7009 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7011 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7012 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7014 (mips_linux_regset_from_core_section): Remove dynamic regset
7016 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7017 'gregset64', 'fpregset', and 'fpregset64'.
7018 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7019 deleted tdep fields.
7021 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7023 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7025 (amd64_regset_from_core_section): Remove dynamic regset
7027 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7029 (amd64obsd_regset_from_core_section): Remove dynamic regset
7031 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7033 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7034 x86-common regset supply function.
7035 * i386-tdep.c (i386_collect_gregset): Make static.
7036 (i386_gregset): New global regset structure.
7037 (i386_fpregset, i386_xstateregset): New static regset structures.
7038 (i386_regset_from_core_section): Remove dynamic regset
7040 (i386_gdbarch_init): Remove initialization of tdep fields
7041 'gregset', 'fpregset', and 'xstateregset'.
7042 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7043 'fpregset', and 'xstateregset'.
7044 (i386_collect_gregset): Remove prototype.
7045 (i386_gregset): New declaration.
7046 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7048 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7051 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7053 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7054 (arm_linux_vfpregset): New static regset structures.
7055 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7057 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7058 and 'vfpregset' fields.
7060 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7062 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7063 (aarch64_linux_fpregset): New static regset structures.
7064 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7065 of regset structures.
7066 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7069 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7071 * regset.h (struct regset): Remove gdbarch field.
7072 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7073 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7074 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7076 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7077 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7078 (ppc32_linux_vsxregset): Likewise.
7079 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7080 via the regcache instead of the regset.
7081 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7082 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7083 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7084 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7087 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7089 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7090 Constify structures.
7091 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7092 (alphanbsd_aout_gregset): Likewise.
7093 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7094 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7096 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7097 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7099 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7100 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7101 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7102 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7103 * m88k-tdep.c (m88k_gregset): Likewise.
7104 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7105 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7106 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7107 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7108 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7109 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7110 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7111 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7112 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7114 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7115 * sh-tdep.h (sh_corefile_gregset): Likewise.
7116 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7117 * vax-tdep.c (vax_gregset): Likewise.
7119 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7121 Fix TLS access for -static -pthread.
7122 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7123 (try_thread_db_load_1): Initialize it.
7124 (thread_db_get_thread_local_address): Call it if LM is zero.
7125 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7126 * target.h (struct target_ops) (to_get_thread_local_address): Add
7127 load_module_addr comment.
7129 2014-05-21 Pedro Alves <palves@redhat.com>
7131 * dcache.c (dcache_read_memory_partial): If reading the cache line
7132 fails, fallback to reading just the memory the caller wanted.
7134 2014-05-20 Doug Evans <dje@google.com>
7136 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7137 instead of get_current_arch.
7139 2014-05-20 Pedro Alves <palves@redhat.com>
7141 * NEWS: Mention that compare-sections now works with all targets.
7143 * remote.c (PACKET_qCRC): New enum value.
7144 (remote_verify_memory): Don't send qCRC if the target has no
7145 execution. Use packet_support/packet_ok. If the target doesn't
7146 support the qCRC packet, fallback to a deep memory copy.
7147 (compare_sections_command): Say "target image" instead of "remote
7149 (_initialize_remote): Add PACKET_qCRC to the list of config
7150 packets that have no associated command. Extend comment.
7151 * target.c (simple_verify_memory, default_verify_memory): New
7153 * target.h (struct target_ops) <to_verify_memory>: Default to
7154 default_verify_memory.
7155 (simple_verify_memory): New declaration.
7156 * target-delegates.c: Regenerate.
7158 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7160 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7162 2014-05-20 Hui Zhu <hui@codesourcery.com>
7163 Yao Qi <yao@codesourcery.com>
7166 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7167 and change address of sp and pc.
7169 2014-05-19 Tom Tromey <tromey@redhat.com>
7171 * gdbtypes.c (rank_function): Use XNEWVEC.
7172 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7174 2014-05-19 Doug Evans <dje@google.com>
7176 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7177 build_type_unit_groups and moved closer to only caller. Remove
7178 arguments. All references updated. Remove outdated .gdb_index
7180 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7181 build_type_psymtabs_1.
7183 2014-05-19 Doug Evans <dje@google.com>
7185 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7186 n_type_unit_groups, all_type_unit_groups. All uses removed.
7187 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7188 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7189 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7190 (add_type_unit_group_to_table): Delete.
7192 2014-05-19 Doug Evans <dje@google.com>
7194 * eval.c (evaluate_subexp_standard): Add some comments.
7196 2014-05-17 Doug Evans <xdje42@gmail.com>
7198 * progspace.c (remove_program_space): Delete, unused.
7199 * progspace.h (remove_program_space): Ditto.
7201 2014-05-17 Doug Evans <xdje42@gmail.com>
7203 * inferior.c (prune_inferiors): Fix comment.
7204 (remove_inferior_command): Call prune_program_spaces.
7206 2014-05-16 Doug Evans <dje@google.com>
7208 New command line option -D.
7210 * main.c (set_gdb_data_directory): New function.
7211 (captured_main): Recognize -D. Flag error for --data-directory "".
7212 Call set_gdb_data_directory.
7213 (print_gdb_help): Print --data-directory, -D.
7214 * main.h (set_gdb_data_directory): Declare.
7215 * top.c (staged_gdb_datadir): New static global.
7216 (set_gdb_datadir): Call set_gdb_data_directory
7217 (show_gdb_datadir): New function.
7218 (init_main): Update init of data-directory parameter.
7220 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7222 Import the "dirfd" gnulib module.
7223 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7224 * gnulib/aclocal.m4: Update.
7225 * gnulib/config.in: Update.
7226 * gnulib/configure: Update.
7227 * gnulib/import/Makefile.am: Update.
7228 * gnulib/import/Makefile.in: Update.
7229 * gnulib/import/dirfd.c: New.
7230 * gnulib/import/m4/dirfd.m4: New.
7231 * gnulib/import/m4/gnulib-cache.m4: Update.
7232 * gnulib/import/m4/gnulib-comp.m4: Update.
7234 2014-05-16 Pierre Muller <muller@sourceware.org>
7235 Yao Qi <yao@codesourcery.com>
7237 * valprint.c (print_wchar): Move the code on checking whether
7238 W is a printable wide char to the default branch of switch
7239 statement below. Call wchar_printable instead of gdb_iswprint.
7241 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7243 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7244 ldr.w and ldrd instructions.
7246 2014-05-15 Doug Evans <dje@google.com>
7248 * dwarf2read.c (read_structure_type): Delete outdated comments.
7250 2014-05-14 Tom Tromey <tromey@redhat.com>
7252 * macrocmd.c (print_macro_definition): Reindent.
7254 2014-05-13 Doug Evans <xdje42@gmail.com>
7256 * python/py-cmd.c (cmdpy_completer): Add comment.
7257 (completers): Make const.
7259 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7261 * infrun.c (resume): Remove should_resume (unused). Move up
7262 declaration of resume_ptid.
7264 2014-05-13 Tom Tromey <tromey@redhat.com>
7266 * language.h (unop_type_check): Remove.
7267 (binop_type_check): Don't declare.
7269 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7271 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7272 call to regcache_raw_collect.
7274 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7276 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7277 mi_console->quote as the quoting character.
7279 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7281 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7283 2014-04-29 Tom Tromey <tromey@redhat.com>
7285 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7286 "show debug varobj".
7288 2014-05-07 Kyle McMartin <kyle@redhat.com>
7290 Pushed by Joel Brobecker <brobecker@adacore.com>.
7291 * aarch64-tdep.c (aarch64_software_single_step): New function.
7292 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7293 with aarch64_software_single_step.
7295 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7299 2014-05-05 Keith Seitz <keiths@redhat.com>
7301 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7302 variable or history value is successfully parsed.
7304 2014-05-05 Yao Qi <yao@codesourcery.com>
7305 Pedro Alves <palves@redhat.com>
7307 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7308 address of blocks that intersects the requested range. Trim
7309 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7311 * ctf.c (ctf_xfer_partial): Likewise.
7313 2014-05-05 Yao Qi <yao@codesourcery.com>
7315 * printcmd.c (display_command): Remove the check to
7316 target_has_execution.
7318 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7320 * ppcobsd-nat.c: Include "obsd-nat.h".
7321 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7323 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7325 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7327 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7328 and 16-bit signed and unsigned arguments. Update comment.
7329 (stap_parse_probe_arguments): Extend code to handle such
7330 arguments. Use warning instead of complaint to notify about
7331 unrecognized bitness.
7333 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7335 PR breakpoints/16889
7336 * stap-probe.c (stap_parse_probe_arguments): Simplify
7337 check for non-prefixed probes (i.e., probes whose
7338 arguments do not start with "N@"). Always set the
7339 argument type to a sane value.
7341 2014-05-01 David Taylor <dtaylor@emc.com>
7343 * remote.c (compare_sections_command): Add -r option to compare
7344 all loadable read-only sections.
7346 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7348 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7349 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7351 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7352 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7353 Remove unused CORE_ADDR argument. Update all callers.
7355 2014-04-29 Pedro Alves <palves@redhat.com>
7357 * remote.c (struct packet_config) <detect>: Extend comment.
7358 (add_packet_config_cmd): Don't set the config's detect or support
7360 (init_all_packet_configs): Also initialize the config's 'detect'
7362 (reset_all_packet_configs_support): New function.
7363 (remote_open_1): Call reset_all_packet_configs_support instead of
7364 init_all_packet_configs.
7365 (_initialize_remote): Initialize all packet configs. Assert that
7366 all packets have an associated command, except a few known
7369 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7371 * dwarf2read.c (read_subrange_type): Handle dynamic
7372 DW_AT_lower_bound attributes.
7374 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7376 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7377 dynamic bounds before computing its upper bound.
7378 (ada_discrete_type_low_bound): Same as above with the lower bound.
7380 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7382 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7383 range types. Adjust the array handling implementation to
7384 take advantage of this change.
7385 (resolve_dynamic_range): New function, mostly extracted from
7386 resolve_dynamic_bounds.
7387 (resolve_dynamic_array): New function, mostly extracted from
7388 resolve_dynamic_bounds.
7389 (resolve_dynamic_bounds): Delete.
7390 (resolve_dynamic_type): Reimplement. Add handling of
7391 TYPE_CODE_RANGE types.
7393 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7395 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7396 handling of parallel ___XA types.
7398 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7400 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7401 unnecessary second call to static_unwrap_type.
7403 2014-04-27 Hui Zhu <hui@codesourcery.com>
7405 * stack.c (print_frame_info): Call do_gdb_disassembly with
7406 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7408 2014-04-26 Doug Evans <xdje42@gmail.com>
7410 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7412 2014-04-25 Pedro Alves <palves@redhat.com>
7415 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7416 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7417 and newline from built string.
7418 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7419 (linux_ptrace_attach_fail_reason): ... this.
7420 * linux-nat.c (linux_nat_attach): Adjust to use
7421 linux_ptrace_attach_fail_reason.
7423 2014-04-25 Pedro Alves <palves@redhat.com>
7425 * remote.c (struct remote_state): Remove multi_process_aware,
7426 non_stop_aware, cond_tracepoints, cond_breakpoints,
7427 breakpoint_commands, fast_tracepoints, static_tracepoints,
7428 install_in_trace, disconnected_tracing,
7429 enable_disable_tracepoints, string_tracing, and
7430 augmented_libraries_svr4_read fields.
7431 (remote_multi_process_p): Move further below in the file.
7432 (struct packet_config): Add comments.
7433 (update_packet_config): Delete function.
7434 (show_packet_config_cmd): Use packet_config_support.
7435 (add_packet_config_cmd): Use NULL as set callback.
7436 (packet_ok): "set remote foo-packet"-style commands no longer
7437 change config->supported -- adjust.
7438 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7439 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7440 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7441 (PACKET_QNonStop, PACKET_multiprocess_feature)
7442 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7443 (PACKET_DisconnectedTracing_feature)
7444 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7445 (set_remote_protocol_packet_cmd): Delete function.
7446 (packet_config_support, packet_support): New functions.
7447 (set_remote_protocol_Z_packet_cmd): Don't call
7448 update_packet_config.
7449 (remote_query_attached, remote_pass_signals)
7450 (remote_program_signals, remote_threads_info)
7451 (remote_threads_extra_info, remote_start_remote): Use
7453 (remote_start_remote): Use packet_config_support and
7455 (init_all_packet_configs): Set all packets to unknown support,
7456 instead of calling update_packet_config.
7457 (remote_check_symbols): Use packet_support.
7458 (remote_supported_packet): Unconditionally set the packet config's
7460 (remote_multi_process_feature, remote_non_stop_feature)
7461 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7462 (remote_breakpoint_commands_feature)
7463 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7464 (remote_install_in_trace_feature)
7465 (remote_disconnected_tracing_feature)
7466 (remote_enable_disable_tracepoint_feature)
7467 (remote_string_tracing_feature)
7468 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7469 (remote_protocol_features): Adjust to use remote_supported_packet
7470 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7471 "ConditionalTracepoints", "ConditionalBreakpoints",
7472 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7473 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7474 "EnableDisableTracepoints", and "tracenz".
7475 (remote_query_supported): Use packet_support.
7476 (remote_open_1): Adjust.
7477 (extended_remote_attach_1): Use packet_support. Switch on the
7478 result of packet_ok instead of checking whether the packet ended
7480 (remote_vcont_resume): Use packet_support.
7481 (remote_resume, remote_stop_ns, fetch_register_using_p)
7482 (remote_prepare_to_store, store_register_using_P)
7483 (check_binary_download, remote_write_bytes): Use packet_support.
7484 (remote_vkill): Use packet_support. Switch on the result of
7485 packet_ok instead of checking whether the packet ended up
7487 (extended_remote_supports_disable_randomization): Use
7489 (extended_remote_run): Switch on the result of packet_ok instead
7490 of checking whether the packet ended up disabled.
7491 (remote_insert_breakpoint, remote_remove_breakpoint)
7492 (remote_insert_watchpoint, remote_remove_watchpoint)
7493 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7495 (remote_search_memory): Use packet_config_support.
7496 (remote_get_thread_local_address, remote_get_tib_address)
7497 (remote_hostio_send_command, remote_can_execute_reverse): Use
7499 (remote_supports_cond_tracepoints)
7500 (remote_supports_cond_breakpoints)
7501 (remote_supports_fast_tracepoints)
7502 (remote_supports_static_tracepoints)
7503 (remote_supports_install_in_trace)
7504 (remote_supports_enable_disable_tracepoint)
7505 (remote_supports_string_tracing)
7506 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7507 the packet config says the feature is enabled or disabled.
7508 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7509 (remote_get_trace_status): Use packet_support.
7510 (remote_set_disconnected_tracing): Adjust to check whether the
7511 feature is enabled with packet_support.
7512 (remote_set_trace_buffer_size, remote_use_agent)
7513 (remote_can_use_agent, remote_supports_btrace): Use
7515 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7516 Use packet_config_support.
7517 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7518 the packet config says the feature is enabled or disabled.
7519 (set_range_stepping): Use packet_support.
7521 2014-04-25 Tom Tromey <tromey@redhat.com>
7523 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7526 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7528 * NEWS: Mention support for C99 variable length arrays.
7530 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7532 * ada-lang.c (standard_exc): Expand introductory comment.
7534 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7535 Walfred Tedeschi <walfred.tedeschi@intel.com>
7537 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7539 (amd64_linux_read_description): Add code to handle AVX512 xstate
7540 mask and return respective tdesc.
7541 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7542 and features/i386/x32-avx512-linux.c.
7543 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7544 (amd64_linux_core_read_description): Add code to handle AVX512
7545 xstate mask and return respective tdesc.
7546 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7547 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7549 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7550 (tdesc_amd64_avx512_linux): New prototype.
7551 (tdesc_x32_avx512_linux): Likewise.
7552 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7553 features/i386/x32-avx512.c.
7554 (amd64_ymm_avx512_names): New register names for pseudo
7556 (amd64_ymmh_avx512_names): New register names for raw registers
7558 (amd64_k_names): New register names for K registers.
7559 (amd64_zmmh_names): New register names for ZMM raw registers.
7560 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7561 (amd64_xmm_avx512_names): New register names for XMM16-31
7563 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7565 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7566 if feature is present.
7567 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7568 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7569 (AMD64_NUM_REGS): Adjust to new number of registers.
7570 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7571 registers supplied via XSTATE by AVX512 registers.
7572 (i386_linux_read_description): Add case for AVX512.
7573 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7574 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7575 (i386_linux_core_read_description): Add case for AVX512.
7576 (i386_linux_init_abi): Install supported register note section
7578 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7580 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7581 registers to be number of zmm7h + 1.
7582 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7583 * i386-tdep.c: Include features/i386/i386-avx512.c.
7584 (i386_zmm_names): Add ZMM pseudo register names array.
7585 (i386_zmmh_names): Add ZMM raw register names array.
7586 (i386_k_names): Add K raw register names array.
7587 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7588 registers. AVX512 has 16 more ZMM registers than there are YMM
7590 (i386_zmmh_regnum_p): Add function to look up register number of
7592 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7593 (i386_k_regnum_p): Likewise for K raw registers.
7594 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7595 registers added by AVX512.
7596 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7597 registers added by AVX512.
7598 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7600 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7601 (i386_pseudo_register_name): Add ZMM pseudo registers.
7602 (i386_zmm_type): Construct and return vector registers type for ZMM
7604 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7605 ZMM0-31 pseudo registers and K registers.
7606 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7607 and YMM16-31 registers from register cache.
7608 (i386_pseudo_register_write): Add code to write K, ZMM and
7610 (i386_register_reggroup_p): Add code to include/exclude AVX512
7611 registers in/from respective register groups.
7612 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7613 registers if feature is present in xcr0.
7614 (i386_gdbarch_init): Add code to initialize AVX512 feature
7615 variables in tdep structure, wire in pseudo registers and call
7616 initialize_tdesc_i386_avx512.
7617 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7619 (i386_regnum): Add AVX512 registers.
7620 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7621 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7622 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7623 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7625 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7626 (i386_ymm_avx512_regnum_p): Likewise.
7627 (i386_k_regnum_p): Likewise.
7628 (i386_zmm_regnum_p): Likewise.
7629 (i386_zmmh_regnum_p): Likewise.
7630 * i387-tdep.c : Update year in copyright notice.
7631 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7633 (XSAVE_YMM_AVX512_ADDR): New macro.
7634 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7636 (XSAVE_XMM_AVX512_ADDR): New macro.
7637 (xsave_avx512_k_offset): New table for K register offsets in
7639 (XSAVE_AVX512_K_ADDR): New macro.
7640 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7642 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7643 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7645 (i387_collect_xsave): Add code to collect AVX512 registers from
7647 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7648 of XMM16-31 registers.
7649 (I387_NUM_K_REGS): New define for number of K registers.
7650 (I387_K0_REGNUM): New define for K0 register number.
7651 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7652 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7653 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7655 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7656 (I387_XMM16_REGNUM): New define for XMM16 register number.
7657 (I387_YMM0_REGNUM): New define for YMM0 register number.
7658 (I387_KEND_REGNUM): New define for last K register number.
7659 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7660 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7662 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7664 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7666 * features/Makefile: Add AVX512 related files.
7667 * features/i386/32bit-avx512.xml: New file.
7668 * features/i386/64bit-avx512.xml: Likewise.
7669 * features/i386/amd64-avx512-linux.c: Likewise.
7670 * features/i386/amd64-avx512-linux.xml: Likewise.
7671 * features/i386/amd64-avx512.c: Likewise.
7672 * features/i386/amd64-avx512.xml: Likewise.
7673 * features/i386/i386-avx512-linux.c: Likewise.
7674 * features/i386/i386-avx512-linux.xml: Likewise.
7675 * features/i386/i386-avx512.c: Likewise.
7676 * features/i386/i386-avx512.xml: Likewise.
7677 * features/i386/x32-avx512-linux.c: Likewise.
7678 * features/i386/x32-avx512-linux.xml: Likewise.
7679 * features/i386/x32-avx512.c: Likewise.
7680 * features/i386/x32-avx512.xml: Likewise.
7681 * regformats/i386/amd64-avx512-linux.dat: New file.
7682 * regformats/i386/amd64-avx512.dat: Likewise.
7683 * regformats/i386/i386-avx512-linux.dat: Likewise.
7684 * regformats/i386/i386-avx512.dat: Likewise.
7685 * regformats/i386/x32-avx512-linux.dat: Likewise.
7686 * regformats/i386/x32-avx512.dat: Likewise.
7687 * NEWS: Add note about new support for AVX512.
7690 2014-04-23 Pedro Alves <palves@redhat.com>
7692 * breakpoint.c (insert_bp_location): Tolerate errors if the
7693 breakpoint is set in a user-loaded objfile.
7694 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7695 location is marked shlib_disabled. If the breakpoint is set in a
7696 user-loaded objfile is a GDB-side memory breakpoint, validate it
7697 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7698 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7700 * mem-break.c (memory_validate_breakpoint): New function.
7701 * objfiles.c (userloaded_objfile_contains_address_p): New
7703 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7704 * target.h (memory_validate_breakpoint): New declaration.
7706 2014-04-23 Pedro Alves <palves@redhat.com>
7708 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7709 the breakpoint is set in a shared library, only suppress
7710 errors for software breakpoints, not hardware breakpoints.
7712 2014-04-22 Pedro Alves <palves@redhat.com>
7714 * infrun.c (schedlock_applies): New function, factored out from
7715 find_thread_needs_step_over.
7716 (find_thread_needs_step_over): Use it.
7717 (switch_back_to_stepped_thread): Always clear trap_expected if the
7718 step over is finished. Return early if scheduler locking applies.
7719 Look for the stepping thread and a potential step-over thread with
7721 (currently_stepping_or_nexting_callback): Delete.
7723 2014-04-22 Nick Clifton <nickc@redhat.com>
7725 * NEWS: Mention that ARM sim now supports tracing.
7727 2014-04-22 Yao Qi <yao@codesourcery.com>
7729 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7731 * tracefile.c (tracefile_fetch_registers): ... it. New
7733 * tracefile.h (tracefile_fetch_registers): Declare.
7734 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7735 tracefile_fetch_registers.
7737 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7740 * windows-nat.c (thread_rec): Don't display a warning when
7741 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7742 fails for any reason, set th->suspended to -1, so that we don't
7743 try to resume such a thread. Also, don't return NULL in these
7744 cases, to avoid completely ruin the session due to "PC register is
7745 not available" error.
7746 (do_windows_fetch_inferior_registers): Check errors in
7747 GetThreadContext call.
7748 (windows_continue): Accept an additional argument KILLED; if not
7749 zero, ignore errors in the SetThreadContext call, since the
7750 inferior was killed and is shutting down.
7751 (windows_resume, get_windows_debug_event)
7752 (windows_create_inferior, windows_mourn_inferior)
7753 (windows_kill_inferior): All callers of windows_continue changed
7754 to adjust to its new calling sequence.
7756 2014-04-19 Yao Qi <yao@codesourcery.com>
7758 * ctf.c (ctf_open): Call post_create_inferior.
7760 2014-04-19 Yao Qi <yao@codesourcery.com>
7762 * ctf.c (handle_id): New static variable.
7763 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7764 value. Get the declaration of event "register" and get length
7765 of field "contents".
7767 2014-04-19 Yao Qi <yao@codesourcery.com>
7769 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7771 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7773 * valops.c (oload_method_static): Remove unnecessary argument
7774 METHOD. Update all callers.
7776 2014-04-18 Pedro alves <palves@redhat.com>
7777 Tom Tromey <tromey@redhat.com>
7780 * frame.c (get_prev_frame_1): Rename to ...
7781 (get_prev_frame_always): ... this, and make extern. Adjust.
7782 (skip_artificial_frames): Use get_prev_frame_always.
7783 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7784 (get_frame_unwind_stop_reason): Adjust to rename.
7785 * frame.h (get_prev_frame_always): Declare.
7786 * inline-frame.c: Include frame.h.
7787 (inline_frame_this_id): Use get_prev_frame_always.
7789 2014-04-18 Tristan Gingold <gingold@adacore.com>
7791 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7792 code by using bfd_mach_o_get_base_address.
7794 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7796 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7797 (spu_ax_pseudo_register_collect): New function.
7798 (spu_ax_pseudo_register_push_stack): Likewise.
7799 (spu_dwarf_reg_to_regnum): Likewise.
7800 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7802 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7804 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7805 Replace FRAME argument with FRAME_ID.
7806 * gdbarch.c, gdbarch.h: Regenerate.
7807 * findvar.c (default_value_from_register): Add GDBARCH argument;
7808 replace FRAME by FRAME_ID. No longer call get_frame_id.
7809 (value_from_register): Update call to gdbarch_value_from_register.
7810 * value.h (default_value_from_register): Update prototype.
7811 * s390-linux-tdep.c (s390_value_from_register): Update interface
7812 and call to default_value_from_register.
7813 * spu-tdep.c (spu_value_from_register): Likewise.
7815 * findvar.c (address_from_register): Remove TYPE argument.
7816 Do not call value_from_register; use gdbarch_value_from_register
7817 with null_frame_id instead.
7818 * value.h (address_from_register): Update prototype.
7819 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7820 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7821 address_from_register interface change.
7823 2014-04-17 Yao Qi <yao@codesourcery.com>
7825 * gdbtypes.h: Update comments to link to types and macros'
7828 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7830 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7832 2014-04-16 Keith Seitz <keiths@redhat.com>
7835 * dwarf2read.c (skip_one_die): Check that all relative-offset
7836 sibling DIEs fall within range of the current reader's buffer.
7837 (read_partial_die): Likewise.
7839 2014-04-16 Keith Seitz <keiths@redhat.com>
7842 * cp-namespace.c (lookup_symbol_file): If the type name of
7843 `this' is NULL, return immediately.
7845 2014-04-14 Keith Seitz <keiths@redhat.com>
7848 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7849 from symbol_matches_domain in symtab.c. All local callers
7850 of symbol_matches_domain updated.
7851 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7852 search STRUCT_DOMAIN.
7853 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7854 independently. standard_lookup will do that automatically.
7855 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7856 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7857 (cp_lookup_symbol_in_namespace): Likewise.
7858 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7859 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7860 may return a STRUCT_DOMAIN match.
7861 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7862 * cp-support.c: Include language.h.
7863 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7865 * psymtab.c (match_partial_symbol): Compare the requested
7866 domain with the symbol's domain directly.
7867 (lookup_partial_symbol): Likewise.
7868 * symtab.c (lookup_symbol_in_language): Explain when/why
7869 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7870 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7871 appropriate languages.
7872 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7873 and moved to ada-lang.c
7874 (lookup_block_symbol): Explain that this function only returns
7875 symbol matching the requested DOMAIN.
7876 Compare the requested domain with the symbol's domain directly.
7877 (iterate_over_symbols): Compare the requested domain with the
7878 symbol's domain directly.
7879 * symtab.h (symbol_matches_domain): Remove.
7881 2014-04-14 Tom Tromey <tromey@redhat.com>
7884 * c-exp.y (type_aggregate_p): New function.
7885 (qualified_name, classify_inner_name): Use it.
7886 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7887 and TYPE_TARGET_TYPE of an enum type.
7888 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7890 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7891 handle TYPE_DECLARED_CLASS.
7892 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7894 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7895 * valops.c (enum_constant_from_type): New function.
7896 (value_aggregate_elt): Use it.
7897 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7900 2014-04-14 Tom Tromey <tromey@redhat.com>
7902 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7903 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7905 * value.h (value_aggregate_elt): Update.
7907 2014-04-14 Tom Tromey <tromey@redhat.com>
7909 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7911 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7913 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7914 (evaluate_subexp_standard): Pass noside argument.
7915 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7916 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7917 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7918 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7919 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7921 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7923 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7924 points to a constant blob.
7926 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7928 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7929 property and store it as the high bound and flag the range accordingly.
7930 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7931 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7932 * gdbtypes.h (enum range_flags): New enum.
7933 (struct range_bounds): Add flags member.
7935 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7937 * c-typeprint.c (c_type_print_varspec_suffix): Added
7938 check for not yet resolved high bound. If unresolved, print
7939 "variable length" string to the console instead of random
7942 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7944 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7946 (ada_template_to_fixed_record_type_1): Likewise.
7947 (ada_to_fixed_type_1): Likewise.
7948 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7949 (cp_print_value): Likewise.
7950 * d-valprint.c (dynamic_array_type): Likewise.
7951 * findvar.c (address_of_variable): Likewise.
7952 * jv-valprint.c (java_value_print): Likewise.
7953 * valops.c (value_ind): Likewise.
7954 * value.c (coerce_ref): Likewise.
7956 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7958 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7959 value and retrieve the dynamic type size.
7961 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7963 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7964 passed to sizeof is dynamic evaluate the argument to compute the length.
7966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7967 Joel Brobecker <brobecker@adacore.com>
7969 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7970 (dwarf2_evaluate_property): New function.
7971 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7972 * dwarf2read.c (attr_to_dynamic_prop): New function.
7973 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7975 * gdbtypes.c: Include dwarf2loc.h.
7976 (is_dynamic_type): New function.
7977 (resolve_dynamic_type): New function.
7978 (resolve_dynamic_bounds): New function.
7979 (get_type_length): New function.
7980 (check_typedef): Use get_type_length to compute type length.
7981 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7982 (TYPE_LOW_BOUND_KIND): New macro.
7983 (is_dynamic_type): New function prototype.
7984 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7985 to resolve dynamic properties of the type. Update comment.
7986 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7988 2014-04-14 Richard Henderson <rth@redhat.com>
7990 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7992 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7993 Doug Evans <xdje42@gmail.com>
7995 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7996 dereference TYPE_CODE_REF values.
7998 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8000 Revert the following changes due to regressions:
8002 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8003 (dwarf2_evaluate_property): New function.
8004 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8005 * dwarf2read.c (attr_to_dynamic_prop): New function.
8006 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8008 * gdbtypes.c: Include dwarf2loc.h.
8009 (is_dynamic_type): New function.
8010 (resolve_dynamic_type): New function.
8011 (resolve_dynamic_bounds): New function.
8012 (get_type_length): New function.
8013 (check_typedef): Use get_type_length to compute type length.
8014 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8015 (TYPE_LOW_BOUND_KIND): New macro.
8016 (is_dynamic_type): New function prototype.
8017 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8018 to resolve dynamic properties of the type. Update comment.
8019 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8021 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8022 passed to sizeof is dynamic evaluate the argument to compute the length.
8024 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8025 value and retrieve the dynamic type size.
8027 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8028 (ada_template_to_fixed_record_type_1): Likewise.
8029 (ada_to_fixed_type_1): Likewise.
8030 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8031 (cp_print_value): Likewise.
8032 * d-valprint.c (dynamic_array_type): Likewise.
8033 * eval.c (evaluate_subexp_with_coercion): Likewise.
8034 * findvar.c (address_of_variable): Likewise.
8035 * jv-valprint.c (java_value_print): Likewise.
8036 * valops.c (value_ind): Likewise.
8037 * value.c (coerce_ref): Likewise.
8039 * c-typeprint.c (c_type_print_varspec_suffix): Added
8040 check for not yet resolved high bound. If unresolved, print
8041 "variable length" string to the console instead of random
8044 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8045 property and store it as the high bound and flag the range accordingly.
8046 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8047 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8048 * gdbtypes.h (enum range_flags): New enum.
8049 (struct range_bounds): Add flags member.
8051 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8052 points to a constant blob.
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 Keith Seitz <keiths@redhat.com>
8065 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8066 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8069 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8071 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8072 (evaluate_subexp_standard): Pass noside argument.
8073 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8074 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8075 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8076 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8077 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8079 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8081 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8082 points to a constant blob.
8084 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8086 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8087 property and store it as the high bound and flag the range accordingly.
8088 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8089 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8090 * gdbtypes.h (enum range_flags): New enum.
8091 (struct range_bounds): Add flags member.
8093 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8095 * c-typeprint.c (c_type_print_varspec_suffix): Added
8096 check for not yet resolved high bound. If unresolved, print
8097 "variable length" string to the console instead of random
8100 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8102 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8103 (ada_template_to_fixed_record_type_1): Likewise.
8104 (ada_to_fixed_type_1): Likewise.
8105 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8106 (cp_print_value): Likewise.
8107 * d-valprint.c (dynamic_array_type): Likewise.
8108 * eval.c (evaluate_subexp_with_coercion): Likewise.
8109 * findvar.c (address_of_variable): Likewise.
8110 * jv-valprint.c (java_value_print): Likewise.
8111 * valops.c (value_ind): Likewise.
8112 * value.c (coerce_ref): Likewise.
8114 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8116 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8117 value and retrieve the dynamic type size.
8119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8121 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8122 passed to sizeof is dynamic evaluate the argument to compute the length.
8124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8126 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8127 (dwarf2_evaluate_property): New function.
8128 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8129 * dwarf2read.c (attr_to_dynamic_prop): New function.
8130 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8132 * gdbtypes.c: Include dwarf2loc.h.
8133 (is_dynamic_type): New function.
8134 (resolve_dynamic_type): New function.
8135 (resolve_dynamic_bounds): New function.
8136 (get_type_length): New function.
8137 (check_typedef): Use get_type_length to compute type length.
8138 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8139 (TYPE_LOW_BOUND_KIND): New macro.
8140 (is_dynamic_type): New function prototype.
8141 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8142 to resolve dynamic properties of the type. Update comment.
8143 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8145 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8147 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8148 declaring high/low bounds and change uses accordingly. Call
8149 create_range_type instead of create_static_range_type.
8150 * gdbtypes.c (create_range_type): New function.
8151 (create_range_type): Convert bounds into struct bound_prop and pass
8152 them to create_range_type.
8153 * gdbtypes.h (struct bound_prop): New struct.
8154 (create_range_type): New function prototype.
8155 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8156 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8157 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8159 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8161 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8163 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8164 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8165 * ada-lang.c: All uses of create_range_type updated.
8166 * coffread.c: All uses of create_range_type updated.
8167 * dwarf2read.c: All uses of create_range_type updated.
8168 * f-exp.y: All uses of create_range_type updated.
8169 * m2-valprint.c: All uses of create_range_type updated.
8170 * mdebugread.c: All uses of create_range_type updated.
8171 * stabsread.c: All uses of create_range_type updated.
8172 * valops.c: All uses of create_range_type updated.
8173 * valprint.c: All uses of create_range_type updated.
8175 2014-04-10 Pedro Alves <palves@redhat.com>
8177 * breakpoint.c (single_step_breakpoints)
8178 (single_step_gdbarch): Move up in the file.
8179 (one_breakpoint_xfer_memory): New function, factored out from ...
8180 (breakpoint_xfer_memory): ... here. Also process single-step
8183 2014-04-09 Tristan Gingold <gingold@adacore.com>
8185 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8187 (darwin_decode_exception_message): Free port only after use.
8189 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8191 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8192 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8193 when setting the size of call_length.
8195 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8197 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8198 dereference TYPE_CODE_REF values.
8200 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8202 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8203 end of warning message.
8205 2014-04-03 Doug Evans <dje@google.com>
8207 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8208 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8210 2014-04-02 Alan Modra <amodra@gmail.com>
8212 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8213 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8214 (struct symbol_file_add_from_memory_args): Add size field.
8215 (find_vdso_size): New function.
8216 (add_vsyscall_page): Attempt to find vdso size.
8218 2014-04-01 Doug Evans <dje@google.com>
8220 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8222 2014-04-01 Tristan Gingold <gingold@adacore.com>
8224 * darwin-nat.c (darwin_encode_reply): Add prototype.
8225 (darwin_decode_exception_message): Reply to unknown inferiors.
8226 (darwin_decode_message): Handle message by id. Ignore message
8227 to unknown inferior.
8228 (darwin_wait): Discard unknown messages, add debug trace.
8230 2014-03-31 Doug Evans <dje@google.com>
8232 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8235 2014-03-31 Doug Evans <dje@google.com>
8237 New option "set print symbol-loading".
8239 * solib.c (solib_read_symbols): Only print symbol loading messages
8241 (solib_add): If symbol loading is in "brief" mode, notify user
8242 symbols are being loaded.
8243 (reload_shared_libraries_1): Ditto.
8244 * symfile.c (print_symbol_loading_off): New static global.
8245 (print_symbol_loading_brief): New static global.
8246 (print_symbol_loading_full): New static global.
8247 (print_symbol_loading_enums): New static global.
8248 (print_symbol_loading): New static global.
8249 (print_symbol_loading_p): New function.
8250 (symbol_file_add_with_addrs): Only print symbol loading messages
8252 (_initialize_symfile): Register "print symbol-loading" set/show
8254 * symfile.h (print_symbol_loading_p): Declare.
8256 2014-03-30 Doug Evans <xdje42@gmail.com>
8258 * infrun.c (set_last_target_status): New function.
8259 (handle_inferior_event): Call it.
8261 2014-03-30 Doug Evans <xdje42@gmail.com>
8263 * inferior.h (enum stop_kind): Improve comment.
8265 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8267 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8268 a reference, strip the reference layer before calling
8269 the lang_ops value_has_mutated callback.
8271 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8273 Remove some globals from our parser.
8274 * language.c (unk_lang_parser): Add "struct parser_state"
8276 * language.h (struct language_defn) <la_parser>: Likewise.
8277 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8278 (initialize_expout): Add "struct parser_state" argument.
8279 Rewrite function to use the parser state.
8280 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8281 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8282 write_exp_elt_longcst, write_exp_elt_dblcst,
8283 write_exp_elt_decfloatcst, write_exp_elt_type,
8284 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8285 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8286 write_dollar_variable): Likewise.
8287 (parse_exp_in_context_1): Use parser state.
8288 (insert_type_address_space): Add "struct parser_state" argument.
8290 (increase_expout_size): New function.
8291 * parser-defs.h: Forward declare "struct language_defn" and
8292 "struct parser_state".
8293 (expout, expout_size, expout_ptr): Remove extern declarations.
8294 (parse_gdbarch, parse_language): Rewrite macro declarations to
8295 accept the parser state.
8296 (struct parser_state): New struct.
8297 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8298 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8299 write_exp_elt_decfloatcst, write_exp_elt_type,
8300 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8301 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8302 write_exp_msymbol, write_dollar_variable,
8303 mark_struct_expression, insert_type_address_space): Add "struct
8304 parser_state" argument.
8305 (increase_expout_size): New function.
8306 * utils.c (do_clear_parser_state): New function.
8307 (make_cleanup_clear_parser_state): Likewise.
8308 * utils.h (make_cleanup_clear_parser_state): New function
8310 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8311 Update calls to write_exp* in order to pass the parser state.
8312 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8313 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8314 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8315 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8316 * stap-probe.c (stap_parse_register_operand): Likewise.
8317 (stap_parse_single_operand): Likewise.
8318 (stap_parse_argument_1): Likewise.
8319 (stap_parse_argument): Use parser state.
8320 * stap-probe.h: Include "parser-defs.h".
8321 (struct stap_parse_info) <pstate>: New field.
8322 * c-exp.y (parse_type): Rewrite to use parser state.
8323 (yyparse): Redefine to c_parse_internal.
8324 (pstate): New global variable.
8325 (parse_number): Add "struct parser_state" argument.
8326 (write_destructor_name): Likewise.
8327 (type_exp): Update calls to write_exp* and similars in order to
8329 (exp1, exp, variable, qualified_name, space_identifier,
8330 typename, typebase): Likewise.
8331 (write_destructor_name, parse_number, lex_one_token,
8332 classify_name, classify_inner_name, c_parse): Add "struct
8333 parser_state" argument. Update function to use parser state.
8334 * c-lang.h: Forward declare "struct parser_state".
8335 (c_parse): Add "struct parser_state" argument.
8336 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8337 (yyparse): Redefine macro to ada_parse_internal.
8338 (pstate): New variable.
8339 (write_int, write_object_renaming, write_var_or_type,
8340 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8341 type_int, type_long, type_long_long, type_float, type_double,
8342 type_long_double, type_char, type_boolean, type_system_address):
8343 Add "struct parser_state" argument.
8344 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8345 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8346 var_or_type, aggregate, aggregate_component_list,
8347 positional_list, others, component_group,
8348 component_associations): Update calls to write_exp* and similar
8349 functions in order to use parser state.
8350 (ada_parse, write_var_from_sym, write_int,
8351 write_exp_op_with_string, write_object_renaming,
8352 find_primitive_type, write_selectors, write_ambiguous_var,
8353 write_var_or_type, write_name_assoc, type_int, type_long,
8354 type_long_long, type_float, type_double, type_long_double,
8355 type_char, type_boolean, type_system_address): Add "struct
8356 parser_state" argument. Adjust function to use parser state.
8357 * ada-lang.c (parse): Likewise.
8358 * ada-lang.h: Forward declare "struct parser_state".
8359 (ada_parse): Add "struct parser_state" argument.
8360 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8361 calls to both functions.
8362 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8364 (yyparse): Redefine macro to f_parse_internal.
8365 (pstate): New variable.
8366 (parse_number): Add "struct parser_state" argument.
8367 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8368 and similars in order to use parser state.
8369 (parse_number): Adjust code to use parser state.
8371 (f_parse): New function.
8372 * f-lang.h: Forward declare "struct parser_state".
8373 (f_parse): Add "struct parser_state" argument.
8374 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8376 (yyparse): Redefine macro for java_parse_internal.
8377 (pstate): New variable.
8378 (push_expression_name, push_expression_name, insert_exp): Add
8379 "struct parser_state" argument.
8380 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8381 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8382 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8383 PostIncrementExpression, PostDecrementExpression,
8384 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8385 UnaryExpressionNotPlusMinus, CastExpression,
8386 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8387 RelationalExpression, EqualityExpression, AndExpression,
8388 ExclusiveOrExpression, InclusiveOrExpression,
8389 ConditionalAndExpression, ConditionalOrExpression,
8390 ConditionalExpression, Assignment, LeftHandSide): Update
8391 calls to write_exp* and similars in order to use parser state.
8392 (parse_number): Ajust code to use parser state.
8394 (java_parse): New function.
8395 (push_variable): Add "struct parser_state" argument. Adjust
8396 code to user parser state.
8397 (push_fieldnames, push_qualified_expression_name,
8398 push_expression_name, insert_exp): Likewise.
8399 * jv-lang.h: Forward declare "struct parser_state".
8400 (java_parse): Add "struct parser_state" argument.
8401 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8403 (yyparse): Redefine macro to m2_parse_internal.
8404 (pstate): New variable.
8405 (type_exp, exp, fblock, variable, type): Update calls to
8406 write_exp* and similars to use parser state.
8408 (m2_parse): New function.
8409 * m2-lang.h: Forward declare "struct parser_state".
8410 (m2_parse): Add "struct parser_state" argument.
8411 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8412 * objc-lang.h: Forward declare "struct parser_state".
8413 (end_msglist): Add "struct parser_state" argument.
8414 * p-exp.y (parse_type): Rewrite macro to use parser state.
8415 (yyparse): Redefine macro to pascal_parse_internal.
8416 (pstate): New variable.
8417 (parse_number): Add "struct parser_state" argument.
8418 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8419 write_exp* and similars in order to use parser state.
8420 (parse_number, yylex): Adjust code to use parser state.
8421 (pascal_parse): New function.
8422 * p-lang.h: Forward declare "struct parser_state".
8423 (pascal_parse): Add "struct parser_state" argument.
8424 * go-exp.y (parse_type): Rewrite macro to use parser state.
8425 (yyparse): Redefine macro to go_parse_internal.
8426 (pstate): New variable.
8427 (parse_number): Add "struct parser_state" argument.
8428 (type_exp, exp1, exp, variable, type): Update calls to
8429 write_exp* and similars in order to use parser state.
8430 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8431 to use parser state.
8432 (go_parse): Likewise.
8433 * go-lang.h: Forward declare "struct parser_state".
8434 (go_parse): Add "struct parser_state" argument.
8436 2014-03-27 Doug Evans <dje@google.com>
8438 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8440 2014-03-27 Doug Evans <dje@google.com>
8442 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8443 Remove argument abbrev_section. All callers updated.
8445 2014-03-27 Doug Evans <dje@google.com>
8447 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8448 addr_base, ranges_base.
8450 2014-03-26 Keith Seitz <keiths@redhat.com>
8452 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8453 types, not VAR_DOMAIN.
8455 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8457 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8459 * features/nios2-linux.c: Regenerated.
8460 * features/nios2.c: Regenerated.
8462 2014-03-25 Pedro Alves <palves@redhat.com>
8464 * cli/cli-script.c (script_from_file): Force the interpreter to
8467 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8469 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8470 small stack allocation.
8472 2014-03-24 Tristan Gingold <gingold@adacore.com>
8474 * darwin-nat.c (exc_server): Remove unused prototype.
8475 (darwin_dump_message): Correctly display data on x86_64.
8476 (darwin_encode_reply): Fix style.
8477 Add comments and fix indentation.
8479 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8481 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8483 2014-03-22 Doug Evans <xdje42@gmail.com>
8485 * infcmd.c: Whitespace fixes.
8486 (interrupt_command): Merge two function comments into one.
8488 2014-03-22 Doug Evans <xdje42@gmail.com>
8490 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8493 2014-03-22 Yao Qi <yao@codesourcery.com>
8495 * remote.c (target_read_live_memory): Remove.
8496 (memory_xfer_live_readonly_partial): Rename it to
8497 remote_xfer_live_readonly_partial. Remove argument 'object'.
8498 All callers updated. Call remote_read_bytes_1
8499 instead of target_read_live_memory.
8500 * tracepoint.c (set_traceframe_number): Remove.
8501 (make_cleanup_restore_traceframe_number): Likewise .
8502 * tracepoint.h (set_traceframe_number): Remove declaration.
8503 (make_cleanup_restore_traceframe_number): Likewise.
8505 2014-03-22 Yao Qi <yao@codesourcery.com>
8507 * remote.c (remote_read_bytes): Move code on reading from the
8509 (remote_read_bytes_1): ... here. New function.
8511 2014-03-22 Yao Qi <yao@codesourcery.com>
8513 * ctf.c (ctf_xfer_partial): Check the return value of
8514 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8515 return TARGET_XFER_UNAVAILABLE.
8516 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8517 * target.c (target_read_live_memory): Move it to remote.c.
8518 (memory_xfer_live_readonly_partial): Likewise.
8519 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8520 * remote.c (target_read_live_memory): Moved from target.c.
8521 (memory_xfer_live_readonly_partial): Likewise.
8522 (remote_read_bytes): Factored out from
8523 memory_xfer_partial_1.
8525 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8527 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8530 2014-03-21 Pedro Alves <palves@redhat.com>
8532 * infrun.c (normal_stop): Extend comment.
8534 2014-03-21 Hui Zhu <hui@codesourcery.com>
8535 Pedro Alves <palves@redhat.com>
8537 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8539 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8540 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8541 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8543 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8545 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8546 `z' formatted output modifier.
8548 2014-03-20 Tom Tromey <tromey@redhat.com>
8549 Sergio Durigan Junior <sergiodj@redhat.com>
8551 * probe.c (parse_probes): Turn assert into an ordinary error.
8552 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8553 exceptions when parsing probes. Rearrange the code for clarity.
8555 2014-03-20 Tom Tromey <tromey@redhat.com>
8558 * top.c (execute_command): Only dispatch events if the command
8561 2014-03-20 Tom Tromey <tromey@redhat.com>
8564 * infcall.c: Include event-top.h.
8565 (run_inferior_call): Call async_disable_stdin if needed.
8567 2014-03-20 Pedro Alves <palves@redhat.com>
8569 * infrun.c (prepare_to_proceed): Delete.
8570 (thread_still_needs_step_over): New function.
8571 (find_thread_needs_step_over): New function.
8572 (proceed): If the current thread needs a step-over, set its
8573 steping_over_breakpoint flag. Adjust to use
8574 find_thread_needs_step_over instead of prepare_to_proceed.
8575 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8576 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8578 (switch_back_to_stepped_thread): Step over breakpoints of all
8579 threads not the stepping thread, before switching back to the
8582 2014-03-20 Pedro Alves <palves@redhat.com>
8584 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8586 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8587 * infrun.c (saved_singlestep_ptid)
8588 (stepping_past_singlestep_breakpoint): Delete.
8589 (resume): Remove stepping_past_singlestep_breakpoint handling.
8590 (proceed): Store the prev_pc of the stepping thread too.
8591 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8593 (enum infwait_states): Delete infwait_thread_hop_state.
8594 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8596 (handle_inferior_event): Adjust.
8597 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8598 handling and the thread-hop code. Before removing single-step
8599 breakpoints, check whether the thread hit a single-step breakpoint
8600 of another thread. If it did, the trap is not a random signal.
8601 (switch_back_to_stepped_thread): If the event thread hit a
8602 single-step breakpoint, unblock it before switching to the
8603 stepping thread. Handle the case of the stepped thread having
8605 (keep_going): Handle the case of the current thread moving past a
8606 single-step breakpoint.
8608 2014-03-20 Pedro Alves <palves@redhat.com>
8611 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8612 are being stepped over.
8613 (breakpoint_address_match): Make extern.
8614 * breakpoint.h (breakpoint_address_match): New declaration.
8615 * inferior.h (stepping_past_instruction_at): New declaration.
8616 * infrun.c (struct step_over_info): New type.
8617 (step_over_info): New global.
8618 (set_step_over_info, clear_step_over_info)
8619 (stepping_past_instruction_at): New functions.
8620 (handle_inferior_event): Clear the step-over info when
8621 trap_expected is cleared.
8622 (resume): Remove now stale comment.
8623 (clear_proceed_status): Clear step-over info.
8624 (proceed): Adjust step-over handling to set or clear the step-over
8625 info instead of removing all breakpoints.
8626 (handle_signal_stop): When setting up a thread-hop, don't remove
8628 (stop_stepping): Clear step-over info.
8629 (keep_going): Adjust step-over handling to set or clear step-over
8630 info and then always inserting breakpoints, instead of removing
8631 all breakpoints when stepping over one.
8633 2014-03-20 Pedro Alves <palves@redhat.com>
8635 * infrun.c (previous_inferior_ptid): Adjust comment.
8636 (deferred_step_ptid): Delete.
8637 (infrun_thread_ptid_changed, prepare_to_proceed)
8638 (init_wait_for_inferior): Adjust.
8639 (handle_signal_stop): Delete deferred_step_ptid handling.
8641 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8644 * defs.h (sync_quit_force_run): New declaration.
8645 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8646 * event-top.c (async_sigterm_handler): New declaration.
8647 (async_sigterm_token): New variable.
8648 (async_init_signals): Create also async_sigterm_token.
8649 (async_sigterm_handler): New function.
8650 (sync_quit_force_run): New variable.
8651 (handle_sigterm): Replace quit_force call by other calls.
8652 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8654 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8656 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8657 offset into SPE pseudo registers.
8659 2014-03-18 Pedro Alves <palves@redhat.com>
8662 * inferior.h (print_stop_event): Declare.
8663 * infrun.c (print_stop_event): New, factored out from ...
8664 (normal_stop): ... this.
8665 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8666 of bpstat_print/print_stack_frame.
8668 2014-03-17 Tom Tromey <tromey@redhat.com>
8670 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8672 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8674 * ada-lang.c (decode_constrained_packed_array): Perform a
8675 minimal coercion for reference with coerce_ref instead of
8678 2014-03-17 Tristan Gingold <gingold@adacore.com>
8680 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8681 (darwin_solib_create_inferior_hook): Emit a warning if version
8684 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8686 * python/py-value.c (get_field_flag): Cast flag_name argument to
8687 PyObject_GetAttrString to support Python 2.4.
8689 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8691 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8692 (Global Maintainers): Remove Jan Kratochvil.
8694 2014-03-14 Pedro Alves <palves@redhat.com>
8696 * inferior.h (terminal_ours_for_output): Rename to ...
8697 (child_terminal_ours_for_output): ... this.
8698 (terminal_save_ours): Rename to ...
8699 (child_terminal_save_ours): ... this.
8700 (terminal_ours): Rename to ...
8701 (child_terminal_ours): ... this.
8702 (terminal_inferior): Rename to ...
8703 (child_terminal_inferior): ... this.
8704 (terminal_init_inferior): Rename to ...
8705 (child_terminal_init_inferior): ... this.
8706 (terminal_init_inferior_with_pgrp): Rename to ...
8707 (child_terminal_init_inferior_with_pgrp): ... this.
8708 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8709 (child_terminal_init_with_pgrp): ... this.
8710 (terminal_save_ours): Rename to ...
8711 (child_terminal_save_ours): ... this.
8712 (terminal_init_inferior): Rename to ...
8713 (child_terminal_init): ... this. Adjust.
8714 (terminal_inferior): Rename to ...
8715 (child_terminal_inferior): ... this.
8716 (terminal_ours_for_output): Rename to ...
8717 (child_terminal_ours_for_output): ... this. Adjust.
8718 (terminal_ours): Rename to ...
8719 (child_terminal_ours): ... this.
8720 (terminal_ours_1): Rename to ...
8721 (child_terminal_ours_1): ... this. Adjust.
8722 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8723 * windows-nat.c (do_initial_windows_stuff): Adjust.
8724 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8725 (gnu_terminal_init): ... this. Adjust.
8726 (gnu_target): Adjust.
8727 * inf-child.c (inf_child_target): Adjust.
8729 2014-03-13 Doug Evans <xdje42@gmail.com>
8732 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8735 2014-03-13 Doug Evans <xdje42@gmail.com>
8737 * value.c (record_latest_value): Call release_value_or_incref
8738 instead of release_value.
8740 2014-03-13 Pedro Alves <palves@redhat.com>
8742 * procfs.c (procfs_target): Don't override to_shortname,
8743 to_longname or to_doc.
8745 2014-03-13 Pedro Alves <palves@redhat.com>
8747 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8748 Unix in user visible strings.
8750 2014-03-12 Stan Shebs <stan@codesourcery.com>
8752 * gdbtypes.h: Annotate comments for Doxygen, add a page
8753 block comment with some general info.
8755 2014-03-12 Pedro Alves <palves@redhat.com>
8757 * infcmd.c (prepare_execution_command): New function, factored out
8758 from several execution commands.
8759 (run_command_1, continue_command, step_1, jump_command)
8760 (signal_command, until_command, advance_command, finish_command)
8761 (attach_command): Use prepare_execution_command.
8763 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8765 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8768 (struct arm_linux_thread_points): Removed.
8769 (struct arm_linux_process_info): New.
8770 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8771 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8772 (arm_linux_find_breakpoints_by_tid): Removed.
8773 (struct arch_lwp_info): New.
8774 (arm_linux_find_process_pid): New functions.
8775 (arm_linux_add_process): New functions.
8776 (arm_linux_process_info_get): New functions.
8777 (arm_linux_forget_process): New function.
8778 (arm_linux_get_debug_reg_state): New function.
8779 (struct update_registers_data): New.
8780 (update_registers_callback): New function.
8781 (arm_linux_insert_hw_breakpoint1): Updated.
8782 (arm_linux_remove_hw_breakpoint1): Updated.
8783 (arm_linux_insert_hw_breakpoint): Updated.
8784 (arm_linux_remove_hw_breakpoint): Updated.
8785 (arm_linux_insert_watchpoint): Updated.
8786 (arm_linux_remove_watchpoint): Updated.
8787 (arm_linux_new_thread): Updated.
8788 (arm_linux_prepare_to_resume): New function.
8789 (arm_linux_new_fork): New function.
8790 (_initialize_arm_linux_nat): Updated.
8792 2014-03-12 Pedro Alves <palves@redhat.com>
8794 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8796 2014-03-12 Tom Tromey <tromey@redhat.com>
8798 * inf-child.c (return_zero): New function.
8799 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8800 * aix-thread.c (aix_thread_inferior_created): New function.
8801 (aix_thread_attach): Remove.
8802 (init_aix_thread_ops): Don't set to_attach.
8803 (_initialize_aix_thread): Register inferior_created observer.
8804 * corelow.c (init_core_ops): Don't set to_attach or
8806 * exec.c (init_exec_ops): Don't set to_attach or
8808 * infcmd.c (run_command_1): Use find_run_target. Make direct
8810 (attach_command): Use find_attach_target. Make direct target
8812 * record-btrace.c (init_record_btrace_ops): Don't set
8814 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8816 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8817 set to_create_inferior.
8818 * target.c (complete_target_initialization): Add assertion.
8819 (target_create_inferior): Remove.
8820 (find_default_attach, find_default_create_inferior): Remove.
8821 (find_attach_target, find_run_target): New functions.
8822 (find_default_is_async_p, find_default_can_async_p)
8823 (target_supports_non_stop, target_attach): Remove.
8824 (init_dummy_target): Don't set to_create_inferior or
8825 to_supports_non_stop.
8826 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8827 TARGET_DEFAULT_FUNC.
8828 <to_create_inferior>: Add comment.
8829 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8830 TARGET_DEFAULT_RETURN.
8831 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8832 (find_attach_target, find_run_target): Declare.
8833 (target_create_inferior): Remove.
8834 (target_has_execution_1): Update comment.
8835 (target_supports_non_stop): Remove.
8836 * target-delegates.c: Rebuild.
8838 2014-03-12 Pedro Alves <palves@redhat.com>
8840 * inf-child.h: Update comment to not mention Unix.
8842 2014-03-12 Pedro Alves <palves@redhat.com>
8844 * inf-child.c: Update top comment to not mention Unix. Add
8845 generic comment describing how this target is meant to be used.
8846 (inf_child_post_attach, inf_child_post_startup_inferior)
8847 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8850 2014-03-12 Pedro Alves <palves@redhat.com>
8852 * nto-procfs.c: Include inf-child.h.
8853 (procfs_ops): Delete global.
8854 (procfs_can_run): Delete method.
8855 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8856 target pointer instead of referencing procfs_ops.
8857 (procfs_prepare_to_store): Delete.
8858 (init_procfs_ops): Delete function.
8859 (procfs_target): New function, based on init_procfs_ops, but
8860 inherit inf_child_target.
8861 (_initialize_procfs): Use procfs_target.
8863 2014-03-12 Pedro Alves <palves@redhat.com>
8865 * windows-nat.c: Include inf-child.h.
8866 (windows_ops): Delete global.
8867 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8869 (init_windows_ops): Delete function.
8870 (windows_target): New function, based on init_windows_ops, but
8871 inherit inf_child_target.
8872 (_initialize_windows_nat): Use windows_target. Install x86
8873 specific target methods here.
8875 2014-03-10 Doug Evans <xdje42@gmail.com>
8877 * guile/guile.c (call_initialize_gdb_module): New function.
8878 (initialize_guile): Replace call to scm_init_guile with call to
8881 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8883 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8884 in call to TYPE_CODE macro.
8886 2014-03-10 Jerome Guitton <guitton@adacore.com>
8888 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8889 Resolve tagged types to full view.
8891 2014-03-10 Hui Zhu <hui@codesourcery.com>
8893 * target.h (target_insert_breakpoint): Remove "hardware" from its
8896 2014-03-07 Doug Evans <dje@google.com>
8898 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8900 2014-03-07 Doug Evans <dje@google.com>
8902 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8903 Remove unused local comp_dir_attr. Assert exactly one of
8904 stub_comp_unit_die, stub_comp_dir is non-NULL.
8906 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8908 * target.h (complete_target_initialization, add_target):
8911 2014-03-07 Pedro Alves <palves@redhat.com>
8913 * go32-nat.c: Include inf-child.h.
8914 (go32_ops): Delete global.
8915 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8917 (go32_create_inferior): Push the passed in target pointer instead
8918 of referencing go32_ops.
8919 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8920 (go32_target): New function, based on init_go32_ops, but inherit
8922 (_initialize_go32_nat): Use go32_target. Move parts of
8925 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8927 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8928 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8929 SYMBOL_VALUE_ADDRESS.
8930 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8932 2014-03-06 Yao Qi <yao@codesourcery.com>
8934 * breakpoint.c (get_tracepoint_by_number): Remove argument
8935 optional_p. All callers updated. Adjust comments. Update
8937 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8939 2014-03-06 Yao Qi <yao@codesourcery.com>
8941 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8942 early if get_number returns zero. Use 'p' instead of 'args'.
8944 2014-03-06 Yao Qi <yao@codesourcery.com>
8946 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8949 2014-03-06 Yao Qi <yao@codesourcery.com>
8951 PR breakpoints/16508
8952 * tracepoint.c (check_trace_running): New function.
8953 (trace_find_command): Move code to check_trace_running and
8954 call check_trace_running.
8955 (trace_find_pc_command): Likewise.
8956 (trace_find_tracepoint_command): Likewise.
8957 (trace_find_line_command): Likewise.
8958 (trace_find_range_command): Likewise.
8959 * tracepoint.h (check_trace_running): Likewise.
8960 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8962 2014-03-06 Yao Qi <yao@codesourcery.com>
8964 * target.h (struct target_ops) <to_traceframe_info>: Use
8965 TARGET_DEFAULT_NORETURN (tcomplain ()).
8966 * target-delegates.c: Regenerated.
8968 2014-03-05 Pedro Alves <palves@redhat.com>
8971 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8972 void. Update comment.
8973 (dcache_xfer_memory): Delete.
8974 (dcache_read_memory_partial): New, based on the read bits of
8976 (dcache_update): Add status parameter. Use ULONGEST for len, and
8977 adjust. Discard cache lines if the reason for the update was
8979 * dcache.h (dcache_xfer_memory): Delete declaration.
8980 (dcache_read_memory_partial): New declaration.
8981 (dcache_update): Update prototype.
8982 * target.c (raw_memory_xfer_partial): Update the dcache here.
8983 (memory_xfer_partial_1): Don't handle dcache writes here.
8985 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8987 * remote-sim.c (gdbsim_load): Add const to prog.
8989 2014-03-03 Tom Tromey <tromey@redhat.com>
8991 * elfread.c (probe_key): Change to bfd_data.
8992 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8993 now per-BFD, not per-objfile.
8994 * stap-probe.c (stap_probe_destroy): Update comment.
8995 (handle_stap_probe): Allocate on the per-BFD obstack.
8997 2014-03-03 Tom Tromey <tromey@redhat.com>
8999 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9000 * breakpoint.c (create_longjmp_master_breakpoint): Use
9002 (add_location_to_breakpoint, bkpt_probe_insert_location)
9003 (bkpt_probe_remove_location): Update.
9004 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9005 * elfread.c (elf_symfile_relocate_probe): Remove.
9006 (elf_probe_fns): Update.
9007 (insert_exception_resume_breakpoint): Change type of "probe"
9008 parameter to bound_probe.
9009 (check_exception_resume): Update.
9010 * objfiles.c (objfile_relocate1): Don't relocate probes.
9011 * probe.c (bound_probe_s): New typedef.
9012 (parse_probes): Use get_probe_address. Set sal's objfile.
9013 (find_probe_by_pc): Return a bound_probe.
9014 (collect_probes): Return a VEC(bound_probe_s).
9015 (compare_probes): Update.
9016 (gen_ui_out_table_header_info): Change type of "probes"
9018 (info_probes_for_ops): Update.
9019 (get_probe_address): New function.
9020 (probe_safe_evaluate_at_pc): Update.
9021 * probe.h (struct probe_ops) <get_probe_address>: New field.
9022 <set_semaphore, clear_semaphore>: Add objfile parameter.
9023 (struct probe) <objfile>: Remove field.
9025 <address>: Update comment.
9026 (struct bound_probe): New.
9027 (find_probe_by_pc): Return a bound_probe.
9028 (get_probe_address): Declare.
9029 * solib-svr4.c (struct probe_and_action) <address>: New field.
9030 (hash_probe_and_action, equal_probe_and_action): Update.
9031 (register_solib_event_probe): Add address parameter.
9032 (solib_event_probe_at): Update.
9033 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9035 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9036 (stap_get_probe_address): New function.
9037 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9038 (compile_probe_arg): Update.
9039 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9041 (handle_stap_probe): Don't relocate the probe.
9042 (stap_relocate): Remove.
9043 (stap_gen_info_probes_table_values): Update.
9044 (stap_probe_ops): Remove stap_relocate.
9045 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9046 (debug_sym_probe_fns): Update.
9047 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9048 * symtab.c (init_sal): Use memset.
9049 * symtab.h (struct symtab_and_line) <objfile>: New field.
9050 * tracepoint.c (start_tracing, stop_tracing): Update.
9052 2014-03-03 Tom Tromey <tromey@redhat.com>
9054 * probe.h (parse_probes, find_probe_by_pc)
9055 (find_probes_in_objfile): Fix comments.
9057 2014-03-02 Doug Evans <xdje42@gmail.com>
9059 * infrun.c (handle_signal_stop): Replace test for
9060 TARGET_WAITKIND_STOPPED with an assert.
9062 2014-03-02 Doug Evans <xdje42@gmail.com>
9064 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9066 2014-03-02 Doug Evans <xdje42@gmail.com>
9068 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9070 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9072 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9074 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9076 * i386obsd-nat.c: Include "obsd-nat.h".
9077 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9079 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9081 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9083 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9085 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9087 * mips64obsd-nat.c: Include "obsd-nath".
9088 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9090 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9092 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9094 * amd64obsd-nat.c: Include "obsd-nat,h.
9095 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9097 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9099 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9101 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9102 (find_overload_match): Update call to find_oload_champ.
9103 (find_oload_champ_namespace_loop): Likewise
9105 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9107 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9109 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9110 * config/sparc/obsd64.mh: New file.
9111 * sparc64obsd-nat.c: New file.
9113 * obsd-nat.h: New file.
9114 * obsd-nat.c: New file.
9115 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9116 (ALLDEPFILES): Add obsd-nat.c.
9118 2014-02-28 Tom Tromey <tromey@redhat.com>
9120 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9121 * cli-out.h (cli_ui_out_impl): Now const.
9122 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9123 * ui-out.c (struct ui_out) <impl>: Now const.
9124 (default_ui_out_impl): Now const.
9125 (ui_out_new): Make 'impl' parameter const.
9126 * ui-out.h (ui_out_new): Update.
9128 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9130 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9132 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9134 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9136 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 Additional PR 8882 fix.
9139 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9141 2014-02-27 Pedro Alves <palves@redhat.com>
9143 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9146 2014-02-27 Pedro Alves <palves@redhat.com>
9149 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9150 * nat/linux-waitpid.c: Include string.h.
9151 (status_to_str): Moved here and made extern.
9152 * nat/linux-waitpid.h (status_to_str): New declaration.
9154 2014-02-27 Hui Zhu <hui@codesourcery.com>
9157 * infrun.c (ptid_match): Move ...
9158 * common/ptid.c (ptid_match): ... here.
9159 * inferior.h (ptid_match): Move ...
9160 * common/ptid.h (ptid_match): ... here.
9162 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9164 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9165 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9168 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9170 * obsd-tdep.c (obsd_auxv_parse): New function.
9171 (obsd_init_abi): Set auxv_parse.
9173 * gdbarch.sh (auxv_parse): New.
9174 * gdbarch.h: Regenerated.
9175 * gdbarch.c: Regenerated.
9176 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9178 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9180 * guile/scm-value.c (gdbscm_history_append_x): New function.
9181 (value_functions): Add it.
9183 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9185 * dwarf2read.c (attr_value_as_address): New function.
9186 (dwarf2_find_base_address, read_call_site_scope): Use
9187 attr_value_as_address in place of DW_ADDR.
9188 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9189 the low and high addresses. Slight rework of the handling
9190 of the high pc being a constant form, and limit it to
9191 DWARF verson 4 or higher.
9192 (dwarf2_record_block_ranges): Likewise.
9193 (read_partial_die): Likewise.
9194 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9196 2014-02-26 Tom Tromey <tromey@redhat.com>
9198 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9200 2014-02-26 Tom Tromey <tromey@redhat.com>
9202 * elfread.c (elf_read_minimal_symbols): Return early if
9203 minimal symbols have already been read. Add "ei" parameter.
9204 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9205 * minsyms.c (prim_record_minimal_symbol_full): Update.
9206 * objfiles.h (struct objstats) <n_minsyms>: Move...
9207 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9208 * symmisc.c (print_objfile_statistics): Update.
9210 2014-02-26 Tom Tromey <tromey@redhat.com>
9212 * elfread.c (elf_read_minimal_symbols): New function, from
9214 (elf_symfile_read): Call it.
9216 2014-02-26 Tom Tromey <tromey@redhat.com>
9218 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9219 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9220 (lookup_minimal_symbol_solib_trampoline)
9221 (lookup_minimal_symbol_by_pc_section_1)
9222 (lookup_minimal_symbol_and_objfile): Update.
9223 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9224 Don't allocate a minimal symbol if minsyms have already been read.
9225 (build_minimal_symbol_hash_tables): Update.
9226 (install_minimal_symbols): Do nothing if minsyms already read.
9227 Use the per-BFD obstack.
9228 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9229 * objfiles.c (allocate_objfile): Call
9230 terminate_minimal_symbol_table later.
9231 (have_minimal_symbols): Update.
9232 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9233 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9234 Move from struct objfile.
9235 <minsyms_read>: New field.
9236 (struct objfile) <msymbols, minimal_symbol_count,
9237 msymbol_hash, msymbol_demangled_hash>: Move.
9238 (ALL_OBJFILE_MSYMBOLS): Update.
9239 * symfile.c (read_symbols): Set minsyms_read.
9240 (reread_symbols): Update.
9241 * symmisc.c (dump_objfile, dump_msymbols): Update.
9243 2014-02-26 Tom Tromey <tromey@redhat.com>
9245 * minsyms.c (msymbols_sort): Remove.
9246 * minsyms.h (msymbols_sort): Remove.
9247 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9248 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9249 * elfread.c (elf_symtab_read): Don't add section offsets.
9250 * xcoffread.c (record_minimal_symbol): Don't add section offset
9251 to minimal symbol address.
9252 * somread.c (text_offset, data_offset): Remove.
9253 (som_symtab_read): Don't add section offsets to minimal symbol
9255 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9256 Don't add section offsets to minimal symbols.
9257 * coffread.c (coff_symtab_read): Don't add section offsets
9258 to minimal symbol addresses.
9259 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9260 to minimal symbol addresses.
9261 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9262 section offset to minimal symbol addresses.
9263 * mdebugread.c (parse_partial_symbols): Don't add section
9264 offset to minimal symbol addresses.
9265 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9266 offset to minimal symbol addresses.
9268 2014-02-26 Tom Tromey <tromey@redhat.com>
9270 * ada-lang.c (ada_main_name): Update.
9271 (ada_add_standard_exceptions): Update.
9272 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9273 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9274 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9275 * auxv.c (ld_so_xfer_auxv): Update.
9276 * avr-tdep.c (avr_scan_prologue): Update.
9277 * ax-gdb.c (gen_var_ref): Update.
9278 * blockframe.c (get_pc_function_start)
9279 (find_pc_partial_function_gnu_ifunc): Update.
9280 * breakpoint.c (create_overlay_event_breakpoint)
9281 (create_longjmp_master_breakpoint)
9282 (create_std_terminate_master_breakpoint)
9283 (create_exception_master_breakpoint): Update.
9284 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9285 * c-valprint.c (c_val_print): Update.
9286 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9287 * common/agent.c (agent_look_up_symbols): Update.
9288 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9289 * dwarf2loc.c (call_site_to_target_addr): Update.
9290 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9291 * elfread.c (elf_gnu_ifunc_record_cache)
9292 (elf_gnu_ifunc_resolve_by_got): Update.
9293 * findvar.c (default_read_var_value): Update.
9294 * frame.c (inside_main_func): Update.
9295 * frv-tdep.c (frv_frame_this_id): Update.
9296 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9297 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9299 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9300 (hppa_hpux_find_dummy_bpaddr): Update.
9301 * hppa-tdep.c (hppa_symbol_address): Update.
9302 * infcmd.c (until_next_command): Update.
9303 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9305 * linespec.c (minsym_found, add_minsym): Update.
9306 * linux-nat.c (get_signo): Update.
9307 * linux-thread-db.c (inferior_has_bug): Update.
9308 * m32c-tdep.c (m32c_return_value)
9309 (m32c_m16c_address_to_pointer): Update.
9310 * m32r-tdep.c (m32r_frame_this_id): Update.
9311 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9312 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9313 * maint.c (maintenance_translate_address): Update.
9314 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9315 (frob_address): New function.
9316 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9317 frob_address. Rename parameter to "pc_in".
9318 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9320 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9322 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9323 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9324 * objc-lang.c (find_objc_msgsend): Update.
9325 * objfiles.c (objfile_relocate1): Update.
9326 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9327 * p-valprint.c (pascal_val_print): Update.
9328 * parse.c (write_exp_msymbol): Update.
9329 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9330 (ppc_elfv2_skip_entrypoint): Update.
9331 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9332 * printcmd.c (build_address_symbolic, msym_info)
9333 (address_info): Update.
9334 * proc-service.c (ps_pglobal_lookup): Update.
9335 * psymtab.c (find_pc_sect_psymtab_closer)
9336 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9337 Change msymbol parameter to bound_minimal_symbol.
9338 * ravenscar-thread.c (get_running_thread_id): Update.
9339 * remote.c (remote_check_symbols): Update.
9340 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9342 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9343 * solib-dsbt.c (lm_base): Update.
9344 * solib-frv.c (lm_base, main_got): Update.
9345 * solib-irix.c (locate_base): Update.
9346 * solib-som.c (som_solib_create_inferior_hook)
9347 (link_map_start): Update.
9348 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9349 * solib-svr4.c (elf_locate_base, enable_break): Update.
9350 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9351 (flush_ea_cache): Update.
9352 * stabsread.c (define_symbol, scan_file_globals): Update.
9353 * stack.c (find_frame_funname): Update.
9354 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9355 (debug_qf_find_pc_sect_symtab): Update.
9356 * symfile.c (simple_read_overlay_table)
9357 (simple_overlay_update): Update.
9358 * symfile.h (struct quick_symbol_functions)
9359 <find_pc_sect_symtab>: Change type of msymbol to
9360 bound_minimal_symbol.
9361 * symmisc.c (dump_msymbols): Update.
9362 * symtab.c (find_pc_sect_symtab_via_partial)
9363 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9364 (search_symbols, print_msymbol_info): Update.
9365 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9366 (MSYMBOL_VALUE_ADDRESS): Redefine.
9367 (BMSYMBOL_VALUE_ADDRESS): New macro.
9368 * tracepoint.c (scope_info): Update.
9369 * tui/tui-disasm.c (tui_find_disassembly_address)
9370 (tui_get_begin_asm_address): Update.
9371 * valops.c (find_function_in_inferior): Update.
9372 * value.c (value_static_field, value_fn_field): Update.
9374 2014-02-26 Tom Tromey <tromey@redhat.com>
9376 * ada-lang.c (ada_update_initial_language): Update.
9377 (ada_main_name, ada_has_this_exception_support): Update.
9378 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9379 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9380 * arm-tdep.c (arm_skip_stub): Update.
9381 * auxv.c (ld_so_xfer_auxv): Update.
9382 * avr-tdep.c (avr_scan_prologue): Update.
9383 * ax-gdb.c (gen_var_ref): Update.
9384 * breakpoint.c (struct breakpoint_objfile_data)
9385 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9386 type to bound_minimal_symbol.
9387 (create_overlay_event_breakpoint)
9388 (create_longjmp_master_breakpoint)
9389 (create_std_terminate_master_breakpoint)
9390 (create_exception_master_breakpoint): Update.
9391 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9392 * c-exp.y (classify_name): Update.
9393 * coffread.c (coff_symfile_read): Update.
9394 * common/agent.c (agent_look_up_symbols): Update.
9395 * d-lang.c (d_main_name): Update.
9396 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9397 * dec-thread.c (enable_dec_thread): Update.
9398 * dwarf2loc.c (call_site_to_target_addr): Update.
9399 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9400 * eval.c (evaluate_subexp_standard): Update.
9401 * findvar.c (struct minsym_lookup_data) <result>: Change type
9402 to bound_minimal_symbol.
9404 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9405 * frame.c (inside_main_func): Update.
9406 * frv-tdep.c (frv_frame_this_id): Update.
9407 * gcore.c (call_target_sbrk): Update.
9408 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9409 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9411 * go-lang.c (go_main_name): Update.
9412 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9413 (hppa_hpux_find_import_stub_for_addr): Update.
9414 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9415 Update. Change return type.
9416 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9418 * jit.c (jit_breakpoint_re_set_internal): Update.
9419 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9421 * linux-nat.c (get_signo): Update.
9422 * linux-thread-db.c (inferior_has_bug): Update
9423 * m32c-tdep.c (m32c_return_value)
9424 (m32c_m16c_address_to_pointer): Update.
9425 * m32r-tdep.c (m32r_frame_this_id): Update.
9426 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9427 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9428 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9429 lookup_minimal_symbol. Change return type.
9430 (lookup_minimal_symbol): Remove.
9431 (lookup_bound_minimal_symbol): Update.
9432 (lookup_minimal_symbol_text): Change return type.
9433 (lookup_minimal_symbol_solib_trampoline): Change return type.
9434 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9435 (lookup_minimal_symbol_solib_trampoline): Change return type.
9436 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9437 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9438 (value_nsstring, find_imps): Update.
9439 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9440 * p-lang.c (pascal_main_name): Update.
9441 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9442 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9443 * proc-service.c (ps_pglobal_lookup): Update.
9444 * ravenscar-thread.c (get_running_thread_msymbol): Change
9446 (has_ravenscar_runtime, get_running_thread_id): Update.
9447 * remote.c (remote_check_symbols): Update.
9448 * sol-thread.c (ps_pglobal_lookup): Update.
9449 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9450 * solib-dsbt.c (lm_base): Update.
9451 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9453 * solib-irix.c (locate_base): Update.
9454 * solib-som.c (som_solib_create_inferior_hook)
9455 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9457 * solib-spu.c (spu_enable_break): Update.
9458 * solib-svr4.c (elf_locate_base, enable_break): Update.
9459 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9460 (flush_ea_cache): Update.
9461 * stabsread.c (define_symbol): Update.
9462 * symfile.c (simple_read_overlay_table): Update.
9463 * symtab.c (find_pc_sect_line): Update.
9464 * tracepoint.c (scope_info): Update.
9465 * tui-disasm.c (tui_get_begin_asm_address): Update.
9466 * value.c (value_static_field): Update.
9468 2014-02-26 Tom Tromey <tromey@redhat.com>
9470 * minsyms.c (prim_record_minimal_symbol_full): Use
9471 SET_MSYMBOL_VALUE_ADDRESS.
9472 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9473 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9474 SET_MSYMBOL_VALUE_ADDRESS.
9475 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9476 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9478 2014-02-26 Tom Tromey <tromey@redhat.com>
9480 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9481 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9482 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9483 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9484 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9485 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9486 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9487 * ada-lang.c (ada_main_name): Update.
9488 (ada_lookup_simple_minsym): Update.
9489 (ada_make_symbol_completion_list): Update.
9490 (ada_add_standard_exceptions): Update.
9491 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9492 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9493 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9494 * arm-tdep.c (skip_prologue_function): Update.
9495 (arm_skip_stack_protector, arm_skip_stub): Update.
9496 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9497 (arm_wince_skip_main_prologue): Update.
9498 * auxv.c (ld_so_xfer_auxv): Update.
9499 * avr-tdep.c (avr_scan_prologue): Update.
9500 * ax-gdb.c (gen_var_ref): Update.
9501 * block.c (call_site_for_pc): Update.
9502 * blockframe.c (get_pc_function_start): Update.
9503 (find_pc_partial_function_gnu_ifunc): Update.
9504 * breakpoint.c (create_overlay_event_breakpoint): Update.
9505 (create_longjmp_master_breakpoint): Update.
9506 (create_std_terminate_master_breakpoint): Update.
9507 (create_exception_master_breakpoint): Update.
9508 (resolve_sal_pc): Update.
9509 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9510 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9512 * c-valprint.c (c_val_print): Update.
9513 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9514 * coffread.c (coff_symfile_read): Update.
9515 * common/agent.c (agent_look_up_symbols): Update.
9516 * dbxread.c (find_stab_function_addr): Update.
9517 (end_psymtab): Update.
9518 * dwarf2loc.c (call_site_to_target_addr): Update.
9519 (func_verify_no_selftailcall): Update.
9520 (tailcall_dump): Update.
9521 (call_site_find_chain_1): Update.
9522 (dwarf_expr_reg_to_entry_parameter): Update.
9523 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9524 (elf_gnu_ifunc_resolve_by_got): Update.
9525 * f-valprint.c (info_common_command): Update.
9526 * findvar.c (read_var_value): Update.
9527 * frame.c (get_prev_frame_1): Update.
9528 (inside_main_func): Update.
9529 * frv-tdep.c (frv_skip_main_prologue): Update.
9530 (frv_frame_this_id): Update.
9531 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9532 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9533 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9534 (gnuv3_skip_trampoline): Update.
9535 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9536 (hppa64_hpux_in_solib_call_trampoline): Update.
9537 (hppa_hpux_skip_trampoline_code): Update.
9538 (hppa64_hpux_search_dummy_call_sequence): Update.
9539 (hppa_hpux_find_import_stub_for_addr): Update.
9540 (hppa_hpux_find_dummy_bpaddr): Update.
9541 * hppa-tdep.c (hppa_symbol_address)
9542 (hppa_lookup_stub_minimal_symbol): Update.
9543 * i386-tdep.c (i386_skip_main_prologue): Update.
9544 (i386_pe_skip_trampoline_code): Update.
9545 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9546 * infcall.c (get_function_name): Update.
9547 * infcmd.c (until_next_command): Update.
9548 * jit.c (jit_breakpoint_re_set_internal): Update.
9549 (jit_inferior_init): Update.
9550 * linespec.c (minsym_found): Update.
9551 (add_minsym): Update.
9552 * linux-fork.c (info_checkpoints_command): Update.
9553 * linux-nat.c (get_signo): Update.
9554 * linux-thread-db.c (inferior_has_bug): Update.
9555 * m32c-tdep.c (m32c_return_value): Update.
9556 (m32c_m16c_address_to_pointer): Update.
9557 (m32c_m16c_pointer_to_address): Update.
9558 * m32r-tdep.c (m32r_frame_this_id): Update.
9559 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9560 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9561 * maint.c (maintenance_translate_address): Update.
9562 * minsyms.c (add_minsym_to_hash_table): Update.
9563 (add_minsym_to_demangled_hash_table): Update.
9564 (msymbol_objfile): Update.
9565 (lookup_minimal_symbol): Update.
9566 (iterate_over_minimal_symbols): Update.
9567 (lookup_minimal_symbol_text): Update.
9568 (lookup_minimal_symbol_by_pc_name): Update.
9569 (lookup_minimal_symbol_solib_trampoline): Update.
9570 (lookup_minimal_symbol_by_pc_section_1): Update.
9571 (lookup_minimal_symbol_and_objfile): Update.
9572 (prim_record_minimal_symbol_full): Update.
9573 (compare_minimal_symbols): Update.
9574 (compact_minimal_symbols): Update.
9575 (build_minimal_symbol_hash_tables): Update.
9576 (install_minimal_symbols): Update.
9577 (terminate_minimal_symbol_table): Update.
9578 (find_solib_trampoline_target): Update.
9579 (minimal_symbol_upper_bound): Update.
9580 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9581 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9582 (mips_skip_pic_trampoline_code): Update.
9583 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9584 * objc-lang.c (selectors_info): Update.
9585 (classes_info): Update.
9586 (find_methods): Update.
9587 (find_imps): Update.
9588 (find_objc_msgsend): Update.
9589 * objfiles.c (objfile_relocate1): Update.
9590 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9591 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9592 * p-valprint.c (pascal_val_print): Update.
9593 * parse.c (write_exp_msymbol): Update.
9594 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9595 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9596 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9597 * printcmd.c (build_address_symbolic): Update.
9599 (address_info): Update.
9600 * proc-service.c (ps_pglobal_lookup): Update.
9601 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9602 (find_pc_sect_psymtab): Update.
9603 * python/py-framefilter.c (py_print_frame): Update.
9604 * ravenscar-thread.c (get_running_thread_id): Update.
9605 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9607 * remote.c (remote_check_symbols): Update.
9608 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9609 (rs6000_skip_trampoline_code): Update.
9610 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9611 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9612 * solib-dsbt.c (lm_base): Update.
9613 * solib-frv.c (lm_base): Update.
9615 * solib-irix.c (locate_base): Update.
9616 * solib-som.c (som_solib_create_inferior_hook): Update.
9617 (som_solib_desire_dynamic_linker_symbols): Update.
9618 (link_map_start): Update.
9619 * solib-spu.c (spu_enable_break): Update.
9620 (ocl_enable_break): Update.
9621 * solib-svr4.c (elf_locate_base): Update.
9622 (enable_break): Update.
9623 * spu-tdep.c (spu_get_overlay_table): Update.
9624 (spu_catch_start): Update.
9625 (flush_ea_cache): Update.
9626 * stabsread.c (define_symbol): Update.
9627 (scan_file_globals): Update.
9628 * stack.c (find_frame_funname): Update.
9629 (frame_info): Update.
9630 * symfile.c (simple_read_overlay_table): Update.
9631 (simple_overlay_update): Update.
9632 * symmisc.c (dump_msymbols): Update.
9633 * symtab.c (fixup_section): Update.
9634 (find_pc_sect_line): Update.
9635 (skip_prologue_sal): Update.
9636 (search_symbols): Update.
9637 (print_msymbol_info): Update.
9638 (rbreak_command): Update.
9639 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9640 (completion_list_objc_symbol): Update.
9641 (default_make_symbol_completion_list_break_on): Update.
9642 * tracepoint.c (scope_info): Update.
9643 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9644 (tui_get_begin_asm_address): Update.
9645 * valops.c (find_function_in_inferior): Update.
9646 * value.c (value_static_field): Update.
9647 (value_fn_field): Update.
9649 2014-02-26 Tom Tromey <tromey@redhat.com>
9651 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9652 bound minimal symbols. Move code that knows about minsym
9654 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9656 * minsyms.h (minimal_symbol_upper_bound): Declare.
9657 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9658 minimal_symbol_upper_bound.
9660 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9662 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9663 Use the type's name if its basic type does not have a tag.
9665 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9667 * dwarf2read.c (read_subrange_type): Add comment.
9669 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9671 * dwarf2read.c (update_enumeration_type_from_children): New
9672 function, mostly extracted from process_structure_scope.
9673 (read_enumeration_type): Call update_enumeration_type_from_children.
9674 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9675 and flag_flag_enum fields.
9677 2014-02-26 Pedro Alves <palves@redhat.com>
9679 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9680 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9681 to_xfer_partial method.
9683 2014-02-26 Pedro Alves <palves@redhat.com>
9685 * target.c (complete_target_initialization): Don't install
9686 default_xfer_partial as to_xfer_partial hook.
9688 (update_current_target): Don't INHERIT nor de_fault
9689 deprecated_xfer_memory. Delete de_fault macro.
9690 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9691 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9692 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9695 2014-02-26 Pedro Alves <palves@redhat.com>
9697 * go32-nat.c (my_write_child): New function.
9698 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9699 (go32_xfer_partial): New function.
9700 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9701 Instead install a to_xfer_partial hook.
9703 2014-02-26 Pedro Alves <palves@redhat.com>
9705 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9706 to_xfer_partial helper. Rewrite.
9707 (procfs_xfer_partial): New function.
9708 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9709 Install a to_xfer_partial hook.
9711 2014-02-26 Pedro Alves <palves@redhat.com>
9713 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9714 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9715 (m32r_xfer_partial): New function.
9716 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9717 Install a to_xfer_partial hook.
9719 2014-02-26 Pedro Alves <palves@redhat.com>
9721 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9723 (mips_xfer_partial): New function.
9724 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9725 hook. Install a to_xfer_partial hook.
9727 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9729 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9730 * gdbtypes.c (create_array_type_with_stride): New function,
9731 renaming create_array_type, but with an added parameter
9732 called "bit_stride".
9733 (create_array_type): Re-implement using
9734 create_array_type_with_stride.
9735 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9736 and DW_AT_bit_stride attributes.
9738 2014-02-26 Pedro Alves <palves@redhat.com>
9740 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9741 task-specific breakpoints.
9743 2014-02-25 Pedro Alves <palves@redhat.com>
9745 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9746 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9748 2014-02-25 Stan Shebs <stan@codesourcery.com>
9750 * defs.h: Annotate comments for Doxygen.
9752 2014-02-25 Tom Tromey <tromey@redhat.com>
9754 * target.h (target_ignore): Don't declare.
9755 * target.c (target_ignore): Remove.
9757 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9760 * auto-load.c (auto_load_objfile_script_1): Change filename to
9763 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9765 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9766 documentation. Adjust prototype to match the target_ops
9767 to_xfer_partial method. Adjust implementation accordingly.
9769 2014-02-25 Hui Zhu <hui@codesourcery.com>
9771 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9774 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9776 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9777 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9778 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9779 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9780 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9781 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9782 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9783 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9785 (rl78_register_type): Use a data pointer type for SP and
9786 new pseudo registers mentioned above. Use a 16 bit integer
9787 type for all other register pairs.
9788 (rl78_register_name, rl78_g10_register_name): Update for
9789 new pseudo registers.
9790 (rl78_pseudo_register_read): Likewise.
9791 (rl78_pseudo_register_write): Likewise.
9792 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9793 to the newly added pseudo registers.
9795 2014-02-24 Doug Evans <dje@google.com>
9797 * value.c (record_latest_value): Fix comment.
9798 * printcmd.c (print_command_1): Remove code to handle -1 return from
9799 record_latest_value.
9801 2014-02-24 Pedro Alves <palves@redhat.com>
9803 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9804 deprecated_xfer_memory hook.
9805 (procfs_xfer_partial): Call procfs_xfer_memory instead
9806 of the deprecated_xfer_memory target hook.
9807 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9810 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9812 * windows-nat.c (windows_xfer_shared_libraries): Return
9813 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9814 requested object is TARGET_OBJECT_LIBRARIES.
9816 2014-02-24 Yao Qi <yao@codesourcery.com>
9818 * target.h (enum target_xfer_status)
9819 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9820 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9822 * corefile.c (memory_error_message): User updated.
9823 * exec.c (section_table_read_available_memory): Likewise.
9824 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9825 * target.c (target_xfer_status_to_string): Likewise.
9826 (raw_memory_xfer_partial): Likewise.
9827 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9828 * valops.c (read_value_memory): Likewise.
9829 * exec.h: Update comments.
9831 2014-02-24 Yao Qi <yao@codesourcery.com>
9833 * target.c (target_xfer_status_to_string): Rename argument err
9835 * target.h (target_xfer_status_to_string): Update declaration.
9836 Replace target_xfer_error_to_string with
9837 target_xfer_status_to_string in comment.
9839 2014-02-24 Yao Qi <yao@codesourcery.com>
9841 * mips-linux-nat.c (super_close): Update its type.
9842 (mips_linux_close): Pass 'self' to super_close.
9844 2014-02-24 Yao Qi <yao@codesourcery.com>
9846 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9847 * corefile.c (read_memory): Adjusted.
9848 * target.c (target_write_with_progress): Adjusted.
9850 2014-02-23 Yao Qi <yao@codesourcery.com>
9854 2013-10-25 Yao Qi <yao@codesourcery.com>
9856 * remote.c (remote_traceframe_info): Return early if
9857 traceframe is not selected.
9859 2013-07-19 Yao Qi <yao@codesourcery.com>
9861 * target.c (update_current_target): Change the default action
9862 of 'to_traceframe_info' from tcomplain to return_zero.
9863 * target.h (struct target_ops) <to_traceframe_info>: Add more
9866 2014-02-23 Yao Qi <yao@codesourcery.com>
9868 * valops.c (read_value_memory): Rewrite it. Call
9869 target_xfer_partial in a loop.
9870 * exec.h (section_table_available_memory): Remove declaration.
9871 Move comments to ...
9872 * exec.c (section_table_available_memory): ... here. Make it
9875 2014-02-23 Yao Qi <yao@codesourcery.com>
9877 * exec.c (section_table_read_available_memory): New function.
9878 * exec.h (section_table_read_available_memory): Declare.
9879 * ctf.c (ctf_xfer_partial): Call
9880 section_table_read_available_memory.
9881 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9883 2014-02-23 Yao Qi <yao@codesourcery.com>
9885 * ctf.c (ctf_xfer_partial): Move code to ...
9886 * exec.c (exec_read_partial_read_only): ... it. New function.
9887 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9888 * tracefile.c: Include "exec.h".
9889 * exec.h (exec_read_partial_read_only): Declare.
9891 2014-02-23 Yao Qi <yao@codesourcery.com>
9893 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9894 (tfile_has_memory): Remove.
9895 (init_tfile_ops): Don't set fields to_has_all_memory and
9896 to_has_memory of tfile_ops.
9897 * tracefile.c (tracefile_has_all_memory): New function.
9898 (tracefile_has_memory): New function.
9899 (init_tracefile_ops): Initialize fields to_has_all_memory and
9900 to_has_memory of 'ops'.
9902 2014-02-23 Yao Qi <yao@codesourcery.com>
9904 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9905 (ctf_thread_alive, ctf_get_trace_status): Remove.
9906 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9908 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9909 (tfile_has_stack, tfile_has_registers): Remove.
9910 (tfile_thread_alive): Remove.
9911 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9913 * tracefile.c (tracefile_has_stack): New function.
9914 (tracefile_has_registers): New function.
9915 (tracefile_thread_alive): New function.
9916 (tracefile_get_trace_status): New function.
9917 (init_tracefile_ops): New function.
9918 * tracefile.h (init_tracefile_ops): Declare.
9920 2014-02-23 Yao Qi <yao@codesourcery.com>
9922 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9923 (O_LARGEFILE): Likewise.
9924 (tfile_ops): Likewise.
9925 (TRACE_HEADER_SIZE): Likewise.
9926 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9927 (cur_data_size): Likewise.
9928 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9929 (tfile_close, tfile_files_info): Likewise.
9930 (tfile_get_trace_status): Likewise.
9931 (tfile_get_tracepoint_status): Likewise.
9932 (tfile_get_traceframe_address): Likewise.
9933 (tfile_trace_find, match_blocktype): Likewise.
9934 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9935 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9936 (tfile_get_trace_state_variable_value): Likewise.
9937 (tfile_has_all_memory, tfile_has_memory): Likewise.
9938 (tfile_has_stack, tfile_has_registers): Likewise.
9939 (tfile_thread_alive, build_traceframe_info): Likewise.
9940 (tfile_traceframe_info, init_tfile_ops): Likewise.
9941 (_initialize_tracepoint): Don't call init_tfile_ops
9942 and add_target_with_completer.
9943 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9944 exec.h, completer.h and filenames.h.
9945 (_initialize_tracefile_tfile): New function.
9947 2014-02-23 Yao Qi <yao@codesourcery.com>
9949 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9951 (HFILES_NO_SRCDIR): Add tracefile.h.
9952 * ctf.c: Include "tracefile.h".
9953 * tracefile.h: New file.
9954 * tracefile.c: New file
9955 * tracefile-tfile.c: New file.
9956 * tracepoint.c: Include "tracefile.h".
9957 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9958 (stop_reason_names): Add const.
9959 (trace_file_writer_xfree): Move it to tracefile.c.
9960 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9961 (trace_save_ctf): Likewise.
9962 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9963 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9964 (tfile_write_header, tfile_write_regblock_type): Likewise.
9965 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9966 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9967 (tfile_write_raw_data, tfile_end): Likewise.
9968 (tfile_trace_file_writer_new): Likewise.
9969 (free_uploaded_tp): Make it extern.
9970 (free_uploaded_tsv): Make it extern.
9971 (_initialize_tracepoint): Move code to register command 'tsave'
9973 * tracepoint.h (stop_reason_names): Declare.
9974 (struct trace_frame_write_ops): Move it to tracefile.h.
9975 (struct trace_file_write_ops): Likewise.
9976 (struct trace_file_writer): Likewise.
9977 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9979 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9982 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9984 (get_cores_used_by_process): New parameter num_cores, use it.
9985 (linux_xfer_osdata_processes): Pass num_cores to it.
9986 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9989 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9991 * target.c (memory_xfer_partial): Fix length arg in call to
9992 breakpoint_xfer_memory.
9994 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9997 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9998 number comes after the + or - signs. Adjust length of register
9999 name to be extracted.
10001 2014-02-20 Tom Tromey <tromey@redhat.com>
10003 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10004 (ada_varobj_ops): Mark "extern".
10006 2014-02-20 Tom Tromey <tromey@redhat.com>
10008 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10010 2014-02-20 Doug Evans <xdje42@gmail.com>
10012 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10013 All callers updated.
10014 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10015 All callers updated.
10016 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10017 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10019 2014-02-20 lin zuojian <manjian2006@gmail.com>
10020 Joel Brobecker <brobecker@adacore.com>
10021 Doug Evans <xdje42@gmail.com>
10024 * dwarf2read.c (struct die_info): New member in_process.
10025 (reset_die_in_process): New function.
10026 (process_die): Set it at the start, reset when returning.
10027 (inherit_abstract_dies): Only call process_die if origin_child_die
10028 not already being processed.
10030 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10032 * windows-nat.c (handle_unload_dll): Add function documentation.
10033 (do_initial_windows_stuff): Add comment explaining why we wait
10034 until after inferior initialization has finished before
10035 processing all DLLs.
10037 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10039 * windows-nat.c (get_module_name): Delete.
10040 (windows_get_exec_module_filename): New function, mostly
10041 inspired from get_module_name.
10042 (windows_pid_to_exec_file): Replace call to get_module_name
10043 by call to windows_get_exec_module_filename.
10045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10047 * windows-nat.c (handle_load_dll): Rewrite this function's
10048 introductory comment. Remove code using get_module_name
10049 to get the DLL's name.
10051 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10053 * windows-nat.c (get_windows_debug_event): Ignore
10054 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10055 if windows_initialization_done == 0.
10056 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10057 Adjust implementation to always load all DLLs.
10058 (do_initial_windows_stuff): Replace call to
10059 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10063 * windows-nat.c (_initialize_windows_nat): Deprecate the
10064 "dll-symbols" command. Turn the "add-shared-symbol-files"
10065 and "assf" aliases into commands, and deprecate them as well.
10066 * NEWS: Add entry explaining that "dll-symbols" and its two
10067 aliases are now deprecated.
10069 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10071 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10072 new-line in debug string. Remove trailing spaces.
10074 2014-02-19 Stan Shebs <stan@codesourcery.com>
10076 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10078 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10080 * NEWS: Add entry for the new feature
10081 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10084 2014-02-19 Stan Shebs <stan@codesourcery.com>
10086 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10088 2014-02-19 Pedro Alves <palves@redhat.com>
10090 * common/ptid.h (struct ptid): Mention that process_stratum
10091 targets should prefer ptid.lwp.
10093 2014-02-19 Pedro Alves <palves@redhat.com>
10095 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10096 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10097 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10098 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10099 store remote thread ids rather than ptid.tid.
10100 (_initialize_remote): Adjust.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target.c (target_get_unwinder): Rewrite.
10105 (target_get_tailcall_unwinder): Rewrite.
10106 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10107 (record_btrace_to_get_tailcall_unwinder): New function.
10108 (init_record_btrace_ops): Update.
10109 * target.h (struct target_ops) <to_get_unwinder,
10110 to_get_tailcall_unwinder>: Now function pointers. Use
10111 TARGET_DEFAULT_RETURN.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10117 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10123 * target-delegates.c: Rebuild.
10124 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10125 TARGET_DEFAULT_FUNC.
10126 * target.c (default_target_decr_pc_after_break): Rename from
10127 forward_target_decr_pc_after_break. Simplify.
10128 (target_decr_pc_after_break): Rely on delegation.
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10132 * target.c (update_current_target): Do not INHERIT to_doc or
10133 to_magic. Do not de_fault to_open or to_close.
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * gcore.h (objfile_find_memory_regions): Declare.
10138 * gcore.c (objfile_find_memory_regions): No longer static. Add
10140 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10141 * exec.c: Include gcore.h.
10142 (exec_set_find_memory_regions): Remove.
10143 (exec_find_memory_regions): Remove.
10144 (exec_do_find_memory_regions): Remove.
10145 (init_exec_ops): Update.
10146 * defs.h (exec_set_find_memory_regions): Remove.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * target-delegates.c: Rebuild.
10151 * target.h (struct target_ops) <to_extra_thread_info,
10152 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10153 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10154 not 0, in TARGET_DEFAULT_RETURN.
10156 2014-02-19 Tom Tromey <tromey@redhat.com>
10158 * target.c (complete_target_initialization): Remove casts. Use
10159 return_zero_has_execution.
10160 (return_zero): Add "ignore" argument.
10161 (return_zero_has_execution): New function.
10162 (init_dummy_target): Remove casts. Use
10163 return_zero_has_execution.
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10167 * target.c (update_current_target): Update comments. Do not
10168 INHERIT to_stratum.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10174 * corelow.c (core_read_description): Delegate when needed.
10175 * remote.c (remote_read_description): Delegate when needed.
10176 * target-delegates.c: Rebuild.
10177 * target.c (target_read_description): Rewrite.
10178 * target.h (struct target_ops) <to_read_description>: Update
10179 comment. Use TARGET_DEFAULT_RETURN.
10181 2014-02-19 Tom Tromey <tromey@redhat.com>
10183 * target-delegates.c: Rebuild.
10184 * target.c (update_current_target): Don't inherit or default
10186 (find_default_run_target): Check against delegate_can_run.
10187 * target.h (struct target_ops) <to_can_run>: Use
10188 TARGET_DEFAULT_RETURN.
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10192 * target-delegates.c: Rebuild.
10193 * target.c (target_disconnect): Unconditionally delegate.
10194 * target.h (struct target_ops) <to_disconnect>: Use
10195 TARGET_DEFAULT_NORETURN.
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10199 * record.c (record_stop): Unconditionally delegate.
10200 * target-delegates.c: Rebuild.
10201 * target.c (target_stop_recording): Unconditionally delegate.
10202 * target.h (struct target_ops) <to_stop_recording>: Use
10203 TARGET_DEFAULT_IGNORE.
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10207 * target-delegates.c: Rebuild.
10208 * target.c (target_enable_btrace): Unconditionally delegate.
10209 * target.h (struct target_ops) <to_enable_btrace>: Use
10210 TARGET_DEFAULT_NORETURN.
10212 2014-02-19 Tom Tromey <tromey@redhat.com>
10214 * target-delegates.c: Rebuild.
10215 * target.c (target_read_btrace): Unconditionally delegate.
10216 * target.h (struct target_ops) <to_read_btrace>: Use
10217 TARGET_DEFAULT_NORETURN.
10219 2014-02-19 Tom Tromey <tromey@redhat.com>
10221 * target-delegates.c: Rebuild.
10222 * target.c (target_teardown_btrace): Unconditionally delegate.
10223 * target.h (struct target_ops) <to_teardown_btrace>: Use
10224 TARGET_DEFAULT_NORETURN.
10226 2014-02-19 Tom Tromey <tromey@redhat.com>
10228 * target-delegates.c: Rebuild.
10229 * target.c (target_disable_btrace): Unconditionally delegate.
10230 * target.h (struct target_ops) <to_disable_btrace>: Use
10231 TARGET_DEFAULT_NORETURN.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target-delegates.c: Rebuild.
10236 * target.c (default_search_memory): New function.
10237 (simple_search_memory): Update comment.
10238 (target_search_memory): Unconditionally delegate.
10239 * target.h (struct target_ops) <to_search_memory>: Use
10240 TARGET_DEFAULT_FUNC.
10242 2014-02-19 Tom Tromey <tromey@redhat.com>
10244 * auxv.c (default_auxv_parse): No longer static.
10245 (target_auxv_parse): Unconditionally delegate.
10246 * auxv.h (default_auxv_parse): Declare.
10247 * target-delegates.c: Rebuild.
10248 * target.c: Include auxv.h.
10249 * target.h (struct target_ops) <to_auxv_parse>: Use
10250 TARGET_DEFAULT_FUNC.
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10254 * target-delegates.c: Rebuild.
10255 * target.c (target_memory_map): Unconditionally delegate.
10256 * target.h (struct target_ops) <to_memory_map>: Use
10257 TARGET_DEFAULT_RETURN.
10259 2014-02-19 Tom Tromey <tromey@redhat.com>
10261 * target-delegates.c: Rebuild.
10262 * target.c (target_thread_alive): Unconditionally delegate.
10263 * target.h (struct target_ops) <to_thread_alive>: Use
10264 TARGET_DEFAULT_RETURN.
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * target-delegates.c: Rebuild.
10269 * target.c (target_save_record): Unconditionally delegate.
10270 * target.h (struct target_ops) <to_save_record>: Use
10271 TARGET_DEFAULT_NORETURN.
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target-delegates.c: Rebuild.
10276 * target.c (target_delete_record): Unconditionally delegate.
10277 * target.h (struct target_ops) <to_delete_record>: Use
10278 TARGET_DEFAULT_NORETURN.
10280 2014-02-19 Tom Tromey <tromey@redhat.com>
10282 * target-delegates.c: Rebuild.
10283 * target.c (target_record_is_replaying): Unconditionally
10285 * target.h (struct target_ops) <to_record_is_replaying>: Use
10286 TARGET_DEFAULT_RETURN.
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10290 * target-delegates.c: Rebuild.
10291 * target.c (target_goto_record_begin): Unconditionally delegate.
10292 * target.h (struct target_ops) <to_goto_record_begin>: Use
10293 TARGET_DEFAULT_NORETURN.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target-delegates.c: Rebuild.
10298 * target.c (target_goto_record_end): Unconditionally delegate.
10299 * target.h (struct target_ops) <to_goto_record_end>: Use
10300 TARGET_DEFAULT_NORETURN.
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10304 * target-delegates.c: Rebuild.
10305 * target.c (target_goto_record): Unconditionally delegate.
10306 * target.h (struct target_ops) <to_goto_record>: Use
10307 TARGET_DEFAULT_NORETURN.
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10311 * target-delegates.c: Rebuild.
10312 * target.c (target_insn_history): Unconditionally delegate.
10313 * target.h (struct target_ops) <to_insn_history>: Use
10314 TARGET_DEFAULT_NORETURN.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target-delegates.c: Rebuild.
10319 * target.c (target_insn_history_from): Unconditionally delegate.
10320 * target.h (struct target_ops) <to_insn_history_from>: Use
10321 TARGET_DEFAULT_NORETURN.
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * target-delegates.c: Rebuild.
10326 * target.c (target_insn_history_range): Unconditionally delegate.
10327 * target.h (struct target_ops) <to_insn_history_range>: Use
10328 TARGET_DEFAULT_NORETURN.
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10332 * target-delegates.c: Rebuild.
10333 * target.c (target_call_history): Unconditionally delegate.
10334 * target.h (struct target_ops) <to_call_history>: Use
10335 TARGET_DEFAULT_NORETURN.
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10339 * target-delegates.c: Rebuild.
10340 * target.c (target_call_history_from): Unconditionally delegate.
10341 * target.h (struct target_ops) <to_call_history_from>: Use
10342 TARGET_DEFAULT_NORETURN.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target-delegates.c: Rebuild.
10347 * target.c (target_call_history_range): Unconditionally delegate.
10348 * target.h (struct target_ops) <to_call_history_range>: Use
10349 TARGET_DEFAULT_NORETURN.
10351 2014-02-19 Tom Tromey <tromey@redhat.com>
10353 * target-delegates.c: Rebuild.
10354 * target.c (target_verify_memory): Unconditionally delegate.
10355 * target.h (struct target_ops) <to_verify_memory>: Use
10356 TARGET_DEFAULT_NORETURN.
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10360 * target-delegates.c: Rebuild.
10361 * target.c (target_core_of_thread): Unconditionally delegate.
10362 * target.h (struct target_ops) <to_core_of_thread>: Use
10363 TARGET_DEFAULT_RETURN.
10365 2014-02-19 Tom Tromey <tromey@redhat.com>
10367 * target-delegates.c: Rebuild.
10368 * target.c (target_flash_done): Unconditionally delegate.
10369 * target.h (struct target_ops) <to_flash_done>: Use
10370 TARGET_DEFAULT_NORETURN.
10372 2014-02-19 Tom Tromey <tromey@redhat.com>
10374 * target-delegates.c: Rebuild.
10375 * target.c (target_flash_erase): Unconditionally delegate.
10376 * target.h (struct target_ops) <to_flash_erase>: Use
10377 TARGET_DEFAULT_NORETURN.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target-delegates.c: Rebuild.
10382 * target.c (target_get_section_table): Unconditionally delegate.
10383 * target.h (struct target_ops) <to_get_section_table>: Use
10384 TARGET_DEFAULT_RETURN.
10386 2014-02-19 Tom Tromey <tromey@redhat.com>
10388 * target-delegates.c: Rebuild.
10389 * target.c (target_pid_to_str): Unconditionally delegate.
10390 (init_dummy_target): Don't initialize to_pid_to_str.
10391 (default_pid_to_str): Rename from dummy_pid_to_str.
10392 * target.h (struct target_ops) <to_pid_to_str>: Use
10393 TARGET_DEFAULT_FUNC.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target-delegates.c: Rebuild.
10398 * target.c (target_find_new_threads): Unconditionally delegate.
10399 * target.h (struct target_ops) <to_find_new_threads>: Use
10400 TARGET_DEFAULT_RETURN.
10402 2014-02-19 Tom Tromey <tromey@redhat.com>
10404 * target-delegates.c: Rebuild.
10405 * target.c (target_program_signals): Unconditionally delegate.
10406 * target.h (struct target_ops) <to_program_signals>: Use
10407 TARGET_DEFAULT_IGNORE.
10409 2014-02-19 Tom Tromey <tromey@redhat.com>
10411 * target-delegates.c: Rebuild.
10412 * target.c (target_pass_signals): Unconditionally delegate.
10413 * target.h (struct target_ops) <to_pass_signals>: Use
10414 TARGET_DEFAULT_IGNORE.
10416 2014-02-19 Tom Tromey <tromey@redhat.com>
10418 * target-delegates.c: Rebuild.
10419 * target.c (default_mourn_inferior): New function.
10420 (target_mourn_inferior): Unconditionally delegate.
10421 * target.h (struct target_ops) <to_mourn_inferior>: Use
10422 TARGET_DEFAULT_FUNC.
10424 2014-02-19 Tom Tromey <tromey@redhat.com>
10426 * target-delegates.c: Rebuild.
10427 * target.c (default_follow_fork): New function.
10428 (target_follow_fork): Unconditionally delegate.
10429 * target.h (struct target_ops) <to_follow_fork>: Use
10430 TARGET_DEFAULT_FUNC.
10432 2014-02-19 Tom Tromey <tromey@redhat.com>
10434 * target-delegates.c: Rebuild.
10435 * target.c (target_kill): Unconditionally delegate.
10436 * target.h (struct target_ops) <to_kill>: Use
10437 TARGET_DEFAULT_NORETURN.
10439 2014-02-19 Tom Tromey <tromey@redhat.com>
10441 * target-delegates.c: Rebuild.
10442 * target.c (target_masked_watch_num_registers): Unconditionally
10444 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10445 Use TARGET_DEFAULT_RETURN.
10447 2014-02-19 Tom Tromey <tromey@redhat.com>
10449 * target-delegates.c: Rebuild.
10450 * target.c (target_remove_mask_watchpoint): Unconditionally
10452 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10453 TARGET_DEFAULT_RETURN.
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10457 * target-delegates.c: Rebuild.
10458 * target.c (target_insert_mask_watchpoint): Unconditionally
10460 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10461 TARGET_DEFAULT_RETURN.
10463 2014-02-19 Tom Tromey <tromey@redhat.com>
10465 * target-delegates.c: Rebuild.
10466 * target.c (target_ranged_break_num_registers): Unconditionally
10468 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10469 Use TARGET_DEFAULT_RETURN.
10471 2014-02-19 Tom Tromey <tromey@redhat.com>
10473 * target-delegates.c: Rebuild.
10474 * target.c (target_fetch_registers): Unconditionally delegate.
10475 * target.h (struct target_ops) <to_fetch_registers>: Use
10476 TARGET_DEFAULT_NORETURN.
10478 2014-02-19 Tom Tromey <tromey@redhat.com>
10480 * target-delegates.c: Rebuild.
10481 * target.c (update_current_target): Don't inherit or default
10483 * target.h (struct target_ops) <to_stop>: Use
10484 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
10491 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
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
10498 to_supports_evaluation_of_breakpoint_conditions.
10499 * target.h (struct target_ops)
10500 <to_supports_evaluation_of_breakpoint_conditions>: Use
10501 TARGET_DEFAULT_RETURN.
10503 2014-02-19 Tom Tromey <tromey@redhat.com>
10505 * target-delegates.c: Rebuild.
10506 * target.c (update_current_target): Don't inherit or default
10507 to_augmented_libraries_svr4_read.
10508 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10509 Use TARGET_DEFAULT_RETURN.
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * target-delegates.c: Rebuild.
10514 * target.c (update_current_target): Don't inherit or default
10516 * target.h (struct target_ops) <to_can_use_agent>: 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
10524 * target.h (struct target_ops) <to_use_agent>: Use
10525 TARGET_DEFAULT_NORETURN.
10527 2014-02-19 Tom Tromey <tromey@redhat.com>
10529 * target-delegates.c: Rebuild.
10530 * target.c (update_current_target): Don't inherit or default
10531 to_traceframe_info.
10532 (return_null): Remove.
10533 * target.h (struct target_ops) <to_traceframe_info>: Use
10534 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_static_tracepoint_markers_by_strid.
10541 * target.h (struct target_ops)
10542 <to_static_tracepoint_markers_by_strid>: Use
10543 TARGET_DEFAULT_NORETURN.
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10547 * target-delegates.c: Rebuild.
10548 * target.c (update_current_target): Don't inherit or default
10549 to_static_tracepoint_marker_at.
10550 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10551 Use TARGET_DEFAULT_RETURN.
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10555 * target-delegates.c: Rebuild.
10556 * target.c (update_current_target): Don't inherit or default
10557 to_set_permissions.
10558 * target.h (struct target_ops) <to_set_permissions>: Use
10559 TARGET_DEFAULT_IGNORE.
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10563 * target-delegates.c: Rebuild.
10564 * target.c (update_current_target): Don't inherit or default
10565 to_get_tib_address.
10566 * target.h (struct target_ops) <to_get_tib_address>: Use
10567 TARGET_DEFAULT_NORETURN.
10569 2014-02-19 Tom Tromey <tromey@redhat.com>
10571 * target-delegates.c: Rebuild.
10572 * target.c (update_current_target): Don't inherit or default
10573 to_set_trace_notes.
10574 * target.h (struct target_ops) <to_set_trace_notes>: Use
10575 TARGET_DEFAULT_RETURN.
10577 2014-02-19 Tom Tromey <tromey@redhat.com>
10579 * target-delegates.c: Rebuild.
10580 * target.c (update_current_target): Don't initialize
10581 to_set_trace_buffer_size.
10582 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10583 TARGET_DEFAULT_IGNORE.
10585 2014-02-19 Tom Tromey <tromey@redhat.com>
10587 * target-delegates.c: Rebuild.
10588 * target.c (update_current_target): Don't inherit or default
10589 to_set_circular_trace_buffer.
10590 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10591 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
10598 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10599 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
10606 (return_minus_one): Remove.
10607 * target.h (struct target_ops)
10608 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10610 2014-02-19 Tom Tromey <tromey@redhat.com>
10612 * target-delegates.c: Rebuild.
10613 * target.c (update_current_target): Don't inherit or default
10614 to_get_raw_trace_data.
10615 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10616 TARGET_DEFAULT_NORETURN.
10618 2014-02-19 Tom Tromey <tromey@redhat.com>
10620 * target-delegates.c: Rebuild.
10621 * target.c (update_current_target): Don't inherit or default
10622 to_upload_trace_state_variables.
10623 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10624 Use TARGET_DEFAULT_RETURN.
10626 2014-02-19 Tom Tromey <tromey@redhat.com>
10628 * target-delegates.c: Rebuild.
10629 * target.c (update_current_target): Don't inherit or default
10630 to_upload_tracepoints.
10631 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10632 TARGET_DEFAULT_RETURN.
10634 2014-02-19 Tom Tromey <tromey@redhat.com>
10636 * target-delegates.c: Rebuild.
10637 * target.c (update_current_target): Don't inherit or default
10638 to_save_trace_data.
10639 * target.h (struct target_ops) <to_save_trace_data>: Use
10640 TARGET_DEFAULT_NORETURN.
10642 2014-02-19 Tom Tromey <tromey@redhat.com>
10644 * target-delegates.c: Rebuild.
10645 * target.c (update_current_target): Don't inherit or default
10646 to_get_trace_state_variable_value.
10647 * target.h (struct target_ops)
10648 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10650 2014-02-19 Tom Tromey <tromey@redhat.com>
10652 * target-delegates.c: Rebuild.
10653 * target.c (update_current_target): Don't inherit or default
10655 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10657 2014-02-19 Tom Tromey <tromey@redhat.com>
10659 * target-delegates.c: Rebuild.
10660 * target.c (update_current_target): Don't inherit or default
10662 * target.h (struct target_ops) <to_trace_stop>: Use
10663 TARGET_DEFAULT_NORETURN.
10665 2014-02-19 Tom Tromey <tromey@redhat.com>
10667 * target-delegates.c: Rebuild.
10668 * target.c (update_current_target): Don't inherit or default
10669 to_get_tracepoint_status.
10670 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10671 TARGET_DEFAULT_NORETURN.
10673 2014-02-19 Tom Tromey <tromey@redhat.com>
10675 * target-delegates.c: Rebuild.
10676 * target.c (update_current_target): Don't inherit or default
10677 to_get_trace_status.
10678 * target.h (struct target_ops) <to_get_trace_status>: Use
10679 TARGET_DEFAULT_RETURN.
10681 2014-02-19 Tom Tromey <tromey@redhat.com>
10683 * target-delegates.c: Rebuild.
10684 * target.c (update_current_target): Don't inherit or default
10686 * target.h (struct target_ops) <to_trace_start>: Use
10687 TARGET_DEFAULT_NORETURN.
10689 2014-02-19 Tom Tromey <tromey@redhat.com>
10691 * target-delegates.c: Rebuild.
10692 * target.c (update_current_target): Don't inherit or default
10693 to_trace_set_readonly_regions.
10694 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10695 Use TARGET_DEFAULT_NORETURN.
10697 2014-02-19 Tom Tromey <tromey@redhat.com>
10699 * target-delegates.c: Rebuild.
10700 * target.c (update_current_target): Don't inherit or default
10701 to_disable_tracepoint.
10702 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10703 TARGET_DEFAULT_NORETURN.
10705 2014-02-19 Tom Tromey <tromey@redhat.com>
10707 * target-delegates.c: Rebuild.
10708 * target.c (update_current_target): Don't inherit or default
10709 to_enable_tracepoint.
10710 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10711 TARGET_DEFAULT_NORETURN.
10713 2014-02-19 Tom Tromey <tromey@redhat.com>
10715 * target-delegates.c: Rebuild.
10716 * target.c (update_current_target): Don't inherit or default
10717 to_download_trace_state_variable.
10718 * target.h (struct target_ops) <to_download_trace_state_variable>:
10719 Use TARGET_DEFAULT_NORETURN.
10721 2014-02-19 Tom Tromey <tromey@redhat.com>
10723 * target-delegates.c: Rebuild.
10724 * target.c (update_current_target): Don't inherit or default
10725 to_can_download_tracepoint.
10726 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10727 TARGET_DEFAULT_RETURN.
10729 2014-02-19 Tom Tromey <tromey@redhat.com>
10731 * target-delegates.c: Rebuild.
10732 * target.c (update_current_target): Don't inherit or default
10733 to_download_tracepoint.
10734 * target.h (struct target_ops) <to_download_tracepoint>: Use
10735 TARGET_DEFAULT_NORETURN.
10737 2014-02-19 Tom Tromey <tromey@redhat.com>
10739 * target-delegates.c: Rebuild.
10740 * target.c (update_current_target): Don't inherit or default
10742 * target.h (struct target_ops) <to_trace_init>: 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_string_tracing.
10750 * target.h (struct target_ops) <to_supports_string_tracing>: 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_supports_enable_disable_tracepoint.
10758 * target.h (struct target_ops)
10759 <to_supports_enable_disable_tracepoint>: Use
10760 TARGET_DEFAULT_RETURN.
10762 2014-02-19 Tom Tromey <tromey@redhat.com>
10764 * target-delegates.c: Rebuild.
10765 * target.c (update_current_target): Don't inherit or default
10766 to_supports_multi_process.
10767 * target.h (struct target_ops) <to_supports_multi_process>: Use
10768 TARGET_DEFAULT_RETURN.
10770 2014-02-19 Tom Tromey <tromey@redhat.com>
10772 * target-delegates.c: Rebuild.
10773 * target.c (update_current_target): Don't inherit or default
10774 to_get_ada_task_ptid.
10775 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10776 TARGET_DEFAULT_FUNC.
10778 2014-02-19 Tom Tromey <tromey@redhat.com>
10780 * target-delegates.c: Rebuild.
10781 * target.c (update_current_target): Don't inherit or default
10782 to_thread_architecture.
10783 * target.h (struct target_ops) <to_thread_architecture>: Use
10784 TARGET_DEFAULT_FUNC.
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
10790 to_execution_direction.
10791 * target.h (struct target_ops) <to_execution_direction>: Use
10792 TARGET_DEFAULT_FUNC.
10794 2014-02-19 Tom Tromey <tromey@redhat.com>
10796 * target-delegates.c: Rebuild.
10797 * target.c (update_current_target): Don't inherit or default
10798 to_can_execute_reverse.
10799 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10800 TARGET_DEFAULT_RETURN.
10801 (target_can_execute_reverse): Unconditionally delegate.
10803 2014-02-19 Tom Tromey <tromey@redhat.com>
10805 * target-delegates.c: Rebuild.
10806 * target.c (update_current_target): Don't inherit or default
10808 (dummy_goto_bookmark): Remove.
10809 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10810 * target.h (struct target_ops) <to_goto_bookmark>: Use
10811 TARGET_DEFAULT_NORETURN.
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10815 * target-delegates.c: Rebuild.
10816 * target.c (update_current_target): Don't inherit or default
10818 (dummy_get_bookmark): Remove.
10819 (init_dummy_target): Don't inherit or default to_get_bookmark.
10820 * target.h (struct target_ops) <to_get_bookmark>: Use
10821 TARGET_DEFAULT_NORETURN
10823 2014-02-19 Tom Tromey <tromey@redhat.com>
10825 * target-delegates.c: Rebuild.
10826 * target.c (update_current_target): Don't inherit or default
10827 to_make_corefile_notes.
10828 (init_dummy_target): Don't initialize to_make_corefile_notes.
10829 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10830 TARGET_DEFAULT_FUNC.
10832 2014-02-19 Tom Tromey <tromey@redhat.com>
10834 * target-delegates.c: Rebuild.
10835 * target.c (update_current_target): Don't inherit or default
10836 to_find_memory_regions.
10837 (init_dummy_target): Don't initialize to_find_memory_regions.
10838 * target.h (struct target_ops) <to_find_memory_regions>: Use
10839 TARGET_DEFAULT_FUNC.
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.h (struct target_ops) <to_log_command>: Use
10847 TARGET_DEFAULT_IGNORE.
10848 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
10855 * target.h (struct target_ops) <to_pid_to_exec_file>: 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_thread_name): Unconditionally delegate.
10864 * target.h (struct target_ops) <to_thread_name>: Use
10865 TARGET_DEFAULT_RETURN.
10867 2014-02-19 Tom Tromey <tromey@redhat.com>
10869 * target-delegates.c: Rebuild.
10870 * target.c (update_current_target): Don't inherit or default
10871 to_extra_thread_info.
10872 * target.h (struct target_ops) <to_extra_thread_info>: 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
10880 * target.h (struct target_ops) <to_has_exited>: Use
10881 TARGET_DEFAULT_RETURN..
10883 2014-02-19 Tom Tromey <tromey@redhat.com>
10885 * target-delegates.c: Rebuild.
10886 * target.c (update_current_target): Don't inherit or default
10887 to_set_syscall_catchpoint.
10888 (return_one): Remove.
10889 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10890 TARGET_DEFAULT_RETURN.
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10894 * target-delegates.c: Rebuild.
10895 * target.c (update_current_target): Don't inherit or default
10896 to_insert_exec_catchpoint.
10897 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10898 TARGET_DEFAULT_RETURN.
10900 2014-01-08 Tom Tromey <tromey@redhat.com>
10902 * target-delegates.c: Rebuild.
10903 * target.c (update_current_target): Don't inherit or default
10904 to_insert_exec_catchpoint.
10905 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10906 TARGET_DEFAULT_RETURN.
10908 2014-02-19 Tom Tromey <tromey@redhat.com>
10910 * target-delegates.c: Rebuild.
10911 * target.c (update_current_target): Don't inherit or default
10912 to_remove_vfork_catchpoint.
10913 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10914 TARGET_DEFAULT_RETURN.
10916 2014-02-19 Tom Tromey <tromey@redhat.com>
10918 * target-delegates.c: Rebuild.
10919 * target.c (update_current_target): Don't inherit or default
10920 to_insert_vfork_catchpoint.
10921 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10922 TARGET_DEFAULT_RETURN.
10924 2014-02-19 Tom Tromey <tromey@redhat.com>
10926 * target-delegates.c: Rebuild.
10927 * target.c (update_current_target): Don't inherit or default
10928 to_remove_fork_catchpoint.
10929 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10930 TARGET_DEFAULT_RETURN.
10932 2014-02-19 Tom Tromey <tromey@redhat.com>
10934 * target-delegates.c: Rebuild.
10935 * target.c (update_current_target): Don't inherit or default
10936 to_insert_fork_catchpoint.
10937 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10938 TARGET_DEFAULT_RETURN.
10940 2014-02-19 Tom Tromey <tromey@redhat.com>
10942 * target-delegates.c: Rebuild.
10943 * target.c (update_current_target): Don't inherit or default
10944 to_post_startup_inferior.
10945 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10946 TARGET_DEFAULT_IGNORE.
10948 2014-02-19 Tom Tromey <tromey@redhat.com>
10950 * target-delegates.c: Rebuild.
10951 * target.c (update_current_target): Don't inherit or default
10953 * target.h (struct target_ops) <to_load>: Use
10954 TARGET_DEFAULT_NORETURN.
10956 2014-02-19 Tom Tromey <tromey@redhat.com>
10958 * target-delegates.c: Rebuild.
10959 * target.c (update_current_target): Don't inherit or default
10961 * target.h (struct target_ops) <to_terminal_info>: Use
10962 TARGET_DEFAULT_FUNC.
10964 2014-02-19 Tom Tromey <tromey@redhat.com>
10966 * target-delegates.c: Rebuild.
10967 * target.c (update_current_target): Don't inherit or default
10968 to_terminal_save_ours.
10969 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10970 TARGET_DEFAULT_IGNORE.
10972 2014-02-19 Tom Tromey <tromey@redhat.com>
10974 * target-delegates.c: Rebuild.
10975 * target.c (update_current_target): Don't inherit or default
10977 * target.h (struct target_ops) <to_terminal_ours>: Use
10978 TARGET_DEFAULT_IGNORE.
10980 2014-02-19 Tom Tromey <tromey@redhat.com>
10982 * target-delegates.c: Rebuild.
10983 * target.c (update_current_target): Don't inherit or default
10984 to_terminal_ours_for_output.
10985 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10986 TARGET_DEFAULT_IGNORE.
10988 2014-02-19 Tom Tromey <tromey@redhat.com>
10990 * target-delegates.c: Rebuild.
10991 * target.c (update_current_target): Don't inherit or default
10992 to_terminal_inferior.
10993 * target.h (struct target_ops) <to_terminal_inferior>: Use
10994 TARGET_DEFAULT_IGNORE.
10996 2014-02-19 Tom Tromey <tromey@redhat.com>
10998 * target-delegates.c: Rebuild.
10999 * target.c (update_current_target): Don't inherit or default
11001 * target.h (struct target_ops) <to_terminal_init>: Use
11002 TARGET_DEFAULT_IGNORE.
11004 2014-02-19 Tom Tromey <tromey@redhat.com>
11006 * target-delegates.c: Rebuild.
11007 * target.c (update_current_target): Don't inherit or default
11008 to_can_accel_watchpoint_condition.
11009 * target.h (struct target_ops)
11010 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11012 2014-02-19 Tom Tromey <tromey@redhat.com>
11014 * target-delegates.c: Rebuild.
11015 * target.c (update_current_target): Don't inherit or default
11016 to_region_ok_for_hw_watchpoint.
11017 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11018 Use TARGET_DEFAULT_FUNC.
11020 2014-02-19 Tom Tromey <tromey@redhat.com>
11022 * target-delegates.c: Rebuild.
11023 * target.c (update_current_target): Don't inherit or default
11024 to_watchpoint_addr_within_range.
11025 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11026 Use TARGET_DEFAULT_FUNC.
11028 2014-02-19 Tom Tromey <tromey@redhat.com>
11030 * target-delegates.c: Rebuild.
11031 * target.c (update_current_target): Don't inherit or default
11032 to_remove_watchpoint.
11033 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11034 TARGET_DEFAULT_NORETURN.
11036 2014-02-19 Tom Tromey <tromey@redhat.com>
11038 * target-delegates.c: Rebuild.
11039 * target.c (update_current_target): Don't inherit or default
11040 to_insert_watchpoint.
11041 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11042 TARGET_DEFAULT_RETURN.
11044 2014-02-19 Tom Tromey <tromey@redhat.com>
11046 * target-delegates.c: Rebuild.
11047 * target.c (update_current_target): Don't inherit or default
11048 to_remove_hw_breakpoint.
11049 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11050 TARGET_DEFAULT_RETURN.
11052 2014-02-19 Tom Tromey <tromey@redhat.com>
11054 * target-delegates.c: Rebuild.
11055 * target.c (update_current_target): Don't inherit or default
11056 to_insert_hw_breakpoint.
11057 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11058 TARGET_DEFAULT_RETURN.
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target-delegates.c: Rebuild.
11063 * target.c (update_current_target): Don't inherit or default
11064 to_can_use_hw_breakpoint.
11065 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11066 TARGET_DEFAULT_RETURN.
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11070 * target-delegates.c: Rebuild.
11071 * target.c (update_current_target): Don't inherit or default
11073 * target.h (struct target_ops) <to_files_info>: Use
11074 TARGET_DEFAULT_IGNORE.
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target-delegates.c: Rebuild.
11079 * target.c (update_current_target): Don't inherit or default
11081 * target.h (struct target_ops) <to_store>: Use
11082 TARGET_DEFAULT_NORETURN.
11084 2014-02-19 Tom Tromey <tromey@redhat.com>
11086 * target-delegates.c: Rebuild.
11087 * target.c (update_current_target): Don't inherit or default
11089 * target.h (struct target_ops) <to_post_attach>: Use
11090 TARGET_DEFAULT_IGNORE.
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11094 * target-delegates.c: Rebuild.
11095 * target.c (update_current_target): Don't inherit or default
11097 (default_rcmd): New function.
11098 (do_monitor_command): Unconditionally delegate.
11099 * target.h (struct target_ops) <to_rmcd>: Use
11100 TARGET_DEFAULT_FUNC.
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11104 * target-delegates.c: Rebuild.
11105 * target.c (init_dummy_target): Don't initialize to_attach.
11106 (target_attach): Unconditionally delegate.
11107 * target.h (struct target_ops) <to_attach>: Use
11108 TARGET_DEFAULT_FUNC.
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11112 * target-delegates.c: Rebuild.
11113 * target.c (target_detach): Unconditionally delegate.
11114 (init_dummy_target): Don't initialize to_detach.
11115 * target.h (struct target_ops) <to_detach>: Use
11116 TARGET_DEFAULT_IGNORE.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11122 (target_augmented_libraries_svr4_read): Add argument.
11123 * target.c (update_current_target): Update.
11124 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11127 2014-02-19 Tom Tromey <tromey@redhat.com>
11129 * target.h (struct target_ops) <to_call_history_range>: Add
11131 * target.c (target_call_history_range): Add argument.
11132 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11134 (record_btrace_call_history_from): Update.
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11138 * target.h (struct target_ops) <to_call_history_from>: Add
11140 * target.c (target_call_history_from): Add argument.
11141 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11146 * target.h (struct target_ops) <to_call_history>: Add argument.
11147 * target.c (target_call_history): Add argument.
11148 * record-btrace.c (record_btrace_call_history): Add 'self'
11151 2014-02-19 Tom Tromey <tromey@redhat.com>
11153 * target.h (struct target_ops) <to_insn_history_range>: Add
11155 * target.c (target_insn_history_range): Add argument.
11156 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11158 (record_btrace_insn_history_from): Update.
11160 2014-02-19 Tom Tromey <tromey@redhat.com>
11162 * target.h (struct target_ops) <to_insn_history_from>: Add
11164 * target.c (target_insn_history_from): Add argument.
11165 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11168 2014-02-19 Tom Tromey <tromey@redhat.com>
11170 * target.h (struct target_ops) <to_insn_history>: Add argument.
11171 * target.c (target_insn_history): Add argument.
11172 * record-btrace.c (record_btrace_insn_history): Add 'self'
11175 2014-02-19 Tom Tromey <tromey@redhat.com>
11177 * target.h (struct target_ops) <to_goto_record>: Add argument.
11178 * target.c (target_goto_record): Add argument.
11179 * record-full.c (record_full_goto): Add 'self' argument.
11180 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11182 2014-02-19 Tom Tromey <tromey@redhat.com>
11184 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11185 * target.c (target_goto_record_end): Add argument.
11186 * record-full.c (record_full_goto_end): Add 'self' argument.
11187 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11189 2014-02-19 Tom Tromey <tromey@redhat.com>
11191 * target.h (struct target_ops) <to_goto_record_begin>: Add
11193 * target.c (target_goto_record_begin): Add argument.
11194 * record-full.c (record_full_goto_begin): Add 'self' argument.
11195 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11198 2014-02-19 Tom Tromey <tromey@redhat.com>
11200 * target.h (struct target_ops) <to_record_is_replaying>: Add
11202 * target.c (target_record_is_replaying): Add argument.
11203 * record-full.c (record_full_is_replaying): Add 'self' argument.
11204 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11206 (record_btrace_xfer_partial, record_btrace_store_registers)
11207 (record_btrace_prepare_to_store, record_btrace_resume)
11208 (record_btrace_wait, record_btrace_decr_pc_after_break)
11209 (record_btrace_find_new_threads, record_btrace_thread_alive):
11212 2014-02-19 Tom Tromey <tromey@redhat.com>
11214 * target.h (struct target_ops) <to_delete_record>: Add argument.
11215 * target.c (target_delete_record): Add argument.
11216 * record-full.c (record_full_delete): Add 'self' argument.
11218 2014-02-19 Tom Tromey <tromey@redhat.com>
11220 * target.h (struct target_ops) <to_save_record>: Add argument.
11221 * target.c (target_save_record): Add argument.
11222 * record-full.c (record_full_save): Add 'self' argument.
11223 (record_full_save): Add 'self' argument.
11225 2014-02-19 Tom Tromey <tromey@redhat.com>
11227 * target.h (struct target_ops) <to_info_record>: Add argument.
11228 * target.c (target_info_record): Add argument.
11229 * record.c (info_record_command): Add argument.
11230 * record-full.c (record_full_info): Add 'self' argument.
11231 * record-btrace.c (record_btrace_info): Add 'self' argument.
11233 2014-02-19 Tom Tromey <tromey@redhat.com>
11235 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11236 * target.c (target_stop_recording): Add argument.
11237 * record.c (record_stop): Add argument.
11238 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11241 2014-02-19 Tom Tromey <tromey@redhat.com>
11243 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11244 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11245 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11247 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11248 (_initialize_amd64_linux_nat): Use it.
11249 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11250 (_initialize_i386_linux_nat): Use it.
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11254 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11255 * target.c (target_teardown_btrace): Add argument.
11256 * remote.c (remote_teardown_btrace): Add 'self' argument.
11257 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11259 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11262 2014-02-19 Tom Tromey <tromey@redhat.com>
11264 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11265 * target.c (target_disable_btrace): Add argument.
11266 * remote.c (remote_disable_btrace): Add 'self' argument.
11267 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11269 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11272 2014-02-19 Tom Tromey <tromey@redhat.com>
11274 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11275 * target.c (target_enable_btrace): Add argument.
11276 * remote.c (remote_enable_btrace): Add 'self' argument.
11277 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11279 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11282 2014-02-19 Tom Tromey <tromey@redhat.com>
11284 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11285 (target_can_use_agent): Add argument.
11286 * target.c (update_current_target): Update.
11287 * remote.c (remote_can_use_agent): Add 'self' argument.
11288 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11290 2014-02-19 Tom Tromey <tromey@redhat.com>
11292 * target.h (struct target_ops) <to_use_agent>: Add argument.
11293 (target_use_agent): Add argument.
11294 * target.c (update_current_target): Update.
11295 * remote.c (remote_use_agent): Add 'self' argument.
11296 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11298 2014-02-19 Tom Tromey <tromey@redhat.com>
11300 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11301 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11302 (target_traceframe_info): Add argument.
11303 * target.c (update_current_target): Update.
11304 * remote.c (remote_traceframe_info): Add 'self' argument.
11305 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11307 2014-02-19 Tom Tromey <tromey@redhat.com>
11309 * target.h (target_static_tracepoint_markers_by_strid): Add
11311 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11313 * target.c (update_current_target): Update.
11314 * remote.c (struct target_ops)
11315 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11316 * linux-nat.c (struct target_ops)
11317 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11319 2014-02-19 Tom Tromey <tromey@redhat.com>
11321 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11323 (target_static_tracepoint_marker_at): Add argument.
11324 * target.c (update_current_target): Update.
11325 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11328 2014-02-19 Tom Tromey <tromey@redhat.com>
11330 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11331 (target_set_permissions): Add argument.
11332 * target.c (update_current_target): Update.
11333 * remote.c (remote_set_permissions): Add 'self' argument.
11334 (remote_start_remote): Update.
11336 2014-02-19 Tom Tromey <tromey@redhat.com>
11338 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11339 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11340 (target_get_tib_address): Add argument.
11341 * target.c (update_current_target): Update.
11342 * remote.c (remote_get_tib_address): Add 'self' argument.
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11347 (target_set_trace_notes): Add argument.
11348 * target.c (update_current_target): Update.
11349 * remote.c (remote_set_trace_notes): Add 'self' argument.
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11353 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11355 (target_set_trace_buffer_size): Add argument.
11356 * target.c (update_current_target): Update.
11357 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11361 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11363 (target_set_circular_trace_buffer): Add argument.
11364 * target.c (update_current_target): Update.
11365 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11368 2014-02-19 Tom Tromey <tromey@redhat.com>
11370 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11372 (target_set_disconnected_tracing): Add argument.
11373 * target.c (update_current_target): Update.
11374 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11376 2014-02-19 Tom Tromey <tromey@redhat.com>
11378 * target.h (struct target_ops)
11379 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11380 (target_get_min_fast_tracepoint_insn_len): Add argument.
11381 * target.c (update_current_target): Update.
11382 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11387 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11389 (target_get_raw_trace_data): Add argument.
11390 * target.c (update_current_target): Update.
11391 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11395 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11397 (target_upload_trace_state_variables): Add argument.
11398 * target.c (update_current_target): Update.
11399 * remote.c (remote_upload_trace_state_variables): Add 'self'
11401 (remote_start_remote): Update.
11403 2014-02-19 Tom Tromey <tromey@redhat.com>
11405 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11407 (target_upload_tracepoints): Add argument.
11408 * target.c (update_current_target): Update.
11409 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11410 (remote_start_remote): Update.
11412 2014-02-19 Tom Tromey <tromey@redhat.com>
11414 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11415 (target_save_trace_data): Add argument.
11416 * target.c (update_current_target): Update.
11417 * remote.c (remote_save_trace_data): Add 'self' argument.
11419 2014-02-19 Tom Tromey <tromey@redhat.com>
11421 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11423 * target.h (struct target_ops)
11424 <to_get_trace_state_variable_value>: Add argument.
11425 (target_get_trace_state_variable_value): Add argument.
11426 * target.c (update_current_target): Update.
11427 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11429 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11433 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11434 * target.h (struct target_ops) <to_trace_find>: Add argument.
11435 (target_trace_find): Add argument.
11436 * target.c (update_current_target): Update.
11437 * remote.c (remote_trace_find): Add 'self' argument.
11438 * ctf.c (ctf_trace_find): Add 'self' argument.
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11443 (target_trace_stop): Add argument.
11444 * target.c (update_current_target): Update.
11445 * remote.c (remote_trace_stop): Add 'self' argument.
11447 2014-02-19 Tom Tromey <tromey@redhat.com>
11449 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11450 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11452 (target_get_tracepoint_status): Add argument.
11453 * target.c (update_current_target): Update.
11454 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11458 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11459 * target.h (struct target_ops) <to_get_trace_status>: Add
11461 (target_get_trace_status): Add argument.
11462 * target.c (update_current_target): Update.
11463 * remote.c (remote_get_trace_status): Add 'self' argument.
11464 (remote_start_remote, remote_can_download_tracepoint): Update.
11465 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11467 2014-02-19 Tom Tromey <tromey@redhat.com>
11469 * target.h (struct target_ops) <to_trace_start>: Add argument.
11470 (target_trace_start): Add argument.
11471 * target.c (update_current_target): Update.
11472 * remote.c (remote_trace_start): Add 'self' argument.
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11478 (target_trace_set_readonly_regions): Add argument.
11479 * target.c (update_current_target): Update.
11480 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11483 2014-02-19 Tom Tromey <tromey@redhat.com>
11485 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11487 (target_disable_tracepoint): Add argument.
11488 * target.c (update_current_target): Update.
11489 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11491 2014-02-19 Tom Tromey <tromey@redhat.com>
11493 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11495 (target_enable_tracepoint): Add argument.
11496 * target.c (update_current_target): Update.
11497 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11501 * target.h (struct target_ops) <to_download_trace_state_variable>:
11503 (target_download_trace_state_variable): Add argument.
11504 * target.c (update_current_target): Update.
11505 * remote.c (remote_download_trace_state_variable): Add 'self'
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11510 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11512 (target_can_download_tracepoint): Add argument.
11513 * target.c (update_current_target): Update.
11514 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11516 2014-02-19 Tom Tromey <tromey@redhat.com>
11518 * target.h (struct target_ops) <to_download_tracepoint>: Add
11520 (target_download_tracepoint): Add argument.
11521 * target.c (update_current_target): Update.
11522 * remote.c (remote_download_tracepoint): Add 'self' argument.
11524 2014-02-19 Tom Tromey <tromey@redhat.com>
11526 * target.h (struct target_ops) <to_trace_init>: Add argument.
11527 (target_trace_init): Add argument.
11528 * target.c (update_current_target): Update.
11529 * remote.c (remote_trace_init): Add 'self' argument.
11531 2014-02-19 Tom Tromey <tromey@redhat.com>
11533 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11534 * target.c (target_fileio_readlink): Add argument.
11535 * remote.c (remote_hostio_readlink): Add 'self' argument.
11536 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11538 2014-02-19 Tom Tromey <tromey@redhat.com>
11540 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11541 * target.c (target_fileio_unlink): Add argument.
11542 * remote.c (remote_hostio_unlink): Add 'self' argument.
11543 (remote_file_delete): Update.
11544 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11546 2014-02-19 Tom Tromey <tromey@redhat.com>
11548 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11549 * target.c (target_fileio_close): Add argument.
11550 * remote.c (remote_hostio_close): Add 'self' argument.
11551 (remote_hostio_close_cleanup): Update.
11552 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11554 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11558 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11559 * target.c (target_fileio_pread): Add argument.
11560 * remote.c (remote_hostio_pread): Add 'self' argument.
11561 (remote_bfd_iovec_pread, remote_file_get): Update.
11562 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11566 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11567 * target.c (target_fileio_pwrite): Add argument.
11568 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11569 (remote_file_put): Update.
11570 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11574 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11575 * target.c (target_fileio_open): Add argument.
11576 * remote.c (remote_hostio_open): Add 'self' argument.
11577 (remote_bfd_iovec_open): Add 'self' argument.
11578 (remote_file_put): Add 'self' argument.
11579 (remote_file_get): Add 'self' argument.
11580 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11582 2014-02-19 Tom Tromey <tromey@redhat.com>
11584 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11586 (target_can_run_breakpoint_commands): Add argument.
11587 * target.c (update_current_target): Update.
11588 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11590 (remote_insert_breakpoint): Add 'self' argument.
11591 (remote_insert_hw_breakpoint): Add 'self' argument.
11592 (remote_can_run_breakpoint_commands): Add 'self' argument.
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11596 * target.h (struct target_ops)
11597 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11598 (target_supports_evaluation_of_breakpoint_conditions): Add
11600 * target.c (update_current_target): Update.
11601 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11603 (remote_insert_breakpoint): Add 'self' argument.
11604 (remote_insert_hw_breakpoint): Add 'self' argument.
11605 (remote_supports_cond_breakpoints): Add 'self' argument.
11607 2014-02-19 Tom Tromey <tromey@redhat.com>
11609 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11611 (target_supports_string_tracing): Add argument.
11612 * target.c (update_current_target): Update.
11613 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11617 * target.h (struct target_ops)
11618 <to_supports_disable_randomization>: Add argument.
11619 * target.c (find_default_supports_disable_randomization): Add
11621 (target_supports_disable_randomization): Add argument.
11622 (find_default_supports_disable_randomization): Add 'self'
11624 * remote.c (extended_remote_supports_disable_randomization): Add
11626 (remote_supports_disable_randomization): Add 'self' argument.
11627 (extended_remote_create_inferior): Update.
11628 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11633 * target.h (struct target_ops)
11634 <to_supports_enable_disable_tracepoint>: Add argument.
11635 (target_supports_enable_disable_tracepoint): Add argument.
11636 * target.c (update_current_target): Update.
11637 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target.h (struct target_ops) <to_supports_multi_process>: Add
11644 (target_supports_multi_process): Add argument.
11645 * target.c (update_current_target): Update.
11646 * remote.c (remote_supports_multi_process): Add 'self' argument.
11647 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11649 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11654 * target.h (struct target_ops) <to_execution_direction>: Add
11656 (target_execution_direction): Add argument.
11657 * target.c (default_execution_direction): Add 'self' argument.
11658 * record-full.c (record_full_execution_direction): Add 'self'
11661 2014-02-19 Tom Tromey <tromey@redhat.com>
11663 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11665 (target_can_execute_reverse): Add argument.
11666 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11667 * record-full.c (record_full_can_execute_reverse): Add 'self'
11669 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11672 2014-02-19 Tom Tromey <tromey@redhat.com>
11674 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11675 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11677 (target_get_ada_task_ptid): Add argument.
11678 * target.c (update_current_target): Update.
11679 (default_get_ada_task_ptid): Add 'self' argument.
11680 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11681 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11682 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11684 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11686 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11688 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11690 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11691 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11696 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11697 (target_goto_bookmark): Add argument.
11698 * target.c (dummy_goto_bookmark): Add 'self' argument.
11699 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11703 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11704 (target_get_bookmark): Add argument.
11705 * target.c (dummy_get_bookmark): Add 'self' argument.
11706 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11708 2014-02-19 Tom Tromey <tromey@redhat.com>
11710 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11712 (target_make_corefile_notes): Add argument.
11713 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11714 * procfs.c (procfs_make_note_section): Add 'self' argument.
11715 (procfs_make_note_section): Add 'self' argument.
11716 (procfs_make_note_section): Add 'self' argument.
11717 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11719 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11720 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11721 * exec.c (exec_make_note_section): Add 'self' argument.
11722 (exec_make_note_section): Add 'self' argument.
11724 2014-02-19 Tom Tromey <tromey@redhat.com>
11726 * target.h (struct target_ops) <to_find_memory_regions>: Add
11728 (target_find_memory_regions): Add argument.
11729 * target.c (dummy_find_memory_regions): Add 'self' argument.
11730 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11731 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11732 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11733 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11734 * exec. (exec_do_find_memory_regions): New global.
11735 (exec_set_find_memory_regions): Rewrite.
11736 (exec_find_memory_regions): New function.
11737 (init_exec_ops): Use exec_find_memory_regions.
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11741 * target.h (struct target_ops) <to_supports_non_stop>: Add
11743 * target.c (find_default_supports_non_stop): Add argument.
11744 (target_supports_non_stop): Add argument.
11745 (find_default_supports_non_stop): Add 'self' argument.
11746 * remote.c (remote_supports_non_stop): Add 'self' argument.
11747 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11749 2014-02-19 Tom Tromey <tromey@redhat.com>
11751 * target.h (struct target_ops) <to_log_command>: Add argument.
11752 (target_log_command): Add argument.
11753 * serial.h (serial_log_command): Add 'self' argument.
11754 * serial.c (serial_log_command): Add 'self' argument.
11756 2014-02-19 Tom Tromey <tromey@redhat.com>
11758 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11759 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11761 (target_pid_to_exec_file): Add argument.
11762 * target.c (debug_to_pid_to_exec_file): Add argument.
11763 (update_current_target): Update.
11764 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11765 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11766 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11767 (linux_handle_extended_wait): Update.
11768 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11769 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11770 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11771 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11775 * target.h (struct target_ops) <to_rcmd>: Add argument.
11776 (target_rcmd): Add argument.
11777 * target.c (debug_to_rcmd): Add argument.
11778 (update_current_target, do_monitor_command): Update.
11779 * remote.c (remote_rcmd): Add 'self' argument.
11780 * monitor.c (monitor_rcmd): Add 'self' argument.
11782 2014-02-19 Tom Tromey <tromey@redhat.com>
11784 * windows-nat.c (windows_stop): Add 'self' argument.
11785 * target.h (struct target_ops) <to_stop>: Add argument.
11786 * target.c (target_stop): Add argument.
11787 (debug_to_stop): Add argument.
11788 (update_current_target): Update.
11789 * remote.c (remote_stop): Add 'self' argument.
11790 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11791 (gdbsim_cntrl_c): Update.
11792 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11793 * procfs.c (procfs_stop): Add 'self' argument.
11794 * nto-procfs.c (procfs_stop): Add 'self' argument.
11795 * monitor.c (monitor_stop): Add 'self' argument.
11796 (monitor_open): Update.
11797 * linux-nat.c (linux_nat_stop): Add argument.
11798 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11799 * gnu-nat.c (gnu_stop): Add 'self' argument.
11800 * darwin-nat.c (darwin_stop): Add 'self' argument.
11802 2014-02-19 Tom Tromey <tromey@redhat.com>
11804 * target.h (struct target_ops) <to_thread_name>: Add argument.
11805 * target.c (target_thread_name): Add argument.
11806 (update_current_target): Update.
11807 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11811 * target.h (struct target_ops) <to_extra_thread_info>: Add
11813 (target_extra_thread_info): Add argument.
11814 * target.c (update_current_target): Update.
11815 * remote.c (remote_threads_extra_info): Add 'self' argument.
11816 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11818 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11819 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11820 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11822 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11824 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11826 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11829 2014-02-19 Tom Tromey <tromey@redhat.com>
11831 * target.h (struct target_ops) <to_program_signals>: Add argument.
11832 * target.c (target_program_signals): Add argument.
11833 * remote.c (remote_program_signals): Add 'self' argument.
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11837 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11838 * target.c (target_pass_signals): Add argument.
11839 * remote.c (remote_pass_signals): Add 'self' argument.
11840 (remote_start_remote): Update.
11841 * procfs.c (procfs_pass_signals): Add 'self' argument.
11842 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11843 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11844 (linux_nat_create_inferior, linux_nat_attach): Update.
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11848 * windows-nat.c (windows_can_run): Add 'self' argument.
11849 * target.h (struct target_ops) <to_can_run>: Add argument.
11850 (target_can_run): Add argument.
11851 * target.c (debug_to_can_run): Add argument.
11852 (update_current_target): Update.
11853 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11854 * inf-child.c (inf_child_can_run): Add 'self' argument.
11855 * go32-nat.c (go32_can_run): Add 'self' argument.
11857 2014-02-19 Tom Tromey <tromey@redhat.com>
11859 * target.h (struct target_ops) <to_has_exited>: Add argument.
11860 (target_has_exited): Add argument.
11861 * target.c (debug_to_has_exited): Add argument.
11862 (update_current_target): Update.
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11866 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11868 (target_set_syscall_catchpoint): Add argument.
11869 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11871 * target.c (update_current_target): Update.
11873 2014-02-19 Tom Tromey <tromey@redhat.com>
11875 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11877 (target_remove_exec_catchpoint): Add argument.
11878 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11879 (update_current_target): Update.
11880 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11885 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11887 (target_insert_exec_catchpoint): Add argument.
11888 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11889 (update_current_target): Update.
11890 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11893 2014-02-19 Tom Tromey <tromey@redhat.com>
11895 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11897 (target_remove_vfork_catchpoint): Add argument.
11898 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11899 (update_current_target): Update.
11900 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11903 2014-02-19 Tom Tromey <tromey@redhat.com>
11905 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11907 (target_insert_vfork_catchpoint): Add argument.
11908 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11909 (update_current_target): Update.
11910 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11915 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11917 (target_remove_fork_catchpoint): Add argument.
11918 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11919 (update_current_target): Update.
11920 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11923 2014-02-19 Tom Tromey <tromey@redhat.com>
11925 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11927 (target_insert_fork_catchpoint): Add argument.
11928 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11929 (update_current_target): Update.
11930 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11935 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11937 (target_post_startup_inferior): Add argument.
11938 * target.c (debug_to_post_startup_inferior): Add argument.
11939 (update_current_target): Update.
11940 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11942 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11944 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11946 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11948 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11950 (super_post_startup_inferior): Likewise.
11951 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11953 (super_post_startup_inferior): Likewise.
11954 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11955 Add 'self' argument.
11956 (super_post_startup_inferior): Likewise.
11958 2014-02-19 Tom Tromey <tromey@redhat.com>
11960 * target.h (struct target_ops) <to_load>: Add argument.
11961 * target.c (target_load): Add argument.
11962 (debug_to_load): Add argument.
11963 (update_current_target): Update.
11964 * remote.c (remote_load): Add 'self' argument.
11965 * remote-sim.c (gdbsim_load): Add 'self' argument.
11966 * remote-mips.c (mips_load): Add 'self' argument.
11967 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11968 * monitor.c (monitor_load): Add 'self' argument.
11969 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11971 2014-02-19 Tom Tromey <tromey@redhat.com>
11973 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11974 (target_terminal_info): Add argument.
11975 * target.c (debug_to_terminal_info): Add argument.
11976 (default_terminal_info): Likewise.
11977 * inflow.c (child_terminal_info): Add 'self' argument.
11978 * inferior.h (child_terminal_info): Add 'self' argument.
11979 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11981 2014-02-19 Tom Tromey <tromey@redhat.com>
11983 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11985 (target_terminal_save_ours): Add argument.
11986 * target.c (debug_to_terminal_save_ours): Add argument.
11987 (update_current_target): Update.
11988 * inflow.c (terminal_save_ours): Add 'self' argument.
11989 * inferior.h (terminal_save_ours): Add 'self' argument.
11991 2014-02-19 Tom Tromey <tromey@redhat.com>
11993 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11994 (target_terminal_ours): Add argument.
11995 * target.c (debug_to_terminal_ours): Add argument.
11996 (update_current_target): Update.
11997 * remote.c (remote_terminal_ours): Add 'self' argument.
11998 (remote_close): Update.
11999 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12000 * inflow.c (terminal_ours): Add 'self' argument.
12001 * inferior.h (terminal_ours): Add 'self' argument.
12002 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12004 2014-02-19 Pedro Alves <palves@redhat.com>
12005 Tom Tromey <tromey@redhat.com>
12007 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12009 (target_terminal_ours_for_output): Add argument.
12010 * target.c (debug_to_terminal_ours_for_output): Add argument.
12011 (update_current_target): Update.
12012 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12013 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12014 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12016 2014-02-19 Tom Tromey <tromey@redhat.com>
12018 * target.h (struct target_ops) <to_terminal_inferior>: Add
12020 * target.c (target_terminal_inferior): Add argument.
12021 (update_current_target): Update.
12022 * remote.c (remote_terminal_inferior): Add 'self' argument.
12023 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12024 * inflow.c (terminal_inferior): Add 'self' argument.
12025 * inferior.h (terminal_inferior): Add 'self' argument.
12026 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12027 (go32_terminal_inferior): Add 'self' argument.
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12031 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12032 (target_terminal_init): Add argument.
12033 * target.c (debug_to_terminal_init): Add argument.
12034 (update_current_target): Update.
12035 * inflow.c (terminal_init_inferior): Add 'self' argument.
12036 * inferior.h (terminal_init_inferior): Add 'self' argument.
12037 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12038 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12042 * target.h (struct target_ops)
12043 <to_can_accel_watchpoint_condition>: Add argument.
12044 (target_can_accel_watchpoint_condition): Add argument.
12045 * target.c (debug_to_can_accel_watchpoint_condition): Add
12047 (update_current_target): Update.
12048 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12051 2014-02-19 Tom Tromey <tromey@redhat.com>
12053 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12055 (target_region_ok_for_hw_watchpoint): Add argument.
12056 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12057 (default_region_ok_for_hw_watchpoint): Add argument.
12058 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12059 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12061 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12063 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12065 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12067 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12069 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12071 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12072 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12074 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12075 Add 'self' argument.
12077 2014-02-19 Tom Tromey <tromey@redhat.com>
12079 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12081 (target_insert_watchpoint): Add argument.
12082 * target.c (debug_to_insert_watchpoint): Add argument.
12083 (update_current_target): Update.
12084 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12085 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12086 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12087 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12088 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12089 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12091 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12092 (procfs_insert_hw_watchpoint): Add 'self' argument.
12093 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12095 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12097 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12099 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12100 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12102 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12105 2014-02-19 Tom Tromey <tromey@redhat.com>
12107 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12109 (target_remove_watchpoint): Add argument.
12110 * target.c (debug_to_remove_watchpoint): Add argument.
12111 (update_current_target): Update.
12112 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12113 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12114 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12115 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12116 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12117 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12119 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12120 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12122 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12124 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12126 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12127 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12129 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12132 2014-02-19 Tom Tromey <tromey@redhat.com>
12134 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12136 (target_remove_hw_breakpoint): Add argument.
12137 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12138 (update_current_target): Update.
12139 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12140 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12142 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12143 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12145 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12148 2014-02-19 Tom Tromey <tromey@redhat.com>
12150 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12152 (target_insert_hw_breakpoint): Add argument.
12153 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12154 (update_current_target): Update.
12155 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12156 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12158 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12159 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12160 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12162 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12165 2014-02-19 Tom Tromey <tromey@redhat.com>
12167 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12169 (target_can_use_hardware_watchpoint): Add argument.
12170 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12171 (update_current_target): Update.
12172 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12174 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12176 * remote.c (remote_check_watch_resources): Add 'self' argument.
12177 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12178 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12180 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12181 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12183 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12185 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12187 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12189 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12191 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12193 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12194 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12196 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12201 * target.h (struct target_ops) <to_post_attach>: Add argument.
12202 (target_post_attach): Add argument.
12203 * target.c (debug_to_post_attach): Add argument.
12204 (update_current_target): Update.
12205 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12206 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12207 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12208 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12209 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * windows-nat.c (windows_close): Add 'self' argument.
12214 * tracepoint.c (tfile_close): Add 'self' argument.
12215 * target.h (struct target_ops) <to_close>: Add argument.
12216 * target.c (target_close): Add argument.
12217 (update_current_target): Update.
12218 * remote.c (remote_close): Add 'self' argument.
12219 * remote-sim.c (gdbsim_close): Add 'self' argument.
12220 * remote-mips.c (mips_close): Add 'self' argument.
12221 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12222 * record-full.c (record_full_close): Add 'self' argument.
12223 * record-btrace.c (record_btrace_close): Add 'self' argument.
12224 * monitor.h (monitor_close): Add 'self' argument.
12225 * monitor.c (monitor_close): Add 'self' argument.
12226 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12227 * linux-nat.c (linux_nat_close): Add argument.
12228 * go32-nat.c (go32_close): Add 'self' argument.
12229 * exec.c (exec_close_1): Add 'self' argument.
12230 * ctf.c (ctf_close): Add 'self' argument.
12231 * corelow.c (core_close): Add 'self' argument.
12232 (core_close_cleanup): Update.
12233 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12234 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12236 2014-02-19 Tom Tromey <tromey@redhat.com>
12238 * remote.c (remote_load): New function.
12239 (init_remote_ops): Use it.
12241 2014-02-19 Tom Tromey <tromey@redhat.com>
12243 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12245 * common/linux-btrace.h (linux_supports_btrace): Update.
12246 * remote.c (remote_supports_btrace): Add "self" argument.
12247 * target-delegates.c: Rebuild.
12248 * target.c (target_supports_btrace): Remove.
12249 * target.h (struct target_ops) <to_supports_btrace>: Add
12250 target_ops argument.
12251 (target_supports_btrace): New define.
12253 2014-02-19 Tom Tromey <tromey@redhat.com>
12255 * record-full.c (record_full_beneath_to_resume_ops)
12256 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12257 (record_full_beneath_to_wait)
12258 (record_full_beneath_to_store_registers_ops)
12259 (record_full_beneath_to_store_registers)
12260 (record_full_beneath_to_xfer_partial_ops)
12261 (record_full_beneath_to_xfer_partial)
12262 (record_full_beneath_to_insert_breakpoint_ops)
12263 (record_full_beneath_to_insert_breakpoint)
12264 (record_full_beneath_to_remove_breakpoint_ops)
12265 (record_full_beneath_to_remove_breakpoint)
12266 (record_full_beneath_to_stopped_by_watchpoint)
12267 (record_full_beneath_to_stopped_data_address)
12268 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12269 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12270 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12271 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12272 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12273 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12274 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12275 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12276 (record_full_resume, record_full_wait_1)
12277 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12278 (record_full_store_registers, record_full_xfer_partial)
12279 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12280 (record_full_async, record_full_core_xfer_partial): Use target
12282 * target-delegates.c: Rebuild.
12283 * target.c (current_xfer_partial): Remove.
12284 (update_current_target): Do not INHERIT or de_fault
12285 to_insert_breakpoint, to_remove_breakpoint,
12286 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12287 to_is_async_p, to_async. Do not set to_xfer_partial field.
12288 (default_xfer_partial): Simplify.
12289 (current_xfer_partial): Remove.
12290 (target_wait, target_resume): Simplify.
12291 (find_default_can_async_p, find_default_is_async_p): Update.
12292 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12293 to_xfer_partial, to_stopped_by_watchpoint,
12294 to_stopped_data_address.
12295 (target_store_registers): Simplify.
12296 (forward_target_remove_breakpoint)
12297 (forward_target_insert_breakpoint): Remove.
12298 (target_remove_breakpoint, target_insert_breakpoint)
12299 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12300 * target.h (struct target_ops) <to_resume, to_wait,
12301 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12302 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12303 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12305 (forward_target_remove_breakpoint)
12306 (forward_target_insert_breakpoint): Remove.
12307 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12309 (record_btrace_insert_breakpoint): Delegate directly.
12311 2014-02-19 Tom Tromey <tromey@redhat.com>
12314 * target-delegates.c: New file.
12315 * target.c: Include target-delegates.c.
12316 (init_dummy_target): Call install_dummy_methods.
12317 (complete_target_initialization): Call install_delegators.
12318 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12319 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12320 * make-target-delegates: New file.
12322 2014-02-19 Tom Tromey <tromey@redhat.com>
12324 * record.c (find_record_target): Use find_target_at.
12325 * target.c (find_target_at): New function.
12326 * target.h (find_target_at): Declare.
12328 2014-02-19 Tom Tromey <tromey@redhat.com>
12330 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12331 Add 'ops' argument.
12332 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12334 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12335 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12337 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12339 * linux-nat.c (save_sigtrap): Update.
12340 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12341 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12342 (linux_nat_close): Update.
12343 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12345 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12347 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12348 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12349 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12350 (tmp_to_async): Add 'ops' argument.
12351 (record_full_stopped_by_watchpoint, record_full_async)
12352 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12354 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12355 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12356 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12357 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12358 (remote_is_async_p, remote_async): Add 'ops' argument.
12359 (remote_stopped_data_address): Update.
12360 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12361 * target.c (update_current_target)
12362 (find_default_can_async_p, find_default_is_async_p): Update.
12363 (init_dummy_target): Update.
12364 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12365 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12366 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12367 (target_can_async_p, target_is_async_p, target_async)
12368 (target_stopped_by_watchpoint): Update.
12370 2014-02-19 Yao Qi <yao@codesourcery.com>
12373 * gdbarch.sh: Remove startup_gdbarch.
12374 * gdbarch.c: Regenerated.
12375 * gdbarch.h: Likewise.
12377 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12379 * rl78-tdep.c (rl78_g10_register_name): New function.
12380 (rl78_return_value): Add g10 support.
12381 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12384 2014-02-17 Doug Evans <xdje42@gmail.com>
12386 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12387 (SUBDIR_GUILE_SRCS): Ditto.
12388 (scm-gsmob.o): Ditto.
12390 2014-02-17 Yao Qi <yao@codesourcery.com>
12392 * gnu-nat.c (ILL_RPC): Declare defined function.
12394 2014-02-17 Yao Qi <yao@codesourcery.com>
12396 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12397 mach_msg_type_number_t.
12398 (gnu_write_inferior): Likewise.
12400 2014-02-17 Yao Qi <yao@codesourcery.com>
12402 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12404 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12405 (inf_validate_procs, inf_signal): Likewise.
12406 (S_exception_raise_request): Likewise.
12407 (do_mach_notify_dead_name): Likewise.
12408 (steal_exc_port): Likewise.
12409 (gnu_read_inferior): Change 'copy_count''s type to
12410 mach_msg_type_number_t.
12411 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12414 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12416 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12417 flag. Adjust all users; in particular...
12418 (gnu_wait): ..., don't decrement its value in here...
12419 (gnu_create_inferior): ..., and instead set the flag in here,
12420 around the startup_inferior call, and call that one with
12421 START_INFERIOR_TRAPS_EXPECTED.
12423 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12424 (ILL_RPC): ... new macro.
12425 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12426 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12427 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12428 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12429 functions with ILL_RPC macro.
12430 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12431 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12432 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12433 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12434 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12435 (S_proc_getlogin_reply, S_proc_getsid_reply)
12436 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12437 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12438 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12439 (S_proc_getnports_reply, S_proc_is_important_reply)
12440 (S_proc_get_code_reply): New stub functions, generated with
12443 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12444 collected the type check structures.
12446 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12448 2014-02-14 Doug Evans <dje@google.com>
12450 * target.c (target_write_partial): Fix result type.
12452 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12454 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12455 the proper offsets to access fpregset_t.
12457 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12459 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12460 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12461 * h8300-tdep.c (setmachinelist): Remove global.
12462 * hppa-tdep.c (hppa_sigtramp): Remove global.
12463 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12464 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12465 * ravenscar-thread.c (update_target_observer): Remove global.
12466 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12468 2014-02-12 Tom Tromey <tromey@redhat.com>
12470 * common/rsp-low.c: Update comments.
12471 * common/rsp-low.h: Update comments.
12473 2014-02-12 Tom Tromey <tromey@redhat.com>
12475 * common/rsp-low.c (convert_ascii_to_int): Remove.
12476 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12478 2014-02-12 Tom Tromey <tromey@redhat.com>
12480 * common/rsp-low.h (unhexify): Don't declare.
12481 * common/rsp-low.c (unhexify): Remove.
12483 2014-02-12 Tom Tromey <tromey@redhat.com>
12485 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12486 * common/rsp-low.c (convert_int_to_ascii): Remove.
12488 2014-02-12 Tom Tromey <tromey@redhat.com>
12490 * common/rsp-low.h (hexify): Don't declare.
12491 * common/rsp-low.c (hexify): Remove.
12493 2014-02-12 Tom Tromey <tromey@redhat.com>
12495 * common/rsp-low.c (hexify): Never take strlen of argument.
12497 2014-02-12 Tom Tromey <tromey@redhat.com>
12499 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12500 * remote.c (extended_remote_run, remote_rcmd)
12501 (remote_download_trace_state_variable, remote_save_trace_data)
12502 (remote_set_trace_notes): Update.
12503 * tracepoint.c (encode_source_string, tfile_write_status)
12504 (tfile_write_uploaded_tsv): Update.
12506 2014-02-12 Tom Tromey <tromey@redhat.com>
12508 * tracepoint.c: Include rsp-low.h.
12509 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12510 * remote.c: Include rsp-low.h.
12511 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12512 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12513 (remote_unescape_input): Move to common/rsp-low.c.
12514 * common/rsp-low.h: New file.
12515 * common/rsp-low.c: New file.
12516 * Makefile.in (SFILES): Add common/rsp-low.c.
12517 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12518 (COMMON_OBS): Add rsp-low.o.
12519 (rsp-low.o): New target.
12521 2014-02-12 Tom Tromey <tromey@redhat.com>
12523 * utils.h: Include print-utils.h.
12524 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12525 (int_string, core_addr_to_string, core_addr_to_string_nz)
12526 (hex_string, hex_string_custom): Don't declare.
12527 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12528 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12529 (hex_string_custom, int_string, core_addr_to_string)
12530 (core_addr_to_string_nz, host_address_to_string): Move to
12531 common/print-utils.c.
12532 * common/print-utils.h: New file.
12533 * common/print-utils.c: New file
12534 * Makefile.in (SFILES): Add common/print-utils.c.
12535 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12536 (COMMON_OBS): Add print-utils.o.
12537 (print-utils.o): New target.
12539 2014-02-12 Tom Tromey <tromey@redhat.com>
12541 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12543 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12545 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12547 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12549 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12550 if a PT_IO ptrace request returns sucessfully but indicates that 0
12551 bytes were transferred.
12553 2014-02-12 Pedro Alves <palves@redhat.com>
12554 Kevin Buettner <kevinb@redhat.com>
12556 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12557 TYPE_INSTANCE_FLAG_CODE_SPACE.
12559 2014-02-12 Pedro Alves <palves@redhat.com>
12561 * h8300-tdep.c (pseudo_from_raw_register)
12562 (raw_from_pseudo_register): New functions.
12563 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12566 2014-02-12 Pedro Alves <palves@redhat.com>
12568 * h8300-tdep.c (h8300_register_sim_regno): New function.
12569 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12570 gdbarch_register_sim_regno hook.
12572 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12574 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12576 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12578 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12580 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12582 * obsd-tdep.h (obsd_init_abi): New prototype.
12583 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12584 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12585 (obsd_init_abi): New functions.
12586 * i386obsd-tdep.c: Include "obsd-tdep.h".
12587 (i386obsd_init_abi): Call obsd_init_abi.
12588 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12589 (amd64obsd_init_abi): Call obsd_init_abi.
12590 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12591 obsd-tdep.c to gdb_target_obs.
12593 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12595 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12596 double float arguments to 16-byte in the argument slots.
12598 2014-02-11 Doug Evans <xdje42@gmail.com>
12600 * configure.ac: Don't crash if pkg-config is not found and guile
12601 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12603 * configure: Regenerate.
12605 2014-02-11 Yao Qi <yao@codesourcery.com>
12607 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12608 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12609 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12610 * gnu-nat.c (gnu_xfer_memory): Likewise.
12611 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12612 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12613 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12614 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12616 2014-02-11 Yao Qi <yao@codesourcery.com>
12618 * target.h (enum target_xfer_error): Rename to ...
12619 (enum target_xfer_status): ... it. New. All users updated.
12620 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12622 (TARGET_XFER_STATUS_ERROR_P): New macro.
12623 (target_xfer_error_to_string): Remove declaration.
12624 (target_xfer_status_to_string): Declare.
12625 (target_xfer_partial_ftype): Adjust it.
12626 (struct target_ops) <to_xfer_partial>: Return
12627 target_xfer_status. Add argument xfered_len. Update
12629 * target.c (target_xfer_error_to_string): Rename to ...
12630 (target_xfer_status_to_string): ... it. New. All callers
12632 (target_read_live_memory): Likewise. Call target_xfer_partial
12633 instead of target_read.
12634 (memory_xfer_live_readonly_partial): Return
12635 target_xfer_status. Add argument xfered_len.
12636 (raw_memory_xfer_partial): Likewise.
12637 (memory_xfer_partial_1): Likewise.
12638 (memory_xfer_partial): Likewise.
12639 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12640 properly. Update debug message.
12641 (default_xfer_partial, current_xfer_partial): Likewise.
12642 (target_write_partial): Likewise.
12643 (target_read_partial): Likewise. All callers updated.
12644 (read_whatever_is_readable): Likewise.
12645 (target_write_with_progress): Likewise.
12646 (target_read_alloc_1): Likewise.
12648 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12649 * auxv.c (procfs_xfer_auxv): Likewise.
12650 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12651 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12652 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12653 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12654 * corefile.c (read_memory): Adjust.
12655 * corelow.c (core_xfer_partial): Likewise.
12656 * ctf.c (ctf_xfer_partial): Likewise.
12657 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12659 (darwin_xfer_partial): Likewise.
12660 * exec.c (section_table_xfer_memory_partial): Likewise. All
12662 (exec_xfer_partial): Likewise.
12663 * exec.h (section_table_xfer_memory_partial): Update
12665 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12667 (gnu_xfer_partial): Likewise.
12668 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12669 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12670 (ia64_hpux_xfer_solib_got): Likewise.
12671 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12672 type of 'partial_len' to ULONGEST.
12673 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12674 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12675 (linux_nat_xfer_partial): Likewise.
12676 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12677 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12678 * monitor.c (monitor_xfer_memory): Likewise.
12679 (monitor_xfer_partial): Likewise.
12680 * procfs.c (procfs_xfer_partial): Likewise.
12681 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12682 * record-full.c (record_full_xfer_partial): Likewise.
12683 (record_full_core_xfer_partial): Likewise.
12684 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12685 (gdbsim_xfer_partial): Likewise.
12686 * remote.c (remote_write_bytes_aux): Likewise. All callers
12688 (remote_write_bytes, remote_read_bytes): Likewise. All
12690 (remote_flash_erase): Likewise. All callers updated.
12691 (remote_write_qxfer): Likewise. All callers updated.
12692 (remote_read_qxfer): Likewise. All callers updated.
12693 (remote_xfer_partial): Likewise.
12694 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12695 (rs6000_xfer_shared_libraries): Likewise.
12696 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12697 (sol_thread_xfer_partial): Likewise.
12698 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12699 (sparc_xfer_partial): Likewise.
12700 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12702 (spu_xfer_partial): Likewise.
12703 * spu-multiarch.c (spu_xfer_partial): Likewise.
12704 * tracepoint.c (tfile_xfer_partial): Likewise.
12705 * windows-nat.c (windows_xfer_memory): Likewise.
12706 (windows_xfer_shared_libraries): Likewise.
12707 (windows_xfer_partial): Likewise.
12708 * valprint.c: Replace 'target_xfer_error' with
12709 'target_xfer_status' in comments.
12711 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12713 Checked in by Joel Brobecker <brobecker@adacore.com>.
12714 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12716 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12718 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12719 function parameters.
12721 2014-02-10 Will Newton <will.newton@linaro.org>
12723 * elfread.c (elf_rel_plt_read): Look for a .got section if
12724 looking up .got.plt fails.
12725 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12726 on address passed to elf_gnu_ifunc_record_cache.
12727 (elf_gnu_ifunc_resolve_addr): Likewise.
12728 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12730 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12732 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12733 (X_RETTURN): New macro.
12734 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12736 * sparc64-tdep.c (sparc64_init_abi): Hook
12737 sparc_in_function_epilogue_p.
12739 2014-02-10 Gary Benson <gbenson@redhat.com>
12741 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12742 Rename name_matcher to symbol_matcher.
12744 2014-02-10 Gary Benson <gbenson@redhat.com>
12746 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12747 Use expand_symtabs_file_matcher_ftype and
12748 expand_symtabs_symbol_matcher_ftype.
12750 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12752 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12753 (struct ada_symbol_cache): New.
12754 (ada_free_symbol_cache): Forward declare.
12755 (struct ada_pspace_data): New.
12756 (ada_pspace_data_handle): New static global.
12757 (get_ada_pspace_data, ada_pspace_data_cleanup)
12758 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12759 (cache_space, cache): Delete, now folded inside struct
12761 (ada_get_symbol_cache): New function.
12762 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12764 (_initialize_ada_language): Remove initialization of cache_space.
12765 Move call to observer_attach_inferior_exit up, grouping it
12766 with the other observer registrations inside this function.
12767 Rename command to be more general. Add call to
12768 register_program_space_data_with_cleanup.
12770 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12772 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12773 ada_new_objfile_observer.
12774 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12775 (_initialize_tasks): Update uses of ada_new_objfile_observer
12776 and ada_tasks_normal_stop_observer.
12778 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12780 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12781 returned by the 'Length attribute to integer.
12783 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12785 * ada-lang.c (_initialize_ada_language): Initialize
12786 cache_space obstack.
12788 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12790 * ada-lang.c (HASH_SIZE): New macro.
12791 (struct cache_entry): New type.
12792 (cache_space, cache): New static globals.
12793 (ada_clear_symbol_cache, find_entry): New functions.
12794 (lookup_cached_symbol, cache_symbol): Implement.
12795 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12796 (_initialize_ada_language): Attach ada_new_objfile_observer
12797 and ada_free_objfile_observer.
12799 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12801 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12802 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12803 struct block * parameter.
12804 (ada_lookup_symbol_list_worker): Constify local variable "block".
12805 Remove cast which is no longer necessary.
12807 2014-02-10 Doug Evans <xdje42@gmail.com>
12809 Add Guile as an extension language.
12810 * NEWS: Mention Guile scripting.
12811 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12812 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12813 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12814 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12815 (CLIBS): Add GUILE_LIBS.
12816 (install-guile): New rule.
12817 (guile.o): New rule.
12818 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12819 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12820 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12821 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12822 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12823 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12824 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12825 * configure.ac: New option --with-guile.
12826 * configure: Regenerate.
12827 * config.in: Regenerate.
12828 * auto-load.c: Remove #include "python/python.h". Add #include
12829 "gdb/section-scripts.h".
12830 (source_section_scripts): Handle Guile scripts.
12831 (_initialize_auto_load): Add name of Guile objfile script to
12832 scripts-directory help text.
12833 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12834 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12835 (struct breakpoint): New member scm_bp_object.
12836 * defs.h (enum command_control_type): New value guile_control.
12837 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12839 (show_user): Update comment.
12840 (_initialize_cli_cmds): Update help text for "show user". Update help
12841 text for max-user-call-depth.
12842 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12844 (multi_line_command_p): Add guile_control.
12845 (print_command_lines): Handle guile_control.
12846 (execute_control_command, recurse_read_control_structure): Ditto.
12847 (process_next_line): Recognize "guile" commands.
12848 * disasm.c (gdb_disassemble_info): Make non-static.
12849 * disasm.h: #include "dis-asm.h".
12850 (struct gdbarch): Add forward decl.
12851 (gdb_disassemble_info): Declare.
12852 * extension.c: #include "guile/guile.h".
12853 (extension_languages): Add guile.
12854 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12855 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12856 * gdbtypes.c (get_unsigned_type_max): New function.
12857 (get_signed_type_minmax): New function.
12858 * gdbtypes.h (get_unsigned_type_max): Declare.
12859 (get_signed_type_minmax): Declare.
12860 * guile/README: New file.
12861 * guile/guile-internal.h: New file.
12862 * guile/guile.c: New file.
12863 * guile/guile.h: New file.
12864 * guile/scm-arch.c: New file.
12865 * guile/scm-auto-load.c: New file.
12866 * guile/scm-block.c: New file.
12867 * guile/scm-breakpoint.c: New file.
12868 * guile/scm-disasm.c: New file.
12869 * guile/scm-exception.c: New file.
12870 * guile/scm-frame.c: New file.
12871 * guile/scm-gsmob.c: New file.
12872 * guile/scm-iterator.c: New file.
12873 * guile/scm-lazy-string.c: New file.
12874 * guile/scm-math.c: New file.
12875 * guile/scm-objfile.c: New file.
12876 * guile/scm-ports.c: New file.
12877 * guile/scm-pretty-print.c: New file.
12878 * guile/scm-safe-call.c: New file.
12879 * guile/scm-string.c: New file.
12880 * guile/scm-symbol.c: New file.
12881 * guile/scm-symtab.c: New file.
12882 * guile/scm-type.c: New file.
12883 * guile/scm-utils.c: New file.
12884 * guile/scm-value.c: New file.
12885 * guile/lib/gdb.scm: New file.
12886 * guile/lib/gdb/boot.scm: New file.
12887 * guile/lib/gdb/experimental.scm: New file.
12888 * guile/lib/gdb/init.scm: New file.
12889 * guile/lib/gdb/iterator.scm: New file.
12890 * guile/lib/gdb/printing.scm: New file.
12891 * guile/lib/gdb/types.scm: New file.
12892 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12893 (VPATH): Add $(GUILE_SRCDIR).
12894 (GUILE_DIR): New variable.
12895 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12896 (all): Add stamp-guile dependency.
12897 (stamp-guile): New rule.
12898 (clean-guile, install-guile, uninstall-guile): New rules.
12899 (install-only): Add install-guile dependency.
12900 (uninstall): Add uninstall-guile dependency.
12901 (clean): Add clean-guile dependency.
12903 2014-02-09 Doug Evans <xdje42@gmail.com>
12905 Revert this patch (which I approved, mea culpa).
12907 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12909 * Makefile.in (all-lib): Remove.
12910 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12912 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12914 Fix Python stack corruption.
12915 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12918 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12920 * Makefile.in (all-lib): Remove.
12921 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12923 2014-02-07 Doug Evans <dje@google.com>
12925 * extension-priv.h (extension_language_script_ops): Add comment.
12926 (extension_language_ops): Add comment.
12927 (active_ext_lang_state): Fix typo in comment.
12929 2014-02-07 Pedro Alves <palves@redhat.com>
12931 PR breakpoints/16292
12932 * infrun.c (handle_signal_stop) <signal arrives while stepping
12933 over a breakpoint>: Switch back to the stepping thread.
12935 2014-02-07 Yao Qi <yao@codesourcery.com>
12937 * target.c (target_xfer_partial): Return zero if LEN is zero.
12939 2014-02-07 Yao Qi <yao@codesourcery.com>
12941 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12942 (ld_so_xfer_auxv): Likewise.
12943 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12944 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12945 * corelow.c (core_xfer_partial): Likewise.
12946 * ctf.c (ctf_xfer_partial): Likewise.
12947 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12948 (darwin_xfer_partial): Likewise.
12949 * exec.c (exec_xfer_partial): Likewise.
12950 * gnu-nat.c (gnu_xfer_partial): Likewise.
12951 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12952 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12953 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12954 * linux-nat.c (linux_xfer_siginfo): Likewise.
12955 (linux_proc_xfer_spu): Likewise.
12956 * procfs.c (procfs_xfer_partial): Likewise.
12957 * record-full.c (record_full_xfer_partial): Likewise.
12958 (record_full_core_xfer_partial): Likewise.
12959 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12960 * remote.c (remote_write_qxfer): Likewise.
12961 (remote_write_qxfer, remote_read_qxfer): Likewise.
12962 (remote_xfer_partial): Likewise.
12963 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12964 (rs6000_xfer_shared_libraries): Likewise.
12965 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12966 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12967 (spu_xfer_partial): Likewise.
12968 * target.c (memory_xfer_partial_1): Likewise.
12969 * tracepoint.c (tfile_xfer_partial): Likewise.
12970 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12971 (windows_xfer_partial): Likewise.
12973 2014-02-07 Yao Qi <yao@codesourcery.com>
12975 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12977 (core_xfer_shared_libraries_aix): Likewise.
12978 * gdbarch.c, gdbarch.h: Regenerated.
12979 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12980 ULONGEST. Change 'len_avail' type to ULONGEST.
12981 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12982 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12984 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12986 2014-02-07 Yao Qi <yao@codesourcery.com>
12988 * corefile.c (memory_error): Get 'exception' from ERR and pass
12989 'exception' to throw_error.
12991 2014-02-06 Doug Evans <xdje42@gmail.com>
12993 * configure.ac (libpython checking): Remove all but python.o from
12994 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12995 * configure: Regenerate.
12997 * Makefile.in (SFILES): Add extension.c.
12998 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12999 (COMMON_OBS): Add extension.o.
13000 * extension.h: New file.
13001 * extension-priv.h: New file.
13002 * extension.c: New file.
13004 * python/python-internal.h: #include "extension.h".
13005 (gdbpy_auto_load_enabled): Declare.
13006 (gdbpy_apply_val_pretty_printer): Declare.
13007 (gdbpy_apply_frame_filter): Declare.
13008 (gdbpy_preserve_values): Declare.
13009 (gdbpy_breakpoint_cond_says_stop): Declare.
13010 (gdbpy_breakpoint_has_cond): Declare.
13011 (void source_python_script_for_objfile): Delete.
13012 * python/python.c: #include "extension-priv.h".
13013 Delete inclusion of "observer.h".
13014 (extension_language_python): Moved here and renamed from
13015 script_language_python in py-auto-load.c.
13016 Redefined to be of type extension_language_defn.
13017 (python_extension_script_ops): New global.
13018 (python_extension_ops): New global.
13019 (struct python_env): New member previous_active.
13020 (restore_python_env): Call restore_active_ext_lang.
13021 (ensure_python_env): Call set_active_ext_lang.
13022 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13024 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13026 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13028 (gdbpy_eval_from_control_command): Renamed from
13029 eval_python_from_control_command, made static. New arg extlang.
13030 (gdbpy_source_script) Renamed from source_python_script, made static.
13032 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13033 result to int. New arg extlang.
13034 (gdbpy_source_objfile_script): Renamed from
13035 source_python_script_for_objfile, made static. New arg extlang.
13036 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13037 static. New args extlang, extlang_printers. Change result type to
13039 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13040 static. New arg extlang. Rename arg printers to extlang_printers
13041 and change type to ext_lang_type_printers *.
13042 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13043 static. Replace argument arg with extlang, extlang_printers.
13044 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13045 (!HAVE_PYTHON, source_python_script): Delete.
13046 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13047 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13048 (!HAVE_PYTHON, start_type_printers): Delete.
13049 (!HAVE_PYTHON, apply_type_printers): Delete.
13050 (!HAVE_PYTHON, free_type_printers): Delete.
13051 (_initialize_python): Delete call to observer_attach_before_prompt.
13052 (finalize_python): Set/restore active extension language.
13053 (gdbpy_finish_initialization) Renamed from
13054 finish_python_initialization, made static. New arg extlang.
13055 (gdbpy_initialized): New function.
13056 * python/python.h: #include "extension.h". Delete #include
13057 "value.h", "mi/mi-cmds.h".
13058 (extension_language_python): Declare.
13059 (GDBPY_AUTO_FILE_NAME): Delete.
13060 (enum py_bt_status): Moved to extension.h and renamed to
13061 ext_lang_bt_status.
13062 (enum frame_filter_flags): Moved to extension.h.
13063 (enum py_frame_args): Moved to extension.h and renamed to
13064 ext_lang_frame_args.
13065 (finish_python_initialization): Delete.
13066 (eval_python_from_control_command): Delete.
13067 (source_python_script): Delete.
13068 (apply_val_pretty_printer): Delete.
13069 (apply_frame_filter): Delete.
13070 (preserve_python_values): Delete.
13071 (gdbpy_script_language_defn): Delete.
13072 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13073 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13075 * auto-load.c: #include "extension.h".
13076 (GDB_AUTO_FILE_NAME): Delete.
13077 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13078 (script_language_gdb): Delete, moved to extension.c and renamed to
13079 extension_language_gdb.
13080 (source_gdb_script_for_objfile): Delete.
13081 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13082 (loaded_script): Change type of language member to
13083 struct extension_language_defn *.
13084 (init_loaded_scripts_info): Initialize
13085 unsupported_script_warning_printed.
13086 (maybe_add_script): Make static. Change type of language arg to
13087 struct extension_language_defn *.
13088 (clear_section_scripts): Reset unsupported_script_warning_printed.
13089 (auto_load_objfile_script_1): Rewrite to use extension language API.
13090 (auto_load_objfile_script): Make public. Remove support-compiled-in
13091 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13092 (source_section_scripts): Rewrite to use extension language API.
13093 (load_auto_scripts_for_objfile): Rewrite to use
13094 auto_load_scripts_for_objfile.
13095 (collect_matching_scripts_data): Change type of language member to
13096 struct extension_language_defn *.
13097 (auto_load_info_scripts): Change type of language arg to
13098 struct extension_language_defn *.
13099 (unsupported_script_warning_print): New function.
13100 (script_not_found_warning_print): Make static.
13101 (_initialize_auto_load): Rewrite construction of scripts-directory
13103 * auto-load.h (struct objfile): Add forward decl.
13104 (struct script_language): Delete.
13105 (struct auto_load_pspace_info): Add forward decl.
13106 (struct extension_language_defn): Add forward decl.
13107 (maybe_add_script): Delete.
13108 (auto_load_objfile_script): Declare.
13109 (script_not_found_warning_print): Delete.
13110 (auto_load_info_scripts): Update prototype.
13111 (auto_load_gdb_scripts_enabled): Declare.
13112 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13113 auto_load_python_scripts_enabled and made public.
13114 (script_language_python): Delete, moved to python.c.
13115 (gdbpy_script_language_defn): Delete.
13116 (info_auto_load_python_scripts): Update to use
13117 extension_language_python.
13119 * breakpoint.c (condition_command): Replace call to
13120 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13121 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13122 with call to breakpoint_ext_lang_cond_says_stop.
13123 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13124 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13125 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13126 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13128 (local_setattro): Print name of extension language with existing
13131 * valprint.c (val_print, value_print): Update to call
13132 apply_ext_lang_val_pretty_printer.
13133 * cp-valprint.c (cp_print_value): Update call to
13134 apply_ext_lang_val_pretty_printer.
13135 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13136 (gdbpy_apply_val_pretty_printer): Renamed from
13137 apply_val_pretty_printer. New arg extlang.
13138 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13140 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13141 extension language API.
13142 * cli/cli-script.c (execute_control_command): Update to call
13143 eval_ext_lang_from_control_command.
13145 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13146 enum ext_lang_bt_status values. Update call to
13147 apply_ext_lang_frame_filter.
13148 (mi_cmd_stack_list_locals): Ditto.
13149 (mi_cmd_stack_list_args): Ditto.
13150 (mi_cmd_stack_list_variables): Ditto.
13151 * mi/mi-main.c: Delete #include "python/python-internal.h".
13152 Add #include "extension.h".
13153 (mi_cmd_list_features): Replace reference to python internal variable
13154 gdb_python_initialized with call to ext_lang_initialized_p.
13156 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13157 Update to use enum ext_lang_frame_args. Update to call
13158 apply_ext_lang_frame_filter.
13159 * python/py-framefilter.c (extract_sym): Update to use enum
13160 ext_lang_bt_status.
13161 (extract_value, py_print_type, py_print_value): Ditto.
13162 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13163 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13164 (py_print_frame): Ditto.
13165 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13166 New arg extlang. Update to use enum ext_lang_bt_status.
13168 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13169 finish_python_initialization. Replace with call to
13170 finish_ext_lang_initialization.
13172 * typeprint.c (do_free_global_table): Update to call
13173 free_ext_lang_type_printers.
13174 (create_global_typedef_table): Update to call
13175 start_ext_lang_type_printers.
13176 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13177 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13178 (type_print_options): Change type of global_printers from "void *"
13179 to "struct ext_lang_type_printers *".
13181 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13182 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13183 (gdbpy_preserve_values): Renamed from preserve_python_values.
13185 (!HAVE_PYTHON, preserve_python_values): Delete.
13187 * utils.c (quit_flag): Delete, moved to extension.c.
13188 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13191 * eval.c: Delete #include "python/python.h".
13192 * main.c: Delete #include "python/python.h".
13194 * defs.h: Update comment.
13196 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13200 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13202 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13205 2014-02-05 Yao Qi <yao@codesourcery.com>
13207 * remote.c (remote_pass_signals): Remove local 'buf' and use
13209 (remote_program_signals): Likewise.
13211 2014-02-05 Yao Qi <yao@codesourcery.com>
13213 * ctf.c: Include "inferior.h" and "gdbthread.h".
13214 (CTF_PID): A new macro.
13215 (ctf_open): Call inferior_appeared and add_thread_silent.
13216 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13217 (ctf_thread_alive): New function.
13218 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13220 2014-02-05 Yao Qi <yao@codesourcery.com>
13224 2013-05-24 Yao Qi <yao@codesourcery.com>
13226 * tracepoint.c (TFILE_PID): Remove.
13227 (tfile_open): Don't add thread and inferior.
13228 (tfile_close): Don't set 'inferior_ptid'. Don't call
13229 exit_inferior_silent.
13230 (tfile_thread_alive): Remove.
13231 (init_tfile_ops): Don't set field 'to_thread_alive' of
13234 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13236 * remote.c (remote_start_remote): Call remote_check_symbols even
13237 if only symbol-file (not file) has been given.
13239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13241 * gdbarch.sh (skip_entrypoint): New callback.
13242 * gdbarch.c, gdbarch.h: Regenerate.
13243 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13244 * infrun.c (fill_in_stop_func): Likewise.
13245 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13246 (ppc_elfv2_elf_make_msymbol_special): New function.
13247 (ppc_elfv2_skip_entrypoint): Likewise.
13248 (ppc_linux_init_abi): Install them for ELFv2.
13250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13252 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13253 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13254 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13255 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13256 structures returned in GPRs.
13258 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13260 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13261 offset to the stack parameter list for the ELFv2 ABI.
13263 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13265 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13266 set_gdbarch_convert_from_func_ptr_addr and
13267 set_gdbarch_elf_make_msymbol_special for ELFv1.
13268 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13269 function descriptors on ELFv1.
13270 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13271 set up r12 at function entry.
13273 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13275 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13276 (struct gdbarch_tdep): New member elf_abi.
13278 * rs6000-tdep.c: Include "elf/ppc64.h".
13279 (rs6000_gdbarch_init): Detect ELF ABI version.
13281 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13283 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13284 within a register pair holding a DFP 128-bit value on little-endian.
13285 (ppc64_sysv_abi_return_value_base): Likewise.
13286 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13287 (dfp_pseudo_register_write): Likewise.
13289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13292 offset on little-endian when passing _Decimal32.
13293 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13295 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13297 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13298 of the overlapped FP register within the VSX register on little-
13300 (efpr_pseudo_register_write): Likewise.
13302 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13304 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13305 offset on little-endian when passing small structures.
13307 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13309 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13310 (struct ppc64_sysv_argpos): New data structure.
13311 (ppc64_sysv_abi_push_float): Remove.
13312 (ppc64_sysv_abi_push_val): New function.
13313 (ppc64_sysv_abi_push_integer): Likewise.
13314 (ppc64_sysv_abi_push_freg): Likewise.
13315 (ppc64_sysv_abi_push_vreg): Likewise.
13316 (ppc64_sysv_abi_push_param): Likewise.
13317 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13318 (ppc64_sysv_abi_return_value_base): New function.
13319 (ppc64_sysv_abi_return_value): Refactor to use it.
13321 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13323 * NEWS: Document new target powerpc64le-*-linux*.
13325 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13327 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13328 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13330 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13331 register set used in ELF core dumps. Add floating-point register set.
13333 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13335 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13336 dwarf2_to_gdb[] table using symbolic constants. Adjust
13337 penultimate entry from number representing the PC register
13338 to symbolic constant representing the MDR register. Add
13339 constant for the PC register to the end of the table.
13341 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13343 * bsd-kvm.c: Include <sys/param.h>
13345 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13347 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13349 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13351 * ada-lang.h (clear_ada_sym_cache): Delete.
13353 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13355 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13357 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13359 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13360 the sigreturn register save area only if the syscall is
13363 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13365 * valops.c (value_slice): Minor reformatting.
13367 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13369 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13371 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13373 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13374 New static globals.
13375 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13376 (ada_ignore_descriptive_types_p): New static global.
13377 (find_parallel_type_by_descriptive_type): Return immediately
13378 if ada_ignore_descriptive_types_p is set.
13379 (_initialize_ada_language): Register new commands "maintenance
13380 set ada", "maintenance show ada", "maintenance set ada
13381 ignore-descriptive-types" and "maintenance show ada
13382 ignore-descriptive-types".
13383 * NEWS: Add entry for new "maint ada set/show
13384 ignore-descriptive-types" commands.
13386 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13388 * record-btrace.c (record_btrace_close): Call btrace_teardown
13391 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13393 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13396 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13398 * ada-typeprint (type_is_full_subrange_of_target_type):
13400 (print_range): Add parameter bounds_prefered_p. If not set,
13401 try printing range types using the name of their base type.
13402 (print_range_type): Add parameter bounds_prefered_p.
13403 Use it in call to print_range.
13404 (print_array_type, ada_print_type): Update calls to print_range
13405 and print_range_type.
13407 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13409 * ada-typeprint.c (print_array_type, print_choices, print_range)
13410 (print_range_bound, print_dynamic_range_bound, print_range_type):
13411 Remove declaration.
13413 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13415 * ada-typeprint.c (print_range): Add missing empty line
13416 after local declaration.
13418 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13420 * ada-valprint.c (print_optional_low_bound): Get index_type's
13421 target type for as long as it is a TYPE_CODE_RANGE.
13423 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13425 * procfs.c (procfs_make_note_section): Remove assertion and
13426 associated comment.
13428 2014-01-24 Yao Qi <yao@codesourcery.com>
13430 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13431 * corelow.c (get_core_siginfo): Likewise.
13433 2014-01-24 Yao Qi <yao@codesourcery.com>
13435 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13436 ULONGEST. Don't check 'len' is negative.
13437 (remote_write_bytes): Change type of 'len' to ULONGEST.
13439 2014-01-23 Tom Tromey <tromey@redhat.com>
13442 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13443 Handle exception from frame.block.
13444 (FrameVars.fetch_frame_locals): Likewise.
13446 2014-01-23 Tom Tromey <tromey@redhat.com>
13449 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13450 on a NULL pointer. Move "goto error" to correct place.
13452 2014-01-23 Tom Tromey <tromey@redhat.com>
13455 * python/py-framefilter.c (apply_frame_filter): Call
13456 ensure_python_env after computing gdbarch.
13458 2014-01-23 Yao Qi <yao@codesourcery.com>
13460 * target.c (raw_memory_xfer_partial): Change argument type
13461 from void * to gdb_byte *.
13462 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13464 2014-01-22 Doug Evans <dje@google.com>
13466 New gdbserver option --debug-format=timestamp.
13467 * NEWS: Mention it.
13469 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13471 * syscalls/s390x-linux.xml: New file.
13472 * syscalls/s390-linux.xml: New file.
13473 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13474 (XML_SYSCALL_FILENAME_S390X): Likewise.
13475 (op_svc): New enum value for SVC opcode.
13476 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13477 (s390_linux_get_syscall_number): New function.
13478 (s390_gdbarch_init): Register '*get_syscall_number' and the
13479 syscall xml file name.
13480 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13481 "s390-linux.xml" and "s390x-linux.xml".
13482 * NEWS: Announce new feature.
13484 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13486 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13488 2014-01-22 Pedro Alves <palves@redhat.com>
13490 * xtensa-config.c: Include defs.h.
13492 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13494 * common/common-utils.h: Add "ARI:" comment beside __func__
13497 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13499 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13500 documentation a bit.
13502 2014-01-21 Roland McGrath <mcgrathr@google.com>
13504 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13505 * configure: Regenerate.
13506 * aclocal.m4: Regenerate.
13507 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13508 New substituted variables.
13509 (install-strip): New target.
13510 (INSTALL_SCRIPT): New substituted variable.
13511 (FLAGS_TO_PASS): Add it.
13512 (install-only): Use $(INSTALL_SCRIPT) rather than
13513 $(INSTALL_PROGRAM) for gcore.
13515 2014-01-20 Tom Tromey <tromey@redhat.com>
13517 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13520 2014-01-20 Tom Tromey <tromey@redhat.com>
13522 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13523 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13524 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13525 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13526 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13527 (struct cmd_list_element) <flags>: Remove.
13528 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13529 doc_allocated>: New fields.
13530 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13532 * maint.c (maintenance_do_deprecate): Update.
13533 * top.c (execute_command): Update.
13535 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13537 * xtensa-linux-nat.c: Include asm/ptrace.h.
13539 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13541 * Makefile.in (SFILES): Add d-support.c.
13542 (COMMON_OBS): Add d-support.o.
13543 * d-lang.h (d_parse_symbol): Add comment, now defined in
13545 * d-lang.c (parse_call_convention)
13546 (parse_attributes, parse_function_types)
13547 (parse_function_args, parse_type, parse_identifier)
13548 (call_convention_p, d_parse_symbol): Move functions to ...
13549 * d-support.c: ... New file.
13551 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13553 * d-lang.h (d_parse_symbol): Add declaration.
13554 * d-lang.c (extract_identifiers)
13555 (extract_type_info): Remove functions.
13556 (parse_call_convention, parse_attributes)
13557 (parse_function_types, parse_function_args)
13558 (parse_type, parse_identifier, call_convention_p)
13559 (d_parse_symbol): New functions.
13560 (d_demangle): Use d_parse_symbol to demangle D symbols.
13562 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13564 * d-lang.h (struct builtin_d_type): New data type.
13565 (builtin_d_type): Add declaration.
13566 * d-lang.c (d_language_arch_info, build_d_types)
13567 (builtin_d_type): New functions.
13568 (enum d_primitive_types): New data type.
13569 (d_language_defn): Change c_language_arch_info to
13570 d_language_arch_info.
13571 (d_type_data): New static variable.
13572 (_initialize_d_language): Initialize d_type_data.
13574 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13576 * d-lang.h (d_main_name): Add declaration.
13577 * d-lang.c (d_main_name): New function.
13578 * symtab.c (find_main_name): Add call to d_main_name.
13580 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13582 * d-lang.c (d_language_defn): Change macro_expansion_c to
13583 macro_expansion_no.
13585 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13587 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13589 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13591 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13592 gdb_exception" declaration.
13593 * remote.c (getpkt_or_notif_sane): Likewise.
13595 2014-01-17 Doug Evans <dje@google.com>
13597 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13598 function, contents of dirnames_to_char_ptr_vec_append moved here.
13599 (delim_string_to_char_ptr_vec): New function.
13600 (dirnames_to_char_ptr_vec_append): Rewrite.
13601 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13603 2014-01-17 Doug Evans <dje@google.com>
13605 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13607 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13608 #include "common-utils.h".
13609 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13610 * common/vec.h (VEC_ASSERT_PASS): Update.
13611 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13612 (MACH_CHECK_ERROR): Update.
13614 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13616 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13618 * gdbarch.h: Regenerate.
13620 2014-01-16 Tom Tromey <tromey@redhat.com>
13622 * value.c (struct value) <regnum>: Move earlier.
13624 2014-01-16 Tom Tromey <tromey@redhat.com>
13626 * remote.c (extended_remote_create_inferior): Rename from
13627 extended_remote_create_inferior_1. Add "ops" argument. Remove
13628 old implementation.
13630 2014-01-16 Pedro Alves <palves@redhat.com>
13632 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13633 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13636 2014-01-16 Doug Evans <dje@google.com>
13638 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13640 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13642 * btrace.h (btrace_thread_flag): New.
13643 (struct btrace_thread_info) <flags>: New.
13644 * record-btrace.c (record_btrace_resume_thread)
13645 (record_btrace_find_thread_to_move, btrace_step_no_history)
13646 (btrace_step_stopped, record_btrace_start_replaying)
13647 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13648 (record_btrace_find_resume_thread): New.
13649 (record_btrace_resume, record_btrace_wait): Extend.
13650 (record_btrace_can_execute_reverse): New.
13651 (record_btrace_open): Fail in non-stop mode.
13652 (record_btrace_set_replay): Split into this, ...
13653 (record_btrace_stop_replaying): ... this, ...
13654 (record_btrace_clear_histories): ... and this.
13655 (init_record_btrace_ops): Init to_can_execute_reverse.
13656 * NEWS: Announce it.
13658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13660 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13661 (forward_target_decr_pc_after_break)
13662 (target_decr_pc_after_break): New.
13663 * target.c (forward_target_decr_pc_after_break)
13664 (target_decr_pc_after_break): New.
13665 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13666 instead of gdbarch_decr_pc_after_break.
13667 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13668 instead of gdbarch_decr_pc_after_break.
13669 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13670 instead of gdbarch_decr_pc_after_break.
13671 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13672 instead of gdbarch_decr_pc_after_break.
13673 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13674 instead of gdbarch_decr_pc_after_break.
13675 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13676 instead of gdbarch_decr_pc_after_break.
13678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13680 * btrace.c: Include regcache.h.
13681 (btrace_add_pc): New.
13682 (btrace_enable): Call btrace_add_pc.
13683 (btrace_is_empty): New.
13684 * btrace.h (btrace_is_empty): New.
13685 * record-btrace.c (require_btrace, record_btrace_info): Call
13688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13690 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13691 Support delta reads.
13692 (linux_disable_btrace): Change return type.
13693 * common/linux-btrace.h (linux_read_btrace): Change parameters
13694 and return type to allow error reporting. Update users.
13695 (linux_disable_btrace): Change return type. Update users.
13696 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13698 (btrace_error): New.
13699 (btrace_block) <begin>: Comment on BEGIN == 0.
13700 * btrace.c (btrace_compute_ftrace): Start from the end of
13702 (btrace_stitch_trace, btrace_clear_history): New.
13703 (btrace_fetch): Read delta trace, return if replaying.
13704 (btrace_clear): Move clear history code to btrace_clear_history.
13705 (parse_xml_btrace): Throw an error if parsing failed.
13706 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13707 and return type to allow error reporting.
13708 (target_read_btrace): Change parameters and return type to allow
13710 * target.c (target_read_btrace): Update.
13711 * remote.c (remote_read_btrace): Support delta reads. Pass
13713 * NEWS: Announce it.
13715 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13717 * record.h (record_btrace_frame_unwind)
13718 (record_btrace_tailcall_frame_unwind): New declarations.
13719 * dwarf2-frame: Include record.h
13720 (dwarf2_frame_cfa): Throw an error for btrace frames.
13721 * record-btrace.c: Include hashtab.h.
13722 (btrace_get_bfun_name): New.
13723 (btrace_call_history): Call btrace_get_bfun_name.
13724 (struct btrace_frame_cache): New.
13726 (bfcache_hash, bfcache_eq, bfcache_new): New.
13727 (btrace_get_frame_function): New.
13728 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13729 (record_btrace_frame_this_id): Compute own id.
13730 (record_btrace_frame_prev_register): Provide PC, throw_error
13731 for all other registers.
13732 (record_btrace_frame_sniffer): Detect btrace frames.
13733 (record_btrace_tailcall_frame_sniffer): New.
13734 (record_btrace_frame_dealloc_cache): New.
13735 (record_btrace_frame_unwind): Add new functions.
13736 (record_btrace_tailcall_frame_unwind): New.
13737 (_initialize_record_btrace): Allocate cache.
13738 * btrace.c (btrace_clear): Call reinit_frame_cache.
13739 * NEWS: Announce it.
13741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13743 * record-btrace.c (record_btrace_set_replay)
13744 (record_btrace_goto_begin, record_btrace_goto_end)
13745 (record_btrace_goto): New.
13746 (init_record_btrace_ops): Initialize them.
13747 * NEWS: Announce it.
13749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13751 * record-btrace.c (record_btrace_find_new_threads)
13752 (record_btrace_thread_alive): New.
13753 (init_record_btrace_ops): Initialize to_find_new_threads and
13756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13758 * record-btrace.c (record_btrace_resume): New.
13759 (record_btrace_wait): New.
13760 (init_record_btrace_ops): Initialize to_wait and to_resume.
13762 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13764 * record-btrace.c (record_btrace_xfer_partial)
13765 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13766 (record_btrace_allow_memory_access): New.
13767 (init_record_btrace_ops): Initialize new methods.
13768 * target.c (raw_memory_xfer_partial): Bail out if target reports
13769 that this memory is not available.
13771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13773 * target.h (target_ops) <to_insert_breakpoint>
13774 <to_remove_breakpoint>: Add target_ops parameter.
13775 (forward_target_insert_breakpoint): New.
13776 (forward_target_remove_breakpoint): New.
13777 (memory_remove_breakpoint, memory_insert_breakpoint):
13778 Add target_ops parameter.
13779 * target.c (target_insert_breakpoint): Split into this and ...
13780 (forward_target_insert_breakpoint): ... this.
13781 (target_remove_breakpoint): Split into this and ...
13782 (forward_target_remove_breakpoint): ... this.
13783 (debug_to_insert_breakpoint): Add target_ops parameter.
13784 Call forward_target_insert_breakpoint.
13785 (debug_to_remove_breakpoint): Add target_ops parameter.
13786 Call forward_target_remove_breakpoint.
13787 (update_current_target): Do not inherit or default to_insert_breakpoint
13788 and to_remove_breakpoint.
13789 * corelow.c (ignore): Add target_ops parameter.
13790 * exec.c (ignore): Add target_ops parameter.
13791 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13792 Add target_ops parameter.
13793 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13794 Add target_ops parameter.
13795 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13796 Add target_ops parameter.
13797 * record-full.c (record_full_beneath_to_insert_breakpoint)
13798 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13799 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13800 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13801 (record_full_core_remove_breakpoint): Add target_ops parameter.
13803 (record_full_beneath_to_insert_breakpoint_ops)
13804 (record_full_beneath_to_remove_breakpoint_ops)
13805 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13806 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13807 tmp_to_remove_breakpoint_ops,
13808 record_full_beneath_to_insert_breakpoint_ops, and
13809 record_full_beneath_to_remove_breakpoint_ops.
13810 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13811 (m32r_remove_breakpoint): Add target_ops parameter.
13812 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13813 Add target_ops parameter.
13814 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13815 Add target_ops parameter.
13817 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13818 Markus Metzger <markus.t.metzger@intel.com>
13820 * record-btrace.c: Include frame-unwind.h.
13821 (record_btrace_frame_unwind_stop_reason)
13822 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13823 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13825 (init_record_btrace_ops): Install it.
13827 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13829 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13832 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13834 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13837 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13839 * frame-unwind.c: Include target.h.
13840 (frame_unwind_try_unwinder): New function with code from ...
13841 (frame_unwind_find_by_frame): ... here. New variable
13842 unwinder_from_target, call also target_get_unwinder)
13843 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13844 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13845 * target.h (struct target_ops): New fields to_get_unwinder and
13846 to_get_tailcall_unwinder.
13847 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13851 * record-btrace.c (record_btrace_fetch_registers)
13852 (record_btrace_store_registers)
13853 (record_btrace_to_prepare_to_store): New.
13854 (init_record_btrace_ops): Add the above.
13856 2014-01-16 Tom Tromey <tromey@redhat.com>
13858 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13859 * target.h (struct target_ops) <to_prepare_to_store>: Add
13861 (target_prepare_to_store): Add argument.
13862 * target.c (debug_to_prepare_to_store): Add argument.
13863 (update_current_target): Update.
13864 * remote.c (remote_prepare_to_store): Add 'self' argument.
13865 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13866 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13867 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13868 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13870 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13871 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13872 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13873 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13874 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13876 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13878 * btrace.h (replay) <replay>: New.
13879 (btrace_is_replaying): New.
13880 * btrace.c (btrace_clear): Free replay iterator.
13881 (btrace_is_replaying): New.
13882 * record-btrace.c (record_btrace_is_replaying): New.
13883 (record_btrace_info): Print insn number if replaying.
13884 (record_btrace_insn_history): Start at replay position.
13885 (record_btrace_call_history): Start at replay position.
13886 (init_record_btrace_ops): Init to_record_is_replaying.
13888 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13890 * record-btrace.c (record_btrace_insn_history_range): Include
13892 (record_btrace_insn_history_from): Adjust range.
13893 (record_btrace_call_history_range): Include
13895 (record_btrace_call_history_from): Adjust range.
13896 * NEWS: Announce changes.
13898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13900 * record.h (enum record_print_flag)
13901 <record_print_indent_calls>: New.
13902 * record.c (get_call_history_modifiers): Recognize /c modifier.
13903 (_initialize_record): Document /c modifier.
13904 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13905 Reorder fields. Optionally indent the function name. Update
13907 * NEWS: Announce changes.
13909 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13911 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13913 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13915 * btrace.c (ftrace_new_function): Start counting at one.
13916 * record-btrace.c (record_btrace_info): Adjust number of calls
13918 * NEWS: Announce it.
13920 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13922 * record-btrace.c (btrace_call_history_insn_range): Print
13923 insn range as [begin, end].
13925 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13927 * btrace.h (struct btrace_func_link): New.
13928 (enum btrace_function_flag): New.
13929 (struct btrace_inst): Rename to ...
13930 (struct btrace_insn): ...this. Update all users.
13931 (struct btrace_func) <ibegin, iend>: Remove.
13932 (struct btrace_func_link): New.
13933 (struct btrace_func): Rename to ...
13934 (struct btrace_function): ...this. Update all users.
13935 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13936 (number, level, flags>: New.
13937 (struct btrace_insn_iterator): Rename to ...
13938 (struct btrace_insn_history): ...this.
13940 (struct btrace_insn_iterator, btrace_call_iterator): New.
13941 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13942 (struct btrace_target_info) <begin, end, level>
13943 <insn_history, call_history>: New.
13944 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13945 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13946 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13947 (btrace_call_number, btrace_call_begin, btrace_call_end)
13948 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13949 (btrace_find_function_by_number, btrace_set_insn_history)
13950 (btrace_set_call_history): New.
13951 * btrace.c (btrace_init_insn_iterator)
13952 (btrace_init_func_iterator, compute_itrace): Remove.
13953 (ftrace_print_function_name, ftrace_print_filename)
13954 (ftrace_skip_file): Change
13955 parameter to const.
13956 (ftrace_init_func): Remove.
13957 (ftrace_debug): Use new btrace_function fields.
13958 (ftrace_function_switched): Also consider gaining and
13959 losing symbol information).
13960 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13961 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13962 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13964 (ftrace_new_function): Move. Remove debug print.
13965 (ftrace_update_lines, ftrace_update_insns): New.
13966 (ftrace_update_function): Check for call, ret, and jump.
13967 (compute_ftrace): Renamed to ...
13968 (btrace_compute_ftrace): ...this. Rewritten to compute call
13970 (btrace_fetch, btrace_clear): Updated.
13971 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13972 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13973 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13974 (btrace_call_number, btrace_call_begin, btrace_call_end)
13975 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13976 (btrace_find_function_by_number, btrace_set_insn_history)
13977 (btrace_set_call_history): New.
13978 * record-btrace.c (require_btrace): Use new btrace thread
13980 (record_btrace_info, btrace_insn_history)
13981 (record_btrace_insn_history, record_btrace_insn_history_range):
13982 Use new btrace thread info fields and new iterator.
13983 (btrace_func_history_src_line): Rename to ...
13984 (btrace_call_history_src_line): ...this. Use new btrace
13985 thread info fields.
13986 (btrace_func_history): Rename to ...
13987 (btrace_call_history): ...this. Use new btrace thread info
13988 fields and new iterator.
13989 (record_btrace_call_history, record_btrace_call_history_range):
13990 Use new btrace thread info fields and new iterator.
13992 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13994 * frame.h (frame_id_build_unavailable_stack_special): New.
13995 * frame.c (frame_id_build_unavailable_stack_special): New.
13997 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13999 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14000 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14001 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14003 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14004 (i386_insn_is_jump, i386_jmp_p): New.
14005 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14006 insn_is_jump to gdbarch.
14007 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14008 * gdbarch.h: Regenerated.
14009 * gdbarch.c: Regenerated.
14010 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14011 (default_insn_is_jump): New.
14012 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14013 (default_insn_is_jump): New.
14015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14017 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14019 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14020 (btrace_read_type) <btrace_read_new>: Change to ...
14021 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14025 * common/linux-btrace.c (linux_read_btrace): Free trace from
14026 previous iteration.
14028 2014-01-15 Doug Evans <dje@google.com>
14030 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14033 2014-01-15 Tom Tromey <tromey@redhat.com>
14035 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14036 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14037 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14038 (set_objfile_main_name): New function.
14039 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14040 language_of_main>: New fields.
14041 (set_objfile_main_name): Declare.
14042 * symtab.c (find_main_name): Loop over objfiles to find the main
14044 (set_main_name): Now static.
14045 (get_main_info): Add comment.
14046 * symtab.h (set_main_name): Don't declare.
14048 2014-01-15 Tom Tromey <tromey@redhat.com>
14050 * symtab.c (main_progspace_key): New global.
14051 (struct main_info): New.
14052 (name_of_main, language_of_main): Remove.
14053 (get_main_info, main_info_cleanup): New function.
14054 (set_main_name, main_name, main_language): Use get_main_info.
14055 (_initialize_symtab): Initialize main_progspace_key.
14057 2014-01-15 Tom Tromey <tromey@redhat.com>
14059 * dbxread.c (process_one_symbol): Update.
14060 * dwarf2read.c (read_partial_die): Update.
14061 * symfile.c (set_initial_language): Call main_language.
14062 * symtab.c (language_of_main): Now static.
14063 (set_main_name): Add 'lang' parameter.
14064 (find_main_name): Update.
14065 (main_language): New function.
14066 (symtab_observer_executable_changed): Update.
14067 * symtab.h (set_main_name): Update.
14068 (language_of_main): Remove.
14069 (main_language): Declare.
14071 2014-01-15 Tom Tromey <tromey@redhat.com>
14073 * symfile.c (init_entry_point_info): Use new "initialized" field.
14075 * objfiles.h (struct entry_point) <initialized>: New field.
14076 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14077 (struct objfile) <ei>: ...here. Remove.
14078 * objfiles.c (entry_point_address_query): Update.
14080 2014-01-15 Tom Tromey <tromey@redhat.com>
14082 * objfiles.c (entry_point_address_query): Relocate entry point
14084 (objfile_relocate1): Do not relocate entry point address.
14085 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14086 <the_bfd_section_index>: New field.
14087 * symfile.c (init_entry_point_info): Find the entry point's
14090 2014-01-15 Tom Tromey <tromey@redhat.com>
14092 * solib-frv.c (enable_break): Use entry_point_address_query.
14094 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14096 * NEWS: Add note on improved process record-replay on
14097 arm*-linux* targets.
14099 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14101 * arm-tdep.c (enum arm_record_result): New enum.
14102 (arm_record_unsupported_insn): New function.
14103 (arm_record_coproc_data_proc): Removed.
14104 (thumb2_record_ld_st_multiple): New function.
14105 (thumb2_record_ld_st_dual_ex_tbb): New function.
14106 (thumb2_record_data_proc_sreg_mimm): New function.
14107 (thumb2_record_ps_dest_generic): New function.
14108 (thumb2_record_branch_misc_cntrl): New function.
14109 (thumb2_record_str_single_data): New function.
14110 (thumb2_record_ld_mem_hints): New function.
14111 (thumb2_record_ld_word): New function.
14112 (thumb2_record_lmul_lmla_div): New function.
14113 (thumb2_record_decode_insn_handler): New function.
14114 (decode_insn): Add thumb32 instruction handlers.
14116 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14118 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14119 (struct arm_linux_record_tdep): Declare.
14120 (arm_canonicalize_syscall): New function.
14121 (arm_all_but_pc_registers_record): New function.
14122 (arm_linux_syscall_record): New function.
14123 (arm_linux_init_abi): Add syscall recording constructs.
14124 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14125 decoding. (arm_record_coproc_data_proc): Update arm syscall
14127 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14128 <arm_syscall_record>: New field.
14129 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14132 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14134 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14135 register for push instruction recording.
14137 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14139 * arm-tdep.c (thumb_record_misc): Update to correct logical
14140 error while recording ldm, ldmia and pop instructions.
14142 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14144 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14146 2014-01-15 Pedro Alves <palves@redhat.com>
14148 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14149 (go32_resume, go32_fetch_registers, store_register)
14150 (go32_store_registers, go32_prepare_to_store)
14151 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14152 (go32_create_inferior, go32_can_run, go32_terminal_init)
14153 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14156 2014-01-15 Tom Tromey <tromey@redhat.com>
14158 * target.h (async_callback_ftype): New typedef.
14159 (struct target_ops) <to_async>: Use it.
14161 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14163 * python/py-value.c (get_field_type): Remove unnecessary curly
14164 braces for single-statement if block.
14166 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14168 * python/py-type.c (convert_field): Add missing empty line
14169 after declarations.
14171 2014-01-14 Doug Evans <dje@google.com>
14173 * symfile.h (expand_symtabs_matching): Renamed from
14174 expand_partial_symbol_names. Update prototype.
14175 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14176 * symfile.c (expand_symtabs_matching): Renamed from
14177 expand_partial_symbol_names. New args file_matcher, kind.
14178 Rename arg fun to symbol_matcher.
14179 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14180 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14181 ada_expand_partial_symbol_name.
14182 (ada_make_symbol_completion_list): Update to call
14183 expand_symtabs_matching.
14184 (ada_add_global_exceptions): Call expand_symtabs_matching.
14185 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14186 call map_symbol_filenames.
14187 * symtab.c (sources_info): Update to call map_symbol_filenames.
14188 (search_symbols): Call expand_symtabs_matching.
14189 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14190 (default_make_symbol_completion_list_break_on): Update to call
14191 expand_symtabs_matching.
14192 (make_source_files_completion_list): Update to call
14193 map_symbol_filenames.
14195 2014-01-14 Doug Evans <dje@google.com>
14197 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14198 (expand_symtabs_symbol_matcher_ftype): New typedef.
14199 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14200 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14201 * symfile.c (expand_partial_symbol_names): Update to use
14202 expand_symtabs_symbol_matcher_ftype.
14203 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14204 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14205 Arg name_matcher renamed to symbol_matcher.
14206 * psymtab.c (recursively_search_psymtabs): Update to use
14207 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14209 (expand_symtabs_matching_via_partial): Update to use
14210 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14211 Arg name_matcher renamed to symbol_matcher.
14213 2014-01-14 Doug Evans <dje@google.com>
14215 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14216 (map_partial_symbol_filenames): Ditto.
14217 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14218 (map_partial_symbol_filenames): Ditto.
14219 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14220 (map_partial_symbol_filenames): Ditto.
14221 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14222 (map_partial_symbol_filenames): Ditto.
14223 * symtab.c: Delete #include "psymtab.h".
14225 2014-01-14 Pedro Alves <palves@redhat.com>
14226 Tom Tromey <tromey@redhat.com>
14228 * infrun.c (use_displaced_stepping): Use find_record_target
14229 instead of RECORD_IS_USED.
14230 (adjust_pc_after_break): Use record_full_is_used instead of
14232 * record-btrace.c (record_btrace_open): Call record_preopen
14233 instead of checking RECORD_IS_USED.
14234 * record-full.c (record_full_shortname)
14235 (record_full_core_shortname): New globals.
14236 (record_full_is_used): New function.
14237 (find_full_open): Call record_preopen instead of checking
14239 (init_record_full_ops): Set the target's shortname to
14240 record_full_shortname.
14241 (init_record_full_core_ops): Set the target's shortname to
14242 record_full_core_shortname.
14243 * record-full.h (record_full_is_used): Declare.
14244 * record.c (find_record_target): Make extern.
14245 (record_preopen): New function.
14246 * record.h (RECORD_IS_USED): Delete macro.
14247 (find_record_target, record_preopen): Declare functions.
14249 2014-01-14 Yao Qi <yao@codesourcery.com>
14251 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14252 'len''s type to ULONGEST.
14253 (core_xfer_shared_libraries_aix): Likewise.
14254 * gdbarch.c, gdbarch.h: Regenerated.
14255 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14256 Change type of 'len' to ULONGEST.
14257 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14258 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14260 2014-01-14 Yao Qi <yao@codesourcery.com>
14262 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14263 type of 'len' to ULONGEST.
14264 (linux_xfer_osdata_processgroups): Likewise.
14265 (linux_xfer_osdata_threads): Likewise.
14266 (linux_xfer_osdata_fds): Likewise.
14267 (linux_xfer_osdata_isockets): Likewise.
14268 (linux_xfer_osdata_shm): Likewise.
14269 (linux_xfer_osdata_sem): Likewise.
14270 (linux_xfer_osdata_msg): Likewise.
14271 (linux_common_xfer_osdata): Likewise.
14272 (struct osdata_type) <getter>: Likewise.
14273 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14276 2014-01-14 Yao Qi <yao@codesourcery.com>
14278 * target.h (target_xfer_partial_ftype): Update.
14279 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14281 * aix-thread.c (aix_thread_xfer_partial): Change type of
14282 argument 'len' to ULONGEST.
14283 * auxv.c (procfs_xfer_auxv): Likewise.
14284 (ld_so_xfer_auxv): Likewise.
14285 (memory_xfer_auxv): Likewise.
14286 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14287 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14288 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14289 * corelow.c (core_xfer_partial): Likewise.
14290 * ctf.c (ctf_xfer_partial): Likewise.
14291 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14293 (darwin_read_dyld_info): Likewise.
14294 (darwin_xfer_partial): Likewise.
14295 * exec.c (section_table_xfer_memory_partial): Likewise.
14296 (exec_xfer_partial): Likewise.
14297 * exec.h (section_table_xfer_memory_partial): Update
14299 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14300 instead of plongest.
14301 (gnu_xfer_partial): Likewise.
14302 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14303 (ia64_hpux_xfer_solib_got): Likewise.
14304 (ia64_hpux_xfer_partial): Likewise.
14305 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14306 * inf-ptrace.c (inf_ptrace_xfer_partial):
14307 * inf-ttrace.c (inf_ttrace_xfer_partial):
14308 * linux-nat.c (linux_xfer_siginfo): Likewise.
14309 (linux_nat_xfer_partial): Likewise.
14310 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14311 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14312 * monitor.c (monitor_xfer_memory): Likewise.
14313 (monitor_xfer_partial): Likewise.
14314 * procfs.c (procfs_xfer_partial): Likewise.
14315 * record-full.c (record_full_xfer_partial): Likewise.
14316 (record_full_core_xfer_partial): Likewise.
14317 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14318 instead of plongest.
14319 (gdbsim_xfer_partial): Likewise.
14320 * remote.c (remote_xfer_partial): Likewise.
14321 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14322 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14324 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14325 (rs6000_xfer_shared_libraries): Likewise.
14326 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14327 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14328 (sparc_xfer_partial): Likewise.
14329 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14330 (spu_xfer_partial): Likewise.
14331 * spu-multiarch.c (spu_xfer_partial): Likewise.
14332 * target.c (target_read_live_memory): Likewise.
14333 (memory_xfer_live_readonly_partial): Likewise.
14334 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14335 (target_xfer_partial, default_xfer_partial): Likewise.
14336 (current_xfer_partial): Likewise.
14337 * tracepoint.c (tfile_xfer_partial): Likewise.
14338 * windows-nat.c (windows_xfer_memory): Likewise. Call
14339 pulongest instead of plongest.
14340 (windows_xfer_partial): Likewise.
14341 (windows_xfer_shared_libraries): Likewise.
14343 2014-01-14 Yao Qi <yao@codesourcery.com>
14345 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14346 target_xfer_partial_ftype.
14348 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14352 * valops.c (value_struct_elt_bitpos): New function
14353 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14354 object to 'None' if the field name is an empty string ("").
14355 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14356 attribute to look for a field when 'name' is 'None'.
14357 (get_field_type): New function
14359 2014-01-13 Doug Evans <dje@google.com>
14362 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14363 (try_open_dwop_file): Ditto.
14364 * gdb_bfd.c: #include "vec.h".
14365 (bfdp): New typedef.
14366 (struct gdb_bfd_data): New member included_bfds.
14367 (gdb_bfd_unref): Unref all included bfds.
14368 (gdb_bfd_record_inclusion): New function.
14369 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14371 2014-01-13 Tom Tromey <tromey@redhat.com>
14373 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14375 2014-01-13 Tom Tromey <tromey@redhat.com>
14377 * defs.h (use_windows): Remove.
14378 * gdb.c (main): Update.
14379 * main.c (captured_main, gdb_main): Update.
14380 * main.h (struct captured_main_args) <use_windows>: Remove.
14381 * top.c (use_windows): Remove.
14383 2014-01-13 Tom Tromey <tromey@redhat.com>
14385 * defs.h (deprecated_flush_hook): Remove.
14387 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14390 * linux-thread-db.c (try_thread_db_load): Add parameter
14391 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14392 (try_thread_db_load_from_pdir_1): Move it there from here.
14393 (try_thread_db_load_from_sdir): Update caller.
14394 (try_thread_db_load_from_dir): Move it there from here.
14396 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14398 * regformats/regdat.sh: Always rewrite the register file.
14400 2014-01-13 Pedro Alves <palves@redhat.com>
14402 * Makefile.in (CHECK_HEADERS): New variable.
14403 (check-headers:): New rule.
14405 2014-01-13 Tom Tromey <tromey@redhat.com>
14407 * cli/cli-setshow.c (do_set_command): Update.
14408 * defs.h (deprecated_set_hook): Remove.
14409 * top.c (deprecated_set_hook): Remove.
14411 2014-01-13 Pedro Alves <palves@redhat.com>
14413 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14414 the tracepoint if the PC is a pseudo-register.
14416 2014-01-13 Tom Tromey <tromey@redhat.com>
14418 * defs.h (XCALLOC): Remove.
14419 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14420 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14421 * dwarf2loc.c (allocate_piece_closure): Likewise.
14422 * elfread.c (elf_symfile_segments): Likewise.
14423 (elf_symfile_segments): Likewise.
14424 * gdbtypes.c (copy_type_recursive): Likewise.
14425 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14426 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14427 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14429 * mt-tdep.c (mt_gdbarch_init): Likewise.
14430 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14432 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14433 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14434 * registry.c (registry_alloc_data): Likewise.
14435 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14436 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14437 * serial.c (serial_fdopen_ops): Likewise.
14438 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14440 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14441 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14444 2014-01-13 Tom Tromey <tromey@redhat.com>
14446 * defs.h (XMALLOC): Remove.
14447 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14448 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14449 * cli-out.c (struct ui_out *): Likewise.
14450 * cli/cli-dump.c (add_dump_command): Likewise.
14451 (add_dump_command): Likewise.
14452 * complaints.c (get_complaints): Likewise.
14453 (find_complaint): Likewise.
14454 * dwarf2-frame.c (execute_cfa_program): Likewise.
14455 * dwarf2read.c (abbrev_table_read_table): Likewise.
14456 * gdbarch.sh: Likewise.
14457 * gdbarch.c: Rebuild.
14458 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14459 * interps.c (interp_new): Likewise.
14460 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14461 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14462 * mi/mi-console.c (mi_console_file_new): Likewise.
14463 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14464 * mi/mi-out.c (mi_out_new): Likewise.
14465 * mi/mi-parse.c (mi_parse): Likewise.
14466 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14467 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14468 * observer.c (xalloc_observer_list_node): Likewise.
14469 * regcache.c (regcache_xmalloc_1): Likewise.
14470 * reggroups.c (reggroup_new): Likewise.
14471 (_initialize_reggroup): Likewise.
14472 * registry.c (register_data_with_cleanup): Likewise.
14473 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14474 * ser-base.c (serial_ttystate): Likewise.
14475 * ser-mingw.c (make_pipe_state): Likewise.
14476 * ser-pipe.c (pipe_open): Likewise.
14477 * serial.c (serial_open): Likewise.
14478 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14479 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14480 (tui_alloc_win_info): Likewise.
14481 (tui_add_content_elements): Likewise.
14482 * tui/tui-file.c (tui_file_new): Likewise.
14483 * tui/tui-out.c (tui_out_new): Likewise.
14484 * ui-file.c (mem_file_new): Likewise.
14485 * ui-out.c (push_level): Likewise.
14486 (make_cleanup_ui_out_end): Likewise.
14487 (append_header_to_list): Likewise.
14488 (ui_out_new): Likewise.
14489 * user-regs.c (user_reg_add_builtin): Likewise.
14491 2014-01-13 Tom Tromey <tromey@redhat.com>
14493 * defs.h (XZALLOC): Remove.
14494 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14495 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14496 (get_ada_tasks_inferior_data): Likewise.
14497 * auto-load.c (get_auto_load_pspace_data): Likewise.
14498 * auxv.c (get_auxv_inferior_data): Likewise.
14499 * bfd-target.c (target_bfd_reopen): Likewise.
14500 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14501 (deprecated_insert_raw_breakpoint): Likewise.
14502 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14503 * corelow.c (core_open): Likewise.
14504 * darwin-nat.c (darwin_check_new_threads): Likewise.
14505 (darwin_attach_pid): Likewise.
14506 * dummy-frame.c (dummy_frame_push): Likewise.
14507 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14508 * dwarf2loc.c (allocate_piece_closure): Likewise.
14509 * elfread.c (elf_symfile_segments): Likewise.
14510 * eval.c (ptrmath_type_p): Likewise.
14511 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14512 * gdbtypes.c (alloc_type_arch): Likewise.
14513 (alloc_type_instance): Likewise.
14514 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14515 * inf-child.c (inf_child_can_use_agent): Likewise.
14516 * inflow.c (get_inflow_inferior_data): Likewise.
14517 * infrun.c (save_infcall_suspend_state): Likewise.
14518 * jit.c (jit_reader_load): Likewise.
14519 (get_jit_objfile_data): Likewise.
14520 (get_jit_program_space_data): Likewise.
14521 (jit_object_open_impl): Likewise.
14522 (jit_symtab_open_impl): Likewise.
14523 (jit_block_open_impl): Likewise.
14524 (jit_frame_sniffer): Likewise.
14525 * linux-fork.c (add_fork): Likewise.
14526 * maint.c (make_command_stats_cleanup): Likewise.
14527 * objfiles.c (get_objfile_pspace_data): Likewise.
14528 * opencl-lang.c (struct lval_closure): Likewise.
14529 * osdata.c (osdata_start_osdata): Likewise.
14530 * progspace.c (new_address_space): Likewise.
14531 (add_program_space): Likewise.
14532 * remote-sim.c (get_sim_inferior_data): Likewise.
14533 * sh-tdep.c (sh_gdbarch_init): Likewise.
14534 * skip.c (Ignore): Likewise.
14535 (skip_delete_command): Likewise.
14536 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14537 (library_list_start_library): Likewise.
14538 (solib_aix_current_sos): Likewise.
14539 * solib-darwin.c (get_darwin_info): Likewise.
14540 (darwin_current_sos): Likewise.
14541 * solib-dsbt.c (get_dsbt_info): Likewise.
14542 * solib-ia64-hpux.c (new_so_list): Likewise.
14543 (ia64_hpux_get_solib_linkage_addr): Likewise.
14544 * solib-spu.c (append_ocl_sos): Likewise.
14545 (spu_current_sos): Likewise.
14546 * solib-svr4.c (get_svr4_info): Likewise.
14547 (svr4_keep_data_in_core): Likewise.
14548 (library_list_start_library): Likewise.
14549 (svr4_default_sos): Likewise.
14550 (svr4_read_so_list): Likewise.
14551 * solib-target.c (library_list_start_library): Likewise.
14552 (solib_target_current_sos): Likewise.
14553 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14554 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14555 * symfile.c (default_symfile_segments): Likewise.
14556 * target-descriptions.c (tdesc_data_init): Likewise.
14557 (tdesc_create_reg): Likewise.
14558 (struct tdesc_type *): Likewise.
14559 (tdesc_create_vector): Likewise.
14560 (tdesc_set_struct_size): Likewise.
14561 (struct tdesc_type *): Likewise.
14562 (tdesc_free_feature): Likewise.
14563 (tdesc_create_feature): Likewise.
14564 * windows-nat.c (windows_add_thread): Likewise.
14565 (windows_make_so): Likewise.
14566 * xml-support.c (gdb_xml_body_text): Likewise.
14567 (gdb_xml_create_parser_and_cleanup): Likewise.
14568 (xml_process_xincludes): Likewise.
14569 * xml-syscall.c (allocate_syscalls_info): Likewise.
14570 (syscall_create_syscall_desc): Likewise.
14572 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14574 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14575 function, with code from i386_stap_parse_special_token.
14576 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14577 (i386_stap_parse_special_token): Move code to the two functions
14578 above; simplify it.
14580 2014-01-09 Pedro Alves <palves@redhat.com>
14581 Hui Zhu <hui@codesourcery.com>
14584 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14585 bp_err_string. Don't mark the location shlib_disabled if the
14586 error thrown wasn't a generic or memory error. Catch errors
14587 thrown while inserting breakpoints in overlayed code. Output
14588 error message of software breakpoints.
14589 * remote.c (remote_insert_breakpoint): If this breakpoint has
14590 target-side commands but this stub doesn't support Z0 packets,
14591 throw NOT_SUPPORTED_ERROR error.
14592 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14593 * target.h (target_insert_breakpoint): Extend comment.
14594 (target_insert_hw_breakpoint): Add comment.
14596 2014-01-08 Pedro Alves <palves@redhat.com>
14598 * remote.c (remote_add_thread): Add threads silently if starting
14600 (remote_notice_new_inferior): If in all-stop, and starting up,
14601 don't call notice_new_inferior.
14602 (get_current_thread): New function, factored out from ...
14603 (add_current_inferior_and_thread): ... this. Adjust.
14604 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14605 found any thread, then select the remote's current thread as GDB's
14606 current thread too.
14608 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14610 * NEWS: Create a new section for the next release branch.
14611 Rename the section of the current branch, now that it has
14614 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14616 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14617 * version.in: Bump version to 7.7.50.DATE-cvs.
14619 2014-01-08 Yao Qi <yao@codesourcery.com>
14621 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14622 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14623 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14625 2014-01-08 Yao Qi <yao@codesourcery.com>
14627 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14628 return value of bfd_get_filename to symbol_file_add_from_bfd.
14630 2014-01-08 Pierre Muller <muller@sourceware.org>
14633 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14634 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14635 to prim_record_mininal_symbol_and_info.
14636 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14637 in call to prim_record_minimal_symbol_and_info.
14638 (read_pe_exported_syms): Set index field of section_data.
14640 2014-01-07 Andrew Pinski <apinski@cavium.com>
14642 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14643 * features/aarch64.c: Regenerate.
14645 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14647 * target.c (return_null): Define.
14648 (update_current_target): Use it instead of return_zero for
14649 functions that return a pointer.
14651 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14653 * source.c (add_path): Fix check for duplicated paths in the previously
14656 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14658 * ada-lang.c: Remove duplicated include statements.
14659 * alphabsd-nat.c: Ditto.
14660 * amd64-darwin-tdep.c: Ditto.
14661 * amd64fbsd-nat.c: Ditto.
14662 * auto-load.c: Ditto.
14664 * breakpoint.c: Ditto.
14665 * dbxread.c: Ditto.
14666 * fork-child.c: Ditto.
14667 * gdb_usleep.c: Ditto.
14668 * i386-darwin-tdep.c: Ditto.
14669 * i386fbsd-nat.c: Ditto.
14671 * inferior.c: Ditto.
14672 * jv-lang.c: Ditto.
14673 * linux-nat.c: Ditto.
14674 * linux-tdep.c: Ditto.
14675 * m68kbsd-nat.c: Ditto.
14676 * m68klinux-nat.c: Ditto.
14677 * microblaze-tdep.c: Ditto.
14678 * mips-linux-tdep.c: Ditto.
14679 * mn10300-tdep.c: Ditto.
14680 * nto-tdep.c: Ditto.
14681 * opencl-lang.c: Ditto.
14683 * printcmd.c: Ditto.
14684 * regcache.c: Ditto.
14685 * remote-m32r-sdi.c: Ditto.
14687 * symfile.c: Ditto.
14689 * tilegx-linux-nat.c: Ditto.
14690 * tilegx-tdep.c: Ditto.
14691 * tracepoint.c: Ditto.
14693 * vaxbsd-nat.c: Ditto.
14694 * windows-nat.c: Ditto.
14695 * xtensa-tdep.c: Ditto.
14697 2014-01-07 Yao Qi <yao@codesourcery.com>
14699 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14701 2014-01-07 Yao Qi <yao@codesourcery.com>
14702 Joel Brobecker <brobecker@adacore.com>
14704 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14705 (pdc_write_regs): Likewise.
14706 (fetch_regs_kernel_thread): Likewise.
14707 (store_regs_kernel_thread): Likewise.
14709 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14711 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14712 tagged type objects to their actual type.
14714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14716 * ada-valprint.c (print_field_values): Add "language" parameter.
14717 Update calls to print_field_values and print_variant_part.
14718 Pass new parameter "language" in call to val_print instead
14719 of "current_language". Replace call to ada_val_print by call
14721 (print_variant_part): Add "language" parameter.
14722 (ada_val_print_struct_union): Update call to print_field_values.
14724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14726 * ada-valprint.c (ui_memcpy): Delete.
14727 (ada_print_floating): Update documentation. Add empty line
14728 between between function documentation and implementation.
14729 Delete variable "buffer". Use ui_file_xstrdup in place of
14730 ui_file_put. Minor adjustments following this change.
14732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14734 * ada-valprint.c (ada_val_print_string): New function,
14735 extracted from ada_val_print_array.
14736 (ada_val_print_array): Replace extracted code by call
14737 to ada_val_print_string followed by a return. Move
14738 "else" branch to the function's top block.
14740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14742 * ada-valprint.c (ada_val_print_array): Move implementation
14743 down. Rename parameter "offset" and "val" into "offset_aligned"
14744 and "original_value" respectively. Add parameter "offset".
14746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14748 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14749 re-organizing the code. Change the "???" message printed
14750 when target type is a TYPE_CODE_UNDEF into
14751 "<ref to undefined type>".
14753 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14755 * ada-valprint.c (print_record): Delete, implementation inlined...
14756 (ada_val_print_struct_union): ... here. Remove call to
14757 ada_check_typedef in inlined implementation.
14759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14761 * ada-valprint.c (ada_val_print_gnat_array): New function,
14762 extracted from ada_val_print_1;
14763 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14764 (ada_val_print_flt, ada_val_print_struct_union)
14765 (ada_val_print_ref): Likewise.
14766 (ada_val_print_1): Delete variables i and elttype.
14767 Replace extracted-out code by call to corresponding
14770 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14772 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14774 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14776 * ada-valprint.c (ada_val_print_1): Replace calls to
14777 ada_val_print_1 by calls to val_print.
14779 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14781 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14782 Update calls to self accordingly. Replace calls to c_val_print
14783 by calls to val_print.
14785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14787 * ada-valprint.c (print_record): Delete declaration.
14788 (adjust_type_signedness, ada_val_print_1): Likewise.
14789 (ada_val_print): Move function implementation down.
14790 (print_variant_part, print_field_values, print_record):
14791 Move function implementation up.
14793 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14795 * python/py-type.c (typy_get_name): New function.
14796 (type_object_getset): Add entry for attribute "name".
14797 * NEWS: Add entry mentioning this new attribute.
14799 2014-01-07 Yao Qi <yao@codesourcery.com>
14801 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14804 2014-01-07 Yao Qi <yao@codesourcery.com>
14806 * gnu-nat.c (info_port_rights): Add qualifier const to
14809 2014-01-07 Yao Qi <yao@codesourcery.com>
14811 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14813 2014-01-07 Yao Qi <yao@codesourcery.com>
14815 * gnu-nat.c (make_inf) Update declaration.
14816 (make_inf): Make it static.
14817 (inf_set_traced): Likewise.
14818 (inf_port_to_thread, inf_task_died_status): Likewise.
14820 2014-01-07 Yao Qi <yao@codesourcery.com>
14822 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14824 2014-01-07 Yao Qi <yao@codesourcery.com>
14826 * gnu-nat.c (_initialize_gnu_nat): Declare.
14828 2014-01-07 Yao Qi <yao@codesourcery.com>
14830 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14832 (struct gdbarch_info) <byte_order>: Change type to
14834 <byte_order_for_code>: Likewise.
14835 * gdbarch.c, gdbarch.h: Regenerated.
14837 2014-01-06 Sasha Smundak <asmundak@google.com>
14839 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14841 2014-01-06 Tom Tromey <tromey@redhat.com>
14843 * doublest.c (convert_doublest_to_floatformat): Use const, not
14845 * somread.c (som_symtab_read): Likewise.
14847 2014-01-07 Hui Zhu <hui@codesourcery.com>
14849 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14850 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14851 (gdb_bfd_fopen): Ditto.
14852 (gdb_bfd_openr): Ditto.
14853 (gdb_bfd_openw): Ditto.
14854 (gdb_bfd_openr_iovec): Ditto.
14855 (gdb_bfd_fdopenr): Ditto.
14856 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14857 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14859 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14861 * symfile-mem.c (symbol_file_add_from_memory): Removed
14862 gdb_bfd_stash_filename.
14864 2014-01-03 Doug Evans <dje@google.com>
14866 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14869 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14871 Update year range in copyright notice of all files.
14873 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14875 * top.c (print_gdb_version): Set copyright year to 2014.
14877 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14879 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14881 For older changes see ChangeLog-2013.
14887 version-control: never