1 2014-11-10 Doug Evans <xdje42@gmail.com>
3 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
5 2014-11-10 Doug Evans <xdje42@gmail.com>
8 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
9 (lookup_static_symbol): Move definition to new location and rewrite.
10 (lookup_symbol_in_objfile): New function.
11 (lookup_symbol_global_iterator_cb): Call it.
13 2014-11-10 Ulrich Weigand <uweigand@de.ibm.com>
15 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
17 2014-11-07 Pedro Alves <palves@redhat.com>
19 * infrun.c (process_event_stop_test) <subroutine check>: Don't
20 check if we did a "nexti" inside a prologue.
21 * symtab.c (in_prologue): Delete function.
22 * symtab.h (in_prologue): Delete declaration.
24 2014-11-06 Doug Evans <xdje42@gmail.com>
26 * symtab.h (lookup_global_symbol): Improve function comment.
28 2014-11-06 Doug Evans <xdje42@gmail.com>
30 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
32 * symtab.h (lookup_global_symbol): Update decl.
33 (lookup_static_symbol): Move decl to better location.
35 2014-11-06 Doug Evans <xdje42@gmail.com>
37 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
39 2014-11-06 Doug Evans <xdje42@gmail.com>
41 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
43 (lookup_symbol_in_all_objfiles): Renamed from
44 lookup_symbol_aux_symtabs. All callers updated.
45 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
47 (lookup_symbol_in_objfile_symtabs): Renamed from
48 lookup_symbol_aux_objfile. All callers updated.
50 2014-11-06 Doug Evans <xdje42@gmail.com>
52 * symtab.c (lookup_symbol_in_block): Renamed from
53 lookup_symbol_aux_block. All callers updated.
55 2014-11-06 Doug Evans <xdje42@gmail.com>
57 * symtab.c (lookup_static_symbol): Renamed from
58 lookup_static_symbol_aux. All callers updated.
59 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
62 2014-11-06 Doug Evans <xdje42@gmail.com>
64 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
65 * block.c (block_lookup_symbol): Use it.
66 * cp-support.c (make_symbol_overload_list_block): Use it.
67 * symtab.c (iterate_over_symbols): Use it.
69 2014-11-06 Doug Evans <xdje42@gmail.com>
71 * symtab.c (lookup_block_symbol): Moved to ...
72 * block.c (block_lookup_symbol): ... here and renamed.
74 * block.h (block_lookup_symbol): Declare.
75 * symtab.h (lookup_block_symbol): Delete.
77 2014-11-06 Doug Evans <xdje42@gmail.com>
79 * ada-lang.c (ada_make_symbol_completion_list): Use
80 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
81 * symtab.c (lookup_objfile_from_block): Ditto.
83 2014-11-06 Doug Evans <xdje42@gmail.com>
85 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
88 2014-11-06 Doug Evans <xdje42@gmail.com>
90 * objfiles.c (get_objfile_arch): Constify.
91 * objfiles.h (get_objfile_arch): Update prototype.
92 * solib.c (solib_global_lookup): Fetch arch from objfile,
95 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
97 * nios2-tdep.c (wild_insn): Delete.
98 (profiler_insn, irqentry_insn): Delete.
99 (nios2_match_sequence): Delete.
100 (nios2_analyze_prologue): Update comments. Remove matching
101 of obsolete profiler_insn and irqentry_insn sequences.
103 2014-11-05 Alan Modra <amodra@gmail.com>
105 * charset.c (convert_between_encodings): Shrink obstack using
107 * minsyms.c (install_minimal_symbols): Likewise.
108 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
109 to char* before doing pointer arithmetic.
111 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
113 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
115 2014-11-04 Pedro Alves <palves@redhat.com>
117 * breakpoint.c (breakpoint_thread_match): Delete function.
118 * breakpoint.h (breakpoint_thread_match): Delete declaration.
120 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
123 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
124 the method args also under EVAL_SKIP when evaluating method
125 calls under EVAL_SKIP.
127 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
129 * dwarf2loc.c (read_pieced_value): Do big endian
130 processing only if gdb_regnum is not -1.
131 (write_pieced_value): Ditto.
133 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
135 * arm-linux-tdep.c (arm_linux_init_abi): Use
136 info.byte_order_for_code to choose endianity of breakpoint
137 instructions snippets.
139 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
141 * arm-tdep.c (extract_arm_insn): Use
142 gdbarch_byte_order_for_code to read arm instruction.
144 2014-11-02 Doug Evans <xdje42@gmail.com>
146 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
148 2014-11-02 Doug Evans <xdje42@gmail.com>
150 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
151 main_subfile before returning.
153 2014-10-31 Doug Evans <xdje42@gmail.com>
155 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
156 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
158 2014-10-31 Doug Evans <xdje42@gmail.com>
160 * valops.c (value_cast_pointers): Fix whitespace.
161 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
164 2014-10-30 Doug Evans <dje@google.com>
166 * NEWS: Mention ability add attributes to gdb.Objfile and
167 gdb.Progspace objects.
168 * python/py-objfile.c (objfile_object): New member dict.
169 (objfpy_dealloc): Py_XDECREF dict.
170 (objfpy_initialize): Initialize dict.
171 (objfile_getset): Add __dict__.
172 (objfile_object_type): Set tp_dictoffset member.
173 * python/py-progspace.c (progspace_object): New member dict.
174 (pspy_dealloc): Py_XDECREF dict.
175 (pspy_initialize): Initialize dict.
176 (pspace_getset): Add __dict__.
177 (pspace_object_type): Set tp_dictoffset member.
179 2014-10-30 Yao Qi <yao@codesourcery.com>
181 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
182 replace '\\' with '\\\\'.
184 2014-10-29 Joel Brobecker <brobecker@adacore.com>
188 2014-10-29 Pedro Alves <palves@redhat.com>
191 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
192 instead of assuming a thread with a stepping range is always
195 2014-10-29 Pedro Alves <palves@redhat.com>
198 * event-top.c (change_line_handler): Call
199 gdb_rl_callback_handler_remove instead of
200 rl_callback_handler_remove.
201 (callback_handler_installed): New global.
202 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
203 (gdb_rl_callback_handler_reinstall): New functions.
204 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
205 gdb_rl_callback_handler_install instead of
206 rl_callback_handler_remove and rl_callback_handler_install.
207 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
208 instead of rl_callback_handler_remove.
209 * event-top.h (gdb_rl_callback_handler_remove)
210 (gdb_rl_callback_handler_install)
211 (gdb_rl_callback_handler_reinstall): New declarations.
212 * infrun.c (reinstall_readline_callback_handler_cleanup): New
214 (fetch_inferior_event): Install it.
215 * top.c (gdb_readline_wrapper_line) Call
216 gdb_rl_callback_handler_remove instead of
217 rl_callback_handler_remove.
218 (gdb_readline_wrapper_cleanup): Don't call
219 rl_callback_handler_install.
221 2014-10-29 Pedro Alves <palves@redhat.com>
223 * event-top.c (command_line_handler): Clear the first byte of
224 linebuffer, when it is first allocated.
226 2014-10-29 Pedro Alves <palves@redhat.com>
228 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
231 2014-10-29 Pedro Alves <palves@redhat.com>
235 * tui/tui-interp.c (tui_is_toplevel): Delete global.
236 (tui_allowed_p): Delete function.
237 * tui/tui.c: Include "interps.h".
238 (tui_enable): Don't use tui_allowed_p. Error out here with
239 detailed error messages if the TUI is the top level interpreter,
240 or if output is not a terminal. Use newterm instead of initscr,
241 and error out if initializing the terminal fails. Also error out if
242 the terminal doesn't support cursor addressing.
243 * tui/tui.h (tui_allowed_p): Delete declaration.
245 2014-10-29 Joel Brobecker <brobecker@adacore.com>
247 * arm-tdep.c (arm_skip_stack_protector): Return early if
248 address loaded by first "ldr" instruction does not have
249 a corresponding minimal symbol. Update comment.
251 2014-10-29 Yao Qi <yao@codesourcery.com>
253 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
254 loaded address correctly of ldr instruction.
256 2014-10-28 Pedro Alves <palves@redhat.com>
259 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
261 * infrun.c (resume) <stepping breakpoint instruction>: Set the
262 thread's stepped_breakpoint field. Skip if reverse debugging.
264 (init_thread_stepping_state, handle_signal_stop): Clear the
265 thread's stepped_breakpoint field.
267 2014-10-27 Pedro Alves <palves@redhat.com>
269 * remote.c (remote_thread_alive): New, factored out from ...
270 (remote_thread_alive): ... this.
271 (remote_update_thread_list): Bail out before deleting threads if
272 the target returned an empty list, and, the current thread has a
275 2014-10-27 Pedro Alves <palves@redhat.com>
277 * infrun.c (handle_signal_stop): Also skip handlers when a random
278 signal arrives while handling a "stepi" or a "nexti". Set the
279 thread's 'step_after_step_resume_breakpoint' flag.
281 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
283 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
284 (arm_record_ld_st_imm_offset): Reimplement to cover all
285 load/store cases for ARM opcode 010.
286 (arm_record_ld_st_multiple): Reimplement to cover all
287 load/store cases for ARM opcode 100.
289 2014-10-26 Doug Evans <xdje42@gmail.com>
291 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
293 2014-10-26 Doug Evans <xdje42@gmail.com>
295 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
296 parameter "kind" to "block_index".
297 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
299 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
301 2014-10-26 Doug Evans <xdje42@gmail.com>
303 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
305 2014-10-26 Doug Evans <xdje42@gmail.com>
307 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
310 2014-10-26 Doug Evans <xdje42@gmail.com>
312 * parser-defs.h (block_found): Move decl from here ...
313 * symtab.h (block_found): ... to here.
315 2014-10-26 Doug Evans <xdje42@gmail.com>
317 * symtab.h (struct field_of_this_result): Fix typo in comment.
318 (lookup_symbol_in_language): Move function comment here.
319 (lookup_symbol): Improve function comment.
320 (basic_lookup_symbol_nonlocal): Ditto.
321 (lookup_symbol_static, lookup_symbol_global): Ditto.
322 (lookup_symbol_aux_block): Ditto.
323 (lookup_language_this): Add function comment.
324 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
326 (lookup_block_symbol): Improve function comment.
327 (lookup_struct): Fix capitalization in function comment.
328 (lookup_transparent_type): Add function comment.
329 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
330 Improve function comment.
331 (lookup_objfile_from_block): Add function comment.
332 * symtab.c (lookup_symbol_in_language): Update function comment.
333 (lookup_symbol, lookup_language_this): Ditto.
334 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
335 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
336 (basic_lookup_symbol_nonlocal): Ditto.
337 (lookup_symbol_static, lookup_symbol_global): Ditto.
338 (lookup_transparent_type, lookup_block_symbol): Ditto.
340 2014-10-25 Doug Evans <xdje42@gmail.com>
342 * symtab.c (types_info): Delete forward decl.
343 (functions_info, variables_info, sources_info): Ditto.
344 (_initialize_symtab): Rewrite forward decl to use
345 initialize_file_ftype.
347 2014-10-25 Doug Evans <xdje42@gmail.com>
349 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
351 2014-10-25 Doug Evans <xdje42@gmail.com>
353 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
354 of local var child_die.
356 2014-10-24 Don Breazeal <donb@codesourcery.com>
358 * infrun.c (follow_fork_inferior): Update fork message printing
359 to use target_terminal_ours_for_output instead of
360 target_terminal_ours, to use _() for all format strings, to print
361 "vfork" instead of "fork" for vforks, and to add a detach message.
362 (handle_vfork_child_exec_or_exit): Update message printing to use
363 target_terminal_ours_for_output instead of target_terminal_ours, to
364 use _() for all format strings, and to fix some formatting.
366 2014-10-24 Pedro Alves <palves@redhat.com>
368 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
369 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
370 * config/vax/vax.mh: Delete.
371 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
372 obsolete configurations section.
373 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
374 * vax-nat.c: Delete file.
376 2014-10-24 Pedro Alves <palves@redhat.com>
378 * NEWS (Removed targets): Add OS/arch column.
380 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
382 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
383 on the arg type of a constructor only if it is of reference type.
385 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
387 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
388 accessors and constants from nios2 opcodes update.
389 (nios2_get_next_pc): Likewise.
391 2014-10-19 Doug Evans <xdje42@gmail.com>
393 * gdbthread.h (set_running): Fix comment.
394 (set_executing, finish_thread_state): Fix comment.
396 2014-10-18 Doug Evans <xdje42@gmail.com>
398 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
400 2014-10-17 Doug Evans <dje@google.com>
402 * NEWS: Mention new event gdb.clear_objfiles.
403 * python/py-event.h (emit_clear_objfiles_event): Clear
404 * python/py-events.h (events_object): New member clear_objfiles.
405 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
407 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
408 emit clear_objfiles event.
409 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
411 (emit_clear_objfiles_event): New function.
412 (clear_objfiles): New event.
413 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
415 * python/python.c (_initialize_python): Call
416 gdbpy_initialize_clear_objfiles_event.
418 2014-10-17 Doug Evans <dje@google.com>
420 * NEWS: Mention new gdb.Objfile.progspace attribute.
421 * python/py-objfile.c (objfpy_get_progspace): New function.
422 (objfile_getset): New entry for "progspace".
424 2014-10-17 Pedro Alves <palves@redhat.com>
427 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
428 returns a copy of the input.
429 (run_command_1, continue_command, step_1, jump_command)
430 (signal_command, until_command, advance_command, finish_command)
431 (attach_command): Adjust and install a cleanup to free the
434 2014-10-17 Pedro Alves <palves@redhat.com>
437 * infcmd.c (continue_1): If continuing all threads in the
438 foreground, make sure the inferior's terminal settings are put in
441 2014-10-17 Pedro Alves <palves@redhat.com>
444 * annotate.c (annotate_breakpoints_invalid): Use
445 target_terminal_our_for_output instead of target_terminal_ours.
446 Give back the terminal to the target.
447 (annotate_frames_invalid): Likewise.
449 2014-10-17 Pedro Alves <palves@redhat.com>
451 * target.c (enum terminal_state): New enum.
452 (terminal_state): New global.
453 (target_terminal_init): New function.
454 (target_terminal_inferior): Skip if inferior already owns the
456 (target_terminal_ours, target_terminal_ours_for_output): New
458 * target.h (target_terminal_init): Convert to function prototype.
459 (target_terminal_ours_for_output): Convert to function prototype
461 (target_terminal_ours): Convert to function prototype and tweak
463 * windows-nat.c (do_initial_windows_stuff): Call
464 target_terminal_init instead of child_terminal_init_with_pgrp.
466 2014-10-17 Pedro Alves <palves@redhat.com>
468 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
469 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
470 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
472 * NEWS: Mention that support for alpha*-*-osf* has been removed.
473 * ada-lang.h [__alpha__ && __osf__]
474 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
475 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
476 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
478 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
480 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
481 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
482 * configure: Regenerate.
483 * configure.ac: Remove references to osf.
484 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
485 section. Remove all other references to osf.
486 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
487 Remove all other references to osf.
488 * dec-thread.c: Delete file.
489 * defs.h (GDB_OSABI_OSF1): Delete.
490 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
492 * osabi.c (gdb_osabi_names): Delete "OSF/1".
493 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
495 (unconditionally_kill_inferior)
496 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
497 * solib-osf.c: Delete file.
499 2014-10-17 Pedro Alves <palves@redhat.com>
501 * remote.c (clear_threads_listing_context): Move higher up, out of
502 the HAVE_LIBEXPAT guard.
504 2014-10-16 Tristan Gingold <gingold@adacore.com>
506 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
507 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
510 2014-10-15 Pedro Alves <palves@redhat.com>
512 * dec-thread.c (dec_thread_count_gdb_threads)
513 (dec_thread_add_gdb_thread): Delete.
514 (dec_thread_update_thread_list): Delete.
515 (dec_thread_find_new_threads): Rename to ...
516 (dec_thread_update_thread_list): ... this. Delete GDB-size
517 threads that are no longer found in dec_thread_list.
518 (resync_thread_list): Delete.
519 (dec_thread_wait): Call dec_thread_update_thread_list instead of
522 2014-10-15 Pedro Alves <palves@redhat.com>
524 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
525 * remote.c (remote_update_thread_list): Skip calling prune_threads
526 if any thread listing method is supported, and instead walk over
527 the set of remote threads listed, deleting those that are not
528 found in GDB's thread list.
530 2014-10-15 Pedro Alves <palves@redhat.com>
532 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
533 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
534 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
535 (bsd_uthread_target): Adjust.
536 * corelow.c (core_open): Adjust.
537 * dec-thread.c (dec_thread_find_new_threads): Update comment.
538 (dec_thread_update_thread_list): New function.
539 (init_dec_thread_ops): Adjust.
540 * gdbthread.h (prune_threads): New declaration.
541 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
542 (thread_db_update_thread_list): ... this. Call prune_threads.
543 (init_thread_db_ops): Adjust.
544 * nto-procfs.c (procfs_find_new_threads): Rename to ...
545 (procfs_update_thread_list): ... this. Call prune_threads.
546 (procfs_attach, procfs_create_inferior, init_procfs_targets):
548 * obsd-nat.c (obsd_find_new_threads): Rename to ...
549 (obsd_update_thread_list): ... this. Call prune_threads.
550 (obsd_add_target): Adjust.
551 * procfs.c (procfs_target): Adjust.
552 (procfs_notice_thread): Update comment.
553 (procfs_find_new_threads): Rename to ...
554 (procfs_update_thread_list): ... this. Call prune_threads.
555 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
557 (ravenscar_wait): Adjust.
558 (ravenscar_find_new_threads): Rename to ...
559 (ravenscar_update_thread_list): ... this. Call prune_threads.
560 (init_ravenscar_thread_ops): Adjust.
561 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
562 (record_btrace_update_thread_list): ... this. Adjust comment.
563 (init_record_btrace_ops): Adjust.
564 * remote.c (remote_threads_info): Rename to ...
565 (remote_update_thread_list): ... this. Call prune_threads.
566 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
568 * sol-thread.c (check_for_thread_db): Adjust.
569 (sol_find_new_threads_callback): Rename to ...
570 (sol_update_thread_list_callback): ... this.
571 (sol_find_new_threads): Rename to ...
572 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
573 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
574 * target-delegates.c: Regenerate.
575 * target.c (target_find_new_threads): Rename to ...
576 (target_update_thread_list): ... this.
577 * target.h (struct target_ops): Rename to_find_new_threads field
578 to to_update_thread_list.
579 (target_find_new_threads): Rename to ...
580 (target_update_thread_list): ... this.
581 * thread.c (prune_threads): Make extern.
582 (update_thread_list): Adjust.
584 2014-10-15 Pedro Alves <palves@redhat.com>
586 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
587 Add describing comment. Return -1 if the qL packet is not
589 (struct thread_item, thread_item_t): Move higher up in
590 the file. Add comments.
591 (struct threads_parsing_context): Move higher up in
592 the file, add comments, and remote to ...
593 (struct threads_listing_context): ... this.
594 (remote_newthread_step): Don't add the thread to GDB's thread
595 database here. Instead push it to the thread_listing_context
597 (remote_find_new_threads): Rename to ...
598 (remote_get_threads_with_ql): ... this. Add target_ops and
599 targets_listing_context parameters. Pass down context.
600 (start_thread): Adjust.
601 (clear_threads_parsing_context): Rename to ...
602 (clear_threads_listing_context): ... this.
603 (remote_get_threads_with_qxfer): New, with parts salvaged from old
605 (remote_get_threads_with_qthreadinfo): Ditto.
606 (remote_threads_info): Reimplement.
608 2014-10-15 Pedro Alves <palves@redhat.com>
610 * infrun.c (resume): Don't force displaced-stepping for all
611 single-steps on software single-stepping archs.
613 2014-10-15 Pedro Alves <palves@redhat.com>
615 * breakpoint.c (single_step_breakpoints): Delete global.
616 (insert_single_step_breakpoint): Adjust to store the breakpoint
617 pointer in the current thread.
618 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
619 (cancel_single_step_breakpoints): Delete functions.
620 (breakpoint_has_location_inserted_here): Make extern.
621 (single_step_breakpoint_inserted_here_p): Adjust to walk the
623 * breakpoint.h (breakpoint_has_location_inserted_here): New
625 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
626 (cancel_single_step_breakpoints): Remove declarations.
627 * gdbthread.h (struct thread_control_state)
628 <single_step_breakpoints>: New field.
629 (delete_single_step_breakpoints)
630 (thread_has_single_step_breakpoints_set)
631 (thread_has_single_step_breakpoint_here): New declarations.
632 * infrun.c (follow_exec): Also clear the single-step breakpoints.
633 (singlestep_breakpoints_inserted_p, singlestep_ptid)
634 (singlestep_pc): Delete globals.
635 (infrun_thread_ptid_changed): Remove references to removed
637 (resume_cleanups): Delete the current thread's single-step
639 (maybe_software_singlestep): Remove references to removed globals.
640 (resume): Adjust to use thread_has_single_step_breakpoints_set and
641 delete_single_step_breakpoints.
642 (init_wait_for_inferior): Remove references to removed globals.
643 (delete_thread_infrun_breakpoints): Delete the thread's
644 single-step breakpoints too.
645 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
646 single-step breakpoints here.
647 (delete_stopped_threads_single_step_breakpoints): New function.
648 (adjust_pc_after_break): Adjust to use
649 thread_has_single_step_breakpoints_set.
650 (handle_inferior_event): Remove references to removed globals.
651 Use delete_stopped_threads_single_step_breakpoints.
652 (handle_signal_stop): Adjust to per-thread single-step
653 breakpoints. Swap test order to do cheaper tests first.
654 (switch_back_to_stepped_thread): Extend debug output. Remove
655 references to removed globals.
656 * record-full.c (record_full_wait_1): Adjust to per-thread
657 single-step breakpoints.
658 * thread.c (delete_single_step_breakpoints)
659 (thread_has_single_step_breakpoints_set)
660 (thread_has_single_step_breakpoint_here): New functions.
661 (clear_thread_inferior_resources): Also delete the thread's
662 single-step breakpoints.
664 2014-10-15 Pedro Alves <palves@redhat.com>
666 * thread.c (delete_thread_breakpoint): New function.
667 (delete_step_resume_breakpoint)
668 (delete_exception_resume_breakpoint): Use it.
669 (delete_at_next_stop): New function.
670 (clear_thread_inferior_resources): Use delete_at_next_stop.
672 2014-10-15 Pedro Alves <palves@redhat.com>
674 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
675 (breakpoint_inserted_here_p): ... here. Remove special case for
676 software single-step breakpoints.
677 (find_non_raw_software_breakpoint_inserted_here): Inline ...
678 (software_breakpoint_inserted_here_p): ... here. Remove special
679 case for software single-step breakpoints.
680 (bp_target_info_copy_insertion_state)
681 (deprecated_insert_raw_breakpoint)
682 (deprecated_remove_raw_breakpoint): Delete functions.
683 * breakpoint.h (deprecated_insert_raw_breakpoint)
684 (deprecated_remove_raw_breakpoint): Remove declarations.
686 2014-10-15 Pedro Alves <palves@redhat.com>
689 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
690 Delete array globals.
691 (single_step_breakpoints): New global.
692 (breakpoint_xfer_memory): Remove special handling for single-step
694 (update_breakpoints_after_exec): Delete bp_single_step
696 (detach_breakpoints): Remove special handling for single-step
698 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
699 (bpstat_stop_status): Add comment.
700 (bpstat_what, bptype_string, print_one_breakpoint_location)
701 (adjust_breakpoint_address, init_bp_location): Handle
703 (new_single_step_breakpoint): New function.
704 (set_momentary_breakpoint, bkpt_remove_location): Remove special
705 handling for single-step breakpoints.
706 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
707 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
709 (detach_single_step_breakpoints, find_single_step_breakpoint):
711 (breakpoint_has_location_inserted_here): New function.
712 (single_step_breakpoint_inserted_here_p): Rewrite.
713 * breakpoint.h: Remove FIXME.
714 (enum bptype) <bp_single_step>: New enum value.
715 (insert_single_step_breakpoint): Update comment.
716 * infrun.c (resume_cleanups)
717 (delete_step_thread_step_resume_breakpoint): Remove single-step
719 (fetch_inferior_event): Install a cleanup that removes infrun
721 (switch_back_to_stepped_thread) <expect thread advanced also>:
722 Clear step-over info.
724 2014-10-15 Pedro Alves <palves@redhat.com>
726 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
727 (delete_thread_infrun_breakpoints): New function, with parts
728 salvaged from delete_step_resume_breakpoint_callback.
729 (delete_step_thread_step_resume_breakpoint): Delete.
730 (for_each_just_stopped_thread_callback_func): New typedef.
731 (for_each_just_stopped_thread): New function.
732 (delete_just_stopped_threads_infrun_breakpoints): New function.
733 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
734 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
736 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
738 2014-10-15 Pedro Alves <palves@redhat.com>
740 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
741 trying to step past a non-steppable watchpoint.
742 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
744 * infrun.c (struct step_over_info): Add new field
745 'nonsteppable_watchpoint_p' and adjust comments.
746 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
748 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
749 (stepping_past_nonsteppable_watchpoint): New function.
750 (step_over_info_valid_p): Also return true if stepping past a
751 nonsteppable watchpoint.
752 (proceed): Adjust call to set_step_over_info. Remove reference to
754 (init_wait_for_inferior): Remove reference to init_infwait_state.
755 (waiton_ptid): Delete global.
756 (struct execution_control_state)
757 <stepped_after_stopped_by_watchpoint>: Delete field.
758 (wait_for_inferior, fetch_inferior_event): Always pass
759 minus_one_ptid to target_wait.
760 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
762 (init_infwait_state): Delete function.
763 (handle_inferior_event): Remove infwait_state handling.
764 (handle_signal_stop) <watchpoints handling>: Adjust after
765 stepped_after_stopped_by_watchpoint removal. Don't remove
766 breakpoints here nor set infwait_state. Set the thread's
767 stepping_over_watchpoint flag, and call keep_going instead.
768 (keep_going): Handle stepping_over_watchpoint. Adjust
769 set_step_over_info calls.
770 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
773 2014-10-15 Pedro Alves <palves@redhat.com>
775 * infrun.c (step_over_info_valid_p): New function.
776 (resume): Use step_over_info_valid_p instead of checking the
777 threads's trap_expected flag.
779 2014-10-15 Doug Evans <dje@google.com>
780 Walfred Tedeschi <walfred.tedeschi@intel.com>
783 * python/lib/gdb/__init__.py (packages): Add "printer".
784 * python/lib/gdb/command/bound_registers.py: Moved to ...
785 * python/lib/gdb/printer/bound_registers.py: ... here.
786 Add printer to global set of builtin printers. Rename printer from
787 "bound" to "mpx_bound128".
788 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
789 registered as global "builtin" printer.
790 (add_builtin_pretty_printer): New function.
791 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
792 gdb/printer/__init__.py.
794 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
796 * Makefile.in (SFILES): Remove d-support.c.
797 (COMMON_OBS): Remove d-support.o.
798 * d-lang.h (d_parse_symbol): Remove declaration.
799 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
800 * d-support.c: Remove file.
802 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
804 * gdb/infrun.c (process_event_stop_test): Apply
805 gdbarch_addr_bits_remove to longjmp resume address.
807 2014-10-15 Pedro Alves <palves@redhat.com>
809 * regformats/microblaze.dat: Delete file.
811 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
813 * features/Makefile (microblaze-expedite): Replace pc with rpc.
814 * regformats/microblaze-with-stack-protect.dat: Regenerate.
816 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
818 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
821 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
825 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
828 2014-10-14 Joel Brobecker <brobecker@adacore.com>
830 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
831 of the case where the second operand is a pointer.
832 <BINOP_SUB>: Likewise.
834 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
836 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
837 only if it is not NULL.
838 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
839 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
840 (struct probe_ops) <clear_semaphore>: Likewise.
841 * tracepoint.c (start_tracing): Call set_semaphore only if it is
843 (stop_tracing): Likewise, for clear_semaphore.
845 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
847 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
848 using language_c, instead of current_language.
850 2014-10-13 Doug Evans <dje@google.com>
852 * python/py-objfile.c (objfpy_initialize): New function.
853 (objfpy_new, objfile_to_objfile_object): Call it.
854 * python/py-progspace.c (pspy_initialize): New function.
855 (pspy_new, pspace_to_pspace_object): Call it.
857 2014-10-13 Miroslav Franc <mfranc@redhat.com>
858 Jan Kratochvil <jan.kratochvil@redhat.com>
860 Fix "save breakpoints" for "catch" command.
861 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
864 2014-10-12 Miroslav Franc <mfranc@redhat.com>
866 Fix "save breakpoints" for "disable $bpnum" command.
867 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
869 2014-10-10 Pedro Alves <palves@redhat.com>
871 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
872 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
873 (HFILES_NO_SRCDIR): Remove solib-irix.h.
874 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
876 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
877 * configure.ac: Remove references to IRIX.
878 * configure.host: Add *-*-irix* to the obsolete hosts section.
879 Remove all other references to irix.
880 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
883 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
885 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
886 isn't valid, release the tdesc arch data and return NULL.
888 2014-10-10 Pedro Alves <palves@redhat.com>
890 * linux-tdep.c: Include observer.h.
891 (linux_inferior_data): New global.
892 (struct linux_info): New structure.
893 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
894 (get_linux_inferior_data): New functions.
895 (linux_vsyscall_range): Rename to ...
896 (linux_vsyscall_range_raw): ... this.
897 (linux_vsyscall_range): New function; handles caching.
898 (_initialize_linux_tdep): Register linux_inferior_data. Install
899 inferior_exit and inferior_appeared observers.
901 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
902 Pedro Alves <palves@redhat.com>
905 * solib-svr4.c (svr4_read_so_list): Rename to ...
906 (svr4_current_sos_1): ... this and change the function comment.
907 (svr4_current_sos): New function.
909 2014-10-10 Pedro Alves <palves@redhat.com>
911 * arch-utils.c (default_vsyscall_range): New function.
912 * arch-utils.h (default_vsyscall_range): New declaration.
913 * gdbarch.sh (vsyscall_range): New hook.
914 * gdbarch.h, gdbarch.c: Regenerate.
915 * linux-tdep.c (linux_vsyscall_range): New function.
916 (linux_init_abi): Install linux_vsyscall_range as
917 vsyscall_range gdbarch hook.
918 * memrange.c (address_in_mem_range): New function.
919 * memrange.h (address_in_mem_range): New declaration.
920 * symfile-mem.c (find_vdso_size): Delete function.
921 (add_vsyscall_page): Use gdbarch_vsyscall_range.
923 2014-10-10 Pedro Alves <palves@redhat.com>
925 * infrun.c (normal_stop): Fix typo in comment.
927 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
930 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
931 typo when using logical AND to determine instruction type.
933 2014-10-09 Yao Qi <yao@codesourcery.com>
935 * infrun.c (handle_signal_stop): Remove local variable
938 2014-10-08 Stan Shebs <stan@codesourcery.com>
940 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
942 2014-10-08 Gary Benson <gbenson@redhat.com>
944 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
946 2014-10-08 Gary Benson <gbenson@redhat.com>
948 * common/common-defs.h: Include common-exceptions.h.
949 * exceptions.h: Do not include common-exceptions.h.
951 2014-10-08 Gary Benson <gbenson@redhat.com>
953 * common/common-defs.h: Include cleanups.h.
954 * common/common-exceptions.c: Do not include cleanups.h.
957 2014-10-08 Gary Benson <gbenson@redhat.com>
959 * ada-lang.c: Do not include exceptions.h.
960 * ada-valprint.c: Likewise.
961 * amd64-tdep.c: Likewise.
962 * auto-load.c: Likewise.
964 * break-catch-throw.c: Likewise.
965 * breakpoint.c: Likewise.
966 * btrace.c: Likewise.
967 * c-lang.c: Likewise.
968 * cli/cli-cmds.c: Likewise.
969 * cli/cli-interp.c: Likewise.
970 * cli/cli-script.c: Likewise.
971 * completer.c: Likewise.
972 * corefile.c: Likewise.
973 * corelow.c: Likewise.
974 * cp-abi.c: Likewise.
975 * cp-support.c: Likewise.
976 * cp-valprint.c: Likewise.
977 * darwin-nat.c: Likewise.
978 * dwarf2-frame-tailcall.c: Likewise.
979 * dwarf2-frame.c: Likewise.
980 * dwarf2loc.c: Likewise.
981 * dwarf2read.c: Likewise.
983 * event-loop.c: Likewise.
984 * event-top.c: Likewise.
985 * f-valprint.c: Likewise.
986 * frame-unwind.c: Likewise.
988 * gdbtypes.c: Likewise.
989 * gnu-v2-abi.c: Likewise.
990 * gnu-v3-abi.c: Likewise.
991 * guile/scm-auto-load.c: Likewise.
992 * guile/scm-breakpoint.c: Likewise.
993 * guile/scm-cmd.c: Likewise.
994 * guile/scm-frame.c: Likewise.
995 * guile/scm-lazy-string.c: Likewise.
996 * guile/scm-param.c: Likewise.
997 * guile/scm-symbol.c: Likewise.
998 * guile/scm-type.c: Likewise.
999 * hppa-hpux-tdep.c: Likewise.
1000 * i386-tdep.c: Likewise.
1001 * inf-loop.c: Likewise.
1002 * infcall.c: Likewise.
1003 * infcmd.c: Likewise.
1004 * infrun.c: Likewise.
1005 * interps.c: Likewise.
1006 * interps.h: Likewise.
1008 * linespec.c: Likewise.
1009 * linux-nat.c: Likewise.
1010 * linux-thread-db.c: Likewise.
1011 * m32r-rom.c: Likewise.
1013 * memory-map.c: Likewise.
1014 * mi/mi-cmd-break.c: Likewise.
1015 * mi/mi-cmd-stack.c: Likewise.
1016 * mi/mi-interp.c: Likewise.
1017 * mi/mi-main.c: Likewise.
1018 * monitor.c: Likewise.
1019 * nto-procfs.c: Likewise.
1020 * objc-lang.c: Likewise.
1021 * p-valprint.c: Likewise.
1022 * parse.c: Likewise.
1023 * ppc-linux-tdep.c: Likewise.
1024 * printcmd.c: Likewise.
1025 * probe.c: Likewise.
1026 * python/py-auto-load.c: Likewise.
1027 * python/py-breakpoint.c: Likewise.
1028 * python/py-cmd.c: Likewise.
1029 * python/py-finishbreakpoint.c: Likewise.
1030 * python/py-frame.c: Likewise.
1031 * python/py-framefilter.c: Likewise.
1032 * python/py-function.c: Likewise.
1033 * python/py-gdb-readline.c: Likewise.
1034 * python/py-inferior.c: Likewise.
1035 * python/py-infthread.c: Likewise.
1036 * python/py-lazy-string.c: Likewise.
1037 * python/py-linetable.c: Likewise.
1038 * python/py-param.c: Likewise.
1039 * python/py-prettyprint.c: Likewise.
1040 * python/py-symbol.c: Likewise.
1041 * python/py-type.c: Likewise.
1042 * python/py-value.c: Likewise.
1043 * python/python-internal.h: Likewise.
1044 * python/python.c: Likewise.
1045 * record-btrace.c: Likewise.
1046 * record-full.c: Likewise.
1047 * regcache.c: Likewise.
1048 * remote-fileio.c: Likewise.
1049 * remote-mips.c: Likewise.
1050 * remote.c: Likewise.
1051 * rs6000-aix-tdep.c: Likewise.
1052 * rs6000-nat.c: Likewise.
1054 * solib-darwin.c: Likewise.
1055 * solib-dsbt.c: Likewise.
1056 * solib-frv.c: Likewise.
1057 * solib-ia64-hpux.c: Likewise.
1058 * solib-spu.c: Likewise.
1059 * solib-svr4.c: Likewise.
1060 * solib.c: Likewise.
1061 * spu-tdep.c: Likewise.
1062 * stack.c: Likewise.
1063 * stap-probe.c: Likewise.
1064 * symfile-mem.c: Likewise.
1065 * symmisc.c: Likewise.
1066 * target.c: Likewise.
1067 * thread.c: Likewise.
1069 * tracepoint.c: Likewise.
1070 * tui/tui-interp.c: Likewise.
1071 * typeprint.c: Likewise.
1072 * utils.c: Likewise.
1073 * valarith.c: Likewise.
1074 * valops.c: Likewise.
1075 * valprint.c: Likewise.
1076 * value.c: Likewise.
1077 * varobj.c: Likewise.
1078 * windows-nat.c: Likewise.
1079 * xml-support.c: Likewise.
1081 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1083 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1085 (extended_mips16_next_pc): Update accordingly.
1087 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1089 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1091 (micromips_instruction_is_compact_branch): Likewise.
1092 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1093 or a compact jump, reaching a jump delay slot, or seeing a
1094 second non-prologue instruction.
1095 (micromips_scan_prologue): Also terminate scanning upon seeing a
1096 compact branch or jump, or reaching a branch or jump delay slot.
1097 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1098 or jump delay slot, or seeing a second non-prologue instruction.
1099 (mips32_instruction_has_delay_slot): Retain instruction
1100 examination code only, update arguments accordingly and move
1101 instruction fetch pieces to...
1102 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1103 (micromips_instruction_has_delay_slot): Likewise and to...
1104 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1105 (mips16_instruction_has_delay_slot): Likewise and to...
1106 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1107 (mips_single_step_through_delay): Update accordingly.
1108 (mips_adjust_breakpoint_address): Likewise.
1110 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1112 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1113 !mustbe32 also return 1 for 32-bit instructions.
1114 (mips16_instruction_has_delay_slot): Likewise. Add an
1115 explanatory comment.
1117 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1119 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1122 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1124 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1126 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1127 for the breakpoint's address. Don't preinitialize `placed_size'.
1128 (insert_bp_location): Set `reqstd_address' rather than
1130 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1131 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1133 (bkpt_remove_location): Likewise.
1134 (deprecated_insert_raw_breakpoint): Likewise.
1135 (deprecated_remove_raw_breakpoint): Likewise.
1136 (find_single_step_breakpoint): Likewise.
1137 * mem-break.c (default_memory_insert_breakpoint): Use
1138 `reqstd_address' for the breakpoint's address. Don't set
1139 `placed_address' or `placed_size' if breakpoint contents couldn't
1140 have been determined.
1141 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1142 the breakpoint's address.
1143 (remote_insert_hw_breakpoint): Likewise. Don't set
1144 `placed_address' or `placed_size' if breakpoint couldn't have been
1146 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1147 `reqstd_address' for the breakpoint's address.
1148 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1149 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1150 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1151 * microblaze-linux-tdep.c
1152 (microblaze_linux_memory_remove_breakpoint): Likewise.
1153 * monitor.c (monitor_insert_breakpoint): Likewise.
1154 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1155 (procfs_insert_hw_breakpoint): Likewise.
1156 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1157 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1158 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1159 * remote-mips.c (mips_insert_breakpoint): Likewise.
1160 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1162 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1164 * valops.c (value_assign): Check for bit field assignments
1165 before calling architecture-specific register value
1166 conversion functions.
1168 2014-10-03 Pierre Muller <muller@sourceware.org>
1170 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1172 2014-10-02 Pedro Alves <palves@redhat.com>
1174 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1175 threads_are_executing.
1176 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1178 * gdbthread.h (threads_are_executing): Declare.
1179 (handle_signal_stop) <random signals>: Don't print about the
1180 signal here if stopping.
1181 (end_stepping_range): Don't notify observers here.
1182 (normal_stop): Update the thread list. If stopped by a random
1183 signal or a stepping range ended, notify observers.
1184 * thread.c (threads_executing): New global.
1185 (init_thread_list): Clear 'threads_executing'.
1186 (set_executing): Set or clear 'threads_executing'.
1187 (threads_are_executing): New function.
1188 (update_threads_executing): New function.
1189 (update_thread_list): Use it.
1191 2014-10-02 Pedro Alves <palves@redhat.com>
1193 PR breakpoints/17431
1194 * breakpoint.c (update_breakpoints_after_exec): Don't create
1195 overlay, longjmp, std terminate nor exception breakpoints here.
1197 2014-10-02 Pedro Alves <palves@redhat.com>
1199 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1201 * inferior.c (find_inferior_for_program_space): Give preference to
1202 the current inferior.
1203 * inferior.h (find_inferior_for_program_space): Update comment.
1204 * progspace.c (switch_to_program_space_and_thread): Prefer the
1205 current inferior if it's bound to the program space requested. If
1206 the inferior found doesn't have a PID yet, don't bother looking up
1208 * progspace.h (switch_to_program_space_and_thread): Adjust
1210 * thread.c (any_thread_of_process, any_live_thread_of_process):
1211 Give preference to the current thread.
1213 2014-10-01 Pedro Alves <palves@redhat.com>
1215 * breakpoint.c (insert_bp_location): Error out if inserting a
1216 software breakpoint at a read-only address.
1217 * target.c (memory_xfer_check_region): New function, factored out
1219 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1221 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1222 against the memory region attributes.
1224 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1226 * NEWS: Announce new exit-code field in -list-thread-groups
1228 * inferior.c (exit_inferior_1): Don't clear exit code.
1229 (inferior_appeared): Clear exit code.
1230 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1233 2014-10-01 Pedro Alves <palves@redhat.com>
1235 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1236 GENERATED" along with emacs/vi read-only markers.
1237 * regformats/aarch64.dat: Regenerate.
1238 * regformats/arm-with-iwmmxt.dat: Regenerate.
1239 * regformats/arm-with-neon.dat: Regenerate.
1240 * regformats/arm-with-vfpv2.dat: Regenerate.
1241 * regformats/arm-with-vfpv3.dat: Regenerate.
1242 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1243 * regformats/i386/amd64-avx.dat: Regenerate.
1244 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1245 * regformats/i386/amd64-avx512.dat: Regenerate.
1246 * regformats/i386/amd64-linux.dat: Regenerate.
1247 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1248 * regformats/i386/amd64-mpx.dat: Regenerate.
1249 * regformats/i386/amd64.dat: Regenerate.
1250 * regformats/i386/i386-avx-linux.dat: Regenerate.
1251 * regformats/i386/i386-avx.dat: Regenerate.
1252 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1253 * regformats/i386/i386-avx512.dat: Regenerate.
1254 * regformats/i386/i386-linux.dat: Regenerate.
1255 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1256 * regformats/i386/i386-mmx.dat: Regenerate.
1257 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1258 * regformats/i386/i386-mpx.dat: Regenerate.
1259 * regformats/i386/i386.dat: Regenerate.
1260 * regformats/i386/x32-avx-linux.dat: Regenerate.
1261 * regformats/i386/x32-avx.dat: Regenerate.
1262 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1263 * regformats/i386/x32-avx512.dat: Regenerate.
1264 * regformats/i386/x32-linux.dat: Regenerate.
1265 * regformats/i386/x32.dat: Regenerate.
1266 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1267 * regformats/mips-dsp-linux.dat: Regenerate.
1268 * regformats/mips-linux.dat: Regenerate.
1269 * regformats/mips64-dsp-linux.dat: Regenerate.
1270 * regformats/mips64-linux.dat: Regenerate.
1271 * regformats/nios2-linux.dat: Regenerate.
1272 * regformats/rs6000/powerpc-32.dat: Regenerate.
1273 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1274 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1275 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1276 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1277 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1278 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1279 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1280 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1281 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1282 * regformats/s390-linux32.dat: Regenerate.
1283 * regformats/s390-linux32v1.dat: Regenerate.
1284 * regformats/s390-linux32v2.dat: Regenerate.
1285 * regformats/s390-linux64.dat: Regenerate.
1286 * regformats/s390-linux64v1.dat: Regenerate.
1287 * regformats/s390-linux64v2.dat: Regenerate.
1288 * regformats/s390-te-linux64.dat: Regenerate.
1289 * regformats/s390x-linux64.dat: Regenerate.
1290 * regformats/s390x-linux64v1.dat: Regenerate.
1291 * regformats/s390x-linux64v2.dat: Regenerate.
1292 * regformats/s390x-te-linux64.dat: Regenerate.
1293 * regformats/tic6x-c62x-linux.dat: Regenerate.
1294 * regformats/tic6x-c62x.dat: Regenerate.
1295 * regformats/tic6x-c64x-linux.dat: Regenerate.
1296 * regformats/tic6x-c64x.dat: Regenerate.
1297 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1298 * regformats/tic6x-c64xp.dat: Regenerate.
1300 2014-10-01 Pedro Alves <palves@redhat.com>
1302 * features/Makefile: Update comments.
1303 (XMLTOC): List all xml files we build C files from.
1304 (clean-cfiles): New rule.
1306 2014-10-01 Pedro Alves <palves@redhat.com>
1308 * features/i386/amd64-avx512-linux.c: Regenerate.
1309 * features/i386/amd64-avx512.c: Regenerate.
1310 * features/i386/x32-avx512-linux.c: Regenerate.
1311 * features/i386/x32-avx512.c: Regenerate.
1313 2014-10-01 Pedro Alves <palves@redhat.com>
1315 * features/Makefile (WHICH): Remove arm-with-m,
1316 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1318 2014-10-01 Pedro Alves <palves@redhat.com>
1320 * features/Makefile (clean): New rule.
1322 2014-10-01 Pedro Alves <palves@redhat.com>
1324 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1325 (zmm14h): Add missing end quotes.
1327 2014-10-01 Pedro Alves <palves@redhat.com>
1329 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1330 * features/aarch64.c: Regenerate.
1332 2014-09-30 Don Breazeal <donb@codesourcery.com>
1334 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1335 code so as to work with follow_fork_inferior.
1336 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1337 (inf_ttrace_create_inferior): Remove reference to
1338 inf_ttrace_vfork_ppid.
1339 (inf_ttrace_attach): Ditto.
1340 (inf_ttrace_detach): Ditto.
1341 (inf_ttrace_kill): Use current_inferior instead of
1342 inf_ttrace_vfork_ppid.
1343 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1344 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1345 inferior away from the parent.
1346 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1348 (follow_fork_inferior): New function.
1349 (follow_inferior_reset_breakpoints): Make function static.
1350 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1351 * linux-nat.c (linux_child_follow_fork): Move target-independent
1352 code to infrun.c:follow_fork_inferior.
1354 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1356 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1357 * gdbarch.c: Regenerate.
1358 * gdbarch.h: Likewise.
1359 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1360 gdbarch method 'regset_from_core_section'.
1361 (get_core_register_section): Remove handling for the case that
1362 regset == NULL and regset_from_core_section is defined.
1363 (get_core_registers): Drop check for deleted method.
1364 * procfs.c (procfs_do_thread_registers): Adjust comment.
1366 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1368 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1369 (linux_nat_make_corefile_notes): Remove.
1370 (linux_target_install_ops): Do not set target method
1371 'make_corefile_notes'.
1372 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1374 (linux_corefile_thread_callback): Instead of args->collect, call
1375 linux_collect_thread_registers.
1376 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1377 NULL unless there is a regset iterator.
1378 (linux_make_corefile_notes_1): Remove.
1379 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1380 by linux_make_corefile_notes.
1381 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1383 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1385 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1386 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1388 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1390 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1392 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1393 (xtensa_iterate_over_regset_sections): New.
1394 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1396 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1398 * vax-tdep.c (vax_regset_from_core_section): Remove.
1399 (vax_iterate_over_regset_sections): New.
1400 (vax_gdbarch_init): Adjust gdbarch initialization.
1402 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1404 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1405 (tilegx_regset_from_core_section): Remove.
1406 (tilegx_iterate_over_regset_sections): New.
1407 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1409 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1411 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1412 (sparc_iterate_over_regset_sections): New.
1413 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1414 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1416 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1417 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1418 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1419 target method 'make_corefile_notes'.
1421 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1423 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1424 'sizeof_gregset' and 'sizeof_fpregset'.
1425 * sh-tdep.c (sh_regset_from_core_section): Remove.
1426 (sh_iterate_over_regset_sections): New.
1427 (sh_gdbarch_init): Adjust gdbarch initialization.
1428 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1430 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1433 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1435 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1436 (score7_linux_iterate_over_regset_sections): New.
1437 (score_gdbarch_init): Adjust gdbarch initialization.
1439 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1441 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1443 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1444 method 'make_corefile_notes'.
1445 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1446 (ppcfbsd_regset_from_core_section): Remove.
1447 (ppcfbsd_iterate_over_regset_sections): New.
1448 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1450 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1451 (ppcnbsd_iterate_over_regset_sections): New.
1452 (ppcnbsd_init_abi): Adjust.
1453 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1454 (ppcobsd_iterate_over_regset_sections): New.
1455 (ppcobsd_init_abi): Adjust.
1456 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1457 (rs6000_aix_iterate_over_regset_sections): New.
1458 (rs6000_aix_init_osabi): Adjust.
1460 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1462 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1463 (nios2_regset_from_core_section): Remove.
1464 (nios2_iterate_over_regset_sections): New.
1465 (nios2_linux_init_abi): Adjust gdbarch initialization.
1467 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1469 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1470 (am33_iterate_over_regset_sections): New.
1471 (am33_linux_init_osabi): Adjust gdbarch initialization.
1473 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1475 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1476 (mips_linux_iterate_over_regset_sections): New.
1477 (mips_linux_init_abi): Adjust gdbarch initialization.
1478 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1479 (mips64obsd_iterate_over_regset_sections): New.
1480 (mips64obsd_init_abi): Adjust.
1481 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1482 (mipsnbsd_iterate_over_regset_sections): New.
1483 (mipsnbsd_init_abi): Adjust.
1485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1487 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1488 (m88k_iterate_over_regset_sections): New.
1489 (m88k_gdbarch_init): Adjust gdbarch initialization.
1491 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1494 (ia64_linux_iterate_over_regset_sections): New.
1495 (ia64_linux_init_abi): Adjust gdbarch initialization.
1497 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1499 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1500 (m68kbsd_iterate_over_regset_sections): New.
1501 (m68kbsd_init_abi): Adjust gdbarch initialization.
1502 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1503 (m68k_linux_iterate_over_regset_sections): New.
1504 (m68k_linux_init_abi): Adjust gdbarch initialization.
1506 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1508 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1509 (m32r_linux_regset_from_core_section): Remove.
1510 (m32r_linux_iterate_over_regset_sections): New.
1511 (m32r_linux_init_abi): Adjust gdbarch initialization.
1513 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1515 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1516 (amd64obsd_iterate_over_regset_sections): New.
1517 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1518 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1520 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1521 regset_from_core_section initialization.
1522 * i386-tdep.c (i386_regset_from_core_section): Remove.
1523 (i386_iterate_over_regset_sections): New.
1524 (i386_gdbarch_init): Adjust gdbarch initialization.
1525 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1526 (i386_iterate_over_regset_sections): New prototype.
1527 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1529 (i386obsd_aout_iterate_over_regset_sections): New.
1530 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1531 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1533 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1534 (amd64fbsd_init_abi): Call fbsd_init_abi.
1535 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1536 (i386fbsd4_init_abi): Call fbsd_init_abi.
1537 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1538 target method 'make_corefile_notes'.
1539 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1543 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1544 (hppa_hpux_iterate_over_regset_sections): New.
1545 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1546 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1547 (hppa_linux_iterate_over_regset_sections): New.
1548 (hppa_linux_init_abi): Adjust.
1549 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1550 (hppanbsd_iterate_over_regset_sections): New.
1551 (hppanbsd_init_abi): Adjust.
1552 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1553 (hppaobsd_iterate_over_regset_sections): New.
1554 (hppaobsd_init_abi): Adjust.
1556 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1558 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1559 (frv_linux_iterate_over_regset_sections): New.
1560 (frv_linux_init_abi): Adjust gdbarch initialization.
1562 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1564 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1565 (armbsd_iterate_over_regset_sections): New prototype.
1566 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1567 (armbsd_iterate_over_regset_sections): New.
1568 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1571 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1573 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1574 (alpha_linux_iterate_over_regset_sections): New.
1575 (alpha_linux_init_abi): Adjust gdbarch initialization.
1576 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1578 (alphanbsd_iterate_over_regset_sections): New prototype.
1580 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1582 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1584 (aarch64_linux_iterate_over_regset_sections): New.
1585 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1587 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1589 * fbsd-tdep.c: New file.
1590 * fbsd-tdep.h: New file.
1591 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1592 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1593 (ALLDEPFILES): Add fbsd-tdep.c.
1595 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1597 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1599 * gdbarch.h: Regenerate.
1600 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1602 (get_core_register_section): Add parameter 'regset' and use it, if
1603 set. Add parameter 'min_size' and verify the bfd section size
1605 (get_core_registers_cb): Add parameter 'regset' and pass it to
1606 get_core_register section. For the "standard" register sections
1607 ".reg" and ".reg2", set an appropriate default for human_name.
1608 (get_core_registers): Don't abort when the gdbarch has an iterator
1609 but no regset_from_core_section. Add NULL/0 for parameters
1610 'regset'/'min_size' in calls to get_core_register_section.
1611 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1612 'regset' and use it instead of calling the
1613 regset_from_core_section gdbarch method.
1614 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1615 * i386-tdep.c (i386_supply_xstateregset)
1616 (i386_collect_xstateregset, i386_xstateregset): Moved to
1618 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1620 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1621 core file support only if the regset iterator hasn't been set.
1622 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1623 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1624 Moved from i386-tdep.c and renamed to *_linux*.
1625 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1626 each callback invocation. Allow any .reg-xstate size when reading
1628 * amd64-tdep.c (amd64_supply_xstateregset)
1629 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1631 (amd64_regset_from_core_section): Remove.
1632 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1633 install an amd64-specific regset_from_core_section gdbarch method.
1634 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1635 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1636 Moved from amd64-tdep.c and renamed to *_linux*.
1637 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1638 to each callback invocation. Allow any .reg-xstate size when
1639 reading from a core file.
1640 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1641 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1642 each callback invocation.
1643 (arm_linux_init_abi): No longer set the regset_from_core_section
1645 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1646 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1647 each callback invocation.
1648 (ppc_linux_init_abi): No longer set the regset_from_core_section
1650 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1651 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1652 (s390_regset_from_core_section): Remove.
1653 (s390_iterate_over_regset_sections): Add regset parameter to each
1654 callback invocation.
1655 (s390_gdbarch_init): No longer set the regset_from_core_section
1656 gdbarch method. Drop initialization of deleted tdep fields.
1658 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1660 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1661 (amd64_linux_iterate_over_regset_sections): New.
1662 (amd64_linux_init_abi_common): Don't install the regset section
1663 list, but the new iterator in gdbarch.
1664 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1665 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1666 (arm_linux_iterate_over_regset_sections): ...here. New function.
1667 (arm_linux_init_abi): Set iterator instead of section list.
1668 * corelow.c (get_core_registers_cb): New function, logic moved
1670 (get_core_registers): ...loop body here. Use new iterator method
1671 instead of walking through the regset section list.
1672 * gdbarch.sh: Remove 'core_regset_sections'. New method
1673 'iterate_over_regset_sections'. New typedef
1674 'iterate_over_regset_sections_cb'.
1675 * gdbarch.c: Regenerate.
1676 * gdbarch.h: Likewise.
1677 * i386-linux-tdep.c (i386_linux_regset_sections)
1678 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1680 (i386_linux_iterate_over_regset_sections): New.
1681 (i386_linux_init_abi): Don't choose a regset section list, but
1682 install new iterator in gdbarch.
1683 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1684 (linux_collect_regset_section_cb): New function, logic moved
1686 (linux_collect_thread_registers): ...loop body here. Use iterator
1687 method instead of walking through list.
1688 (linux_make_corefile_notes_1): Check for presence of iterator
1689 method instead of regset section list.
1690 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1691 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1692 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1693 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1694 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1695 (ppc_linux_init_abi): Don't choose from above regset section
1696 lists, but install new iterator in gdbarch.
1697 * regset.h (struct core_regset_section): Remove.
1698 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1699 have_linux_v1, have_linux_v2, and have_tdb.
1700 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1701 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1702 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1703 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1704 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1705 (s390_iterate_over_regset_sections): ...here. New function. Use
1707 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1708 regset section lists, but install new iterator.
1710 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1712 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1714 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1716 * progspace.c (print_program_space): Don't prune program spaces
1717 before printing them.
1719 2014-09-25 Pedro Alves <palves@redhat.com>
1721 * infrun.c (user_visible_resume_ptid): Don't check
1722 singlestep_breakpoints_inserted_p.
1724 2014-09-25 Pedro Alves <palves@redhat.com>
1726 * breakpoint.c (should_be_inserted): Add debug output.
1728 2014-09-25 Pedro Alves <palves@redhat.com>
1730 * infrun.c (stepping_past_instruction_at)
1731 (clear_exit_convenience_vars): Point at infrun.h instead of
1733 (handle_signal_stop): Fix typo.
1735 2014-09-24 Yao Qi <yao@codesourcery.com>
1737 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1740 2014-09-22 Gary Benson <gbenson@redhat.com>
1742 * target.c (target_stop): Updated comment.
1744 2014-09-22 Gary Benson <gbenson@redhat.com>
1746 * target/target.h (target_stop_ptid): Renamed as...
1747 (target_stop_and_wait): New function. Updated comment.
1749 (target_continue_ptid): Renamed as...
1750 (target_continue_no_signal): New function. Updated comment.
1753 2014-09-22 Pedro Alves <palves@redhat.com>
1755 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1757 * breakpoint.c (enum ugll_insert_mode): New enum.
1758 (always_inserted_mode): Now a plain boolean.
1759 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1760 (breakpoints_always_inserted_mode): Delete.
1761 (breakpoints_should_be_inserted_now): New function.
1762 (insert_breakpoints): Pass UGLL_INSERT to
1763 update_global_location_list instead of calling
1764 insert_breakpoint_locations manually.
1765 (create_solib_event_breakpoint_1): New, factored out from ...
1766 (create_solib_event_breakpoint): ... this.
1767 (create_and_insert_solib_event_breakpoint): Use
1768 create_solib_event_breakpoint_1 instead of calling
1769 insert_breakpoint_locations manually.
1770 (update_global_location_list): Change parameter type from boolean
1771 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1772 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1773 (update_global_location_list_nothrow): Change parameter type from
1774 boolean to enum ugll_insert_mode.
1775 (_initialize_breakpoint): "breakpoint always-inserted" option is
1776 now a boolean command. Update help text.
1777 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1778 (breakpoints_should_be_inserted_now): New declaration.
1779 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1780 Remove breakpoints_always_inserted_mode check.
1781 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1782 * remote.c (remote_start_remote): Likewise.
1784 2014-09-22 Pedro Alves <palves@redhat.com>
1786 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1787 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1788 Instead, pass UGLL_INSERT to update_global_location_list.
1789 (update_global_location_list): Change parameter type from boolean
1790 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1791 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1792 (create_solib_event_breakpoint_1): New, factored out from ...
1793 (create_solib_event_breakpoint): ... this.
1794 (create_and_insert_solib_event_breakpoint): Use
1795 create_solib_event_breakpoint_1 instead of calling
1796 insert_breakpoint_locations manually.
1797 (update_global_location_list): Handle UGLL_INSERT.
1799 2014-09-22 Pedro Alves <palves@redhat.com>
1801 * breakpoint.c (enum ugll_insert_mode): New enum.
1802 (update_global_location_list)
1803 (update_global_location_list_nothrow): Change parameter type from
1804 boolean to enum ugll_insert_mode. All callers adjusted.
1806 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1808 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1809 SystemTap support in GDB.
1811 2014-09-19 Don Breazeal <donb@codesourcery.com>
1813 * linux-nat.c (linux_handle_extended_wait): Call
1814 linux_ptrace_get_extended_event.
1815 (wait_lwp): Call linux_is_extended_waitstatus.
1816 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1817 and linux_is_extended_waitstatus.
1818 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1819 linux_ptrace_get_extended_event.
1820 (linux_ptrace_get_extended_event): New function.
1821 (linux_is_extended_waitstatus): New function.
1822 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1823 (linux_is_extended_waitstatus): New declarations.
1825 2014-09-19 Yao Qi <yao@codesourcery.com>
1827 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1828 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1829 comments. Callers update.
1830 (dwarf_decode_lines): Likewise.
1831 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1832 comments. Skip the line table if 'lowpc' is greater than
1833 'address'. Don't check
1834 dwarf2_per_objfile->has_section_at_zero.
1836 2014-09-18 Doug Evans <dje@google.com>
1838 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1839 * python/py-symtab.c (stpy_get_producer): New function.
1840 (symtab_object_getset): Add "producer" attribute.
1842 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
1845 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1846 (do_captured_read_memory_integer): Remove.
1847 (safe_read_memory_integer): Use target_read_memory directly instead
1848 of catching errors in do_captured_read_memory_integer.
1850 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1852 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1855 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1857 * objc-lang.c (find_implementation_from_class): Remove dead code.
1859 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1862 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1863 "fprintf_unfiltered (gdb_stdlog...)".
1865 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1867 PR breakpoints/12526
1868 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1870 * breakpoint.c (watch_command_1): Use these fields to retain
1871 bitfield information.
1872 (extract_bitfield_from_watchpoint_value): New function.
1873 (watchpoint_check): Use it.
1874 (update_watchpoint): Use it. Optimize the address and length of a
1875 HW watchpoint pointing to a bitfield.
1876 * value.h (unpack_value_bitfield): New prototype.
1877 * value.c (unpack_value_bitfield): Make extern.
1879 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1881 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1883 * gnu-nat.c (inf_threads): New function.
1884 * gnu-nat.h (inf_threads_ftype): New typedef.
1885 (inf_threads): New declaration.
1886 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1887 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1888 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1889 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1890 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1891 (i386_gnu_dr_get_control): New functions.
1892 (reg_addr): New structure.
1893 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1894 i386 debugging register hooks.
1895 * NEWS: Mention this.
1897 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1899 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1900 vector data transfer instructions.
1901 (arm_record_coproc_data_proc): Updated.
1903 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1905 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1906 arm_record_exreg_ld_st_insn.
1907 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1910 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1912 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1913 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1914 processing instructions.
1916 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1918 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1919 for advance SIMD struct ld/st insn.
1920 (thumb2_record_decode_insn_handler): Replace stub handler with
1921 thumb2_record_asimd_struct_ld_st.
1923 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1925 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1926 for asimd, vfp and coprocessor insns.
1927 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1928 and coprocessor insns.
1929 (thumb2_record_coproc_insn): New function.
1930 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1932 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1935 2014-09-13 Doug Evans <xdje42@gmail.com>
1937 * NEWS: Mention new "queue-signal" command.
1938 * infcmd.c (queue_signal_command): New function.
1939 (_initialize_infcmd): Add new queue-signal command.
1941 2014-09-13 Doug Evans <xdje42@gmail.com>
1943 * linux-nat.c (wait_lwp): Add debugging printf.
1944 (linux_nat_wait_1): Ditto.
1946 2014-09-12 Pedro Alves <palves@redhat.com>
1948 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1949 (create_and_insert_solib_event_breakpoint): New functions.
1950 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1951 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1952 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1953 (remove_dbx_link_breakpoint): Delete function.
1954 (insert_dbx_link_bpt_in_file): Use
1955 create_and_insert_solib_event_breakpoint instead of
1956 deprecated_insert_raw_breakpoint.
1957 (procfs_wait): Don't check whether we hit __dbx_link here.
1958 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1960 * solib-irix.c (base_breakpoint): Delete global.
1961 (disable_break): Delete function.
1962 (enable_break): Use create_solib_event_breakpoint
1963 instead of deprecated_insert_raw_breakpoint.
1964 (irix_solib_handle_event): New function.
1965 (irix_solib_create_inferior_hook): Don't run the target or disable
1966 the mapping-complete breakpoint here.
1967 (_initialize_irix_solib): Install irix_solib_handle_event as
1968 so_ops->handle_event hook.
1970 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1971 Ulrich Weigand <uweigand@de.ibm.com>
1974 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1975 instead of read_memory_unsigned_integer.
1977 2014-09-12 Gary Benson <gbenson@redhat.com>
1979 * nat/linux-waitpid.c: Include common-defs.h.
1980 [GDBSERVER]: Add FIXME comment.
1981 [!GDBSERVER]: Don't include defs.h or signal.h.
1982 (linux_debug) [!GDBSERVER]: Remove empty block.
1984 2014-09-12 Gary Benson <gbenson@redhat.com>
1986 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1987 Don't include defs.h or server.h.
1989 2014-09-12 Gary Benson <gbenson@redhat.com>
1991 * nat/linux-btrace.c: Include common-defs.h.
1992 Don't include defs.h, server.h or gdbthread.h.
1993 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1995 2014-09-12 Gary Benson <gbenson@redhat.com>
1997 * common/agent.c: Include common-defs.h.
1998 Don't include defs.h or server.h.
1999 * common/buffer.c: Likewise.
2000 * common/common-debug.c: Likewise.
2001 * common/common-utils.c: Likewise.
2002 * common/errors.c: Likewise.
2003 * common/filestuff.c: Likewise.
2004 * common/format.c: Likewise.
2005 * common/gdb_vecs.c: Likewise.
2006 * common/print-utils.c: Likewise.
2007 * common/ptid.c: Likewise.
2008 * common/rsp-low.c: Likewise.
2009 * common/signals.c: Likewise.
2010 * common/vec.c: Likewise.
2011 * common/xml-utils.c: Likewise.
2012 * nat/linux-osdata.c: Likewise.
2013 * nat/linux-procfs.c: Likewise.
2014 * nat/linux-ptrace.c: Likewise.
2015 * nat/mips-linux-watch.c: Likewise.
2016 * target/waitstatus.c: Likewise.
2018 2014-09-12 Tom Tromey <tromey@redhat.com>
2019 Gary Benson <gbenson@redhat.com>
2021 * common/common-regcache.h: New file.
2022 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2023 * regcache.h: Include common-regcache.h.
2024 (regcache_read_pc): Don't declare.
2025 * regcache.c (get_thread_regcache_for_ptid): New function.
2026 * nat/linux-btrace.c: Don't include regcache.h.
2027 Include common-regcache.h.
2028 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2030 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2032 * regcache.h (struct regset): Declare.
2034 2014-09-11 Pedro Alves <palves@redhat.com>
2037 * main.c: Include "infrun.h".
2038 (catch_command_errors, catch_command_errors_const): Wait for the
2039 foreground command to complete.
2040 * top.c (maybe_wait_sync_command_done): New function, factored out
2042 (maybe_wait_sync_command_done): ... here.
2043 * top.h (maybe_wait_sync_command_done): New declaration.
2045 2014-09-11 Tom Tromey <tromey@redhat.com>
2046 Gary Benson <gbenson@redhat.com>
2048 * common/symbol.h: New file.
2049 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2050 * minsyms.c (find_minimal_symbol_address): New function.
2051 * common/agent.c: Include common/symbol.h.
2052 [!GDBSERVER]: Don't include objfiles.h.
2053 (agent_look_up_symbols): Use find_minimal_symbol_address.
2055 2014-09-11 Gary Benson <gbenson@redhat.com>
2057 * target/target.h (target_stop_ptid, target_continue_ptid):
2059 * target.c (target_stop_ptid, target_continue_ptid): New
2061 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2062 (agent_run_command): Always use target_stop_ptid and
2063 target_continue_ptid.
2065 2014-09-11 Tom Tromey <tromey@redhat.com>
2066 Gary Benson <gbenson@redhat.com>
2068 * target/target.h: New file.
2069 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2070 * target.h: Include target/target.h.
2071 (target_read_memory, target_write_memory): Don't declare.
2072 * target.c (target_read_uint32): New function.
2073 * common/agent.c: Include target/target.h.
2074 [!GDBSERVER]: Don't include target.h.
2075 (helper_thread_id): Type changed to uint32_t.
2076 (agent_get_helper_thread_id): Use target_read_uint32.
2077 (agent_run_command): Always use target_read_memory and
2078 target_write_memory.
2079 (agent_capability): Type changed to uint32_t.
2080 (agent_capability_check): Use target_read_uint32.
2082 2014-09-11 Gary Benson <gbenson@redhat.com>
2084 * common/common-debug.h (show_debug_regs): Declare.
2085 * common/common-debug.c (show_debug_regs): Define.
2086 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2087 all uses with show_debug_regs. Replace all uses that considered
2088 debug_hw_points as a multi-value integer with straight boolean
2090 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2091 with show_debug_regs.
2092 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2093 all uses with show_debug_regs.
2094 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2095 uses with show_debug_regs.
2097 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2099 * findvar.c (address_from_register): Handle targets requiring
2100 a special conversion routine even for plain pointer types.
2102 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2104 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2105 (store_register): Do not call exec_one_dummy_insn.
2107 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2109 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2110 dereference it first. Use value_enclosing_type instead of
2112 (ada_array_length): Likewise.
2114 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2116 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2117 Adjust function implementation and documentation accordingly.
2118 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2119 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2120 Update call to ada_value_ptr_subscript.
2122 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2124 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2125 instead of VAL's type.
2127 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2129 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2131 2014-09-09 Doug Evans <xdje42@gmail.com>
2134 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2135 last parameter to pkg-config, not first.
2136 * configure.ac: Pass --with-guile provided pkg-config path to
2137 GDB_GUILE_PROGRAM_NAMES.
2138 * configure: Regenerate.
2140 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2142 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2145 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2147 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2148 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2149 the list of sections determining GDB_OSABI_IRIX.
2151 2014-09-09 James Hogan <james.hogan@imgtec.com>
2153 * MAINTAINERS (Write After Approval): Add "James Hogan".
2155 2014-09-09 James Hogan <james.hogan@imgtec.com>
2157 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2159 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2161 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2163 2014-09-08 Doug Evans <xdje42@gmail.com>
2166 * guile.c: #include <signal.h>.
2167 (_initialize_guile): Block SIGCHLD while initializing Guile.
2169 Replaces the following, which is reverted.
2171 2014-07-26 Doug Evans <xdje42@gmail.com>
2174 * configure.ac: Add check for header gc/gc.h.
2175 Add check for function setenv.
2176 * configure: Regenerate.
2177 * config.in: Regenerate.
2178 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2180 2014-09-08 Doug Evans <xdje42@gmail.com>
2182 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2183 with named constant. Fix style of pointer comparison.
2184 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2186 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2189 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2190 decide whether we display the command on "show user".
2191 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2192 printing command name.
2193 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2194 * cli/cli-decode.c (cli_user_command_p): Create helper function
2195 to verify whether cmd_list_element is a user-defined command.
2197 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2201 Fix goto out of TRY_CATCH.
2203 2014-09-06 Doug Evans <xdje42@gmail.com>
2204 Tom Tromey <tromey@redhat.com>
2207 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2208 $_any_caller_matches.
2209 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2210 * python/lib/gdb/function/caller_is.py: New file.
2212 2014-09-06 Doug Evans <xdje42@gmail.com>
2214 * infcmd.c (program_info): Fix typo.
2216 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2219 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2220 'number'. New variable 'has_digit'. Rewrite code to deal with
2221 subexpressions on SDT probes.
2223 2014-09-04 Pedro Alves <palves@redhat.com>
2225 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2226 the input is only one character long.
2228 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2231 * f-valprint.c (f_val_print): Specify the correct print option to
2232 use when printing integer values.
2234 2014-09-04 Gary Benson <gbenson@redhat.com>
2236 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2237 Remove code to cope with LWPs wrapped as PIDs.
2238 Add assertions to ensure no wrapped LWPs are passed.
2240 2014-09-04 Pedro Alves <palves@redhat.com>
2242 * value.c (value_ranges_copy_adjusted): New function, factored out
2244 (value_contents_copy_raw): ... here.
2245 (unpack_value_bits_as_long_1): Rename back to ...
2246 (unpack_bits_as_long): ... this. Remove 'original_value' and
2247 'result' parameters. Change return type to LONGEST.
2248 (unpack_value_bits_as_long): Delete.
2249 (unpack_value_field_as_long_1): Delete.
2250 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2251 (unpack_value_bitfield): New function.
2252 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2253 (value_fetch_lazy): Use unpack_value_bitfield.
2254 * value.h (unpack_value_bits_as_long): Delete declaration.
2256 2014-09-03 Sasha Smundak <asmundak@google.com>
2258 * python/py-frame.c (frapy_read_register): New function.
2260 2014-09-03 James Hogan <james.hogan@imgtec.com>
2262 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2263 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2265 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2268 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2270 (add_cmd): Set "completer_handle_brkchars" to NULL.
2271 * cli/cli-decode.h (struct cmd_list_element)
2272 <completer_handle_brkchars>: New field.
2273 * command.h (completer_ftype_void): New typedef.
2274 (set_cmd_completer_handle_brkchars): New prototype.
2275 * completer.c (set_gdb_completion_word_break_characters): New
2277 (complete_line_internal): Call "completer_handle_brkchars"
2278 callback from command.
2279 * completer.h: Include "command.h".
2280 (set_gdb_completion_word_break_characters): New prototype.
2281 * python/py-cmd.c (cmdpy_completer_helper): New function.
2282 (cmdpy_completer_handle_brkchars): New function.
2283 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2284 (cmdpy_init): Set completer_handle_brkchars to
2285 cmdpy_completer_handle_brkchars.
2287 2014-09-03 Gary Benson <gbenson@redhat.com>
2289 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2290 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2291 Loop conditions changed to equivalent form.
2292 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2293 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2294 ALL_DEBUG_ADDRESS_REGISTERS.
2296 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2298 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2301 2014-09-02 Doug Evans <dje@google.com>
2303 * typeprint.c (find_global_typedef): Fix comment.
2305 2014-09-02 Gary Benson <gbenson@redhat.com>
2307 * i386-nat.h: Renamed as...
2308 * x86-nat.h: New file. All type, function and variable name
2309 prefixes changed from "i386_" to "x86_". All references updated.
2310 * i386-nat.c: Renamed as...
2311 * x86-nat.c: New file. All type, function and variable name
2312 prefixes changed from "i386_" to "x86_". All references updated.
2313 * common/i386-xstate.h: Renamed as...
2314 * common/x86-xstate.h: New file. All type, function and variable
2315 name prefixes changed from "i386_" to "x86_". All references
2317 * nat/i386-cpuid.h: Renamed as...
2318 * nat/x86-cpuid.h: New file. All type, function and variable name
2319 prefixes changed from "i386_" to "x86_". All references updated.
2320 * nat/i386-gcc-cpuid.h: Renamed as...
2321 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2322 name prefixes changed from "i386_" to "x86_". All references
2324 * nat/i386-dregs.h: Renamed as...
2325 * nat/x86-dregs.h: New file. All type, function and variable name
2326 prefixes changed from "i386_" to "x86_". All references updated.
2327 * nat/i386-dregs.c: Renamed as...
2328 * nat/x86-dregs.c: New file. All type, function and variable name
2329 prefixes changed from "i386_" to "x86_". All references updated.
2331 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2333 * varobj.c (_initialize_varobj): Move to the end of file.
2335 2014-08-29 Gary Benson <gbenson@redhat.com>
2337 * common/common-exceptions.h: New file.
2338 * common/common-exceptions.c: Likewise.
2339 * Makefile.in (SFILES): Add common/common-exceptions.c.
2340 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2341 (COMMON_OBS): Add common-exceptions.o.
2342 (common-exceptions.o): New rule.
2343 * exceptions.h (common-exceptions.h): Include.
2344 (gdb_setjmp.h): Do not include.
2345 (return_reason): Moved to common-exceptions.h.
2346 (enum return_reason): Likewise.
2347 (RETURN_MASK): Likewise.
2348 (typedef return_mask): Likewise.
2349 (enum errors): Likewise.
2350 (struct gdb_exception): Likewise.
2351 (exceptions_state_mc_init): Likewise.
2352 (exceptions_state_mc_action_iter): Likewise.
2353 (exceptions_state_mc_action_iter_1): Likewise.
2354 (TRY_CATCH): Likewise.
2355 (throw_exception): Likewise.
2356 (throw_verror): Likewise.
2357 (throw_vquit): Likewise.
2358 (throw_error): Likewise.
2359 (throw_quit): Likewise.
2360 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2361 (enum catcher_action): Likewise.
2362 (struct catcher): Likewise.
2363 (current_catcher): Likewise.
2364 (catcher_list_size): Likewise.
2365 (exceptions_state_mc_init): Likewise.
2366 (catcher_pop): Likewise.
2367 (exceptions_state_mc): Likewise.
2368 (exceptions_state_mc_action_iter): Likewise.
2369 (exceptions_state_mc_action_iter_1): Likewise.
2370 (throw_exception): Likewise.
2371 (exception_messages): Likewise.
2372 (exception_messages_size): Likewise.
2373 (throw_it): Likewise.
2374 (throw_verror): Likewise.
2375 (throw_vquit): Likewise.
2376 (throw_error): Likewise.
2377 (throw_quit): Likewise.
2378 (prepare_to_throw_exception): New function.
2380 2014-08-29 Gary Benson <gbenson@redhat.com>
2382 * common/gdb_setjmp.h: New file.
2383 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2384 * configure.ac: Move sigsetjmp check...
2385 * common/common.m4: ...here.
2386 * configure: Regenerate.
2387 * cp-support.c (SIGJMP_BUF): Delete.
2388 (SIGSETJMP): Likewise.
2389 (SIGLONGJMP): Likewise.
2390 * exceptions.h (gdb_setjmp.h): Include.
2391 (setjmp.h): Do not include.
2392 (EXCEPTIONS_SIGJMP_BUF): Delete.
2393 (EXCEPTIONS_SIGSETJMP): Likewise.
2394 (EXCEPTIONS_SIGLONGJMP): Likewise.
2395 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2397 * exceptions.c: Likewise.
2399 2014-08-29 Gary Benson <gbenson@redhat.com>
2401 * cleanups.h: Moved to...
2402 * common/cleanups.h: New file.
2403 * cleanups.c: Moved to...
2404 * common/cleanups.c: New file. Include common-defs.h and
2405 cleanups.h. Do not include defs.h.
2406 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2407 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2408 (cleanups.o): New rule.
2410 2014-08-29 Gary Benson <gbenson@redhat.com>
2412 * common/errors.h (internal_warning): New declaration.
2413 (internal_vwarning): Likewise.
2414 * common/errors.c (internal_warning): New function.
2415 * utils.h (internal_warning): Don't declare.
2416 (internal_vwarning): Likewise.
2417 * utils.c (internal_warning): Removed.
2419 2014-08-29 Gary Benson <gbenson@redhat.com>
2421 * main.c (captured_main): Use warning during startup.
2422 Prefix startup warning messages with command name.
2424 2014-08-29 Gary Benson <gbenson@redhat.com>
2426 * main.c (captured_main): Handle usage errors with error.
2428 2014-08-29 Gary Benson <gbenson@redhat.com>
2430 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2431 exit pair with a call to error. Wrap the message with _().
2433 2014-08-29 Gary Benson <gbenson@redhat.com>
2435 * main.c (captured_main): Replace a fprintf/exit
2436 pair with a call to error. Wrap the message with _().
2438 2014-08-29 Gary Benson <gbenson@redhat.com>
2440 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2441 pairs with calls to error. Wrap the message with _().
2443 2014-08-29 Gary Benson <gbenson@redhat.com>
2445 * utils.c (vwarning): Protect calls to target_terminal_ours
2448 2014-08-29 Gary Benson <gbenson@redhat.com>
2450 * exceptions.c (print_flush): Protect calls to
2451 target_terminal_ours and wrap_here.
2453 2014-08-29 Gary Benson <gbenson@redhat.com>
2455 * utils.h (filtered_printing_initialized): New declaration.
2456 * utils.c (abort_with_message): New function.
2457 (internal_vproblem): Use abort_with_message for first level
2458 recursive internal problems, and if gdb_stderr is not set up.
2459 Protect calls to target_terminal_ours, begin_line and query.
2461 2014-08-28 Doug Evans <dje@google.com>
2463 * symtab.c (in_prologue): Move definition to better spot.
2464 (skip_prologue_using_sal): Ditto.
2466 2014-08-28 Doug Evans <dje@google.com>
2468 * symtab.c (find_function_start_sal): Move definition to better spot.
2470 2014-08-28 Yao Qi <yao@codesourcery.com>
2472 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2473 found_stack_adjust in forward scan. Remove condition check
2474 on found_stack_adjust which is always true. Indent the code.
2476 2014-08-28 Yao Qi <yao@codesourcery.com>
2478 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2479 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2480 (dwarf_decode_lines): Remove argument
2481 want_line_info. Remove condition check on want_line_info.
2484 2014-08-27 Doug Evans <dje@google.com>
2486 * dwarf2read.c (dwarf_record_line): Fix typo.
2488 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2490 * target.h (struct target_ops::to_terminal_save_ours): Remove
2492 (target_terminal_save_ours): Remove macro.
2493 * target-delegates.c: Regenerate.
2494 * inf-child.c (inf_child_target): Don't set the nonexistent
2495 field to_terminal_save_ours.
2496 * inferior.h (child_terminal_save_ours): Remove declaration.
2497 * terminal.h (gdb_save_tty_state): New declaration.
2498 * inflow.c (child_terminal_save_ours): Rename to ...
2499 (gdb_save_tty_state): ... this.
2500 * tui/tui.c: Include terminal.h.
2501 (tui_enable): Use gdb_save_tty_state instead of
2502 target_terminal_save_ours.
2503 (tui_disable): Likewise.
2505 2014-08-25 Doug Evans <dje@google.com>
2507 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2508 Pass NULL instead of 0 for context pointer.
2510 2014-08-25 Yao Qi <yao@codesourcery.com>
2512 * dwarf2read.c: Fix grammatical error.
2514 2014-08-24 Yao Qi <yao@codesourcery.com>
2516 * dwarf2read.c (scan_partial_symbols): Update comments.
2517 Rename argument 'need_pc' with 'set_addrmap'.
2518 (add_partial_namespace): Rename argument 'need_pc' with
2520 (add_partial_module): Likewise.
2521 (add_partial_subprogram): Likewise. Update comments.
2522 (dwarf2_name): Fix typo.
2524 2014-08-22 Doug Evans <dje@google.com>
2527 * dwarf2read.c (dwarf_record_line_p): New function.
2528 (dwarf_decode_lines_1): Ignore subsequent line number entries
2529 for the same line if any entry had a non-zero discriminator.
2531 2014-08-22 Doug Evans <dje@google.com>
2533 * buildsym.h (record_line_ftype): New typedef.
2534 (record_line): Use it.
2535 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2536 (dwarf_decode_lines_1): Call them.
2538 2014-08-22 Yao Qi <yao@codesourcery.com>
2540 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2541 (ctf_end): Remove code.
2543 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2545 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2546 (linux_make_corefile_notes): call update_thread_list, protected against
2549 2014-08-21 Pedro Alves <palves@redhat.com>
2551 * infcmd.c (attach_command): Remove comment.
2553 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2555 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2556 unsigned LONGEST to ULONGEST.
2558 2014-08-20 Pedro Alves <palves@redhat.com>
2560 * Makefile.in (check-read1): New rule.
2562 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2564 * value.c (value_from_contents_and_address): Strip resolved_type's
2565 typedef layers before checking its TYPE_DATA_LOCATION.
2567 2014-08-20 Pedro Alves <palves@redhat.com>
2569 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2571 2014-08-20 Yao Qi <yao@codesourcery.com>
2573 * amd64-tdep.c (amd64_classify): Add a blank line after the
2574 example. Move "*/" to a new line.
2575 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2576 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2577 * dwarf2read.c (psymtab_include_file_name): Likewise.
2579 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2580 Pedro Alves <palves@redhat.com>
2584 * ada-lang.c (coerce_unspec_val_to_type): Use
2585 value_contents_copy_raw.
2586 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2587 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2588 * cp-valprint.c (cp_print_value_fields): Let the common printing
2589 code handle optimized out values.
2590 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2591 * d-valprint.c (dynamic_array_type): Use
2592 value_bits_any_optimized_out.
2593 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2594 check_any_valid fields.
2595 (check_pieced_value_bits): Delete and inline ...
2596 (check_pieced_synthetic_pointer): ... here.
2597 (check_pieced_value_validity): Delete.
2598 (check_pieced_value_invalid): Delete.
2599 (pieced_value_funcs): Remove check_validity and check_any_valid
2601 (read_pieced_value): Use mark_value_bits_optimized_out.
2602 (write_pieced_value): Switch to use
2603 mark_value_bytes_optimized_out.
2604 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2605 of assuming the whole value is optimized out.
2606 * findvar.c (read_frame_register_value): Remove special handling
2607 of optimized out registers.
2608 (value_from_register): Use mark_value_bytes_optimized_out.
2609 * frame-unwind.c (frame_unwind_got_optimized): Use
2610 mark_value_bytes_optimized_out.
2611 * jv-valprint.c (java_value_print): Adjust.
2612 (java_print_value_fields): Let the common printing code handle
2613 optimized out values.
2614 * mips-tdep.c (mips_print_register): Remove special handling of
2615 optimized out registers.
2616 * opencl-lang.c (lval_func_check_validity): Delete.
2617 (lval_func_check_any_valid): Delete.
2618 (opencl_value_funcs): Remove check_validity and check_any_valid
2620 * p-valprint.c (pascal_object_print_value_fields): Let the common
2621 printing code handle optimized out values.
2622 * stack.c (read_frame_arg): Remove special handling of optimized
2623 out values. Fetch both VAL and ENTRYVAL before comparing
2624 contents. Adjust to value_available_contents_eq rename.
2625 * valprint.c (valprint_check_validity)
2626 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2627 (val_print_array_elements): Adjust.
2628 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2629 (value_bits_any_optimized_out): New function.
2630 (value_entirely_covered_by_range_vector): New function, factored
2631 out from value_entirely_unavailable.
2632 (value_entirely_unavailable): Reimplement.
2633 (value_entirely_optimized_out): New function.
2634 (insert_into_bit_range_vector): New function, factored out from
2635 mark_value_bits_unavailable.
2636 (mark_value_bits_unavailable): Reimplement.
2637 (struct ranges_and_idx): New struct.
2638 (find_first_range_overlap_and_match): New function, factored out
2639 from value_available_contents_bits_eq.
2640 (value_available_contents_bits_eq): Rename to ...
2641 (value_contents_bits_eq): ... this. Check both unavailable
2642 contents and optimized out contents.
2643 (value_available_contents_eq): Rename to ...
2644 (value_contents_eq): ... this.
2645 (allocate_value_lazy): Remove reference to the old optimized_out
2647 (allocate_optimized_out_value): Use
2648 mark_value_bytes_optimized_out.
2649 (require_not_optimized_out): Adjust to check whether the
2650 optimized_out vec is empty.
2651 (ranges_copy_adjusted): New function, factored out from
2652 value_contents_copy_raw.
2653 (value_contents_copy_raw): Also copy the optimized out ranges.
2654 Assert the destination ranges aren't optimized out.
2655 (value_contents_copy): Update comment, remove call to
2656 require_not_optimized_out.
2657 (value_contents_equal): Adjust to check whether the optimized_out
2659 (set_value_optimized_out, value_optimized_out_const): Delete.
2660 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2662 (value_entirely_optimized_out, value_bits_valid): Delete.
2663 (value_copy): Take a VEC copy of the 'optimized_out' field.
2664 (value_primitive_field): Remove special handling of optimized out.
2665 (value_fetch_lazy): Assert that lazy values have no unavailable
2666 regions. Use value_bits_any_optimized_out. Remove some special
2667 handling for optimized out values.
2668 * value.h: Add intro comment about <optimized out> and
2670 (struct lval_funcs): Remove check_validity and check_any_valid
2672 (set_value_optimized_out, value_optimized_out_const): Remove.
2673 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2675 (value_bits_any_optimized_out): New declaration.
2676 (value_bits_valid): Delete declaration.
2677 (value_available_contents_eq): Rename to ...
2678 (value_contents_eq): ... this, and extend comments.
2680 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2682 Fix -fsanitize=address on unreadable inferior strings.
2683 * valprint.c (val_print_string): Fix access before BUFFER.
2685 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2687 * target.c (target_struct_size): Remove.
2688 (target_struct_allocsize): Remove.
2689 (DEFAULT_ALLOCSIZE): Remove.
2690 (target_ops_p): New typedef.
2691 (DEF_VEC_P (target_ops_p)): New vector type.
2692 (target_structs): Change type to VEC (target_ops_p).
2693 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2694 (find_default_run_target): Rewrite for loop following changes to
2697 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2699 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2700 Adjust code accordingly. Adjust function description comment.
2702 2014-08-19 Yao Qi <yao@codesourcery.com>
2704 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2707 2014-08-19 Alan Modra <amodra@gmail.com>
2709 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2710 * config.in: Regenerate.
2711 * configure: Regenerate.
2713 2014-08-19 Tom Tromey <tromey@redhat.com>
2714 Gary Benson <gbenson@redhat.com>
2716 * common/common-debug.h: New file.
2717 * common/common-debug.c: Likewise.
2718 * debug.c: Likewise.
2719 * Makefile.in (SFILES): Add common/common-debug.c.
2720 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2721 (COMMON_OBS): Add common-debug.o and debug.o.
2722 (common-debug.o): New rule.
2723 * common/common-defs.h: Include common-debug.h.
2724 * common/agent.c (debug_agent_printf): New function.
2725 (DEBUG_AGENT): Redefine.
2726 * nat/i386-dregs.c (debug_printf): Undefine.
2728 2014-08-19 Gary Benson <gbenson@redhat.com>
2730 * common/common-defs.h: Include print-utils.h.
2731 * utils.h: Do not include print-utils.h.
2733 2014-08-19 Tom Tromey <tromey@redhat.com>
2734 Gary Benson <gbenson@redhat.com>
2736 * common/common-types.h: New file.
2737 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2738 * common/common-defs.h: Include common-types.h.
2739 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2742 2014-08-19 Tom Tromey <tromey@redhat.com>
2743 Gary Benson <gbenson@redhat.com>
2745 * common/errors.h: New file.
2746 * common/errors.c: Likewise.
2747 * Makefile.in (SFILES): Add common/errors.c.
2748 (HFILES_NO_SRCDIR): Add common/errors.h.
2749 (COMMON_OBS): Add errors.o.
2750 (errors.o): New rule.
2751 * common/common-defs.h: Include errors.h.
2752 * utils.h (perror_with_name, error, verror, warning, vwarning):
2754 * common/common-utils.h: (malloc_failure, internal_error):
2757 2014-08-19 Gary Benson <gbenson@redhat.com>
2759 * utils.c (internal_vproblem): Always print the message.
2761 2014-08-18 Doug Evans <dje@google.com>
2763 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2765 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2767 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2768 Return 0 if TYPE is dynamic.
2769 (print_range): Add handling of dynamic ranges.
2771 2014-08-18 Keven Boell <keven.boell@intel.com>
2772 Joel Brobecker <brobecker@adacore.com>
2774 * gdbtypes.h (struct main_type): Add field "data_location".
2775 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2776 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2777 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2778 a dynamic data location.
2779 (resolve_dynamic_type): Add DW_AT_data_location handling.
2780 (copy_recursive, copy_type): Copy the data_location information
2782 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2783 * value.c (value_from_contents_and_address): Add
2784 DW_AT_data_location handling.
2786 2014-08-18 Keven Boell <keven.boell@intel.com>
2787 Joel Brobecker <brobecker@adacore.com>
2789 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2790 field "get_object_address".
2791 * dwarf2expr.c (execute_stack_op): Add handling for
2792 DW_OP_push_object_address.
2793 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2794 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2795 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2796 (dwarf_expr_get_obj_addr): New function.
2797 (dwarf_expr_ctx_funcs): Add get_object_address field.
2798 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2799 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2800 (dwarf2_evaluate_property): Add parameter "address". Use it.
2801 (needs_get_obj_addr): New function.
2802 (needs_frame_ctx_funcs): Add get_object_address field.
2803 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2804 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2805 (resolve_dynamic_array): Likewise.
2807 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2809 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2810 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2811 fixed value for records and unions for which some GNAT encodings
2814 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2816 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2817 rewrite to avoid "else if" and "else" constructs. Should be
2818 a no-op in practice.
2820 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2822 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2825 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2828 * eval.c: Update all calls to find_overload_match.
2829 * valarith.c: Likewise.
2830 (value_user_defined_cpp_op, value_user_defined_op): New
2831 argument NOSIDE. Update all callers.
2832 * valops.c (find_overload_match): New argument NOSIDE.
2833 * value.h (find_overload_match): Update signature.
2835 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2837 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2838 'items' methods instead of 'iteritems' method on dictionaries.
2840 2014-08-15 Doug Evans <dje@google.com>
2842 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2845 2014-08-15 Doug Evans <dje@google.com>
2847 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2849 2014-08-15 Doug Evans <dje@google.com>
2851 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2853 2014-08-15 Doug Evans <dje@google.com>
2855 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2858 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2860 * dcache.h: Include target.h, to avoid compile time warnings.
2862 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2864 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2865 frame_info" partial declaration.
2866 * gdbarch.h: Regenerate.
2868 2014-08-15 Yao Qi <yao@codesourcery.com>
2870 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2871 Add parameter 'decode_for_pst_p'. Callers update.
2873 2014-08-13 Yao Qi <yao@codesourcery.com>
2876 * configure.ac: Use local variable 'pos'.
2877 * configure: Regenerated.
2879 2014-08-11 Doug Evans <dje@google.com>
2881 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2882 message, it is redundant with "Reading symbols from ..." message.
2884 2014-08-10 Doug Evans <xdje42@gmail.com>
2886 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2888 2014-08-09 Yao Qi <yao@codesourcery.com>
2891 * remote.c (remote_xfer_partial): Remove dead code.
2893 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2895 * ia64-linux-tdep.c: Include "regset.h".
2896 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2897 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2898 (ia64_linux_supply_fpregset): New function.
2899 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2900 (ia64_linux_regset_from_core_section): New function.
2901 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2904 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2906 * m68klinux-tdep.c: Include "regset.h".
2907 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2908 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2909 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2910 (m68k_linux_regset_from_core_section): New function.
2911 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2914 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2916 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2917 function. Move logic to...
2918 (tilegx_linux_regmap): ... this new register map.
2919 (tilegx_linux_regset): Refer to register map, replace supply
2920 method by regcache_supply_regset, and add collect method.
2921 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2922 TILEGX_FIRST_EASY_REGNUM.
2924 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2926 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2927 that calls regcache_supply_regset and handles the EPC register
2928 separately. Move main logic to...
2929 (score7_linux_gregmap): ... this new register map.
2930 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2931 (score7_linux_gregset): Refer to register map. Add collect method.
2932 (score7_linux_regset_from_core_section): Replace
2933 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2934 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2935 (struct regset): Delete unused forward declaraction.
2936 (struct pt_regs): Delete structure definition.
2937 (elf_gregset_t): Delete typedef.
2939 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2941 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2942 (nios2_core_regset): Add collect method.
2944 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2946 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2947 platform-independent and don't write to read-only input buffer.
2948 (m32r_linux_collect_gregset): New function.
2949 (m32r_linux_gregset): Add collect method.
2951 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2953 * hppa-linux-tdep.c (greg_map): Rename to...
2954 (hppa_linux_gregmap): ... this. Also convert to
2955 regcache_map_entry format.
2956 (hppa_linux_supply_regset): Delete function.
2957 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2958 (hppa_linux_fpregmap): ... this new register map.
2959 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2960 register map, replace supply method by regcache_supply_regset, and
2961 add collect method regcache_collect_regset.
2963 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2965 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2966 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2967 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2968 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2969 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2970 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2971 (frv_linux_supply_gregset): Replace main logic by call to
2972 regcache_supply_regset, but keep clearing gr32-gr63.
2973 (frv_linux_supply_fpregset): Delete function.
2974 (frv_linux_gregset): Refer to appropriate register map and add
2975 regcache_collect_regset as the collect method.
2976 (frv_linux_fpregset): Likewise. Also exchange the supply method
2977 by regcache_supply_regset.
2979 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2981 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2982 by call to alpha_supply_int_regs.
2983 (alpha_linux_collect_gregset): New function.
2984 (alpha_linux_supply_fpregset): Replace logic by call to
2985 alpha_supply_fp_regs.
2986 (alpha_linux_collect_fpregset): New function.
2987 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2989 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2991 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2992 by call to regcache_collect_regset.
2993 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2994 instead of aarch64_linux_supply_gregset/_fpregset.
2995 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2996 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2997 header file instead.
2998 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2999 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3000 functions. Move logic to ...
3001 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3003 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3004 refer to new register maps, replace *_regset_from_core by
3005 regcache_supply_regset, and also use regcache_collect_regset.
3006 * aarch64-linux-tdep.h: Include "regset.h".
3007 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3009 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3010 macros, moved from C source file.
3011 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3012 variable declarations.
3014 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3016 * s390-linux-nat.c: Include "regset.h".
3017 (regmap_gregset): Delete macro.
3018 (s390_64_regmap_gregset): New register map for
3019 regcache_supply/_collect_regset.
3020 (s390_64_gregset): New regset.
3021 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3022 (regmap_fpregset): Delete macro.
3023 (s390_native_supply, s390_native_collect): Delete functions.
3024 (supply_gregset, fill_gregset): Replace s390-specific regmap
3025 handling by a call to regcache_supply/_collect_regset.
3026 (supply_fpregset, fill_fpregset): Call regcache_supply/
3027 _collect_regset instead of s390_native_supply/_collect.
3028 (fetch_regset, store_regset): Likewise. Also change the last
3029 parameter to a regset instead of a regmap.
3030 (s390_linux_fetch_inferior_registers)
3031 (390_linux_store_inferior_registers): Adjust last parameter in
3032 calls to fetch_regset and store_regset.
3033 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3034 (s390_gregmap): ... this. Also make static const and convert to
3035 regcache_map_entry format.
3036 (s390x_regmap_gregset): Delete.
3037 (s390_regmap_fpregset): Rename to...
3038 (s390_fpregmap): ... this. Make static const and convert to
3039 regcache_map_entry format.
3040 (s390_regmap_upper, s390_regmap_last_break)
3041 (s390x_regmap_last_break, s390_regmap_system_call)
3042 (s390_regmap_tdb): Likewise.
3043 (s390_supply_regset, s390_collect_regset): Remove functions.
3044 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3046 (s390_gregset, s390_fpregset, s390_upper_regset)
3047 (s390_last_break_regset, s390x_last_break_regset)
3048 (s390_system_call_regset, s390_tdb_regset): Make global and
3049 replace s390_supply/_collect_regset by regcache_supply/
3051 (s390x_gregset): Delete.
3052 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3053 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3054 (s390_regmap_fpregset, s390_regmap_last_break)
3055 (s390x_regmap_last_break, s390_regmap_system_call)
3056 (s390_regmap_tdb): Delete global variable declarations.
3057 (s390_gregset, s390_fpregset, s390_last_break_regset)
3058 (s390x_last_break_regset, s390_system_call_regset)
3059 (s390_tdb_regset): New global variable declarations.
3061 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3063 * regcache.c: Include "regset.h".
3064 (regcache_transfer_regset): New local function.
3065 (regcache_supply_regset, regcache_collect_regset): New functions.
3066 * regcache.h (struct regcache_map_entry): New structure.
3067 (REGCACHE_MAP_SKIP): New enum value.
3068 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3070 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3072 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3073 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3074 (ppc_linux_collect_gregset ): Likewise.
3075 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3076 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3077 (ppc_collect_vrregset): Likewise.
3078 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3081 2014-08-07 Yao Qi <yao@codesourcery.com>
3083 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3084 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3085 * remote.c (remote_read_bytes): Likewise.
3087 2014-08-07 Yao Qi <yao@codesourcery.com>
3089 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3091 2014-08-07 Yao Qi <yao@codesourcery.com>
3094 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3095 TARGET_XFER_OK instead of 0.
3097 2014-08-07 Gary Benson <gbenson@redhat.com>
3099 * common/common-defs.h: Include errno.h.
3100 * defs.h: Do not include errno.h.
3101 * ada-typeprint.c: Likewise.
3102 * c-typeprint.c: Likewise.
3103 * core-regset.c: Likewise.
3104 * corefile.c: Likewise.
3105 * corelow.c: Likewise.
3106 * event-loop.c: Likewise.
3107 * f-typeprint.c: Likewise.
3108 * gnu-nat.c: Likewise.
3109 * go32-nat.c: Likewise.
3110 * i386gnu-nat.c: Likewise.
3111 * m2-typeprint.c: Likewise.
3112 * nat/linux-btrace.c: Likewise.
3113 * p-typeprint.c: Likewise.
3114 * procfs.c: Likewise.
3115 * remote-sim.c: Likewise.
3116 * rs6000-nat.c: Likewise.
3117 * target.c: Likewise.
3118 * typeprint.c: Likewise.
3119 * ui-file.c: Likewise.
3120 * valops.c: Likewise.
3121 * valprint.c: Likewise.
3123 2014-08-07 Gary Benson <gbenson@redhat.com>
3125 * common/common-defs.h: Include string.h.
3126 * aarch64-tdep.c: Do not include string.h.
3127 * ada-exp.y: Likewise.
3128 * ada-lang.c: Likewise.
3129 * ada-lex.l: Likewise.
3130 * ada-typeprint.c: Likewise.
3131 * ada-valprint.c: Likewise.
3132 * aix-thread.c: Likewise.
3133 * alpha-linux-tdep.c: Likewise.
3134 * alpha-mdebug-tdep.c: Likewise.
3135 * alpha-nat.c: Likewise.
3136 * alpha-osf1-tdep.c: Likewise.
3137 * alpha-tdep.c: Likewise.
3138 * alphanbsd-tdep.c: Likewise.
3139 * amd64-dicos-tdep.c: Likewise.
3140 * amd64-linux-tdep.c: Likewise.
3141 * amd64-nat.c: Likewise.
3142 * amd64-sol2-tdep.c: Likewise.
3143 * amd64fbsd-tdep.c: Likewise.
3144 * amd64obsd-tdep.c: Likewise.
3145 * arch-utils.c: Likewise.
3146 * arm-linux-nat.c: Likewise.
3147 * arm-linux-tdep.c: Likewise.
3148 * arm-tdep.c: Likewise.
3149 * arm-wince-tdep.c: Likewise.
3150 * armbsd-tdep.c: Likewise.
3151 * armnbsd-nat.c: Likewise.
3152 * armnbsd-tdep.c: Likewise.
3153 * armobsd-tdep.c: Likewise.
3154 * avr-tdep.c: Likewise.
3155 * ax-gdb.c: Likewise.
3156 * ax-general.c: Likewise.
3157 * bcache.c: Likewise.
3158 * bfin-tdep.c: Likewise.
3159 * breakpoint.c: Likewise.
3160 * build-id.c: Likewise.
3161 * buildsym.c: Likewise.
3162 * c-exp.y: Likewise.
3163 * c-lang.c: Likewise.
3164 * c-typeprint.c: Likewise.
3165 * c-valprint.c: Likewise.
3166 * charset.c: Likewise.
3167 * cli-out.c: Likewise.
3168 * cli/cli-cmds.c: Likewise.
3169 * cli/cli-decode.c: Likewise.
3170 * cli/cli-dump.c: Likewise.
3171 * cli/cli-interp.c: Likewise.
3172 * cli/cli-logging.c: Likewise.
3173 * cli/cli-script.c: Likewise.
3174 * cli/cli-setshow.c: Likewise.
3175 * cli/cli-utils.c: Likewise.
3176 * coffread.c: Likewise.
3177 * common/agent.c: Likewise.
3178 * common/buffer.c: Likewise.
3179 * common/buffer.h: Likewise.
3180 * common/common-utils.c: Likewise.
3181 * common/filestuff.c: Likewise.
3182 * common/filestuff.c: Likewise.
3183 * common/format.c: Likewise.
3184 * common/print-utils.c: Likewise.
3185 * common/rsp-low.c: Likewise.
3186 * common/signals.c: Likewise.
3187 * common/vec.h: Likewise.
3188 * common/xml-utils.c: Likewise.
3189 * core-regset.c: Likewise.
3190 * corefile.c: Likewise.
3191 * corelow.c: Likewise.
3192 * cp-abi.c: Likewise.
3193 * cp-name-parser.y: Likewise.
3194 * cp-support.c: Likewise.
3195 * cp-valprint.c: Likewise.
3196 * cris-tdep.c: Likewise.
3197 * d-exp.y: Likewise.
3198 * darwin-nat.c: Likewise.
3199 * dbxread.c: Likewise.
3200 * dcache.c: Likewise.
3201 * demangle.c: Likewise.
3202 * dicos-tdep.c: Likewise.
3203 * disasm.c: Likewise.
3204 * doublest.c: Likewise.
3205 * dsrec.c: Likewise.
3206 * dummy-frame.c: Likewise.
3207 * dwarf2-frame.c: Likewise.
3208 * dwarf2loc.c: Likewise.
3209 * dwarf2read.c: Likewise.
3210 * elfread.c: Likewise.
3211 * environ.c: Likewise.
3213 * event-loop.c: Likewise.
3214 * exceptions.c: Likewise.
3216 * expprint.c: Likewise.
3217 * f-exp.y: Likewise.
3218 * f-lang.c: Likewise.
3219 * f-typeprint.c: Likewise.
3220 * f-valprint.c: Likewise.
3221 * fbsd-nat.c: Likewise.
3222 * findcmd.c: Likewise.
3223 * findvar.c: Likewise.
3224 * fork-child.c: Likewise.
3225 * frame.c: Likewise.
3226 * frv-linux-tdep.c: Likewise.
3227 * frv-tdep.c: Likewise.
3229 * gdb_bfd.c: Likewise.
3230 * gdbarch.c: Likewise.
3231 * gdbarch.sh: Likewise.
3232 * gdbtypes.c: Likewise.
3233 * gnu-nat.c: Likewise.
3234 * gnu-v2-abi.c: Likewise.
3235 * gnu-v3-abi.c: Likewise.
3236 * go-exp.y: Likewise.
3237 * go-lang.c: Likewise.
3238 * go32-nat.c: Likewise.
3239 * guile/guile.c: Likewise.
3240 * guile/scm-auto-load.c: Likewise.
3241 * hppa-hpux-tdep.c: Likewise.
3242 * hppa-linux-nat.c: Likewise.
3243 * hppanbsd-tdep.c: Likewise.
3244 * hppaobsd-tdep.c: Likewise.
3245 * i386-cygwin-tdep.c: Likewise.
3246 * i386-dicos-tdep.c: Likewise.
3247 * i386-linux-tdep.c: Likewise.
3248 * i386-nto-tdep.c: Likewise.
3249 * i386-sol2-tdep.c: Likewise.
3250 * i386-tdep.c: Likewise.
3251 * i386bsd-tdep.c: Likewise.
3252 * i386gnu-nat.c: Likewise.
3253 * i386nbsd-tdep.c: Likewise.
3254 * i386obsd-tdep.c: Likewise.
3255 * i387-tdep.c: Likewise.
3256 * ia64-libunwind-tdep.c: Likewise.
3257 * ia64-linux-nat.c: Likewise.
3258 * inf-child.c: Likewise.
3259 * inf-ptrace.c: Likewise.
3260 * inf-ttrace.c: Likewise.
3261 * infcall.c: Likewise.
3262 * infcmd.c: Likewise.
3263 * inflow.c: Likewise.
3264 * infrun.c: Likewise.
3265 * interps.c: Likewise.
3266 * iq2000-tdep.c: Likewise.
3267 * irix5-nat.c: Likewise.
3268 * jv-exp.y: Likewise.
3269 * jv-lang.c: Likewise.
3270 * jv-typeprint.c: Likewise.
3271 * jv-valprint.c: Likewise.
3272 * language.c: Likewise.
3273 * linux-fork.c: Likewise.
3274 * linux-nat.c: Likewise.
3275 * lm32-tdep.c: Likewise.
3276 * m2-exp.y: Likewise.
3277 * m2-typeprint.c: Likewise.
3278 * m32c-tdep.c: Likewise.
3279 * m32r-linux-nat.c: Likewise.
3280 * m32r-linux-tdep.c: Likewise.
3281 * m32r-rom.c: Likewise.
3282 * m32r-tdep.c: Likewise.
3283 * m68hc11-tdep.c: Likewise.
3284 * m68k-tdep.c: Likewise.
3285 * m68kbsd-tdep.c: Likewise.
3286 * m68klinux-nat.c: Likewise.
3287 * m68klinux-tdep.c: Likewise.
3288 * m88k-tdep.c: Likewise.
3289 * machoread.c: Likewise.
3290 * macrocmd.c: Likewise.
3292 * mdebugread.c: Likewise.
3293 * mem-break.c: Likewise.
3294 * memattr.c: Likewise.
3295 * memory-map.c: Likewise.
3296 * mep-tdep.c: Likewise.
3297 * mi/mi-cmd-break.c: Likewise.
3298 * mi/mi-cmd-disas.c: Likewise.
3299 * mi/mi-cmd-env.c: Likewise.
3300 * mi/mi-cmd-stack.c: Likewise.
3301 * mi/mi-cmd-var.c: Likewise.
3302 * mi/mi-cmds.c: Likewise.
3303 * mi/mi-console.c: Likewise.
3304 * mi/mi-getopt.c: Likewise.
3305 * mi/mi-interp.c: Likewise.
3306 * mi/mi-main.c: Likewise.
3307 * mi/mi-parse.c: Likewise.
3308 * microblaze-rom.c: Likewise.
3309 * microblaze-tdep.c: Likewise.
3310 * mingw-hdep.c: Likewise.
3311 * minidebug.c: Likewise.
3312 * minsyms.c: Likewise.
3313 * mips-irix-tdep.c: Likewise.
3314 * mips-linux-tdep.c: Likewise.
3315 * mips-tdep.c: Likewise.
3316 * mips64obsd-tdep.c: Likewise.
3317 * mipsnbsd-tdep.c: Likewise.
3318 * mipsread.c: Likewise.
3319 * mn10300-linux-tdep.c: Likewise.
3320 * mn10300-tdep.c: Likewise.
3321 * monitor.c: Likewise.
3322 * moxie-tdep.c: Likewise.
3323 * mt-tdep.c: Likewise.
3324 * nat/linux-btrace.c: Likewise.
3325 * nat/linux-osdata.c: Likewise.
3326 * nat/linux-procfs.c: Likewise.
3327 * nat/linux-ptrace.c: Likewise.
3328 * nat/linux-waitpid.c: Likewise.
3329 * nbsd-tdep.c: Likewise.
3330 * nios2-linux-tdep.c: Likewise.
3331 * nto-procfs.c: Likewise.
3332 * nto-tdep.c: Likewise.
3333 * objc-lang.c: Likewise.
3334 * objfiles.c: Likewise.
3335 * opencl-lang.c: Likewise.
3336 * osabi.c: Likewise.
3337 * osdata.c: Likewise.
3338 * p-exp.y: Likewise.
3339 * p-lang.c: Likewise.
3340 * p-typeprint.c: Likewise.
3341 * parse.c: Likewise.
3342 * posix-hdep.c: Likewise.
3343 * ppc-linux-nat.c: Likewise.
3344 * ppc-sysv-tdep.c: Likewise.
3345 * ppcfbsd-tdep.c: Likewise.
3346 * ppcnbsd-tdep.c: Likewise.
3347 * ppcobsd-tdep.c: Likewise.
3348 * printcmd.c: Likewise.
3349 * procfs.c: Likewise.
3350 * prologue-value.c: Likewise.
3351 * python/py-auto-load.c: Likewise.
3352 * python/py-gdb-readline.c: Likewise.
3353 * ravenscar-thread.c: Likewise.
3354 * regcache.c: Likewise.
3355 * registry.c: Likewise.
3356 * remote-fileio.c: Likewise.
3357 * remote-m32r-sdi.c: Likewise.
3358 * remote-mips.c: Likewise.
3359 * remote-notif.c: Likewise.
3360 * remote-sim.c: Likewise.
3361 * remote.c: Likewise.
3362 * reverse.c: Likewise.
3363 * rs6000-aix-tdep.c: Likewise.
3364 * ser-base.c: Likewise.
3365 * ser-go32.c: Likewise.
3366 * ser-mingw.c: Likewise.
3367 * ser-pipe.c: Likewise.
3368 * ser-tcp.c: Likewise.
3369 * ser-unix.c: Likewise.
3370 * serial.c: Likewise.
3371 * sh-tdep.c: Likewise.
3372 * sh64-tdep.c: Likewise.
3373 * shnbsd-tdep.c: Likewise.
3375 * sol-thread.c: Likewise.
3376 * solib-dsbt.c: Likewise.
3377 * solib-frv.c: Likewise.
3378 * solib-osf.c: Likewise.
3379 * solib-som.c: Likewise.
3380 * solib-spu.c: Likewise.
3381 * solib-target.c: Likewise.
3382 * solib.c: Likewise.
3383 * somread.c: Likewise.
3384 * source.c: Likewise.
3385 * sparc-nat.c: Likewise.
3386 * sparc-sol2-tdep.c: Likewise.
3387 * sparc-tdep.c: Likewise.
3388 * sparc64-tdep.c: Likewise.
3389 * sparc64fbsd-tdep.c: Likewise.
3390 * sparc64nbsd-tdep.c: Likewise.
3391 * sparcnbsd-tdep.c: Likewise.
3392 * spu-linux-nat.c: Likewise.
3393 * spu-multiarch.c: Likewise.
3394 * spu-tdep.c: Likewise.
3395 * stabsread.c: Likewise.
3396 * stack.c: Likewise.
3397 * std-regs.c: Likewise.
3398 * symfile.c: Likewise.
3399 * symmisc.c: Likewise.
3400 * symtab.c: Likewise.
3401 * target.c: Likewise.
3402 * thread.c: Likewise.
3403 * tilegx-linux-nat.c: Likewise.
3404 * tilegx-tdep.c: Likewise.
3406 * tracepoint.c: Likewise.
3407 * tui/tui-command.c: Likewise.
3408 * tui/tui-data.c: Likewise.
3409 * tui/tui-disasm.c: Likewise.
3410 * tui/tui-file.c: Likewise.
3411 * tui/tui-layout.c: Likewise.
3412 * tui/tui-out.c: Likewise.
3413 * tui/tui-regs.c: Likewise.
3414 * tui/tui-source.c: Likewise.
3415 * tui/tui-stack.c: Likewise.
3416 * tui/tui-win.c: Likewise.
3417 * tui/tui-windata.c: Likewise.
3418 * tui/tui-winsource.c: Likewise.
3419 * typeprint.c: Likewise.
3420 * ui-file.c: Likewise.
3421 * ui-out.c: Likewise.
3422 * user-regs.c: Likewise.
3423 * utils.c: Likewise.
3424 * v850-tdep.c: Likewise.
3425 * valarith.c: Likewise.
3426 * valops.c: Likewise.
3427 * valprint.c: Likewise.
3428 * value.c: Likewise.
3429 * varobj.c: Likewise.
3430 * vax-tdep.c: Likewise.
3431 * vaxnbsd-tdep.c: Likewise.
3432 * vaxobsd-tdep.c: Likewise.
3433 * windows-nat.c: Likewise.
3434 * xcoffread.c: Likewise.
3435 * xml-support.c: Likewise.
3436 * xstormy16-tdep.c: Likewise.
3437 * xtensa-linux-nat.c: Likewise.
3439 2014-08-07 Gary Benson <gbenson@redhat.com>
3441 * common/common-defs.h: Include gdb_assert.h.
3442 * aarch64-tdep.c: Do not include gdb_assert.h.
3443 * addrmap.c: Likewise.
3444 * aix-thread.c: Likewise.
3445 * alpha-linux-tdep.c: Likewise.
3446 * alpha-mdebug-tdep.c: Likewise.
3447 * alphanbsd-tdep.c: Likewise.
3448 * amd64-nat.c: Likewise.
3449 * amd64-tdep.c: Likewise.
3450 * amd64bsd-nat.c: Likewise.
3451 * amd64fbsd-nat.c: Likewise.
3452 * amd64fbsd-tdep.c: Likewise.
3453 * amd64nbsd-nat.c: Likewise.
3454 * amd64nbsd-tdep.c: Likewise.
3455 * amd64obsd-nat.c: Likewise.
3456 * amd64obsd-tdep.c: Likewise.
3457 * arch-utils.c: Likewise.
3458 * arm-tdep.c: Likewise.
3459 * armbsd-tdep.c: Likewise.
3461 * bcache.c: Likewise.
3462 * bfin-tdep.c: Likewise.
3463 * blockframe.c: Likewise.
3464 * breakpoint.c: Likewise.
3465 * bsd-kvm.c: Likewise.
3466 * bsd-uthread.c: Likewise.
3467 * buildsym.c: Likewise.
3468 * c-exp.y: Likewise.
3469 * c-lang.c: Likewise.
3470 * charset.c: Likewise.
3471 * cleanups.c: Likewise.
3472 * cli-out.c: Likewise.
3473 * cli/cli-decode.c: Likewise.
3474 * cli/cli-dump.c: Likewise.
3475 * cli/cli-logging.c: Likewise.
3476 * cli/cli-script.c: Likewise.
3477 * cli/cli-utils.c: Likewise.
3478 * coffread.c: Likewise.
3479 * common/common-utils.c: Likewise.
3480 * common/queue.h: Likewise.
3481 * common/signals.c: Likewise.
3482 * common/vec.h: Likewise.
3483 * complaints.c: Likewise.
3484 * completer.c: Likewise.
3485 * corelow.c: Likewise.
3486 * cp-abi.c: Likewise.
3487 * cp-name-parser.y: Likewise.
3488 * cp-namespace.c: Likewise.
3489 * cp-support.c: Likewise.
3490 * cris-tdep.c: Likewise.
3491 * dbxread.c: Likewise.
3492 * dictionary.c: Likewise.
3493 * doublest.c: Likewise.
3494 * dsrec.c: Likewise.
3495 * dummy-frame.c: Likewise.
3496 * dwarf2-frame-tailcall.c: Likewise.
3497 * dwarf2-frame.c: Likewise.
3498 * dwarf2expr.c: Likewise.
3499 * dwarf2loc.c: Likewise.
3500 * dwarf2read.c: Likewise.
3502 * event-loop.c: Likewise.
3503 * exceptions.c: Likewise.
3504 * expprint.c: Likewise.
3505 * f-valprint.c: Likewise.
3506 * fbsd-nat.c: Likewise.
3507 * findvar.c: Likewise.
3508 * frame-unwind.c: Likewise.
3509 * frame.c: Likewise.
3510 * frv-tdep.c: Likewise.
3511 * gcore.c: Likewise.
3512 * gdb-dlfcn.c: Likewise.
3513 * gdb_bfd.c: Likewise.
3514 * gdbarch.c: Likewise.
3515 * gdbarch.sh: Likewise.
3516 * gdbtypes.c: Likewise.
3517 * gnu-nat.c: Likewise.
3518 * gnu-v3-abi.c: Likewise.
3519 * go-lang.c: Likewise.
3520 * guile/scm-exception.c: Likewise.
3521 * guile/scm-gsmob.c: Likewise.
3522 * guile/scm-lazy-string.c: Likewise.
3523 * guile/scm-math.c: Likewise.
3524 * guile/scm-pretty-print.c: Likewise.
3525 * guile/scm-safe-call.c: Likewise.
3526 * guile/scm-utils.c: Likewise.
3527 * guile/scm-value.c: Likewise.
3528 * h8300-tdep.c: Likewise.
3529 * hppa-hpux-nat.c: Likewise.
3530 * hppa-tdep.c: Likewise.
3531 * hppanbsd-tdep.c: Likewise.
3532 * hppaobsd-tdep.c: Likewise.
3533 * i386-darwin-nat.c: Likewise.
3534 * i386-darwin-tdep.c: Likewise.
3535 * i386-nto-tdep.c: Likewise.
3536 * i386-tdep.c: Likewise.
3537 * i386bsd-nat.c: Likewise.
3538 * i386fbsd-tdep.c: Likewise.
3539 * i386gnu-nat.c: Likewise.
3540 * i386nbsd-tdep.c: Likewise.
3541 * i386obsd-tdep.c: Likewise.
3542 * i387-tdep.c: Likewise.
3543 * ia64-libunwind-tdep.c: Likewise.
3544 * ia64-tdep.c: Likewise.
3545 * inf-ptrace.c: Likewise.
3546 * inf-ttrace.c: Likewise.
3547 * infcall.c: Likewise.
3548 * infcmd.c: Likewise.
3549 * infrun.c: Likewise.
3550 * inline-frame.c: Likewise.
3551 * interps.c: Likewise.
3552 * jv-lang.c: Likewise.
3553 * jv-typeprint.c: Likewise.
3554 * linux-fork.c: Likewise.
3555 * linux-nat.c: Likewise.
3556 * linux-thread-db.c: Likewise.
3557 * m32c-tdep.c: Likewise.
3558 * m32r-linux-nat.c: Likewise.
3559 * m32r-tdep.c: Likewise.
3560 * m68k-tdep.c: Likewise.
3561 * m68kbsd-nat.c: Likewise.
3562 * m68kbsd-tdep.c: Likewise.
3563 * m88k-tdep.c: Likewise.
3564 * machoread.c: Likewise.
3565 * macroexp.c: Likewise.
3566 * macrotab.c: Likewise.
3567 * maint.c: Likewise.
3568 * mdebugread.c: Likewise.
3569 * memory-map.c: Likewise.
3570 * mep-tdep.c: Likewise.
3571 * mi/mi-common.c: Likewise.
3572 * microblaze-tdep.c: Likewise.
3573 * mingw-hdep.c: Likewise.
3574 * mips-linux-nat.c: Likewise.
3575 * mips-linux-tdep.c: Likewise.
3576 * mips-tdep.c: Likewise.
3577 * mips64obsd-tdep.c: Likewise.
3578 * mipsnbsd-tdep.c: Likewise.
3579 * mn10300-linux-tdep.c: Likewise.
3580 * mn10300-tdep.c: Likewise.
3581 * moxie-tdep.c: Likewise.
3582 * mt-tdep.c: Likewise.
3583 * nat/linux-btrace.c: Likewise.
3584 * nat/linux-osdata.c: Likewise.
3585 * nat/linux-ptrace.c: Likewise.
3586 * nat/mips-linux-watch.c: Likewise.
3587 * nios2-linux-tdep.c: Likewise.
3588 * nios2-tdep.c: Likewise.
3589 * objc-lang.c: Likewise.
3590 * objfiles.c: Likewise.
3591 * obsd-nat.c: Likewise.
3592 * opencl-lang.c: Likewise.
3593 * osabi.c: Likewise.
3594 * parse.c: Likewise.
3595 * ppc-linux-nat.c: Likewise.
3596 * ppc-sysv-tdep.c: Likewise.
3597 * ppcfbsd-nat.c: Likewise.
3598 * ppcfbsd-tdep.c: Likewise.
3599 * ppcnbsd-nat.c: Likewise.
3600 * ppcnbsd-tdep.c: Likewise.
3601 * ppcobsd-nat.c: Likewise.
3602 * ppcobsd-tdep.c: Likewise.
3603 * printcmd.c: Likewise.
3604 * procfs.c: Likewise.
3605 * prologue-value.c: Likewise.
3606 * psymtab.c: Likewise.
3607 * python/py-lazy-string.c: Likewise.
3608 * python/py-value.c: Likewise.
3609 * regcache.c: Likewise.
3610 * reggroups.c: Likewise.
3611 * registry.c: Likewise.
3612 * remote-sim.c: Likewise.
3613 * remote.c: Likewise.
3614 * rs6000-aix-tdep.c: Likewise.
3615 * rs6000-tdep.c: Likewise.
3616 * s390-linux-tdep.c: Likewise.
3617 * score-tdep.c: Likewise.
3618 * ser-base.c: Likewise.
3619 * ser-mingw.c: Likewise.
3620 * sh-tdep.c: Likewise.
3621 * sh64-tdep.c: Likewise.
3622 * solib-darwin.c: Likewise.
3623 * solib-spu.c: Likewise.
3624 * solib-svr4.c: Likewise.
3625 * source.c: Likewise.
3626 * sparc-nat.c: Likewise.
3627 * sparc-sol2-tdep.c: Likewise.
3628 * sparc-tdep.c: Likewise.
3629 * sparc64-sol2-tdep.c: Likewise.
3630 * sparc64-tdep.c: Likewise.
3631 * sparc64fbsd-tdep.c: Likewise.
3632 * sparc64nbsd-tdep.c: Likewise.
3633 * sparc64obsd-tdep.c: Likewise.
3634 * sparcnbsd-tdep.c: Likewise.
3635 * sparcobsd-tdep.c: Likewise.
3636 * spu-multiarch.c: Likewise.
3637 * spu-tdep.c: Likewise.
3638 * stabsread.c: Likewise.
3639 * stack.c: Likewise.
3640 * symfile.c: Likewise.
3641 * symtab.c: Likewise.
3642 * target-descriptions.c: Likewise.
3643 * target-memory.c: Likewise.
3644 * target.c: Likewise.
3645 * tic6x-linux-tdep.c: Likewise.
3646 * tic6x-tdep.c: Likewise.
3647 * tilegx-linux-nat.c: Likewise.
3648 * tilegx-tdep.c: Likewise.
3650 * tramp-frame.c: Likewise.
3651 * tui/tui-out.c: Likewise.
3652 * tui/tui-winsource.c: Likewise.
3653 * ui-out.c: Likewise.
3654 * user-regs.c: Likewise.
3655 * utils.c: Likewise.
3656 * v850-tdep.c: Likewise.
3657 * valops.c: Likewise.
3658 * value.c: Likewise.
3659 * varobj.c: Likewise.
3660 * vax-nat.c: Likewise.
3661 * xml-syscall.c: Likewise.
3662 * xml-tdesc.c: Likewise.
3663 * xstormy16-tdep.c: Likewise.
3664 * xtensa-linux-nat.c: Likewise.
3665 * xtensa-tdep.c: Likewise.
3667 2014-08-07 Gary Benson <gbenson@redhat.com>
3669 * common/common-defs.h: Include common-utils.h.
3670 * defs.h: Do not include common-utils.h.
3671 * common/gdb_assert.h: Likewise.
3672 * darwin-nat.h: Likewise.
3673 * nat/linux-btrace.c: Likewise.
3674 * target/waitstatus.h: Likewise.
3676 2014-08-07 Gary Benson <gbenson@redhat.com>
3678 * common/common-defs.h: Include ptid.h.
3679 * defs.h: Do not include ptid.h.
3680 * inferior.h: Likewise.
3681 * infrun.h: Likewise.
3682 * nat/linux-btrace.h: Likewise.
3683 * nat/linux-osdata.h: Likewise.
3684 * target/waitstatus.h: Likewise.
3686 2014-08-07 Gary Benson <gbenson@redhat.com>
3688 * common/common-defs.h: Include gdb_locale.h.
3689 * defs.h: Do not include gdb_locale.h.
3691 2014-08-07 Gary Benson <gbenson@redhat.com>
3693 * common/common-defs.h: Include gdb/signals.h.
3694 * defs.h: Do not include gdb/signals.h.
3696 2014-08-07 Gary Benson <gbenson@redhat.com>
3698 * common/common-defs.h: Include pathmax.h.
3699 * defs.h: Do not include pathmax.h.
3701 2014-08-07 Gary Benson <gbenson@redhat.com>
3703 * common/common-defs.h: Include libiberty.h.
3704 * defs.h: Do not include libiberty.h.
3705 * common/queue.h: Likewise.
3706 * cp-name-parser.y: Likewise.
3707 * mi/mi-cmd-catch.c: Likewise.
3708 * python/python.c: Likewise.
3710 2014-08-07 Gary Benson <gbenson@redhat.com>
3712 * common/common-defs.h: Include ansidecl.h.
3713 * defs.h: Do not include ansidecl.h.
3714 * common/buffer.h: Likewise.
3715 * common/common-utils.h: Likewise.
3717 2014-08-07 Gary Benson <gbenson@redhat.com>
3719 * common/common-defs.h: Include stddef.h.
3720 * defs.h: Do not include stddef.h.
3721 * common/common-utils.h: Likewise.
3722 * amd64fbsd-nat.c: Likewise.
3723 * bcache.c: Likewise.
3724 * charset.c: Likewise.
3725 * common/buffer.h: Likewise.
3726 * common/vec.h: Likewise.
3727 * i386bsd-nat.c: Likewise.
3728 * nat/linux-btrace.h: Likewise.
3729 * ppcfbsd-nat.c: Likewise.
3730 * ppcnbsd-tdep.h: Likewise.
3731 * ppcobsd-nat.c: Likewise.
3732 * ppcobsd-tdep.h: Likewise.
3733 * python/py-gdb-readline.c: Likewise.
3735 2014-08-07 Gary Benson <gbenson@redhat.com>
3737 * common/common-defs.h: Include stdarg.h.
3738 * defs.h: Do not include stdarg.h.
3739 * ada-lang.c: Likewise.
3740 * common/common-utils.h: Likewise.
3741 * guile/scm-string.c: Likewise.
3742 * guile/scm-utils.c: Likewise.
3743 * m32c-tdep.c: Likewise.
3745 2014-08-07 Gary Benson <gbenson@redhat.com>
3747 * common/common-defs.h: Include stdlib.h.
3748 * defs.h: Do not include stdlib.h.
3749 * addrmap.c: Likewise.
3750 * bcache.c: Likewise.
3751 * common/buffer.c: Likewise.
3752 * common/common-utils.c: Likewise.
3753 * cp-name-parser.y: Likewise.
3754 * go32-nat.c: Likewise.
3755 * mn10300-linux-tdep.c: Likewise.
3756 * nat/linux-osdata.c: Likewise.
3757 * tui/tui.c: Likewise.
3758 * windows-nat.c: Likewise.
3760 2014-08-07 Gary Benson <gbenson@redhat.com>
3762 * common/common-defs.h: Include stdio.h.
3763 * defs.h: Do not include stdio.h.
3764 * ada-lang.c: Likewise.
3765 * common/buffer.c: Likewise.
3766 * common/common-utils.c: Likewise.
3767 * cp-name-parser.y: Likewise.
3768 * gnu-nat.c: Likewise.
3769 * go32-nat.c: Likewise.
3770 * i386gnu-nat.c: Likewise.
3771 * proc-api.c: Likewise.
3772 * proc-events.c: Likewise.
3773 * proc-flags.c: Likewise.
3774 * proc-why.c: Likewise.
3775 * python/python-internal.h: Likewise.
3776 * target-memory.c: Likewise.
3777 * tui/tui-io.c: Likewise.
3778 * tui/tui.c: Likewise.
3780 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3782 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3783 (scan_dyntag_auxv): Same.
3785 2014-08-06 Yao Qi <yao@codesourcery.com>
3787 * amd64-linux-nat.c: Remove duplicated include
3789 * i386-linux-nat.c: Likewise.
3791 2014-08-06 Yao Qi <yao@codesourcery.com>
3793 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3794 operand" with "Special opcode" in comments.
3796 2014-08-05 Gary Benson <gbenson@redhat.com>
3798 * interps.c (initialize_interps): Remove prototype.
3799 (interpreter_initialized): Remove static global.
3800 (interp_add): Do not call initialize_interps.
3801 (initialize_interps): Remove function.
3803 2014-08-05 Gary Benson <gbenson@redhat.com>
3805 * utils.c (vwarning): Remove spurious va_end.
3807 2014-08-05 Alan Modra <amodra@gmail.com>
3809 * charset.c (convert_between_encodings): Cast result of obstack_base.
3810 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3811 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3812 (read_unwind_info): Use size_t for some locals.
3813 * jit.c (finalize_symtab): Likewise.
3814 * utils.c (hashtab_obstack_allocate): Likewise.
3815 * symmisc.c (print_objfile_statistics): Update format strings.
3817 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3819 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3820 (Changes in GDB 7.8): ... here.
3822 2014-08-04 Tom Tromey <tromey@redhat.com>
3824 * target.c (set_targetdebug): New function.
3825 (initialize_targets): Pass set_targetdebug when creating "set
3828 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3830 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3831 if detecting a variable-sized field that is not the last field.
3832 Fix struct type length computation.
3834 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3836 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3839 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3841 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3842 Remove "+ 8" offset in computation of CHAIN_VMA.
3844 2014-07-31 Doug Evans <dje@google.com>
3846 * inflow.c (child_terminal_inferior): Add comment.
3847 (child_terminal_ours_for_output): Add comment.
3848 (child_terminal_ours): Add comment.
3849 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3850 (linux_nat_terminal_ours): Add comment.
3852 2014-07-31 Gary Benson <gbenson@redhat.com>
3854 * common/btrace-common.h: Do not include defs.h or server.h.
3855 * nat/mips-linux-watch.h: Likewise.
3856 * gdb-dlfcn.h: Do not include defs.h.
3857 * tracefile.h: Likewise.
3859 2014-07-30 Roland McGrath <mcgrathr@google.com>
3861 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3863 2014-07-30 Tom Tromey <tromey@redhat.com>
3865 * bsd-kvm.c (bsd_kvm_open): Constify.
3866 * corelow.c (core_open): Constify.
3867 * ctf.c (ctf_open): Constify.
3868 * dbug-rom.c (dbug_open): Constify.
3869 * exec.c (exec_open): Constify.
3870 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3871 * microblaze-rom.c (picobug_open): Constify.
3872 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3874 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3875 * record-btrace.c (record_btrace_open): Constify.
3876 * record-full.c (record_full_core_open_1, record_full_open_1)
3877 (record_full_open): Constify.
3878 * remote-m32r-sdi.c (m32r_open): Constify.
3879 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3880 (rockhopper_open, lsi_open): Constify.
3881 * remote-sim.c (gdbsim_open): Constify.
3882 * remote.c (remote_open, extended_remote_open, remote_open_1):
3884 * target.h (struct target_ops) <to_open>: Make "arg" const.
3885 * tracefile-tfile.c (tfile_open): Constify.
3887 2014-07-30 Tom Tromey <tromey@redhat.com>
3889 * breakpoint.c (map_breakpoint_numbers): Update.
3890 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3891 (get_number_const): New function.
3892 (get_number): Rewrite using get_number_const.
3893 (init_number_or_range): Make "string" const.
3894 (number_is_in_list): Make "list" const.
3895 * cli/cli-utils.h (get_number_const): Declare.
3896 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3897 (init_number_or_range, number_is_in_list): Update.
3898 * printcmd.c (map_display_numbers): Update.
3899 * value.c (value_from_history_ref): Constify.
3900 * value.h (value_from_history_ref): Update.
3902 2014-07-30 Tom Tromey <tromey@redhat.com>
3904 * corefile.c (hook_type, call_extra_exec_file_hooks)
3905 (specify_exec_file_hook): Constify.
3906 * exec.c (exec_file_attach): Make "filename" const.
3907 * gdbcore.h (deprecated_exec_file_display_hook)
3908 (specify_exec_file_hook, exec_file_attach): Constify.
3909 * main.c (captured_main): Use catch_command_errors_const.
3911 2014-07-30 Tom Tromey <tromey@redhat.com>
3913 * target.c (open_target): New function.
3914 (add_target_with_completer, add_deprecated_target_alias): Use
3915 set_cmd_sfunc, set_cmd_context.
3916 (debug_to_open): Remove.
3917 (setup_target_debug): Update.
3919 2014-07-30 Yao Qi <yao@codesourcery.com>
3921 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3923 * parse.c (exp_iterate): Update comments.
3925 2014-07-30 Gary Benson <gbenson@redhat.com>
3927 * common/common-defs.h: New file.
3928 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3929 * defs.h: Include common-defs.h.
3930 Do not include config.h or build-gnulib/config.h.
3932 2014-07-30 Gary Benson <gbenson@redhat.com>
3934 * common/common-utils.h: Do not include config.h.
3935 * nat/linux-btrace.h: Likewise.
3937 2014-07-30 Gary Benson <gbenson@redhat.com>
3939 * btrace.c: Include defs.h.
3940 * common/ptid.c: Include defs.h or server.h as appropriate.
3941 * nat/mips-linux-watch.c: Likewise.
3943 2014-07-29 Tom Tromey <tromey@redhat.com>
3945 * target.c (target_is_pushed): Simplify.
3947 2014-07-29 Joel Brobecker <brobecker@adacore.com>
3951 2014-07-29 Yao Qi <yao@codesourcery.com>
3954 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3956 2014-07-28 Doug Evans <xdje42@gmail.com>
3959 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3960 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3963 2014-07-28 Will Newton <will.newton@linaro.org>
3965 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3966 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3967 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3968 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3969 (THUMB2_EABI_SYSCALL): Likewise.
3970 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3972 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3973 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3975 2014-07-27 Doug Evans <xdje42@gmail.com>
3977 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3979 2014-07-27 Doug Evans <xdje42@gmail.com>
3981 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3983 2014-07-26 Ludovic Courtès <ludo@gnu.org>
3984 Doug Evans <xdje42@gmail.com>
3987 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3988 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3989 * configure.ac: Try to use guild to compile an scm file, if it fails
3990 then disable guile support.
3991 * configure: Regenerate.
3992 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3994 (GUILE_COMPILED_FILES): New variable.
3995 (GUILE_FILES) Update.
3996 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3997 (stamp-guile): Compile scm files.
3998 * guile/guile.c (boot_guile_support): New function.
3999 (standard_throw_args_p): New function.
4000 (print_standard_throw_error, print_throw_error): New functions.
4001 (handle_boot_error): New function.
4002 (initialize_scheme_side): Rewrite to call boot_guile_support.
4003 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4004 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4006 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4007 Doug Evans <xdje42@gmail.com>
4010 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4011 * guile/lib/gdb/support.scm: New file.
4012 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4013 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4015 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4017 (%assert-type): Ditto, and renamed to assert-type.
4018 (%exception-print-style): Delete.
4020 2014-07-26 Doug Evans <xdje42@gmail.com>
4023 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4024 * configure: Regenerate.
4025 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4027 (PYTHON_FILES): New variable.
4028 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4029 (GUILE_FILES): New variable.
4030 (stamp-python, install-python, uninstall-python): Handle empty
4032 (stamp-guile, install-guile, uninstall-guile): Ditto.
4034 2014-07-26 Doug Evans <xdje42@gmail.com>
4037 * guile/lib/gdb.scm (pretty-printers): Export.
4038 (set-pretty-printers!): Export.
4039 * guile/lib/gdb/printing.scm (gdb module): Update.
4040 (prepend-pretty-printer!, append-pretty-printer!): Update.
4041 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4042 (pretty_printer_list_var): Delete.
4043 (pretty_printer_list): New static global.
4044 (gdbscm_pretty_printers): New function.
4045 (gdbscm_set_pretty_printers_x): New function.
4046 (ppscm_find_pretty_printer_from_gdb): Update.
4047 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4048 (gdbscm_initialize_pretty_printers): Update.
4050 2014-07-26 Doug Evans <xdje42@gmail.com>
4053 * configure.ac: Add check for header gc/gc.h.
4054 Add check for function setenv.
4055 * configure: Regenerate.
4056 * config.in: Regenerate.
4057 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4059 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4061 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4062 variation in gdbarch matching.
4064 2014-07-25 Tom Tromey <tromey@redhat.com>
4066 * exec.c (using_exec_ops): Remove.
4067 (exec_close_1): Update. Remove extraneous block, reindent.
4068 (add_target_sections): Use target_is_pushed.
4070 2014-07-25 Pedro Alves <palves@redhat.com>
4072 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4073 * monitor.c (monitor_create_inferior): Likewise.
4074 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4075 * remote-sim.c (gdbsim_create_inferior): Likewise.
4076 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4077 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4078 * windows-nat.c (do_initial_windows_stuff): Likewise.
4080 2014-07-25 Pedro Alves <palves@redhat.com>
4082 * NEWS: Mention signal passing and "signal" command changes.
4083 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4085 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4087 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4088 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4089 (jump_command): Adjust clear_proceed_status call.
4090 (signal_command): Warn if other thread that are resumed have
4091 signals that will be delivered. Adjust clear_proceed_status call.
4092 (until_next_command, finish_command)
4093 (proceed_after_attach_callback, attach_command_post_wait)
4094 (attach_command): Adjust clear_proceed_status call.
4095 * infrun.c (proceed_after_vfork_done): Likewise.
4096 (proceed_after_attach_callback): Adjust comment.
4097 (clear_proceed_status_thread): Clear stop_signal if not in pass
4099 (clear_proceed_status_callback): Delete.
4100 (clear_proceed_status): New 'step' parameter. Only clear the
4101 proceed status of threads the command being prepared is about to
4103 (proceed): If passed in an explicit signal, override stop_signal
4104 with it. Don't pass the last stop signal to the thread we're
4106 (init_wait_for_inferior): Adjust clear_proceed_status call.
4107 (switch_back_to_stepped_thread): Clear the signal if it should not
4109 * infrun.h (clear_proceed_status): New 'step' parameter.
4110 (user_visible_resume_ptid): Add comment.
4111 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4112 signal is in pass state.
4113 * remote.c (append_pending_thread_resumptions): Likewise.
4114 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4116 2014-07-25 Tom Tromey <tromey@redhat.com>
4118 * target.h (target_stopped_data_address)
4119 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4122 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4124 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4126 (avr_pointer_to_address): Likewise.
4128 2014-07-24 Tom Tromey <tromey@redhat.com>
4130 * monitor.c (compile_pattern): Update.
4131 * target.h (struct target_ops) <to_shortname, to_longname,
4134 2014-07-24 Tom Tromey <tromey@redhat.com>
4136 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4137 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4138 (add_info_alias, add_com): Make "doc" const.
4139 (print_doc_line): Make "str" const.
4140 (delete_cmd): Update.
4141 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4142 (print_doc_line): Update.
4143 * cli/cli-script.c (document_command): Update.
4144 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4145 (add_com, add_info, add_info_alias): Update.
4146 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4147 * python/py-cmd.c (cmdpy_destroyer): Update.
4149 2014-07-24 Tom Tromey <tromey@redhat.com>
4151 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4152 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4153 (help_cmd_list): Constify.
4154 (lookup_cmd): Update.
4155 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4157 (help_cmd_list, apropos_cmd): Update.
4158 * cli/cli-script.c (show_user): Update.
4159 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4160 * cli/cli-setshow.h (cmd_show_list): Update.
4161 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4162 (cmd_show_list): Update.
4163 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4164 * python/py-cmd.c (cmdpy_destroyer): Update.
4166 2014-07-24 Tom Tromey <tromey@redhat.com>
4168 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4169 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4171 * command.h (deprecate_cmd): Update.
4172 * maint.c (maintenance_do_deprecate): Add casts.
4174 2014-07-24 Tom Tromey <tromey@redhat.com>
4176 * cli/cli-decode.c (help_cmd): Make parameter "const".
4177 * cli/cli-decode.h (help_cmd): Update.
4179 2014-07-24 Tom Tromey <tromey@redhat.com>
4181 * stack.c (up_silently_base, down_silently_base): Make argument
4184 2014-07-24 Tom Tromey <tromey@redhat.com>
4186 * solib.c (solib_add): Make "pattern" const.
4187 * solib.h (solib_add): Update.
4189 2014-07-24 Tom Tromey <tromey@redhat.com>
4191 * remote.c (remote_serial_open, print_packet, putpkt)
4192 (putpkt_binary): Constify.
4193 * remote.h (putpkt): Update.
4195 2014-07-24 Tom Tromey <tromey@redhat.com>
4197 * monitor.c (monitor_open): Make "args" const.
4198 * monitor.h (monitor_open): Update.
4200 2014-07-24 Tom Tromey <tromey@redhat.com>
4202 * maint.c (match_bfd_flags): Make "string" const.
4203 (print_bfd_section_info): Remove casts.
4204 (print_objfile_section_info): Make "string" const.
4206 2014-07-24 Tom Tromey <tromey@redhat.com>
4208 * inf-child.c (inf_child_open_target): Make "arg" const.
4209 * inf-child.h (inf_child_open_target): Update.
4211 2014-07-24 Tom Tromey <tromey@redhat.com>
4213 * environ.c (unset_in_environ): Make "var" const.
4214 * environ.h (unset_in_environ): Update.
4216 2014-07-24 Tom Tromey <tromey@redhat.com>
4218 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4220 (scan_filename_with_cleanup): Likewise.
4221 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4222 Make arguments const.
4223 (restore_command): Update.
4225 2014-07-24 Pedro Alves <palves@redhat.com>
4227 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4229 2014-07-24 Tom Tromey <tromey@redhat.com>
4230 Gary Benson <gbenson@redhat.com>
4232 * nat/linux-ptrace.c (additional_flags): New global.
4233 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4234 additional_flags; don't check GDBSERVER.
4235 (linux_ptrace_set_additional_flags): New function.
4236 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4238 * linux-nat.c (_initialize_linux_nat): Call
4239 linux_ptrace_set_additional_flags.
4241 2014-07-24 Tom Tromey <tromey@redhat.com>
4243 * make-target-delegates (munge_type, write_debugmethod): New
4245 (debug_names): New global.
4246 ($TARGET_DEBUG_PRINTER): New global.
4247 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4249 Write debug methods. Generate init_debug_target.
4250 * target-debug.h: New file.
4251 * target-delegates.c: Rebuild.
4252 * target.c: Include target-debug.h.
4253 (debug_target): Hoist definition.
4254 (target_kill, target_get_section_table, target_memory_map)
4255 (target_flash_erase, target_flash_done, target_detach)
4256 (target_disconnect, target_wait, target_resume)
4257 (target_pass_signals, target_program_signals, target_follow_fork)
4258 (target_mourn_inferior, target_search_memory)
4259 (target_thread_address_space, target_close)
4260 (target_find_new_threads, target_core_of_thread)
4261 (target_verify_memory, target_insert_mask_watchpoint)
4262 (target_remove_mask_watchpoint): Remove targetdebug code.
4263 (debug_to_post_attach, debug_to_prepare_to_store)
4264 (debug_to_files_info, debug_to_insert_breakpoint)
4265 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4266 (debug_to_region_ok_for_hw_watchpoint)
4267 (debug_to_can_accel_watchpoint_condition)
4268 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4269 (debug_to_watchpoint_addr_within_range)
4270 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4271 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4272 (debug_to_terminal_init, debug_to_terminal_inferior)
4273 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4274 (debug_to_terminal_save_ours, debug_to_terminal_info)
4275 (debug_to_load, debug_to_post_startup_inferior)
4276 (debug_to_insert_fork_catchpoint)
4277 (debug_to_remove_fork_catchpoint)
4278 (debug_to_insert_vfork_catchpoint)
4279 (debug_to_remove_vfork_catchpoint)
4280 (debug_to_insert_exec_catchpoint)
4281 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4282 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4283 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4284 (setup_target_debug): Call init_debug_target.
4285 * target.h (TARGET_DEBUG_PRINTER): New macro.
4286 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4287 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4289 2014-07-24 Gary Benson <gbenson@redhat.com>
4291 * exceptions.h (throw_vfatal): Renamed to...
4292 (throw_vquit): New declaration.
4293 (throw_quit): Likewise.
4294 * exceptions.c (throw_vfatal): Renamed to...
4295 (throw_vquit): New function.
4296 (throw_quit): Likewise.
4297 (throw_error): Call throw_verror rather than throw_it.
4298 * utils.h (vfatal): Removed.
4300 * utils.c (vfatal): Removed.
4302 (internal_verror): Replaced call to fatal with call to throw_quit.
4303 (quit): Replaced calls to fatal with calls to throw_quit.
4305 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4307 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4310 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4312 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4313 less than zero in conditional expression.
4315 2014-07-23 Tom Tromey <tromey@redhat.com>
4317 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4318 ($INTRO_PART): Don't match whitespace.
4319 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4321 ($METHOD): Add $METHOD_TRAILER.
4323 (scan_target_h): New sub.
4324 Change main loop not to collect state.
4325 * target-delegates.c: Rebuild.
4327 2014-07-23 Gary Benson <gbenson@redhat.com>
4329 * cp-support.c (gdb_demangle): Fix build on systems without
4332 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4334 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4335 for reference entry value target data value.
4337 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4339 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4340 value_available_contents_eq.
4342 2014-07-22 Pedro Alves <palves@redhat.com>
4344 * value.c (allocate_optimized_out_value): Don't mark value as
4347 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4349 * MAINTAINERS (Write After Approval): Update my email address.
4351 2014-07-20 Doug Evans <dje@google.com>
4354 * remote.c (putpkt_binary): Add text to error message.
4356 2014-07-20 Yao Qi <yao@codesourcery.com>
4358 * eval.c: Remove "Chill" from comments.
4359 * gdbtypes.h: Likewise.
4360 * symtab.h: Likewise.
4362 2014-07-20 Yao Qi <yao@codesourcery.com>
4364 * std-operator.def: Update comments to TERNOP_SLICE.
4366 2014-07-20 Yao Qi <yao@codesourcery.com>
4368 * std-operator.def: Remove BINOP_RANGE.
4369 * breakpoint.c (watchpoint_exp_is_const): Update.
4370 * expprint.c (dump_subexp_body_standard): Likewise.
4371 * eval.c (init_array_element): Remove dead code.
4372 (evaluate_subexp_standard): Likewise.
4374 2014-07-20 Yao Qi <yao@codesourcery.com>
4376 * std-operator.def: Remove BINOP_IN.
4377 * breakpoint.c (watchpoint_exp_is_const): Update.
4378 * eval.c (evaluate_subexp_standard): Likewise.
4379 * expprint.c (dump_subexp_body_standard): Likewise.
4381 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4383 * microblaze-tdep.c (microblaze_register_names): Add
4384 the rshr and rslr register names.
4385 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4386 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4387 Use of tdesc_numbered_register. Use of
4388 microblaze_register_g_packet_guesses. Use of
4389 tdesc_use_registers. Use of set_gdbarch_register_type.
4390 (microblaze_register_g_packet_guesses): New.
4391 * microblaze-tdep.h (microblaze_reg_num): Add
4392 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4393 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4394 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4395 * features/microblaze-core.xml: New file.
4396 * features/microblaze-stack-protect.xml: New file.
4397 * features/microblaze-with-stack-protect.c: New file.
4398 * features/microblaze-with-stack-protect.xml: New file.
4399 * features/microblaze.xml: New file.
4400 * features/microblaze.c: New file.
4401 * features/Makefile (microblaze-with-stack-protect): Add
4402 microblaze-with-stack-protect microblaze and microblaze-expedite.
4403 * regformats/microblaze-with-stack-protect.dat: New file.
4404 * regformats/microblaze.dat: New file.
4405 * doc/gdb.texinfo (MicroBlaze Features): Added.
4407 2014-07-18 Tom Tromey <tromey@redhat.com>
4409 * exec.c (exec_ops): Now static.
4410 * exec.h (exec_ops): Don't declare.
4412 2014-07-18 Tom Tromey <tromey@redhat.com>
4414 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4415 to find_target_beneath.
4416 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4417 find_target_beneath.
4418 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4420 2014-07-18 Tom Tromey <tromey@redhat.com>
4423 * utils.c (quit): Use target_supports_terminal_ours.
4424 * target.h (target_supports_terminal_ours): Declare.
4425 * target.c (target_supports_delete_record): Don't check
4426 to_delete_record against NULL.
4427 (target_supports_terminal_ours): New function.
4429 2014-07-18 Tom Tromey <tromey@redhat.com>
4432 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4433 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4434 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4435 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4436 * windows-nat.c (windows_xfer_partial): Always delegate.
4437 * record-btrace.c (record_btrace_xfer_partial): Simplify
4439 (record_btrace_fetch_registers, record_btrace_store_registers)
4440 (record_btrace_prepare_to_store, record_btrace_resume)
4441 (record_btrace_wait, record_btrace_find_new_threads)
4442 (record_btrace_thread_alive): Likewise.
4443 * procfs.c (procfs_xfer_partial): Always delegate.
4444 * corelow.c (core_xfer_partial): Always delegate.
4445 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4447 2014-07-18 Tom Tromey <tromey@redhat.com>
4449 * exec.c (exec_make_note_section): Move earlier.
4451 2014-07-17 Doug Evans <dje@google.com>
4454 * maint.c (count_symtabs_and_blocks): Handle NULL
4455 current_program_space.
4456 (report_command_stats): Check global enabled flag in addition to
4457 recorded enabled flag.
4458 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4460 2014-07-16 Pedro Alves <palves@redhat.com>
4462 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4464 2014-07-16 Tom Tromey <tromey@redhat.com>
4466 * target.h (struct target_ops) <to_delete_record>: Reformat
4469 2014-07-16 Tom Tromey <tromey@redhat.com>
4471 * target-delegates.c: Rebuild.
4473 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4475 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4476 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4477 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4478 (avr_pointer_to_address): Likewise.
4479 (avr_address_class_type_flags): New function.
4480 (avr_address_class_type_flags_to_name): Likewise.
4481 (avr_address_class_name_to_type_flags): Likewise.
4482 (avr_gdbarch_init): Set address_class_type_flags,
4483 address_class_type_flags_to_name and
4484 address_class_name_to_type_flags.
4486 2014-07-15 Pedro Alves <palves@redhat.com>
4488 * linux-nat.c (kill_callback): Save errno and work with saved
4491 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4493 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4495 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4497 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4498 breakpoint support correctly.
4500 2014-07-14 Pedro Alves <palves@redhat.com>
4502 * utils.c (prompt_for_continue): Call target_terminal_ours.
4504 2014-07-14 Pedro Alves <palves@redhat.com>
4506 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4507 catch_errors. Don't re-enable stdin or notify observers where,
4509 (fetch_inferior_event_wrapper): Delete.
4511 2014-07-14 Pedro Alves <palves@redhat.com>
4514 * top.c: Include "inf-loop.h".
4515 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4517 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4519 (gdb_readline_wrapper): Store whether the target is async, and
4522 2014-07-14 Pedro Alves <palves@redhat.com>
4525 * top.c (gdb_readline_wrapper_line): Tweak comment.
4526 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4527 the input handler callback.
4529 2014-07-14 Pedro Alves <palves@redhat.com>
4532 * main.c: Include event-top.h.
4533 (handle_command_errors): New function.
4534 (catch_command_errors, catch_command_errors_const): Use it.
4536 2014-07-14 Pedro Alves <palves@redhat.com>
4538 * exceptions.c (catch_command_errors, catch_command_errors_const):
4540 * exceptions.h (catch_command_errors_ftype)
4541 (catch_command_errors_const_ftype): Moved to main.c.
4542 (catch_command_errors, catch_command_errors_const): Delete
4544 * main.c (catch_command_errors_ftype)
4545 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4546 (catch_command_errors, catch_command_errors_const)): Moved here
4547 from exceptions.c and make static.
4549 2014-07-14 Pedro Alves <palves@redhat.com>
4551 * exceptions.c (print_any_exception): Delete.
4552 (catch_exceptions_with_msg): Use exception_print instead of
4553 print_any_exception.
4554 (catch_errors): Use exception_fprintf instead of
4555 print_any_exception.
4556 (catch_command_errors, catch_command_errors_const): Use
4557 exception_print instead of print_any_exception.
4559 2014-07-14 Pedro Alves <palves@redhat.com>
4561 * infcall.c (run_inferior_call): Set 'sync_execution' while
4562 running the inferior call.
4564 2014-07-14 Pedro Alves <palves@redhat.com>
4566 * value.c (value_contents_equal): Delete function.
4567 * value.h (value_contents_equal): Delete declaration.
4569 2014-07-14 Tom Tromey <tromey@redhat.com>
4572 * gdbtypes.c (is_dynamic_type_internal): New function, from
4574 (is_dynamic_type): Rewrite.
4575 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4576 (resolve_dynamic_struct): Likewise.
4577 (resolve_dynamic_type_internal): New function, from
4578 resolve_dynamic_type.
4579 (resolve_dynamic_type): Rewrite.
4581 2014-07-14 Tom Tromey <tromey@redhat.com>
4583 * target.c (target_require_runnable): Also check record_stratum.
4586 2014-07-11 Yao Qi <yao@codesourcery.com>
4588 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4589 thumb_instruction_restores_sp return true.
4591 2014-07-11 Yao Qi <yao@codesourcery.com>
4593 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4594 (thumb_in_function_epilogue_p): Call
4595 thumb_instruction_restores_sp.
4597 2014-07-11 Yao Qi <yao@codesourcery.com>
4599 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4601 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4603 2014-07-11 Gary Benson <gbenson@redhat.com>
4605 * amd64-linux-nat.c (gdbcore.h): Remove include.
4606 (regset.h): Likewise.
4607 (nat/linux-btrace.h): Likewise.
4608 (btrace.h): Likewise.
4609 (gdb_assert.h): Likewise.
4610 (string.h): Likewise.
4611 (sys/uio.h): Likewise.
4612 (sys/debugreg.h): Likewise.
4613 (sys/syscall.h): Likewise.
4614 (sys/procfs.h): Likewise.
4615 (sys/user.h): Likewise.
4616 (asm/ptrace.h): Likewise.
4617 (i386-nat.h): Likewise.
4618 * i386-linux-nat.c (i386-nat.h): Likewise.
4619 (regset.h): Likewise.
4620 (target.h): Likewise.
4621 (linux-nat.h): Likewise.
4622 (nat/linux-btrace.h): Likewise.
4623 (btrace.h): Likewise.
4624 (gdb_assert.h): Likewise.
4625 (string.h): Likewise.
4626 (sys/uio.h): Likewise.
4627 (sys/user.h): Likewise.
4628 (sys/procfs.h): Likewise.
4629 (sys/reg.h): Likewise.
4630 (sys/debugreg.h): Likewise.
4631 (ORIG_EAX): Remove definition.
4633 2014-07-11 Gary Benson <gbenson@redhat.com>
4635 * i386-linux-nat.h: New file.
4636 * x86-linux-nat.h: Likewise.
4637 * x86-linux-nat.c: Likewise.
4638 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4639 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4640 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4641 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4642 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4643 (PTRACE_SETREGSET): Likewise.
4644 (arch_lwp_info): Now in x86-linux-nat.c.
4645 (have_ptrace_getregset): Now in x86-linux-nat.h.
4646 (x86_linux_dr_get): Now in x86-linux-nat.c.
4647 (x86_linux_dr_set): Likewise.
4648 (x86_linux_dr_get_addr): Likewise.
4649 (x86_linux_dr_get_control): Likewise.
4650 (x86_linux_dr_get_status): Likewise.
4651 (update_debug_registers_callback): Likewise.
4652 (x86_linux_dr_set_control): Likewise.
4653 (x86_linux_dr_set_addr): Likewise.
4654 (x86_linux_prepare_to_resume): Likewise.
4655 (x86_linux_new_thread): Likewise.
4656 (x86_linux_new_fork): Likewise.
4657 (x86_linux_get_thread_area): Likewise.
4658 (super_post_startup_inferior): Likewise.
4659 (x86_linux_child_post_startup_inferior): Likewise.
4660 (AMD64_LINUX_USER64_CS): Likewise.
4661 (AMD64_LINUX_X32_DS): Likewise.
4662 (x86_linux_read_description): Likewise.
4663 (x86_linux_enable_btrace): Likewise.
4664 (x86_linux_disable_btrace): Likewise.
4665 (x86_linux_teardown_btrace): Likewise.
4666 (x86_linux_read_btrace): Likewise.
4667 (x86_linux_create_target): Likewise.
4668 (x86_linux_add_target): Likewise.
4669 * i386-linux-nat.c (x86-linux-nat.h): New include.
4670 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4671 (PTRACE_SETREGSET): Likewise.
4672 (arch_lwp_info): Now in x86-linux-nat.c.
4673 (have_ptrace_getregset): Now in x86-linux-nat.h.
4674 (x86_linux_dr_get): Now in x86-linux-nat.c.
4675 (x86_linux_dr_set): Likewise.
4676 (x86_linux_dr_get_addr): Likewise.
4677 (x86_linux_dr_get_control): Likewise.
4678 (x86_linux_dr_get_status): Likewise.
4679 (update_debug_registers_callback): Likewise.
4680 (x86_linux_dr_set_control): Likewise.
4681 (x86_linux_dr_set_addr): Likewise.
4682 (x86_linux_prepare_to_resume): Likewise.
4683 (x86_linux_new_thread): Likewise.
4684 (x86_linux_new_fork): Likewise.
4685 (x86_linux_get_thread_area): Likewise.
4686 (super_post_startup_inferior): Likewise.
4687 (x86_linux_child_post_startup_inferior): Likewise.
4688 (AMD64_LINUX_USER64_CS): Likewise.
4689 (AMD64_LINUX_X32_DS): Likewise.
4690 (x86_linux_read_description): Likewise.
4691 (x86_linux_enable_btrace): Likewise.
4692 (x86_linux_disable_btrace): Likewise.
4693 (x86_linux_teardown_btrace): Likewise.
4694 (x86_linux_read_btrace): Likewise.
4695 (x86_linux_create_target): Likewise.
4696 (x86_linux_add_target): Likewise.
4698 2014-07-11 Gary Benson <gbenson@redhat.com>
4700 * amd64-linux-nat.c: Comment and whitespace changes.
4701 * i386-linux-nat.c: Comment and whitespace changes.
4703 2014-07-11 Gary Benson <gbenson@redhat.com>
4705 * amd64-linux-nat.c (x86_linux_create_target): New function.
4706 (x86_linux_add_target): Likewise.
4707 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4708 * i386-linux-nat.c (x86_linux_create_target): New function.
4709 (x86_linux_add_target): Likewise.
4710 (_initialize_i386_linux_nat): Delegate to the above new functions.
4712 2014-07-11 Gary Benson <gbenson@redhat.com>
4714 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4715 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4716 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4717 (ps_get_thread_area): Delegate to the above.
4719 2014-07-11 Gary Benson <gbenson@redhat.com>
4721 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4722 x86_linux_read_description. All uses updated. amd64-specific
4723 code conditionalized. Conditionalized i386-specific code added.
4724 Redundant cast removed.
4725 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4726 x86_linux_read_description. All uses updated. i386-specific
4727 code conditionalized. Conditionalized amd64-specific code added.
4728 One sizeof replaced with the actual type it is describing.
4730 2014-07-11 Gary Benson <gbenson@redhat.com>
4732 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4733 x86_linux_dr_get. All uses updated.
4734 (amd64_linux_dr_set): Renamed to
4735 x86_linux_dr_set. All uses updated.
4736 (amd64_linux_dr_get_addr): Renamed to
4737 x86_linux_dr_get_addr. All uses updated.
4738 (amd64_linux_dr_get_control): Renamed to
4739 x86_linux_dr_get_control. All uses updated.
4740 (amd64_linux_dr_get_status): Renamed to
4741 x86_linux_dr_get_status. All uses updated.
4742 (amd64_linux_dr_set_control): Renamed to
4743 x86_linux_dr_set_control. All uses updated.
4744 (amd64_linux_dr_set_addr): Renamed to
4745 x86_linux_dr_set_addr. All uses updated.
4746 (amd64_linux_prepare_to_resume): Renamed to
4747 x86_linux_prepare_to_resume. All uses updated.
4748 (amd64_linux_new_thread): Renamed to
4749 x86_linux_new_thread. All uses updated.
4750 (amd64_linux_new_fork): Renamed to
4751 x86_linux_new_fork. All uses updated.
4752 (amd64_linux_child_post_startup_inferior): Renamed to
4753 x86_linux_child_post_startup_inferior. All uses updated.
4754 (amd64_linux_enable_btrace): Renamed to
4755 x86_linux_enable_btrace. All uses updated.
4756 (amd64_linux_disable_btrace): Renamed to
4757 x86_linux_disable_btrace. All uses updated.
4758 (amd64_linux_teardown_btrace): Renamed to
4759 x86_linux_teardown_btrace. All uses updated.
4760 (amd64_linux_read_btrace): Renamed to
4761 x86_linux_read_btrace. All uses updated.
4762 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4763 x86_linux_dr_get. All uses updated.
4764 (i386_linux_dr_set): Renamed to
4765 x86_linux_dr_set. All uses updated.
4766 (i386_linux_dr_get_addr): Renamed to
4767 x86_linux_dr_get_addr. All uses updated.
4768 (i386_linux_dr_get_control): Renamed to
4769 x86_linux_dr_get_control. All uses updated.
4770 (i386_linux_dr_get_status): Renamed to
4771 x86_linux_dr_get_status. All uses updated.
4772 (i386_linux_dr_set_control): Renamed to
4773 x86_linux_dr_set_control. All uses updated.
4774 (i386_linux_dr_set_addr): Renamed to
4775 x86_linux_dr_set_addr. All uses updated.
4776 (i386_linux_prepare_to_resume): Renamed to
4777 x86_linux_prepare_to_resume. All uses updated.
4778 (i386_linux_new_thread): Renamed to
4779 x86_linux_new_thread. All uses updated.
4780 (i386_linux_new_fork): Renamed to
4781 x86_linux_new_fork. All uses updated.
4782 (i386_linux_child_post_startup_inferior): Renamed to
4783 x86_linux_child_post_startup_inferior. All uses updated.
4784 (i386_linux_enable_btrace): Renamed to
4785 x86_linux_enable_btrace. All uses updated.
4786 (i386_linux_disable_btrace): Renamed to
4787 x86_linux_disable_btrace. All uses updated.
4788 (i386_linux_teardown_btrace): Renamed to
4789 x86_linux_teardown_btrace. All uses updated.
4790 (i386_linux_read_btrace): Renamed to
4791 x86_linux_read_btrace. All uses updated.
4793 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4795 * remote.c (extended_remote_post_attach): New function.
4796 (init_extended_remote_ops): Install it as to_post_attach method.
4798 2014-07-09 Pedro Alves <palves@redhat.com>
4800 * infcmd.c (attach_command_post_wait): Don't call
4801 target_terminal_inferior here.
4802 (attach_command): Call it here instead.
4804 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4806 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4808 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4809 from varobj.c, with additional checks.
4810 (c_varobj_ops): Fill in is_path_expr_parent field.
4811 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4812 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4814 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4816 (varobj_default_is_path_expr_parent): New function.
4817 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4818 (varobj_default_is_path_expr_parent): Declare new function.
4820 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4822 * infcmd.c (finish_backward): Turn internal error into normal error.
4824 2014-07-07 Pedro Alves <palves@redhat.com>
4827 * remote.c (async_handle_remote_sigint)
4828 (async_handle_remote_sigint_twice): Call
4829 gdb_call_async_signal_handler instead of
4830 mark_async_signal_handler.
4832 2014-07-07 Tom Tromey <tromey@redhat.com>
4834 * target-delegates.c: Rebuild.
4835 * target.c (target_info_record): Remove.
4836 * record.c (info_record_command): Unconditionally call
4838 * target.h (struct target_ops) <to_info_record>: Use
4839 TARGET_DEFAULT_IGNORE.
4840 (target_info_record): Remove.
4842 2014-07-07 Tom Tromey <tromey@redhat.com>
4844 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4845 TARGET_DEFAULT_NORETURN.
4846 * target.c (generic_tls_error): New function.
4847 (target_translate_tls_address): Don't search target stack.
4848 * target-delegates.c: Rebuild.
4849 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4851 * linux-thread-db.c (thread_db_get_thread_local_address):
4852 Unconditionally call beneath target.
4854 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4856 * cli/cli-logging.c (pop_output_files): Assign targerr to
4859 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4861 * MAINTAINERS (Write After Approval): Update my email address.
4863 2014-07-02 Gary Benson <gbenson@redhat.com>
4865 * proc-service.c (ps_xfer_memory): Update comment.
4866 (ps_pstop): Remove unused function.
4867 (ps_pcontinue): Likewise.
4868 (ps_lstop): Likewise.
4869 (ps_lcontinue): Likewise.
4870 (ps_lgetxregsize): Likewise.
4871 (ps_lgetxregs): Likewise.
4872 (ps_lsetxregs): Likewise.
4873 (ps_plog): Likewise.
4874 (ps_ptread): Likewise.
4875 (ps_ptwrite): Likewise.
4877 2014-07-01 Mark Wielaard <mjw@redhat.com>
4879 * dwarf2read.c (add_array_cv_type): New function.
4880 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4881 (read_tag_volatile_type): Likewise.
4883 2014-07-01 Tom Tromey <tromey@redhat.com>
4885 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4886 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4887 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4888 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4889 * command.h (cmd_cfunc_ftype): Move earlier.
4890 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4891 (add_com, add_info): Use cmd_cfunc_ftype.
4893 2014-06-30 Tom Tromey <tromey@redhat.com>
4895 * symtab.c (operator_chars): Make parameters and return type
4897 (file_matches): Make "files" const.
4898 (struct search_symbols_data) <files>: Now const.
4899 (search_symbols): Make "regexp" and "files" parameters const.
4901 (symtab_symbol_info): Remove cast.
4902 (rbreak_command): Update.
4903 * symtab.h (search_symbols): Update.
4905 2014-06-27 Yao Qi <yao@codesourcery.com>
4907 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4908 Change parameter type to 'struct thread_info *'. Caller
4910 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4912 * dummy-frame.c (struct dummy_frame_id): New.
4913 (dummy_frame_id_eq): New function.
4914 (struct dummy_frame) <id>: Change its type to 'struct
4916 (dummy_frame_push): Add parameter ptid and save it in
4918 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4920 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4922 (lookup_dummy_frame): Change parameter type to 'struct
4923 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4924 instead of frame_id_eq.
4925 (dummy_frame_pop): Add parameter ptid. Callers updated.
4926 Update comments. Compose dummy_frame_id and pass it to
4928 (dummy_frame_discard): Add parameter ptid.
4929 (dummy_frame_sniffer): Compose dummy_frame_id and call
4930 dummy_frame_id_eq instead of frame_id_eq.
4931 (fprint_dummy_frames): Print ptid.
4932 * dummy-frame.h: Remove comments.
4933 (dummy_frame_push): Add ptid in declaration.
4934 (dummy_frame_pop, dummy_frame_discard): Likewise.
4936 2014-06-26 Tom Tromey <tromey@redhat.com>
4938 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4939 * command.h (error_no_arg): Update.
4941 2014-06-26 Tom Tromey <tromey@redhat.com>
4943 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4944 (do_show_command): Make "arg" const.
4945 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4947 2014-06-26 Tom Tromey <tromey@redhat.com>
4949 * record-full.c (record_full_get_bookmark): Make "args" const.
4950 (record_full_goto_bookmark): Make "raw_bookmark" const.
4951 * record.c (record_goto): New function.
4952 (cmd_record_goto): Use it. Now static.
4953 * record.h (record_goto): Declare.
4954 (cmd_record_goto): Remove declaration.
4955 * target-delegates.c: Rebuild.
4956 * target.h (struct target_ops) <to_get_bookmark,
4957 to_goto_bookmark>: Make parameter const.
4959 2014-06-26 Tom Tromey <tromey@redhat.com>
4961 * defs.h (generic_load): Update.
4962 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4963 * monitor.c (monitor_load): Make "args" const.
4964 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4965 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4967 (mips_load): Make "file" const.
4968 * remote-sim.c (gdbsim_load): Make "args" const.
4969 * remote.c (remote_load): Make "name" const.
4970 * symfile.c (generic_load): Make "args" const.
4971 * target-delegates.c: Rebuild.
4972 * target.c (target_load): Make "arg" const.
4973 (debug_to_load): Make "args" const.
4974 * target.h (struct target_ops) <to_load>: Make parameter const.
4975 (target_load): Update.
4977 2014-06-26 Tom Tromey <tromey@redhat.com>
4980 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4981 (dwarf2_physname, read_partial_die)
4982 (guess_partial_die_structure_name, fixup_partial_die)
4983 (guess_full_die_structure_name, anonymous_struct_prefix)
4984 (dwarf2_name): Use per-BFD obstack.
4986 2014-06-26 Yao Qi <yao@codesourcery.com>
4988 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4989 dummyframe and this_id into inner block below.
4991 2014-06-26 Yao Qi <yao@codesourcery.com>
4993 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4994 with "signal_pass[0]" in the initialization of signal_pass.
4996 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4998 * record-btrace.c (record_btrace_generating_corefile)
4999 (record_btrace_prepare_to_generate_core)
5000 (record_btrace_done_generating_core): New.
5001 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5002 (record_btrace_store_registers, record_btrace_prepare_to_store):
5003 Forward request when generating a core file.
5004 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5005 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5006 to_done_generating_core.
5008 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5010 * target.h (target_ops) <to_prepare_to_generate_core>
5011 <to_done_generating_core>: New.
5012 (target_prepare_to_generate_core, target_done_generating_core): New.
5013 * target.c (target_prepare_to_generate_core)
5014 (target_done_generating_core): New.
5015 * target-delegates.c: Regenerate.
5016 * gcore.c: (write_gcore_file): Rename to ...
5017 (write_gcore_file_1): ...this.
5018 (write_gcore_file): Call target_prepare_to_generate_core
5019 and target_done_generating_core.
5021 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5023 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5024 * gcore.c (write_gcore_file): Free memory returned from
5025 make_corefile_notes.
5026 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5027 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5029 2014-06-24 Yao Qi <yao@codesourcery.com>
5031 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5032 (arm_linux_init_abi): Set skip_trampoline_code with
5033 gdbarch_skip_trampoline_code instead of
5034 find_solib_trampoline_target.
5036 2014-06-24 Yao Qi <yao@codesourcery.com>
5038 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5039 arm_skip_bx_reg returns non-zero.
5041 2014-06-24 Yao Qi <yao@codesourcery.com>
5043 * arm-tdep.c (arm_skip_bx_reg): New function.
5044 (arm_skip_stub): Call arm_skip_bx_reg.
5046 2014-06-23 Don Breazeal <donb@codesourcery.com>
5048 * MAINTAINERS: Add myself as write-after-approval maintainer.
5050 2014-06-23 Pedro Alves <palves@redhat.com>
5052 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5053 DR_CONTROL before setting DR0..DR3.
5054 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5055 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5056 bits of DR_CONTROL related to the debug register slot being
5057 disabled. If all slots are vacant, clear local slowdown as well,
5058 and assert DR_CONTROL is 0.
5060 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5062 * python/lib/gdb/command/xmethods.py
5063 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5064 current progspace only if the string "progspace" matches LOCUS_RE.
5066 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5068 Fix --with-system-readline with readline-6.3 patch 5.
5069 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5070 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5073 2014-06-20 Tom Tromey <tromey@redhat.com>
5075 * dwarf2read.c (dw2_get_real_path): Use correct type in
5077 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5079 2014-06-20 Gary Benson <gbenson@redhat.com>
5081 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5082 * common/glibc_thread_db.h: Likewise.
5083 * common/i386-cpuid.h: Likewise.
5084 * common/i386-gcc-cpuid.h: Likewise.
5085 * common/linux-btrace.h: Likewise.
5086 * common/linux-osdata.h: Likewise.
5087 * common/linux-procfs.h: Likewise.
5088 * common/linux-ptrace.h: Likewise.
5089 * common/mips-linux-watch.h: Likewise.
5090 * common/linux-btrace.c: Moved to nat.
5091 * common/linux-osdata.c: Likewise.
5092 * common/linux-procfs.c: Likewise.
5093 * common/linux-ptrace.c: Likewise.
5094 * common/mips-linux-watch.c: Likewise.
5095 * nat/gdb_thread_db.h: Moved from common.
5096 * nat/glibc_thread_db.h: Likewise.
5097 * nat/i386-cpuid.h: Likewise.
5098 * nat/i386-gcc-cpuid.h: Likewise.
5099 * nat/linux-btrace.c: Likewise.
5100 * nat/linux-btrace.h: Likewise.
5101 * nat/linux-osdata.c: Likewise.
5102 * nat/linux-osdata.h: Likewise.
5103 * nat/linux-procfs.c: Likewise.
5104 * nat/linux-procfs.h: Likewise.
5105 * nat/linux-ptrace.c: Likewise.
5106 * nat/linux-ptrace.h: Likewise.
5107 * nat/mips-linux-watch.c: Likewise.
5108 * nat/mips-linux-watch.h: Likewise.
5109 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5110 (object file files): Reordered.
5111 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5112 of glibc_thread_db.h.
5114 2014-06-20 Gary Benson <gbenson@redhat.com>
5116 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5117 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5118 (i386_dr_low): Likewise.
5119 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5120 (i386_dr_low_set_addr): Likewise.
5121 (i386_dr_low_get_addr): Likewise.
5122 (i386_dr_low_can_set_control): Likewise.
5123 (i386_dr_low_set_control): Likewise.
5124 (i386_dr_low_get_control): Likewise.
5125 (i386_dr_low_get_status): Likewise.
5126 (i386_get_debug_register_length): Likewise.
5127 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5128 (i386_dr_low): Likewise.
5129 * nat/i386-dregs.c (i386-low.h): Remove include.
5130 (i386-nat.h): Likewise.
5131 (nat/i386-dregs.h): New include.
5132 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5133 (i386_dr_low_set_addr): Likewise.
5134 (i386_dr_low_get_addr): Likewise.
5135 (i386_dr_low_can_set_control): Likewise.
5136 (i386_dr_low_set_control): Likewise.
5137 (i386_dr_low_get_control): Likewise.
5138 (i386_dr_low_get_status): Likewise.
5139 (i386_get_debug_register_length): Likewise.
5140 (debug_hw_points): Likewise.
5142 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5144 * Makefile.in (SFILES): Add d-exp.y.
5145 (YYFILES): Add d-exp.c.
5146 (YYOBJ): Add d-exp.o.
5147 (local-maintainer-clean): Delete d-exp.c.
5148 * d-exp.y: New file.
5149 * d-lang.h (d_parse): New declaration.
5150 (d_error): New declaration.
5151 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5152 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5153 PREC_ORDER operators.
5154 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5156 2014-06-19 Yao Qi <yao@codesourcery.com>
5158 * gdbthread.h (any_running): Remove the declaration.
5159 * thread.c (any_running): Remove.
5161 2014-06-19 Yao Qi <yao@codesourcery.com>
5163 * gdbthread.h (struct thread_info) <state>: Change its type to
5164 'enum thread_state'. Update comments.
5166 2014-06-19 Pedro Alves <palves@redhat.com>
5168 * gdbthread.h (ALL_THREADS): Delete.
5169 (ALL_NON_EXITED_THREADS): New macro.
5170 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5171 instead of ALL_THREADS.
5172 * infrun.c (find_thread_needs_step_over)
5173 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5174 instead of ALL_THREADS.
5175 * record-btrace.c (record_btrace_open)
5176 (record_btrace_stop_recording, record_btrace_close)
5177 (record_btrace_is_replaying, record_btrace_resume)
5178 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5179 * remote.c (append_pending_thread_resumptions): Likewise.
5180 * thread.c (thread_apply_all_command): Likewise.
5182 2014-06-19 Gary Benson <gbenson@redhat.com>
5184 * i386-nat.c (i386_stopped_by_watchpoint):
5185 Use i386_dr_stopped_by_watchpoint.
5186 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5187 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5189 2014-06-19 Gary Benson <gbenson@redhat.com>
5191 * nat/i386-dregs.c: New file.
5192 * Makefile.in (i386-dregs.o): New rule.
5193 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5194 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5195 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5196 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5197 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5198 * config/i386/go32.mh (NATDEPFILES): Likewise.
5199 * config/i386/linux.mh (NATDEPFILES): Likewise.
5200 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5201 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5202 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5203 * i386-nat.h (debug_hw_points): New declaration.
5204 * i386-nat.c (breakpoint.h): Remove include.
5205 (command.h): Likewise.
5206 (target.h): Likewise.
5207 (gdb_assert.h): Likewise.
5208 (debug_hw_points): Made nonstatic.
5209 (debug_printf): Now in i386-dregs.c.
5210 (TARGET_HAS_DR_LEN_8): Likewise.
5211 (DR_CONTROL_SHIFT): Likewise.
5212 (DR_CONTROL_SIZE): Likewise.
5213 (DR_RW_EXECUTE): Likewise.
5214 (DR_RW_WRITE): Likewise.
5215 (DR_RW_READ): Likewise.
5216 (DR_RW_IORW): Likewise.
5217 (DR_LEN_1): Likewise.
5218 (DR_LEN_2): Likewise.
5219 (DR_LEN_4): Likewise.
5220 (DR_LEN_8): Likewise.
5221 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5222 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5223 (DR_ENABLE_SIZE): Likewise.
5224 (DR_LOCAL_SLOWDOWN): Likewise.
5225 (DR_GLOBAL_SLOWDOWN): Likewise.
5226 (DR_CONTROL_RESERVED): Likewise.
5227 (I386_DR_CONTROL_MASK): Likewise.
5228 (I386_DR_VACANT): Likewise.
5229 (I386_DR_LOCAL_ENABLE): Likewise.
5230 (I386_DR_GLOBAL_ENABLE): Likewise.
5231 (I386_DR_DISABLE): Likewise.
5232 (I386_DR_SET_RW_LEN): Likewise.
5233 (I386_DR_GET_RW_LEN): Likewise.
5234 (I386_DR_WATCH_HIT): Likewise.
5235 (i386_wp_op_t): Likewise.
5236 (i386_show_dr): Likewise.
5237 (i386_length_and_rw_bits): Likewise.
5238 (i386_insert_aligned_watchpoint): Likewise.
5239 (i386_remove_aligned_watchpoint): Likewise.
5240 (i386_handle_nonaligned_watchpoint): Likewise.
5241 (i386_update_inferior_debug_regs): Likewise.
5242 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5243 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5244 (i386_region_ok_for_watchpoint):
5245 Use i386_dr_region_ok_for_watchpoint.
5246 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5248 2014-06-19 Gary Benson <gbenson@redhat.com>
5250 * i386-nat.c (i386_insert_hw_breakpoint): Use
5251 i386_insert_watchpoint.
5252 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5254 2014-06-19 Gary Benson <gbenson@redhat.com>
5256 * i386-nat.c (i386_dr_show): Renamed to
5257 i386_show_dr and made static. All uses updated.
5258 (i386_dr_length_and_rw_bits): Renamed to
5259 i386_length_and_rw_bits and made static.
5261 (i386_dr_insert_aligned_watchpoint): Renamed to
5262 i386_insert_aligned_watchpoint and made static.
5264 (i386_dr_remove_aligned_watchpoint): Renamed to
5265 i386_remove_aligned_watchpoint and made static.
5267 (i386_dr_update_inferior_debug_regs): Renamed to
5268 i386_update_inferior_debug_regs and made static.
5270 * nat/i386-dregs.h (i386_dr_show): Removed.
5271 (i386_dr_length_and_rw_bits): Likewise.
5272 (i386_dr_insert_aligned_watchpoint): Likewise.
5273 (i386_dr_remove_aligned_watchpoint): Likewise.
5274 (i386_dr_update_inferior_debug_regs): Likewise.
5276 2014-06-19 Gary Benson <gbenson@redhat.com>
5278 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5279 * configure: Regenerate.
5280 * config.in: Likewise.
5281 * main.c (signal.h): New include.
5282 (setup_alternate_signal_stack): New function.
5283 (captured_main): Call the above.
5284 * cp-support.c (signal.h): New include.
5285 (catch_demangler_crashes): New flag.
5286 (SIGJMP_BUF): New define.
5287 (SIGSETJMP): Likewise.
5288 (SIGLONGJMP): Likewise.
5289 (gdb_demangle_jmp_buf): New static global.
5290 (gdb_demangle_attempt_core_dump): Likewise.
5291 (gdb_demangle_signal_handler): New function.
5292 (gdb_demangle): If catch_demangler_crashes is set, install the
5293 above signal handler before calling bfd_demangle, and restore
5294 the original signal handler afterwards. Display the offending
5295 symbol and call demangler_warning the first time a segmentation
5297 (_initialize_cp_support): New maint set/show command.
5299 2014-06-19 Gary Benson <gbenson@redhat.com>
5301 * utils.h (resource_limit_kind): New enum.
5302 (can_dump_core): New declaration.
5303 (warn_cant_dump_core): Likewise.
5304 (dump_core): Likewise.
5305 * utils.c (dump_core): Made nonstatic. Added new
5306 parameter "limit_kind".
5307 (can_dump_core): Made nonstatic. Moved printing code to...
5308 (warn_cant_dump_core): New function.
5309 (can_dump_core_warn): Likewise.
5310 (internal_vproblem): Replace calls to can_dump_core with
5311 calls to can_dump_core_warn. Supply new argument to each.
5313 2014-06-19 Gary Benson <gbenson@redhat.com>
5315 * utils.h (demangler_vwarning): New declaration.
5316 (demangler_warning): Likewise.
5317 * utils.c (struct internal_problem)
5318 <user_settable_should_quit>: New field.
5319 <user_settable_should_dump_core>: Likewise
5320 (internal_error_problem): Add values for above new fields.
5321 (internal_warning_problem): Likewise.
5322 (demangler_warning_problem): New static global.
5323 (demangler_vwarning): New function.
5324 (demangler_warning): Likewise.
5325 (add_internal_problem_command): Selectively add commands.
5326 (_initialize_utils): New internal problem command.
5327 * maint.c (maintenance_demangler_warning): New function.
5328 (_initialize_maint_cmds): New command.
5330 2014-06-18 Tom Tromey <tromey@redhat.com>
5332 * f-valprint.c (info_common_command_for_block): Update.
5333 * symtab.h (struct general_symbol_info) <common_block>: Now
5336 2014-06-18 Tom Tromey <tromey@redhat.com>
5338 * symtab.h (struct symtab) <blockvector>: Now const.
5339 * ada-lang.c (ada_add_global_exceptions): Update.
5340 * buildsym.c (augment_type_symtab): Update.
5341 * dwarf2read.c (dw2_lookup_symbol): Update.
5342 * jit.c (finalize_symtab): Update.
5343 * jv-lang.c (add_class_symtab_symbol): Update.
5344 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5346 * objfiles.c (objfile_relocate1): Update.
5347 * psymtab.c (lookup_symbol_aux_psymtabs)
5348 (maintenance_check_psymtabs): Update.
5349 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5351 * spu-tdep.c (spu_catch_start): Update.
5352 * symmisc.c (dump_symtab_1): Update.
5353 * symtab.c (lookup_global_symbol_from_objfile)
5354 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5355 (basic_lookup_transparent_type_quick)
5356 (basic_lookup_transparent_type, find_pc_sect_symtab)
5357 (find_pc_sect_line, search_symbols): Update.
5358 * block.c (find_block_in_blockvector): Make "bl" const.
5359 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5361 (blockvector_contains_pc): Make "bv" const.
5362 (block_for_pc_sect): Update.
5363 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5364 (blockvector_contains_pc): Update.
5365 * breakpoint.c (resolve_sal_pc): Update.
5366 * inline-frame.c (block_starting_point_at): Update.
5368 2014-06-18 Tom Tromey <tromey@redhat.com>
5370 * completer.c (complete_line): Make "line_buffer" const.
5371 * completer.h (complete_line): Update.
5373 2014-06-18 Tom Tromey <tromey@redhat.com>
5375 * symtab.c (add_macro_name): Remove unneeded cast.
5377 2014-06-18 Tom Tromey <tromey@redhat.com>
5379 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5380 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5382 2014-06-18 Tom Tromey <tromey@redhat.com>
5384 * probe.c (info_probes_for_ops): Make "arg" const.
5385 * probe.h (info_probes_for_ops): Update.
5387 2014-06-18 Tom Tromey <tromey@redhat.com>
5389 * varobj.c (varobj_create): Update.
5390 * valops.c (value_of_this): Update.
5391 * tracepoint.c (add_local_symbols, scope_info): Update.
5392 * symtab.h (struct general_symbol_info) <block>: Now const.
5393 * symtab.c (skip_prologue_sal)
5394 (default_make_symbol_completion_list_break_on)
5395 (skip_prologue_using_sal): Update.
5396 * stack.h (iterate_over_block_locals)
5397 (iterate_over_block_local_vars): Update.
5398 * stack.c (print_frame_args): Update.
5399 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5401 (get_selected_block): Make return type const.
5402 * python/py-frame.c (frapy_block): Update.
5403 * python/py-block.c (gdbpy_block_for_pc): Update.
5404 * p-exp.y (%union) <bval>: Now const.
5405 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5406 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5407 * m2-exp.y (%union) <bval>: Now const.
5408 * linespec.c (get_current_search_block): Make return type const.
5409 (create_sals_line_offset, find_label_symbols): Update.
5410 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5412 (block_starting_point_at): Make "block" const.
5413 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5414 (check_exception_resume): Update.
5415 * guile/scm-frame.c (gdbscm_frame_block): Update.
5416 * guile/scm-block.c (gdbscm_lookup_block): Update.
5417 * frame.h (get_frame_block): Update.
5418 (get_selected_block): Make return type const.
5419 * frame.c (frame_id_inner): Update.
5420 * f-valprint.c (info_common_command_for_block)
5421 (info_common_command): Update.
5422 * dwarf2loc.c (dwarf2_find_location_expression)
5423 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5424 (locexpr_describe_location_piece): Update.
5425 * c-exp.y (%union) <bval>: Now const.
5426 * breakpoint.c (resolve_sal_pc): Update.
5427 * blockframe.c (get_frame_block):Make return type const.
5428 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5429 (block_innermost_frame): Update.
5430 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5431 (block_for_pc, block_for_pc_sect): Update.
5432 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5434 (block_for_pc_sect, block_for_pc): Make return type const.
5435 * ax-gdb.c (gen_expr): Update.
5436 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5437 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5438 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5439 (ada_read_var_value): Update.
5440 * ada-exp.y (struct name_info) <block>: Now const.
5442 (block_lookup): Constify.
5444 2014-06-18 Gary Benson <gbenson@redhat.com>
5446 * nat/i386-dregs.h: New file.
5447 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5448 * i386-nat.h (i386-dregs.h): New include.
5449 (DR_FIRSTADDR): Now in i386-dregs.h.
5450 (DR_LASTADDR): Likewise.
5451 (DR_NADDR): Likewise.
5452 (DR_STATUS): Likewise.
5453 (DR_CONTROL): Likewise.
5454 (i386_debug_reg_state): Likewise.
5455 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5457 2014-06-18 Don Breazeal <donb@codesourcery.com>
5459 * breakpoint.c (set_longjmp_breakpoint): Call
5460 momentary_breakpoint_from_master with additional argument.
5461 (set_longjmp_breakpoint_for_call_dummy): Call
5462 momentary_breakpoint_from_master with additional argument.
5463 (set_std_terminate_breakpoint): Call
5464 momentary_breakpoint_from_master with additional argument.
5465 (momentary_breakpoint_from_master): Add argument to function
5466 definition and use it to initialize structure member flag.
5467 (clone_momentary_breakpoint): Call
5468 momentary_breakpoint_from_master with additional argument.
5469 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5470 member flags set in momentary_breakpoint_from_master.
5472 2014-06-18 Gary Benson <gbenson@redhat.com>
5474 * i386-nat.c (i386_show_dr): Renamed to
5475 i386_dr_show and made nonstatic. All uses updated.
5476 (i386_length_and_rw_bits): Renamed to
5477 i386_dr_length_and_rw_bits and made nonstatic.
5479 (i386_insert_aligned_watchpoint): Renamed to
5480 i386_dr_insert_aligned_watchpoint and made nonstatic.
5482 (i386_remove_aligned_watchpoint): Renamed to
5483 i386_dr_remove_aligned_watchpoint and made nonstatic.
5485 (i386_update_inferior_debug_regs): Renamed to
5486 i386_dr_update_inferior_debug_regs and made nonstatic.
5489 2014-06-18 Gary Benson <gbenson@redhat.com>
5491 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5492 (i386_dr_low_can_set_control): Likewise.
5493 (i386_dr_low_set_addr): Likewise.
5494 (i386_dr_low_set_control): Likewise.
5495 (i386_dr_low_get_addr): Likewise.
5496 (i386_dr_low_get_status): Likewise.
5497 (i386_dr_low_get_control): Likewise.
5498 (i386_insert_aligned_watchpoint): Use new macros.
5499 (i386_update_inferior_debug_regs): Likewise.
5500 (i386_stopped_data_address): Likewise.
5502 2014-06-18 Gary Benson <gbenson@redhat.com>
5504 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5505 New parameter. All uses updated.
5507 2014-06-18 Gary Benson <gbenson@redhat.com>
5509 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5512 2014-06-18 Gary Benson <gbenson@redhat.com>
5514 * i386-nat.c (debug_printf): New macro.
5515 (i386_get_debug_register_length): Likewise.
5516 (TARGET_HAS_DR_LEN_8): Use above macro.
5517 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5518 and printf_unfiltered. Use phex to format values.
5520 2014-06-18 Gary Benson <gbenson@redhat.com>
5522 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5525 2014-06-18 Gary Benson <gbenson@redhat.com>
5527 * i386-nat.c: Comment changes.
5529 2014-06-18 Gary Benson <gbenson@redhat.com>
5531 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5533 2014-06-18 Gary Benson <gbenson@redhat.com>
5535 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5536 (i386_insert_aligned_watchpoint): Likewise.
5537 (i386_remove_aligned_watchpoint): Likewise.
5538 (i386_handle_nonaligned_watchpoint): Likewise.
5540 2014-06-18 Gary Benson <gbenson@redhat.com>
5542 * i386-nat.c: Whitespace changes.
5544 2014-06-17 Samuel Bronson <naesten@gmail.com>
5546 * MAINTAINERS: Update Roland McGrath's email address.
5547 Thanks to Sergio Durigan Junior for pointing out that he left
5548 Red Hat a while ago, and giving me a current address.
5550 2014-06-17 Tom Tromey <tromey@redhat.com>
5552 * utils.h (savestring): Remove declaration.
5554 2014-06-17 Tom Tromey <tromey@redhat.com>
5556 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5558 2014-06-16 Keith Seitz <keiths@redhat.com>
5561 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5562 to update the varobj if inferior_ptid is null_ptid.
5564 2014-06-16 Tom Tromey <tromey@redhat.com>
5566 * target.h (struct target_ops) <to_info_proc>: Make parameter
5568 (target_info_proc): Update.
5569 * target.c (target_info_proc): Make "args" const.
5570 * procfs.c (procfs_info_proc): Update.
5571 * linux-tdep.c (linux_info_proc): Update.
5572 (linux_core_info_proc_mappings): Make "args" const.
5573 (linux_core_info_proc): Update.
5574 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5575 * gdbarch.c: Rebuild.
5576 * gdbarch.h: Rebuild.
5577 * corelow.c (core_info_proc): Update.
5579 2014-06-16 Tom Tromey <tromey@redhat.com>
5581 * target.h (struct target_ops) <to_disconnect>: Make parameter
5583 (target_disconnect): Update.
5584 * target.c (target_disconnect): Make "args" const.
5585 * target-delegates.c: Rebuild.
5586 * remote.c (remote_disconnect): Update.
5587 * record.h (record_disconnect): Update.
5588 * record.c (record_disconnect): Update.
5589 * inf-child.c (inf_child_disconnect): Update.
5591 2014-06-16 Tom Tromey <tromey@redhat.com>
5593 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5594 * target.c (debug_to_rcmd, default_rcmd): Update.
5595 * target-delegates.c: Rebuild.
5596 * remote.c (remote_rcmd): Update.
5597 * monitor.c (monitor_rcmd): Update.
5599 2014-06-16 Pedro Alves <palves@redhat.com>
5601 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5602 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5603 have OBJF_SHARED set.
5604 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5605 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5606 instead of OBJF_USERLOADED.
5607 * objfiles.h (OBJF_SHARED): Update comment.
5608 (userloaded_objfile_contains_address_p): Rename to ...
5609 (shared_objfile_contains_address_p): ... this, and update
5611 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5613 (remove_symbol_file_command): Skip objfiles that don't have
5616 2014-06-16 Tom Tromey <tromey@redhat.com>
5618 * minsyms.h (prim_record_minimal_symbol)
5619 (prim_record_minimal_symbol_and_info): Update comments.
5621 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5623 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5624 or --without-guile, according to how GDB was built.
5626 2014-06-13 Tom Tromey <tromey@redhat.com>
5628 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5630 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5632 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5634 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5635 help_list.Pass all_commands, not -1, to help_list.
5636 * cli/cli-dump.c (dump_command, append_command)
5637 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5638 (binary_dump_command, binary_append_command): Pass all_commands,
5639 not -1, to help_list.
5640 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5642 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5644 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5646 * top.c (set_history): Pass all_commands, not -1, to help_list.
5647 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5648 all_commands, not -1, to help_list.
5649 * symfile.c (overlay_command): Pass all_commands, not -1, to
5651 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5653 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5655 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5657 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5658 not -1, to help_list.
5659 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5660 not -1, to help_list.
5661 * maint.c (maintenance_command, maintenance_info_command)
5662 (maintenance_print_command, maintenance_set_cmd): Pass
5663 all_commands, not -1, to help_list.
5664 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5666 * language.c (set_check): Pass all_commands, not -1, to help_list.
5667 * infcmd.c (unset_command): Pass all_commands, not -1, to
5669 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5671 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5673 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5675 * breakpoint.c (save_command): Pass all_commands, not -1, to
5677 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5678 all_commands, not -1, to help_list.
5680 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5682 * regcache.c (struct register_to_invalidate): New structure.
5683 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5685 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5687 2014-06-12 Yao Qi <yao@codesourcery.com>
5689 * varobj.c (varobj_get_num_children): Call
5690 varobj_is_dynamic_p.
5691 (varobj_list_children): Likewise.
5692 (varobj_update): Likewise. Update comments.
5694 2014-06-12 Yao Qi <yao@codesourcery.com>
5696 * varobj.c (varobj_pretty_printed_p): Rename to ...
5697 (varobj_is_dynamic_p): ... this. New function.
5698 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5699 (varobj_is_dynamic_p): Declare.
5700 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5701 (mi_print_value_p, varobj_update_one): Likewise.
5703 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5704 Yao Qi <yao@codesourcery.com>
5706 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5707 (varobj_get_iterator): Wrap up code for pretty-printer by
5708 "#if HAVE_PYTHON" and "#endif".
5709 (update_dynamic_varobj_children): Likewise.
5711 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5712 Yao Qi <yao@codesourcery.com>
5714 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5715 gdb_python_initialized is false. Move some code from varobj.c.
5716 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5717 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5718 (struct varobj_item): Moved to varobj-iter.h".
5719 (varobj_clear_saved_item): New function.
5720 (update_dynamic_varobj_children): Move python-related code to
5722 (free_variable): Call varobj_clear_saved_item and
5725 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5726 Yao Qi <yao@codesourcery.com>
5728 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5729 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5730 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5731 (py-varobj.o): New rule.
5732 * python/py-varobj.c: New file.
5733 * python/python-internal.h (py_varobj_get_iterator): Declare.
5734 * varobj-iter.h: New file.
5735 * varobj.c: Include "varobj-iter.h"
5736 (struct varobj) <child_iter>: Change its type from "PyObject *"
5737 to "struct varobj_iter *".
5738 <saved_item>: Likewise.
5739 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5740 [HAVE_PYTHON] (varobj_get_iterator): New function.
5741 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5742 python-specific code to python/py-varobj.c.
5743 (install_visualizer): Call varobj_iter_delete instead of
5745 * varobj.h (varobj_ensure_python_env): Declare.
5747 2014-06-12 Yao Qi <yao@codesourcery.com>
5749 * varobj.c (struct varobj_item): New structure.
5750 (create_child_with_value): Update declaration.
5751 (varobj_add_child): Replace arguments 'name' and 'value' with
5752 'item'. All callers updated.
5753 (install_dynamic_child): Likewise.
5754 (update_dynamic_varobj_children): Likewise.
5755 (varobj_add_child): Likewise.
5756 (create_child_with_value): Likewise.
5758 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5760 * NEWS: Create a new section for the next release branch.
5761 Rename the section of the current branch, now that it has
5764 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5766 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5767 * version.in: Bump version to 7.8.50.DATE-cvs.
5769 2014-06-11 Pedro Alves <palves@redhat.com>
5772 * ser-mingw.c (net_windows_socket_check_pending): New function.
5773 (net_windows_select_thread): Ignore spurious wakeups. Use
5774 net_windows_socket_check_pending.
5775 (net_windows_wait_handle): Check for pending events with
5776 ioctlsocket, through net_windows_socket_check_pending, instead of
5777 checking the socket's event.
5779 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5781 * python/python-internal.h (gdb_PyObject_GetAttrString)
5782 (gdb_PyObject_HasAttrString): New inline function definitions.
5783 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5784 char * of the second argument to PyObject_GetAttrString.
5786 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5788 * serial.c (serial_write): Fix index of character to be printed
5789 in call to serial_logchar when serial debug traces are enabled.
5791 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5793 * gdbtypes (resolve_dynamic_range): Add function description.
5795 2014-06-09 Pedro Alves <palves@redhat.com>
5797 * linux-nat.c (linux_child_follow_fork): Initialize status with
5798 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5799 inner block. Only pass the signal to PTRACE_DETACH if in pass
5802 2014-06-09 Gary Benson <gbenson@redhat.com>
5804 * common/signals.c (gdb_signal_from_host): Reorder to separate
5805 the always-available ANSI-standard signals from the signals that
5807 (do_gdb_signal_to_host): Likewise.
5808 * proc-events.c (signal_table): Likewise.
5810 2014-06-08 Hui Zhu <hui@codesourcery.com>
5812 * common/linux-ptrace.c (linux_disable_event_reporting): New
5814 * common/linux-ptrace.h (linux_disable_event_reporting): New
5816 * linux-nat.c (linux_child_follow_fork): Do a single step before
5819 2014-06-07 Keith Seitz <keiths@redhat.com>
5823 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5824 from symbol_matches_domain in symtab.c. All local callers
5825 of symbol_matches_domain updated.
5826 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5827 search STRUCT_DOMAIN.
5828 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5829 independently. standard_lookup will do that automatically.
5830 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5831 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5832 (cp_lookup_symbol_in_namespace): Likewise.
5833 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5834 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5835 may return a STRUCT_DOMAIN match.
5836 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5837 * cp-support.c: Include language.h.
5838 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5840 * psymtab.c (match_partial_symbol): Compare the requested
5841 domain with the symbol's domain directly.
5842 (lookup_partial_symbol): Likewise.
5843 * symtab.c (lookup_symbol_in_language): Explain when/why
5844 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5845 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5846 appropriate languages.
5847 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5848 and moved to ada-lang.c
5849 (lookup_block_symbol): Explain that this function only returns
5850 symbol matching the requested DOMAIN.
5851 Compare the requested domain with the symbol's domain directly.
5852 (iterate_over_symbols): Compare the requested domain with the
5853 symbol's domain directly.
5854 * symtab.h (symbol_matches_domain): Remove.
5856 2014-06-06 Doug Evans <xdje42@gmail.com>
5858 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5859 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5860 (gdbscm_guile_version_is_at_least): Declare.
5861 (gdbscm_scm_string_to_int): Declare.
5862 * guile/guile.c (gdbscm_guile_major_version): New global.
5863 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5864 (guile_datadir): New static global.
5865 (gdbscm_guile_data_directory): New function.
5866 (initialize_scheme_side): Update.
5867 (misc_guile_functions): Add guile-data-directory.
5868 (initialize_gdb_module): Fetch guile version number.
5869 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5870 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5871 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5872 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5874 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5875 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5876 * guile/scm-value.c (gdbscm_value_to_string): Only call
5877 scm_port_conversion_strategy if Guile version >= 2.0.6.
5879 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5881 * main.c (print_gdb_help): Add -q and --silent.
5883 2014-06-06 Gary Benson <gbenson@redhat.com>
5885 * common/signals.c: Remove preprocessor conditionals for
5886 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5887 SIGSEGV and SIGTERM.
5888 * proc-events.c: Likewise.
5890 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5892 * symfile.c (symfile_free_objfile): Remove restriction to
5894 * symfile-mem.c (symbol_file_add_from_memory): Call
5895 add_target_sections_of_objfile.
5897 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5899 * guile/scm-value.c (gdbscm_history_append_x): Use
5900 'vlscm_get_value_smob_arg_unsafe' instead of
5901 'vlscm_scm_to_value'.
5903 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5906 * utils.c (printchar): Don't escape at all if quoter is NUL.
5907 Update function documentation to clarify effect of parameter
5909 * remote.c (escape_buffer): Pass '\\' as the quoter to
5910 fputstrn_unfiltered.
5911 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5912 generate the output.
5913 (mi_solib_unloaded): Same.
5915 2014-06-05 Joel Brobecker <brobecker@adacore.com>
5917 * development.sh: Delete.
5918 * Makefile.in (config.status): Adjust dependency on development.sh.
5919 * configure.ac: Adjust development.sh source call.
5920 * configure: Regenerate.
5922 2014-06-04 Doug Evans <xdje42@gmail.com>
5924 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5925 is_scheme_bkpt, spec.
5926 (bpscm_make_breakpoint_smob): Initialize new members.
5927 (gdbscm_create_breakpoint_x): Split into two ...
5928 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5929 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5930 (scheme_function breakpoint_functions): Update.
5931 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5932 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5933 register-breakpoint!.
5935 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
5938 * mem-break.c (z_type_supported): Return zero if
5939 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5941 2014-06-04 Tom Tromey <tromey@redhat.com>
5943 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5944 value_from_contents_and_address_unresolved.
5945 (ada_template_to_fixed_record_type_1): Likewise.
5946 (ada_which_variant_applies): Likewise.
5947 * value.h (value_from_contents_and_address_unresolved): Declare.
5948 * value.c (value_from_contents_and_address_unresolved): New
5950 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5951 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5952 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5954 2014-06-04 Tom Tromey <tromey@redhat.com>
5956 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5958 2014-06-04 Tom Tromey <tromey@redhat.com>
5960 * procfs.c (procfs_attach): Make "args" const.
5961 * windows-nat.c (windows_attach): Make "args" const.
5962 * nto-procfs.c (procfs_attach): Make "args" const.
5963 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5964 * go32-nat.c (go32_attach): Make "args" const.
5965 * gnu-nat.c (gnu_attach): Make "args" const.
5966 * darwin-nat.c (darwin_attach): Make "args" const.
5967 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5968 * linux-nat.c (linux_nat_attach): Make "args" const.
5969 * remote.c (extended_remote_attach_1, extended_remote_attach):
5971 * target.h (struct target_ops) <to_attach>: Make "args" const.
5972 (find_default_attach): Likewise.
5973 * utils.c (parse_pid_to_attach): Make "args" const.
5974 * utils.h (parse_pid_to_attach): Update.
5976 2014-06-04 Tom Tromey <tromey@redhat.com>
5978 * target-delegates.c: Rebuild.
5979 * target.c (default_thread_address_space): New function.
5980 (target_thread_address_space): Simplify.
5981 * target.h (struct target_ops) <to_thread_address_space>: Add
5982 TARGET_DEFAULT_FUNC.
5984 2014-06-04 Doug Evans <xdje42@gmail.com>
5986 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5988 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5990 * record-btrace.c: Include event-loop.h and inf-loop.h.
5991 (record_btrace_resume_exec_dir)
5992 (record_btrace_async_inferior_event_handler)
5993 (record_btrace_handle_async_inferior_event): New.
5994 (record_btrace_open): Create async event handler.
5995 (record_btrace_close): Delete async event handler.
5996 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5997 Mark async event handler.
5998 (record_btrace_execution_direction): New.
5999 (init_record_btrace_ops): Initialize to_execution_direction.
6001 2014-06-03 Doug Evans <xdje42@gmail.com>
6003 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6004 (gdbscm_make_parameter): Ditto.
6006 2014-06-03 Doug Evans <dje@google.com>
6008 * exec.c (exec_close_1): Call clear_section_table instead of
6009 resize_section_table.
6010 (clear_section_table): New function.
6011 (resize_section_table): Make static. Rename arg num_added to
6013 * exec.h (clear_section_table): Declare.
6014 (resize_section_table): Delete.
6015 * progspace.c (release_program_space): Call clear_section_table
6016 instead of resize_section_table.
6018 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6020 * NEWS (Python Scripting): Add entry about the new xmethods
6023 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6025 * python/py-xmethods.c: New file.
6026 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6027 (objfpy_dealloc): XDECREF on the new xmethods field.
6028 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6030 (objfpy_get_xmethods): New function.
6031 (objfile_getset): New entry 'xmethods'.
6032 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6033 (pspy_dealloc): XDECREF on the new xmethods field.
6034 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6036 (pspy_get_xmethods): New function.
6037 (pspace_getset): New entry 'xmethods'.
6038 * python/python-internal.h: Add declarations for new functions.
6039 * python/python.c (_initialize_python): Invoke
6040 gdbpy_initialize_xmethods.
6041 * python/lib/gdb/__init__.py (xmethods): New
6043 * python/lib/gdb/xmethod.py: New file.
6044 * python/lib/gdb/command/xmethods.py: New file.
6046 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6048 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6049 best match method returned by find_overload_match is an xmethod.
6050 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6051 the best matching operator returned by find_overload_match is an
6053 * valops.c: #include "extension.h".
6054 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6055 Return void. The list of matching source methods is returned in
6056 "fn_list" and a vector of matching debug method workers is
6057 returned in "xm_worker_vec". Update all callers.
6058 (value_find_oload_method_list): Likewise.
6059 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6060 non-NULL, then the index of the best matching method in this
6061 vector is returned. Update all callers.
6062 (find_overload_match): Include xmethods while performing overload
6065 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6067 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6068 * extension-priv.h (struct extension_language_ops): Add the
6070 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6071 get_matching_xmethod_workers, get_xmethod_argtypes,
6072 invoke_xmethod, free_xmethod_worker,
6073 free_xmethod_worker_vec): New functions.
6074 * extension.h: #include "common/vec.h".
6075 New function declarations.
6076 (struct xmethod_worker): New struct.
6077 (VEC (xmethod_worker_ptr)): New vector type.
6078 (xmethod_worker_ptr): New typedef.
6079 (xmethod_worker_vec): Likewise.
6080 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6082 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6083 (struct builtin_type): New field "xmethod".
6084 * valarith.c (value_ptradd): Assert that the value argument is not
6086 * valops.c (value_must_coerce_to_target): Return 0 for
6087 lval_xcallable values.
6088 * value.c (struct value): New field XM_WORKER in the field
6090 (value_address, value_raw_address): Return 0 for lval_xcallable
6092 (set_value_address): Assert that the value is not an
6094 (value_free): Free the associated xmethod worker when freeing
6095 lval_xcallable values.
6096 (set_value_component_location): Assert that the WHOLE value is not
6098 (value_of_xmethod, call_xmethod): New functions.
6099 * value.h: Declare "struct xmethod_worker".
6100 Declare new functions value_of_xmethod, call_xmethod.
6102 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6103 Pedro Alves <palves@redhat.com>
6105 PR breakpoints/17000
6106 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6107 New function, extracted from software_breakpoint_inserted_here_p.
6108 (software_breakpoint_inserted_here_p): Replace factored out code
6109 by call to find_non_raw_software_breakpoint_inserted_here.
6110 (bp_target_info_copy_insertion_state): New function.
6111 (bkpt_insert_location): Handle the case of a single-step
6112 breakpoint already inserted at the same address.
6113 (bkpt_remove_location): Handle the case of a single-step
6114 breakpoint still inserted at the same address.
6115 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6116 breakpoint already inserted at the same address.
6117 (deprecated_remove_raw_breakpoint): Handle the case of a
6118 non-raw breakpoint still inserted at the same address.
6119 (find_single_step_breakpoint): New function, extracted from
6120 single_step_breakpoint_inserted_here_p.
6121 (find_single_step_breakpoint): New function,
6122 factored out from single_step_breakpoint_inserted_here_p.
6123 (single_step_breakpoint_inserted_here_p): Reimplement.
6125 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6127 Pushed by Joel Brobecker <brobecker@adacore.com>
6128 * source.c (show_substitute_path_command): Fix display of matching
6131 2014-06-03 Gary Benson <gbenson@redhat.com>
6133 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6135 2014-06-02 Doug Evans <xdje42@gmail.com>
6137 Add parameter support for Guile.
6138 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6139 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6140 (scm-param.o): New rule.
6141 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6142 (gdbscm_misc_error): Declare.
6143 (gdbscm_canonicalize_command_name): Declare.
6144 (gdbscm_scm_to_host_string): Declare.
6145 (gdbscm_scm_from_host_string): Declare.
6146 (gdbscm_initialize_parameters): Declare.
6147 * guile/guile.c (initialize_gdb_module): Call
6148 gdbscm_initialize_parameters.
6149 * guile/lib/gdb.scm: Export parameter symbols.
6150 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6151 cmdscm_canonicalize_name and made public. All callers updated.
6152 * guile/scm-exception.c (gdbscm_misc_error): New function.
6153 * guile/scm-param.c: New file.
6154 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6155 (gdbscm_scm_to_host_string): New function.
6156 (gdbscm_scm_from_host_string): New function.
6157 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6159 2014-06-02 Doug Evans <xdje42@gmail.com>
6161 Add command support for Guile.
6162 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6163 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6164 (scm-cmd.o): New rule.
6165 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6166 (gdbscm_user_error_p): Declare.
6167 (gdbscm_parse_command_name): Declare.
6168 (gdbscm_valid_command_class_p): Declare.
6169 (gdbscm_initialize_commands): Declare.
6170 * guile/guile.c (initialize_gdb_module): Call
6171 gdbscm_initialize_commands.
6172 * guile/lib/gdb.scm: Export command symbols.
6173 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6174 (throw-user-error): New function.
6175 * guile/scm-cmd.c: New file.
6176 * guile/scm-exception.c (user_error_symbol): New static global.
6177 (gdbscm_user_error_p): New function.
6178 (gdbscm_initialize_exceptions): Set user_error_symbol.
6179 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6181 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6183 * top.c (command_loop): Handle comments here...
6184 (command_line_input): ... not here.
6186 2014-06-02 Doug Evans <xdje42@gmail.com>
6188 Add progspace support for Guile.
6189 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6190 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6191 (scm-progspace.o): New rule.
6192 * guile/guile-internal.h (pspace_smob): New typedef.
6193 (psscm_pspace_smob_pretty_printers): Declare.
6194 (psscm_pspace_smob_from_pspace): Declare.
6195 (psscm_scm_from_pspace): Declare.
6196 * guile/guile.c (initialize_gdb_module): Call
6197 gdbscm_initialize_pspaces.
6198 * guile/lib/gdb.scm: Export progspace symbols.
6199 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6201 (append-pretty-printer!): Ditto.
6202 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6204 * guile/scm-progspace.c: New file.
6206 2014-06-03 Alan Modra <amodra@gmail.com>
6208 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6209 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6211 2014-06-02 Doug Evans <dje@google.com>
6213 Add support for skeletonless type units.
6214 * dwarf2read.c (struct dwarf2_per_objfile): New member
6215 n_allocated_type_units.
6216 (struct dwarf2_per_objfile) <tu_stats>: New member
6217 nr_all_type_units_reallocs.
6218 (create_signatured_type_table_from_index): Initialize
6219 n_allocated_type_units
6220 (create_all_type_units): Ditto.
6221 (add_type_unit): Move up in file. New arg slot.
6222 All callers updated. Increase space for all_type_units more
6224 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6225 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6226 (lookup_dwp_signatured_type): Ditto.
6227 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6228 All callers updated.
6229 (build_type_psymtabs_1): Leave type_unit_groups as
6230 NULL if no TUs present.
6231 (print_tu_stats): New function.
6232 (process_skeletonless_type_unit): New function.
6233 (process_dwo_file_for_skeletonless_type_units): New
6235 (process_skeletonless_type_units): New function.
6236 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6237 Call print tu_stats if debugging enabled.
6239 2014-06-02 Pedro Alves <palves@redhat.com>
6241 * breakpoint.c (build_target_command_list): Don't build a command
6242 list if we have any duplicate location that isn't a dprintf.
6244 2014-06-02 Pedro Alves <palves@redhat.com>
6246 * breakpoint.c (dprintf_breakpoint_hit): New function.
6247 (initialize_breakpoint_ops): Install it as dprintf's
6248 breakpoint_hit method.
6250 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6252 * source.c (substitute_path_rule_matches): Simplify using
6253 filename_ncmp instead of FILENAME_CMP.
6255 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6257 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6259 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6261 * configure.ac: When Guile is available, check for the
6262 availability of 'scm_new_smob'.
6263 * configure, config.h.in: Regenerate.
6264 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6267 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6269 * frame.c (struct frame_info): Add stop_string field.
6270 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6271 (get_prev_frame_always): Old content moved into
6272 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6273 TRY_CATCH, handle MEMORY_ERROR exceptions.
6274 (frame_stop_reason_string): New function definition.
6275 * frame.h (unwind_stop_reason_to_string): Extend comment to
6276 mention frame_stop_reason_string.
6277 (frame_stop_reason_string): New function declaration.
6278 * stack.c (frame_info): Switch to frame_stop_reason_string.
6279 (backtrace_command_1): Switch to frame_stop_reason_string.
6280 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6281 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6282 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6284 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6286 * frame.c (frame_stop_reason_string): Rename to ...
6287 (unwind_stop_reason_to_string): this.
6288 * frame.h (frame_stop_reason_string): Rename to ...
6289 (unwind_stop_reason_to_string): this.
6290 * stack.c (frame_info): Update call to frame_stop_reason_string.
6291 (backtrace_command_1): Likewise.
6292 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6293 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6295 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6297 * frame.c (remove_prev_frame): New function.
6298 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6301 2014-05-29 Pedro Alves <palves@redhat.com>
6303 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6304 and make it const. When a single-step decays to a continue,
6305 clear 'step', not 'hw_step'. Pass whether the caller wanted
6306 to step to user_visible_resume_ptid, not what we ask the
6309 2014-05-29 Pedro Alves <palves@redhat.com>
6311 * infrun.c (process_event_stop_test, handle_step_into_function)
6312 (handle_step_into_function_backward): Adjust.
6313 Don't set the even thread's stop_step and call stop_waiting before
6314 calling end_stepping_range. Instead do that ...
6315 (end_stepping_range): ... here. Take an ecs pointer parameter.
6317 2014-05-29 Pedro Alves <palves@redhat.com>
6319 * infrun.c (stop_stepping): Rename to ...
6320 (stop_waiting): ... this.
6321 (proceed): Update comment.
6322 (process_event_stop_test, handle_inferior_event)
6323 (handle_signal_stop, handle_step_into_function)
6324 (handle_step_into_function_backward): Update.
6326 2014-05-29 Pedro Alves <palves@redhat.com>
6328 * infcall.c (run_inferior_call): Don't check whether the current
6329 thread is running after the proceed call.
6331 2014-05-29 Pedro Alves <palves@redhat.com>
6332 Tom Tromey <tromey@redhat.com>
6334 * NEWS: Mention "maint set target-async", "set mi-async", and that
6335 background execution commands are now always available.
6336 * target.h (target_async_permitted): Update comment.
6337 * target.c (target_async_permitted, target_async_permitted_1):
6339 (set_target_async_command): Rename to ...
6340 (maint_set_target_async_command): ... this.
6341 (show_target_async_command): Rename to ...
6342 (maint_show_target_async_command): ... this.
6343 (_initialize_target): Adjust.
6344 * infcmd.c (prepare_execution_command): Make extern.
6345 * inferior.h (prepare_execution_command): Declare.
6346 * infrun.c (set_observer_mode): Leave target async alone.
6347 * mi/mi-interp.c (mi_interpreter_init): Install
6348 mi_on_sync_execution_done as sync_execution_done observer.
6349 (mi_on_sync_execution_done): New function.
6350 (mi_execute_command_input_handler): Don't print the prompt if we
6351 just started a synchronous command with an async target.
6352 (mi_on_resume): Check sync_execution before printing prompt.
6353 * mi/mi-main.h (mi_async_p): Declare.
6354 * mi/mi-main.c: Include gdbcmd.h.
6355 (mi_async_p): New function.
6356 (mi_async, mi_async_1): New globals.
6357 (set_mi_async_command, show_mi_async_command, mi_async): New
6359 (exec_continue): Call prepare_execution_command.
6360 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6361 (mi_execute_async_cli_command): Use mi_async_p.
6362 (_initialize_mi_main): Install "set mi-async". Make
6363 "target-async" a deprecated alias.
6365 2014-05-29 Pedro Alves <palves@redhat.com>
6367 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6368 (_initialize_cli_interp): Adjust.
6369 * event-loop.c: Include "observer.h".
6370 (start_event_loop): Notify 'command_error' observers instead of
6371 calling display_gdb_prompt. Remove FIXME comment.
6372 * event-top.c (display_gdb_prompt): Remove call into the
6374 * inf-loop.c: Include "observer.h".
6375 (inferior_event_handler): Notify 'command_error' observers instead
6376 of calling display_gdb_prompt.
6377 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6378 observers instead of calling display_gdb_prompt.
6379 * interps.c (interp_set): Don't call display_gdb_prompt.
6380 (current_interp_display_prompt_p): Delete.
6381 * interps.h (interp_prompt_p): Delete declaration.
6382 (interp_prompt_p_ftype): Delete.
6383 (struct interp_procs) <prompt_proc_p>: Delete field.
6384 (current_interp_display_prompt_p): Delete declaration.
6385 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6386 (_initialize_mi_interp): Adjust.
6387 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6388 'command_error' observers.
6389 (tui_on_sync_execution_done, tui_on_command_error): New
6391 (tui_display_prompt_p): Delete.
6392 (_initialize_tui_interp): Adjust.
6394 2014-05-29 Pedro Alves <palves@redhat.com>
6397 * cli/cli-interp.c: Include infrun.h and observer.h.
6398 (cli_uiout, cli_interp): New globals.
6399 (cli_on_signal_received, cli_on_end_stepping_range)
6400 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6402 (cli_interpreter_init): Install them as 'end_stepping_range',
6403 'signal_received' 'signal_exited', 'exited' and 'no_history'
6405 (_initialize_cli_interp): Remove cli_interp local.
6406 * infrun.c (handle_inferior_event): Call the several stop reason
6407 observers instead of printing the stop reason directly.
6408 (end_stepping_range): New function.
6409 (print_end_stepping_range_reason, print_signal_exited_reason)
6410 (print_exited_reason, print_signal_received_reason)
6411 (print_no_history_reason): Make static, and add an uiout
6412 parameter. Print to that instead of to CURRENT_UIOUT.
6413 * infrun.h (print_end_stepping_range_reason)
6414 (print_signal_exited_reason, print_exited_reason)
6415 (print_signal_received_reason print_no_history_reason): New
6417 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6419 <cli_uiout>: New field.
6420 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6421 uiout for CLI output. Install 'signal_received',
6422 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6424 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6425 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6426 (mi_on_no_history): New functions.
6427 (ui_out_free_cleanup): Delete function.
6428 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6429 instead use the one already stored in the MI interpreter data.
6430 (mi_ui_out): Adjust.
6431 * tui/tui-interp.c: Include infrun.h and observer.h.
6432 (tui_interp): New global.
6433 (tui_on_signal_received, tui_on_end_stepping_range)
6434 (tui_on_signal_exited, tui_on_exited)
6435 (tui_on_no_history): New functions.
6436 (tui_init): Install them as 'end_stepping_range',
6437 'signal_received' 'signal_exited', 'exited' and 'no_history'
6439 (_initialize_tui_interp): Delete tui_interp local.
6441 2014-05-29 Pedro Alves <palves@redhat.com>
6444 * linux-nat.c (linux_nat_resume_callback): Rename the second
6445 parameter to 'except'. Skip LP if it points to EXCEPT.
6446 (linux_nat_resume): Don't mark the event lwp as not stopped
6447 before resuming sibling lwps. Instead ask
6448 linux_nat_resume_callback to skip the event lwp. Mark it as not
6449 stopped after actually resuming it.
6450 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6452 (wait_lwp): Mark the lwp as stopped here.
6453 (stop_wait_callback): Mark the lwp as not stopped right after
6454 resuming it. Don't mark lwps as stopped here.
6455 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6456 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6458 2014-05-29 Pedro Alves <palves@redhat.com>
6461 * infrun.c (resume): Determine how much to resume depending on
6462 whether the caller wanted a step, not whether we can hardware step
6463 the target. Mark all threads that we intend to run as running,
6464 unless we're calling an inferior function.
6465 (normal_stop): If the thread is running an infcall, don't finish
6467 * target.c (target_resume): Don't mark threads as running here.
6469 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6471 * serial.c (_initialize_serial): Remove support for
6472 the "set remotebaud" and "show remotebaud" commands.
6473 * NEWS: Add entry documenting the removal of that command.
6475 2014-05-28 Yao Qi <yao@codesourcery.com>
6477 * charset.c: Fix typo in comments.
6479 2014-05-27 Gary Benson <gbenson@redhat.com>
6481 * utils.c (internal_vproblem): Prompt for a bug report.
6483 2014-05-26 Andy Wingo <wingo@igalia.com>
6485 * guile/scm-arch.c (arscm_mark_arch_smob):
6486 * guile/scm-block.c (bkscm_mark_block_smob)
6487 (bkscm_mark_block_syms_progress_smob):
6488 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6489 * guile/scm-exception.c (exscm_mark_exception_smob):
6490 * guile/scm-frame.c (frscm_mark_frame_smob):
6491 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6492 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6493 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6494 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6495 (ppscm_mark_pretty_printer_worker_smob):
6496 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6497 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6498 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6499 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6501 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6504 2014-05-26 Andy Wingo <wingo@igalia.com>
6505 Doug Evans <xdje42@gmail.com>
6507 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6508 empty_base_class. All uses updated.
6509 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6510 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6512 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6513 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6514 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6515 (gdbscm_gsmob_has_property_p, add_property_name)
6516 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6517 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6518 (gdb-object-has-property?, gdb-object-properties): Remove.
6519 (gdb-object-kind): Renamed from gsmob-kind.
6521 2014-05-26 Andy Wingo <wingo@igalia.com>
6523 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6524 * configure: Regenerate.
6526 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6528 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6530 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6532 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6533 (replay_memory_access_read_only, replay_memory_access_read_write)
6534 (replay_memory_access_types, replay_memory_access)
6535 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6536 (cmd_set_record_btrace, cmd_show_record_btrace)
6537 (cmd_show_replay_memory_access): New.
6538 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6539 (record_btrace_remove_breakpoint): Replace
6540 record_btrace_allow_memory_access with replay_memory_access.
6541 (_initialize_record_btrace): Add commands.
6542 * NEWS: Announce it.
6544 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6546 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6548 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6550 * MAINTAINERS (Write After Approval): Move self back from
6553 2014-05-22 Pedro Alves <palves@redhat.com>
6555 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6556 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6557 (disable_randomization, enum exec_direction_kind)
6558 (execution_direction, stop_registers, start_remote)
6559 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6560 (wait_for_inferior, normal_stop, get_last_target_status)
6561 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6562 (insert_step_resume_breakpoint_at_sal)
6563 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6564 (set_step_info, print_stop_event, signal_stop_state)
6565 (signal_print_state, signal_pass_state, signal_stop_update)
6566 (signal_print_update, signal_pass_update)
6567 (update_signals_program_target, clear_exit_convenience_vars)
6568 (displaced_step_dump_bytes, update_observer_mode)
6569 (signal_catch_update, gdb_signal_from_command): Move
6571 * infrun.h: ... to this new file.
6572 * amd64-tdep.c: Include infrun.h.
6573 * annotate.c: Include infrun.h.
6574 * arch-utils.c: Include infrun.h.
6575 * arm-linux-tdep.c: Include infrun.h.
6576 * arm-tdep.c: Include infrun.h.
6577 * break-catch-sig.c: Include infrun.h.
6578 * breakpoint.c: Include infrun.h.
6579 * common/agent.c: Include infrun.h instead of inferior.h.
6580 * corelow.c: Include infrun.h.
6581 * event-top.c: Include infrun.h.
6582 * go32-nat.c: Include infrun.h.
6583 * i386-tdep.c: Include infrun.h.
6584 * inf-loop.c: Include infrun.h.
6585 * infcall.c: Include infrun.h.
6586 * infcmd.c: Include infrun.h.
6587 * infrun.c: Include infrun.h.
6588 * linux-fork.c: Include infrun.h.
6589 * linux-nat.c: Include infrun.h.
6590 * linux-thread-db.c: Include infrun.h.
6591 * monitor.c: Include infrun.h.
6592 * nto-tdep.c: Include infrun.h.
6593 * procfs.c: Include infrun.h.
6594 * record-btrace.c: Include infrun.h.
6595 * record-full.c: Include infrun.h.
6596 * remote-m32r-sdi.c: Include infrun.h.
6597 * remote-mips.c: Include infrun.h.
6598 * remote-notif.c: Include infrun.h.
6599 * remote-sim.c: Include infrun.h.
6600 * remote.c: Include infrun.h.
6601 * reverse.c: Include infrun.h.
6602 * rs6000-tdep.c: Include infrun.h.
6603 * s390-linux-tdep.c: Include infrun.h.
6604 * solib-irix.c: Include infrun.h.
6605 * solib-osf.c: Include infrun.h.
6606 * solib-svr4.c: Include infrun.h.
6607 * target.c: Include infrun.h.
6608 * top.c: Include infrun.h.
6609 * windows-nat.c: Include infrun.h.
6610 * mi/mi-interp.c: Include infrun.h.
6611 * mi/mi-main.c: Include infrun.h.
6612 * python/py-threadevent.c: Include infrun.h.
6614 2014-05-22 Pedro Alves <palves@redhat.com>
6616 * infrun.c (handle_inferior_event): Store the exit code for
6617 --return-child-result here, instead of ...
6618 (print_exited_reason): ... here.
6620 2014-05-21 Pedro Alves <palves@redhat.com>
6623 * gdbthread.h (struct thread_control_state): New field
6625 * infrun.c (follow_fork): Copy the new thread control field to the
6627 (clear_proceed_status_thread): Clear the new thread control field.
6628 (proceed): Set the new thread control field.
6629 * interps.h (command_interp): Declare.
6630 * interps.c (command_interpreter): New global.
6631 (command_interp): New function.
6632 (interp_exec): Set `command_interpreter' while here.
6633 * cli-out.c (cli_uiout_dtor): New function.
6634 (cli_ui_out_impl): Install it.
6635 * mi/mi-interp.c: Include cli-out.h.
6636 (mi_cmd_interpreter_exec): Add comment.
6637 (restore_current_uiout_cleanup): New function.
6638 (ui_out_free_cleanup): New function.
6639 (mi_on_normal_stop): If finishing an execution command started by
6640 a CLI command, or any kind of breakpoint-like event triggered,
6641 print the stop event to the output (CLI) stream.
6642 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6644 2014-05-21 Pedro Alves <palves@redhat.com>
6646 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6647 current source line having changed.
6648 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6649 * infrun.c (normal_stop): Adjust call to
6650 set_current_sal_from_frame.
6651 * source.c (clear_lines_listed_range): New function.
6652 (set_current_source_symtab_and_line, identify_source_line): Clear
6653 the lines listed range.
6654 (line_info): Handle the first "info line" after the current source
6655 line having changed.
6656 * stack.c (print_stack_frame): Remove center handling.
6657 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6660 2014-05-21 Pedro Alves <palves@redhat.com>
6662 * inf-child.c (inf_child_mourn_inferior): New function.
6663 * inf-child.h (inf_child_mourn_inferior): New declaration.
6664 * darwin-nat.c (darwin_mourn_inferior): Use
6665 inf_child_mourn_inferior.
6666 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6667 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6668 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6669 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6670 * windows-nat.c (windows_mourn_inferior): Likewise.
6672 2014-05-21 Doug Evans <xdje42@gmail.com>
6674 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6676 2014-05-21 Doug Evans <xdje42@gmail.com>
6678 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6679 (gdbscm_out_of_range_error): Ditto.
6680 (gdbscm_memory_error): Ditto.
6681 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6682 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6683 (gdbscm_out_of_range_error): Update.
6684 (gdbscm_memory_error): Update.
6685 (gdbscm_scm_to_target_string_unsafe): Delete.
6687 2014-05-21 Pedro Alves <palves@redhat.com>
6689 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6691 (inf_child_open_target): New function.
6692 (inf_child_open): Use inf_child_open_target to push the target
6693 instead of erroring out.
6694 (inf_child_disconnect, inf_child_close)
6695 (inf_child_maybe_unpush_target): New functions.
6696 (inf_child_target): Install inf_child_disconnect and
6697 inf_child_close. Store a pointer to the returned object.
6698 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6700 * target.c (auto_connect_native_target): New global.
6701 (show_default_run_target): New function.
6702 (find_default_run_target): Return NULL if automatically connecting
6703 to the native target is disabled.
6704 (_initialize_target): Install set/show auto-connect-native-target.
6705 * NEWS: Mention "set auto-connect-native-target", and "target
6707 * linux-nat.c (super_close): New global.
6708 (linux_nat_close): Call super_close.
6709 (linux_nat_add_target): Store a pointer to the base class's
6711 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6712 inf_child_maybe_unpush.
6713 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6715 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6716 the inferior. Use inf_child_maybe_unpush_target.
6717 (inf_ttrace_attach): Don't push the target if it is already
6719 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6720 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6721 after mourning the inferior. Use inf_child_maybe_unpush_target.
6722 (darwin_attach_pid): Don't push the target if it is already
6724 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6725 mourning the inferior. Use inf_child_maybe_unpush_target.
6726 (gnu_detach): Use inf_child_maybe_unpush_target.
6727 * go32-nat.c (go32_create_inferior): Don't push the target if it
6729 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6730 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6731 (procfs_open): Rename to ...
6732 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6733 comments. Can target_preopen before changing node. Call
6734 inf_child_open_target to push the target explicitly.
6735 (procfs_attach): Don't push the target if it is already pushed.
6736 (procfs_detach): Use inf_child_maybe_unpush_target.
6737 (procfs_create_inferior): Don't push the target if it is already
6739 (nto_native_ops): New global.
6740 (procfs_open): Reimplement.
6741 (procfs_native_open): New function.
6742 (init_procfs_targets): Install procfs_native_open as to_open of
6743 "target native". Store a pointer to the "native" target in
6745 * procfs.c (procfs_attach): Don't push the target if it is already
6747 (procfs_detach): Use inf_child_maybe_unpush_target.
6748 (procfs_mourn_inferior): Only unpush the target after mourning the
6749 inferior. Use inf_child_maybe_unpush_target.
6750 (procfs_init_inferior): Don't push the target if it is already
6752 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6753 if it is already pushed.
6755 2014-05-21 Pedro Alves <palves@redhat.com>
6757 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6758 and "procfs" targets are now called "native" instead.
6760 2014-05-21 Pedro Alves <palves@redhat.com>
6762 * go32-nat.c (go32_open): Delete.
6763 (go32_target): Don't override the to_open method.
6765 2014-05-21 Pedro Alves <palves@redhat.com>
6767 * nto-procfs.c (procfs_can_run): New function.
6768 (nto_procfs_ops): New global.
6769 (init_procfs_targets): New, based on procfs_target. Install
6770 "target native" in addition to "target procfs".
6771 (_initialize_procfs): Call init_procfs_targets instead of adding
6774 2014-05-21 Pedro Alves <palves@redhat.com>
6776 * windows-nat.c (windows_target): Don't override to_shortname,
6777 to_longname or to_doc.
6779 2014-05-21 Pedro Alves <palves@redhat.com>
6781 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6784 2014-05-21 Pedro Alves <palves@redhat.com>
6786 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6787 to_shortname, to_longname or to_doc.
6789 2014-05-21 Pedro Alves <palves@redhat.com>
6791 * go32-nat.c (go32_target): Don't override to_shortname,
6792 to_longname or to_doc.
6794 2014-05-21 Pedro Alves <palves@redhat.com>
6796 * inf-child.c (inf_child_open): Remove mention of "child".
6797 (inf_child_target): Rename target to "native" instead of "child".
6799 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6801 * Makefile.in (SFILES): Delete "regset.c".
6802 (COMMON_OBS): Delete "regset.o".
6804 * regset.h (regset_alloc): Delete prototype.
6806 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6808 * sparc-linux-tdep.c (sparc32_linux_gregset)
6809 (sparc32_linux_fpregset): New static regset structures.
6810 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6811 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6813 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6814 (sparc64_linux_fpregset): New static regset structures.
6815 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6816 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6817 New static regset structures.
6818 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6819 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6820 New static regset structures.
6821 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6822 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6823 New static regset structures.
6824 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6825 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6826 New static regset structures.
6827 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6829 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6831 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6832 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6833 register maps ("regmaps") from "*regset" to "*regmap". Do this
6834 for all regmap types and variables.
6835 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6836 (sparc32_linux_supply_core_gregset)
6837 (sparc32_linux_collect_core_gregset)
6838 (sparc32_linux_supply_core_fpregset)
6839 (sparc32_linux_collect_core_fpregset): Likewise.
6840 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6841 (sparc_gregmap, sparc_fpregmap): ... these.
6842 (sparc_supply_gregset, sparc_collect_gregset)
6843 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6844 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6845 (_initialize_sparc_nat): Rename regmaps.
6846 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6847 (sparc_gregmap, sparc_fpregmap): ... these.
6848 (sparc_supply_gregset, sparc_collect_gregset)
6849 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6850 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6852 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6853 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6855 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6857 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6858 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6859 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6861 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6862 (sparc32_bsd_fpregset): Rename to...
6863 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6864 (sparc32_bsd_fpregmap): ... these.
6865 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6866 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6867 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6868 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6869 (struct sparc_gregmap, struct sparc_fpregmap)
6870 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6871 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6872 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6873 (sparc32_supply_regset, sparc32_collect_gregset)
6874 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6876 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6877 (sparc64_linux_ptrace_gregmap): ... this.
6878 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6879 (_initialize_sparc64_linux_nat): Rename regmaps.
6880 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6881 (sparc64_linux_core_gregmap): ... this.
6882 (sparc64_linux_supply_core_gregset)
6883 (sparc64_linux_collect_core_gregset)
6884 (sparc64_linux_supply_core_fpregset)
6885 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6886 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6887 (sparc64_sol2_fpregset): Rename to...
6888 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6889 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6890 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6892 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6893 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6894 (sparc64_bsd_fpregset): Rename to...
6895 (struct sparc_gregmap, sparc64_sol2_gregmap)
6896 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6897 (sparc64_bsd_fpregmap): ... these.
6898 (sparc64_supply_gregset, sparc64_collect_gregset)
6899 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6901 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6902 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6903 (sparc64fbsd_gregmap): ... this.
6904 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6905 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6907 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6908 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6909 (sparc64nbsd_collect_fpregset): Likewise.
6910 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6911 (sparc64nbsd_gregmap): ... this.
6912 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6914 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6915 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6916 (sparc64obsd_gregmap): ... this.
6917 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6919 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6920 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6921 (sparc32nbsd_gregmap): ... this.
6922 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6925 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6927 * score-tdep.c (score7_linux_gregset): New static regset
6929 (score7_linux_regset_from_core_section): Remove dynamic regset
6931 (score_gdbarch_init): Drop allocation of tdep structure.
6932 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6934 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6936 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6938 (am33_regset_from_core_section): Remove dynamic regset
6941 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6943 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6944 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6946 (mips_linux_regset_from_core_section): Remove dynamic regset
6948 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6949 'gregset64', 'fpregset', and 'fpregset64'.
6950 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6951 deleted tdep fields.
6953 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6955 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6957 (amd64_regset_from_core_section): Remove dynamic regset
6959 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6961 (amd64obsd_regset_from_core_section): Remove dynamic regset
6963 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6965 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6966 x86-common regset supply function.
6967 * i386-tdep.c (i386_collect_gregset): Make static.
6968 (i386_gregset): New global regset structure.
6969 (i386_fpregset, i386_xstateregset): New static regset structures.
6970 (i386_regset_from_core_section): Remove dynamic regset
6972 (i386_gdbarch_init): Remove initialization of tdep fields
6973 'gregset', 'fpregset', and 'xstateregset'.
6974 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6975 'fpregset', and 'xstateregset'.
6976 (i386_collect_gregset): Remove prototype.
6977 (i386_gregset): New declaration.
6978 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6980 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6983 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6985 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6986 (arm_linux_vfpregset): New static regset structures.
6987 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6989 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6990 and 'vfpregset' fields.
6992 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6994 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6995 (aarch64_linux_fpregset): New static regset structures.
6996 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6997 of regset structures.
6998 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7001 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7003 * regset.h (struct regset): Remove gdbarch field.
7004 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7005 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7006 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7008 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7009 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7010 (ppc32_linux_vsxregset): Likewise.
7011 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7012 via the regcache instead of the regset.
7013 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7014 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7015 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7016 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7019 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7021 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7022 Constify structures.
7023 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7024 (alphanbsd_aout_gregset): Likewise.
7025 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7026 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7028 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7029 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7031 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7032 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7033 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7034 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7035 * m88k-tdep.c (m88k_gregset): Likewise.
7036 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7037 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7038 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7039 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7040 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7041 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7042 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7043 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7044 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7046 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7047 * sh-tdep.h (sh_corefile_gregset): Likewise.
7048 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7049 * vax-tdep.c (vax_gregset): Likewise.
7051 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7053 Fix TLS access for -static -pthread.
7054 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7055 (try_thread_db_load_1): Initialize it.
7056 (thread_db_get_thread_local_address): Call it if LM is zero.
7057 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7058 * target.h (struct target_ops) (to_get_thread_local_address): Add
7059 load_module_addr comment.
7061 2014-05-21 Pedro Alves <palves@redhat.com>
7063 * dcache.c (dcache_read_memory_partial): If reading the cache line
7064 fails, fallback to reading just the memory the caller wanted.
7066 2014-05-20 Doug Evans <dje@google.com>
7068 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7069 instead of get_current_arch.
7071 2014-05-20 Pedro Alves <palves@redhat.com>
7073 * NEWS: Mention that compare-sections now works with all targets.
7075 * remote.c (PACKET_qCRC): New enum value.
7076 (remote_verify_memory): Don't send qCRC if the target has no
7077 execution. Use packet_support/packet_ok. If the target doesn't
7078 support the qCRC packet, fallback to a deep memory copy.
7079 (compare_sections_command): Say "target image" instead of "remote
7081 (_initialize_remote): Add PACKET_qCRC to the list of config
7082 packets that have no associated command. Extend comment.
7083 * target.c (simple_verify_memory, default_verify_memory): New
7085 * target.h (struct target_ops) <to_verify_memory>: Default to
7086 default_verify_memory.
7087 (simple_verify_memory): New declaration.
7088 * target-delegates.c: Regenerate.
7090 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7092 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7094 2014-05-20 Hui Zhu <hui@codesourcery.com>
7095 Yao Qi <yao@codesourcery.com>
7098 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7099 and change address of sp and pc.
7101 2014-05-19 Tom Tromey <tromey@redhat.com>
7103 * gdbtypes.c (rank_function): Use XNEWVEC.
7104 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7106 2014-05-19 Doug Evans <dje@google.com>
7108 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7109 build_type_unit_groups and moved closer to only caller. Remove
7110 arguments. All references updated. Remove outdated .gdb_index
7112 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7113 build_type_psymtabs_1.
7115 2014-05-19 Doug Evans <dje@google.com>
7117 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7118 n_type_unit_groups, all_type_unit_groups. All uses removed.
7119 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7120 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7121 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7122 (add_type_unit_group_to_table): Delete.
7124 2014-05-19 Doug Evans <dje@google.com>
7126 * eval.c (evaluate_subexp_standard): Add some comments.
7128 2014-05-17 Doug Evans <xdje42@gmail.com>
7130 * progspace.c (remove_program_space): Delete, unused.
7131 * progspace.h (remove_program_space): Ditto.
7133 2014-05-17 Doug Evans <xdje42@gmail.com>
7135 * inferior.c (prune_inferiors): Fix comment.
7136 (remove_inferior_command): Call prune_program_spaces.
7138 2014-05-16 Doug Evans <dje@google.com>
7140 New command line option -D.
7142 * main.c (set_gdb_data_directory): New function.
7143 (captured_main): Recognize -D. Flag error for --data-directory "".
7144 Call set_gdb_data_directory.
7145 (print_gdb_help): Print --data-directory, -D.
7146 * main.h (set_gdb_data_directory): Declare.
7147 * top.c (staged_gdb_datadir): New static global.
7148 (set_gdb_datadir): Call set_gdb_data_directory
7149 (show_gdb_datadir): New function.
7150 (init_main): Update init of data-directory parameter.
7152 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7154 Import the "dirfd" gnulib module.
7155 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7156 * gnulib/aclocal.m4: Update.
7157 * gnulib/config.in: Update.
7158 * gnulib/configure: Update.
7159 * gnulib/import/Makefile.am: Update.
7160 * gnulib/import/Makefile.in: Update.
7161 * gnulib/import/dirfd.c: New.
7162 * gnulib/import/m4/dirfd.m4: New.
7163 * gnulib/import/m4/gnulib-cache.m4: Update.
7164 * gnulib/import/m4/gnulib-comp.m4: Update.
7166 2014-05-16 Pierre Muller <muller@sourceware.org>
7167 Yao Qi <yao@codesourcery.com>
7169 * valprint.c (print_wchar): Move the code on checking whether
7170 W is a printable wide char to the default branch of switch
7171 statement below. Call wchar_printable instead of gdb_iswprint.
7173 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7175 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7176 ldr.w and ldrd instructions.
7178 2014-05-15 Doug Evans <dje@google.com>
7180 * dwarf2read.c (read_structure_type): Delete outdated comments.
7182 2014-05-14 Tom Tromey <tromey@redhat.com>
7184 * macrocmd.c (print_macro_definition): Reindent.
7186 2014-05-13 Doug Evans <xdje42@gmail.com>
7188 * python/py-cmd.c (cmdpy_completer): Add comment.
7189 (completers): Make const.
7191 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7193 * infrun.c (resume): Remove should_resume (unused). Move up
7194 declaration of resume_ptid.
7196 2014-05-13 Tom Tromey <tromey@redhat.com>
7198 * language.h (unop_type_check): Remove.
7199 (binop_type_check): Don't declare.
7201 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7203 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7204 call to regcache_raw_collect.
7206 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7208 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7209 mi_console->quote as the quoting character.
7211 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7213 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7215 2014-04-29 Tom Tromey <tromey@redhat.com>
7217 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7218 "show debug varobj".
7220 2014-05-07 Kyle McMartin <kyle@redhat.com>
7222 Pushed by Joel Brobecker <brobecker@adacore.com>.
7223 * aarch64-tdep.c (aarch64_software_single_step): New function.
7224 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7225 with aarch64_software_single_step.
7227 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7231 2014-05-05 Keith Seitz <keiths@redhat.com>
7233 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7234 variable or history value is successfully parsed.
7236 2014-05-05 Yao Qi <yao@codesourcery.com>
7237 Pedro Alves <palves@redhat.com>
7239 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7240 address of blocks that intersects the requested range. Trim
7241 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7243 * ctf.c (ctf_xfer_partial): Likewise.
7245 2014-05-05 Yao Qi <yao@codesourcery.com>
7247 * printcmd.c (display_command): Remove the check to
7248 target_has_execution.
7250 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7252 * ppcobsd-nat.c: Include "obsd-nat.h".
7253 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7255 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7257 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7259 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7260 and 16-bit signed and unsigned arguments. Update comment.
7261 (stap_parse_probe_arguments): Extend code to handle such
7262 arguments. Use warning instead of complaint to notify about
7263 unrecognized bitness.
7265 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7267 PR breakpoints/16889
7268 * stap-probe.c (stap_parse_probe_arguments): Simplify
7269 check for non-prefixed probes (i.e., probes whose
7270 arguments do not start with "N@"). Always set the
7271 argument type to a sane value.
7273 2014-05-01 David Taylor <dtaylor@emc.com>
7275 * remote.c (compare_sections_command): Add -r option to compare
7276 all loadable read-only sections.
7278 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7280 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7281 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7283 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7284 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7285 Remove unused CORE_ADDR argument. Update all callers.
7287 2014-04-29 Pedro Alves <palves@redhat.com>
7289 * remote.c (struct packet_config) <detect>: Extend comment.
7290 (add_packet_config_cmd): Don't set the config's detect or support
7292 (init_all_packet_configs): Also initialize the config's 'detect'
7294 (reset_all_packet_configs_support): New function.
7295 (remote_open_1): Call reset_all_packet_configs_support instead of
7296 init_all_packet_configs.
7297 (_initialize_remote): Initialize all packet configs. Assert that
7298 all packets have an associated command, except a few known
7301 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7303 * dwarf2read.c (read_subrange_type): Handle dynamic
7304 DW_AT_lower_bound attributes.
7306 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7308 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7309 dynamic bounds before computing its upper bound.
7310 (ada_discrete_type_low_bound): Same as above with the lower bound.
7312 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7314 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7315 range types. Adjust the array handling implementation to
7316 take advantage of this change.
7317 (resolve_dynamic_range): New function, mostly extracted from
7318 resolve_dynamic_bounds.
7319 (resolve_dynamic_array): New function, mostly extracted from
7320 resolve_dynamic_bounds.
7321 (resolve_dynamic_bounds): Delete.
7322 (resolve_dynamic_type): Reimplement. Add handling of
7323 TYPE_CODE_RANGE types.
7325 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7327 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7328 handling of parallel ___XA types.
7330 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7332 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7333 unnecessary second call to static_unwrap_type.
7335 2014-04-27 Hui Zhu <hui@codesourcery.com>
7337 * stack.c (print_frame_info): Call do_gdb_disassembly with
7338 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7340 2014-04-26 Doug Evans <xdje42@gmail.com>
7342 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7344 2014-04-25 Pedro Alves <palves@redhat.com>
7347 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7348 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7349 and newline from built string.
7350 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7351 (linux_ptrace_attach_fail_reason): ... this.
7352 * linux-nat.c (linux_nat_attach): Adjust to use
7353 linux_ptrace_attach_fail_reason.
7355 2014-04-25 Pedro Alves <palves@redhat.com>
7357 * remote.c (struct remote_state): Remove multi_process_aware,
7358 non_stop_aware, cond_tracepoints, cond_breakpoints,
7359 breakpoint_commands, fast_tracepoints, static_tracepoints,
7360 install_in_trace, disconnected_tracing,
7361 enable_disable_tracepoints, string_tracing, and
7362 augmented_libraries_svr4_read fields.
7363 (remote_multi_process_p): Move further below in the file.
7364 (struct packet_config): Add comments.
7365 (update_packet_config): Delete function.
7366 (show_packet_config_cmd): Use packet_config_support.
7367 (add_packet_config_cmd): Use NULL as set callback.
7368 (packet_ok): "set remote foo-packet"-style commands no longer
7369 change config->supported -- adjust.
7370 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7371 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7372 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7373 (PACKET_QNonStop, PACKET_multiprocess_feature)
7374 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7375 (PACKET_DisconnectedTracing_feature)
7376 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7377 (set_remote_protocol_packet_cmd): Delete function.
7378 (packet_config_support, packet_support): New functions.
7379 (set_remote_protocol_Z_packet_cmd): Don't call
7380 update_packet_config.
7381 (remote_query_attached, remote_pass_signals)
7382 (remote_program_signals, remote_threads_info)
7383 (remote_threads_extra_info, remote_start_remote): Use
7385 (remote_start_remote): Use packet_config_support and
7387 (init_all_packet_configs): Set all packets to unknown support,
7388 instead of calling update_packet_config.
7389 (remote_check_symbols): Use packet_support.
7390 (remote_supported_packet): Unconditionally set the packet config's
7392 (remote_multi_process_feature, remote_non_stop_feature)
7393 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7394 (remote_breakpoint_commands_feature)
7395 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7396 (remote_install_in_trace_feature)
7397 (remote_disconnected_tracing_feature)
7398 (remote_enable_disable_tracepoint_feature)
7399 (remote_string_tracing_feature)
7400 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7401 (remote_protocol_features): Adjust to use remote_supported_packet
7402 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7403 "ConditionalTracepoints", "ConditionalBreakpoints",
7404 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7405 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7406 "EnableDisableTracepoints", and "tracenz".
7407 (remote_query_supported): Use packet_support.
7408 (remote_open_1): Adjust.
7409 (extended_remote_attach_1): Use packet_support. Switch on the
7410 result of packet_ok instead of checking whether the packet ended
7412 (remote_vcont_resume): Use packet_support.
7413 (remote_resume, remote_stop_ns, fetch_register_using_p)
7414 (remote_prepare_to_store, store_register_using_P)
7415 (check_binary_download, remote_write_bytes): Use packet_support.
7416 (remote_vkill): Use packet_support. Switch on the result of
7417 packet_ok instead of checking whether the packet ended up
7419 (extended_remote_supports_disable_randomization): Use
7421 (extended_remote_run): Switch on the result of packet_ok instead
7422 of checking whether the packet ended up disabled.
7423 (remote_insert_breakpoint, remote_remove_breakpoint)
7424 (remote_insert_watchpoint, remote_remove_watchpoint)
7425 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7427 (remote_search_memory): Use packet_config_support.
7428 (remote_get_thread_local_address, remote_get_tib_address)
7429 (remote_hostio_send_command, remote_can_execute_reverse): Use
7431 (remote_supports_cond_tracepoints)
7432 (remote_supports_cond_breakpoints)
7433 (remote_supports_fast_tracepoints)
7434 (remote_supports_static_tracepoints)
7435 (remote_supports_install_in_trace)
7436 (remote_supports_enable_disable_tracepoint)
7437 (remote_supports_string_tracing)
7438 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7439 the packet config says the feature is enabled or disabled.
7440 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7441 (remote_get_trace_status): Use packet_support.
7442 (remote_set_disconnected_tracing): Adjust to check whether the
7443 feature is enabled with packet_support.
7444 (remote_set_trace_buffer_size, remote_use_agent)
7445 (remote_can_use_agent, remote_supports_btrace): Use
7447 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7448 Use packet_config_support.
7449 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7450 the packet config says the feature is enabled or disabled.
7451 (set_range_stepping): Use packet_support.
7453 2014-04-25 Tom Tromey <tromey@redhat.com>
7455 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7458 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7460 * NEWS: Mention support for C99 variable length arrays.
7462 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7464 * ada-lang.c (standard_exc): Expand introductory comment.
7466 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7467 Walfred Tedeschi <walfred.tedeschi@intel.com>
7469 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7471 (amd64_linux_read_description): Add code to handle AVX512 xstate
7472 mask and return respective tdesc.
7473 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7474 and features/i386/x32-avx512-linux.c.
7475 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7476 (amd64_linux_core_read_description): Add code to handle AVX512
7477 xstate mask and return respective tdesc.
7478 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7479 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7481 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7482 (tdesc_amd64_avx512_linux): New prototype.
7483 (tdesc_x32_avx512_linux): Likewise.
7484 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7485 features/i386/x32-avx512.c.
7486 (amd64_ymm_avx512_names): New register names for pseudo
7488 (amd64_ymmh_avx512_names): New register names for raw registers
7490 (amd64_k_names): New register names for K registers.
7491 (amd64_zmmh_names): New register names for ZMM raw registers.
7492 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7493 (amd64_xmm_avx512_names): New register names for XMM16-31
7495 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7497 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7498 if feature is present.
7499 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7500 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7501 (AMD64_NUM_REGS): Adjust to new number of registers.
7502 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7503 registers supplied via XSTATE by AVX512 registers.
7504 (i386_linux_read_description): Add case for AVX512.
7505 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7506 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7507 (i386_linux_core_read_description): Add case for AVX512.
7508 (i386_linux_init_abi): Install supported register note section
7510 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7512 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7513 registers to be number of zmm7h + 1.
7514 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7515 * i386-tdep.c: Include features/i386/i386-avx512.c.
7516 (i386_zmm_names): Add ZMM pseudo register names array.
7517 (i386_zmmh_names): Add ZMM raw register names array.
7518 (i386_k_names): Add K raw register names array.
7519 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7520 registers. AVX512 has 16 more ZMM registers than there are YMM
7522 (i386_zmmh_regnum_p): Add function to look up register number of
7524 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7525 (i386_k_regnum_p): Likewise for K raw registers.
7526 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7527 registers added by AVX512.
7528 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7529 registers added by AVX512.
7530 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7532 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7533 (i386_pseudo_register_name): Add ZMM pseudo registers.
7534 (i386_zmm_type): Construct and return vector registers type for ZMM
7536 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7537 ZMM0-31 pseudo registers and K registers.
7538 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7539 and YMM16-31 registers from register cache.
7540 (i386_pseudo_register_write): Add code to write K, ZMM and
7542 (i386_register_reggroup_p): Add code to include/exclude AVX512
7543 registers in/from respective register groups.
7544 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7545 registers if feature is present in xcr0.
7546 (i386_gdbarch_init): Add code to initialize AVX512 feature
7547 variables in tdep structure, wire in pseudo registers and call
7548 initialize_tdesc_i386_avx512.
7549 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7551 (i386_regnum): Add AVX512 registers.
7552 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7553 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7554 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7555 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7557 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7558 (i386_ymm_avx512_regnum_p): Likewise.
7559 (i386_k_regnum_p): Likewise.
7560 (i386_zmm_regnum_p): Likewise.
7561 (i386_zmmh_regnum_p): Likewise.
7562 * i387-tdep.c : Update year in copyright notice.
7563 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7565 (XSAVE_YMM_AVX512_ADDR): New macro.
7566 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7568 (XSAVE_XMM_AVX512_ADDR): New macro.
7569 (xsave_avx512_k_offset): New table for K register offsets in
7571 (XSAVE_AVX512_K_ADDR): New macro.
7572 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7574 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7575 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7577 (i387_collect_xsave): Add code to collect AVX512 registers from
7579 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7580 of XMM16-31 registers.
7581 (I387_NUM_K_REGS): New define for number of K registers.
7582 (I387_K0_REGNUM): New define for K0 register number.
7583 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7584 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7585 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7587 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7588 (I387_XMM16_REGNUM): New define for XMM16 register number.
7589 (I387_YMM0_REGNUM): New define for YMM0 register number.
7590 (I387_KEND_REGNUM): New define for last K register number.
7591 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7592 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7594 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7596 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7598 * features/Makefile: Add AVX512 related files.
7599 * features/i386/32bit-avx512.xml: New file.
7600 * features/i386/64bit-avx512.xml: Likewise.
7601 * features/i386/amd64-avx512-linux.c: Likewise.
7602 * features/i386/amd64-avx512-linux.xml: Likewise.
7603 * features/i386/amd64-avx512.c: Likewise.
7604 * features/i386/amd64-avx512.xml: Likewise.
7605 * features/i386/i386-avx512-linux.c: Likewise.
7606 * features/i386/i386-avx512-linux.xml: Likewise.
7607 * features/i386/i386-avx512.c: Likewise.
7608 * features/i386/i386-avx512.xml: Likewise.
7609 * features/i386/x32-avx512-linux.c: Likewise.
7610 * features/i386/x32-avx512-linux.xml: Likewise.
7611 * features/i386/x32-avx512.c: Likewise.
7612 * features/i386/x32-avx512.xml: Likewise.
7613 * regformats/i386/amd64-avx512-linux.dat: New file.
7614 * regformats/i386/amd64-avx512.dat: Likewise.
7615 * regformats/i386/i386-avx512-linux.dat: Likewise.
7616 * regformats/i386/i386-avx512.dat: Likewise.
7617 * regformats/i386/x32-avx512-linux.dat: Likewise.
7618 * regformats/i386/x32-avx512.dat: Likewise.
7619 * NEWS: Add note about new support for AVX512.
7622 2014-04-23 Pedro Alves <palves@redhat.com>
7624 * breakpoint.c (insert_bp_location): Tolerate errors if the
7625 breakpoint is set in a user-loaded objfile.
7626 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7627 location is marked shlib_disabled. If the breakpoint is set in a
7628 user-loaded objfile is a GDB-side memory breakpoint, validate it
7629 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7630 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7632 * mem-break.c (memory_validate_breakpoint): New function.
7633 * objfiles.c (userloaded_objfile_contains_address_p): New
7635 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7636 * target.h (memory_validate_breakpoint): New declaration.
7638 2014-04-23 Pedro Alves <palves@redhat.com>
7640 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7641 the breakpoint is set in a shared library, only suppress
7642 errors for software breakpoints, not hardware breakpoints.
7644 2014-04-22 Pedro Alves <palves@redhat.com>
7646 * infrun.c (schedlock_applies): New function, factored out from
7647 find_thread_needs_step_over.
7648 (find_thread_needs_step_over): Use it.
7649 (switch_back_to_stepped_thread): Always clear trap_expected if the
7650 step over is finished. Return early if scheduler locking applies.
7651 Look for the stepping thread and a potential step-over thread with
7653 (currently_stepping_or_nexting_callback): Delete.
7655 2014-04-22 Nick Clifton <nickc@redhat.com>
7657 * NEWS: Mention that ARM sim now supports tracing.
7659 2014-04-22 Yao Qi <yao@codesourcery.com>
7661 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7663 * tracefile.c (tracefile_fetch_registers): ... it. New
7665 * tracefile.h (tracefile_fetch_registers): Declare.
7666 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7667 tracefile_fetch_registers.
7669 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7672 * windows-nat.c (thread_rec): Don't display a warning when
7673 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7674 fails for any reason, set th->suspended to -1, so that we don't
7675 try to resume such a thread. Also, don't return NULL in these
7676 cases, to avoid completely ruin the session due to "PC register is
7677 not available" error.
7678 (do_windows_fetch_inferior_registers): Check errors in
7679 GetThreadContext call.
7680 (windows_continue): Accept an additional argument KILLED; if not
7681 zero, ignore errors in the SetThreadContext call, since the
7682 inferior was killed and is shutting down.
7683 (windows_resume, get_windows_debug_event)
7684 (windows_create_inferior, windows_mourn_inferior)
7685 (windows_kill_inferior): All callers of windows_continue changed
7686 to adjust to its new calling sequence.
7688 2014-04-19 Yao Qi <yao@codesourcery.com>
7690 * ctf.c (ctf_open): Call post_create_inferior.
7692 2014-04-19 Yao Qi <yao@codesourcery.com>
7694 * ctf.c (handle_id): New static variable.
7695 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7696 value. Get the declaration of event "register" and get length
7697 of field "contents".
7699 2014-04-19 Yao Qi <yao@codesourcery.com>
7701 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7703 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7705 * valops.c (oload_method_static): Remove unnecessary argument
7706 METHOD. Update all callers.
7708 2014-04-18 Pedro alves <palves@redhat.com>
7709 Tom Tromey <tromey@redhat.com>
7712 * frame.c (get_prev_frame_1): Rename to ...
7713 (get_prev_frame_always): ... this, and make extern. Adjust.
7714 (skip_artificial_frames): Use get_prev_frame_always.
7715 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7716 (get_frame_unwind_stop_reason): Adjust to rename.
7717 * frame.h (get_prev_frame_always): Declare.
7718 * inline-frame.c: Include frame.h.
7719 (inline_frame_this_id): Use get_prev_frame_always.
7721 2014-04-18 Tristan Gingold <gingold@adacore.com>
7723 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7724 code by using bfd_mach_o_get_base_address.
7726 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7728 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7729 (spu_ax_pseudo_register_collect): New function.
7730 (spu_ax_pseudo_register_push_stack): Likewise.
7731 (spu_dwarf_reg_to_regnum): Likewise.
7732 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7734 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
7736 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7737 Replace FRAME argument with FRAME_ID.
7738 * gdbarch.c, gdbarch.h: Regenerate.
7739 * findvar.c (default_value_from_register): Add GDBARCH argument;
7740 replace FRAME by FRAME_ID. No longer call get_frame_id.
7741 (value_from_register): Update call to gdbarch_value_from_register.
7742 * value.h (default_value_from_register): Update prototype.
7743 * s390-linux-tdep.c (s390_value_from_register): Update interface
7744 and call to default_value_from_register.
7745 * spu-tdep.c (spu_value_from_register): Likewise.
7747 * findvar.c (address_from_register): Remove TYPE argument.
7748 Do not call value_from_register; use gdbarch_value_from_register
7749 with null_frame_id instead.
7750 * value.h (address_from_register): Update prototype.
7751 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7752 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7753 address_from_register interface change.
7755 2014-04-17 Yao Qi <yao@codesourcery.com>
7757 * gdbtypes.h: Update comments to link to types and macros'
7760 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7762 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7764 2014-04-16 Keith Seitz <keiths@redhat.com>
7767 * dwarf2read.c (skip_one_die): Check that all relative-offset
7768 sibling DIEs fall within range of the current reader's buffer.
7769 (read_partial_die): Likewise.
7771 2014-04-16 Keith Seitz <keiths@redhat.com>
7774 * cp-namespace.c (lookup_symbol_file): If the type name of
7775 `this' is NULL, return immediately.
7777 2014-04-14 Keith Seitz <keiths@redhat.com>
7780 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7781 from symbol_matches_domain in symtab.c. All local callers
7782 of symbol_matches_domain updated.
7783 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7784 search STRUCT_DOMAIN.
7785 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7786 independently. standard_lookup will do that automatically.
7787 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7788 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7789 (cp_lookup_symbol_in_namespace): Likewise.
7790 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7791 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7792 may return a STRUCT_DOMAIN match.
7793 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7794 * cp-support.c: Include language.h.
7795 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7797 * psymtab.c (match_partial_symbol): Compare the requested
7798 domain with the symbol's domain directly.
7799 (lookup_partial_symbol): Likewise.
7800 * symtab.c (lookup_symbol_in_language): Explain when/why
7801 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7802 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7803 appropriate languages.
7804 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7805 and moved to ada-lang.c
7806 (lookup_block_symbol): Explain that this function only returns
7807 symbol matching the requested DOMAIN.
7808 Compare the requested domain with the symbol's domain directly.
7809 (iterate_over_symbols): Compare the requested domain with the
7810 symbol's domain directly.
7811 * symtab.h (symbol_matches_domain): Remove.
7813 2014-04-14 Tom Tromey <tromey@redhat.com>
7816 * c-exp.y (type_aggregate_p): New function.
7817 (qualified_name, classify_inner_name): Use it.
7818 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7819 and TYPE_TARGET_TYPE of an enum type.
7820 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7822 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7823 handle TYPE_DECLARED_CLASS.
7824 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7826 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7827 * valops.c (enum_constant_from_type): New function.
7828 (value_aggregate_elt): Use it.
7829 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7832 2014-04-14 Tom Tromey <tromey@redhat.com>
7834 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7835 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7837 * value.h (value_aggregate_elt): Update.
7839 2014-04-14 Tom Tromey <tromey@redhat.com>
7841 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7843 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7845 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7846 (evaluate_subexp_standard): Pass noside argument.
7847 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7848 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7849 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7850 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7851 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7853 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7855 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7856 points to a constant blob.
7858 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7860 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7861 property and store it as the high bound and flag the range accordingly.
7862 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7863 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7864 * gdbtypes.h (enum range_flags): New enum.
7865 (struct range_bounds): Add flags member.
7867 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7869 * c-typeprint.c (c_type_print_varspec_suffix): Added
7870 check for not yet resolved high bound. If unresolved, print
7871 "variable length" string to the console instead of random
7874 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7876 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7878 (ada_template_to_fixed_record_type_1): Likewise.
7879 (ada_to_fixed_type_1): Likewise.
7880 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7881 (cp_print_value): Likewise.
7882 * d-valprint.c (dynamic_array_type): Likewise.
7883 * findvar.c (address_of_variable): Likewise.
7884 * jv-valprint.c (java_value_print): Likewise.
7885 * valops.c (value_ind): Likewise.
7886 * value.c (coerce_ref): Likewise.
7888 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7890 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7891 value and retrieve the dynamic type size.
7893 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7895 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7896 passed to sizeof is dynamic evaluate the argument to compute the length.
7898 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7899 Joel Brobecker <brobecker@adacore.com>
7901 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7902 (dwarf2_evaluate_property): New function.
7903 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7904 * dwarf2read.c (attr_to_dynamic_prop): New function.
7905 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7907 * gdbtypes.c: Include dwarf2loc.h.
7908 (is_dynamic_type): New function.
7909 (resolve_dynamic_type): New function.
7910 (resolve_dynamic_bounds): New function.
7911 (get_type_length): New function.
7912 (check_typedef): Use get_type_length to compute type length.
7913 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7914 (TYPE_LOW_BOUND_KIND): New macro.
7915 (is_dynamic_type): New function prototype.
7916 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7917 to resolve dynamic properties of the type. Update comment.
7918 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7920 2014-04-14 Richard Henderson <rth@redhat.com>
7922 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7924 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7925 Doug Evans <xdje42@gmail.com>
7927 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7928 dereference TYPE_CODE_REF values.
7930 2014-04-11 Joel Brobecker <brobecker@adacore.com>
7932 Revert the following changes due to regressions:
7934 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7935 (dwarf2_evaluate_property): New function.
7936 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7937 * dwarf2read.c (attr_to_dynamic_prop): New function.
7938 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7940 * gdbtypes.c: Include dwarf2loc.h.
7941 (is_dynamic_type): New function.
7942 (resolve_dynamic_type): New function.
7943 (resolve_dynamic_bounds): New function.
7944 (get_type_length): New function.
7945 (check_typedef): Use get_type_length to compute type length.
7946 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7947 (TYPE_LOW_BOUND_KIND): New macro.
7948 (is_dynamic_type): New function prototype.
7949 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7950 to resolve dynamic properties of the type. Update comment.
7951 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7953 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7954 passed to sizeof is dynamic evaluate the argument to compute the length.
7956 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7957 value and retrieve the dynamic type size.
7959 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7960 (ada_template_to_fixed_record_type_1): Likewise.
7961 (ada_to_fixed_type_1): Likewise.
7962 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7963 (cp_print_value): Likewise.
7964 * d-valprint.c (dynamic_array_type): Likewise.
7965 * eval.c (evaluate_subexp_with_coercion): Likewise.
7966 * findvar.c (address_of_variable): Likewise.
7967 * jv-valprint.c (java_value_print): Likewise.
7968 * valops.c (value_ind): Likewise.
7969 * value.c (coerce_ref): Likewise.
7971 * c-typeprint.c (c_type_print_varspec_suffix): Added
7972 check for not yet resolved high bound. If unresolved, print
7973 "variable length" string to the console instead of random
7976 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7977 property and store it as the high bound and flag the range accordingly.
7978 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7979 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7980 * gdbtypes.h (enum range_flags): New enum.
7981 (struct range_bounds): Add flags member.
7983 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7984 points to a constant blob.
7986 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7987 (evaluate_subexp_standard): Pass noside argument.
7988 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7989 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7990 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7991 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7992 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7994 2014-04-11 Keith Seitz <keiths@redhat.com>
7997 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7998 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8001 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8003 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8004 (evaluate_subexp_standard): Pass noside argument.
8005 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8006 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8007 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8008 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8009 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8011 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8013 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8014 points to a constant blob.
8016 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8018 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8019 property and store it as the high bound and flag the range accordingly.
8020 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8021 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8022 * gdbtypes.h (enum range_flags): New enum.
8023 (struct range_bounds): Add flags member.
8025 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8027 * c-typeprint.c (c_type_print_varspec_suffix): Added
8028 check for not yet resolved high bound. If unresolved, print
8029 "variable length" string to the console instead of random
8032 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8034 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8035 (ada_template_to_fixed_record_type_1): Likewise.
8036 (ada_to_fixed_type_1): Likewise.
8037 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8038 (cp_print_value): Likewise.
8039 * d-valprint.c (dynamic_array_type): Likewise.
8040 * eval.c (evaluate_subexp_with_coercion): Likewise.
8041 * findvar.c (address_of_variable): Likewise.
8042 * jv-valprint.c (java_value_print): Likewise.
8043 * valops.c (value_ind): Likewise.
8044 * value.c (coerce_ref): Likewise.
8046 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8048 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8049 value and retrieve the dynamic type size.
8051 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8053 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8054 passed to sizeof is dynamic evaluate the argument to compute the length.
8056 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8058 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8059 (dwarf2_evaluate_property): New function.
8060 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8061 * dwarf2read.c (attr_to_dynamic_prop): New function.
8062 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8064 * gdbtypes.c: Include dwarf2loc.h.
8065 (is_dynamic_type): New function.
8066 (resolve_dynamic_type): New function.
8067 (resolve_dynamic_bounds): New function.
8068 (get_type_length): New function.
8069 (check_typedef): Use get_type_length to compute type length.
8070 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8071 (TYPE_LOW_BOUND_KIND): New macro.
8072 (is_dynamic_type): New function prototype.
8073 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8074 to resolve dynamic properties of the type. Update comment.
8075 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8079 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8080 declaring high/low bounds and change uses accordingly. Call
8081 create_range_type instead of create_static_range_type.
8082 * gdbtypes.c (create_range_type): New function.
8083 (create_range_type): Convert bounds into struct bound_prop and pass
8084 them to create_range_type.
8085 * gdbtypes.h (struct bound_prop): New struct.
8086 (create_range_type): New function prototype.
8087 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8088 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8089 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8091 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8093 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8095 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8096 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8097 * ada-lang.c: All uses of create_range_type updated.
8098 * coffread.c: All uses of create_range_type updated.
8099 * dwarf2read.c: All uses of create_range_type updated.
8100 * f-exp.y: All uses of create_range_type updated.
8101 * m2-valprint.c: All uses of create_range_type updated.
8102 * mdebugread.c: All uses of create_range_type updated.
8103 * stabsread.c: All uses of create_range_type updated.
8104 * valops.c: All uses of create_range_type updated.
8105 * valprint.c: All uses of create_range_type updated.
8107 2014-04-10 Pedro Alves <palves@redhat.com>
8109 * breakpoint.c (single_step_breakpoints)
8110 (single_step_gdbarch): Move up in the file.
8111 (one_breakpoint_xfer_memory): New function, factored out from ...
8112 (breakpoint_xfer_memory): ... here. Also process single-step
8115 2014-04-09 Tristan Gingold <gingold@adacore.com>
8117 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8119 (darwin_decode_exception_message): Free port only after use.
8121 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8123 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8124 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8125 when setting the size of call_length.
8127 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8129 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8130 dereference TYPE_CODE_REF values.
8132 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8134 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8135 end of warning message.
8137 2014-04-03 Doug Evans <dje@google.com>
8139 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8140 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8142 2014-04-02 Alan Modra <amodra@gmail.com>
8144 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8145 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8146 (struct symbol_file_add_from_memory_args): Add size field.
8147 (find_vdso_size): New function.
8148 (add_vsyscall_page): Attempt to find vdso size.
8150 2014-04-01 Doug Evans <dje@google.com>
8152 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8154 2014-04-01 Tristan Gingold <gingold@adacore.com>
8156 * darwin-nat.c (darwin_encode_reply): Add prototype.
8157 (darwin_decode_exception_message): Reply to unknown inferiors.
8158 (darwin_decode_message): Handle message by id. Ignore message
8159 to unknown inferior.
8160 (darwin_wait): Discard unknown messages, add debug trace.
8162 2014-03-31 Doug Evans <dje@google.com>
8164 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8167 2014-03-31 Doug Evans <dje@google.com>
8169 New option "set print symbol-loading".
8171 * solib.c (solib_read_symbols): Only print symbol loading messages
8173 (solib_add): If symbol loading is in "brief" mode, notify user
8174 symbols are being loaded.
8175 (reload_shared_libraries_1): Ditto.
8176 * symfile.c (print_symbol_loading_off): New static global.
8177 (print_symbol_loading_brief): New static global.
8178 (print_symbol_loading_full): New static global.
8179 (print_symbol_loading_enums): New static global.
8180 (print_symbol_loading): New static global.
8181 (print_symbol_loading_p): New function.
8182 (symbol_file_add_with_addrs): Only print symbol loading messages
8184 (_initialize_symfile): Register "print symbol-loading" set/show
8186 * symfile.h (print_symbol_loading_p): Declare.
8188 2014-03-30 Doug Evans <xdje42@gmail.com>
8190 * infrun.c (set_last_target_status): New function.
8191 (handle_inferior_event): Call it.
8193 2014-03-30 Doug Evans <xdje42@gmail.com>
8195 * inferior.h (enum stop_kind): Improve comment.
8197 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8199 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8200 a reference, strip the reference layer before calling
8201 the lang_ops value_has_mutated callback.
8203 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8205 Remove some globals from our parser.
8206 * language.c (unk_lang_parser): Add "struct parser_state"
8208 * language.h (struct language_defn) <la_parser>: Likewise.
8209 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8210 (initialize_expout): Add "struct parser_state" argument.
8211 Rewrite function to use the parser state.
8212 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8213 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8214 write_exp_elt_longcst, write_exp_elt_dblcst,
8215 write_exp_elt_decfloatcst, write_exp_elt_type,
8216 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8217 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8218 write_dollar_variable): Likewise.
8219 (parse_exp_in_context_1): Use parser state.
8220 (insert_type_address_space): Add "struct parser_state" argument.
8222 (increase_expout_size): New function.
8223 * parser-defs.h: Forward declare "struct language_defn" and
8224 "struct parser_state".
8225 (expout, expout_size, expout_ptr): Remove extern declarations.
8226 (parse_gdbarch, parse_language): Rewrite macro declarations to
8227 accept the parser state.
8228 (struct parser_state): New struct.
8229 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8230 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8231 write_exp_elt_decfloatcst, write_exp_elt_type,
8232 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8233 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8234 write_exp_msymbol, write_dollar_variable,
8235 mark_struct_expression, insert_type_address_space): Add "struct
8236 parser_state" argument.
8237 (increase_expout_size): New function.
8238 * utils.c (do_clear_parser_state): New function.
8239 (make_cleanup_clear_parser_state): Likewise.
8240 * utils.h (make_cleanup_clear_parser_state): New function
8242 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8243 Update calls to write_exp* in order to pass the parser state.
8244 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8245 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8246 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8247 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8248 * stap-probe.c (stap_parse_register_operand): Likewise.
8249 (stap_parse_single_operand): Likewise.
8250 (stap_parse_argument_1): Likewise.
8251 (stap_parse_argument): Use parser state.
8252 * stap-probe.h: Include "parser-defs.h".
8253 (struct stap_parse_info) <pstate>: New field.
8254 * c-exp.y (parse_type): Rewrite to use parser state.
8255 (yyparse): Redefine to c_parse_internal.
8256 (pstate): New global variable.
8257 (parse_number): Add "struct parser_state" argument.
8258 (write_destructor_name): Likewise.
8259 (type_exp): Update calls to write_exp* and similars in order to
8261 (exp1, exp, variable, qualified_name, space_identifier,
8262 typename, typebase): Likewise.
8263 (write_destructor_name, parse_number, lex_one_token,
8264 classify_name, classify_inner_name, c_parse): Add "struct
8265 parser_state" argument. Update function to use parser state.
8266 * c-lang.h: Forward declare "struct parser_state".
8267 (c_parse): Add "struct parser_state" argument.
8268 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8269 (yyparse): Redefine macro to ada_parse_internal.
8270 (pstate): New variable.
8271 (write_int, write_object_renaming, write_var_or_type,
8272 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8273 type_int, type_long, type_long_long, type_float, type_double,
8274 type_long_double, type_char, type_boolean, type_system_address):
8275 Add "struct parser_state" argument.
8276 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8277 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8278 var_or_type, aggregate, aggregate_component_list,
8279 positional_list, others, component_group,
8280 component_associations): Update calls to write_exp* and similar
8281 functions in order to use parser state.
8282 (ada_parse, write_var_from_sym, write_int,
8283 write_exp_op_with_string, write_object_renaming,
8284 find_primitive_type, write_selectors, write_ambiguous_var,
8285 write_var_or_type, write_name_assoc, type_int, type_long,
8286 type_long_long, type_float, type_double, type_long_double,
8287 type_char, type_boolean, type_system_address): Add "struct
8288 parser_state" argument. Adjust function to use parser state.
8289 * ada-lang.c (parse): Likewise.
8290 * ada-lang.h: Forward declare "struct parser_state".
8291 (ada_parse): Add "struct parser_state" argument.
8292 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8293 calls to both functions.
8294 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8296 (yyparse): Redefine macro to f_parse_internal.
8297 (pstate): New variable.
8298 (parse_number): Add "struct parser_state" argument.
8299 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8300 and similars in order to use parser state.
8301 (parse_number): Adjust code to use parser state.
8303 (f_parse): New function.
8304 * f-lang.h: Forward declare "struct parser_state".
8305 (f_parse): Add "struct parser_state" argument.
8306 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8308 (yyparse): Redefine macro for java_parse_internal.
8309 (pstate): New variable.
8310 (push_expression_name, push_expression_name, insert_exp): Add
8311 "struct parser_state" argument.
8312 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8313 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8314 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8315 PostIncrementExpression, PostDecrementExpression,
8316 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8317 UnaryExpressionNotPlusMinus, CastExpression,
8318 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8319 RelationalExpression, EqualityExpression, AndExpression,
8320 ExclusiveOrExpression, InclusiveOrExpression,
8321 ConditionalAndExpression, ConditionalOrExpression,
8322 ConditionalExpression, Assignment, LeftHandSide): Update
8323 calls to write_exp* and similars in order to use parser state.
8324 (parse_number): Ajust code to use parser state.
8326 (java_parse): New function.
8327 (push_variable): Add "struct parser_state" argument. Adjust
8328 code to user parser state.
8329 (push_fieldnames, push_qualified_expression_name,
8330 push_expression_name, insert_exp): Likewise.
8331 * jv-lang.h: Forward declare "struct parser_state".
8332 (java_parse): Add "struct parser_state" argument.
8333 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8335 (yyparse): Redefine macro to m2_parse_internal.
8336 (pstate): New variable.
8337 (type_exp, exp, fblock, variable, type): Update calls to
8338 write_exp* and similars to use parser state.
8340 (m2_parse): New function.
8341 * m2-lang.h: Forward declare "struct parser_state".
8342 (m2_parse): Add "struct parser_state" argument.
8343 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8344 * objc-lang.h: Forward declare "struct parser_state".
8345 (end_msglist): Add "struct parser_state" argument.
8346 * p-exp.y (parse_type): Rewrite macro to use parser state.
8347 (yyparse): Redefine macro to pascal_parse_internal.
8348 (pstate): New variable.
8349 (parse_number): Add "struct parser_state" argument.
8350 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8351 write_exp* and similars in order to use parser state.
8352 (parse_number, yylex): Adjust code to use parser state.
8353 (pascal_parse): New function.
8354 * p-lang.h: Forward declare "struct parser_state".
8355 (pascal_parse): Add "struct parser_state" argument.
8356 * go-exp.y (parse_type): Rewrite macro to use parser state.
8357 (yyparse): Redefine macro to go_parse_internal.
8358 (pstate): New variable.
8359 (parse_number): Add "struct parser_state" argument.
8360 (type_exp, exp1, exp, variable, type): Update calls to
8361 write_exp* and similars in order to use parser state.
8362 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8363 to use parser state.
8364 (go_parse): Likewise.
8365 * go-lang.h: Forward declare "struct parser_state".
8366 (go_parse): Add "struct parser_state" argument.
8368 2014-03-27 Doug Evans <dje@google.com>
8370 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8372 2014-03-27 Doug Evans <dje@google.com>
8374 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8375 Remove argument abbrev_section. All callers updated.
8377 2014-03-27 Doug Evans <dje@google.com>
8379 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8380 addr_base, ranges_base.
8382 2014-03-26 Keith Seitz <keiths@redhat.com>
8384 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8385 types, not VAR_DOMAIN.
8387 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8389 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8391 * features/nios2-linux.c: Regenerated.
8392 * features/nios2.c: Regenerated.
8394 2014-03-25 Pedro Alves <palves@redhat.com>
8396 * cli/cli-script.c (script_from_file): Force the interpreter to
8399 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8401 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8402 small stack allocation.
8404 2014-03-24 Tristan Gingold <gingold@adacore.com>
8406 * darwin-nat.c (exc_server): Remove unused prototype.
8407 (darwin_dump_message): Correctly display data on x86_64.
8408 (darwin_encode_reply): Fix style.
8409 Add comments and fix indentation.
8411 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8413 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8415 2014-03-22 Doug Evans <xdje42@gmail.com>
8417 * infcmd.c: Whitespace fixes.
8418 (interrupt_command): Merge two function comments into one.
8420 2014-03-22 Doug Evans <xdje42@gmail.com>
8422 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8425 2014-03-22 Yao Qi <yao@codesourcery.com>
8427 * remote.c (target_read_live_memory): Remove.
8428 (memory_xfer_live_readonly_partial): Rename it to
8429 remote_xfer_live_readonly_partial. Remove argument 'object'.
8430 All callers updated. Call remote_read_bytes_1
8431 instead of target_read_live_memory.
8432 * tracepoint.c (set_traceframe_number): Remove.
8433 (make_cleanup_restore_traceframe_number): Likewise .
8434 * tracepoint.h (set_traceframe_number): Remove declaration.
8435 (make_cleanup_restore_traceframe_number): Likewise.
8437 2014-03-22 Yao Qi <yao@codesourcery.com>
8439 * remote.c (remote_read_bytes): Move code on reading from the
8441 (remote_read_bytes_1): ... here. New function.
8443 2014-03-22 Yao Qi <yao@codesourcery.com>
8445 * ctf.c (ctf_xfer_partial): Check the return value of
8446 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8447 return TARGET_XFER_UNAVAILABLE.
8448 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8449 * target.c (target_read_live_memory): Move it to remote.c.
8450 (memory_xfer_live_readonly_partial): Likewise.
8451 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8452 * remote.c (target_read_live_memory): Moved from target.c.
8453 (memory_xfer_live_readonly_partial): Likewise.
8454 (remote_read_bytes): Factored out from
8455 memory_xfer_partial_1.
8457 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8459 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8462 2014-03-21 Pedro Alves <palves@redhat.com>
8464 * infrun.c (normal_stop): Extend comment.
8466 2014-03-21 Hui Zhu <hui@codesourcery.com>
8467 Pedro Alves <palves@redhat.com>
8469 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8471 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8472 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8473 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8475 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8477 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8478 `z' formatted output modifier.
8480 2014-03-20 Tom Tromey <tromey@redhat.com>
8481 Sergio Durigan Junior <sergiodj@redhat.com>
8483 * probe.c (parse_probes): Turn assert into an ordinary error.
8484 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8485 exceptions when parsing probes. Rearrange the code for clarity.
8487 2014-03-20 Tom Tromey <tromey@redhat.com>
8490 * top.c (execute_command): Only dispatch events if the command
8493 2014-03-20 Tom Tromey <tromey@redhat.com>
8496 * infcall.c: Include event-top.h.
8497 (run_inferior_call): Call async_disable_stdin if needed.
8499 2014-03-20 Pedro Alves <palves@redhat.com>
8501 * infrun.c (prepare_to_proceed): Delete.
8502 (thread_still_needs_step_over): New function.
8503 (find_thread_needs_step_over): New function.
8504 (proceed): If the current thread needs a step-over, set its
8505 steping_over_breakpoint flag. Adjust to use
8506 find_thread_needs_step_over instead of prepare_to_proceed.
8507 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8508 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8510 (switch_back_to_stepped_thread): Step over breakpoints of all
8511 threads not the stepping thread, before switching back to the
8514 2014-03-20 Pedro Alves <palves@redhat.com>
8516 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8518 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8519 * infrun.c (saved_singlestep_ptid)
8520 (stepping_past_singlestep_breakpoint): Delete.
8521 (resume): Remove stepping_past_singlestep_breakpoint handling.
8522 (proceed): Store the prev_pc of the stepping thread too.
8523 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8525 (enum infwait_states): Delete infwait_thread_hop_state.
8526 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8528 (handle_inferior_event): Adjust.
8529 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8530 handling and the thread-hop code. Before removing single-step
8531 breakpoints, check whether the thread hit a single-step breakpoint
8532 of another thread. If it did, the trap is not a random signal.
8533 (switch_back_to_stepped_thread): If the event thread hit a
8534 single-step breakpoint, unblock it before switching to the
8535 stepping thread. Handle the case of the stepped thread having
8537 (keep_going): Handle the case of the current thread moving past a
8538 single-step breakpoint.
8540 2014-03-20 Pedro Alves <palves@redhat.com>
8543 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8544 are being stepped over.
8545 (breakpoint_address_match): Make extern.
8546 * breakpoint.h (breakpoint_address_match): New declaration.
8547 * inferior.h (stepping_past_instruction_at): New declaration.
8548 * infrun.c (struct step_over_info): New type.
8549 (step_over_info): New global.
8550 (set_step_over_info, clear_step_over_info)
8551 (stepping_past_instruction_at): New functions.
8552 (handle_inferior_event): Clear the step-over info when
8553 trap_expected is cleared.
8554 (resume): Remove now stale comment.
8555 (clear_proceed_status): Clear step-over info.
8556 (proceed): Adjust step-over handling to set or clear the step-over
8557 info instead of removing all breakpoints.
8558 (handle_signal_stop): When setting up a thread-hop, don't remove
8560 (stop_stepping): Clear step-over info.
8561 (keep_going): Adjust step-over handling to set or clear step-over
8562 info and then always inserting breakpoints, instead of removing
8563 all breakpoints when stepping over one.
8565 2014-03-20 Pedro Alves <palves@redhat.com>
8567 * infrun.c (previous_inferior_ptid): Adjust comment.
8568 (deferred_step_ptid): Delete.
8569 (infrun_thread_ptid_changed, prepare_to_proceed)
8570 (init_wait_for_inferior): Adjust.
8571 (handle_signal_stop): Delete deferred_step_ptid handling.
8573 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8576 * defs.h (sync_quit_force_run): New declaration.
8577 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8578 * event-top.c (async_sigterm_handler): New declaration.
8579 (async_sigterm_token): New variable.
8580 (async_init_signals): Create also async_sigterm_token.
8581 (async_sigterm_handler): New function.
8582 (sync_quit_force_run): New variable.
8583 (handle_sigterm): Replace quit_force call by other calls.
8584 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8586 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8588 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8589 offset into SPE pseudo registers.
8591 2014-03-18 Pedro Alves <palves@redhat.com>
8594 * inferior.h (print_stop_event): Declare.
8595 * infrun.c (print_stop_event): New, factored out from ...
8596 (normal_stop): ... this.
8597 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8598 of bpstat_print/print_stack_frame.
8600 2014-03-17 Tom Tromey <tromey@redhat.com>
8602 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8604 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8606 * ada-lang.c (decode_constrained_packed_array): Perform a
8607 minimal coercion for reference with coerce_ref instead of
8610 2014-03-17 Tristan Gingold <gingold@adacore.com>
8612 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8613 (darwin_solib_create_inferior_hook): Emit a warning if version
8616 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
8618 * python/py-value.c (get_field_flag): Cast flag_name argument to
8619 PyObject_GetAttrString to support Python 2.4.
8621 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8623 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8624 (Global Maintainers): Remove Jan Kratochvil.
8626 2014-03-14 Pedro Alves <palves@redhat.com>
8628 * inferior.h (terminal_ours_for_output): Rename to ...
8629 (child_terminal_ours_for_output): ... this.
8630 (terminal_save_ours): Rename to ...
8631 (child_terminal_save_ours): ... this.
8632 (terminal_ours): Rename to ...
8633 (child_terminal_ours): ... this.
8634 (terminal_inferior): Rename to ...
8635 (child_terminal_inferior): ... this.
8636 (terminal_init_inferior): Rename to ...
8637 (child_terminal_init_inferior): ... this.
8638 (terminal_init_inferior_with_pgrp): Rename to ...
8639 (child_terminal_init_inferior_with_pgrp): ... this.
8640 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8641 (child_terminal_init_with_pgrp): ... this.
8642 (terminal_save_ours): Rename to ...
8643 (child_terminal_save_ours): ... this.
8644 (terminal_init_inferior): Rename to ...
8645 (child_terminal_init): ... this. Adjust.
8646 (terminal_inferior): Rename to ...
8647 (child_terminal_inferior): ... this.
8648 (terminal_ours_for_output): Rename to ...
8649 (child_terminal_ours_for_output): ... this. Adjust.
8650 (terminal_ours): Rename to ...
8651 (child_terminal_ours): ... this.
8652 (terminal_ours_1): Rename to ...
8653 (child_terminal_ours_1): ... this. Adjust.
8654 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8655 * windows-nat.c (do_initial_windows_stuff): Adjust.
8656 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8657 (gnu_terminal_init): ... this. Adjust.
8658 (gnu_target): Adjust.
8659 * inf-child.c (inf_child_target): Adjust.
8661 2014-03-13 Doug Evans <xdje42@gmail.com>
8664 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8667 2014-03-13 Doug Evans <xdje42@gmail.com>
8669 * value.c (record_latest_value): Call release_value_or_incref
8670 instead of release_value.
8672 2014-03-13 Pedro Alves <palves@redhat.com>
8674 * procfs.c (procfs_target): Don't override to_shortname,
8675 to_longname or to_doc.
8677 2014-03-13 Pedro Alves <palves@redhat.com>
8679 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8680 Unix in user visible strings.
8682 2014-03-12 Stan Shebs <stan@codesourcery.com>
8684 * gdbtypes.h: Annotate comments for Doxygen, add a page
8685 block comment with some general info.
8687 2014-03-12 Pedro Alves <palves@redhat.com>
8689 * infcmd.c (prepare_execution_command): New function, factored out
8690 from several execution commands.
8691 (run_command_1, continue_command, step_1, jump_command)
8692 (signal_command, until_command, advance_command, finish_command)
8693 (attach_command): Use prepare_execution_command.
8695 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8697 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8700 (struct arm_linux_thread_points): Removed.
8701 (struct arm_linux_process_info): New.
8702 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8703 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8704 (arm_linux_find_breakpoints_by_tid): Removed.
8705 (struct arch_lwp_info): New.
8706 (arm_linux_find_process_pid): New functions.
8707 (arm_linux_add_process): New functions.
8708 (arm_linux_process_info_get): New functions.
8709 (arm_linux_forget_process): New function.
8710 (arm_linux_get_debug_reg_state): New function.
8711 (struct update_registers_data): New.
8712 (update_registers_callback): New function.
8713 (arm_linux_insert_hw_breakpoint1): Updated.
8714 (arm_linux_remove_hw_breakpoint1): Updated.
8715 (arm_linux_insert_hw_breakpoint): Updated.
8716 (arm_linux_remove_hw_breakpoint): Updated.
8717 (arm_linux_insert_watchpoint): Updated.
8718 (arm_linux_remove_watchpoint): Updated.
8719 (arm_linux_new_thread): Updated.
8720 (arm_linux_prepare_to_resume): New function.
8721 (arm_linux_new_fork): New function.
8722 (_initialize_arm_linux_nat): Updated.
8724 2014-03-12 Pedro Alves <palves@redhat.com>
8726 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8728 2014-03-12 Tom Tromey <tromey@redhat.com>
8730 * inf-child.c (return_zero): New function.
8731 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8732 * aix-thread.c (aix_thread_inferior_created): New function.
8733 (aix_thread_attach): Remove.
8734 (init_aix_thread_ops): Don't set to_attach.
8735 (_initialize_aix_thread): Register inferior_created observer.
8736 * corelow.c (init_core_ops): Don't set to_attach or
8738 * exec.c (init_exec_ops): Don't set to_attach or
8740 * infcmd.c (run_command_1): Use find_run_target. Make direct
8742 (attach_command): Use find_attach_target. Make direct target
8744 * record-btrace.c (init_record_btrace_ops): Don't set
8746 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8748 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8749 set to_create_inferior.
8750 * target.c (complete_target_initialization): Add assertion.
8751 (target_create_inferior): Remove.
8752 (find_default_attach, find_default_create_inferior): Remove.
8753 (find_attach_target, find_run_target): New functions.
8754 (find_default_is_async_p, find_default_can_async_p)
8755 (target_supports_non_stop, target_attach): Remove.
8756 (init_dummy_target): Don't set to_create_inferior or
8757 to_supports_non_stop.
8758 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8759 TARGET_DEFAULT_FUNC.
8760 <to_create_inferior>: Add comment.
8761 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8762 TARGET_DEFAULT_RETURN.
8763 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8764 (find_attach_target, find_run_target): Declare.
8765 (target_create_inferior): Remove.
8766 (target_has_execution_1): Update comment.
8767 (target_supports_non_stop): Remove.
8768 * target-delegates.c: Rebuild.
8770 2014-03-12 Pedro Alves <palves@redhat.com>
8772 * inf-child.h: Update comment to not mention Unix.
8774 2014-03-12 Pedro Alves <palves@redhat.com>
8776 * inf-child.c: Update top comment to not mention Unix. Add
8777 generic comment describing how this target is meant to be used.
8778 (inf_child_post_attach, inf_child_post_startup_inferior)
8779 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8782 2014-03-12 Pedro Alves <palves@redhat.com>
8784 * nto-procfs.c: Include inf-child.h.
8785 (procfs_ops): Delete global.
8786 (procfs_can_run): Delete method.
8787 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8788 target pointer instead of referencing procfs_ops.
8789 (procfs_prepare_to_store): Delete.
8790 (init_procfs_ops): Delete function.
8791 (procfs_target): New function, based on init_procfs_ops, but
8792 inherit inf_child_target.
8793 (_initialize_procfs): Use procfs_target.
8795 2014-03-12 Pedro Alves <palves@redhat.com>
8797 * windows-nat.c: Include inf-child.h.
8798 (windows_ops): Delete global.
8799 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8801 (init_windows_ops): Delete function.
8802 (windows_target): New function, based on init_windows_ops, but
8803 inherit inf_child_target.
8804 (_initialize_windows_nat): Use windows_target. Install x86
8805 specific target methods here.
8807 2014-03-10 Doug Evans <xdje42@gmail.com>
8809 * guile/guile.c (call_initialize_gdb_module): New function.
8810 (initialize_guile): Replace call to scm_init_guile with call to
8813 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8815 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8816 in call to TYPE_CODE macro.
8818 2014-03-10 Jerome Guitton <guitton@adacore.com>
8820 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8821 Resolve tagged types to full view.
8823 2014-03-10 Hui Zhu <hui@codesourcery.com>
8825 * target.h (target_insert_breakpoint): Remove "hardware" from its
8828 2014-03-07 Doug Evans <dje@google.com>
8830 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8832 2014-03-07 Doug Evans <dje@google.com>
8834 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8835 Remove unused local comp_dir_attr. Assert exactly one of
8836 stub_comp_unit_die, stub_comp_dir is non-NULL.
8838 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8840 * target.h (complete_target_initialization, add_target):
8843 2014-03-07 Pedro Alves <palves@redhat.com>
8845 * go32-nat.c: Include inf-child.h.
8846 (go32_ops): Delete global.
8847 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8849 (go32_create_inferior): Push the passed in target pointer instead
8850 of referencing go32_ops.
8851 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8852 (go32_target): New function, based on init_go32_ops, but inherit
8854 (_initialize_go32_nat): Use go32_target. Move parts of
8857 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8859 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8860 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8861 SYMBOL_VALUE_ADDRESS.
8862 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8864 2014-03-06 Yao Qi <yao@codesourcery.com>
8866 * breakpoint.c (get_tracepoint_by_number): Remove argument
8867 optional_p. All callers updated. Adjust comments. Update
8869 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8871 2014-03-06 Yao Qi <yao@codesourcery.com>
8873 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8874 early if get_number returns zero. Use 'p' instead of 'args'.
8876 2014-03-06 Yao Qi <yao@codesourcery.com>
8878 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8881 2014-03-06 Yao Qi <yao@codesourcery.com>
8883 PR breakpoints/16508
8884 * tracepoint.c (check_trace_running): New function.
8885 (trace_find_command): Move code to check_trace_running and
8886 call check_trace_running.
8887 (trace_find_pc_command): Likewise.
8888 (trace_find_tracepoint_command): Likewise.
8889 (trace_find_line_command): Likewise.
8890 (trace_find_range_command): Likewise.
8891 * tracepoint.h (check_trace_running): Likewise.
8892 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8894 2014-03-06 Yao Qi <yao@codesourcery.com>
8896 * target.h (struct target_ops) <to_traceframe_info>: Use
8897 TARGET_DEFAULT_NORETURN (tcomplain ()).
8898 * target-delegates.c: Regenerated.
8900 2014-03-05 Pedro Alves <palves@redhat.com>
8903 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8904 void. Update comment.
8905 (dcache_xfer_memory): Delete.
8906 (dcache_read_memory_partial): New, based on the read bits of
8908 (dcache_update): Add status parameter. Use ULONGEST for len, and
8909 adjust. Discard cache lines if the reason for the update was
8911 * dcache.h (dcache_xfer_memory): Delete declaration.
8912 (dcache_read_memory_partial): New declaration.
8913 (dcache_update): Update prototype.
8914 * target.c (raw_memory_xfer_partial): Update the dcache here.
8915 (memory_xfer_partial_1): Don't handle dcache writes here.
8917 2014-03-05 Mike Frysinger <vapier@gentoo.org>
8919 * remote-sim.c (gdbsim_load): Add const to prog.
8921 2014-03-03 Tom Tromey <tromey@redhat.com>
8923 * elfread.c (probe_key): Change to bfd_data.
8924 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8925 now per-BFD, not per-objfile.
8926 * stap-probe.c (stap_probe_destroy): Update comment.
8927 (handle_stap_probe): Allocate on the per-BFD obstack.
8929 2014-03-03 Tom Tromey <tromey@redhat.com>
8931 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8932 * breakpoint.c (create_longjmp_master_breakpoint): Use
8934 (add_location_to_breakpoint, bkpt_probe_insert_location)
8935 (bkpt_probe_remove_location): Update.
8936 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8937 * elfread.c (elf_symfile_relocate_probe): Remove.
8938 (elf_probe_fns): Update.
8939 (insert_exception_resume_breakpoint): Change type of "probe"
8940 parameter to bound_probe.
8941 (check_exception_resume): Update.
8942 * objfiles.c (objfile_relocate1): Don't relocate probes.
8943 * probe.c (bound_probe_s): New typedef.
8944 (parse_probes): Use get_probe_address. Set sal's objfile.
8945 (find_probe_by_pc): Return a bound_probe.
8946 (collect_probes): Return a VEC(bound_probe_s).
8947 (compare_probes): Update.
8948 (gen_ui_out_table_header_info): Change type of "probes"
8950 (info_probes_for_ops): Update.
8951 (get_probe_address): New function.
8952 (probe_safe_evaluate_at_pc): Update.
8953 * probe.h (struct probe_ops) <get_probe_address>: New field.
8954 <set_semaphore, clear_semaphore>: Add objfile parameter.
8955 (struct probe) <objfile>: Remove field.
8957 <address>: Update comment.
8958 (struct bound_probe): New.
8959 (find_probe_by_pc): Return a bound_probe.
8960 (get_probe_address): Declare.
8961 * solib-svr4.c (struct probe_and_action) <address>: New field.
8962 (hash_probe_and_action, equal_probe_and_action): Update.
8963 (register_solib_event_probe): Add address parameter.
8964 (solib_event_probe_at): Update.
8965 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8967 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8968 (stap_get_probe_address): New function.
8969 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8970 (compile_probe_arg): Update.
8971 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8973 (handle_stap_probe): Don't relocate the probe.
8974 (stap_relocate): Remove.
8975 (stap_gen_info_probes_table_values): Update.
8976 (stap_probe_ops): Remove stap_relocate.
8977 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8978 (debug_sym_probe_fns): Update.
8979 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8980 * symtab.c (init_sal): Use memset.
8981 * symtab.h (struct symtab_and_line) <objfile>: New field.
8982 * tracepoint.c (start_tracing, stop_tracing): Update.
8984 2014-03-03 Tom Tromey <tromey@redhat.com>
8986 * probe.h (parse_probes, find_probe_by_pc)
8987 (find_probes_in_objfile): Fix comments.
8989 2014-03-02 Doug Evans <xdje42@gmail.com>
8991 * infrun.c (handle_signal_stop): Replace test for
8992 TARGET_WAITKIND_STOPPED with an assert.
8994 2014-03-02 Doug Evans <xdje42@gmail.com>
8996 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8998 2014-03-02 Doug Evans <xdje42@gmail.com>
9000 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9002 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9004 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9006 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9008 * i386obsd-nat.c: Include "obsd-nat.h".
9009 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9011 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9013 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9015 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9017 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9019 * mips64obsd-nat.c: Include "obsd-nath".
9020 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9022 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9024 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9026 * amd64obsd-nat.c: Include "obsd-nat,h.
9027 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9029 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9031 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9033 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9034 (find_overload_match): Update call to find_oload_champ.
9035 (find_oload_champ_namespace_loop): Likewise
9037 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9039 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9041 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9042 * config/sparc/obsd64.mh: New file.
9043 * sparc64obsd-nat.c: New file.
9045 * obsd-nat.h: New file.
9046 * obsd-nat.c: New file.
9047 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9048 (ALLDEPFILES): Add obsd-nat.c.
9050 2014-02-28 Tom Tromey <tromey@redhat.com>
9052 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9053 * cli-out.h (cli_ui_out_impl): Now const.
9054 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9055 * ui-out.c (struct ui_out) <impl>: Now const.
9056 (default_ui_out_impl): Now const.
9057 (ui_out_new): Make 'impl' parameter const.
9058 * ui-out.h (ui_out_new): Update.
9060 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9062 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9064 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9066 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9068 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9070 Additional PR 8882 fix.
9071 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9073 2014-02-27 Pedro Alves <palves@redhat.com>
9075 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9078 2014-02-27 Pedro Alves <palves@redhat.com>
9081 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9082 * nat/linux-waitpid.c: Include string.h.
9083 (status_to_str): Moved here and made extern.
9084 * nat/linux-waitpid.h (status_to_str): New declaration.
9086 2014-02-27 Hui Zhu <hui@codesourcery.com>
9089 * infrun.c (ptid_match): Move ...
9090 * common/ptid.c (ptid_match): ... here.
9091 * inferior.h (ptid_match): Move ...
9092 * common/ptid.h (ptid_match): ... here.
9094 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9096 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9097 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9100 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9102 * obsd-tdep.c (obsd_auxv_parse): New function.
9103 (obsd_init_abi): Set auxv_parse.
9105 * gdbarch.sh (auxv_parse): New.
9106 * gdbarch.h: Regenerated.
9107 * gdbarch.c: Regenerated.
9108 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9110 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9112 * guile/scm-value.c (gdbscm_history_append_x): New function.
9113 (value_functions): Add it.
9115 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9117 * dwarf2read.c (attr_value_as_address): New function.
9118 (dwarf2_find_base_address, read_call_site_scope): Use
9119 attr_value_as_address in place of DW_ADDR.
9120 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9121 the low and high addresses. Slight rework of the handling
9122 of the high pc being a constant form, and limit it to
9123 DWARF verson 4 or higher.
9124 (dwarf2_record_block_ranges): Likewise.
9125 (read_partial_die): Likewise.
9126 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9128 2014-02-26 Tom Tromey <tromey@redhat.com>
9130 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9132 2014-02-26 Tom Tromey <tromey@redhat.com>
9134 * elfread.c (elf_read_minimal_symbols): Return early if
9135 minimal symbols have already been read. Add "ei" parameter.
9136 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9137 * minsyms.c (prim_record_minimal_symbol_full): Update.
9138 * objfiles.h (struct objstats) <n_minsyms>: Move...
9139 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9140 * symmisc.c (print_objfile_statistics): Update.
9142 2014-02-26 Tom Tromey <tromey@redhat.com>
9144 * elfread.c (elf_read_minimal_symbols): New function, from
9146 (elf_symfile_read): Call it.
9148 2014-02-26 Tom Tromey <tromey@redhat.com>
9150 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9151 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9152 (lookup_minimal_symbol_solib_trampoline)
9153 (lookup_minimal_symbol_by_pc_section_1)
9154 (lookup_minimal_symbol_and_objfile): Update.
9155 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9156 Don't allocate a minimal symbol if minsyms have already been read.
9157 (build_minimal_symbol_hash_tables): Update.
9158 (install_minimal_symbols): Do nothing if minsyms already read.
9159 Use the per-BFD obstack.
9160 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9161 * objfiles.c (allocate_objfile): Call
9162 terminate_minimal_symbol_table later.
9163 (have_minimal_symbols): Update.
9164 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9165 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9166 Move from struct objfile.
9167 <minsyms_read>: New field.
9168 (struct objfile) <msymbols, minimal_symbol_count,
9169 msymbol_hash, msymbol_demangled_hash>: Move.
9170 (ALL_OBJFILE_MSYMBOLS): Update.
9171 * symfile.c (read_symbols): Set minsyms_read.
9172 (reread_symbols): Update.
9173 * symmisc.c (dump_objfile, dump_msymbols): Update.
9175 2014-02-26 Tom Tromey <tromey@redhat.com>
9177 * minsyms.c (msymbols_sort): Remove.
9178 * minsyms.h (msymbols_sort): Remove.
9179 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9180 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9181 * elfread.c (elf_symtab_read): Don't add section offsets.
9182 * xcoffread.c (record_minimal_symbol): Don't add section offset
9183 to minimal symbol address.
9184 * somread.c (text_offset, data_offset): Remove.
9185 (som_symtab_read): Don't add section offsets to minimal symbol
9187 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9188 Don't add section offsets to minimal symbols.
9189 * coffread.c (coff_symtab_read): Don't add section offsets
9190 to minimal symbol addresses.
9191 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9192 to minimal symbol addresses.
9193 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9194 section offset to minimal symbol addresses.
9195 * mdebugread.c (parse_partial_symbols): Don't add section
9196 offset to minimal symbol addresses.
9197 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9198 offset to minimal symbol addresses.
9200 2014-02-26 Tom Tromey <tromey@redhat.com>
9202 * ada-lang.c (ada_main_name): Update.
9203 (ada_add_standard_exceptions): Update.
9204 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9205 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9206 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9207 * auxv.c (ld_so_xfer_auxv): Update.
9208 * avr-tdep.c (avr_scan_prologue): Update.
9209 * ax-gdb.c (gen_var_ref): Update.
9210 * blockframe.c (get_pc_function_start)
9211 (find_pc_partial_function_gnu_ifunc): Update.
9212 * breakpoint.c (create_overlay_event_breakpoint)
9213 (create_longjmp_master_breakpoint)
9214 (create_std_terminate_master_breakpoint)
9215 (create_exception_master_breakpoint): Update.
9216 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9217 * c-valprint.c (c_val_print): Update.
9218 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9219 * common/agent.c (agent_look_up_symbols): Update.
9220 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9221 * dwarf2loc.c (call_site_to_target_addr): Update.
9222 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9223 * elfread.c (elf_gnu_ifunc_record_cache)
9224 (elf_gnu_ifunc_resolve_by_got): Update.
9225 * findvar.c (default_read_var_value): Update.
9226 * frame.c (inside_main_func): Update.
9227 * frv-tdep.c (frv_frame_this_id): Update.
9228 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9229 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9231 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9232 (hppa_hpux_find_dummy_bpaddr): Update.
9233 * hppa-tdep.c (hppa_symbol_address): Update.
9234 * infcmd.c (until_next_command): Update.
9235 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9237 * linespec.c (minsym_found, add_minsym): Update.
9238 * linux-nat.c (get_signo): Update.
9239 * linux-thread-db.c (inferior_has_bug): Update.
9240 * m32c-tdep.c (m32c_return_value)
9241 (m32c_m16c_address_to_pointer): Update.
9242 * m32r-tdep.c (m32r_frame_this_id): Update.
9243 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9244 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9245 * maint.c (maintenance_translate_address): Update.
9246 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9247 (frob_address): New function.
9248 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9249 frob_address. Rename parameter to "pc_in".
9250 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9252 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9254 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9255 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9256 * objc-lang.c (find_objc_msgsend): Update.
9257 * objfiles.c (objfile_relocate1): Update.
9258 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9259 * p-valprint.c (pascal_val_print): Update.
9260 * parse.c (write_exp_msymbol): Update.
9261 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9262 (ppc_elfv2_skip_entrypoint): Update.
9263 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9264 * printcmd.c (build_address_symbolic, msym_info)
9265 (address_info): Update.
9266 * proc-service.c (ps_pglobal_lookup): Update.
9267 * psymtab.c (find_pc_sect_psymtab_closer)
9268 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9269 Change msymbol parameter to bound_minimal_symbol.
9270 * ravenscar-thread.c (get_running_thread_id): Update.
9271 * remote.c (remote_check_symbols): Update.
9272 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9274 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9275 * solib-dsbt.c (lm_base): Update.
9276 * solib-frv.c (lm_base, main_got): Update.
9277 * solib-irix.c (locate_base): Update.
9278 * solib-som.c (som_solib_create_inferior_hook)
9279 (link_map_start): Update.
9280 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9281 * solib-svr4.c (elf_locate_base, enable_break): Update.
9282 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9283 (flush_ea_cache): Update.
9284 * stabsread.c (define_symbol, scan_file_globals): Update.
9285 * stack.c (find_frame_funname): Update.
9286 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9287 (debug_qf_find_pc_sect_symtab): Update.
9288 * symfile.c (simple_read_overlay_table)
9289 (simple_overlay_update): Update.
9290 * symfile.h (struct quick_symbol_functions)
9291 <find_pc_sect_symtab>: Change type of msymbol to
9292 bound_minimal_symbol.
9293 * symmisc.c (dump_msymbols): Update.
9294 * symtab.c (find_pc_sect_symtab_via_partial)
9295 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9296 (search_symbols, print_msymbol_info): Update.
9297 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9298 (MSYMBOL_VALUE_ADDRESS): Redefine.
9299 (BMSYMBOL_VALUE_ADDRESS): New macro.
9300 * tracepoint.c (scope_info): Update.
9301 * tui/tui-disasm.c (tui_find_disassembly_address)
9302 (tui_get_begin_asm_address): Update.
9303 * valops.c (find_function_in_inferior): Update.
9304 * value.c (value_static_field, value_fn_field): Update.
9306 2014-02-26 Tom Tromey <tromey@redhat.com>
9308 * ada-lang.c (ada_update_initial_language): Update.
9309 (ada_main_name, ada_has_this_exception_support): Update.
9310 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9311 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9312 * arm-tdep.c (arm_skip_stub): Update.
9313 * auxv.c (ld_so_xfer_auxv): Update.
9314 * avr-tdep.c (avr_scan_prologue): Update.
9315 * ax-gdb.c (gen_var_ref): Update.
9316 * breakpoint.c (struct breakpoint_objfile_data)
9317 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9318 type to bound_minimal_symbol.
9319 (create_overlay_event_breakpoint)
9320 (create_longjmp_master_breakpoint)
9321 (create_std_terminate_master_breakpoint)
9322 (create_exception_master_breakpoint): Update.
9323 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9324 * c-exp.y (classify_name): Update.
9325 * coffread.c (coff_symfile_read): Update.
9326 * common/agent.c (agent_look_up_symbols): Update.
9327 * d-lang.c (d_main_name): Update.
9328 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9329 * dec-thread.c (enable_dec_thread): Update.
9330 * dwarf2loc.c (call_site_to_target_addr): Update.
9331 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9332 * eval.c (evaluate_subexp_standard): Update.
9333 * findvar.c (struct minsym_lookup_data) <result>: Change type
9334 to bound_minimal_symbol.
9336 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9337 * frame.c (inside_main_func): Update.
9338 * frv-tdep.c (frv_frame_this_id): Update.
9339 * gcore.c (call_target_sbrk): Update.
9340 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9341 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9343 * go-lang.c (go_main_name): Update.
9344 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9345 (hppa_hpux_find_import_stub_for_addr): Update.
9346 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9347 Update. Change return type.
9348 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9350 * jit.c (jit_breakpoint_re_set_internal): Update.
9351 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9353 * linux-nat.c (get_signo): Update.
9354 * linux-thread-db.c (inferior_has_bug): Update
9355 * m32c-tdep.c (m32c_return_value)
9356 (m32c_m16c_address_to_pointer): Update.
9357 * m32r-tdep.c (m32r_frame_this_id): Update.
9358 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9359 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9360 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9361 lookup_minimal_symbol. Change return type.
9362 (lookup_minimal_symbol): Remove.
9363 (lookup_bound_minimal_symbol): Update.
9364 (lookup_minimal_symbol_text): Change return type.
9365 (lookup_minimal_symbol_solib_trampoline): Change return type.
9366 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9367 (lookup_minimal_symbol_solib_trampoline): Change return type.
9368 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9369 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9370 (value_nsstring, find_imps): Update.
9371 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9372 * p-lang.c (pascal_main_name): Update.
9373 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9374 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9375 * proc-service.c (ps_pglobal_lookup): Update.
9376 * ravenscar-thread.c (get_running_thread_msymbol): Change
9378 (has_ravenscar_runtime, get_running_thread_id): Update.
9379 * remote.c (remote_check_symbols): Update.
9380 * sol-thread.c (ps_pglobal_lookup): Update.
9381 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9382 * solib-dsbt.c (lm_base): Update.
9383 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9385 * solib-irix.c (locate_base): Update.
9386 * solib-som.c (som_solib_create_inferior_hook)
9387 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9389 * solib-spu.c (spu_enable_break): Update.
9390 * solib-svr4.c (elf_locate_base, enable_break): Update.
9391 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9392 (flush_ea_cache): Update.
9393 * stabsread.c (define_symbol): Update.
9394 * symfile.c (simple_read_overlay_table): Update.
9395 * symtab.c (find_pc_sect_line): Update.
9396 * tracepoint.c (scope_info): Update.
9397 * tui-disasm.c (tui_get_begin_asm_address): Update.
9398 * value.c (value_static_field): Update.
9400 2014-02-26 Tom Tromey <tromey@redhat.com>
9402 * minsyms.c (prim_record_minimal_symbol_full): Use
9403 SET_MSYMBOL_VALUE_ADDRESS.
9404 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9405 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9406 SET_MSYMBOL_VALUE_ADDRESS.
9407 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9408 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9410 2014-02-26 Tom Tromey <tromey@redhat.com>
9412 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9413 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9414 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9415 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9416 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9417 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9418 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9419 * ada-lang.c (ada_main_name): Update.
9420 (ada_lookup_simple_minsym): Update.
9421 (ada_make_symbol_completion_list): Update.
9422 (ada_add_standard_exceptions): Update.
9423 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9424 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9425 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9426 * arm-tdep.c (skip_prologue_function): Update.
9427 (arm_skip_stack_protector, arm_skip_stub): Update.
9428 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9429 (arm_wince_skip_main_prologue): Update.
9430 * auxv.c (ld_so_xfer_auxv): Update.
9431 * avr-tdep.c (avr_scan_prologue): Update.
9432 * ax-gdb.c (gen_var_ref): Update.
9433 * block.c (call_site_for_pc): Update.
9434 * blockframe.c (get_pc_function_start): Update.
9435 (find_pc_partial_function_gnu_ifunc): Update.
9436 * breakpoint.c (create_overlay_event_breakpoint): Update.
9437 (create_longjmp_master_breakpoint): Update.
9438 (create_std_terminate_master_breakpoint): Update.
9439 (create_exception_master_breakpoint): Update.
9440 (resolve_sal_pc): Update.
9441 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9442 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9444 * c-valprint.c (c_val_print): Update.
9445 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9446 * coffread.c (coff_symfile_read): Update.
9447 * common/agent.c (agent_look_up_symbols): Update.
9448 * dbxread.c (find_stab_function_addr): Update.
9449 (end_psymtab): Update.
9450 * dwarf2loc.c (call_site_to_target_addr): Update.
9451 (func_verify_no_selftailcall): Update.
9452 (tailcall_dump): Update.
9453 (call_site_find_chain_1): Update.
9454 (dwarf_expr_reg_to_entry_parameter): Update.
9455 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9456 (elf_gnu_ifunc_resolve_by_got): Update.
9457 * f-valprint.c (info_common_command): Update.
9458 * findvar.c (read_var_value): Update.
9459 * frame.c (get_prev_frame_1): Update.
9460 (inside_main_func): Update.
9461 * frv-tdep.c (frv_skip_main_prologue): Update.
9462 (frv_frame_this_id): Update.
9463 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9464 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9465 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9466 (gnuv3_skip_trampoline): Update.
9467 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9468 (hppa64_hpux_in_solib_call_trampoline): Update.
9469 (hppa_hpux_skip_trampoline_code): Update.
9470 (hppa64_hpux_search_dummy_call_sequence): Update.
9471 (hppa_hpux_find_import_stub_for_addr): Update.
9472 (hppa_hpux_find_dummy_bpaddr): Update.
9473 * hppa-tdep.c (hppa_symbol_address)
9474 (hppa_lookup_stub_minimal_symbol): Update.
9475 * i386-tdep.c (i386_skip_main_prologue): Update.
9476 (i386_pe_skip_trampoline_code): Update.
9477 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9478 * infcall.c (get_function_name): Update.
9479 * infcmd.c (until_next_command): Update.
9480 * jit.c (jit_breakpoint_re_set_internal): Update.
9481 (jit_inferior_init): Update.
9482 * linespec.c (minsym_found): Update.
9483 (add_minsym): Update.
9484 * linux-fork.c (info_checkpoints_command): Update.
9485 * linux-nat.c (get_signo): Update.
9486 * linux-thread-db.c (inferior_has_bug): Update.
9487 * m32c-tdep.c (m32c_return_value): Update.
9488 (m32c_m16c_address_to_pointer): Update.
9489 (m32c_m16c_pointer_to_address): Update.
9490 * m32r-tdep.c (m32r_frame_this_id): Update.
9491 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9492 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9493 * maint.c (maintenance_translate_address): Update.
9494 * minsyms.c (add_minsym_to_hash_table): Update.
9495 (add_minsym_to_demangled_hash_table): Update.
9496 (msymbol_objfile): Update.
9497 (lookup_minimal_symbol): Update.
9498 (iterate_over_minimal_symbols): Update.
9499 (lookup_minimal_symbol_text): Update.
9500 (lookup_minimal_symbol_by_pc_name): Update.
9501 (lookup_minimal_symbol_solib_trampoline): Update.
9502 (lookup_minimal_symbol_by_pc_section_1): Update.
9503 (lookup_minimal_symbol_and_objfile): Update.
9504 (prim_record_minimal_symbol_full): Update.
9505 (compare_minimal_symbols): Update.
9506 (compact_minimal_symbols): Update.
9507 (build_minimal_symbol_hash_tables): Update.
9508 (install_minimal_symbols): Update.
9509 (terminate_minimal_symbol_table): Update.
9510 (find_solib_trampoline_target): Update.
9511 (minimal_symbol_upper_bound): Update.
9512 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9513 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9514 (mips_skip_pic_trampoline_code): Update.
9515 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9516 * objc-lang.c (selectors_info): Update.
9517 (classes_info): Update.
9518 (find_methods): Update.
9519 (find_imps): Update.
9520 (find_objc_msgsend): Update.
9521 * objfiles.c (objfile_relocate1): Update.
9522 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9523 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9524 * p-valprint.c (pascal_val_print): Update.
9525 * parse.c (write_exp_msymbol): Update.
9526 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9527 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9528 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9529 * printcmd.c (build_address_symbolic): Update.
9531 (address_info): Update.
9532 * proc-service.c (ps_pglobal_lookup): Update.
9533 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9534 (find_pc_sect_psymtab): Update.
9535 * python/py-framefilter.c (py_print_frame): Update.
9536 * ravenscar-thread.c (get_running_thread_id): Update.
9537 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9539 * remote.c (remote_check_symbols): Update.
9540 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9541 (rs6000_skip_trampoline_code): Update.
9542 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9543 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9544 * solib-dsbt.c (lm_base): Update.
9545 * solib-frv.c (lm_base): Update.
9547 * solib-irix.c (locate_base): Update.
9548 * solib-som.c (som_solib_create_inferior_hook): Update.
9549 (som_solib_desire_dynamic_linker_symbols): Update.
9550 (link_map_start): Update.
9551 * solib-spu.c (spu_enable_break): Update.
9552 (ocl_enable_break): Update.
9553 * solib-svr4.c (elf_locate_base): Update.
9554 (enable_break): Update.
9555 * spu-tdep.c (spu_get_overlay_table): Update.
9556 (spu_catch_start): Update.
9557 (flush_ea_cache): Update.
9558 * stabsread.c (define_symbol): Update.
9559 (scan_file_globals): Update.
9560 * stack.c (find_frame_funname): Update.
9561 (frame_info): Update.
9562 * symfile.c (simple_read_overlay_table): Update.
9563 (simple_overlay_update): Update.
9564 * symmisc.c (dump_msymbols): Update.
9565 * symtab.c (fixup_section): Update.
9566 (find_pc_sect_line): Update.
9567 (skip_prologue_sal): Update.
9568 (search_symbols): Update.
9569 (print_msymbol_info): Update.
9570 (rbreak_command): Update.
9571 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9572 (completion_list_objc_symbol): Update.
9573 (default_make_symbol_completion_list_break_on): Update.
9574 * tracepoint.c (scope_info): Update.
9575 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9576 (tui_get_begin_asm_address): Update.
9577 * valops.c (find_function_in_inferior): Update.
9578 * value.c (value_static_field): Update.
9579 (value_fn_field): Update.
9581 2014-02-26 Tom Tromey <tromey@redhat.com>
9583 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9584 bound minimal symbols. Move code that knows about minsym
9586 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9588 * minsyms.h (minimal_symbol_upper_bound): Declare.
9589 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9590 minimal_symbol_upper_bound.
9592 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9594 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9595 Use the type's name if its basic type does not have a tag.
9597 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9599 * dwarf2read.c (read_subrange_type): Add comment.
9601 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9603 * dwarf2read.c (update_enumeration_type_from_children): New
9604 function, mostly extracted from process_structure_scope.
9605 (read_enumeration_type): Call update_enumeration_type_from_children.
9606 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9607 and flag_flag_enum fields.
9609 2014-02-26 Pedro Alves <palves@redhat.com>
9611 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9612 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9613 to_xfer_partial method.
9615 2014-02-26 Pedro Alves <palves@redhat.com>
9617 * target.c (complete_target_initialization): Don't install
9618 default_xfer_partial as to_xfer_partial hook.
9620 (update_current_target): Don't INHERIT nor de_fault
9621 deprecated_xfer_memory. Delete de_fault macro.
9622 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9623 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9624 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9627 2014-02-26 Pedro Alves <palves@redhat.com>
9629 * go32-nat.c (my_write_child): New function.
9630 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9631 (go32_xfer_partial): New function.
9632 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9633 Instead install a to_xfer_partial hook.
9635 2014-02-26 Pedro Alves <palves@redhat.com>
9637 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9638 to_xfer_partial helper. Rewrite.
9639 (procfs_xfer_partial): New function.
9640 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9641 Install a to_xfer_partial hook.
9643 2014-02-26 Pedro Alves <palves@redhat.com>
9645 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9646 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9647 (m32r_xfer_partial): New function.
9648 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9649 Install a to_xfer_partial hook.
9651 2014-02-26 Pedro Alves <palves@redhat.com>
9653 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9655 (mips_xfer_partial): New function.
9656 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9657 hook. Install a to_xfer_partial hook.
9659 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9661 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9662 * gdbtypes.c (create_array_type_with_stride): New function,
9663 renaming create_array_type, but with an added parameter
9664 called "bit_stride".
9665 (create_array_type): Re-implement using
9666 create_array_type_with_stride.
9667 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9668 and DW_AT_bit_stride attributes.
9670 2014-02-26 Pedro Alves <palves@redhat.com>
9672 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9673 task-specific breakpoints.
9675 2014-02-25 Pedro Alves <palves@redhat.com>
9677 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9678 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9680 2014-02-25 Stan Shebs <stan@codesourcery.com>
9682 * defs.h: Annotate comments for Doxygen.
9684 2014-02-25 Tom Tromey <tromey@redhat.com>
9686 * target.h (target_ignore): Don't declare.
9687 * target.c (target_ignore): Remove.
9689 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9692 * auto-load.c (auto_load_objfile_script_1): Change filename to
9695 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9697 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9698 documentation. Adjust prototype to match the target_ops
9699 to_xfer_partial method. Adjust implementation accordingly.
9701 2014-02-25 Hui Zhu <hui@codesourcery.com>
9703 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9706 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9708 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9709 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9710 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9711 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9712 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9713 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9714 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9715 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9717 (rl78_register_type): Use a data pointer type for SP and
9718 new pseudo registers mentioned above. Use a 16 bit integer
9719 type for all other register pairs.
9720 (rl78_register_name, rl78_g10_register_name): Update for
9721 new pseudo registers.
9722 (rl78_pseudo_register_read): Likewise.
9723 (rl78_pseudo_register_write): Likewise.
9724 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9725 to the newly added pseudo registers.
9727 2014-02-24 Doug Evans <dje@google.com>
9729 * value.c (record_latest_value): Fix comment.
9730 * printcmd.c (print_command_1): Remove code to handle -1 return from
9731 record_latest_value.
9733 2014-02-24 Pedro Alves <palves@redhat.com>
9735 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9736 deprecated_xfer_memory hook.
9737 (procfs_xfer_partial): Call procfs_xfer_memory instead
9738 of the deprecated_xfer_memory target hook.
9739 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9742 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9744 * windows-nat.c (windows_xfer_shared_libraries): Return
9745 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9746 requested object is TARGET_OBJECT_LIBRARIES.
9748 2014-02-24 Yao Qi <yao@codesourcery.com>
9750 * target.h (enum target_xfer_status)
9751 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9752 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9754 * corefile.c (memory_error_message): User updated.
9755 * exec.c (section_table_read_available_memory): Likewise.
9756 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9757 * target.c (target_xfer_status_to_string): Likewise.
9758 (raw_memory_xfer_partial): Likewise.
9759 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9760 * valops.c (read_value_memory): Likewise.
9761 * exec.h: Update comments.
9763 2014-02-24 Yao Qi <yao@codesourcery.com>
9765 * target.c (target_xfer_status_to_string): Rename argument err
9767 * target.h (target_xfer_status_to_string): Update declaration.
9768 Replace target_xfer_error_to_string with
9769 target_xfer_status_to_string in comment.
9771 2014-02-24 Yao Qi <yao@codesourcery.com>
9773 * mips-linux-nat.c (super_close): Update its type.
9774 (mips_linux_close): Pass 'self' to super_close.
9776 2014-02-24 Yao Qi <yao@codesourcery.com>
9778 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9779 * corefile.c (read_memory): Adjusted.
9780 * target.c (target_write_with_progress): Adjusted.
9782 2014-02-23 Yao Qi <yao@codesourcery.com>
9786 2013-10-25 Yao Qi <yao@codesourcery.com>
9788 * remote.c (remote_traceframe_info): Return early if
9789 traceframe is not selected.
9791 2013-07-19 Yao Qi <yao@codesourcery.com>
9793 * target.c (update_current_target): Change the default action
9794 of 'to_traceframe_info' from tcomplain to return_zero.
9795 * target.h (struct target_ops) <to_traceframe_info>: Add more
9798 2014-02-23 Yao Qi <yao@codesourcery.com>
9800 * valops.c (read_value_memory): Rewrite it. Call
9801 target_xfer_partial in a loop.
9802 * exec.h (section_table_available_memory): Remove declaration.
9803 Move comments to ...
9804 * exec.c (section_table_available_memory): ... here. Make it
9807 2014-02-23 Yao Qi <yao@codesourcery.com>
9809 * exec.c (section_table_read_available_memory): New function.
9810 * exec.h (section_table_read_available_memory): Declare.
9811 * ctf.c (ctf_xfer_partial): Call
9812 section_table_read_available_memory.
9813 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9815 2014-02-23 Yao Qi <yao@codesourcery.com>
9817 * ctf.c (ctf_xfer_partial): Move code to ...
9818 * exec.c (exec_read_partial_read_only): ... it. New function.
9819 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9820 * tracefile.c: Include "exec.h".
9821 * exec.h (exec_read_partial_read_only): Declare.
9823 2014-02-23 Yao Qi <yao@codesourcery.com>
9825 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9826 (tfile_has_memory): Remove.
9827 (init_tfile_ops): Don't set fields to_has_all_memory and
9828 to_has_memory of tfile_ops.
9829 * tracefile.c (tracefile_has_all_memory): New function.
9830 (tracefile_has_memory): New function.
9831 (init_tracefile_ops): Initialize fields to_has_all_memory and
9832 to_has_memory of 'ops'.
9834 2014-02-23 Yao Qi <yao@codesourcery.com>
9836 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9837 (ctf_thread_alive, ctf_get_trace_status): Remove.
9838 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9840 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9841 (tfile_has_stack, tfile_has_registers): Remove.
9842 (tfile_thread_alive): Remove.
9843 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9845 * tracefile.c (tracefile_has_stack): New function.
9846 (tracefile_has_registers): New function.
9847 (tracefile_thread_alive): New function.
9848 (tracefile_get_trace_status): New function.
9849 (init_tracefile_ops): New function.
9850 * tracefile.h (init_tracefile_ops): Declare.
9852 2014-02-23 Yao Qi <yao@codesourcery.com>
9854 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9855 (O_LARGEFILE): Likewise.
9856 (tfile_ops): Likewise.
9857 (TRACE_HEADER_SIZE): Likewise.
9858 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9859 (cur_data_size): Likewise.
9860 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9861 (tfile_close, tfile_files_info): Likewise.
9862 (tfile_get_trace_status): Likewise.
9863 (tfile_get_tracepoint_status): Likewise.
9864 (tfile_get_traceframe_address): Likewise.
9865 (tfile_trace_find, match_blocktype): Likewise.
9866 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9867 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9868 (tfile_get_trace_state_variable_value): Likewise.
9869 (tfile_has_all_memory, tfile_has_memory): Likewise.
9870 (tfile_has_stack, tfile_has_registers): Likewise.
9871 (tfile_thread_alive, build_traceframe_info): Likewise.
9872 (tfile_traceframe_info, init_tfile_ops): Likewise.
9873 (_initialize_tracepoint): Don't call init_tfile_ops
9874 and add_target_with_completer.
9875 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9876 exec.h, completer.h and filenames.h.
9877 (_initialize_tracefile_tfile): New function.
9879 2014-02-23 Yao Qi <yao@codesourcery.com>
9881 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9883 (HFILES_NO_SRCDIR): Add tracefile.h.
9884 * ctf.c: Include "tracefile.h".
9885 * tracefile.h: New file.
9886 * tracefile.c: New file
9887 * tracefile-tfile.c: New file.
9888 * tracepoint.c: Include "tracefile.h".
9889 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9890 (stop_reason_names): Add const.
9891 (trace_file_writer_xfree): Move it to tracefile.c.
9892 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9893 (trace_save_ctf): Likewise.
9894 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9895 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9896 (tfile_write_header, tfile_write_regblock_type): Likewise.
9897 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9898 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9899 (tfile_write_raw_data, tfile_end): Likewise.
9900 (tfile_trace_file_writer_new): Likewise.
9901 (free_uploaded_tp): Make it extern.
9902 (free_uploaded_tsv): Make it extern.
9903 (_initialize_tracepoint): Move code to register command 'tsave'
9905 * tracepoint.h (stop_reason_names): Declare.
9906 (struct trace_frame_write_ops): Move it to tracefile.h.
9907 (struct trace_file_write_ops): Likewise.
9908 (struct trace_file_writer): Likewise.
9909 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9911 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9914 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9916 (get_cores_used_by_process): New parameter num_cores, use it.
9917 (linux_xfer_osdata_processes): Pass num_cores to it.
9918 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9921 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9923 * target.c (memory_xfer_partial): Fix length arg in call to
9924 breakpoint_xfer_memory.
9926 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9929 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9930 number comes after the + or - signs. Adjust length of register
9931 name to be extracted.
9933 2014-02-20 Tom Tromey <tromey@redhat.com>
9935 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9936 (ada_varobj_ops): Mark "extern".
9938 2014-02-20 Tom Tromey <tromey@redhat.com>
9940 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9942 2014-02-20 Doug Evans <xdje42@gmail.com>
9944 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9945 All callers updated.
9946 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9947 All callers updated.
9948 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9949 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9951 2014-02-20 lin zuojian <manjian2006@gmail.com>
9952 Joel Brobecker <brobecker@adacore.com>
9953 Doug Evans <xdje42@gmail.com>
9956 * dwarf2read.c (struct die_info): New member in_process.
9957 (reset_die_in_process): New function.
9958 (process_die): Set it at the start, reset when returning.
9959 (inherit_abstract_dies): Only call process_die if origin_child_die
9960 not already being processed.
9962 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9964 * windows-nat.c (handle_unload_dll): Add function documentation.
9965 (do_initial_windows_stuff): Add comment explaining why we wait
9966 until after inferior initialization has finished before
9967 processing all DLLs.
9969 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9971 * windows-nat.c (get_module_name): Delete.
9972 (windows_get_exec_module_filename): New function, mostly
9973 inspired from get_module_name.
9974 (windows_pid_to_exec_file): Replace call to get_module_name
9975 by call to windows_get_exec_module_filename.
9977 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9979 * windows-nat.c (handle_load_dll): Rewrite this function's
9980 introductory comment. Remove code using get_module_name
9981 to get the DLL's name.
9983 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9985 * windows-nat.c (get_windows_debug_event): Ignore
9986 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9987 if windows_initialization_done == 0.
9988 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9989 Adjust implementation to always load all DLLs.
9990 (do_initial_windows_stuff): Replace call to
9991 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9993 2014-02-20 Joel Brobecker <brobecker@adacore.com>
9995 * windows-nat.c (_initialize_windows_nat): Deprecate the
9996 "dll-symbols" command. Turn the "add-shared-symbol-files"
9997 and "assf" aliases into commands, and deprecate them as well.
9998 * NEWS: Add entry explaining that "dll-symbols" and its two
9999 aliases are now deprecated.
10001 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10003 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10004 new-line in debug string. Remove trailing spaces.
10006 2014-02-19 Stan Shebs <stan@codesourcery.com>
10008 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10010 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10012 * NEWS: Add entry for the new feature
10013 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10016 2014-02-19 Stan Shebs <stan@codesourcery.com>
10018 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10020 2014-02-19 Pedro Alves <palves@redhat.com>
10022 * common/ptid.h (struct ptid): Mention that process_stratum
10023 targets should prefer ptid.lwp.
10025 2014-02-19 Pedro Alves <palves@redhat.com>
10027 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10028 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10029 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10030 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10031 store remote thread ids rather than ptid.tid.
10032 (_initialize_remote): Adjust.
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10036 * target.c (target_get_unwinder): Rewrite.
10037 (target_get_tailcall_unwinder): Rewrite.
10038 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10039 (record_btrace_to_get_tailcall_unwinder): New function.
10040 (init_record_btrace_ops): Update.
10041 * target.h (struct target_ops) <to_get_unwinder,
10042 to_get_tailcall_unwinder>: Now function pointers. Use
10043 TARGET_DEFAULT_RETURN.
10045 2014-02-19 Tom Tromey <tromey@redhat.com>
10047 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10049 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10051 2014-02-19 Tom Tromey <tromey@redhat.com>
10053 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10055 * target-delegates.c: Rebuild.
10056 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10057 TARGET_DEFAULT_FUNC.
10058 * target.c (default_target_decr_pc_after_break): Rename from
10059 forward_target_decr_pc_after_break. Simplify.
10060 (target_decr_pc_after_break): Rely on delegation.
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * target.c (update_current_target): Do not INHERIT to_doc or
10065 to_magic. Do not de_fault to_open or to_close.
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10069 * gcore.h (objfile_find_memory_regions): Declare.
10070 * gcore.c (objfile_find_memory_regions): No longer static. Add
10072 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10073 * exec.c: Include gcore.h.
10074 (exec_set_find_memory_regions): Remove.
10075 (exec_find_memory_regions): Remove.
10076 (exec_do_find_memory_regions): Remove.
10077 (init_exec_ops): Update.
10078 * defs.h (exec_set_find_memory_regions): Remove.
10080 2014-02-19 Tom Tromey <tromey@redhat.com>
10082 * target-delegates.c: Rebuild.
10083 * target.h (struct target_ops) <to_extra_thread_info,
10084 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10085 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10086 not 0, in TARGET_DEFAULT_RETURN.
10088 2014-02-19 Tom Tromey <tromey@redhat.com>
10090 * target.c (complete_target_initialization): Remove casts. Use
10091 return_zero_has_execution.
10092 (return_zero): Add "ignore" argument.
10093 (return_zero_has_execution): New function.
10094 (init_dummy_target): Remove casts. Use
10095 return_zero_has_execution.
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10099 * target.c (update_current_target): Update comments. Do not
10100 INHERIT to_stratum.
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10106 * corelow.c (core_read_description): Delegate when needed.
10107 * remote.c (remote_read_description): Delegate when needed.
10108 * target-delegates.c: Rebuild.
10109 * target.c (target_read_description): Rewrite.
10110 * target.h (struct target_ops) <to_read_description>: Update
10111 comment. Use TARGET_DEFAULT_RETURN.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * target-delegates.c: Rebuild.
10116 * target.c (update_current_target): Don't inherit or default
10118 (find_default_run_target): Check against delegate_can_run.
10119 * target.h (struct target_ops) <to_can_run>: Use
10120 TARGET_DEFAULT_RETURN.
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10124 * target-delegates.c: Rebuild.
10125 * target.c (target_disconnect): Unconditionally delegate.
10126 * target.h (struct target_ops) <to_disconnect>: Use
10127 TARGET_DEFAULT_NORETURN.
10129 2014-02-19 Tom Tromey <tromey@redhat.com>
10131 * record.c (record_stop): Unconditionally delegate.
10132 * target-delegates.c: Rebuild.
10133 * target.c (target_stop_recording): Unconditionally delegate.
10134 * target.h (struct target_ops) <to_stop_recording>: Use
10135 TARGET_DEFAULT_IGNORE.
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10139 * target-delegates.c: Rebuild.
10140 * target.c (target_enable_btrace): Unconditionally delegate.
10141 * target.h (struct target_ops) <to_enable_btrace>: Use
10142 TARGET_DEFAULT_NORETURN.
10144 2014-02-19 Tom Tromey <tromey@redhat.com>
10146 * target-delegates.c: Rebuild.
10147 * target.c (target_read_btrace): Unconditionally delegate.
10148 * target.h (struct target_ops) <to_read_btrace>: Use
10149 TARGET_DEFAULT_NORETURN.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target-delegates.c: Rebuild.
10154 * target.c (target_teardown_btrace): Unconditionally delegate.
10155 * target.h (struct target_ops) <to_teardown_btrace>: Use
10156 TARGET_DEFAULT_NORETURN.
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10160 * target-delegates.c: Rebuild.
10161 * target.c (target_disable_btrace): Unconditionally delegate.
10162 * target.h (struct target_ops) <to_disable_btrace>: Use
10163 TARGET_DEFAULT_NORETURN.
10165 2014-02-19 Tom Tromey <tromey@redhat.com>
10167 * target-delegates.c: Rebuild.
10168 * target.c (default_search_memory): New function.
10169 (simple_search_memory): Update comment.
10170 (target_search_memory): Unconditionally delegate.
10171 * target.h (struct target_ops) <to_search_memory>: Use
10172 TARGET_DEFAULT_FUNC.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * auxv.c (default_auxv_parse): No longer static.
10177 (target_auxv_parse): Unconditionally delegate.
10178 * auxv.h (default_auxv_parse): Declare.
10179 * target-delegates.c: Rebuild.
10180 * target.c: Include auxv.h.
10181 * target.h (struct target_ops) <to_auxv_parse>: Use
10182 TARGET_DEFAULT_FUNC.
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10186 * target-delegates.c: Rebuild.
10187 * target.c (target_memory_map): Unconditionally delegate.
10188 * target.h (struct target_ops) <to_memory_map>: Use
10189 TARGET_DEFAULT_RETURN.
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10193 * target-delegates.c: Rebuild.
10194 * target.c (target_thread_alive): Unconditionally delegate.
10195 * target.h (struct target_ops) <to_thread_alive>: Use
10196 TARGET_DEFAULT_RETURN.
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10200 * target-delegates.c: Rebuild.
10201 * target.c (target_save_record): Unconditionally delegate.
10202 * target.h (struct target_ops) <to_save_record>: Use
10203 TARGET_DEFAULT_NORETURN.
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10207 * target-delegates.c: Rebuild.
10208 * target.c (target_delete_record): Unconditionally delegate.
10209 * target.h (struct target_ops) <to_delete_record>: Use
10210 TARGET_DEFAULT_NORETURN.
10212 2014-02-19 Tom Tromey <tromey@redhat.com>
10214 * target-delegates.c: Rebuild.
10215 * target.c (target_record_is_replaying): Unconditionally
10217 * target.h (struct target_ops) <to_record_is_replaying>: Use
10218 TARGET_DEFAULT_RETURN.
10220 2014-02-19 Tom Tromey <tromey@redhat.com>
10222 * target-delegates.c: Rebuild.
10223 * target.c (target_goto_record_begin): Unconditionally delegate.
10224 * target.h (struct target_ops) <to_goto_record_begin>: Use
10225 TARGET_DEFAULT_NORETURN.
10227 2014-02-19 Tom Tromey <tromey@redhat.com>
10229 * target-delegates.c: Rebuild.
10230 * target.c (target_goto_record_end): Unconditionally delegate.
10231 * target.h (struct target_ops) <to_goto_record_end>: Use
10232 TARGET_DEFAULT_NORETURN.
10234 2014-02-19 Tom Tromey <tromey@redhat.com>
10236 * target-delegates.c: Rebuild.
10237 * target.c (target_goto_record): Unconditionally delegate.
10238 * target.h (struct target_ops) <to_goto_record>: Use
10239 TARGET_DEFAULT_NORETURN.
10241 2014-02-19 Tom Tromey <tromey@redhat.com>
10243 * target-delegates.c: Rebuild.
10244 * target.c (target_insn_history): Unconditionally delegate.
10245 * target.h (struct target_ops) <to_insn_history>: Use
10246 TARGET_DEFAULT_NORETURN.
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10250 * target-delegates.c: Rebuild.
10251 * target.c (target_insn_history_from): Unconditionally delegate.
10252 * target.h (struct target_ops) <to_insn_history_from>: Use
10253 TARGET_DEFAULT_NORETURN.
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10257 * target-delegates.c: Rebuild.
10258 * target.c (target_insn_history_range): Unconditionally delegate.
10259 * target.h (struct target_ops) <to_insn_history_range>: Use
10260 TARGET_DEFAULT_NORETURN.
10262 2014-02-19 Tom Tromey <tromey@redhat.com>
10264 * target-delegates.c: Rebuild.
10265 * target.c (target_call_history): Unconditionally delegate.
10266 * target.h (struct target_ops) <to_call_history>: Use
10267 TARGET_DEFAULT_NORETURN.
10269 2014-02-19 Tom Tromey <tromey@redhat.com>
10271 * target-delegates.c: Rebuild.
10272 * target.c (target_call_history_from): Unconditionally delegate.
10273 * target.h (struct target_ops) <to_call_history_from>: Use
10274 TARGET_DEFAULT_NORETURN.
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10278 * target-delegates.c: Rebuild.
10279 * target.c (target_call_history_range): Unconditionally delegate.
10280 * target.h (struct target_ops) <to_call_history_range>: Use
10281 TARGET_DEFAULT_NORETURN.
10283 2014-02-19 Tom Tromey <tromey@redhat.com>
10285 * target-delegates.c: Rebuild.
10286 * target.c (target_verify_memory): Unconditionally delegate.
10287 * target.h (struct target_ops) <to_verify_memory>: Use
10288 TARGET_DEFAULT_NORETURN.
10290 2014-02-19 Tom Tromey <tromey@redhat.com>
10292 * target-delegates.c: Rebuild.
10293 * target.c (target_core_of_thread): Unconditionally delegate.
10294 * target.h (struct target_ops) <to_core_of_thread>: Use
10295 TARGET_DEFAULT_RETURN.
10297 2014-02-19 Tom Tromey <tromey@redhat.com>
10299 * target-delegates.c: Rebuild.
10300 * target.c (target_flash_done): Unconditionally delegate.
10301 * target.h (struct target_ops) <to_flash_done>: Use
10302 TARGET_DEFAULT_NORETURN.
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * target-delegates.c: Rebuild.
10307 * target.c (target_flash_erase): Unconditionally delegate.
10308 * target.h (struct target_ops) <to_flash_erase>: Use
10309 TARGET_DEFAULT_NORETURN.
10311 2014-02-19 Tom Tromey <tromey@redhat.com>
10313 * target-delegates.c: Rebuild.
10314 * target.c (target_get_section_table): Unconditionally delegate.
10315 * target.h (struct target_ops) <to_get_section_table>: Use
10316 TARGET_DEFAULT_RETURN.
10318 2014-02-19 Tom Tromey <tromey@redhat.com>
10320 * target-delegates.c: Rebuild.
10321 * target.c (target_pid_to_str): Unconditionally delegate.
10322 (init_dummy_target): Don't initialize to_pid_to_str.
10323 (default_pid_to_str): Rename from dummy_pid_to_str.
10324 * target.h (struct target_ops) <to_pid_to_str>: Use
10325 TARGET_DEFAULT_FUNC.
10327 2014-02-19 Tom Tromey <tromey@redhat.com>
10329 * target-delegates.c: Rebuild.
10330 * target.c (target_find_new_threads): Unconditionally delegate.
10331 * target.h (struct target_ops) <to_find_new_threads>: Use
10332 TARGET_DEFAULT_RETURN.
10334 2014-02-19 Tom Tromey <tromey@redhat.com>
10336 * target-delegates.c: Rebuild.
10337 * target.c (target_program_signals): Unconditionally delegate.
10338 * target.h (struct target_ops) <to_program_signals>: Use
10339 TARGET_DEFAULT_IGNORE.
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target-delegates.c: Rebuild.
10344 * target.c (target_pass_signals): Unconditionally delegate.
10345 * target.h (struct target_ops) <to_pass_signals>: Use
10346 TARGET_DEFAULT_IGNORE.
10348 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * target-delegates.c: Rebuild.
10351 * target.c (default_mourn_inferior): New function.
10352 (target_mourn_inferior): Unconditionally delegate.
10353 * target.h (struct target_ops) <to_mourn_inferior>: Use
10354 TARGET_DEFAULT_FUNC.
10356 2014-02-19 Tom Tromey <tromey@redhat.com>
10358 * target-delegates.c: Rebuild.
10359 * target.c (default_follow_fork): New function.
10360 (target_follow_fork): Unconditionally delegate.
10361 * target.h (struct target_ops) <to_follow_fork>: Use
10362 TARGET_DEFAULT_FUNC.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * target-delegates.c: Rebuild.
10367 * target.c (target_kill): Unconditionally delegate.
10368 * target.h (struct target_ops) <to_kill>: Use
10369 TARGET_DEFAULT_NORETURN.
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10373 * target-delegates.c: Rebuild.
10374 * target.c (target_masked_watch_num_registers): Unconditionally
10376 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10377 Use TARGET_DEFAULT_RETURN.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target-delegates.c: Rebuild.
10382 * target.c (target_remove_mask_watchpoint): Unconditionally
10384 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10385 TARGET_DEFAULT_RETURN.
10387 2014-02-19 Tom Tromey <tromey@redhat.com>
10389 * target-delegates.c: Rebuild.
10390 * target.c (target_insert_mask_watchpoint): Unconditionally
10392 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10393 TARGET_DEFAULT_RETURN.
10395 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target-delegates.c: Rebuild.
10398 * target.c (target_ranged_break_num_registers): Unconditionally
10400 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10401 Use TARGET_DEFAULT_RETURN.
10403 2014-02-19 Tom Tromey <tromey@redhat.com>
10405 * target-delegates.c: Rebuild.
10406 * target.c (target_fetch_registers): Unconditionally delegate.
10407 * target.h (struct target_ops) <to_fetch_registers>: Use
10408 TARGET_DEFAULT_NORETURN.
10410 2014-02-19 Tom Tromey <tromey@redhat.com>
10412 * target-delegates.c: Rebuild.
10413 * target.c (update_current_target): Don't inherit or default
10415 * target.h (struct target_ops) <to_stop>: Use
10416 TARGET_DEFAULT_IGNORE.
10418 2014-02-19 Tom Tromey <tromey@redhat.com>
10420 * target-delegates.c: Rebuild.
10421 * target.c (update_current_target): Don't inherit or default
10422 to_can_run_breakpoint_commands.
10423 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10424 Use TARGET_DEFAULT_RETURN.
10426 2014-02-19 Tom Tromey <tromey@redhat.com>
10428 * target-delegates.c: Rebuild.
10429 * target.c (update_current_target): Don't inherit or default
10430 to_supports_evaluation_of_breakpoint_conditions.
10431 * target.h (struct target_ops)
10432 <to_supports_evaluation_of_breakpoint_conditions>: Use
10433 TARGET_DEFAULT_RETURN.
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10437 * target-delegates.c: Rebuild.
10438 * target.c (update_current_target): Don't inherit or default
10439 to_augmented_libraries_svr4_read.
10440 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10441 Use TARGET_DEFAULT_RETURN.
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10445 * target-delegates.c: Rebuild.
10446 * target.c (update_current_target): Don't inherit or default
10448 * target.h (struct target_ops) <to_can_use_agent>: Use
10449 TARGET_DEFAULT_RETURN.
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10453 * target-delegates.c: Rebuild.
10454 * target.c (update_current_target): Don't inherit or default
10456 * target.h (struct target_ops) <to_use_agent>: Use
10457 TARGET_DEFAULT_NORETURN.
10459 2014-02-19 Tom Tromey <tromey@redhat.com>
10461 * target-delegates.c: Rebuild.
10462 * target.c (update_current_target): Don't inherit or default
10463 to_traceframe_info.
10464 (return_null): Remove.
10465 * target.h (struct target_ops) <to_traceframe_info>: Use
10466 TARGET_DEFAULT_RETURN.
10468 2014-02-19 Tom Tromey <tromey@redhat.com>
10470 * target-delegates.c: Rebuild.
10471 * target.c (update_current_target): Don't inherit or default
10472 to_static_tracepoint_markers_by_strid.
10473 * target.h (struct target_ops)
10474 <to_static_tracepoint_markers_by_strid>: Use
10475 TARGET_DEFAULT_NORETURN.
10477 2014-02-19 Tom Tromey <tromey@redhat.com>
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_static_tracepoint_marker_at.
10482 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10483 Use TARGET_DEFAULT_RETURN.
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_set_permissions.
10490 * target.h (struct target_ops) <to_set_permissions>: Use
10491 TARGET_DEFAULT_IGNORE.
10493 2014-02-19 Tom Tromey <tromey@redhat.com>
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't inherit or default
10497 to_get_tib_address.
10498 * target.h (struct target_ops) <to_get_tib_address>: Use
10499 TARGET_DEFAULT_NORETURN.
10501 2014-02-19 Tom Tromey <tromey@redhat.com>
10503 * target-delegates.c: Rebuild.
10504 * target.c (update_current_target): Don't inherit or default
10505 to_set_trace_notes.
10506 * target.h (struct target_ops) <to_set_trace_notes>: Use
10507 TARGET_DEFAULT_RETURN.
10509 2014-02-19 Tom Tromey <tromey@redhat.com>
10511 * target-delegates.c: Rebuild.
10512 * target.c (update_current_target): Don't initialize
10513 to_set_trace_buffer_size.
10514 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10515 TARGET_DEFAULT_IGNORE.
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * target-delegates.c: Rebuild.
10520 * target.c (update_current_target): Don't inherit or default
10521 to_set_circular_trace_buffer.
10522 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10523 TARGET_DEFAULT_IGNORE.
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10527 * target-delegates.c: Rebuild.
10528 * target.c (update_current_target): Don't inherit or default
10529 to_set_disconnected_tracing.
10530 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10531 TARGET_DEFAULT_IGNORE.
10533 2014-02-19 Tom Tromey <tromey@redhat.com>
10535 * target-delegates.c: Rebuild.
10536 * target.c (update_current_target): Don't inherit or default
10537 to_get_min_fast_tracepoint_insn_len.
10538 (return_minus_one): Remove.
10539 * target.h (struct target_ops)
10540 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10542 2014-02-19 Tom Tromey <tromey@redhat.com>
10544 * target-delegates.c: Rebuild.
10545 * target.c (update_current_target): Don't inherit or default
10546 to_get_raw_trace_data.
10547 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10548 TARGET_DEFAULT_NORETURN.
10550 2014-02-19 Tom Tromey <tromey@redhat.com>
10552 * target-delegates.c: Rebuild.
10553 * target.c (update_current_target): Don't inherit or default
10554 to_upload_trace_state_variables.
10555 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10556 Use TARGET_DEFAULT_RETURN.
10558 2014-02-19 Tom Tromey <tromey@redhat.com>
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_upload_tracepoints.
10563 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10564 TARGET_DEFAULT_RETURN.
10566 2014-02-19 Tom Tromey <tromey@redhat.com>
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10570 to_save_trace_data.
10571 * target.h (struct target_ops) <to_save_trace_data>: Use
10572 TARGET_DEFAULT_NORETURN.
10574 2014-02-19 Tom Tromey <tromey@redhat.com>
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_get_trace_state_variable_value.
10579 * target.h (struct target_ops)
10580 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10582 2014-02-19 Tom Tromey <tromey@redhat.com>
10584 * target-delegates.c: Rebuild.
10585 * target.c (update_current_target): Don't inherit or default
10587 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10589 2014-02-19 Tom Tromey <tromey@redhat.com>
10591 * target-delegates.c: Rebuild.
10592 * target.c (update_current_target): Don't inherit or default
10594 * target.h (struct target_ops) <to_trace_stop>: Use
10595 TARGET_DEFAULT_NORETURN.
10597 2014-02-19 Tom Tromey <tromey@redhat.com>
10599 * target-delegates.c: Rebuild.
10600 * target.c (update_current_target): Don't inherit or default
10601 to_get_tracepoint_status.
10602 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10603 TARGET_DEFAULT_NORETURN.
10605 2014-02-19 Tom Tromey <tromey@redhat.com>
10607 * target-delegates.c: Rebuild.
10608 * target.c (update_current_target): Don't inherit or default
10609 to_get_trace_status.
10610 * target.h (struct target_ops) <to_get_trace_status>: Use
10611 TARGET_DEFAULT_RETURN.
10613 2014-02-19 Tom Tromey <tromey@redhat.com>
10615 * target-delegates.c: Rebuild.
10616 * target.c (update_current_target): Don't inherit or default
10618 * target.h (struct target_ops) <to_trace_start>: Use
10619 TARGET_DEFAULT_NORETURN.
10621 2014-02-19 Tom Tromey <tromey@redhat.com>
10623 * target-delegates.c: Rebuild.
10624 * target.c (update_current_target): Don't inherit or default
10625 to_trace_set_readonly_regions.
10626 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10627 Use TARGET_DEFAULT_NORETURN.
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10631 * target-delegates.c: Rebuild.
10632 * target.c (update_current_target): Don't inherit or default
10633 to_disable_tracepoint.
10634 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10635 TARGET_DEFAULT_NORETURN.
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10639 * target-delegates.c: Rebuild.
10640 * target.c (update_current_target): Don't inherit or default
10641 to_enable_tracepoint.
10642 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10643 TARGET_DEFAULT_NORETURN.
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10647 * target-delegates.c: Rebuild.
10648 * target.c (update_current_target): Don't inherit or default
10649 to_download_trace_state_variable.
10650 * target.h (struct target_ops) <to_download_trace_state_variable>:
10651 Use TARGET_DEFAULT_NORETURN.
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10655 * target-delegates.c: Rebuild.
10656 * target.c (update_current_target): Don't inherit or default
10657 to_can_download_tracepoint.
10658 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10659 TARGET_DEFAULT_RETURN.
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10663 * target-delegates.c: Rebuild.
10664 * target.c (update_current_target): Don't inherit or default
10665 to_download_tracepoint.
10666 * target.h (struct target_ops) <to_download_tracepoint>: Use
10667 TARGET_DEFAULT_NORETURN.
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10674 * target.h (struct target_ops) <to_trace_init>: Use
10675 TARGET_DEFAULT_RETURN.
10677 2014-02-19 Tom Tromey <tromey@redhat.com>
10679 * target-delegates.c: Rebuild.
10680 * target.c (update_current_target): Don't inherit or default
10681 to_supports_string_tracing.
10682 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10683 TARGET_DEFAULT_RETURN.
10685 2014-02-19 Tom Tromey <tromey@redhat.com>
10687 * target-delegates.c: Rebuild.
10688 * target.c (update_current_target): Don't inherit or default
10689 to_supports_enable_disable_tracepoint.
10690 * target.h (struct target_ops)
10691 <to_supports_enable_disable_tracepoint>: Use
10692 TARGET_DEFAULT_RETURN.
10694 2014-02-19 Tom Tromey <tromey@redhat.com>
10696 * target-delegates.c: Rebuild.
10697 * target.c (update_current_target): Don't inherit or default
10698 to_supports_multi_process.
10699 * target.h (struct target_ops) <to_supports_multi_process>: Use
10700 TARGET_DEFAULT_RETURN.
10702 2014-02-19 Tom Tromey <tromey@redhat.com>
10704 * target-delegates.c: Rebuild.
10705 * target.c (update_current_target): Don't inherit or default
10706 to_get_ada_task_ptid.
10707 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10708 TARGET_DEFAULT_FUNC.
10710 2014-02-19 Tom Tromey <tromey@redhat.com>
10712 * target-delegates.c: Rebuild.
10713 * target.c (update_current_target): Don't inherit or default
10714 to_thread_architecture.
10715 * target.h (struct target_ops) <to_thread_architecture>: Use
10716 TARGET_DEFAULT_FUNC.
10718 2014-02-19 Tom Tromey <tromey@redhat.com>
10720 * target-delegates.c: Rebuild.
10721 * target.c (update_current_target): Don't inherit or default
10722 to_execution_direction.
10723 * target.h (struct target_ops) <to_execution_direction>: Use
10724 TARGET_DEFAULT_FUNC.
10726 2014-02-19 Tom Tromey <tromey@redhat.com>
10728 * target-delegates.c: Rebuild.
10729 * target.c (update_current_target): Don't inherit or default
10730 to_can_execute_reverse.
10731 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10732 TARGET_DEFAULT_RETURN.
10733 (target_can_execute_reverse): Unconditionally delegate.
10735 2014-02-19 Tom Tromey <tromey@redhat.com>
10737 * target-delegates.c: Rebuild.
10738 * target.c (update_current_target): Don't inherit or default
10740 (dummy_goto_bookmark): Remove.
10741 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10742 * target.h (struct target_ops) <to_goto_bookmark>: Use
10743 TARGET_DEFAULT_NORETURN.
10745 2014-02-19 Tom Tromey <tromey@redhat.com>
10747 * target-delegates.c: Rebuild.
10748 * target.c (update_current_target): Don't inherit or default
10750 (dummy_get_bookmark): Remove.
10751 (init_dummy_target): Don't inherit or default to_get_bookmark.
10752 * target.h (struct target_ops) <to_get_bookmark>: Use
10753 TARGET_DEFAULT_NORETURN
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10757 * target-delegates.c: Rebuild.
10758 * target.c (update_current_target): Don't inherit or default
10759 to_make_corefile_notes.
10760 (init_dummy_target): Don't initialize to_make_corefile_notes.
10761 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10762 TARGET_DEFAULT_FUNC.
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10766 * target-delegates.c: Rebuild.
10767 * target.c (update_current_target): Don't inherit or default
10768 to_find_memory_regions.
10769 (init_dummy_target): Don't initialize to_find_memory_regions.
10770 * target.h (struct target_ops) <to_find_memory_regions>: Use
10771 TARGET_DEFAULT_FUNC.
10773 2014-02-19 Tom Tromey <tromey@redhat.com>
10775 * target-delegates.c: Rebuild.
10776 * target.c (update_current_target): Don't inherit or default
10778 * target.h (struct target_ops) <to_log_command>: Use
10779 TARGET_DEFAULT_IGNORE.
10780 (target_log_command): Unconditionally delegate.
10782 2014-02-19 Tom Tromey <tromey@redhat.com>
10784 * target-delegates.c: Rebuild.
10785 * target.c (update_current_target): Don't inherit or default
10786 to_pid_to_exec_file.
10787 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10788 TARGET_DEFAULT_RETURN.
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
10795 (target_thread_name): Unconditionally delegate.
10796 * target.h (struct target_ops) <to_thread_name>: Use
10797 TARGET_DEFAULT_RETURN.
10799 2014-02-19 Tom Tromey <tromey@redhat.com>
10801 * target-delegates.c: Rebuild.
10802 * target.c (update_current_target): Don't inherit or default
10803 to_extra_thread_info.
10804 * target.h (struct target_ops) <to_extra_thread_info>: Use
10805 TARGET_DEFAULT_RETURN.
10807 2014-02-19 Tom Tromey <tromey@redhat.com>
10809 * target-delegates.c: Rebuild.
10810 * target.c (update_current_target): Don't inherit or default
10812 * target.h (struct target_ops) <to_has_exited>: Use
10813 TARGET_DEFAULT_RETURN..
10815 2014-02-19 Tom Tromey <tromey@redhat.com>
10817 * target-delegates.c: Rebuild.
10818 * target.c (update_current_target): Don't inherit or default
10819 to_set_syscall_catchpoint.
10820 (return_one): Remove.
10821 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10822 TARGET_DEFAULT_RETURN.
10824 2014-02-19 Tom Tromey <tromey@redhat.com>
10826 * target-delegates.c: Rebuild.
10827 * target.c (update_current_target): Don't inherit or default
10828 to_insert_exec_catchpoint.
10829 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10830 TARGET_DEFAULT_RETURN.
10832 2014-01-08 Tom Tromey <tromey@redhat.com>
10834 * target-delegates.c: Rebuild.
10835 * target.c (update_current_target): Don't inherit or default
10836 to_insert_exec_catchpoint.
10837 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10838 TARGET_DEFAULT_RETURN.
10840 2014-02-19 Tom Tromey <tromey@redhat.com>
10842 * target-delegates.c: Rebuild.
10843 * target.c (update_current_target): Don't inherit or default
10844 to_remove_vfork_catchpoint.
10845 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10846 TARGET_DEFAULT_RETURN.
10848 2014-02-19 Tom Tromey <tromey@redhat.com>
10850 * target-delegates.c: Rebuild.
10851 * target.c (update_current_target): Don't inherit or default
10852 to_insert_vfork_catchpoint.
10853 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10854 TARGET_DEFAULT_RETURN.
10856 2014-02-19 Tom Tromey <tromey@redhat.com>
10858 * target-delegates.c: Rebuild.
10859 * target.c (update_current_target): Don't inherit or default
10860 to_remove_fork_catchpoint.
10861 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10862 TARGET_DEFAULT_RETURN.
10864 2014-02-19 Tom Tromey <tromey@redhat.com>
10866 * target-delegates.c: Rebuild.
10867 * target.c (update_current_target): Don't inherit or default
10868 to_insert_fork_catchpoint.
10869 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10870 TARGET_DEFAULT_RETURN.
10872 2014-02-19 Tom Tromey <tromey@redhat.com>
10874 * target-delegates.c: Rebuild.
10875 * target.c (update_current_target): Don't inherit or default
10876 to_post_startup_inferior.
10877 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10878 TARGET_DEFAULT_IGNORE.
10880 2014-02-19 Tom Tromey <tromey@redhat.com>
10882 * target-delegates.c: Rebuild.
10883 * target.c (update_current_target): Don't inherit or default
10885 * target.h (struct target_ops) <to_load>: Use
10886 TARGET_DEFAULT_NORETURN.
10888 2014-02-19 Tom Tromey <tromey@redhat.com>
10890 * target-delegates.c: Rebuild.
10891 * target.c (update_current_target): Don't inherit or default
10893 * target.h (struct target_ops) <to_terminal_info>: Use
10894 TARGET_DEFAULT_FUNC.
10896 2014-02-19 Tom Tromey <tromey@redhat.com>
10898 * target-delegates.c: Rebuild.
10899 * target.c (update_current_target): Don't inherit or default
10900 to_terminal_save_ours.
10901 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10902 TARGET_DEFAULT_IGNORE.
10904 2014-02-19 Tom Tromey <tromey@redhat.com>
10906 * target-delegates.c: Rebuild.
10907 * target.c (update_current_target): Don't inherit or default
10909 * target.h (struct target_ops) <to_terminal_ours>: Use
10910 TARGET_DEFAULT_IGNORE.
10912 2014-02-19 Tom Tromey <tromey@redhat.com>
10914 * target-delegates.c: Rebuild.
10915 * target.c (update_current_target): Don't inherit or default
10916 to_terminal_ours_for_output.
10917 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10918 TARGET_DEFAULT_IGNORE.
10920 2014-02-19 Tom Tromey <tromey@redhat.com>
10922 * target-delegates.c: Rebuild.
10923 * target.c (update_current_target): Don't inherit or default
10924 to_terminal_inferior.
10925 * target.h (struct target_ops) <to_terminal_inferior>: Use
10926 TARGET_DEFAULT_IGNORE.
10928 2014-02-19 Tom Tromey <tromey@redhat.com>
10930 * target-delegates.c: Rebuild.
10931 * target.c (update_current_target): Don't inherit or default
10933 * target.h (struct target_ops) <to_terminal_init>: Use
10934 TARGET_DEFAULT_IGNORE.
10936 2014-02-19 Tom Tromey <tromey@redhat.com>
10938 * target-delegates.c: Rebuild.
10939 * target.c (update_current_target): Don't inherit or default
10940 to_can_accel_watchpoint_condition.
10941 * target.h (struct target_ops)
10942 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10944 2014-02-19 Tom Tromey <tromey@redhat.com>
10946 * target-delegates.c: Rebuild.
10947 * target.c (update_current_target): Don't inherit or default
10948 to_region_ok_for_hw_watchpoint.
10949 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10950 Use TARGET_DEFAULT_FUNC.
10952 2014-02-19 Tom Tromey <tromey@redhat.com>
10954 * target-delegates.c: Rebuild.
10955 * target.c (update_current_target): Don't inherit or default
10956 to_watchpoint_addr_within_range.
10957 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10958 Use TARGET_DEFAULT_FUNC.
10960 2014-02-19 Tom Tromey <tromey@redhat.com>
10962 * target-delegates.c: Rebuild.
10963 * target.c (update_current_target): Don't inherit or default
10964 to_remove_watchpoint.
10965 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10966 TARGET_DEFAULT_NORETURN.
10968 2014-02-19 Tom Tromey <tromey@redhat.com>
10970 * target-delegates.c: Rebuild.
10971 * target.c (update_current_target): Don't inherit or default
10972 to_insert_watchpoint.
10973 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10974 TARGET_DEFAULT_RETURN.
10976 2014-02-19 Tom Tromey <tromey@redhat.com>
10978 * target-delegates.c: Rebuild.
10979 * target.c (update_current_target): Don't inherit or default
10980 to_remove_hw_breakpoint.
10981 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10982 TARGET_DEFAULT_RETURN.
10984 2014-02-19 Tom Tromey <tromey@redhat.com>
10986 * target-delegates.c: Rebuild.
10987 * target.c (update_current_target): Don't inherit or default
10988 to_insert_hw_breakpoint.
10989 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10990 TARGET_DEFAULT_RETURN.
10992 2014-02-19 Tom Tromey <tromey@redhat.com>
10994 * target-delegates.c: Rebuild.
10995 * target.c (update_current_target): Don't inherit or default
10996 to_can_use_hw_breakpoint.
10997 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10998 TARGET_DEFAULT_RETURN.
11000 2014-02-19 Tom Tromey <tromey@redhat.com>
11002 * target-delegates.c: Rebuild.
11003 * target.c (update_current_target): Don't inherit or default
11005 * target.h (struct target_ops) <to_files_info>: Use
11006 TARGET_DEFAULT_IGNORE.
11008 2014-02-19 Tom Tromey <tromey@redhat.com>
11010 * target-delegates.c: Rebuild.
11011 * target.c (update_current_target): Don't inherit or default
11013 * target.h (struct target_ops) <to_store>: Use
11014 TARGET_DEFAULT_NORETURN.
11016 2014-02-19 Tom Tromey <tromey@redhat.com>
11018 * target-delegates.c: Rebuild.
11019 * target.c (update_current_target): Don't inherit or default
11021 * target.h (struct target_ops) <to_post_attach>: Use
11022 TARGET_DEFAULT_IGNORE.
11024 2014-02-19 Tom Tromey <tromey@redhat.com>
11026 * target-delegates.c: Rebuild.
11027 * target.c (update_current_target): Don't inherit or default
11029 (default_rcmd): New function.
11030 (do_monitor_command): Unconditionally delegate.
11031 * target.h (struct target_ops) <to_rmcd>: Use
11032 TARGET_DEFAULT_FUNC.
11034 2014-02-19 Tom Tromey <tromey@redhat.com>
11036 * target-delegates.c: Rebuild.
11037 * target.c (init_dummy_target): Don't initialize to_attach.
11038 (target_attach): Unconditionally delegate.
11039 * target.h (struct target_ops) <to_attach>: Use
11040 TARGET_DEFAULT_FUNC.
11042 2014-02-19 Tom Tromey <tromey@redhat.com>
11044 * target-delegates.c: Rebuild.
11045 * target.c (target_detach): Unconditionally delegate.
11046 (init_dummy_target): Don't initialize to_detach.
11047 * target.h (struct target_ops) <to_detach>: Use
11048 TARGET_DEFAULT_IGNORE.
11050 2014-02-19 Tom Tromey <tromey@redhat.com>
11052 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11054 (target_augmented_libraries_svr4_read): Add argument.
11055 * target.c (update_current_target): Update.
11056 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11059 2014-02-19 Tom Tromey <tromey@redhat.com>
11061 * target.h (struct target_ops) <to_call_history_range>: Add
11063 * target.c (target_call_history_range): Add argument.
11064 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11066 (record_btrace_call_history_from): Update.
11068 2014-02-19 Tom Tromey <tromey@redhat.com>
11070 * target.h (struct target_ops) <to_call_history_from>: Add
11072 * target.c (target_call_history_from): Add argument.
11073 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11076 2014-02-19 Tom Tromey <tromey@redhat.com>
11078 * target.h (struct target_ops) <to_call_history>: Add argument.
11079 * target.c (target_call_history): Add argument.
11080 * record-btrace.c (record_btrace_call_history): Add 'self'
11083 2014-02-19 Tom Tromey <tromey@redhat.com>
11085 * target.h (struct target_ops) <to_insn_history_range>: Add
11087 * target.c (target_insn_history_range): Add argument.
11088 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11090 (record_btrace_insn_history_from): Update.
11092 2014-02-19 Tom Tromey <tromey@redhat.com>
11094 * target.h (struct target_ops) <to_insn_history_from>: Add
11096 * target.c (target_insn_history_from): Add argument.
11097 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11100 2014-02-19 Tom Tromey <tromey@redhat.com>
11102 * target.h (struct target_ops) <to_insn_history>: Add argument.
11103 * target.c (target_insn_history): Add argument.
11104 * record-btrace.c (record_btrace_insn_history): Add 'self'
11107 2014-02-19 Tom Tromey <tromey@redhat.com>
11109 * target.h (struct target_ops) <to_goto_record>: Add argument.
11110 * target.c (target_goto_record): Add argument.
11111 * record-full.c (record_full_goto): Add 'self' argument.
11112 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11114 2014-02-19 Tom Tromey <tromey@redhat.com>
11116 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11117 * target.c (target_goto_record_end): Add argument.
11118 * record-full.c (record_full_goto_end): Add 'self' argument.
11119 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11123 * target.h (struct target_ops) <to_goto_record_begin>: Add
11125 * target.c (target_goto_record_begin): Add argument.
11126 * record-full.c (record_full_goto_begin): Add 'self' argument.
11127 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11130 2014-02-19 Tom Tromey <tromey@redhat.com>
11132 * target.h (struct target_ops) <to_record_is_replaying>: Add
11134 * target.c (target_record_is_replaying): Add argument.
11135 * record-full.c (record_full_is_replaying): Add 'self' argument.
11136 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11138 (record_btrace_xfer_partial, record_btrace_store_registers)
11139 (record_btrace_prepare_to_store, record_btrace_resume)
11140 (record_btrace_wait, record_btrace_decr_pc_after_break)
11141 (record_btrace_find_new_threads, record_btrace_thread_alive):
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11146 * target.h (struct target_ops) <to_delete_record>: Add argument.
11147 * target.c (target_delete_record): Add argument.
11148 * record-full.c (record_full_delete): Add 'self' argument.
11150 2014-02-19 Tom Tromey <tromey@redhat.com>
11152 * target.h (struct target_ops) <to_save_record>: Add argument.
11153 * target.c (target_save_record): Add argument.
11154 * record-full.c (record_full_save): Add 'self' argument.
11155 (record_full_save): Add 'self' argument.
11157 2014-02-19 Tom Tromey <tromey@redhat.com>
11159 * target.h (struct target_ops) <to_info_record>: Add argument.
11160 * target.c (target_info_record): Add argument.
11161 * record.c (info_record_command): Add argument.
11162 * record-full.c (record_full_info): Add 'self' argument.
11163 * record-btrace.c (record_btrace_info): Add 'self' argument.
11165 2014-02-19 Tom Tromey <tromey@redhat.com>
11167 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11168 * target.c (target_stop_recording): Add argument.
11169 * record.c (record_stop): Add argument.
11170 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11173 2014-02-19 Tom Tromey <tromey@redhat.com>
11175 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11176 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11177 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11179 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11180 (_initialize_amd64_linux_nat): Use it.
11181 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11182 (_initialize_i386_linux_nat): Use it.
11184 2014-02-19 Tom Tromey <tromey@redhat.com>
11186 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11187 * target.c (target_teardown_btrace): Add argument.
11188 * remote.c (remote_teardown_btrace): Add 'self' argument.
11189 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11191 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11196 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11197 * target.c (target_disable_btrace): Add argument.
11198 * remote.c (remote_disable_btrace): Add 'self' argument.
11199 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11201 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11204 2014-02-19 Tom Tromey <tromey@redhat.com>
11206 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11207 * target.c (target_enable_btrace): Add argument.
11208 * remote.c (remote_enable_btrace): Add 'self' argument.
11209 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11211 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11216 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11217 (target_can_use_agent): Add argument.
11218 * target.c (update_current_target): Update.
11219 * remote.c (remote_can_use_agent): Add 'self' argument.
11220 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11222 2014-02-19 Tom Tromey <tromey@redhat.com>
11224 * target.h (struct target_ops) <to_use_agent>: Add argument.
11225 (target_use_agent): Add argument.
11226 * target.c (update_current_target): Update.
11227 * remote.c (remote_use_agent): Add 'self' argument.
11228 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11230 2014-02-19 Tom Tromey <tromey@redhat.com>
11232 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11233 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11234 (target_traceframe_info): Add argument.
11235 * target.c (update_current_target): Update.
11236 * remote.c (remote_traceframe_info): Add 'self' argument.
11237 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11239 2014-02-19 Tom Tromey <tromey@redhat.com>
11241 * target.h (target_static_tracepoint_markers_by_strid): Add
11243 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11245 * target.c (update_current_target): Update.
11246 * remote.c (struct target_ops)
11247 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11248 * linux-nat.c (struct target_ops)
11249 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11251 2014-02-19 Tom Tromey <tromey@redhat.com>
11253 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11255 (target_static_tracepoint_marker_at): Add argument.
11256 * target.c (update_current_target): Update.
11257 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11262 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11263 (target_set_permissions): Add argument.
11264 * target.c (update_current_target): Update.
11265 * remote.c (remote_set_permissions): Add 'self' argument.
11266 (remote_start_remote): Update.
11268 2014-02-19 Tom Tromey <tromey@redhat.com>
11270 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11271 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11272 (target_get_tib_address): Add argument.
11273 * target.c (update_current_target): Update.
11274 * remote.c (remote_get_tib_address): Add 'self' argument.
11276 2014-02-19 Tom Tromey <tromey@redhat.com>
11278 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11279 (target_set_trace_notes): Add argument.
11280 * target.c (update_current_target): Update.
11281 * remote.c (remote_set_trace_notes): Add 'self' argument.
11283 2014-02-19 Tom Tromey <tromey@redhat.com>
11285 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11287 (target_set_trace_buffer_size): Add argument.
11288 * target.c (update_current_target): Update.
11289 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11293 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11295 (target_set_circular_trace_buffer): Add argument.
11296 * target.c (update_current_target): Update.
11297 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11300 2014-02-19 Tom Tromey <tromey@redhat.com>
11302 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11304 (target_set_disconnected_tracing): Add argument.
11305 * target.c (update_current_target): Update.
11306 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11308 2014-02-19 Tom Tromey <tromey@redhat.com>
11310 * target.h (struct target_ops)
11311 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11312 (target_get_min_fast_tracepoint_insn_len): Add argument.
11313 * target.c (update_current_target): Update.
11314 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11319 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11321 (target_get_raw_trace_data): Add argument.
11322 * target.c (update_current_target): Update.
11323 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11325 2014-02-19 Tom Tromey <tromey@redhat.com>
11327 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11329 (target_upload_trace_state_variables): Add argument.
11330 * target.c (update_current_target): Update.
11331 * remote.c (remote_upload_trace_state_variables): Add 'self'
11333 (remote_start_remote): Update.
11335 2014-02-19 Tom Tromey <tromey@redhat.com>
11337 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11339 (target_upload_tracepoints): Add argument.
11340 * target.c (update_current_target): Update.
11341 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11342 (remote_start_remote): Update.
11344 2014-02-19 Tom Tromey <tromey@redhat.com>
11346 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11347 (target_save_trace_data): Add argument.
11348 * target.c (update_current_target): Update.
11349 * remote.c (remote_save_trace_data): Add 'self' argument.
11351 2014-02-19 Tom Tromey <tromey@redhat.com>
11353 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11355 * target.h (struct target_ops)
11356 <to_get_trace_state_variable_value>: Add argument.
11357 (target_get_trace_state_variable_value): Add argument.
11358 * target.c (update_current_target): Update.
11359 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11361 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11365 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11366 * target.h (struct target_ops) <to_trace_find>: Add argument.
11367 (target_trace_find): Add argument.
11368 * target.c (update_current_target): Update.
11369 * remote.c (remote_trace_find): Add 'self' argument.
11370 * ctf.c (ctf_trace_find): Add 'self' argument.
11372 2014-02-19 Tom Tromey <tromey@redhat.com>
11374 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11375 (target_trace_stop): Add argument.
11376 * target.c (update_current_target): Update.
11377 * remote.c (remote_trace_stop): Add 'self' argument.
11379 2014-02-19 Tom Tromey <tromey@redhat.com>
11381 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11382 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11384 (target_get_tracepoint_status): Add argument.
11385 * target.c (update_current_target): Update.
11386 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11388 2014-02-19 Tom Tromey <tromey@redhat.com>
11390 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11391 * target.h (struct target_ops) <to_get_trace_status>: Add
11393 (target_get_trace_status): Add argument.
11394 * target.c (update_current_target): Update.
11395 * remote.c (remote_get_trace_status): Add 'self' argument.
11396 (remote_start_remote, remote_can_download_tracepoint): Update.
11397 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11399 2014-02-19 Tom Tromey <tromey@redhat.com>
11401 * target.h (struct target_ops) <to_trace_start>: Add argument.
11402 (target_trace_start): Add argument.
11403 * target.c (update_current_target): Update.
11404 * remote.c (remote_trace_start): Add 'self' argument.
11406 2014-02-19 Tom Tromey <tromey@redhat.com>
11408 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11410 (target_trace_set_readonly_regions): Add argument.
11411 * target.c (update_current_target): Update.
11412 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11415 2014-02-19 Tom Tromey <tromey@redhat.com>
11417 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11419 (target_disable_tracepoint): Add argument.
11420 * target.c (update_current_target): Update.
11421 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11423 2014-02-19 Tom Tromey <tromey@redhat.com>
11425 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11427 (target_enable_tracepoint): Add argument.
11428 * target.c (update_current_target): Update.
11429 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11433 * target.h (struct target_ops) <to_download_trace_state_variable>:
11435 (target_download_trace_state_variable): Add argument.
11436 * target.c (update_current_target): Update.
11437 * remote.c (remote_download_trace_state_variable): Add 'self'
11440 2014-02-19 Tom Tromey <tromey@redhat.com>
11442 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11444 (target_can_download_tracepoint): Add argument.
11445 * target.c (update_current_target): Update.
11446 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11448 2014-02-19 Tom Tromey <tromey@redhat.com>
11450 * target.h (struct target_ops) <to_download_tracepoint>: Add
11452 (target_download_tracepoint): Add argument.
11453 * target.c (update_current_target): Update.
11454 * remote.c (remote_download_tracepoint): Add 'self' argument.
11456 2014-02-19 Tom Tromey <tromey@redhat.com>
11458 * target.h (struct target_ops) <to_trace_init>: Add argument.
11459 (target_trace_init): Add argument.
11460 * target.c (update_current_target): Update.
11461 * remote.c (remote_trace_init): Add 'self' argument.
11463 2014-02-19 Tom Tromey <tromey@redhat.com>
11465 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11466 * target.c (target_fileio_readlink): Add argument.
11467 * remote.c (remote_hostio_readlink): Add 'self' argument.
11468 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11470 2014-02-19 Tom Tromey <tromey@redhat.com>
11472 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11473 * target.c (target_fileio_unlink): Add argument.
11474 * remote.c (remote_hostio_unlink): Add 'self' argument.
11475 (remote_file_delete): Update.
11476 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11478 2014-02-19 Tom Tromey <tromey@redhat.com>
11480 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11481 * target.c (target_fileio_close): Add argument.
11482 * remote.c (remote_hostio_close): Add 'self' argument.
11483 (remote_hostio_close_cleanup): Update.
11484 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11486 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11488 2014-02-19 Tom Tromey <tromey@redhat.com>
11490 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11491 * target.c (target_fileio_pread): Add argument.
11492 * remote.c (remote_hostio_pread): Add 'self' argument.
11493 (remote_bfd_iovec_pread, remote_file_get): Update.
11494 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11498 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11499 * target.c (target_fileio_pwrite): Add argument.
11500 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11501 (remote_file_put): Update.
11502 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11506 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11507 * target.c (target_fileio_open): Add argument.
11508 * remote.c (remote_hostio_open): Add 'self' argument.
11509 (remote_bfd_iovec_open): Add 'self' argument.
11510 (remote_file_put): Add 'self' argument.
11511 (remote_file_get): Add 'self' argument.
11512 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11514 2014-02-19 Tom Tromey <tromey@redhat.com>
11516 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11518 (target_can_run_breakpoint_commands): Add argument.
11519 * target.c (update_current_target): Update.
11520 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11522 (remote_insert_breakpoint): Add 'self' argument.
11523 (remote_insert_hw_breakpoint): Add 'self' argument.
11524 (remote_can_run_breakpoint_commands): Add 'self' argument.
11526 2014-02-19 Tom Tromey <tromey@redhat.com>
11528 * target.h (struct target_ops)
11529 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11530 (target_supports_evaluation_of_breakpoint_conditions): Add
11532 * target.c (update_current_target): Update.
11533 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11535 (remote_insert_breakpoint): Add 'self' argument.
11536 (remote_insert_hw_breakpoint): Add 'self' argument.
11537 (remote_supports_cond_breakpoints): Add 'self' argument.
11539 2014-02-19 Tom Tromey <tromey@redhat.com>
11541 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11543 (target_supports_string_tracing): Add argument.
11544 * target.c (update_current_target): Update.
11545 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11547 2014-02-19 Tom Tromey <tromey@redhat.com>
11549 * target.h (struct target_ops)
11550 <to_supports_disable_randomization>: Add argument.
11551 * target.c (find_default_supports_disable_randomization): Add
11553 (target_supports_disable_randomization): Add argument.
11554 (find_default_supports_disable_randomization): Add 'self'
11556 * remote.c (extended_remote_supports_disable_randomization): Add
11558 (remote_supports_disable_randomization): Add 'self' argument.
11559 (extended_remote_create_inferior): Update.
11560 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11563 2014-02-19 Tom Tromey <tromey@redhat.com>
11565 * target.h (struct target_ops)
11566 <to_supports_enable_disable_tracepoint>: Add argument.
11567 (target_supports_enable_disable_tracepoint): Add argument.
11568 * target.c (update_current_target): Update.
11569 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11574 * target.h (struct target_ops) <to_supports_multi_process>: Add
11576 (target_supports_multi_process): Add argument.
11577 * target.c (update_current_target): Update.
11578 * remote.c (remote_supports_multi_process): Add 'self' argument.
11579 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11581 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11584 2014-02-19 Tom Tromey <tromey@redhat.com>
11586 * target.h (struct target_ops) <to_execution_direction>: Add
11588 (target_execution_direction): Add argument.
11589 * target.c (default_execution_direction): Add 'self' argument.
11590 * record-full.c (record_full_execution_direction): Add 'self'
11593 2014-02-19 Tom Tromey <tromey@redhat.com>
11595 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11597 (target_can_execute_reverse): Add argument.
11598 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11599 * record-full.c (record_full_can_execute_reverse): Add 'self'
11601 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11604 2014-02-19 Tom Tromey <tromey@redhat.com>
11606 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11607 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11609 (target_get_ada_task_ptid): Add argument.
11610 * target.c (update_current_target): Update.
11611 (default_get_ada_task_ptid): Add 'self' argument.
11612 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11613 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11614 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11616 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11618 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11620 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11622 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11623 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11628 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11629 (target_goto_bookmark): Add argument.
11630 * target.c (dummy_goto_bookmark): Add 'self' argument.
11631 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11635 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11636 (target_get_bookmark): Add argument.
11637 * target.c (dummy_get_bookmark): Add 'self' argument.
11638 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11642 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11644 (target_make_corefile_notes): Add argument.
11645 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11646 * procfs.c (procfs_make_note_section): Add 'self' argument.
11647 (procfs_make_note_section): Add 'self' argument.
11648 (procfs_make_note_section): Add 'self' argument.
11649 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11651 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11652 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11653 * exec.c (exec_make_note_section): Add 'self' argument.
11654 (exec_make_note_section): Add 'self' argument.
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11658 * target.h (struct target_ops) <to_find_memory_regions>: Add
11660 (target_find_memory_regions): Add argument.
11661 * target.c (dummy_find_memory_regions): Add 'self' argument.
11662 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11663 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11664 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11665 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11666 * exec. (exec_do_find_memory_regions): New global.
11667 (exec_set_find_memory_regions): Rewrite.
11668 (exec_find_memory_regions): New function.
11669 (init_exec_ops): Use exec_find_memory_regions.
11671 2014-02-19 Tom Tromey <tromey@redhat.com>
11673 * target.h (struct target_ops) <to_supports_non_stop>: Add
11675 * target.c (find_default_supports_non_stop): Add argument.
11676 (target_supports_non_stop): Add argument.
11677 (find_default_supports_non_stop): Add 'self' argument.
11678 * remote.c (remote_supports_non_stop): Add 'self' argument.
11679 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11683 * target.h (struct target_ops) <to_log_command>: Add argument.
11684 (target_log_command): Add argument.
11685 * serial.h (serial_log_command): Add 'self' argument.
11686 * serial.c (serial_log_command): Add 'self' argument.
11688 2014-02-19 Tom Tromey <tromey@redhat.com>
11690 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11691 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11693 (target_pid_to_exec_file): Add argument.
11694 * target.c (debug_to_pid_to_exec_file): Add argument.
11695 (update_current_target): Update.
11696 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11697 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11698 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11699 (linux_handle_extended_wait): Update.
11700 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11701 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11702 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11703 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11705 2014-02-19 Tom Tromey <tromey@redhat.com>
11707 * target.h (struct target_ops) <to_rcmd>: Add argument.
11708 (target_rcmd): Add argument.
11709 * target.c (debug_to_rcmd): Add argument.
11710 (update_current_target, do_monitor_command): Update.
11711 * remote.c (remote_rcmd): Add 'self' argument.
11712 * monitor.c (monitor_rcmd): Add 'self' argument.
11714 2014-02-19 Tom Tromey <tromey@redhat.com>
11716 * windows-nat.c (windows_stop): Add 'self' argument.
11717 * target.h (struct target_ops) <to_stop>: Add argument.
11718 * target.c (target_stop): Add argument.
11719 (debug_to_stop): Add argument.
11720 (update_current_target): Update.
11721 * remote.c (remote_stop): Add 'self' argument.
11722 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11723 (gdbsim_cntrl_c): Update.
11724 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11725 * procfs.c (procfs_stop): Add 'self' argument.
11726 * nto-procfs.c (procfs_stop): Add 'self' argument.
11727 * monitor.c (monitor_stop): Add 'self' argument.
11728 (monitor_open): Update.
11729 * linux-nat.c (linux_nat_stop): Add argument.
11730 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11731 * gnu-nat.c (gnu_stop): Add 'self' argument.
11732 * darwin-nat.c (darwin_stop): Add 'self' argument.
11734 2014-02-19 Tom Tromey <tromey@redhat.com>
11736 * target.h (struct target_ops) <to_thread_name>: Add argument.
11737 * target.c (target_thread_name): Add argument.
11738 (update_current_target): Update.
11739 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11741 2014-02-19 Tom Tromey <tromey@redhat.com>
11743 * target.h (struct target_ops) <to_extra_thread_info>: Add
11745 (target_extra_thread_info): Add argument.
11746 * target.c (update_current_target): Update.
11747 * remote.c (remote_threads_extra_info): Add 'self' argument.
11748 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11750 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11751 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11752 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11754 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11756 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11758 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11761 2014-02-19 Tom Tromey <tromey@redhat.com>
11763 * target.h (struct target_ops) <to_program_signals>: Add argument.
11764 * target.c (target_program_signals): Add argument.
11765 * remote.c (remote_program_signals): Add 'self' argument.
11767 2014-02-19 Tom Tromey <tromey@redhat.com>
11769 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11770 * target.c (target_pass_signals): Add argument.
11771 * remote.c (remote_pass_signals): Add 'self' argument.
11772 (remote_start_remote): Update.
11773 * procfs.c (procfs_pass_signals): Add 'self' argument.
11774 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11775 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11776 (linux_nat_create_inferior, linux_nat_attach): Update.
11778 2014-02-19 Tom Tromey <tromey@redhat.com>
11780 * windows-nat.c (windows_can_run): Add 'self' argument.
11781 * target.h (struct target_ops) <to_can_run>: Add argument.
11782 (target_can_run): Add argument.
11783 * target.c (debug_to_can_run): Add argument.
11784 (update_current_target): Update.
11785 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11786 * inf-child.c (inf_child_can_run): Add 'self' argument.
11787 * go32-nat.c (go32_can_run): Add 'self' argument.
11789 2014-02-19 Tom Tromey <tromey@redhat.com>
11791 * target.h (struct target_ops) <to_has_exited>: Add argument.
11792 (target_has_exited): Add argument.
11793 * target.c (debug_to_has_exited): Add argument.
11794 (update_current_target): Update.
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11798 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11800 (target_set_syscall_catchpoint): Add argument.
11801 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11803 * target.c (update_current_target): Update.
11805 2014-02-19 Tom Tromey <tromey@redhat.com>
11807 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11809 (target_remove_exec_catchpoint): Add argument.
11810 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11811 (update_current_target): Update.
11812 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11815 2014-02-19 Tom Tromey <tromey@redhat.com>
11817 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11819 (target_insert_exec_catchpoint): Add argument.
11820 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11821 (update_current_target): Update.
11822 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11827 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11829 (target_remove_vfork_catchpoint): Add argument.
11830 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11831 (update_current_target): Update.
11832 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11837 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11839 (target_insert_vfork_catchpoint): Add argument.
11840 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11841 (update_current_target): Update.
11842 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11845 2014-02-19 Tom Tromey <tromey@redhat.com>
11847 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11849 (target_remove_fork_catchpoint): Add argument.
11850 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11851 (update_current_target): Update.
11852 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11855 2014-02-19 Tom Tromey <tromey@redhat.com>
11857 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11859 (target_insert_fork_catchpoint): Add argument.
11860 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11861 (update_current_target): Update.
11862 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11865 2014-02-19 Tom Tromey <tromey@redhat.com>
11867 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11869 (target_post_startup_inferior): Add argument.
11870 * target.c (debug_to_post_startup_inferior): Add argument.
11871 (update_current_target): Update.
11872 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11874 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11876 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11878 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11880 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11882 (super_post_startup_inferior): Likewise.
11883 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11885 (super_post_startup_inferior): Likewise.
11886 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11887 Add 'self' argument.
11888 (super_post_startup_inferior): Likewise.
11890 2014-02-19 Tom Tromey <tromey@redhat.com>
11892 * target.h (struct target_ops) <to_load>: Add argument.
11893 * target.c (target_load): Add argument.
11894 (debug_to_load): Add argument.
11895 (update_current_target): Update.
11896 * remote.c (remote_load): Add 'self' argument.
11897 * remote-sim.c (gdbsim_load): Add 'self' argument.
11898 * remote-mips.c (mips_load): Add 'self' argument.
11899 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11900 * monitor.c (monitor_load): Add 'self' argument.
11901 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11903 2014-02-19 Tom Tromey <tromey@redhat.com>
11905 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11906 (target_terminal_info): Add argument.
11907 * target.c (debug_to_terminal_info): Add argument.
11908 (default_terminal_info): Likewise.
11909 * inflow.c (child_terminal_info): Add 'self' argument.
11910 * inferior.h (child_terminal_info): Add 'self' argument.
11911 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11913 2014-02-19 Tom Tromey <tromey@redhat.com>
11915 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11917 (target_terminal_save_ours): Add argument.
11918 * target.c (debug_to_terminal_save_ours): Add argument.
11919 (update_current_target): Update.
11920 * inflow.c (terminal_save_ours): Add 'self' argument.
11921 * inferior.h (terminal_save_ours): Add 'self' argument.
11923 2014-02-19 Tom Tromey <tromey@redhat.com>
11925 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11926 (target_terminal_ours): Add argument.
11927 * target.c (debug_to_terminal_ours): Add argument.
11928 (update_current_target): Update.
11929 * remote.c (remote_terminal_ours): Add 'self' argument.
11930 (remote_close): Update.
11931 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11932 * inflow.c (terminal_ours): Add 'self' argument.
11933 * inferior.h (terminal_ours): Add 'self' argument.
11934 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11936 2014-02-19 Pedro Alves <palves@redhat.com>
11937 Tom Tromey <tromey@redhat.com>
11939 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11941 (target_terminal_ours_for_output): Add argument.
11942 * target.c (debug_to_terminal_ours_for_output): Add argument.
11943 (update_current_target): Update.
11944 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11945 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11946 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11950 * target.h (struct target_ops) <to_terminal_inferior>: Add
11952 * target.c (target_terminal_inferior): Add argument.
11953 (update_current_target): Update.
11954 * remote.c (remote_terminal_inferior): Add 'self' argument.
11955 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11956 * inflow.c (terminal_inferior): Add 'self' argument.
11957 * inferior.h (terminal_inferior): Add 'self' argument.
11958 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11959 (go32_terminal_inferior): Add 'self' argument.
11961 2014-02-19 Tom Tromey <tromey@redhat.com>
11963 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11964 (target_terminal_init): Add argument.
11965 * target.c (debug_to_terminal_init): Add argument.
11966 (update_current_target): Update.
11967 * inflow.c (terminal_init_inferior): Add 'self' argument.
11968 * inferior.h (terminal_init_inferior): Add 'self' argument.
11969 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11970 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11972 2014-02-19 Tom Tromey <tromey@redhat.com>
11974 * target.h (struct target_ops)
11975 <to_can_accel_watchpoint_condition>: Add argument.
11976 (target_can_accel_watchpoint_condition): Add argument.
11977 * target.c (debug_to_can_accel_watchpoint_condition): Add
11979 (update_current_target): Update.
11980 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11983 2014-02-19 Tom Tromey <tromey@redhat.com>
11985 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11987 (target_region_ok_for_hw_watchpoint): Add argument.
11988 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11989 (default_region_ok_for_hw_watchpoint): Add argument.
11990 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11991 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11993 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11995 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11997 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11999 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12001 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12003 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12004 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12006 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12007 Add 'self' argument.
12009 2014-02-19 Tom Tromey <tromey@redhat.com>
12011 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12013 (target_insert_watchpoint): Add argument.
12014 * target.c (debug_to_insert_watchpoint): Add argument.
12015 (update_current_target): Update.
12016 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12017 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12018 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12019 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12020 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12021 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12023 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12024 (procfs_insert_hw_watchpoint): Add 'self' argument.
12025 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12027 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12029 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12031 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12032 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12034 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12039 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12041 (target_remove_watchpoint): Add argument.
12042 * target.c (debug_to_remove_watchpoint): Add argument.
12043 (update_current_target): Update.
12044 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12045 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12046 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12047 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12048 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12049 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12051 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12052 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12054 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12056 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12058 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12059 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12061 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12064 2014-02-19 Tom Tromey <tromey@redhat.com>
12066 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12068 (target_remove_hw_breakpoint): Add argument.
12069 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12070 (update_current_target): Update.
12071 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12072 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12074 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12075 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12077 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12080 2014-02-19 Tom Tromey <tromey@redhat.com>
12082 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12084 (target_insert_hw_breakpoint): Add argument.
12085 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12086 (update_current_target): Update.
12087 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12088 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12090 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12091 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12092 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12094 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12097 2014-02-19 Tom Tromey <tromey@redhat.com>
12099 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12101 (target_can_use_hardware_watchpoint): Add argument.
12102 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12103 (update_current_target): Update.
12104 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12106 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12108 * remote.c (remote_check_watch_resources): Add 'self' argument.
12109 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12110 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12112 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12113 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12115 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12117 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12119 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12121 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12123 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12125 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12126 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12128 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12133 * target.h (struct target_ops) <to_post_attach>: Add argument.
12134 (target_post_attach): Add argument.
12135 * target.c (debug_to_post_attach): Add argument.
12136 (update_current_target): Update.
12137 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12138 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12139 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12140 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12141 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12143 2014-02-19 Tom Tromey <tromey@redhat.com>
12145 * windows-nat.c (windows_close): Add 'self' argument.
12146 * tracepoint.c (tfile_close): Add 'self' argument.
12147 * target.h (struct target_ops) <to_close>: Add argument.
12148 * target.c (target_close): Add argument.
12149 (update_current_target): Update.
12150 * remote.c (remote_close): Add 'self' argument.
12151 * remote-sim.c (gdbsim_close): Add 'self' argument.
12152 * remote-mips.c (mips_close): Add 'self' argument.
12153 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12154 * record-full.c (record_full_close): Add 'self' argument.
12155 * record-btrace.c (record_btrace_close): Add 'self' argument.
12156 * monitor.h (monitor_close): Add 'self' argument.
12157 * monitor.c (monitor_close): Add 'self' argument.
12158 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12159 * linux-nat.c (linux_nat_close): Add argument.
12160 * go32-nat.c (go32_close): Add 'self' argument.
12161 * exec.c (exec_close_1): Add 'self' argument.
12162 * ctf.c (ctf_close): Add 'self' argument.
12163 * corelow.c (core_close): Add 'self' argument.
12164 (core_close_cleanup): Update.
12165 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12166 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12168 2014-02-19 Tom Tromey <tromey@redhat.com>
12170 * remote.c (remote_load): New function.
12171 (init_remote_ops): Use it.
12173 2014-02-19 Tom Tromey <tromey@redhat.com>
12175 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12177 * common/linux-btrace.h (linux_supports_btrace): Update.
12178 * remote.c (remote_supports_btrace): Add "self" argument.
12179 * target-delegates.c: Rebuild.
12180 * target.c (target_supports_btrace): Remove.
12181 * target.h (struct target_ops) <to_supports_btrace>: Add
12182 target_ops argument.
12183 (target_supports_btrace): New define.
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12187 * record-full.c (record_full_beneath_to_resume_ops)
12188 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12189 (record_full_beneath_to_wait)
12190 (record_full_beneath_to_store_registers_ops)
12191 (record_full_beneath_to_store_registers)
12192 (record_full_beneath_to_xfer_partial_ops)
12193 (record_full_beneath_to_xfer_partial)
12194 (record_full_beneath_to_insert_breakpoint_ops)
12195 (record_full_beneath_to_insert_breakpoint)
12196 (record_full_beneath_to_remove_breakpoint_ops)
12197 (record_full_beneath_to_remove_breakpoint)
12198 (record_full_beneath_to_stopped_by_watchpoint)
12199 (record_full_beneath_to_stopped_data_address)
12200 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12201 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12202 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12203 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12204 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12205 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12206 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12207 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12208 (record_full_resume, record_full_wait_1)
12209 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12210 (record_full_store_registers, record_full_xfer_partial)
12211 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12212 (record_full_async, record_full_core_xfer_partial): Use target
12214 * target-delegates.c: Rebuild.
12215 * target.c (current_xfer_partial): Remove.
12216 (update_current_target): Do not INHERIT or de_fault
12217 to_insert_breakpoint, to_remove_breakpoint,
12218 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12219 to_is_async_p, to_async. Do not set to_xfer_partial field.
12220 (default_xfer_partial): Simplify.
12221 (current_xfer_partial): Remove.
12222 (target_wait, target_resume): Simplify.
12223 (find_default_can_async_p, find_default_is_async_p): Update.
12224 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12225 to_xfer_partial, to_stopped_by_watchpoint,
12226 to_stopped_data_address.
12227 (target_store_registers): Simplify.
12228 (forward_target_remove_breakpoint)
12229 (forward_target_insert_breakpoint): Remove.
12230 (target_remove_breakpoint, target_insert_breakpoint)
12231 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12232 * target.h (struct target_ops) <to_resume, to_wait,
12233 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12234 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12235 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12237 (forward_target_remove_breakpoint)
12238 (forward_target_insert_breakpoint): Remove.
12239 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12241 (record_btrace_insert_breakpoint): Delegate directly.
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12246 * target-delegates.c: New file.
12247 * target.c: Include target-delegates.c.
12248 (init_dummy_target): Call install_dummy_methods.
12249 (complete_target_initialization): Call install_delegators.
12250 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12251 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12252 * make-target-delegates: New file.
12254 2014-02-19 Tom Tromey <tromey@redhat.com>
12256 * record.c (find_record_target): Use find_target_at.
12257 * target.c (find_target_at): New function.
12258 * target.h (find_target_at): Declare.
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12262 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12263 Add 'ops' argument.
12264 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12266 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12267 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12269 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12271 * linux-nat.c (save_sigtrap): Update.
12272 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12273 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12274 (linux_nat_close): Update.
12275 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12277 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12279 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12280 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12281 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12282 (tmp_to_async): Add 'ops' argument.
12283 (record_full_stopped_by_watchpoint, record_full_async)
12284 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12286 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12287 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12288 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12289 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12290 (remote_is_async_p, remote_async): Add 'ops' argument.
12291 (remote_stopped_data_address): Update.
12292 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12293 * target.c (update_current_target)
12294 (find_default_can_async_p, find_default_is_async_p): Update.
12295 (init_dummy_target): Update.
12296 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12297 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12298 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12299 (target_can_async_p, target_is_async_p, target_async)
12300 (target_stopped_by_watchpoint): Update.
12302 2014-02-19 Yao Qi <yao@codesourcery.com>
12305 * gdbarch.sh: Remove startup_gdbarch.
12306 * gdbarch.c: Regenerated.
12307 * gdbarch.h: Likewise.
12309 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12311 * rl78-tdep.c (rl78_g10_register_name): New function.
12312 (rl78_return_value): Add g10 support.
12313 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12316 2014-02-17 Doug Evans <xdje42@gmail.com>
12318 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12319 (SUBDIR_GUILE_SRCS): Ditto.
12320 (scm-gsmob.o): Ditto.
12322 2014-02-17 Yao Qi <yao@codesourcery.com>
12324 * gnu-nat.c (ILL_RPC): Declare defined function.
12326 2014-02-17 Yao Qi <yao@codesourcery.com>
12328 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12329 mach_msg_type_number_t.
12330 (gnu_write_inferior): Likewise.
12332 2014-02-17 Yao Qi <yao@codesourcery.com>
12334 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12336 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12337 (inf_validate_procs, inf_signal): Likewise.
12338 (S_exception_raise_request): Likewise.
12339 (do_mach_notify_dead_name): Likewise.
12340 (steal_exc_port): Likewise.
12341 (gnu_read_inferior): Change 'copy_count''s type to
12342 mach_msg_type_number_t.
12343 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12346 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12348 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12349 flag. Adjust all users; in particular...
12350 (gnu_wait): ..., don't decrement its value in here...
12351 (gnu_create_inferior): ..., and instead set the flag in here,
12352 around the startup_inferior call, and call that one with
12353 START_INFERIOR_TRAPS_EXPECTED.
12355 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12356 (ILL_RPC): ... new macro.
12357 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12358 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12359 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12360 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12361 functions with ILL_RPC macro.
12362 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12363 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12364 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12365 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12366 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12367 (S_proc_getlogin_reply, S_proc_getsid_reply)
12368 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12369 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12370 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12371 (S_proc_getnports_reply, S_proc_is_important_reply)
12372 (S_proc_get_code_reply): New stub functions, generated with
12375 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12376 collected the type check structures.
12378 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12380 2014-02-14 Doug Evans <dje@google.com>
12382 * target.c (target_write_partial): Fix result type.
12384 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12386 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12387 the proper offsets to access fpregset_t.
12389 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12391 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12392 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12393 * h8300-tdep.c (setmachinelist): Remove global.
12394 * hppa-tdep.c (hppa_sigtramp): Remove global.
12395 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12396 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12397 * ravenscar-thread.c (update_target_observer): Remove global.
12398 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12400 2014-02-12 Tom Tromey <tromey@redhat.com>
12402 * common/rsp-low.c: Update comments.
12403 * common/rsp-low.h: Update comments.
12405 2014-02-12 Tom Tromey <tromey@redhat.com>
12407 * common/rsp-low.c (convert_ascii_to_int): Remove.
12408 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12410 2014-02-12 Tom Tromey <tromey@redhat.com>
12412 * common/rsp-low.h (unhexify): Don't declare.
12413 * common/rsp-low.c (unhexify): Remove.
12415 2014-02-12 Tom Tromey <tromey@redhat.com>
12417 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12418 * common/rsp-low.c (convert_int_to_ascii): Remove.
12420 2014-02-12 Tom Tromey <tromey@redhat.com>
12422 * common/rsp-low.h (hexify): Don't declare.
12423 * common/rsp-low.c (hexify): Remove.
12425 2014-02-12 Tom Tromey <tromey@redhat.com>
12427 * common/rsp-low.c (hexify): Never take strlen of argument.
12429 2014-02-12 Tom Tromey <tromey@redhat.com>
12431 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12432 * remote.c (extended_remote_run, remote_rcmd)
12433 (remote_download_trace_state_variable, remote_save_trace_data)
12434 (remote_set_trace_notes): Update.
12435 * tracepoint.c (encode_source_string, tfile_write_status)
12436 (tfile_write_uploaded_tsv): Update.
12438 2014-02-12 Tom Tromey <tromey@redhat.com>
12440 * tracepoint.c: Include rsp-low.h.
12441 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12442 * remote.c: Include rsp-low.h.
12443 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12444 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12445 (remote_unescape_input): Move to common/rsp-low.c.
12446 * common/rsp-low.h: New file.
12447 * common/rsp-low.c: New file.
12448 * Makefile.in (SFILES): Add common/rsp-low.c.
12449 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12450 (COMMON_OBS): Add rsp-low.o.
12451 (rsp-low.o): New target.
12453 2014-02-12 Tom Tromey <tromey@redhat.com>
12455 * utils.h: Include print-utils.h.
12456 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12457 (int_string, core_addr_to_string, core_addr_to_string_nz)
12458 (hex_string, hex_string_custom): Don't declare.
12459 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12460 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12461 (hex_string_custom, int_string, core_addr_to_string)
12462 (core_addr_to_string_nz, host_address_to_string): Move to
12463 common/print-utils.c.
12464 * common/print-utils.h: New file.
12465 * common/print-utils.c: New file
12466 * Makefile.in (SFILES): Add common/print-utils.c.
12467 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12468 (COMMON_OBS): Add print-utils.o.
12469 (print-utils.o): New target.
12471 2014-02-12 Tom Tromey <tromey@redhat.com>
12473 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12475 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12477 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12479 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12481 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12482 if a PT_IO ptrace request returns sucessfully but indicates that 0
12483 bytes were transferred.
12485 2014-02-12 Pedro Alves <palves@redhat.com>
12486 Kevin Buettner <kevinb@redhat.com>
12488 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12489 TYPE_INSTANCE_FLAG_CODE_SPACE.
12491 2014-02-12 Pedro Alves <palves@redhat.com>
12493 * h8300-tdep.c (pseudo_from_raw_register)
12494 (raw_from_pseudo_register): New functions.
12495 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12498 2014-02-12 Pedro Alves <palves@redhat.com>
12500 * h8300-tdep.c (h8300_register_sim_regno): New function.
12501 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12502 gdbarch_register_sim_regno hook.
12504 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12506 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12508 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12510 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12512 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12514 * obsd-tdep.h (obsd_init_abi): New prototype.
12515 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12516 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12517 (obsd_init_abi): New functions.
12518 * i386obsd-tdep.c: Include "obsd-tdep.h".
12519 (i386obsd_init_abi): Call obsd_init_abi.
12520 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12521 (amd64obsd_init_abi): Call obsd_init_abi.
12522 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12523 obsd-tdep.c to gdb_target_obs.
12525 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12527 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12528 double float arguments to 16-byte in the argument slots.
12530 2014-02-11 Doug Evans <xdje42@gmail.com>
12532 * configure.ac: Don't crash if pkg-config is not found and guile
12533 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12535 * configure: Regenerate.
12537 2014-02-11 Yao Qi <yao@codesourcery.com>
12539 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12540 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12541 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12542 * gnu-nat.c (gnu_xfer_memory): Likewise.
12543 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12544 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12545 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12546 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12548 2014-02-11 Yao Qi <yao@codesourcery.com>
12550 * target.h (enum target_xfer_error): Rename to ...
12551 (enum target_xfer_status): ... it. New. All users updated.
12552 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12554 (TARGET_XFER_STATUS_ERROR_P): New macro.
12555 (target_xfer_error_to_string): Remove declaration.
12556 (target_xfer_status_to_string): Declare.
12557 (target_xfer_partial_ftype): Adjust it.
12558 (struct target_ops) <to_xfer_partial>: Return
12559 target_xfer_status. Add argument xfered_len. Update
12561 * target.c (target_xfer_error_to_string): Rename to ...
12562 (target_xfer_status_to_string): ... it. New. All callers
12564 (target_read_live_memory): Likewise. Call target_xfer_partial
12565 instead of target_read.
12566 (memory_xfer_live_readonly_partial): Return
12567 target_xfer_status. Add argument xfered_len.
12568 (raw_memory_xfer_partial): Likewise.
12569 (memory_xfer_partial_1): Likewise.
12570 (memory_xfer_partial): Likewise.
12571 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12572 properly. Update debug message.
12573 (default_xfer_partial, current_xfer_partial): Likewise.
12574 (target_write_partial): Likewise.
12575 (target_read_partial): Likewise. All callers updated.
12576 (read_whatever_is_readable): Likewise.
12577 (target_write_with_progress): Likewise.
12578 (target_read_alloc_1): Likewise.
12580 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12581 * auxv.c (procfs_xfer_auxv): Likewise.
12582 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12583 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12584 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12585 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12586 * corefile.c (read_memory): Adjust.
12587 * corelow.c (core_xfer_partial): Likewise.
12588 * ctf.c (ctf_xfer_partial): Likewise.
12589 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12591 (darwin_xfer_partial): Likewise.
12592 * exec.c (section_table_xfer_memory_partial): Likewise. All
12594 (exec_xfer_partial): Likewise.
12595 * exec.h (section_table_xfer_memory_partial): Update
12597 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12599 (gnu_xfer_partial): Likewise.
12600 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12601 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12602 (ia64_hpux_xfer_solib_got): Likewise.
12603 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12604 type of 'partial_len' to ULONGEST.
12605 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12606 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12607 (linux_nat_xfer_partial): Likewise.
12608 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12609 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12610 * monitor.c (monitor_xfer_memory): Likewise.
12611 (monitor_xfer_partial): Likewise.
12612 * procfs.c (procfs_xfer_partial): Likewise.
12613 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12614 * record-full.c (record_full_xfer_partial): Likewise.
12615 (record_full_core_xfer_partial): Likewise.
12616 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12617 (gdbsim_xfer_partial): Likewise.
12618 * remote.c (remote_write_bytes_aux): Likewise. All callers
12620 (remote_write_bytes, remote_read_bytes): Likewise. All
12622 (remote_flash_erase): Likewise. All callers updated.
12623 (remote_write_qxfer): Likewise. All callers updated.
12624 (remote_read_qxfer): Likewise. All callers updated.
12625 (remote_xfer_partial): Likewise.
12626 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12627 (rs6000_xfer_shared_libraries): Likewise.
12628 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12629 (sol_thread_xfer_partial): Likewise.
12630 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12631 (sparc_xfer_partial): Likewise.
12632 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12634 (spu_xfer_partial): Likewise.
12635 * spu-multiarch.c (spu_xfer_partial): Likewise.
12636 * tracepoint.c (tfile_xfer_partial): Likewise.
12637 * windows-nat.c (windows_xfer_memory): Likewise.
12638 (windows_xfer_shared_libraries): Likewise.
12639 (windows_xfer_partial): Likewise.
12640 * valprint.c: Replace 'target_xfer_error' with
12641 'target_xfer_status' in comments.
12643 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12645 Checked in by Joel Brobecker <brobecker@adacore.com>.
12646 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12648 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12650 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12651 function parameters.
12653 2014-02-10 Will Newton <will.newton@linaro.org>
12655 * elfread.c (elf_rel_plt_read): Look for a .got section if
12656 looking up .got.plt fails.
12657 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12658 on address passed to elf_gnu_ifunc_record_cache.
12659 (elf_gnu_ifunc_resolve_addr): Likewise.
12660 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12662 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12664 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12665 (X_RETTURN): New macro.
12666 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12668 * sparc64-tdep.c (sparc64_init_abi): Hook
12669 sparc_in_function_epilogue_p.
12671 2014-02-10 Gary Benson <gbenson@redhat.com>
12673 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12674 Rename name_matcher to symbol_matcher.
12676 2014-02-10 Gary Benson <gbenson@redhat.com>
12678 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12679 Use expand_symtabs_file_matcher_ftype and
12680 expand_symtabs_symbol_matcher_ftype.
12682 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12684 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12685 (struct ada_symbol_cache): New.
12686 (ada_free_symbol_cache): Forward declare.
12687 (struct ada_pspace_data): New.
12688 (ada_pspace_data_handle): New static global.
12689 (get_ada_pspace_data, ada_pspace_data_cleanup)
12690 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12691 (cache_space, cache): Delete, now folded inside struct
12693 (ada_get_symbol_cache): New function.
12694 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12696 (_initialize_ada_language): Remove initialization of cache_space.
12697 Move call to observer_attach_inferior_exit up, grouping it
12698 with the other observer registrations inside this function.
12699 Rename command to be more general. Add call to
12700 register_program_space_data_with_cleanup.
12702 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12704 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12705 ada_new_objfile_observer.
12706 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12707 (_initialize_tasks): Update uses of ada_new_objfile_observer
12708 and ada_tasks_normal_stop_observer.
12710 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12712 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12713 returned by the 'Length attribute to integer.
12715 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12717 * ada-lang.c (_initialize_ada_language): Initialize
12718 cache_space obstack.
12720 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12722 * ada-lang.c (HASH_SIZE): New macro.
12723 (struct cache_entry): New type.
12724 (cache_space, cache): New static globals.
12725 (ada_clear_symbol_cache, find_entry): New functions.
12726 (lookup_cached_symbol, cache_symbol): Implement.
12727 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12728 (_initialize_ada_language): Attach ada_new_objfile_observer
12729 and ada_free_objfile_observer.
12731 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12733 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12734 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12735 struct block * parameter.
12736 (ada_lookup_symbol_list_worker): Constify local variable "block".
12737 Remove cast which is no longer necessary.
12739 2014-02-10 Doug Evans <xdje42@gmail.com>
12741 Add Guile as an extension language.
12742 * NEWS: Mention Guile scripting.
12743 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12744 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12745 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12746 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12747 (CLIBS): Add GUILE_LIBS.
12748 (install-guile): New rule.
12749 (guile.o): New rule.
12750 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12751 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12752 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12753 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12754 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12755 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12756 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12757 * configure.ac: New option --with-guile.
12758 * configure: Regenerate.
12759 * config.in: Regenerate.
12760 * auto-load.c: Remove #include "python/python.h". Add #include
12761 "gdb/section-scripts.h".
12762 (source_section_scripts): Handle Guile scripts.
12763 (_initialize_auto_load): Add name of Guile objfile script to
12764 scripts-directory help text.
12765 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12766 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12767 (struct breakpoint): New member scm_bp_object.
12768 * defs.h (enum command_control_type): New value guile_control.
12769 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12771 (show_user): Update comment.
12772 (_initialize_cli_cmds): Update help text for "show user". Update help
12773 text for max-user-call-depth.
12774 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12776 (multi_line_command_p): Add guile_control.
12777 (print_command_lines): Handle guile_control.
12778 (execute_control_command, recurse_read_control_structure): Ditto.
12779 (process_next_line): Recognize "guile" commands.
12780 * disasm.c (gdb_disassemble_info): Make non-static.
12781 * disasm.h: #include "dis-asm.h".
12782 (struct gdbarch): Add forward decl.
12783 (gdb_disassemble_info): Declare.
12784 * extension.c: #include "guile/guile.h".
12785 (extension_languages): Add guile.
12786 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12787 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12788 * gdbtypes.c (get_unsigned_type_max): New function.
12789 (get_signed_type_minmax): New function.
12790 * gdbtypes.h (get_unsigned_type_max): Declare.
12791 (get_signed_type_minmax): Declare.
12792 * guile/README: New file.
12793 * guile/guile-internal.h: New file.
12794 * guile/guile.c: New file.
12795 * guile/guile.h: New file.
12796 * guile/scm-arch.c: New file.
12797 * guile/scm-auto-load.c: New file.
12798 * guile/scm-block.c: New file.
12799 * guile/scm-breakpoint.c: New file.
12800 * guile/scm-disasm.c: New file.
12801 * guile/scm-exception.c: New file.
12802 * guile/scm-frame.c: New file.
12803 * guile/scm-gsmob.c: New file.
12804 * guile/scm-iterator.c: New file.
12805 * guile/scm-lazy-string.c: New file.
12806 * guile/scm-math.c: New file.
12807 * guile/scm-objfile.c: New file.
12808 * guile/scm-ports.c: New file.
12809 * guile/scm-pretty-print.c: New file.
12810 * guile/scm-safe-call.c: New file.
12811 * guile/scm-string.c: New file.
12812 * guile/scm-symbol.c: New file.
12813 * guile/scm-symtab.c: New file.
12814 * guile/scm-type.c: New file.
12815 * guile/scm-utils.c: New file.
12816 * guile/scm-value.c: New file.
12817 * guile/lib/gdb.scm: New file.
12818 * guile/lib/gdb/boot.scm: New file.
12819 * guile/lib/gdb/experimental.scm: New file.
12820 * guile/lib/gdb/init.scm: New file.
12821 * guile/lib/gdb/iterator.scm: New file.
12822 * guile/lib/gdb/printing.scm: New file.
12823 * guile/lib/gdb/types.scm: New file.
12824 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12825 (VPATH): Add $(GUILE_SRCDIR).
12826 (GUILE_DIR): New variable.
12827 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12828 (all): Add stamp-guile dependency.
12829 (stamp-guile): New rule.
12830 (clean-guile, install-guile, uninstall-guile): New rules.
12831 (install-only): Add install-guile dependency.
12832 (uninstall): Add uninstall-guile dependency.
12833 (clean): Add clean-guile dependency.
12835 2014-02-09 Doug Evans <xdje42@gmail.com>
12837 Revert this patch (which I approved, mea culpa).
12839 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12841 * Makefile.in (all-lib): Remove.
12842 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12844 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12846 Fix Python stack corruption.
12847 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12850 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12852 * Makefile.in (all-lib): Remove.
12853 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12855 2014-02-07 Doug Evans <dje@google.com>
12857 * extension-priv.h (extension_language_script_ops): Add comment.
12858 (extension_language_ops): Add comment.
12859 (active_ext_lang_state): Fix typo in comment.
12861 2014-02-07 Pedro Alves <palves@redhat.com>
12863 PR breakpoints/16292
12864 * infrun.c (handle_signal_stop) <signal arrives while stepping
12865 over a breakpoint>: Switch back to the stepping thread.
12867 2014-02-07 Yao Qi <yao@codesourcery.com>
12869 * target.c (target_xfer_partial): Return zero if LEN is zero.
12871 2014-02-07 Yao Qi <yao@codesourcery.com>
12873 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12874 (ld_so_xfer_auxv): Likewise.
12875 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12876 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12877 * corelow.c (core_xfer_partial): Likewise.
12878 * ctf.c (ctf_xfer_partial): Likewise.
12879 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12880 (darwin_xfer_partial): Likewise.
12881 * exec.c (exec_xfer_partial): Likewise.
12882 * gnu-nat.c (gnu_xfer_partial): Likewise.
12883 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12884 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12885 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12886 * linux-nat.c (linux_xfer_siginfo): Likewise.
12887 (linux_proc_xfer_spu): Likewise.
12888 * procfs.c (procfs_xfer_partial): Likewise.
12889 * record-full.c (record_full_xfer_partial): Likewise.
12890 (record_full_core_xfer_partial): Likewise.
12891 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12892 * remote.c (remote_write_qxfer): Likewise.
12893 (remote_write_qxfer, remote_read_qxfer): Likewise.
12894 (remote_xfer_partial): Likewise.
12895 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12896 (rs6000_xfer_shared_libraries): Likewise.
12897 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12898 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12899 (spu_xfer_partial): Likewise.
12900 * target.c (memory_xfer_partial_1): Likewise.
12901 * tracepoint.c (tfile_xfer_partial): Likewise.
12902 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12903 (windows_xfer_partial): Likewise.
12905 2014-02-07 Yao Qi <yao@codesourcery.com>
12907 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12909 (core_xfer_shared_libraries_aix): Likewise.
12910 * gdbarch.c, gdbarch.h: Regenerated.
12911 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12912 ULONGEST. Change 'len_avail' type to ULONGEST.
12913 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12914 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12916 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12918 2014-02-07 Yao Qi <yao@codesourcery.com>
12920 * corefile.c (memory_error): Get 'exception' from ERR and pass
12921 'exception' to throw_error.
12923 2014-02-06 Doug Evans <xdje42@gmail.com>
12925 * configure.ac (libpython checking): Remove all but python.o from
12926 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12927 * configure: Regenerate.
12929 * Makefile.in (SFILES): Add extension.c.
12930 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12931 (COMMON_OBS): Add extension.o.
12932 * extension.h: New file.
12933 * extension-priv.h: New file.
12934 * extension.c: New file.
12936 * python/python-internal.h: #include "extension.h".
12937 (gdbpy_auto_load_enabled): Declare.
12938 (gdbpy_apply_val_pretty_printer): Declare.
12939 (gdbpy_apply_frame_filter): Declare.
12940 (gdbpy_preserve_values): Declare.
12941 (gdbpy_breakpoint_cond_says_stop): Declare.
12942 (gdbpy_breakpoint_has_cond): Declare.
12943 (void source_python_script_for_objfile): Delete.
12944 * python/python.c: #include "extension-priv.h".
12945 Delete inclusion of "observer.h".
12946 (extension_language_python): Moved here and renamed from
12947 script_language_python in py-auto-load.c.
12948 Redefined to be of type extension_language_defn.
12949 (python_extension_script_ops): New global.
12950 (python_extension_ops): New global.
12951 (struct python_env): New member previous_active.
12952 (restore_python_env): Call restore_active_ext_lang.
12953 (ensure_python_env): Call set_active_ext_lang.
12954 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12956 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12958 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12960 (gdbpy_eval_from_control_command): Renamed from
12961 eval_python_from_control_command, made static. New arg extlang.
12962 (gdbpy_source_script) Renamed from source_python_script, made static.
12964 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12965 result to int. New arg extlang.
12966 (gdbpy_source_objfile_script): Renamed from
12967 source_python_script_for_objfile, made static. New arg extlang.
12968 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12969 static. New args extlang, extlang_printers. Change result type to
12971 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12972 static. New arg extlang. Rename arg printers to extlang_printers
12973 and change type to ext_lang_type_printers *.
12974 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12975 static. Replace argument arg with extlang, extlang_printers.
12976 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12977 (!HAVE_PYTHON, source_python_script): Delete.
12978 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12979 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12980 (!HAVE_PYTHON, start_type_printers): Delete.
12981 (!HAVE_PYTHON, apply_type_printers): Delete.
12982 (!HAVE_PYTHON, free_type_printers): Delete.
12983 (_initialize_python): Delete call to observer_attach_before_prompt.
12984 (finalize_python): Set/restore active extension language.
12985 (gdbpy_finish_initialization) Renamed from
12986 finish_python_initialization, made static. New arg extlang.
12987 (gdbpy_initialized): New function.
12988 * python/python.h: #include "extension.h". Delete #include
12989 "value.h", "mi/mi-cmds.h".
12990 (extension_language_python): Declare.
12991 (GDBPY_AUTO_FILE_NAME): Delete.
12992 (enum py_bt_status): Moved to extension.h and renamed to
12993 ext_lang_bt_status.
12994 (enum frame_filter_flags): Moved to extension.h.
12995 (enum py_frame_args): Moved to extension.h and renamed to
12996 ext_lang_frame_args.
12997 (finish_python_initialization): Delete.
12998 (eval_python_from_control_command): Delete.
12999 (source_python_script): Delete.
13000 (apply_val_pretty_printer): Delete.
13001 (apply_frame_filter): Delete.
13002 (preserve_python_values): Delete.
13003 (gdbpy_script_language_defn): Delete.
13004 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13005 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13007 * auto-load.c: #include "extension.h".
13008 (GDB_AUTO_FILE_NAME): Delete.
13009 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13010 (script_language_gdb): Delete, moved to extension.c and renamed to
13011 extension_language_gdb.
13012 (source_gdb_script_for_objfile): Delete.
13013 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13014 (loaded_script): Change type of language member to
13015 struct extension_language_defn *.
13016 (init_loaded_scripts_info): Initialize
13017 unsupported_script_warning_printed.
13018 (maybe_add_script): Make static. Change type of language arg to
13019 struct extension_language_defn *.
13020 (clear_section_scripts): Reset unsupported_script_warning_printed.
13021 (auto_load_objfile_script_1): Rewrite to use extension language API.
13022 (auto_load_objfile_script): Make public. Remove support-compiled-in
13023 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13024 (source_section_scripts): Rewrite to use extension language API.
13025 (load_auto_scripts_for_objfile): Rewrite to use
13026 auto_load_scripts_for_objfile.
13027 (collect_matching_scripts_data): Change type of language member to
13028 struct extension_language_defn *.
13029 (auto_load_info_scripts): Change type of language arg to
13030 struct extension_language_defn *.
13031 (unsupported_script_warning_print): New function.
13032 (script_not_found_warning_print): Make static.
13033 (_initialize_auto_load): Rewrite construction of scripts-directory
13035 * auto-load.h (struct objfile): Add forward decl.
13036 (struct script_language): Delete.
13037 (struct auto_load_pspace_info): Add forward decl.
13038 (struct extension_language_defn): Add forward decl.
13039 (maybe_add_script): Delete.
13040 (auto_load_objfile_script): Declare.
13041 (script_not_found_warning_print): Delete.
13042 (auto_load_info_scripts): Update prototype.
13043 (auto_load_gdb_scripts_enabled): Declare.
13044 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13045 auto_load_python_scripts_enabled and made public.
13046 (script_language_python): Delete, moved to python.c.
13047 (gdbpy_script_language_defn): Delete.
13048 (info_auto_load_python_scripts): Update to use
13049 extension_language_python.
13051 * breakpoint.c (condition_command): Replace call to
13052 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13053 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13054 with call to breakpoint_ext_lang_cond_says_stop.
13055 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13056 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13057 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13058 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13060 (local_setattro): Print name of extension language with existing
13063 * valprint.c (val_print, value_print): Update to call
13064 apply_ext_lang_val_pretty_printer.
13065 * cp-valprint.c (cp_print_value): Update call to
13066 apply_ext_lang_val_pretty_printer.
13067 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13068 (gdbpy_apply_val_pretty_printer): Renamed from
13069 apply_val_pretty_printer. New arg extlang.
13070 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13072 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13073 extension language API.
13074 * cli/cli-script.c (execute_control_command): Update to call
13075 eval_ext_lang_from_control_command.
13077 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13078 enum ext_lang_bt_status values. Update call to
13079 apply_ext_lang_frame_filter.
13080 (mi_cmd_stack_list_locals): Ditto.
13081 (mi_cmd_stack_list_args): Ditto.
13082 (mi_cmd_stack_list_variables): Ditto.
13083 * mi/mi-main.c: Delete #include "python/python-internal.h".
13084 Add #include "extension.h".
13085 (mi_cmd_list_features): Replace reference to python internal variable
13086 gdb_python_initialized with call to ext_lang_initialized_p.
13088 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13089 Update to use enum ext_lang_frame_args. Update to call
13090 apply_ext_lang_frame_filter.
13091 * python/py-framefilter.c (extract_sym): Update to use enum
13092 ext_lang_bt_status.
13093 (extract_value, py_print_type, py_print_value): Ditto.
13094 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13095 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13096 (py_print_frame): Ditto.
13097 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13098 New arg extlang. Update to use enum ext_lang_bt_status.
13100 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13101 finish_python_initialization. Replace with call to
13102 finish_ext_lang_initialization.
13104 * typeprint.c (do_free_global_table): Update to call
13105 free_ext_lang_type_printers.
13106 (create_global_typedef_table): Update to call
13107 start_ext_lang_type_printers.
13108 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13109 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13110 (type_print_options): Change type of global_printers from "void *"
13111 to "struct ext_lang_type_printers *".
13113 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13114 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13115 (gdbpy_preserve_values): Renamed from preserve_python_values.
13117 (!HAVE_PYTHON, preserve_python_values): Delete.
13119 * utils.c (quit_flag): Delete, moved to extension.c.
13120 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13123 * eval.c: Delete #include "python/python.h".
13124 * main.c: Delete #include "python/python.h".
13126 * defs.h: Update comment.
13128 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13132 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13134 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13137 2014-02-05 Yao Qi <yao@codesourcery.com>
13139 * remote.c (remote_pass_signals): Remove local 'buf' and use
13141 (remote_program_signals): Likewise.
13143 2014-02-05 Yao Qi <yao@codesourcery.com>
13145 * ctf.c: Include "inferior.h" and "gdbthread.h".
13146 (CTF_PID): A new macro.
13147 (ctf_open): Call inferior_appeared and add_thread_silent.
13148 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13149 (ctf_thread_alive): New function.
13150 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13152 2014-02-05 Yao Qi <yao@codesourcery.com>
13156 2013-05-24 Yao Qi <yao@codesourcery.com>
13158 * tracepoint.c (TFILE_PID): Remove.
13159 (tfile_open): Don't add thread and inferior.
13160 (tfile_close): Don't set 'inferior_ptid'. Don't call
13161 exit_inferior_silent.
13162 (tfile_thread_alive): Remove.
13163 (init_tfile_ops): Don't set field 'to_thread_alive' of
13166 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13168 * remote.c (remote_start_remote): Call remote_check_symbols even
13169 if only symbol-file (not file) has been given.
13171 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13173 * gdbarch.sh (skip_entrypoint): New callback.
13174 * gdbarch.c, gdbarch.h: Regenerate.
13175 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13176 * infrun.c (fill_in_stop_func): Likewise.
13177 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13178 (ppc_elfv2_elf_make_msymbol_special): New function.
13179 (ppc_elfv2_skip_entrypoint): Likewise.
13180 (ppc_linux_init_abi): Install them for ELFv2.
13182 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13184 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13185 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13186 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13187 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13188 structures returned in GPRs.
13190 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13192 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13193 offset to the stack parameter list for the ELFv2 ABI.
13195 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13197 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13198 set_gdbarch_convert_from_func_ptr_addr and
13199 set_gdbarch_elf_make_msymbol_special for ELFv1.
13200 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13201 function descriptors on ELFv1.
13202 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13203 set up r12 at function entry.
13205 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13207 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13208 (struct gdbarch_tdep): New member elf_abi.
13210 * rs6000-tdep.c: Include "elf/ppc64.h".
13211 (rs6000_gdbarch_init): Detect ELF ABI version.
13213 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13215 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13216 within a register pair holding a DFP 128-bit value on little-endian.
13217 (ppc64_sysv_abi_return_value_base): Likewise.
13218 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13219 (dfp_pseudo_register_write): Likewise.
13221 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13223 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13224 offset on little-endian when passing _Decimal32.
13225 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13227 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13229 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13230 of the overlapped FP register within the VSX register on little-
13232 (efpr_pseudo_register_write): Likewise.
13234 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13236 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13237 offset on little-endian when passing small structures.
13239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13241 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13242 (struct ppc64_sysv_argpos): New data structure.
13243 (ppc64_sysv_abi_push_float): Remove.
13244 (ppc64_sysv_abi_push_val): New function.
13245 (ppc64_sysv_abi_push_integer): Likewise.
13246 (ppc64_sysv_abi_push_freg): Likewise.
13247 (ppc64_sysv_abi_push_vreg): Likewise.
13248 (ppc64_sysv_abi_push_param): Likewise.
13249 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13250 (ppc64_sysv_abi_return_value_base): New function.
13251 (ppc64_sysv_abi_return_value): Refactor to use it.
13253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
13255 * NEWS: Document new target powerpc64le-*-linux*.
13257 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13259 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13260 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13262 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13263 register set used in ELF core dumps. Add floating-point register set.
13265 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13267 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13268 dwarf2_to_gdb[] table using symbolic constants. Adjust
13269 penultimate entry from number representing the PC register
13270 to symbolic constant representing the MDR register. Add
13271 constant for the PC register to the end of the table.
13273 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13275 * bsd-kvm.c: Include <sys/param.h>
13277 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13279 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13281 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13283 * ada-lang.h (clear_ada_sym_cache): Delete.
13285 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
13287 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13289 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13291 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13292 the sigreturn register save area only if the syscall is
13295 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13297 * valops.c (value_slice): Minor reformatting.
13299 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
13301 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13303 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13305 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13306 New static globals.
13307 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13308 (ada_ignore_descriptive_types_p): New static global.
13309 (find_parallel_type_by_descriptive_type): Return immediately
13310 if ada_ignore_descriptive_types_p is set.
13311 (_initialize_ada_language): Register new commands "maintenance
13312 set ada", "maintenance show ada", "maintenance set ada
13313 ignore-descriptive-types" and "maintenance show ada
13314 ignore-descriptive-types".
13315 * NEWS: Add entry for new "maint ada set/show
13316 ignore-descriptive-types" commands.
13318 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13320 * record-btrace.c (record_btrace_close): Call btrace_teardown
13323 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13325 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13328 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13330 * ada-typeprint (type_is_full_subrange_of_target_type):
13332 (print_range): Add parameter bounds_prefered_p. If not set,
13333 try printing range types using the name of their base type.
13334 (print_range_type): Add parameter bounds_prefered_p.
13335 Use it in call to print_range.
13336 (print_array_type, ada_print_type): Update calls to print_range
13337 and print_range_type.
13339 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13341 * ada-typeprint.c (print_array_type, print_choices, print_range)
13342 (print_range_bound, print_dynamic_range_bound, print_range_type):
13343 Remove declaration.
13345 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13347 * ada-typeprint.c (print_range): Add missing empty line
13348 after local declaration.
13350 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13352 * ada-valprint.c (print_optional_low_bound): Get index_type's
13353 target type for as long as it is a TYPE_CODE_RANGE.
13355 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13357 * procfs.c (procfs_make_note_section): Remove assertion and
13358 associated comment.
13360 2014-01-24 Yao Qi <yao@codesourcery.com>
13362 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13363 * corelow.c (get_core_siginfo): Likewise.
13365 2014-01-24 Yao Qi <yao@codesourcery.com>
13367 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13368 ULONGEST. Don't check 'len' is negative.
13369 (remote_write_bytes): Change type of 'len' to ULONGEST.
13371 2014-01-23 Tom Tromey <tromey@redhat.com>
13374 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13375 Handle exception from frame.block.
13376 (FrameVars.fetch_frame_locals): Likewise.
13378 2014-01-23 Tom Tromey <tromey@redhat.com>
13381 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13382 on a NULL pointer. Move "goto error" to correct place.
13384 2014-01-23 Tom Tromey <tromey@redhat.com>
13387 * python/py-framefilter.c (apply_frame_filter): Call
13388 ensure_python_env after computing gdbarch.
13390 2014-01-23 Yao Qi <yao@codesourcery.com>
13392 * target.c (raw_memory_xfer_partial): Change argument type
13393 from void * to gdb_byte *.
13394 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13396 2014-01-22 Doug Evans <dje@google.com>
13398 New gdbserver option --debug-format=timestamp.
13399 * NEWS: Mention it.
13401 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13403 * syscalls/s390x-linux.xml: New file.
13404 * syscalls/s390-linux.xml: New file.
13405 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13406 (XML_SYSCALL_FILENAME_S390X): Likewise.
13407 (op_svc): New enum value for SVC opcode.
13408 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13409 (s390_linux_get_syscall_number): New function.
13410 (s390_gdbarch_init): Register '*get_syscall_number' and the
13411 syscall xml file name.
13412 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13413 "s390-linux.xml" and "s390x-linux.xml".
13414 * NEWS: Announce new feature.
13416 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13418 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13420 2014-01-22 Pedro Alves <palves@redhat.com>
13422 * xtensa-config.c: Include defs.h.
13424 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13426 * common/common-utils.h: Add "ARI:" comment beside __func__
13429 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13431 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13432 documentation a bit.
13434 2014-01-21 Roland McGrath <mcgrathr@google.com>
13436 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13437 * configure: Regenerate.
13438 * aclocal.m4: Regenerate.
13439 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13440 New substituted variables.
13441 (install-strip): New target.
13442 (INSTALL_SCRIPT): New substituted variable.
13443 (FLAGS_TO_PASS): Add it.
13444 (install-only): Use $(INSTALL_SCRIPT) rather than
13445 $(INSTALL_PROGRAM) for gcore.
13447 2014-01-20 Tom Tromey <tromey@redhat.com>
13449 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13452 2014-01-20 Tom Tromey <tromey@redhat.com>
13454 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13455 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13456 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13457 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13458 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13459 (struct cmd_list_element) <flags>: Remove.
13460 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13461 doc_allocated>: New fields.
13462 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13464 * maint.c (maintenance_do_deprecate): Update.
13465 * top.c (execute_command): Update.
13467 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13469 * xtensa-linux-nat.c: Include asm/ptrace.h.
13471 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13473 * Makefile.in (SFILES): Add d-support.c.
13474 (COMMON_OBS): Add d-support.o.
13475 * d-lang.h (d_parse_symbol): Add comment, now defined in
13477 * d-lang.c (parse_call_convention)
13478 (parse_attributes, parse_function_types)
13479 (parse_function_args, parse_type, parse_identifier)
13480 (call_convention_p, d_parse_symbol): Move functions to ...
13481 * d-support.c: ... New file.
13483 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13485 * d-lang.h (d_parse_symbol): Add declaration.
13486 * d-lang.c (extract_identifiers)
13487 (extract_type_info): Remove functions.
13488 (parse_call_convention, parse_attributes)
13489 (parse_function_types, parse_function_args)
13490 (parse_type, parse_identifier, call_convention_p)
13491 (d_parse_symbol): New functions.
13492 (d_demangle): Use d_parse_symbol to demangle D symbols.
13494 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13496 * d-lang.h (struct builtin_d_type): New data type.
13497 (builtin_d_type): Add declaration.
13498 * d-lang.c (d_language_arch_info, build_d_types)
13499 (builtin_d_type): New functions.
13500 (enum d_primitive_types): New data type.
13501 (d_language_defn): Change c_language_arch_info to
13502 d_language_arch_info.
13503 (d_type_data): New static variable.
13504 (_initialize_d_language): Initialize d_type_data.
13506 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13508 * d-lang.h (d_main_name): Add declaration.
13509 * d-lang.c (d_main_name): New function.
13510 * symtab.c (find_main_name): Add call to d_main_name.
13512 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13514 * d-lang.c (d_language_defn): Change macro_expansion_c to
13515 macro_expansion_no.
13517 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13519 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13521 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13523 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13524 gdb_exception" declaration.
13525 * remote.c (getpkt_or_notif_sane): Likewise.
13527 2014-01-17 Doug Evans <dje@google.com>
13529 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13530 function, contents of dirnames_to_char_ptr_vec_append moved here.
13531 (delim_string_to_char_ptr_vec): New function.
13532 (dirnames_to_char_ptr_vec_append): Rewrite.
13533 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13535 2014-01-17 Doug Evans <dje@google.com>
13537 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13539 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13540 #include "common-utils.h".
13541 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13542 * common/vec.h (VEC_ASSERT_PASS): Update.
13543 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13544 (MACH_CHECK_ERROR): Update.
13546 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13548 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13550 * gdbarch.h: Regenerate.
13552 2014-01-16 Tom Tromey <tromey@redhat.com>
13554 * value.c (struct value) <regnum>: Move earlier.
13556 2014-01-16 Tom Tromey <tromey@redhat.com>
13558 * remote.c (extended_remote_create_inferior): Rename from
13559 extended_remote_create_inferior_1. Add "ops" argument. Remove
13560 old implementation.
13562 2014-01-16 Pedro Alves <palves@redhat.com>
13564 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13565 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13568 2014-01-16 Doug Evans <dje@google.com>
13570 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13572 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13574 * btrace.h (btrace_thread_flag): New.
13575 (struct btrace_thread_info) <flags>: New.
13576 * record-btrace.c (record_btrace_resume_thread)
13577 (record_btrace_find_thread_to_move, btrace_step_no_history)
13578 (btrace_step_stopped, record_btrace_start_replaying)
13579 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13580 (record_btrace_find_resume_thread): New.
13581 (record_btrace_resume, record_btrace_wait): Extend.
13582 (record_btrace_can_execute_reverse): New.
13583 (record_btrace_open): Fail in non-stop mode.
13584 (record_btrace_set_replay): Split into this, ...
13585 (record_btrace_stop_replaying): ... this, ...
13586 (record_btrace_clear_histories): ... and this.
13587 (init_record_btrace_ops): Init to_can_execute_reverse.
13588 * NEWS: Announce it.
13590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13592 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13593 (forward_target_decr_pc_after_break)
13594 (target_decr_pc_after_break): New.
13595 * target.c (forward_target_decr_pc_after_break)
13596 (target_decr_pc_after_break): New.
13597 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13598 instead of gdbarch_decr_pc_after_break.
13599 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13600 instead of gdbarch_decr_pc_after_break.
13601 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13602 instead of gdbarch_decr_pc_after_break.
13603 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13604 instead of gdbarch_decr_pc_after_break.
13605 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13606 instead of gdbarch_decr_pc_after_break.
13607 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13608 instead of gdbarch_decr_pc_after_break.
13610 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13612 * btrace.c: Include regcache.h.
13613 (btrace_add_pc): New.
13614 (btrace_enable): Call btrace_add_pc.
13615 (btrace_is_empty): New.
13616 * btrace.h (btrace_is_empty): New.
13617 * record-btrace.c (require_btrace, record_btrace_info): Call
13620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13622 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13623 Support delta reads.
13624 (linux_disable_btrace): Change return type.
13625 * common/linux-btrace.h (linux_read_btrace): Change parameters
13626 and return type to allow error reporting. Update users.
13627 (linux_disable_btrace): Change return type. Update users.
13628 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13630 (btrace_error): New.
13631 (btrace_block) <begin>: Comment on BEGIN == 0.
13632 * btrace.c (btrace_compute_ftrace): Start from the end of
13634 (btrace_stitch_trace, btrace_clear_history): New.
13635 (btrace_fetch): Read delta trace, return if replaying.
13636 (btrace_clear): Move clear history code to btrace_clear_history.
13637 (parse_xml_btrace): Throw an error if parsing failed.
13638 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13639 and return type to allow error reporting.
13640 (target_read_btrace): Change parameters and return type to allow
13642 * target.c (target_read_btrace): Update.
13643 * remote.c (remote_read_btrace): Support delta reads. Pass
13645 * NEWS: Announce it.
13647 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13649 * record.h (record_btrace_frame_unwind)
13650 (record_btrace_tailcall_frame_unwind): New declarations.
13651 * dwarf2-frame: Include record.h
13652 (dwarf2_frame_cfa): Throw an error for btrace frames.
13653 * record-btrace.c: Include hashtab.h.
13654 (btrace_get_bfun_name): New.
13655 (btrace_call_history): Call btrace_get_bfun_name.
13656 (struct btrace_frame_cache): New.
13658 (bfcache_hash, bfcache_eq, bfcache_new): New.
13659 (btrace_get_frame_function): New.
13660 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13661 (record_btrace_frame_this_id): Compute own id.
13662 (record_btrace_frame_prev_register): Provide PC, throw_error
13663 for all other registers.
13664 (record_btrace_frame_sniffer): Detect btrace frames.
13665 (record_btrace_tailcall_frame_sniffer): New.
13666 (record_btrace_frame_dealloc_cache): New.
13667 (record_btrace_frame_unwind): Add new functions.
13668 (record_btrace_tailcall_frame_unwind): New.
13669 (_initialize_record_btrace): Allocate cache.
13670 * btrace.c (btrace_clear): Call reinit_frame_cache.
13671 * NEWS: Announce it.
13673 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13675 * record-btrace.c (record_btrace_set_replay)
13676 (record_btrace_goto_begin, record_btrace_goto_end)
13677 (record_btrace_goto): New.
13678 (init_record_btrace_ops): Initialize them.
13679 * NEWS: Announce it.
13681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13683 * record-btrace.c (record_btrace_find_new_threads)
13684 (record_btrace_thread_alive): New.
13685 (init_record_btrace_ops): Initialize to_find_new_threads and
13688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13690 * record-btrace.c (record_btrace_resume): New.
13691 (record_btrace_wait): New.
13692 (init_record_btrace_ops): Initialize to_wait and to_resume.
13694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13696 * record-btrace.c (record_btrace_xfer_partial)
13697 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13698 (record_btrace_allow_memory_access): New.
13699 (init_record_btrace_ops): Initialize new methods.
13700 * target.c (raw_memory_xfer_partial): Bail out if target reports
13701 that this memory is not available.
13703 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13705 * target.h (target_ops) <to_insert_breakpoint>
13706 <to_remove_breakpoint>: Add target_ops parameter.
13707 (forward_target_insert_breakpoint): New.
13708 (forward_target_remove_breakpoint): New.
13709 (memory_remove_breakpoint, memory_insert_breakpoint):
13710 Add target_ops parameter.
13711 * target.c (target_insert_breakpoint): Split into this and ...
13712 (forward_target_insert_breakpoint): ... this.
13713 (target_remove_breakpoint): Split into this and ...
13714 (forward_target_remove_breakpoint): ... this.
13715 (debug_to_insert_breakpoint): Add target_ops parameter.
13716 Call forward_target_insert_breakpoint.
13717 (debug_to_remove_breakpoint): Add target_ops parameter.
13718 Call forward_target_remove_breakpoint.
13719 (update_current_target): Do not inherit or default to_insert_breakpoint
13720 and to_remove_breakpoint.
13721 * corelow.c (ignore): Add target_ops parameter.
13722 * exec.c (ignore): Add target_ops parameter.
13723 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13724 Add target_ops parameter.
13725 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13726 Add target_ops parameter.
13727 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13728 Add target_ops parameter.
13729 * record-full.c (record_full_beneath_to_insert_breakpoint)
13730 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13731 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13732 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13733 (record_full_core_remove_breakpoint): Add target_ops parameter.
13735 (record_full_beneath_to_insert_breakpoint_ops)
13736 (record_full_beneath_to_remove_breakpoint_ops)
13737 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13738 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13739 tmp_to_remove_breakpoint_ops,
13740 record_full_beneath_to_insert_breakpoint_ops, and
13741 record_full_beneath_to_remove_breakpoint_ops.
13742 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13743 (m32r_remove_breakpoint): Add target_ops parameter.
13744 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13745 Add target_ops parameter.
13746 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13747 Add target_ops parameter.
13749 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13750 Markus Metzger <markus.t.metzger@intel.com>
13752 * record-btrace.c: Include frame-unwind.h.
13753 (record_btrace_frame_unwind_stop_reason)
13754 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13755 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13757 (init_record_btrace_ops): Install it.
13759 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13761 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13764 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13766 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13769 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13771 * frame-unwind.c: Include target.h.
13772 (frame_unwind_try_unwinder): New function with code from ...
13773 (frame_unwind_find_by_frame): ... here. New variable
13774 unwinder_from_target, call also target_get_unwinder)
13775 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13776 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13777 * target.h (struct target_ops): New fields to_get_unwinder and
13778 to_get_tailcall_unwinder.
13779 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13783 * record-btrace.c (record_btrace_fetch_registers)
13784 (record_btrace_store_registers)
13785 (record_btrace_to_prepare_to_store): New.
13786 (init_record_btrace_ops): Add the above.
13788 2014-01-16 Tom Tromey <tromey@redhat.com>
13790 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13791 * target.h (struct target_ops) <to_prepare_to_store>: Add
13793 (target_prepare_to_store): Add argument.
13794 * target.c (debug_to_prepare_to_store): Add argument.
13795 (update_current_target): Update.
13796 * remote.c (remote_prepare_to_store): Add 'self' argument.
13797 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13798 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13799 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13800 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13802 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13803 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13804 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13805 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13806 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13810 * btrace.h (replay) <replay>: New.
13811 (btrace_is_replaying): New.
13812 * btrace.c (btrace_clear): Free replay iterator.
13813 (btrace_is_replaying): New.
13814 * record-btrace.c (record_btrace_is_replaying): New.
13815 (record_btrace_info): Print insn number if replaying.
13816 (record_btrace_insn_history): Start at replay position.
13817 (record_btrace_call_history): Start at replay position.
13818 (init_record_btrace_ops): Init to_record_is_replaying.
13820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13822 * record-btrace.c (record_btrace_insn_history_range): Include
13824 (record_btrace_insn_history_from): Adjust range.
13825 (record_btrace_call_history_range): Include
13827 (record_btrace_call_history_from): Adjust range.
13828 * NEWS: Announce changes.
13830 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13832 * record.h (enum record_print_flag)
13833 <record_print_indent_calls>: New.
13834 * record.c (get_call_history_modifiers): Recognize /c modifier.
13835 (_initialize_record): Document /c modifier.
13836 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13837 Reorder fields. Optionally indent the function name. Update
13839 * NEWS: Announce changes.
13841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13843 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13847 * btrace.c (ftrace_new_function): Start counting at one.
13848 * record-btrace.c (record_btrace_info): Adjust number of calls
13850 * NEWS: Announce it.
13852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13854 * record-btrace.c (btrace_call_history_insn_range): Print
13855 insn range as [begin, end].
13857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13859 * btrace.h (struct btrace_func_link): New.
13860 (enum btrace_function_flag): New.
13861 (struct btrace_inst): Rename to ...
13862 (struct btrace_insn): ...this. Update all users.
13863 (struct btrace_func) <ibegin, iend>: Remove.
13864 (struct btrace_func_link): New.
13865 (struct btrace_func): Rename to ...
13866 (struct btrace_function): ...this. Update all users.
13867 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13868 (number, level, flags>: New.
13869 (struct btrace_insn_iterator): Rename to ...
13870 (struct btrace_insn_history): ...this.
13872 (struct btrace_insn_iterator, btrace_call_iterator): New.
13873 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13874 (struct btrace_target_info) <begin, end, level>
13875 <insn_history, call_history>: New.
13876 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13877 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13878 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13879 (btrace_call_number, btrace_call_begin, btrace_call_end)
13880 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13881 (btrace_find_function_by_number, btrace_set_insn_history)
13882 (btrace_set_call_history): New.
13883 * btrace.c (btrace_init_insn_iterator)
13884 (btrace_init_func_iterator, compute_itrace): Remove.
13885 (ftrace_print_function_name, ftrace_print_filename)
13886 (ftrace_skip_file): Change
13887 parameter to const.
13888 (ftrace_init_func): Remove.
13889 (ftrace_debug): Use new btrace_function fields.
13890 (ftrace_function_switched): Also consider gaining and
13891 losing symbol information).
13892 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13893 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13894 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13896 (ftrace_new_function): Move. Remove debug print.
13897 (ftrace_update_lines, ftrace_update_insns): New.
13898 (ftrace_update_function): Check for call, ret, and jump.
13899 (compute_ftrace): Renamed to ...
13900 (btrace_compute_ftrace): ...this. Rewritten to compute call
13902 (btrace_fetch, btrace_clear): Updated.
13903 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13904 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13905 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13906 (btrace_call_number, btrace_call_begin, btrace_call_end)
13907 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13908 (btrace_find_function_by_number, btrace_set_insn_history)
13909 (btrace_set_call_history): New.
13910 * record-btrace.c (require_btrace): Use new btrace thread
13912 (record_btrace_info, btrace_insn_history)
13913 (record_btrace_insn_history, record_btrace_insn_history_range):
13914 Use new btrace thread info fields and new iterator.
13915 (btrace_func_history_src_line): Rename to ...
13916 (btrace_call_history_src_line): ...this. Use new btrace
13917 thread info fields.
13918 (btrace_func_history): Rename to ...
13919 (btrace_call_history): ...this. Use new btrace thread info
13920 fields and new iterator.
13921 (record_btrace_call_history, record_btrace_call_history_range):
13922 Use new btrace thread info fields and new iterator.
13924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13926 * frame.h (frame_id_build_unavailable_stack_special): New.
13927 * frame.c (frame_id_build_unavailable_stack_special): New.
13929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13931 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13932 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13933 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13935 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13936 (i386_insn_is_jump, i386_jmp_p): New.
13937 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13938 insn_is_jump to gdbarch.
13939 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13940 * gdbarch.h: Regenerated.
13941 * gdbarch.c: Regenerated.
13942 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13943 (default_insn_is_jump): New.
13944 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13945 (default_insn_is_jump): New.
13947 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13949 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13951 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13952 (btrace_read_type) <btrace_read_new>: Change to ...
13953 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13957 * common/linux-btrace.c (linux_read_btrace): Free trace from
13958 previous iteration.
13960 2014-01-15 Doug Evans <dje@google.com>
13962 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13965 2014-01-15 Tom Tromey <tromey@redhat.com>
13967 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13968 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13969 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13970 (set_objfile_main_name): New function.
13971 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13972 language_of_main>: New fields.
13973 (set_objfile_main_name): Declare.
13974 * symtab.c (find_main_name): Loop over objfiles to find the main
13976 (set_main_name): Now static.
13977 (get_main_info): Add comment.
13978 * symtab.h (set_main_name): Don't declare.
13980 2014-01-15 Tom Tromey <tromey@redhat.com>
13982 * symtab.c (main_progspace_key): New global.
13983 (struct main_info): New.
13984 (name_of_main, language_of_main): Remove.
13985 (get_main_info, main_info_cleanup): New function.
13986 (set_main_name, main_name, main_language): Use get_main_info.
13987 (_initialize_symtab): Initialize main_progspace_key.
13989 2014-01-15 Tom Tromey <tromey@redhat.com>
13991 * dbxread.c (process_one_symbol): Update.
13992 * dwarf2read.c (read_partial_die): Update.
13993 * symfile.c (set_initial_language): Call main_language.
13994 * symtab.c (language_of_main): Now static.
13995 (set_main_name): Add 'lang' parameter.
13996 (find_main_name): Update.
13997 (main_language): New function.
13998 (symtab_observer_executable_changed): Update.
13999 * symtab.h (set_main_name): Update.
14000 (language_of_main): Remove.
14001 (main_language): Declare.
14003 2014-01-15 Tom Tromey <tromey@redhat.com>
14005 * symfile.c (init_entry_point_info): Use new "initialized" field.
14007 * objfiles.h (struct entry_point) <initialized>: New field.
14008 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14009 (struct objfile) <ei>: ...here. Remove.
14010 * objfiles.c (entry_point_address_query): Update.
14012 2014-01-15 Tom Tromey <tromey@redhat.com>
14014 * objfiles.c (entry_point_address_query): Relocate entry point
14016 (objfile_relocate1): Do not relocate entry point address.
14017 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14018 <the_bfd_section_index>: New field.
14019 * symfile.c (init_entry_point_info): Find the entry point's
14022 2014-01-15 Tom Tromey <tromey@redhat.com>
14024 * solib-frv.c (enable_break): Use entry_point_address_query.
14026 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14028 * NEWS: Add note on improved process record-replay on
14029 arm*-linux* targets.
14031 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14033 * arm-tdep.c (enum arm_record_result): New enum.
14034 (arm_record_unsupported_insn): New function.
14035 (arm_record_coproc_data_proc): Removed.
14036 (thumb2_record_ld_st_multiple): New function.
14037 (thumb2_record_ld_st_dual_ex_tbb): New function.
14038 (thumb2_record_data_proc_sreg_mimm): New function.
14039 (thumb2_record_ps_dest_generic): New function.
14040 (thumb2_record_branch_misc_cntrl): New function.
14041 (thumb2_record_str_single_data): New function.
14042 (thumb2_record_ld_mem_hints): New function.
14043 (thumb2_record_ld_word): New function.
14044 (thumb2_record_lmul_lmla_div): New function.
14045 (thumb2_record_decode_insn_handler): New function.
14046 (decode_insn): Add thumb32 instruction handlers.
14048 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14050 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14051 (struct arm_linux_record_tdep): Declare.
14052 (arm_canonicalize_syscall): New function.
14053 (arm_all_but_pc_registers_record): New function.
14054 (arm_linux_syscall_record): New function.
14055 (arm_linux_init_abi): Add syscall recording constructs.
14056 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14057 decoding. (arm_record_coproc_data_proc): Update arm syscall
14059 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14060 <arm_syscall_record>: New field.
14061 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14064 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14066 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14067 register for push instruction recording.
14069 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14071 * arm-tdep.c (thumb_record_misc): Update to correct logical
14072 error while recording ldm, ldmia and pop instructions.
14074 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14076 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14078 2014-01-15 Pedro Alves <palves@redhat.com>
14080 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14081 (go32_resume, go32_fetch_registers, store_register)
14082 (go32_store_registers, go32_prepare_to_store)
14083 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14084 (go32_create_inferior, go32_can_run, go32_terminal_init)
14085 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14088 2014-01-15 Tom Tromey <tromey@redhat.com>
14090 * target.h (async_callback_ftype): New typedef.
14091 (struct target_ops) <to_async>: Use it.
14093 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14095 * python/py-value.c (get_field_type): Remove unnecessary curly
14096 braces for single-statement if block.
14098 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14100 * python/py-type.c (convert_field): Add missing empty line
14101 after declarations.
14103 2014-01-14 Doug Evans <dje@google.com>
14105 * symfile.h (expand_symtabs_matching): Renamed from
14106 expand_partial_symbol_names. Update prototype.
14107 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14108 * symfile.c (expand_symtabs_matching): Renamed from
14109 expand_partial_symbol_names. New args file_matcher, kind.
14110 Rename arg fun to symbol_matcher.
14111 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14112 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14113 ada_expand_partial_symbol_name.
14114 (ada_make_symbol_completion_list): Update to call
14115 expand_symtabs_matching.
14116 (ada_add_global_exceptions): Call expand_symtabs_matching.
14117 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14118 call map_symbol_filenames.
14119 * symtab.c (sources_info): Update to call map_symbol_filenames.
14120 (search_symbols): Call expand_symtabs_matching.
14121 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14122 (default_make_symbol_completion_list_break_on): Update to call
14123 expand_symtabs_matching.
14124 (make_source_files_completion_list): Update to call
14125 map_symbol_filenames.
14127 2014-01-14 Doug Evans <dje@google.com>
14129 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14130 (expand_symtabs_symbol_matcher_ftype): New typedef.
14131 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14132 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14133 * symfile.c (expand_partial_symbol_names): Update to use
14134 expand_symtabs_symbol_matcher_ftype.
14135 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14136 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14137 Arg name_matcher renamed to symbol_matcher.
14138 * psymtab.c (recursively_search_psymtabs): Update to use
14139 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14141 (expand_symtabs_matching_via_partial): Update to use
14142 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14143 Arg name_matcher renamed to symbol_matcher.
14145 2014-01-14 Doug Evans <dje@google.com>
14147 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14148 (map_partial_symbol_filenames): Ditto.
14149 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14150 (map_partial_symbol_filenames): Ditto.
14151 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14152 (map_partial_symbol_filenames): Ditto.
14153 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14154 (map_partial_symbol_filenames): Ditto.
14155 * symtab.c: Delete #include "psymtab.h".
14157 2014-01-14 Pedro Alves <palves@redhat.com>
14158 Tom Tromey <tromey@redhat.com>
14160 * infrun.c (use_displaced_stepping): Use find_record_target
14161 instead of RECORD_IS_USED.
14162 (adjust_pc_after_break): Use record_full_is_used instead of
14164 * record-btrace.c (record_btrace_open): Call record_preopen
14165 instead of checking RECORD_IS_USED.
14166 * record-full.c (record_full_shortname)
14167 (record_full_core_shortname): New globals.
14168 (record_full_is_used): New function.
14169 (find_full_open): Call record_preopen instead of checking
14171 (init_record_full_ops): Set the target's shortname to
14172 record_full_shortname.
14173 (init_record_full_core_ops): Set the target's shortname to
14174 record_full_core_shortname.
14175 * record-full.h (record_full_is_used): Declare.
14176 * record.c (find_record_target): Make extern.
14177 (record_preopen): New function.
14178 * record.h (RECORD_IS_USED): Delete macro.
14179 (find_record_target, record_preopen): Declare functions.
14181 2014-01-14 Yao Qi <yao@codesourcery.com>
14183 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14184 'len''s type to ULONGEST.
14185 (core_xfer_shared_libraries_aix): Likewise.
14186 * gdbarch.c, gdbarch.h: Regenerated.
14187 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14188 Change type of 'len' to ULONGEST.
14189 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14190 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14192 2014-01-14 Yao Qi <yao@codesourcery.com>
14194 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14195 type of 'len' to ULONGEST.
14196 (linux_xfer_osdata_processgroups): Likewise.
14197 (linux_xfer_osdata_threads): Likewise.
14198 (linux_xfer_osdata_fds): Likewise.
14199 (linux_xfer_osdata_isockets): Likewise.
14200 (linux_xfer_osdata_shm): Likewise.
14201 (linux_xfer_osdata_sem): Likewise.
14202 (linux_xfer_osdata_msg): Likewise.
14203 (linux_common_xfer_osdata): Likewise.
14204 (struct osdata_type) <getter>: Likewise.
14205 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14208 2014-01-14 Yao Qi <yao@codesourcery.com>
14210 * target.h (target_xfer_partial_ftype): Update.
14211 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14213 * aix-thread.c (aix_thread_xfer_partial): Change type of
14214 argument 'len' to ULONGEST.
14215 * auxv.c (procfs_xfer_auxv): Likewise.
14216 (ld_so_xfer_auxv): Likewise.
14217 (memory_xfer_auxv): Likewise.
14218 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14219 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14220 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14221 * corelow.c (core_xfer_partial): Likewise.
14222 * ctf.c (ctf_xfer_partial): Likewise.
14223 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14225 (darwin_read_dyld_info): Likewise.
14226 (darwin_xfer_partial): Likewise.
14227 * exec.c (section_table_xfer_memory_partial): Likewise.
14228 (exec_xfer_partial): Likewise.
14229 * exec.h (section_table_xfer_memory_partial): Update
14231 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14232 instead of plongest.
14233 (gnu_xfer_partial): Likewise.
14234 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14235 (ia64_hpux_xfer_solib_got): Likewise.
14236 (ia64_hpux_xfer_partial): Likewise.
14237 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14238 * inf-ptrace.c (inf_ptrace_xfer_partial):
14239 * inf-ttrace.c (inf_ttrace_xfer_partial):
14240 * linux-nat.c (linux_xfer_siginfo): Likewise.
14241 (linux_nat_xfer_partial): Likewise.
14242 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14243 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14244 * monitor.c (monitor_xfer_memory): Likewise.
14245 (monitor_xfer_partial): Likewise.
14246 * procfs.c (procfs_xfer_partial): Likewise.
14247 * record-full.c (record_full_xfer_partial): Likewise.
14248 (record_full_core_xfer_partial): Likewise.
14249 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14250 instead of plongest.
14251 (gdbsim_xfer_partial): Likewise.
14252 * remote.c (remote_xfer_partial): Likewise.
14253 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14254 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14256 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14257 (rs6000_xfer_shared_libraries): Likewise.
14258 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14259 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14260 (sparc_xfer_partial): Likewise.
14261 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14262 (spu_xfer_partial): Likewise.
14263 * spu-multiarch.c (spu_xfer_partial): Likewise.
14264 * target.c (target_read_live_memory): Likewise.
14265 (memory_xfer_live_readonly_partial): Likewise.
14266 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14267 (target_xfer_partial, default_xfer_partial): Likewise.
14268 (current_xfer_partial): Likewise.
14269 * tracepoint.c (tfile_xfer_partial): Likewise.
14270 * windows-nat.c (windows_xfer_memory): Likewise. Call
14271 pulongest instead of plongest.
14272 (windows_xfer_partial): Likewise.
14273 (windows_xfer_shared_libraries): Likewise.
14275 2014-01-14 Yao Qi <yao@codesourcery.com>
14277 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14278 target_xfer_partial_ftype.
14280 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14284 * valops.c (value_struct_elt_bitpos): New function
14285 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14286 object to 'None' if the field name is an empty string ("").
14287 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14288 attribute to look for a field when 'name' is 'None'.
14289 (get_field_type): New function
14291 2014-01-13 Doug Evans <dje@google.com>
14294 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14295 (try_open_dwop_file): Ditto.
14296 * gdb_bfd.c: #include "vec.h".
14297 (bfdp): New typedef.
14298 (struct gdb_bfd_data): New member included_bfds.
14299 (gdb_bfd_unref): Unref all included bfds.
14300 (gdb_bfd_record_inclusion): New function.
14301 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14303 2014-01-13 Tom Tromey <tromey@redhat.com>
14305 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14307 2014-01-13 Tom Tromey <tromey@redhat.com>
14309 * defs.h (use_windows): Remove.
14310 * gdb.c (main): Update.
14311 * main.c (captured_main, gdb_main): Update.
14312 * main.h (struct captured_main_args) <use_windows>: Remove.
14313 * top.c (use_windows): Remove.
14315 2014-01-13 Tom Tromey <tromey@redhat.com>
14317 * defs.h (deprecated_flush_hook): Remove.
14319 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14322 * linux-thread-db.c (try_thread_db_load): Add parameter
14323 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14324 (try_thread_db_load_from_pdir_1): Move it there from here.
14325 (try_thread_db_load_from_sdir): Update caller.
14326 (try_thread_db_load_from_dir): Move it there from here.
14328 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14330 * regformats/regdat.sh: Always rewrite the register file.
14332 2014-01-13 Pedro Alves <palves@redhat.com>
14334 * Makefile.in (CHECK_HEADERS): New variable.
14335 (check-headers:): New rule.
14337 2014-01-13 Tom Tromey <tromey@redhat.com>
14339 * cli/cli-setshow.c (do_set_command): Update.
14340 * defs.h (deprecated_set_hook): Remove.
14341 * top.c (deprecated_set_hook): Remove.
14343 2014-01-13 Pedro Alves <palves@redhat.com>
14345 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14346 the tracepoint if the PC is a pseudo-register.
14348 2014-01-13 Tom Tromey <tromey@redhat.com>
14350 * defs.h (XCALLOC): Remove.
14351 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14352 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14353 * dwarf2loc.c (allocate_piece_closure): Likewise.
14354 * elfread.c (elf_symfile_segments): Likewise.
14355 (elf_symfile_segments): Likewise.
14356 * gdbtypes.c (copy_type_recursive): Likewise.
14357 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14358 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14359 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14361 * mt-tdep.c (mt_gdbarch_init): Likewise.
14362 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14364 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14365 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14366 * registry.c (registry_alloc_data): Likewise.
14367 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14368 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14369 * serial.c (serial_fdopen_ops): Likewise.
14370 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14372 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14373 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14376 2014-01-13 Tom Tromey <tromey@redhat.com>
14378 * defs.h (XMALLOC): Remove.
14379 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14380 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14381 * cli-out.c (struct ui_out *): Likewise.
14382 * cli/cli-dump.c (add_dump_command): Likewise.
14383 (add_dump_command): Likewise.
14384 * complaints.c (get_complaints): Likewise.
14385 (find_complaint): Likewise.
14386 * dwarf2-frame.c (execute_cfa_program): Likewise.
14387 * dwarf2read.c (abbrev_table_read_table): Likewise.
14388 * gdbarch.sh: Likewise.
14389 * gdbarch.c: Rebuild.
14390 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14391 * interps.c (interp_new): Likewise.
14392 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14393 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14394 * mi/mi-console.c (mi_console_file_new): Likewise.
14395 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14396 * mi/mi-out.c (mi_out_new): Likewise.
14397 * mi/mi-parse.c (mi_parse): Likewise.
14398 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14399 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14400 * observer.c (xalloc_observer_list_node): Likewise.
14401 * regcache.c (regcache_xmalloc_1): Likewise.
14402 * reggroups.c (reggroup_new): Likewise.
14403 (_initialize_reggroup): Likewise.
14404 * registry.c (register_data_with_cleanup): Likewise.
14405 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14406 * ser-base.c (serial_ttystate): Likewise.
14407 * ser-mingw.c (make_pipe_state): Likewise.
14408 * ser-pipe.c (pipe_open): Likewise.
14409 * serial.c (serial_open): Likewise.
14410 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14411 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14412 (tui_alloc_win_info): Likewise.
14413 (tui_add_content_elements): Likewise.
14414 * tui/tui-file.c (tui_file_new): Likewise.
14415 * tui/tui-out.c (tui_out_new): Likewise.
14416 * ui-file.c (mem_file_new): Likewise.
14417 * ui-out.c (push_level): Likewise.
14418 (make_cleanup_ui_out_end): Likewise.
14419 (append_header_to_list): Likewise.
14420 (ui_out_new): Likewise.
14421 * user-regs.c (user_reg_add_builtin): Likewise.
14423 2014-01-13 Tom Tromey <tromey@redhat.com>
14425 * defs.h (XZALLOC): Remove.
14426 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14427 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14428 (get_ada_tasks_inferior_data): Likewise.
14429 * auto-load.c (get_auto_load_pspace_data): Likewise.
14430 * auxv.c (get_auxv_inferior_data): Likewise.
14431 * bfd-target.c (target_bfd_reopen): Likewise.
14432 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14433 (deprecated_insert_raw_breakpoint): Likewise.
14434 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14435 * corelow.c (core_open): Likewise.
14436 * darwin-nat.c (darwin_check_new_threads): Likewise.
14437 (darwin_attach_pid): Likewise.
14438 * dummy-frame.c (dummy_frame_push): Likewise.
14439 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14440 * dwarf2loc.c (allocate_piece_closure): Likewise.
14441 * elfread.c (elf_symfile_segments): Likewise.
14442 * eval.c (ptrmath_type_p): Likewise.
14443 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14444 * gdbtypes.c (alloc_type_arch): Likewise.
14445 (alloc_type_instance): Likewise.
14446 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14447 * inf-child.c (inf_child_can_use_agent): Likewise.
14448 * inflow.c (get_inflow_inferior_data): Likewise.
14449 * infrun.c (save_infcall_suspend_state): Likewise.
14450 * jit.c (jit_reader_load): Likewise.
14451 (get_jit_objfile_data): Likewise.
14452 (get_jit_program_space_data): Likewise.
14453 (jit_object_open_impl): Likewise.
14454 (jit_symtab_open_impl): Likewise.
14455 (jit_block_open_impl): Likewise.
14456 (jit_frame_sniffer): Likewise.
14457 * linux-fork.c (add_fork): Likewise.
14458 * maint.c (make_command_stats_cleanup): Likewise.
14459 * objfiles.c (get_objfile_pspace_data): Likewise.
14460 * opencl-lang.c (struct lval_closure): Likewise.
14461 * osdata.c (osdata_start_osdata): Likewise.
14462 * progspace.c (new_address_space): Likewise.
14463 (add_program_space): Likewise.
14464 * remote-sim.c (get_sim_inferior_data): Likewise.
14465 * sh-tdep.c (sh_gdbarch_init): Likewise.
14466 * skip.c (Ignore): Likewise.
14467 (skip_delete_command): Likewise.
14468 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14469 (library_list_start_library): Likewise.
14470 (solib_aix_current_sos): Likewise.
14471 * solib-darwin.c (get_darwin_info): Likewise.
14472 (darwin_current_sos): Likewise.
14473 * solib-dsbt.c (get_dsbt_info): Likewise.
14474 * solib-ia64-hpux.c (new_so_list): Likewise.
14475 (ia64_hpux_get_solib_linkage_addr): Likewise.
14476 * solib-spu.c (append_ocl_sos): Likewise.
14477 (spu_current_sos): Likewise.
14478 * solib-svr4.c (get_svr4_info): Likewise.
14479 (svr4_keep_data_in_core): Likewise.
14480 (library_list_start_library): Likewise.
14481 (svr4_default_sos): Likewise.
14482 (svr4_read_so_list): Likewise.
14483 * solib-target.c (library_list_start_library): Likewise.
14484 (solib_target_current_sos): Likewise.
14485 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14486 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14487 * symfile.c (default_symfile_segments): Likewise.
14488 * target-descriptions.c (tdesc_data_init): Likewise.
14489 (tdesc_create_reg): Likewise.
14490 (struct tdesc_type *): Likewise.
14491 (tdesc_create_vector): Likewise.
14492 (tdesc_set_struct_size): Likewise.
14493 (struct tdesc_type *): Likewise.
14494 (tdesc_free_feature): Likewise.
14495 (tdesc_create_feature): Likewise.
14496 * windows-nat.c (windows_add_thread): Likewise.
14497 (windows_make_so): Likewise.
14498 * xml-support.c (gdb_xml_body_text): Likewise.
14499 (gdb_xml_create_parser_and_cleanup): Likewise.
14500 (xml_process_xincludes): Likewise.
14501 * xml-syscall.c (allocate_syscalls_info): Likewise.
14502 (syscall_create_syscall_desc): Likewise.
14504 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14506 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14507 function, with code from i386_stap_parse_special_token.
14508 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14509 (i386_stap_parse_special_token): Move code to the two functions
14510 above; simplify it.
14512 2014-01-09 Pedro Alves <palves@redhat.com>
14513 Hui Zhu <hui@codesourcery.com>
14516 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14517 bp_err_string. Don't mark the location shlib_disabled if the
14518 error thrown wasn't a generic or memory error. Catch errors
14519 thrown while inserting breakpoints in overlayed code. Output
14520 error message of software breakpoints.
14521 * remote.c (remote_insert_breakpoint): If this breakpoint has
14522 target-side commands but this stub doesn't support Z0 packets,
14523 throw NOT_SUPPORTED_ERROR error.
14524 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14525 * target.h (target_insert_breakpoint): Extend comment.
14526 (target_insert_hw_breakpoint): Add comment.
14528 2014-01-08 Pedro Alves <palves@redhat.com>
14530 * remote.c (remote_add_thread): Add threads silently if starting
14532 (remote_notice_new_inferior): If in all-stop, and starting up,
14533 don't call notice_new_inferior.
14534 (get_current_thread): New function, factored out from ...
14535 (add_current_inferior_and_thread): ... this. Adjust.
14536 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14537 found any thread, then select the remote's current thread as GDB's
14538 current thread too.
14540 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14542 * NEWS: Create a new section for the next release branch.
14543 Rename the section of the current branch, now that it has
14546 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14548 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14549 * version.in: Bump version to 7.7.50.DATE-cvs.
14551 2014-01-08 Yao Qi <yao@codesourcery.com>
14553 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14554 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14555 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14557 2014-01-08 Yao Qi <yao@codesourcery.com>
14559 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14560 return value of bfd_get_filename to symbol_file_add_from_bfd.
14562 2014-01-08 Pierre Muller <muller@sourceware.org>
14565 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14566 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14567 to prim_record_mininal_symbol_and_info.
14568 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14569 in call to prim_record_minimal_symbol_and_info.
14570 (read_pe_exported_syms): Set index field of section_data.
14572 2014-01-07 Andrew Pinski <apinski@cavium.com>
14574 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14575 * features/aarch64.c: Regenerate.
14577 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14579 * target.c (return_null): Define.
14580 (update_current_target): Use it instead of return_zero for
14581 functions that return a pointer.
14583 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14585 * source.c (add_path): Fix check for duplicated paths in the previously
14588 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14590 * ada-lang.c: Remove duplicated include statements.
14591 * alphabsd-nat.c: Ditto.
14592 * amd64-darwin-tdep.c: Ditto.
14593 * amd64fbsd-nat.c: Ditto.
14594 * auto-load.c: Ditto.
14596 * breakpoint.c: Ditto.
14597 * dbxread.c: Ditto.
14598 * fork-child.c: Ditto.
14599 * gdb_usleep.c: Ditto.
14600 * i386-darwin-tdep.c: Ditto.
14601 * i386fbsd-nat.c: Ditto.
14603 * inferior.c: Ditto.
14604 * jv-lang.c: Ditto.
14605 * linux-nat.c: Ditto.
14606 * linux-tdep.c: Ditto.
14607 * m68kbsd-nat.c: Ditto.
14608 * m68klinux-nat.c: Ditto.
14609 * microblaze-tdep.c: Ditto.
14610 * mips-linux-tdep.c: Ditto.
14611 * mn10300-tdep.c: Ditto.
14612 * nto-tdep.c: Ditto.
14613 * opencl-lang.c: Ditto.
14615 * printcmd.c: Ditto.
14616 * regcache.c: Ditto.
14617 * remote-m32r-sdi.c: Ditto.
14619 * symfile.c: Ditto.
14621 * tilegx-linux-nat.c: Ditto.
14622 * tilegx-tdep.c: Ditto.
14623 * tracepoint.c: Ditto.
14625 * vaxbsd-nat.c: Ditto.
14626 * windows-nat.c: Ditto.
14627 * xtensa-tdep.c: Ditto.
14629 2014-01-07 Yao Qi <yao@codesourcery.com>
14631 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14633 2014-01-07 Yao Qi <yao@codesourcery.com>
14634 Joel Brobecker <brobecker@adacore.com>
14636 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14637 (pdc_write_regs): Likewise.
14638 (fetch_regs_kernel_thread): Likewise.
14639 (store_regs_kernel_thread): Likewise.
14641 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14643 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14644 tagged type objects to their actual type.
14646 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14648 * ada-valprint.c (print_field_values): Add "language" parameter.
14649 Update calls to print_field_values and print_variant_part.
14650 Pass new parameter "language" in call to val_print instead
14651 of "current_language". Replace call to ada_val_print by call
14653 (print_variant_part): Add "language" parameter.
14654 (ada_val_print_struct_union): Update call to print_field_values.
14656 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14658 * ada-valprint.c (ui_memcpy): Delete.
14659 (ada_print_floating): Update documentation. Add empty line
14660 between between function documentation and implementation.
14661 Delete variable "buffer". Use ui_file_xstrdup in place of
14662 ui_file_put. Minor adjustments following this change.
14664 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14666 * ada-valprint.c (ada_val_print_string): New function,
14667 extracted from ada_val_print_array.
14668 (ada_val_print_array): Replace extracted code by call
14669 to ada_val_print_string followed by a return. Move
14670 "else" branch to the function's top block.
14672 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14674 * ada-valprint.c (ada_val_print_array): Move implementation
14675 down. Rename parameter "offset" and "val" into "offset_aligned"
14676 and "original_value" respectively. Add parameter "offset".
14678 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14680 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14681 re-organizing the code. Change the "???" message printed
14682 when target type is a TYPE_CODE_UNDEF into
14683 "<ref to undefined type>".
14685 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14687 * ada-valprint.c (print_record): Delete, implementation inlined...
14688 (ada_val_print_struct_union): ... here. Remove call to
14689 ada_check_typedef in inlined implementation.
14691 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14693 * ada-valprint.c (ada_val_print_gnat_array): New function,
14694 extracted from ada_val_print_1;
14695 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14696 (ada_val_print_flt, ada_val_print_struct_union)
14697 (ada_val_print_ref): Likewise.
14698 (ada_val_print_1): Delete variables i and elttype.
14699 Replace extracted-out code by call to corresponding
14702 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14704 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14708 * ada-valprint.c (ada_val_print_1): Replace calls to
14709 ada_val_print_1 by calls to val_print.
14711 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14713 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14714 Update calls to self accordingly. Replace calls to c_val_print
14715 by calls to val_print.
14717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14719 * ada-valprint.c (print_record): Delete declaration.
14720 (adjust_type_signedness, ada_val_print_1): Likewise.
14721 (ada_val_print): Move function implementation down.
14722 (print_variant_part, print_field_values, print_record):
14723 Move function implementation up.
14725 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14727 * python/py-type.c (typy_get_name): New function.
14728 (type_object_getset): Add entry for attribute "name".
14729 * NEWS: Add entry mentioning this new attribute.
14731 2014-01-07 Yao Qi <yao@codesourcery.com>
14733 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14736 2014-01-07 Yao Qi <yao@codesourcery.com>
14738 * gnu-nat.c (info_port_rights): Add qualifier const to
14741 2014-01-07 Yao Qi <yao@codesourcery.com>
14743 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14745 2014-01-07 Yao Qi <yao@codesourcery.com>
14747 * gnu-nat.c (make_inf) Update declaration.
14748 (make_inf): Make it static.
14749 (inf_set_traced): Likewise.
14750 (inf_port_to_thread, inf_task_died_status): Likewise.
14752 2014-01-07 Yao Qi <yao@codesourcery.com>
14754 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14756 2014-01-07 Yao Qi <yao@codesourcery.com>
14758 * gnu-nat.c (_initialize_gnu_nat): Declare.
14760 2014-01-07 Yao Qi <yao@codesourcery.com>
14762 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14764 (struct gdbarch_info) <byte_order>: Change type to
14766 <byte_order_for_code>: Likewise.
14767 * gdbarch.c, gdbarch.h: Regenerated.
14769 2014-01-06 Sasha Smundak <asmundak@google.com>
14771 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14773 2014-01-06 Tom Tromey <tromey@redhat.com>
14775 * doublest.c (convert_doublest_to_floatformat): Use const, not
14777 * somread.c (som_symtab_read): Likewise.
14779 2014-01-07 Hui Zhu <hui@codesourcery.com>
14781 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14782 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14783 (gdb_bfd_fopen): Ditto.
14784 (gdb_bfd_openr): Ditto.
14785 (gdb_bfd_openw): Ditto.
14786 (gdb_bfd_openr_iovec): Ditto.
14787 (gdb_bfd_fdopenr): Ditto.
14788 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14789 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14791 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14793 * symfile-mem.c (symbol_file_add_from_memory): Removed
14794 gdb_bfd_stash_filename.
14796 2014-01-03 Doug Evans <dje@google.com>
14798 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14801 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14803 Update year range in copyright notice of all files.
14805 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14807 * top.c (print_gdb_version): Set copyright year to 2014.
14809 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14811 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14813 For older changes see ChangeLog-2013.
14819 version-control: never