1 2014-11-12 Pedro Alves <palves@redhat.com>
3 * arch-utils.c (default_skip_permanent_breakpoint): New function.
4 * arch-utils.h (default_skip_permanent_breakpoint): New
6 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
7 Install default_skip_permanent_breakpoint as default method.
8 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
9 (i386_gdbarch_init): Don't install it.
10 * infrun.c (resume): Assume there's always a
11 gdbarch_skip_permanent_breakpoint implementation.
12 * gdbarch.h, gdbarch.c: Regenerate.
14 2014-11-11 Daniel Colascione <dancol@dancol.org>
16 Warn about cross-PID-namespace debugging.
17 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
18 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
19 * linux-thread-db.c (check_pid_namespace_match): New function.
20 (thread_db_inferior_created): Call it.
22 2014-11-10 Doug Evans <xdje42@gmail.com>
24 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
25 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
27 2014-11-10 Doug Evans <xdje42@gmail.com>
29 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
31 2014-11-10 Doug Evans <xdje42@gmail.com>
34 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
35 (lookup_static_symbol): Move definition to new location and rewrite.
36 (lookup_symbol_in_objfile): New function.
37 (lookup_symbol_global_iterator_cb): Call it.
39 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
41 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
43 2014-11-07 Pedro Alves <palves@redhat.com>
45 * infrun.c (process_event_stop_test) <subroutine check>: Don't
46 check if we did a "nexti" inside a prologue.
47 * symtab.c (in_prologue): Delete function.
48 * symtab.h (in_prologue): Delete declaration.
50 2014-11-06 Doug Evans <xdje42@gmail.com>
52 * symtab.h (lookup_global_symbol): Improve function comment.
54 2014-11-06 Doug Evans <xdje42@gmail.com>
56 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
58 * symtab.h (lookup_global_symbol): Update decl.
59 (lookup_static_symbol): Move decl to better location.
61 2014-11-06 Doug Evans <xdje42@gmail.com>
63 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
65 2014-11-06 Doug Evans <xdje42@gmail.com>
67 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
69 (lookup_symbol_in_all_objfiles): Renamed from
70 lookup_symbol_aux_symtabs. All callers updated.
71 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
73 (lookup_symbol_in_objfile_symtabs): Renamed from
74 lookup_symbol_aux_objfile. All callers updated.
76 2014-11-06 Doug Evans <xdje42@gmail.com>
78 * symtab.c (lookup_symbol_in_block): Renamed from
79 lookup_symbol_aux_block. All callers updated.
81 2014-11-06 Doug Evans <xdje42@gmail.com>
83 * symtab.c (lookup_static_symbol): Renamed from
84 lookup_static_symbol_aux. All callers updated.
85 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
88 2014-11-06 Doug Evans <xdje42@gmail.com>
90 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
91 * block.c (block_lookup_symbol): Use it.
92 * cp-support.c (make_symbol_overload_list_block): Use it.
93 * symtab.c (iterate_over_symbols): Use it.
95 2014-11-06 Doug Evans <xdje42@gmail.com>
97 * symtab.c (lookup_block_symbol): Moved to ...
98 * block.c (block_lookup_symbol): ... here and renamed.
100 * block.h (block_lookup_symbol): Declare.
101 * symtab.h (lookup_block_symbol): Delete.
103 2014-11-06 Doug Evans <xdje42@gmail.com>
105 * ada-lang.c (ada_make_symbol_completion_list): Use
106 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
107 * symtab.c (lookup_objfile_from_block): Ditto.
109 2014-11-06 Doug Evans <xdje42@gmail.com>
111 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
114 2014-11-06 Doug Evans <xdje42@gmail.com>
116 * objfiles.c (get_objfile_arch): Constify.
117 * objfiles.h (get_objfile_arch): Update prototype.
118 * solib.c (solib_global_lookup): Fetch arch from objfile,
121 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
123 * nios2-tdep.c (wild_insn): Delete.
124 (profiler_insn, irqentry_insn): Delete.
125 (nios2_match_sequence): Delete.
126 (nios2_analyze_prologue): Update comments. Remove matching
127 of obsolete profiler_insn and irqentry_insn sequences.
129 2014-11-05 Alan Modra <amodra@gmail.com>
131 * charset.c (convert_between_encodings): Shrink obstack using
133 * minsyms.c (install_minimal_symbols): Likewise.
134 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
135 to char* before doing pointer arithmetic.
137 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
139 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
141 2014-11-04 Pedro Alves <palves@redhat.com>
143 * breakpoint.c (breakpoint_thread_match): Delete function.
144 * breakpoint.h (breakpoint_thread_match): Delete declaration.
146 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
149 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
150 the method args also under EVAL_SKIP when evaluating method
151 calls under EVAL_SKIP.
153 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
155 * dwarf2loc.c (read_pieced_value): Do big endian
156 processing only if gdb_regnum is not -1.
157 (write_pieced_value): Ditto.
159 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
161 * arm-linux-tdep.c (arm_linux_init_abi): Use
162 info.byte_order_for_code to choose endianity of breakpoint
163 instructions snippets.
165 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
167 * arm-tdep.c (extract_arm_insn): Use
168 gdbarch_byte_order_for_code to read arm instruction.
170 2014-11-02 Doug Evans <xdje42@gmail.com>
172 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
174 2014-11-02 Doug Evans <xdje42@gmail.com>
176 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
177 main_subfile before returning.
179 2014-10-31 Doug Evans <xdje42@gmail.com>
181 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
182 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
184 2014-10-31 Doug Evans <xdje42@gmail.com>
186 * valops.c (value_cast_pointers): Fix whitespace.
187 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
190 2014-10-30 Doug Evans <dje@google.com>
192 * NEWS: Mention ability add attributes to gdb.Objfile and
193 gdb.Progspace objects.
194 * python/py-objfile.c (objfile_object): New member dict.
195 (objfpy_dealloc): Py_XDECREF dict.
196 (objfpy_initialize): Initialize dict.
197 (objfile_getset): Add __dict__.
198 (objfile_object_type): Set tp_dictoffset member.
199 * python/py-progspace.c (progspace_object): New member dict.
200 (pspy_dealloc): Py_XDECREF dict.
201 (pspy_initialize): Initialize dict.
202 (pspace_getset): Add __dict__.
203 (pspace_object_type): Set tp_dictoffset member.
205 2014-10-30 Yao Qi <yao@codesourcery.com>
207 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
208 replace '\\' with '\\\\'.
210 2014-10-29 Joel Brobecker <brobecker@adacore.com>
214 2014-10-29 Pedro Alves <palves@redhat.com>
217 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
218 instead of assuming a thread with a stepping range is always
221 2014-10-29 Pedro Alves <palves@redhat.com>
224 * event-top.c (change_line_handler): Call
225 gdb_rl_callback_handler_remove instead of
226 rl_callback_handler_remove.
227 (callback_handler_installed): New global.
228 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
229 (gdb_rl_callback_handler_reinstall): New functions.
230 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
231 gdb_rl_callback_handler_install instead of
232 rl_callback_handler_remove and rl_callback_handler_install.
233 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
234 instead of rl_callback_handler_remove.
235 * event-top.h (gdb_rl_callback_handler_remove)
236 (gdb_rl_callback_handler_install)
237 (gdb_rl_callback_handler_reinstall): New declarations.
238 * infrun.c (reinstall_readline_callback_handler_cleanup): New
240 (fetch_inferior_event): Install it.
241 * top.c (gdb_readline_wrapper_line) Call
242 gdb_rl_callback_handler_remove instead of
243 rl_callback_handler_remove.
244 (gdb_readline_wrapper_cleanup): Don't call
245 rl_callback_handler_install.
247 2014-10-29 Pedro Alves <palves@redhat.com>
249 * event-top.c (command_line_handler): Clear the first byte of
250 linebuffer, when it is first allocated.
252 2014-10-29 Pedro Alves <palves@redhat.com>
254 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
257 2014-10-29 Pedro Alves <palves@redhat.com>
261 * tui/tui-interp.c (tui_is_toplevel): Delete global.
262 (tui_allowed_p): Delete function.
263 * tui/tui.c: Include "interps.h".
264 (tui_enable): Don't use tui_allowed_p. Error out here with
265 detailed error messages if the TUI is the top level interpreter,
266 or if output is not a terminal. Use newterm instead of initscr,
267 and error out if initializing the terminal fails. Also error out if
268 the terminal doesn't support cursor addressing.
269 * tui/tui.h (tui_allowed_p): Delete declaration.
271 2014-10-29 Joel Brobecker <brobecker@adacore.com>
273 * arm-tdep.c (arm_skip_stack_protector): Return early if
274 address loaded by first "ldr" instruction does not have
275 a corresponding minimal symbol. Update comment.
277 2014-10-29 Yao Qi <yao@codesourcery.com>
279 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
280 loaded address correctly of ldr instruction.
282 2014-10-28 Pedro Alves <palves@redhat.com>
285 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
287 * infrun.c (resume) <stepping breakpoint instruction>: Set the
288 thread's stepped_breakpoint field. Skip if reverse debugging.
290 (init_thread_stepping_state, handle_signal_stop): Clear the
291 thread's stepped_breakpoint field.
293 2014-10-27 Pedro Alves <palves@redhat.com>
295 * remote.c (remote_thread_alive): New, factored out from ...
296 (remote_thread_alive): ... this.
297 (remote_update_thread_list): Bail out before deleting threads if
298 the target returned an empty list, and, the current thread has a
301 2014-10-27 Pedro Alves <palves@redhat.com>
303 * infrun.c (handle_signal_stop): Also skip handlers when a random
304 signal arrives while handling a "stepi" or a "nexti". Set the
305 thread's 'step_after_step_resume_breakpoint' flag.
307 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
309 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
310 (arm_record_ld_st_imm_offset): Reimplement to cover all
311 load/store cases for ARM opcode 010.
312 (arm_record_ld_st_multiple): Reimplement to cover all
313 load/store cases for ARM opcode 100.
315 2014-10-26 Doug Evans <xdje42@gmail.com>
317 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
319 2014-10-26 Doug Evans <xdje42@gmail.com>
321 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
322 parameter "kind" to "block_index".
323 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
325 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
327 2014-10-26 Doug Evans <xdje42@gmail.com>
329 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
331 2014-10-26 Doug Evans <xdje42@gmail.com>
333 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
336 2014-10-26 Doug Evans <xdje42@gmail.com>
338 * parser-defs.h (block_found): Move decl from here ...
339 * symtab.h (block_found): ... to here.
341 2014-10-26 Doug Evans <xdje42@gmail.com>
343 * symtab.h (struct field_of_this_result): Fix typo in comment.
344 (lookup_symbol_in_language): Move function comment here.
345 (lookup_symbol): Improve function comment.
346 (basic_lookup_symbol_nonlocal): Ditto.
347 (lookup_symbol_static, lookup_symbol_global): Ditto.
348 (lookup_symbol_aux_block): Ditto.
349 (lookup_language_this): Add function comment.
350 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
352 (lookup_block_symbol): Improve function comment.
353 (lookup_struct): Fix capitalization in function comment.
354 (lookup_transparent_type): Add function comment.
355 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
356 Improve function comment.
357 (lookup_objfile_from_block): Add function comment.
358 * symtab.c (lookup_symbol_in_language): Update function comment.
359 (lookup_symbol, lookup_language_this): Ditto.
360 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
361 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
362 (basic_lookup_symbol_nonlocal): Ditto.
363 (lookup_symbol_static, lookup_symbol_global): Ditto.
364 (lookup_transparent_type, lookup_block_symbol): Ditto.
366 2014-10-25 Doug Evans <xdje42@gmail.com>
368 * symtab.c (types_info): Delete forward decl.
369 (functions_info, variables_info, sources_info): Ditto.
370 (_initialize_symtab): Rewrite forward decl to use
371 initialize_file_ftype.
373 2014-10-25 Doug Evans <xdje42@gmail.com>
375 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
377 2014-10-25 Doug Evans <xdje42@gmail.com>
379 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
380 of local var child_die.
382 2014-10-24 Don Breazeal <donb@codesourcery.com>
384 * infrun.c (follow_fork_inferior): Update fork message printing
385 to use target_terminal_ours_for_output instead of
386 target_terminal_ours, to use _() for all format strings, to print
387 "vfork" instead of "fork" for vforks, and to add a detach message.
388 (handle_vfork_child_exec_or_exit): Update message printing to use
389 target_terminal_ours_for_output instead of target_terminal_ours, to
390 use _() for all format strings, and to fix some formatting.
392 2014-10-24 Pedro Alves <palves@redhat.com>
394 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
395 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
396 * config/vax/vax.mh: Delete.
397 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
398 obsolete configurations section.
399 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
400 * vax-nat.c: Delete file.
402 2014-10-24 Pedro Alves <palves@redhat.com>
404 * NEWS (Removed targets): Add OS/arch column.
406 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
408 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
409 on the arg type of a constructor only if it is of reference type.
411 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
413 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
414 accessors and constants from nios2 opcodes update.
415 (nios2_get_next_pc): Likewise.
417 2014-10-19 Doug Evans <xdje42@gmail.com>
419 * gdbthread.h (set_running): Fix comment.
420 (set_executing, finish_thread_state): Fix comment.
422 2014-10-18 Doug Evans <xdje42@gmail.com>
424 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
426 2014-10-17 Doug Evans <dje@google.com>
428 * NEWS: Mention new event gdb.clear_objfiles.
429 * python/py-event.h (emit_clear_objfiles_event): Clear
430 * python/py-events.h (events_object): New member clear_objfiles.
431 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
433 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
434 emit clear_objfiles event.
435 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
437 (emit_clear_objfiles_event): New function.
438 (clear_objfiles): New event.
439 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
441 * python/python.c (_initialize_python): Call
442 gdbpy_initialize_clear_objfiles_event.
444 2014-10-17 Doug Evans <dje@google.com>
446 * NEWS: Mention new gdb.Objfile.progspace attribute.
447 * python/py-objfile.c (objfpy_get_progspace): New function.
448 (objfile_getset): New entry for "progspace".
450 2014-10-17 Pedro Alves <palves@redhat.com>
453 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
454 returns a copy of the input.
455 (run_command_1, continue_command, step_1, jump_command)
456 (signal_command, until_command, advance_command, finish_command)
457 (attach_command): Adjust and install a cleanup to free the
460 2014-10-17 Pedro Alves <palves@redhat.com>
463 * infcmd.c (continue_1): If continuing all threads in the
464 foreground, make sure the inferior's terminal settings are put in
467 2014-10-17 Pedro Alves <palves@redhat.com>
470 * annotate.c (annotate_breakpoints_invalid): Use
471 target_terminal_our_for_output instead of target_terminal_ours.
472 Give back the terminal to the target.
473 (annotate_frames_invalid): Likewise.
475 2014-10-17 Pedro Alves <palves@redhat.com>
477 * target.c (enum terminal_state): New enum.
478 (terminal_state): New global.
479 (target_terminal_init): New function.
480 (target_terminal_inferior): Skip if inferior already owns the
482 (target_terminal_ours, target_terminal_ours_for_output): New
484 * target.h (target_terminal_init): Convert to function prototype.
485 (target_terminal_ours_for_output): Convert to function prototype
487 (target_terminal_ours): Convert to function prototype and tweak
489 * windows-nat.c (do_initial_windows_stuff): Call
490 target_terminal_init instead of child_terminal_init_with_pgrp.
492 2014-10-17 Pedro Alves <palves@redhat.com>
494 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
495 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
496 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
498 * NEWS: Mention that support for alpha*-*-osf* has been removed.
499 * ada-lang.h [__alpha__ && __osf__]
500 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
501 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
502 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
504 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
506 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
507 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
508 * configure: Regenerate.
509 * configure.ac: Remove references to osf.
510 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
511 section. Remove all other references to osf.
512 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
513 Remove all other references to osf.
514 * dec-thread.c: Delete file.
515 * defs.h (GDB_OSABI_OSF1): Delete.
516 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
518 * osabi.c (gdb_osabi_names): Delete "OSF/1".
519 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
521 (unconditionally_kill_inferior)
522 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
523 * solib-osf.c: Delete file.
525 2014-10-17 Pedro Alves <palves@redhat.com>
527 * remote.c (clear_threads_listing_context): Move higher up, out of
528 the HAVE_LIBEXPAT guard.
530 2014-10-16 Tristan Gingold <gingold@adacore.com>
532 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
533 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
536 2014-10-15 Pedro Alves <palves@redhat.com>
538 * dec-thread.c (dec_thread_count_gdb_threads)
539 (dec_thread_add_gdb_thread): Delete.
540 (dec_thread_update_thread_list): Delete.
541 (dec_thread_find_new_threads): Rename to ...
542 (dec_thread_update_thread_list): ... this. Delete GDB-size
543 threads that are no longer found in dec_thread_list.
544 (resync_thread_list): Delete.
545 (dec_thread_wait): Call dec_thread_update_thread_list instead of
548 2014-10-15 Pedro Alves <palves@redhat.com>
550 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
551 * remote.c (remote_update_thread_list): Skip calling prune_threads
552 if any thread listing method is supported, and instead walk over
553 the set of remote threads listed, deleting those that are not
554 found in GDB's thread list.
556 2014-10-15 Pedro Alves <palves@redhat.com>
558 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
559 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
560 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
561 (bsd_uthread_target): Adjust.
562 * corelow.c (core_open): Adjust.
563 * dec-thread.c (dec_thread_find_new_threads): Update comment.
564 (dec_thread_update_thread_list): New function.
565 (init_dec_thread_ops): Adjust.
566 * gdbthread.h (prune_threads): New declaration.
567 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
568 (thread_db_update_thread_list): ... this. Call prune_threads.
569 (init_thread_db_ops): Adjust.
570 * nto-procfs.c (procfs_find_new_threads): Rename to ...
571 (procfs_update_thread_list): ... this. Call prune_threads.
572 (procfs_attach, procfs_create_inferior, init_procfs_targets):
574 * obsd-nat.c (obsd_find_new_threads): Rename to ...
575 (obsd_update_thread_list): ... this. Call prune_threads.
576 (obsd_add_target): Adjust.
577 * procfs.c (procfs_target): Adjust.
578 (procfs_notice_thread): Update comment.
579 (procfs_find_new_threads): Rename to ...
580 (procfs_update_thread_list): ... this. Call prune_threads.
581 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
583 (ravenscar_wait): Adjust.
584 (ravenscar_find_new_threads): Rename to ...
585 (ravenscar_update_thread_list): ... this. Call prune_threads.
586 (init_ravenscar_thread_ops): Adjust.
587 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
588 (record_btrace_update_thread_list): ... this. Adjust comment.
589 (init_record_btrace_ops): Adjust.
590 * remote.c (remote_threads_info): Rename to ...
591 (remote_update_thread_list): ... this. Call prune_threads.
592 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
594 * sol-thread.c (check_for_thread_db): Adjust.
595 (sol_find_new_threads_callback): Rename to ...
596 (sol_update_thread_list_callback): ... this.
597 (sol_find_new_threads): Rename to ...
598 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
599 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
600 * target-delegates.c: Regenerate.
601 * target.c (target_find_new_threads): Rename to ...
602 (target_update_thread_list): ... this.
603 * target.h (struct target_ops): Rename to_find_new_threads field
604 to to_update_thread_list.
605 (target_find_new_threads): Rename to ...
606 (target_update_thread_list): ... this.
607 * thread.c (prune_threads): Make extern.
608 (update_thread_list): Adjust.
610 2014-10-15 Pedro Alves <palves@redhat.com>
612 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
613 Add describing comment. Return -1 if the qL packet is not
615 (struct thread_item, thread_item_t): Move higher up in
616 the file. Add comments.
617 (struct threads_parsing_context): Move higher up in
618 the file, add comments, and remote to ...
619 (struct threads_listing_context): ... this.
620 (remote_newthread_step): Don't add the thread to GDB's thread
621 database here. Instead push it to the thread_listing_context
623 (remote_find_new_threads): Rename to ...
624 (remote_get_threads_with_ql): ... this. Add target_ops and
625 targets_listing_context parameters. Pass down context.
626 (start_thread): Adjust.
627 (clear_threads_parsing_context): Rename to ...
628 (clear_threads_listing_context): ... this.
629 (remote_get_threads_with_qxfer): New, with parts salvaged from old
631 (remote_get_threads_with_qthreadinfo): Ditto.
632 (remote_threads_info): Reimplement.
634 2014-10-15 Pedro Alves <palves@redhat.com>
636 * infrun.c (resume): Don't force displaced-stepping for all
637 single-steps on software single-stepping archs.
639 2014-10-15 Pedro Alves <palves@redhat.com>
641 * breakpoint.c (single_step_breakpoints): Delete global.
642 (insert_single_step_breakpoint): Adjust to store the breakpoint
643 pointer in the current thread.
644 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
645 (cancel_single_step_breakpoints): Delete functions.
646 (breakpoint_has_location_inserted_here): Make extern.
647 (single_step_breakpoint_inserted_here_p): Adjust to walk the
649 * breakpoint.h (breakpoint_has_location_inserted_here): New
651 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
652 (cancel_single_step_breakpoints): Remove declarations.
653 * gdbthread.h (struct thread_control_state)
654 <single_step_breakpoints>: New field.
655 (delete_single_step_breakpoints)
656 (thread_has_single_step_breakpoints_set)
657 (thread_has_single_step_breakpoint_here): New declarations.
658 * infrun.c (follow_exec): Also clear the single-step breakpoints.
659 (singlestep_breakpoints_inserted_p, singlestep_ptid)
660 (singlestep_pc): Delete globals.
661 (infrun_thread_ptid_changed): Remove references to removed
663 (resume_cleanups): Delete the current thread's single-step
665 (maybe_software_singlestep): Remove references to removed globals.
666 (resume): Adjust to use thread_has_single_step_breakpoints_set and
667 delete_single_step_breakpoints.
668 (init_wait_for_inferior): Remove references to removed globals.
669 (delete_thread_infrun_breakpoints): Delete the thread's
670 single-step breakpoints too.
671 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
672 single-step breakpoints here.
673 (delete_stopped_threads_single_step_breakpoints): New function.
674 (adjust_pc_after_break): Adjust to use
675 thread_has_single_step_breakpoints_set.
676 (handle_inferior_event): Remove references to removed globals.
677 Use delete_stopped_threads_single_step_breakpoints.
678 (handle_signal_stop): Adjust to per-thread single-step
679 breakpoints. Swap test order to do cheaper tests first.
680 (switch_back_to_stepped_thread): Extend debug output. Remove
681 references to removed globals.
682 * record-full.c (record_full_wait_1): Adjust to per-thread
683 single-step breakpoints.
684 * thread.c (delete_single_step_breakpoints)
685 (thread_has_single_step_breakpoints_set)
686 (thread_has_single_step_breakpoint_here): New functions.
687 (clear_thread_inferior_resources): Also delete the thread's
688 single-step breakpoints.
690 2014-10-15 Pedro Alves <palves@redhat.com>
692 * thread.c (delete_thread_breakpoint): New function.
693 (delete_step_resume_breakpoint)
694 (delete_exception_resume_breakpoint): Use it.
695 (delete_at_next_stop): New function.
696 (clear_thread_inferior_resources): Use delete_at_next_stop.
698 2014-10-15 Pedro Alves <palves@redhat.com>
700 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
701 (breakpoint_inserted_here_p): ... here. Remove special case for
702 software single-step breakpoints.
703 (find_non_raw_software_breakpoint_inserted_here): Inline ...
704 (software_breakpoint_inserted_here_p): ... here. Remove special
705 case for software single-step breakpoints.
706 (bp_target_info_copy_insertion_state)
707 (deprecated_insert_raw_breakpoint)
708 (deprecated_remove_raw_breakpoint): Delete functions.
709 * breakpoint.h (deprecated_insert_raw_breakpoint)
710 (deprecated_remove_raw_breakpoint): Remove declarations.
712 2014-10-15 Pedro Alves <palves@redhat.com>
715 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
716 Delete array globals.
717 (single_step_breakpoints): New global.
718 (breakpoint_xfer_memory): Remove special handling for single-step
720 (update_breakpoints_after_exec): Delete bp_single_step
722 (detach_breakpoints): Remove special handling for single-step
724 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
725 (bpstat_stop_status): Add comment.
726 (bpstat_what, bptype_string, print_one_breakpoint_location)
727 (adjust_breakpoint_address, init_bp_location): Handle
729 (new_single_step_breakpoint): New function.
730 (set_momentary_breakpoint, bkpt_remove_location): Remove special
731 handling for single-step breakpoints.
732 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
733 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
735 (detach_single_step_breakpoints, find_single_step_breakpoint):
737 (breakpoint_has_location_inserted_here): New function.
738 (single_step_breakpoint_inserted_here_p): Rewrite.
739 * breakpoint.h: Remove FIXME.
740 (enum bptype) <bp_single_step>: New enum value.
741 (insert_single_step_breakpoint): Update comment.
742 * infrun.c (resume_cleanups)
743 (delete_step_thread_step_resume_breakpoint): Remove single-step
745 (fetch_inferior_event): Install a cleanup that removes infrun
747 (switch_back_to_stepped_thread) <expect thread advanced also>:
748 Clear step-over info.
750 2014-10-15 Pedro Alves <palves@redhat.com>
752 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
753 (delete_thread_infrun_breakpoints): New function, with parts
754 salvaged from delete_step_resume_breakpoint_callback.
755 (delete_step_thread_step_resume_breakpoint): Delete.
756 (for_each_just_stopped_thread_callback_func): New typedef.
757 (for_each_just_stopped_thread): New function.
758 (delete_just_stopped_threads_infrun_breakpoints): New function.
759 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
760 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
762 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
764 2014-10-15 Pedro Alves <palves@redhat.com>
766 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
767 trying to step past a non-steppable watchpoint.
768 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
770 * infrun.c (struct step_over_info): Add new field
771 'nonsteppable_watchpoint_p' and adjust comments.
772 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
774 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
775 (stepping_past_nonsteppable_watchpoint): New function.
776 (step_over_info_valid_p): Also return true if stepping past a
777 nonsteppable watchpoint.
778 (proceed): Adjust call to set_step_over_info. Remove reference to
780 (init_wait_for_inferior): Remove reference to init_infwait_state.
781 (waiton_ptid): Delete global.
782 (struct execution_control_state)
783 <stepped_after_stopped_by_watchpoint>: Delete field.
784 (wait_for_inferior, fetch_inferior_event): Always pass
785 minus_one_ptid to target_wait.
786 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
788 (init_infwait_state): Delete function.
789 (handle_inferior_event): Remove infwait_state handling.
790 (handle_signal_stop) <watchpoints handling>: Adjust after
791 stepped_after_stopped_by_watchpoint removal. Don't remove
792 breakpoints here nor set infwait_state. Set the thread's
793 stepping_over_watchpoint flag, and call keep_going instead.
794 (keep_going): Handle stepping_over_watchpoint. Adjust
795 set_step_over_info calls.
796 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
799 2014-10-15 Pedro Alves <palves@redhat.com>
801 * infrun.c (step_over_info_valid_p): New function.
802 (resume): Use step_over_info_valid_p instead of checking the
803 threads's trap_expected flag.
805 2014-10-15 Doug Evans <dje@google.com>
806 Walfred Tedeschi <walfred.tedeschi@intel.com>
809 * python/lib/gdb/__init__.py (packages): Add "printer".
810 * python/lib/gdb/command/bound_registers.py: Moved to ...
811 * python/lib/gdb/printer/bound_registers.py: ... here.
812 Add printer to global set of builtin printers. Rename printer from
813 "bound" to "mpx_bound128".
814 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
815 registered as global "builtin" printer.
816 (add_builtin_pretty_printer): New function.
817 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
818 gdb/printer/__init__.py.
820 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
822 * Makefile.in (SFILES): Remove d-support.c.
823 (COMMON_OBS): Remove d-support.o.
824 * d-lang.h (d_parse_symbol): Remove declaration.
825 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
826 * d-support.c: Remove file.
828 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
830 * gdb/infrun.c (process_event_stop_test): Apply
831 gdbarch_addr_bits_remove to longjmp resume address.
833 2014-10-15 Pedro Alves <palves@redhat.com>
835 * regformats/microblaze.dat: Delete file.
837 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
839 * features/Makefile (microblaze-expedite): Replace pc with rpc.
840 * regformats/microblaze-with-stack-protect.dat: Regenerate.
842 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
844 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
847 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
851 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
854 2014-10-14 Joel Brobecker <brobecker@adacore.com>
856 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
857 of the case where the second operand is a pointer.
858 <BINOP_SUB>: Likewise.
860 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
862 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
863 only if it is not NULL.
864 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
865 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
866 (struct probe_ops) <clear_semaphore>: Likewise.
867 * tracepoint.c (start_tracing): Call set_semaphore only if it is
869 (stop_tracing): Likewise, for clear_semaphore.
871 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
873 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
874 using language_c, instead of current_language.
876 2014-10-13 Doug Evans <dje@google.com>
878 * python/py-objfile.c (objfpy_initialize): New function.
879 (objfpy_new, objfile_to_objfile_object): Call it.
880 * python/py-progspace.c (pspy_initialize): New function.
881 (pspy_new, pspace_to_pspace_object): Call it.
883 2014-10-13 Miroslav Franc <mfranc@redhat.com>
884 Jan Kratochvil <jan.kratochvil@redhat.com>
886 Fix "save breakpoints" for "catch" command.
887 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
890 2014-10-12 Miroslav Franc <mfranc@redhat.com>
892 Fix "save breakpoints" for "disable $bpnum" command.
893 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
895 2014-10-10 Pedro Alves <palves@redhat.com>
897 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
898 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
899 (HFILES_NO_SRCDIR): Remove solib-irix.h.
900 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
902 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
903 * configure.ac: Remove references to IRIX.
904 * configure.host: Add *-*-irix* to the obsolete hosts section.
905 Remove all other references to irix.
906 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
909 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
911 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
912 isn't valid, release the tdesc arch data and return NULL.
914 2014-10-10 Pedro Alves <palves@redhat.com>
916 * linux-tdep.c: Include observer.h.
917 (linux_inferior_data): New global.
918 (struct linux_info): New structure.
919 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
920 (get_linux_inferior_data): New functions.
921 (linux_vsyscall_range): Rename to ...
922 (linux_vsyscall_range_raw): ... this.
923 (linux_vsyscall_range): New function; handles caching.
924 (_initialize_linux_tdep): Register linux_inferior_data. Install
925 inferior_exit and inferior_appeared observers.
927 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
928 Pedro Alves <palves@redhat.com>
931 * solib-svr4.c (svr4_read_so_list): Rename to ...
932 (svr4_current_sos_1): ... this and change the function comment.
933 (svr4_current_sos): New function.
935 2014-10-10 Pedro Alves <palves@redhat.com>
937 * arch-utils.c (default_vsyscall_range): New function.
938 * arch-utils.h (default_vsyscall_range): New declaration.
939 * gdbarch.sh (vsyscall_range): New hook.
940 * gdbarch.h, gdbarch.c: Regenerate.
941 * linux-tdep.c (linux_vsyscall_range): New function.
942 (linux_init_abi): Install linux_vsyscall_range as
943 vsyscall_range gdbarch hook.
944 * memrange.c (address_in_mem_range): New function.
945 * memrange.h (address_in_mem_range): New declaration.
946 * symfile-mem.c (find_vdso_size): Delete function.
947 (add_vsyscall_page): Use gdbarch_vsyscall_range.
949 2014-10-10 Pedro Alves <palves@redhat.com>
951 * infrun.c (normal_stop): Fix typo in comment.
953 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
956 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
957 typo when using logical AND to determine instruction type.
959 2014-10-09 Yao Qi <yao@codesourcery.com>
961 * infrun.c (handle_signal_stop): Remove local variable
964 2014-10-08 Stan Shebs <stan@codesourcery.com>
966 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
968 2014-10-08 Gary Benson <gbenson@redhat.com>
970 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
972 2014-10-08 Gary Benson <gbenson@redhat.com>
974 * common/common-defs.h: Include common-exceptions.h.
975 * exceptions.h: Do not include common-exceptions.h.
977 2014-10-08 Gary Benson <gbenson@redhat.com>
979 * common/common-defs.h: Include cleanups.h.
980 * common/common-exceptions.c: Do not include cleanups.h.
983 2014-10-08 Gary Benson <gbenson@redhat.com>
985 * ada-lang.c: Do not include exceptions.h.
986 * ada-valprint.c: Likewise.
987 * amd64-tdep.c: Likewise.
988 * auto-load.c: Likewise.
990 * break-catch-throw.c: Likewise.
991 * breakpoint.c: Likewise.
992 * btrace.c: Likewise.
993 * c-lang.c: Likewise.
994 * cli/cli-cmds.c: Likewise.
995 * cli/cli-interp.c: Likewise.
996 * cli/cli-script.c: Likewise.
997 * completer.c: Likewise.
998 * corefile.c: Likewise.
999 * corelow.c: Likewise.
1000 * cp-abi.c: Likewise.
1001 * cp-support.c: Likewise.
1002 * cp-valprint.c: Likewise.
1003 * darwin-nat.c: Likewise.
1004 * dwarf2-frame-tailcall.c: Likewise.
1005 * dwarf2-frame.c: Likewise.
1006 * dwarf2loc.c: Likewise.
1007 * dwarf2read.c: Likewise.
1009 * event-loop.c: Likewise.
1010 * event-top.c: Likewise.
1011 * f-valprint.c: Likewise.
1012 * frame-unwind.c: Likewise.
1013 * frame.c: Likewise.
1014 * gdbtypes.c: Likewise.
1015 * gnu-v2-abi.c: Likewise.
1016 * gnu-v3-abi.c: Likewise.
1017 * guile/scm-auto-load.c: Likewise.
1018 * guile/scm-breakpoint.c: Likewise.
1019 * guile/scm-cmd.c: Likewise.
1020 * guile/scm-frame.c: Likewise.
1021 * guile/scm-lazy-string.c: Likewise.
1022 * guile/scm-param.c: Likewise.
1023 * guile/scm-symbol.c: Likewise.
1024 * guile/scm-type.c: Likewise.
1025 * hppa-hpux-tdep.c: Likewise.
1026 * i386-tdep.c: Likewise.
1027 * inf-loop.c: Likewise.
1028 * infcall.c: Likewise.
1029 * infcmd.c: Likewise.
1030 * infrun.c: Likewise.
1031 * interps.c: Likewise.
1032 * interps.h: Likewise.
1034 * linespec.c: Likewise.
1035 * linux-nat.c: Likewise.
1036 * linux-thread-db.c: Likewise.
1037 * m32r-rom.c: Likewise.
1039 * memory-map.c: Likewise.
1040 * mi/mi-cmd-break.c: Likewise.
1041 * mi/mi-cmd-stack.c: Likewise.
1042 * mi/mi-interp.c: Likewise.
1043 * mi/mi-main.c: Likewise.
1044 * monitor.c: Likewise.
1045 * nto-procfs.c: Likewise.
1046 * objc-lang.c: Likewise.
1047 * p-valprint.c: Likewise.
1048 * parse.c: Likewise.
1049 * ppc-linux-tdep.c: Likewise.
1050 * printcmd.c: Likewise.
1051 * probe.c: Likewise.
1052 * python/py-auto-load.c: Likewise.
1053 * python/py-breakpoint.c: Likewise.
1054 * python/py-cmd.c: Likewise.
1055 * python/py-finishbreakpoint.c: Likewise.
1056 * python/py-frame.c: Likewise.
1057 * python/py-framefilter.c: Likewise.
1058 * python/py-function.c: Likewise.
1059 * python/py-gdb-readline.c: Likewise.
1060 * python/py-inferior.c: Likewise.
1061 * python/py-infthread.c: Likewise.
1062 * python/py-lazy-string.c: Likewise.
1063 * python/py-linetable.c: Likewise.
1064 * python/py-param.c: Likewise.
1065 * python/py-prettyprint.c: Likewise.
1066 * python/py-symbol.c: Likewise.
1067 * python/py-type.c: Likewise.
1068 * python/py-value.c: Likewise.
1069 * python/python-internal.h: Likewise.
1070 * python/python.c: Likewise.
1071 * record-btrace.c: Likewise.
1072 * record-full.c: Likewise.
1073 * regcache.c: Likewise.
1074 * remote-fileio.c: Likewise.
1075 * remote-mips.c: Likewise.
1076 * remote.c: Likewise.
1077 * rs6000-aix-tdep.c: Likewise.
1078 * rs6000-nat.c: Likewise.
1080 * solib-darwin.c: Likewise.
1081 * solib-dsbt.c: Likewise.
1082 * solib-frv.c: Likewise.
1083 * solib-ia64-hpux.c: Likewise.
1084 * solib-spu.c: Likewise.
1085 * solib-svr4.c: Likewise.
1086 * solib.c: Likewise.
1087 * spu-tdep.c: Likewise.
1088 * stack.c: Likewise.
1089 * stap-probe.c: Likewise.
1090 * symfile-mem.c: Likewise.
1091 * symmisc.c: Likewise.
1092 * target.c: Likewise.
1093 * thread.c: Likewise.
1095 * tracepoint.c: Likewise.
1096 * tui/tui-interp.c: Likewise.
1097 * typeprint.c: Likewise.
1098 * utils.c: Likewise.
1099 * valarith.c: Likewise.
1100 * valops.c: Likewise.
1101 * valprint.c: Likewise.
1102 * value.c: Likewise.
1103 * varobj.c: Likewise.
1104 * windows-nat.c: Likewise.
1105 * xml-support.c: Likewise.
1107 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1109 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1111 (extended_mips16_next_pc): Update accordingly.
1113 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1115 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1117 (micromips_instruction_is_compact_branch): Likewise.
1118 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1119 or a compact jump, reaching a jump delay slot, or seeing a
1120 second non-prologue instruction.
1121 (micromips_scan_prologue): Also terminate scanning upon seeing a
1122 compact branch or jump, or reaching a branch or jump delay slot.
1123 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1124 or jump delay slot, or seeing a second non-prologue instruction.
1125 (mips32_instruction_has_delay_slot): Retain instruction
1126 examination code only, update arguments accordingly and move
1127 instruction fetch pieces to...
1128 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1129 (micromips_instruction_has_delay_slot): Likewise and to...
1130 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1131 (mips16_instruction_has_delay_slot): Likewise and to...
1132 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1133 (mips_single_step_through_delay): Update accordingly.
1134 (mips_adjust_breakpoint_address): Likewise.
1136 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1138 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1139 !mustbe32 also return 1 for 32-bit instructions.
1140 (mips16_instruction_has_delay_slot): Likewise. Add an
1141 explanatory comment.
1143 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1145 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1148 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1150 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1152 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1153 for the breakpoint's address. Don't preinitialize `placed_size'.
1154 (insert_bp_location): Set `reqstd_address' rather than
1156 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1157 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1159 (bkpt_remove_location): Likewise.
1160 (deprecated_insert_raw_breakpoint): Likewise.
1161 (deprecated_remove_raw_breakpoint): Likewise.
1162 (find_single_step_breakpoint): Likewise.
1163 * mem-break.c (default_memory_insert_breakpoint): Use
1164 `reqstd_address' for the breakpoint's address. Don't set
1165 `placed_address' or `placed_size' if breakpoint contents couldn't
1166 have been determined.
1167 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1168 the breakpoint's address.
1169 (remote_insert_hw_breakpoint): Likewise. Don't set
1170 `placed_address' or `placed_size' if breakpoint couldn't have been
1172 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1173 `reqstd_address' for the breakpoint's address.
1174 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1175 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1176 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1177 * microblaze-linux-tdep.c
1178 (microblaze_linux_memory_remove_breakpoint): Likewise.
1179 * monitor.c (monitor_insert_breakpoint): Likewise.
1180 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1181 (procfs_insert_hw_breakpoint): Likewise.
1182 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1183 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1184 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1185 * remote-mips.c (mips_insert_breakpoint): Likewise.
1186 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1188 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1190 * valops.c (value_assign): Check for bit field assignments
1191 before calling architecture-specific register value
1192 conversion functions.
1194 2014-10-03 Pierre Muller <muller@sourceware.org>
1196 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1198 2014-10-02 Pedro Alves <palves@redhat.com>
1200 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1201 threads_are_executing.
1202 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1204 * gdbthread.h (threads_are_executing): Declare.
1205 (handle_signal_stop) <random signals>: Don't print about the
1206 signal here if stopping.
1207 (end_stepping_range): Don't notify observers here.
1208 (normal_stop): Update the thread list. If stopped by a random
1209 signal or a stepping range ended, notify observers.
1210 * thread.c (threads_executing): New global.
1211 (init_thread_list): Clear 'threads_executing'.
1212 (set_executing): Set or clear 'threads_executing'.
1213 (threads_are_executing): New function.
1214 (update_threads_executing): New function.
1215 (update_thread_list): Use it.
1217 2014-10-02 Pedro Alves <palves@redhat.com>
1219 PR breakpoints/17431
1220 * breakpoint.c (update_breakpoints_after_exec): Don't create
1221 overlay, longjmp, std terminate nor exception breakpoints here.
1223 2014-10-02 Pedro Alves <palves@redhat.com>
1225 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1227 * inferior.c (find_inferior_for_program_space): Give preference to
1228 the current inferior.
1229 * inferior.h (find_inferior_for_program_space): Update comment.
1230 * progspace.c (switch_to_program_space_and_thread): Prefer the
1231 current inferior if it's bound to the program space requested. If
1232 the inferior found doesn't have a PID yet, don't bother looking up
1234 * progspace.h (switch_to_program_space_and_thread): Adjust
1236 * thread.c (any_thread_of_process, any_live_thread_of_process):
1237 Give preference to the current thread.
1239 2014-10-01 Pedro Alves <palves@redhat.com>
1241 * breakpoint.c (insert_bp_location): Error out if inserting a
1242 software breakpoint at a read-only address.
1243 * target.c (memory_xfer_check_region): New function, factored out
1245 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1247 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1248 against the memory region attributes.
1250 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1252 * NEWS: Announce new exit-code field in -list-thread-groups
1254 * inferior.c (exit_inferior_1): Don't clear exit code.
1255 (inferior_appeared): Clear exit code.
1256 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1259 2014-10-01 Pedro Alves <palves@redhat.com>
1261 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1262 GENERATED" along with emacs/vi read-only markers.
1263 * regformats/aarch64.dat: Regenerate.
1264 * regformats/arm-with-iwmmxt.dat: Regenerate.
1265 * regformats/arm-with-neon.dat: Regenerate.
1266 * regformats/arm-with-vfpv2.dat: Regenerate.
1267 * regformats/arm-with-vfpv3.dat: Regenerate.
1268 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1269 * regformats/i386/amd64-avx.dat: Regenerate.
1270 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1271 * regformats/i386/amd64-avx512.dat: Regenerate.
1272 * regformats/i386/amd64-linux.dat: Regenerate.
1273 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1274 * regformats/i386/amd64-mpx.dat: Regenerate.
1275 * regformats/i386/amd64.dat: Regenerate.
1276 * regformats/i386/i386-avx-linux.dat: Regenerate.
1277 * regformats/i386/i386-avx.dat: Regenerate.
1278 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1279 * regformats/i386/i386-avx512.dat: Regenerate.
1280 * regformats/i386/i386-linux.dat: Regenerate.
1281 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1282 * regformats/i386/i386-mmx.dat: Regenerate.
1283 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1284 * regformats/i386/i386-mpx.dat: Regenerate.
1285 * regformats/i386/i386.dat: Regenerate.
1286 * regformats/i386/x32-avx-linux.dat: Regenerate.
1287 * regformats/i386/x32-avx.dat: Regenerate.
1288 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1289 * regformats/i386/x32-avx512.dat: Regenerate.
1290 * regformats/i386/x32-linux.dat: Regenerate.
1291 * regformats/i386/x32.dat: Regenerate.
1292 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1293 * regformats/mips-dsp-linux.dat: Regenerate.
1294 * regformats/mips-linux.dat: Regenerate.
1295 * regformats/mips64-dsp-linux.dat: Regenerate.
1296 * regformats/mips64-linux.dat: Regenerate.
1297 * regformats/nios2-linux.dat: Regenerate.
1298 * regformats/rs6000/powerpc-32.dat: Regenerate.
1299 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1300 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1301 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1302 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1303 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1304 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1305 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1306 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1307 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1308 * regformats/s390-linux32.dat: Regenerate.
1309 * regformats/s390-linux32v1.dat: Regenerate.
1310 * regformats/s390-linux32v2.dat: Regenerate.
1311 * regformats/s390-linux64.dat: Regenerate.
1312 * regformats/s390-linux64v1.dat: Regenerate.
1313 * regformats/s390-linux64v2.dat: Regenerate.
1314 * regformats/s390-te-linux64.dat: Regenerate.
1315 * regformats/s390x-linux64.dat: Regenerate.
1316 * regformats/s390x-linux64v1.dat: Regenerate.
1317 * regformats/s390x-linux64v2.dat: Regenerate.
1318 * regformats/s390x-te-linux64.dat: Regenerate.
1319 * regformats/tic6x-c62x-linux.dat: Regenerate.
1320 * regformats/tic6x-c62x.dat: Regenerate.
1321 * regformats/tic6x-c64x-linux.dat: Regenerate.
1322 * regformats/tic6x-c64x.dat: Regenerate.
1323 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1324 * regformats/tic6x-c64xp.dat: Regenerate.
1326 2014-10-01 Pedro Alves <palves@redhat.com>
1328 * features/Makefile: Update comments.
1329 (XMLTOC): List all xml files we build C files from.
1330 (clean-cfiles): New rule.
1332 2014-10-01 Pedro Alves <palves@redhat.com>
1334 * features/i386/amd64-avx512-linux.c: Regenerate.
1335 * features/i386/amd64-avx512.c: Regenerate.
1336 * features/i386/x32-avx512-linux.c: Regenerate.
1337 * features/i386/x32-avx512.c: Regenerate.
1339 2014-10-01 Pedro Alves <palves@redhat.com>
1341 * features/Makefile (WHICH): Remove arm-with-m,
1342 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1344 2014-10-01 Pedro Alves <palves@redhat.com>
1346 * features/Makefile (clean): New rule.
1348 2014-10-01 Pedro Alves <palves@redhat.com>
1350 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1351 (zmm14h): Add missing end quotes.
1353 2014-10-01 Pedro Alves <palves@redhat.com>
1355 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1356 * features/aarch64.c: Regenerate.
1358 2014-09-30 Don Breazeal <donb@codesourcery.com>
1360 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1361 code so as to work with follow_fork_inferior.
1362 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1363 (inf_ttrace_create_inferior): Remove reference to
1364 inf_ttrace_vfork_ppid.
1365 (inf_ttrace_attach): Ditto.
1366 (inf_ttrace_detach): Ditto.
1367 (inf_ttrace_kill): Use current_inferior instead of
1368 inf_ttrace_vfork_ppid.
1369 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1370 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1371 inferior away from the parent.
1372 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1374 (follow_fork_inferior): New function.
1375 (follow_inferior_reset_breakpoints): Make function static.
1376 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1377 * linux-nat.c (linux_child_follow_fork): Move target-independent
1378 code to infrun.c:follow_fork_inferior.
1380 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1382 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1383 * gdbarch.c: Regenerate.
1384 * gdbarch.h: Likewise.
1385 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1386 gdbarch method 'regset_from_core_section'.
1387 (get_core_register_section): Remove handling for the case that
1388 regset == NULL and regset_from_core_section is defined.
1389 (get_core_registers): Drop check for deleted method.
1390 * procfs.c (procfs_do_thread_registers): Adjust comment.
1392 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1394 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1395 (linux_nat_make_corefile_notes): Remove.
1396 (linux_target_install_ops): Do not set target method
1397 'make_corefile_notes'.
1398 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1400 (linux_corefile_thread_callback): Instead of args->collect, call
1401 linux_collect_thread_registers.
1402 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1403 NULL unless there is a regset iterator.
1404 (linux_make_corefile_notes_1): Remove.
1405 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1406 by linux_make_corefile_notes.
1407 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1411 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1412 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1414 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1416 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1418 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1419 (xtensa_iterate_over_regset_sections): New.
1420 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1422 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1424 * vax-tdep.c (vax_regset_from_core_section): Remove.
1425 (vax_iterate_over_regset_sections): New.
1426 (vax_gdbarch_init): Adjust gdbarch initialization.
1428 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1430 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1431 (tilegx_regset_from_core_section): Remove.
1432 (tilegx_iterate_over_regset_sections): New.
1433 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1435 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1437 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1438 (sparc_iterate_over_regset_sections): New.
1439 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1440 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1442 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1443 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1444 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1445 target method 'make_corefile_notes'.
1447 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1449 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1450 'sizeof_gregset' and 'sizeof_fpregset'.
1451 * sh-tdep.c (sh_regset_from_core_section): Remove.
1452 (sh_iterate_over_regset_sections): New.
1453 (sh_gdbarch_init): Adjust gdbarch initialization.
1454 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1456 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1459 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1461 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1462 (score7_linux_iterate_over_regset_sections): New.
1463 (score_gdbarch_init): Adjust gdbarch initialization.
1465 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1467 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1469 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1470 method 'make_corefile_notes'.
1471 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1472 (ppcfbsd_regset_from_core_section): Remove.
1473 (ppcfbsd_iterate_over_regset_sections): New.
1474 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1476 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1477 (ppcnbsd_iterate_over_regset_sections): New.
1478 (ppcnbsd_init_abi): Adjust.
1479 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1480 (ppcobsd_iterate_over_regset_sections): New.
1481 (ppcobsd_init_abi): Adjust.
1482 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1483 (rs6000_aix_iterate_over_regset_sections): New.
1484 (rs6000_aix_init_osabi): Adjust.
1486 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1488 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1489 (nios2_regset_from_core_section): Remove.
1490 (nios2_iterate_over_regset_sections): New.
1491 (nios2_linux_init_abi): Adjust gdbarch initialization.
1493 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1495 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1496 (am33_iterate_over_regset_sections): New.
1497 (am33_linux_init_osabi): Adjust gdbarch initialization.
1499 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1501 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1502 (mips_linux_iterate_over_regset_sections): New.
1503 (mips_linux_init_abi): Adjust gdbarch initialization.
1504 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1505 (mips64obsd_iterate_over_regset_sections): New.
1506 (mips64obsd_init_abi): Adjust.
1507 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1508 (mipsnbsd_iterate_over_regset_sections): New.
1509 (mipsnbsd_init_abi): Adjust.
1511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1513 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1514 (m88k_iterate_over_regset_sections): New.
1515 (m88k_gdbarch_init): Adjust gdbarch initialization.
1517 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1519 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1520 (ia64_linux_iterate_over_regset_sections): New.
1521 (ia64_linux_init_abi): Adjust gdbarch initialization.
1523 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1525 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1526 (m68kbsd_iterate_over_regset_sections): New.
1527 (m68kbsd_init_abi): Adjust gdbarch initialization.
1528 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1529 (m68k_linux_iterate_over_regset_sections): New.
1530 (m68k_linux_init_abi): Adjust gdbarch initialization.
1532 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1534 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1535 (m32r_linux_regset_from_core_section): Remove.
1536 (m32r_linux_iterate_over_regset_sections): New.
1537 (m32r_linux_init_abi): Adjust gdbarch initialization.
1539 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1541 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1542 (amd64obsd_iterate_over_regset_sections): New.
1543 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1544 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1546 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1547 regset_from_core_section initialization.
1548 * i386-tdep.c (i386_regset_from_core_section): Remove.
1549 (i386_iterate_over_regset_sections): New.
1550 (i386_gdbarch_init): Adjust gdbarch initialization.
1551 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1552 (i386_iterate_over_regset_sections): New prototype.
1553 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1555 (i386obsd_aout_iterate_over_regset_sections): New.
1556 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1557 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1559 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1560 (amd64fbsd_init_abi): Call fbsd_init_abi.
1561 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1562 (i386fbsd4_init_abi): Call fbsd_init_abi.
1563 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1564 target method 'make_corefile_notes'.
1565 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1567 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1569 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1570 (hppa_hpux_iterate_over_regset_sections): New.
1571 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1572 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1573 (hppa_linux_iterate_over_regset_sections): New.
1574 (hppa_linux_init_abi): Adjust.
1575 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1576 (hppanbsd_iterate_over_regset_sections): New.
1577 (hppanbsd_init_abi): Adjust.
1578 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1579 (hppaobsd_iterate_over_regset_sections): New.
1580 (hppaobsd_init_abi): Adjust.
1582 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1584 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1585 (frv_linux_iterate_over_regset_sections): New.
1586 (frv_linux_init_abi): Adjust gdbarch initialization.
1588 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1590 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1591 (armbsd_iterate_over_regset_sections): New prototype.
1592 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1593 (armbsd_iterate_over_regset_sections): New.
1594 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1597 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1599 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1600 (alpha_linux_iterate_over_regset_sections): New.
1601 (alpha_linux_init_abi): Adjust gdbarch initialization.
1602 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1604 (alphanbsd_iterate_over_regset_sections): New prototype.
1606 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1608 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1610 (aarch64_linux_iterate_over_regset_sections): New.
1611 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1613 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1615 * fbsd-tdep.c: New file.
1616 * fbsd-tdep.h: New file.
1617 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1618 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1619 (ALLDEPFILES): Add fbsd-tdep.c.
1621 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1623 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1625 * gdbarch.h: Regenerate.
1626 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1628 (get_core_register_section): Add parameter 'regset' and use it, if
1629 set. Add parameter 'min_size' and verify the bfd section size
1631 (get_core_registers_cb): Add parameter 'regset' and pass it to
1632 get_core_register section. For the "standard" register sections
1633 ".reg" and ".reg2", set an appropriate default for human_name.
1634 (get_core_registers): Don't abort when the gdbarch has an iterator
1635 but no regset_from_core_section. Add NULL/0 for parameters
1636 'regset'/'min_size' in calls to get_core_register_section.
1637 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1638 'regset' and use it instead of calling the
1639 regset_from_core_section gdbarch method.
1640 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1641 * i386-tdep.c (i386_supply_xstateregset)
1642 (i386_collect_xstateregset, i386_xstateregset): Moved to
1644 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1646 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1647 core file support only if the regset iterator hasn't been set.
1648 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1649 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1650 Moved from i386-tdep.c and renamed to *_linux*.
1651 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1652 each callback invocation. Allow any .reg-xstate size when reading
1654 * amd64-tdep.c (amd64_supply_xstateregset)
1655 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1657 (amd64_regset_from_core_section): Remove.
1658 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1659 install an amd64-specific regset_from_core_section gdbarch method.
1660 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1661 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1662 Moved from amd64-tdep.c and renamed to *_linux*.
1663 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1664 to each callback invocation. Allow any .reg-xstate size when
1665 reading from a core file.
1666 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1667 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1668 each callback invocation.
1669 (arm_linux_init_abi): No longer set the regset_from_core_section
1671 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1672 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1673 each callback invocation.
1674 (ppc_linux_init_abi): No longer set the regset_from_core_section
1676 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1677 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1678 (s390_regset_from_core_section): Remove.
1679 (s390_iterate_over_regset_sections): Add regset parameter to each
1680 callback invocation.
1681 (s390_gdbarch_init): No longer set the regset_from_core_section
1682 gdbarch method. Drop initialization of deleted tdep fields.
1684 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1686 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1687 (amd64_linux_iterate_over_regset_sections): New.
1688 (amd64_linux_init_abi_common): Don't install the regset section
1689 list, but the new iterator in gdbarch.
1690 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1691 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1692 (arm_linux_iterate_over_regset_sections): ...here. New function.
1693 (arm_linux_init_abi): Set iterator instead of section list.
1694 * corelow.c (get_core_registers_cb): New function, logic moved
1696 (get_core_registers): ...loop body here. Use new iterator method
1697 instead of walking through the regset section list.
1698 * gdbarch.sh: Remove 'core_regset_sections'. New method
1699 'iterate_over_regset_sections'. New typedef
1700 'iterate_over_regset_sections_cb'.
1701 * gdbarch.c: Regenerate.
1702 * gdbarch.h: Likewise.
1703 * i386-linux-tdep.c (i386_linux_regset_sections)
1704 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1706 (i386_linux_iterate_over_regset_sections): New.
1707 (i386_linux_init_abi): Don't choose a regset section list, but
1708 install new iterator in gdbarch.
1709 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1710 (linux_collect_regset_section_cb): New function, logic moved
1712 (linux_collect_thread_registers): ...loop body here. Use iterator
1713 method instead of walking through list.
1714 (linux_make_corefile_notes_1): Check for presence of iterator
1715 method instead of regset section list.
1716 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1717 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1718 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1719 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1720 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1721 (ppc_linux_init_abi): Don't choose from above regset section
1722 lists, but install new iterator in gdbarch.
1723 * regset.h (struct core_regset_section): Remove.
1724 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1725 have_linux_v1, have_linux_v2, and have_tdb.
1726 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1727 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1728 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1729 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1730 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1731 (s390_iterate_over_regset_sections): ...here. New function. Use
1733 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1734 regset section lists, but install new iterator.
1736 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1738 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1740 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1742 * progspace.c (print_program_space): Don't prune program spaces
1743 before printing them.
1745 2014-09-25 Pedro Alves <palves@redhat.com>
1747 * infrun.c (user_visible_resume_ptid): Don't check
1748 singlestep_breakpoints_inserted_p.
1750 2014-09-25 Pedro Alves <palves@redhat.com>
1752 * breakpoint.c (should_be_inserted): Add debug output.
1754 2014-09-25 Pedro Alves <palves@redhat.com>
1756 * infrun.c (stepping_past_instruction_at)
1757 (clear_exit_convenience_vars): Point at infrun.h instead of
1759 (handle_signal_stop): Fix typo.
1761 2014-09-24 Yao Qi <yao@codesourcery.com>
1763 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1766 2014-09-22 Gary Benson <gbenson@redhat.com>
1768 * target.c (target_stop): Updated comment.
1770 2014-09-22 Gary Benson <gbenson@redhat.com>
1772 * target/target.h (target_stop_ptid): Renamed as...
1773 (target_stop_and_wait): New function. Updated comment.
1775 (target_continue_ptid): Renamed as...
1776 (target_continue_no_signal): New function. Updated comment.
1779 2014-09-22 Pedro Alves <palves@redhat.com>
1781 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1783 * breakpoint.c (enum ugll_insert_mode): New enum.
1784 (always_inserted_mode): Now a plain boolean.
1785 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1786 (breakpoints_always_inserted_mode): Delete.
1787 (breakpoints_should_be_inserted_now): New function.
1788 (insert_breakpoints): Pass UGLL_INSERT to
1789 update_global_location_list instead of calling
1790 insert_breakpoint_locations manually.
1791 (create_solib_event_breakpoint_1): New, factored out from ...
1792 (create_solib_event_breakpoint): ... this.
1793 (create_and_insert_solib_event_breakpoint): Use
1794 create_solib_event_breakpoint_1 instead of calling
1795 insert_breakpoint_locations manually.
1796 (update_global_location_list): Change parameter type from boolean
1797 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1798 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1799 (update_global_location_list_nothrow): Change parameter type from
1800 boolean to enum ugll_insert_mode.
1801 (_initialize_breakpoint): "breakpoint always-inserted" option is
1802 now a boolean command. Update help text.
1803 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1804 (breakpoints_should_be_inserted_now): New declaration.
1805 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1806 Remove breakpoints_always_inserted_mode check.
1807 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1808 * remote.c (remote_start_remote): Likewise.
1810 2014-09-22 Pedro Alves <palves@redhat.com>
1812 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1813 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1814 Instead, pass UGLL_INSERT to update_global_location_list.
1815 (update_global_location_list): Change parameter type from boolean
1816 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1817 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1818 (create_solib_event_breakpoint_1): New, factored out from ...
1819 (create_solib_event_breakpoint): ... this.
1820 (create_and_insert_solib_event_breakpoint): Use
1821 create_solib_event_breakpoint_1 instead of calling
1822 insert_breakpoint_locations manually.
1823 (update_global_location_list): Handle UGLL_INSERT.
1825 2014-09-22 Pedro Alves <palves@redhat.com>
1827 * breakpoint.c (enum ugll_insert_mode): New enum.
1828 (update_global_location_list)
1829 (update_global_location_list_nothrow): Change parameter type from
1830 boolean to enum ugll_insert_mode. All callers adjusted.
1832 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1834 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1835 SystemTap support in GDB.
1837 2014-09-19 Don Breazeal <donb@codesourcery.com>
1839 * linux-nat.c (linux_handle_extended_wait): Call
1840 linux_ptrace_get_extended_event.
1841 (wait_lwp): Call linux_is_extended_waitstatus.
1842 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1843 and linux_is_extended_waitstatus.
1844 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1845 linux_ptrace_get_extended_event.
1846 (linux_ptrace_get_extended_event): New function.
1847 (linux_is_extended_waitstatus): New function.
1848 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1849 (linux_is_extended_waitstatus): New declarations.
1851 2014-09-19 Yao Qi <yao@codesourcery.com>
1853 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1854 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1855 comments. Callers update.
1856 (dwarf_decode_lines): Likewise.
1857 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1858 comments. Skip the line table if 'lowpc' is greater than
1859 'address'. Don't check
1860 dwarf2_per_objfile->has_section_at_zero.
1862 2014-09-18 Doug Evans <dje@google.com>
1864 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1865 * python/py-symtab.c (stpy_get_producer): New function.
1866 (symtab_object_getset): Add "producer" attribute.
1868 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1871 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1872 (do_captured_read_memory_integer): Remove.
1873 (safe_read_memory_integer): Use target_read_memory directly instead
1874 of catching errors in do_captured_read_memory_integer.
1876 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1878 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1881 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1883 * objc-lang.c (find_implementation_from_class): Remove dead code.
1885 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1888 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1889 "fprintf_unfiltered (gdb_stdlog...)".
1891 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1893 PR breakpoints/12526
1894 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1896 * breakpoint.c (watch_command_1): Use these fields to retain
1897 bitfield information.
1898 (extract_bitfield_from_watchpoint_value): New function.
1899 (watchpoint_check): Use it.
1900 (update_watchpoint): Use it. Optimize the address and length of a
1901 HW watchpoint pointing to a bitfield.
1902 * value.h (unpack_value_bitfield): New prototype.
1903 * value.c (unpack_value_bitfield): Make extern.
1905 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1907 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1909 * gnu-nat.c (inf_threads): New function.
1910 * gnu-nat.h (inf_threads_ftype): New typedef.
1911 (inf_threads): New declaration.
1912 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1913 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1914 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1915 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1916 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1917 (i386_gnu_dr_get_control): New functions.
1918 (reg_addr): New structure.
1919 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1920 i386 debugging register hooks.
1921 * NEWS: Mention this.
1923 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1925 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1926 vector data transfer instructions.
1927 (arm_record_coproc_data_proc): Updated.
1929 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1931 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1932 arm_record_exreg_ld_st_insn.
1933 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1936 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1938 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1939 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1940 processing instructions.
1942 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1944 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1945 for advance SIMD struct ld/st insn.
1946 (thumb2_record_decode_insn_handler): Replace stub handler with
1947 thumb2_record_asimd_struct_ld_st.
1949 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1951 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1952 for asimd, vfp and coprocessor insns.
1953 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1954 and coprocessor insns.
1955 (thumb2_record_coproc_insn): New function.
1956 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1958 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1961 2014-09-13 Doug Evans <xdje42@gmail.com>
1963 * NEWS: Mention new "queue-signal" command.
1964 * infcmd.c (queue_signal_command): New function.
1965 (_initialize_infcmd): Add new queue-signal command.
1967 2014-09-13 Doug Evans <xdje42@gmail.com>
1969 * linux-nat.c (wait_lwp): Add debugging printf.
1970 (linux_nat_wait_1): Ditto.
1972 2014-09-12 Pedro Alves <palves@redhat.com>
1974 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1975 (create_and_insert_solib_event_breakpoint): New functions.
1976 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1977 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1978 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1979 (remove_dbx_link_breakpoint): Delete function.
1980 (insert_dbx_link_bpt_in_file): Use
1981 create_and_insert_solib_event_breakpoint instead of
1982 deprecated_insert_raw_breakpoint.
1983 (procfs_wait): Don't check whether we hit __dbx_link here.
1984 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1986 * solib-irix.c (base_breakpoint): Delete global.
1987 (disable_break): Delete function.
1988 (enable_break): Use create_solib_event_breakpoint
1989 instead of deprecated_insert_raw_breakpoint.
1990 (irix_solib_handle_event): New function.
1991 (irix_solib_create_inferior_hook): Don't run the target or disable
1992 the mapping-complete breakpoint here.
1993 (_initialize_irix_solib): Install irix_solib_handle_event as
1994 so_ops->handle_event hook.
1996 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1997 Ulrich Weigand <uweigand@de.ibm.com>
2000 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2001 instead of read_memory_unsigned_integer.
2003 2014-09-12 Gary Benson <gbenson@redhat.com>
2005 * nat/linux-waitpid.c: Include common-defs.h.
2006 [GDBSERVER]: Add FIXME comment.
2007 [!GDBSERVER]: Don't include defs.h or signal.h.
2008 (linux_debug) [!GDBSERVER]: Remove empty block.
2010 2014-09-12 Gary Benson <gbenson@redhat.com>
2012 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2013 Don't include defs.h or server.h.
2015 2014-09-12 Gary Benson <gbenson@redhat.com>
2017 * nat/linux-btrace.c: Include common-defs.h.
2018 Don't include defs.h, server.h or gdbthread.h.
2019 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2021 2014-09-12 Gary Benson <gbenson@redhat.com>
2023 * common/agent.c: Include common-defs.h.
2024 Don't include defs.h or server.h.
2025 * common/buffer.c: Likewise.
2026 * common/common-debug.c: Likewise.
2027 * common/common-utils.c: Likewise.
2028 * common/errors.c: Likewise.
2029 * common/filestuff.c: Likewise.
2030 * common/format.c: Likewise.
2031 * common/gdb_vecs.c: Likewise.
2032 * common/print-utils.c: Likewise.
2033 * common/ptid.c: Likewise.
2034 * common/rsp-low.c: Likewise.
2035 * common/signals.c: Likewise.
2036 * common/vec.c: Likewise.
2037 * common/xml-utils.c: Likewise.
2038 * nat/linux-osdata.c: Likewise.
2039 * nat/linux-procfs.c: Likewise.
2040 * nat/linux-ptrace.c: Likewise.
2041 * nat/mips-linux-watch.c: Likewise.
2042 * target/waitstatus.c: Likewise.
2044 2014-09-12 Tom Tromey <tromey@redhat.com>
2045 Gary Benson <gbenson@redhat.com>
2047 * common/common-regcache.h: New file.
2048 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2049 * regcache.h: Include common-regcache.h.
2050 (regcache_read_pc): Don't declare.
2051 * regcache.c (get_thread_regcache_for_ptid): New function.
2052 * nat/linux-btrace.c: Don't include regcache.h.
2053 Include common-regcache.h.
2054 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2056 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2058 * regcache.h (struct regset): Declare.
2060 2014-09-11 Pedro Alves <palves@redhat.com>
2063 * main.c: Include "infrun.h".
2064 (catch_command_errors, catch_command_errors_const): Wait for the
2065 foreground command to complete.
2066 * top.c (maybe_wait_sync_command_done): New function, factored out
2068 (maybe_wait_sync_command_done): ... here.
2069 * top.h (maybe_wait_sync_command_done): New declaration.
2071 2014-09-11 Tom Tromey <tromey@redhat.com>
2072 Gary Benson <gbenson@redhat.com>
2074 * common/symbol.h: New file.
2075 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2076 * minsyms.c (find_minimal_symbol_address): New function.
2077 * common/agent.c: Include common/symbol.h.
2078 [!GDBSERVER]: Don't include objfiles.h.
2079 (agent_look_up_symbols): Use find_minimal_symbol_address.
2081 2014-09-11 Gary Benson <gbenson@redhat.com>
2083 * target/target.h (target_stop_ptid, target_continue_ptid):
2085 * target.c (target_stop_ptid, target_continue_ptid): New
2087 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2088 (agent_run_command): Always use target_stop_ptid and
2089 target_continue_ptid.
2091 2014-09-11 Tom Tromey <tromey@redhat.com>
2092 Gary Benson <gbenson@redhat.com>
2094 * target/target.h: New file.
2095 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2096 * target.h: Include target/target.h.
2097 (target_read_memory, target_write_memory): Don't declare.
2098 * target.c (target_read_uint32): New function.
2099 * common/agent.c: Include target/target.h.
2100 [!GDBSERVER]: Don't include target.h.
2101 (helper_thread_id): Type changed to uint32_t.
2102 (agent_get_helper_thread_id): Use target_read_uint32.
2103 (agent_run_command): Always use target_read_memory and
2104 target_write_memory.
2105 (agent_capability): Type changed to uint32_t.
2106 (agent_capability_check): Use target_read_uint32.
2108 2014-09-11 Gary Benson <gbenson@redhat.com>
2110 * common/common-debug.h (show_debug_regs): Declare.
2111 * common/common-debug.c (show_debug_regs): Define.
2112 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2113 all uses with show_debug_regs. Replace all uses that considered
2114 debug_hw_points as a multi-value integer with straight boolean
2116 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2117 with show_debug_regs.
2118 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2119 all uses with show_debug_regs.
2120 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2121 uses with show_debug_regs.
2123 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2125 * findvar.c (address_from_register): Handle targets requiring
2126 a special conversion routine even for plain pointer types.
2128 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2130 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2131 (store_register): Do not call exec_one_dummy_insn.
2133 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2135 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2136 dereference it first. Use value_enclosing_type instead of
2138 (ada_array_length): Likewise.
2140 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2142 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2143 Adjust function implementation and documentation accordingly.
2144 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2145 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2146 Update call to ada_value_ptr_subscript.
2148 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2150 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2151 instead of VAL's type.
2153 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2155 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2157 2014-09-09 Doug Evans <xdje42@gmail.com>
2160 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2161 last parameter to pkg-config, not first.
2162 * configure.ac: Pass --with-guile provided pkg-config path to
2163 GDB_GUILE_PROGRAM_NAMES.
2164 * configure: Regenerate.
2166 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2168 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2171 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2173 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2174 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2175 the list of sections determining GDB_OSABI_IRIX.
2177 2014-09-09 James Hogan <james.hogan@imgtec.com>
2179 * MAINTAINERS (Write After Approval): Add "James Hogan".
2181 2014-09-09 James Hogan <james.hogan@imgtec.com>
2183 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2185 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2187 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2189 2014-09-08 Doug Evans <xdje42@gmail.com>
2192 * guile.c: #include <signal.h>.
2193 (_initialize_guile): Block SIGCHLD while initializing Guile.
2195 Replaces the following, which is reverted.
2197 2014-07-26 Doug Evans <xdje42@gmail.com>
2200 * configure.ac: Add check for header gc/gc.h.
2201 Add check for function setenv.
2202 * configure: Regenerate.
2203 * config.in: Regenerate.
2204 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2206 2014-09-08 Doug Evans <xdje42@gmail.com>
2208 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2209 with named constant. Fix style of pointer comparison.
2210 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2212 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2215 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2216 decide whether we display the command on "show user".
2217 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2218 printing command name.
2219 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2220 * cli/cli-decode.c (cli_user_command_p): Create helper function
2221 to verify whether cmd_list_element is a user-defined command.
2223 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2226 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2227 Fix goto out of TRY_CATCH.
2229 2014-09-06 Doug Evans <xdje42@gmail.com>
2230 Tom Tromey <tromey@redhat.com>
2233 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2234 $_any_caller_matches.
2235 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2236 * python/lib/gdb/function/caller_is.py: New file.
2238 2014-09-06 Doug Evans <xdje42@gmail.com>
2240 * infcmd.c (program_info): Fix typo.
2242 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2245 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2246 'number'. New variable 'has_digit'. Rewrite code to deal with
2247 subexpressions on SDT probes.
2249 2014-09-04 Pedro Alves <palves@redhat.com>
2251 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2252 the input is only one character long.
2254 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2257 * f-valprint.c (f_val_print): Specify the correct print option to
2258 use when printing integer values.
2260 2014-09-04 Gary Benson <gbenson@redhat.com>
2262 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2263 Remove code to cope with LWPs wrapped as PIDs.
2264 Add assertions to ensure no wrapped LWPs are passed.
2266 2014-09-04 Pedro Alves <palves@redhat.com>
2268 * value.c (value_ranges_copy_adjusted): New function, factored out
2270 (value_contents_copy_raw): ... here.
2271 (unpack_value_bits_as_long_1): Rename back to ...
2272 (unpack_bits_as_long): ... this. Remove 'original_value' and
2273 'result' parameters. Change return type to LONGEST.
2274 (unpack_value_bits_as_long): Delete.
2275 (unpack_value_field_as_long_1): Delete.
2276 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2277 (unpack_value_bitfield): New function.
2278 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2279 (value_fetch_lazy): Use unpack_value_bitfield.
2280 * value.h (unpack_value_bits_as_long): Delete declaration.
2282 2014-09-03 Sasha Smundak <asmundak@google.com>
2284 * python/py-frame.c (frapy_read_register): New function.
2286 2014-09-03 James Hogan <james.hogan@imgtec.com>
2288 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2289 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2291 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2294 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2296 (add_cmd): Set "completer_handle_brkchars" to NULL.
2297 * cli/cli-decode.h (struct cmd_list_element)
2298 <completer_handle_brkchars>: New field.
2299 * command.h (completer_ftype_void): New typedef.
2300 (set_cmd_completer_handle_brkchars): New prototype.
2301 * completer.c (set_gdb_completion_word_break_characters): New
2303 (complete_line_internal): Call "completer_handle_brkchars"
2304 callback from command.
2305 * completer.h: Include "command.h".
2306 (set_gdb_completion_word_break_characters): New prototype.
2307 * python/py-cmd.c (cmdpy_completer_helper): New function.
2308 (cmdpy_completer_handle_brkchars): New function.
2309 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2310 (cmdpy_init): Set completer_handle_brkchars to
2311 cmdpy_completer_handle_brkchars.
2313 2014-09-03 Gary Benson <gbenson@redhat.com>
2315 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2316 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2317 Loop conditions changed to equivalent form.
2318 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2319 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2320 ALL_DEBUG_ADDRESS_REGISTERS.
2322 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2324 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2327 2014-09-02 Doug Evans <dje@google.com>
2329 * typeprint.c (find_global_typedef): Fix comment.
2331 2014-09-02 Gary Benson <gbenson@redhat.com>
2333 * i386-nat.h: Renamed as...
2334 * x86-nat.h: New file. All type, function and variable name
2335 prefixes changed from "i386_" to "x86_". All references updated.
2336 * i386-nat.c: Renamed as...
2337 * x86-nat.c: New file. All type, function and variable name
2338 prefixes changed from "i386_" to "x86_". All references updated.
2339 * common/i386-xstate.h: Renamed as...
2340 * common/x86-xstate.h: New file. All type, function and variable
2341 name prefixes changed from "i386_" to "x86_". All references
2343 * nat/i386-cpuid.h: Renamed as...
2344 * nat/x86-cpuid.h: New file. All type, function and variable name
2345 prefixes changed from "i386_" to "x86_". All references updated.
2346 * nat/i386-gcc-cpuid.h: Renamed as...
2347 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2348 name prefixes changed from "i386_" to "x86_". All references
2350 * nat/i386-dregs.h: Renamed as...
2351 * nat/x86-dregs.h: New file. All type, function and variable name
2352 prefixes changed from "i386_" to "x86_". All references updated.
2353 * nat/i386-dregs.c: Renamed as...
2354 * nat/x86-dregs.c: New file. All type, function and variable name
2355 prefixes changed from "i386_" to "x86_". All references updated.
2357 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2359 * varobj.c (_initialize_varobj): Move to the end of file.
2361 2014-08-29 Gary Benson <gbenson@redhat.com>
2363 * common/common-exceptions.h: New file.
2364 * common/common-exceptions.c: Likewise.
2365 * Makefile.in (SFILES): Add common/common-exceptions.c.
2366 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2367 (COMMON_OBS): Add common-exceptions.o.
2368 (common-exceptions.o): New rule.
2369 * exceptions.h (common-exceptions.h): Include.
2370 (gdb_setjmp.h): Do not include.
2371 (return_reason): Moved to common-exceptions.h.
2372 (enum return_reason): Likewise.
2373 (RETURN_MASK): Likewise.
2374 (typedef return_mask): Likewise.
2375 (enum errors): Likewise.
2376 (struct gdb_exception): Likewise.
2377 (exceptions_state_mc_init): Likewise.
2378 (exceptions_state_mc_action_iter): Likewise.
2379 (exceptions_state_mc_action_iter_1): Likewise.
2380 (TRY_CATCH): Likewise.
2381 (throw_exception): Likewise.
2382 (throw_verror): Likewise.
2383 (throw_vquit): Likewise.
2384 (throw_error): Likewise.
2385 (throw_quit): Likewise.
2386 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2387 (enum catcher_action): Likewise.
2388 (struct catcher): Likewise.
2389 (current_catcher): Likewise.
2390 (catcher_list_size): Likewise.
2391 (exceptions_state_mc_init): Likewise.
2392 (catcher_pop): Likewise.
2393 (exceptions_state_mc): Likewise.
2394 (exceptions_state_mc_action_iter): Likewise.
2395 (exceptions_state_mc_action_iter_1): Likewise.
2396 (throw_exception): Likewise.
2397 (exception_messages): Likewise.
2398 (exception_messages_size): Likewise.
2399 (throw_it): Likewise.
2400 (throw_verror): Likewise.
2401 (throw_vquit): Likewise.
2402 (throw_error): Likewise.
2403 (throw_quit): Likewise.
2404 (prepare_to_throw_exception): New function.
2406 2014-08-29 Gary Benson <gbenson@redhat.com>
2408 * common/gdb_setjmp.h: New file.
2409 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2410 * configure.ac: Move sigsetjmp check...
2411 * common/common.m4: ...here.
2412 * configure: Regenerate.
2413 * cp-support.c (SIGJMP_BUF): Delete.
2414 (SIGSETJMP): Likewise.
2415 (SIGLONGJMP): Likewise.
2416 * exceptions.h (gdb_setjmp.h): Include.
2417 (setjmp.h): Do not include.
2418 (EXCEPTIONS_SIGJMP_BUF): Delete.
2419 (EXCEPTIONS_SIGSETJMP): Likewise.
2420 (EXCEPTIONS_SIGLONGJMP): Likewise.
2421 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2423 * exceptions.c: Likewise.
2425 2014-08-29 Gary Benson <gbenson@redhat.com>
2427 * cleanups.h: Moved to...
2428 * common/cleanups.h: New file.
2429 * cleanups.c: Moved to...
2430 * common/cleanups.c: New file. Include common-defs.h and
2431 cleanups.h. Do not include defs.h.
2432 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2433 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2434 (cleanups.o): New rule.
2436 2014-08-29 Gary Benson <gbenson@redhat.com>
2438 * common/errors.h (internal_warning): New declaration.
2439 (internal_vwarning): Likewise.
2440 * common/errors.c (internal_warning): New function.
2441 * utils.h (internal_warning): Don't declare.
2442 (internal_vwarning): Likewise.
2443 * utils.c (internal_warning): Removed.
2445 2014-08-29 Gary Benson <gbenson@redhat.com>
2447 * main.c (captured_main): Use warning during startup.
2448 Prefix startup warning messages with command name.
2450 2014-08-29 Gary Benson <gbenson@redhat.com>
2452 * main.c (captured_main): Handle usage errors with error.
2454 2014-08-29 Gary Benson <gbenson@redhat.com>
2456 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2457 exit pair with a call to error. Wrap the message with _().
2459 2014-08-29 Gary Benson <gbenson@redhat.com>
2461 * main.c (captured_main): Replace a fprintf/exit
2462 pair with a call to error. Wrap the message with _().
2464 2014-08-29 Gary Benson <gbenson@redhat.com>
2466 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2467 pairs with calls to error. Wrap the message with _().
2469 2014-08-29 Gary Benson <gbenson@redhat.com>
2471 * utils.c (vwarning): Protect calls to target_terminal_ours
2474 2014-08-29 Gary Benson <gbenson@redhat.com>
2476 * exceptions.c (print_flush): Protect calls to
2477 target_terminal_ours and wrap_here.
2479 2014-08-29 Gary Benson <gbenson@redhat.com>
2481 * utils.h (filtered_printing_initialized): New declaration.
2482 * utils.c (abort_with_message): New function.
2483 (internal_vproblem): Use abort_with_message for first level
2484 recursive internal problems, and if gdb_stderr is not set up.
2485 Protect calls to target_terminal_ours, begin_line and query.
2487 2014-08-28 Doug Evans <dje@google.com>
2489 * symtab.c (in_prologue): Move definition to better spot.
2490 (skip_prologue_using_sal): Ditto.
2492 2014-08-28 Doug Evans <dje@google.com>
2494 * symtab.c (find_function_start_sal): Move definition to better spot.
2496 2014-08-28 Yao Qi <yao@codesourcery.com>
2498 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2499 found_stack_adjust in forward scan. Remove condition check
2500 on found_stack_adjust which is always true. Indent the code.
2502 2014-08-28 Yao Qi <yao@codesourcery.com>
2504 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2505 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2506 (dwarf_decode_lines): Remove argument
2507 want_line_info. Remove condition check on want_line_info.
2510 2014-08-27 Doug Evans <dje@google.com>
2512 * dwarf2read.c (dwarf_record_line): Fix typo.
2514 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2516 * target.h (struct target_ops::to_terminal_save_ours): Remove
2518 (target_terminal_save_ours): Remove macro.
2519 * target-delegates.c: Regenerate.
2520 * inf-child.c (inf_child_target): Don't set the nonexistent
2521 field to_terminal_save_ours.
2522 * inferior.h (child_terminal_save_ours): Remove declaration.
2523 * terminal.h (gdb_save_tty_state): New declaration.
2524 * inflow.c (child_terminal_save_ours): Rename to ...
2525 (gdb_save_tty_state): ... this.
2526 * tui/tui.c: Include terminal.h.
2527 (tui_enable): Use gdb_save_tty_state instead of
2528 target_terminal_save_ours.
2529 (tui_disable): Likewise.
2531 2014-08-25 Doug Evans <dje@google.com>
2533 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2534 Pass NULL instead of 0 for context pointer.
2536 2014-08-25 Yao Qi <yao@codesourcery.com>
2538 * dwarf2read.c: Fix grammatical error.
2540 2014-08-24 Yao Qi <yao@codesourcery.com>
2542 * dwarf2read.c (scan_partial_symbols): Update comments.
2543 Rename argument 'need_pc' with 'set_addrmap'.
2544 (add_partial_namespace): Rename argument 'need_pc' with
2546 (add_partial_module): Likewise.
2547 (add_partial_subprogram): Likewise. Update comments.
2548 (dwarf2_name): Fix typo.
2550 2014-08-22 Doug Evans <dje@google.com>
2553 * dwarf2read.c (dwarf_record_line_p): New function.
2554 (dwarf_decode_lines_1): Ignore subsequent line number entries
2555 for the same line if any entry had a non-zero discriminator.
2557 2014-08-22 Doug Evans <dje@google.com>
2559 * buildsym.h (record_line_ftype): New typedef.
2560 (record_line): Use it.
2561 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2562 (dwarf_decode_lines_1): Call them.
2564 2014-08-22 Yao Qi <yao@codesourcery.com>
2566 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2567 (ctf_end): Remove code.
2569 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2571 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2572 (linux_make_corefile_notes): call update_thread_list, protected against
2575 2014-08-21 Pedro Alves <palves@redhat.com>
2577 * infcmd.c (attach_command): Remove comment.
2579 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2581 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2582 unsigned LONGEST to ULONGEST.
2584 2014-08-20 Pedro Alves <palves@redhat.com>
2586 * Makefile.in (check-read1): New rule.
2588 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2590 * value.c (value_from_contents_and_address): Strip resolved_type's
2591 typedef layers before checking its TYPE_DATA_LOCATION.
2593 2014-08-20 Pedro Alves <palves@redhat.com>
2595 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2597 2014-08-20 Yao Qi <yao@codesourcery.com>
2599 * amd64-tdep.c (amd64_classify): Add a blank line after the
2600 example. Move "*/" to a new line.
2601 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2602 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2603 * dwarf2read.c (psymtab_include_file_name): Likewise.
2605 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2606 Pedro Alves <palves@redhat.com>
2610 * ada-lang.c (coerce_unspec_val_to_type): Use
2611 value_contents_copy_raw.
2612 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2613 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2614 * cp-valprint.c (cp_print_value_fields): Let the common printing
2615 code handle optimized out values.
2616 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2617 * d-valprint.c (dynamic_array_type): Use
2618 value_bits_any_optimized_out.
2619 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2620 check_any_valid fields.
2621 (check_pieced_value_bits): Delete and inline ...
2622 (check_pieced_synthetic_pointer): ... here.
2623 (check_pieced_value_validity): Delete.
2624 (check_pieced_value_invalid): Delete.
2625 (pieced_value_funcs): Remove check_validity and check_any_valid
2627 (read_pieced_value): Use mark_value_bits_optimized_out.
2628 (write_pieced_value): Switch to use
2629 mark_value_bytes_optimized_out.
2630 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2631 of assuming the whole value is optimized out.
2632 * findvar.c (read_frame_register_value): Remove special handling
2633 of optimized out registers.
2634 (value_from_register): Use mark_value_bytes_optimized_out.
2635 * frame-unwind.c (frame_unwind_got_optimized): Use
2636 mark_value_bytes_optimized_out.
2637 * jv-valprint.c (java_value_print): Adjust.
2638 (java_print_value_fields): Let the common printing code handle
2639 optimized out values.
2640 * mips-tdep.c (mips_print_register): Remove special handling of
2641 optimized out registers.
2642 * opencl-lang.c (lval_func_check_validity): Delete.
2643 (lval_func_check_any_valid): Delete.
2644 (opencl_value_funcs): Remove check_validity and check_any_valid
2646 * p-valprint.c (pascal_object_print_value_fields): Let the common
2647 printing code handle optimized out values.
2648 * stack.c (read_frame_arg): Remove special handling of optimized
2649 out values. Fetch both VAL and ENTRYVAL before comparing
2650 contents. Adjust to value_available_contents_eq rename.
2651 * valprint.c (valprint_check_validity)
2652 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2653 (val_print_array_elements): Adjust.
2654 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2655 (value_bits_any_optimized_out): New function.
2656 (value_entirely_covered_by_range_vector): New function, factored
2657 out from value_entirely_unavailable.
2658 (value_entirely_unavailable): Reimplement.
2659 (value_entirely_optimized_out): New function.
2660 (insert_into_bit_range_vector): New function, factored out from
2661 mark_value_bits_unavailable.
2662 (mark_value_bits_unavailable): Reimplement.
2663 (struct ranges_and_idx): New struct.
2664 (find_first_range_overlap_and_match): New function, factored out
2665 from value_available_contents_bits_eq.
2666 (value_available_contents_bits_eq): Rename to ...
2667 (value_contents_bits_eq): ... this. Check both unavailable
2668 contents and optimized out contents.
2669 (value_available_contents_eq): Rename to ...
2670 (value_contents_eq): ... this.
2671 (allocate_value_lazy): Remove reference to the old optimized_out
2673 (allocate_optimized_out_value): Use
2674 mark_value_bytes_optimized_out.
2675 (require_not_optimized_out): Adjust to check whether the
2676 optimized_out vec is empty.
2677 (ranges_copy_adjusted): New function, factored out from
2678 value_contents_copy_raw.
2679 (value_contents_copy_raw): Also copy the optimized out ranges.
2680 Assert the destination ranges aren't optimized out.
2681 (value_contents_copy): Update comment, remove call to
2682 require_not_optimized_out.
2683 (value_contents_equal): Adjust to check whether the optimized_out
2685 (set_value_optimized_out, value_optimized_out_const): Delete.
2686 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2688 (value_entirely_optimized_out, value_bits_valid): Delete.
2689 (value_copy): Take a VEC copy of the 'optimized_out' field.
2690 (value_primitive_field): Remove special handling of optimized out.
2691 (value_fetch_lazy): Assert that lazy values have no unavailable
2692 regions. Use value_bits_any_optimized_out. Remove some special
2693 handling for optimized out values.
2694 * value.h: Add intro comment about <optimized out> and
2696 (struct lval_funcs): Remove check_validity and check_any_valid
2698 (set_value_optimized_out, value_optimized_out_const): Remove.
2699 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2701 (value_bits_any_optimized_out): New declaration.
2702 (value_bits_valid): Delete declaration.
2703 (value_available_contents_eq): Rename to ...
2704 (value_contents_eq): ... this, and extend comments.
2706 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2708 Fix -fsanitize=address on unreadable inferior strings.
2709 * valprint.c (val_print_string): Fix access before BUFFER.
2711 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2713 * target.c (target_struct_size): Remove.
2714 (target_struct_allocsize): Remove.
2715 (DEFAULT_ALLOCSIZE): Remove.
2716 (target_ops_p): New typedef.
2717 (DEF_VEC_P (target_ops_p)): New vector type.
2718 (target_structs): Change type to VEC (target_ops_p).
2719 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2720 (find_default_run_target): Rewrite for loop following changes to
2723 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2725 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2726 Adjust code accordingly. Adjust function description comment.
2728 2014-08-19 Yao Qi <yao@codesourcery.com>
2730 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2733 2014-08-19 Alan Modra <amodra@gmail.com>
2735 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2736 * config.in: Regenerate.
2737 * configure: Regenerate.
2739 2014-08-19 Tom Tromey <tromey@redhat.com>
2740 Gary Benson <gbenson@redhat.com>
2742 * common/common-debug.h: New file.
2743 * common/common-debug.c: Likewise.
2744 * debug.c: Likewise.
2745 * Makefile.in (SFILES): Add common/common-debug.c.
2746 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2747 (COMMON_OBS): Add common-debug.o and debug.o.
2748 (common-debug.o): New rule.
2749 * common/common-defs.h: Include common-debug.h.
2750 * common/agent.c (debug_agent_printf): New function.
2751 (DEBUG_AGENT): Redefine.
2752 * nat/i386-dregs.c (debug_printf): Undefine.
2754 2014-08-19 Gary Benson <gbenson@redhat.com>
2756 * common/common-defs.h: Include print-utils.h.
2757 * utils.h: Do not include print-utils.h.
2759 2014-08-19 Tom Tromey <tromey@redhat.com>
2760 Gary Benson <gbenson@redhat.com>
2762 * common/common-types.h: New file.
2763 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2764 * common/common-defs.h: Include common-types.h.
2765 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2768 2014-08-19 Tom Tromey <tromey@redhat.com>
2769 Gary Benson <gbenson@redhat.com>
2771 * common/errors.h: New file.
2772 * common/errors.c: Likewise.
2773 * Makefile.in (SFILES): Add common/errors.c.
2774 (HFILES_NO_SRCDIR): Add common/errors.h.
2775 (COMMON_OBS): Add errors.o.
2776 (errors.o): New rule.
2777 * common/common-defs.h: Include errors.h.
2778 * utils.h (perror_with_name, error, verror, warning, vwarning):
2780 * common/common-utils.h: (malloc_failure, internal_error):
2783 2014-08-19 Gary Benson <gbenson@redhat.com>
2785 * utils.c (internal_vproblem): Always print the message.
2787 2014-08-18 Doug Evans <dje@google.com>
2789 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2791 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2793 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2794 Return 0 if TYPE is dynamic.
2795 (print_range): Add handling of dynamic ranges.
2797 2014-08-18 Keven Boell <keven.boell@intel.com>
2798 Joel Brobecker <brobecker@adacore.com>
2800 * gdbtypes.h (struct main_type): Add field "data_location".
2801 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2802 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2803 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2804 a dynamic data location.
2805 (resolve_dynamic_type): Add DW_AT_data_location handling.
2806 (copy_recursive, copy_type): Copy the data_location information
2808 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2809 * value.c (value_from_contents_and_address): Add
2810 DW_AT_data_location handling.
2812 2014-08-18 Keven Boell <keven.boell@intel.com>
2813 Joel Brobecker <brobecker@adacore.com>
2815 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2816 field "get_object_address".
2817 * dwarf2expr.c (execute_stack_op): Add handling for
2818 DW_OP_push_object_address.
2819 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2820 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2821 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2822 (dwarf_expr_get_obj_addr): New function.
2823 (dwarf_expr_ctx_funcs): Add get_object_address field.
2824 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2825 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2826 (dwarf2_evaluate_property): Add parameter "address". Use it.
2827 (needs_get_obj_addr): New function.
2828 (needs_frame_ctx_funcs): Add get_object_address field.
2829 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2830 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2831 (resolve_dynamic_array): Likewise.
2833 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2835 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2836 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2837 fixed value for records and unions for which some GNAT encodings
2840 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2842 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2843 rewrite to avoid "else if" and "else" constructs. Should be
2844 a no-op in practice.
2846 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2848 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2851 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2854 * eval.c: Update all calls to find_overload_match.
2855 * valarith.c: Likewise.
2856 (value_user_defined_cpp_op, value_user_defined_op): New
2857 argument NOSIDE. Update all callers.
2858 * valops.c (find_overload_match): New argument NOSIDE.
2859 * value.h (find_overload_match): Update signature.
2861 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2863 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2864 'items' methods instead of 'iteritems' method on dictionaries.
2866 2014-08-15 Doug Evans <dje@google.com>
2868 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2871 2014-08-15 Doug Evans <dje@google.com>
2873 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2875 2014-08-15 Doug Evans <dje@google.com>
2877 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2879 2014-08-15 Doug Evans <dje@google.com>
2881 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2884 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2886 * dcache.h: Include target.h, to avoid compile time warnings.
2888 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2890 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2891 frame_info" partial declaration.
2892 * gdbarch.h: Regenerate.
2894 2014-08-15 Yao Qi <yao@codesourcery.com>
2896 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2897 Add parameter 'decode_for_pst_p'. Callers update.
2899 2014-08-13 Yao Qi <yao@codesourcery.com>
2902 * configure.ac: Use local variable 'pos'.
2903 * configure: Regenerated.
2905 2014-08-11 Doug Evans <dje@google.com>
2907 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2908 message, it is redundant with "Reading symbols from ..." message.
2910 2014-08-10 Doug Evans <xdje42@gmail.com>
2912 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2914 2014-08-09 Yao Qi <yao@codesourcery.com>
2917 * remote.c (remote_xfer_partial): Remove dead code.
2919 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2921 * ia64-linux-tdep.c: Include "regset.h".
2922 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2923 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2924 (ia64_linux_supply_fpregset): New function.
2925 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2926 (ia64_linux_regset_from_core_section): New function.
2927 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2930 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2932 * m68klinux-tdep.c: Include "regset.h".
2933 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2934 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2935 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2936 (m68k_linux_regset_from_core_section): New function.
2937 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2940 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2942 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2943 function. Move logic to...
2944 (tilegx_linux_regmap): ... this new register map.
2945 (tilegx_linux_regset): Refer to register map, replace supply
2946 method by regcache_supply_regset, and add collect method.
2947 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2948 TILEGX_FIRST_EASY_REGNUM.
2950 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2952 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2953 that calls regcache_supply_regset and handles the EPC register
2954 separately. Move main logic to...
2955 (score7_linux_gregmap): ... this new register map.
2956 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2957 (score7_linux_gregset): Refer to register map. Add collect method.
2958 (score7_linux_regset_from_core_section): Replace
2959 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2960 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2961 (struct regset): Delete unused forward declaraction.
2962 (struct pt_regs): Delete structure definition.
2963 (elf_gregset_t): Delete typedef.
2965 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2967 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2968 (nios2_core_regset): Add collect method.
2970 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2972 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2973 platform-independent and don't write to read-only input buffer.
2974 (m32r_linux_collect_gregset): New function.
2975 (m32r_linux_gregset): Add collect method.
2977 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2979 * hppa-linux-tdep.c (greg_map): Rename to...
2980 (hppa_linux_gregmap): ... this. Also convert to
2981 regcache_map_entry format.
2982 (hppa_linux_supply_regset): Delete function.
2983 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2984 (hppa_linux_fpregmap): ... this new register map.
2985 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2986 register map, replace supply method by regcache_supply_regset, and
2987 add collect method regcache_collect_regset.
2989 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2991 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2992 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2993 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2994 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2995 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2996 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2997 (frv_linux_supply_gregset): Replace main logic by call to
2998 regcache_supply_regset, but keep clearing gr32-gr63.
2999 (frv_linux_supply_fpregset): Delete function.
3000 (frv_linux_gregset): Refer to appropriate register map and add
3001 regcache_collect_regset as the collect method.
3002 (frv_linux_fpregset): Likewise. Also exchange the supply method
3003 by regcache_supply_regset.
3005 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3007 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3008 by call to alpha_supply_int_regs.
3009 (alpha_linux_collect_gregset): New function.
3010 (alpha_linux_supply_fpregset): Replace logic by call to
3011 alpha_supply_fp_regs.
3012 (alpha_linux_collect_fpregset): New function.
3013 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3015 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3017 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3018 by call to regcache_collect_regset.
3019 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3020 instead of aarch64_linux_supply_gregset/_fpregset.
3021 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3022 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3023 header file instead.
3024 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3025 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3026 functions. Move logic to ...
3027 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3029 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3030 refer to new register maps, replace *_regset_from_core by
3031 regcache_supply_regset, and also use regcache_collect_regset.
3032 * aarch64-linux-tdep.h: Include "regset.h".
3033 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3035 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3036 macros, moved from C source file.
3037 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3038 variable declarations.
3040 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3042 * s390-linux-nat.c: Include "regset.h".
3043 (regmap_gregset): Delete macro.
3044 (s390_64_regmap_gregset): New register map for
3045 regcache_supply/_collect_regset.
3046 (s390_64_gregset): New regset.
3047 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3048 (regmap_fpregset): Delete macro.
3049 (s390_native_supply, s390_native_collect): Delete functions.
3050 (supply_gregset, fill_gregset): Replace s390-specific regmap
3051 handling by a call to regcache_supply/_collect_regset.
3052 (supply_fpregset, fill_fpregset): Call regcache_supply/
3053 _collect_regset instead of s390_native_supply/_collect.
3054 (fetch_regset, store_regset): Likewise. Also change the last
3055 parameter to a regset instead of a regmap.
3056 (s390_linux_fetch_inferior_registers)
3057 (390_linux_store_inferior_registers): Adjust last parameter in
3058 calls to fetch_regset and store_regset.
3059 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3060 (s390_gregmap): ... this. Also make static const and convert to
3061 regcache_map_entry format.
3062 (s390x_regmap_gregset): Delete.
3063 (s390_regmap_fpregset): Rename to...
3064 (s390_fpregmap): ... this. Make static const and convert to
3065 regcache_map_entry format.
3066 (s390_regmap_upper, s390_regmap_last_break)
3067 (s390x_regmap_last_break, s390_regmap_system_call)
3068 (s390_regmap_tdb): Likewise.
3069 (s390_supply_regset, s390_collect_regset): Remove functions.
3070 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3072 (s390_gregset, s390_fpregset, s390_upper_regset)
3073 (s390_last_break_regset, s390x_last_break_regset)
3074 (s390_system_call_regset, s390_tdb_regset): Make global and
3075 replace s390_supply/_collect_regset by regcache_supply/
3077 (s390x_gregset): Delete.
3078 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3079 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3080 (s390_regmap_fpregset, s390_regmap_last_break)
3081 (s390x_regmap_last_break, s390_regmap_system_call)
3082 (s390_regmap_tdb): Delete global variable declarations.
3083 (s390_gregset, s390_fpregset, s390_last_break_regset)
3084 (s390x_last_break_regset, s390_system_call_regset)
3085 (s390_tdb_regset): New global variable declarations.
3087 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3089 * regcache.c: Include "regset.h".
3090 (regcache_transfer_regset): New local function.
3091 (regcache_supply_regset, regcache_collect_regset): New functions.
3092 * regcache.h (struct regcache_map_entry): New structure.
3093 (REGCACHE_MAP_SKIP): New enum value.
3094 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3096 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3098 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3099 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3100 (ppc_linux_collect_gregset ): Likewise.
3101 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3102 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3103 (ppc_collect_vrregset): Likewise.
3104 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3107 2014-08-07 Yao Qi <yao@codesourcery.com>
3109 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3110 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3111 * remote.c (remote_read_bytes): Likewise.
3113 2014-08-07 Yao Qi <yao@codesourcery.com>
3115 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3117 2014-08-07 Yao Qi <yao@codesourcery.com>
3120 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3121 TARGET_XFER_OK instead of 0.
3123 2014-08-07 Gary Benson <gbenson@redhat.com>
3125 * common/common-defs.h: Include errno.h.
3126 * defs.h: Do not include errno.h.
3127 * ada-typeprint.c: Likewise.
3128 * c-typeprint.c: Likewise.
3129 * core-regset.c: Likewise.
3130 * corefile.c: Likewise.
3131 * corelow.c: Likewise.
3132 * event-loop.c: Likewise.
3133 * f-typeprint.c: Likewise.
3134 * gnu-nat.c: Likewise.
3135 * go32-nat.c: Likewise.
3136 * i386gnu-nat.c: Likewise.
3137 * m2-typeprint.c: Likewise.
3138 * nat/linux-btrace.c: Likewise.
3139 * p-typeprint.c: Likewise.
3140 * procfs.c: Likewise.
3141 * remote-sim.c: Likewise.
3142 * rs6000-nat.c: Likewise.
3143 * target.c: Likewise.
3144 * typeprint.c: Likewise.
3145 * ui-file.c: Likewise.
3146 * valops.c: Likewise.
3147 * valprint.c: Likewise.
3149 2014-08-07 Gary Benson <gbenson@redhat.com>
3151 * common/common-defs.h: Include string.h.
3152 * aarch64-tdep.c: Do not include string.h.
3153 * ada-exp.y: Likewise.
3154 * ada-lang.c: Likewise.
3155 * ada-lex.l: Likewise.
3156 * ada-typeprint.c: Likewise.
3157 * ada-valprint.c: Likewise.
3158 * aix-thread.c: Likewise.
3159 * alpha-linux-tdep.c: Likewise.
3160 * alpha-mdebug-tdep.c: Likewise.
3161 * alpha-nat.c: Likewise.
3162 * alpha-osf1-tdep.c: Likewise.
3163 * alpha-tdep.c: Likewise.
3164 * alphanbsd-tdep.c: Likewise.
3165 * amd64-dicos-tdep.c: Likewise.
3166 * amd64-linux-tdep.c: Likewise.
3167 * amd64-nat.c: Likewise.
3168 * amd64-sol2-tdep.c: Likewise.
3169 * amd64fbsd-tdep.c: Likewise.
3170 * amd64obsd-tdep.c: Likewise.
3171 * arch-utils.c: Likewise.
3172 * arm-linux-nat.c: Likewise.
3173 * arm-linux-tdep.c: Likewise.
3174 * arm-tdep.c: Likewise.
3175 * arm-wince-tdep.c: Likewise.
3176 * armbsd-tdep.c: Likewise.
3177 * armnbsd-nat.c: Likewise.
3178 * armnbsd-tdep.c: Likewise.
3179 * armobsd-tdep.c: Likewise.
3180 * avr-tdep.c: Likewise.
3181 * ax-gdb.c: Likewise.
3182 * ax-general.c: Likewise.
3183 * bcache.c: Likewise.
3184 * bfin-tdep.c: Likewise.
3185 * breakpoint.c: Likewise.
3186 * build-id.c: Likewise.
3187 * buildsym.c: Likewise.
3188 * c-exp.y: Likewise.
3189 * c-lang.c: Likewise.
3190 * c-typeprint.c: Likewise.
3191 * c-valprint.c: Likewise.
3192 * charset.c: Likewise.
3193 * cli-out.c: Likewise.
3194 * cli/cli-cmds.c: Likewise.
3195 * cli/cli-decode.c: Likewise.
3196 * cli/cli-dump.c: Likewise.
3197 * cli/cli-interp.c: Likewise.
3198 * cli/cli-logging.c: Likewise.
3199 * cli/cli-script.c: Likewise.
3200 * cli/cli-setshow.c: Likewise.
3201 * cli/cli-utils.c: Likewise.
3202 * coffread.c: Likewise.
3203 * common/agent.c: Likewise.
3204 * common/buffer.c: Likewise.
3205 * common/buffer.h: Likewise.
3206 * common/common-utils.c: Likewise.
3207 * common/filestuff.c: Likewise.
3208 * common/filestuff.c: Likewise.
3209 * common/format.c: Likewise.
3210 * common/print-utils.c: Likewise.
3211 * common/rsp-low.c: Likewise.
3212 * common/signals.c: Likewise.
3213 * common/vec.h: Likewise.
3214 * common/xml-utils.c: Likewise.
3215 * core-regset.c: Likewise.
3216 * corefile.c: Likewise.
3217 * corelow.c: Likewise.
3218 * cp-abi.c: Likewise.
3219 * cp-name-parser.y: Likewise.
3220 * cp-support.c: Likewise.
3221 * cp-valprint.c: Likewise.
3222 * cris-tdep.c: Likewise.
3223 * d-exp.y: Likewise.
3224 * darwin-nat.c: Likewise.
3225 * dbxread.c: Likewise.
3226 * dcache.c: Likewise.
3227 * demangle.c: Likewise.
3228 * dicos-tdep.c: Likewise.
3229 * disasm.c: Likewise.
3230 * doublest.c: Likewise.
3231 * dsrec.c: Likewise.
3232 * dummy-frame.c: Likewise.
3233 * dwarf2-frame.c: Likewise.
3234 * dwarf2loc.c: Likewise.
3235 * dwarf2read.c: Likewise.
3236 * elfread.c: Likewise.
3237 * environ.c: Likewise.
3239 * event-loop.c: Likewise.
3240 * exceptions.c: Likewise.
3242 * expprint.c: Likewise.
3243 * f-exp.y: Likewise.
3244 * f-lang.c: Likewise.
3245 * f-typeprint.c: Likewise.
3246 * f-valprint.c: Likewise.
3247 * fbsd-nat.c: Likewise.
3248 * findcmd.c: Likewise.
3249 * findvar.c: Likewise.
3250 * fork-child.c: Likewise.
3251 * frame.c: Likewise.
3252 * frv-linux-tdep.c: Likewise.
3253 * frv-tdep.c: Likewise.
3255 * gdb_bfd.c: Likewise.
3256 * gdbarch.c: Likewise.
3257 * gdbarch.sh: Likewise.
3258 * gdbtypes.c: Likewise.
3259 * gnu-nat.c: Likewise.
3260 * gnu-v2-abi.c: Likewise.
3261 * gnu-v3-abi.c: Likewise.
3262 * go-exp.y: Likewise.
3263 * go-lang.c: Likewise.
3264 * go32-nat.c: Likewise.
3265 * guile/guile.c: Likewise.
3266 * guile/scm-auto-load.c: Likewise.
3267 * hppa-hpux-tdep.c: Likewise.
3268 * hppa-linux-nat.c: Likewise.
3269 * hppanbsd-tdep.c: Likewise.
3270 * hppaobsd-tdep.c: Likewise.
3271 * i386-cygwin-tdep.c: Likewise.
3272 * i386-dicos-tdep.c: Likewise.
3273 * i386-linux-tdep.c: Likewise.
3274 * i386-nto-tdep.c: Likewise.
3275 * i386-sol2-tdep.c: Likewise.
3276 * i386-tdep.c: Likewise.
3277 * i386bsd-tdep.c: Likewise.
3278 * i386gnu-nat.c: Likewise.
3279 * i386nbsd-tdep.c: Likewise.
3280 * i386obsd-tdep.c: Likewise.
3281 * i387-tdep.c: Likewise.
3282 * ia64-libunwind-tdep.c: Likewise.
3283 * ia64-linux-nat.c: Likewise.
3284 * inf-child.c: Likewise.
3285 * inf-ptrace.c: Likewise.
3286 * inf-ttrace.c: Likewise.
3287 * infcall.c: Likewise.
3288 * infcmd.c: Likewise.
3289 * inflow.c: Likewise.
3290 * infrun.c: Likewise.
3291 * interps.c: Likewise.
3292 * iq2000-tdep.c: Likewise.
3293 * irix5-nat.c: Likewise.
3294 * jv-exp.y: Likewise.
3295 * jv-lang.c: Likewise.
3296 * jv-typeprint.c: Likewise.
3297 * jv-valprint.c: Likewise.
3298 * language.c: Likewise.
3299 * linux-fork.c: Likewise.
3300 * linux-nat.c: Likewise.
3301 * lm32-tdep.c: Likewise.
3302 * m2-exp.y: Likewise.
3303 * m2-typeprint.c: Likewise.
3304 * m32c-tdep.c: Likewise.
3305 * m32r-linux-nat.c: Likewise.
3306 * m32r-linux-tdep.c: Likewise.
3307 * m32r-rom.c: Likewise.
3308 * m32r-tdep.c: Likewise.
3309 * m68hc11-tdep.c: Likewise.
3310 * m68k-tdep.c: Likewise.
3311 * m68kbsd-tdep.c: Likewise.
3312 * m68klinux-nat.c: Likewise.
3313 * m68klinux-tdep.c: Likewise.
3314 * m88k-tdep.c: Likewise.
3315 * machoread.c: Likewise.
3316 * macrocmd.c: Likewise.
3318 * mdebugread.c: Likewise.
3319 * mem-break.c: Likewise.
3320 * memattr.c: Likewise.
3321 * memory-map.c: Likewise.
3322 * mep-tdep.c: Likewise.
3323 * mi/mi-cmd-break.c: Likewise.
3324 * mi/mi-cmd-disas.c: Likewise.
3325 * mi/mi-cmd-env.c: Likewise.
3326 * mi/mi-cmd-stack.c: Likewise.
3327 * mi/mi-cmd-var.c: Likewise.
3328 * mi/mi-cmds.c: Likewise.
3329 * mi/mi-console.c: Likewise.
3330 * mi/mi-getopt.c: Likewise.
3331 * mi/mi-interp.c: Likewise.
3332 * mi/mi-main.c: Likewise.
3333 * mi/mi-parse.c: Likewise.
3334 * microblaze-rom.c: Likewise.
3335 * microblaze-tdep.c: Likewise.
3336 * mingw-hdep.c: Likewise.
3337 * minidebug.c: Likewise.
3338 * minsyms.c: Likewise.
3339 * mips-irix-tdep.c: Likewise.
3340 * mips-linux-tdep.c: Likewise.
3341 * mips-tdep.c: Likewise.
3342 * mips64obsd-tdep.c: Likewise.
3343 * mipsnbsd-tdep.c: Likewise.
3344 * mipsread.c: Likewise.
3345 * mn10300-linux-tdep.c: Likewise.
3346 * mn10300-tdep.c: Likewise.
3347 * monitor.c: Likewise.
3348 * moxie-tdep.c: Likewise.
3349 * mt-tdep.c: Likewise.
3350 * nat/linux-btrace.c: Likewise.
3351 * nat/linux-osdata.c: Likewise.
3352 * nat/linux-procfs.c: Likewise.
3353 * nat/linux-ptrace.c: Likewise.
3354 * nat/linux-waitpid.c: Likewise.
3355 * nbsd-tdep.c: Likewise.
3356 * nios2-linux-tdep.c: Likewise.
3357 * nto-procfs.c: Likewise.
3358 * nto-tdep.c: Likewise.
3359 * objc-lang.c: Likewise.
3360 * objfiles.c: Likewise.
3361 * opencl-lang.c: Likewise.
3362 * osabi.c: Likewise.
3363 * osdata.c: Likewise.
3364 * p-exp.y: Likewise.
3365 * p-lang.c: Likewise.
3366 * p-typeprint.c: Likewise.
3367 * parse.c: Likewise.
3368 * posix-hdep.c: Likewise.
3369 * ppc-linux-nat.c: Likewise.
3370 * ppc-sysv-tdep.c: Likewise.
3371 * ppcfbsd-tdep.c: Likewise.
3372 * ppcnbsd-tdep.c: Likewise.
3373 * ppcobsd-tdep.c: Likewise.
3374 * printcmd.c: Likewise.
3375 * procfs.c: Likewise.
3376 * prologue-value.c: Likewise.
3377 * python/py-auto-load.c: Likewise.
3378 * python/py-gdb-readline.c: Likewise.
3379 * ravenscar-thread.c: Likewise.
3380 * regcache.c: Likewise.
3381 * registry.c: Likewise.
3382 * remote-fileio.c: Likewise.
3383 * remote-m32r-sdi.c: Likewise.
3384 * remote-mips.c: Likewise.
3385 * remote-notif.c: Likewise.
3386 * remote-sim.c: Likewise.
3387 * remote.c: Likewise.
3388 * reverse.c: Likewise.
3389 * rs6000-aix-tdep.c: Likewise.
3390 * ser-base.c: Likewise.
3391 * ser-go32.c: Likewise.
3392 * ser-mingw.c: Likewise.
3393 * ser-pipe.c: Likewise.
3394 * ser-tcp.c: Likewise.
3395 * ser-unix.c: Likewise.
3396 * serial.c: Likewise.
3397 * sh-tdep.c: Likewise.
3398 * sh64-tdep.c: Likewise.
3399 * shnbsd-tdep.c: Likewise.
3401 * sol-thread.c: Likewise.
3402 * solib-dsbt.c: Likewise.
3403 * solib-frv.c: Likewise.
3404 * solib-osf.c: Likewise.
3405 * solib-som.c: Likewise.
3406 * solib-spu.c: Likewise.
3407 * solib-target.c: Likewise.
3408 * solib.c: Likewise.
3409 * somread.c: Likewise.
3410 * source.c: Likewise.
3411 * sparc-nat.c: Likewise.
3412 * sparc-sol2-tdep.c: Likewise.
3413 * sparc-tdep.c: Likewise.
3414 * sparc64-tdep.c: Likewise.
3415 * sparc64fbsd-tdep.c: Likewise.
3416 * sparc64nbsd-tdep.c: Likewise.
3417 * sparcnbsd-tdep.c: Likewise.
3418 * spu-linux-nat.c: Likewise.
3419 * spu-multiarch.c: Likewise.
3420 * spu-tdep.c: Likewise.
3421 * stabsread.c: Likewise.
3422 * stack.c: Likewise.
3423 * std-regs.c: Likewise.
3424 * symfile.c: Likewise.
3425 * symmisc.c: Likewise.
3426 * symtab.c: Likewise.
3427 * target.c: Likewise.
3428 * thread.c: Likewise.
3429 * tilegx-linux-nat.c: Likewise.
3430 * tilegx-tdep.c: Likewise.
3432 * tracepoint.c: Likewise.
3433 * tui/tui-command.c: Likewise.
3434 * tui/tui-data.c: Likewise.
3435 * tui/tui-disasm.c: Likewise.
3436 * tui/tui-file.c: Likewise.
3437 * tui/tui-layout.c: Likewise.
3438 * tui/tui-out.c: Likewise.
3439 * tui/tui-regs.c: Likewise.
3440 * tui/tui-source.c: Likewise.
3441 * tui/tui-stack.c: Likewise.
3442 * tui/tui-win.c: Likewise.
3443 * tui/tui-windata.c: Likewise.
3444 * tui/tui-winsource.c: Likewise.
3445 * typeprint.c: Likewise.
3446 * ui-file.c: Likewise.
3447 * ui-out.c: Likewise.
3448 * user-regs.c: Likewise.
3449 * utils.c: Likewise.
3450 * v850-tdep.c: Likewise.
3451 * valarith.c: Likewise.
3452 * valops.c: Likewise.
3453 * valprint.c: Likewise.
3454 * value.c: Likewise.
3455 * varobj.c: Likewise.
3456 * vax-tdep.c: Likewise.
3457 * vaxnbsd-tdep.c: Likewise.
3458 * vaxobsd-tdep.c: Likewise.
3459 * windows-nat.c: Likewise.
3460 * xcoffread.c: Likewise.
3461 * xml-support.c: Likewise.
3462 * xstormy16-tdep.c: Likewise.
3463 * xtensa-linux-nat.c: Likewise.
3465 2014-08-07 Gary Benson <gbenson@redhat.com>
3467 * common/common-defs.h: Include gdb_assert.h.
3468 * aarch64-tdep.c: Do not include gdb_assert.h.
3469 * addrmap.c: Likewise.
3470 * aix-thread.c: Likewise.
3471 * alpha-linux-tdep.c: Likewise.
3472 * alpha-mdebug-tdep.c: Likewise.
3473 * alphanbsd-tdep.c: Likewise.
3474 * amd64-nat.c: Likewise.
3475 * amd64-tdep.c: Likewise.
3476 * amd64bsd-nat.c: Likewise.
3477 * amd64fbsd-nat.c: Likewise.
3478 * amd64fbsd-tdep.c: Likewise.
3479 * amd64nbsd-nat.c: Likewise.
3480 * amd64nbsd-tdep.c: Likewise.
3481 * amd64obsd-nat.c: Likewise.
3482 * amd64obsd-tdep.c: Likewise.
3483 * arch-utils.c: Likewise.
3484 * arm-tdep.c: Likewise.
3485 * armbsd-tdep.c: Likewise.
3487 * bcache.c: Likewise.
3488 * bfin-tdep.c: Likewise.
3489 * blockframe.c: Likewise.
3490 * breakpoint.c: Likewise.
3491 * bsd-kvm.c: Likewise.
3492 * bsd-uthread.c: Likewise.
3493 * buildsym.c: Likewise.
3494 * c-exp.y: Likewise.
3495 * c-lang.c: Likewise.
3496 * charset.c: Likewise.
3497 * cleanups.c: Likewise.
3498 * cli-out.c: Likewise.
3499 * cli/cli-decode.c: Likewise.
3500 * cli/cli-dump.c: Likewise.
3501 * cli/cli-logging.c: Likewise.
3502 * cli/cli-script.c: Likewise.
3503 * cli/cli-utils.c: Likewise.
3504 * coffread.c: Likewise.
3505 * common/common-utils.c: Likewise.
3506 * common/queue.h: Likewise.
3507 * common/signals.c: Likewise.
3508 * common/vec.h: Likewise.
3509 * complaints.c: Likewise.
3510 * completer.c: Likewise.
3511 * corelow.c: Likewise.
3512 * cp-abi.c: Likewise.
3513 * cp-name-parser.y: Likewise.
3514 * cp-namespace.c: Likewise.
3515 * cp-support.c: Likewise.
3516 * cris-tdep.c: Likewise.
3517 * dbxread.c: Likewise.
3518 * dictionary.c: Likewise.
3519 * doublest.c: Likewise.
3520 * dsrec.c: Likewise.
3521 * dummy-frame.c: Likewise.
3522 * dwarf2-frame-tailcall.c: Likewise.
3523 * dwarf2-frame.c: Likewise.
3524 * dwarf2expr.c: Likewise.
3525 * dwarf2loc.c: Likewise.
3526 * dwarf2read.c: Likewise.
3528 * event-loop.c: Likewise.
3529 * exceptions.c: Likewise.
3530 * expprint.c: Likewise.
3531 * f-valprint.c: Likewise.
3532 * fbsd-nat.c: Likewise.
3533 * findvar.c: Likewise.
3534 * frame-unwind.c: Likewise.
3535 * frame.c: Likewise.
3536 * frv-tdep.c: Likewise.
3537 * gcore.c: Likewise.
3538 * gdb-dlfcn.c: Likewise.
3539 * gdb_bfd.c: Likewise.
3540 * gdbarch.c: Likewise.
3541 * gdbarch.sh: Likewise.
3542 * gdbtypes.c: Likewise.
3543 * gnu-nat.c: Likewise.
3544 * gnu-v3-abi.c: Likewise.
3545 * go-lang.c: Likewise.
3546 * guile/scm-exception.c: Likewise.
3547 * guile/scm-gsmob.c: Likewise.
3548 * guile/scm-lazy-string.c: Likewise.
3549 * guile/scm-math.c: Likewise.
3550 * guile/scm-pretty-print.c: Likewise.
3551 * guile/scm-safe-call.c: Likewise.
3552 * guile/scm-utils.c: Likewise.
3553 * guile/scm-value.c: Likewise.
3554 * h8300-tdep.c: Likewise.
3555 * hppa-hpux-nat.c: Likewise.
3556 * hppa-tdep.c: Likewise.
3557 * hppanbsd-tdep.c: Likewise.
3558 * hppaobsd-tdep.c: Likewise.
3559 * i386-darwin-nat.c: Likewise.
3560 * i386-darwin-tdep.c: Likewise.
3561 * i386-nto-tdep.c: Likewise.
3562 * i386-tdep.c: Likewise.
3563 * i386bsd-nat.c: Likewise.
3564 * i386fbsd-tdep.c: Likewise.
3565 * i386gnu-nat.c: Likewise.
3566 * i386nbsd-tdep.c: Likewise.
3567 * i386obsd-tdep.c: Likewise.
3568 * i387-tdep.c: Likewise.
3569 * ia64-libunwind-tdep.c: Likewise.
3570 * ia64-tdep.c: Likewise.
3571 * inf-ptrace.c: Likewise.
3572 * inf-ttrace.c: Likewise.
3573 * infcall.c: Likewise.
3574 * infcmd.c: Likewise.
3575 * infrun.c: Likewise.
3576 * inline-frame.c: Likewise.
3577 * interps.c: Likewise.
3578 * jv-lang.c: Likewise.
3579 * jv-typeprint.c: Likewise.
3580 * linux-fork.c: Likewise.
3581 * linux-nat.c: Likewise.
3582 * linux-thread-db.c: Likewise.
3583 * m32c-tdep.c: Likewise.
3584 * m32r-linux-nat.c: Likewise.
3585 * m32r-tdep.c: Likewise.
3586 * m68k-tdep.c: Likewise.
3587 * m68kbsd-nat.c: Likewise.
3588 * m68kbsd-tdep.c: Likewise.
3589 * m88k-tdep.c: Likewise.
3590 * machoread.c: Likewise.
3591 * macroexp.c: Likewise.
3592 * macrotab.c: Likewise.
3593 * maint.c: Likewise.
3594 * mdebugread.c: Likewise.
3595 * memory-map.c: Likewise.
3596 * mep-tdep.c: Likewise.
3597 * mi/mi-common.c: Likewise.
3598 * microblaze-tdep.c: Likewise.
3599 * mingw-hdep.c: Likewise.
3600 * mips-linux-nat.c: Likewise.
3601 * mips-linux-tdep.c: Likewise.
3602 * mips-tdep.c: Likewise.
3603 * mips64obsd-tdep.c: Likewise.
3604 * mipsnbsd-tdep.c: Likewise.
3605 * mn10300-linux-tdep.c: Likewise.
3606 * mn10300-tdep.c: Likewise.
3607 * moxie-tdep.c: Likewise.
3608 * mt-tdep.c: Likewise.
3609 * nat/linux-btrace.c: Likewise.
3610 * nat/linux-osdata.c: Likewise.
3611 * nat/linux-ptrace.c: Likewise.
3612 * nat/mips-linux-watch.c: Likewise.
3613 * nios2-linux-tdep.c: Likewise.
3614 * nios2-tdep.c: Likewise.
3615 * objc-lang.c: Likewise.
3616 * objfiles.c: Likewise.
3617 * obsd-nat.c: Likewise.
3618 * opencl-lang.c: Likewise.
3619 * osabi.c: Likewise.
3620 * parse.c: Likewise.
3621 * ppc-linux-nat.c: Likewise.
3622 * ppc-sysv-tdep.c: Likewise.
3623 * ppcfbsd-nat.c: Likewise.
3624 * ppcfbsd-tdep.c: Likewise.
3625 * ppcnbsd-nat.c: Likewise.
3626 * ppcnbsd-tdep.c: Likewise.
3627 * ppcobsd-nat.c: Likewise.
3628 * ppcobsd-tdep.c: Likewise.
3629 * printcmd.c: Likewise.
3630 * procfs.c: Likewise.
3631 * prologue-value.c: Likewise.
3632 * psymtab.c: Likewise.
3633 * python/py-lazy-string.c: Likewise.
3634 * python/py-value.c: Likewise.
3635 * regcache.c: Likewise.
3636 * reggroups.c: Likewise.
3637 * registry.c: Likewise.
3638 * remote-sim.c: Likewise.
3639 * remote.c: Likewise.
3640 * rs6000-aix-tdep.c: Likewise.
3641 * rs6000-tdep.c: Likewise.
3642 * s390-linux-tdep.c: Likewise.
3643 * score-tdep.c: Likewise.
3644 * ser-base.c: Likewise.
3645 * ser-mingw.c: Likewise.
3646 * sh-tdep.c: Likewise.
3647 * sh64-tdep.c: Likewise.
3648 * solib-darwin.c: Likewise.
3649 * solib-spu.c: Likewise.
3650 * solib-svr4.c: Likewise.
3651 * source.c: Likewise.
3652 * sparc-nat.c: Likewise.
3653 * sparc-sol2-tdep.c: Likewise.
3654 * sparc-tdep.c: Likewise.
3655 * sparc64-sol2-tdep.c: Likewise.
3656 * sparc64-tdep.c: Likewise.
3657 * sparc64fbsd-tdep.c: Likewise.
3658 * sparc64nbsd-tdep.c: Likewise.
3659 * sparc64obsd-tdep.c: Likewise.
3660 * sparcnbsd-tdep.c: Likewise.
3661 * sparcobsd-tdep.c: Likewise.
3662 * spu-multiarch.c: Likewise.
3663 * spu-tdep.c: Likewise.
3664 * stabsread.c: Likewise.
3665 * stack.c: Likewise.
3666 * symfile.c: Likewise.
3667 * symtab.c: Likewise.
3668 * target-descriptions.c: Likewise.
3669 * target-memory.c: Likewise.
3670 * target.c: Likewise.
3671 * tic6x-linux-tdep.c: Likewise.
3672 * tic6x-tdep.c: Likewise.
3673 * tilegx-linux-nat.c: Likewise.
3674 * tilegx-tdep.c: Likewise.
3676 * tramp-frame.c: Likewise.
3677 * tui/tui-out.c: Likewise.
3678 * tui/tui-winsource.c: Likewise.
3679 * ui-out.c: Likewise.
3680 * user-regs.c: Likewise.
3681 * utils.c: Likewise.
3682 * v850-tdep.c: Likewise.
3683 * valops.c: Likewise.
3684 * value.c: Likewise.
3685 * varobj.c: Likewise.
3686 * vax-nat.c: Likewise.
3687 * xml-syscall.c: Likewise.
3688 * xml-tdesc.c: Likewise.
3689 * xstormy16-tdep.c: Likewise.
3690 * xtensa-linux-nat.c: Likewise.
3691 * xtensa-tdep.c: Likewise.
3693 2014-08-07 Gary Benson <gbenson@redhat.com>
3695 * common/common-defs.h: Include common-utils.h.
3696 * defs.h: Do not include common-utils.h.
3697 * common/gdb_assert.h: Likewise.
3698 * darwin-nat.h: Likewise.
3699 * nat/linux-btrace.c: Likewise.
3700 * target/waitstatus.h: Likewise.
3702 2014-08-07 Gary Benson <gbenson@redhat.com>
3704 * common/common-defs.h: Include ptid.h.
3705 * defs.h: Do not include ptid.h.
3706 * inferior.h: Likewise.
3707 * infrun.h: Likewise.
3708 * nat/linux-btrace.h: Likewise.
3709 * nat/linux-osdata.h: Likewise.
3710 * target/waitstatus.h: Likewise.
3712 2014-08-07 Gary Benson <gbenson@redhat.com>
3714 * common/common-defs.h: Include gdb_locale.h.
3715 * defs.h: Do not include gdb_locale.h.
3717 2014-08-07 Gary Benson <gbenson@redhat.com>
3719 * common/common-defs.h: Include gdb/signals.h.
3720 * defs.h: Do not include gdb/signals.h.
3722 2014-08-07 Gary Benson <gbenson@redhat.com>
3724 * common/common-defs.h: Include pathmax.h.
3725 * defs.h: Do not include pathmax.h.
3727 2014-08-07 Gary Benson <gbenson@redhat.com>
3729 * common/common-defs.h: Include libiberty.h.
3730 * defs.h: Do not include libiberty.h.
3731 * common/queue.h: Likewise.
3732 * cp-name-parser.y: Likewise.
3733 * mi/mi-cmd-catch.c: Likewise.
3734 * python/python.c: Likewise.
3736 2014-08-07 Gary Benson <gbenson@redhat.com>
3738 * common/common-defs.h: Include ansidecl.h.
3739 * defs.h: Do not include ansidecl.h.
3740 * common/buffer.h: Likewise.
3741 * common/common-utils.h: Likewise.
3743 2014-08-07 Gary Benson <gbenson@redhat.com>
3745 * common/common-defs.h: Include stddef.h.
3746 * defs.h: Do not include stddef.h.
3747 * common/common-utils.h: Likewise.
3748 * amd64fbsd-nat.c: Likewise.
3749 * bcache.c: Likewise.
3750 * charset.c: Likewise.
3751 * common/buffer.h: Likewise.
3752 * common/vec.h: Likewise.
3753 * i386bsd-nat.c: Likewise.
3754 * nat/linux-btrace.h: Likewise.
3755 * ppcfbsd-nat.c: Likewise.
3756 * ppcnbsd-tdep.h: Likewise.
3757 * ppcobsd-nat.c: Likewise.
3758 * ppcobsd-tdep.h: Likewise.
3759 * python/py-gdb-readline.c: Likewise.
3761 2014-08-07 Gary Benson <gbenson@redhat.com>
3763 * common/common-defs.h: Include stdarg.h.
3764 * defs.h: Do not include stdarg.h.
3765 * ada-lang.c: Likewise.
3766 * common/common-utils.h: Likewise.
3767 * guile/scm-string.c: Likewise.
3768 * guile/scm-utils.c: Likewise.
3769 * m32c-tdep.c: Likewise.
3771 2014-08-07 Gary Benson <gbenson@redhat.com>
3773 * common/common-defs.h: Include stdlib.h.
3774 * defs.h: Do not include stdlib.h.
3775 * addrmap.c: Likewise.
3776 * bcache.c: Likewise.
3777 * common/buffer.c: Likewise.
3778 * common/common-utils.c: Likewise.
3779 * cp-name-parser.y: Likewise.
3780 * go32-nat.c: Likewise.
3781 * mn10300-linux-tdep.c: Likewise.
3782 * nat/linux-osdata.c: Likewise.
3783 * tui/tui.c: Likewise.
3784 * windows-nat.c: Likewise.
3786 2014-08-07 Gary Benson <gbenson@redhat.com>
3788 * common/common-defs.h: Include stdio.h.
3789 * defs.h: Do not include stdio.h.
3790 * ada-lang.c: Likewise.
3791 * common/buffer.c: Likewise.
3792 * common/common-utils.c: Likewise.
3793 * cp-name-parser.y: Likewise.
3794 * gnu-nat.c: Likewise.
3795 * go32-nat.c: Likewise.
3796 * i386gnu-nat.c: Likewise.
3797 * proc-api.c: Likewise.
3798 * proc-events.c: Likewise.
3799 * proc-flags.c: Likewise.
3800 * proc-why.c: Likewise.
3801 * python/python-internal.h: Likewise.
3802 * target-memory.c: Likewise.
3803 * tui/tui-io.c: Likewise.
3804 * tui/tui.c: Likewise.
3806 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3808 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3809 (scan_dyntag_auxv): Same.
3811 2014-08-06 Yao Qi <yao@codesourcery.com>
3813 * amd64-linux-nat.c: Remove duplicated include
3815 * i386-linux-nat.c: Likewise.
3817 2014-08-06 Yao Qi <yao@codesourcery.com>
3819 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3820 operand" with "Special opcode" in comments.
3822 2014-08-05 Gary Benson <gbenson@redhat.com>
3824 * interps.c (initialize_interps): Remove prototype.
3825 (interpreter_initialized): Remove static global.
3826 (interp_add): Do not call initialize_interps.
3827 (initialize_interps): Remove function.
3829 2014-08-05 Gary Benson <gbenson@redhat.com>
3831 * utils.c (vwarning): Remove spurious va_end.
3833 2014-08-05 Alan Modra <amodra@gmail.com>
3835 * charset.c (convert_between_encodings): Cast result of obstack_base.
3836 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3837 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3838 (read_unwind_info): Use size_t for some locals.
3839 * jit.c (finalize_symtab): Likewise.
3840 * utils.c (hashtab_obstack_allocate): Likewise.
3841 * symmisc.c (print_objfile_statistics): Update format strings.
3843 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3845 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3846 (Changes in GDB 7.8): ... here.
3848 2014-08-04 Tom Tromey <tromey@redhat.com>
3850 * target.c (set_targetdebug): New function.
3851 (initialize_targets): Pass set_targetdebug when creating "set
3854 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3856 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3857 if detecting a variable-sized field that is not the last field.
3858 Fix struct type length computation.
3860 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3862 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3865 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3867 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3868 Remove "+ 8" offset in computation of CHAIN_VMA.
3870 2014-07-31 Doug Evans <dje@google.com>
3872 * inflow.c (child_terminal_inferior): Add comment.
3873 (child_terminal_ours_for_output): Add comment.
3874 (child_terminal_ours): Add comment.
3875 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3876 (linux_nat_terminal_ours): Add comment.
3878 2014-07-31 Gary Benson <gbenson@redhat.com>
3880 * common/btrace-common.h: Do not include defs.h or server.h.
3881 * nat/mips-linux-watch.h: Likewise.
3882 * gdb-dlfcn.h: Do not include defs.h.
3883 * tracefile.h: Likewise.
3885 2014-07-30 Roland McGrath <mcgrathr@google.com>
3887 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3889 2014-07-30 Tom Tromey <tromey@redhat.com>
3891 * bsd-kvm.c (bsd_kvm_open): Constify.
3892 * corelow.c (core_open): Constify.
3893 * ctf.c (ctf_open): Constify.
3894 * dbug-rom.c (dbug_open): Constify.
3895 * exec.c (exec_open): Constify.
3896 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3897 * microblaze-rom.c (picobug_open): Constify.
3898 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3900 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3901 * record-btrace.c (record_btrace_open): Constify.
3902 * record-full.c (record_full_core_open_1, record_full_open_1)
3903 (record_full_open): Constify.
3904 * remote-m32r-sdi.c (m32r_open): Constify.
3905 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3906 (rockhopper_open, lsi_open): Constify.
3907 * remote-sim.c (gdbsim_open): Constify.
3908 * remote.c (remote_open, extended_remote_open, remote_open_1):
3910 * target.h (struct target_ops) <to_open>: Make "arg" const.
3911 * tracefile-tfile.c (tfile_open): Constify.
3913 2014-07-30 Tom Tromey <tromey@redhat.com>
3915 * breakpoint.c (map_breakpoint_numbers): Update.
3916 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3917 (get_number_const): New function.
3918 (get_number): Rewrite using get_number_const.
3919 (init_number_or_range): Make "string" const.
3920 (number_is_in_list): Make "list" const.
3921 * cli/cli-utils.h (get_number_const): Declare.
3922 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3923 (init_number_or_range, number_is_in_list): Update.
3924 * printcmd.c (map_display_numbers): Update.
3925 * value.c (value_from_history_ref): Constify.
3926 * value.h (value_from_history_ref): Update.
3928 2014-07-30 Tom Tromey <tromey@redhat.com>
3930 * corefile.c (hook_type, call_extra_exec_file_hooks)
3931 (specify_exec_file_hook): Constify.
3932 * exec.c (exec_file_attach): Make "filename" const.
3933 * gdbcore.h (deprecated_exec_file_display_hook)
3934 (specify_exec_file_hook, exec_file_attach): Constify.
3935 * main.c (captured_main): Use catch_command_errors_const.
3937 2014-07-30 Tom Tromey <tromey@redhat.com>
3939 * target.c (open_target): New function.
3940 (add_target_with_completer, add_deprecated_target_alias): Use
3941 set_cmd_sfunc, set_cmd_context.
3942 (debug_to_open): Remove.
3943 (setup_target_debug): Update.
3945 2014-07-30 Yao Qi <yao@codesourcery.com>
3947 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3949 * parse.c (exp_iterate): Update comments.
3951 2014-07-30 Gary Benson <gbenson@redhat.com>
3953 * common/common-defs.h: New file.
3954 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3955 * defs.h: Include common-defs.h.
3956 Do not include config.h or build-gnulib/config.h.
3958 2014-07-30 Gary Benson <gbenson@redhat.com>
3960 * common/common-utils.h: Do not include config.h.
3961 * nat/linux-btrace.h: Likewise.
3963 2014-07-30 Gary Benson <gbenson@redhat.com>
3965 * btrace.c: Include defs.h.
3966 * common/ptid.c: Include defs.h or server.h as appropriate.
3967 * nat/mips-linux-watch.c: Likewise.
3969 2014-07-29 Tom Tromey <tromey@redhat.com>
3971 * target.c (target_is_pushed): Simplify.
3973 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3977 2014-07-29 Yao Qi <yao@codesourcery.com>
3980 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3982 2014-07-28 Doug Evans <xdje42@gmail.com>
3985 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3986 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3989 2014-07-28 Will Newton <will.newton@linaro.org>
3991 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3992 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3993 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3994 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3995 (THUMB2_EABI_SYSCALL): Likewise.
3996 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3998 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3999 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4001 2014-07-27 Doug Evans <xdje42@gmail.com>
4003 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4005 2014-07-27 Doug Evans <xdje42@gmail.com>
4007 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4009 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4010 Doug Evans <xdje42@gmail.com>
4013 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4014 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4015 * configure.ac: Try to use guild to compile an scm file, if it fails
4016 then disable guile support.
4017 * configure: Regenerate.
4018 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4020 (GUILE_COMPILED_FILES): New variable.
4021 (GUILE_FILES) Update.
4022 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4023 (stamp-guile): Compile scm files.
4024 * guile/guile.c (boot_guile_support): New function.
4025 (standard_throw_args_p): New function.
4026 (print_standard_throw_error, print_throw_error): New functions.
4027 (handle_boot_error): New function.
4028 (initialize_scheme_side): Rewrite to call boot_guile_support.
4029 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4030 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4032 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4033 Doug Evans <xdje42@gmail.com>
4036 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4037 * guile/lib/gdb/support.scm: New file.
4038 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4039 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4041 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4043 (%assert-type): Ditto, and renamed to assert-type.
4044 (%exception-print-style): Delete.
4046 2014-07-26 Doug Evans <xdje42@gmail.com>
4049 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4050 * configure: Regenerate.
4051 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4053 (PYTHON_FILES): New variable.
4054 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4055 (GUILE_FILES): New variable.
4056 (stamp-python, install-python, uninstall-python): Handle empty
4058 (stamp-guile, install-guile, uninstall-guile): Ditto.
4060 2014-07-26 Doug Evans <xdje42@gmail.com>
4063 * guile/lib/gdb.scm (pretty-printers): Export.
4064 (set-pretty-printers!): Export.
4065 * guile/lib/gdb/printing.scm (gdb module): Update.
4066 (prepend-pretty-printer!, append-pretty-printer!): Update.
4067 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4068 (pretty_printer_list_var): Delete.
4069 (pretty_printer_list): New static global.
4070 (gdbscm_pretty_printers): New function.
4071 (gdbscm_set_pretty_printers_x): New function.
4072 (ppscm_find_pretty_printer_from_gdb): Update.
4073 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4074 (gdbscm_initialize_pretty_printers): Update.
4076 2014-07-26 Doug Evans <xdje42@gmail.com>
4079 * configure.ac: Add check for header gc/gc.h.
4080 Add check for function setenv.
4081 * configure: Regenerate.
4082 * config.in: Regenerate.
4083 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4085 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4087 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4088 variation in gdbarch matching.
4090 2014-07-25 Tom Tromey <tromey@redhat.com>
4092 * exec.c (using_exec_ops): Remove.
4093 (exec_close_1): Update. Remove extraneous block, reindent.
4094 (add_target_sections): Use target_is_pushed.
4096 2014-07-25 Pedro Alves <palves@redhat.com>
4098 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4099 * monitor.c (monitor_create_inferior): Likewise.
4100 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4101 * remote-sim.c (gdbsim_create_inferior): Likewise.
4102 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4103 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4104 * windows-nat.c (do_initial_windows_stuff): Likewise.
4106 2014-07-25 Pedro Alves <palves@redhat.com>
4108 * NEWS: Mention signal passing and "signal" command changes.
4109 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4111 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4113 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4114 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4115 (jump_command): Adjust clear_proceed_status call.
4116 (signal_command): Warn if other thread that are resumed have
4117 signals that will be delivered. Adjust clear_proceed_status call.
4118 (until_next_command, finish_command)
4119 (proceed_after_attach_callback, attach_command_post_wait)
4120 (attach_command): Adjust clear_proceed_status call.
4121 * infrun.c (proceed_after_vfork_done): Likewise.
4122 (proceed_after_attach_callback): Adjust comment.
4123 (clear_proceed_status_thread): Clear stop_signal if not in pass
4125 (clear_proceed_status_callback): Delete.
4126 (clear_proceed_status): New 'step' parameter. Only clear the
4127 proceed status of threads the command being prepared is about to
4129 (proceed): If passed in an explicit signal, override stop_signal
4130 with it. Don't pass the last stop signal to the thread we're
4132 (init_wait_for_inferior): Adjust clear_proceed_status call.
4133 (switch_back_to_stepped_thread): Clear the signal if it should not
4135 * infrun.h (clear_proceed_status): New 'step' parameter.
4136 (user_visible_resume_ptid): Add comment.
4137 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4138 signal is in pass state.
4139 * remote.c (append_pending_thread_resumptions): Likewise.
4140 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4142 2014-07-25 Tom Tromey <tromey@redhat.com>
4144 * target.h (target_stopped_data_address)
4145 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4148 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4150 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4152 (avr_pointer_to_address): Likewise.
4154 2014-07-24 Tom Tromey <tromey@redhat.com>
4156 * monitor.c (compile_pattern): Update.
4157 * target.h (struct target_ops) <to_shortname, to_longname,
4160 2014-07-24 Tom Tromey <tromey@redhat.com>
4162 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4163 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4164 (add_info_alias, add_com): Make "doc" const.
4165 (print_doc_line): Make "str" const.
4166 (delete_cmd): Update.
4167 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4168 (print_doc_line): Update.
4169 * cli/cli-script.c (document_command): Update.
4170 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4171 (add_com, add_info, add_info_alias): Update.
4172 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4173 * python/py-cmd.c (cmdpy_destroyer): Update.
4175 2014-07-24 Tom Tromey <tromey@redhat.com>
4177 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4178 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4179 (help_cmd_list): Constify.
4180 (lookup_cmd): Update.
4181 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4183 (help_cmd_list, apropos_cmd): Update.
4184 * cli/cli-script.c (show_user): Update.
4185 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4186 * cli/cli-setshow.h (cmd_show_list): Update.
4187 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4188 (cmd_show_list): Update.
4189 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4190 * python/py-cmd.c (cmdpy_destroyer): Update.
4192 2014-07-24 Tom Tromey <tromey@redhat.com>
4194 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4195 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4197 * command.h (deprecate_cmd): Update.
4198 * maint.c (maintenance_do_deprecate): Add casts.
4200 2014-07-24 Tom Tromey <tromey@redhat.com>
4202 * cli/cli-decode.c (help_cmd): Make parameter "const".
4203 * cli/cli-decode.h (help_cmd): Update.
4205 2014-07-24 Tom Tromey <tromey@redhat.com>
4207 * stack.c (up_silently_base, down_silently_base): Make argument
4210 2014-07-24 Tom Tromey <tromey@redhat.com>
4212 * solib.c (solib_add): Make "pattern" const.
4213 * solib.h (solib_add): Update.
4215 2014-07-24 Tom Tromey <tromey@redhat.com>
4217 * remote.c (remote_serial_open, print_packet, putpkt)
4218 (putpkt_binary): Constify.
4219 * remote.h (putpkt): Update.
4221 2014-07-24 Tom Tromey <tromey@redhat.com>
4223 * monitor.c (monitor_open): Make "args" const.
4224 * monitor.h (monitor_open): Update.
4226 2014-07-24 Tom Tromey <tromey@redhat.com>
4228 * maint.c (match_bfd_flags): Make "string" const.
4229 (print_bfd_section_info): Remove casts.
4230 (print_objfile_section_info): Make "string" const.
4232 2014-07-24 Tom Tromey <tromey@redhat.com>
4234 * inf-child.c (inf_child_open_target): Make "arg" const.
4235 * inf-child.h (inf_child_open_target): Update.
4237 2014-07-24 Tom Tromey <tromey@redhat.com>
4239 * environ.c (unset_in_environ): Make "var" const.
4240 * environ.h (unset_in_environ): Update.
4242 2014-07-24 Tom Tromey <tromey@redhat.com>
4244 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4246 (scan_filename_with_cleanup): Likewise.
4247 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4248 Make arguments const.
4249 (restore_command): Update.
4251 2014-07-24 Pedro Alves <palves@redhat.com>
4253 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4255 2014-07-24 Tom Tromey <tromey@redhat.com>
4256 Gary Benson <gbenson@redhat.com>
4258 * nat/linux-ptrace.c (additional_flags): New global.
4259 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4260 additional_flags; don't check GDBSERVER.
4261 (linux_ptrace_set_additional_flags): New function.
4262 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4264 * linux-nat.c (_initialize_linux_nat): Call
4265 linux_ptrace_set_additional_flags.
4267 2014-07-24 Tom Tromey <tromey@redhat.com>
4269 * make-target-delegates (munge_type, write_debugmethod): New
4271 (debug_names): New global.
4272 ($TARGET_DEBUG_PRINTER): New global.
4273 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4275 Write debug methods. Generate init_debug_target.
4276 * target-debug.h: New file.
4277 * target-delegates.c: Rebuild.
4278 * target.c: Include target-debug.h.
4279 (debug_target): Hoist definition.
4280 (target_kill, target_get_section_table, target_memory_map)
4281 (target_flash_erase, target_flash_done, target_detach)
4282 (target_disconnect, target_wait, target_resume)
4283 (target_pass_signals, target_program_signals, target_follow_fork)
4284 (target_mourn_inferior, target_search_memory)
4285 (target_thread_address_space, target_close)
4286 (target_find_new_threads, target_core_of_thread)
4287 (target_verify_memory, target_insert_mask_watchpoint)
4288 (target_remove_mask_watchpoint): Remove targetdebug code.
4289 (debug_to_post_attach, debug_to_prepare_to_store)
4290 (debug_to_files_info, debug_to_insert_breakpoint)
4291 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4292 (debug_to_region_ok_for_hw_watchpoint)
4293 (debug_to_can_accel_watchpoint_condition)
4294 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4295 (debug_to_watchpoint_addr_within_range)
4296 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4297 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4298 (debug_to_terminal_init, debug_to_terminal_inferior)
4299 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4300 (debug_to_terminal_save_ours, debug_to_terminal_info)
4301 (debug_to_load, debug_to_post_startup_inferior)
4302 (debug_to_insert_fork_catchpoint)
4303 (debug_to_remove_fork_catchpoint)
4304 (debug_to_insert_vfork_catchpoint)
4305 (debug_to_remove_vfork_catchpoint)
4306 (debug_to_insert_exec_catchpoint)
4307 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4308 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4309 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4310 (setup_target_debug): Call init_debug_target.
4311 * target.h (TARGET_DEBUG_PRINTER): New macro.
4312 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4313 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4315 2014-07-24 Gary Benson <gbenson@redhat.com>
4317 * exceptions.h (throw_vfatal): Renamed to...
4318 (throw_vquit): New declaration.
4319 (throw_quit): Likewise.
4320 * exceptions.c (throw_vfatal): Renamed to...
4321 (throw_vquit): New function.
4322 (throw_quit): Likewise.
4323 (throw_error): Call throw_verror rather than throw_it.
4324 * utils.h (vfatal): Removed.
4326 * utils.c (vfatal): Removed.
4328 (internal_verror): Replaced call to fatal with call to throw_quit.
4329 (quit): Replaced calls to fatal with calls to throw_quit.
4331 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4333 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4336 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4338 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4339 less than zero in conditional expression.
4341 2014-07-23 Tom Tromey <tromey@redhat.com>
4343 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4344 ($INTRO_PART): Don't match whitespace.
4345 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4347 ($METHOD): Add $METHOD_TRAILER.
4349 (scan_target_h): New sub.
4350 Change main loop not to collect state.
4351 * target-delegates.c: Rebuild.
4353 2014-07-23 Gary Benson <gbenson@redhat.com>
4355 * cp-support.c (gdb_demangle): Fix build on systems without
4358 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4360 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4361 for reference entry value target data value.
4363 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4365 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4366 value_available_contents_eq.
4368 2014-07-22 Pedro Alves <palves@redhat.com>
4370 * value.c (allocate_optimized_out_value): Don't mark value as
4373 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4375 * MAINTAINERS (Write After Approval): Update my email address.
4377 2014-07-20 Doug Evans <dje@google.com>
4380 * remote.c (putpkt_binary): Add text to error message.
4382 2014-07-20 Yao Qi <yao@codesourcery.com>
4384 * eval.c: Remove "Chill" from comments.
4385 * gdbtypes.h: Likewise.
4386 * symtab.h: Likewise.
4388 2014-07-20 Yao Qi <yao@codesourcery.com>
4390 * std-operator.def: Update comments to TERNOP_SLICE.
4392 2014-07-20 Yao Qi <yao@codesourcery.com>
4394 * std-operator.def: Remove BINOP_RANGE.
4395 * breakpoint.c (watchpoint_exp_is_const): Update.
4396 * expprint.c (dump_subexp_body_standard): Likewise.
4397 * eval.c (init_array_element): Remove dead code.
4398 (evaluate_subexp_standard): Likewise.
4400 2014-07-20 Yao Qi <yao@codesourcery.com>
4402 * std-operator.def: Remove BINOP_IN.
4403 * breakpoint.c (watchpoint_exp_is_const): Update.
4404 * eval.c (evaluate_subexp_standard): Likewise.
4405 * expprint.c (dump_subexp_body_standard): Likewise.
4407 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4409 * microblaze-tdep.c (microblaze_register_names): Add
4410 the rshr and rslr register names.
4411 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4412 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4413 Use of tdesc_numbered_register. Use of
4414 microblaze_register_g_packet_guesses. Use of
4415 tdesc_use_registers. Use of set_gdbarch_register_type.
4416 (microblaze_register_g_packet_guesses): New.
4417 * microblaze-tdep.h (microblaze_reg_num): Add
4418 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4419 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4420 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4421 * features/microblaze-core.xml: New file.
4422 * features/microblaze-stack-protect.xml: New file.
4423 * features/microblaze-with-stack-protect.c: New file.
4424 * features/microblaze-with-stack-protect.xml: New file.
4425 * features/microblaze.xml: New file.
4426 * features/microblaze.c: New file.
4427 * features/Makefile (microblaze-with-stack-protect): Add
4428 microblaze-with-stack-protect microblaze and microblaze-expedite.
4429 * regformats/microblaze-with-stack-protect.dat: New file.
4430 * regformats/microblaze.dat: New file.
4431 * doc/gdb.texinfo (MicroBlaze Features): Added.
4433 2014-07-18 Tom Tromey <tromey@redhat.com>
4435 * exec.c (exec_ops): Now static.
4436 * exec.h (exec_ops): Don't declare.
4438 2014-07-18 Tom Tromey <tromey@redhat.com>
4440 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4441 to find_target_beneath.
4442 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4443 find_target_beneath.
4444 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4446 2014-07-18 Tom Tromey <tromey@redhat.com>
4449 * utils.c (quit): Use target_supports_terminal_ours.
4450 * target.h (target_supports_terminal_ours): Declare.
4451 * target.c (target_supports_delete_record): Don't check
4452 to_delete_record against NULL.
4453 (target_supports_terminal_ours): New function.
4455 2014-07-18 Tom Tromey <tromey@redhat.com>
4458 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4459 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4460 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4461 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4462 * windows-nat.c (windows_xfer_partial): Always delegate.
4463 * record-btrace.c (record_btrace_xfer_partial): Simplify
4465 (record_btrace_fetch_registers, record_btrace_store_registers)
4466 (record_btrace_prepare_to_store, record_btrace_resume)
4467 (record_btrace_wait, record_btrace_find_new_threads)
4468 (record_btrace_thread_alive): Likewise.
4469 * procfs.c (procfs_xfer_partial): Always delegate.
4470 * corelow.c (core_xfer_partial): Always delegate.
4471 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4473 2014-07-18 Tom Tromey <tromey@redhat.com>
4475 * exec.c (exec_make_note_section): Move earlier.
4477 2014-07-17 Doug Evans <dje@google.com>
4480 * maint.c (count_symtabs_and_blocks): Handle NULL
4481 current_program_space.
4482 (report_command_stats): Check global enabled flag in addition to
4483 recorded enabled flag.
4484 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4486 2014-07-16 Pedro Alves <palves@redhat.com>
4488 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4490 2014-07-16 Tom Tromey <tromey@redhat.com>
4492 * target.h (struct target_ops) <to_delete_record>: Reformat
4495 2014-07-16 Tom Tromey <tromey@redhat.com>
4497 * target-delegates.c: Rebuild.
4499 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4501 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4502 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4503 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4504 (avr_pointer_to_address): Likewise.
4505 (avr_address_class_type_flags): New function.
4506 (avr_address_class_type_flags_to_name): Likewise.
4507 (avr_address_class_name_to_type_flags): Likewise.
4508 (avr_gdbarch_init): Set address_class_type_flags,
4509 address_class_type_flags_to_name and
4510 address_class_name_to_type_flags.
4512 2014-07-15 Pedro Alves <palves@redhat.com>
4514 * linux-nat.c (kill_callback): Save errno and work with saved
4517 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4519 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4521 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4523 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4524 breakpoint support correctly.
4526 2014-07-14 Pedro Alves <palves@redhat.com>
4528 * utils.c (prompt_for_continue): Call target_terminal_ours.
4530 2014-07-14 Pedro Alves <palves@redhat.com>
4532 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4533 catch_errors. Don't re-enable stdin or notify observers where,
4535 (fetch_inferior_event_wrapper): Delete.
4537 2014-07-14 Pedro Alves <palves@redhat.com>
4540 * top.c: Include "inf-loop.h".
4541 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4543 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4545 (gdb_readline_wrapper): Store whether the target is async, and
4548 2014-07-14 Pedro Alves <palves@redhat.com>
4551 * top.c (gdb_readline_wrapper_line): Tweak comment.
4552 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4553 the input handler callback.
4555 2014-07-14 Pedro Alves <palves@redhat.com>
4558 * main.c: Include event-top.h.
4559 (handle_command_errors): New function.
4560 (catch_command_errors, catch_command_errors_const): Use it.
4562 2014-07-14 Pedro Alves <palves@redhat.com>
4564 * exceptions.c (catch_command_errors, catch_command_errors_const):
4566 * exceptions.h (catch_command_errors_ftype)
4567 (catch_command_errors_const_ftype): Moved to main.c.
4568 (catch_command_errors, catch_command_errors_const): Delete
4570 * main.c (catch_command_errors_ftype)
4571 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4572 (catch_command_errors, catch_command_errors_const)): Moved here
4573 from exceptions.c and make static.
4575 2014-07-14 Pedro Alves <palves@redhat.com>
4577 * exceptions.c (print_any_exception): Delete.
4578 (catch_exceptions_with_msg): Use exception_print instead of
4579 print_any_exception.
4580 (catch_errors): Use exception_fprintf instead of
4581 print_any_exception.
4582 (catch_command_errors, catch_command_errors_const): Use
4583 exception_print instead of print_any_exception.
4585 2014-07-14 Pedro Alves <palves@redhat.com>
4587 * infcall.c (run_inferior_call): Set 'sync_execution' while
4588 running the inferior call.
4590 2014-07-14 Pedro Alves <palves@redhat.com>
4592 * value.c (value_contents_equal): Delete function.
4593 * value.h (value_contents_equal): Delete declaration.
4595 2014-07-14 Tom Tromey <tromey@redhat.com>
4598 * gdbtypes.c (is_dynamic_type_internal): New function, from
4600 (is_dynamic_type): Rewrite.
4601 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4602 (resolve_dynamic_struct): Likewise.
4603 (resolve_dynamic_type_internal): New function, from
4604 resolve_dynamic_type.
4605 (resolve_dynamic_type): Rewrite.
4607 2014-07-14 Tom Tromey <tromey@redhat.com>
4609 * target.c (target_require_runnable): Also check record_stratum.
4612 2014-07-11 Yao Qi <yao@codesourcery.com>
4614 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4615 thumb_instruction_restores_sp return true.
4617 2014-07-11 Yao Qi <yao@codesourcery.com>
4619 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4620 (thumb_in_function_epilogue_p): Call
4621 thumb_instruction_restores_sp.
4623 2014-07-11 Yao Qi <yao@codesourcery.com>
4625 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4627 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4629 2014-07-11 Gary Benson <gbenson@redhat.com>
4631 * amd64-linux-nat.c (gdbcore.h): Remove include.
4632 (regset.h): Likewise.
4633 (nat/linux-btrace.h): Likewise.
4634 (btrace.h): Likewise.
4635 (gdb_assert.h): Likewise.
4636 (string.h): Likewise.
4637 (sys/uio.h): Likewise.
4638 (sys/debugreg.h): Likewise.
4639 (sys/syscall.h): Likewise.
4640 (sys/procfs.h): Likewise.
4641 (sys/user.h): Likewise.
4642 (asm/ptrace.h): Likewise.
4643 (i386-nat.h): Likewise.
4644 * i386-linux-nat.c (i386-nat.h): Likewise.
4645 (regset.h): Likewise.
4646 (target.h): Likewise.
4647 (linux-nat.h): Likewise.
4648 (nat/linux-btrace.h): Likewise.
4649 (btrace.h): Likewise.
4650 (gdb_assert.h): Likewise.
4651 (string.h): Likewise.
4652 (sys/uio.h): Likewise.
4653 (sys/user.h): Likewise.
4654 (sys/procfs.h): Likewise.
4655 (sys/reg.h): Likewise.
4656 (sys/debugreg.h): Likewise.
4657 (ORIG_EAX): Remove definition.
4659 2014-07-11 Gary Benson <gbenson@redhat.com>
4661 * i386-linux-nat.h: New file.
4662 * x86-linux-nat.h: Likewise.
4663 * x86-linux-nat.c: Likewise.
4664 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4665 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4666 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4667 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4668 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4669 (PTRACE_SETREGSET): Likewise.
4670 (arch_lwp_info): Now in x86-linux-nat.c.
4671 (have_ptrace_getregset): Now in x86-linux-nat.h.
4672 (x86_linux_dr_get): Now in x86-linux-nat.c.
4673 (x86_linux_dr_set): Likewise.
4674 (x86_linux_dr_get_addr): Likewise.
4675 (x86_linux_dr_get_control): Likewise.
4676 (x86_linux_dr_get_status): Likewise.
4677 (update_debug_registers_callback): Likewise.
4678 (x86_linux_dr_set_control): Likewise.
4679 (x86_linux_dr_set_addr): Likewise.
4680 (x86_linux_prepare_to_resume): Likewise.
4681 (x86_linux_new_thread): Likewise.
4682 (x86_linux_new_fork): Likewise.
4683 (x86_linux_get_thread_area): Likewise.
4684 (super_post_startup_inferior): Likewise.
4685 (x86_linux_child_post_startup_inferior): Likewise.
4686 (AMD64_LINUX_USER64_CS): Likewise.
4687 (AMD64_LINUX_X32_DS): Likewise.
4688 (x86_linux_read_description): Likewise.
4689 (x86_linux_enable_btrace): Likewise.
4690 (x86_linux_disable_btrace): Likewise.
4691 (x86_linux_teardown_btrace): Likewise.
4692 (x86_linux_read_btrace): Likewise.
4693 (x86_linux_create_target): Likewise.
4694 (x86_linux_add_target): Likewise.
4695 * i386-linux-nat.c (x86-linux-nat.h): New include.
4696 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4697 (PTRACE_SETREGSET): Likewise.
4698 (arch_lwp_info): Now in x86-linux-nat.c.
4699 (have_ptrace_getregset): Now in x86-linux-nat.h.
4700 (x86_linux_dr_get): Now in x86-linux-nat.c.
4701 (x86_linux_dr_set): Likewise.
4702 (x86_linux_dr_get_addr): Likewise.
4703 (x86_linux_dr_get_control): Likewise.
4704 (x86_linux_dr_get_status): Likewise.
4705 (update_debug_registers_callback): Likewise.
4706 (x86_linux_dr_set_control): Likewise.
4707 (x86_linux_dr_set_addr): Likewise.
4708 (x86_linux_prepare_to_resume): Likewise.
4709 (x86_linux_new_thread): Likewise.
4710 (x86_linux_new_fork): Likewise.
4711 (x86_linux_get_thread_area): Likewise.
4712 (super_post_startup_inferior): Likewise.
4713 (x86_linux_child_post_startup_inferior): Likewise.
4714 (AMD64_LINUX_USER64_CS): Likewise.
4715 (AMD64_LINUX_X32_DS): Likewise.
4716 (x86_linux_read_description): Likewise.
4717 (x86_linux_enable_btrace): Likewise.
4718 (x86_linux_disable_btrace): Likewise.
4719 (x86_linux_teardown_btrace): Likewise.
4720 (x86_linux_read_btrace): Likewise.
4721 (x86_linux_create_target): Likewise.
4722 (x86_linux_add_target): Likewise.
4724 2014-07-11 Gary Benson <gbenson@redhat.com>
4726 * amd64-linux-nat.c: Comment and whitespace changes.
4727 * i386-linux-nat.c: Comment and whitespace changes.
4729 2014-07-11 Gary Benson <gbenson@redhat.com>
4731 * amd64-linux-nat.c (x86_linux_create_target): New function.
4732 (x86_linux_add_target): Likewise.
4733 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4734 * i386-linux-nat.c (x86_linux_create_target): New function.
4735 (x86_linux_add_target): Likewise.
4736 (_initialize_i386_linux_nat): Delegate to the above new functions.
4738 2014-07-11 Gary Benson <gbenson@redhat.com>
4740 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4741 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4742 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4743 (ps_get_thread_area): Delegate to the above.
4745 2014-07-11 Gary Benson <gbenson@redhat.com>
4747 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4748 x86_linux_read_description. All uses updated. amd64-specific
4749 code conditionalized. Conditionalized i386-specific code added.
4750 Redundant cast removed.
4751 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4752 x86_linux_read_description. All uses updated. i386-specific
4753 code conditionalized. Conditionalized amd64-specific code added.
4754 One sizeof replaced with the actual type it is describing.
4756 2014-07-11 Gary Benson <gbenson@redhat.com>
4758 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4759 x86_linux_dr_get. All uses updated.
4760 (amd64_linux_dr_set): Renamed to
4761 x86_linux_dr_set. All uses updated.
4762 (amd64_linux_dr_get_addr): Renamed to
4763 x86_linux_dr_get_addr. All uses updated.
4764 (amd64_linux_dr_get_control): Renamed to
4765 x86_linux_dr_get_control. All uses updated.
4766 (amd64_linux_dr_get_status): Renamed to
4767 x86_linux_dr_get_status. All uses updated.
4768 (amd64_linux_dr_set_control): Renamed to
4769 x86_linux_dr_set_control. All uses updated.
4770 (amd64_linux_dr_set_addr): Renamed to
4771 x86_linux_dr_set_addr. All uses updated.
4772 (amd64_linux_prepare_to_resume): Renamed to
4773 x86_linux_prepare_to_resume. All uses updated.
4774 (amd64_linux_new_thread): Renamed to
4775 x86_linux_new_thread. All uses updated.
4776 (amd64_linux_new_fork): Renamed to
4777 x86_linux_new_fork. All uses updated.
4778 (amd64_linux_child_post_startup_inferior): Renamed to
4779 x86_linux_child_post_startup_inferior. All uses updated.
4780 (amd64_linux_enable_btrace): Renamed to
4781 x86_linux_enable_btrace. All uses updated.
4782 (amd64_linux_disable_btrace): Renamed to
4783 x86_linux_disable_btrace. All uses updated.
4784 (amd64_linux_teardown_btrace): Renamed to
4785 x86_linux_teardown_btrace. All uses updated.
4786 (amd64_linux_read_btrace): Renamed to
4787 x86_linux_read_btrace. All uses updated.
4788 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4789 x86_linux_dr_get. All uses updated.
4790 (i386_linux_dr_set): Renamed to
4791 x86_linux_dr_set. All uses updated.
4792 (i386_linux_dr_get_addr): Renamed to
4793 x86_linux_dr_get_addr. All uses updated.
4794 (i386_linux_dr_get_control): Renamed to
4795 x86_linux_dr_get_control. All uses updated.
4796 (i386_linux_dr_get_status): Renamed to
4797 x86_linux_dr_get_status. All uses updated.
4798 (i386_linux_dr_set_control): Renamed to
4799 x86_linux_dr_set_control. All uses updated.
4800 (i386_linux_dr_set_addr): Renamed to
4801 x86_linux_dr_set_addr. All uses updated.
4802 (i386_linux_prepare_to_resume): Renamed to
4803 x86_linux_prepare_to_resume. All uses updated.
4804 (i386_linux_new_thread): Renamed to
4805 x86_linux_new_thread. All uses updated.
4806 (i386_linux_new_fork): Renamed to
4807 x86_linux_new_fork. All uses updated.
4808 (i386_linux_child_post_startup_inferior): Renamed to
4809 x86_linux_child_post_startup_inferior. All uses updated.
4810 (i386_linux_enable_btrace): Renamed to
4811 x86_linux_enable_btrace. All uses updated.
4812 (i386_linux_disable_btrace): Renamed to
4813 x86_linux_disable_btrace. All uses updated.
4814 (i386_linux_teardown_btrace): Renamed to
4815 x86_linux_teardown_btrace. All uses updated.
4816 (i386_linux_read_btrace): Renamed to
4817 x86_linux_read_btrace. All uses updated.
4819 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4821 * remote.c (extended_remote_post_attach): New function.
4822 (init_extended_remote_ops): Install it as to_post_attach method.
4824 2014-07-09 Pedro Alves <palves@redhat.com>
4826 * infcmd.c (attach_command_post_wait): Don't call
4827 target_terminal_inferior here.
4828 (attach_command): Call it here instead.
4830 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4832 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4834 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4835 from varobj.c, with additional checks.
4836 (c_varobj_ops): Fill in is_path_expr_parent field.
4837 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4838 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4840 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4842 (varobj_default_is_path_expr_parent): New function.
4843 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4844 (varobj_default_is_path_expr_parent): Declare new function.
4846 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4848 * infcmd.c (finish_backward): Turn internal error into normal error.
4850 2014-07-07 Pedro Alves <palves@redhat.com>
4853 * remote.c (async_handle_remote_sigint)
4854 (async_handle_remote_sigint_twice): Call
4855 gdb_call_async_signal_handler instead of
4856 mark_async_signal_handler.
4858 2014-07-07 Tom Tromey <tromey@redhat.com>
4860 * target-delegates.c: Rebuild.
4861 * target.c (target_info_record): Remove.
4862 * record.c (info_record_command): Unconditionally call
4864 * target.h (struct target_ops) <to_info_record>: Use
4865 TARGET_DEFAULT_IGNORE.
4866 (target_info_record): Remove.
4868 2014-07-07 Tom Tromey <tromey@redhat.com>
4870 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4871 TARGET_DEFAULT_NORETURN.
4872 * target.c (generic_tls_error): New function.
4873 (target_translate_tls_address): Don't search target stack.
4874 * target-delegates.c: Rebuild.
4875 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4877 * linux-thread-db.c (thread_db_get_thread_local_address):
4878 Unconditionally call beneath target.
4880 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4882 * cli/cli-logging.c (pop_output_files): Assign targerr to
4885 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4887 * MAINTAINERS (Write After Approval): Update my email address.
4889 2014-07-02 Gary Benson <gbenson@redhat.com>
4891 * proc-service.c (ps_xfer_memory): Update comment.
4892 (ps_pstop): Remove unused function.
4893 (ps_pcontinue): Likewise.
4894 (ps_lstop): Likewise.
4895 (ps_lcontinue): Likewise.
4896 (ps_lgetxregsize): Likewise.
4897 (ps_lgetxregs): Likewise.
4898 (ps_lsetxregs): Likewise.
4899 (ps_plog): Likewise.
4900 (ps_ptread): Likewise.
4901 (ps_ptwrite): Likewise.
4903 2014-07-01 Mark Wielaard <mjw@redhat.com>
4905 * dwarf2read.c (add_array_cv_type): New function.
4906 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4907 (read_tag_volatile_type): Likewise.
4909 2014-07-01 Tom Tromey <tromey@redhat.com>
4911 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4912 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4913 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4914 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4915 * command.h (cmd_cfunc_ftype): Move earlier.
4916 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4917 (add_com, add_info): Use cmd_cfunc_ftype.
4919 2014-06-30 Tom Tromey <tromey@redhat.com>
4921 * symtab.c (operator_chars): Make parameters and return type
4923 (file_matches): Make "files" const.
4924 (struct search_symbols_data) <files>: Now const.
4925 (search_symbols): Make "regexp" and "files" parameters const.
4927 (symtab_symbol_info): Remove cast.
4928 (rbreak_command): Update.
4929 * symtab.h (search_symbols): Update.
4931 2014-06-27 Yao Qi <yao@codesourcery.com>
4933 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4934 Change parameter type to 'struct thread_info *'. Caller
4936 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4938 * dummy-frame.c (struct dummy_frame_id): New.
4939 (dummy_frame_id_eq): New function.
4940 (struct dummy_frame) <id>: Change its type to 'struct
4942 (dummy_frame_push): Add parameter ptid and save it in
4944 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4946 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4948 (lookup_dummy_frame): Change parameter type to 'struct
4949 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4950 instead of frame_id_eq.
4951 (dummy_frame_pop): Add parameter ptid. Callers updated.
4952 Update comments. Compose dummy_frame_id and pass it to
4954 (dummy_frame_discard): Add parameter ptid.
4955 (dummy_frame_sniffer): Compose dummy_frame_id and call
4956 dummy_frame_id_eq instead of frame_id_eq.
4957 (fprint_dummy_frames): Print ptid.
4958 * dummy-frame.h: Remove comments.
4959 (dummy_frame_push): Add ptid in declaration.
4960 (dummy_frame_pop, dummy_frame_discard): Likewise.
4962 2014-06-26 Tom Tromey <tromey@redhat.com>
4964 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4965 * command.h (error_no_arg): Update.
4967 2014-06-26 Tom Tromey <tromey@redhat.com>
4969 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4970 (do_show_command): Make "arg" const.
4971 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4973 2014-06-26 Tom Tromey <tromey@redhat.com>
4975 * record-full.c (record_full_get_bookmark): Make "args" const.
4976 (record_full_goto_bookmark): Make "raw_bookmark" const.
4977 * record.c (record_goto): New function.
4978 (cmd_record_goto): Use it. Now static.
4979 * record.h (record_goto): Declare.
4980 (cmd_record_goto): Remove declaration.
4981 * target-delegates.c: Rebuild.
4982 * target.h (struct target_ops) <to_get_bookmark,
4983 to_goto_bookmark>: Make parameter const.
4985 2014-06-26 Tom Tromey <tromey@redhat.com>
4987 * defs.h (generic_load): Update.
4988 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4989 * monitor.c (monitor_load): Make "args" const.
4990 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4991 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4993 (mips_load): Make "file" const.
4994 * remote-sim.c (gdbsim_load): Make "args" const.
4995 * remote.c (remote_load): Make "name" const.
4996 * symfile.c (generic_load): Make "args" const.
4997 * target-delegates.c: Rebuild.
4998 * target.c (target_load): Make "arg" const.
4999 (debug_to_load): Make "args" const.
5000 * target.h (struct target_ops) <to_load>: Make parameter const.
5001 (target_load): Update.
5003 2014-06-26 Tom Tromey <tromey@redhat.com>
5006 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5007 (dwarf2_physname, read_partial_die)
5008 (guess_partial_die_structure_name, fixup_partial_die)
5009 (guess_full_die_structure_name, anonymous_struct_prefix)
5010 (dwarf2_name): Use per-BFD obstack.
5012 2014-06-26 Yao Qi <yao@codesourcery.com>
5014 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5015 dummyframe and this_id into inner block below.
5017 2014-06-26 Yao Qi <yao@codesourcery.com>
5019 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5020 with "signal_pass[0]" in the initialization of signal_pass.
5022 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5024 * record-btrace.c (record_btrace_generating_corefile)
5025 (record_btrace_prepare_to_generate_core)
5026 (record_btrace_done_generating_core): New.
5027 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5028 (record_btrace_store_registers, record_btrace_prepare_to_store):
5029 Forward request when generating a core file.
5030 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5031 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5032 to_done_generating_core.
5034 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5036 * target.h (target_ops) <to_prepare_to_generate_core>
5037 <to_done_generating_core>: New.
5038 (target_prepare_to_generate_core, target_done_generating_core): New.
5039 * target.c (target_prepare_to_generate_core)
5040 (target_done_generating_core): New.
5041 * target-delegates.c: Regenerate.
5042 * gcore.c: (write_gcore_file): Rename to ...
5043 (write_gcore_file_1): ...this.
5044 (write_gcore_file): Call target_prepare_to_generate_core
5045 and target_done_generating_core.
5047 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5049 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5050 * gcore.c (write_gcore_file): Free memory returned from
5051 make_corefile_notes.
5052 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5053 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5055 2014-06-24 Yao Qi <yao@codesourcery.com>
5057 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5058 (arm_linux_init_abi): Set skip_trampoline_code with
5059 gdbarch_skip_trampoline_code instead of
5060 find_solib_trampoline_target.
5062 2014-06-24 Yao Qi <yao@codesourcery.com>
5064 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5065 arm_skip_bx_reg returns non-zero.
5067 2014-06-24 Yao Qi <yao@codesourcery.com>
5069 * arm-tdep.c (arm_skip_bx_reg): New function.
5070 (arm_skip_stub): Call arm_skip_bx_reg.
5072 2014-06-23 Don Breazeal <donb@codesourcery.com>
5074 * MAINTAINERS: Add myself as write-after-approval maintainer.
5076 2014-06-23 Pedro Alves <palves@redhat.com>
5078 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5079 DR_CONTROL before setting DR0..DR3.
5080 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5081 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5082 bits of DR_CONTROL related to the debug register slot being
5083 disabled. If all slots are vacant, clear local slowdown as well,
5084 and assert DR_CONTROL is 0.
5086 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5088 * python/lib/gdb/command/xmethods.py
5089 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5090 current progspace only if the string "progspace" matches LOCUS_RE.
5092 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5094 Fix --with-system-readline with readline-6.3 patch 5.
5095 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5096 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5099 2014-06-20 Tom Tromey <tromey@redhat.com>
5101 * dwarf2read.c (dw2_get_real_path): Use correct type in
5103 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5105 2014-06-20 Gary Benson <gbenson@redhat.com>
5107 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5108 * common/glibc_thread_db.h: Likewise.
5109 * common/i386-cpuid.h: Likewise.
5110 * common/i386-gcc-cpuid.h: Likewise.
5111 * common/linux-btrace.h: Likewise.
5112 * common/linux-osdata.h: Likewise.
5113 * common/linux-procfs.h: Likewise.
5114 * common/linux-ptrace.h: Likewise.
5115 * common/mips-linux-watch.h: Likewise.
5116 * common/linux-btrace.c: Moved to nat.
5117 * common/linux-osdata.c: Likewise.
5118 * common/linux-procfs.c: Likewise.
5119 * common/linux-ptrace.c: Likewise.
5120 * common/mips-linux-watch.c: Likewise.
5121 * nat/gdb_thread_db.h: Moved from common.
5122 * nat/glibc_thread_db.h: Likewise.
5123 * nat/i386-cpuid.h: Likewise.
5124 * nat/i386-gcc-cpuid.h: Likewise.
5125 * nat/linux-btrace.c: Likewise.
5126 * nat/linux-btrace.h: Likewise.
5127 * nat/linux-osdata.c: Likewise.
5128 * nat/linux-osdata.h: Likewise.
5129 * nat/linux-procfs.c: Likewise.
5130 * nat/linux-procfs.h: Likewise.
5131 * nat/linux-ptrace.c: Likewise.
5132 * nat/linux-ptrace.h: Likewise.
5133 * nat/mips-linux-watch.c: Likewise.
5134 * nat/mips-linux-watch.h: Likewise.
5135 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5136 (object file files): Reordered.
5137 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5138 of glibc_thread_db.h.
5140 2014-06-20 Gary Benson <gbenson@redhat.com>
5142 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5143 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5144 (i386_dr_low): Likewise.
5145 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5146 (i386_dr_low_set_addr): Likewise.
5147 (i386_dr_low_get_addr): Likewise.
5148 (i386_dr_low_can_set_control): Likewise.
5149 (i386_dr_low_set_control): Likewise.
5150 (i386_dr_low_get_control): Likewise.
5151 (i386_dr_low_get_status): Likewise.
5152 (i386_get_debug_register_length): Likewise.
5153 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5154 (i386_dr_low): Likewise.
5155 * nat/i386-dregs.c (i386-low.h): Remove include.
5156 (i386-nat.h): Likewise.
5157 (nat/i386-dregs.h): New include.
5158 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5159 (i386_dr_low_set_addr): Likewise.
5160 (i386_dr_low_get_addr): Likewise.
5161 (i386_dr_low_can_set_control): Likewise.
5162 (i386_dr_low_set_control): Likewise.
5163 (i386_dr_low_get_control): Likewise.
5164 (i386_dr_low_get_status): Likewise.
5165 (i386_get_debug_register_length): Likewise.
5166 (debug_hw_points): Likewise.
5168 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5170 * Makefile.in (SFILES): Add d-exp.y.
5171 (YYFILES): Add d-exp.c.
5172 (YYOBJ): Add d-exp.o.
5173 (local-maintainer-clean): Delete d-exp.c.
5174 * d-exp.y: New file.
5175 * d-lang.h (d_parse): New declaration.
5176 (d_error): New declaration.
5177 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5178 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5179 PREC_ORDER operators.
5180 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5182 2014-06-19 Yao Qi <yao@codesourcery.com>
5184 * gdbthread.h (any_running): Remove the declaration.
5185 * thread.c (any_running): Remove.
5187 2014-06-19 Yao Qi <yao@codesourcery.com>
5189 * gdbthread.h (struct thread_info) <state>: Change its type to
5190 'enum thread_state'. Update comments.
5192 2014-06-19 Pedro Alves <palves@redhat.com>
5194 * gdbthread.h (ALL_THREADS): Delete.
5195 (ALL_NON_EXITED_THREADS): New macro.
5196 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5197 instead of ALL_THREADS.
5198 * infrun.c (find_thread_needs_step_over)
5199 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5200 instead of ALL_THREADS.
5201 * record-btrace.c (record_btrace_open)
5202 (record_btrace_stop_recording, record_btrace_close)
5203 (record_btrace_is_replaying, record_btrace_resume)
5204 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5205 * remote.c (append_pending_thread_resumptions): Likewise.
5206 * thread.c (thread_apply_all_command): Likewise.
5208 2014-06-19 Gary Benson <gbenson@redhat.com>
5210 * i386-nat.c (i386_stopped_by_watchpoint):
5211 Use i386_dr_stopped_by_watchpoint.
5212 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5213 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5215 2014-06-19 Gary Benson <gbenson@redhat.com>
5217 * nat/i386-dregs.c: New file.
5218 * Makefile.in (i386-dregs.o): New rule.
5219 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5220 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5221 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5222 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5223 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5224 * config/i386/go32.mh (NATDEPFILES): Likewise.
5225 * config/i386/linux.mh (NATDEPFILES): Likewise.
5226 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5227 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5228 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5229 * i386-nat.h (debug_hw_points): New declaration.
5230 * i386-nat.c (breakpoint.h): Remove include.
5231 (command.h): Likewise.
5232 (target.h): Likewise.
5233 (gdb_assert.h): Likewise.
5234 (debug_hw_points): Made nonstatic.
5235 (debug_printf): Now in i386-dregs.c.
5236 (TARGET_HAS_DR_LEN_8): Likewise.
5237 (DR_CONTROL_SHIFT): Likewise.
5238 (DR_CONTROL_SIZE): Likewise.
5239 (DR_RW_EXECUTE): Likewise.
5240 (DR_RW_WRITE): Likewise.
5241 (DR_RW_READ): Likewise.
5242 (DR_RW_IORW): Likewise.
5243 (DR_LEN_1): Likewise.
5244 (DR_LEN_2): Likewise.
5245 (DR_LEN_4): Likewise.
5246 (DR_LEN_8): Likewise.
5247 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5248 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5249 (DR_ENABLE_SIZE): Likewise.
5250 (DR_LOCAL_SLOWDOWN): Likewise.
5251 (DR_GLOBAL_SLOWDOWN): Likewise.
5252 (DR_CONTROL_RESERVED): Likewise.
5253 (I386_DR_CONTROL_MASK): Likewise.
5254 (I386_DR_VACANT): Likewise.
5255 (I386_DR_LOCAL_ENABLE): Likewise.
5256 (I386_DR_GLOBAL_ENABLE): Likewise.
5257 (I386_DR_DISABLE): Likewise.
5258 (I386_DR_SET_RW_LEN): Likewise.
5259 (I386_DR_GET_RW_LEN): Likewise.
5260 (I386_DR_WATCH_HIT): Likewise.
5261 (i386_wp_op_t): Likewise.
5262 (i386_show_dr): Likewise.
5263 (i386_length_and_rw_bits): Likewise.
5264 (i386_insert_aligned_watchpoint): Likewise.
5265 (i386_remove_aligned_watchpoint): Likewise.
5266 (i386_handle_nonaligned_watchpoint): Likewise.
5267 (i386_update_inferior_debug_regs): Likewise.
5268 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5269 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5270 (i386_region_ok_for_watchpoint):
5271 Use i386_dr_region_ok_for_watchpoint.
5272 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5274 2014-06-19 Gary Benson <gbenson@redhat.com>
5276 * i386-nat.c (i386_insert_hw_breakpoint): Use
5277 i386_insert_watchpoint.
5278 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5280 2014-06-19 Gary Benson <gbenson@redhat.com>
5282 * i386-nat.c (i386_dr_show): Renamed to
5283 i386_show_dr and made static. All uses updated.
5284 (i386_dr_length_and_rw_bits): Renamed to
5285 i386_length_and_rw_bits and made static.
5287 (i386_dr_insert_aligned_watchpoint): Renamed to
5288 i386_insert_aligned_watchpoint and made static.
5290 (i386_dr_remove_aligned_watchpoint): Renamed to
5291 i386_remove_aligned_watchpoint and made static.
5293 (i386_dr_update_inferior_debug_regs): Renamed to
5294 i386_update_inferior_debug_regs and made static.
5296 * nat/i386-dregs.h (i386_dr_show): Removed.
5297 (i386_dr_length_and_rw_bits): Likewise.
5298 (i386_dr_insert_aligned_watchpoint): Likewise.
5299 (i386_dr_remove_aligned_watchpoint): Likewise.
5300 (i386_dr_update_inferior_debug_regs): Likewise.
5302 2014-06-19 Gary Benson <gbenson@redhat.com>
5304 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5305 * configure: Regenerate.
5306 * config.in: Likewise.
5307 * main.c (signal.h): New include.
5308 (setup_alternate_signal_stack): New function.
5309 (captured_main): Call the above.
5310 * cp-support.c (signal.h): New include.
5311 (catch_demangler_crashes): New flag.
5312 (SIGJMP_BUF): New define.
5313 (SIGSETJMP): Likewise.
5314 (SIGLONGJMP): Likewise.
5315 (gdb_demangle_jmp_buf): New static global.
5316 (gdb_demangle_attempt_core_dump): Likewise.
5317 (gdb_demangle_signal_handler): New function.
5318 (gdb_demangle): If catch_demangler_crashes is set, install the
5319 above signal handler before calling bfd_demangle, and restore
5320 the original signal handler afterwards. Display the offending
5321 symbol and call demangler_warning the first time a segmentation
5323 (_initialize_cp_support): New maint set/show command.
5325 2014-06-19 Gary Benson <gbenson@redhat.com>
5327 * utils.h (resource_limit_kind): New enum.
5328 (can_dump_core): New declaration.
5329 (warn_cant_dump_core): Likewise.
5330 (dump_core): Likewise.
5331 * utils.c (dump_core): Made nonstatic. Added new
5332 parameter "limit_kind".
5333 (can_dump_core): Made nonstatic. Moved printing code to...
5334 (warn_cant_dump_core): New function.
5335 (can_dump_core_warn): Likewise.
5336 (internal_vproblem): Replace calls to can_dump_core with
5337 calls to can_dump_core_warn. Supply new argument to each.
5339 2014-06-19 Gary Benson <gbenson@redhat.com>
5341 * utils.h (demangler_vwarning): New declaration.
5342 (demangler_warning): Likewise.
5343 * utils.c (struct internal_problem)
5344 <user_settable_should_quit>: New field.
5345 <user_settable_should_dump_core>: Likewise
5346 (internal_error_problem): Add values for above new fields.
5347 (internal_warning_problem): Likewise.
5348 (demangler_warning_problem): New static global.
5349 (demangler_vwarning): New function.
5350 (demangler_warning): Likewise.
5351 (add_internal_problem_command): Selectively add commands.
5352 (_initialize_utils): New internal problem command.
5353 * maint.c (maintenance_demangler_warning): New function.
5354 (_initialize_maint_cmds): New command.
5356 2014-06-18 Tom Tromey <tromey@redhat.com>
5358 * f-valprint.c (info_common_command_for_block): Update.
5359 * symtab.h (struct general_symbol_info) <common_block>: Now
5362 2014-06-18 Tom Tromey <tromey@redhat.com>
5364 * symtab.h (struct symtab) <blockvector>: Now const.
5365 * ada-lang.c (ada_add_global_exceptions): Update.
5366 * buildsym.c (augment_type_symtab): Update.
5367 * dwarf2read.c (dw2_lookup_symbol): Update.
5368 * jit.c (finalize_symtab): Update.
5369 * jv-lang.c (add_class_symtab_symbol): Update.
5370 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5372 * objfiles.c (objfile_relocate1): Update.
5373 * psymtab.c (lookup_symbol_aux_psymtabs)
5374 (maintenance_check_psymtabs): Update.
5375 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5377 * spu-tdep.c (spu_catch_start): Update.
5378 * symmisc.c (dump_symtab_1): Update.
5379 * symtab.c (lookup_global_symbol_from_objfile)
5380 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5381 (basic_lookup_transparent_type_quick)
5382 (basic_lookup_transparent_type, find_pc_sect_symtab)
5383 (find_pc_sect_line, search_symbols): Update.
5384 * block.c (find_block_in_blockvector): Make "bl" const.
5385 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5387 (blockvector_contains_pc): Make "bv" const.
5388 (block_for_pc_sect): Update.
5389 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5390 (blockvector_contains_pc): Update.
5391 * breakpoint.c (resolve_sal_pc): Update.
5392 * inline-frame.c (block_starting_point_at): Update.
5394 2014-06-18 Tom Tromey <tromey@redhat.com>
5396 * completer.c (complete_line): Make "line_buffer" const.
5397 * completer.h (complete_line): Update.
5399 2014-06-18 Tom Tromey <tromey@redhat.com>
5401 * symtab.c (add_macro_name): Remove unneeded cast.
5403 2014-06-18 Tom Tromey <tromey@redhat.com>
5405 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5406 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5408 2014-06-18 Tom Tromey <tromey@redhat.com>
5410 * probe.c (info_probes_for_ops): Make "arg" const.
5411 * probe.h (info_probes_for_ops): Update.
5413 2014-06-18 Tom Tromey <tromey@redhat.com>
5415 * varobj.c (varobj_create): Update.
5416 * valops.c (value_of_this): Update.
5417 * tracepoint.c (add_local_symbols, scope_info): Update.
5418 * symtab.h (struct general_symbol_info) <block>: Now const.
5419 * symtab.c (skip_prologue_sal)
5420 (default_make_symbol_completion_list_break_on)
5421 (skip_prologue_using_sal): Update.
5422 * stack.h (iterate_over_block_locals)
5423 (iterate_over_block_local_vars): Update.
5424 * stack.c (print_frame_args): Update.
5425 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5427 (get_selected_block): Make return type const.
5428 * python/py-frame.c (frapy_block): Update.
5429 * python/py-block.c (gdbpy_block_for_pc): Update.
5430 * p-exp.y (%union) <bval>: Now const.
5431 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5432 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5433 * m2-exp.y (%union) <bval>: Now const.
5434 * linespec.c (get_current_search_block): Make return type const.
5435 (create_sals_line_offset, find_label_symbols): Update.
5436 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5438 (block_starting_point_at): Make "block" const.
5439 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5440 (check_exception_resume): Update.
5441 * guile/scm-frame.c (gdbscm_frame_block): Update.
5442 * guile/scm-block.c (gdbscm_lookup_block): Update.
5443 * frame.h (get_frame_block): Update.
5444 (get_selected_block): Make return type const.
5445 * frame.c (frame_id_inner): Update.
5446 * f-valprint.c (info_common_command_for_block)
5447 (info_common_command): Update.
5448 * dwarf2loc.c (dwarf2_find_location_expression)
5449 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5450 (locexpr_describe_location_piece): Update.
5451 * c-exp.y (%union) <bval>: Now const.
5452 * breakpoint.c (resolve_sal_pc): Update.
5453 * blockframe.c (get_frame_block):Make return type const.
5454 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5455 (block_innermost_frame): Update.
5456 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5457 (block_for_pc, block_for_pc_sect): Update.
5458 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5460 (block_for_pc_sect, block_for_pc): Make return type const.
5461 * ax-gdb.c (gen_expr): Update.
5462 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5463 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5464 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5465 (ada_read_var_value): Update.
5466 * ada-exp.y (struct name_info) <block>: Now const.
5468 (block_lookup): Constify.
5470 2014-06-18 Gary Benson <gbenson@redhat.com>
5472 * nat/i386-dregs.h: New file.
5473 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5474 * i386-nat.h (i386-dregs.h): New include.
5475 (DR_FIRSTADDR): Now in i386-dregs.h.
5476 (DR_LASTADDR): Likewise.
5477 (DR_NADDR): Likewise.
5478 (DR_STATUS): Likewise.
5479 (DR_CONTROL): Likewise.
5480 (i386_debug_reg_state): Likewise.
5481 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5483 2014-06-18 Don Breazeal <donb@codesourcery.com>
5485 * breakpoint.c (set_longjmp_breakpoint): Call
5486 momentary_breakpoint_from_master with additional argument.
5487 (set_longjmp_breakpoint_for_call_dummy): Call
5488 momentary_breakpoint_from_master with additional argument.
5489 (set_std_terminate_breakpoint): Call
5490 momentary_breakpoint_from_master with additional argument.
5491 (momentary_breakpoint_from_master): Add argument to function
5492 definition and use it to initialize structure member flag.
5493 (clone_momentary_breakpoint): Call
5494 momentary_breakpoint_from_master with additional argument.
5495 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5496 member flags set in momentary_breakpoint_from_master.
5498 2014-06-18 Gary Benson <gbenson@redhat.com>
5500 * i386-nat.c (i386_show_dr): Renamed to
5501 i386_dr_show and made nonstatic. All uses updated.
5502 (i386_length_and_rw_bits): Renamed to
5503 i386_dr_length_and_rw_bits and made nonstatic.
5505 (i386_insert_aligned_watchpoint): Renamed to
5506 i386_dr_insert_aligned_watchpoint and made nonstatic.
5508 (i386_remove_aligned_watchpoint): Renamed to
5509 i386_dr_remove_aligned_watchpoint and made nonstatic.
5511 (i386_update_inferior_debug_regs): Renamed to
5512 i386_dr_update_inferior_debug_regs and made nonstatic.
5515 2014-06-18 Gary Benson <gbenson@redhat.com>
5517 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5518 (i386_dr_low_can_set_control): Likewise.
5519 (i386_dr_low_set_addr): Likewise.
5520 (i386_dr_low_set_control): Likewise.
5521 (i386_dr_low_get_addr): Likewise.
5522 (i386_dr_low_get_status): Likewise.
5523 (i386_dr_low_get_control): Likewise.
5524 (i386_insert_aligned_watchpoint): Use new macros.
5525 (i386_update_inferior_debug_regs): Likewise.
5526 (i386_stopped_data_address): Likewise.
5528 2014-06-18 Gary Benson <gbenson@redhat.com>
5530 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5531 New parameter. All uses updated.
5533 2014-06-18 Gary Benson <gbenson@redhat.com>
5535 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5538 2014-06-18 Gary Benson <gbenson@redhat.com>
5540 * i386-nat.c (debug_printf): New macro.
5541 (i386_get_debug_register_length): Likewise.
5542 (TARGET_HAS_DR_LEN_8): Use above macro.
5543 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5544 and printf_unfiltered. Use phex to format values.
5546 2014-06-18 Gary Benson <gbenson@redhat.com>
5548 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5551 2014-06-18 Gary Benson <gbenson@redhat.com>
5553 * i386-nat.c: Comment changes.
5555 2014-06-18 Gary Benson <gbenson@redhat.com>
5557 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5559 2014-06-18 Gary Benson <gbenson@redhat.com>
5561 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5562 (i386_insert_aligned_watchpoint): Likewise.
5563 (i386_remove_aligned_watchpoint): Likewise.
5564 (i386_handle_nonaligned_watchpoint): Likewise.
5566 2014-06-18 Gary Benson <gbenson@redhat.com>
5568 * i386-nat.c: Whitespace changes.
5570 2014-06-17 Samuel Bronson <naesten@gmail.com>
5572 * MAINTAINERS: Update Roland McGrath's email address.
5573 Thanks to Sergio Durigan Junior for pointing out that he left
5574 Red Hat a while ago, and giving me a current address.
5576 2014-06-17 Tom Tromey <tromey@redhat.com>
5578 * utils.h (savestring): Remove declaration.
5580 2014-06-17 Tom Tromey <tromey@redhat.com>
5582 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5584 2014-06-16 Keith Seitz <keiths@redhat.com>
5587 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5588 to update the varobj if inferior_ptid is null_ptid.
5590 2014-06-16 Tom Tromey <tromey@redhat.com>
5592 * target.h (struct target_ops) <to_info_proc>: Make parameter
5594 (target_info_proc): Update.
5595 * target.c (target_info_proc): Make "args" const.
5596 * procfs.c (procfs_info_proc): Update.
5597 * linux-tdep.c (linux_info_proc): Update.
5598 (linux_core_info_proc_mappings): Make "args" const.
5599 (linux_core_info_proc): Update.
5600 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5601 * gdbarch.c: Rebuild.
5602 * gdbarch.h: Rebuild.
5603 * corelow.c (core_info_proc): Update.
5605 2014-06-16 Tom Tromey <tromey@redhat.com>
5607 * target.h (struct target_ops) <to_disconnect>: Make parameter
5609 (target_disconnect): Update.
5610 * target.c (target_disconnect): Make "args" const.
5611 * target-delegates.c: Rebuild.
5612 * remote.c (remote_disconnect): Update.
5613 * record.h (record_disconnect): Update.
5614 * record.c (record_disconnect): Update.
5615 * inf-child.c (inf_child_disconnect): Update.
5617 2014-06-16 Tom Tromey <tromey@redhat.com>
5619 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5620 * target.c (debug_to_rcmd, default_rcmd): Update.
5621 * target-delegates.c: Rebuild.
5622 * remote.c (remote_rcmd): Update.
5623 * monitor.c (monitor_rcmd): Update.
5625 2014-06-16 Pedro Alves <palves@redhat.com>
5627 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5628 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5629 have OBJF_SHARED set.
5630 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5631 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5632 instead of OBJF_USERLOADED.
5633 * objfiles.h (OBJF_SHARED): Update comment.
5634 (userloaded_objfile_contains_address_p): Rename to ...
5635 (shared_objfile_contains_address_p): ... this, and update
5637 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5639 (remove_symbol_file_command): Skip objfiles that don't have
5642 2014-06-16 Tom Tromey <tromey@redhat.com>
5644 * minsyms.h (prim_record_minimal_symbol)
5645 (prim_record_minimal_symbol_and_info): Update comments.
5647 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5649 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5650 or --without-guile, according to how GDB was built.
5652 2014-06-13 Tom Tromey <tromey@redhat.com>
5654 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5656 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5658 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5660 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5661 help_list.Pass all_commands, not -1, to help_list.
5662 * cli/cli-dump.c (dump_command, append_command)
5663 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5664 (binary_dump_command, binary_append_command): Pass all_commands,
5665 not -1, to help_list.
5666 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5668 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5670 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5672 * top.c (set_history): Pass all_commands, not -1, to help_list.
5673 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5674 all_commands, not -1, to help_list.
5675 * symfile.c (overlay_command): Pass all_commands, not -1, to
5677 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5679 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5681 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5683 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5684 not -1, to help_list.
5685 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5686 not -1, to help_list.
5687 * maint.c (maintenance_command, maintenance_info_command)
5688 (maintenance_print_command, maintenance_set_cmd): Pass
5689 all_commands, not -1, to help_list.
5690 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5692 * language.c (set_check): Pass all_commands, not -1, to help_list.
5693 * infcmd.c (unset_command): Pass all_commands, not -1, to
5695 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5697 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5699 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5701 * breakpoint.c (save_command): Pass all_commands, not -1, to
5703 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5704 all_commands, not -1, to help_list.
5706 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5708 * regcache.c (struct register_to_invalidate): New structure.
5709 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5711 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5713 2014-06-12 Yao Qi <yao@codesourcery.com>
5715 * varobj.c (varobj_get_num_children): Call
5716 varobj_is_dynamic_p.
5717 (varobj_list_children): Likewise.
5718 (varobj_update): Likewise. Update comments.
5720 2014-06-12 Yao Qi <yao@codesourcery.com>
5722 * varobj.c (varobj_pretty_printed_p): Rename to ...
5723 (varobj_is_dynamic_p): ... this. New function.
5724 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5725 (varobj_is_dynamic_p): Declare.
5726 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5727 (mi_print_value_p, varobj_update_one): Likewise.
5729 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5730 Yao Qi <yao@codesourcery.com>
5732 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5733 (varobj_get_iterator): Wrap up code for pretty-printer by
5734 "#if HAVE_PYTHON" and "#endif".
5735 (update_dynamic_varobj_children): Likewise.
5737 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5738 Yao Qi <yao@codesourcery.com>
5740 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5741 gdb_python_initialized is false. Move some code from varobj.c.
5742 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5743 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5744 (struct varobj_item): Moved to varobj-iter.h".
5745 (varobj_clear_saved_item): New function.
5746 (update_dynamic_varobj_children): Move python-related code to
5748 (free_variable): Call varobj_clear_saved_item and
5751 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5752 Yao Qi <yao@codesourcery.com>
5754 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5755 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5756 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5757 (py-varobj.o): New rule.
5758 * python/py-varobj.c: New file.
5759 * python/python-internal.h (py_varobj_get_iterator): Declare.
5760 * varobj-iter.h: New file.
5761 * varobj.c: Include "varobj-iter.h"
5762 (struct varobj) <child_iter>: Change its type from "PyObject *"
5763 to "struct varobj_iter *".
5764 <saved_item>: Likewise.
5765 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5766 [HAVE_PYTHON] (varobj_get_iterator): New function.
5767 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5768 python-specific code to python/py-varobj.c.
5769 (install_visualizer): Call varobj_iter_delete instead of
5771 * varobj.h (varobj_ensure_python_env): Declare.
5773 2014-06-12 Yao Qi <yao@codesourcery.com>
5775 * varobj.c (struct varobj_item): New structure.
5776 (create_child_with_value): Update declaration.
5777 (varobj_add_child): Replace arguments 'name' and 'value' with
5778 'item'. All callers updated.
5779 (install_dynamic_child): Likewise.
5780 (update_dynamic_varobj_children): Likewise.
5781 (varobj_add_child): Likewise.
5782 (create_child_with_value): Likewise.
5784 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5786 * NEWS: Create a new section for the next release branch.
5787 Rename the section of the current branch, now that it has
5790 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5792 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5793 * version.in: Bump version to 7.8.50.DATE-cvs.
5795 2014-06-11 Pedro Alves <palves@redhat.com>
5798 * ser-mingw.c (net_windows_socket_check_pending): New function.
5799 (net_windows_select_thread): Ignore spurious wakeups. Use
5800 net_windows_socket_check_pending.
5801 (net_windows_wait_handle): Check for pending events with
5802 ioctlsocket, through net_windows_socket_check_pending, instead of
5803 checking the socket's event.
5805 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5807 * python/python-internal.h (gdb_PyObject_GetAttrString)
5808 (gdb_PyObject_HasAttrString): New inline function definitions.
5809 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5810 char * of the second argument to PyObject_GetAttrString.
5812 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5814 * serial.c (serial_write): Fix index of character to be printed
5815 in call to serial_logchar when serial debug traces are enabled.
5817 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5819 * gdbtypes (resolve_dynamic_range): Add function description.
5821 2014-06-09 Pedro Alves <palves@redhat.com>
5823 * linux-nat.c (linux_child_follow_fork): Initialize status with
5824 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5825 inner block. Only pass the signal to PTRACE_DETACH if in pass
5828 2014-06-09 Gary Benson <gbenson@redhat.com>
5830 * common/signals.c (gdb_signal_from_host): Reorder to separate
5831 the always-available ANSI-standard signals from the signals that
5833 (do_gdb_signal_to_host): Likewise.
5834 * proc-events.c (signal_table): Likewise.
5836 2014-06-08 Hui Zhu <hui@codesourcery.com>
5838 * common/linux-ptrace.c (linux_disable_event_reporting): New
5840 * common/linux-ptrace.h (linux_disable_event_reporting): New
5842 * linux-nat.c (linux_child_follow_fork): Do a single step before
5845 2014-06-07 Keith Seitz <keiths@redhat.com>
5849 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5850 from symbol_matches_domain in symtab.c. All local callers
5851 of symbol_matches_domain updated.
5852 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5853 search STRUCT_DOMAIN.
5854 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5855 independently. standard_lookup will do that automatically.
5856 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5857 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5858 (cp_lookup_symbol_in_namespace): Likewise.
5859 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5860 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5861 may return a STRUCT_DOMAIN match.
5862 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5863 * cp-support.c: Include language.h.
5864 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5866 * psymtab.c (match_partial_symbol): Compare the requested
5867 domain with the symbol's domain directly.
5868 (lookup_partial_symbol): Likewise.
5869 * symtab.c (lookup_symbol_in_language): Explain when/why
5870 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5871 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5872 appropriate languages.
5873 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5874 and moved to ada-lang.c
5875 (lookup_block_symbol): Explain that this function only returns
5876 symbol matching the requested DOMAIN.
5877 Compare the requested domain with the symbol's domain directly.
5878 (iterate_over_symbols): Compare the requested domain with the
5879 symbol's domain directly.
5880 * symtab.h (symbol_matches_domain): Remove.
5882 2014-06-06 Doug Evans <xdje42@gmail.com>
5884 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5885 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5886 (gdbscm_guile_version_is_at_least): Declare.
5887 (gdbscm_scm_string_to_int): Declare.
5888 * guile/guile.c (gdbscm_guile_major_version): New global.
5889 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5890 (guile_datadir): New static global.
5891 (gdbscm_guile_data_directory): New function.
5892 (initialize_scheme_side): Update.
5893 (misc_guile_functions): Add guile-data-directory.
5894 (initialize_gdb_module): Fetch guile version number.
5895 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5896 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5897 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5898 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5900 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5901 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5902 * guile/scm-value.c (gdbscm_value_to_string): Only call
5903 scm_port_conversion_strategy if Guile version >= 2.0.6.
5905 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5907 * main.c (print_gdb_help): Add -q and --silent.
5909 2014-06-06 Gary Benson <gbenson@redhat.com>
5911 * common/signals.c: Remove preprocessor conditionals for
5912 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5913 SIGSEGV and SIGTERM.
5914 * proc-events.c: Likewise.
5916 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5918 * symfile.c (symfile_free_objfile): Remove restriction to
5920 * symfile-mem.c (symbol_file_add_from_memory): Call
5921 add_target_sections_of_objfile.
5923 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5925 * guile/scm-value.c (gdbscm_history_append_x): Use
5926 'vlscm_get_value_smob_arg_unsafe' instead of
5927 'vlscm_scm_to_value'.
5929 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5932 * utils.c (printchar): Don't escape at all if quoter is NUL.
5933 Update function documentation to clarify effect of parameter
5935 * remote.c (escape_buffer): Pass '\\' as the quoter to
5936 fputstrn_unfiltered.
5937 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5938 generate the output.
5939 (mi_solib_unloaded): Same.
5941 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5943 * development.sh: Delete.
5944 * Makefile.in (config.status): Adjust dependency on development.sh.
5945 * configure.ac: Adjust development.sh source call.
5946 * configure: Regenerate.
5948 2014-06-04 Doug Evans <xdje42@gmail.com>
5950 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5951 is_scheme_bkpt, spec.
5952 (bpscm_make_breakpoint_smob): Initialize new members.
5953 (gdbscm_create_breakpoint_x): Split into two ...
5954 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5955 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5956 (scheme_function breakpoint_functions): Update.
5957 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5958 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5959 register-breakpoint!.
5961 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5964 * mem-break.c (z_type_supported): Return zero if
5965 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5967 2014-06-04 Tom Tromey <tromey@redhat.com>
5969 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5970 value_from_contents_and_address_unresolved.
5971 (ada_template_to_fixed_record_type_1): Likewise.
5972 (ada_which_variant_applies): Likewise.
5973 * value.h (value_from_contents_and_address_unresolved): Declare.
5974 * value.c (value_from_contents_and_address_unresolved): New
5976 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5977 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5978 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5980 2014-06-04 Tom Tromey <tromey@redhat.com>
5982 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5984 2014-06-04 Tom Tromey <tromey@redhat.com>
5986 * procfs.c (procfs_attach): Make "args" const.
5987 * windows-nat.c (windows_attach): Make "args" const.
5988 * nto-procfs.c (procfs_attach): Make "args" const.
5989 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5990 * go32-nat.c (go32_attach): Make "args" const.
5991 * gnu-nat.c (gnu_attach): Make "args" const.
5992 * darwin-nat.c (darwin_attach): Make "args" const.
5993 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5994 * linux-nat.c (linux_nat_attach): Make "args" const.
5995 * remote.c (extended_remote_attach_1, extended_remote_attach):
5997 * target.h (struct target_ops) <to_attach>: Make "args" const.
5998 (find_default_attach): Likewise.
5999 * utils.c (parse_pid_to_attach): Make "args" const.
6000 * utils.h (parse_pid_to_attach): Update.
6002 2014-06-04 Tom Tromey <tromey@redhat.com>
6004 * target-delegates.c: Rebuild.
6005 * target.c (default_thread_address_space): New function.
6006 (target_thread_address_space): Simplify.
6007 * target.h (struct target_ops) <to_thread_address_space>: Add
6008 TARGET_DEFAULT_FUNC.
6010 2014-06-04 Doug Evans <xdje42@gmail.com>
6012 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6014 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6016 * record-btrace.c: Include event-loop.h and inf-loop.h.
6017 (record_btrace_resume_exec_dir)
6018 (record_btrace_async_inferior_event_handler)
6019 (record_btrace_handle_async_inferior_event): New.
6020 (record_btrace_open): Create async event handler.
6021 (record_btrace_close): Delete async event handler.
6022 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6023 Mark async event handler.
6024 (record_btrace_execution_direction): New.
6025 (init_record_btrace_ops): Initialize to_execution_direction.
6027 2014-06-03 Doug Evans <xdje42@gmail.com>
6029 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6030 (gdbscm_make_parameter): Ditto.
6032 2014-06-03 Doug Evans <dje@google.com>
6034 * exec.c (exec_close_1): Call clear_section_table instead of
6035 resize_section_table.
6036 (clear_section_table): New function.
6037 (resize_section_table): Make static. Rename arg num_added to
6039 * exec.h (clear_section_table): Declare.
6040 (resize_section_table): Delete.
6041 * progspace.c (release_program_space): Call clear_section_table
6042 instead of resize_section_table.
6044 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6046 * NEWS (Python Scripting): Add entry about the new xmethods
6049 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6051 * python/py-xmethods.c: New file.
6052 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6053 (objfpy_dealloc): XDECREF on the new xmethods field.
6054 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6056 (objfpy_get_xmethods): New function.
6057 (objfile_getset): New entry 'xmethods'.
6058 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6059 (pspy_dealloc): XDECREF on the new xmethods field.
6060 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6062 (pspy_get_xmethods): New function.
6063 (pspace_getset): New entry 'xmethods'.
6064 * python/python-internal.h: Add declarations for new functions.
6065 * python/python.c (_initialize_python): Invoke
6066 gdbpy_initialize_xmethods.
6067 * python/lib/gdb/__init__.py (xmethods): New
6069 * python/lib/gdb/xmethod.py: New file.
6070 * python/lib/gdb/command/xmethods.py: New file.
6072 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6074 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6075 best match method returned by find_overload_match is an xmethod.
6076 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6077 the best matching operator returned by find_overload_match is an
6079 * valops.c: #include "extension.h".
6080 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6081 Return void. The list of matching source methods is returned in
6082 "fn_list" and a vector of matching debug method workers is
6083 returned in "xm_worker_vec". Update all callers.
6084 (value_find_oload_method_list): Likewise.
6085 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6086 non-NULL, then the index of the best matching method in this
6087 vector is returned. Update all callers.
6088 (find_overload_match): Include xmethods while performing overload
6091 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6093 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6094 * extension-priv.h (struct extension_language_ops): Add the
6096 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6097 get_matching_xmethod_workers, get_xmethod_argtypes,
6098 invoke_xmethod, free_xmethod_worker,
6099 free_xmethod_worker_vec): New functions.
6100 * extension.h: #include "common/vec.h".
6101 New function declarations.
6102 (struct xmethod_worker): New struct.
6103 (VEC (xmethod_worker_ptr)): New vector type.
6104 (xmethod_worker_ptr): New typedef.
6105 (xmethod_worker_vec): Likewise.
6106 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6108 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6109 (struct builtin_type): New field "xmethod".
6110 * valarith.c (value_ptradd): Assert that the value argument is not
6112 * valops.c (value_must_coerce_to_target): Return 0 for
6113 lval_xcallable values.
6114 * value.c (struct value): New field XM_WORKER in the field
6116 (value_address, value_raw_address): Return 0 for lval_xcallable
6118 (set_value_address): Assert that the value is not an
6120 (value_free): Free the associated xmethod worker when freeing
6121 lval_xcallable values.
6122 (set_value_component_location): Assert that the WHOLE value is not
6124 (value_of_xmethod, call_xmethod): New functions.
6125 * value.h: Declare "struct xmethod_worker".
6126 Declare new functions value_of_xmethod, call_xmethod.
6128 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6129 Pedro Alves <palves@redhat.com>
6131 PR breakpoints/17000
6132 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6133 New function, extracted from software_breakpoint_inserted_here_p.
6134 (software_breakpoint_inserted_here_p): Replace factored out code
6135 by call to find_non_raw_software_breakpoint_inserted_here.
6136 (bp_target_info_copy_insertion_state): New function.
6137 (bkpt_insert_location): Handle the case of a single-step
6138 breakpoint already inserted at the same address.
6139 (bkpt_remove_location): Handle the case of a single-step
6140 breakpoint still inserted at the same address.
6141 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6142 breakpoint already inserted at the same address.
6143 (deprecated_remove_raw_breakpoint): Handle the case of a
6144 non-raw breakpoint still inserted at the same address.
6145 (find_single_step_breakpoint): New function, extracted from
6146 single_step_breakpoint_inserted_here_p.
6147 (find_single_step_breakpoint): New function,
6148 factored out from single_step_breakpoint_inserted_here_p.
6149 (single_step_breakpoint_inserted_here_p): Reimplement.
6151 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6153 Pushed by Joel Brobecker <brobecker@adacore.com>
6154 * source.c (show_substitute_path_command): Fix display of matching
6157 2014-06-03 Gary Benson <gbenson@redhat.com>
6159 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6161 2014-06-02 Doug Evans <xdje42@gmail.com>
6163 Add parameter support for Guile.
6164 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6165 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6166 (scm-param.o): New rule.
6167 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6168 (gdbscm_misc_error): Declare.
6169 (gdbscm_canonicalize_command_name): Declare.
6170 (gdbscm_scm_to_host_string): Declare.
6171 (gdbscm_scm_from_host_string): Declare.
6172 (gdbscm_initialize_parameters): Declare.
6173 * guile/guile.c (initialize_gdb_module): Call
6174 gdbscm_initialize_parameters.
6175 * guile/lib/gdb.scm: Export parameter symbols.
6176 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6177 cmdscm_canonicalize_name and made public. All callers updated.
6178 * guile/scm-exception.c (gdbscm_misc_error): New function.
6179 * guile/scm-param.c: New file.
6180 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6181 (gdbscm_scm_to_host_string): New function.
6182 (gdbscm_scm_from_host_string): New function.
6183 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6185 2014-06-02 Doug Evans <xdje42@gmail.com>
6187 Add command support for Guile.
6188 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6189 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6190 (scm-cmd.o): New rule.
6191 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6192 (gdbscm_user_error_p): Declare.
6193 (gdbscm_parse_command_name): Declare.
6194 (gdbscm_valid_command_class_p): Declare.
6195 (gdbscm_initialize_commands): Declare.
6196 * guile/guile.c (initialize_gdb_module): Call
6197 gdbscm_initialize_commands.
6198 * guile/lib/gdb.scm: Export command symbols.
6199 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6200 (throw-user-error): New function.
6201 * guile/scm-cmd.c: New file.
6202 * guile/scm-exception.c (user_error_symbol): New static global.
6203 (gdbscm_user_error_p): New function.
6204 (gdbscm_initialize_exceptions): Set user_error_symbol.
6205 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6207 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6209 * top.c (command_loop): Handle comments here...
6210 (command_line_input): ... not here.
6212 2014-06-02 Doug Evans <xdje42@gmail.com>
6214 Add progspace support for Guile.
6215 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6216 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6217 (scm-progspace.o): New rule.
6218 * guile/guile-internal.h (pspace_smob): New typedef.
6219 (psscm_pspace_smob_pretty_printers): Declare.
6220 (psscm_pspace_smob_from_pspace): Declare.
6221 (psscm_scm_from_pspace): Declare.
6222 * guile/guile.c (initialize_gdb_module): Call
6223 gdbscm_initialize_pspaces.
6224 * guile/lib/gdb.scm: Export progspace symbols.
6225 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6227 (append-pretty-printer!): Ditto.
6228 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6230 * guile/scm-progspace.c: New file.
6232 2014-06-03 Alan Modra <amodra@gmail.com>
6234 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6235 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6237 2014-06-02 Doug Evans <dje@google.com>
6239 Add support for skeletonless type units.
6240 * dwarf2read.c (struct dwarf2_per_objfile): New member
6241 n_allocated_type_units.
6242 (struct dwarf2_per_objfile) <tu_stats>: New member
6243 nr_all_type_units_reallocs.
6244 (create_signatured_type_table_from_index): Initialize
6245 n_allocated_type_units
6246 (create_all_type_units): Ditto.
6247 (add_type_unit): Move up in file. New arg slot.
6248 All callers updated. Increase space for all_type_units more
6250 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6251 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6252 (lookup_dwp_signatured_type): Ditto.
6253 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6254 All callers updated.
6255 (build_type_psymtabs_1): Leave type_unit_groups as
6256 NULL if no TUs present.
6257 (print_tu_stats): New function.
6258 (process_skeletonless_type_unit): New function.
6259 (process_dwo_file_for_skeletonless_type_units): New
6261 (process_skeletonless_type_units): New function.
6262 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6263 Call print tu_stats if debugging enabled.
6265 2014-06-02 Pedro Alves <palves@redhat.com>
6267 * breakpoint.c (build_target_command_list): Don't build a command
6268 list if we have any duplicate location that isn't a dprintf.
6270 2014-06-02 Pedro Alves <palves@redhat.com>
6272 * breakpoint.c (dprintf_breakpoint_hit): New function.
6273 (initialize_breakpoint_ops): Install it as dprintf's
6274 breakpoint_hit method.
6276 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6278 * source.c (substitute_path_rule_matches): Simplify using
6279 filename_ncmp instead of FILENAME_CMP.
6281 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6283 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6285 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6287 * configure.ac: When Guile is available, check for the
6288 availability of 'scm_new_smob'.
6289 * configure, config.h.in: Regenerate.
6290 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6293 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6295 * frame.c (struct frame_info): Add stop_string field.
6296 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6297 (get_prev_frame_always): Old content moved into
6298 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6299 TRY_CATCH, handle MEMORY_ERROR exceptions.
6300 (frame_stop_reason_string): New function definition.
6301 * frame.h (unwind_stop_reason_to_string): Extend comment to
6302 mention frame_stop_reason_string.
6303 (frame_stop_reason_string): New function declaration.
6304 * stack.c (frame_info): Switch to frame_stop_reason_string.
6305 (backtrace_command_1): Switch to frame_stop_reason_string.
6306 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6307 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6308 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6310 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6312 * frame.c (frame_stop_reason_string): Rename to ...
6313 (unwind_stop_reason_to_string): this.
6314 * frame.h (frame_stop_reason_string): Rename to ...
6315 (unwind_stop_reason_to_string): this.
6316 * stack.c (frame_info): Update call to frame_stop_reason_string.
6317 (backtrace_command_1): Likewise.
6318 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6319 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6321 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6323 * frame.c (remove_prev_frame): New function.
6324 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6327 2014-05-29 Pedro Alves <palves@redhat.com>
6329 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6330 and make it const. When a single-step decays to a continue,
6331 clear 'step', not 'hw_step'. Pass whether the caller wanted
6332 to step to user_visible_resume_ptid, not what we ask the
6335 2014-05-29 Pedro Alves <palves@redhat.com>
6337 * infrun.c (process_event_stop_test, handle_step_into_function)
6338 (handle_step_into_function_backward): Adjust.
6339 Don't set the even thread's stop_step and call stop_waiting before
6340 calling end_stepping_range. Instead do that ...
6341 (end_stepping_range): ... here. Take an ecs pointer parameter.
6343 2014-05-29 Pedro Alves <palves@redhat.com>
6345 * infrun.c (stop_stepping): Rename to ...
6346 (stop_waiting): ... this.
6347 (proceed): Update comment.
6348 (process_event_stop_test, handle_inferior_event)
6349 (handle_signal_stop, handle_step_into_function)
6350 (handle_step_into_function_backward): Update.
6352 2014-05-29 Pedro Alves <palves@redhat.com>
6354 * infcall.c (run_inferior_call): Don't check whether the current
6355 thread is running after the proceed call.
6357 2014-05-29 Pedro Alves <palves@redhat.com>
6358 Tom Tromey <tromey@redhat.com>
6360 * NEWS: Mention "maint set target-async", "set mi-async", and that
6361 background execution commands are now always available.
6362 * target.h (target_async_permitted): Update comment.
6363 * target.c (target_async_permitted, target_async_permitted_1):
6365 (set_target_async_command): Rename to ...
6366 (maint_set_target_async_command): ... this.
6367 (show_target_async_command): Rename to ...
6368 (maint_show_target_async_command): ... this.
6369 (_initialize_target): Adjust.
6370 * infcmd.c (prepare_execution_command): Make extern.
6371 * inferior.h (prepare_execution_command): Declare.
6372 * infrun.c (set_observer_mode): Leave target async alone.
6373 * mi/mi-interp.c (mi_interpreter_init): Install
6374 mi_on_sync_execution_done as sync_execution_done observer.
6375 (mi_on_sync_execution_done): New function.
6376 (mi_execute_command_input_handler): Don't print the prompt if we
6377 just started a synchronous command with an async target.
6378 (mi_on_resume): Check sync_execution before printing prompt.
6379 * mi/mi-main.h (mi_async_p): Declare.
6380 * mi/mi-main.c: Include gdbcmd.h.
6381 (mi_async_p): New function.
6382 (mi_async, mi_async_1): New globals.
6383 (set_mi_async_command, show_mi_async_command, mi_async): New
6385 (exec_continue): Call prepare_execution_command.
6386 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6387 (mi_execute_async_cli_command): Use mi_async_p.
6388 (_initialize_mi_main): Install "set mi-async". Make
6389 "target-async" a deprecated alias.
6391 2014-05-29 Pedro Alves <palves@redhat.com>
6393 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6394 (_initialize_cli_interp): Adjust.
6395 * event-loop.c: Include "observer.h".
6396 (start_event_loop): Notify 'command_error' observers instead of
6397 calling display_gdb_prompt. Remove FIXME comment.
6398 * event-top.c (display_gdb_prompt): Remove call into the
6400 * inf-loop.c: Include "observer.h".
6401 (inferior_event_handler): Notify 'command_error' observers instead
6402 of calling display_gdb_prompt.
6403 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6404 observers instead of calling display_gdb_prompt.
6405 * interps.c (interp_set): Don't call display_gdb_prompt.
6406 (current_interp_display_prompt_p): Delete.
6407 * interps.h (interp_prompt_p): Delete declaration.
6408 (interp_prompt_p_ftype): Delete.
6409 (struct interp_procs) <prompt_proc_p>: Delete field.
6410 (current_interp_display_prompt_p): Delete declaration.
6411 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6412 (_initialize_mi_interp): Adjust.
6413 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6414 'command_error' observers.
6415 (tui_on_sync_execution_done, tui_on_command_error): New
6417 (tui_display_prompt_p): Delete.
6418 (_initialize_tui_interp): Adjust.
6420 2014-05-29 Pedro Alves <palves@redhat.com>
6423 * cli/cli-interp.c: Include infrun.h and observer.h.
6424 (cli_uiout, cli_interp): New globals.
6425 (cli_on_signal_received, cli_on_end_stepping_range)
6426 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6428 (cli_interpreter_init): Install them as 'end_stepping_range',
6429 'signal_received' 'signal_exited', 'exited' and 'no_history'
6431 (_initialize_cli_interp): Remove cli_interp local.
6432 * infrun.c (handle_inferior_event): Call the several stop reason
6433 observers instead of printing the stop reason directly.
6434 (end_stepping_range): New function.
6435 (print_end_stepping_range_reason, print_signal_exited_reason)
6436 (print_exited_reason, print_signal_received_reason)
6437 (print_no_history_reason): Make static, and add an uiout
6438 parameter. Print to that instead of to CURRENT_UIOUT.
6439 * infrun.h (print_end_stepping_range_reason)
6440 (print_signal_exited_reason, print_exited_reason)
6441 (print_signal_received_reason print_no_history_reason): New
6443 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6445 <cli_uiout>: New field.
6446 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6447 uiout for CLI output. Install 'signal_received',
6448 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6450 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6451 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6452 (mi_on_no_history): New functions.
6453 (ui_out_free_cleanup): Delete function.
6454 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6455 instead use the one already stored in the MI interpreter data.
6456 (mi_ui_out): Adjust.
6457 * tui/tui-interp.c: Include infrun.h and observer.h.
6458 (tui_interp): New global.
6459 (tui_on_signal_received, tui_on_end_stepping_range)
6460 (tui_on_signal_exited, tui_on_exited)
6461 (tui_on_no_history): New functions.
6462 (tui_init): Install them as 'end_stepping_range',
6463 'signal_received' 'signal_exited', 'exited' and 'no_history'
6465 (_initialize_tui_interp): Delete tui_interp local.
6467 2014-05-29 Pedro Alves <palves@redhat.com>
6470 * linux-nat.c (linux_nat_resume_callback): Rename the second
6471 parameter to 'except'. Skip LP if it points to EXCEPT.
6472 (linux_nat_resume): Don't mark the event lwp as not stopped
6473 before resuming sibling lwps. Instead ask
6474 linux_nat_resume_callback to skip the event lwp. Mark it as not
6475 stopped after actually resuming it.
6476 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6478 (wait_lwp): Mark the lwp as stopped here.
6479 (stop_wait_callback): Mark the lwp as not stopped right after
6480 resuming it. Don't mark lwps as stopped here.
6481 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6482 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6484 2014-05-29 Pedro Alves <palves@redhat.com>
6487 * infrun.c (resume): Determine how much to resume depending on
6488 whether the caller wanted a step, not whether we can hardware step
6489 the target. Mark all threads that we intend to run as running,
6490 unless we're calling an inferior function.
6491 (normal_stop): If the thread is running an infcall, don't finish
6493 * target.c (target_resume): Don't mark threads as running here.
6495 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6497 * serial.c (_initialize_serial): Remove support for
6498 the "set remotebaud" and "show remotebaud" commands.
6499 * NEWS: Add entry documenting the removal of that command.
6501 2014-05-28 Yao Qi <yao@codesourcery.com>
6503 * charset.c: Fix typo in comments.
6505 2014-05-27 Gary Benson <gbenson@redhat.com>
6507 * utils.c (internal_vproblem): Prompt for a bug report.
6509 2014-05-26 Andy Wingo <wingo@igalia.com>
6511 * guile/scm-arch.c (arscm_mark_arch_smob):
6512 * guile/scm-block.c (bkscm_mark_block_smob)
6513 (bkscm_mark_block_syms_progress_smob):
6514 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6515 * guile/scm-exception.c (exscm_mark_exception_smob):
6516 * guile/scm-frame.c (frscm_mark_frame_smob):
6517 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6518 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6519 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6520 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6521 (ppscm_mark_pretty_printer_worker_smob):
6522 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6523 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6524 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6525 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6527 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6530 2014-05-26 Andy Wingo <wingo@igalia.com>
6531 Doug Evans <xdje42@gmail.com>
6533 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6534 empty_base_class. All uses updated.
6535 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6536 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6538 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6539 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6540 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6541 (gdbscm_gsmob_has_property_p, add_property_name)
6542 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6543 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6544 (gdb-object-has-property?, gdb-object-properties): Remove.
6545 (gdb-object-kind): Renamed from gsmob-kind.
6547 2014-05-26 Andy Wingo <wingo@igalia.com>
6549 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6550 * configure: Regenerate.
6552 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6554 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6556 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6558 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6559 (replay_memory_access_read_only, replay_memory_access_read_write)
6560 (replay_memory_access_types, replay_memory_access)
6561 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6562 (cmd_set_record_btrace, cmd_show_record_btrace)
6563 (cmd_show_replay_memory_access): New.
6564 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6565 (record_btrace_remove_breakpoint): Replace
6566 record_btrace_allow_memory_access with replay_memory_access.
6567 (_initialize_record_btrace): Add commands.
6568 * NEWS: Announce it.
6570 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6572 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6574 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6576 * MAINTAINERS (Write After Approval): Move self back from
6579 2014-05-22 Pedro Alves <palves@redhat.com>
6581 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6582 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6583 (disable_randomization, enum exec_direction_kind)
6584 (execution_direction, stop_registers, start_remote)
6585 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6586 (wait_for_inferior, normal_stop, get_last_target_status)
6587 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6588 (insert_step_resume_breakpoint_at_sal)
6589 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6590 (set_step_info, print_stop_event, signal_stop_state)
6591 (signal_print_state, signal_pass_state, signal_stop_update)
6592 (signal_print_update, signal_pass_update)
6593 (update_signals_program_target, clear_exit_convenience_vars)
6594 (displaced_step_dump_bytes, update_observer_mode)
6595 (signal_catch_update, gdb_signal_from_command): Move
6597 * infrun.h: ... to this new file.
6598 * amd64-tdep.c: Include infrun.h.
6599 * annotate.c: Include infrun.h.
6600 * arch-utils.c: Include infrun.h.
6601 * arm-linux-tdep.c: Include infrun.h.
6602 * arm-tdep.c: Include infrun.h.
6603 * break-catch-sig.c: Include infrun.h.
6604 * breakpoint.c: Include infrun.h.
6605 * common/agent.c: Include infrun.h instead of inferior.h.
6606 * corelow.c: Include infrun.h.
6607 * event-top.c: Include infrun.h.
6608 * go32-nat.c: Include infrun.h.
6609 * i386-tdep.c: Include infrun.h.
6610 * inf-loop.c: Include infrun.h.
6611 * infcall.c: Include infrun.h.
6612 * infcmd.c: Include infrun.h.
6613 * infrun.c: Include infrun.h.
6614 * linux-fork.c: Include infrun.h.
6615 * linux-nat.c: Include infrun.h.
6616 * linux-thread-db.c: Include infrun.h.
6617 * monitor.c: Include infrun.h.
6618 * nto-tdep.c: Include infrun.h.
6619 * procfs.c: Include infrun.h.
6620 * record-btrace.c: Include infrun.h.
6621 * record-full.c: Include infrun.h.
6622 * remote-m32r-sdi.c: Include infrun.h.
6623 * remote-mips.c: Include infrun.h.
6624 * remote-notif.c: Include infrun.h.
6625 * remote-sim.c: Include infrun.h.
6626 * remote.c: Include infrun.h.
6627 * reverse.c: Include infrun.h.
6628 * rs6000-tdep.c: Include infrun.h.
6629 * s390-linux-tdep.c: Include infrun.h.
6630 * solib-irix.c: Include infrun.h.
6631 * solib-osf.c: Include infrun.h.
6632 * solib-svr4.c: Include infrun.h.
6633 * target.c: Include infrun.h.
6634 * top.c: Include infrun.h.
6635 * windows-nat.c: Include infrun.h.
6636 * mi/mi-interp.c: Include infrun.h.
6637 * mi/mi-main.c: Include infrun.h.
6638 * python/py-threadevent.c: Include infrun.h.
6640 2014-05-22 Pedro Alves <palves@redhat.com>
6642 * infrun.c (handle_inferior_event): Store the exit code for
6643 --return-child-result here, instead of ...
6644 (print_exited_reason): ... here.
6646 2014-05-21 Pedro Alves <palves@redhat.com>
6649 * gdbthread.h (struct thread_control_state): New field
6651 * infrun.c (follow_fork): Copy the new thread control field to the
6653 (clear_proceed_status_thread): Clear the new thread control field.
6654 (proceed): Set the new thread control field.
6655 * interps.h (command_interp): Declare.
6656 * interps.c (command_interpreter): New global.
6657 (command_interp): New function.
6658 (interp_exec): Set `command_interpreter' while here.
6659 * cli-out.c (cli_uiout_dtor): New function.
6660 (cli_ui_out_impl): Install it.
6661 * mi/mi-interp.c: Include cli-out.h.
6662 (mi_cmd_interpreter_exec): Add comment.
6663 (restore_current_uiout_cleanup): New function.
6664 (ui_out_free_cleanup): New function.
6665 (mi_on_normal_stop): If finishing an execution command started by
6666 a CLI command, or any kind of breakpoint-like event triggered,
6667 print the stop event to the output (CLI) stream.
6668 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6670 2014-05-21 Pedro Alves <palves@redhat.com>
6672 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6673 current source line having changed.
6674 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6675 * infrun.c (normal_stop): Adjust call to
6676 set_current_sal_from_frame.
6677 * source.c (clear_lines_listed_range): New function.
6678 (set_current_source_symtab_and_line, identify_source_line): Clear
6679 the lines listed range.
6680 (line_info): Handle the first "info line" after the current source
6681 line having changed.
6682 * stack.c (print_stack_frame): Remove center handling.
6683 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6686 2014-05-21 Pedro Alves <palves@redhat.com>
6688 * inf-child.c (inf_child_mourn_inferior): New function.
6689 * inf-child.h (inf_child_mourn_inferior): New declaration.
6690 * darwin-nat.c (darwin_mourn_inferior): Use
6691 inf_child_mourn_inferior.
6692 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6693 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6694 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6695 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6696 * windows-nat.c (windows_mourn_inferior): Likewise.
6698 2014-05-21 Doug Evans <xdje42@gmail.com>
6700 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6702 2014-05-21 Doug Evans <xdje42@gmail.com>
6704 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6705 (gdbscm_out_of_range_error): Ditto.
6706 (gdbscm_memory_error): Ditto.
6707 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6708 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6709 (gdbscm_out_of_range_error): Update.
6710 (gdbscm_memory_error): Update.
6711 (gdbscm_scm_to_target_string_unsafe): Delete.
6713 2014-05-21 Pedro Alves <palves@redhat.com>
6715 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6717 (inf_child_open_target): New function.
6718 (inf_child_open): Use inf_child_open_target to push the target
6719 instead of erroring out.
6720 (inf_child_disconnect, inf_child_close)
6721 (inf_child_maybe_unpush_target): New functions.
6722 (inf_child_target): Install inf_child_disconnect and
6723 inf_child_close. Store a pointer to the returned object.
6724 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6726 * target.c (auto_connect_native_target): New global.
6727 (show_default_run_target): New function.
6728 (find_default_run_target): Return NULL if automatically connecting
6729 to the native target is disabled.
6730 (_initialize_target): Install set/show auto-connect-native-target.
6731 * NEWS: Mention "set auto-connect-native-target", and "target
6733 * linux-nat.c (super_close): New global.
6734 (linux_nat_close): Call super_close.
6735 (linux_nat_add_target): Store a pointer to the base class's
6737 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6738 inf_child_maybe_unpush.
6739 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6741 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6742 the inferior. Use inf_child_maybe_unpush_target.
6743 (inf_ttrace_attach): Don't push the target if it is already
6745 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6746 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6747 after mourning the inferior. Use inf_child_maybe_unpush_target.
6748 (darwin_attach_pid): Don't push the target if it is already
6750 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6751 mourning the inferior. Use inf_child_maybe_unpush_target.
6752 (gnu_detach): Use inf_child_maybe_unpush_target.
6753 * go32-nat.c (go32_create_inferior): Don't push the target if it
6755 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6756 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6757 (procfs_open): Rename to ...
6758 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6759 comments. Can target_preopen before changing node. Call
6760 inf_child_open_target to push the target explicitly.
6761 (procfs_attach): Don't push the target if it is already pushed.
6762 (procfs_detach): Use inf_child_maybe_unpush_target.
6763 (procfs_create_inferior): Don't push the target if it is already
6765 (nto_native_ops): New global.
6766 (procfs_open): Reimplement.
6767 (procfs_native_open): New function.
6768 (init_procfs_targets): Install procfs_native_open as to_open of
6769 "target native". Store a pointer to the "native" target in
6771 * procfs.c (procfs_attach): Don't push the target if it is already
6773 (procfs_detach): Use inf_child_maybe_unpush_target.
6774 (procfs_mourn_inferior): Only unpush the target after mourning the
6775 inferior. Use inf_child_maybe_unpush_target.
6776 (procfs_init_inferior): Don't push the target if it is already
6778 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6779 if it is already pushed.
6781 2014-05-21 Pedro Alves <palves@redhat.com>
6783 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6784 and "procfs" targets are now called "native" instead.
6786 2014-05-21 Pedro Alves <palves@redhat.com>
6788 * go32-nat.c (go32_open): Delete.
6789 (go32_target): Don't override the to_open method.
6791 2014-05-21 Pedro Alves <palves@redhat.com>
6793 * nto-procfs.c (procfs_can_run): New function.
6794 (nto_procfs_ops): New global.
6795 (init_procfs_targets): New, based on procfs_target. Install
6796 "target native" in addition to "target procfs".
6797 (_initialize_procfs): Call init_procfs_targets instead of adding
6800 2014-05-21 Pedro Alves <palves@redhat.com>
6802 * windows-nat.c (windows_target): Don't override to_shortname,
6803 to_longname or to_doc.
6805 2014-05-21 Pedro Alves <palves@redhat.com>
6807 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6810 2014-05-21 Pedro Alves <palves@redhat.com>
6812 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6813 to_shortname, to_longname or to_doc.
6815 2014-05-21 Pedro Alves <palves@redhat.com>
6817 * go32-nat.c (go32_target): Don't override to_shortname,
6818 to_longname or to_doc.
6820 2014-05-21 Pedro Alves <palves@redhat.com>
6822 * inf-child.c (inf_child_open): Remove mention of "child".
6823 (inf_child_target): Rename target to "native" instead of "child".
6825 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6827 * Makefile.in (SFILES): Delete "regset.c".
6828 (COMMON_OBS): Delete "regset.o".
6830 * regset.h (regset_alloc): Delete prototype.
6832 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6834 * sparc-linux-tdep.c (sparc32_linux_gregset)
6835 (sparc32_linux_fpregset): New static regset structures.
6836 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6837 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6839 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6840 (sparc64_linux_fpregset): New static regset structures.
6841 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6842 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6843 New static regset structures.
6844 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6845 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6846 New static regset structures.
6847 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6848 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6849 New static regset structures.
6850 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6851 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6852 New static regset structures.
6853 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6855 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6857 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6858 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6859 register maps ("regmaps") from "*regset" to "*regmap". Do this
6860 for all regmap types and variables.
6861 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6862 (sparc32_linux_supply_core_gregset)
6863 (sparc32_linux_collect_core_gregset)
6864 (sparc32_linux_supply_core_fpregset)
6865 (sparc32_linux_collect_core_fpregset): Likewise.
6866 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6867 (sparc_gregmap, sparc_fpregmap): ... these.
6868 (sparc_supply_gregset, sparc_collect_gregset)
6869 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6870 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6871 (_initialize_sparc_nat): Rename regmaps.
6872 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6873 (sparc_gregmap, sparc_fpregmap): ... these.
6874 (sparc_supply_gregset, sparc_collect_gregset)
6875 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6876 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6878 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6879 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6881 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6883 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6884 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6885 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6887 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6888 (sparc32_bsd_fpregset): Rename to...
6889 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6890 (sparc32_bsd_fpregmap): ... these.
6891 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6892 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6893 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6894 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6895 (struct sparc_gregmap, struct sparc_fpregmap)
6896 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6897 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6898 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6899 (sparc32_supply_regset, sparc32_collect_gregset)
6900 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6902 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6903 (sparc64_linux_ptrace_gregmap): ... this.
6904 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6905 (_initialize_sparc64_linux_nat): Rename regmaps.
6906 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6907 (sparc64_linux_core_gregmap): ... this.
6908 (sparc64_linux_supply_core_gregset)
6909 (sparc64_linux_collect_core_gregset)
6910 (sparc64_linux_supply_core_fpregset)
6911 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6912 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6913 (sparc64_sol2_fpregset): Rename to...
6914 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6915 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6916 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6918 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6919 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6920 (sparc64_bsd_fpregset): Rename to...
6921 (struct sparc_gregmap, sparc64_sol2_gregmap)
6922 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6923 (sparc64_bsd_fpregmap): ... these.
6924 (sparc64_supply_gregset, sparc64_collect_gregset)
6925 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6927 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6928 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6929 (sparc64fbsd_gregmap): ... this.
6930 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6931 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6933 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6934 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6935 (sparc64nbsd_collect_fpregset): Likewise.
6936 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6937 (sparc64nbsd_gregmap): ... this.
6938 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6940 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6941 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6942 (sparc64obsd_gregmap): ... this.
6943 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6945 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6946 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6947 (sparc32nbsd_gregmap): ... this.
6948 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6951 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6953 * score-tdep.c (score7_linux_gregset): New static regset
6955 (score7_linux_regset_from_core_section): Remove dynamic regset
6957 (score_gdbarch_init): Drop allocation of tdep structure.
6958 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6960 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6962 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6964 (am33_regset_from_core_section): Remove dynamic regset
6967 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6969 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6970 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6972 (mips_linux_regset_from_core_section): Remove dynamic regset
6974 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6975 'gregset64', 'fpregset', and 'fpregset64'.
6976 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6977 deleted tdep fields.
6979 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6981 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6983 (amd64_regset_from_core_section): Remove dynamic regset
6985 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6987 (amd64obsd_regset_from_core_section): Remove dynamic regset
6989 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6991 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6992 x86-common regset supply function.
6993 * i386-tdep.c (i386_collect_gregset): Make static.
6994 (i386_gregset): New global regset structure.
6995 (i386_fpregset, i386_xstateregset): New static regset structures.
6996 (i386_regset_from_core_section): Remove dynamic regset
6998 (i386_gdbarch_init): Remove initialization of tdep fields
6999 'gregset', 'fpregset', and 'xstateregset'.
7000 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7001 'fpregset', and 'xstateregset'.
7002 (i386_collect_gregset): Remove prototype.
7003 (i386_gregset): New declaration.
7004 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7006 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7009 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7011 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7012 (arm_linux_vfpregset): New static regset structures.
7013 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7015 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7016 and 'vfpregset' fields.
7018 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7020 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7021 (aarch64_linux_fpregset): New static regset structures.
7022 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7023 of regset structures.
7024 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7027 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7029 * regset.h (struct regset): Remove gdbarch field.
7030 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7031 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7032 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7034 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7035 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7036 (ppc32_linux_vsxregset): Likewise.
7037 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7038 via the regcache instead of the regset.
7039 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7040 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7041 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7042 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7047 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7048 Constify structures.
7049 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7050 (alphanbsd_aout_gregset): Likewise.
7051 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7052 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7054 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7055 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7057 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7058 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7059 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7060 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7061 * m88k-tdep.c (m88k_gregset): Likewise.
7062 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7063 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7064 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7065 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7066 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7067 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7068 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7069 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7070 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7072 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7073 * sh-tdep.h (sh_corefile_gregset): Likewise.
7074 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7075 * vax-tdep.c (vax_gregset): Likewise.
7077 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7079 Fix TLS access for -static -pthread.
7080 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7081 (try_thread_db_load_1): Initialize it.
7082 (thread_db_get_thread_local_address): Call it if LM is zero.
7083 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7084 * target.h (struct target_ops) (to_get_thread_local_address): Add
7085 load_module_addr comment.
7087 2014-05-21 Pedro Alves <palves@redhat.com>
7089 * dcache.c (dcache_read_memory_partial): If reading the cache line
7090 fails, fallback to reading just the memory the caller wanted.
7092 2014-05-20 Doug Evans <dje@google.com>
7094 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7095 instead of get_current_arch.
7097 2014-05-20 Pedro Alves <palves@redhat.com>
7099 * NEWS: Mention that compare-sections now works with all targets.
7101 * remote.c (PACKET_qCRC): New enum value.
7102 (remote_verify_memory): Don't send qCRC if the target has no
7103 execution. Use packet_support/packet_ok. If the target doesn't
7104 support the qCRC packet, fallback to a deep memory copy.
7105 (compare_sections_command): Say "target image" instead of "remote
7107 (_initialize_remote): Add PACKET_qCRC to the list of config
7108 packets that have no associated command. Extend comment.
7109 * target.c (simple_verify_memory, default_verify_memory): New
7111 * target.h (struct target_ops) <to_verify_memory>: Default to
7112 default_verify_memory.
7113 (simple_verify_memory): New declaration.
7114 * target-delegates.c: Regenerate.
7116 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7118 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7120 2014-05-20 Hui Zhu <hui@codesourcery.com>
7121 Yao Qi <yao@codesourcery.com>
7124 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7125 and change address of sp and pc.
7127 2014-05-19 Tom Tromey <tromey@redhat.com>
7129 * gdbtypes.c (rank_function): Use XNEWVEC.
7130 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7132 2014-05-19 Doug Evans <dje@google.com>
7134 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7135 build_type_unit_groups and moved closer to only caller. Remove
7136 arguments. All references updated. Remove outdated .gdb_index
7138 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7139 build_type_psymtabs_1.
7141 2014-05-19 Doug Evans <dje@google.com>
7143 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7144 n_type_unit_groups, all_type_unit_groups. All uses removed.
7145 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7146 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7147 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7148 (add_type_unit_group_to_table): Delete.
7150 2014-05-19 Doug Evans <dje@google.com>
7152 * eval.c (evaluate_subexp_standard): Add some comments.
7154 2014-05-17 Doug Evans <xdje42@gmail.com>
7156 * progspace.c (remove_program_space): Delete, unused.
7157 * progspace.h (remove_program_space): Ditto.
7159 2014-05-17 Doug Evans <xdje42@gmail.com>
7161 * inferior.c (prune_inferiors): Fix comment.
7162 (remove_inferior_command): Call prune_program_spaces.
7164 2014-05-16 Doug Evans <dje@google.com>
7166 New command line option -D.
7168 * main.c (set_gdb_data_directory): New function.
7169 (captured_main): Recognize -D. Flag error for --data-directory "".
7170 Call set_gdb_data_directory.
7171 (print_gdb_help): Print --data-directory, -D.
7172 * main.h (set_gdb_data_directory): Declare.
7173 * top.c (staged_gdb_datadir): New static global.
7174 (set_gdb_datadir): Call set_gdb_data_directory
7175 (show_gdb_datadir): New function.
7176 (init_main): Update init of data-directory parameter.
7178 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7180 Import the "dirfd" gnulib module.
7181 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7182 * gnulib/aclocal.m4: Update.
7183 * gnulib/config.in: Update.
7184 * gnulib/configure: Update.
7185 * gnulib/import/Makefile.am: Update.
7186 * gnulib/import/Makefile.in: Update.
7187 * gnulib/import/dirfd.c: New.
7188 * gnulib/import/m4/dirfd.m4: New.
7189 * gnulib/import/m4/gnulib-cache.m4: Update.
7190 * gnulib/import/m4/gnulib-comp.m4: Update.
7192 2014-05-16 Pierre Muller <muller@sourceware.org>
7193 Yao Qi <yao@codesourcery.com>
7195 * valprint.c (print_wchar): Move the code on checking whether
7196 W is a printable wide char to the default branch of switch
7197 statement below. Call wchar_printable instead of gdb_iswprint.
7199 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7201 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7202 ldr.w and ldrd instructions.
7204 2014-05-15 Doug Evans <dje@google.com>
7206 * dwarf2read.c (read_structure_type): Delete outdated comments.
7208 2014-05-14 Tom Tromey <tromey@redhat.com>
7210 * macrocmd.c (print_macro_definition): Reindent.
7212 2014-05-13 Doug Evans <xdje42@gmail.com>
7214 * python/py-cmd.c (cmdpy_completer): Add comment.
7215 (completers): Make const.
7217 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7219 * infrun.c (resume): Remove should_resume (unused). Move up
7220 declaration of resume_ptid.
7222 2014-05-13 Tom Tromey <tromey@redhat.com>
7224 * language.h (unop_type_check): Remove.
7225 (binop_type_check): Don't declare.
7227 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7229 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7230 call to regcache_raw_collect.
7232 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7234 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7235 mi_console->quote as the quoting character.
7237 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7239 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7241 2014-04-29 Tom Tromey <tromey@redhat.com>
7243 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7244 "show debug varobj".
7246 2014-05-07 Kyle McMartin <kyle@redhat.com>
7248 Pushed by Joel Brobecker <brobecker@adacore.com>.
7249 * aarch64-tdep.c (aarch64_software_single_step): New function.
7250 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7251 with aarch64_software_single_step.
7253 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7257 2014-05-05 Keith Seitz <keiths@redhat.com>
7259 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7260 variable or history value is successfully parsed.
7262 2014-05-05 Yao Qi <yao@codesourcery.com>
7263 Pedro Alves <palves@redhat.com>
7265 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7266 address of blocks that intersects the requested range. Trim
7267 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7269 * ctf.c (ctf_xfer_partial): Likewise.
7271 2014-05-05 Yao Qi <yao@codesourcery.com>
7273 * printcmd.c (display_command): Remove the check to
7274 target_has_execution.
7276 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7278 * ppcobsd-nat.c: Include "obsd-nat.h".
7279 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7281 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7283 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7285 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7286 and 16-bit signed and unsigned arguments. Update comment.
7287 (stap_parse_probe_arguments): Extend code to handle such
7288 arguments. Use warning instead of complaint to notify about
7289 unrecognized bitness.
7291 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7293 PR breakpoints/16889
7294 * stap-probe.c (stap_parse_probe_arguments): Simplify
7295 check for non-prefixed probes (i.e., probes whose
7296 arguments do not start with "N@"). Always set the
7297 argument type to a sane value.
7299 2014-05-01 David Taylor <dtaylor@emc.com>
7301 * remote.c (compare_sections_command): Add -r option to compare
7302 all loadable read-only sections.
7304 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7306 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7307 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7309 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7310 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7311 Remove unused CORE_ADDR argument. Update all callers.
7313 2014-04-29 Pedro Alves <palves@redhat.com>
7315 * remote.c (struct packet_config) <detect>: Extend comment.
7316 (add_packet_config_cmd): Don't set the config's detect or support
7318 (init_all_packet_configs): Also initialize the config's 'detect'
7320 (reset_all_packet_configs_support): New function.
7321 (remote_open_1): Call reset_all_packet_configs_support instead of
7322 init_all_packet_configs.
7323 (_initialize_remote): Initialize all packet configs. Assert that
7324 all packets have an associated command, except a few known
7327 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7329 * dwarf2read.c (read_subrange_type): Handle dynamic
7330 DW_AT_lower_bound attributes.
7332 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7334 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7335 dynamic bounds before computing its upper bound.
7336 (ada_discrete_type_low_bound): Same as above with the lower bound.
7338 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7340 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7341 range types. Adjust the array handling implementation to
7342 take advantage of this change.
7343 (resolve_dynamic_range): New function, mostly extracted from
7344 resolve_dynamic_bounds.
7345 (resolve_dynamic_array): New function, mostly extracted from
7346 resolve_dynamic_bounds.
7347 (resolve_dynamic_bounds): Delete.
7348 (resolve_dynamic_type): Reimplement. Add handling of
7349 TYPE_CODE_RANGE types.
7351 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7353 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7354 handling of parallel ___XA types.
7356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7358 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7359 unnecessary second call to static_unwrap_type.
7361 2014-04-27 Hui Zhu <hui@codesourcery.com>
7363 * stack.c (print_frame_info): Call do_gdb_disassembly with
7364 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7366 2014-04-26 Doug Evans <xdje42@gmail.com>
7368 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7370 2014-04-25 Pedro Alves <palves@redhat.com>
7373 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7374 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7375 and newline from built string.
7376 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7377 (linux_ptrace_attach_fail_reason): ... this.
7378 * linux-nat.c (linux_nat_attach): Adjust to use
7379 linux_ptrace_attach_fail_reason.
7381 2014-04-25 Pedro Alves <palves@redhat.com>
7383 * remote.c (struct remote_state): Remove multi_process_aware,
7384 non_stop_aware, cond_tracepoints, cond_breakpoints,
7385 breakpoint_commands, fast_tracepoints, static_tracepoints,
7386 install_in_trace, disconnected_tracing,
7387 enable_disable_tracepoints, string_tracing, and
7388 augmented_libraries_svr4_read fields.
7389 (remote_multi_process_p): Move further below in the file.
7390 (struct packet_config): Add comments.
7391 (update_packet_config): Delete function.
7392 (show_packet_config_cmd): Use packet_config_support.
7393 (add_packet_config_cmd): Use NULL as set callback.
7394 (packet_ok): "set remote foo-packet"-style commands no longer
7395 change config->supported -- adjust.
7396 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7397 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7398 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7399 (PACKET_QNonStop, PACKET_multiprocess_feature)
7400 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7401 (PACKET_DisconnectedTracing_feature)
7402 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7403 (set_remote_protocol_packet_cmd): Delete function.
7404 (packet_config_support, packet_support): New functions.
7405 (set_remote_protocol_Z_packet_cmd): Don't call
7406 update_packet_config.
7407 (remote_query_attached, remote_pass_signals)
7408 (remote_program_signals, remote_threads_info)
7409 (remote_threads_extra_info, remote_start_remote): Use
7411 (remote_start_remote): Use packet_config_support and
7413 (init_all_packet_configs): Set all packets to unknown support,
7414 instead of calling update_packet_config.
7415 (remote_check_symbols): Use packet_support.
7416 (remote_supported_packet): Unconditionally set the packet config's
7418 (remote_multi_process_feature, remote_non_stop_feature)
7419 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7420 (remote_breakpoint_commands_feature)
7421 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7422 (remote_install_in_trace_feature)
7423 (remote_disconnected_tracing_feature)
7424 (remote_enable_disable_tracepoint_feature)
7425 (remote_string_tracing_feature)
7426 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7427 (remote_protocol_features): Adjust to use remote_supported_packet
7428 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7429 "ConditionalTracepoints", "ConditionalBreakpoints",
7430 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7431 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7432 "EnableDisableTracepoints", and "tracenz".
7433 (remote_query_supported): Use packet_support.
7434 (remote_open_1): Adjust.
7435 (extended_remote_attach_1): Use packet_support. Switch on the
7436 result of packet_ok instead of checking whether the packet ended
7438 (remote_vcont_resume): Use packet_support.
7439 (remote_resume, remote_stop_ns, fetch_register_using_p)
7440 (remote_prepare_to_store, store_register_using_P)
7441 (check_binary_download, remote_write_bytes): Use packet_support.
7442 (remote_vkill): Use packet_support. Switch on the result of
7443 packet_ok instead of checking whether the packet ended up
7445 (extended_remote_supports_disable_randomization): Use
7447 (extended_remote_run): Switch on the result of packet_ok instead
7448 of checking whether the packet ended up disabled.
7449 (remote_insert_breakpoint, remote_remove_breakpoint)
7450 (remote_insert_watchpoint, remote_remove_watchpoint)
7451 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7453 (remote_search_memory): Use packet_config_support.
7454 (remote_get_thread_local_address, remote_get_tib_address)
7455 (remote_hostio_send_command, remote_can_execute_reverse): Use
7457 (remote_supports_cond_tracepoints)
7458 (remote_supports_cond_breakpoints)
7459 (remote_supports_fast_tracepoints)
7460 (remote_supports_static_tracepoints)
7461 (remote_supports_install_in_trace)
7462 (remote_supports_enable_disable_tracepoint)
7463 (remote_supports_string_tracing)
7464 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7465 the packet config says the feature is enabled or disabled.
7466 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7467 (remote_get_trace_status): Use packet_support.
7468 (remote_set_disconnected_tracing): Adjust to check whether the
7469 feature is enabled with packet_support.
7470 (remote_set_trace_buffer_size, remote_use_agent)
7471 (remote_can_use_agent, remote_supports_btrace): Use
7473 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7474 Use packet_config_support.
7475 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7476 the packet config says the feature is enabled or disabled.
7477 (set_range_stepping): Use packet_support.
7479 2014-04-25 Tom Tromey <tromey@redhat.com>
7481 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7484 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7486 * NEWS: Mention support for C99 variable length arrays.
7488 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7490 * ada-lang.c (standard_exc): Expand introductory comment.
7492 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7493 Walfred Tedeschi <walfred.tedeschi@intel.com>
7495 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7497 (amd64_linux_read_description): Add code to handle AVX512 xstate
7498 mask and return respective tdesc.
7499 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7500 and features/i386/x32-avx512-linux.c.
7501 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7502 (amd64_linux_core_read_description): Add code to handle AVX512
7503 xstate mask and return respective tdesc.
7504 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7505 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7507 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7508 (tdesc_amd64_avx512_linux): New prototype.
7509 (tdesc_x32_avx512_linux): Likewise.
7510 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7511 features/i386/x32-avx512.c.
7512 (amd64_ymm_avx512_names): New register names for pseudo
7514 (amd64_ymmh_avx512_names): New register names for raw registers
7516 (amd64_k_names): New register names for K registers.
7517 (amd64_zmmh_names): New register names for ZMM raw registers.
7518 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7519 (amd64_xmm_avx512_names): New register names for XMM16-31
7521 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7523 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7524 if feature is present.
7525 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7526 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7527 (AMD64_NUM_REGS): Adjust to new number of registers.
7528 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7529 registers supplied via XSTATE by AVX512 registers.
7530 (i386_linux_read_description): Add case for AVX512.
7531 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7532 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7533 (i386_linux_core_read_description): Add case for AVX512.
7534 (i386_linux_init_abi): Install supported register note section
7536 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7538 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7539 registers to be number of zmm7h + 1.
7540 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7541 * i386-tdep.c: Include features/i386/i386-avx512.c.
7542 (i386_zmm_names): Add ZMM pseudo register names array.
7543 (i386_zmmh_names): Add ZMM raw register names array.
7544 (i386_k_names): Add K raw register names array.
7545 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7546 registers. AVX512 has 16 more ZMM registers than there are YMM
7548 (i386_zmmh_regnum_p): Add function to look up register number of
7550 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7551 (i386_k_regnum_p): Likewise for K raw registers.
7552 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7553 registers added by AVX512.
7554 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7555 registers added by AVX512.
7556 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7558 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7559 (i386_pseudo_register_name): Add ZMM pseudo registers.
7560 (i386_zmm_type): Construct and return vector registers type for ZMM
7562 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7563 ZMM0-31 pseudo registers and K registers.
7564 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7565 and YMM16-31 registers from register cache.
7566 (i386_pseudo_register_write): Add code to write K, ZMM and
7568 (i386_register_reggroup_p): Add code to include/exclude AVX512
7569 registers in/from respective register groups.
7570 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7571 registers if feature is present in xcr0.
7572 (i386_gdbarch_init): Add code to initialize AVX512 feature
7573 variables in tdep structure, wire in pseudo registers and call
7574 initialize_tdesc_i386_avx512.
7575 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7577 (i386_regnum): Add AVX512 registers.
7578 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7579 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7580 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7581 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7583 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7584 (i386_ymm_avx512_regnum_p): Likewise.
7585 (i386_k_regnum_p): Likewise.
7586 (i386_zmm_regnum_p): Likewise.
7587 (i386_zmmh_regnum_p): Likewise.
7588 * i387-tdep.c : Update year in copyright notice.
7589 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7591 (XSAVE_YMM_AVX512_ADDR): New macro.
7592 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7594 (XSAVE_XMM_AVX512_ADDR): New macro.
7595 (xsave_avx512_k_offset): New table for K register offsets in
7597 (XSAVE_AVX512_K_ADDR): New macro.
7598 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7600 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7601 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7603 (i387_collect_xsave): Add code to collect AVX512 registers from
7605 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7606 of XMM16-31 registers.
7607 (I387_NUM_K_REGS): New define for number of K registers.
7608 (I387_K0_REGNUM): New define for K0 register number.
7609 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7610 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7611 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7613 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7614 (I387_XMM16_REGNUM): New define for XMM16 register number.
7615 (I387_YMM0_REGNUM): New define for YMM0 register number.
7616 (I387_KEND_REGNUM): New define for last K register number.
7617 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7618 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7620 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7622 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7624 * features/Makefile: Add AVX512 related files.
7625 * features/i386/32bit-avx512.xml: New file.
7626 * features/i386/64bit-avx512.xml: Likewise.
7627 * features/i386/amd64-avx512-linux.c: Likewise.
7628 * features/i386/amd64-avx512-linux.xml: Likewise.
7629 * features/i386/amd64-avx512.c: Likewise.
7630 * features/i386/amd64-avx512.xml: Likewise.
7631 * features/i386/i386-avx512-linux.c: Likewise.
7632 * features/i386/i386-avx512-linux.xml: Likewise.
7633 * features/i386/i386-avx512.c: Likewise.
7634 * features/i386/i386-avx512.xml: Likewise.
7635 * features/i386/x32-avx512-linux.c: Likewise.
7636 * features/i386/x32-avx512-linux.xml: Likewise.
7637 * features/i386/x32-avx512.c: Likewise.
7638 * features/i386/x32-avx512.xml: Likewise.
7639 * regformats/i386/amd64-avx512-linux.dat: New file.
7640 * regformats/i386/amd64-avx512.dat: Likewise.
7641 * regformats/i386/i386-avx512-linux.dat: Likewise.
7642 * regformats/i386/i386-avx512.dat: Likewise.
7643 * regformats/i386/x32-avx512-linux.dat: Likewise.
7644 * regformats/i386/x32-avx512.dat: Likewise.
7645 * NEWS: Add note about new support for AVX512.
7648 2014-04-23 Pedro Alves <palves@redhat.com>
7650 * breakpoint.c (insert_bp_location): Tolerate errors if the
7651 breakpoint is set in a user-loaded objfile.
7652 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7653 location is marked shlib_disabled. If the breakpoint is set in a
7654 user-loaded objfile is a GDB-side memory breakpoint, validate it
7655 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7656 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7658 * mem-break.c (memory_validate_breakpoint): New function.
7659 * objfiles.c (userloaded_objfile_contains_address_p): New
7661 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7662 * target.h (memory_validate_breakpoint): New declaration.
7664 2014-04-23 Pedro Alves <palves@redhat.com>
7666 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7667 the breakpoint is set in a shared library, only suppress
7668 errors for software breakpoints, not hardware breakpoints.
7670 2014-04-22 Pedro Alves <palves@redhat.com>
7672 * infrun.c (schedlock_applies): New function, factored out from
7673 find_thread_needs_step_over.
7674 (find_thread_needs_step_over): Use it.
7675 (switch_back_to_stepped_thread): Always clear trap_expected if the
7676 step over is finished. Return early if scheduler locking applies.
7677 Look for the stepping thread and a potential step-over thread with
7679 (currently_stepping_or_nexting_callback): Delete.
7681 2014-04-22 Nick Clifton <nickc@redhat.com>
7683 * NEWS: Mention that ARM sim now supports tracing.
7685 2014-04-22 Yao Qi <yao@codesourcery.com>
7687 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7689 * tracefile.c (tracefile_fetch_registers): ... it. New
7691 * tracefile.h (tracefile_fetch_registers): Declare.
7692 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7693 tracefile_fetch_registers.
7695 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7698 * windows-nat.c (thread_rec): Don't display a warning when
7699 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7700 fails for any reason, set th->suspended to -1, so that we don't
7701 try to resume such a thread. Also, don't return NULL in these
7702 cases, to avoid completely ruin the session due to "PC register is
7703 not available" error.
7704 (do_windows_fetch_inferior_registers): Check errors in
7705 GetThreadContext call.
7706 (windows_continue): Accept an additional argument KILLED; if not
7707 zero, ignore errors in the SetThreadContext call, since the
7708 inferior was killed and is shutting down.
7709 (windows_resume, get_windows_debug_event)
7710 (windows_create_inferior, windows_mourn_inferior)
7711 (windows_kill_inferior): All callers of windows_continue changed
7712 to adjust to its new calling sequence.
7714 2014-04-19 Yao Qi <yao@codesourcery.com>
7716 * ctf.c (ctf_open): Call post_create_inferior.
7718 2014-04-19 Yao Qi <yao@codesourcery.com>
7720 * ctf.c (handle_id): New static variable.
7721 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7722 value. Get the declaration of event "register" and get length
7723 of field "contents".
7725 2014-04-19 Yao Qi <yao@codesourcery.com>
7727 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7729 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7731 * valops.c (oload_method_static): Remove unnecessary argument
7732 METHOD. Update all callers.
7734 2014-04-18 Pedro alves <palves@redhat.com>
7735 Tom Tromey <tromey@redhat.com>
7738 * frame.c (get_prev_frame_1): Rename to ...
7739 (get_prev_frame_always): ... this, and make extern. Adjust.
7740 (skip_artificial_frames): Use get_prev_frame_always.
7741 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7742 (get_frame_unwind_stop_reason): Adjust to rename.
7743 * frame.h (get_prev_frame_always): Declare.
7744 * inline-frame.c: Include frame.h.
7745 (inline_frame_this_id): Use get_prev_frame_always.
7747 2014-04-18 Tristan Gingold <gingold@adacore.com>
7749 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7750 code by using bfd_mach_o_get_base_address.
7752 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7754 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7755 (spu_ax_pseudo_register_collect): New function.
7756 (spu_ax_pseudo_register_push_stack): Likewise.
7757 (spu_dwarf_reg_to_regnum): Likewise.
7758 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7760 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7762 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7763 Replace FRAME argument with FRAME_ID.
7764 * gdbarch.c, gdbarch.h: Regenerate.
7765 * findvar.c (default_value_from_register): Add GDBARCH argument;
7766 replace FRAME by FRAME_ID. No longer call get_frame_id.
7767 (value_from_register): Update call to gdbarch_value_from_register.
7768 * value.h (default_value_from_register): Update prototype.
7769 * s390-linux-tdep.c (s390_value_from_register): Update interface
7770 and call to default_value_from_register.
7771 * spu-tdep.c (spu_value_from_register): Likewise.
7773 * findvar.c (address_from_register): Remove TYPE argument.
7774 Do not call value_from_register; use gdbarch_value_from_register
7775 with null_frame_id instead.
7776 * value.h (address_from_register): Update prototype.
7777 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7778 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7779 address_from_register interface change.
7781 2014-04-17 Yao Qi <yao@codesourcery.com>
7783 * gdbtypes.h: Update comments to link to types and macros'
7786 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7788 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7790 2014-04-16 Keith Seitz <keiths@redhat.com>
7793 * dwarf2read.c (skip_one_die): Check that all relative-offset
7794 sibling DIEs fall within range of the current reader's buffer.
7795 (read_partial_die): Likewise.
7797 2014-04-16 Keith Seitz <keiths@redhat.com>
7800 * cp-namespace.c (lookup_symbol_file): If the type name of
7801 `this' is NULL, return immediately.
7803 2014-04-14 Keith Seitz <keiths@redhat.com>
7806 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7807 from symbol_matches_domain in symtab.c. All local callers
7808 of symbol_matches_domain updated.
7809 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7810 search STRUCT_DOMAIN.
7811 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7812 independently. standard_lookup will do that automatically.
7813 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7814 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7815 (cp_lookup_symbol_in_namespace): Likewise.
7816 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7817 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7818 may return a STRUCT_DOMAIN match.
7819 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7820 * cp-support.c: Include language.h.
7821 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7823 * psymtab.c (match_partial_symbol): Compare the requested
7824 domain with the symbol's domain directly.
7825 (lookup_partial_symbol): Likewise.
7826 * symtab.c (lookup_symbol_in_language): Explain when/why
7827 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7828 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7829 appropriate languages.
7830 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7831 and moved to ada-lang.c
7832 (lookup_block_symbol): Explain that this function only returns
7833 symbol matching the requested DOMAIN.
7834 Compare the requested domain with the symbol's domain directly.
7835 (iterate_over_symbols): Compare the requested domain with the
7836 symbol's domain directly.
7837 * symtab.h (symbol_matches_domain): Remove.
7839 2014-04-14 Tom Tromey <tromey@redhat.com>
7842 * c-exp.y (type_aggregate_p): New function.
7843 (qualified_name, classify_inner_name): Use it.
7844 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7845 and TYPE_TARGET_TYPE of an enum type.
7846 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7848 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7849 handle TYPE_DECLARED_CLASS.
7850 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7852 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7853 * valops.c (enum_constant_from_type): New function.
7854 (value_aggregate_elt): Use it.
7855 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7858 2014-04-14 Tom Tromey <tromey@redhat.com>
7860 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7861 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7863 * value.h (value_aggregate_elt): Update.
7865 2014-04-14 Tom Tromey <tromey@redhat.com>
7867 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7869 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7871 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7872 (evaluate_subexp_standard): Pass noside argument.
7873 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7874 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7875 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7876 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7877 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7879 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7881 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7882 points to a constant blob.
7884 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7886 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7887 property and store it as the high bound and flag the range accordingly.
7888 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7889 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7890 * gdbtypes.h (enum range_flags): New enum.
7891 (struct range_bounds): Add flags member.
7893 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7895 * c-typeprint.c (c_type_print_varspec_suffix): Added
7896 check for not yet resolved high bound. If unresolved, print
7897 "variable length" string to the console instead of random
7900 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7902 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7904 (ada_template_to_fixed_record_type_1): Likewise.
7905 (ada_to_fixed_type_1): Likewise.
7906 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7907 (cp_print_value): Likewise.
7908 * d-valprint.c (dynamic_array_type): Likewise.
7909 * findvar.c (address_of_variable): Likewise.
7910 * jv-valprint.c (java_value_print): Likewise.
7911 * valops.c (value_ind): Likewise.
7912 * value.c (coerce_ref): Likewise.
7914 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7916 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7917 value and retrieve the dynamic type size.
7919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7921 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7922 passed to sizeof is dynamic evaluate the argument to compute the length.
7924 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7925 Joel Brobecker <brobecker@adacore.com>
7927 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7928 (dwarf2_evaluate_property): New function.
7929 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7930 * dwarf2read.c (attr_to_dynamic_prop): New function.
7931 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7933 * gdbtypes.c: Include dwarf2loc.h.
7934 (is_dynamic_type): New function.
7935 (resolve_dynamic_type): New function.
7936 (resolve_dynamic_bounds): New function.
7937 (get_type_length): New function.
7938 (check_typedef): Use get_type_length to compute type length.
7939 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7940 (TYPE_LOW_BOUND_KIND): New macro.
7941 (is_dynamic_type): New function prototype.
7942 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7943 to resolve dynamic properties of the type. Update comment.
7944 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7946 2014-04-14 Richard Henderson <rth@redhat.com>
7948 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7950 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7951 Doug Evans <xdje42@gmail.com>
7953 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7954 dereference TYPE_CODE_REF values.
7956 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7958 Revert the following changes due to regressions:
7960 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7961 (dwarf2_evaluate_property): New function.
7962 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7963 * dwarf2read.c (attr_to_dynamic_prop): New function.
7964 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7966 * gdbtypes.c: Include dwarf2loc.h.
7967 (is_dynamic_type): New function.
7968 (resolve_dynamic_type): New function.
7969 (resolve_dynamic_bounds): New function.
7970 (get_type_length): New function.
7971 (check_typedef): Use get_type_length to compute type length.
7972 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7973 (TYPE_LOW_BOUND_KIND): New macro.
7974 (is_dynamic_type): New function prototype.
7975 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7976 to resolve dynamic properties of the type. Update comment.
7977 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7979 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7980 passed to sizeof is dynamic evaluate the argument to compute the length.
7982 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7983 value and retrieve the dynamic type size.
7985 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7986 (ada_template_to_fixed_record_type_1): Likewise.
7987 (ada_to_fixed_type_1): Likewise.
7988 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7989 (cp_print_value): Likewise.
7990 * d-valprint.c (dynamic_array_type): Likewise.
7991 * eval.c (evaluate_subexp_with_coercion): Likewise.
7992 * findvar.c (address_of_variable): Likewise.
7993 * jv-valprint.c (java_value_print): Likewise.
7994 * valops.c (value_ind): Likewise.
7995 * value.c (coerce_ref): Likewise.
7997 * c-typeprint.c (c_type_print_varspec_suffix): Added
7998 check for not yet resolved high bound. If unresolved, print
7999 "variable length" string to the console instead of random
8002 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8003 property and store it as the high bound and flag the range accordingly.
8004 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8005 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8006 * gdbtypes.h (enum range_flags): New enum.
8007 (struct range_bounds): Add flags member.
8009 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8010 points to a constant blob.
8012 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8013 (evaluate_subexp_standard): Pass noside argument.
8014 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8015 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8016 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8017 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8018 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8020 2014-04-11 Keith Seitz <keiths@redhat.com>
8023 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8024 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8027 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8029 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8030 (evaluate_subexp_standard): Pass noside argument.
8031 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8032 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8033 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8034 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8035 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8037 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8039 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8040 points to a constant blob.
8042 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
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 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8053 * c-typeprint.c (c_type_print_varspec_suffix): Added
8054 check for not yet resolved high bound. If unresolved, print
8055 "variable length" string to the console instead of random
8058 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8060 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8061 (ada_template_to_fixed_record_type_1): Likewise.
8062 (ada_to_fixed_type_1): Likewise.
8063 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8064 (cp_print_value): Likewise.
8065 * d-valprint.c (dynamic_array_type): Likewise.
8066 * eval.c (evaluate_subexp_with_coercion): Likewise.
8067 * findvar.c (address_of_variable): Likewise.
8068 * jv-valprint.c (java_value_print): Likewise.
8069 * valops.c (value_ind): Likewise.
8070 * value.c (coerce_ref): Likewise.
8072 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8074 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8075 value and retrieve the dynamic type size.
8077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8079 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8080 passed to sizeof is dynamic evaluate the argument to compute the length.
8082 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8084 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8085 (dwarf2_evaluate_property): New function.
8086 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8087 * dwarf2read.c (attr_to_dynamic_prop): New function.
8088 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8090 * gdbtypes.c: Include dwarf2loc.h.
8091 (is_dynamic_type): New function.
8092 (resolve_dynamic_type): New function.
8093 (resolve_dynamic_bounds): New function.
8094 (get_type_length): New function.
8095 (check_typedef): Use get_type_length to compute type length.
8096 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8097 (TYPE_LOW_BOUND_KIND): New macro.
8098 (is_dynamic_type): New function prototype.
8099 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8100 to resolve dynamic properties of the type. Update comment.
8101 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8105 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8106 declaring high/low bounds and change uses accordingly. Call
8107 create_range_type instead of create_static_range_type.
8108 * gdbtypes.c (create_range_type): New function.
8109 (create_range_type): Convert bounds into struct bound_prop and pass
8110 them to create_range_type.
8111 * gdbtypes.h (struct bound_prop): New struct.
8112 (create_range_type): New function prototype.
8113 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8114 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8115 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8117 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8121 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8122 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8123 * ada-lang.c: All uses of create_range_type updated.
8124 * coffread.c: All uses of create_range_type updated.
8125 * dwarf2read.c: All uses of create_range_type updated.
8126 * f-exp.y: All uses of create_range_type updated.
8127 * m2-valprint.c: All uses of create_range_type updated.
8128 * mdebugread.c: All uses of create_range_type updated.
8129 * stabsread.c: All uses of create_range_type updated.
8130 * valops.c: All uses of create_range_type updated.
8131 * valprint.c: All uses of create_range_type updated.
8133 2014-04-10 Pedro Alves <palves@redhat.com>
8135 * breakpoint.c (single_step_breakpoints)
8136 (single_step_gdbarch): Move up in the file.
8137 (one_breakpoint_xfer_memory): New function, factored out from ...
8138 (breakpoint_xfer_memory): ... here. Also process single-step
8141 2014-04-09 Tristan Gingold <gingold@adacore.com>
8143 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8145 (darwin_decode_exception_message): Free port only after use.
8147 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8149 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8150 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8151 when setting the size of call_length.
8153 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8155 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8156 dereference TYPE_CODE_REF values.
8158 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8160 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8161 end of warning message.
8163 2014-04-03 Doug Evans <dje@google.com>
8165 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8166 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8168 2014-04-02 Alan Modra <amodra@gmail.com>
8170 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8171 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8172 (struct symbol_file_add_from_memory_args): Add size field.
8173 (find_vdso_size): New function.
8174 (add_vsyscall_page): Attempt to find vdso size.
8176 2014-04-01 Doug Evans <dje@google.com>
8178 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8180 2014-04-01 Tristan Gingold <gingold@adacore.com>
8182 * darwin-nat.c (darwin_encode_reply): Add prototype.
8183 (darwin_decode_exception_message): Reply to unknown inferiors.
8184 (darwin_decode_message): Handle message by id. Ignore message
8185 to unknown inferior.
8186 (darwin_wait): Discard unknown messages, add debug trace.
8188 2014-03-31 Doug Evans <dje@google.com>
8190 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8193 2014-03-31 Doug Evans <dje@google.com>
8195 New option "set print symbol-loading".
8197 * solib.c (solib_read_symbols): Only print symbol loading messages
8199 (solib_add): If symbol loading is in "brief" mode, notify user
8200 symbols are being loaded.
8201 (reload_shared_libraries_1): Ditto.
8202 * symfile.c (print_symbol_loading_off): New static global.
8203 (print_symbol_loading_brief): New static global.
8204 (print_symbol_loading_full): New static global.
8205 (print_symbol_loading_enums): New static global.
8206 (print_symbol_loading): New static global.
8207 (print_symbol_loading_p): New function.
8208 (symbol_file_add_with_addrs): Only print symbol loading messages
8210 (_initialize_symfile): Register "print symbol-loading" set/show
8212 * symfile.h (print_symbol_loading_p): Declare.
8214 2014-03-30 Doug Evans <xdje42@gmail.com>
8216 * infrun.c (set_last_target_status): New function.
8217 (handle_inferior_event): Call it.
8219 2014-03-30 Doug Evans <xdje42@gmail.com>
8221 * inferior.h (enum stop_kind): Improve comment.
8223 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8225 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8226 a reference, strip the reference layer before calling
8227 the lang_ops value_has_mutated callback.
8229 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8231 Remove some globals from our parser.
8232 * language.c (unk_lang_parser): Add "struct parser_state"
8234 * language.h (struct language_defn) <la_parser>: Likewise.
8235 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8236 (initialize_expout): Add "struct parser_state" argument.
8237 Rewrite function to use the parser state.
8238 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8239 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8240 write_exp_elt_longcst, write_exp_elt_dblcst,
8241 write_exp_elt_decfloatcst, write_exp_elt_type,
8242 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8243 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8244 write_dollar_variable): Likewise.
8245 (parse_exp_in_context_1): Use parser state.
8246 (insert_type_address_space): Add "struct parser_state" argument.
8248 (increase_expout_size): New function.
8249 * parser-defs.h: Forward declare "struct language_defn" and
8250 "struct parser_state".
8251 (expout, expout_size, expout_ptr): Remove extern declarations.
8252 (parse_gdbarch, parse_language): Rewrite macro declarations to
8253 accept the parser state.
8254 (struct parser_state): New struct.
8255 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8256 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8257 write_exp_elt_decfloatcst, write_exp_elt_type,
8258 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8259 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8260 write_exp_msymbol, write_dollar_variable,
8261 mark_struct_expression, insert_type_address_space): Add "struct
8262 parser_state" argument.
8263 (increase_expout_size): New function.
8264 * utils.c (do_clear_parser_state): New function.
8265 (make_cleanup_clear_parser_state): Likewise.
8266 * utils.h (make_cleanup_clear_parser_state): New function
8268 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8269 Update calls to write_exp* in order to pass the parser state.
8270 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8271 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8272 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8273 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8274 * stap-probe.c (stap_parse_register_operand): Likewise.
8275 (stap_parse_single_operand): Likewise.
8276 (stap_parse_argument_1): Likewise.
8277 (stap_parse_argument): Use parser state.
8278 * stap-probe.h: Include "parser-defs.h".
8279 (struct stap_parse_info) <pstate>: New field.
8280 * c-exp.y (parse_type): Rewrite to use parser state.
8281 (yyparse): Redefine to c_parse_internal.
8282 (pstate): New global variable.
8283 (parse_number): Add "struct parser_state" argument.
8284 (write_destructor_name): Likewise.
8285 (type_exp): Update calls to write_exp* and similars in order to
8287 (exp1, exp, variable, qualified_name, space_identifier,
8288 typename, typebase): Likewise.
8289 (write_destructor_name, parse_number, lex_one_token,
8290 classify_name, classify_inner_name, c_parse): Add "struct
8291 parser_state" argument. Update function to use parser state.
8292 * c-lang.h: Forward declare "struct parser_state".
8293 (c_parse): Add "struct parser_state" argument.
8294 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8295 (yyparse): Redefine macro to ada_parse_internal.
8296 (pstate): New variable.
8297 (write_int, write_object_renaming, write_var_or_type,
8298 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8299 type_int, type_long, type_long_long, type_float, type_double,
8300 type_long_double, type_char, type_boolean, type_system_address):
8301 Add "struct parser_state" argument.
8302 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8303 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8304 var_or_type, aggregate, aggregate_component_list,
8305 positional_list, others, component_group,
8306 component_associations): Update calls to write_exp* and similar
8307 functions in order to use parser state.
8308 (ada_parse, write_var_from_sym, write_int,
8309 write_exp_op_with_string, write_object_renaming,
8310 find_primitive_type, write_selectors, write_ambiguous_var,
8311 write_var_or_type, write_name_assoc, type_int, type_long,
8312 type_long_long, type_float, type_double, type_long_double,
8313 type_char, type_boolean, type_system_address): Add "struct
8314 parser_state" argument. Adjust function to use parser state.
8315 * ada-lang.c (parse): Likewise.
8316 * ada-lang.h: Forward declare "struct parser_state".
8317 (ada_parse): Add "struct parser_state" argument.
8318 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8319 calls to both functions.
8320 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8322 (yyparse): Redefine macro to f_parse_internal.
8323 (pstate): New variable.
8324 (parse_number): Add "struct parser_state" argument.
8325 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8326 and similars in order to use parser state.
8327 (parse_number): Adjust code to use parser state.
8329 (f_parse): New function.
8330 * f-lang.h: Forward declare "struct parser_state".
8331 (f_parse): Add "struct parser_state" argument.
8332 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8334 (yyparse): Redefine macro for java_parse_internal.
8335 (pstate): New variable.
8336 (push_expression_name, push_expression_name, insert_exp): Add
8337 "struct parser_state" argument.
8338 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8339 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8340 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8341 PostIncrementExpression, PostDecrementExpression,
8342 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8343 UnaryExpressionNotPlusMinus, CastExpression,
8344 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8345 RelationalExpression, EqualityExpression, AndExpression,
8346 ExclusiveOrExpression, InclusiveOrExpression,
8347 ConditionalAndExpression, ConditionalOrExpression,
8348 ConditionalExpression, Assignment, LeftHandSide): Update
8349 calls to write_exp* and similars in order to use parser state.
8350 (parse_number): Ajust code to use parser state.
8352 (java_parse): New function.
8353 (push_variable): Add "struct parser_state" argument. Adjust
8354 code to user parser state.
8355 (push_fieldnames, push_qualified_expression_name,
8356 push_expression_name, insert_exp): Likewise.
8357 * jv-lang.h: Forward declare "struct parser_state".
8358 (java_parse): Add "struct parser_state" argument.
8359 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8361 (yyparse): Redefine macro to m2_parse_internal.
8362 (pstate): New variable.
8363 (type_exp, exp, fblock, variable, type): Update calls to
8364 write_exp* and similars to use parser state.
8366 (m2_parse): New function.
8367 * m2-lang.h: Forward declare "struct parser_state".
8368 (m2_parse): Add "struct parser_state" argument.
8369 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8370 * objc-lang.h: Forward declare "struct parser_state".
8371 (end_msglist): Add "struct parser_state" argument.
8372 * p-exp.y (parse_type): Rewrite macro to use parser state.
8373 (yyparse): Redefine macro to pascal_parse_internal.
8374 (pstate): New variable.
8375 (parse_number): Add "struct parser_state" argument.
8376 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8377 write_exp* and similars in order to use parser state.
8378 (parse_number, yylex): Adjust code to use parser state.
8379 (pascal_parse): New function.
8380 * p-lang.h: Forward declare "struct parser_state".
8381 (pascal_parse): Add "struct parser_state" argument.
8382 * go-exp.y (parse_type): Rewrite macro to use parser state.
8383 (yyparse): Redefine macro to go_parse_internal.
8384 (pstate): New variable.
8385 (parse_number): Add "struct parser_state" argument.
8386 (type_exp, exp1, exp, variable, type): Update calls to
8387 write_exp* and similars in order to use parser state.
8388 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8389 to use parser state.
8390 (go_parse): Likewise.
8391 * go-lang.h: Forward declare "struct parser_state".
8392 (go_parse): Add "struct parser_state" argument.
8394 2014-03-27 Doug Evans <dje@google.com>
8396 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8398 2014-03-27 Doug Evans <dje@google.com>
8400 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8401 Remove argument abbrev_section. All callers updated.
8403 2014-03-27 Doug Evans <dje@google.com>
8405 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8406 addr_base, ranges_base.
8408 2014-03-26 Keith Seitz <keiths@redhat.com>
8410 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8411 types, not VAR_DOMAIN.
8413 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8415 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8417 * features/nios2-linux.c: Regenerated.
8418 * features/nios2.c: Regenerated.
8420 2014-03-25 Pedro Alves <palves@redhat.com>
8422 * cli/cli-script.c (script_from_file): Force the interpreter to
8425 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8427 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8428 small stack allocation.
8430 2014-03-24 Tristan Gingold <gingold@adacore.com>
8432 * darwin-nat.c (exc_server): Remove unused prototype.
8433 (darwin_dump_message): Correctly display data on x86_64.
8434 (darwin_encode_reply): Fix style.
8435 Add comments and fix indentation.
8437 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8439 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8441 2014-03-22 Doug Evans <xdje42@gmail.com>
8443 * infcmd.c: Whitespace fixes.
8444 (interrupt_command): Merge two function comments into one.
8446 2014-03-22 Doug Evans <xdje42@gmail.com>
8448 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8451 2014-03-22 Yao Qi <yao@codesourcery.com>
8453 * remote.c (target_read_live_memory): Remove.
8454 (memory_xfer_live_readonly_partial): Rename it to
8455 remote_xfer_live_readonly_partial. Remove argument 'object'.
8456 All callers updated. Call remote_read_bytes_1
8457 instead of target_read_live_memory.
8458 * tracepoint.c (set_traceframe_number): Remove.
8459 (make_cleanup_restore_traceframe_number): Likewise .
8460 * tracepoint.h (set_traceframe_number): Remove declaration.
8461 (make_cleanup_restore_traceframe_number): Likewise.
8463 2014-03-22 Yao Qi <yao@codesourcery.com>
8465 * remote.c (remote_read_bytes): Move code on reading from the
8467 (remote_read_bytes_1): ... here. New function.
8469 2014-03-22 Yao Qi <yao@codesourcery.com>
8471 * ctf.c (ctf_xfer_partial): Check the return value of
8472 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8473 return TARGET_XFER_UNAVAILABLE.
8474 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8475 * target.c (target_read_live_memory): Move it to remote.c.
8476 (memory_xfer_live_readonly_partial): Likewise.
8477 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8478 * remote.c (target_read_live_memory): Moved from target.c.
8479 (memory_xfer_live_readonly_partial): Likewise.
8480 (remote_read_bytes): Factored out from
8481 memory_xfer_partial_1.
8483 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8485 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8488 2014-03-21 Pedro Alves <palves@redhat.com>
8490 * infrun.c (normal_stop): Extend comment.
8492 2014-03-21 Hui Zhu <hui@codesourcery.com>
8493 Pedro Alves <palves@redhat.com>
8495 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8497 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8498 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8499 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8501 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8503 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8504 `z' formatted output modifier.
8506 2014-03-20 Tom Tromey <tromey@redhat.com>
8507 Sergio Durigan Junior <sergiodj@redhat.com>
8509 * probe.c (parse_probes): Turn assert into an ordinary error.
8510 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8511 exceptions when parsing probes. Rearrange the code for clarity.
8513 2014-03-20 Tom Tromey <tromey@redhat.com>
8516 * top.c (execute_command): Only dispatch events if the command
8519 2014-03-20 Tom Tromey <tromey@redhat.com>
8522 * infcall.c: Include event-top.h.
8523 (run_inferior_call): Call async_disable_stdin if needed.
8525 2014-03-20 Pedro Alves <palves@redhat.com>
8527 * infrun.c (prepare_to_proceed): Delete.
8528 (thread_still_needs_step_over): New function.
8529 (find_thread_needs_step_over): New function.
8530 (proceed): If the current thread needs a step-over, set its
8531 steping_over_breakpoint flag. Adjust to use
8532 find_thread_needs_step_over instead of prepare_to_proceed.
8533 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8534 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8536 (switch_back_to_stepped_thread): Step over breakpoints of all
8537 threads not the stepping thread, before switching back to the
8540 2014-03-20 Pedro Alves <palves@redhat.com>
8542 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8544 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8545 * infrun.c (saved_singlestep_ptid)
8546 (stepping_past_singlestep_breakpoint): Delete.
8547 (resume): Remove stepping_past_singlestep_breakpoint handling.
8548 (proceed): Store the prev_pc of the stepping thread too.
8549 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8551 (enum infwait_states): Delete infwait_thread_hop_state.
8552 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8554 (handle_inferior_event): Adjust.
8555 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8556 handling and the thread-hop code. Before removing single-step
8557 breakpoints, check whether the thread hit a single-step breakpoint
8558 of another thread. If it did, the trap is not a random signal.
8559 (switch_back_to_stepped_thread): If the event thread hit a
8560 single-step breakpoint, unblock it before switching to the
8561 stepping thread. Handle the case of the stepped thread having
8563 (keep_going): Handle the case of the current thread moving past a
8564 single-step breakpoint.
8566 2014-03-20 Pedro Alves <palves@redhat.com>
8569 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8570 are being stepped over.
8571 (breakpoint_address_match): Make extern.
8572 * breakpoint.h (breakpoint_address_match): New declaration.
8573 * inferior.h (stepping_past_instruction_at): New declaration.
8574 * infrun.c (struct step_over_info): New type.
8575 (step_over_info): New global.
8576 (set_step_over_info, clear_step_over_info)
8577 (stepping_past_instruction_at): New functions.
8578 (handle_inferior_event): Clear the step-over info when
8579 trap_expected is cleared.
8580 (resume): Remove now stale comment.
8581 (clear_proceed_status): Clear step-over info.
8582 (proceed): Adjust step-over handling to set or clear the step-over
8583 info instead of removing all breakpoints.
8584 (handle_signal_stop): When setting up a thread-hop, don't remove
8586 (stop_stepping): Clear step-over info.
8587 (keep_going): Adjust step-over handling to set or clear step-over
8588 info and then always inserting breakpoints, instead of removing
8589 all breakpoints when stepping over one.
8591 2014-03-20 Pedro Alves <palves@redhat.com>
8593 * infrun.c (previous_inferior_ptid): Adjust comment.
8594 (deferred_step_ptid): Delete.
8595 (infrun_thread_ptid_changed, prepare_to_proceed)
8596 (init_wait_for_inferior): Adjust.
8597 (handle_signal_stop): Delete deferred_step_ptid handling.
8599 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8602 * defs.h (sync_quit_force_run): New declaration.
8603 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8604 * event-top.c (async_sigterm_handler): New declaration.
8605 (async_sigterm_token): New variable.
8606 (async_init_signals): Create also async_sigterm_token.
8607 (async_sigterm_handler): New function.
8608 (sync_quit_force_run): New variable.
8609 (handle_sigterm): Replace quit_force call by other calls.
8610 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8612 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8614 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8615 offset into SPE pseudo registers.
8617 2014-03-18 Pedro Alves <palves@redhat.com>
8620 * inferior.h (print_stop_event): Declare.
8621 * infrun.c (print_stop_event): New, factored out from ...
8622 (normal_stop): ... this.
8623 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8624 of bpstat_print/print_stack_frame.
8626 2014-03-17 Tom Tromey <tromey@redhat.com>
8628 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8630 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8632 * ada-lang.c (decode_constrained_packed_array): Perform a
8633 minimal coercion for reference with coerce_ref instead of
8636 2014-03-17 Tristan Gingold <gingold@adacore.com>
8638 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8639 (darwin_solib_create_inferior_hook): Emit a warning if version
8642 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8644 * python/py-value.c (get_field_flag): Cast flag_name argument to
8645 PyObject_GetAttrString to support Python 2.4.
8647 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8649 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8650 (Global Maintainers): Remove Jan Kratochvil.
8652 2014-03-14 Pedro Alves <palves@redhat.com>
8654 * inferior.h (terminal_ours_for_output): Rename to ...
8655 (child_terminal_ours_for_output): ... this.
8656 (terminal_save_ours): Rename to ...
8657 (child_terminal_save_ours): ... this.
8658 (terminal_ours): Rename to ...
8659 (child_terminal_ours): ... this.
8660 (terminal_inferior): Rename to ...
8661 (child_terminal_inferior): ... this.
8662 (terminal_init_inferior): Rename to ...
8663 (child_terminal_init_inferior): ... this.
8664 (terminal_init_inferior_with_pgrp): Rename to ...
8665 (child_terminal_init_inferior_with_pgrp): ... this.
8666 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8667 (child_terminal_init_with_pgrp): ... this.
8668 (terminal_save_ours): Rename to ...
8669 (child_terminal_save_ours): ... this.
8670 (terminal_init_inferior): Rename to ...
8671 (child_terminal_init): ... this. Adjust.
8672 (terminal_inferior): Rename to ...
8673 (child_terminal_inferior): ... this.
8674 (terminal_ours_for_output): Rename to ...
8675 (child_terminal_ours_for_output): ... this. Adjust.
8676 (terminal_ours): Rename to ...
8677 (child_terminal_ours): ... this.
8678 (terminal_ours_1): Rename to ...
8679 (child_terminal_ours_1): ... this. Adjust.
8680 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8681 * windows-nat.c (do_initial_windows_stuff): Adjust.
8682 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8683 (gnu_terminal_init): ... this. Adjust.
8684 (gnu_target): Adjust.
8685 * inf-child.c (inf_child_target): Adjust.
8687 2014-03-13 Doug Evans <xdje42@gmail.com>
8690 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8693 2014-03-13 Doug Evans <xdje42@gmail.com>
8695 * value.c (record_latest_value): Call release_value_or_incref
8696 instead of release_value.
8698 2014-03-13 Pedro Alves <palves@redhat.com>
8700 * procfs.c (procfs_target): Don't override to_shortname,
8701 to_longname or to_doc.
8703 2014-03-13 Pedro Alves <palves@redhat.com>
8705 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8706 Unix in user visible strings.
8708 2014-03-12 Stan Shebs <stan@codesourcery.com>
8710 * gdbtypes.h: Annotate comments for Doxygen, add a page
8711 block comment with some general info.
8713 2014-03-12 Pedro Alves <palves@redhat.com>
8715 * infcmd.c (prepare_execution_command): New function, factored out
8716 from several execution commands.
8717 (run_command_1, continue_command, step_1, jump_command)
8718 (signal_command, until_command, advance_command, finish_command)
8719 (attach_command): Use prepare_execution_command.
8721 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8723 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8726 (struct arm_linux_thread_points): Removed.
8727 (struct arm_linux_process_info): New.
8728 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8729 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8730 (arm_linux_find_breakpoints_by_tid): Removed.
8731 (struct arch_lwp_info): New.
8732 (arm_linux_find_process_pid): New functions.
8733 (arm_linux_add_process): New functions.
8734 (arm_linux_process_info_get): New functions.
8735 (arm_linux_forget_process): New function.
8736 (arm_linux_get_debug_reg_state): New function.
8737 (struct update_registers_data): New.
8738 (update_registers_callback): New function.
8739 (arm_linux_insert_hw_breakpoint1): Updated.
8740 (arm_linux_remove_hw_breakpoint1): Updated.
8741 (arm_linux_insert_hw_breakpoint): Updated.
8742 (arm_linux_remove_hw_breakpoint): Updated.
8743 (arm_linux_insert_watchpoint): Updated.
8744 (arm_linux_remove_watchpoint): Updated.
8745 (arm_linux_new_thread): Updated.
8746 (arm_linux_prepare_to_resume): New function.
8747 (arm_linux_new_fork): New function.
8748 (_initialize_arm_linux_nat): Updated.
8750 2014-03-12 Pedro Alves <palves@redhat.com>
8752 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8754 2014-03-12 Tom Tromey <tromey@redhat.com>
8756 * inf-child.c (return_zero): New function.
8757 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8758 * aix-thread.c (aix_thread_inferior_created): New function.
8759 (aix_thread_attach): Remove.
8760 (init_aix_thread_ops): Don't set to_attach.
8761 (_initialize_aix_thread): Register inferior_created observer.
8762 * corelow.c (init_core_ops): Don't set to_attach or
8764 * exec.c (init_exec_ops): Don't set to_attach or
8766 * infcmd.c (run_command_1): Use find_run_target. Make direct
8768 (attach_command): Use find_attach_target. Make direct target
8770 * record-btrace.c (init_record_btrace_ops): Don't set
8772 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8774 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8775 set to_create_inferior.
8776 * target.c (complete_target_initialization): Add assertion.
8777 (target_create_inferior): Remove.
8778 (find_default_attach, find_default_create_inferior): Remove.
8779 (find_attach_target, find_run_target): New functions.
8780 (find_default_is_async_p, find_default_can_async_p)
8781 (target_supports_non_stop, target_attach): Remove.
8782 (init_dummy_target): Don't set to_create_inferior or
8783 to_supports_non_stop.
8784 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8785 TARGET_DEFAULT_FUNC.
8786 <to_create_inferior>: Add comment.
8787 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8788 TARGET_DEFAULT_RETURN.
8789 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8790 (find_attach_target, find_run_target): Declare.
8791 (target_create_inferior): Remove.
8792 (target_has_execution_1): Update comment.
8793 (target_supports_non_stop): Remove.
8794 * target-delegates.c: Rebuild.
8796 2014-03-12 Pedro Alves <palves@redhat.com>
8798 * inf-child.h: Update comment to not mention Unix.
8800 2014-03-12 Pedro Alves <palves@redhat.com>
8802 * inf-child.c: Update top comment to not mention Unix. Add
8803 generic comment describing how this target is meant to be used.
8804 (inf_child_post_attach, inf_child_post_startup_inferior)
8805 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8808 2014-03-12 Pedro Alves <palves@redhat.com>
8810 * nto-procfs.c: Include inf-child.h.
8811 (procfs_ops): Delete global.
8812 (procfs_can_run): Delete method.
8813 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8814 target pointer instead of referencing procfs_ops.
8815 (procfs_prepare_to_store): Delete.
8816 (init_procfs_ops): Delete function.
8817 (procfs_target): New function, based on init_procfs_ops, but
8818 inherit inf_child_target.
8819 (_initialize_procfs): Use procfs_target.
8821 2014-03-12 Pedro Alves <palves@redhat.com>
8823 * windows-nat.c: Include inf-child.h.
8824 (windows_ops): Delete global.
8825 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8827 (init_windows_ops): Delete function.
8828 (windows_target): New function, based on init_windows_ops, but
8829 inherit inf_child_target.
8830 (_initialize_windows_nat): Use windows_target. Install x86
8831 specific target methods here.
8833 2014-03-10 Doug Evans <xdje42@gmail.com>
8835 * guile/guile.c (call_initialize_gdb_module): New function.
8836 (initialize_guile): Replace call to scm_init_guile with call to
8839 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8841 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8842 in call to TYPE_CODE macro.
8844 2014-03-10 Jerome Guitton <guitton@adacore.com>
8846 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8847 Resolve tagged types to full view.
8849 2014-03-10 Hui Zhu <hui@codesourcery.com>
8851 * target.h (target_insert_breakpoint): Remove "hardware" from its
8854 2014-03-07 Doug Evans <dje@google.com>
8856 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8858 2014-03-07 Doug Evans <dje@google.com>
8860 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8861 Remove unused local comp_dir_attr. Assert exactly one of
8862 stub_comp_unit_die, stub_comp_dir is non-NULL.
8864 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8866 * target.h (complete_target_initialization, add_target):
8869 2014-03-07 Pedro Alves <palves@redhat.com>
8871 * go32-nat.c: Include inf-child.h.
8872 (go32_ops): Delete global.
8873 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8875 (go32_create_inferior): Push the passed in target pointer instead
8876 of referencing go32_ops.
8877 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8878 (go32_target): New function, based on init_go32_ops, but inherit
8880 (_initialize_go32_nat): Use go32_target. Move parts of
8883 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8885 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8886 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8887 SYMBOL_VALUE_ADDRESS.
8888 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8890 2014-03-06 Yao Qi <yao@codesourcery.com>
8892 * breakpoint.c (get_tracepoint_by_number): Remove argument
8893 optional_p. All callers updated. Adjust comments. Update
8895 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8897 2014-03-06 Yao Qi <yao@codesourcery.com>
8899 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8900 early if get_number returns zero. Use 'p' instead of 'args'.
8902 2014-03-06 Yao Qi <yao@codesourcery.com>
8904 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8907 2014-03-06 Yao Qi <yao@codesourcery.com>
8909 PR breakpoints/16508
8910 * tracepoint.c (check_trace_running): New function.
8911 (trace_find_command): Move code to check_trace_running and
8912 call check_trace_running.
8913 (trace_find_pc_command): Likewise.
8914 (trace_find_tracepoint_command): Likewise.
8915 (trace_find_line_command): Likewise.
8916 (trace_find_range_command): Likewise.
8917 * tracepoint.h (check_trace_running): Likewise.
8918 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8920 2014-03-06 Yao Qi <yao@codesourcery.com>
8922 * target.h (struct target_ops) <to_traceframe_info>: Use
8923 TARGET_DEFAULT_NORETURN (tcomplain ()).
8924 * target-delegates.c: Regenerated.
8926 2014-03-05 Pedro Alves <palves@redhat.com>
8929 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8930 void. Update comment.
8931 (dcache_xfer_memory): Delete.
8932 (dcache_read_memory_partial): New, based on the read bits of
8934 (dcache_update): Add status parameter. Use ULONGEST for len, and
8935 adjust. Discard cache lines if the reason for the update was
8937 * dcache.h (dcache_xfer_memory): Delete declaration.
8938 (dcache_read_memory_partial): New declaration.
8939 (dcache_update): Update prototype.
8940 * target.c (raw_memory_xfer_partial): Update the dcache here.
8941 (memory_xfer_partial_1): Don't handle dcache writes here.
8943 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8945 * remote-sim.c (gdbsim_load): Add const to prog.
8947 2014-03-03 Tom Tromey <tromey@redhat.com>
8949 * elfread.c (probe_key): Change to bfd_data.
8950 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8951 now per-BFD, not per-objfile.
8952 * stap-probe.c (stap_probe_destroy): Update comment.
8953 (handle_stap_probe): Allocate on the per-BFD obstack.
8955 2014-03-03 Tom Tromey <tromey@redhat.com>
8957 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8958 * breakpoint.c (create_longjmp_master_breakpoint): Use
8960 (add_location_to_breakpoint, bkpt_probe_insert_location)
8961 (bkpt_probe_remove_location): Update.
8962 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8963 * elfread.c (elf_symfile_relocate_probe): Remove.
8964 (elf_probe_fns): Update.
8965 (insert_exception_resume_breakpoint): Change type of "probe"
8966 parameter to bound_probe.
8967 (check_exception_resume): Update.
8968 * objfiles.c (objfile_relocate1): Don't relocate probes.
8969 * probe.c (bound_probe_s): New typedef.
8970 (parse_probes): Use get_probe_address. Set sal's objfile.
8971 (find_probe_by_pc): Return a bound_probe.
8972 (collect_probes): Return a VEC(bound_probe_s).
8973 (compare_probes): Update.
8974 (gen_ui_out_table_header_info): Change type of "probes"
8976 (info_probes_for_ops): Update.
8977 (get_probe_address): New function.
8978 (probe_safe_evaluate_at_pc): Update.
8979 * probe.h (struct probe_ops) <get_probe_address>: New field.
8980 <set_semaphore, clear_semaphore>: Add objfile parameter.
8981 (struct probe) <objfile>: Remove field.
8983 <address>: Update comment.
8984 (struct bound_probe): New.
8985 (find_probe_by_pc): Return a bound_probe.
8986 (get_probe_address): Declare.
8987 * solib-svr4.c (struct probe_and_action) <address>: New field.
8988 (hash_probe_and_action, equal_probe_and_action): Update.
8989 (register_solib_event_probe): Add address parameter.
8990 (solib_event_probe_at): Update.
8991 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8993 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8994 (stap_get_probe_address): New function.
8995 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8996 (compile_probe_arg): Update.
8997 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8999 (handle_stap_probe): Don't relocate the probe.
9000 (stap_relocate): Remove.
9001 (stap_gen_info_probes_table_values): Update.
9002 (stap_probe_ops): Remove stap_relocate.
9003 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9004 (debug_sym_probe_fns): Update.
9005 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9006 * symtab.c (init_sal): Use memset.
9007 * symtab.h (struct symtab_and_line) <objfile>: New field.
9008 * tracepoint.c (start_tracing, stop_tracing): Update.
9010 2014-03-03 Tom Tromey <tromey@redhat.com>
9012 * probe.h (parse_probes, find_probe_by_pc)
9013 (find_probes_in_objfile): Fix comments.
9015 2014-03-02 Doug Evans <xdje42@gmail.com>
9017 * infrun.c (handle_signal_stop): Replace test for
9018 TARGET_WAITKIND_STOPPED with an assert.
9020 2014-03-02 Doug Evans <xdje42@gmail.com>
9022 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9024 2014-03-02 Doug Evans <xdje42@gmail.com>
9026 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9028 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9030 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9032 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9034 * i386obsd-nat.c: Include "obsd-nat.h".
9035 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9037 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9039 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9041 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9043 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9045 * mips64obsd-nat.c: Include "obsd-nath".
9046 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9048 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9050 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9052 * amd64obsd-nat.c: Include "obsd-nat,h.
9053 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9055 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9057 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9059 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9060 (find_overload_match): Update call to find_oload_champ.
9061 (find_oload_champ_namespace_loop): Likewise
9063 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9065 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9067 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9068 * config/sparc/obsd64.mh: New file.
9069 * sparc64obsd-nat.c: New file.
9071 * obsd-nat.h: New file.
9072 * obsd-nat.c: New file.
9073 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9074 (ALLDEPFILES): Add obsd-nat.c.
9076 2014-02-28 Tom Tromey <tromey@redhat.com>
9078 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9079 * cli-out.h (cli_ui_out_impl): Now const.
9080 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9081 * ui-out.c (struct ui_out) <impl>: Now const.
9082 (default_ui_out_impl): Now const.
9083 (ui_out_new): Make 'impl' parameter const.
9084 * ui-out.h (ui_out_new): Update.
9086 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9088 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9090 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9092 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9094 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9096 Additional PR 8882 fix.
9097 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9099 2014-02-27 Pedro Alves <palves@redhat.com>
9101 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9104 2014-02-27 Pedro Alves <palves@redhat.com>
9107 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9108 * nat/linux-waitpid.c: Include string.h.
9109 (status_to_str): Moved here and made extern.
9110 * nat/linux-waitpid.h (status_to_str): New declaration.
9112 2014-02-27 Hui Zhu <hui@codesourcery.com>
9115 * infrun.c (ptid_match): Move ...
9116 * common/ptid.c (ptid_match): ... here.
9117 * inferior.h (ptid_match): Move ...
9118 * common/ptid.h (ptid_match): ... here.
9120 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9122 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9123 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9126 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9128 * obsd-tdep.c (obsd_auxv_parse): New function.
9129 (obsd_init_abi): Set auxv_parse.
9131 * gdbarch.sh (auxv_parse): New.
9132 * gdbarch.h: Regenerated.
9133 * gdbarch.c: Regenerated.
9134 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9136 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9138 * guile/scm-value.c (gdbscm_history_append_x): New function.
9139 (value_functions): Add it.
9141 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9143 * dwarf2read.c (attr_value_as_address): New function.
9144 (dwarf2_find_base_address, read_call_site_scope): Use
9145 attr_value_as_address in place of DW_ADDR.
9146 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9147 the low and high addresses. Slight rework of the handling
9148 of the high pc being a constant form, and limit it to
9149 DWARF verson 4 or higher.
9150 (dwarf2_record_block_ranges): Likewise.
9151 (read_partial_die): Likewise.
9152 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9154 2014-02-26 Tom Tromey <tromey@redhat.com>
9156 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9158 2014-02-26 Tom Tromey <tromey@redhat.com>
9160 * elfread.c (elf_read_minimal_symbols): Return early if
9161 minimal symbols have already been read. Add "ei" parameter.
9162 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9163 * minsyms.c (prim_record_minimal_symbol_full): Update.
9164 * objfiles.h (struct objstats) <n_minsyms>: Move...
9165 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9166 * symmisc.c (print_objfile_statistics): Update.
9168 2014-02-26 Tom Tromey <tromey@redhat.com>
9170 * elfread.c (elf_read_minimal_symbols): New function, from
9172 (elf_symfile_read): Call it.
9174 2014-02-26 Tom Tromey <tromey@redhat.com>
9176 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9177 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9178 (lookup_minimal_symbol_solib_trampoline)
9179 (lookup_minimal_symbol_by_pc_section_1)
9180 (lookup_minimal_symbol_and_objfile): Update.
9181 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9182 Don't allocate a minimal symbol if minsyms have already been read.
9183 (build_minimal_symbol_hash_tables): Update.
9184 (install_minimal_symbols): Do nothing if minsyms already read.
9185 Use the per-BFD obstack.
9186 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9187 * objfiles.c (allocate_objfile): Call
9188 terminate_minimal_symbol_table later.
9189 (have_minimal_symbols): Update.
9190 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9191 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9192 Move from struct objfile.
9193 <minsyms_read>: New field.
9194 (struct objfile) <msymbols, minimal_symbol_count,
9195 msymbol_hash, msymbol_demangled_hash>: Move.
9196 (ALL_OBJFILE_MSYMBOLS): Update.
9197 * symfile.c (read_symbols): Set minsyms_read.
9198 (reread_symbols): Update.
9199 * symmisc.c (dump_objfile, dump_msymbols): Update.
9201 2014-02-26 Tom Tromey <tromey@redhat.com>
9203 * minsyms.c (msymbols_sort): Remove.
9204 * minsyms.h (msymbols_sort): Remove.
9205 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9206 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9207 * elfread.c (elf_symtab_read): Don't add section offsets.
9208 * xcoffread.c (record_minimal_symbol): Don't add section offset
9209 to minimal symbol address.
9210 * somread.c (text_offset, data_offset): Remove.
9211 (som_symtab_read): Don't add section offsets to minimal symbol
9213 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9214 Don't add section offsets to minimal symbols.
9215 * coffread.c (coff_symtab_read): Don't add section offsets
9216 to minimal symbol addresses.
9217 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9218 to minimal symbol addresses.
9219 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9220 section offset to minimal symbol addresses.
9221 * mdebugread.c (parse_partial_symbols): Don't add section
9222 offset to minimal symbol addresses.
9223 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9224 offset to minimal symbol addresses.
9226 2014-02-26 Tom Tromey <tromey@redhat.com>
9228 * ada-lang.c (ada_main_name): Update.
9229 (ada_add_standard_exceptions): Update.
9230 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9231 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9232 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9233 * auxv.c (ld_so_xfer_auxv): Update.
9234 * avr-tdep.c (avr_scan_prologue): Update.
9235 * ax-gdb.c (gen_var_ref): Update.
9236 * blockframe.c (get_pc_function_start)
9237 (find_pc_partial_function_gnu_ifunc): Update.
9238 * breakpoint.c (create_overlay_event_breakpoint)
9239 (create_longjmp_master_breakpoint)
9240 (create_std_terminate_master_breakpoint)
9241 (create_exception_master_breakpoint): Update.
9242 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9243 * c-valprint.c (c_val_print): Update.
9244 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9245 * common/agent.c (agent_look_up_symbols): Update.
9246 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9247 * dwarf2loc.c (call_site_to_target_addr): Update.
9248 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9249 * elfread.c (elf_gnu_ifunc_record_cache)
9250 (elf_gnu_ifunc_resolve_by_got): Update.
9251 * findvar.c (default_read_var_value): Update.
9252 * frame.c (inside_main_func): Update.
9253 * frv-tdep.c (frv_frame_this_id): Update.
9254 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9255 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9257 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9258 (hppa_hpux_find_dummy_bpaddr): Update.
9259 * hppa-tdep.c (hppa_symbol_address): Update.
9260 * infcmd.c (until_next_command): Update.
9261 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9263 * linespec.c (minsym_found, add_minsym): Update.
9264 * linux-nat.c (get_signo): Update.
9265 * linux-thread-db.c (inferior_has_bug): Update.
9266 * m32c-tdep.c (m32c_return_value)
9267 (m32c_m16c_address_to_pointer): Update.
9268 * m32r-tdep.c (m32r_frame_this_id): Update.
9269 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9270 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9271 * maint.c (maintenance_translate_address): Update.
9272 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9273 (frob_address): New function.
9274 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9275 frob_address. Rename parameter to "pc_in".
9276 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9278 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9280 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9281 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9282 * objc-lang.c (find_objc_msgsend): Update.
9283 * objfiles.c (objfile_relocate1): Update.
9284 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9285 * p-valprint.c (pascal_val_print): Update.
9286 * parse.c (write_exp_msymbol): Update.
9287 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9288 (ppc_elfv2_skip_entrypoint): Update.
9289 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9290 * printcmd.c (build_address_symbolic, msym_info)
9291 (address_info): Update.
9292 * proc-service.c (ps_pglobal_lookup): Update.
9293 * psymtab.c (find_pc_sect_psymtab_closer)
9294 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9295 Change msymbol parameter to bound_minimal_symbol.
9296 * ravenscar-thread.c (get_running_thread_id): Update.
9297 * remote.c (remote_check_symbols): Update.
9298 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9300 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9301 * solib-dsbt.c (lm_base): Update.
9302 * solib-frv.c (lm_base, main_got): Update.
9303 * solib-irix.c (locate_base): Update.
9304 * solib-som.c (som_solib_create_inferior_hook)
9305 (link_map_start): Update.
9306 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9307 * solib-svr4.c (elf_locate_base, enable_break): Update.
9308 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9309 (flush_ea_cache): Update.
9310 * stabsread.c (define_symbol, scan_file_globals): Update.
9311 * stack.c (find_frame_funname): Update.
9312 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9313 (debug_qf_find_pc_sect_symtab): Update.
9314 * symfile.c (simple_read_overlay_table)
9315 (simple_overlay_update): Update.
9316 * symfile.h (struct quick_symbol_functions)
9317 <find_pc_sect_symtab>: Change type of msymbol to
9318 bound_minimal_symbol.
9319 * symmisc.c (dump_msymbols): Update.
9320 * symtab.c (find_pc_sect_symtab_via_partial)
9321 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9322 (search_symbols, print_msymbol_info): Update.
9323 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9324 (MSYMBOL_VALUE_ADDRESS): Redefine.
9325 (BMSYMBOL_VALUE_ADDRESS): New macro.
9326 * tracepoint.c (scope_info): Update.
9327 * tui/tui-disasm.c (tui_find_disassembly_address)
9328 (tui_get_begin_asm_address): Update.
9329 * valops.c (find_function_in_inferior): Update.
9330 * value.c (value_static_field, value_fn_field): Update.
9332 2014-02-26 Tom Tromey <tromey@redhat.com>
9334 * ada-lang.c (ada_update_initial_language): Update.
9335 (ada_main_name, ada_has_this_exception_support): Update.
9336 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9337 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9338 * arm-tdep.c (arm_skip_stub): Update.
9339 * auxv.c (ld_so_xfer_auxv): Update.
9340 * avr-tdep.c (avr_scan_prologue): Update.
9341 * ax-gdb.c (gen_var_ref): Update.
9342 * breakpoint.c (struct breakpoint_objfile_data)
9343 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9344 type to bound_minimal_symbol.
9345 (create_overlay_event_breakpoint)
9346 (create_longjmp_master_breakpoint)
9347 (create_std_terminate_master_breakpoint)
9348 (create_exception_master_breakpoint): Update.
9349 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9350 * c-exp.y (classify_name): Update.
9351 * coffread.c (coff_symfile_read): Update.
9352 * common/agent.c (agent_look_up_symbols): Update.
9353 * d-lang.c (d_main_name): Update.
9354 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9355 * dec-thread.c (enable_dec_thread): Update.
9356 * dwarf2loc.c (call_site_to_target_addr): Update.
9357 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9358 * eval.c (evaluate_subexp_standard): Update.
9359 * findvar.c (struct minsym_lookup_data) <result>: Change type
9360 to bound_minimal_symbol.
9362 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9363 * frame.c (inside_main_func): Update.
9364 * frv-tdep.c (frv_frame_this_id): Update.
9365 * gcore.c (call_target_sbrk): Update.
9366 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9367 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9369 * go-lang.c (go_main_name): Update.
9370 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9371 (hppa_hpux_find_import_stub_for_addr): Update.
9372 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9373 Update. Change return type.
9374 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9376 * jit.c (jit_breakpoint_re_set_internal): Update.
9377 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9379 * linux-nat.c (get_signo): Update.
9380 * linux-thread-db.c (inferior_has_bug): Update
9381 * m32c-tdep.c (m32c_return_value)
9382 (m32c_m16c_address_to_pointer): Update.
9383 * m32r-tdep.c (m32r_frame_this_id): Update.
9384 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9385 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9386 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9387 lookup_minimal_symbol. Change return type.
9388 (lookup_minimal_symbol): Remove.
9389 (lookup_bound_minimal_symbol): Update.
9390 (lookup_minimal_symbol_text): Change return type.
9391 (lookup_minimal_symbol_solib_trampoline): Change return type.
9392 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9393 (lookup_minimal_symbol_solib_trampoline): Change return type.
9394 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9395 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9396 (value_nsstring, find_imps): Update.
9397 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9398 * p-lang.c (pascal_main_name): Update.
9399 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9400 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9401 * proc-service.c (ps_pglobal_lookup): Update.
9402 * ravenscar-thread.c (get_running_thread_msymbol): Change
9404 (has_ravenscar_runtime, get_running_thread_id): Update.
9405 * remote.c (remote_check_symbols): Update.
9406 * sol-thread.c (ps_pglobal_lookup): Update.
9407 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9408 * solib-dsbt.c (lm_base): Update.
9409 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9411 * solib-irix.c (locate_base): Update.
9412 * solib-som.c (som_solib_create_inferior_hook)
9413 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9415 * solib-spu.c (spu_enable_break): Update.
9416 * solib-svr4.c (elf_locate_base, enable_break): Update.
9417 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9418 (flush_ea_cache): Update.
9419 * stabsread.c (define_symbol): Update.
9420 * symfile.c (simple_read_overlay_table): Update.
9421 * symtab.c (find_pc_sect_line): Update.
9422 * tracepoint.c (scope_info): Update.
9423 * tui-disasm.c (tui_get_begin_asm_address): Update.
9424 * value.c (value_static_field): Update.
9426 2014-02-26 Tom Tromey <tromey@redhat.com>
9428 * minsyms.c (prim_record_minimal_symbol_full): Use
9429 SET_MSYMBOL_VALUE_ADDRESS.
9430 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9431 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9432 SET_MSYMBOL_VALUE_ADDRESS.
9433 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9434 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9436 2014-02-26 Tom Tromey <tromey@redhat.com>
9438 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9439 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9440 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9441 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9442 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9443 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9444 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9445 * ada-lang.c (ada_main_name): Update.
9446 (ada_lookup_simple_minsym): Update.
9447 (ada_make_symbol_completion_list): Update.
9448 (ada_add_standard_exceptions): Update.
9449 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9450 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9451 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9452 * arm-tdep.c (skip_prologue_function): Update.
9453 (arm_skip_stack_protector, arm_skip_stub): Update.
9454 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9455 (arm_wince_skip_main_prologue): Update.
9456 * auxv.c (ld_so_xfer_auxv): Update.
9457 * avr-tdep.c (avr_scan_prologue): Update.
9458 * ax-gdb.c (gen_var_ref): Update.
9459 * block.c (call_site_for_pc): Update.
9460 * blockframe.c (get_pc_function_start): Update.
9461 (find_pc_partial_function_gnu_ifunc): Update.
9462 * breakpoint.c (create_overlay_event_breakpoint): Update.
9463 (create_longjmp_master_breakpoint): Update.
9464 (create_std_terminate_master_breakpoint): Update.
9465 (create_exception_master_breakpoint): Update.
9466 (resolve_sal_pc): Update.
9467 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9468 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9470 * c-valprint.c (c_val_print): Update.
9471 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9472 * coffread.c (coff_symfile_read): Update.
9473 * common/agent.c (agent_look_up_symbols): Update.
9474 * dbxread.c (find_stab_function_addr): Update.
9475 (end_psymtab): Update.
9476 * dwarf2loc.c (call_site_to_target_addr): Update.
9477 (func_verify_no_selftailcall): Update.
9478 (tailcall_dump): Update.
9479 (call_site_find_chain_1): Update.
9480 (dwarf_expr_reg_to_entry_parameter): Update.
9481 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9482 (elf_gnu_ifunc_resolve_by_got): Update.
9483 * f-valprint.c (info_common_command): Update.
9484 * findvar.c (read_var_value): Update.
9485 * frame.c (get_prev_frame_1): Update.
9486 (inside_main_func): Update.
9487 * frv-tdep.c (frv_skip_main_prologue): Update.
9488 (frv_frame_this_id): Update.
9489 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9490 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9491 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9492 (gnuv3_skip_trampoline): Update.
9493 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9494 (hppa64_hpux_in_solib_call_trampoline): Update.
9495 (hppa_hpux_skip_trampoline_code): Update.
9496 (hppa64_hpux_search_dummy_call_sequence): Update.
9497 (hppa_hpux_find_import_stub_for_addr): Update.
9498 (hppa_hpux_find_dummy_bpaddr): Update.
9499 * hppa-tdep.c (hppa_symbol_address)
9500 (hppa_lookup_stub_minimal_symbol): Update.
9501 * i386-tdep.c (i386_skip_main_prologue): Update.
9502 (i386_pe_skip_trampoline_code): Update.
9503 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9504 * infcall.c (get_function_name): Update.
9505 * infcmd.c (until_next_command): Update.
9506 * jit.c (jit_breakpoint_re_set_internal): Update.
9507 (jit_inferior_init): Update.
9508 * linespec.c (minsym_found): Update.
9509 (add_minsym): Update.
9510 * linux-fork.c (info_checkpoints_command): Update.
9511 * linux-nat.c (get_signo): Update.
9512 * linux-thread-db.c (inferior_has_bug): Update.
9513 * m32c-tdep.c (m32c_return_value): Update.
9514 (m32c_m16c_address_to_pointer): Update.
9515 (m32c_m16c_pointer_to_address): Update.
9516 * m32r-tdep.c (m32r_frame_this_id): Update.
9517 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9518 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9519 * maint.c (maintenance_translate_address): Update.
9520 * minsyms.c (add_minsym_to_hash_table): Update.
9521 (add_minsym_to_demangled_hash_table): Update.
9522 (msymbol_objfile): Update.
9523 (lookup_minimal_symbol): Update.
9524 (iterate_over_minimal_symbols): Update.
9525 (lookup_minimal_symbol_text): Update.
9526 (lookup_minimal_symbol_by_pc_name): Update.
9527 (lookup_minimal_symbol_solib_trampoline): Update.
9528 (lookup_minimal_symbol_by_pc_section_1): Update.
9529 (lookup_minimal_symbol_and_objfile): Update.
9530 (prim_record_minimal_symbol_full): Update.
9531 (compare_minimal_symbols): Update.
9532 (compact_minimal_symbols): Update.
9533 (build_minimal_symbol_hash_tables): Update.
9534 (install_minimal_symbols): Update.
9535 (terminate_minimal_symbol_table): Update.
9536 (find_solib_trampoline_target): Update.
9537 (minimal_symbol_upper_bound): Update.
9538 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9539 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9540 (mips_skip_pic_trampoline_code): Update.
9541 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9542 * objc-lang.c (selectors_info): Update.
9543 (classes_info): Update.
9544 (find_methods): Update.
9545 (find_imps): Update.
9546 (find_objc_msgsend): Update.
9547 * objfiles.c (objfile_relocate1): Update.
9548 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9549 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9550 * p-valprint.c (pascal_val_print): Update.
9551 * parse.c (write_exp_msymbol): Update.
9552 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9553 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9554 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9555 * printcmd.c (build_address_symbolic): Update.
9557 (address_info): Update.
9558 * proc-service.c (ps_pglobal_lookup): Update.
9559 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9560 (find_pc_sect_psymtab): Update.
9561 * python/py-framefilter.c (py_print_frame): Update.
9562 * ravenscar-thread.c (get_running_thread_id): Update.
9563 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9565 * remote.c (remote_check_symbols): Update.
9566 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9567 (rs6000_skip_trampoline_code): Update.
9568 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9569 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9570 * solib-dsbt.c (lm_base): Update.
9571 * solib-frv.c (lm_base): Update.
9573 * solib-irix.c (locate_base): Update.
9574 * solib-som.c (som_solib_create_inferior_hook): Update.
9575 (som_solib_desire_dynamic_linker_symbols): Update.
9576 (link_map_start): Update.
9577 * solib-spu.c (spu_enable_break): Update.
9578 (ocl_enable_break): Update.
9579 * solib-svr4.c (elf_locate_base): Update.
9580 (enable_break): Update.
9581 * spu-tdep.c (spu_get_overlay_table): Update.
9582 (spu_catch_start): Update.
9583 (flush_ea_cache): Update.
9584 * stabsread.c (define_symbol): Update.
9585 (scan_file_globals): Update.
9586 * stack.c (find_frame_funname): Update.
9587 (frame_info): Update.
9588 * symfile.c (simple_read_overlay_table): Update.
9589 (simple_overlay_update): Update.
9590 * symmisc.c (dump_msymbols): Update.
9591 * symtab.c (fixup_section): Update.
9592 (find_pc_sect_line): Update.
9593 (skip_prologue_sal): Update.
9594 (search_symbols): Update.
9595 (print_msymbol_info): Update.
9596 (rbreak_command): Update.
9597 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9598 (completion_list_objc_symbol): Update.
9599 (default_make_symbol_completion_list_break_on): Update.
9600 * tracepoint.c (scope_info): Update.
9601 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9602 (tui_get_begin_asm_address): Update.
9603 * valops.c (find_function_in_inferior): Update.
9604 * value.c (value_static_field): Update.
9605 (value_fn_field): Update.
9607 2014-02-26 Tom Tromey <tromey@redhat.com>
9609 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9610 bound minimal symbols. Move code that knows about minsym
9612 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9614 * minsyms.h (minimal_symbol_upper_bound): Declare.
9615 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9616 minimal_symbol_upper_bound.
9618 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9620 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9621 Use the type's name if its basic type does not have a tag.
9623 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9625 * dwarf2read.c (read_subrange_type): Add comment.
9627 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9629 * dwarf2read.c (update_enumeration_type_from_children): New
9630 function, mostly extracted from process_structure_scope.
9631 (read_enumeration_type): Call update_enumeration_type_from_children.
9632 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9633 and flag_flag_enum fields.
9635 2014-02-26 Pedro Alves <palves@redhat.com>
9637 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9638 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9639 to_xfer_partial method.
9641 2014-02-26 Pedro Alves <palves@redhat.com>
9643 * target.c (complete_target_initialization): Don't install
9644 default_xfer_partial as to_xfer_partial hook.
9646 (update_current_target): Don't INHERIT nor de_fault
9647 deprecated_xfer_memory. Delete de_fault macro.
9648 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9649 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9650 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9653 2014-02-26 Pedro Alves <palves@redhat.com>
9655 * go32-nat.c (my_write_child): New function.
9656 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9657 (go32_xfer_partial): New function.
9658 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9659 Instead install a to_xfer_partial hook.
9661 2014-02-26 Pedro Alves <palves@redhat.com>
9663 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9664 to_xfer_partial helper. Rewrite.
9665 (procfs_xfer_partial): New function.
9666 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9667 Install a to_xfer_partial hook.
9669 2014-02-26 Pedro Alves <palves@redhat.com>
9671 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9672 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9673 (m32r_xfer_partial): New function.
9674 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9675 Install a to_xfer_partial hook.
9677 2014-02-26 Pedro Alves <palves@redhat.com>
9679 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9681 (mips_xfer_partial): New function.
9682 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9683 hook. Install a to_xfer_partial hook.
9685 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9687 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9688 * gdbtypes.c (create_array_type_with_stride): New function,
9689 renaming create_array_type, but with an added parameter
9690 called "bit_stride".
9691 (create_array_type): Re-implement using
9692 create_array_type_with_stride.
9693 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9694 and DW_AT_bit_stride attributes.
9696 2014-02-26 Pedro Alves <palves@redhat.com>
9698 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9699 task-specific breakpoints.
9701 2014-02-25 Pedro Alves <palves@redhat.com>
9703 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9704 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9706 2014-02-25 Stan Shebs <stan@codesourcery.com>
9708 * defs.h: Annotate comments for Doxygen.
9710 2014-02-25 Tom Tromey <tromey@redhat.com>
9712 * target.h (target_ignore): Don't declare.
9713 * target.c (target_ignore): Remove.
9715 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9718 * auto-load.c (auto_load_objfile_script_1): Change filename to
9721 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9723 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9724 documentation. Adjust prototype to match the target_ops
9725 to_xfer_partial method. Adjust implementation accordingly.
9727 2014-02-25 Hui Zhu <hui@codesourcery.com>
9729 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9732 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9734 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9735 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9736 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9737 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9738 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9739 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9740 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9741 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9743 (rl78_register_type): Use a data pointer type for SP and
9744 new pseudo registers mentioned above. Use a 16 bit integer
9745 type for all other register pairs.
9746 (rl78_register_name, rl78_g10_register_name): Update for
9747 new pseudo registers.
9748 (rl78_pseudo_register_read): Likewise.
9749 (rl78_pseudo_register_write): Likewise.
9750 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9751 to the newly added pseudo registers.
9753 2014-02-24 Doug Evans <dje@google.com>
9755 * value.c (record_latest_value): Fix comment.
9756 * printcmd.c (print_command_1): Remove code to handle -1 return from
9757 record_latest_value.
9759 2014-02-24 Pedro Alves <palves@redhat.com>
9761 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9762 deprecated_xfer_memory hook.
9763 (procfs_xfer_partial): Call procfs_xfer_memory instead
9764 of the deprecated_xfer_memory target hook.
9765 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9768 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9770 * windows-nat.c (windows_xfer_shared_libraries): Return
9771 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9772 requested object is TARGET_OBJECT_LIBRARIES.
9774 2014-02-24 Yao Qi <yao@codesourcery.com>
9776 * target.h (enum target_xfer_status)
9777 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9778 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9780 * corefile.c (memory_error_message): User updated.
9781 * exec.c (section_table_read_available_memory): Likewise.
9782 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9783 * target.c (target_xfer_status_to_string): Likewise.
9784 (raw_memory_xfer_partial): Likewise.
9785 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9786 * valops.c (read_value_memory): Likewise.
9787 * exec.h: Update comments.
9789 2014-02-24 Yao Qi <yao@codesourcery.com>
9791 * target.c (target_xfer_status_to_string): Rename argument err
9793 * target.h (target_xfer_status_to_string): Update declaration.
9794 Replace target_xfer_error_to_string with
9795 target_xfer_status_to_string in comment.
9797 2014-02-24 Yao Qi <yao@codesourcery.com>
9799 * mips-linux-nat.c (super_close): Update its type.
9800 (mips_linux_close): Pass 'self' to super_close.
9802 2014-02-24 Yao Qi <yao@codesourcery.com>
9804 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9805 * corefile.c (read_memory): Adjusted.
9806 * target.c (target_write_with_progress): Adjusted.
9808 2014-02-23 Yao Qi <yao@codesourcery.com>
9812 2013-10-25 Yao Qi <yao@codesourcery.com>
9814 * remote.c (remote_traceframe_info): Return early if
9815 traceframe is not selected.
9817 2013-07-19 Yao Qi <yao@codesourcery.com>
9819 * target.c (update_current_target): Change the default action
9820 of 'to_traceframe_info' from tcomplain to return_zero.
9821 * target.h (struct target_ops) <to_traceframe_info>: Add more
9824 2014-02-23 Yao Qi <yao@codesourcery.com>
9826 * valops.c (read_value_memory): Rewrite it. Call
9827 target_xfer_partial in a loop.
9828 * exec.h (section_table_available_memory): Remove declaration.
9829 Move comments to ...
9830 * exec.c (section_table_available_memory): ... here. Make it
9833 2014-02-23 Yao Qi <yao@codesourcery.com>
9835 * exec.c (section_table_read_available_memory): New function.
9836 * exec.h (section_table_read_available_memory): Declare.
9837 * ctf.c (ctf_xfer_partial): Call
9838 section_table_read_available_memory.
9839 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9841 2014-02-23 Yao Qi <yao@codesourcery.com>
9843 * ctf.c (ctf_xfer_partial): Move code to ...
9844 * exec.c (exec_read_partial_read_only): ... it. New function.
9845 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9846 * tracefile.c: Include "exec.h".
9847 * exec.h (exec_read_partial_read_only): Declare.
9849 2014-02-23 Yao Qi <yao@codesourcery.com>
9851 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9852 (tfile_has_memory): Remove.
9853 (init_tfile_ops): Don't set fields to_has_all_memory and
9854 to_has_memory of tfile_ops.
9855 * tracefile.c (tracefile_has_all_memory): New function.
9856 (tracefile_has_memory): New function.
9857 (init_tracefile_ops): Initialize fields to_has_all_memory and
9858 to_has_memory of 'ops'.
9860 2014-02-23 Yao Qi <yao@codesourcery.com>
9862 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9863 (ctf_thread_alive, ctf_get_trace_status): Remove.
9864 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9866 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9867 (tfile_has_stack, tfile_has_registers): Remove.
9868 (tfile_thread_alive): Remove.
9869 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9871 * tracefile.c (tracefile_has_stack): New function.
9872 (tracefile_has_registers): New function.
9873 (tracefile_thread_alive): New function.
9874 (tracefile_get_trace_status): New function.
9875 (init_tracefile_ops): New function.
9876 * tracefile.h (init_tracefile_ops): Declare.
9878 2014-02-23 Yao Qi <yao@codesourcery.com>
9880 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9881 (O_LARGEFILE): Likewise.
9882 (tfile_ops): Likewise.
9883 (TRACE_HEADER_SIZE): Likewise.
9884 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9885 (cur_data_size): Likewise.
9886 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9887 (tfile_close, tfile_files_info): Likewise.
9888 (tfile_get_trace_status): Likewise.
9889 (tfile_get_tracepoint_status): Likewise.
9890 (tfile_get_traceframe_address): Likewise.
9891 (tfile_trace_find, match_blocktype): Likewise.
9892 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9893 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9894 (tfile_get_trace_state_variable_value): Likewise.
9895 (tfile_has_all_memory, tfile_has_memory): Likewise.
9896 (tfile_has_stack, tfile_has_registers): Likewise.
9897 (tfile_thread_alive, build_traceframe_info): Likewise.
9898 (tfile_traceframe_info, init_tfile_ops): Likewise.
9899 (_initialize_tracepoint): Don't call init_tfile_ops
9900 and add_target_with_completer.
9901 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9902 exec.h, completer.h and filenames.h.
9903 (_initialize_tracefile_tfile): New function.
9905 2014-02-23 Yao Qi <yao@codesourcery.com>
9907 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9909 (HFILES_NO_SRCDIR): Add tracefile.h.
9910 * ctf.c: Include "tracefile.h".
9911 * tracefile.h: New file.
9912 * tracefile.c: New file
9913 * tracefile-tfile.c: New file.
9914 * tracepoint.c: Include "tracefile.h".
9915 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9916 (stop_reason_names): Add const.
9917 (trace_file_writer_xfree): Move it to tracefile.c.
9918 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9919 (trace_save_ctf): Likewise.
9920 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9921 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9922 (tfile_write_header, tfile_write_regblock_type): Likewise.
9923 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9924 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9925 (tfile_write_raw_data, tfile_end): Likewise.
9926 (tfile_trace_file_writer_new): Likewise.
9927 (free_uploaded_tp): Make it extern.
9928 (free_uploaded_tsv): Make it extern.
9929 (_initialize_tracepoint): Move code to register command 'tsave'
9931 * tracepoint.h (stop_reason_names): Declare.
9932 (struct trace_frame_write_ops): Move it to tracefile.h.
9933 (struct trace_file_write_ops): Likewise.
9934 (struct trace_file_writer): Likewise.
9935 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9937 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9940 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9942 (get_cores_used_by_process): New parameter num_cores, use it.
9943 (linux_xfer_osdata_processes): Pass num_cores to it.
9944 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9947 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9949 * target.c (memory_xfer_partial): Fix length arg in call to
9950 breakpoint_xfer_memory.
9952 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9955 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9956 number comes after the + or - signs. Adjust length of register
9957 name to be extracted.
9959 2014-02-20 Tom Tromey <tromey@redhat.com>
9961 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9962 (ada_varobj_ops): Mark "extern".
9964 2014-02-20 Tom Tromey <tromey@redhat.com>
9966 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9968 2014-02-20 Doug Evans <xdje42@gmail.com>
9970 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9971 All callers updated.
9972 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9973 All callers updated.
9974 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9975 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9977 2014-02-20 lin zuojian <manjian2006@gmail.com>
9978 Joel Brobecker <brobecker@adacore.com>
9979 Doug Evans <xdje42@gmail.com>
9982 * dwarf2read.c (struct die_info): New member in_process.
9983 (reset_die_in_process): New function.
9984 (process_die): Set it at the start, reset when returning.
9985 (inherit_abstract_dies): Only call process_die if origin_child_die
9986 not already being processed.
9988 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9990 * windows-nat.c (handle_unload_dll): Add function documentation.
9991 (do_initial_windows_stuff): Add comment explaining why we wait
9992 until after inferior initialization has finished before
9993 processing all DLLs.
9995 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9997 * windows-nat.c (get_module_name): Delete.
9998 (windows_get_exec_module_filename): New function, mostly
9999 inspired from get_module_name.
10000 (windows_pid_to_exec_file): Replace call to get_module_name
10001 by call to windows_get_exec_module_filename.
10003 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10005 * windows-nat.c (handle_load_dll): Rewrite this function's
10006 introductory comment. Remove code using get_module_name
10007 to get the DLL's name.
10009 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10011 * windows-nat.c (get_windows_debug_event): Ignore
10012 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10013 if windows_initialization_done == 0.
10014 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10015 Adjust implementation to always load all DLLs.
10016 (do_initial_windows_stuff): Replace call to
10017 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10019 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10021 * windows-nat.c (_initialize_windows_nat): Deprecate the
10022 "dll-symbols" command. Turn the "add-shared-symbol-files"
10023 and "assf" aliases into commands, and deprecate them as well.
10024 * NEWS: Add entry explaining that "dll-symbols" and its two
10025 aliases are now deprecated.
10027 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10029 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10030 new-line in debug string. Remove trailing spaces.
10032 2014-02-19 Stan Shebs <stan@codesourcery.com>
10034 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10036 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10038 * NEWS: Add entry for the new feature
10039 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10042 2014-02-19 Stan Shebs <stan@codesourcery.com>
10044 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10046 2014-02-19 Pedro Alves <palves@redhat.com>
10048 * common/ptid.h (struct ptid): Mention that process_stratum
10049 targets should prefer ptid.lwp.
10051 2014-02-19 Pedro Alves <palves@redhat.com>
10053 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10054 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10055 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10056 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10057 store remote thread ids rather than ptid.tid.
10058 (_initialize_remote): Adjust.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * target.c (target_get_unwinder): Rewrite.
10063 (target_get_tailcall_unwinder): Rewrite.
10064 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10065 (record_btrace_to_get_tailcall_unwinder): New function.
10066 (init_record_btrace_ops): Update.
10067 * target.h (struct target_ops) <to_get_unwinder,
10068 to_get_tailcall_unwinder>: Now function pointers. Use
10069 TARGET_DEFAULT_RETURN.
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10073 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10075 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10077 2014-02-19 Tom Tromey <tromey@redhat.com>
10079 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10081 * target-delegates.c: Rebuild.
10082 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10083 TARGET_DEFAULT_FUNC.
10084 * target.c (default_target_decr_pc_after_break): Rename from
10085 forward_target_decr_pc_after_break. Simplify.
10086 (target_decr_pc_after_break): Rely on delegation.
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10090 * target.c (update_current_target): Do not INHERIT to_doc or
10091 to_magic. Do not de_fault to_open or to_close.
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * gcore.h (objfile_find_memory_regions): Declare.
10096 * gcore.c (objfile_find_memory_regions): No longer static. Add
10098 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10099 * exec.c: Include gcore.h.
10100 (exec_set_find_memory_regions): Remove.
10101 (exec_find_memory_regions): Remove.
10102 (exec_do_find_memory_regions): Remove.
10103 (init_exec_ops): Update.
10104 * defs.h (exec_set_find_memory_regions): Remove.
10106 2014-02-19 Tom Tromey <tromey@redhat.com>
10108 * target-delegates.c: Rebuild.
10109 * target.h (struct target_ops) <to_extra_thread_info,
10110 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10111 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10112 not 0, in TARGET_DEFAULT_RETURN.
10114 2014-02-19 Tom Tromey <tromey@redhat.com>
10116 * target.c (complete_target_initialization): Remove casts. Use
10117 return_zero_has_execution.
10118 (return_zero): Add "ignore" argument.
10119 (return_zero_has_execution): New function.
10120 (init_dummy_target): Remove casts. Use
10121 return_zero_has_execution.
10123 2014-02-19 Tom Tromey <tromey@redhat.com>
10125 * target.c (update_current_target): Update comments. Do not
10126 INHERIT to_stratum.
10128 2014-02-19 Tom Tromey <tromey@redhat.com>
10130 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10132 * corelow.c (core_read_description): Delegate when needed.
10133 * remote.c (remote_read_description): Delegate when needed.
10134 * target-delegates.c: Rebuild.
10135 * target.c (target_read_description): Rewrite.
10136 * target.h (struct target_ops) <to_read_description>: Update
10137 comment. Use TARGET_DEFAULT_RETURN.
10139 2014-02-19 Tom Tromey <tromey@redhat.com>
10141 * target-delegates.c: Rebuild.
10142 * target.c (update_current_target): Don't inherit or default
10144 (find_default_run_target): Check against delegate_can_run.
10145 * target.h (struct target_ops) <to_can_run>: Use
10146 TARGET_DEFAULT_RETURN.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * target-delegates.c: Rebuild.
10151 * target.c (target_disconnect): Unconditionally delegate.
10152 * target.h (struct target_ops) <to_disconnect>: Use
10153 TARGET_DEFAULT_NORETURN.
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * record.c (record_stop): Unconditionally delegate.
10158 * target-delegates.c: Rebuild.
10159 * target.c (target_stop_recording): Unconditionally delegate.
10160 * target.h (struct target_ops) <to_stop_recording>: Use
10161 TARGET_DEFAULT_IGNORE.
10163 2014-02-19 Tom Tromey <tromey@redhat.com>
10165 * target-delegates.c: Rebuild.
10166 * target.c (target_enable_btrace): Unconditionally delegate.
10167 * target.h (struct target_ops) <to_enable_btrace>: Use
10168 TARGET_DEFAULT_NORETURN.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * target-delegates.c: Rebuild.
10173 * target.c (target_read_btrace): Unconditionally delegate.
10174 * target.h (struct target_ops) <to_read_btrace>: Use
10175 TARGET_DEFAULT_NORETURN.
10177 2014-02-19 Tom Tromey <tromey@redhat.com>
10179 * target-delegates.c: Rebuild.
10180 * target.c (target_teardown_btrace): Unconditionally delegate.
10181 * target.h (struct target_ops) <to_teardown_btrace>: Use
10182 TARGET_DEFAULT_NORETURN.
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10186 * target-delegates.c: Rebuild.
10187 * target.c (target_disable_btrace): Unconditionally delegate.
10188 * target.h (struct target_ops) <to_disable_btrace>: Use
10189 TARGET_DEFAULT_NORETURN.
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10193 * target-delegates.c: Rebuild.
10194 * target.c (default_search_memory): New function.
10195 (simple_search_memory): Update comment.
10196 (target_search_memory): Unconditionally delegate.
10197 * target.h (struct target_ops) <to_search_memory>: Use
10198 TARGET_DEFAULT_FUNC.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * auxv.c (default_auxv_parse): No longer static.
10203 (target_auxv_parse): Unconditionally delegate.
10204 * auxv.h (default_auxv_parse): Declare.
10205 * target-delegates.c: Rebuild.
10206 * target.c: Include auxv.h.
10207 * target.h (struct target_ops) <to_auxv_parse>: Use
10208 TARGET_DEFAULT_FUNC.
10210 2014-02-19 Tom Tromey <tromey@redhat.com>
10212 * target-delegates.c: Rebuild.
10213 * target.c (target_memory_map): Unconditionally delegate.
10214 * target.h (struct target_ops) <to_memory_map>: Use
10215 TARGET_DEFAULT_RETURN.
10217 2014-02-19 Tom Tromey <tromey@redhat.com>
10219 * target-delegates.c: Rebuild.
10220 * target.c (target_thread_alive): Unconditionally delegate.
10221 * target.h (struct target_ops) <to_thread_alive>: Use
10222 TARGET_DEFAULT_RETURN.
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_save_record): Unconditionally delegate.
10228 * target.h (struct target_ops) <to_save_record>: Use
10229 TARGET_DEFAULT_NORETURN.
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10233 * target-delegates.c: Rebuild.
10234 * target.c (target_delete_record): Unconditionally delegate.
10235 * target.h (struct target_ops) <to_delete_record>: Use
10236 TARGET_DEFAULT_NORETURN.
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * target-delegates.c: Rebuild.
10241 * target.c (target_record_is_replaying): Unconditionally
10243 * target.h (struct target_ops) <to_record_is_replaying>: Use
10244 TARGET_DEFAULT_RETURN.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * target-delegates.c: Rebuild.
10249 * target.c (target_goto_record_begin): Unconditionally delegate.
10250 * target.h (struct target_ops) <to_goto_record_begin>: Use
10251 TARGET_DEFAULT_NORETURN.
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10255 * target-delegates.c: Rebuild.
10256 * target.c (target_goto_record_end): Unconditionally delegate.
10257 * target.h (struct target_ops) <to_goto_record_end>: Use
10258 TARGET_DEFAULT_NORETURN.
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10262 * target-delegates.c: Rebuild.
10263 * target.c (target_goto_record): Unconditionally delegate.
10264 * target.h (struct target_ops) <to_goto_record>: Use
10265 TARGET_DEFAULT_NORETURN.
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * target-delegates.c: Rebuild.
10270 * target.c (target_insn_history): Unconditionally delegate.
10271 * target.h (struct target_ops) <to_insn_history>: Use
10272 TARGET_DEFAULT_NORETURN.
10274 2014-02-19 Tom Tromey <tromey@redhat.com>
10276 * target-delegates.c: Rebuild.
10277 * target.c (target_insn_history_from): Unconditionally delegate.
10278 * target.h (struct target_ops) <to_insn_history_from>: Use
10279 TARGET_DEFAULT_NORETURN.
10281 2014-02-19 Tom Tromey <tromey@redhat.com>
10283 * target-delegates.c: Rebuild.
10284 * target.c (target_insn_history_range): Unconditionally delegate.
10285 * target.h (struct target_ops) <to_insn_history_range>: Use
10286 TARGET_DEFAULT_NORETURN.
10288 2014-02-19 Tom Tromey <tromey@redhat.com>
10290 * target-delegates.c: Rebuild.
10291 * target.c (target_call_history): Unconditionally delegate.
10292 * target.h (struct target_ops) <to_call_history>: Use
10293 TARGET_DEFAULT_NORETURN.
10295 2014-02-19 Tom Tromey <tromey@redhat.com>
10297 * target-delegates.c: Rebuild.
10298 * target.c (target_call_history_from): Unconditionally delegate.
10299 * target.h (struct target_ops) <to_call_history_from>: Use
10300 TARGET_DEFAULT_NORETURN.
10302 2014-02-19 Tom Tromey <tromey@redhat.com>
10304 * target-delegates.c: Rebuild.
10305 * target.c (target_call_history_range): Unconditionally delegate.
10306 * target.h (struct target_ops) <to_call_history_range>: Use
10307 TARGET_DEFAULT_NORETURN.
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10311 * target-delegates.c: Rebuild.
10312 * target.c (target_verify_memory): Unconditionally delegate.
10313 * target.h (struct target_ops) <to_verify_memory>: Use
10314 TARGET_DEFAULT_NORETURN.
10316 2014-02-19 Tom Tromey <tromey@redhat.com>
10318 * target-delegates.c: Rebuild.
10319 * target.c (target_core_of_thread): Unconditionally delegate.
10320 * target.h (struct target_ops) <to_core_of_thread>: Use
10321 TARGET_DEFAULT_RETURN.
10323 2014-02-19 Tom Tromey <tromey@redhat.com>
10325 * target-delegates.c: Rebuild.
10326 * target.c (target_flash_done): Unconditionally delegate.
10327 * target.h (struct target_ops) <to_flash_done>: Use
10328 TARGET_DEFAULT_NORETURN.
10330 2014-02-19 Tom Tromey <tromey@redhat.com>
10332 * target-delegates.c: Rebuild.
10333 * target.c (target_flash_erase): Unconditionally delegate.
10334 * target.h (struct target_ops) <to_flash_erase>: Use
10335 TARGET_DEFAULT_NORETURN.
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10339 * target-delegates.c: Rebuild.
10340 * target.c (target_get_section_table): Unconditionally delegate.
10341 * target.h (struct target_ops) <to_get_section_table>: Use
10342 TARGET_DEFAULT_RETURN.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * target-delegates.c: Rebuild.
10347 * target.c (target_pid_to_str): Unconditionally delegate.
10348 (init_dummy_target): Don't initialize to_pid_to_str.
10349 (default_pid_to_str): Rename from dummy_pid_to_str.
10350 * target.h (struct target_ops) <to_pid_to_str>: Use
10351 TARGET_DEFAULT_FUNC.
10353 2014-02-19 Tom Tromey <tromey@redhat.com>
10355 * target-delegates.c: Rebuild.
10356 * target.c (target_find_new_threads): Unconditionally delegate.
10357 * target.h (struct target_ops) <to_find_new_threads>: Use
10358 TARGET_DEFAULT_RETURN.
10360 2014-02-19 Tom Tromey <tromey@redhat.com>
10362 * target-delegates.c: Rebuild.
10363 * target.c (target_program_signals): Unconditionally delegate.
10364 * target.h (struct target_ops) <to_program_signals>: Use
10365 TARGET_DEFAULT_IGNORE.
10367 2014-02-19 Tom Tromey <tromey@redhat.com>
10369 * target-delegates.c: Rebuild.
10370 * target.c (target_pass_signals): Unconditionally delegate.
10371 * target.h (struct target_ops) <to_pass_signals>: Use
10372 TARGET_DEFAULT_IGNORE.
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10376 * target-delegates.c: Rebuild.
10377 * target.c (default_mourn_inferior): New function.
10378 (target_mourn_inferior): Unconditionally delegate.
10379 * target.h (struct target_ops) <to_mourn_inferior>: Use
10380 TARGET_DEFAULT_FUNC.
10382 2014-02-19 Tom Tromey <tromey@redhat.com>
10384 * target-delegates.c: Rebuild.
10385 * target.c (default_follow_fork): New function.
10386 (target_follow_fork): Unconditionally delegate.
10387 * target.h (struct target_ops) <to_follow_fork>: Use
10388 TARGET_DEFAULT_FUNC.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * target-delegates.c: Rebuild.
10393 * target.c (target_kill): Unconditionally delegate.
10394 * target.h (struct target_ops) <to_kill>: Use
10395 TARGET_DEFAULT_NORETURN.
10397 2014-02-19 Tom Tromey <tromey@redhat.com>
10399 * target-delegates.c: Rebuild.
10400 * target.c (target_masked_watch_num_registers): Unconditionally
10402 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10403 Use TARGET_DEFAULT_RETURN.
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10407 * target-delegates.c: Rebuild.
10408 * target.c (target_remove_mask_watchpoint): Unconditionally
10410 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10411 TARGET_DEFAULT_RETURN.
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10415 * target-delegates.c: Rebuild.
10416 * target.c (target_insert_mask_watchpoint): Unconditionally
10418 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10419 TARGET_DEFAULT_RETURN.
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10423 * target-delegates.c: Rebuild.
10424 * target.c (target_ranged_break_num_registers): Unconditionally
10426 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10427 Use TARGET_DEFAULT_RETURN.
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10431 * target-delegates.c: Rebuild.
10432 * target.c (target_fetch_registers): Unconditionally delegate.
10433 * target.h (struct target_ops) <to_fetch_registers>: Use
10434 TARGET_DEFAULT_NORETURN.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * target-delegates.c: Rebuild.
10439 * target.c (update_current_target): Don't inherit or default
10441 * target.h (struct target_ops) <to_stop>: Use
10442 TARGET_DEFAULT_IGNORE.
10444 2014-02-19 Tom Tromey <tromey@redhat.com>
10446 * target-delegates.c: Rebuild.
10447 * target.c (update_current_target): Don't inherit or default
10448 to_can_run_breakpoint_commands.
10449 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10450 Use TARGET_DEFAULT_RETURN.
10452 2014-02-19 Tom Tromey <tromey@redhat.com>
10454 * target-delegates.c: Rebuild.
10455 * target.c (update_current_target): Don't inherit or default
10456 to_supports_evaluation_of_breakpoint_conditions.
10457 * target.h (struct target_ops)
10458 <to_supports_evaluation_of_breakpoint_conditions>: Use
10459 TARGET_DEFAULT_RETURN.
10461 2014-02-19 Tom Tromey <tromey@redhat.com>
10463 * target-delegates.c: Rebuild.
10464 * target.c (update_current_target): Don't inherit or default
10465 to_augmented_libraries_svr4_read.
10466 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10467 Use TARGET_DEFAULT_RETURN.
10469 2014-02-19 Tom Tromey <tromey@redhat.com>
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10474 * target.h (struct target_ops) <to_can_use_agent>: Use
10475 TARGET_DEFAULT_RETURN.
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10482 * target.h (struct target_ops) <to_use_agent>: Use
10483 TARGET_DEFAULT_NORETURN.
10485 2014-02-19 Tom Tromey <tromey@redhat.com>
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_traceframe_info.
10490 (return_null): Remove.
10491 * target.h (struct target_ops) <to_traceframe_info>: Use
10492 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_static_tracepoint_markers_by_strid.
10499 * target.h (struct target_ops)
10500 <to_static_tracepoint_markers_by_strid>: Use
10501 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
10508 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
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
10515 to_set_permissions.
10516 * target.h (struct target_ops) <to_set_permissions>: Use
10517 TARGET_DEFAULT_IGNORE.
10519 2014-02-19 Tom Tromey <tromey@redhat.com>
10521 * target-delegates.c: Rebuild.
10522 * target.c (update_current_target): Don't inherit or default
10523 to_get_tib_address.
10524 * target.h (struct target_ops) <to_get_tib_address>: 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_set_trace_notes.
10532 * target.h (struct target_ops) <to_set_trace_notes>: Use
10533 TARGET_DEFAULT_RETURN.
10535 2014-02-19 Tom Tromey <tromey@redhat.com>
10537 * target-delegates.c: Rebuild.
10538 * target.c (update_current_target): Don't initialize
10539 to_set_trace_buffer_size.
10540 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10541 TARGET_DEFAULT_IGNORE.
10543 2014-02-19 Tom Tromey <tromey@redhat.com>
10545 * target-delegates.c: Rebuild.
10546 * target.c (update_current_target): Don't inherit or default
10547 to_set_circular_trace_buffer.
10548 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10549 TARGET_DEFAULT_IGNORE.
10551 2014-02-19 Tom Tromey <tromey@redhat.com>
10553 * target-delegates.c: Rebuild.
10554 * target.c (update_current_target): Don't inherit or default
10555 to_set_disconnected_tracing.
10556 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10557 TARGET_DEFAULT_IGNORE.
10559 2014-02-19 Tom Tromey <tromey@redhat.com>
10561 * target-delegates.c: Rebuild.
10562 * target.c (update_current_target): Don't inherit or default
10563 to_get_min_fast_tracepoint_insn_len.
10564 (return_minus_one): Remove.
10565 * target.h (struct target_ops)
10566 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10568 2014-02-19 Tom Tromey <tromey@redhat.com>
10570 * target-delegates.c: Rebuild.
10571 * target.c (update_current_target): Don't inherit or default
10572 to_get_raw_trace_data.
10573 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10574 TARGET_DEFAULT_NORETURN.
10576 2014-02-19 Tom Tromey <tromey@redhat.com>
10578 * target-delegates.c: Rebuild.
10579 * target.c (update_current_target): Don't inherit or default
10580 to_upload_trace_state_variables.
10581 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10582 Use TARGET_DEFAULT_RETURN.
10584 2014-02-19 Tom Tromey <tromey@redhat.com>
10586 * target-delegates.c: Rebuild.
10587 * target.c (update_current_target): Don't inherit or default
10588 to_upload_tracepoints.
10589 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10590 TARGET_DEFAULT_RETURN.
10592 2014-02-19 Tom Tromey <tromey@redhat.com>
10594 * target-delegates.c: Rebuild.
10595 * target.c (update_current_target): Don't inherit or default
10596 to_save_trace_data.
10597 * target.h (struct target_ops) <to_save_trace_data>: Use
10598 TARGET_DEFAULT_NORETURN.
10600 2014-02-19 Tom Tromey <tromey@redhat.com>
10602 * target-delegates.c: Rebuild.
10603 * target.c (update_current_target): Don't inherit or default
10604 to_get_trace_state_variable_value.
10605 * target.h (struct target_ops)
10606 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10608 2014-02-19 Tom Tromey <tromey@redhat.com>
10610 * target-delegates.c: Rebuild.
10611 * target.c (update_current_target): Don't inherit or default
10613 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10615 2014-02-19 Tom Tromey <tromey@redhat.com>
10617 * target-delegates.c: Rebuild.
10618 * target.c (update_current_target): Don't inherit or default
10620 * target.h (struct target_ops) <to_trace_stop>: Use
10621 TARGET_DEFAULT_NORETURN.
10623 2014-02-19 Tom Tromey <tromey@redhat.com>
10625 * target-delegates.c: Rebuild.
10626 * target.c (update_current_target): Don't inherit or default
10627 to_get_tracepoint_status.
10628 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10629 TARGET_DEFAULT_NORETURN.
10631 2014-02-19 Tom Tromey <tromey@redhat.com>
10633 * target-delegates.c: Rebuild.
10634 * target.c (update_current_target): Don't inherit or default
10635 to_get_trace_status.
10636 * target.h (struct target_ops) <to_get_trace_status>: Use
10637 TARGET_DEFAULT_RETURN.
10639 2014-02-19 Tom Tromey <tromey@redhat.com>
10641 * target-delegates.c: Rebuild.
10642 * target.c (update_current_target): Don't inherit or default
10644 * target.h (struct target_ops) <to_trace_start>: Use
10645 TARGET_DEFAULT_NORETURN.
10647 2014-02-19 Tom Tromey <tromey@redhat.com>
10649 * target-delegates.c: Rebuild.
10650 * target.c (update_current_target): Don't inherit or default
10651 to_trace_set_readonly_regions.
10652 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10653 Use TARGET_DEFAULT_NORETURN.
10655 2014-02-19 Tom Tromey <tromey@redhat.com>
10657 * target-delegates.c: Rebuild.
10658 * target.c (update_current_target): Don't inherit or default
10659 to_disable_tracepoint.
10660 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10661 TARGET_DEFAULT_NORETURN.
10663 2014-02-19 Tom Tromey <tromey@redhat.com>
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10667 to_enable_tracepoint.
10668 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10669 TARGET_DEFAULT_NORETURN.
10671 2014-02-19 Tom Tromey <tromey@redhat.com>
10673 * target-delegates.c: Rebuild.
10674 * target.c (update_current_target): Don't inherit or default
10675 to_download_trace_state_variable.
10676 * target.h (struct target_ops) <to_download_trace_state_variable>:
10677 Use TARGET_DEFAULT_NORETURN.
10679 2014-02-19 Tom Tromey <tromey@redhat.com>
10681 * target-delegates.c: Rebuild.
10682 * target.c (update_current_target): Don't inherit or default
10683 to_can_download_tracepoint.
10684 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10685 TARGET_DEFAULT_RETURN.
10687 2014-02-19 Tom Tromey <tromey@redhat.com>
10689 * target-delegates.c: Rebuild.
10690 * target.c (update_current_target): Don't inherit or default
10691 to_download_tracepoint.
10692 * target.h (struct target_ops) <to_download_tracepoint>: Use
10693 TARGET_DEFAULT_NORETURN.
10695 2014-02-19 Tom Tromey <tromey@redhat.com>
10697 * target-delegates.c: Rebuild.
10698 * target.c (update_current_target): Don't inherit or default
10700 * target.h (struct target_ops) <to_trace_init>: Use
10701 TARGET_DEFAULT_RETURN.
10703 2014-02-19 Tom Tromey <tromey@redhat.com>
10705 * target-delegates.c: Rebuild.
10706 * target.c (update_current_target): Don't inherit or default
10707 to_supports_string_tracing.
10708 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10709 TARGET_DEFAULT_RETURN.
10711 2014-02-19 Tom Tromey <tromey@redhat.com>
10713 * target-delegates.c: Rebuild.
10714 * target.c (update_current_target): Don't inherit or default
10715 to_supports_enable_disable_tracepoint.
10716 * target.h (struct target_ops)
10717 <to_supports_enable_disable_tracepoint>: Use
10718 TARGET_DEFAULT_RETURN.
10720 2014-02-19 Tom Tromey <tromey@redhat.com>
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10724 to_supports_multi_process.
10725 * target.h (struct target_ops) <to_supports_multi_process>: Use
10726 TARGET_DEFAULT_RETURN.
10728 2014-02-19 Tom Tromey <tromey@redhat.com>
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_get_ada_task_ptid.
10733 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10734 TARGET_DEFAULT_FUNC.
10736 2014-02-19 Tom Tromey <tromey@redhat.com>
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10740 to_thread_architecture.
10741 * target.h (struct target_ops) <to_thread_architecture>: Use
10742 TARGET_DEFAULT_FUNC.
10744 2014-02-19 Tom Tromey <tromey@redhat.com>
10746 * target-delegates.c: Rebuild.
10747 * target.c (update_current_target): Don't inherit or default
10748 to_execution_direction.
10749 * target.h (struct target_ops) <to_execution_direction>: Use
10750 TARGET_DEFAULT_FUNC.
10752 2014-02-19 Tom Tromey <tromey@redhat.com>
10754 * target-delegates.c: Rebuild.
10755 * target.c (update_current_target): Don't inherit or default
10756 to_can_execute_reverse.
10757 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10758 TARGET_DEFAULT_RETURN.
10759 (target_can_execute_reverse): Unconditionally delegate.
10761 2014-02-19 Tom Tromey <tromey@redhat.com>
10763 * target-delegates.c: Rebuild.
10764 * target.c (update_current_target): Don't inherit or default
10766 (dummy_goto_bookmark): Remove.
10767 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10768 * target.h (struct target_ops) <to_goto_bookmark>: Use
10769 TARGET_DEFAULT_NORETURN.
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10773 * target-delegates.c: Rebuild.
10774 * target.c (update_current_target): Don't inherit or default
10776 (dummy_get_bookmark): Remove.
10777 (init_dummy_target): Don't inherit or default to_get_bookmark.
10778 * target.h (struct target_ops) <to_get_bookmark>: Use
10779 TARGET_DEFAULT_NORETURN
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10783 * target-delegates.c: Rebuild.
10784 * target.c (update_current_target): Don't inherit or default
10785 to_make_corefile_notes.
10786 (init_dummy_target): Don't initialize to_make_corefile_notes.
10787 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10788 TARGET_DEFAULT_FUNC.
10790 2014-02-19 Tom Tromey <tromey@redhat.com>
10792 * target-delegates.c: Rebuild.
10793 * target.c (update_current_target): Don't inherit or default
10794 to_find_memory_regions.
10795 (init_dummy_target): Don't initialize to_find_memory_regions.
10796 * target.h (struct target_ops) <to_find_memory_regions>: Use
10797 TARGET_DEFAULT_FUNC.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10804 * target.h (struct target_ops) <to_log_command>: Use
10805 TARGET_DEFAULT_IGNORE.
10806 (target_log_command): Unconditionally delegate.
10808 2014-02-19 Tom Tromey <tromey@redhat.com>
10810 * target-delegates.c: Rebuild.
10811 * target.c (update_current_target): Don't inherit or default
10812 to_pid_to_exec_file.
10813 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10814 TARGET_DEFAULT_RETURN.
10816 2014-02-19 Tom Tromey <tromey@redhat.com>
10818 * target-delegates.c: Rebuild.
10819 * target.c (update_current_target): Don't inherit or default
10821 (target_thread_name): Unconditionally delegate.
10822 * target.h (struct target_ops) <to_thread_name>: Use
10823 TARGET_DEFAULT_RETURN.
10825 2014-02-19 Tom Tromey <tromey@redhat.com>
10827 * target-delegates.c: Rebuild.
10828 * target.c (update_current_target): Don't inherit or default
10829 to_extra_thread_info.
10830 * target.h (struct target_ops) <to_extra_thread_info>: Use
10831 TARGET_DEFAULT_RETURN.
10833 2014-02-19 Tom Tromey <tromey@redhat.com>
10835 * target-delegates.c: Rebuild.
10836 * target.c (update_current_target): Don't inherit or default
10838 * target.h (struct target_ops) <to_has_exited>: Use
10839 TARGET_DEFAULT_RETURN..
10841 2014-02-19 Tom Tromey <tromey@redhat.com>
10843 * target-delegates.c: Rebuild.
10844 * target.c (update_current_target): Don't inherit or default
10845 to_set_syscall_catchpoint.
10846 (return_one): Remove.
10847 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10848 TARGET_DEFAULT_RETURN.
10850 2014-02-19 Tom Tromey <tromey@redhat.com>
10852 * target-delegates.c: Rebuild.
10853 * target.c (update_current_target): Don't inherit or default
10854 to_insert_exec_catchpoint.
10855 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10856 TARGET_DEFAULT_RETURN.
10858 2014-01-08 Tom Tromey <tromey@redhat.com>
10860 * target-delegates.c: Rebuild.
10861 * target.c (update_current_target): Don't inherit or default
10862 to_insert_exec_catchpoint.
10863 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10864 TARGET_DEFAULT_RETURN.
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_remove_vfork_catchpoint.
10871 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10872 TARGET_DEFAULT_RETURN.
10874 2014-02-19 Tom Tromey <tromey@redhat.com>
10876 * target-delegates.c: Rebuild.
10877 * target.c (update_current_target): Don't inherit or default
10878 to_insert_vfork_catchpoint.
10879 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10880 TARGET_DEFAULT_RETURN.
10882 2014-02-19 Tom Tromey <tromey@redhat.com>
10884 * target-delegates.c: Rebuild.
10885 * target.c (update_current_target): Don't inherit or default
10886 to_remove_fork_catchpoint.
10887 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10888 TARGET_DEFAULT_RETURN.
10890 2014-02-19 Tom Tromey <tromey@redhat.com>
10892 * target-delegates.c: Rebuild.
10893 * target.c (update_current_target): Don't inherit or default
10894 to_insert_fork_catchpoint.
10895 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10896 TARGET_DEFAULT_RETURN.
10898 2014-02-19 Tom Tromey <tromey@redhat.com>
10900 * target-delegates.c: Rebuild.
10901 * target.c (update_current_target): Don't inherit or default
10902 to_post_startup_inferior.
10903 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10904 TARGET_DEFAULT_IGNORE.
10906 2014-02-19 Tom Tromey <tromey@redhat.com>
10908 * target-delegates.c: Rebuild.
10909 * target.c (update_current_target): Don't inherit or default
10911 * target.h (struct target_ops) <to_load>: Use
10912 TARGET_DEFAULT_NORETURN.
10914 2014-02-19 Tom Tromey <tromey@redhat.com>
10916 * target-delegates.c: Rebuild.
10917 * target.c (update_current_target): Don't inherit or default
10919 * target.h (struct target_ops) <to_terminal_info>: Use
10920 TARGET_DEFAULT_FUNC.
10922 2014-02-19 Tom Tromey <tromey@redhat.com>
10924 * target-delegates.c: Rebuild.
10925 * target.c (update_current_target): Don't inherit or default
10926 to_terminal_save_ours.
10927 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10928 TARGET_DEFAULT_IGNORE.
10930 2014-02-19 Tom Tromey <tromey@redhat.com>
10932 * target-delegates.c: Rebuild.
10933 * target.c (update_current_target): Don't inherit or default
10935 * target.h (struct target_ops) <to_terminal_ours>: Use
10936 TARGET_DEFAULT_IGNORE.
10938 2014-02-19 Tom Tromey <tromey@redhat.com>
10940 * target-delegates.c: Rebuild.
10941 * target.c (update_current_target): Don't inherit or default
10942 to_terminal_ours_for_output.
10943 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10944 TARGET_DEFAULT_IGNORE.
10946 2014-02-19 Tom Tromey <tromey@redhat.com>
10948 * target-delegates.c: Rebuild.
10949 * target.c (update_current_target): Don't inherit or default
10950 to_terminal_inferior.
10951 * target.h (struct target_ops) <to_terminal_inferior>: Use
10952 TARGET_DEFAULT_IGNORE.
10954 2014-02-19 Tom Tromey <tromey@redhat.com>
10956 * target-delegates.c: Rebuild.
10957 * target.c (update_current_target): Don't inherit or default
10959 * target.h (struct target_ops) <to_terminal_init>: Use
10960 TARGET_DEFAULT_IGNORE.
10962 2014-02-19 Tom Tromey <tromey@redhat.com>
10964 * target-delegates.c: Rebuild.
10965 * target.c (update_current_target): Don't inherit or default
10966 to_can_accel_watchpoint_condition.
10967 * target.h (struct target_ops)
10968 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10970 2014-02-19 Tom Tromey <tromey@redhat.com>
10972 * target-delegates.c: Rebuild.
10973 * target.c (update_current_target): Don't inherit or default
10974 to_region_ok_for_hw_watchpoint.
10975 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10976 Use TARGET_DEFAULT_FUNC.
10978 2014-02-19 Tom Tromey <tromey@redhat.com>
10980 * target-delegates.c: Rebuild.
10981 * target.c (update_current_target): Don't inherit or default
10982 to_watchpoint_addr_within_range.
10983 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10984 Use TARGET_DEFAULT_FUNC.
10986 2014-02-19 Tom Tromey <tromey@redhat.com>
10988 * target-delegates.c: Rebuild.
10989 * target.c (update_current_target): Don't inherit or default
10990 to_remove_watchpoint.
10991 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10992 TARGET_DEFAULT_NORETURN.
10994 2014-02-19 Tom Tromey <tromey@redhat.com>
10996 * target-delegates.c: Rebuild.
10997 * target.c (update_current_target): Don't inherit or default
10998 to_insert_watchpoint.
10999 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11000 TARGET_DEFAULT_RETURN.
11002 2014-02-19 Tom Tromey <tromey@redhat.com>
11004 * target-delegates.c: Rebuild.
11005 * target.c (update_current_target): Don't inherit or default
11006 to_remove_hw_breakpoint.
11007 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11008 TARGET_DEFAULT_RETURN.
11010 2014-02-19 Tom Tromey <tromey@redhat.com>
11012 * target-delegates.c: Rebuild.
11013 * target.c (update_current_target): Don't inherit or default
11014 to_insert_hw_breakpoint.
11015 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11016 TARGET_DEFAULT_RETURN.
11018 2014-02-19 Tom Tromey <tromey@redhat.com>
11020 * target-delegates.c: Rebuild.
11021 * target.c (update_current_target): Don't inherit or default
11022 to_can_use_hw_breakpoint.
11023 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11024 TARGET_DEFAULT_RETURN.
11026 2014-02-19 Tom Tromey <tromey@redhat.com>
11028 * target-delegates.c: Rebuild.
11029 * target.c (update_current_target): Don't inherit or default
11031 * target.h (struct target_ops) <to_files_info>: Use
11032 TARGET_DEFAULT_IGNORE.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target-delegates.c: Rebuild.
11037 * target.c (update_current_target): Don't inherit or default
11039 * target.h (struct target_ops) <to_store>: Use
11040 TARGET_DEFAULT_NORETURN.
11042 2014-02-19 Tom Tromey <tromey@redhat.com>
11044 * target-delegates.c: Rebuild.
11045 * target.c (update_current_target): Don't inherit or default
11047 * target.h (struct target_ops) <to_post_attach>: Use
11048 TARGET_DEFAULT_IGNORE.
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11052 * target-delegates.c: Rebuild.
11053 * target.c (update_current_target): Don't inherit or default
11055 (default_rcmd): New function.
11056 (do_monitor_command): Unconditionally delegate.
11057 * target.h (struct target_ops) <to_rmcd>: Use
11058 TARGET_DEFAULT_FUNC.
11060 2014-02-19 Tom Tromey <tromey@redhat.com>
11062 * target-delegates.c: Rebuild.
11063 * target.c (init_dummy_target): Don't initialize to_attach.
11064 (target_attach): Unconditionally delegate.
11065 * target.h (struct target_ops) <to_attach>: Use
11066 TARGET_DEFAULT_FUNC.
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11070 * target-delegates.c: Rebuild.
11071 * target.c (target_detach): Unconditionally delegate.
11072 (init_dummy_target): Don't initialize to_detach.
11073 * target.h (struct target_ops) <to_detach>: Use
11074 TARGET_DEFAULT_IGNORE.
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11080 (target_augmented_libraries_svr4_read): Add argument.
11081 * target.c (update_current_target): Update.
11082 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11085 2014-02-19 Tom Tromey <tromey@redhat.com>
11087 * target.h (struct target_ops) <to_call_history_range>: Add
11089 * target.c (target_call_history_range): Add argument.
11090 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11092 (record_btrace_call_history_from): Update.
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11096 * target.h (struct target_ops) <to_call_history_from>: Add
11098 * target.c (target_call_history_from): Add argument.
11099 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11104 * target.h (struct target_ops) <to_call_history>: Add argument.
11105 * target.c (target_call_history): Add argument.
11106 * record-btrace.c (record_btrace_call_history): Add 'self'
11109 2014-02-19 Tom Tromey <tromey@redhat.com>
11111 * target.h (struct target_ops) <to_insn_history_range>: Add
11113 * target.c (target_insn_history_range): Add argument.
11114 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11116 (record_btrace_insn_history_from): Update.
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11120 * target.h (struct target_ops) <to_insn_history_from>: Add
11122 * target.c (target_insn_history_from): Add argument.
11123 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11128 * target.h (struct target_ops) <to_insn_history>: Add argument.
11129 * target.c (target_insn_history): Add argument.
11130 * record-btrace.c (record_btrace_insn_history): Add 'self'
11133 2014-02-19 Tom Tromey <tromey@redhat.com>
11135 * target.h (struct target_ops) <to_goto_record>: Add argument.
11136 * target.c (target_goto_record): Add argument.
11137 * record-full.c (record_full_goto): Add 'self' argument.
11138 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11140 2014-02-19 Tom Tromey <tromey@redhat.com>
11142 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11143 * target.c (target_goto_record_end): Add argument.
11144 * record-full.c (record_full_goto_end): Add 'self' argument.
11145 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11147 2014-02-19 Tom Tromey <tromey@redhat.com>
11149 * target.h (struct target_ops) <to_goto_record_begin>: Add
11151 * target.c (target_goto_record_begin): Add argument.
11152 * record-full.c (record_full_goto_begin): Add 'self' argument.
11153 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11156 2014-02-19 Tom Tromey <tromey@redhat.com>
11158 * target.h (struct target_ops) <to_record_is_replaying>: Add
11160 * target.c (target_record_is_replaying): Add argument.
11161 * record-full.c (record_full_is_replaying): Add 'self' argument.
11162 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11164 (record_btrace_xfer_partial, record_btrace_store_registers)
11165 (record_btrace_prepare_to_store, record_btrace_resume)
11166 (record_btrace_wait, record_btrace_decr_pc_after_break)
11167 (record_btrace_find_new_threads, record_btrace_thread_alive):
11170 2014-02-19 Tom Tromey <tromey@redhat.com>
11172 * target.h (struct target_ops) <to_delete_record>: Add argument.
11173 * target.c (target_delete_record): Add argument.
11174 * record-full.c (record_full_delete): Add 'self' argument.
11176 2014-02-19 Tom Tromey <tromey@redhat.com>
11178 * target.h (struct target_ops) <to_save_record>: Add argument.
11179 * target.c (target_save_record): Add argument.
11180 * record-full.c (record_full_save): Add 'self' argument.
11181 (record_full_save): Add 'self' argument.
11183 2014-02-19 Tom Tromey <tromey@redhat.com>
11185 * target.h (struct target_ops) <to_info_record>: Add argument.
11186 * target.c (target_info_record): Add argument.
11187 * record.c (info_record_command): Add argument.
11188 * record-full.c (record_full_info): Add 'self' argument.
11189 * record-btrace.c (record_btrace_info): Add 'self' argument.
11191 2014-02-19 Tom Tromey <tromey@redhat.com>
11193 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11194 * target.c (target_stop_recording): Add argument.
11195 * record.c (record_stop): Add argument.
11196 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11199 2014-02-19 Tom Tromey <tromey@redhat.com>
11201 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11202 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11203 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11205 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11206 (_initialize_amd64_linux_nat): Use it.
11207 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11208 (_initialize_i386_linux_nat): Use it.
11210 2014-02-19 Tom Tromey <tromey@redhat.com>
11212 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11213 * target.c (target_teardown_btrace): Add argument.
11214 * remote.c (remote_teardown_btrace): Add 'self' argument.
11215 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11217 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11222 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11223 * target.c (target_disable_btrace): Add argument.
11224 * remote.c (remote_disable_btrace): Add 'self' argument.
11225 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11227 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11232 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11233 * target.c (target_enable_btrace): Add argument.
11234 * remote.c (remote_enable_btrace): Add 'self' argument.
11235 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11237 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11240 2014-02-19 Tom Tromey <tromey@redhat.com>
11242 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11243 (target_can_use_agent): Add argument.
11244 * target.c (update_current_target): Update.
11245 * remote.c (remote_can_use_agent): Add 'self' argument.
11246 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11248 2014-02-19 Tom Tromey <tromey@redhat.com>
11250 * target.h (struct target_ops) <to_use_agent>: Add argument.
11251 (target_use_agent): Add argument.
11252 * target.c (update_current_target): Update.
11253 * remote.c (remote_use_agent): Add 'self' argument.
11254 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11256 2014-02-19 Tom Tromey <tromey@redhat.com>
11258 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11259 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11260 (target_traceframe_info): Add argument.
11261 * target.c (update_current_target): Update.
11262 * remote.c (remote_traceframe_info): Add 'self' argument.
11263 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11265 2014-02-19 Tom Tromey <tromey@redhat.com>
11267 * target.h (target_static_tracepoint_markers_by_strid): Add
11269 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11271 * target.c (update_current_target): Update.
11272 * remote.c (struct target_ops)
11273 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11274 * linux-nat.c (struct target_ops)
11275 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11277 2014-02-19 Tom Tromey <tromey@redhat.com>
11279 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11281 (target_static_tracepoint_marker_at): Add argument.
11282 * target.c (update_current_target): Update.
11283 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11288 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11289 (target_set_permissions): Add argument.
11290 * target.c (update_current_target): Update.
11291 * remote.c (remote_set_permissions): Add 'self' argument.
11292 (remote_start_remote): Update.
11294 2014-02-19 Tom Tromey <tromey@redhat.com>
11296 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11297 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11298 (target_get_tib_address): Add argument.
11299 * target.c (update_current_target): Update.
11300 * remote.c (remote_get_tib_address): Add 'self' argument.
11302 2014-02-19 Tom Tromey <tromey@redhat.com>
11304 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11305 (target_set_trace_notes): Add argument.
11306 * target.c (update_current_target): Update.
11307 * remote.c (remote_set_trace_notes): Add 'self' argument.
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11311 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11313 (target_set_trace_buffer_size): Add argument.
11314 * target.c (update_current_target): Update.
11315 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11321 (target_set_circular_trace_buffer): Add argument.
11322 * target.c (update_current_target): Update.
11323 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11328 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11330 (target_set_disconnected_tracing): Add argument.
11331 * target.c (update_current_target): Update.
11332 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11336 * target.h (struct target_ops)
11337 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11338 (target_get_min_fast_tracepoint_insn_len): Add argument.
11339 * target.c (update_current_target): Update.
11340 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11345 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11347 (target_get_raw_trace_data): Add argument.
11348 * target.c (update_current_target): Update.
11349 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11353 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11355 (target_upload_trace_state_variables): Add argument.
11356 * target.c (update_current_target): Update.
11357 * remote.c (remote_upload_trace_state_variables): Add 'self'
11359 (remote_start_remote): Update.
11361 2014-02-19 Tom Tromey <tromey@redhat.com>
11363 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11365 (target_upload_tracepoints): Add argument.
11366 * target.c (update_current_target): Update.
11367 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11368 (remote_start_remote): Update.
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11372 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11373 (target_save_trace_data): Add argument.
11374 * target.c (update_current_target): Update.
11375 * remote.c (remote_save_trace_data): Add 'self' argument.
11377 2014-02-19 Tom Tromey <tromey@redhat.com>
11379 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11381 * target.h (struct target_ops)
11382 <to_get_trace_state_variable_value>: Add argument.
11383 (target_get_trace_state_variable_value): Add argument.
11384 * target.c (update_current_target): Update.
11385 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11387 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11391 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11392 * target.h (struct target_ops) <to_trace_find>: Add argument.
11393 (target_trace_find): Add argument.
11394 * target.c (update_current_target): Update.
11395 * remote.c (remote_trace_find): Add 'self' argument.
11396 * ctf.c (ctf_trace_find): Add 'self' argument.
11398 2014-02-19 Tom Tromey <tromey@redhat.com>
11400 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11401 (target_trace_stop): Add argument.
11402 * target.c (update_current_target): Update.
11403 * remote.c (remote_trace_stop): Add 'self' argument.
11405 2014-02-19 Tom Tromey <tromey@redhat.com>
11407 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11408 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11410 (target_get_tracepoint_status): Add argument.
11411 * target.c (update_current_target): Update.
11412 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11416 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11417 * target.h (struct target_ops) <to_get_trace_status>: Add
11419 (target_get_trace_status): Add argument.
11420 * target.c (update_current_target): Update.
11421 * remote.c (remote_get_trace_status): Add 'self' argument.
11422 (remote_start_remote, remote_can_download_tracepoint): Update.
11423 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11427 * target.h (struct target_ops) <to_trace_start>: Add argument.
11428 (target_trace_start): Add argument.
11429 * target.c (update_current_target): Update.
11430 * remote.c (remote_trace_start): Add 'self' argument.
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11434 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11436 (target_trace_set_readonly_regions): Add argument.
11437 * target.c (update_current_target): Update.
11438 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11441 2014-02-19 Tom Tromey <tromey@redhat.com>
11443 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11445 (target_disable_tracepoint): Add argument.
11446 * target.c (update_current_target): Update.
11447 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11449 2014-02-19 Tom Tromey <tromey@redhat.com>
11451 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11453 (target_enable_tracepoint): Add argument.
11454 * target.c (update_current_target): Update.
11455 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11459 * target.h (struct target_ops) <to_download_trace_state_variable>:
11461 (target_download_trace_state_variable): Add argument.
11462 * target.c (update_current_target): Update.
11463 * remote.c (remote_download_trace_state_variable): Add 'self'
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11468 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11470 (target_can_download_tracepoint): Add argument.
11471 * target.c (update_current_target): Update.
11472 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11476 * target.h (struct target_ops) <to_download_tracepoint>: Add
11478 (target_download_tracepoint): Add argument.
11479 * target.c (update_current_target): Update.
11480 * remote.c (remote_download_tracepoint): Add 'self' argument.
11482 2014-02-19 Tom Tromey <tromey@redhat.com>
11484 * target.h (struct target_ops) <to_trace_init>: Add argument.
11485 (target_trace_init): Add argument.
11486 * target.c (update_current_target): Update.
11487 * remote.c (remote_trace_init): Add 'self' argument.
11489 2014-02-19 Tom Tromey <tromey@redhat.com>
11491 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11492 * target.c (target_fileio_readlink): Add argument.
11493 * remote.c (remote_hostio_readlink): Add 'self' argument.
11494 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11499 * target.c (target_fileio_unlink): Add argument.
11500 * remote.c (remote_hostio_unlink): Add 'self' argument.
11501 (remote_file_delete): Update.
11502 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11506 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11507 * target.c (target_fileio_close): Add argument.
11508 * remote.c (remote_hostio_close): Add 'self' argument.
11509 (remote_hostio_close_cleanup): Update.
11510 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11512 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11517 * target.c (target_fileio_pread): Add argument.
11518 * remote.c (remote_hostio_pread): Add 'self' argument.
11519 (remote_bfd_iovec_pread, remote_file_get): Update.
11520 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11524 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11525 * target.c (target_fileio_pwrite): Add argument.
11526 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11527 (remote_file_put): Update.
11528 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11530 2014-02-19 Tom Tromey <tromey@redhat.com>
11532 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11533 * target.c (target_fileio_open): Add argument.
11534 * remote.c (remote_hostio_open): Add 'self' argument.
11535 (remote_bfd_iovec_open): Add 'self' argument.
11536 (remote_file_put): Add 'self' argument.
11537 (remote_file_get): Add 'self' argument.
11538 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11542 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11544 (target_can_run_breakpoint_commands): Add argument.
11545 * target.c (update_current_target): Update.
11546 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11548 (remote_insert_breakpoint): Add 'self' argument.
11549 (remote_insert_hw_breakpoint): Add 'self' argument.
11550 (remote_can_run_breakpoint_commands): Add 'self' argument.
11552 2014-02-19 Tom Tromey <tromey@redhat.com>
11554 * target.h (struct target_ops)
11555 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11556 (target_supports_evaluation_of_breakpoint_conditions): Add
11558 * target.c (update_current_target): Update.
11559 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11561 (remote_insert_breakpoint): Add 'self' argument.
11562 (remote_insert_hw_breakpoint): Add 'self' argument.
11563 (remote_supports_cond_breakpoints): Add 'self' argument.
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11567 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11569 (target_supports_string_tracing): Add argument.
11570 * target.c (update_current_target): Update.
11571 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11573 2014-02-19 Tom Tromey <tromey@redhat.com>
11575 * target.h (struct target_ops)
11576 <to_supports_disable_randomization>: Add argument.
11577 * target.c (find_default_supports_disable_randomization): Add
11579 (target_supports_disable_randomization): Add argument.
11580 (find_default_supports_disable_randomization): Add 'self'
11582 * remote.c (extended_remote_supports_disable_randomization): Add
11584 (remote_supports_disable_randomization): Add 'self' argument.
11585 (extended_remote_create_inferior): Update.
11586 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11589 2014-02-19 Tom Tromey <tromey@redhat.com>
11591 * target.h (struct target_ops)
11592 <to_supports_enable_disable_tracepoint>: Add argument.
11593 (target_supports_enable_disable_tracepoint): Add argument.
11594 * target.c (update_current_target): Update.
11595 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11600 * target.h (struct target_ops) <to_supports_multi_process>: Add
11602 (target_supports_multi_process): Add argument.
11603 * target.c (update_current_target): Update.
11604 * remote.c (remote_supports_multi_process): Add 'self' argument.
11605 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11607 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11610 2014-02-19 Tom Tromey <tromey@redhat.com>
11612 * target.h (struct target_ops) <to_execution_direction>: Add
11614 (target_execution_direction): Add argument.
11615 * target.c (default_execution_direction): Add 'self' argument.
11616 * record-full.c (record_full_execution_direction): Add 'self'
11619 2014-02-19 Tom Tromey <tromey@redhat.com>
11621 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11623 (target_can_execute_reverse): Add argument.
11624 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11625 * record-full.c (record_full_can_execute_reverse): Add 'self'
11627 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11630 2014-02-19 Tom Tromey <tromey@redhat.com>
11632 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11633 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11635 (target_get_ada_task_ptid): Add argument.
11636 * target.c (update_current_target): Update.
11637 (default_get_ada_task_ptid): Add 'self' argument.
11638 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11639 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11640 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11642 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11644 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11646 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11648 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11649 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11652 2014-02-19 Tom Tromey <tromey@redhat.com>
11654 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11655 (target_goto_bookmark): Add argument.
11656 * target.c (dummy_goto_bookmark): Add 'self' argument.
11657 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11661 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11662 (target_get_bookmark): Add argument.
11663 * target.c (dummy_get_bookmark): Add 'self' argument.
11664 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11666 2014-02-19 Tom Tromey <tromey@redhat.com>
11668 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11670 (target_make_corefile_notes): Add argument.
11671 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11672 * procfs.c (procfs_make_note_section): Add 'self' argument.
11673 (procfs_make_note_section): Add 'self' argument.
11674 (procfs_make_note_section): Add 'self' argument.
11675 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11677 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11678 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11679 * exec.c (exec_make_note_section): Add 'self' argument.
11680 (exec_make_note_section): Add 'self' argument.
11682 2014-02-19 Tom Tromey <tromey@redhat.com>
11684 * target.h (struct target_ops) <to_find_memory_regions>: Add
11686 (target_find_memory_regions): Add argument.
11687 * target.c (dummy_find_memory_regions): Add 'self' argument.
11688 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11689 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11690 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11691 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11692 * exec. (exec_do_find_memory_regions): New global.
11693 (exec_set_find_memory_regions): Rewrite.
11694 (exec_find_memory_regions): New function.
11695 (init_exec_ops): Use exec_find_memory_regions.
11697 2014-02-19 Tom Tromey <tromey@redhat.com>
11699 * target.h (struct target_ops) <to_supports_non_stop>: Add
11701 * target.c (find_default_supports_non_stop): Add argument.
11702 (target_supports_non_stop): Add argument.
11703 (find_default_supports_non_stop): Add 'self' argument.
11704 * remote.c (remote_supports_non_stop): Add 'self' argument.
11705 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11709 * target.h (struct target_ops) <to_log_command>: Add argument.
11710 (target_log_command): Add argument.
11711 * serial.h (serial_log_command): Add 'self' argument.
11712 * serial.c (serial_log_command): Add 'self' argument.
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11716 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11717 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11719 (target_pid_to_exec_file): Add argument.
11720 * target.c (debug_to_pid_to_exec_file): Add argument.
11721 (update_current_target): Update.
11722 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11723 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11724 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11725 (linux_handle_extended_wait): Update.
11726 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11727 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11728 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11729 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11733 * target.h (struct target_ops) <to_rcmd>: Add argument.
11734 (target_rcmd): Add argument.
11735 * target.c (debug_to_rcmd): Add argument.
11736 (update_current_target, do_monitor_command): Update.
11737 * remote.c (remote_rcmd): Add 'self' argument.
11738 * monitor.c (monitor_rcmd): Add 'self' argument.
11740 2014-02-19 Tom Tromey <tromey@redhat.com>
11742 * windows-nat.c (windows_stop): Add 'self' argument.
11743 * target.h (struct target_ops) <to_stop>: Add argument.
11744 * target.c (target_stop): Add argument.
11745 (debug_to_stop): Add argument.
11746 (update_current_target): Update.
11747 * remote.c (remote_stop): Add 'self' argument.
11748 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11749 (gdbsim_cntrl_c): Update.
11750 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11751 * procfs.c (procfs_stop): Add 'self' argument.
11752 * nto-procfs.c (procfs_stop): Add 'self' argument.
11753 * monitor.c (monitor_stop): Add 'self' argument.
11754 (monitor_open): Update.
11755 * linux-nat.c (linux_nat_stop): Add argument.
11756 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11757 * gnu-nat.c (gnu_stop): Add 'self' argument.
11758 * darwin-nat.c (darwin_stop): Add 'self' argument.
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11762 * target.h (struct target_ops) <to_thread_name>: Add argument.
11763 * target.c (target_thread_name): Add argument.
11764 (update_current_target): Update.
11765 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11767 2014-02-19 Tom Tromey <tromey@redhat.com>
11769 * target.h (struct target_ops) <to_extra_thread_info>: Add
11771 (target_extra_thread_info): Add argument.
11772 * target.c (update_current_target): Update.
11773 * remote.c (remote_threads_extra_info): Add 'self' argument.
11774 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11776 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11777 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11778 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11780 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11782 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11784 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11789 * target.h (struct target_ops) <to_program_signals>: Add argument.
11790 * target.c (target_program_signals): Add argument.
11791 * remote.c (remote_program_signals): Add 'self' argument.
11793 2014-02-19 Tom Tromey <tromey@redhat.com>
11795 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11796 * target.c (target_pass_signals): Add argument.
11797 * remote.c (remote_pass_signals): Add 'self' argument.
11798 (remote_start_remote): Update.
11799 * procfs.c (procfs_pass_signals): Add 'self' argument.
11800 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11801 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11802 (linux_nat_create_inferior, linux_nat_attach): Update.
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11806 * windows-nat.c (windows_can_run): Add 'self' argument.
11807 * target.h (struct target_ops) <to_can_run>: Add argument.
11808 (target_can_run): Add argument.
11809 * target.c (debug_to_can_run): Add argument.
11810 (update_current_target): Update.
11811 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11812 * inf-child.c (inf_child_can_run): Add 'self' argument.
11813 * go32-nat.c (go32_can_run): Add 'self' argument.
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11817 * target.h (struct target_ops) <to_has_exited>: Add argument.
11818 (target_has_exited): Add argument.
11819 * target.c (debug_to_has_exited): Add argument.
11820 (update_current_target): Update.
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11824 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11826 (target_set_syscall_catchpoint): Add argument.
11827 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11829 * target.c (update_current_target): Update.
11831 2014-02-19 Tom Tromey <tromey@redhat.com>
11833 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11835 (target_remove_exec_catchpoint): Add argument.
11836 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11837 (update_current_target): Update.
11838 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11843 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11845 (target_insert_exec_catchpoint): Add argument.
11846 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11847 (update_current_target): Update.
11848 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11851 2014-02-19 Tom Tromey <tromey@redhat.com>
11853 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11855 (target_remove_vfork_catchpoint): Add argument.
11856 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11857 (update_current_target): Update.
11858 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11861 2014-02-19 Tom Tromey <tromey@redhat.com>
11863 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11865 (target_insert_vfork_catchpoint): Add argument.
11866 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11867 (update_current_target): Update.
11868 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11873 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11875 (target_remove_fork_catchpoint): Add argument.
11876 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11877 (update_current_target): Update.
11878 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11881 2014-02-19 Tom Tromey <tromey@redhat.com>
11883 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11885 (target_insert_fork_catchpoint): Add argument.
11886 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11887 (update_current_target): Update.
11888 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11893 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11895 (target_post_startup_inferior): Add argument.
11896 * target.c (debug_to_post_startup_inferior): Add argument.
11897 (update_current_target): Update.
11898 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11900 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11902 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11904 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11906 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11908 (super_post_startup_inferior): Likewise.
11909 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11911 (super_post_startup_inferior): Likewise.
11912 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11913 Add 'self' argument.
11914 (super_post_startup_inferior): Likewise.
11916 2014-02-19 Tom Tromey <tromey@redhat.com>
11918 * target.h (struct target_ops) <to_load>: Add argument.
11919 * target.c (target_load): Add argument.
11920 (debug_to_load): Add argument.
11921 (update_current_target): Update.
11922 * remote.c (remote_load): Add 'self' argument.
11923 * remote-sim.c (gdbsim_load): Add 'self' argument.
11924 * remote-mips.c (mips_load): Add 'self' argument.
11925 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11926 * monitor.c (monitor_load): Add 'self' argument.
11927 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11929 2014-02-19 Tom Tromey <tromey@redhat.com>
11931 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11932 (target_terminal_info): Add argument.
11933 * target.c (debug_to_terminal_info): Add argument.
11934 (default_terminal_info): Likewise.
11935 * inflow.c (child_terminal_info): Add 'self' argument.
11936 * inferior.h (child_terminal_info): Add 'self' argument.
11937 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11939 2014-02-19 Tom Tromey <tromey@redhat.com>
11941 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11943 (target_terminal_save_ours): Add argument.
11944 * target.c (debug_to_terminal_save_ours): Add argument.
11945 (update_current_target): Update.
11946 * inflow.c (terminal_save_ours): Add 'self' argument.
11947 * inferior.h (terminal_save_ours): Add 'self' argument.
11949 2014-02-19 Tom Tromey <tromey@redhat.com>
11951 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11952 (target_terminal_ours): Add argument.
11953 * target.c (debug_to_terminal_ours): Add argument.
11954 (update_current_target): Update.
11955 * remote.c (remote_terminal_ours): Add 'self' argument.
11956 (remote_close): Update.
11957 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11958 * inflow.c (terminal_ours): Add 'self' argument.
11959 * inferior.h (terminal_ours): Add 'self' argument.
11960 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11962 2014-02-19 Pedro Alves <palves@redhat.com>
11963 Tom Tromey <tromey@redhat.com>
11965 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11967 (target_terminal_ours_for_output): Add argument.
11968 * target.c (debug_to_terminal_ours_for_output): Add argument.
11969 (update_current_target): Update.
11970 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11971 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11972 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11974 2014-02-19 Tom Tromey <tromey@redhat.com>
11976 * target.h (struct target_ops) <to_terminal_inferior>: Add
11978 * target.c (target_terminal_inferior): Add argument.
11979 (update_current_target): Update.
11980 * remote.c (remote_terminal_inferior): Add 'self' argument.
11981 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11982 * inflow.c (terminal_inferior): Add 'self' argument.
11983 * inferior.h (terminal_inferior): Add 'self' argument.
11984 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11985 (go32_terminal_inferior): Add 'self' argument.
11987 2014-02-19 Tom Tromey <tromey@redhat.com>
11989 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11990 (target_terminal_init): Add argument.
11991 * target.c (debug_to_terminal_init): Add argument.
11992 (update_current_target): Update.
11993 * inflow.c (terminal_init_inferior): Add 'self' argument.
11994 * inferior.h (terminal_init_inferior): Add 'self' argument.
11995 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11996 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11998 2014-02-19 Tom Tromey <tromey@redhat.com>
12000 * target.h (struct target_ops)
12001 <to_can_accel_watchpoint_condition>: Add argument.
12002 (target_can_accel_watchpoint_condition): Add argument.
12003 * target.c (debug_to_can_accel_watchpoint_condition): Add
12005 (update_current_target): Update.
12006 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12009 2014-02-19 Tom Tromey <tromey@redhat.com>
12011 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12013 (target_region_ok_for_hw_watchpoint): Add argument.
12014 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12015 (default_region_ok_for_hw_watchpoint): Add argument.
12016 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12017 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12019 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12021 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12023 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12025 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12027 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12029 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12030 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12032 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12033 Add 'self' argument.
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12037 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12039 (target_insert_watchpoint): Add argument.
12040 * target.c (debug_to_insert_watchpoint): Add argument.
12041 (update_current_target): Update.
12042 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12043 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12044 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12045 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12046 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12047 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12049 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12050 (procfs_insert_hw_watchpoint): Add 'self' argument.
12051 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12053 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12055 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12057 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12058 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12060 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12065 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12067 (target_remove_watchpoint): Add argument.
12068 * target.c (debug_to_remove_watchpoint): Add argument.
12069 (update_current_target): Update.
12070 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12071 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12072 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12073 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12074 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12075 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12077 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12078 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12080 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12082 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12084 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12085 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12087 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12092 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12094 (target_remove_hw_breakpoint): Add argument.
12095 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12096 (update_current_target): Update.
12097 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12098 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12100 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12101 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12103 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12108 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12110 (target_insert_hw_breakpoint): Add argument.
12111 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12112 (update_current_target): Update.
12113 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12114 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12116 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12117 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12118 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12120 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12125 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12127 (target_can_use_hardware_watchpoint): Add argument.
12128 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12129 (update_current_target): Update.
12130 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12132 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12134 * remote.c (remote_check_watch_resources): Add 'self' argument.
12135 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12136 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12138 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12139 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12141 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12143 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12145 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12147 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12149 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12151 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12152 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12154 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12157 2014-02-19 Tom Tromey <tromey@redhat.com>
12159 * target.h (struct target_ops) <to_post_attach>: Add argument.
12160 (target_post_attach): Add argument.
12161 * target.c (debug_to_post_attach): Add argument.
12162 (update_current_target): Update.
12163 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12164 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12165 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12166 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12167 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12171 * windows-nat.c (windows_close): Add 'self' argument.
12172 * tracepoint.c (tfile_close): Add 'self' argument.
12173 * target.h (struct target_ops) <to_close>: Add argument.
12174 * target.c (target_close): Add argument.
12175 (update_current_target): Update.
12176 * remote.c (remote_close): Add 'self' argument.
12177 * remote-sim.c (gdbsim_close): Add 'self' argument.
12178 * remote-mips.c (mips_close): Add 'self' argument.
12179 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12180 * record-full.c (record_full_close): Add 'self' argument.
12181 * record-btrace.c (record_btrace_close): Add 'self' argument.
12182 * monitor.h (monitor_close): Add 'self' argument.
12183 * monitor.c (monitor_close): Add 'self' argument.
12184 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12185 * linux-nat.c (linux_nat_close): Add argument.
12186 * go32-nat.c (go32_close): Add 'self' argument.
12187 * exec.c (exec_close_1): Add 'self' argument.
12188 * ctf.c (ctf_close): Add 'self' argument.
12189 * corelow.c (core_close): Add 'self' argument.
12190 (core_close_cleanup): Update.
12191 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12192 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12194 2014-02-19 Tom Tromey <tromey@redhat.com>
12196 * remote.c (remote_load): New function.
12197 (init_remote_ops): Use it.
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12201 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12203 * common/linux-btrace.h (linux_supports_btrace): Update.
12204 * remote.c (remote_supports_btrace): Add "self" argument.
12205 * target-delegates.c: Rebuild.
12206 * target.c (target_supports_btrace): Remove.
12207 * target.h (struct target_ops) <to_supports_btrace>: Add
12208 target_ops argument.
12209 (target_supports_btrace): New define.
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12213 * record-full.c (record_full_beneath_to_resume_ops)
12214 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12215 (record_full_beneath_to_wait)
12216 (record_full_beneath_to_store_registers_ops)
12217 (record_full_beneath_to_store_registers)
12218 (record_full_beneath_to_xfer_partial_ops)
12219 (record_full_beneath_to_xfer_partial)
12220 (record_full_beneath_to_insert_breakpoint_ops)
12221 (record_full_beneath_to_insert_breakpoint)
12222 (record_full_beneath_to_remove_breakpoint_ops)
12223 (record_full_beneath_to_remove_breakpoint)
12224 (record_full_beneath_to_stopped_by_watchpoint)
12225 (record_full_beneath_to_stopped_data_address)
12226 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12227 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12228 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12229 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12230 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12231 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12232 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12233 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12234 (record_full_resume, record_full_wait_1)
12235 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12236 (record_full_store_registers, record_full_xfer_partial)
12237 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12238 (record_full_async, record_full_core_xfer_partial): Use target
12240 * target-delegates.c: Rebuild.
12241 * target.c (current_xfer_partial): Remove.
12242 (update_current_target): Do not INHERIT or de_fault
12243 to_insert_breakpoint, to_remove_breakpoint,
12244 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12245 to_is_async_p, to_async. Do not set to_xfer_partial field.
12246 (default_xfer_partial): Simplify.
12247 (current_xfer_partial): Remove.
12248 (target_wait, target_resume): Simplify.
12249 (find_default_can_async_p, find_default_is_async_p): Update.
12250 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12251 to_xfer_partial, to_stopped_by_watchpoint,
12252 to_stopped_data_address.
12253 (target_store_registers): Simplify.
12254 (forward_target_remove_breakpoint)
12255 (forward_target_insert_breakpoint): Remove.
12256 (target_remove_breakpoint, target_insert_breakpoint)
12257 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12258 * target.h (struct target_ops) <to_resume, to_wait,
12259 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12260 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12261 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12263 (forward_target_remove_breakpoint)
12264 (forward_target_insert_breakpoint): Remove.
12265 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12267 (record_btrace_insert_breakpoint): Delegate directly.
12269 2014-02-19 Tom Tromey <tromey@redhat.com>
12272 * target-delegates.c: New file.
12273 * target.c: Include target-delegates.c.
12274 (init_dummy_target): Call install_dummy_methods.
12275 (complete_target_initialization): Call install_delegators.
12276 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12277 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12278 * make-target-delegates: New file.
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12282 * record.c (find_record_target): Use find_target_at.
12283 * target.c (find_target_at): New function.
12284 * target.h (find_target_at): Declare.
12286 2014-02-19 Tom Tromey <tromey@redhat.com>
12288 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12289 Add 'ops' argument.
12290 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12292 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12293 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12295 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12297 * linux-nat.c (save_sigtrap): Update.
12298 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12299 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12300 (linux_nat_close): Update.
12301 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12303 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12305 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12306 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12307 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12308 (tmp_to_async): Add 'ops' argument.
12309 (record_full_stopped_by_watchpoint, record_full_async)
12310 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12312 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12313 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12314 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12315 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12316 (remote_is_async_p, remote_async): Add 'ops' argument.
12317 (remote_stopped_data_address): Update.
12318 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12319 * target.c (update_current_target)
12320 (find_default_can_async_p, find_default_is_async_p): Update.
12321 (init_dummy_target): Update.
12322 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12323 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12324 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12325 (target_can_async_p, target_is_async_p, target_async)
12326 (target_stopped_by_watchpoint): Update.
12328 2014-02-19 Yao Qi <yao@codesourcery.com>
12331 * gdbarch.sh: Remove startup_gdbarch.
12332 * gdbarch.c: Regenerated.
12333 * gdbarch.h: Likewise.
12335 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12337 * rl78-tdep.c (rl78_g10_register_name): New function.
12338 (rl78_return_value): Add g10 support.
12339 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12342 2014-02-17 Doug Evans <xdje42@gmail.com>
12344 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12345 (SUBDIR_GUILE_SRCS): Ditto.
12346 (scm-gsmob.o): Ditto.
12348 2014-02-17 Yao Qi <yao@codesourcery.com>
12350 * gnu-nat.c (ILL_RPC): Declare defined function.
12352 2014-02-17 Yao Qi <yao@codesourcery.com>
12354 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12355 mach_msg_type_number_t.
12356 (gnu_write_inferior): Likewise.
12358 2014-02-17 Yao Qi <yao@codesourcery.com>
12360 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12362 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12363 (inf_validate_procs, inf_signal): Likewise.
12364 (S_exception_raise_request): Likewise.
12365 (do_mach_notify_dead_name): Likewise.
12366 (steal_exc_port): Likewise.
12367 (gnu_read_inferior): Change 'copy_count''s type to
12368 mach_msg_type_number_t.
12369 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12372 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12374 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12375 flag. Adjust all users; in particular...
12376 (gnu_wait): ..., don't decrement its value in here...
12377 (gnu_create_inferior): ..., and instead set the flag in here,
12378 around the startup_inferior call, and call that one with
12379 START_INFERIOR_TRAPS_EXPECTED.
12381 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12382 (ILL_RPC): ... new macro.
12383 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12384 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12385 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12386 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12387 functions with ILL_RPC macro.
12388 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12389 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12390 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12391 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12392 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12393 (S_proc_getlogin_reply, S_proc_getsid_reply)
12394 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12395 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12396 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12397 (S_proc_getnports_reply, S_proc_is_important_reply)
12398 (S_proc_get_code_reply): New stub functions, generated with
12401 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12402 collected the type check structures.
12404 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12406 2014-02-14 Doug Evans <dje@google.com>
12408 * target.c (target_write_partial): Fix result type.
12410 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12412 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12413 the proper offsets to access fpregset_t.
12415 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12417 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12418 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12419 * h8300-tdep.c (setmachinelist): Remove global.
12420 * hppa-tdep.c (hppa_sigtramp): Remove global.
12421 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12422 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12423 * ravenscar-thread.c (update_target_observer): Remove global.
12424 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12426 2014-02-12 Tom Tromey <tromey@redhat.com>
12428 * common/rsp-low.c: Update comments.
12429 * common/rsp-low.h: Update comments.
12431 2014-02-12 Tom Tromey <tromey@redhat.com>
12433 * common/rsp-low.c (convert_ascii_to_int): Remove.
12434 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12436 2014-02-12 Tom Tromey <tromey@redhat.com>
12438 * common/rsp-low.h (unhexify): Don't declare.
12439 * common/rsp-low.c (unhexify): Remove.
12441 2014-02-12 Tom Tromey <tromey@redhat.com>
12443 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12444 * common/rsp-low.c (convert_int_to_ascii): Remove.
12446 2014-02-12 Tom Tromey <tromey@redhat.com>
12448 * common/rsp-low.h (hexify): Don't declare.
12449 * common/rsp-low.c (hexify): Remove.
12451 2014-02-12 Tom Tromey <tromey@redhat.com>
12453 * common/rsp-low.c (hexify): Never take strlen of argument.
12455 2014-02-12 Tom Tromey <tromey@redhat.com>
12457 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12458 * remote.c (extended_remote_run, remote_rcmd)
12459 (remote_download_trace_state_variable, remote_save_trace_data)
12460 (remote_set_trace_notes): Update.
12461 * tracepoint.c (encode_source_string, tfile_write_status)
12462 (tfile_write_uploaded_tsv): Update.
12464 2014-02-12 Tom Tromey <tromey@redhat.com>
12466 * tracepoint.c: Include rsp-low.h.
12467 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12468 * remote.c: Include rsp-low.h.
12469 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12470 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12471 (remote_unescape_input): Move to common/rsp-low.c.
12472 * common/rsp-low.h: New file.
12473 * common/rsp-low.c: New file.
12474 * Makefile.in (SFILES): Add common/rsp-low.c.
12475 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12476 (COMMON_OBS): Add rsp-low.o.
12477 (rsp-low.o): New target.
12479 2014-02-12 Tom Tromey <tromey@redhat.com>
12481 * utils.h: Include print-utils.h.
12482 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12483 (int_string, core_addr_to_string, core_addr_to_string_nz)
12484 (hex_string, hex_string_custom): Don't declare.
12485 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12486 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12487 (hex_string_custom, int_string, core_addr_to_string)
12488 (core_addr_to_string_nz, host_address_to_string): Move to
12489 common/print-utils.c.
12490 * common/print-utils.h: New file.
12491 * common/print-utils.c: New file
12492 * Makefile.in (SFILES): Add common/print-utils.c.
12493 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12494 (COMMON_OBS): Add print-utils.o.
12495 (print-utils.o): New target.
12497 2014-02-12 Tom Tromey <tromey@redhat.com>
12499 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12501 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12503 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12505 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12507 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12508 if a PT_IO ptrace request returns sucessfully but indicates that 0
12509 bytes were transferred.
12511 2014-02-12 Pedro Alves <palves@redhat.com>
12512 Kevin Buettner <kevinb@redhat.com>
12514 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12515 TYPE_INSTANCE_FLAG_CODE_SPACE.
12517 2014-02-12 Pedro Alves <palves@redhat.com>
12519 * h8300-tdep.c (pseudo_from_raw_register)
12520 (raw_from_pseudo_register): New functions.
12521 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12524 2014-02-12 Pedro Alves <palves@redhat.com>
12526 * h8300-tdep.c (h8300_register_sim_regno): New function.
12527 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12528 gdbarch_register_sim_regno hook.
12530 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12532 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12534 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12536 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12538 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12540 * obsd-tdep.h (obsd_init_abi): New prototype.
12541 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12542 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12543 (obsd_init_abi): New functions.
12544 * i386obsd-tdep.c: Include "obsd-tdep.h".
12545 (i386obsd_init_abi): Call obsd_init_abi.
12546 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12547 (amd64obsd_init_abi): Call obsd_init_abi.
12548 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12549 obsd-tdep.c to gdb_target_obs.
12551 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12553 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12554 double float arguments to 16-byte in the argument slots.
12556 2014-02-11 Doug Evans <xdje42@gmail.com>
12558 * configure.ac: Don't crash if pkg-config is not found and guile
12559 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12561 * configure: Regenerate.
12563 2014-02-11 Yao Qi <yao@codesourcery.com>
12565 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12566 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12567 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12568 * gnu-nat.c (gnu_xfer_memory): Likewise.
12569 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12570 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12571 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12572 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12574 2014-02-11 Yao Qi <yao@codesourcery.com>
12576 * target.h (enum target_xfer_error): Rename to ...
12577 (enum target_xfer_status): ... it. New. All users updated.
12578 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12580 (TARGET_XFER_STATUS_ERROR_P): New macro.
12581 (target_xfer_error_to_string): Remove declaration.
12582 (target_xfer_status_to_string): Declare.
12583 (target_xfer_partial_ftype): Adjust it.
12584 (struct target_ops) <to_xfer_partial>: Return
12585 target_xfer_status. Add argument xfered_len. Update
12587 * target.c (target_xfer_error_to_string): Rename to ...
12588 (target_xfer_status_to_string): ... it. New. All callers
12590 (target_read_live_memory): Likewise. Call target_xfer_partial
12591 instead of target_read.
12592 (memory_xfer_live_readonly_partial): Return
12593 target_xfer_status. Add argument xfered_len.
12594 (raw_memory_xfer_partial): Likewise.
12595 (memory_xfer_partial_1): Likewise.
12596 (memory_xfer_partial): Likewise.
12597 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12598 properly. Update debug message.
12599 (default_xfer_partial, current_xfer_partial): Likewise.
12600 (target_write_partial): Likewise.
12601 (target_read_partial): Likewise. All callers updated.
12602 (read_whatever_is_readable): Likewise.
12603 (target_write_with_progress): Likewise.
12604 (target_read_alloc_1): Likewise.
12606 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12607 * auxv.c (procfs_xfer_auxv): Likewise.
12608 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12609 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12610 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12611 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12612 * corefile.c (read_memory): Adjust.
12613 * corelow.c (core_xfer_partial): Likewise.
12614 * ctf.c (ctf_xfer_partial): Likewise.
12615 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12617 (darwin_xfer_partial): Likewise.
12618 * exec.c (section_table_xfer_memory_partial): Likewise. All
12620 (exec_xfer_partial): Likewise.
12621 * exec.h (section_table_xfer_memory_partial): Update
12623 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12625 (gnu_xfer_partial): Likewise.
12626 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12627 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12628 (ia64_hpux_xfer_solib_got): Likewise.
12629 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12630 type of 'partial_len' to ULONGEST.
12631 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12632 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12633 (linux_nat_xfer_partial): Likewise.
12634 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12635 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12636 * monitor.c (monitor_xfer_memory): Likewise.
12637 (monitor_xfer_partial): Likewise.
12638 * procfs.c (procfs_xfer_partial): Likewise.
12639 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12640 * record-full.c (record_full_xfer_partial): Likewise.
12641 (record_full_core_xfer_partial): Likewise.
12642 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12643 (gdbsim_xfer_partial): Likewise.
12644 * remote.c (remote_write_bytes_aux): Likewise. All callers
12646 (remote_write_bytes, remote_read_bytes): Likewise. All
12648 (remote_flash_erase): Likewise. All callers updated.
12649 (remote_write_qxfer): Likewise. All callers updated.
12650 (remote_read_qxfer): Likewise. All callers updated.
12651 (remote_xfer_partial): Likewise.
12652 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12653 (rs6000_xfer_shared_libraries): Likewise.
12654 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12655 (sol_thread_xfer_partial): Likewise.
12656 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12657 (sparc_xfer_partial): Likewise.
12658 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12660 (spu_xfer_partial): Likewise.
12661 * spu-multiarch.c (spu_xfer_partial): Likewise.
12662 * tracepoint.c (tfile_xfer_partial): Likewise.
12663 * windows-nat.c (windows_xfer_memory): Likewise.
12664 (windows_xfer_shared_libraries): Likewise.
12665 (windows_xfer_partial): Likewise.
12666 * valprint.c: Replace 'target_xfer_error' with
12667 'target_xfer_status' in comments.
12669 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12671 Checked in by Joel Brobecker <brobecker@adacore.com>.
12672 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12674 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12676 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12677 function parameters.
12679 2014-02-10 Will Newton <will.newton@linaro.org>
12681 * elfread.c (elf_rel_plt_read): Look for a .got section if
12682 looking up .got.plt fails.
12683 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12684 on address passed to elf_gnu_ifunc_record_cache.
12685 (elf_gnu_ifunc_resolve_addr): Likewise.
12686 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12688 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12690 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12691 (X_RETTURN): New macro.
12692 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12694 * sparc64-tdep.c (sparc64_init_abi): Hook
12695 sparc_in_function_epilogue_p.
12697 2014-02-10 Gary Benson <gbenson@redhat.com>
12699 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12700 Rename name_matcher to symbol_matcher.
12702 2014-02-10 Gary Benson <gbenson@redhat.com>
12704 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12705 Use expand_symtabs_file_matcher_ftype and
12706 expand_symtabs_symbol_matcher_ftype.
12708 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12710 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12711 (struct ada_symbol_cache): New.
12712 (ada_free_symbol_cache): Forward declare.
12713 (struct ada_pspace_data): New.
12714 (ada_pspace_data_handle): New static global.
12715 (get_ada_pspace_data, ada_pspace_data_cleanup)
12716 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12717 (cache_space, cache): Delete, now folded inside struct
12719 (ada_get_symbol_cache): New function.
12720 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12722 (_initialize_ada_language): Remove initialization of cache_space.
12723 Move call to observer_attach_inferior_exit up, grouping it
12724 with the other observer registrations inside this function.
12725 Rename command to be more general. Add call to
12726 register_program_space_data_with_cleanup.
12728 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12730 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12731 ada_new_objfile_observer.
12732 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12733 (_initialize_tasks): Update uses of ada_new_objfile_observer
12734 and ada_tasks_normal_stop_observer.
12736 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12738 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12739 returned by the 'Length attribute to integer.
12741 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12743 * ada-lang.c (_initialize_ada_language): Initialize
12744 cache_space obstack.
12746 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12748 * ada-lang.c (HASH_SIZE): New macro.
12749 (struct cache_entry): New type.
12750 (cache_space, cache): New static globals.
12751 (ada_clear_symbol_cache, find_entry): New functions.
12752 (lookup_cached_symbol, cache_symbol): Implement.
12753 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12754 (_initialize_ada_language): Attach ada_new_objfile_observer
12755 and ada_free_objfile_observer.
12757 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12759 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12760 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12761 struct block * parameter.
12762 (ada_lookup_symbol_list_worker): Constify local variable "block".
12763 Remove cast which is no longer necessary.
12765 2014-02-10 Doug Evans <xdje42@gmail.com>
12767 Add Guile as an extension language.
12768 * NEWS: Mention Guile scripting.
12769 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12770 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12771 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12772 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12773 (CLIBS): Add GUILE_LIBS.
12774 (install-guile): New rule.
12775 (guile.o): New rule.
12776 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12777 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12778 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12779 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12780 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12781 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12782 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12783 * configure.ac: New option --with-guile.
12784 * configure: Regenerate.
12785 * config.in: Regenerate.
12786 * auto-load.c: Remove #include "python/python.h". Add #include
12787 "gdb/section-scripts.h".
12788 (source_section_scripts): Handle Guile scripts.
12789 (_initialize_auto_load): Add name of Guile objfile script to
12790 scripts-directory help text.
12791 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12792 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12793 (struct breakpoint): New member scm_bp_object.
12794 * defs.h (enum command_control_type): New value guile_control.
12795 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12797 (show_user): Update comment.
12798 (_initialize_cli_cmds): Update help text for "show user". Update help
12799 text for max-user-call-depth.
12800 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12802 (multi_line_command_p): Add guile_control.
12803 (print_command_lines): Handle guile_control.
12804 (execute_control_command, recurse_read_control_structure): Ditto.
12805 (process_next_line): Recognize "guile" commands.
12806 * disasm.c (gdb_disassemble_info): Make non-static.
12807 * disasm.h: #include "dis-asm.h".
12808 (struct gdbarch): Add forward decl.
12809 (gdb_disassemble_info): Declare.
12810 * extension.c: #include "guile/guile.h".
12811 (extension_languages): Add guile.
12812 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12813 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12814 * gdbtypes.c (get_unsigned_type_max): New function.
12815 (get_signed_type_minmax): New function.
12816 * gdbtypes.h (get_unsigned_type_max): Declare.
12817 (get_signed_type_minmax): Declare.
12818 * guile/README: New file.
12819 * guile/guile-internal.h: New file.
12820 * guile/guile.c: New file.
12821 * guile/guile.h: New file.
12822 * guile/scm-arch.c: New file.
12823 * guile/scm-auto-load.c: New file.
12824 * guile/scm-block.c: New file.
12825 * guile/scm-breakpoint.c: New file.
12826 * guile/scm-disasm.c: New file.
12827 * guile/scm-exception.c: New file.
12828 * guile/scm-frame.c: New file.
12829 * guile/scm-gsmob.c: New file.
12830 * guile/scm-iterator.c: New file.
12831 * guile/scm-lazy-string.c: New file.
12832 * guile/scm-math.c: New file.
12833 * guile/scm-objfile.c: New file.
12834 * guile/scm-ports.c: New file.
12835 * guile/scm-pretty-print.c: New file.
12836 * guile/scm-safe-call.c: New file.
12837 * guile/scm-string.c: New file.
12838 * guile/scm-symbol.c: New file.
12839 * guile/scm-symtab.c: New file.
12840 * guile/scm-type.c: New file.
12841 * guile/scm-utils.c: New file.
12842 * guile/scm-value.c: New file.
12843 * guile/lib/gdb.scm: New file.
12844 * guile/lib/gdb/boot.scm: New file.
12845 * guile/lib/gdb/experimental.scm: New file.
12846 * guile/lib/gdb/init.scm: New file.
12847 * guile/lib/gdb/iterator.scm: New file.
12848 * guile/lib/gdb/printing.scm: New file.
12849 * guile/lib/gdb/types.scm: New file.
12850 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12851 (VPATH): Add $(GUILE_SRCDIR).
12852 (GUILE_DIR): New variable.
12853 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12854 (all): Add stamp-guile dependency.
12855 (stamp-guile): New rule.
12856 (clean-guile, install-guile, uninstall-guile): New rules.
12857 (install-only): Add install-guile dependency.
12858 (uninstall): Add uninstall-guile dependency.
12859 (clean): Add clean-guile dependency.
12861 2014-02-09 Doug Evans <xdje42@gmail.com>
12863 Revert this patch (which I approved, mea culpa).
12865 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12867 * Makefile.in (all-lib): Remove.
12868 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12870 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12872 Fix Python stack corruption.
12873 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12876 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12878 * Makefile.in (all-lib): Remove.
12879 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12881 2014-02-07 Doug Evans <dje@google.com>
12883 * extension-priv.h (extension_language_script_ops): Add comment.
12884 (extension_language_ops): Add comment.
12885 (active_ext_lang_state): Fix typo in comment.
12887 2014-02-07 Pedro Alves <palves@redhat.com>
12889 PR breakpoints/16292
12890 * infrun.c (handle_signal_stop) <signal arrives while stepping
12891 over a breakpoint>: Switch back to the stepping thread.
12893 2014-02-07 Yao Qi <yao@codesourcery.com>
12895 * target.c (target_xfer_partial): Return zero if LEN is zero.
12897 2014-02-07 Yao Qi <yao@codesourcery.com>
12899 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12900 (ld_so_xfer_auxv): Likewise.
12901 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12902 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12903 * corelow.c (core_xfer_partial): Likewise.
12904 * ctf.c (ctf_xfer_partial): Likewise.
12905 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12906 (darwin_xfer_partial): Likewise.
12907 * exec.c (exec_xfer_partial): Likewise.
12908 * gnu-nat.c (gnu_xfer_partial): Likewise.
12909 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12910 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12911 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12912 * linux-nat.c (linux_xfer_siginfo): Likewise.
12913 (linux_proc_xfer_spu): Likewise.
12914 * procfs.c (procfs_xfer_partial): Likewise.
12915 * record-full.c (record_full_xfer_partial): Likewise.
12916 (record_full_core_xfer_partial): Likewise.
12917 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12918 * remote.c (remote_write_qxfer): Likewise.
12919 (remote_write_qxfer, remote_read_qxfer): Likewise.
12920 (remote_xfer_partial): Likewise.
12921 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12922 (rs6000_xfer_shared_libraries): Likewise.
12923 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12924 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12925 (spu_xfer_partial): Likewise.
12926 * target.c (memory_xfer_partial_1): Likewise.
12927 * tracepoint.c (tfile_xfer_partial): Likewise.
12928 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12929 (windows_xfer_partial): Likewise.
12931 2014-02-07 Yao Qi <yao@codesourcery.com>
12933 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12935 (core_xfer_shared_libraries_aix): Likewise.
12936 * gdbarch.c, gdbarch.h: Regenerated.
12937 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12938 ULONGEST. Change 'len_avail' type to ULONGEST.
12939 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12940 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12942 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12944 2014-02-07 Yao Qi <yao@codesourcery.com>
12946 * corefile.c (memory_error): Get 'exception' from ERR and pass
12947 'exception' to throw_error.
12949 2014-02-06 Doug Evans <xdje42@gmail.com>
12951 * configure.ac (libpython checking): Remove all but python.o from
12952 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12953 * configure: Regenerate.
12955 * Makefile.in (SFILES): Add extension.c.
12956 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12957 (COMMON_OBS): Add extension.o.
12958 * extension.h: New file.
12959 * extension-priv.h: New file.
12960 * extension.c: New file.
12962 * python/python-internal.h: #include "extension.h".
12963 (gdbpy_auto_load_enabled): Declare.
12964 (gdbpy_apply_val_pretty_printer): Declare.
12965 (gdbpy_apply_frame_filter): Declare.
12966 (gdbpy_preserve_values): Declare.
12967 (gdbpy_breakpoint_cond_says_stop): Declare.
12968 (gdbpy_breakpoint_has_cond): Declare.
12969 (void source_python_script_for_objfile): Delete.
12970 * python/python.c: #include "extension-priv.h".
12971 Delete inclusion of "observer.h".
12972 (extension_language_python): Moved here and renamed from
12973 script_language_python in py-auto-load.c.
12974 Redefined to be of type extension_language_defn.
12975 (python_extension_script_ops): New global.
12976 (python_extension_ops): New global.
12977 (struct python_env): New member previous_active.
12978 (restore_python_env): Call restore_active_ext_lang.
12979 (ensure_python_env): Call set_active_ext_lang.
12980 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12982 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12984 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12986 (gdbpy_eval_from_control_command): Renamed from
12987 eval_python_from_control_command, made static. New arg extlang.
12988 (gdbpy_source_script) Renamed from source_python_script, made static.
12990 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12991 result to int. New arg extlang.
12992 (gdbpy_source_objfile_script): Renamed from
12993 source_python_script_for_objfile, made static. New arg extlang.
12994 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12995 static. New args extlang, extlang_printers. Change result type to
12997 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12998 static. New arg extlang. Rename arg printers to extlang_printers
12999 and change type to ext_lang_type_printers *.
13000 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13001 static. Replace argument arg with extlang, extlang_printers.
13002 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13003 (!HAVE_PYTHON, source_python_script): Delete.
13004 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13005 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13006 (!HAVE_PYTHON, start_type_printers): Delete.
13007 (!HAVE_PYTHON, apply_type_printers): Delete.
13008 (!HAVE_PYTHON, free_type_printers): Delete.
13009 (_initialize_python): Delete call to observer_attach_before_prompt.
13010 (finalize_python): Set/restore active extension language.
13011 (gdbpy_finish_initialization) Renamed from
13012 finish_python_initialization, made static. New arg extlang.
13013 (gdbpy_initialized): New function.
13014 * python/python.h: #include "extension.h". Delete #include
13015 "value.h", "mi/mi-cmds.h".
13016 (extension_language_python): Declare.
13017 (GDBPY_AUTO_FILE_NAME): Delete.
13018 (enum py_bt_status): Moved to extension.h and renamed to
13019 ext_lang_bt_status.
13020 (enum frame_filter_flags): Moved to extension.h.
13021 (enum py_frame_args): Moved to extension.h and renamed to
13022 ext_lang_frame_args.
13023 (finish_python_initialization): Delete.
13024 (eval_python_from_control_command): Delete.
13025 (source_python_script): Delete.
13026 (apply_val_pretty_printer): Delete.
13027 (apply_frame_filter): Delete.
13028 (preserve_python_values): Delete.
13029 (gdbpy_script_language_defn): Delete.
13030 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13031 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13033 * auto-load.c: #include "extension.h".
13034 (GDB_AUTO_FILE_NAME): Delete.
13035 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13036 (script_language_gdb): Delete, moved to extension.c and renamed to
13037 extension_language_gdb.
13038 (source_gdb_script_for_objfile): Delete.
13039 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13040 (loaded_script): Change type of language member to
13041 struct extension_language_defn *.
13042 (init_loaded_scripts_info): Initialize
13043 unsupported_script_warning_printed.
13044 (maybe_add_script): Make static. Change type of language arg to
13045 struct extension_language_defn *.
13046 (clear_section_scripts): Reset unsupported_script_warning_printed.
13047 (auto_load_objfile_script_1): Rewrite to use extension language API.
13048 (auto_load_objfile_script): Make public. Remove support-compiled-in
13049 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13050 (source_section_scripts): Rewrite to use extension language API.
13051 (load_auto_scripts_for_objfile): Rewrite to use
13052 auto_load_scripts_for_objfile.
13053 (collect_matching_scripts_data): Change type of language member to
13054 struct extension_language_defn *.
13055 (auto_load_info_scripts): Change type of language arg to
13056 struct extension_language_defn *.
13057 (unsupported_script_warning_print): New function.
13058 (script_not_found_warning_print): Make static.
13059 (_initialize_auto_load): Rewrite construction of scripts-directory
13061 * auto-load.h (struct objfile): Add forward decl.
13062 (struct script_language): Delete.
13063 (struct auto_load_pspace_info): Add forward decl.
13064 (struct extension_language_defn): Add forward decl.
13065 (maybe_add_script): Delete.
13066 (auto_load_objfile_script): Declare.
13067 (script_not_found_warning_print): Delete.
13068 (auto_load_info_scripts): Update prototype.
13069 (auto_load_gdb_scripts_enabled): Declare.
13070 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13071 auto_load_python_scripts_enabled and made public.
13072 (script_language_python): Delete, moved to python.c.
13073 (gdbpy_script_language_defn): Delete.
13074 (info_auto_load_python_scripts): Update to use
13075 extension_language_python.
13077 * breakpoint.c (condition_command): Replace call to
13078 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13079 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13080 with call to breakpoint_ext_lang_cond_says_stop.
13081 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13082 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13083 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13084 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13086 (local_setattro): Print name of extension language with existing
13089 * valprint.c (val_print, value_print): Update to call
13090 apply_ext_lang_val_pretty_printer.
13091 * cp-valprint.c (cp_print_value): Update call to
13092 apply_ext_lang_val_pretty_printer.
13093 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13094 (gdbpy_apply_val_pretty_printer): Renamed from
13095 apply_val_pretty_printer. New arg extlang.
13096 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13098 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13099 extension language API.
13100 * cli/cli-script.c (execute_control_command): Update to call
13101 eval_ext_lang_from_control_command.
13103 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13104 enum ext_lang_bt_status values. Update call to
13105 apply_ext_lang_frame_filter.
13106 (mi_cmd_stack_list_locals): Ditto.
13107 (mi_cmd_stack_list_args): Ditto.
13108 (mi_cmd_stack_list_variables): Ditto.
13109 * mi/mi-main.c: Delete #include "python/python-internal.h".
13110 Add #include "extension.h".
13111 (mi_cmd_list_features): Replace reference to python internal variable
13112 gdb_python_initialized with call to ext_lang_initialized_p.
13114 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13115 Update to use enum ext_lang_frame_args. Update to call
13116 apply_ext_lang_frame_filter.
13117 * python/py-framefilter.c (extract_sym): Update to use enum
13118 ext_lang_bt_status.
13119 (extract_value, py_print_type, py_print_value): Ditto.
13120 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13121 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13122 (py_print_frame): Ditto.
13123 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13124 New arg extlang. Update to use enum ext_lang_bt_status.
13126 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13127 finish_python_initialization. Replace with call to
13128 finish_ext_lang_initialization.
13130 * typeprint.c (do_free_global_table): Update to call
13131 free_ext_lang_type_printers.
13132 (create_global_typedef_table): Update to call
13133 start_ext_lang_type_printers.
13134 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13135 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13136 (type_print_options): Change type of global_printers from "void *"
13137 to "struct ext_lang_type_printers *".
13139 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13140 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13141 (gdbpy_preserve_values): Renamed from preserve_python_values.
13143 (!HAVE_PYTHON, preserve_python_values): Delete.
13145 * utils.c (quit_flag): Delete, moved to extension.c.
13146 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13149 * eval.c: Delete #include "python/python.h".
13150 * main.c: Delete #include "python/python.h".
13152 * defs.h: Update comment.
13154 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13158 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13160 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13163 2014-02-05 Yao Qi <yao@codesourcery.com>
13165 * remote.c (remote_pass_signals): Remove local 'buf' and use
13167 (remote_program_signals): Likewise.
13169 2014-02-05 Yao Qi <yao@codesourcery.com>
13171 * ctf.c: Include "inferior.h" and "gdbthread.h".
13172 (CTF_PID): A new macro.
13173 (ctf_open): Call inferior_appeared and add_thread_silent.
13174 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13175 (ctf_thread_alive): New function.
13176 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13178 2014-02-05 Yao Qi <yao@codesourcery.com>
13182 2013-05-24 Yao Qi <yao@codesourcery.com>
13184 * tracepoint.c (TFILE_PID): Remove.
13185 (tfile_open): Don't add thread and inferior.
13186 (tfile_close): Don't set 'inferior_ptid'. Don't call
13187 exit_inferior_silent.
13188 (tfile_thread_alive): Remove.
13189 (init_tfile_ops): Don't set field 'to_thread_alive' of
13192 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13194 * remote.c (remote_start_remote): Call remote_check_symbols even
13195 if only symbol-file (not file) has been given.
13197 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13199 * gdbarch.sh (skip_entrypoint): New callback.
13200 * gdbarch.c, gdbarch.h: Regenerate.
13201 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13202 * infrun.c (fill_in_stop_func): Likewise.
13203 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13204 (ppc_elfv2_elf_make_msymbol_special): New function.
13205 (ppc_elfv2_skip_entrypoint): Likewise.
13206 (ppc_linux_init_abi): Install them for ELFv2.
13208 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13210 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13211 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13212 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13213 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13214 structures returned in GPRs.
13216 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13218 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13219 offset to the stack parameter list for the ELFv2 ABI.
13221 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13223 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13224 set_gdbarch_convert_from_func_ptr_addr and
13225 set_gdbarch_elf_make_msymbol_special for ELFv1.
13226 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13227 function descriptors on ELFv1.
13228 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13229 set up r12 at function entry.
13231 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13233 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13234 (struct gdbarch_tdep): New member elf_abi.
13236 * rs6000-tdep.c: Include "elf/ppc64.h".
13237 (rs6000_gdbarch_init): Detect ELF ABI version.
13239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13241 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13242 within a register pair holding a DFP 128-bit value on little-endian.
13243 (ppc64_sysv_abi_return_value_base): Likewise.
13244 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13245 (dfp_pseudo_register_write): Likewise.
13247 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13249 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13250 offset on little-endian when passing _Decimal32.
13251 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13255 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13256 of the overlapped FP register within the VSX register on little-
13258 (efpr_pseudo_register_write): Likewise.
13260 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13262 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13263 offset on little-endian when passing small structures.
13265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13267 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13268 (struct ppc64_sysv_argpos): New data structure.
13269 (ppc64_sysv_abi_push_float): Remove.
13270 (ppc64_sysv_abi_push_val): New function.
13271 (ppc64_sysv_abi_push_integer): Likewise.
13272 (ppc64_sysv_abi_push_freg): Likewise.
13273 (ppc64_sysv_abi_push_vreg): Likewise.
13274 (ppc64_sysv_abi_push_param): Likewise.
13275 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13276 (ppc64_sysv_abi_return_value_base): New function.
13277 (ppc64_sysv_abi_return_value): Refactor to use it.
13279 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13281 * NEWS: Document new target powerpc64le-*-linux*.
13283 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13285 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13286 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13288 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13289 register set used in ELF core dumps. Add floating-point register set.
13291 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13293 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13294 dwarf2_to_gdb[] table using symbolic constants. Adjust
13295 penultimate entry from number representing the PC register
13296 to symbolic constant representing the MDR register. Add
13297 constant for the PC register to the end of the table.
13299 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13301 * bsd-kvm.c: Include <sys/param.h>
13303 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13305 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13307 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13309 * ada-lang.h (clear_ada_sym_cache): Delete.
13311 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13313 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13315 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13317 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13318 the sigreturn register save area only if the syscall is
13321 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13323 * valops.c (value_slice): Minor reformatting.
13325 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13327 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13329 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13331 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13332 New static globals.
13333 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13334 (ada_ignore_descriptive_types_p): New static global.
13335 (find_parallel_type_by_descriptive_type): Return immediately
13336 if ada_ignore_descriptive_types_p is set.
13337 (_initialize_ada_language): Register new commands "maintenance
13338 set ada", "maintenance show ada", "maintenance set ada
13339 ignore-descriptive-types" and "maintenance show ada
13340 ignore-descriptive-types".
13341 * NEWS: Add entry for new "maint ada set/show
13342 ignore-descriptive-types" commands.
13344 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13346 * record-btrace.c (record_btrace_close): Call btrace_teardown
13349 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13351 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13354 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13356 * ada-typeprint (type_is_full_subrange_of_target_type):
13358 (print_range): Add parameter bounds_prefered_p. If not set,
13359 try printing range types using the name of their base type.
13360 (print_range_type): Add parameter bounds_prefered_p.
13361 Use it in call to print_range.
13362 (print_array_type, ada_print_type): Update calls to print_range
13363 and print_range_type.
13365 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13367 * ada-typeprint.c (print_array_type, print_choices, print_range)
13368 (print_range_bound, print_dynamic_range_bound, print_range_type):
13369 Remove declaration.
13371 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13373 * ada-typeprint.c (print_range): Add missing empty line
13374 after local declaration.
13376 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13378 * ada-valprint.c (print_optional_low_bound): Get index_type's
13379 target type for as long as it is a TYPE_CODE_RANGE.
13381 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13383 * procfs.c (procfs_make_note_section): Remove assertion and
13384 associated comment.
13386 2014-01-24 Yao Qi <yao@codesourcery.com>
13388 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13389 * corelow.c (get_core_siginfo): Likewise.
13391 2014-01-24 Yao Qi <yao@codesourcery.com>
13393 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13394 ULONGEST. Don't check 'len' is negative.
13395 (remote_write_bytes): Change type of 'len' to ULONGEST.
13397 2014-01-23 Tom Tromey <tromey@redhat.com>
13400 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13401 Handle exception from frame.block.
13402 (FrameVars.fetch_frame_locals): Likewise.
13404 2014-01-23 Tom Tromey <tromey@redhat.com>
13407 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13408 on a NULL pointer. Move "goto error" to correct place.
13410 2014-01-23 Tom Tromey <tromey@redhat.com>
13413 * python/py-framefilter.c (apply_frame_filter): Call
13414 ensure_python_env after computing gdbarch.
13416 2014-01-23 Yao Qi <yao@codesourcery.com>
13418 * target.c (raw_memory_xfer_partial): Change argument type
13419 from void * to gdb_byte *.
13420 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13422 2014-01-22 Doug Evans <dje@google.com>
13424 New gdbserver option --debug-format=timestamp.
13425 * NEWS: Mention it.
13427 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13429 * syscalls/s390x-linux.xml: New file.
13430 * syscalls/s390-linux.xml: New file.
13431 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13432 (XML_SYSCALL_FILENAME_S390X): Likewise.
13433 (op_svc): New enum value for SVC opcode.
13434 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13435 (s390_linux_get_syscall_number): New function.
13436 (s390_gdbarch_init): Register '*get_syscall_number' and the
13437 syscall xml file name.
13438 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13439 "s390-linux.xml" and "s390x-linux.xml".
13440 * NEWS: Announce new feature.
13442 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13444 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13446 2014-01-22 Pedro Alves <palves@redhat.com>
13448 * xtensa-config.c: Include defs.h.
13450 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13452 * common/common-utils.h: Add "ARI:" comment beside __func__
13455 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13457 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13458 documentation a bit.
13460 2014-01-21 Roland McGrath <mcgrathr@google.com>
13462 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13463 * configure: Regenerate.
13464 * aclocal.m4: Regenerate.
13465 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13466 New substituted variables.
13467 (install-strip): New target.
13468 (INSTALL_SCRIPT): New substituted variable.
13469 (FLAGS_TO_PASS): Add it.
13470 (install-only): Use $(INSTALL_SCRIPT) rather than
13471 $(INSTALL_PROGRAM) for gcore.
13473 2014-01-20 Tom Tromey <tromey@redhat.com>
13475 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13478 2014-01-20 Tom Tromey <tromey@redhat.com>
13480 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13481 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13482 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13483 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13484 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13485 (struct cmd_list_element) <flags>: Remove.
13486 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13487 doc_allocated>: New fields.
13488 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13490 * maint.c (maintenance_do_deprecate): Update.
13491 * top.c (execute_command): Update.
13493 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13495 * xtensa-linux-nat.c: Include asm/ptrace.h.
13497 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13499 * Makefile.in (SFILES): Add d-support.c.
13500 (COMMON_OBS): Add d-support.o.
13501 * d-lang.h (d_parse_symbol): Add comment, now defined in
13503 * d-lang.c (parse_call_convention)
13504 (parse_attributes, parse_function_types)
13505 (parse_function_args, parse_type, parse_identifier)
13506 (call_convention_p, d_parse_symbol): Move functions to ...
13507 * d-support.c: ... New file.
13509 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13511 * d-lang.h (d_parse_symbol): Add declaration.
13512 * d-lang.c (extract_identifiers)
13513 (extract_type_info): Remove functions.
13514 (parse_call_convention, parse_attributes)
13515 (parse_function_types, parse_function_args)
13516 (parse_type, parse_identifier, call_convention_p)
13517 (d_parse_symbol): New functions.
13518 (d_demangle): Use d_parse_symbol to demangle D symbols.
13520 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13522 * d-lang.h (struct builtin_d_type): New data type.
13523 (builtin_d_type): Add declaration.
13524 * d-lang.c (d_language_arch_info, build_d_types)
13525 (builtin_d_type): New functions.
13526 (enum d_primitive_types): New data type.
13527 (d_language_defn): Change c_language_arch_info to
13528 d_language_arch_info.
13529 (d_type_data): New static variable.
13530 (_initialize_d_language): Initialize d_type_data.
13532 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13534 * d-lang.h (d_main_name): Add declaration.
13535 * d-lang.c (d_main_name): New function.
13536 * symtab.c (find_main_name): Add call to d_main_name.
13538 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13540 * d-lang.c (d_language_defn): Change macro_expansion_c to
13541 macro_expansion_no.
13543 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13545 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13547 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13549 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13550 gdb_exception" declaration.
13551 * remote.c (getpkt_or_notif_sane): Likewise.
13553 2014-01-17 Doug Evans <dje@google.com>
13555 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13556 function, contents of dirnames_to_char_ptr_vec_append moved here.
13557 (delim_string_to_char_ptr_vec): New function.
13558 (dirnames_to_char_ptr_vec_append): Rewrite.
13559 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13561 2014-01-17 Doug Evans <dje@google.com>
13563 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13565 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13566 #include "common-utils.h".
13567 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13568 * common/vec.h (VEC_ASSERT_PASS): Update.
13569 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13570 (MACH_CHECK_ERROR): Update.
13572 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13574 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13576 * gdbarch.h: Regenerate.
13578 2014-01-16 Tom Tromey <tromey@redhat.com>
13580 * value.c (struct value) <regnum>: Move earlier.
13582 2014-01-16 Tom Tromey <tromey@redhat.com>
13584 * remote.c (extended_remote_create_inferior): Rename from
13585 extended_remote_create_inferior_1. Add "ops" argument. Remove
13586 old implementation.
13588 2014-01-16 Pedro Alves <palves@redhat.com>
13590 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13591 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13594 2014-01-16 Doug Evans <dje@google.com>
13596 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13598 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13600 * btrace.h (btrace_thread_flag): New.
13601 (struct btrace_thread_info) <flags>: New.
13602 * record-btrace.c (record_btrace_resume_thread)
13603 (record_btrace_find_thread_to_move, btrace_step_no_history)
13604 (btrace_step_stopped, record_btrace_start_replaying)
13605 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13606 (record_btrace_find_resume_thread): New.
13607 (record_btrace_resume, record_btrace_wait): Extend.
13608 (record_btrace_can_execute_reverse): New.
13609 (record_btrace_open): Fail in non-stop mode.
13610 (record_btrace_set_replay): Split into this, ...
13611 (record_btrace_stop_replaying): ... this, ...
13612 (record_btrace_clear_histories): ... and this.
13613 (init_record_btrace_ops): Init to_can_execute_reverse.
13614 * NEWS: Announce it.
13616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13618 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13619 (forward_target_decr_pc_after_break)
13620 (target_decr_pc_after_break): New.
13621 * target.c (forward_target_decr_pc_after_break)
13622 (target_decr_pc_after_break): New.
13623 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13624 instead of gdbarch_decr_pc_after_break.
13625 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13626 instead of gdbarch_decr_pc_after_break.
13627 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13628 instead of gdbarch_decr_pc_after_break.
13629 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13630 instead of gdbarch_decr_pc_after_break.
13631 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13632 instead of gdbarch_decr_pc_after_break.
13633 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13634 instead of gdbarch_decr_pc_after_break.
13636 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13638 * btrace.c: Include regcache.h.
13639 (btrace_add_pc): New.
13640 (btrace_enable): Call btrace_add_pc.
13641 (btrace_is_empty): New.
13642 * btrace.h (btrace_is_empty): New.
13643 * record-btrace.c (require_btrace, record_btrace_info): Call
13646 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13648 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13649 Support delta reads.
13650 (linux_disable_btrace): Change return type.
13651 * common/linux-btrace.h (linux_read_btrace): Change parameters
13652 and return type to allow error reporting. Update users.
13653 (linux_disable_btrace): Change return type. Update users.
13654 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13656 (btrace_error): New.
13657 (btrace_block) <begin>: Comment on BEGIN == 0.
13658 * btrace.c (btrace_compute_ftrace): Start from the end of
13660 (btrace_stitch_trace, btrace_clear_history): New.
13661 (btrace_fetch): Read delta trace, return if replaying.
13662 (btrace_clear): Move clear history code to btrace_clear_history.
13663 (parse_xml_btrace): Throw an error if parsing failed.
13664 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13665 and return type to allow error reporting.
13666 (target_read_btrace): Change parameters and return type to allow
13668 * target.c (target_read_btrace): Update.
13669 * remote.c (remote_read_btrace): Support delta reads. Pass
13671 * NEWS: Announce it.
13673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13675 * record.h (record_btrace_frame_unwind)
13676 (record_btrace_tailcall_frame_unwind): New declarations.
13677 * dwarf2-frame: Include record.h
13678 (dwarf2_frame_cfa): Throw an error for btrace frames.
13679 * record-btrace.c: Include hashtab.h.
13680 (btrace_get_bfun_name): New.
13681 (btrace_call_history): Call btrace_get_bfun_name.
13682 (struct btrace_frame_cache): New.
13684 (bfcache_hash, bfcache_eq, bfcache_new): New.
13685 (btrace_get_frame_function): New.
13686 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13687 (record_btrace_frame_this_id): Compute own id.
13688 (record_btrace_frame_prev_register): Provide PC, throw_error
13689 for all other registers.
13690 (record_btrace_frame_sniffer): Detect btrace frames.
13691 (record_btrace_tailcall_frame_sniffer): New.
13692 (record_btrace_frame_dealloc_cache): New.
13693 (record_btrace_frame_unwind): Add new functions.
13694 (record_btrace_tailcall_frame_unwind): New.
13695 (_initialize_record_btrace): Allocate cache.
13696 * btrace.c (btrace_clear): Call reinit_frame_cache.
13697 * NEWS: Announce it.
13699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13701 * record-btrace.c (record_btrace_set_replay)
13702 (record_btrace_goto_begin, record_btrace_goto_end)
13703 (record_btrace_goto): New.
13704 (init_record_btrace_ops): Initialize them.
13705 * NEWS: Announce it.
13707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13709 * record-btrace.c (record_btrace_find_new_threads)
13710 (record_btrace_thread_alive): New.
13711 (init_record_btrace_ops): Initialize to_find_new_threads and
13714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13716 * record-btrace.c (record_btrace_resume): New.
13717 (record_btrace_wait): New.
13718 (init_record_btrace_ops): Initialize to_wait and to_resume.
13720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13722 * record-btrace.c (record_btrace_xfer_partial)
13723 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13724 (record_btrace_allow_memory_access): New.
13725 (init_record_btrace_ops): Initialize new methods.
13726 * target.c (raw_memory_xfer_partial): Bail out if target reports
13727 that this memory is not available.
13729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13731 * target.h (target_ops) <to_insert_breakpoint>
13732 <to_remove_breakpoint>: Add target_ops parameter.
13733 (forward_target_insert_breakpoint): New.
13734 (forward_target_remove_breakpoint): New.
13735 (memory_remove_breakpoint, memory_insert_breakpoint):
13736 Add target_ops parameter.
13737 * target.c (target_insert_breakpoint): Split into this and ...
13738 (forward_target_insert_breakpoint): ... this.
13739 (target_remove_breakpoint): Split into this and ...
13740 (forward_target_remove_breakpoint): ... this.
13741 (debug_to_insert_breakpoint): Add target_ops parameter.
13742 Call forward_target_insert_breakpoint.
13743 (debug_to_remove_breakpoint): Add target_ops parameter.
13744 Call forward_target_remove_breakpoint.
13745 (update_current_target): Do not inherit or default to_insert_breakpoint
13746 and to_remove_breakpoint.
13747 * corelow.c (ignore): Add target_ops parameter.
13748 * exec.c (ignore): Add target_ops parameter.
13749 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13750 Add target_ops parameter.
13751 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13752 Add target_ops parameter.
13753 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13754 Add target_ops parameter.
13755 * record-full.c (record_full_beneath_to_insert_breakpoint)
13756 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13757 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13758 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13759 (record_full_core_remove_breakpoint): Add target_ops parameter.
13761 (record_full_beneath_to_insert_breakpoint_ops)
13762 (record_full_beneath_to_remove_breakpoint_ops)
13763 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13764 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13765 tmp_to_remove_breakpoint_ops,
13766 record_full_beneath_to_insert_breakpoint_ops, and
13767 record_full_beneath_to_remove_breakpoint_ops.
13768 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13769 (m32r_remove_breakpoint): Add target_ops parameter.
13770 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13771 Add target_ops parameter.
13772 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13773 Add target_ops parameter.
13775 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13776 Markus Metzger <markus.t.metzger@intel.com>
13778 * record-btrace.c: Include frame-unwind.h.
13779 (record_btrace_frame_unwind_stop_reason)
13780 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13781 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13783 (init_record_btrace_ops): Install it.
13785 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13787 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13790 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13792 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13795 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13797 * frame-unwind.c: Include target.h.
13798 (frame_unwind_try_unwinder): New function with code from ...
13799 (frame_unwind_find_by_frame): ... here. New variable
13800 unwinder_from_target, call also target_get_unwinder)
13801 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13802 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13803 * target.h (struct target_ops): New fields to_get_unwinder and
13804 to_get_tailcall_unwinder.
13805 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13809 * record-btrace.c (record_btrace_fetch_registers)
13810 (record_btrace_store_registers)
13811 (record_btrace_to_prepare_to_store): New.
13812 (init_record_btrace_ops): Add the above.
13814 2014-01-16 Tom Tromey <tromey@redhat.com>
13816 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13817 * target.h (struct target_ops) <to_prepare_to_store>: Add
13819 (target_prepare_to_store): Add argument.
13820 * target.c (debug_to_prepare_to_store): Add argument.
13821 (update_current_target): Update.
13822 * remote.c (remote_prepare_to_store): Add 'self' argument.
13823 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13824 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13825 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13826 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13828 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13829 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13830 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13831 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13832 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13836 * btrace.h (replay) <replay>: New.
13837 (btrace_is_replaying): New.
13838 * btrace.c (btrace_clear): Free replay iterator.
13839 (btrace_is_replaying): New.
13840 * record-btrace.c (record_btrace_is_replaying): New.
13841 (record_btrace_info): Print insn number if replaying.
13842 (record_btrace_insn_history): Start at replay position.
13843 (record_btrace_call_history): Start at replay position.
13844 (init_record_btrace_ops): Init to_record_is_replaying.
13846 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13848 * record-btrace.c (record_btrace_insn_history_range): Include
13850 (record_btrace_insn_history_from): Adjust range.
13851 (record_btrace_call_history_range): Include
13853 (record_btrace_call_history_from): Adjust range.
13854 * NEWS: Announce changes.
13856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13858 * record.h (enum record_print_flag)
13859 <record_print_indent_calls>: New.
13860 * record.c (get_call_history_modifiers): Recognize /c modifier.
13861 (_initialize_record): Document /c modifier.
13862 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13863 Reorder fields. Optionally indent the function name. Update
13865 * NEWS: Announce changes.
13867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13869 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13871 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13873 * btrace.c (ftrace_new_function): Start counting at one.
13874 * record-btrace.c (record_btrace_info): Adjust number of calls
13876 * NEWS: Announce it.
13878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13880 * record-btrace.c (btrace_call_history_insn_range): Print
13881 insn range as [begin, end].
13883 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13885 * btrace.h (struct btrace_func_link): New.
13886 (enum btrace_function_flag): New.
13887 (struct btrace_inst): Rename to ...
13888 (struct btrace_insn): ...this. Update all users.
13889 (struct btrace_func) <ibegin, iend>: Remove.
13890 (struct btrace_func_link): New.
13891 (struct btrace_func): Rename to ...
13892 (struct btrace_function): ...this. Update all users.
13893 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13894 (number, level, flags>: New.
13895 (struct btrace_insn_iterator): Rename to ...
13896 (struct btrace_insn_history): ...this.
13898 (struct btrace_insn_iterator, btrace_call_iterator): New.
13899 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13900 (struct btrace_target_info) <begin, end, level>
13901 <insn_history, call_history>: New.
13902 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13903 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13904 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13905 (btrace_call_number, btrace_call_begin, btrace_call_end)
13906 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13907 (btrace_find_function_by_number, btrace_set_insn_history)
13908 (btrace_set_call_history): New.
13909 * btrace.c (btrace_init_insn_iterator)
13910 (btrace_init_func_iterator, compute_itrace): Remove.
13911 (ftrace_print_function_name, ftrace_print_filename)
13912 (ftrace_skip_file): Change
13913 parameter to const.
13914 (ftrace_init_func): Remove.
13915 (ftrace_debug): Use new btrace_function fields.
13916 (ftrace_function_switched): Also consider gaining and
13917 losing symbol information).
13918 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13919 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13920 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13922 (ftrace_new_function): Move. Remove debug print.
13923 (ftrace_update_lines, ftrace_update_insns): New.
13924 (ftrace_update_function): Check for call, ret, and jump.
13925 (compute_ftrace): Renamed to ...
13926 (btrace_compute_ftrace): ...this. Rewritten to compute call
13928 (btrace_fetch, btrace_clear): Updated.
13929 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13930 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13931 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13932 (btrace_call_number, btrace_call_begin, btrace_call_end)
13933 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13934 (btrace_find_function_by_number, btrace_set_insn_history)
13935 (btrace_set_call_history): New.
13936 * record-btrace.c (require_btrace): Use new btrace thread
13938 (record_btrace_info, btrace_insn_history)
13939 (record_btrace_insn_history, record_btrace_insn_history_range):
13940 Use new btrace thread info fields and new iterator.
13941 (btrace_func_history_src_line): Rename to ...
13942 (btrace_call_history_src_line): ...this. Use new btrace
13943 thread info fields.
13944 (btrace_func_history): Rename to ...
13945 (btrace_call_history): ...this. Use new btrace thread info
13946 fields and new iterator.
13947 (record_btrace_call_history, record_btrace_call_history_range):
13948 Use new btrace thread info fields and new iterator.
13950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13952 * frame.h (frame_id_build_unavailable_stack_special): New.
13953 * frame.c (frame_id_build_unavailable_stack_special): New.
13955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13957 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13958 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13959 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13961 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13962 (i386_insn_is_jump, i386_jmp_p): New.
13963 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13964 insn_is_jump to gdbarch.
13965 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13966 * gdbarch.h: Regenerated.
13967 * gdbarch.c: Regenerated.
13968 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13969 (default_insn_is_jump): New.
13970 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13971 (default_insn_is_jump): New.
13973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13975 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13977 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13978 (btrace_read_type) <btrace_read_new>: Change to ...
13979 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13983 * common/linux-btrace.c (linux_read_btrace): Free trace from
13984 previous iteration.
13986 2014-01-15 Doug Evans <dje@google.com>
13988 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13991 2014-01-15 Tom Tromey <tromey@redhat.com>
13993 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13994 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13995 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13996 (set_objfile_main_name): New function.
13997 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13998 language_of_main>: New fields.
13999 (set_objfile_main_name): Declare.
14000 * symtab.c (find_main_name): Loop over objfiles to find the main
14002 (set_main_name): Now static.
14003 (get_main_info): Add comment.
14004 * symtab.h (set_main_name): Don't declare.
14006 2014-01-15 Tom Tromey <tromey@redhat.com>
14008 * symtab.c (main_progspace_key): New global.
14009 (struct main_info): New.
14010 (name_of_main, language_of_main): Remove.
14011 (get_main_info, main_info_cleanup): New function.
14012 (set_main_name, main_name, main_language): Use get_main_info.
14013 (_initialize_symtab): Initialize main_progspace_key.
14015 2014-01-15 Tom Tromey <tromey@redhat.com>
14017 * dbxread.c (process_one_symbol): Update.
14018 * dwarf2read.c (read_partial_die): Update.
14019 * symfile.c (set_initial_language): Call main_language.
14020 * symtab.c (language_of_main): Now static.
14021 (set_main_name): Add 'lang' parameter.
14022 (find_main_name): Update.
14023 (main_language): New function.
14024 (symtab_observer_executable_changed): Update.
14025 * symtab.h (set_main_name): Update.
14026 (language_of_main): Remove.
14027 (main_language): Declare.
14029 2014-01-15 Tom Tromey <tromey@redhat.com>
14031 * symfile.c (init_entry_point_info): Use new "initialized" field.
14033 * objfiles.h (struct entry_point) <initialized>: New field.
14034 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14035 (struct objfile) <ei>: ...here. Remove.
14036 * objfiles.c (entry_point_address_query): Update.
14038 2014-01-15 Tom Tromey <tromey@redhat.com>
14040 * objfiles.c (entry_point_address_query): Relocate entry point
14042 (objfile_relocate1): Do not relocate entry point address.
14043 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14044 <the_bfd_section_index>: New field.
14045 * symfile.c (init_entry_point_info): Find the entry point's
14048 2014-01-15 Tom Tromey <tromey@redhat.com>
14050 * solib-frv.c (enable_break): Use entry_point_address_query.
14052 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14054 * NEWS: Add note on improved process record-replay on
14055 arm*-linux* targets.
14057 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14059 * arm-tdep.c (enum arm_record_result): New enum.
14060 (arm_record_unsupported_insn): New function.
14061 (arm_record_coproc_data_proc): Removed.
14062 (thumb2_record_ld_st_multiple): New function.
14063 (thumb2_record_ld_st_dual_ex_tbb): New function.
14064 (thumb2_record_data_proc_sreg_mimm): New function.
14065 (thumb2_record_ps_dest_generic): New function.
14066 (thumb2_record_branch_misc_cntrl): New function.
14067 (thumb2_record_str_single_data): New function.
14068 (thumb2_record_ld_mem_hints): New function.
14069 (thumb2_record_ld_word): New function.
14070 (thumb2_record_lmul_lmla_div): New function.
14071 (thumb2_record_decode_insn_handler): New function.
14072 (decode_insn): Add thumb32 instruction handlers.
14074 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14076 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14077 (struct arm_linux_record_tdep): Declare.
14078 (arm_canonicalize_syscall): New function.
14079 (arm_all_but_pc_registers_record): New function.
14080 (arm_linux_syscall_record): New function.
14081 (arm_linux_init_abi): Add syscall recording constructs.
14082 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14083 decoding. (arm_record_coproc_data_proc): Update arm syscall
14085 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14086 <arm_syscall_record>: New field.
14087 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14090 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14092 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14093 register for push instruction recording.
14095 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14097 * arm-tdep.c (thumb_record_misc): Update to correct logical
14098 error while recording ldm, ldmia and pop instructions.
14100 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14102 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14104 2014-01-15 Pedro Alves <palves@redhat.com>
14106 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14107 (go32_resume, go32_fetch_registers, store_register)
14108 (go32_store_registers, go32_prepare_to_store)
14109 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14110 (go32_create_inferior, go32_can_run, go32_terminal_init)
14111 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14114 2014-01-15 Tom Tromey <tromey@redhat.com>
14116 * target.h (async_callback_ftype): New typedef.
14117 (struct target_ops) <to_async>: Use it.
14119 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14121 * python/py-value.c (get_field_type): Remove unnecessary curly
14122 braces for single-statement if block.
14124 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14126 * python/py-type.c (convert_field): Add missing empty line
14127 after declarations.
14129 2014-01-14 Doug Evans <dje@google.com>
14131 * symfile.h (expand_symtabs_matching): Renamed from
14132 expand_partial_symbol_names. Update prototype.
14133 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14134 * symfile.c (expand_symtabs_matching): Renamed from
14135 expand_partial_symbol_names. New args file_matcher, kind.
14136 Rename arg fun to symbol_matcher.
14137 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14138 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14139 ada_expand_partial_symbol_name.
14140 (ada_make_symbol_completion_list): Update to call
14141 expand_symtabs_matching.
14142 (ada_add_global_exceptions): Call expand_symtabs_matching.
14143 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14144 call map_symbol_filenames.
14145 * symtab.c (sources_info): Update to call map_symbol_filenames.
14146 (search_symbols): Call expand_symtabs_matching.
14147 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14148 (default_make_symbol_completion_list_break_on): Update to call
14149 expand_symtabs_matching.
14150 (make_source_files_completion_list): Update to call
14151 map_symbol_filenames.
14153 2014-01-14 Doug Evans <dje@google.com>
14155 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14156 (expand_symtabs_symbol_matcher_ftype): New typedef.
14157 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14158 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14159 * symfile.c (expand_partial_symbol_names): Update to use
14160 expand_symtabs_symbol_matcher_ftype.
14161 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14162 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14163 Arg name_matcher renamed to symbol_matcher.
14164 * psymtab.c (recursively_search_psymtabs): Update to use
14165 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14167 (expand_symtabs_matching_via_partial): Update to use
14168 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14169 Arg name_matcher renamed to symbol_matcher.
14171 2014-01-14 Doug Evans <dje@google.com>
14173 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14174 (map_partial_symbol_filenames): Ditto.
14175 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14176 (map_partial_symbol_filenames): Ditto.
14177 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14178 (map_partial_symbol_filenames): Ditto.
14179 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14180 (map_partial_symbol_filenames): Ditto.
14181 * symtab.c: Delete #include "psymtab.h".
14183 2014-01-14 Pedro Alves <palves@redhat.com>
14184 Tom Tromey <tromey@redhat.com>
14186 * infrun.c (use_displaced_stepping): Use find_record_target
14187 instead of RECORD_IS_USED.
14188 (adjust_pc_after_break): Use record_full_is_used instead of
14190 * record-btrace.c (record_btrace_open): Call record_preopen
14191 instead of checking RECORD_IS_USED.
14192 * record-full.c (record_full_shortname)
14193 (record_full_core_shortname): New globals.
14194 (record_full_is_used): New function.
14195 (find_full_open): Call record_preopen instead of checking
14197 (init_record_full_ops): Set the target's shortname to
14198 record_full_shortname.
14199 (init_record_full_core_ops): Set the target's shortname to
14200 record_full_core_shortname.
14201 * record-full.h (record_full_is_used): Declare.
14202 * record.c (find_record_target): Make extern.
14203 (record_preopen): New function.
14204 * record.h (RECORD_IS_USED): Delete macro.
14205 (find_record_target, record_preopen): Declare functions.
14207 2014-01-14 Yao Qi <yao@codesourcery.com>
14209 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14210 'len''s type to ULONGEST.
14211 (core_xfer_shared_libraries_aix): Likewise.
14212 * gdbarch.c, gdbarch.h: Regenerated.
14213 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14214 Change type of 'len' to ULONGEST.
14215 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14216 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14218 2014-01-14 Yao Qi <yao@codesourcery.com>
14220 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14221 type of 'len' to ULONGEST.
14222 (linux_xfer_osdata_processgroups): Likewise.
14223 (linux_xfer_osdata_threads): Likewise.
14224 (linux_xfer_osdata_fds): Likewise.
14225 (linux_xfer_osdata_isockets): Likewise.
14226 (linux_xfer_osdata_shm): Likewise.
14227 (linux_xfer_osdata_sem): Likewise.
14228 (linux_xfer_osdata_msg): Likewise.
14229 (linux_common_xfer_osdata): Likewise.
14230 (struct osdata_type) <getter>: Likewise.
14231 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14234 2014-01-14 Yao Qi <yao@codesourcery.com>
14236 * target.h (target_xfer_partial_ftype): Update.
14237 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14239 * aix-thread.c (aix_thread_xfer_partial): Change type of
14240 argument 'len' to ULONGEST.
14241 * auxv.c (procfs_xfer_auxv): Likewise.
14242 (ld_so_xfer_auxv): Likewise.
14243 (memory_xfer_auxv): Likewise.
14244 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14245 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14246 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14247 * corelow.c (core_xfer_partial): Likewise.
14248 * ctf.c (ctf_xfer_partial): Likewise.
14249 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14251 (darwin_read_dyld_info): Likewise.
14252 (darwin_xfer_partial): Likewise.
14253 * exec.c (section_table_xfer_memory_partial): Likewise.
14254 (exec_xfer_partial): Likewise.
14255 * exec.h (section_table_xfer_memory_partial): Update
14257 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14258 instead of plongest.
14259 (gnu_xfer_partial): Likewise.
14260 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14261 (ia64_hpux_xfer_solib_got): Likewise.
14262 (ia64_hpux_xfer_partial): Likewise.
14263 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14264 * inf-ptrace.c (inf_ptrace_xfer_partial):
14265 * inf-ttrace.c (inf_ttrace_xfer_partial):
14266 * linux-nat.c (linux_xfer_siginfo): Likewise.
14267 (linux_nat_xfer_partial): Likewise.
14268 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14269 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14270 * monitor.c (monitor_xfer_memory): Likewise.
14271 (monitor_xfer_partial): Likewise.
14272 * procfs.c (procfs_xfer_partial): Likewise.
14273 * record-full.c (record_full_xfer_partial): Likewise.
14274 (record_full_core_xfer_partial): Likewise.
14275 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14276 instead of plongest.
14277 (gdbsim_xfer_partial): Likewise.
14278 * remote.c (remote_xfer_partial): Likewise.
14279 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14280 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14282 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14283 (rs6000_xfer_shared_libraries): Likewise.
14284 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14285 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14286 (sparc_xfer_partial): Likewise.
14287 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14288 (spu_xfer_partial): Likewise.
14289 * spu-multiarch.c (spu_xfer_partial): Likewise.
14290 * target.c (target_read_live_memory): Likewise.
14291 (memory_xfer_live_readonly_partial): Likewise.
14292 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14293 (target_xfer_partial, default_xfer_partial): Likewise.
14294 (current_xfer_partial): Likewise.
14295 * tracepoint.c (tfile_xfer_partial): Likewise.
14296 * windows-nat.c (windows_xfer_memory): Likewise. Call
14297 pulongest instead of plongest.
14298 (windows_xfer_partial): Likewise.
14299 (windows_xfer_shared_libraries): Likewise.
14301 2014-01-14 Yao Qi <yao@codesourcery.com>
14303 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14304 target_xfer_partial_ftype.
14306 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14310 * valops.c (value_struct_elt_bitpos): New function
14311 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14312 object to 'None' if the field name is an empty string ("").
14313 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14314 attribute to look for a field when 'name' is 'None'.
14315 (get_field_type): New function
14317 2014-01-13 Doug Evans <dje@google.com>
14320 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14321 (try_open_dwop_file): Ditto.
14322 * gdb_bfd.c: #include "vec.h".
14323 (bfdp): New typedef.
14324 (struct gdb_bfd_data): New member included_bfds.
14325 (gdb_bfd_unref): Unref all included bfds.
14326 (gdb_bfd_record_inclusion): New function.
14327 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14329 2014-01-13 Tom Tromey <tromey@redhat.com>
14331 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14333 2014-01-13 Tom Tromey <tromey@redhat.com>
14335 * defs.h (use_windows): Remove.
14336 * gdb.c (main): Update.
14337 * main.c (captured_main, gdb_main): Update.
14338 * main.h (struct captured_main_args) <use_windows>: Remove.
14339 * top.c (use_windows): Remove.
14341 2014-01-13 Tom Tromey <tromey@redhat.com>
14343 * defs.h (deprecated_flush_hook): Remove.
14345 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14348 * linux-thread-db.c (try_thread_db_load): Add parameter
14349 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14350 (try_thread_db_load_from_pdir_1): Move it there from here.
14351 (try_thread_db_load_from_sdir): Update caller.
14352 (try_thread_db_load_from_dir): Move it there from here.
14354 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14356 * regformats/regdat.sh: Always rewrite the register file.
14358 2014-01-13 Pedro Alves <palves@redhat.com>
14360 * Makefile.in (CHECK_HEADERS): New variable.
14361 (check-headers:): New rule.
14363 2014-01-13 Tom Tromey <tromey@redhat.com>
14365 * cli/cli-setshow.c (do_set_command): Update.
14366 * defs.h (deprecated_set_hook): Remove.
14367 * top.c (deprecated_set_hook): Remove.
14369 2014-01-13 Pedro Alves <palves@redhat.com>
14371 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14372 the tracepoint if the PC is a pseudo-register.
14374 2014-01-13 Tom Tromey <tromey@redhat.com>
14376 * defs.h (XCALLOC): Remove.
14377 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14378 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14379 * dwarf2loc.c (allocate_piece_closure): Likewise.
14380 * elfread.c (elf_symfile_segments): Likewise.
14381 (elf_symfile_segments): Likewise.
14382 * gdbtypes.c (copy_type_recursive): Likewise.
14383 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14384 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14385 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14387 * mt-tdep.c (mt_gdbarch_init): Likewise.
14388 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14390 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14391 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14392 * registry.c (registry_alloc_data): Likewise.
14393 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14394 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14395 * serial.c (serial_fdopen_ops): Likewise.
14396 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14398 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14399 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14402 2014-01-13 Tom Tromey <tromey@redhat.com>
14404 * defs.h (XMALLOC): Remove.
14405 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14406 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14407 * cli-out.c (struct ui_out *): Likewise.
14408 * cli/cli-dump.c (add_dump_command): Likewise.
14409 (add_dump_command): Likewise.
14410 * complaints.c (get_complaints): Likewise.
14411 (find_complaint): Likewise.
14412 * dwarf2-frame.c (execute_cfa_program): Likewise.
14413 * dwarf2read.c (abbrev_table_read_table): Likewise.
14414 * gdbarch.sh: Likewise.
14415 * gdbarch.c: Rebuild.
14416 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14417 * interps.c (interp_new): Likewise.
14418 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14419 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14420 * mi/mi-console.c (mi_console_file_new): Likewise.
14421 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14422 * mi/mi-out.c (mi_out_new): Likewise.
14423 * mi/mi-parse.c (mi_parse): Likewise.
14424 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14425 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14426 * observer.c (xalloc_observer_list_node): Likewise.
14427 * regcache.c (regcache_xmalloc_1): Likewise.
14428 * reggroups.c (reggroup_new): Likewise.
14429 (_initialize_reggroup): Likewise.
14430 * registry.c (register_data_with_cleanup): Likewise.
14431 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14432 * ser-base.c (serial_ttystate): Likewise.
14433 * ser-mingw.c (make_pipe_state): Likewise.
14434 * ser-pipe.c (pipe_open): Likewise.
14435 * serial.c (serial_open): Likewise.
14436 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14437 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14438 (tui_alloc_win_info): Likewise.
14439 (tui_add_content_elements): Likewise.
14440 * tui/tui-file.c (tui_file_new): Likewise.
14441 * tui/tui-out.c (tui_out_new): Likewise.
14442 * ui-file.c (mem_file_new): Likewise.
14443 * ui-out.c (push_level): Likewise.
14444 (make_cleanup_ui_out_end): Likewise.
14445 (append_header_to_list): Likewise.
14446 (ui_out_new): Likewise.
14447 * user-regs.c (user_reg_add_builtin): Likewise.
14449 2014-01-13 Tom Tromey <tromey@redhat.com>
14451 * defs.h (XZALLOC): Remove.
14452 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14453 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14454 (get_ada_tasks_inferior_data): Likewise.
14455 * auto-load.c (get_auto_load_pspace_data): Likewise.
14456 * auxv.c (get_auxv_inferior_data): Likewise.
14457 * bfd-target.c (target_bfd_reopen): Likewise.
14458 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14459 (deprecated_insert_raw_breakpoint): Likewise.
14460 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14461 * corelow.c (core_open): Likewise.
14462 * darwin-nat.c (darwin_check_new_threads): Likewise.
14463 (darwin_attach_pid): Likewise.
14464 * dummy-frame.c (dummy_frame_push): Likewise.
14465 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14466 * dwarf2loc.c (allocate_piece_closure): Likewise.
14467 * elfread.c (elf_symfile_segments): Likewise.
14468 * eval.c (ptrmath_type_p): Likewise.
14469 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14470 * gdbtypes.c (alloc_type_arch): Likewise.
14471 (alloc_type_instance): Likewise.
14472 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14473 * inf-child.c (inf_child_can_use_agent): Likewise.
14474 * inflow.c (get_inflow_inferior_data): Likewise.
14475 * infrun.c (save_infcall_suspend_state): Likewise.
14476 * jit.c (jit_reader_load): Likewise.
14477 (get_jit_objfile_data): Likewise.
14478 (get_jit_program_space_data): Likewise.
14479 (jit_object_open_impl): Likewise.
14480 (jit_symtab_open_impl): Likewise.
14481 (jit_block_open_impl): Likewise.
14482 (jit_frame_sniffer): Likewise.
14483 * linux-fork.c (add_fork): Likewise.
14484 * maint.c (make_command_stats_cleanup): Likewise.
14485 * objfiles.c (get_objfile_pspace_data): Likewise.
14486 * opencl-lang.c (struct lval_closure): Likewise.
14487 * osdata.c (osdata_start_osdata): Likewise.
14488 * progspace.c (new_address_space): Likewise.
14489 (add_program_space): Likewise.
14490 * remote-sim.c (get_sim_inferior_data): Likewise.
14491 * sh-tdep.c (sh_gdbarch_init): Likewise.
14492 * skip.c (Ignore): Likewise.
14493 (skip_delete_command): Likewise.
14494 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14495 (library_list_start_library): Likewise.
14496 (solib_aix_current_sos): Likewise.
14497 * solib-darwin.c (get_darwin_info): Likewise.
14498 (darwin_current_sos): Likewise.
14499 * solib-dsbt.c (get_dsbt_info): Likewise.
14500 * solib-ia64-hpux.c (new_so_list): Likewise.
14501 (ia64_hpux_get_solib_linkage_addr): Likewise.
14502 * solib-spu.c (append_ocl_sos): Likewise.
14503 (spu_current_sos): Likewise.
14504 * solib-svr4.c (get_svr4_info): Likewise.
14505 (svr4_keep_data_in_core): Likewise.
14506 (library_list_start_library): Likewise.
14507 (svr4_default_sos): Likewise.
14508 (svr4_read_so_list): Likewise.
14509 * solib-target.c (library_list_start_library): Likewise.
14510 (solib_target_current_sos): Likewise.
14511 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14512 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14513 * symfile.c (default_symfile_segments): Likewise.
14514 * target-descriptions.c (tdesc_data_init): Likewise.
14515 (tdesc_create_reg): Likewise.
14516 (struct tdesc_type *): Likewise.
14517 (tdesc_create_vector): Likewise.
14518 (tdesc_set_struct_size): Likewise.
14519 (struct tdesc_type *): Likewise.
14520 (tdesc_free_feature): Likewise.
14521 (tdesc_create_feature): Likewise.
14522 * windows-nat.c (windows_add_thread): Likewise.
14523 (windows_make_so): Likewise.
14524 * xml-support.c (gdb_xml_body_text): Likewise.
14525 (gdb_xml_create_parser_and_cleanup): Likewise.
14526 (xml_process_xincludes): Likewise.
14527 * xml-syscall.c (allocate_syscalls_info): Likewise.
14528 (syscall_create_syscall_desc): Likewise.
14530 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14532 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14533 function, with code from i386_stap_parse_special_token.
14534 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14535 (i386_stap_parse_special_token): Move code to the two functions
14536 above; simplify it.
14538 2014-01-09 Pedro Alves <palves@redhat.com>
14539 Hui Zhu <hui@codesourcery.com>
14542 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14543 bp_err_string. Don't mark the location shlib_disabled if the
14544 error thrown wasn't a generic or memory error. Catch errors
14545 thrown while inserting breakpoints in overlayed code. Output
14546 error message of software breakpoints.
14547 * remote.c (remote_insert_breakpoint): If this breakpoint has
14548 target-side commands but this stub doesn't support Z0 packets,
14549 throw NOT_SUPPORTED_ERROR error.
14550 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14551 * target.h (target_insert_breakpoint): Extend comment.
14552 (target_insert_hw_breakpoint): Add comment.
14554 2014-01-08 Pedro Alves <palves@redhat.com>
14556 * remote.c (remote_add_thread): Add threads silently if starting
14558 (remote_notice_new_inferior): If in all-stop, and starting up,
14559 don't call notice_new_inferior.
14560 (get_current_thread): New function, factored out from ...
14561 (add_current_inferior_and_thread): ... this. Adjust.
14562 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14563 found any thread, then select the remote's current thread as GDB's
14564 current thread too.
14566 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14568 * NEWS: Create a new section for the next release branch.
14569 Rename the section of the current branch, now that it has
14572 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14574 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14575 * version.in: Bump version to 7.7.50.DATE-cvs.
14577 2014-01-08 Yao Qi <yao@codesourcery.com>
14579 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14580 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14581 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14583 2014-01-08 Yao Qi <yao@codesourcery.com>
14585 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14586 return value of bfd_get_filename to symbol_file_add_from_bfd.
14588 2014-01-08 Pierre Muller <muller@sourceware.org>
14591 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14592 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14593 to prim_record_mininal_symbol_and_info.
14594 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14595 in call to prim_record_minimal_symbol_and_info.
14596 (read_pe_exported_syms): Set index field of section_data.
14598 2014-01-07 Andrew Pinski <apinski@cavium.com>
14600 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14601 * features/aarch64.c: Regenerate.
14603 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14605 * target.c (return_null): Define.
14606 (update_current_target): Use it instead of return_zero for
14607 functions that return a pointer.
14609 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14611 * source.c (add_path): Fix check for duplicated paths in the previously
14614 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14616 * ada-lang.c: Remove duplicated include statements.
14617 * alphabsd-nat.c: Ditto.
14618 * amd64-darwin-tdep.c: Ditto.
14619 * amd64fbsd-nat.c: Ditto.
14620 * auto-load.c: Ditto.
14622 * breakpoint.c: Ditto.
14623 * dbxread.c: Ditto.
14624 * fork-child.c: Ditto.
14625 * gdb_usleep.c: Ditto.
14626 * i386-darwin-tdep.c: Ditto.
14627 * i386fbsd-nat.c: Ditto.
14629 * inferior.c: Ditto.
14630 * jv-lang.c: Ditto.
14631 * linux-nat.c: Ditto.
14632 * linux-tdep.c: Ditto.
14633 * m68kbsd-nat.c: Ditto.
14634 * m68klinux-nat.c: Ditto.
14635 * microblaze-tdep.c: Ditto.
14636 * mips-linux-tdep.c: Ditto.
14637 * mn10300-tdep.c: Ditto.
14638 * nto-tdep.c: Ditto.
14639 * opencl-lang.c: Ditto.
14641 * printcmd.c: Ditto.
14642 * regcache.c: Ditto.
14643 * remote-m32r-sdi.c: Ditto.
14645 * symfile.c: Ditto.
14647 * tilegx-linux-nat.c: Ditto.
14648 * tilegx-tdep.c: Ditto.
14649 * tracepoint.c: Ditto.
14651 * vaxbsd-nat.c: Ditto.
14652 * windows-nat.c: Ditto.
14653 * xtensa-tdep.c: Ditto.
14655 2014-01-07 Yao Qi <yao@codesourcery.com>
14657 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14659 2014-01-07 Yao Qi <yao@codesourcery.com>
14660 Joel Brobecker <brobecker@adacore.com>
14662 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14663 (pdc_write_regs): Likewise.
14664 (fetch_regs_kernel_thread): Likewise.
14665 (store_regs_kernel_thread): Likewise.
14667 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14669 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14670 tagged type objects to their actual type.
14672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14674 * ada-valprint.c (print_field_values): Add "language" parameter.
14675 Update calls to print_field_values and print_variant_part.
14676 Pass new parameter "language" in call to val_print instead
14677 of "current_language". Replace call to ada_val_print by call
14679 (print_variant_part): Add "language" parameter.
14680 (ada_val_print_struct_union): Update call to print_field_values.
14682 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14684 * ada-valprint.c (ui_memcpy): Delete.
14685 (ada_print_floating): Update documentation. Add empty line
14686 between between function documentation and implementation.
14687 Delete variable "buffer". Use ui_file_xstrdup in place of
14688 ui_file_put. Minor adjustments following this change.
14690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14692 * ada-valprint.c (ada_val_print_string): New function,
14693 extracted from ada_val_print_array.
14694 (ada_val_print_array): Replace extracted code by call
14695 to ada_val_print_string followed by a return. Move
14696 "else" branch to the function's top block.
14698 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14700 * ada-valprint.c (ada_val_print_array): Move implementation
14701 down. Rename parameter "offset" and "val" into "offset_aligned"
14702 and "original_value" respectively. Add parameter "offset".
14704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14706 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14707 re-organizing the code. Change the "???" message printed
14708 when target type is a TYPE_CODE_UNDEF into
14709 "<ref to undefined type>".
14711 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14713 * ada-valprint.c (print_record): Delete, implementation inlined...
14714 (ada_val_print_struct_union): ... here. Remove call to
14715 ada_check_typedef in inlined implementation.
14717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14719 * ada-valprint.c (ada_val_print_gnat_array): New function,
14720 extracted from ada_val_print_1;
14721 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14722 (ada_val_print_flt, ada_val_print_struct_union)
14723 (ada_val_print_ref): Likewise.
14724 (ada_val_print_1): Delete variables i and elttype.
14725 Replace extracted-out code by call to corresponding
14728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14730 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14734 * ada-valprint.c (ada_val_print_1): Replace calls to
14735 ada_val_print_1 by calls to val_print.
14737 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14739 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14740 Update calls to self accordingly. Replace calls to c_val_print
14741 by calls to val_print.
14743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14745 * ada-valprint.c (print_record): Delete declaration.
14746 (adjust_type_signedness, ada_val_print_1): Likewise.
14747 (ada_val_print): Move function implementation down.
14748 (print_variant_part, print_field_values, print_record):
14749 Move function implementation up.
14751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14753 * python/py-type.c (typy_get_name): New function.
14754 (type_object_getset): Add entry for attribute "name".
14755 * NEWS: Add entry mentioning this new attribute.
14757 2014-01-07 Yao Qi <yao@codesourcery.com>
14759 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14762 2014-01-07 Yao Qi <yao@codesourcery.com>
14764 * gnu-nat.c (info_port_rights): Add qualifier const to
14767 2014-01-07 Yao Qi <yao@codesourcery.com>
14769 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14771 2014-01-07 Yao Qi <yao@codesourcery.com>
14773 * gnu-nat.c (make_inf) Update declaration.
14774 (make_inf): Make it static.
14775 (inf_set_traced): Likewise.
14776 (inf_port_to_thread, inf_task_died_status): Likewise.
14778 2014-01-07 Yao Qi <yao@codesourcery.com>
14780 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14782 2014-01-07 Yao Qi <yao@codesourcery.com>
14784 * gnu-nat.c (_initialize_gnu_nat): Declare.
14786 2014-01-07 Yao Qi <yao@codesourcery.com>
14788 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14790 (struct gdbarch_info) <byte_order>: Change type to
14792 <byte_order_for_code>: Likewise.
14793 * gdbarch.c, gdbarch.h: Regenerated.
14795 2014-01-06 Sasha Smundak <asmundak@google.com>
14797 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14799 2014-01-06 Tom Tromey <tromey@redhat.com>
14801 * doublest.c (convert_doublest_to_floatformat): Use const, not
14803 * somread.c (som_symtab_read): Likewise.
14805 2014-01-07 Hui Zhu <hui@codesourcery.com>
14807 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14808 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14809 (gdb_bfd_fopen): Ditto.
14810 (gdb_bfd_openr): Ditto.
14811 (gdb_bfd_openw): Ditto.
14812 (gdb_bfd_openr_iovec): Ditto.
14813 (gdb_bfd_fdopenr): Ditto.
14814 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14815 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14817 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14819 * symfile-mem.c (symbol_file_add_from_memory): Removed
14820 gdb_bfd_stash_filename.
14822 2014-01-03 Doug Evans <dje@google.com>
14824 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14827 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14829 Update year range in copyright notice of all files.
14831 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14833 * top.c (print_gdb_version): Set copyright year to 2014.
14835 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14837 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14839 For older changes see ChangeLog-2013.
14845 version-control: never